Better HN
topnewbestaskshowjobs
Log inSign up

DCoder

1,260 karma · joined Nov 2, 2009 (17y ago) · 479 submissions

not here anymore
Submissions

comment 11y ago · link · parent

It does happen, but you picked a bad example. Read the close reason: " Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. "

StackOverflow is for programming questions. That question, as it was formulated, is not about programming. It belongs on either Unix&Linux or Super User instead.

comment 11y ago · link · parent

See also: http://www.johnstonsarchive.net/nuclear/radevents/1954USSR1....

comment 11y ago · link · parent

It seems like that code just builds random-ish data that conforms to the wanted file format and then gives it incriminating names. For example:

[1] https://github.com/hackedteam/rcs-common/blob/38290d4eab2b2c...

[2] https://github.com/hackedteam/rcs-common/blob/38290d4eab2b2c...

comment 11y ago · link · parent

Yes, you're right. My bad.

comment 11y ago · link · parent

The idea isn't "don't use promises", it's more "use/chain the promises you already got from libraries (e.g. AJAX calls), don't construct new promises yourself". See the StackOverflow question inglor linked to: https://stackoverflow.com/questions/23803743/what-is-the-exp...

comment 11y ago · link · parent

No, it returns a new Promise that's already been resolved to the value you returned previously.

comment 11y ago · link · parent

Chrome dev tools also support node drag-and-drop as well as ctrl-x/c/v in the Elements panel.

comment 11y ago · link · parent

Command&Conquer: Red Alert 2 and its expansion pack also received community patches (I contributed to them a lot) to its binary. When EA later released The First Decade bundle with all the old games in it, they removed the old copy-protection. Most games in the bundle were simply recompiled to remove it, but for the expansion pack they hex-edited the copy-protection to keep it community patch compatible.

comment 11y ago · link · parent

> It's weird thinking we used to pay for compilers

People still do. For example, Intel sells several compilers: https://software.intel.com/en-us/intel-compilers

comment 11y ago · link · parent

I'll second all those points, especially the first one, but I'll add a word of caution. All of the points you mentioned require the IDE to parse all the code, not just the code you are writing at this moment. If it doesn't know the type of $foo, it can't tell what $foo->getModel() calls and therefore it can't rename that getModel(), for example. This means you have to be careful in projects using older frameworks or CMS. From recent experience, a great example of such an atrocious codebase is Magento:

- their method calls are excessively chained, which means a failure to analyse step 2 of the chain blocks analysis of all further chained calls

- their phpDoc either doesn't exist or is actively misleading at times

- they rely on magic methods all throughout the codebase without properly annotating them

- https://imgur.com/RMxWEgR

comment 11y ago · link · parent

> J. Eric Townsend reviewed a copy [of GURPS] for the early computer security zine RISKS

This looks like the review in question: http://catless.ncl.ac.uk/Risks/10.03.html#subj10.1

comment 11y ago · link · parent

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

comment 11y ago · link · parent

It's also a way to show "yes, this status check is still reliably doing its job, it hasn't crashed".

comment 11y ago · link · parent

That observation is probably related to http://www.bash.org/?949214 :)

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

See also: http://blogs.msdn.com/b/oldnewthing/archive/2005/04/12/40756...

comment 11y ago · link · parent

Very cool. That's exactly what TypeProviders are for: https://msdn.microsoft.com/en-us/library/hh156509.aspx

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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

comment 11y ago · link · parent

Joel mentions that fact in another article, "Find the dependencies - and eliminate them" : http://www.joelonsoftware.com/articles/fog0000000007.html

comment 11y ago · link · parent

If you want more nightmare fuel (or just want to see various ways technology goes wrong), check out http://catless.ncl.ac.uk/Risks .

comment 11y ago · link · parent

Myth II had a similar bug, too: http://minimaxir.com/2013/06/working-as-intended/

comment 11y ago · link · parent

Reddit seems to have some info from the print edition already: https://www.reddit.com/r/Bitcoin/comments/2qyyy9/tokyo_metro...

comment 11y ago · link · parent

Thank you, I will definitely check those out.

comment 11y ago · link · parent

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

comment 11y ago · link · parent

Meanwhile, in Soviet Russia... http://www.johnstonsarchive.net/nuclear/radevents/1954USSR1.... - "can we nuke an area and then send troops into it?"

comment 11y ago · link · parent

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));

comment 12y ago · link · parent

I would guess it's this one: https://i.stack.imgur.com/NFYi1.jpg

comment 12y ago · link · parent

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.
1
101112
16