back-to-basics

How to iterate hierarchical data and output the hierarchy using C#

given the following class ... public class Category { public string Name {get;set;} public Category ParentCategory {get;set;} } What the most efficient way to output the following from a collection (IList<Category>) of Category objects? + Parent Category ++ Sub Category ++ Sub Category 2 + Parent Category 2 ++ Sub ... ++ Sub .. +...

Can I use the command line, or run a batch file from managed code? (.NET)

Just like the subject states. I want to be able to run iisreset, batch files, etc. from the a console application. Can I/How do I do it? Thanks, Kyle ...

Developer essentials - resources and projects to attempt

Hi, I've been working as a developer for about 2 years, I did a bit of a shitty IT degree, I wish I had done a "proper" computer science degree, as I have come to realize I have massive gaps in my knowledge. I work completely in c# with some front end web development. There are things that really want to learn and I was wondering if peo...

What is the best way to generate XML from a C based CGI application using the SQLite API?

Learning the basics of XML for the first time from W3C tutorials. How are most XML files generated? Does the server side application usually print a complete XML file to be parsed each time there is new data? I have a CGI application in C and it includes the SQLite API. Is the best way to do some sort of printf to a XML file (using my ...

What's the difference between " and ' when creating strings in PHP?

Very basic, but would like to know the difference/security ramifications etc of using " vs. '. Can someone provide an example that explains when to use each one? ...

ORM question - JPA

I'm reading Pro JPA 2. The book talks begins by talking about ORM in the first few pages. It talks about mapping a single Java class named Employee with the following instance variables - id,name,startDate, salary. It then goes on to the issue of how this class can be represented in a relational database and suggests the following sch...

How to force R to use a specified factor level as reference in a regression?

Somehow I can´t find it in my notes... nor do find the obivous on the net. How can I tell R to use a certain level as reference if I use dummy explanatories in a regression? It´s just using some level by default. lm(x ~ y + as.factor(b)) with b {0,1,2,3,4} . Let´s say I want to use 3 instead of the zero that is used by R. Thx in a...

What is the means of word "Boolean" in computers?

What is the means of word "Boolean" in computers? IS it related to hardware or software or both? Is it a logic or name of function or data types? Off topic What is the meaning of this word "Boolean" in English language? Edit : I know this page on wiki http://en.wikipedia.org/wiki/Boolean but it has many links related to this te...