skysight-inc/HackerNews huggingface dataset:
There's no silver bullet, but NumPy comes pretty close sometimes. Here's an example where I achieved a 300x speedup with regular old CPython: http://stackoverflow.com/questions/17529342/need-help-vector...

The trick is often to somehow get Python to hand the "real work" off to something implemented in C, Fortran, C++, etc. That's pretty easy for a lot of numerical and scientific applications thanks to NumPy, SciPy, Pandas, PIL, and more. Lots of libraries are exposed to Python, and you can expose more either by compiling bindings (see Boost.Python) or using ctypes. If you do this well, nobody will notice the speed difference, yet your code will still look like Python.

And sometimes your performance problem is not Python's fault at all, such as this lovely performance bug: https://github.com/paramiko/paramiko/issues/175 - a 5-10x speedup can be had simply by tweaking one parameter that is no fault of CPython or the GIL or anything else (in fact, Go had basically the same bug).

What I'm getting at here is that performance is not just one thing, and the GIL is a real and worthy spectre but hardly matters for most applications where Python is relevant. Your Python is slow for the same reason that your Bash and your C and your Javascript and your VBA are slow: you haven't profiled enough, you haven't thought long and hard with empirical results in front of you about where your program is spending its time, your program is improperly factored and doing work in the wrong order, or perhaps you should just throw some hardware at it!
Social Media and Business what you NEED to Know
I believe tbastos believes that there is little chance the police will be punished. The kid absolutely will bring, and win, a lawsuit if the parent comment is true.
> An idea for a content reset, would be to warn the user before it actually happens and/or having a visible countdown widget that tells you when reset happens.

Right, that doesn't sound too hard, we'll aim to add that.

> I see that the npm dependency might draw away people, maybe provide and add-on that depends on npm and makes it easy to integrate CoffeeScript, LESS, SASS?

Or perhaps we'll just ship the compiled CSS / JS and provide instructions for people who want to use LESS etc in their Wagtail sites.
Indeed, if something goes wrong I want the same level of skill as the guys who landed the plane in the Hudson or saved a 747 after a volcano stopped all 4 engines:

http://en.wikipedia.org/wiki/US_Airways_Flight_1549
http://en.wikipedia.org/wiki/British_Airways_Flight_9

The famous announcement from the latter emergency:

"Ladies and gentlemen, this is your captain speaking. We have a small problem. All four engines have stopped. We are doing our damnedest to get them going again. I trust you are not in too much distress."
I have recently quit using reddit because I got tired of the bickering, particularly in the more mainstream subreddits. The smaller subreddits seem fine. While there is also some bickering in HN, it seems to me to be much more moderated.

It seems like once a community grows large enough, so do its number of assholes, but the asshole count must be absolute, not relative, since it just takes a few to ruin the fun for everyone. This is why HN seems to me less bickery than reddit right now, because it's more focussed on just one niche.

What really did it for me was the pack rape mentality that parts of reddit exhibit. I want nothing to do with a website that allows this:

http://betabeat.com/2012/08/reddit-watches-with-glee-as-camg...
I'm not a music guy, just came to say congratulations on getting a product out the door, and I hope it's a success. Looks like it provides a lot of cool functionality. Changing the sound when the user vibrates their finger over a cord is cool, not sure if other apps do that, seems pretty unique.

It would be cool to see a demo of like, 5 professional musicians playing a song using only this app.

Good luck!
Some early FB code got leaked a while back... Master software craftsman, Zuckerberg was not.
A Weekend of Hacks, Hackers, and Dodgeball or a New-aged Career Fair?
Have you tried Polyplayground for iPad? It's the same ball park but has more depth (synthesis) and versatility (mappable grid, MIDI output) and also implements some really interesting music pedagogy research.

Your app has a nice feel and UI. How are you synthesising your sounds?
Just tried it on my server. Works for localhost but times out remotely
In my experience, cases where the system needs to be fixed right now are fairly rare, and in those cases the task is usually delegated to the person with the most system experience anyway.
I somehow managed to get into a hypnotic flow and pass like ten or fifteen pipes.

Never ever before I have felt this much like being the world wide number one at something. Awesome.
From my comment in this thread:

If you go through a pound of coffee a week (which is likely for two adult coffee lovers), that means you'd have to spend almost an hour per week to roast your own coffee using the Behmor.

It just depends on what "economical" means to you, I suppose. One hour per week roasting/managing is significant to me. If I could find a place that would sell me just-roasted beans in 5lb or more bags, it might be worth it. I paid $300 for the Behmor and I pay about $8-$10 per pound shipped for green coffee. If you said, "Scott - here are some great tasting beans that we'll roast for you right before we ship them, and they are $12 per pound", I would sell my Behmor. At this point I've learned most of what I'll learn about roasting coffee - now it's just a matter of spending that hour a week. If I could pay a company $2 per week to reclaim that hour though...
Shell Script to the Rails Heavens.
Zootool shutting down [email]
I try to use MDN as often as I can; however, MDN often obscures the immediately useful information under copious amounts of text while W3 schools usually offers a quick use case that pretty much covers it.

eg.
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/S... vs. http://www.w3schools.com/html/html5_webstorage.asp

Also, if I don't get there by google search, I have a really hard time following a tangential thread through MDN.

I usually just open both resources—and often a third related blog post or SO question—and whichever one helps the best, I use.
It's called non-repudiation, and it's one of the bigger problems in the information security realm when it comes to legal evidence.
From my understanding.... if you go back 20+ years, pilots used to be paid a lot more. Which lead to a lot of people going for their commercial pilots license and flooding the market. This let the major airlines drop the salary of starting pilots. Looks like the salary games drove away enough people and now the problem has swung the other way.
Some of the tests are the default django assert 1 + 1 = 2, but there are quite a few others scattered about the directories.
Firefox for Android supports text reflow. You need to enable it in the settings.

I'm not sure what "readable text size" means.
The problem with moderation at StackExchange went full throttle when they shut down the 3-year old Answers.OnStartups community just because it was receiving fewer questions per day than the minimum needed.

It was a thriving community of over 18,000 users and who's who of the tech scene contributed answers: Patrick McKenzie (patio11), Dharmesh Shah, Jason Cohen. Not to mention that Joel Spolsky himself was active in the community.

Unhappy with how they closed the community down with just a short notice, several people (myself included) rebuilt the platform from the ground up and re-launched the startup community at http://www.brightjourney.com
Yes. And that's exactly what's been implemented in modern versions of ntpd (> 4.2.7p26, 2010/04/24... yes, 2010).

The problem is:
1) No one has upgraded NTPD (and often can't, for embedded devices like IPMI controllers)
2) This can be fixed by basic configuration in older NTPD versions, but up until recently many linux distributions were shipping vulnerable configs.

This particular command (monlist) is a management query, it's in no way related to serving up accurate time.
UDP is a message. It's the same as sending a letter with the sender's address on. You can lie about your own address, but if you want the other person to send you a reply it's better to write the correct information on.
Are you operating in an official capacity ? If you have any links or materials I would be interested.
When I was younger and struggling with issues, I did exactly this - plot my happiness on a graph. It was one of the few things that helped me get through a day, seeing that there are ebbs and flows, and for every low point there's likely a high point coming up.

This app needs to be published.
cffi's API is similar to LuaJIT's, so if you're familiar and comfortable with that, then cffi might be a good option.

If you're looking at creating your whole application around C extensions for Python, as in the case with some Cython apps, then libffi might be a good alternative. I've never used it, so I can't make any empirical observations about cffi (unlike Cython, which I've used -- it's awesome).

The great thing about all these newish ways to interface with C code in Python is that we no longer have to write Python extensions in C. I like C, but writing Python extensions in C was very painful and tedious for me. So all these options are a good thing.

Otherwise, I think ctypes is a more convenient option (it's always available, no extra installations required). Also, the ctypes API is much more Pythonic, in my opinion.
How does Facebook disable browser's integrated Developer Tools?
How to Build a Perfect Refugee Camp
I pay the same for a pencil whether I use it to write a bestselling novel or to doodle in boring lectures.
Will net neutrality be a regulatory condition of the merger?
Classifier say 2:

'Programming Language :: Python :: 2.7'
How much do they earn in China?

Wouldn't be at all surprised that they have a ton of experienced pilots, but earning more than $21,000.

Is this some kind of 'trickle up effect' where cutting salaries at the bottom has squeezed those in the middle?
So, were you hired to make a site for the RCA and decided to build a CMS first? I'm interested in how this came about.
Most commercial pilots are hired from flight schools. Officers have a 5 year commission, minimum. More than likely flight officers are in for 10-15 years because no way is the AF, Army, Marines, or Navy investing millions in training and not getting their moneys worth. And you can't simply quit the military for a better job. Commissions are in 3-5 year blocks (your re-up occurs during a recession? you're probably staying) and they can stop-loss you, or reactivate you, at anytime.

Simply put, there are not enough flight officers discharging to meet civilian demand. They aren't getting $21K offers either. FAA changed the rules so that 1500hrs are required to be copilot. So new pilots are really glorified interns.

Edit: Also, military flight training is highly competitive. You can get a commission and never log a single flight. Your career is at the behest of the military's needs. If they have a shortage of supply depot officers guess where you're headed.
Debian's something I checked when I first started seeing this, and their default config is not vulnerable.

Being able tod this via localhost is not a problem, it's when it's open to the internet.
It's possible, but it's not a fun lifestyle. You live like a stereotypical broke college kid. You have to pay for your initial training, and then you spend several years instructing to build hours. Instructing pays around $15 an hour or so, but only while the prop is spinning and you're not guaranteed any hours.

Once you get 1500 hours you can make the jump to that $21k/yr regional airline job. Getting from your first lesson to this point could be done in 2 years, but that would be pretty quick. Realistically it's going to take 3 or 4.

Then you need 1000 hours as pilot in command of a jet to get hired by one of the big airlines. It will probably take 4 to 6 years at a regional airline to get those hours.

So all told you've got a large initial investment (not sure on the exact amount, a rough guess would be $75k for all the certs) and 10 years of horrible pay to get a $65k/year job. Eventually you make good money, but it takes a while to get there and if your health or eyesight takes a hit along the way it was all for nothing.
Arch - all the cool new toys.
TCP establishes a two way connection (SYN, SYN-ACK, ACK), so you can send the original SYN but the SYN-ACK will go to someone else and be discarded. UDP is fire and forget, in contrast.

There is a proposal from 2000 that is mentioned in the article (http://tools.ietf.org/html/rfc2827) that recommends that source networks filter out originating traffic that isn't legitimate. It is being implemented slowly.
If there is a shortage, are the mechanisms of capitalism not supposed to make the salaries higher?
This looks like an amazing educational tool for music. Of course, I would feel silly "Oh you play piano? That's cool. I play my iPad here."
We currently need npm for lessc, as part of django-compressor, to compile LESS. We want to reduce the dependencies as much as possible, so we're looking into converting to SASS / SCSS, which has a pure-Python compiler, or simply shipping the compiled CSS / JS files for people who don't need to change them.

Thanks for the congrats!
Don't forget to test your IPMI controller as well, if you have that exposed to the internet!
Buffering input commands? This is a deeper fighting engine than I would've assumed!
Wow, between you & Trufa, one would think that joining the military necessarily means killing people. Yes, it happens. But let's not pretend that's the only thing that happens. Maybe air-dropping food to refugees & people in distress[1]. Airlifting people out of bad situations[2]. There are plenty of examples.

Most of the people I've known and worked with in the military never had to kill anyone.

[1] http://www.af.mil/News/ArticleDisplay/tabid/223/Article/4678...

[2]
http://www.af.mil/News/ArticleDisplay/tabid/223/Article/4667...
Bedrock Linux, as it gives me many of the advantages of other distros at the same time. Stability of Debian/CentOS, access to cutting-edge packages from Arch (including AUR), ability to have portage automatically compile things with my preferences from Gentoo, library compatibility with Ubuntu for things like steam, etc etc.

Note: Main area it is lacking is the "just works without setup"; it does not compete with Ubuntu/Mint/etc on that front.

Full disclosure: I'm the founder and lead developer.
std::hash_set<std::string, int> point;
point[“x”] = x
point[“y”] = y

This is a very interesting implementation of a set...
Scala-js v0.3 released
I wasn't counting the default django 1 + 1 test, but I did find one actual test. It's obvious that a lot of work was put into this, and I think it has potential. My suggestion to the creators is to start with tests from the beginning. However, it's not too late to start now and add tests for everything. It's a lot of work initially, but it will pay off for years to come.
Your analogy only address's the issue form the consumers point of view.
What about if you make a product, should you be able to force a distributor to carry your product?
As a one time wealthy, educated black person, I take offence at this characterization.

I live in mostly white neighborhoods because that's where I and my family wanted to live.

It was not to show that we had "made" it or to give the neighbors the opportunity to demonstrate their lack of racism. I think, far too often, people focus on race and don't realize that class distinctions are frequently better indicators.

On that basis, it seems quite reasonable to choose to live amongst people who are similar to me and not amongst those who aren't.

As it turns out, I'm now in South Africa and it's easier to see my point.
Most of my neighbors are black or "colored" but I live near them because it's a nice
neighborhood and not becuase of their race.
The game needs to be ported to TCL to unlock Elmo.
No wonder I don't feel safe flying those airlines. Not only are many of their jets 20+ years old, but I also wouldn't feel safe flying with someone willing to work for 21K in a job that literally has the lives of people in their hands.
If for some design reason you wanted to add curly quotes around all links “” or perhaps display an attribute of the link as a hover-able tooltip, it would be better to use pseudo elements rather than adding content for the sake of the design.

Things that are subject to change and attributed to design choices rather than content choices are much easier to add and remove via `:before` or `:after` vs. going through the code and adding or removing elements.
So sorry for your loss. I lost my father about seven years ago. The time following that period was excruciating. It sounds like your mindset is in the right direction. Just make sure to surround yourself with people that support you.

Here's my story. If you ever need to bounce ideas back and forth or just need someone to talk to, send me a message via twitter and we can take it offline.

https://medium.com/philosophy-and-psychology/97b44f17cd81
I have a friend who was a personal pilot. He makes more now as a mid-western Radio DJ...with better hours.
There was a GDL session about QUIC the other night - https://developers.google.com/live/shows/4578775316561920

Slides here - https://docs.google.com/presentation/d/13LSNCCvBijabnn1S4-Bb...
Making the future illegal.
-- They have no special power over Bitcoin

-- one enforcing use of its currency

Interesting. From my point of view Bitcoin - is an agreement on protocol. We trust the idea and protocol to be secure.

What if someone changes this protocol and you won't be happy with these changes (and you can't control these changes now) - does it mean you were enforced to use it?
Sure. But how many 'municipal' providers are there in places where a lot of the HN activity lies (i.e. SF/Silicon Valley) in say Mountain View, Palo Alto, Santa Clara, Redwood City, Menlo Park, San Mateo, Cupertino, Los Altos etc?
It's a small patchwork all over the country.
Well, yes, it is.
And "wildebeest" is Wild Beast, of course.
The Habits of Five Amazing Founders
Thanks for the feedback. Polyplayground looks interesting, but definitely a different approach in terms of UI complexity and entry-point.

I'd love to get MIDI into Fiddlewax. Hoping we can do that for the next version.

As for sound generation, we built our own module that can handle recorded samples, synthesis, envelopes, filters, and effects. Since Fiddlewax Blue is focused on being accessible for new musicians it doesn't expose much of it in the high-level UI.

There's a lot of ways you can hook things up and generate sound on the backend, so hopefully that'll be a fun thing to work on next (especially synth configurations) to give the experts a little more to chew on. :)
I have never commented on a single HN story, and mostly stick to reading. I wanted to say that this is one of the absolute funniest comments I have ever read on this web site. Good job, sir.
> C and C++ are not the same which the author seems to think.

The part where he lost me was when he said this referring to C:

> Here we tell the interpreter that each point would have exactly two fields, x and y.

Maybe I misread that, but I don't think I did, he was referring to the C struct when he said that. It's one of those glaring mistakes that is hard for me to look past when someone says something like this.
Seems really good! Are you planning to compare it with other CMS (especially Django-CMS)? I would like to see its performances (with or without varnish).

Would you like to add OAuth support or other auth mechanisms like CAS? =) I didn't find documentation for the "WAGTAIL_PASSWORD_MANAGEMENT_ENABLED" option.
This HN no-link-doctrine is really annoying...
FWIW, here's what I got on an Ubuntu 12.04.3 server running on my LAN. It looks like we should be fine with the defaults on Ubuntu at least. (Obviously always a good idea to use ufw/iptables to block everything you don't need exposed so you don't have to worry about stuff like this).

Before installing ntp (from another host on my LAN):

$ ntpdc -n -c monlist 192.168.1.50
ntpdc: read: Connection refused

After installing ntp (from another host on my LAN):

$ ntpdc -n -c monlist 192.168.1.50
192.168.1.50: timed out, nothing received
***Request timed out

After installing ntp (from the server itself):

$ ntpdc -n -c monlist localhost
remote address port local address count m ver rstr avgint lstint
===============================================================================
91.189.94.4 123 192.168.1.50 1 4 4 1d0 54 54
...
Thank you! I was considering doing the same thing.

Did you use the original user data they had? There is a lot of value in most of those answers.

I thought all was lost when I was no longer able to contribute anymore to a Q&A for startups.
I used to skydive years ago, at a small grass field airport, jumping out of Cessna 182s and such.

Many of the jump pilots worked there mainly to accumulate hours for other qualifications.
They may reject it because there are a number of mood tracking diaries already.
OP here. So is this a grad student/resident/apprentice type arrangement? If so, seems like one of the less worthwhile ones.
Personal pilot? As in PPL? PPLs aren't allowed to work as pilots.
Fair and Square (merchant problems with square)
Android version please.
As another home roaster, I often see people talking about how much cheaper buying green coffee beans is vs. buying roasted beans. I thought the same before I really got into home roasting.

My perspective is that, if you only consider "price" as your differentiator, yes the green coffee beans are cheaper. If you look at the Sweet Maria's site, they are selling just-roasted Rwandan coffee for $15 per pound [0]. They sell the exact same green beans for $6.35 per pound [1]. But that's deceptive because (a) Sweet Maria's has a $15 minimum purchase (so you can't buy just 1lb), and (2) the $15 roasted coffee includes shipping. I just checked and, to ship 3lbs of coffee (minimum order of green), would cost $11.30. So my "out the door" price for 3lbs of green is $30 which makes it $10 per pound. If you compare that to the $15 "out the door" price for their roasted, I'm saving $5 per pound. Sweet.

But how long will it take you to roast those beans? Two adults probably go through one pound a week. So you saved $5 by buying online, but it takes me about an hour a week to roast a pound of coffee using my Behmor. Even if it only took me 30 minutes, would I trade 30 minutes of my leisure time for $5? That's the part that people don't consider enough, I think. At this point in my life, I am enjoying trying all the different coffees and learning about the various roasts - so the Behmor stays for now. In five years though once I've learned all that I can learn and have become more "refined" in my tastes", I wonder though whether I'll still want to be spending an hour a week roasting beans...

[0] http://www.sweetmarias.com/sweetmarias/roasted-coffee.html

[1] http://www.sweetmarias.com/sweetmarias/rwanda-kivu-kanzu-1-l...
I just did. And either a) I'm doing something terribly wrong or b) ctypes.Structure is slower than Python class with __slots__.

I would bet on a) - I've never worked with ctypes before.

EDIT: I bet on a) and I was wrong: ctypes offers no speed advantage.