HNHacker News
TopNewBestAskShowJobs

DCoder

1,260 karma · joined November 2, 2009

not here anymore
submissionscomments
DCoder··on GitHub's down?
For repositories your projects depend on, you can set up a local proxy so you at least have local copies for continuous integration. E.g. PHP's Composer project has _Toran_ and _Satis_ for this: http://tech.m6web.fr/composer-installation-without-github.ht...
DCoder··on GitHub's down?
It's also a way to show "yes, this status check is still reliably doing its job, it hasn't crashed".
DCoder··on Unnoticed for years, malware turned Linux and BSD servers into spamming machines
That observation is probably related to http://www.bash.org/?949214 :)
DCoder··on Why, after a year with Adobe EchoSign, I’m taking my business elsewhere
In the context of web development, one of the biggest offenders (in my experience) is coders who attach a "validate this form/submit it via AJAX" handler to the form submit button's click event, instead of the form's submit event. If I try using Enter to submit the form, their code doesn't run.
DCoder··on Why, after a year with Adobe EchoSign, I’m taking my business elsewhere
See also: http://blogs.msdn.com/b/oldnewthing/archive/2005/04/12/40756...
DCoder··on CSV Challenge
Very cool. That's exactly what TypeProviders are for: https://msdn.microsoft.com/en-us/library/hh156509.aspx
DCoder··on Magento eCommerce PHP Remote Code Execution
I just ran PHPStorm's inspections on Magento's core code: http://imgur.com/RMxWEgR

Granted, the tool I used is opinionated and not all those items are red flags, but the sheer number of issues is impressive.

DCoder··on Magento eCommerce PHP Remote Code Execution
That alert is shown because Magento issued a notification message, not because the system detected some security patches. Those two security patches were published on 2015 February 09 and 2014 October 03.

In fact, Magento issued two notification messages, on Friday and on Monday, so even if you applied the patch after seeing the first message, you still saw the second message and experienced that brief moment of panic.

DCoder··on Tough Times on the Road to StarCraft
> I doubt there are any vector implementations that don't use exponential growth.

Trivia fact time: Westwood Studios wrote their own vector implementation for the original Command&Conquer, and reused it for later games in the same series, until Renegade/Generals. That implementation uses linear growth, capacity grows by 10 elements each time.

DCoder··on My First BillG Review (2006)
Joel mentions that fact in another article, "Find the dependencies - and eliminate them" : http://www.joelonsoftware.com/articles/fog0000000007.html
DCoder··on Moved ~/.local/share/steam. Ran steam. It deleted everything owned by user
If you want more nightmare fuel (or just want to see various ways technology goes wrong), check out http://catless.ncl.ac.uk/Risks .
DCoder··on Moved ~/.local/share/steam. Ran steam. It deleted everything owned by user
Myth II had a similar bug, too: http://minimaxir.com/2013/06/working-as-intended/
DCoder··on Fraud caused disappearance of 99% of Mt. Gox Bitcoins
Reddit seems to have some info from the print edition already: https://www.reddit.com/r/Bitcoin/comments/2qyyy9/tokyo_metro...
DCoder··on Node.js is forked, not fucked
Thank you, I will definitely check those out.
DCoder··on Node.js is forked, not fucked
> despite good intentions, V8 breaks node.js frequently -- and debugging those problems is a time-consuming and arduous task requiring a great deal of technical sophistication

Can you provide some examples? I'd love to see some debugging war stories.

DCoder··on How to nuke a submarine
Meanwhile, in Soviet Russia... http://www.johnstonsarchive.net/nuclear/radevents/1954USSR1.... - "can we nuke an area and then send troops into it?"
DCoder··on Regex Crossword
It's not mentioned explicitly, but the given patterns should match the entire answer, not just part of it. In your screenshot, "O+" means "one or more letters `O`" , it does not mention any `E` s, so OE is not a valid answer.

When you're testing your answers, add explicit start/end anchors and implicit grouping to get better results:

    var r = /^(?:HE|LL|O+)$/;
    console.log("OE".match(r));
    console.log("OO".match(r));
DCoder··on IE Web Development Support Moving to Stack Overflow
I would guess it's this one: https://i.stack.imgur.com/NFYi1.jpg
DCoder··on Angular 2 Core
I'm a fan of Knockout too, but it only handles part of Angular's functionality. It doesn't do routing, DI, resources... and you have to build all that from other libraries.
DCoder··on Functional Programming in JavaScript: A Collection of Hands-on Exercises
Funny, an issue for that error was filed back in March 2013: https://github.com/jhusain/learnrx/issues/9

And a pull request fixing it was submitted back in August: https://github.com/jhusain/learnrx/pull/27

DCoder··on Drupal 7 SQL Injection Vulnerability
Actually, Microsoft's SQLSRV PDO driver supports named parameters.
DCoder··on Say Hello to X64 Assembly Part 3
There are other uses for ASM aside from getting more speed. Learning ASM will show you how things work at a low level, which is helpful when you try to understand C pointers and other details. Reading assembly also lets you (try to) understand the programs you don't have the source for - device drivers¹, malware¹, copy-protection, regular third-party applications ...

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.

DCoder··on Bash.org is back
See also:

* 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.

DCoder··on How to move a 200-ton spectrometer across Europe
See also: "Transporting the [Lockheed] A-12s to Area 51" at http://www.roadrunnersinternationale.com/transporting_the_a-...
DCoder··on The time one of my colleagues debugged a line-of-business application
See also: free bonus chapters at http://www.informit.com/store/old-new-thing-practical-develo... , under Sample Chapters.
DCoder··on So you want to be a PHP Developer?
An alternative to emigrating could be finding a local company working on projects for foreign clients. For example, I live in Eastern Europe and work for a company that deals 99% with clients from Denmark (Central Europe). I make significantly more than the average worker here does. Just be careful and make sure the company values quality and best practices over a quick buck.
DCoder··on Inside the Soviet Army (1982)
Viktor Suvorov was not KGB (secret police). He was GRU (Military Intelligence).
DCoder··on Announcing TypeScript 1.0
From past experience, their support is good, but one significant thing I missed was type inference:

    // 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.
DCoder··on When you see a Heisenbug in C, change your compiler's optimization level (2010)
See a certain Linux kernel exploit: http://lwn.net/Articles/342330/
DCoder··on TypeScript included with Visual Studio 2013 Update 2
Be careful with that if you use data-binding in your templates, such as Knockout.js . Visual Studio doesn't know the types of your viewmodels, so those templates are not indexed and not subject to refactoring.
← PreviousPage 11 of 16Next →