News for hackers. Stuff that matters.

gonnakillme

Re:Why Don't Schools Teach Debugging? on Tuesday February 11, 2014 @01:26AM (#7216144)
Does anyone have advice for learning this kind of "intuitive, heuristic, holistic way of grokking circuits"?
Re:Show HN: Buy stuff through your terminal on Friday January 24, 2014 @10:51PM (#7119772)
Installing python libraries and programs through pip is pretty standard.
Re:Diabetes Gene Common In Latinos Has Ancient Roots on Thursday December 26, 2013 @02:25AM (#6965525)
No. It's disputed, but Neanderthals almost definitely died out before the human migration to North America.
Re:Learn Haskell Fast and Hard on Monday October 21, 2013 @11:15AM (#6586043)
You'll really need to be able to use Monad and monad transfromers before you'll be able to use an idiomatic Haskell library, though.

There is "Write Yourself a Scheme in 48 Hours"[1].

[1]: http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_H...

Re:What’s New In Python 3.4 on Sunday October 20, 2013 @07:40PM (#6582101)
I don't think pattern matching is necessary for ADTs. It's useful, but you could have e.g.

> if MyType.ConstructorA(a):

> ...

> elif MyType.ConstructorB(a):

> ...

or even something like

> with MyType.ConstructorA(a) as b, c:

> ...

> else with MyType.ConstructB(a) as d:

> ...

a "with/else with" construct would be a fairly straightforward addition to Python's "context manager" interface.

Re:Ma’am, Your Burger Has Been Paid For on Sunday October 20, 2013 @12:45PM (#6580447)
I took that as a statement of fact (akin to "Chick-fil-a faced a public relations disaster ...") rather than a value judgement.
Re:Will Nintendo sue? on Sunday October 20, 2013 @12:27PM (#6580378)
I wonder if a possible solution here is to distribute a Makefile or something that extracts the assets (sprites, music) from a ROM. I think this would make hosting a live version somewhat dubious, but the code should always be able to be distributed.

N.B. I am not a lawyer.

Re:Wolfram Alpha’s New Data about Pokémon on Thursday October 17, 2013 @02:02AM (#6563891)
The veekun pokedex[1] is on github[2] and they have a crapload of csv[3] files available.

[1]: http://veekun.com/dex [2]: https://github.com/veekun [3]: https://github.com/veekun/pokedex/tree/master/pokedex/data/c...

Re:Shumway - Mozilla on Tuesday October 15, 2013 @11:15PM (#6557811)
The similar software was called Gordon, and was for Flash. :)
Re:Why I Hate Frameworks (2005) on Sunday October 13, 2013 @12:26PM (#6543094)
You'd rather maintain a complete homespun project than maintain a fork of an existing one?
Re:UTF-8 – "The most elegant hack" on Saturday September 28, 2013 @11:19PM (#6463975)
One way to think about text encoding is that it provides a nice way to represent indexes into a big array of glyphs: "unicode". Fonts map (some) of these indexes to graphic representations and provide "font hinting" -- clues as to how different letters should be rendered at different sizes -- and kerning information.

Usually your desktop environment is the thing that handles all of this, providing widgets for other programs to combine to create GUIs. I can't find it right now, but you can probably find e.g. GNOME/GTK's implementation.

(Re: Textmate: code is typically rendered in monospace font -- where every glyph has the same size -- so that it has the same alignment in every font with every renderer.)

Re:The Unitarihedron: The Jewel at the Heart of Quantum Computing on Tuesday September 24, 2013 @12:36AM (#6436004)
I'm not really sure what to make of this response.

> The Bayesian says, "Uncertainty exists in the map, not in the territory. In the real world, the coin has either come up heads, or come up tails. Any talk of 'probability' must refer to the information that I have about the coin—my state of partial ignorance and partial knowledge—not just the coin itself.

See, QM doesn't actually work like this. There is no hidden variable. This has been proven[1].

[1]: http://en.wikipedia.org/wiki/Bell%27s_theorem

Casting QM as a complex-valued probability space is how it's usually done.
Re:Why didn't we patent the spreadsheet? Were we stupid? (1999) on Friday September 20, 2013 @04:41PM (#6420381)
Presumably you yourself have an unlimited license? ;)
Re:Mario Party N64 dice is predetermined on Monday September 16, 2013 @09:48PM (#6397114)
I don't think there are very many quantum effects working on coin tosses. It seems (to my relatively inexperienced eyes) like something handled pretty adequately by classical mechanics.
Re:Mario Party N64 dice is predetermined on Monday September 16, 2013 @07:03PM (#6396471)
If you all aren't familiar with Mario Party, here's what they're talking about: for a number of applications like turn order and movement distance, a Mario-style block that looks like a rolling die appears over your character's head. When you jump and hit the block, it settles on a single number. Apparently, you get the same number regardless of how long you wait to jump. The issue here isn't that the PRNG is reseeded or anything, it's that the appearance of player autonomy is an illusion.
Re:SICP translated to JavaScript on Saturday September 14, 2013 @07:55PM (#6387588)
s/call StopIteration/raise StopIteration/g
Illinois has IPass. IPass definitely works at tolls taking EZPass; I don't know if the reverse is true.
It even works in the midwest! I drove to upstate New York from Chicago without paying a single old-fashioned toll a few years ago.
Re:Shot tower on Thursday September 12, 2013 @07:32PM (#6377678)
That's an interesting interpretation, but I assumed they were referring to the temperature difference.
Re:PhpMyAdmin Turns 15 on Tuesday September 10, 2013 @02:11PM (#6361824)
I'm not sure an IP whitelist gives you anything -- it provides a handy mechanism for escalating privileges, both for intrusions on a machine at the "known-good" IP and for unintended network access in general.
A monitor typically has a _maximum_ resolution.
Re:PhpMyAdmin Turns 15 on Monday September 09, 2013 @09:44PM (#6357544)
Restricting SSH to "known-good" IP addresses is less flexible and less secure than public key authentication.

(Restricting mysql access to localhost and using an SSH tunnel is fine practice, AFAIK.)

Re:No I won’t lean in because I stand up on Friday September 06, 2013 @01:11AM (#6338790)
Don't you realize there's a catch-22 here? Women are expected to be well-dressed, made up, and smiling and at the same time people like you criticize women for vanity.
Re:Fedora 20 Will Be Named Heisenbug on Tuesday September 03, 2013 @08:38PM (#6324840)
We should stop linking to Softpedia. It's a spammy site that mirrors tons of software projects (e.g., most if not all new releases on PyPI) unofficially in order to serve ads.
Re:The Worst Programming Environment in the World? on Sunday September 01, 2013 @04:53PM (#6312107)
It's sort of misleading to present this without the racist drivel that surrounds it.
Re:Why I Hate Frameworks (2005) on Tuesday August 27, 2013 @11:56AM (#6284225)
It /would/ have been less unsavory if he were talking about his boyfriend, though; women are exposed to violence (especially in relationships) in a way and at a scale that men just aren't. The way this is presented -- of /course/ everyone can relate to wanting to kill their ex-girlfriend -- is especially gross.

I'm not sure what Hans Reiser has to do with anything and it's a little strange that you brought him up. Wikipedia says Nina Reiser's disappearance was in 2006, a year after this post was made.

Re:Why I Hate Frameworks (2005) on Tuesday August 27, 2013 @11:21AM (#6283972)
Sorry for being unclear -- I'm referring to these parts:

> And, if you want to kill your ex-girlfriend, there's really no substitute for a ball-peen hammer.

> (Maybe they've never had ex-girlfriends. Or maybe they killed them with icepicks instead.)

Re:Why I Hate Frameworks (2005) on Tuesday August 27, 2013 @11:10AM (#6283904)
Jesus, the casual misogyny in this article is staggering.

Older »