skysight-inc/HackerNews huggingface dataset:
Totally agree. The oddest thing is the example DHH picked and the language he used:

> If your Java code has Date date = new Date(); buried in its guts, how do you
> set it to a known value you can then compare against in your tests? Well, you
> don't. So what you do instead is pass in the date as part of the parameters
> to your method. You inject the dependency on Date. Yay, testable code!

It suggests that the whole of functional programming has completely passed him by. To re-write that paragraph:

If your Java function has Date date = new Date(); buried in its guts, then you have a side-effect which makes it much harder to reason about what that function is doing. Pass the date in as a function argument, and you now have (or are closer to having) a pure function: pure functions have no observable effect on the execution of your program, other than to compute a result given their inputs. A pure function like this is easier to reason about, easier to test, and easier to parallelize.

It just feels like DHH is fighting yesterday's battles. Dependency Injection in Java? David, the 1990s called and asked for their book on Spring back. Why can't we be comparing Ruby's approach to something like the cake pattern in Scala (http://jonasboner.com/2008/10/06/real-world-scala-dependency...), or even the pure keyword in Rust (http://static.rust-lang.org/doc/rust.html#pure-functions)?

If DHH spent some time building something with Clojure/Haskell/OCaml/Rust/Scala/F# and less time racing cars, he might come up with some interesting views again.
Yes. It is basically a word processor with realtime latex layout algorithm.
A couple hints:

1) You most likely won't solve it in a browser

2) The actual text is NOT encrypted

3) It will take 4 to 5 connections together to solve the problem
Lyx does not have pager and its realtime layout engine is worse than word.
More like cavity_search = true on the way out!
I think it's the sheer size of the surge in demand that's unique. It's 1.5-1.75 million kettles going on at almost exactly the same time.

With 25 million homes in the UK that's 6% of them suddenly wanting another 1000w of electricity.
Why? I've had that done, it is literally just a web-camera pointed at your eye. Takes two seconds, doesn't hurt, and is really no worse than having a "normal" photo taken (since it is a normal photo, just of your eye!).
Funny but this is a real challenge and it's solvable.
At some point you will need to test the unit that create the time object. With DI you could swap out the implementation of time that gets created and use some implementation that returns a constant time. But that still pulls the information about the implementation to use from some global scope: The DI library needs to know which implementation to use, and that information will come from some global scope - a configuration of some kind, thus making that argument a moot point. In ruby you can modify the classes at runtime to mock such functionality. You could argue that modifying the time implementation is some form of DI - you're changing the implementation at runtime.
How to apply fade and slide effect with jQuery
Ok! Anyway i'm off caffeine for a quite some time now.
Something like this: http://www.ted.com/talks/donald_sadoway_the_missing_link_to_... ?
PHP functions to work with strings
capitalismis.com is satire, I hope?
I remember a time where "donation" wasn't a synonym to "pay for a job I did for free". The teachers offer their valuable time and knowledge, they shouldn't ask for "donation", they should ask for rightful pay for their time and the amount of value they create their students.
I'm curious as to how much longer the Schengen space will subsist. As EU-skeptic parties rise in opinion polls again, it will not be long till all conceivable social issues are blamed on immigrants.
Thailand ranks among best places in the world to retire
In Canada their "random checks" seem to be via a machine/automated process. You stand on a mat and an arrow either directs you into a line or to additional checks, so there can be no racial or otherwise profiling.

It is a great system, I really enjoyed it when I was there.
The instructions are not encrypted they are interspersed at repeatable intervals.
Amphetamine, α-methylphenethylamine, or amfetamine is a psychostimulant drug of the phenethylamine class that produces increased wakefulness and focus in association with decreased fatigue and appetite!
Www.michaelkorsmacbooktote.net
See above for hits, it can be solved without any knowledge of the internal process used to display the free text.
I like how Miguel de Icaza put it[0]:

>"Reality Distortion Field" is a modern day cop out. A tool used by men that lack the intellectual curiosity to explain the world, and can deploy at will to explain excitement or success in the market place. Invoking this magical super power saves the writer from doing actual work and research. It is a con perpetuated against the readers.

>...

>The biography has some interesting anecdotes, but fails to answer any of these questions. The biographer was not really interested in understanding or explaining Steve Jobs. He collected a bunch of anecdotes, stringed them together in chronological order, had the text edited and cashed out.

>Whenever the story gets close to an interesting historical event, or starts exploring a big unknown of Steve's work, we are condescendingly told that "Steve Activated the Reality Distortion Field".

>Every. Single. Time.

>Not once did the biographer try to uncover what made people listen to Steve. Not once did he try to understand the world in which Steve operated. The breakthroughs of his work are described with the same passion as a Reuters news feed: an enumeration of his achievements glued with anecdotes to glue the thing together.

>...

>The "Reality Distortion Field" is not really a Steve Jobs super-power, it is a special super power that the technical press uses every time they are too lazy to do research.

[0]: http://tirania.org/blog/archive/2012/Nov-07.html
Having played around a bit with the original 1998 Mindstorms hardware, I found that the main factor restricting what I could build was the limit of three input and three output ports. Its a bit disappointing to see that the EV3 has added only one more input and one output port.

If Lego had made the physical connectors smaller then I don't see why eight or more sensor inputs couldn't have been allowed. I appreciate that outputs are limited by the on-board power, though.

Still, this looks very tempting.
I'm glad to see Lego continuing this line of logic - it's amazing what can be done with these mindstorms with the proper tools.
When I was much younger (about 12 years ago), I built a bipedal walker with gimbaled hips and articulated ankles and knees out of two first gen RCX units, and it managed to get me a free trip to ISEF, which in itself was pretty neat. I was using NQC [1] to program them in tandem, which at the time was pretty neat sauce. I've fallen way out of the loop with these, but it seems like Lego is encouraging good work that removes a lot of the stumbling blocks you'll see when using more bare-bones components like raw servos and arduinos.

My only wish was that Lego would start selling 'engineering' sets for those of us that grew up with them to use for prototyping - I got through a few hairy sessions in college using the tub I'd kept from when I was younger, but with the sets these days there's a lot of stuff you don't need. Something like the fischertechnik toys but with lego's distribution and selection of parts. Alas.

[1] http://bricxcc.sourceforge.net/nqc/
Looks like you need to bookmark the url that is generated when you save. It's probably still in your browser history (with the same title of as your post).
I wrote a slightly frivolous one-page app which scrapes National Grid frequency data:

http://www.caniturniton.com/

Someone used its API (/api/json) to make a load-sensitive kettle:

http://elsmorian.com/Projects/CarbonKettle
Ironically, it is poor security practice to print names on access cards. But it is fairly common.
> armedchildren.com

I'd like to know the project behind this one!
If you start measuring some metric, the team will adapt at improving that metric, but inevitably this will spill out into distorting or lowering performance in some other aspect. So as you point out, such survivor board might make team focus on fixing trivial/easy issues, but the issues requiring big time investment might go unfixed (as it would make 10 trivial issues pile up while you fix 1 old hard ticket - which will make you look bad).

Just make sure this is what you want.
A lot of that I think is to keep the complexity of a single unit fairly low. On the older models, you could set up IR communication without too much hassle, and it looks like these new ones can speak over bluetooth and wifi. I'm not sure if they support it out of the box, but I'll bet an API is forthcoming for microsoft's robotics studio or similar, and will make coordinating multiple units a bit simpler.
Basically, these days I recommend cmake as the sane build system that runs everywhere. I don't know about PCs running MacOS, but it works just fine under Linux or Windows and you can do whatever magic you want; it makes simple things easy and complex ones possible.
Sure, I'll elaborate.

I read the argument as "Gnome versus dwm", not as "Metacity versus dwm".

Every moment of my life that I spend editing fstab, running mount commands, or scripting my system is a moment that I could spend doing anything else. If I install Gnome, it will automount USB drives with no intervention on my part. Call this "low interface complexity." The same thing happens on OS X and Windows.

Now remember that it's not just about automounting. It's about monitor calibration, input devices, keyboard layouts, text conversion software, assistive technologies, wireless network configuration, printer configuration, etc. "Myriad" is a good word here.

If I uninstall Gnome, all of those tasks get shoved into the "unsolved" category, except for one — window management. For each task I have to find an application for it, compare different applications that solve the same task, and configure it. If it's something that has to always run in the background, like automounting, then I have to figure out a way to make it start when I log in. Call this "high interface complexity."

What I'd like to get across is this: optimizing for the number of lines of code is the wrong thing to optimize for. It's wrong (incorrect) to optimize for a large number of lines of code, and it's wrong (incorrect) to optimize for a small number of lines of code. Lines of code is a poor metric for almost everything, with the exception of bug count.

You should always be optimizing for "quality of life". If your idea of a higher quality of life is using a more minimalistic window manager, then what we have is a disagreement of a spiritual nature.

To me, Gnome sucks less than dwm by a mile.

And yes, I still know that Gnome is a desktop environment and dwm is a window manager.
DI is why I see AngularJS as the best of the new JS frameworks out there. Given current JS language limitations DI makes AngularJS so testable, and you cannot say this about other tools like Backbone.
It is the fault of the "lowest level employees" that they're rude, hostile, and short with everyone.

Unfortunately I don't think most American citizens really get to see the true face of their immigration officials. I've actually had them talk to me in a way that in any other "service" industry I would have made a complaint (but you cannot due to the power inequality, and the risk that they would add a "note" to your file).

So I eat it. But they're really rude, and it has nothing to do with their job. Most other countries manage to get just as much information about you and make exactly the same decisions without acting that way.

But police/immigration/etc in the US is kind of militaristic and authoritarian even at the best of times...
Develop E-commerce to increase conversions
Many open source developers (I imagine more than 25% but probably less than 50%) are from countries like China, Poland, Brazil or Russia. We didn't have computers in seventies. We didn't hear about waterfall except from the books blaming it. We never counted our lines as a metric. It's not in our culture, which is rather young.

So it could rather be about cannibals.

You seem think that by assaulting me you get free out of a stupid statement. Guess why, you don't.
depends on what you mean with difficult. PHP was the first "real" language I learnt and back then I was like 13 years old. Maybe I wasn't working on amazing project but I had a decent knowledge. Now, after about 10 years and having tried many many other languages when I look at some PHP code I find it more confusing than other but still not the worst(which is Perl for readability IMHO). One thing that I think really add to much clutter to the PHP code is the $. It might be needed but if now find it kind of "hurts" my eyes. Another this is that is not object orientated(mostly, or at least the more used versions) and I think => adds as much noise as $. Personally I find much easier to read string.length than strlen($string). But in the end I think all of this things come end up being just personal preference.
Nvidia Outs Next-Gen Tegra 4 Quad-Core A15 LTE-Enabled Mobile Chip
that plus more goodies.
Ask HN: How do you test your ideas?
I tend to start by building a prototype and getting feedback on it, but it's not very scientific. What are some effective ways to transition an idea from inception to realization?
But, it's in the title. It shouldn't have been edited out.
This system is fairly poor in the UK. It has an ostensibly useful feature whereby local radio stations transmit a flag to say they're currently broadcasting traffic information. This then instructs car radios to interrupt what the listener can currently hear (eg. a CD, a national broadcast) and play the traffic bulletin from the local station. Sounds useful.

In practice, FM radio signals travel so haphazardly that in most areas, you're likely to be interrupted several times an hour with travel news for towns and cities 40, 50, 60 miles away. I regularly get the bulletins for places as far afield as Shropshire, Humberside, Merseyside and Lincolnshire. If, while driving, the signal becomes too weak for the 'traffic off' flag to be received, the radio will simply stay tuned to the FM frequency until the listener manually cancels it.

In addition to this, illegal 'pirate' radio stations have started to take advantage of this feature - some of these transmitters have the traffic flag set to 'on' constantly, with the obvious effect of switching listeners' radios to the illegal station regularly.

Most people have it turned off!
Well they shot themselves there. The CLR was supposed to be the portability layer i.e. IL code would be dynamically compiled. Unfortunately due to Microsoft's schizophrenia, it never became a first class part of the OS over say non-portable PE x86 specific binaries.

Technically they could use dynamic translation, but building a working translator for x86->arm would be an absolute bastard as x86 is such a non-orthagonal mess of an architecture.
Didn't they try to resolve this by issuing redress numbers or whatever? When I enter my passport on most airline's web-sites it gives me the option to add a redress number, which in theory should allow them to identify you as NOT the individual on the no-fly list.

See this:
http://en.wikipedia.org/wiki/No_Fly_List#DHS_Traveler_Redres...
I'm not really confused, just not very fond of cobbling together a usable system out of several dozen different applications, which I must individually install and configure. Gnome fixes that problem.
Ruby is (often) statically typed
>My only wish was that Lego would start selling 'engineering' sets

Is this is what you want?

http://www.legoeducation.us/eng/product/lego_mindstorms_educ...

817 Technic parts go get you going.

It is marked "Lego Education." I ordered two sets using my .edu email address and no one complained.
> Which is: If you have coffee almost every day, does it still provide you an alertness boost?

I have been on and off coffee several times and my anecdote is that if you have coffee almost every day, it does provide you an alertness boost, but:

Your average alertness over the course of a day with coffee (when you're adjusted to it) and over a day without coffee (when you're adjusted to that) are about the same. The one with coffee just has more ups and downs. Without coffee it's more even. IMHO that evenness is a good thing.
Antwort - Responsive email templates that even work in Outlook
OK, I give up. I don't see any save button. I don't see any way to post. Lost one test file already.
This Andy Rutledge fella seems like just the type that has an overly simplified, reductionist point of view, which is akin to a child's mind. "Capitalist idealists" are too often blind to the reality of the world, seeing privilege as some made up idea because they don't understand their own.
"This is self indulgent crap."

Agreed. The crying bit was particularly bad. For an article that could have focused on how far some individuals will go to respond to their customers, she some how managed to turn the focus onto her "plight" for actually getting what she damn well intended in the first place (albeit not from the stereotyped deliverers she'd expected).

This whole article says more about her than anything else.
Depends on the kind of tea. For black tea, near boiling is good, but for whites and oolongs it's not. Though I suppose the British are famous for black tea.

In the UK (& Ireland) "tea" means black tea. You can get fancy teas, but "tea" on it's own just means black tea.

We put milk in it aswell.
"How is any of this better for consumer freedom than just Windows 7?"

Perhaps not for consumer freedom, but think about it in this way: You're getting a laptop largely subsidized by a corporation which is somewhat more guaranteed to successfully run your own brand of Linux. If you buy a PC with Windows and use only Linux, you are paying a lot for something that isn't even tangentially useful for you.
Scroll down my friend.
British immigration are as bad as US immigration.

They aren't even polite, which as a Brit' myself I am both shocked and disappointed with.

I'd like to see changes there...
Carpet Cleaning in Lavender Hill SW11 | All Carpets Cleaned
Teaching IBM's Watson the meaning of 'OMG'
> how is it acceptable?
Because developers feel that it is and have done so in past. Because things that required and unavailable have been put down in libraries that developers can import and utilize. Because there are many libraries that compete against each other to provide better interfaces for their users. Because they are used very widely and very successfully. Because it's simplicity has made it usable among the masses who may not have otherwise participated in content creation on the web if CS101 was a requirement. Because its benefits have outweighed its faults. Because when people suggest alternatives (Dart?) they realize that they need to make them compatible with JS because it is not only popular but also quite efficient now.
Windmills are already causing major network problems.

http://www.bloomberg.com/news/2012-10-25/windmills-overload-...

I would guess due to a design flaw in the market rules (or the rules for the interaction between different national markets).

I think most large windmill turbines are designed to be able to be feathered to limit electricity production - they need some way to not fail when winds exceed generator constraints - but maybe designs use wind stalling or other dynamics to prevent that? Alternatively they could build dumping loads close to the wind power - e.g. warm some seawater with big resistors!

Edit: I love the quote "Wind farms in West Texas earlier this year were paying utilities to use their electricity on particularly gusty days because they can still earn $22 a megawatt-hour in federal tax credits." LOL.
They would always use electric kettles. The idea of putting (basically) a pot on a stove to boil water sounds like still going outside to an outhouse to go to the toilet.

When renting a house for a holiday in USA once, my family went out to buy an electric kettle to make tea & coffee, and they weren't as common in shops as we thought. That was a weird eye-opener.
Korea will not sell off to Google. We want our game Yushino back.
Yes. But only if it would matter to current skype-users.

I think Facebook would be able to replace skype quickly (since everybody have Facebook), but not Google.
I know everyone hates on the US Immigration people, but as a fairly regular traveller to the US (normally at least twice a year, mixture of business and pleasure), I've never had a bad experience. The guards I've dealt with have never been less than professional, and some have gone out of their way to make smalltalk ("You have nice handwriting" (?), "Your birthday is the same as mine.") etc.

I even got let back through immigration from baggage control as I had a bad stomach and really badly needed to use the toilet, No guns were drawn on me.

Of course, it probably helps that I'm white and British, but I thought I would offer up at least one counterpoint.
Exactly what I thought. If, for example, Netflix would create a plugin for ChromeOS, it would be easier (or less dificult) to port that to a "regular" Linux desktop as well.
After a quick browse I found this: http://www.legoeducation.us/eng/categories/products/universi...

Certainly closer to real robotics, with servos, metal parts, etc.
The Night They Drove Old Dixie Down
(is it true that Americans don't have enough power through the mains to boil a kettle?)

Wait till you find out that they don't really use kettles. They put an old fashioned pot/kettle on the oven hob....
.@homedepot Shame on you for sending people across town after their workday to solve my problem.

I actually expected to see that at the end of the story
open-app.org open-app.de
Are you thinking of doing something similar in BR?
If you have no money then you may be there to make some (is the thinking).

If you can show you have enough money to support yourself and get out again then it will make your life easier. However they will already need to be suspicious of you to take an interest in this.
It's certainly valid to get inspiration from the human mind. Still not sure that requires a body, though. I often wonder how a human brain would react if it were born into a completely different environment (for example some virtual reality). Also aren't there humans with brain damage and hence very limited sensory input?

I suppose the human brain has some specializations hardwired into it, like face recognition, learning a language and so on (dealing with a body...). That is certainly something to think about.

Anyway, I liked Jeff Hawkins book, I am sure you are doing good work at Numenta. And dealing with a body is one of the things some AI should eventually be able to do, so it doesn't hurt to follow that route.
And given the climate in the UK for most of the year the excess heat means your heating needs to do a little bit less[1].

1. But probably net less efficient in that the majority of houses in the UK use gas for their heating and gas is cheaper than electricy kWh for kWh in the UK.
I would assume that the National Grid have done such an analysis and determined that it isn't worthwhile, seeing as how... they still employ a bloke to do the job!
Yes, I understand there are cases like these, and even worse.

I guess it also depends on the location, I crossed only once, through Vermont

My experiences in airports entering the US (as someone who needs a visa) have been without hassle, thankfully.
Thanks guys - I'd forgotten about lego education, as I'm unfortunately outside of the range of mechanical prototypes these days (ended up as a materials engineer). However, it'd be better if lego publicised these some more!
Linux crowd is just happy because of no more "I need %s windows-only software". But in everything else -- you're absolutely right, it's horrible that this type of vendor-locked systems even exist.