skysight-inc/HackerNews huggingface dataset:
Theoretically, the number of puma threads you're running should be the same as the number of unicorn processes. That is, equal to the number of available CPU cores on the machine. So, if you're running on a machine with 8 cores, you should run 8 process or threads.

What continues to be the major issue with anything thread-based in ruby is that to reliably reach desired performance at load in a threaded setup, you need to be running an interpreter than can make concurrent use of native system threads. MRI has a global interpreter lock, so two pieces of ruby code will not run at the same time. IO is not subject to the GIL, so a lot of what happens in a web app can run concurrently (DB calls, etc), but other things that all happen in ruby (routing, view rendering) cannot.

So, basically, to reliably achieve similar performance using threads, you need to be using Rubinius or JRuby, which don't have a GIL.
The Win32API was initially designed to make it very easy to port from Win16API in the early 1990s. Microsoft neglected to improve the Win32API starting with the dotNet adventures. Instead of an improved Win64API we have the identical API for 32 and 64 bit (and WinRT API).
The shell still doesn't support UNC path. The Windows NT series operating system would support different subsystems other than Win32.

Naming Files, Paths, and Namespaces on MSDN explains the details: http://msdn.microsoft.com/en-us/library/windows/desktop/aa36...
The easiest solution I've found is to just run a VM and not sync whatever folder you install node_modules in. I just had this problem like a week ago with gulp because I was syncing the folder I was building in. It's a good time to learn how to use Vagrant.
I disagree: the hardware virtualization mechanisms provide an extra level of protection. Just like the non-virtualized protection mechanisms do.

No virtualization developer is under the impression that it's magical or bulletproof.

You rely on the operating system's security mechanisms continuously, and developers work hard to fix bugs and vulnerabilities when they appear. Same goes for virtualization -- the security semantics are just different.
I can't wait to build one of these!
> Nothing with a shared kernel is going to be very secure.

SELinux is still operating in a shared kernel.
Totally. This is actually a trivially solvable problem (I've been working on a meta package manager compatible with npm, bower and component).

The strategy I took with node_modules/, components/ and bower_modules/ was to just follow whatever folder structure it found as far as necessary and look for manifest files (package.json, bower.json and component.json) and register modules at the path of wherever one of those three file types is found. This approach allows any folder organization whatsoever. This information was then saved to a key-value store and the store is only updated when the mtime of the folder changes. This makes startup relatively fast since folders are only re-indexed if something has genuinely changed.

Writing an algorithm that is dependent on the folder structure to me is a fundamentally bad idea most of the time, especially when you have a manifest file that better identifies a module. Additionally, for modules with semver ranges or installed from unusual locations (i.e. URIs: git:// git+ssh://, https://, etc.), you can write an additional metadata file with install information and version locking information (like gemfile.lock)

If people don't rely on the file system organization as an API, npm and node's require() algorithm can trivially reorganize or even use different folder organization schemes on different operating systems if there were a good reason to do so.
Net Neutrality – The Freedom to Be Heard
Does it also include a plaintext alternative? Mail I receive without a plaintext alternative goes straight into the spam bin unread. Saves a lot of time!
The reporter didn't provide enough detail to begin with, and was rude as well.

No excuse for rudeness, but I understand why he may have gotten that way.

Can you imagine the number of silly bugs the glibc maintainer has to go through? Year, after year? Especially when people don't give enough evidence.

That is bug twelve thousand seven hundred and one. Developing a way to deal with all of those badly reported bugs quickly would be to do it like this. Just tell the people they are wrong, and have them provide more detail to prove their case. If you say, "Can you please provide more information", often bug reports just sit there.

Again, I don't condone the behaviour personally, since I would put people above the software. But I can see how maintaining glibc for many years would warp a person.
I've read a lot of Go code in many different places during the last years, all with tabs, and I did not have any problems.
Get to work and make your infographic go viral
As was already mentioned above, whatever gets traction gets funded. VCs are just as clueless (maybe even more so) as entrepreneurs about which ideas are "good" or "bad". They fund ideas with traction and good teams with the hope of hitting a big home run with one of them.
Show HN: I learned Rails and Objective-C in a year to build this
What I built: Bonjournal, a travel journal app

- iOS app (https://itunes.apple.com/us/app/bonjournal/id719266933)

- web app (https://bonjourn.al)

What and how I learned (in order of importance):

* Ruby on Rails *

- Michael Hartl's Ruby On Rails Tutorial

- Railscast

- Code School

- Ruby Toolbox

* Objective-C *

- Nerd Ranch iOS Programming

- NSScreencast

- Code School

- WWDC Videos (for performance improvements)

- CocoaPods Rank (https://gist.github.com/luvtechno/8842522)

And of course, a lot of Stack Overflow.

I didn't think it would be possible. I thought I was too old to learn. But I had a project in mind that I cared about, and I wanted to see it completed.

It's never been easier to learn -- go out there and create!

Special thanks to my wife, who is also my designer. Besides all the wireframes, marketing, and testing she has done, she also learned a little SASS and Objective C to make all those little pixel and font size adjustments. That was HUGE.
DockerCon was over a week ago.
>What test are you going to force me to take to consume those herbs? Why do you have any say over what I can consume?

Before you say "I can do anything I want/it's my problem/ freedom comes first", please consider the following:

- There is an asymmetric relationship between a customer and a manufacturer with incredible marketing power.

- You live in a society which invested in you, and although you might not value your life, it actually has value for said society.

- You are not alone, the problem isn't the loner consuming <whatever> but the accumulated effect on society when the behavior is widespread.

- When I'm ill I expect the drugs/treatments I take to either replace my symptoms will less unpleasant symptoms or cure me altogether. The purpose of testing and regulations are for people like me. You can call me a square if you want, but I think my expectations are actually widespread.

- "But we know the effect of <whatever>, I use it all the time, and no problem". Allergic reactions, interactions with other drugs, long term effects, interactions with diseases... So many possibilities...
For Cap'n Proto to help, you have to switch from using JSON format to using Cap'n Proto format, which is indeed a lot more than just one function call. But it should be orders of magnitude faster than JSON. So if profiles show you're spending a lot of time in JSON handling, then, yes, it could help.

Right now, Cap'n Proto makes the most sense for server <-> server communications, e.g. between a front-end and a back-end. In the future I hope to have a production-ready implementation in Javascript, which would allow you to use Cap'n Proto all the way up the stack.
At first I agreed with you; but then I read one of the comments on github that swayed me.

"You are the one playing games - calling core parts of Windows like Explorer "3rd party tools", and suggesting that not supporting long paths is a bug. Microsoft have made it clear repeatedly that non-support for long paths is not a bug, and not something that will change.

A package manager creating paths that do not work with the majority of the software written for an OS, then claiming compatibility with the OS, is playing games, at your users expense."

At the end of the day Windows wont be the thing changing. haha.
Code Spaces:Data and backups wiped from hacked Amazon EC2
No, people are downvoting you because you are just wrong.

Please see this diagram

http://ro-che.info/ccc/17.html
Why solve puzzle to get BTC, How about contribute to TOR
In the meanwhile in China, All the google's service, has been banned by GFW(national firewall in China) for a about month, And even Dropbox is banned today. People in China live in a miserable live. someplace VPN is also not useable, all the developer in China are using ShadowSock as their way to access the world.<p>I have an idea, since I'm a big fan of Bitcoin. Why change solving math puzzle to get BTC, to contribute to be a node to redirect traffic, and get reward from it, something like(TOR).<p>Hopefully the brilliant hackers group can come up an revolution way to make the internet a true free world without boundary.
(1) This is the most vacuous and wrong thing you wrote

> men can think women are people too

Implying that I do not think that women have agency.. What a ridiculous and exacerbated claim.

(2) All you're doing is giving normative advice about what men and women's identities should look like.

Not whatsoever... are you kidding me... it is descriptive analysis; neither normative nor prescriptive

(3) You're claiming that women will always be unhappy with partners whose identities depend on their partner, and you're also saying that it's unacceptable for men to do that.

No, not always. First off, heterosexual women. And I'm not saying unacceptable; quite the opposite. Read the original post I made; think.

And for happiness and identity, I just said, there's a single point of failure. I mean.. we're on a hacking forum, I thought that people would grasp the metaphor.

And as in industry and academia, I think it is better to design a system (the psyche) that functions for happiness. Zen.

(4) There are no logical arguments being made here. It's pure misogyny.

That's totally ridiculous, I'm not a misogynist, I resent being called that, and I absolutely do not categorically hate women. This entire thing implies the possibility of a sexist expression and display.. from you.

I may vaguely fear women as they are mirrors of nature. Read the post I made. But I do not hate them: I have too much respect for their value for that. Anyway, generally in day to day life, I approach things on a situation by situation basis. I don't have any hateful misogynist goal or agenda. Cui prodest?
It's not necessarily about the languages or tools, but more about selling the value of what you're making to the client.
As one the authors of taskflow I'd like to give a little shout-out for its usage (since it can do similar things as celery, hopefully more elegantly and easily).

Pypi: https://pypi.python.org/pypi/taskflow

Comments, feedback and questions welcome :-)
Solid, well-researched and comprehensive article. One small correction:

> Unicorn is built to cut off long running worker processes after a default of 30 seconds via SIGKILL. This is why Unicorn says it's built for "fast clients" - because anything beyond that cut-off is subject to termination.

This is not what "fast clients" refers to. Unicorn being built for fast clients means that it is only meant to serve local network clients. Or, in other words, it's not meant to communicate with end-user connections/clients directly (slow clients), rather, it's meant to run behind a proxy server like nginx or apache.

The "fast client" thing is basically saying, "this is an application server, not a web server", meaning, it's good at running application code, not managing the complexities of serving web requests to public internet (slow) clients. They're called slow clients because, well, they're slow ;) They have variable quality connections, bandwidth / transfer rates, and client capabilities (http 1.0 vs 1.1, 2.0, spdy, etc). Being a fast client means you can expect that you'll receive http requests at a relatively constant rate, basically whatever the local network or file system will allow, which is extremely fast (comparatively).

So, unicorn being a "fast client" just means that it's good at talking over local network connections (or, preferably, unix sockets) with a web server, and never on port 80 serving public http traffic.
I am somewhat surprised at this topic. Of all the the issues Node.js has on windows, this seems like a fairly minor one. In my eyes, the biggest issue is simply this:

A lot of module writers don't care about Windows.

A big part of the node ecosystem is that there is a module for practically anything. While node core has great support for windows, and also helps aid developers in writing code that is windows compatible, from what I have seen, its not often followed.

Any number of simple things break modules on windows, using a '/' as a path separator instead of path.join, native modules, bash or shell scripts used in pre- or post-install scripts and probably a hundred other small ways to screw it up. Even trying to make your own module Windows compatible is often thwarted by a dependency that doesn't. Like Java's promise of "Write once, run anywhere", its a great idea, but hasn't completely panned out.

I really hope that as the node community matures, there can be more of a focus on making sure things work on Windows. Node is a great platform partially because of all those modules and getting them all working will make writing cross platform apps and services a heck of a lot easier.
It shouldn't. strcpy_s is better in every way and is already the standard. See https://lwn.net/Articles/507365/
What are the pros and cons of each?
Given the PC business was already commoditizing (because of IBM's insane reliance on Microsoft without the proper contract to prevent what happened), the high price sale couldn't compete as well against lower priced products.

Plus most of their sales were B2B where brand loyalty means little for commodity products, esp. given the high tie-in strategy.
I don't follow, should we then rename everything to cryptic, short characters like some people do in MongoDB (as someone suggested using n_m instead of node_modules)? If it works well in other platforms, it's an issue with that specific platform
> The reporter didn't provide enough detail to begin with, and was rude as well.

drepper's skill is in goading that response out of people, sometimes unconsciously, sometimes consciously. Take note of where the rudeness began before spending 143 words apologizing for and defending him.

I struggle to think what additional information could be included in this bug report, as you request, since:

f(x) -> y /* erroneous */
f(x) -> z /* correct */

...is about the most perfectly-written bug you can ask for and was enough context for drepper to understand.
> second one is nodejs dependency on what google does/doesnt do,since google maintains V8

Google maintaining V8 is one of the big reasons why Node has been successful. There is no way an independent Node.JS foundation would have the resources to optimize and test JS like the Chrome team. So far, the problems have been minor and V8 has done a decent job keeping up with upcoming JS standards.

So this isn't a problem.

> 1 function while requiring 10 other modules that have just 1 function themself that require 10*10 other modules

As of now NPM is working (in spite of these problems) because those modules are tiny js files. I agree it would be beneficial to have better package management.

In fact, that's exactly what's giving me problems right now. My browserify task breaks due to the NoYieldInGenerator error in parsing. The dependency (esprima parser) has been patched upstream, but now that has to make its way into 4 dependencies inside browserify, and then browserify has to update itself. My alternative is to make 5 forks just to solve this. :/

It would have been great if they all used a single shared lib, and even better if I could manually override dependency versions of my dependencies.
My project, Pokémon Showdown (https://github.com/Zarel/Pokemon-Showdown) uses tabs, although it's not for any religious reasons, it's just what I was used to when I created the project. I suggested changing to spaces when I learned they were more popular, but my most opinionated coder preferred tabs so I kept it at tabs.

Tabs and spaces both have their respective advantages and disadvantages.

Advantages of tabs:

- you can choose your indentation width in most editors, so coders don't have to agree on indentation width (this is really the only major advantage)

- most very-basic editors that can't be configured, such as Notepad or the command-line directly, will default to having the tab key insert a tab character, which is easier to press than space N times (it's rare to edit code in such cases, though)

- slightly smaller file-size, although this is pretty irrelevant in modern times

Advantages of spaces:

- certain editors are dumb and will mangle tabs in various ways (for instance, converting "3 tabs for indentation, 9 spaces for alignment" into 5 tabs and 1 space)

- most file viewers that won't let you configure tab width (for instance, browsers, which is relevant to viewing code on GitHub) will have tab width set to 8 spaces, which is very awkward

- avoids the problem of some people accidentally using tab for alignment and then having alignment be messed up when coders have different tab width settings

- certain text fields, such as browser text boxes, will have the tab key focus the next input field instead of inserting a tab character, which makes inserting tab characters difficult sometimes (it's rare to edit code in such cases, though)
As a "fan" of the color blue, I enjoyed the history lesson.
While page dont load, you can try direct link: https://noupload.com/start.html

By following this link you will get free Ubuntu 14.04 64bit 512MB ram 20GB space server for 40 minutes.
Easily. Just get any two beekeepers to talk to each other and you'll find plenty of examples. Some common ones:

- Whether to use a [queen excluder](http://en.wikipedia.org/wiki/Queen_excluder) or not.

- What [kind of hive](http://www.beethinking.com/pages/what-is-the-best-bee-hive) to use, even.

- If using a Langstroth hive, whether to use [10-frame or 8-frame boxes](http://www.beesource.com/forums/showthread.php?291373-10-fra...).

- How/when/whether to [feed your bees](http://www.bushfarms.com/beesfeeding.htm).

However, despite having all these disagreements, it's an incredibly friendly community. It's expected that anyone you meet will do things differently from you, so people swap advice and adopt things that work with their style.

Edit: whelp, markdown doesn't work here but I'm too lazy to change it.
FBI Arrested the Alleged Associate “NullCrew” Hacker
QWANT, an interesting French search engine
https://news.ycombinator.com/item?id=7494756

But please don't post questions like this here. As the guidelines ask, send them to hn@ycombinator.com instead.
Look, I totally get where you're coming from. I haven't used Windows (other than the modern.ie virtual machines for IE testing) in over 7 years now...

But a lot of devs use windows. Convincing them to switch has always been painful, and I stopped when I took a look at myself and asked why I cared so much (there are legitimate answers to that question, but my answers were not).

Where I work we use all three OS's. I personally use OS X, coupled with Linux VM's (where all my projects actually run). But the developers running Windows are just as productive as I am (if not more so, one die-hard Windows user is twice the developer I am, which is why he's a tech lead here). Yeah sometimes they have to deal with small annoyances when using *nix software on Windows which a lot of FOSS dev tools are, but hey, so do I on OS X, and I have on Debian as well.

Anyway, that's a long winded way of saying: that's just like, your opinion, man.
> Or just don't develop on Windows. If you're developing using open source software, I honestly cannot comprehend why you would use Windows as your OS over something Unixy.

I'll give you one reason.

I work on Linux. But (as a consultant) many of clients are large Windows shops. Now it would be good if I can use the tools I am familiar with to get things done in primarily-Windows environments. Compatibility helps here.

Eventually, great Open Source tools existing on Windows draws more Windows users into Open Source. It is a net win, although I am not suggesting that anyone bend backwards to accommodate this.
Dangerous application downloaded over a million times from Google Play
Good show by Amazon. The "gimmick" poised to be a sure hit in Asian, African and European markets.

Anything that competes with Apple, Samsung, Google is by default good. There is definitely space in the market for a phone like this. Amazon phones set to sell much more than Amazon tablets.
You already submitted this recently.

https://news.ycombinator.com/item?id=7878064
How eBay uses its own OpenStack private cloud
Entering my serious vote to end node development on windows
Know the biggest issue I've had with Node (well not me, but my colleagues)? That modules have a habit of using symlinks, which break horridly across Vagrant/VirtualBox shared folders. We ended up fixing it somewhat by using the --no-bin-links option on `npm install` and swapping over to SSHFS, but I really wish module writers would pay more attention to Windows... one of Node's strengths is that it works pretty darned well on Windows (just like how XAMPP made PHP deal with windows well enough for a large developer base to grow)
I think we're arguing different things. I'm more talking semantics.
As far as I understand it the problem _is_ with Node -- specifically module.js [0] which is what defines require() and its recursive lookup behavior.

[0] https://github.com/joyent/node/blob/master/lib/module.js
Adding a point to a size can give you a corner of a shape. You can have functions for scaling to aspect ratios, normalizing, and stretching. I don't see why any would be specific to one type or the other. In math you don't usually deal with points or sizes, you deal with vectors.

But admittedly conversion between Points and Sizes is not a pain point for most people. It's much worse when dealing with types that have the exact same purpose, just from different libraries.
Context macro package fixes most of Latex's pains: http://www.pragma-ade.com/
Unfortunately, I don't think any journal will accept it as their input format.
Open-source, interactive music theory textbook project on Indiegogo
Is applying the Tesla business model applicable in a case where the product doesn't cause you to salivate?

Seems for each interested buyer, I see ten who are more like "meh". Perhaps a rigorous demo of the phone's features would highlight it's "must-have" features.
>What's the design reason for Windows tools to only have a max of 260 file path chars?

So in C you can just say `char buff[MAX_PATH] = {0};` and not worry about heap allocation.

That's also the reason why it can't ever be extended - because MAX_PATH is compiled into every binary and you would create instant buffer overflow vulnerabilities in a lot of software.

It was a reasonably good idea at the time the decision was made.
bad idea to use the DB as a queue

Not according to Jim Gray. See "THESIS: Queues are Databases"[1][2]

1- http://research.microsoft.com/apps/pubs/default.aspx?id=6849...

2- (pdf) http://research.microsoft.com/pubs/69641/tr-95-56.pdf