Is there anyway another process monitoring for files created using XMLDocument.Save() could encounter a partial file? Does it make any difference if Save() is overwriting an existing file?
Hi,
I am just trying to understand the extends keyword in Java Generics.
List<? extends Animal> means we can stuff any object in the List which IS A Animal
then won't the following also mean the same thing:
List<Animal>
Can someone help me know the difference between the above two? To me extends just sound redundant here.
Thanks!
in asp.net mvc , if i shove a dictionary or an array of objects in ViewData and read that in my view compared to creating a view model class that has that same data structure, is there a performance difference or other consideration or should i expect the same response time?
I have some idea that it is due to some complex calculation, but i want to know about what exactly happens which takes long time than the corresponding encryption process. Any link to webpage or paper would be of great help.
Thanks
Thanks for the answers, One more Doubt, What about the Signing and verification? Will this time difference be there for Signing and verification also? Ex. Signing requires more time than Verification?
i am creating windows application .In this i have to subtract two dates .i subtract it successfully ,i used TimeSpan to get subtracted value.But when i insert it in SQl Server 2005 db, it inserted with starting date i.e. 1/1/1900 and the calculated difference
which format should i use to insert Time only?
Thanks in advance
In the Visual Studio 2008 IDE, the properties page allows you to access the version. However, for executables, there appears to be two versions:
Under the Publish tab, there is a publish version with a flag to auto increment.
Under the Applications Tab (Assembly Info...) there is an assembly and file version - this appears to change the AssemblyInfo.cs file.
My question is, what is the difference between the two versions and what are the implications of setting each?
Is it possible to have a payment option to pay in X installments in Magento?
We will be using Moneris as our payment gateway to process cards if that makes any difference.
thanks
What exactly is the difference Watching and Monitoring a project on the SourceForge Tracker UI?
PS: The tool tips are really helpful. Hold your mouse over the "Monitor" button and it says "Monitor this project"... hold it over "Watch" and it says nothing. That's really awesome coming from SF.
I'm new in C# and earlier I saw the lambda expression is like
(params) => { expression;}
but in LINQ, I saw examples like
IEnumerable<string> customerFirstNames = customers.Select(cust => cust.FirstName);
No brackets.
Are they the same or is there any difference?
Thanks a lot.
I'm having a "first time" problem with IE, which reports a different value for $(document).height(); when the page first loads versus subsequent queries. The difference is 17 pixels regardless of the opening size of the window -- on document ready, the height reported is 17 pixels larger than is subsequently reported. I wonder if this is an artifact of some aspect of my page (some margins or paddings somewhere), but so far can't account for 17 pixels.
Lets assume myProp is @property (retain) NSString * myProp and synthesized for us....
self.myProp = @"some value";//string literal?
self.myProp = [NSString stringWithString:@"some value"];
Is there a difference here?
Is the first one a string literal that doesnt get autoreleased or is it just in memory for it's current scope and I dont have to worry about it?
Select a Sharepoint performance counter object, there are two instances for each of my web site. For example, for the ssp site, the two instance are named as
portnumber_ssp_admin
portnumber_ssp_admin[ACL]
What is the difference between the two instances? What is the meaning of [ACL]?
Hi everyone:
I have a question, here are two class below:
class Base{
public:
virtual void toString(); // generic implementation
}
class Derive : public Base{
public:
( virtual ) void toString(); // specific implementation
}
The question is:
If I wanna subclass of class Derive perform polymophism using a pointer of type Base, is keyword virtual in the bracket necessary?
If the answer is no, what's the difference between member function toString of class Derive with and without virtual?
Hello, everyone!
Opera (version 10.10) under Linux (don't know about other OSes) does not recognize http://0.0.0.0/ as local address (http://127.0.0.1/) , while Firefox does.
What is the difference between these addresses?
Which ob the two browsers in this case is standard conform?
When creating a Singleton in PHP, I ensure that it cannot be instantiated by doing the following:
class Singleton {
private function __construct() {}
private function __clone() {}
public static function getInstance() {}
}
However, I realised that defining a class as 'abstract' means that it cannot be instantiated. So is there anything wrong with doing the following instead:
abstract class Singleton {
public static function getInstance() {}
}
The second scenario allows me to write fewer lines of code which would be nice. (Not that it actually makes much of a difference.)
Is there any difference in (asymptotic) performance between
Orders.OrderBy(order => order.Date).First()
and
Orders.Where(order => order.Date == Orders.Max(x => x.Date));
i.e. will First() perform the OrderBy()? I'm guessing no. MSDN says enumerating the collection via foreach och GetEnumerator does but the phrasing does not exclude other extensions.
Hello,
In my iPhone application, I need to calculate the time difference between the time a message was created on the server, and the time my phone received it.
The server (Java) puts in a number returned by System.currentTimeMillis() as metadata along with the message.
How do I compare this number with the current time on the device? Could not find a suitable NSDate method to do this comparison.
Thanks in advance!
if i want to script a mini-application (in the Terminal) in mac and windows, which one is preferred: ruby or python?
or is there no major difference just a matter of taste?
cause i know python definetely is a good scripting language.
thanks
So Ctrl/Cmd-F11 starts the server, but is there a key to restart the server? I'm developing using app engine and GWT if that makes any difference (I suspect not).
I want to test if an xml attribute is present. Given this:
XmlAttributeCollection PG_attrColl = SomeNodeorAnother.Attributes;
This first test works:
if (null != PG_attrColl["SomeAttribute"])
"GetNamedItem" is supposed to return null, but the following test throws an exception complaining about the null it returns.
if (null != PG_attrColl.GetNamedItem("SomeAttribute").Value;)
Why the difference? Just curious.
Hi, I think the implementation of virtual function is talked about a lot. My question is what about pure virtual function? However it is implemented? In virtual table, how to tell it is a pure or non-pure? What the difference between pure virtual function and virtual function with implementation?
I have a function foo(i) that takes an integer and takes a significant amount of time to execute. Will there be a significant performance difference between any of the following ways of initializing 'a':
a = [foo(i) for i in xrange(100)]
,
a = map(foo, range(100))
, and
vfoo = numpy.vectorize(foo)
vfoo(range(100))
? (I don't care whether the output is a list or a numpy array).
Is there some other better way of doing this?
Thanks.
Working with Python in Emacs if I want to add a try/catch to a block of code, I often find that I am having to indent the whole block, line by line. In Emacs, how do you indent the whole block at once.
I am not an experienced Emacs user, but just find it is the best tool for working through ssh. I am using Emacs on the command line(Ubuntu), not as a gui, if that makes any difference.