skysight-inc/HackerNews huggingface dataset:
Does the DOM Traversal performance issue has been solved from voyeur.js?

(library this is forked from has documented performance hit: https://github.com/dunxrion/voyeur.js/issues/20)
This is the first thing I've ever 'coded' (if you can call it that), so it's pretty rough around the edges.

It's pretty similar to RainyMood [1] and Coffitivity [2] but with the added feature that you can play more than one type of sound at the same time and adjust the volume of each to find a mix that suits you. I was inspired to make this because that's something I ended up doing manually quite a bit.

It's HTML5 with jquery and jquery-mobile, mainly for the slider elements (which I didn't know how to make myself). I wish I could have avoided using jquery-mobile because it was quite a headache trying to deactivate a bunch of the default features and just use the slider.

It uses the standary HTML5 audio player. When the play button is pressed, all the audio streams play. When the value of each slider is changed, the volume for that player is updated with JS.

iOS devices don't support changing the volume via javascript in any fashion, so this won't work on any iOS device. I don't see a way of getting around that. It should work in most other modern browsers. Seems to work in IE10, FF, Chrome and the stock Android browser.

The only slightly tricky thing was getting seamless looping for the audio samples. The HTML5 audio player has a "loop" setting, but in every browser I tried it in there was an audible gap between the end and start of playback. Very annoying in this kind of application. To get around that, each audio track fades in and out at the beginning and end. When the player reaches the beginning of the "fade out" section of the main track, about 10 seconds before the end, it triggers a 25s "glue" track to start playing, which fades in as the main track fades out. When the glue track begins to fade out, it triggers the main track to fade in again at the beginning. The end result is something approaching a seamless loop with constant volume. I think it works quite well for ambeint noise, but it obviously wouldn't work for anything with a beat.

The sounds are all CC licensed samples from freesound.org [3][4] that I did my best to mix and clean up. In the unlikely event this ever became popular, I'd love to make some field recordings myself to get a bigger range of sounds in higher quality, but that's a bit of a pipe dream.

[1] http://www.rainymood.com/
[2] http://coffitivity.com/
[3] http://www.freesound.org/
[4] http://asoftmurmur.com/info.html
Unions exist for a reason. Consider another large scale transportation project: http://en.wikipedia.org/wiki/History_of_the_Panama_Canal
var $ = HTML.find.bind(HTML);

Enjoy.
Would you tell Google your Wi-Fi password? You probably already did...
While I've never been able to adapt to using voice to code, what I have done successfully is use Dragon to document my code. I set up some macros that could move forwards and backwards between methods in Eclipse, added a "start doc" macro...Eclipse does a lot of very smart completion so basic features in Dragon handled it without difficulty.

Dictating your javadoc is pretty damn convenient.
It's worse than that. The Soylent guy is so ignorant of basic nutrition that he had iron-deficiency arrythmia, for crikey's sake[1]. Even a diet composed entirely of Big Macs would have been better.

Ignorance of such a broad field should not be seen as heroic when you are potentially placing people's health at risk. Placing a legalistic figleaf over the top does not make the ethical problem go away.

I advise all to read the comment through to the conclusion.

[1] http://www.reddit.com/r/TrueReddit/comments/1jvsie/the_man_w...
isn't having a form field for discount codes at checkout a very common approach? I'd say that 90-95% of the websites I normally buy stuff from use it. Amazon does...
My point that "you don't own it" is more from a security standpoint. ..which was pretty dumb to say. I can't verify that companies wont give my data to the feds and I can't trust them not to. It isn't my data to maintain anymore
I can't help but wonder what makes the idea of a meal replacer so special? Ensure, Boost, Nutrilite, etc. There is a plethora of products exactly like this available on the market. The only thing that seems to make this one 'original' is it's name.
Maybe people will stop shouting on the internet.
He named the product based on the Soylent from the book Make Room! Make Room!, which was a Soya / Lentil product meant to feed the masses, but the movie version Soylent Green had turned that into a mix consisting of human parts. While I understand he references the original book, the majority of folks familiar with Soylent from the movie context associate it with the human-composed product. This is what makes it unfortunate and unintentional -- I don't think they wanted / intended this association. And that's what marketing is -- it's creating a market perception and demand for a product.

It would be as if someone came up with a new, super-high end car and called it a Yugo. No matter what you do, you could never completely erase the pre-existing market perception even though the new product might be totally different.
I believe once a less deflationary alternative arises (which will surely happen sooner or later, there's no inherent reason behind bitcoin's "half every year" mechanism - I'm surprised if all the current alternatives just blindly copy that) it will win out over bitcoin.
At first glance, this does seem a little lighter and more elegant for light projects than jQuery. I do see the chains could get long, but they might well match CSS selector chains I already wrote, so it's type-heavy but not brain-heavy. It's also such a light file that I might prefer it on a one-pager if the interactions are few and simple. That said, any jQuery plugin is lost with this option, so if have to decide against using any/all before I begin and if the possibility exists I'd probably err on the jQuery side.
Good point. I didn't think of that. Is it even possible to bid, win and then change the parameters using different approach to the transportation method?
1. Better know what you are doing when you fiddle with your shellprompt. Nothing is more agitating than having an unresponsive prompt because you entered a larger git repository. (cough linux kernel cough)

2. Here is a color map which escape will make your prompt look which way. https://github.com/andreas-marschke/misc-tools/blob/master/s...

3. You can find my prompt setup here:
https://github.com/andreas-marschke/dotfiles

It's split up across profile,bashrc,bash_alias,bash_export

4. As was requested in the comments here you can use $TERM variable to determine your terminal name. Since most popular terminal emulators try to be what they are supposed to be "dumb vt100s" you'll get xterm or (if you use a multiplexer like tmux,screen) "screen" as $TERM. IMHO its not of much use therefore.

5.https://github.com/Lokaltog/powerline << Mean to test this out. Its more for vim users.
Right. He made it seems like he got an additional 200k in revenue and then proceeded to reduce commissions to zero. Some might call this scamming the affiliate. After the affiliate has put the work in to drive the traffic to your site then you fuck them over on commissions. To be honest there is a lot more fraud on the advertiser side of the deal. Conversion shaving, reducing commission on high performing affiliates, non-payment by advertisers. Affiliate take on a great deal of risk, especially when they PAY to generate traffic.
whois Microsoft.com
Daniel_Newby is likely referring to the third aqueduct tunnel, under construction for ~40 years now. It's not small: http://en.wikipedia.org/wiki/New_York_City_Water_Tunnel_No._...
Of course it's a play on the movie. Where do you get the weird idea that it might be unintentional?
I find nesting works best for headers, but not comments. Though from what I understand, killing threads before they get too deep is part of the reason the hierarchical structure exists here, and i've come to assume that any ugly and awkward UX i encounter on Hacker News is meant to be a feature.

Adding a few things like thread collapsing and sorting would make navigation a lot easier. There are already userscripts to do this, however.
Whose line of argument?
Servo is a research project, not a project to bring multiprocess support to Gecko. (Presumably you mean multiprocess support, not multithreading—Gecko is already highly multithreaded.)

In any case, Gecko is multiprocess already, and it's fully deployed on Firefox OS (and, as of recently, sandboxed). Firefox is not multiprocess because (generally) the front end has not yet been ported, and the project to do that is called Electrolysis.
Being common doesn't mean it's working. Every single time I see a coupon box I have to search for a code. Then sometimes I get pissed if I can't find a discount and go somewhere else.
I eat a fixed amount of calories everyday.
What self-regulating mechanism are you talking about?
Appetite? There's no clear consensus on that.
We do know we have desire to eat. There are drugs that are pretty decent at suppressing appetite.
But the claim that it's good at optimizing for life expectancy has little substance.

Just as sexual-desire might have been a nice mechanism for ensuring reproduction many years ago.
But nowadays we can do better. There's no need to have it from a life-expectancy perspective. Hormones responsible for it are pretty toxic.

Appetite has it's role. But to claim somethings superiority based solely on being a 'natural'/'innate'/'genetic' is pretty naive.
By extending this logic to other behaviors it's patently obvious that it's just not sound.

I see a lot of potential problems with Soylent. This part might or might not be a big problem.
But the kind of simplistic arguments that are thrown around against and in-support of Soylent are depressing.

I replied to your comment but I address it to everyone.
The article itself is just so low quality. Basically a very close-minded attack on Rhinehart with ambiguous mumbo-jumbo claims about nutrition.

Having been interested in nutrition for a long time I actually read many papers in search for answers. Finding high-quality research in that field is HARD. Doing good research is hard too.
We're very very far from even resolving the whole carbohydrates vs protein vs fat war.
See my comment below - it's a play on the book, not the movie. He was hoping for the original connotation of what the book intended, not what the movie intended. He talks about that here: http://io9.com/could-soylent-really-replace-all-of-the-food-...
> Soylent could help bring food to areas where people starve to death.

I think most people would prefer food if they're starving. And for genuine medical emergencies there are already genuine medical food substitutes intended to be used on a temporary basis.

> It could be a good alternative to take when camping and hiking for days.

Google "trail mix".
Black-Box Assessment of Pseudorandom Algorithms
That's not the definition of the word "comment" at all.

Who is the authority on whether commentless code is good or not? Could this possibly be completely subjective? Hmmm.

> Oh, I know. It's very easy to add a comment...but [it] ends up being more cryptic than your code.

You don't know that :)
This is true, but the problem is that the education out there is highly fragmented, polarizing, hand-wavy, and/or impractical most of the time. If you have an idea for what this education might look like, I guarantee you there will be no shortage of "experts" to counter-act your ideas from numerous different viewpoints, each with surprisingly valid points of their own.

The fact that nobody likes to admit is that nutrition is still a large 'black box' in the human system, and we only know a handful of basic correlations that involve it. Macro nutrients aren't nearly as important as 'low carb' dieters like to think they are; glycemic index and blood sugar levels aren't nearly as important as some others like to think they are; similar story for acidity and all kinds of other theories. Then for caloric intake, most arguments stand on top of the high-horse of having the most scientific backup and leave it at that, without ever giving much practical information. No, exercise is not an efficient way to burn calories; and No, just because a diet is backed by some misguided theory does not mean it's not a significantly more practical approach to take. However, because there is such polarization, nobody ever reaches a consensus for what's a good practical (!) approach to eating healthy that's actually backed up by significant data. Personally, I don't see this happening anytime soon either, at least not until we discover everything there is to know about human digestion (and that includes developing the understanding of the relatively 'new' microbiome as well).
There is a bouncing down arrow at the bottom middle of the screen, unless it has changed since you posted this comment.

Update: I read lower, and Mike totally DID add it after these comments.
That's a clever customer focused solution.
I don't know how they could have worded it better. More detail about the author:

"Greg Stevens is an ex-academic and corporate mathematician who writes about science, philosophy, history, fitness, politics and the intersections between them."

So he's every bit as unqualified as Rhinehart.
The Science of the Great Molasses Flood
Ah, thanks. SDL_RenderCopyEx seems like a very versatile function[1]. The 2D Accelerated Rendering doc[2] seems to cover all my basic 2D rendering needs. The wiki[3] is really nice, and I like the page listing APIs by category[4].

I think I'm going to switch to SDL, primarily for the Android/iOS support!

[1] http://wiki.libsdl.org/moin.fcg/SDL_RenderCopyEx

[2] http://wiki.libsdl.org/moin.fcg/CategoryRender

[3] http://wiki.libsdl.org/moin.fcg/

[4] http://wiki.libsdl.org/moin.fcg/APIByCategory
> In my view, the "walled garden" of iOS is just the next step in what Apple had already intended to establish for the original Mac.

I imagine this is a quandary that shows up not in computing, but anywhere that users interact with a single source of definitive rules.

For example, it might be easier for government to erect certain walled gardens... or for companies to do this with their employees, parents with their kids, etc.

It's not that I don't understand their position or view it as probably the best way to herd cats (I mean, "consumers").

But hacker-friendliness is what gets you the top echelon of users drifting toward your hardware and software. As a result, it's a huge (but invisible) business draw.
The body's needs only change because you're not getting everything you need with every meal. Soylent gives you everything you need all at once. I don't see why people in the 21st century still believe there's something magic about the food we eat.
I could be happy using either just a nice Lisp or Perl the rest of my life. (Perl do look more likely, since e.g. the last time I checked the Lisps I didn't even find good Unicode support, etc.)

But you didn't expect a serious answer.

You've written five(!) troll comments in this discussion -- as of now, total comments are 28. The last four trolls in 12 minutes.

In short: You're a complete drag on HN signal-to-noise and give pathetic waste-of-air language war trolls a bad name.

(All complex language environments have duct tape and baggage. And... ah, why feed the stinking trolls?)
It's like a Window. You can “turn off” a window by putting a curtain over it.
This thought hit me hardest yesterday (I even blogged about it !). We are wide open to commercial and political abuse from anyone with access to this level of surveillance.
I brain dumped a few of the ways, but really, those who could help government really remain anonymous are actually helping NSA gather the stuff (i.e. GCHQ)

I suspect the most likely approach is a open collaboration and funding from say Brazil or Uruguay or Japan. Folks whose governments are being listened to but not getting the juice afterwards.

- http://blog.mikadosoftware.com/2013/08/12/nsa-prism-some-imp...
Do you try Hakyll ? http://jaspervdj.be/hakyll/ The best website static generator I think :-)

And you can host on EU law with Clever Cloud
That is the characterization, isn't it? Middle class teenagers versus fat cat bankers. But in reality it's often middle class teenagers or even organized Russian criminals against gullible old people who are susceptible to pishing tricks. 140 years ago, you might as well have been talking about middle class guys versus fat cat railroad companies.

There was often loss of life during train robberies, but the economic disruption was a major component. People knew Jesse James for all the trains he robbed, not the people he killed.
loved the Utini !
Changelog here:

https://metacpan.org/module/RJBS/perl-5.18.1/pod/perldelta.p...
The high speed rail wasn't going to stop at B through Y anyway, and the hyperloop supposedly takes less space.
Roads? Where we're going we don't need roads.

Multi-lane roads are fixed routes that can be blocked by a single lorry and frequently are. Without a massive network increase, roads are rapidly becoming of appalling value on many major routes. Everything fails in the long run, including the current road network and we need ways to build capacity with minimum land use, because land rights are often the major cost.

Also, the car hauling version integrates directly with the road network anyway so I don't know really what your network complaint is about.

Besides, all transport upgrades, including road or rail, are just a faster connection to a dysfunctional network. If we were happy that it was properly functional, we wouldn't be looking to upgrade it.
"and there's PLENTY of shady stuff that some of them do". I assume you are talking about things like cookie stuffing and fraudulent purchases. In that case yes it is a scam, but this author is crazy to just flat out say all affiliates are scammers. I bet he sent $400 to nigeria and never got his $2.3 million royalty back.
soylent strikes me as yet another meal-replacement shake (slimfast, ensure, etc), only with clever and up-to-date guerilla marketing, targeted at tech-savvy 20-somethings who often don't put a lot of thought into food. since meal replacements are a proven, decades old, multi-billion dollar market, i am sure they will find at least a reasonable sized customer base.
You should come to one of our local PerlMongers meetings (http://pm.org/).

I think it would change your mind about a number of things!
You are talking about something from year 2000 -- and ... ah, you've written 5 troll comments, the last 4 in 12 minutes.

There were less than 30 total comments in this discussion, including those five.

You must be the saddest troll on HN. I'll not feed you. Sorry for not brightening your "life".
He can't possibly have been unaware of the fact that the movie is far better known than the book. Even if he meant it as a reference to the book, he must have been aware of the movie.
Florida to Test Drones for Mosquito Search and Destroy
What Blogging Every Day Taught Me About Creativity
I want to know what kind of network would keep an advertiser that pays nothing.
Using the Reactor Processor for High-Performance TCP
What does Hacker News recommend as a standalone AJAX solution nowadays?
(User woe, you have been hellbanned which is a shame because your points in this thread have been quite true.)
It's not theft. You put a coupon code box on your checkout. How can you NOT expect people to go look for coupon codes?
That 10% probably consists of candy for the kids and alcohol for the adults.
> Unions need to learn to be better citizens and to truly understand and partner with businesses. Then, and only then, everyone wins.

There's two sides to this coin. Businesses don't have a very good track record of treating their employees well without some outside influence like government or unions.

By the way, this comment here reads very differently from and much more reasonably than your "the goal of union leadership is to extract as much as they can out of the businesses they infect, even if this means their demise" rhetoric in the first comment.
> [Elon Musk] already killed the Space Shuttle program and its standing army of $1B/yr payroll patronage jobs.

What did Musk have to do with Space Shuttle program cancellation? I thought it collapsed under its own weight - disasters, costs, slowness etc. Please provide links if any.
Unique Tea Cultures
Reminds me of http://www.appsumo.com/wantrepreneurs-business-blueprint/ and how you should first be focused on testing/validation rather than actually BUILDING a product. Great stuff!
Already using Debian here
What it feels like for a sperm, or how to get around when you are really small
So the 'expert' could only come up with "water might not be good enough to transfer the amount of heat that will be produced"? That's not much of a hurdle, really. Start with different materials: use coolant, for starters, instead of water. Also: the vehicle is being levitated by powerful fans.
The vast majority of "person doesn't eat and still lives" stories are fakes or the person in question actually does eat and drink, sometimes secretly.
In Australia this could potentially be viable between Melbourne and Sydney, but probably only if it doubles as a cargo train. I doubt there is enough daily people traffic to warrant it otherwise?

It is around 900km though, almost a straight line along the Hume highway and the busiest city-pair in Australia by a long way.
A Taxonomy of Code and Comments
This is great news. Thanks for posting it.

To me, Perl represents the most organic language out there. It arose from a collection of traits in other languages and macro vocabularies. It's held together by a series of lexical assumptions that work because they mirror our intuition.

But even more, it's kind of the anarchy zone. You can write whatever type of code you want. However, the people who make readable, clean, efficient, and functional code are the ones who rise.

With CPAN, and the ingenuity of millions of Perl hackers, there's nothing it can't do. If you've never tried it, play around in it awhile. You might like it... and stay forever.
Whats with the luck factor? You can hire newbies and train them to learn Perl. The Learning Perl books are fantastic.

If you have an experienced team and new programmers willing and eager to learn Perl, lady Luck can go for a fuck.
Same kind of stuff pop-out if you try to whois google.com, although sometimes it depends on the whois server whether it lists all the domains.
Download link is currently broken, it should be:

https://rawgithub.com/nbubna/HTML/master/dist/HTML.min.js.gz

To those asking why you'd use this in place of jquery, the only reasons to use it are that it is smaller, vastly simpler, and yet does the things which many people use jquery for with a neat syntax. One of the main attractions for me is that it seems to get out of the way far more than jquery - elements aren't wrapped, behaviour is as you'd expect from the DOM, so you don't have to learn a new API just to manipulate objects in the way that you do with jquery.

Re speed issues, if you're using this enough or on documents where speed of selection is an issue, you could simply optimise the particular selector and just use the DOM to get a speed bump. I've not often seen a case in real-life where this matters though, does anyone have any examples we could look at?

If you want to use jquery plugins, cater for IE < 9, or use things like jquery animations or UI obviously you wouldn't want to switch.