comparison

SQL date,period comparison

Hi I'm having some problem with logic of the comparison of some periods. I have a table in my database that looks like this: Id|startDate |amount of weeks| -------------------------------- A1|2010-01-04 | 3 B3|2010-01-11 | 2 all the startDates start on the same day of the week (Monday) now I need to write an sql where I have 2 para...

Differences Between MATLAB 4.2c And The Lastest One

I'm now learning a bit of MATLAB and I have two versions of it. Version 4.2c, that I use on my emulated Windows 3.11 and the lastest one, that I use on my Windows Vista. Here is a screenshot of it: Then I want to know: What are the main differences? There are any difference in the language itself? New librarys will work? ...

PostgreSQL specific SQL keywords

What are specific features from Postgres that are not available in MySQL? Are there some queries that you wouldn't be able to do as easily? Or are the differences mostly in how you store your data? ...

null comparison, prefix increment, properties, Length properties of struct in C#

Hi everyone, I have some questions in C# what are the differences between null comparisons null == value and value == null (value is a variable of any kind: int, string, float,...) I heard that using prefix increment ++i instead of i++ in some case will enhance the program performance. Why is it so? I have a snippet code as follow: ...

Protocol Buffers versus JSON or BSON

Does anyone have any information on the performance characteristics of Protocol Buffers versus BSON (binary JSON) or versus JSON in general? Wire size Serialization speed Deserialization speed These seem like good binary protocols for use over HTTP. I'm just wondering which would be better in the long run for a C# environment. Here...

Source code comparison app that doesn't require files?

I'm looking for an easy-to-use, free source code comparison app for Windows, which will highlight differences side-by-side between two pieces of source code. Some apps get close to what I want, but are too restrictive by requiring you load in entire files and compare them in their entirety. Sometimes I just want to compare a section of...

comparing date objects in as2

I must be missing something. date1 = new Date(2010, 01, 10, 12, 10, 30, 000); date2 = new Date(2010, 01, 10, 12, 10, 30, 000); trace(date1 == date2); // returns false However, date1 = new Date(2010, 01, 10, 12, 10, 30, 000); date2 = new Date(2010, 01, 10, 12, 10, 30, 000); trace(date1.toString() == date2.toString()); // returns tru...

ASP.NET - C# vs VB.NET - Indirect differences and things you might not initially consider

I'm not interested in starting another "who has the bigger member" VB vs C# debate (http://stackoverflow.com/questions/158229/what-are-the-pros-of-vb-net seems to cover that already) though I am interested in indirect differences which may influence developing in one vs the other. All my commercial .NET development was desktop apps in VB...

How do you show that one algorithm is more efficient than another algorithm?

Hi, I'm no professional programmer and I don't study it. I'm an aerospace student and did a numeric method for my diploma thesis and also coded a program to prove that it works. I did several methods and implemented several algorithms and tried to show the proofs why different situations needed their own algorithm to solve the task. I...

What is the fastest way I can compare two equal-size bitmaps to determine whether they are identical?

I am trying to write a function to determine whether two equal-size bitmaps are identical or not. The function I have right now simply compares a pixel at a time in each bitmap, returning false at the first non-equal pixel. While this works, and works well for small bitmaps, in production I'm going to be using this in a tight loop and o...

Prestashop compared to Zen-Cart and osCommerce

I'm considering Prestashop for a new project. It seems to be younger than Zen-Cart and osCommerce. Since I just found it by Google, I'd like to gather comments and experience and comparison of Prestashop to established "brands" like Zen-Cart and osCommerce ...

What is the proper way to check if a string is empty in Perl?

I've just been using this code to check if a string is empty: if ($str == "") { // ... } And also the same with the not equals operator... if ($str != "") { // ... } This seems to work (I think), but I'm not sure it's the correct way, or if there are any unforeseen drawbacks. Something just doesn't feel right about it. ...

List of rich web application technologies

I am trying to get myself acquainted with the world of rich web application. There are some comparison tables of available technologies on the Wikipedia, but I still find it unclear what are the options for rich application development. Could you please verify and complete the information I gathered below? What are the key pros and con...

What are the major differences in object models of dynamic languages like Smalltalk, Ruby and Python

I dived into understanding the Ruby object model in the last weeks, and although so far was only a user of the fruits of ruby's and python's object in the past, I became curious how these things might differ in other languages. Years ago I touched smalltalk's squeak. Smalltalk is often figuring as a referential object oriented language,...

how does less than (<) operator work with mixed types in c

Can someone explain how does less than op work in C? In particular how it works when types of left hand side and right hand side operands are different? Does it compare them based on type of the first one or the second one? ...

Similar language features to compare with Perl and Ruby __END__

Background Perl and Ruby have the __END__ and __DATA__ tokens that allow embedding of arbitrary data directly inside a source code file. Although this practice may not be well-advised for general-purpose programming use, it is pretty useful for "one-off" quick scripts for routine tasks. Question: What other programming languages sup...

The 3 different equals

Can someone explain to me the difference between =, ==, and ===? I think using one equal sign is to declare a variable while two equal signs is for a comparison condition and lastly three equal signs is for comparing values of declared variables. ...

What application can I use for finding the differences between two source code files?

Possible Duplicates: Best file comparison tool Best Diff Tool? Duplicate: this is a duplicate of Best file comparison tool and many others. While it may be fun to post our favorite diff tools, I recommend we close this question as a duplicate, and answer in the original question. What application do you use for comparing tw...

SQL Server , How to compare speeds of simple Queries.

Hello all, I have a big query and I am tring to improve it part by part, however due to the caching mechanism, and simplicity of t-sql codes, I don't have a reliable environment for testing the speeds. The queries that I am tring to improve about speeds are all last about 1 or 2 seconds, so I can't see the difference clearly. And creati...

Relevance percentage between two string

Hi, How to get relevance percentage between two string in C# ? Thanks. ...