I'm trying to compare the data within two files, and retrieve a list of offsets of where the differences are.
I tried it on some text files and it worked quite well..
However on non-text files (that still contain ascii text), I call them binary data files. (executables, so on..)
It seems to think some bytes are the same, even though whe...
What's the difference between Gambit-C and Chicken?
...
Assume that i have written a program in C++ without using RTTI and run-time polymorphism (no virtual function, no virtual inheritance) and classes don't have private/protected members, also the C++ specific header files are not used (i.e. C header files are used: cstring, cstdio, ... instead of string, iostream, ...).
Then i want to wri...
Possible Duplicate:
Most efficient way to test equality of lambda expressions
I was wondering how LINQ expression instances compare for equality. It seems that the expression classes do not implement IEquatable or IComparable or anything alike.
Let me give you some background information: I've implemented a caching mechanism ...
I have two arrays of products, both formatted exactly the same, like so:
$products = array(
[0] => array(
['product_id'] => 33
['variation_id'] => 0
['product_price'] => 500.00
),
[1] => array(
['product_id'] => 48
['variation_id'] => 0
['product_price'] => 600.00
),
)
I ...
Hi,
I have written a simple procedure:
CREATE PROCEDURE [dbo].[sp_GetPublishedDocs2]
@FromDate as Datetime
AS
BEGIN
DECLARE @strSQL VARCHAR(5000)
SET @strSQL='SELECT * From Task WHERE 1=1 '
IF @FromDate <>'1/1/1900'
SET @strSQL = @strSQL + ' AND Task.CreatedDate >= '+Cast(@FromDate as Datetime)
EXEC(@strSQL)
END
It run succe...
Is Apache Shindig 100% compatible with iGoogle implementation of gadgets.* API and gadget XML specs.
best regards
...
Hello
I am considering to start using Pexpect. On Pexpects homepage I find this:
Q: Why not just use Expect?
A: I love
it. It's great. I has bailed me out of
some real jams, but I wanted something
that would do 90% of what I need from
Expect; be 10% of the size; and allow
me to write my code in Python instead
of TC...
How does Perforce compare to Team Foundation Server (TFS). Here at work, we have used Perforce (Which I like very much btw) exclusively. On the other hand, I'm sorry I have never used TFS. I'm interested in TFS though, however I cannot make a judgement call as to the difference.
What are the advantages of using each over the other?
...
I noticed that a lot of tutorial instructions often have this code:
$sql="SELECT * from table";
$num=mysql_num_rows();
if ($num > 0)
{
do something
}
Why do they have to use that condition "if ($num > 0)" when I write this code that I think is compact and readable:
$sql="SELECT * from table";
$itExists=mysql_num_rows();
if ($itExis...
hello i got a problem with comparing two char* variables that contains numbers for example
char1 = "999999" and char2="11111111"
when i am using the strcmp function it will return that char1 variable is greater than char2
even tho its wrong.
(i know that i can compare with using the atoi function till 9 chars inside the string but i need...
Hi,
i have a huge list of two-element tuples which are coordinates of segments (start, end). In this way in a list below
list = [ (1,4), (2, 3), (10, 20), (18, 45) ]
there are 4 segments with their start and end localization. I would like to remove segments that overlap. I expect to have a list like this as a result:
list = [ (1,4...
Hello Group,
I have to fix a bug in a very old and large financial system that uses Fortran, C and C++. I am primarily a C++ guy, have no idea abt Fortran! I have a problem understanding a Fortran statement which i think has caused a nasty bug in our systems....
if (instructions .lt. ' ') then
instructions = ' '
endif
instructio...
Hi All,
I have a manufacturing-process issue I tackled ages ago in VBA, and it's held up for some time now although it's progressively running slower and slower as more data gets into the file. I think it's finally time to rewrite a more elegant solution in a different language, outside of VBA, but am curious if anyone knows of this be...
It would be interesting to contrast these two new languages by several aspects:
What are their design influences?
Where do they intersect in their goals / where do they rival?
Where are they distinct?
For which tasks is one or the other better suited?
What is your outlook on these languages? That is, which niche will D resp. Go fill?
...
I've had heavy exposure to Miro Samek's "Quantum Hierarchical State Machine," but I'd like to know how it compares to Boost StateCharts - as told by someone who has worked with both. Any takers?
...
In PHP, why is echo faster than print
They do the same thing... Why is one faster than the other?
Do they do exactly the same thing???
...
I am impressed with Visual Studio Profiler for performance analysis. Fast for my purposes and easy to use.
I am just curious to know about the caveats in visual studio profiler. Are there any better profilers for windows applications which fare better for these caveats?
...
Can some one explain (or quote a reference) to compare the scoring mechanism used by SOLR and LUCENE in simpler words.
Is there any difference in them;
I am not that good at solr/lucene but my finding showed as if they are different.
P.S: i just tries a simple query like "+Contents:risk" and didn't use any filter other stuff.
...
I need to compare 2 strings and calculate their similarity, to filter down a list of the most similar strings.
Eg. searching for "dog" would return
dog
doggone
bog
fog
foggy
Eg. searching for "crack" would return
crack
wisecrack
rack
jack
quack
I have come across:
QuickSilver
LiquidMetal
Do you know of any more string simila...