I am preparing for my interview tomorrow: I need answer for this question
how can u print 1 to 10 & 10 to 1 by using recursion and with single variable
How do I delete all elements from a priority queue? That means how do I destroy a priority queue?
advanced thanks for u answer. Is there any clear- or erase-like method?
Hi,
I have a feeling the answer to this is no, but using .Net 4.0's Parallelism, can you set the amount of cores on which to run i.e. if your running a Quad Core, can you set your Application to only use 2 of them?
Thanks
Tried to find the answer, but still couldn't.. The table is as follows:
id, keyword, value
1 display 15.6
1 harddrive 320
1 ram 3
So what i need is something like this.. Select an id from this table where (keyword="display" and value="15.6") AND (keyword="harddrive" and value="320")
There's also a possibility that there will be 3 or 4 such keyword conditions which should result into returning one id (one row)
It seems there's something to deal with UNION but i didn't use it before so i can't figure it out
Thanks in advance
Hello gurus
Can't find the answer to my question in MSND :
Does Timer class guarantees that all handlers subscribed to Elapsed event will be executed on the same threadpool thread ? If yes, will they be executed according the order in wich they were added to Elapsed event ?
Thanks
Is anyone aware of a publicly available Maven repository that contains the Google App Engine 1.3.1 JAR's? I've been using the maven-gae-plugin repository, but it's not updated yet. It looks like the JAR's on the central Maven repository are even older.
EDIT: It looks like Cletus's answer below has most of the JAR's, but not all of them. For example, the datanucleus-appengine-1.0.5.final.jar isn't available.
I can't find this answer anywhere. What does it mean when there's a sender parameter in a method header? Does it represent the instance that called it, or the method that called it?
Hi guys,
I know SQL Server 2008 has exposed some features to PowerShell as snapins. Now I want to know whether I can use PowerShell with SQL Server 2005? I guess the answer is NO, right? Thanks.
I am confuse about this ie java is pure object oriented language but I have seen in some good books there is mantion java is not a pure object oriented but I don't get why. So please give me the answer why java is not pure object oriented language?
I've been looking in the web for examples on the aggregates like count but it seems all of them are using the aggregate alone.
SELECT field, count(*) FROM table GROUP BY field
Should have something like:
field.value1, x1
field.value2, x2
....
I'm looking for a pure JPA answer for this one. If not I guess I can then do further queries just for the count part but that seems unefficient.
Any ideas?
I have been trying to find a way to control my winmo phone from my pc. (HTC S740)
What I want is to be able to call a number from an application, answer the phone from an application and hangup the phone from an application. It should also be able to track how long the ongoing call has been.
Any libraries out there that lets me make such an application with C#?
(The phone is connected to the pc via usb in Windows 7.)
I had a Java developer new to PHP ask me this question the other day, so I thought I'd document the answer here.
Question: are PHP variables passed by value or by reference?
I was reading Code Complete 2 and it mentions this:
Many version-control tools wil insert version information into a file. In CVS, for exmple the characters
// $id$
Will Automaticly expand to
// $id: ClassName.java, v 1.1 2004/02/05 00:36:42 ismene Exp $
So now I would like to do something similar with VSS for our SQL scripts
I have been googling around for the answer but can't find it. Is this possible? can someone maybe point me in the right direction?
I found What are mvp and mvc and what is the difference but it didn't really answer this question.
I've recently started using MVC because it's part of the framework that myself and my work-partner are going to use. We chose it because it looked easy and separated process from display, are there advantages besides this that we don't know about and could be missing out on?
Pros
Display and Processing are seperated
Cons
None so far
I'm thinking that the answer is probably 'no' if the program is small and there are a lot of methods, but what about in a larger program? If I am going to be using one variable in multiple methods throughout the program, is it smarter to:
Come up with a different phrasing for each method (to eliminate naming conflicts).
Use the same name for each method (to eliminate confusion)
Just use a global variable (to eliminate both)
This is more of a stylistic question than anything else. What naming convention do YOU use when passing variables?
I've coded a C# executable that uses xcopy (cmd.exe /Q /D /C xcopy [args]) to duplicate some files.
If I run the .exe by double-clicking it, the xcopy operation works every time.
If I run the .exe by double-clicking a shortcut to the .exe, the xcopy works only if the shortcut is in the same folder as the .exe.
This makes absolutely no sense to me, I wouldn't even know where to begin to find the answer.
So, you know, help.
Can anyone answer me what are the differences of
Session.Query
Session.Linq and
Session.QueryOver
What I'm really interested in:
What would be supported in the future versions.
What should I start to use in a clean project.
Please tell me your thoughts about these three...
Thanks,
Zoltán
IIS 7 and Visual Studio 2008, every time you attach to w3wp.exe you get an Attach Security Warning,
How do you turn this of?
It would be cool to know also, how to keep it attached for linger, as this seems to time out after a while
Btw: I Added this as a comment to the answer below, the first thing i did was try the msdn article http://msdn.microsoft.com/en-us/library/ms241736.aspx that doesn't work
When I asked this question I got almost always a definite yes you should have coding standards.
What was the strangest coding standard rule that you were ever forced to follow?
And by strangest I mean funniest, or worst, or just plain odd.
In each answer, please mention which language, which team size, and which ill effects it caused you and your team.
How can I write a c++ program to calculate large factorials.
Example, if I want to calculate (100!) / (99!), we know the answer is 100, but if i calculate the factorials of the numerator and denominator individually, both the numbers are gigantically large.
What application, language, or other software product name makes you cringe every time you hear it; or was just an astoundingly bad choice from a marketing perspective?
One name per answer, vote up the worst.
Hello, I would like to rephrase my previous question which no one could answer.
My problem is that a jQuery-script does not execute a command though it "runs" it.
I can see it in the debug mode where the debugger hits the command. Nonetheless,
the command is not executed.
Is it true that interfaces slow down programs? I have heard that this is the case because during running time each during each usage of an object implementing this interface the decision has to be made which class implementing the interface this object belongs to.
I am especially interested in an answer for C++, but also in general. And if this is true, some numbers would be helpful, too.
Thank you very much!
I want to make a program that's like a simple text editor using Qt 4.6.2.
When the user block any text in a TextEdit and click on a button, the text will be bold/italic/underlined depend on the button..
I'm a beginner in Qt Programming, so if Possible, can you insert the programming code in Qt to do that?
Please answer this ASAP,, thank you very much!! :)