skysight-inc/HackerNews huggingface dataset:
This doesn't seem to be really utilizing the value of lazy enumerators.

If this was correctly using lazy enumerators, it wouldn't require a range to be passed in, and you would take values from the resulting lazily evaluated enumerators until you found one >= 1000. All the laziness does here is prevent the select from being evaluated until the sum is called.

I don't have 2.0 installed, so this probably has bugs/errors/etc, but I believe this is what he was going for.

module TakeUntil
refine Enumerator::Lazy do
def take_until(&b)
next_obj = take(1).first
if yield(next_obj)
[]
else
[next_obj] + take_until(&b)
end
end
end
end

class FunctionalRuby
using TakeUntil
def sum_of_multiples_under(max)
(1..99999999).lazy.select { |x| (x % 3 == 0) || (x % 5 == 0) }.take_until { |x| x > 1000 }.sum
end
end

FunctionalRuby.new.sum_of_multiples_under(1000)
Why would the government have to act, simply because the system stopped? I'd assume that they'd just tell everyone, "Okay, your jury trial is on March 19th, 2843. We'll be holding you without bail until then."

There's no reason to declare requesting a jury trial a terrorist act if they can already hold everyone indefinitely.
If you were planning to write a high performance game using python, most likely you wouldn't be using the vanilla cpython interpreter, but instead using cython (http://cython.org/) to write extensions in essentially C for all your high performance code.

I think it's important to remember one of the core tenants of python is to first write in python, then optimize the bits where necessary in C by moving those calls into an extension - by using cython you get to move to C like speeds by just annotating your existing python code.

Also - I think a fairly more common approach to using python in game development is to write the core in C++, then call out to python for scriptability purposes (e.g. configuring characters/levels) - rarely would one write a full game in python unless extensions were heavily used, for the reasons quoted above.
Apple gets more attention because of their size, but Samsung has recently caught some notice on these labor issues[1].

[1]: http://www.theverge.com/2012/12/14/3767272/samsung-htns-supp...
Here's a WebRTC Sprites Generator. The computer graphic, not the soda.
Also, pretty sure this is Satoshi. Not entirely sure. First transaction in 2009, 10 days after the network was brought up.

http://blockviewer.com/#30117199
That's a very bad idea, you should call your lawyer/a law firm to prepare for the impending deluge of threatening letters and lawsuits filed against you.
TL;DR: Not dead.

Also, he replied to me when we asked him on Twitter:

https://twitter.com/wycats/status/292391457313132544

then clarified:
https://twitter.com/wycats/status/292391589643423746
How I Handled Extortion by a Recruiter
You're thinking of the old Entrepreneur Program, that'd been around since the 1970s, and is now under a moratorium. As mentioned in a different comment here, that program was substantially different.

This new program, for one, includes permanent residency and is the first such program in the developed world to do so for entrepreneurs. It puts an end to what many countries (and indeed Canada until now) had, which was to offer the uncertainty of bureaucracy where one's long-term residency was concerned. Not exactly inviting, hey?

What I thought neat during the announcement yesterday was that they recognize that some startup business float while others sink, but your permanent residence status doesn't get taken away if your business sinks.

On that note, it is worth pointing out that Canada is making major headway in what they call a "faster and more flexible" immigration system. http://www.cic.gc.ca/english/department/media/releases/2012/...
Ask HN: What are your biggest challenges dealing with text data?
Creating a text analysis startup and would love it if people answered this survey: https://www.surveymonkey.com/s/textprocessingsurvey

Thanks!
Yeah and then they retaliate by sending you two pallets of crap toner cartridges, had enough? No? Still not going to pay? Ok here are five pallets of crap toner cartridges sitting in your mail room. Call up the dump, "What? Toner? That probably a toxic waste, you'll have to make an appointment and pay the extortionate hazardous waste fee." Then the toner guy calls back "You either pay us or next time it will be 10 pallets."
Show HN: HostedBootstrap - (Twitter) Bootstrap files on AWS CloudFront for free
Hey HN folks. While getting acquainted with using AWS CloudFront & hosting websites on S3 I came up with the idea to host the latest Bootstrap CSS & JS files for free. My AWS account provider agreed to support the project. Enjoy!
When you install BItTorrent, you become a distributor. You better make sure that you have distribution rights for any IP that you are distributing, or you are violating copyright law. That part is straight forward, and has been pretty much settled in the last decade.
"I'd rather just read x % 3..."

Lots of people don't know of % works. Just as a lot of C / Java / C# programmers do not know the difference between "if a() & b()" and "if a() && b()".

Note that I'm not saying it's great to use "if a() & b()". All I'm saying is most people do not know the difference.

Try it if you interview people. It's fascinating. And, no, I'm not disqualifying people if they don't know the difference ; )
That's a great point -- in reality, alot of the systematic injustices baked into the system are measures taken to deal with the sea of drug cases that clog the courts.
Ask HN: Why am I never happy?
I've been in the web design industry for a while now. Worked with a fair share of startups, had some success as a freelancer before that and am now happily committed to a start up working on amazing things.

But often when working on a new feature, or trying to redo my own personal site, I'm never truly happy with the outcome. At most I'm content with some of the things I push out. I'm not saying I release crappy designs but I'm not sitting there thinking "Shit, this is the best thing I've ever made."

Is this bad? Am I supposed to be extremely happy with my work?
Gotta disagree here. Muni is centralized in downtown, which is where most want to be. It then shoots out to cover dense residential neighborhoods. Some possible lines may be missing, but other than maybe the T line, all existing ones are important.
Note to those reading Moxie's comment that if you don't enable HSTS, and do have resources that reasonably require TLS (like a login page), and you get audited by a 3rd party (like because an enterprise customer requires it), the auditor will ding you.

HSTS: Not really optional in 2013.
Show HN: 1 Year on, Our Visual Management Console for AWS
How can one say:
And not a single one of these game is using that "Component Entity System".

That seems like an impossible statement without deep knowledge of the inner workings of the popular games you are referring to, which you certainly don't have access to.

Also, CES is a fairly longstanding design pattern for game development (at least 10+ years) - I refer you to this comment: http://news.ycombinator.com/item?id=4907998
The skill to tie a bow tie is indicative of ones willingness to learn skills that are not necessarily "essential" but are still useful. You're right that odd does not translate into spending extra time for an interview, but it does translate into caring more (assuming that the "odd" thing is something akin to a bow tie which indicates an attempt to look more refined and / or valuable within the context of social norms). 3 of course there are other ways of standing out. That doesn't mean that bow tie's aren't one. Regarding suits... I never mentioned suits. Bow ties can look quite good without a suit. Just like a well chosen standard tie.
Now those kids will starve :(
I'm not a Keynesian, so I don't make arguments about AS/AD except in the context of "here is what the Keynesians believe".

Looking at it the other way, if 50% of high skilled people moved to a different country, it would be a disaster. I just don't think it would be a Keynesian disaster. If anything, AD should hold constant while AS dropped, leading to an increase in employment.

Note that I'm disputing your reasoning, not your conclusion.
What a great way to distribute malware. Host it on a server somewhere, encode the URL in a QR code, and print just the code, blown up large, with no descriptors to printers everywhere. People will be so intrigued they'll just scan it. Aaaaaaaaand infected.
learn some self control. i have a smartphone, i don't want it to break. i run it, it doesn't run my life, i'm more efficient and better for it. my last smart phone, i bought used for $90 and i used it for a year and the only reason i'm not using it now is because i got the nexus 4. no one has to spend $1000 on a smart phone.
3-D printing technology could make efforts to curb weapons impossible
Worth noting that the attack that compromises your private key is going to cause much bigger problems for most sites than decrypting TLS sessions.

If you're handling state secrets or privacy for dissidents, EDH makes sense. I would guess that very few YC companies (as a relevant sample) are well served by it.
So I'll be the guy to ask it: What's the problem with underage workers? As long as it's voluntary, the conditions are okay and the pay is fair, who does it hurt?

Some societies don't have the luxury of an idle childhood. I don't feel right telling some family the choices they make in the face of extreme poverty or starvation might offend my first world sensibilities, so therefore they shouldn't get to make that choice.

Should we work at fixing the root problems which drive children to work? Yes. Should we fire them and let them starve in the mean time? I don't think so.

I'm happy about the education and guaranteed income that Apple is demanding, because it looks like they're trying to fix the actual problem, rather than just playing a PR game and kicking kids out on the streets.
More people restore data on Monday and other data loss stats from Backblaze
sorry, i probably shouldn't have replied. difficult to know whether the context is "quickly help me understand what this means" or "give me a precise answer", but for the web, with a technical audience, i should lean more towards the latter...
In those days, Voodoo cards were all the rage. There was a binary Glide library available for Linux; Mesa could link against it and give you full OpenGL (with some limitations, such as texture size) support. GLQuake and Quake 2 ran; and non-3D games could certainly have been made to run had the developers cared to. (I coaxed StarCraft into running with Wine, but it didn't have IPX support so no LAN play.) About a year later, the Quake 3 demo and eventually Quake 3 itself ran under Linux.
at no point was it suggested that the bow tie was the most important thing you could do. As @troutwine suggested, being clean and hygenic, and having manners goes a long way, and I would argue are all far more important than what tie (if any) you are wearing. You are absolutely correct in your implication that a well fitting suit trumps a bow tie. This does not mean that a bow tie would not ALSO be a good thing.
Hack for the environment at EcoHackSF
I think that law dates back decades. I don't think it applies to non USPS carriers though. That said my Google-fu is weak against this particular law.
That's an excellent breakdown - you have a much better eye for the equipment than I do. Total bill looks around $30,000. Rent is probably $800/mo for the 36 months they took to record, so there's another ~ $30k. The total is expensive for a hobby, but within startup finances. This was the first studio album by this artist but not the first album, so this compares well to a bootstrapped startup.
Apple Surrenders to Exxon Mobil as World’s Most Valuable Company
I've screamed this elsewhere already, it feels like smalltalk is back, and maybe even GeneraOS ?
I agree with everything you say but continually find cases where things have to be rewritten in Cython / using the CPython C-api or moving core logic to numpy. Knowing that you cant be interactive if your solution requires

a) allocating more than 160k objects

b) creating more than 22k numpy arrays

c) entering a with context more than 3700 times

d) doing a single for loop of over a million elements

can save you time from the get go. I am not suggesting that you cant write fast interactive code in Python, I am saying you wont write fast code by accident.
Check out https://www.wisecashhq.com. It's basically a burn down for personal finance, and it answers the question of "How much money will I have in two weeks?"
This is truly an old hack, from the days of Altavista, you can find all sorts of open devices and even file folders(I think they've censored those results now) on the internet.
This is absolutely not true for insurance data, where the task is to predict expected losses per policy and (in any given year) perhaps only 1% of policies will have any losses at all. Even if your statement were true, this sort of analysis has nothing to do with business intelligence. The goal is to minimize adverse selection in a competitive marketplace. There is no such thing as "good enough". (If there were, I would be out of a job.)
Let's build NSObject
"When new violations are found, Apple requires its suppliers to return the workers back to a school chosen by the family and finance their education. "In addition, the children must continue to receive income matching what they received when they were employed. We also follow up regularly to ensure that the children remain in school and that the suppliers continue to uphold their financial commitment,"
>Edit: shameless plug. My stealth mode thing should change this a little bit (for certain investors).

Plugging a stealth mode startup? C'mon man spill it, you know you want to, and now we're all curious.
Ack! Not available for me yet. Is it all the goldsrc games, or just HL? Ok, really all I want to know: CS 1.6 available?
Some scanners (and printers, for that matter) store cached copies of recently scanned/printed items. Probably you could grab those if you knew what you were doing.
The bulk cipher isn't the bottleneck; it's the number theoretic crypto that kills performance. RC4 is already very fast. And prioritizing RC4 also mitigates some real-world security problems with legacy client software.
Physician transitioning to Start up. Completely lost. Advice needed. 
Hi HN,
I am a long time lurker, and I have learned immensely over the last few years. With all the knowledge and advice found on HN, I thought I could solve a problem I encountered in medicine by using the internet and technology.

I did all the research in this particular segment of the market and started on my journey to create my first MVP. I realized I didn't know how to program, so I sat down and learned how to use Drupal. Drupal became too restrictive for my needs. I started learning Ruby and Rails. Learning how to program from scratch was not getting anywhere.

This is where I need your advice. I really want to get this product completed. Even if it doesn't make me any money, I think it fills a need and I think it would be great for society in general. I don't have the programming skills at the time to do it myself.

This brings up a few questions: (Please bear with me, I am new to this field)

1) I really believe in this idea and will invest to get a developer/programmer to do this for me. I looked at elance but there are wide ranges in prices. What resources do you guys use to get developers, or does everyone make their product by themselves?

2) I honestly believe in my product and I have the expertise for the medical part of it, however I would love to work with someone who has the other skills necessary for a start up. How do you guys find a cofounder?

3) I am willing to leave my high salaried physician job for this endeavor but how do you guys get mentors/investors/cofounders. I looked into RockHealth, etc, but they all seem to cater to 20 something out of college students with multiple founders.

Thanks in advance. Any advice would be appreciated.

Thanks again.

If anyone is interested in chatting, email me at admin@pillbox.me
This is probably what most people call "perfectionism". I myself have this... "curse", if you want. It's perfectly normal to think that every piece of your work is not the best thing, cause by doing it you get a tiny little better, which for perfectionists is enough to look back and judge strictly. Learn to accept some little things here and there once in a while just to maintain normal levels for free time and sanity. :)
So, you're suggesting that Sir Winston Churchill looked "like a tool"? There are many individuals over the years, who have looked very stylish in a bow tie. As @mberning points out with his image, the fact that some people look like tools wearing an item does not mean that all people look like tools wearing one.
While I'm interested in this (on a similar note, heroku's postgres app has been great for me), it seems like having to install and manage Rails is an important thing for new people to learn.

This is especially true if one wishes to push code to production and so on--even with when using Heroku, one still needs to understand the command line side of all of this.

It's also pretty easy to do these days.
The idea that convicting the innocent is the ultimate injustice is not an argument, it is a moral stance.

That moral stance accepts the possibility of human error to a degree which makes it impossible to meet the standard you propose.
You can look at Tokaido's source code or even build it with Xcode if you want: https://github.com/tokaido
I suspect the main issue is that the kind of people that forge documents to get children into a job may also be the kind of people that wouldn't worry about fair work conditions or fair pay.
Proposition HN: Let's start a "personalized" club/group
Ever since Aaron Swartz died and even before that, there were all kinds of people asking for help/guidance in several forms here on HN.And we should do something about it.

I was thinking of starting a private club/group and actually have regular meetings each day/week so we can try solving different problems we may face, personal or technical.I am sure there are many users here that want to talk about something or just help someone else but they are kind of limited here.Of course you can help someone by posting something useful but you can't have a real conversation.It was not made for that.So we should turn this into something positive.

I want to point out that this is free.No tax required, no scams or anything evil you might think of.I want people to join simply because they want to.Nothing else.I don't have a detailed plan yet but we can definitely work this out.This is an opportunity to make friends and have some fun.There are many possibilities.I am also opened to suggestions.

Those who are interested in joining please write me an email.

Thank you.
What's new in Padrino 0.11 and 1.0
Let's keep in mind that Exxon and Apple are the world's most valuable publicly traded companies. There are a number of state-owned 0&G companies that are more valuable than both. I believe I read that the market cap, if it were to go public, of Saudi Aramco would be in the 5-10 trillion dollar range.
This is not news :/... Hacker or otherwise. The volatility of a stock is not interesting. The long term implications of this inversion are essentially moot.
Love #3
I've lived in Chicago all my life (on the south side where I grew up, on the north side, and now right up on Austin on the west side), and no you don't. Not to mention that your assertion is so out of whack that you can refute it with a single Google search.
You're assuming that he won't murder anyone in prison.
This is my area of expertise and I concur that the article is a thinly-veiled advertisement, but my account is relatively new and I don't seem to have the ability to flag it.
ForkingRecipes
libc++, llvm's c++ stl

http://llvm.org/svn/llvm-project/libcxx/trunk/
You could consider going to a hackathon... Its a good way to meet people, kick your idea around. There are sometimes health based hackathons. I don't know where you are based, but every fall there is a Hacking Medicine event at MIT.
I ate by myself at Gordon Ramsay's three-Michelin-Star restaurant in London, and got the 7 course tasting menu. It was awesome! I took photographs of everything and detailed notes. The maitre d' kept coming over to chat with me, and I was treated like royalty. I don't know if this is because they thought I was a food critic, or if they just treat everyone so well. It is a small restaurant.

More recently I ate at Frank Pepe in New Haven and a couple at another table invited me to eat with them. How often does that happen in the US? Maybe all the time if you eat alone! But I felt like I was in Europe.

They kept wanting to know if I was a food critic. They seemed a bit skeptical that I just love good food. The fact that I have a nice camera might make me look more "professional".
> And... Drumrolls: simply "iterating" over a seq made of a hundred elements in Clojure apparently takes more time than that.

To put this into perspective, in Supreme Commander you have thousands of units, shooting tens of thousands of bullets/missiles/shells each of which is being simulated by a physics engine with accurate collision detection that actually takes the shape of all the models into account (so if an airplane hole in it (http://www.supremecommander-alliance.com/uploads/RTEmagicC_B...) then a bullet coming at the hole will fly through the hole.

Video example: https://www.youtube.com/watch?list=PLwzh5b6Jwbq8xFe0TCW4BSA9...

ClojureScript is great but if you follow the idioms then you'd likely have problems testing a single bullet for collision against a single model, let alone tens out thousands against thousands (and building the spatial data structures to support that). And then remember that this is just part of what needs to happen each frame, you also need to update the trajectories and locations of every object, render the world to the screen, synchronize the actions of each player with each other player, compute the sound based on the location of the camera, etc.
> You are replying to a comment which clearly states "I loved Black Mesa," and then go on to suggest that he enjoyed Black Mesa.

He was replying to a comment that stated that they didn't enjoy Half-Life but wished they had, and that Black Mesa let them do that. The reply is correct; Black Mesa and Half-Life are different games.

Half-Life is a good game, but it's also overrated because it was so novel for being narrative-driven at the time. It's still a Quake-like arcade shooter at its core, which is great but not new anymore, so people going back and playing the original expecting to be surprised may be disappointed.
Lego accused of racism with Star Wars set
Nicely done. I was worried when I saw the headline that he wasn't going to take security into account...
The issue comes down to the legal and moral definition of consent.

How old must a child be until they are wholly fit to make their own decisions? How do you define public policy around this, written to incorporate the whole of the public and not just the outliers? It is absolutely impossible to try to give special exceptions on such a large scale. This leads states to define a minimum age at which a child can give full consent and be legally bound to contracts.