skysight-inc/HackerNews huggingface dataset:
I stick a 'binding.pry' (pry gem) in the body of the method I'm trying to write, and I trigger it with a test that has all the correct parameters (i.e. the happy path).

I then write my code in the REPL. I can use 'ls' to look up available methods dynamically. Complex ActiveRecord queries are much easier to prototype. Finding the right method isn't usually too difficult. And pry supports prefix completion at the first level. Assign the result to a variable, and you can do more completion at the next level.

For loops and if-branches, I typically take the bit of data that is relevant to the loop body or that if branch, and work with it separately, to develop that branch. But it's more usual for me to use map and select than explicit loops in any case.

I copy each finished line of code from the repl into my editor, as and when I'm happy with it.

This method of working is also why I don't see any benefit from using RubyMine. I use emacs, and primarily I rely on global project regex (using helm-git-grep and helm-projectile) to navigate the system.

(A happy coincidence is that the default readline key bindings are emacs style, so a lot of what you learn in emacs maps straight over to the repl terminal.)
Yes Google TV was a flop, but the Nexus Player could be hugely successful.

People hate being advertised to, but they put up with and and they clearly identify 'native' ads as just more advertising.

Regarding point 3: Sorry, I wasn't clear - I didn't mean product placement in the James Bond film. I meant that Google can simply buy the right to screen the movie and run their 30-second ads at the appropriate points (ie. like movies on regular TV).
It was filed here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1087963

There's also this earlier bug that seems related:

https://bugzilla.mozilla.org/show_bug.cgi?id=1045391
Come to Luxembourg where kids are required to know 3 languages by age 10 and 4 by age 13.

Learning a language is not impressive in any way.

The only people who's mind was blown are probably people living in large countries like the US, the UK, France ...etc.
I really enjoy working with SML (I've used sml/nj and parrotml) - and would love to use it for "real" projects, but until it actually has decent unicode support, there's just no way I can.
1 stars also
> - Upgrade to newer version always fails. I'm left with a broken OS at the end.

I'm pretty sure that this is an issue of having a more sophisticated package management.

OS X and Windows are basically huge software bundles that are dropped on a drive. They rarely change their internal structure gradually (Windows takes an odd middleground of basically keeping all patches around). It's a well understood process and easy to reason about: copy bunch of data A to location B, make sure it matches a checksum. Ship some parts in double in different versions, to support older versions. All the issues I ever had with that were with all the packages software I handbuilt on top of that.

OSes fully built on packaging software from ground up, e.g. apt, rely on the assumption that the package tree is always problem-free and that you can migrate any custom evolution of that tree to a new standard version. While this works formidably for smaller changes (I just want to add a package), where the potential breakage is contained to a rather limited set of packages, possibly close to the leafs of the tree, this gets problematic if you want to change a package on the top of the tree.

I think this gives a lot of power to the approach of immutable machines, combining both approaches: fine-grained dependency-tracking and resolution, while avoiding the evolutionary problems by always rebuilding the system from ground up on any change.

FWIW: I love a proper package management. But I don't believe in its infallibility.
Would you be protected from this injection if your drupal database tables all had prefixes?
Mosh (and its tolerance for high packet loss) helps Iain escape from an elevator
> For me the object system on Ocaml was just too much

What do you mean by that ? The current consensus about the object system in OCaml is "don't use it", even if there might be cases where it will describe your system better.

The standard library (both the real stdlib and Jane Street's Core library) don't use objects so you can pretty much ignore this part of the language if you want to.
Buddy of mine told me it was pretty bad, and that when the non-rehearsed questions came up he'd continue in English after a few words. Considering his wife is Chinese, I can't say this is mind-blowing. I'd downvote this as a celebrity-worship post.
Corona – Build and manage virtual machines from Common Lisp
Because there's "learning" and learning.

French people "learn" german and english but are terrible at it even after learning it for 10 years.

Scandinavian people learn english and are actually fluent with a good pronunciation after a few years.
Well, because there's <ANY_WORD>.js.
It's quite obvious that the links you copied have hardly any overlap, and I much prefer a simple generic name rather than a made up word which is hard to remember and doesn't make much sense.
It's not a matter of "still" - the original X1 Carbon was fine. Lenovo fucked up on the second iteration.
I think he means any laptop, period, not just Ubuntu running on a Macbook. Once you're used to having a POSIX OS that's pretty much perfectly integrated on a device with 16GB+, HiDPI display and extremely good touchpad, it's just hard to settle for Ubuntu on a Dell/HP/Lenovo IMO. So far i couldn't find anything that matches Retina display quality (including software support, which is just as important as the hardware). If I could, I'd probably switch to Linux as well.
To use your favourite tool, what trade-offs are you making?
> better laptop options

I use Ubuntu on a HP EliteBook Folio 1040. It's relatively nice hardware. The touchpad cannot really do middle click, but I always use external mouse, so I don't care.

I am sure ThinkPad T440s would be a nice machine, too.
MR PRESIDENT?
>However, since they are not registered for a full academic load during that three weeks, they count as part-time students, not full-time students, and so are ineligible for NCAA sports. Caltech's new director of athletics noticed this, stopped the violations, and reported his department to the NCAA.

That's bloody ridiculous. Add-drop period is practiced at almost all real universities.
Each photo is credited to the photographer listed at the end of the article, so I am not sure what your point is. They were likely all taken at IBGRL, mentioned in the text.
Sure, frameworks are easy to pick up. But becoming expert enough in a new platform and/or language to walk into top global companies and charge exorbitant freelance day rates for highly technical work and consultation? Personally, I don't find that "really easy" - and I don't think anyone should.
Thanks. I appreciate you taking the time to write an answer.
Eh. I use both on a very regular basis, for years. Ubuntu on my netbook and OSX on my desktop.

OSX is just a slicker environment. If I wasn't committed to a tiny form factor with my netbook, I'd go all Apple products.
DeepMind unveils broad alliance with University of Oxford
Wtewuol
I love willy add me on facebook Robbie brewster
I ditched Windows back in 2006 and it was a close run thing between Ubuntu and OSX, but I had just started a family and the combination of iPhoto and iMovie was a big draw to OSX. Also, again due to above said family, I didn't have the time to spend tinkering and configuring things. I needed something that worked right out of the box, and would keep working. That machine finally packed in a few months ago and time machine backups saved my arse twice in that time.

Back in 2006 Linux on the desktop looked like it might eventually break through and become a mainstream option. Now I don't think so. The commercial desktop OSes, particularly OSX, are pulling ahead technologically in ways Linux can't match fast enough to stay relevent. Apple can do in one or two yearly updates what would take a Linux distro 5 years or more to match. The main opening is against Windows, which is struggling to get back to providing a useable basic desktop. Yet even with MS shooting their own feet off every other release, the Linux desktop still isnt getting any mainstream traction.

It's really very depressing. I remember 2009 being declared the year of the Linux desktop. 15 years later that looks as far away from coming true as ever. I might have to buy a retina iMac to cheer myself up.
Ohh, I agree. I meant that a lot of the makers kind of knew about it. I doubt anyone would spec it in a BOM.
I am robbie brewster add me on Facebook im gay and want willy
robbie12
Similarity in European languages helps. I speak Portuguese natively. It means Spanish is very easy and Italian a bit more difficult, but can be both picked up "by ear" just listening to TV shows. French is the first latin language that really required formal teaching to learn. English is taught at school from an early age, so while I recognize I'd never pick it up autonomously, it is now in the area of "easy languages".

Mandarin is probably so far from European languages that I can't even identify the expected learning roadblocks.

P.S: kudos on speaking Dutch. Amazingly difficult language. Tough pronunciation, strange grammar (for us coming from non-germanic languages at least).
It's just a third state. I use unread for "not started", read-but-in-inbox for "in progress" and archived for "done". If you don't need that distinction between not started and in progress then sure, just leave it all read in your inbox.
People have been saying this kind of thing since the 5s debuted - is there any evidence that it's actually happened outside of the fevered imaginations of Whatif Warriors?
You probably learned a bit of the Germanic and Latin languages from a youngish age and many of it at school and over many years. It would help you to try learning some Mandarin just to realise how hard it is to learn for a very long list of reasons.
I think it's because of a stereotype in America/Australia etc that the French are very protective of their language (see http://en.wikipedia.org/wiki/Language_policy_in_France ) and would rather people learned French than "lower themselves" to using English. When I was in Paris in the mid 90s there was some sense of that.

It's probably changed now - while I haven't been to France lately, in other parts of Europe when I try to practice the local language, people under 30 always tell me "Please, speak English, we understand and it is easier for both of us."
No, it's trademark and trademark only. Generic medicine puts on the label of their products "compare to brand name XXX." There's nothing wrong with this. As long as you don't impersonate another companies mark. Is it a flagrant violation? Sure. Doesn't change that this is still (only) a civil matter.
This must be a joke. A completely insane and senseless one at that. War is not a game and shouldn't be.
Although it's undoubtedly true that much of allopathic medicine is based on religious superstition and racism, probably even more of the superstition underlying western medicine comes from modernity, the patent system, and arbitrary regulations.
How does our CSS architecture look like after getting rid of Bootstrap
Mapillary in the OpenStreetMap iD Editor
Depends on the food, there're things I've heated in the microwave that have been cooling down for the past two weeks
BIRD TURD

gotta love that one

For the rest: this is actually quite good and way more thorough and interesting than what I ever got in school ('let's make a class' style stuff). Especially the links to real-life physics etc.
There is indeed a high-risk way of doing fingerprint scanning - the way Estonia intends to do it for people who want to become its e-citizens. They want to collect everyone's fingerprints and store them in a centralized database. Good luck with that not being stolen. NSA will probably break into it the same same week it goes online.

Having the fingerprints hashes stored in a secure enclave on everyone's devices seems like a much more secure way to deal with fingerprints. The first method is completely unacceptable. The latter is more reasonable.
Right, but it doesn't work. That's the whole point of the article. Tor+random app usually equals massive vulnerability.

I should add I learned that the hard way trying to integrate Tor with OpenBazaar.

What might be fun is stenography over the Tor protocol. Anybody interested?
Not sure how helpful this is, when it says there's no method called xyz, it's pretty obvious you called the wrong method, or you called it on the wrong thing. Your first thing should be checking that you didn't call the wrong method name.. which involves looking at the error which repeats the method name that you tried to call, and the object you called it on.

Bizarre that this is a genuine hang-up for people.
UX is the product.
SOS cocu
One of the early PL/1 compilers IBM wrote in the 60's did something akin to this. It was a 'premium' feature, available in one of the more expensive compilers. Where it detected any error or wrong looking code, it would correct it. There's a story floating around somewhere on the net of one guy trying to use it... (Which I can't find at the moment.)

The first time he tried to compile with it, he used a program of roughly "Hello from PL/1". When he ran it, he got a division by zero error, because his string had been turned into an arithmetic expression. With the 1 turned into an I, which was then an unitialized variable, which then defaulted to 0.
> 3. Something you are (fingerprint, face, DNA, etc).

Add there your mom's maiden name, your parent's names and you get the point; in an authentication system "something you are" must be better used more as user names rather than passwords because users can't change them. Once they're public irrecoverable attacks may happen.

There are 3 categories of authentication inputs.

(1) Something users can not change

(2) Something users can change

(3) Something the service owners or system admins can change including time synchronized codes.

You better use 1 as usernames, 2 & 3 as passwords.
That's a good database for discovering new music groups, it's pretty accurate for the different bands I know/tried.

It's also interesting to look how the algorithm tries to improve the location of the different names, it seems to something like "I need to be a N pixel from center, and ni for group i, move to adjust and try again"
Imagine if the Chinese were able to patent the process of mining and processing the rare metals. And bombarded everyone with frivolous lawsuits. Good thing these crazy scenarios don't happen.
Show HN: Build a Shopify App in 15 Minutes with Django
Free minimalist text editor with productivity counters and markdown support
Ebola info in 14 languages(2.2B ppl)-Tech is about helping,too -Unbabel-YC W14
Martin Gardner’s 100th Birthday
Is this TMZ now?
Do you know how "image based" environments work? In short you live in the same space as your code, so when you write some new method you have access to all the "dynamically and non deterministically" code artifacts. With Smalltalk the code is always being run and you get many useful tools for querying the state of a running system. I know it's hard to believe, but you can get much better completion (not to mention refactoring support) with this approach than you get from static analysis.
If I understand the paper correctly, you can't rely on Tor for that either. You can disable other Bitcoin peers on the Tor network:

> It turns out that by exploiting a Bitcoin built-in reputation based DoS protection an attacker is able to force specific Bitcoin peers to ban Tor Exit nodes of her choice.

Section VII lists some countermeasures.

Very happy to see academics having an increasing interest in this area.
Indian voters are suffering from https://en.m.wikipedia.org/wiki/Stockholm_syndrome
Do you know many kids under the age of 10 who are CEOs of multi-billion dollar companies and who still had time to learn a language that shares absolutely no commonalities with their mother tongues?
>options are always more valuable than the underlying asset with the degree of premium based on the volatility of the asset.

No, you have this backwards. Options are always LESS valuable than the underlying asset. The degree to which they are less valuable is inversely correlated to their volatility. The more volatile they are, the closer in value they are to their underlying asset.

I.e. a January 2015 call for Apple is currently trading at $4.36 per share. That means despite apple shares being worth $103 each, you can buy options for $4.36 each. If you want a longer term you can pay a bit more. A January 2017 call for Apple is $16.65, still more than 5 times cheaper than the actual share.

What employees get are more like options on the options. This secondary option multiplies the value of the option as you have described, but it also presents really awkward conflicts of interest where employees often end up with their shares reduced or being pushed out of the company altogether (see Skype or Zynga). Even still, it's not clear whether this multiplicative value of the option ever makes it worth more than the underlying stock. It could just make it similar.
There are Automatons on display at the Museum of Art and History in Neuchâtel, Switzerland. Totally worth a visit.
OK, let's run with this a bit. Seems simple enough if you make a single pcba, but what if you're a company like sony and your product has 8 different pcbas in it, some source from other companies and some designed an manufactured in house. Whose testing process should screen the counterfeit chips? If a violation is found, who is liable? Someone has to be, because there will be a cost to the end user when the things go belly up. Also, why the hell would anyone have thought to do this in the past? I work in testing and no one creates a QC process to check for fakes during the PCBA process. You don't test the chips when you're manufacturing the board, you test the integration. Doing a full functional verification of every component during PCBA is really dumb.

No matter how you slice it, this is lunacy. FTDI was extremely short sighted here and any competent engineer or product manager will see this as a sign to be weary of incorporating FTDI into future designs. You don't want your component manufacturers playing shady stuff like this. Supply chain management is complicated enough without having to worry about devices getting bricked weeks, months, or years after you've done the engineering work.
I'm curious about what you find particularly confusing about OCaml. I'm a (relative) newcomer to the language, but I find it extremely readable, even if it's a bit clunky at times.
Redhat applies critical security fixes for RHEL5 until 2020[1], and that's why people pay the money.

Yeah, it's old, outdated etc, but sometimes if something works it makes sense to stay on it.

[1] https://access.redhat.com/support/policy/updates/errata#Life...
I don't get it. What's the logic behind silently killing a counterfeit chip instead of showing a pop-up window with "Unlicensed chip detected, drivers stopped." or smth? I'm sure most of the buyers of these counterfeit chips get in such situation without knowing and would be happy to return the fake chips/boards to supplier what in turn could help fighting the root cause, not just punishing the unsuspecting end users.
I personally have encountered many non-working FTDI cables and blamed FTDIChip for their lousy quality control, so it not only hurts the end-users but the reputation of the legitimate company as well.
Well after more than 10 years living with someone that is chinese you would hope that he at least speaks the language.

He's the CEO but his job is also to delegate.
And nowhere in the world you'll see https://en.m.wikipedia.org/wiki/Caste_politics_in_India
As a European who speaks three languages fluently, meeting someone who can speak another language is certainly not surprising. However, I think we are comparing wrong things here. As my native language is Slavic in origins, I would find learning another Slavic language incredibly easy. In fact, today I can understand more than 50% of Russian or Czech without ever learning either of those languages. Having learnt English to a highly proficient level, I then had no trouble learning German to a very high level too.

However, in Zuckerberg's case what he has done is incredibly impressive because he has learned a language which shares no commonalities with his own native tongue, all while being a CEO of a multi-billion dollar company. That alone makes it worthwhile news to community of geeks HN is.
Sml syntax is indeed very nice, and emacs sml-mode is pretty strong too. A great joy to use, almost as good as paredit.
A quick resume teardown I did for someone looking for an IT internship
A branded-title value of a vehicle with a “salvage” designation
A vehicle that has been branded with a "salvage" designation is the one that was designated as a total loss. It means that the cost of repairing the vehicle is anywhere from 75 to 100 % of the vehicle’s value. The brand is also sometimes put on a vehicle which was stolen even if it was not damaged to such an extreme level. Selling a vehicle with a "salvage" designation is hard for the majority of buyers as they are not interested in buying a vehicle with this designation. Moreover, the majority of vehicle dealers do not accept this kind of vehicle as a trade. Expect to get significantly less than the vehicle’s value when its title has the "salvage" designation.
Find us on www.calemonlawinfo.com
Definitely, learning Mandarin is way easier than any of the dialects. I tried to learn Teochew to communicate with my wife's family but the lack of learning materials and of romanization system similar to pinyin for Teochew makes it very difficult to learn.
"If you want to tell people the truth, make them laugh, otherwise they'll kill you." --Oscar

http://m.timesofindia.com/india/Black-money-case-Cant-disclo...

http://m.timesofindia.com/india/Black-money-case-Govt-not-re...
You could easily do the same by using the HTTP accept header.

"Accept: application/json" returns the json API
"Accept: text/html" returns the website
> patent the process of mining and processing the rare metals

If they were to make big and non-obvious improvements that allow everyone to mine and/or process more efficiently, then that's exactly what patents are supposed to do: they get a temporary monopoly on those improvements in return for sharing them with the world.

But I have the feeling you're just spouting off a bit :-)
What I really loved in Ubuntu is that they were the first distribution that really considered itself an OS, not "a way to install Linux" and make choices about what it should include.

All the other distributions started by asking whether you wanted KDE or Gnome, Abiword or OpenOffice, and ended up installing a bunch of software you may or may not want "just in case". Ubuntu made choices, if you didn't like it you could always change it later on or use a different distribution but you had a consistent OS to start with.
Americans and foreign nationals. Anecdotal, friend returned from China many years ago after being paid to go teach English and some other minor courses. Got married while in China and after his stint there she was granted permission to move to America with him.

Long story short, they frequent different ethnic grocery stores and restaurants and some customers will make comment about them, directed at his wife, that they fully don't expect him to understand. Needless to say he does and usually replies kindly with how nice it is today and did the see that great item on a certain aisle.

So it works both ways, for many of us the need to learn a second language isn't there and the ambition to do so doesn't work well without the need.
Truthfully I did not know what to expect with regards to hand written problems. Out of curiosity, I wrote my very neatest and gave it a try and it solved one of them.