I'm planning a system that combines various data sources and lets users do simple queries on these. A part of the system needs to act as an abstraction layer that knows all connected data sources: the user shouldn't [need to] know about the underlying data "providers". A data provider could be anything: a relational DBMS, a bug tracking...
I have been fighting with multi threading for few days.
I dont understand what are different ways of multithreading. I have read little bit about backgroundWorker, little bit about creating an object of thread.
Yesterday I saw in delegate example to implement multithreading by calling BeginInvoke.
I dont understand are these differe...
In an application I'm writing I have a fairly complicated Database model. I'd like to use EF4 to map this to a whole lot nicer conceptual model. However all the tutorials I've read are with samples of 2 or 3 tables which all map 1 on 1 to the conceptual model.
I'd like to learn how to correctly map the database model to a different con...
I'm asking this because I'm relatively new to interpreter development and I wanted to know some basic concepts before reinventing the wheel.
I thought of the values of all variables stored in an array which makes the current scope, upon entering a function the array is swapped and the original array put on some sort of stack. When leavi...
I am programming a simple 2d game engine. I've decided how I'd like the engine to function: it will be composed of objects containing "events" that my main game loop will trigger when appropriate.
A little more about the structure:
Every GameObject has an updateEvent method.
objectList is a list of all the objects that will receive upd...
Hi all,
I was watching wwdc videos this afternoon and I heard the word Bonjour .
So I just want to know what is Bonjour in Apple .
This is just to clear the concept .
Thanks
...
What will be the output if I write
In C++ if(5) will be executed without any problem but not in C# same way will it be able to run.
if(func()){} //in C# it doesn't runs Why how does C# treats void and how in Turbo C++
void func()
{
return;
}
if(null==null){}//runs in C#
EDIT
if(printf("Hi"){} //will run and enter into if statemen...
I'm running into the issue with a new project that is it starting to get difficult to contain the whole thing in my mind and move it around. While I still do this for the majority of programming, I know that physical means can help significantly.
What methods do you use?
The 3 ideas I can think of are:
Using Styrofoam balls to show c...
Hello.
Please can someone clarify something which I should really know by now?
If I have Three Entitys Organisation, Director and Company secretary and each have the attribute primary address.
If I were modelling a conceptual ERD should I have the attribute ‘primary address’ separately in each entity or should I model a fourth enti...
I have a more conceptual question in Rails... or Ruby for that matter:
Is it best to call a require right before the method that needs it, group my requires at the beginning of the class or somewhere in an initializer when Rails boots?
Does it matter from a performance point of view? From a readability point of view? Does it make a dif...
i have to generate random numbers for 3 different cases.
i. 1 dice
ii. a pair of dice
iii. 3 dices
my questions:
1. please suggest me sm good logic to generate random numbers for all the 3 cases.
2. does the logic change when i consider the cses of 2 dices, rather than 1?
3.how much of an effect does the range in which we have to genrate...
I have a function that contains two for loops, and I'm using a variable called count as the counter. I've chosen to recycle the name as the the first loop will finish it's execution completely before the second one begins, so there is no chance of the counters interfering with each other. The G++ compiler has taken exception to this via...
I know that there is a long debate regarding this matter. I also understand that this is strictly not a programming question. But I am asking here as this platform contains wide range of experts from different realms.
When we got admitted in a Computer Science and Engineering(CSE) course in university, we were first taught C. The cours...