1,260 karma · joined Nov 2, 2009 (17y ago) · 479 submissions
comment 12y ago · link · parent
And a pull request fixing it was submitted back in August: https://github.com/jhusain/learnrx/pull/27
comment 12y ago · link · parent
I spent several years disassembling a game (C&C Red Alert 2), understanding the code, fixing the shitty parts and glitches left in it, and extending it. It was fascinating.
¹These examples are certainly far from trivial, I know, but that is half the fun.
comment 12y ago · link · parent
* http://qdb.us/latest - more active than bash.
* http://quotes.burntelectrons.org/browse - quotes from irc.mozilla.org , mostly Mozilla-focused.
* http://www.xkcdb.com/ - covers #xkcd and related channels. Randall Munroe participates sometimes.
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
// function signature
getNumber(context: any, callback: (result: Number) => void);
// calling that function
// unfortunately, here the type of num is any
// unless I specify it manually
getNumber(..., (num) => { ... });
Visual Studio figured out the type on its own.comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
[0] http://natashenka.ca/posters/ [1] https://news.ycombinator.com/item?id=7156405
comment 12y ago · link · parent
Hey, at least you have the option of getting it on iTunes. Where I am, neither iTunes, Amazon Instant Video or any other online service is willing to even sell me the content I want.
comment 12y ago · link · parent
[1] http://dev.mysql.com/doc/refman/5.6/en/mysql-tips.html#safe-...
comment 12y ago · link · parent
See the string comparison routine in 5.3 [3] and 5.4 [4]. The new implementation still inspects the strings to see if they are numeric and then tries to do a numeric equality check rather than string equality check, leading to amusing tricks like
var_dump("0xFF" == "255.0"); // true!
But if both values overflow the long type and their double representations are equal, the new implementation falls back to actual string equality. A quick check at [5] shows that both values heron87 compared have identical double representations, assuming (sizeof double == 8), so the new representation detects the long overflow, then it sees that double representations are also identical, and then it returns to string equality rather than numeric equality. The old implementation did not consider long overflow and ended up comparing the numeric values.[1] https://bugs.php.net/bug.php?id=54547
[2] https://bugs.php.net/bug.php?id=62097
[3] https://github.com/php/php-src/blob/PHP-5.3/Zend/zend_operat...
[4] https://github.com/php/php-src/blob/5.4/Zend/zend_operators....
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
Full run-time type checking would have overhead. It would also be unnecessary in places where data flows from Typescript function to Typescript function — those places should already be foolproof after the compile-time checks.
comment 13y ago · link · parent
comment 13y ago · link · parent
And yes, it is reasonable to expect the customer to provide the licenses for the software, but hosting companies can also sell monthly software usage to their customers - we ended up choosing a host that did exactly this. The monthly cost we pay for Windows + MSSQL will not reach the total cost of a full MSSQL license for three years.
comment 13y ago · link · parent
comment 13y ago · link · parent
[1] http://www.reddit.com/r/programming/comments/1gfve8/how_not_...
[2] http://www.reddit.com/r/programming/comments/1gfve8/how_not_...
comment 13y ago · link · parent
I accept that for managed servers they need to connect from outside to manage them, but how hard would it be to drop all traffic except for the IP range their management systems use?
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
I am getting quite different results - it records http requests and user input (keyboard/mouse).
Windows 7 x64, Chrome 25.0.1364.172 m :
# navigate to chrome directory
cd C:\Users\User\AppData\Local\Google\Chrome\Application\
# run chrome with a new profile
chrome --user-data-dir="../User Data/recording_test" --first-run --record-mode
# use the new chrome profile to browse around
# close chrome
# launch it in playback mode
chrome --user-data-dir="../User Data/recording_test" --playback-mode
# watch disaster ensue as it locks your mouse (not keyboard),
# replays all activity (url bar input, navigation, mouse cursor movements...),
# and doesn't even stop when you alt-tab
# to a different application
It feels unpolished - mouse scroll wasn't recorded, the "translate this page?" bar wasn't showing up the same way as in the recording, and most importantly, I managed to switch to a different application and it continued sending input to that application. HTTP requests did get cached as promised, and non-cached requests (due to missing scroll event, it clicked on a different link) resulted in a cache error.