skysight-inc/HackerNews huggingface dataset:
Throwing some thoughts on this entire conversation from the perspective of someone who's been using C++ for a long time:

One of the reasons why the C++ for (:) syntax above feels like such an improvement over the traditional iterator for loop is that it cuts out a lot of noise that's the same for almost every container loop you ever do. The same objection could be raised as in another branch of this conversation, that you might have other kinds of ranges on an object, and I've even done that before (as obj.something_begin() and obj.something_end()). But even before ranged-for came it almost always turned out ugly and I regretted it.

If most uses of for in Rust call iter() (I don't know that they do, my experience with it thus far is really minimal, but it does seem common so far), it seems like a case where use should lead design and the extra noise cut out.

Basically, if I have more than one kind of range on an object I'd probably rather have functions on the object that return the 'unusual' ranges for the iteration. So rather than having:

for i in obj.iter() # the normal thing that I use all the time
for i in obj.bfs_iter() # something I use sometimes to be more explicit
for i in obj.dfs_iter() # another thing I use sometimes

I'd rather have:

for i in obj # the normal thing that I use all the time
for i in obj.breadth_first() # something I use sometimes to be more explicit
for i in obj.depth_first() # another thing I use sometimes

Or if there is no sensible default, to be forced to name the thing I actually need.

It seems entirely sensible to me to expect the for loop construct to take an Iterable object. It actually makes more sense to me than for it to take an iterator directly, conceptually.

On the question of 'what if both?' I'd propose making it so hard (or impossible?) to do that. If for took Iterable, and Iterators also implemented Iterable as "return this", there'd really be no concept of having both (except in that if you have an iterator, it is always both) and for itself would be left fairly uncomplicated while still being able to take both Iterable and Iterator objects.

I'm probably missing some reason why this isn't an obvious way to go, as a definite Rust newb, but it would feel natural to (my C++-rotted perhaps) brain. Also I know there's no language changes until post-1.0, so for now it is what it is.

[edit] Huh. Ok, re-reading it looks like this was almost all covered ground. Never mind.
But I trust your rabbit and it can happily take as many of my dandelions as it wants.
Locust – Load Testing Framework for Humans
What would you recommend in terms of resources for learning the things you've mentioned?
What's idiotic is that nowhere do they actually explain that's the reason they block access, instead they just give a meaningless non-answer about it being a commercial venture, ignoring the fact that plenty of other BBC Worldwide run commercial things, such as http://www.bbcshop.com/, are available in the UK.

All it would take is a slightly more apologetic page that spells out the actual legal reasons they can't make the content available, and people would probably get a lot less annoyed. Instead, every time a link is posted to BBC Future, people have the same reaction and ask the same questions. And if you search, you'll find plenty of blog posts and articles with people complaining and trying to figure out why the content is blocked in the UK, with absolutely no effort on the part of BBC Worldwide to clear things up.

It really seems to be a case of total incompetence on behalf of BBC Worldwide. The licence fee is already controversial, and stuff like this only serves to toxify their brand and give ammunition to their enemies. It's baffling.
Cheap answer to the "deep" philosophical question: a perfect copy is an original. This comes from Quantum Mechanics.

So, if we can make perfect copies of physical works of art, they will be come as abundant as digital works of art. This could have interesting effects on the very notion of property.
Eavesdropping on a wireless keyboard (2013)
I don't know if Delphi still does that, but Wirth-style compilers also tends to avoid an AST in favour of calling the code generator directly from the compiler, and Turbo Pascal at least used to do that.
Myself as well. I really really liked Borland products. I had an emotional attachment to them. I got Borland C/C++ (3?) as a Christmas present shrink-wrapped one year and I thought it was the best Christmas present ever. Lots of people learned C using K&R's book - I learned C/C++ from reading Borland's manuals.

Long story short, when MS turned the full weight of their organization on Borland and sunk them it opened my eyes to MS's corporate behaviour. That's how I learned that MS always played dirty. It set me out on the road to looking for alternatives to Windows. It's ultimately why I'm writing this in Firefox on Ubuntu.

In ref to the blog post (or whatever it is) I thought Delphi was no more. Just goes to show, here is a link: http://www.embarcadero.com/products/delphi
TP-Link WDR3600 is still the best value (non-AC), generally available, consumer grade dual band AP router on the market. Its ~impossible to get built-in modems with dual band Wifi on a functioning software stack, a separate HG612 (DSL) works great.

Microtik can be great value if you're willing to do lots of vendor QA (for other values of vendor) in your lab before going in to production. Most of the problems are to do with community: the docs are an unloved wiki which only staff can modify; release management, QA and bug tracking are third rate; and the forum is a passive-aggressive Engrish ghetto with poor moderation. But config management, CLI and Winbox are still better than straight Linux, and boards start at $40 which can make it worth it.
Ask HN: How does Twitter know who my family members are and why?
Yesterday I signed up for a new account on twitter using a third party browser(no active logins,incognito mode) on my phone. I used a new unused Gmail email id and selected a very vague twitter handle.

After completing signup the top two handles twitter recommended that I follow belonged to family members.

I was using the internet connection at home, which seems to be the only possible common link. It seems twitter uses ip addresses to track users. The accuracy disturbs me because I am pretty sure my dynamic home ip address resets a few times a day. Or perhaps twitter uses some other factors too but I cannot think of any other common points. My user agent,cookies and email id couldn't have linked me to my family members. Any thoughts? I was using my phone and my cellular data was on but since wifi was on it is preferred. My cellular carrier's website identifies my phone number but I doubt it would share my phone number with third party websites like twitter.
OK, thanks for clarifying. Still, the point being illustrated was that a drop-in solution is rarely feasible... ie. the common HA cluster feature of redundant link-layer communications paths does add significant protection against availability loss such as the situation you describe. It's not just a software thing.
Cucumber is 95% water. Would that do?
I was hoping there would be a tool (web and app accessible) that combines email, to-do, document sharing, calendars all into one, with easy access control for each 'file'. Target users are smallish startup teams. For example, apart from each individual email accounts, there are also team ones (e.g. sales@) which multiple people can see and 'claim'.

You can achieve something similar with multiple apps, but I would need to invite the same people for each, and setup access control. Gmail for business, Office365 type are somewhat similar, but they also do not put everything easily reacheable and connected. Good is also similar, but I believe they require you to host your own Exchange backend, but a hosted solution here is probably more hassle-free.
Stenographer, Fired Over Drinking Problem, Left Headaches for Appellate Courts
I'm pretty sure that if you could add water to something other than water to get more water than you had before, that would violate the law of conservation of matter.
Your username makes me think you're trolling. Are you asking a genuine question or messing around?
When the Internet dies, meet the meshnet that survives
According to the New York Post, who originally broke the story, Kochanski often replaced trial dialogue with the phrase "I hate my job" or other gibberish [1]

[1] http://nypost.com/2014/04/03/alcoholic-court-stenographers-g...
Thanks for those recommendations, I'll check them out.
Or you could just use curl.
That's why I'll propose to my partner with bitcoin proof-of-burn, by irrevocably sending coins to an address named for them.

Of course, first I'll have to find someone who will accept that as a proposal...
Last time people were bandying about Go compilation speeds on HN, and actually posted numbers, it was trivially beat by gcc on compilation speed when I tested..

Maybe it's faster now? But it certainly wasn't particularly impressive a year or so ago.
I've been playing around with this concept for a couple of years (never having executed) and was expecting to be disappointed but this is very thoughtfully executed. I only wish this was open source :)
I can't re-edit my post. Here's a related patent[1] which they might own. The ethanol is apparently trapped by cyclodextrins, I was wrong.

[1]:http://www.google.com/patents/US3795747
There is a solid substance from which water can be liberated after transportation. Unfortunately, you need to keep it quite cold to prevent premature liberation of the water.
That is a very good suggestion!
Well, nothing stops you from trying it out and seeing what happens, right :-)

Post a job ad explicitly requiring functional programming experience and I'll bet an enthusiast will end up on your doorstep soon enough. Then you can see whether your fears hold or not.
Help me market my side project, Octopus. (http://octopus.org)
I'm yet to get an aeropress, but what was striking me most about it, was what I would consider an "internet-age packaging" - with a customer testimonial printed on the package. I thought it was brilliant and can't recall any other product that does it - then again, I don't shop much, so I could be wrong.

I wonder if they A/B tested it ;-)
Product vs Feature
Firme contabilitate
> certificate pinning as implemented in Chrome doesn't depend directly on key continuity.

But it's unsuitable for the entirety of the web. You can't hardcode all certificate fingerprints of the whole internet inside the browser.

>> The migration away from the CA model is called "certificate pinning".

> key continuity destroys the incentive to attack sites by compromising CAs

We need to ELIMINATE CAs (CA as in some third party (google, Verysign, GoDaddy, ...) who you have to trust). The whole concept of trusting a CA is broken, and pinning does nothing to address that, at least not in the proposed TACK implementation.
a multipart http response saves what kind of file?
That is simply not true. Firefox does hard-fail with the default settings.
A free full-time 7-week coding course in London
I'd do:

for x in all does .iter()
for (x,y) in all.enumerate() does .iter.enumerate()

And were there's no one iter() like trees, only by them it would have to be specified, as they wouldn't have iter():

for x in all.depthfirstiter()
for (x,y) in all.depthfirstiter().enumerate()

95% of times 5% percent of the constructs are used, why not making them pleasant?
Regarding some of what you mentioned:

https://www.youtube.com/watch?v=zul8ACjZI18
Thanks! I've been working on this on and off for the last couple of weeks and getting more ideas and feedback before releasing an initial version.

Also here's a better screenshot of what a poster might look like: http://imgur.com/YMGwlCo
For my shame I now mostly use a Nespresso, but my Aeropress is certainly the best coffee _placebo_ I've ever used. I have no idea if the coffee was better or worse, but it certainly felt like I was sciencing up the perfectly crafted liquid with space-age tools. It's a lovely ritual, especially when it breaks you out of a hard problem at work to grind the exact right number of beans, measure the exact right temperature, steep for the exact right number of seconds etc.
When I started dating my future wife, she gave me a silver Celtic knot ring of hers as a token of affection + a reminder of her because at the time she was working several hours and a plane ride away. It was an inexpensive, but loved, token as it was personal to her.

When we decided to get married, we approached several jewellers to make us a pair of wedding rings using the silver one as a template. Most 'commercial' and many small jewellers didn't have the skills or inclination to make the rings from scratch, preferring to suggest we bought a pair 'off the page', but eventually we found a local guy who'd just opened his first shop having followed his father into the trade after an 'old school' apprenticeship - he'd just obtained the right qualifications to be classed as a proper jeweller and when we explained our idea he was positively enthusiastic about the project, so he hand-pierced and finished off two Celtic knots in 9ct gold (they had to be low-gold content to keep the rings tough enough to stay in shape with all the knotwork holes in them - but the metal type/content wasn't important to us).

We were delighted, the young jeweller was thrilled that he had done a good job and also had a commission he could show off to other prospective clients in a photo portfolio. Apparently his father was also proud of his work.

After a couple of months we went to see the jeweller because we found the bands were pinching a little underneath our fingers and asked him if he would curve/narrow the backs; he replied that he would consider the work to be 'finishing off', so 'no charge', but how about he kept the small amount of gold he'd be removing. Fine by us.

So, 15 years on, we have two completely unique, hand made wedding rings that were crafted by someone with a real passion for his art. We have a 'story' and love them for what they symbolize and not because they hit a price point (in fact they were much cheaper than factory stamped ones).
There are some more active forks like https://github.com/mk-fg/convergence/ but they too seam to not really work in current versions of Firefox.
Right, I use a Philips Vacuum Trimmer [0] to keep my facial hair short. Since a trimmer is a one-off purchase, the combination of both would be good in your case, just trim then shave?

[0] http://www.amazon.com/exec/obidos/ASIN/B003U8ESI4/B004D9R9OM...
Been using postman forever. But it needs lots of work.
I'd like to inform you that you have bad taste and your post doesn't have anything to do with the article.
Thank you for taking the time to make the first comment, just makes me think that something more is needed.
Btw, if you want me to review, send me the link to your product.
I got Concrete Mathematics a few days ago, after someone recommended it. My background is physics, and I find the "mathematicians' style" to be very awkward to learn from. This book is excellent for me - concrete examples - it is always trying to solve specific problems, so if I don't follow the theory, I can always refer to a concrete example and try to understand that specific case. This the way I learn best/fastest.
> Wait, what? Electric kettles aren't in every house there? That's insane!

Anywhere people don't drink that much tea, use a Moka pot for coffee, and boil the milk.
Integrating Windsor.Castle with MVC
What I don't understand is the stenographer's union's objection to microphones:

Mr. DiGiovanna said digital recorders sometimes failed to catch every word,
as lawyers tend to move around the courtroom.

First, lawyers can only move around the courtroom (Perry Mason style) in certain jurisdictions. Most places have the lawyer stand behind a podium while speaking. Second, even in jurisdictions that allow lawyers to pace about the courtroom, wouldn't a wireless microphone be adequate to capture what he or she is saying? Finally, every limitation of digital recording also applies to the stenographer herself. You could strip out "digital recorders" and replace it with "human stenographer" and the statement would be equally valid.
Delphi 3 introduced me to programming in my teen years. Somehow that's why I never dived in C I guess. I remember how you only had to dealt with pointers when you used Windows API.

It took years to Microsoft to get the web right (as everyone who used Visual Studio and .NET before MVC could tell you), it's no wonder it was difficult for a company like Borland to transition.

As a PHP developer I wonder why I never tried that "Delphi for PHP".

Coincidentally I interned at Borland France during my marketing years ten years ago and developers were really passionate about Delphi.
> But what really bothers me is that you got a reply from a no-reply address.

I've had interviews where you go from frequent emails and phone-calls, everything looks like it is going wonderfully, and then you hear nothing. Silence. Even when you try to chase things up after a few days.

Having no reply is deeply frustrating, although after a few days I guess you learn to take the hint.
T-Shirts (and Other Objects) as Science Communication Catalysts
This is a course I am involved in, but I am hoping a free course of this kind is unusual enough to be of interest to Hacker News readers.
This is why I don't buy anything Samsung. If they can barely keep their company website in the air on an ordinary day, what's there to think of their actual products?

It's not just samsung.com, but their entire web presence...
You can embed the images in the CSS as data: URIs, preferably automatically as part of the build process, and get the best of both worlds.
Integrating Windsor.Castle with Web API
As long as you watch out for this: https://www.youtube.com/watch?v=1_OXM4mr_i0

and don't inadvertently superheat the water.
Do not take this personally. Companies make mistakes in the interviewing process and reject great people all the time. I have seen some absolutely amazing programmers with the chops to work anywhere look for jobs. There is always at least one company that rejects them. It's their loss.

Do not assume that you did something wrong. The mistake could be on their part. You made it through all of those technical interviews, so you will be able to find work somewhere!
No, you're wrong.

The problem is Rupert Murdoch.

> [...] making the content available to UK audiences is not
> as simple as removing the ads. bbc.com/Future is a
> commercial website produced by BBC Worldwide. Under the
> BBC’s fair trading rules, commercial websites are not
> allowed to receive unfair promotion from the BBC’s public
> services. This prevents us from being able to provide Future
> on bbc.co.uk

Essentially, if the BBC shows you this content, BSkyB cries unfair, and - in their opinion - The World Ends.
Yes, escape velocity is required. Mere position won't do it.

Remember that velocity is what carries a spacecraft away from Earth's gravitational field. Anything less than escape velocity and the spacecraft is pulled back into the atmosphere.

> What if instead of a rocket to get out of the atmosphere, you went to a specific location in the stratosphere and some sort of tow cable would be launched from a platform(maybe anchored to the moon if needed?) ...

You need to think about how far away the moon is. The mass of the cable would very far exceed the mass of the spacecraft, and it would certainly cost more than a chemical rocket, however inefficient.

> ... but wouldn't a space elevator need to at some point exceed the escape velocity for earth?

The space elevator idea relies on tapping earth's own rotational velocity, by having a counterweight located sufficiently far away that it is held perpetually aloft by centrifugal force, countered by the tension on the elevator cable. That means the counterweight must be substantially more than about 22,300 miles above the earth's surface (the geostationary orbital height). This is another idea that requires very ingenious engineering to prevent the mass of the cable from ruining the overall plan.

I think eventually people will think of something that none of us have thought of yet, using advanced and possibly future technologies, to solve this kind of problem. But it won't depend on a long cable stretching to the moon.
Same but with VHDL. Plus we did before a simplified SPARC (ARC) cpu in VHDL.
Interesting idea. So we're in Beta and looking for good ideas like this to build showing our technology. For background, we take a user's GitHub repo and deploy them into REST API endpoints hosted on EC2. Each REST API is already paired with a database with SQLAlchemy. Clients invoke their REST API to publish their code as a "Job" requiring 3 parts: inputs, outputs, and tasks to perform (states). Those tasks can be whatever is necessary for your tdd and we test Jobs directly from our Web Developer Dashboard or with our cli.

I could see something like a Final Exam repo setup where your students fork it for development and then testing based off the same code and tests are shared already in the repo and can be invoked for grading from our cli or the Web Developer Dashboard.

Some More Information on FlowStacks (https://flowstacks.com/)

FlowStacks Hello World Example
https://github.com/FlowStacks/hello-world

FlowStacks Tests
https://github.com/FlowStacks/hello-world/tree/master/tests

Endpoint-specific Database Schema
https://github.com/FlowStacks/hello-world/blob/master/schema...

Example Job Inputs
https://github.com/FlowStacks/hello-world/blob/master/src/ra...

Outputs:
https://github.com/FlowStacks/hello-world/blob/master/src/ra...

Example Job Tasks to Perform (States)
https://github.com/FlowStacks/hello-world/blob/master/src/ra...

We also support Jobs integration with Redis
https://github.com/FlowStacks/hello-world/blob/master/src/ra...

Contact me if you have more questions.

Cheers,

Jay
I have a couple simple ones off the top of my head:

- You write a recursive program the same way you write an inductive proof

- Abstract algebra and category theory are likely relevant, especially for metaprogramming. My math education hasn't included this, so I can't say much more.

- Linear algebra is just ridiculously important

- Statistics for machine learning. Also for figuring out how to combine data in a meaningful way. There are also a lot of people asking statistical questions directly, and writing programs is how you get those kinds of answers in a reasonable timeframe.
Fire in Samsung building causing worldwide Smart TV problems
Show HN: Easy photo sharing – no sign-up required – weekend project
Yes, his leaving was bad for Delphi, though good for him financially. A pity. That's why it is a good thing that Free Pascal and Lazarus are there now.
Author here.

While some are solving important and complex problems, I created yet another photo sharing service :) And no sexy features included.

The basic idea is to try to be as simple as possible without needing to create an account nor needing to download any special client. A simple way to gather photos from an event.

This is mostly a project to try, to test, to research and to learn new stuff.
They were gone for a while (couldn't even query their whois record) but they're back and everything seems fine now.

Interestingly, I could still shoot them an email (perhaps because the relevant records were cached by my nameserver). Hi, Samsung!
They've been tackling a fire in one of their buildings http://inagist.com/all/457783829101428736/
What sustains the price is primarily the restricted supply which is tightly controlled. The long (and impressive) marketing campaign was only one part of the strategy.
Hhhhhhhhhhhhhhhhhhhhhhhthhhhh