2,878 reputation
11121
bio website
location
age
visits member for 3 years, 6 months
seen yesterday

Feb
27
answered Validating Emails in PHP
Feb
26
comment Tineye.com search algorithm?
@ScottWhitlock, there is an obvious approach to the problem, which is wavelet compression followed by quantising and prefix matching. Whether that's what tineye uses, I don't know.
Feb
18
awarded  Caucus
Feb
16
comment How does if/else work internally in all programming languages?
@Neil, depends on the processor's instruction set. ARM has some interesting stuff with conditional instructions.
Feb
10
answered Committing https certificates to Github…is there ever a good reason for this?
Feb
6
comment Why use partial classes?
Mixins. This could be combined with T4 to avoid manual copying...
Jan
14
awarded  Yearling
Jan
2
comment Evaluate math expressions without a stack
The approach of factoring out the a*b term works mathematically, assuming that we're using real numbers, rational numbers, or something structurally similar. But it wouldn't necessarily give the same result if we're using float, and it certainly wouldn't give the same result if we're using int (e.g. 7/2*2 gives 6). The question doesn't say what it's using, but from the comments it's definitely using int.
Jan
2
comment Evaluate math expressions without a stack
This assumes operation over a field, which isn't stated in the question and is unlikely in practice (as neither the integers nor IEEE-854 floating point representations are fields).
Jan
2
comment Evaluate math expressions without a stack
@Blrfl, I think the idea is to use a more powerful machine as the compiler.
Dec
21
comment Are all security threats triggered by software bugs?
@JoachimSauer, what if your website refuses to transfer any information over HTTP and it's actually a MITM who's mapping HTTP to HTTPS? While browsers support HTTP and routers permit it to pass there's a vulnerability to sniffing which can only be avoided by extremely security-conscious clients. So really the question becomes: is it a bug for web browsers to support HTTP?
Dec
18
answered Matrix Pattern Recognition Algorithm
Dec
17
answered Chambers In A Castle Algorithm
Dec
1
comment Should I encrypt data in database?
The user is going to log on with their password and then have access to the data, so the data is no more secure than the user's password no matter what method you use to get from password to key. You should refuse to allow the user to set their password to 12345 with an entropy checker which takes into account simple patterns (e.g. port zxcvbn).
Dec
1
comment Is there a rule of thumb for what a bing map's zoom setting should be based on how many miles you want to display?
Taking into account wrapping of longitude if the use cases are likely to include sets of points in the Pacific.
Nov
27
comment Usefull skills from a computer science degree
Most of what is covered in a CS degree has no direct application in 90% of "real life" programming. Contrariwise, many of the important topics in being a good programmer aren't covered by a CS degree.
Nov
26
comment Help with algorithmic complexity in custom merge sort implementation
@bitcycle, left = original->slice(0,(len/2)); right = original->slice((len/2)+1,len-1); between them appear to iterate over the list 1.5 times.
Nov
24
answered Help with algorithmic complexity in custom merge sort implementation
Nov
19
comment Would it be a good idea to work on letting people add arrays of numbers in javascript?
Perhaps the closest you can get to the desired syntax is to create a prototype with methods like + and ^ and call them as A['+'](B) and C['^'](D). OTOH beware seeing your code on the DailyWTF if you take this approach.
Nov
8
comment What types of programming contest problems are there?
Why is "Two-Dimensional Convex Hull" listed separately from "Computational Geometry"?