skysight-inc/HackerNews huggingface dataset:
In python we've been having a yield statement for a long time. By far and large, it has not solved the issue of cooperative multitasking. Using it only leads to near incomprehensive code where everything becomes an iterable, and every call becomes an iteration.

Co-routines solve cooperative multitasking. Which is why they're now being discussed for python in a fashion that doesn't rely on C-stack hacks.
Kindly upload shame.css to a github.io page

This could make shame.github.io/shame.css available to all sites at no charge to the users...
I'm not sure why you find this so a priori implausible.

You're right that the CC link misses revenue sources -- but isn't that the point? Stanford seems to be using money from non-student revenue sources to subsidize a majority of per-student expenses. (That is, students are getting "paid.")

Or are you assuming that all that other revenue still comes from students (e.g. parking), or directly from an unchanging endowment? Stanford raises hundreds of millions of dollars in donations from people who aren't students every year, more than enough to cover that $244.4m shortfall directly. Direct income from students is only a small part of the overall university budget: http://facts.stanford.edu/administration/finances

Anyway, I'm only making a factual spending claim here. I make no claim about the effectiveness of the spending in educating students -- that's a separate issue.
Worked on a mini all last year, first real mod I did was fixing forward delete: http://pqrs.org/macosx/keyremap4macbook/

Made the dock 2D, bought a wired keyboard and mouse, line in adapter for my analog headset and it was a usable workstation.
But does it have multiple cursors?
Straight from the horses mouth:

The big difference is that Flask is based on other technologies such as Werkzeug and Jinja2 that exist for a longer time and it does not try to reinvent things. Bottle on the other hand tries to stick to the one-file approach. I want to merge them but the Bottle developer does not seem to be very happy about the idea of stepping away from the “one file” requirement.

Regarding flexibility: there are no reasons you shouldn't be able to use flask with other template engines if that's what you're after. In fact, things like Flask-Genshi exist: Flask-Genshi and it's incredible easy to use mako with it, even without extension if you want to.

Bias warning: I am the developer of Flask, Werkzeug and Jinja2.

http://stackoverflow.com/questions/4941145/python-flask-vs-b...

In my own experience, both are great, and similar. For a simple REST API bottle has an added advantage of being a single file which is nice to just include with all of your other code rather than having to install anything. Flask, however, is my go-to framework. I used it extensively at a previous job and still do today with my current employer (and the app is pretty substantial). Flask also has a lot of extension support now. A pip freeze | grep Flask yields the following for one project.

Flask==0.9
Flask-Admin==1.0.5
Flask-Assets==0.8
Flask-Babel==0.8
Flask-Cache==0.10.1
Flask-Classy==0.5.2
Flask-DebugToolbar==0.7.1
Flask-Gravatar==0.3.0
Flask-Login==0.1.3
Flask-Principal==0.3.4
Flask-SQLAlchemy==0.16
Flask-WTF==0.8.2
Living a conjoined life. Get Inspired.
overflow: hidden; is not a hack.
It can do a lot of things which in his opinion are hacks (wtf).

Suggested reading: http://colinaarts.com/articles/the-magic-of-overflow-hidden/
Ask HN: How do you get motivated?
What motivates you?
I would love for Microsoft to introduce some Apple-isms in Windows: text navigation is particularly awful, and I'm far more efficient on OS X when it comes to text. The lack of forward delete key doesn't bother me or hinder me at all: command-right + delete takes care of it.
What did you remap it to?
Not saying there isn't good research here, but if your explanation doesn't cover woodhenges, you've got a way to go on "why".

It may help address "where".
Hi, congratulations, I like really Samuru also if it's not perfect. I wanted ask you two questions :

1) Are you sure that giving a "bonus" to domains containing a part of a query is a good idea ? I understand the reason behind that, and know that you need time to turn off this "bonus" but waiting that moment are you really sure that is a good idea ?

When I type "How to rank well on Google" the first results is www.google.com => http://www.samuru.com/?q=How+to+rank+well+in+Google

Instead from the third positions the web pages seems to be great.

2) how works the search suggest ?

I m a french user and in our language we have a lot of accents like "é è ù à". While typing a search query many people do not use them. When i correctly type a query with the accents, Samuru suggests the same query but without accents, this is wrong and that's why I m asking me about the provenience of data used by the search engine to provide these queries suggests.

I really wish you to accomplish this project.
how do colleges even know the race of the students applying? that part is not required and some college forms don't even ask for it.
Meet Marty Cooper, Inventor of the Cell Phone
If you try to build a device that does all things for all people, it won’t do any of them very well.
Vim plugin for Fasd (CtrlP extension).
Great attitude, kid! Everyone can see themselves as a victim at any point, but it's people like you who don't always read much negativity into the decision-making of others and instead focus their energy into making the best of their opportunities who go on to do great things.

Don't worry if you don't make it into your top choice. You can always apply to grad school there. :)
> Why can't the otherwise so intelligent and educated crowd of hacker news see that our society is heading in the direction of a police state? We are not there yet, but it is where we will end up if we don't turn around soon.

We don't have much of a choice unless we want to regress into a pre-state hunter gatherer society (aka, a non-society). People live closely together, people don't want to get shot by their neighbor.

Advanced society requires the right set of laws to protect our safety and our liberty. And the USA is not alone in trying to balance these concerns: look at western Europe, Japan, Aus, NZ, ..., they all have the same issues to consider. There is also no "right" solution, its not black or white, but rather there are many tradeoffs to be made.
Moving From Heroku to the Clean Cloud
If there is a plugin for intelligent refactoring in vim, I have yet to see it. You can use tabdo or buffdo for multiple files, but the class/object parsing isn't there.
Not that it completely undercuts your point, but you have to limit your numbers to the population that sees R-rated movies in the theater.

There's a chunk of your "population that can't be bothered to watch" that were too young, or who were in nursing homes, prisons, hospitals, etc. and can't reasonably watch any movie in the theater.
Anvil seeks to cure the “Kickstarter hangover” by...
KALQ thumb-type keyboard takes on Qwerty
Right - if you look at a lot of the locations they're on relatively high ground and in hill country so the rising and setting of the sun relative to hills or other landscape elements was what they did, and they marked off quite sophisticated cycles. Given that a 22 year cycle needs multiple observations to track, and given that the life expectancy was probably somewhere in the 40s the achievements are pretty amazing.
sorry, I forgeted to say you that we're talking of you, not only in america but also in france http://www.lightonseo.com/moteurs-de-recherche/624-0423-samu... I will be very happy if you can link to this page within the news list of Stremor website.
You forgot to add, "and not being handcuffed to a dead man."
I think he was merely saying that it is a hack in the instance where a proper fix, without using overflow: hidden, COULD be found but in order to fix it NOW it was required to be used.
Well, first of all, your assertion that "if an early employee didn't get paid at all they would leave almost immediately" is just false. I mean if you read the post that started this thread, it's about a guy who went without any salary for 18 months. Admittedly, he did have another source of income at the time from the college, but that's still a long time to go. Personally, I have known employees to go a few months without pay in the hope of seeing the company through a rough time.

If you read the article itself, it talks about pilots using their own credit cards to pay for landing fees in a pinch, and couriers selling their watches to pay for fuel. So basically, I would urge you to read the article and the posts you're replying to.

I admit that co-founders usually put more money into the business than early employees. But time is also worth money, and early employees put a lot of that in, for not much money up front.

I agree with you that the experienced gained as an early employee is valuable. Some of that experience might be getting a better idea for whom to trust in the future :) And with that, I think we've come full circle...
I found this blog post to be an excellent ingroduction to ed, for the uninitiated: http://blog.sanctum.geek.nz/actually-using-ed/

And of course there's the obligatory: http://www.gnu.org/fun/jokes/ed-msg.txt
I can provide you some pointers as we made it go away. Some data from one of our production virtual hosts:

cat access.log.1 | wc -l
1054423 # no static objects served here
cat error.log.1 | grep timed

For PHP-FPM we use static pm and unix domain sockets. This virtual host if fairly busy with some slow (~200 ms) requests, therefore it uses 96 processes per pool. listen.backlog = -1 in php-fpm.ini for letting the kernel decide the size of the actual connection backlog. UDS is getting filled faster than TCP and nginx starts responding with 502's. Throw net.core.somaxconn = 65535 somewhere in /etc/sysctl.d for increasing the actual backlog since even if you specify a high listen.backlog value, the actual value is truncated to SOMAXCONN. Couple of years ago I wrote an article about stuff like this: http://www.saltwaterc.eu/nginx-php-fpm-for-high-loaded-websi... (shameless plug, I know, but you may get some useful info). As a side note, I am curious how the backend persistency for nginx is playing. Our production still uses the same config since 2011 as it isn't broken, but it may be more efficient.
Just rant?
Well, what do you think all those marketing people do? :)
So Warren Buffet and Bill Gates are idiots or ideologues?

http://www.npr.org/templates/story/story.php?storyId=1259184...
The Wang family secret of raising a kid
switching between app windows is command+` just above command+tab
I'm certain that people would get used to it.

They seem to live with the fact that every month hundreds of people are killed and maimed in car accidents.

The British got on fairly well during the Irish Troubles, with the fact that the IRA was fairly effective at striking against English targets.

You seem to forget that people have a very strong urge to believe that "it won't happen to me".
In my mind, there are two main differences. First bottle supports Python 3. Second, Flask is built on Werkzeug, which is a very flexible WSGI toolkit. In practice, I have never used Werkzeug much, except for the excellect stacktrace pages, which let you run the debugger right where you problem failed. I pick bottle for new projects, basically because of the Python 3 support. Fixing unicode is worth quite a lot to me.
I always understood that the company receiving the money is supposed to pay it's own fees and use a lawyer that it trusts, without taking money from the VC on grounds that if you use the VC's money, to pay the VC's lawyer, on the VC's terms, you aren't necessarily getting a fair deal. I think paying your own legal fees to an impartial third party is a prudent investment. Perhaps I'm just naïve.
If this is the same daughter, I think you just told us that she is not a WASP! (Maybe a 'P'!)
Japanese mobile game company GungHo has a market cap of $9B
I'm more interested in the TLDR of how this works. Due to firewalls and such, it's technically impossible to have a peer to peer network without requiring port forwarding on at least one side. I wonder if they're really requiring that from users that want to use this.

Another way would be to do TCP or UDP hole punching, but that involves a third party for initial setup. Probably possible and probably safe, but I'd like to see a security review of that.
I believe these are very different situations -- Zappos was covering some, nearly all of their SG&A with product margins. Ecomom was, according to the information in the link, needing to pony up cash to cover negative margins on product sales.
Not having a forward delete key.

fn + delete does this. If you plug in a USB keyboard, the forward delete key works as expected.

No obvious way to "alt-tab" between an apps windows, even less obvious on international keyboards.

⌘ + ` (this is the back-tick above tab). You can change this by going to System Preferences → Keyboard → Keyboard Shortcuts, clicking on the "Keyboard and Text Input" category, then editing "Move focus to next window." This option is buried because Apple thinks Mission Control is easier. :/

No way to use arrow keys to select the OK and cancel buttons in a dialog.

System Preferences → Keyboard → Keyboard Shortcuts. Check "Full Keyboard Access" to use tab, space, & enter on controls.

I hope that helps!
In the end, the idea that Jody lacked a basic understanding of margins after years of being a retailer clearly doesn't make sense. Nobody sells goods for lower than their cost of acquisition without being aware.

It's too bad tech journalism is a farce now, 15 years ago the sj mercury news would have actually put someone on it that had a basic understanding of extracting truth from lies. There are plenty of people who might talk, if they had any belief it'd actually result in a researched and unbiased piece.
Some things are hard to write tests for. Basically most things where the criteria is "does it look right"
Hold your horses, I was just replying to your comment, not the article content.

If people like the article, they should comment with why. If people don't like it, they should likewise do so. That way people can have discussions. The "if you don't like it go somewhere else" line of thinking is vapid and the world would be worse off if everybody did that. People should challenge each other.
Plain ol' Delete

I remember you need to get a bit creative with the config files, I don't think it's one of the default settings.
> Teachers unions also come out hard against vouchers, because it makes the sector more competitive

No they are against them because the money for vouchers comes out of the public school budget. In poor areas this can be quite devastating. Unlike the Harlem Children's Zone, most school districts don't have a rich, billionaire uncle giving them millions of dollars each school year. Teacher's also recognize that charter schools have one ability they do not, unload disruptive and under-performing students before test time.

> Public universities tend to operate on a voucher arrangement at the moment. Their example is a tangible example that vouchers is good policy, and that is very valuable in the campaign to bring good policy to public schools.

Please explain? I've gone to public universities and don't remember vouchers at any point. You were accepted on merit. Tuition was paid based on merit and need. But, unlike public schools, they were free to kick you out at any point.
Or if the author didn't have a car.
That would be fine if we were talking about some small hidden product, but Edge has been well covered on HN and it's included with Adobe's Creative Cloud - which has also been well advertised. Plus at some level you have to expect people working in the industry to take responsibility for their own research (assuming he does work in IT, rather than being one of those "arm chair critics" that lesser forums are often plagued with).
FYI, it looks like plans for porting werkzeug / flask to Python 3 may be close at hand. https://twitter.com/mitsuhiko/status/323177177367601152
Indian Universities have serious governance issues
I thought this was about Open Office and Libre Office software and promptly agreed.
Well, it says in the campaign text:

WE HAVE ALSO DECIDED AFTER THE FILM IS COMPLETED TO RELEASE THE RAW INTERVIEW FOOTAGE AND POST IT TO THE INTERNET ARCHIVE IN SAN FRANCISCO THROUGH A SIMILAR CREATIVE COMMONS LICENSE.

(caps in original)
The Pirate Bay accepts Bitcoin donations, Will be Bitcoin real?
Pirate Bay now accepts Bitcoin donations, which are untraceable, meaning that any person that wants to sustain it can do so by donating Bitcoins.
Watch My Hottest Photos For Free
Watch My hottest Photos Only On www.SpicyHot.Info
Plenty of people reached 60+ and some reached 90+ back then. Don't forget identical biology bad healthcare so lots of people died young and or in childbirth.
Nö One says anything about it being necessary, but if you think that going to one of the "elite" universities doesn't help you tremendously with your chances of being higher up on your career ladder, then this is really not worth discussing.

In that light, you don't need anything, not a college degree, not a high school degree, because you will always be able to achieve success ...
Words That Shouldn't Exist
That breaks if the file to include contains a line with just a ., unfortunately. But it's still ridiculously simple, and that's likely not to be a problem in a lot of cases.
Unicorn has become Unirest
Would only add that unless you're writing a PHD on SVM don't write your own implementation. As Radim wrote there are quite a few to chose from.
One of the comments on the TorrentFreak article compares BTSync to FTP.

In one sense, that is not an accurate comparison at all. And yet, it has enormous potential to fill a similar role.

The secret/passphrase amounts simply to a globally-addressable identifier to a set of folders that just happen to sync.

It will be trivial to script a loop to watch a control file in a folder to enable automatic FTP-like transfers between my friends. Even without keeping the "secret" secret, instead simply treating it as public but discardable, you have something that can rival (and is a faster-moving target than) file lockers like Mega and Rapidshare (300 TB do not need to be re-uploaded in order to change the secret/address).

The sad thing is that NAT and firewalls have starved the Internet to the point that that simple property (global addressing) seems almost miraculous. (And that is why IPv6 - or something permitting global addressability, instead of carrier-grade NAT - is so important going forward.)
"Ed, the greatest WYGIWYG editor of all."

The first time I read this, I almost fell out of my chair in laughter.
If life expectancy was in the 40s, survivors of childhood could probably expect to live significantly longer than that. Child mortality skews life expectancy downwards.
> I went and build them into the process

Sorry, what do you mean by that?
View Your Top Facebook Posts for the Month with Markitty
I'm guessing you aren't ruby guys then :)
The more I read about Swartz, the more I feel awful what happened to him.
I'd argue a little with the "Apache is monolithic". If you know your elbow from your butt, you can make a decent Apache setup as any decent sysadmin should do. The thing that I hate the most in nginx is the lack of DSO modules. When I need a new module, I need a new nginx build. nginx itself has more than you ask for in a standard build. As example, I counted the "with" and "without" flags from out nginx package build script. It has 3 "with" flags (SSL, gzip static, PCRE JIT) vs 14 "without" flags. And we can part with gzip static since most of the static objects are pushed by CDN's now.

Apache is catching up with its evented MPM and proxy support, but I still wouldn't go back to Apache though. The main selling point that the OP should get is the fact that evented servers have much better memory usage under the same load as the threaded servers or (cough) process based servers.
Thanks for sharing this. I'm actually really excited; raytraced scenes have a "solid" feel to them that rasterized ones simply can't get.
On-the-go Big Data requires a different approach; four guidelines
My best life hack
> the age protected class is 45 and up

I'm in an "age protected class"? Quick, I need to get hired, fired, and hire a lawyer.
Changing my mind on nuclear disarmament (UK)
You would be correct. I think we learned our lesson and actually came out with a better name and website in the process.
I would gladly take Flask over Django/TastyPie

Could you explain the benefits or difference for you?

Personally, I enjoyed using Tastypie, and when things weren't clear, its code was a pleasure to read and made things easier to understand or work out how to solve. Perhaps similar to your experience with the Flask code.

I imagine a thinner framework is cleaner in many ways, but then with a more robust framework you get stuff out of the box. In this particular case, getting the request time (+ if you want, sql time etc) is relatively easy and there are a few middleware options to do it in Django.

I've seen an interesting talk[1] by Yehuda Katz: "why rails is hard". One of the key points, if I can somehow paraphrase, is that with a bigger framework like rails, you get a lot more out of the box for the 'price' of it being heavier... He's comparing rails to node and sinatra, but the same might apply to the comparison between django/tastypie and flask I suppose.

Finally, I don't know about flask, but another important point in Yehuda's talk was that some of those things implemented for you, you might not even know that you need. This is true particularly for security, where you probably don't have to think about whether XSS/CSRF protection is implemented etc, you just want things to be secure by default and it's not a feature you even think about...

I am not saying flask doesn't have those (I don't know), just that in general that's usually the trade-off between heavier and lighter frameworks. (I think) I know the downsides, I'm curious to know about the upsides too.

[1]http://www.youtube.com/watch?v=2Ex8EEv-WPs
Seems the package has been updated again with SPDY support this time (1.4.0-2)
We have the same thing in Javascript, we call it 'hacks.js'. That's the place you go when things are broken and you're not yet ready to pay down tech debt.

Hacks.css sounds nicer than shame.
That looks awesome. Having used the WMII window manager it looks quite familiar. Even then the learning curve seems steep.
Difference between Short Term and Long Term Loans
Neither. Advocating that taxes be raised serves to increase their status, just as catapulting buckets of money in the generally direction of irredeemably corrupt African countries does. Biologists refer to such behavior as a "display of fitness," like a peacock's feathers or the way some tribal chieftains compete with each other to see who can give away the most stuff. We crave status more than we do money or even sex.

Besides, in this case their lawyers and lobbyists will see to it that they actually never will have to pay much extra to Uncle Sugar. In the end, the only people who will feel the bite of tax hikes will be ordinary people, and nobody cares about them.
Been doing this for years. I usually call the file ie8.css, though.
On that line, I agree, but I think the delineation is more precisely between personal and socially induced "feeling bad". I feel like "shame" connotes a social, or at least, public feeling of ostracizing or sadness.

Regardless, I would agree that guilt.css would have less of a deterrent effect (think chocolate), and illustrate the premise more effectively.