comparison

Difference between frontend, backend, and middleware in web development

I was wondering if anyone can compare/contrast the differences between frontend, backend, and middleware ("middle-end"?) succinctly. Are there cases where they overlap? Are there cases where they MUST overlap, and frontend/backend cannot be separated? In terms of bottlenecks, which end is associated with which type of bottlenecks? ...

Pointer to member functions - C++ std::list sort

How do i pass a pointer to a member function to std::list.sort()? Is this possible? Thanks struct Node { uint32_t ID; char * Value; }; class myClass { private: uint32_t myValueLength; public: list<queueNode *> MyQueue; bool compare(Node * first, Node * second); ...

Compare Flex 3 and 4

Where can I find a chart or some article to compare Flex 3 and new 4. ...

How to diff two versions of same object ?

I want to compare two objects of different versions and display their differences in UI. First I call a method to know if there is any difference between the two objects The method is: public bool AreEqual(object object1,object object2, Type comparisionType) If the above method returns true, I call the GetDifferences method to get t...

What settings affect the layout of compiled java .class files? How can you tell if two compiled classes are equal?

I have an app that was compiled with the built-in Eclipse "Compile" task. Then I decided to move the build procedure into Ant's javac, and the result ended being smaller files. Later I discovered that adjusting the debuglevel to "vars,lines,source" I could embed the same debug information that Eclipse did, and in a lot of cases files st...

Comparison of bmp files?

I want to compare two bmp files. I thought of two approaches: to compare the header as well as the information header of the two files convert the bmp file to binary and then do the above comparison But, I don't know how to start and which will be a better approach. I would be glad if someone could please help me! ...

Compare GWT and Django ?

both seems to be pretty cool which is to be in used in what scenario ? ...

In Javascript, <int-value> == "<int-value>" evaluates to true. Why is it so?

If I do 0 == "0" it evaluates to true. Try, if( -777 == "-777" ) alert("same"); alert happens. And, it's also noticeable that true == "true" doesn't evaluate to true. Try, if( false == "false" ) alert("same"); alert doesn't happen. Why is it so? ...

Which PHP framework should I choose between ZendFramework and YII?

Which PHP framework should I choose between ZendFramework or YII? Points I need to consider: Performance (assuming an accelerator is used) Documentation stability of framework less to code. ...

Silverlight on the Mac

The company I work for is developing an ASP.NET application that is used by both PC and Mac users. We're considering making our next version in Silverlight. If you've developed a business application in Silverlight, are there differences in appearance/performance etc between Silverlight on the PC and Silverlight on the Mac? If you've h...

How can I compare two files in a batch file?

Hello everyone! I recently found this site and thought I might try it out because it seemed very unique. How can I compare two files in a batch file, and perform an action based on whether or not they match? I've tried something like: if file1.txt NEQ file2.txt goto label but it compares the actual string "file1.txt" rather than the ...

Comparing String to Integer giving strange feedback

I'm really confused as to why this operation works. Can someone explain it? $test1 = "d85d1d81b25614a3504a3d5601a9cb2e"; $test2 = "3581169b064f71be1630b321d3ca318f"; if ($test1 == 0) echo "Test 1 is Equal!?"; if ($test2 == 0) echo "Test 2 is Equal!?"; // Returns: Test 1 is Equal!? For clarification, I am trying to compare the s...

File comparison in C#

Is there any in-built class/method for comparing content of two audio/ video files? Or is there any in-built class/method for converting a audio/video file to bit stream? ...

Compare two objects with same data

I wanna to compare two objects, for example: DirectoryInfo di1 = new DirectoryInfo("C:\\"); DirectoryInfo di2 = new DirectoryInfo("C:\\"); OK, yeah I know we have here different reference, this class doesn't implement IComparable, and even GetHashCode is returning the different results. But they are the same! (logically:)) I know ...

Ruby: undefined method `>'

I just started learning Ruby and I ran into a problem today. numResults = /\d+/.match(ie.div(:id, 'results_label').text) puts "Results found: "+numResults.to_s while(numResults > 0) . . some more code . I get this error in my output: Exception: undefined method `>' for #<MatchData:0x424c6d4> Which is really strange because I mad...

SQL equality/inequality comparison with nullable values

first take, kludge solution, sentinel approach(it's imperative that your program should not allow inputting of sentinel value): select coalesce(a, -2147483648) = coalesce(b, -2147483648) as is_equal -- a little postgresism let's say you forgot to block the sentinel value on your program, the user inputted -2147483648 on the B field...

How do I check a table to see if a string is already in use?

I am using this code to check my username column (username is primary) in my userdb table to see whether or not the string is already there. If it isn't there then it adds the string entered from a previous form into the username column in my table. But if it is there then it says "(Username) is already in use!". This works when I put a...

SQL server VS Oracle

I'm studying SQL Server but don't know much about Oracle. Can anyone give me a fair comparison of them? I've read a comparison about SQL Server 2000 vs Oracle 9i, but it's a little out of date. Have SQL server 2008 caught up Oracle 11g/i yet? (another question, what is the differences between i and g version of Oracles?) In addition, ha...

Seeking comparison table for different regexes

I use vim, sed, bash and Perl. Each has somewhat different regex syntax. I just spent time finding that I need to escape the curly parens in sed, but not in BASH (when using them as counter elements). Grrr. Can anybody point me to a table that summarizes the differences between the different regex parsers in these 4 environments. TIA...

An easy way (tool?) to compare images pixel for pixel in different formats?

Well I've written a basic lossless jpeg joiner thing in java now but I'd like to compare the files it produces with the original files. I can only compare so much in a hex editor, does anyone know of an easy way, software or java based (preferably software as I dont feel like any more coding for now!) that I can compare two images and p...