News for hackers. Stuff that matters.

califield

Women did not serve in combat roles during World War 2. There was about ten times as many men in the military than women at that time.
Re:Why we are saying “uh” less and 'um' more on Monday February 09, 2015 @01:48AM (#9019990)
Perhaps this is because um is closer to the mystical sound om/aum[1]?

[1] http://en.wikipedia.org/wiki/Om

Re:Your Phone Interface Is a Legacy Train Wreck on Thursday January 29, 2015 @02:23AM (#8964792)
This is why I'm excited for VR. Now that equipment like Oculus Rift is going mainstream, there's an opportunity to move beyond managing "windows" to managing "objects", e.g. taking a phone call would not affect the notes you were arranging on the virtual desk in front of you. Current generation phones are trapped by the limited screen size of a handheld device.

Even worse than being disrupted would be if my phone started trying to guess what I was intending. "It looks like you're writing a letter."

You could make it a redirect service for npm modules.

e.g. https://js.org/express 301 redirects to https://www.npmjs.com/package/express

Another idea is a blog. One of my favorite blogs is http://npmawesome.com/

Re:Hacked. A Short Story on Monday January 19, 2015 @11:39AM (#8912630)
If moving the project to a new server is not feasible, then how does the client backup their data?

I refuse to work on projects that cannot be installed from scratch in a local VM.

Re:What does `void 0` mean? on Tuesday January 13, 2015 @05:49PM (#8883153)
Modern browsers don't actually let you redefine `undefined`.
Re:Ex-MIT professor told friends he ‘robbed the bank’ on Tuesday January 13, 2015 @05:28PM (#8883056)
Check out this excerpt from his 2001 semi-autobiographical film, "Confessions of a Sociopath":

https://www.youtube.com/watch?v=k-tHqOz5zTo

More information on the film:

http://creative-capital.org/projects/view/154

Re:Ask HN: Where to host a static website (with SSL) on Tuesday January 13, 2015 @01:12PM (#8881531)
I would set up a free Heroku application and provide SSL and caching by redirecting it through CloudFlare.

I host a lot of static websites like this.

Re:New York City to Start Its Own ID Card Program on Monday January 12, 2015 @05:35PM (#8876889)
The article is missing an important piece of information: can you buy a drink at the bar with it?
Re:Ask HN: What do you need in HN search? on Monday January 12, 2015 @12:23PM (#8875063)
Perhaps this is too far outside of your existing scope of functionality but I'll throw it out there: I would really love a "Hacker News Alerts" feature. I make the same searches every week on a few key terms but it's a manual process.

If you could push new search results directly to my inbox it would be convenient.

Re:Don't soak your dried beans on Friday January 09, 2015 @01:24PM (#8863504)
I make really delicious slow cooker black beans every Sunday, following this recipe I found online:

http://cafejohnsonia.com/2013/02/how-to-slow-cooker-black-be...

She recommends skipping the soak and I haven't noticed any problems yet!

Another great resource for free, permissively licensed music and sound effects is OpenGameArt.org[1], although they mostly focus on assets for retro games.

[1] http://opengameart.org/

Re:Kickstarter switches to Stripe on Tuesday January 06, 2015 @12:56PM (#8845844)
Big payment processors like Stripe are storing your full credit card number forever whether you choose to "Remember me" or not.

The checkbox is whether you want to be able to pay again without retyping it.

Re:Winklevoss Bitcoin Trust on Wednesday December 31, 2014 @12:53PM (#8820254)
They're going to trade Bitcoin under the NASDAQ symbol COIN. I love it!
Re:Why Deleting Sensitive Information from GitHub Doesn't Save You on Wednesday December 31, 2014 @01:28AM (#8818446)
I use the `dotenv`[1] package with Node.js and it does exactly the same thing: environment variable definitions that you can store elsewhere in a dead-simple format.

To be fair, I think they just copied the `foreman` tool from Heroku. However, it works great. Most projects don't need anything more than a flat hierarchy of secret keys and values.

Writing your own parser for a `.env` file is a piece of cake, even in shell language.

Adding `etcd` is better, but it's too much work for a small project.

[1] https://github.com/motdotla/dotenv

Re:JavaScript Internationalization API on Thursday December 25, 2014 @11:44PM (#8798078)
It would be a little more clear if they compared it to L20n[1] (their internal Mozilla browser localization API) and how this is going to bring those open standards to browsers.

Let's get deeper than money classes.

[1] https://wiki.mozilla.org/L20n/FAQ

Re:Pitfalls of Callback-Based APIs on Tuesday December 23, 2014 @04:13PM (#8790259)
I would title this article, "Infinite recursion considered harmful".
Re:Pitfalls of Callback-Based APIs on Tuesday December 23, 2014 @02:29PM (#8789751)
This article reads like a mind dump lacking a cohesive narrative... I mean look at how the author closes the article:

> This article isn't really about callbacks and it isn't even really about APIs.

Well then, perhaps you should have named the article something else...?

Re:Good IRC channels on Tuesday December 23, 2014 @01:39PM (#8789465)
#bbg on Freenode is a channel for HTML5 canvas game hacking. I try to poke my head in and listen once in a while.
Re:Git client vulnerability announced on Thursday December 18, 2014 @04:40PM (#8769787)
Yeah, but typically you have a certain level of trust in your project dependencies. Adding a library to your project often means granting access to your system anyway (if the dependency contains executable code).
Re:Git client vulnerability announced on Thursday December 18, 2014 @04:31PM (#8769736)
I was wondering who found this vulnerability. You have to click through to the Git mailing list announcement[1]:

> A big "thanks!" for bringing this issue to us goes to our friends in the Mercurial land, namely, Matt Mackall and Augie Fackler.

It'd be interesting to hear how they came across this. Matt is the leader of the Mercurial project and Augie is a Mercurial core contributor.

This doesn't seem like a high priority upgrade since GitHub now blocks the vulnerability from being pushed to their servers.

[1] http://article.gmane.org/gmane.linux.kernel/1853266

edit: Upgrade ASAP!

Re:When to quit? on Monday December 15, 2014 @02:39PM (#8753904)
> The code comes back to us, and we have to redo it -- there's nothing good about this.

Implement code review and start rejecting their pull requests with constructive criticism and mentoring.

Re:What I Like About PHP on Tuesday December 09, 2014 @08:06PM (#8727025)
`f` in your example is a global function that cannot be redefined.
Re:The Ideal Domain-Driven Design Aggregate Store? on Tuesday December 09, 2014 @07:11AM (#8722296)
The author doesn't mention the go-to option in this scenario: write a data mapper[1] to dehydrate your object.

While I'm a huge proponent of PostgreSQL and the hstore[2]/JSON column types (hstore column type is not mentioned but it existed way before JSON columns), it's still more common to use PostgreSQL in a primarily relational fashion and the author could have touched on that more before giving us the scoop on the new shiny stuff.

[1] http://martinfowler.com/eaaCatalog/dataMapper.html [2] http://postgresguide.com/sexy/hstore.html

This is an exciting space right now. I'm gearing up to launch RPG Classroom this Spring. The name is sort of a combination of their old and new names (gaming and mentoring).

I think their price is a little high, but I guess they have an obligation to charge what people are willing to pay. Instead of charging $30,000, my idea is to accept Bitcoin donations if people are happy with their education.

Besides teaching computer science, I think gamification is a natural next step for primary education (K-12) in this era of attention challenged kids and I hope MakeSchool isn't back-peddling on that. For example, instead of making proof of concept games, I want to put out an RPG that teaches Biology 101 (or build a platform that enables someone else to do it).

To be honest, this library doesn't really make sense.

Perhaps a related but more useful idea would be to adjust the colors of your site to match the user's local time like f.lux...

Re:Systemd redux: The end of Linux on Thursday November 20, 2014 @09:33PM (#8639495)
> We're getting more monolithic and coarse-grained.

At the same time we are pushing more heterogenous software stacks to production and configuring more specific dependencies for our applications.

It almost seems like you're using cross-platform as a pejorative. ;)

Re:How My Book Launch Went on Wednesday November 19, 2014 @01:20PM (#8631635)
As the founder of a "game engine startup", I found this post extremely useful. I'll be purchasing your book if only to support your marketing research.