skysight-inc/HackerNews huggingface dataset:
I have some experience with dry ice in closed containers.

Every now and then some friends and I will get some dry ice, a bunch of plastic bottles and other containers with a screw-on lid and have a laugh making small explosions.

Basically you take a bottle, fill it 1/4 with water and 1/2 with dry ice and screw the cap on. You then have around a minute before it explodes.

A 1/2 liter coke bottle will make a nice whooompf and a 20 liter plastic gasoline can (the largest we have tried) will make a bang that can be heard maybe half a mile away. They very rarely sizzle out, and the ones that do probably have a defect, or we didn't get the cap screwed on properly. There's some time pressure, so you don't stand around checking before you throw the container. I would imagine that a metal container will make a pretty big bang (higher pressure before it ruptures) and may throw out some nasty debris.

It's good fun!
It reminded me a lot of R shiny clunky apps. But the goal is "fast apps fast" so yeh.
The rejection method is never better I think, work smarter not harder. But it's an easy way to remember and do it. Don't recommend using it when you any actual performance.

In terms of CPU power, calculating the length of the vector and doing a branch, I think, is going to be slower then the proper way to do it.
Where to Test Android Apps on Samsung Galaxy S6 and S6 Edge
Nice gesture!
Regardless of how good it is, the presentation could and should be improved. Quick to grasp examples, an explanation telling me which problems this project solves and as a bonus how it compares to other frameworks. All of this should be on the GitHub readme frontpage.
Poor presentation is like a 0.01 multiplier for your amount of potential users. It's easy to avert your eyes from this but it's almost as important as the quality of the product itself.
Show HN: Startup Timelines
The Surprising Media Manipulation of Travis Kalanick (Uber CEO)
> A1 and A2 have different limits. It will be clear
> if the upper limit is changed to something other
> than infinity.

While it might be true that A1 and A2 have different limits, the reason you give is not sufficient to prove it. Consider the following:

1 + 1/2 + 1/4 + 1/8 + 1/16 + ...

and

1/2 + 1/8 + 1 + 1/32 + 1/128 + 1/4 + ...

In this second case I'm taking two odd powers then an even power, and so on.

If your argument were valid then these would have different limits, because if you cut them both off after some number of terms the totals will always be different. However, these two series in fact have the same limit.

And in fact A1 and A2 have the same limit, so that's not where the problem lies.
Please add a more descriptive title. Is that some kind of autobiographic short story? Is it something that teaches how to be a better entrepreneur/developer/designer? What kind of people would be interested in reading that?

edit why is it so hard to say that there is a novel to read and not some specific information? It's okay to be a novel, but some people don't want to read novels.
Hey Jono, thank you for the suggestion. I have actually been watching freecycle for a while but have had no luck.
You might enjoy getting started with a kit like the SoftRock SDR: http://fivedash.com/index.php?main_page=product_info&cPath=1...

Personally I think it makes sense to start with a pre-built radio to learn the radio technique and have something to compare with, but with an oscilloscope you can probably hack a kit into doing something useful. (I have the Softrock RX kit. Works well to receive WSPR.)

73, KD2DTW
> I guess the Rust community isn't so carefree and non-sensitive after all.

Carefree? Mostly. Non-sensitive? Pretty much the opposite. Rust community is extremely sensitive. The rules are lax, but they draw the line at making contributors uncomfortable.

In IRC, the poop jokes and calling people guys, would have the same chance of drawing ire, which isn't huge. The whole "guys" thing is just a smidge more likely to draw ire. However if you are insistent on either accounts expect to get ostracized.

> I guess they don't feel like they belong in any part of mixed gender society then, since it is so widespread.

Well, yes. It's not like women make on average less than their male peers.

-------------------

Let me show an abriged version of what usually happens in IRC.

Anon: Hi guys,
Mod: We prefer the term guys and gals :)
Anon: Hi guys and gals*

Anonhole: Hi guys
Mod: We prefer the term guys and gals :)
Anonhole: I know.
Mod: We have a term of conduct, please read it.
Anonhole: I won't
Mod: *ban* Anonhole
I disagree. If there is one thing that is effectively endless is books to read. If you read one book per week for you entire life you would barely scratch the surface. This means that there is an incredible variety of books ranging from the fun entertaining page-turners those books that you "need a degree" to understand.

The thing is, just because a book has a higher entry barrier (and a higher payoff) doesn't mean that it is objectively bad because it doesn't appeal to everyone. Maybe it's not for you, but it can certainly be appealing to many people who enjoy delving into a book and analysing if and so on. I don't have an English degree so I probably won't be arsed to put it the effort to read Finnegans Wake or whatever. But I certainly enjoy reading and analysing boss with more depth than DaVinci's Code.

The same thing happens with games. Maybe you have no interest learning chess, and prefer to play Angry Birds because it gives instant payoff with little effort. And that's fine. But it doesn't mean that chess is "objectively inferior" because there is depth to it enough to study full-time for a lifetime. Same thing happens with music, and any art form, I guess.
"Guys" is not gender neutral for everyone. You might find it that way, and I used to, but many women don't.

Re:IRC: You're conflating different things here. The IRC incedent was a sexual comment. Strict nono. "guys" is something that will be frowned upon. Sexual jokes are also a nono. Just today someone made a penis joke in IRC, and was similarly told to stop. Poop jokes -- childish, maybe, and certainly frowned on by some, but not considered harmful.

I don't see anything wrong with arbitrarily deciding. You're free to not play in the sandbox if you don't like the rules. The community likes those rules. And fwiw the rules don't disallow "guys". Again, you'll just be asked politely to not do that.
Samsung: From a grocery shop to the largest company, a story
That's a fucking terrifying suggestion
Look at Elecraft (http://elecraft.com) and start out building one of their kits. I have a K2 and a K3.
China rates its own citizens – including online behaviour
They probably have rights to the project under the respective contracts they have with the employees. That aside, having "<new project> by ((Google(|rs))|<$big_corp>)" in the title has generally been a reliable filter for projects that do not stand on their own merit, and this one seems to be no exception.
It really depends a lot on the type of information you store on people. Is it very personal/sensitive? Is there money involved?
I have one, but haven't put it together yet.
You have $8B. You want to do as much good as possible. What do you do?
There is a general problem with combining destructors and automatic collection of reference cycles, and its one that several languages have unexpectedly found themselves facing.

For example, Java has the function System.runFinalizersOnExit, but if you look at the documentation you'll see that it now says, "Deprecated. This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock." http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.h...

The problem is discussed in detail in Hans Boehm's 2002 technical report “Destructors, Finalizers, and Synchronization”.
http://www.hpl.hp.com/techreports/2002/HPL-2002-335.pdf

Boehm's key points are: (1) When a destructor on an object O runs normally, anything that O points to is still alive (because of the reference from O), but when a cycle is collected, not everyone can go first: that is, all but one destructors in the cycle have to run after one or more of their references are dead. It is hard to write destructor code that is safe in all cases. (2) Any destructor that needs to update a concurrently accessed data structure has to take a lock, but destructors on cycles run asynchronously with respect to the rest of the program and so an unlucky timing leads to deadlock.

If this problem was better appreciated then language designers wouldn't go down the rabbit hole of trying to figure out how to make destructors work together with automatic collection of reference cycles, and instead try the alternative approach of providing mechanisms for the program to run destructors synchronously.

In the Memory Pool System we use a message-passing interface: http://www.ravenbrook.com/project/mps/master/manual/html/top...
> I can test it later today if time permits and upload a video

+1 - I'm always up for a good explosion video!
Do your finger and hand implants trigger airport metal detectors? I'm not sure how sensitive those machines are, but typically they let through people with a bit of metal on them (e.g. wallets with several RFID-enabled cards).

Perhaps the neodymium magnet would trigger a response. Is that a popular implant?
Not syntactically legal, unless it's special-cased or we unusually make a lowercase constant for that purpose. declare() takes a constant value.

Well, it could've been this:

declare(types="strict");

Alas, we are beyond feature-freeze now. Also, I quit PHP development.
Glad you found it interesting! Let me know if you have any questions.
In this case I don't think it sacrifices much clarity, and it avoids the word "typehint" which is controversial (correctness is disputed). Using TRUE wouldn't necessarily be more correct, it's fairly arbitrary.
Hack's is a comment, not a proper pragma, too.
>For A1 and A2 to be equal, A2 will have limits x=1 to 5.

I should have added 'For A1 and A2 to be equal' at the start. If you want them to be equal, they need to have different limits and if they have same limits, they are not equal.
Weekly Revs – Email Newsletter for Car Enthusiasts
Weekly Revs is a once-a-week email newsletter that informs you about everything from the world of exotic cars.
TRAI Makes 1M #NetNeutrality Email IDs Public
Sinclair ZX Spectrum Computer Teardown
So is Washington ever going to acknowledge that they've done something wrong or are we going to keep playing the fascism game?
Show HN: Mosaic Mage – Create unique mosaics from your favorite photos
He was working on the assumption that there was significant pressure built up in the thermos. Puncturing it would release that pressure causing a potentially dangerous explosion. The same premise as puncturing a balloon except the balloon in this case is made of metal and glass and the amount of pressure is significantly higher.
Not necessarily the most efficient though: the Box-Muller transform that is probably used in the call to randn is related to the transform you'd need to start from uniformly distributed reals.

So your solution ends up pretty much using the same math (while probably calling cos a few more times) and throwing away at least one random number and possibly half of them (depending on the implementation of randn).

http://en.wikipedia.org/wiki/Box–Muller_transform
This is interesting, and I have been thinking about this quite a lot recently.

I used to read books by the dozen. Sometimes literally, in about 2006 I discovered Gollancz/Orion's "Sci-Fi Masterworks" series and was getting through more than one per week, in addition to holding down a job and having a pretty active social life.

Now I don't think I've read a book since I motored through my second reading of the "Song of Ice and Fire" stuff last year.

I, like the author, also find myself putting on some of the best TV there has ever been, and then doing something else while it's on, like checking email or facebook, or reading HN. So I don't really absorb it.

I don't want to cut out tv, but I do want to be able to concentrate on it, and I do want to read more books again. And get control of my sleeping patterns which have always, always been up the wazoo anyway.

So perhaps I shall join in and try to do as the author of this post has - start reading, deny the instant-gratification urges and reclaim my brain and my attention span.
Elasticsearch, Logstash and Kibana (ELK) stack.

This is very convenient for decently complex querying and analysis at great speeds.
Clock speed does not equal performance.

For instance, the Z80's fastest instructions took four cycles, where the 6502's fastest instructions took two cycles.

The Z80's slowest instructions took 23 cycles, and the 6502's slowest took seven cycles.

And even that comparison is over simplified.
> Nobody wants to be the pilot of a jet moving at Mach 3.2 when the windshield gives out and leaves you exposed to what must be an instant death

In case there is someone on the internet who has not seen the story:

http://roadrunnersinternationale.com/weaver_sr71_bailout.htm...
Opbeat Metrics on iOS
The 1982 Sharp MZ-80K manual begins with this wonderful advice
NETHERLANDS FROM ABOVE – Migration of Honey Buzzards (2014)
As aside:

I just discovered that the language authors are converting the std library (phobos) to be "no GC".
My father once described Malcolm Gladwell as "that man who writes books that should be essays". I think that also sums up my feelings about this.

A particular bugbear of mine is when a non-fiction article starts by describing the weather or somesuch. If the opening line is "It was a warm summer's day when Joshua first..." then I just give up then and there.

There's no glory in padding.
Not if you don't have a unique index or put the transaction in a different mode than the default which often is "READ COMMITTED".

You could put the transaction in SERIALIZABLE mode, but that would mean that your database has a lot of additional locking to do which you might or might not want to pay the price for:

Your two-part query now block all other transactions from writing to the table(!) and conversely also has to wait until everybody else has finished their write operation.

Doing an opportunistic attempt with READ COMMITTED and reacting to the unique index violation (official SQLSTATE 23505) is probably the better option.

Resist the temptation of READ UNCOMMITED in this case because that might lead to false-positives as competing transactions might yet be aborted in the future.
>“If you just put a swirl blur on somebody’s face, it’s not very difficult to unswirl that blur, and then all of a sudden it’s un-redacted,” Shaw said.

Then use a REAL BLUR.
In case you guys haven't seen it, there is some great discussion of (bootstrapped) startup life here: http://zenfounder.com/ - not all the episodes cover things that interest me, but there are some good ones.

Edit - I don't get the downvotes - to me my family is the most important thing in my life, and anything I can learn to make things better for us is well worth it. I figured it was sort of relevant to an article about a divorce, especially since Sherry has advice for regular people who are not billionaires.
>I don't want to just go out and buy something.

Just get a Baofeng something or other so you can start playing around. You won't love it enough to let it be your only radio, and if you do, so what?

>... my oscilloscope (unlocked Rigol DS1054Z) only goes up to 100 MHz, so VHF and UHF radios are probably out of my DIY league.

I guarantee you that most hams do not have a scope that is anywhere close to your 1054Z. Have a look at some of the kits. You'll see that there are clever ways of building / tuning circuits that don't require you to have an oscilloscope whose BW is >= the max carrier frequency.
Wurstify.me
We outsource it. I know how to administer it myself, but damn I don't want to ever administer WordPress myself any more. (Except on my personal blogs, but I'm a control addict there.)

If at all possible, use wordpress.com. Pay some $$ for the redirection.

Other outsourcers: Pagely. They're not terrible - they are middling in competence, we have occasionally had to tell them precisely how to do some simple thing - but basically we don't have to interact much, and that's THE DESIRED OUTCOME.

WordPress is a commodity these days, treat it like one.

(The reason to use WordPress: it is the best blogging platform these days, and is really good as a simple-semistatic-site platform, and it is commoditised with third-party developers and hosters growing on trees. In almost no cases are you actually going to have a legitimate need to reimplement blogging yourself.)
Well lets return to the Atlantic for an article on how.

http://www.theatlantic.com/politics/archive/2014/12/how-poli...

You have to be accused of a crime before a Judge gets involved. That was the whole point I was making. The unions do their best to keep the officer from ever being charged. Got to love the down votes on my previous post, ignorance is of the power of these unions are why we have the problems in the police we do today.

Even politicians run scared as some city unions have put up billboards next to homes of politicians who dare challenge them.
This sounds a lot like Microsoft's TypeScript.
The Ads Dilemma
You thought that was an insightful observation? Perhaps you should also share your observations about the color of the sky (people may not know it's blue).

And if you wanted to say it's not the center of the universe, maybe you could have said that instead of calling an entire major city pretentious.
Well it all comes down to what bug holes you will release and what type of data you will be handling.

If you will be handling sensitive people information then you need to make sure that those are safe. Last thing you want is you new startup to be easily exposed and get a beating.

If someone might just game the site and get something that wont affect anyone else, then you might ignore the fix for a while.

But you should try and build whatever you are with a relative safety net. You cannot have bugs and holes in your system that will expose the system to hackers that will take over everything. Cause then it will be game over for you. No one will trust you afterwards.
There's very little reason to think that the death penalty was ever an effective deterrent.
Here's a nice article with pictures on sphere point picking[0]. Here is another [1]. The surface of a sphere in 3-dimensional space has only two dimensions. You can specify any point on the sphere with two coordinates (spherical coordinates). The mathematical expression for this sphere is S-2. If you're using three coordinates to generate the point, you're using more than you need. It's straight algebra to convert from spherical to linear coordinates if you need those for your work.

[0] http://mathworld.wolfram.com/SpherePointPicking.html
[1] http://stats.stackexchange.com/questions/7977/how-to-generat...
Spanish nouns have two genders, and a corresponding plural for a noun of that genders. When you have a mixed group, both chicos (boys) and chicas (girls) you use the masuline plural (chicos).

I've also noticed that male genitalia are used to mean something positive (es la polla, tener cojones)

and female genitalia are generally used to be negative (un coñazo, coño)
The article links to an article that explains it really well:

https://defuse.ca/race-conditions-in-web-applications.htm
Don't worry, a lot of people use these types of tools for the right reasons and in the understanding that there is a bigger picture. They just don't feel the need to get all preachy about it.

I've already got a use in mind for it where it could certainly help me save some time. Thanks for your work!
Dog trick video
We have several teams pushing logs into a shared Logstash, over RMQ.
Depending on the amount of logs you have, I would suggest you have a separate RMQ cluster for the logs.
That said RMQ is a great buffer for logs, incase there is an issue with logstash / es at the far end.
Breathing as good as medication for life.
How's the systemd move? Is the conversion from upstart reasonably feasible?

I've actually been using upstart a bit as a sysadmin. It is the sort of thing that is clearly The Right Answer compared to init scripts.
In Battle Against Alzheimer’s, Here’s Ground Zero
I second this. I have both KDE and GNOME Shell installed and working on Ubuntu. They really are one-liners.
We shall have to agree to disagree then.

Literary analysis doesn't appeal to me in the slightest. The enjoyable part of the reading experience for me is engaging with the picture it paints, with the world it posits and the characters it places within it. I certainly enjoy reading books with more depth that The DaVinci Code, but I can think of little that would interrupt my enjoyment of reading more than stepping back and analysing 'clever' sentence structures.

I occasionally enjoy strategic board-games, in order to understand the emergent rules of play that come from the board and given rules. That said I have never really bothered with chess. I don't think chess is objectively inferior to other games though, I don't think the two are equivalent. Literature with deliberate, designed density of meaning comes across as intentional obfuscation rather than simple complexity.
Starter Apps for Apple Watch
Yeah that's kinda sucky too. I assume it's because they also support their "strict" mode with regular php files?
I'm probably the only one doing it outside a bank or hedge fund, but since kdb+ opened up their 32-bit license for free, it's been amazing working with. Log files and splayed tables are stored neatly on disk so backing up to aws nightly is a breeze. It is a great solution for high tick rate logging of homogeneous data, especially when that data needs to be highly available in business applications.
You can quite easily do that with Mozilla Heka [1] and a bit of Lua scripting. Recently a haproxy log decoder was posted here - https://gist.github.com/victorcoder/4b9bea9ade7671fcea75

So in Heka set up an input (LogStreamer for example), and use that haproxy decoder script (as SandboxDecoder) with it. After that pass it through any filters you'd like (like StatFilter) and output collected stats with HTTP output + influxdb encoder.

(I just built a log parsing and stats collecting pipeline for our Heroku apps with haproxy + heka + influxdb + grafana. So far happy with the result.)

[1] https://hekad.readthedocs.org/
A perfectly unbiased text :D
You are right, I would haved loved this as a student too. But today there are real open source alternatives. Especially in an academic environment it is essential to be able to modify and share source code without restrictions so you can experiment and collaborate as you wish. E.g. students should be able to add custom instructions, experiment with cache architectures, build multicores, etc. All with the architecture they learned about in class.
I'm finding that completely impossible to parse.

In particular:

If you want them to be equal, they need
to have different limits and if they have
same limits, they are not equal.

That seems to be completely wrong. Consider these:

sum_{x=0}^oo (-1)^x (1/x)

and

sum_{y=0}^oo [ 1/(2y) - 1/(2y+1) ]

These are equal, and yet replacing the "oo" with n always gives partial sums that are different. So I guess I just don't understand what you are trying to say. Perhaps you could be more complete and explicit.
I am not a huge fan of Medium.com, it has way too less content displayed per screen, way too huge font and one has to scroll all the way down to read anything, it is annoying , not to mention the huge images everwhere, which gives the images more importance than the content.
The message is: lie. Lie more. Make your lying perfect in its smoothness, with artfully planned designer rough spots.

This sort of article demonstrates what is wrong with the hiring process: all the incentives on both sides are to lie. And this manager fails to see his part in making it this way.