skysight-inc/HackerNews huggingface dataset:
From the article:

> If once, twice or three times I do not play as well as I can, it is possible to record and re-­record, to destroy and remake until, at last, I am content with the result.
Micromax’s Next Device in YU Flagship Is Yuphoria
Prototype equivalents for jQuery functions
I've just rolled out a service using TopShelf having not used it previously. It really does simplify things. The best bit for me is being able to just hit F5 and having the thing run as a console application. No need to manually attach to processes for debugging.
I never said they don't lie but that they educate their population about this "color revolution thing".
In my city the 3G is incredibly slow. I need 4G to be able to stream music.
How to control your anger in an argument
I see you're getting downvoted, but no one is bothering to explain.

First, the market in general works in the exact opposite way. You can invest a million dollars a lot of places; with enough luck and skill you'll earn a great return. Keep doing that and soon you'll have, say, 500 million.

But 500 million is harder to invest; you might say "stock X is really undervalued; I'm going to go long!", but if stock X has a market cap of 10 billion, you'll struggle to find 500 million in shares to purchase on a whim, and in so doing, you'll push the price up, and now it's no longer undervalued. Many investments that work for the guy with 1m don't work for the guy with 500m.

But if you keep going and keep being lucky (or skilled) you might end up with billions or hundreds of billions. Now you're basically fucked. Most possible investments don't have the liquidity or capacity to absorb the money you're trying to place. At this scale you aren't picking companies; you're picking industrial sectors or countries. You'll never make a great return like that. Plus you're being watched constantly; the merest rumour that you're about to invest will end prices soaring or crashing before you can move. You can "push the market around", but only in ways that benefit smaller, nimble players, not you. At that scale, your ability to be clever is basically nil.

Which brings us to the second point: Vanguard is an index fund. They simply buy an even mix of the shares that make up an index. Their entire strategy/promise is that they won't "push the market around" (which is the reason they have $3t under management; people explicitly looking for people who won't try and be clever).

So your question is "couldn't Vanguard do the one thing they don't do, because it can't work"? And the answer is no, it can't work, which is why Vanguard exists and has those assets.
The technical analysis pinpointing the attack to the Chinese government was definitely not blurry.

If anything the attack was pinpointed to Chinese infrastructure, not the Chinese government.

TTL based tracing is very deterministic and easy to understand

It's only deterministic if you trust all hops between yourself and the target, as any of them could fake the remaining route.

I don't know about you, but my 'traceroute baidu.com' passes through AT&T, an american company that is mentioned first in about every article and lawsuit about the NSA mass surveillance.

So if you're willing to buy into the theory of China performing this attack just for a demonstration of ability (because there's no other visible benefit), how can we know it isn't exactly the other way round?

[1] http://en.wikipedia.org/wiki/NSA_warrantless_surveillance_(2...

[2] https://www.eff.org/nsa-spying
Well, they did include a footrest. It's a start
I wish I could move everything to 7. I had to modify our kickstart but that is not surprising, but haven't really had any other issues.

What sort of problems have you encountered?
So it basically means we could track users using local storage instead of cookies...?

This is bad.
http://www.ikea.com/us/en/catalog/products/S19022530/ - It looks like they are available in the US
What is the purpose of this - enabling access to a support or alerts role mailbox from an internal web app?
>You're conflating black emancipation with black equality,
>Because there was a civil war going on, and as a practical fact he had to keep border states like Maryland and Kentucky from being dragged out of the union if he wanted to win it.

You're proving my point. The aim of the war was not for black equality.
Ah, I forgot about before/after/around. That makes sense, thanks!
Not only that, on LOC is the goal; the Go code isn't written in most terse form, there are numerous unnecessary newlines and they do things like:

Examples:

cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

vs

cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr

and:

if open == 0 {
fmt.Println("ok")
} else {
fmt.Println("not ok")
}

vs.

if open == 0 {
fmt.Println("ok")
return
}
fmt.Println("not ok")
Guess the code will live here: https://github.com/hackpad/hackpad
People talk of boycotting china's products, but has there ever been a real discussion about refusing to sell products in China? With the growing desire for western/external goods, cutting off the Chinese people's access to our[sic] trinkets and stuff might put real pressure on the State to back off on censorship and HRVs to forestall any popular movement...
Even easier is using sawhorse brackets and 2"x4" lumber. For the cost of a top (Ikea solid wood, etc.) and <$25 for the wood and sawhorse brackets[1], the price can't be beat. Just cut the wood to length and you're done.

Since it uses sawhorses, a desk built this way can support hundreds of pounds and is easily portable.

I recently built my girlfriend a desk this way[2] (2x bracket packs, and five 2"x4"x8's), and we moved it using a small Prius. I ended up using the wooden top from an old electronics workbench after sanding off the glue blobs, filling holes with water putty, and sealing it with polyurethane. If you do build a desk this way, miter the leg ends to ~30º.

1. http://www.homedepot.com/p/Workforce-10-Compartment-Sawhorse...

2. http://i.imgur.com/b0QxSII.jpg
Why can't you compile native binaries on your dev machine?
It may not be as big and publicly visible as we think. Big would be targeting a stock exchange. Thinking at the nation-state level, Github is small potatoes. Who is going to know or care outside of the tech sector?
Forgive my ignorance, if anyone knows of an initiative that does what I am about to suggest... It's an idea off the top of my head, without too much thought: Is it about time we start to sign our javascript so that browsers will only execute the JS if it can verify the signature? I know, there are so many drawbacks, especially for those of us who are developers, but I'd value security on the Internet over the additional development overheads.

Or depreciate HTTP and enforce HTTPS only?
Guided Meteors (inspired by Stripe Connect)
Not so Fast, Brontosaurus
If you want the other extreme, these days you can do real-time raytracing entirely in an OpenGL shader:

https://www.shadertoy.com/view/XdfXDB

(There's no geometry in that scene --- the shader is run for each pixel independently!)
Propaganda is by definition a lie.

I meant they were educating them about "color revolutions" and that it was certainly better than just censoring the ideas that bring color revolutions.
MSE notified me that it had quarantined a threat. I didn't realize it was this website -_-
If you haven't tried it yet, I would highly recommend using Chocolatey [1] to install Windows software from the command line. Chocolatey packages install without all of the crapware and "uncheck this box to maybe not install a bunch of junk" dialogs. I would estimate that 95% of all software I need to install on Windows is now available as a Chocolatey package, including Chrome, Firefox, Git, NPM, Notepad++, GIMP, Steam, Fiddler, etc.

The best part is that Chocolatey will be included in Windows 10 by default, through the built-in OneGet package manager.

[1]: https://chocolatey.org
Woah Disney moved my Star Wars cheese
It isn't. It's a rather mechanical comparison of Rosetta code fragments. It can be useful if your question is: "I know language A, how do I do the same thing in language B?"

As a straight-up comparison of two languages, it seems to be fairly useless.
Assuming the people being tested are English speakers, code has key words, which are already in your native language, and symbols, which to some extent echo their use in English.

Japanese does not have key words that are already in English. This is why it's generally considered harder for an English speaking person to read Japanese than to read some simple code.

There are orders of magnitude more people who will program in future than which program now. We should absolutely design things around those people.

Edit for natedad: 100% of people that fixed a bug were non-programmers at some point.
autoconf yes, but Makefiles, no. I'll write a new Makefile from scratch maybe once a year or so.
I hope this drives home the need to stop including 3rd party javascript on websites. It makes visitors' browsers load and run code of variable trustworthiness. The browser sandbox is entirely ill-equipped to keep users safe and secure online or prevent their computers from being leveraged for malicious ends. The sandbox allows everything but the most indefensible exploitative actions.

HTTPS is great and all, and does change the threat model but the Chinese government controls root certificates your browser trusts. And they weren't worried about getting detected funneling traffic to github.
It depends, I stand by the statement that every COLOR revolution is a CIA thing.
The Brontosaurus (name) is back
Benchmarking interpreters written in OCaml
Hopefully Ubuntu will have full support for the Web App APIs.

These phones will never compete with the Android or iOS App ecosystem, but they will have:

* Productivity apps that cross from desktop to mobile

* A relatively small number of native mobile-only Apps

* Web Apps

And that may well be enough.
From the article: Situations Where A Client/Server RDBMS May Work Better... High Concurrency: SQLite supports an unlimited number of simultaneous readers, but it will only allow one writer at any instant in time.

I've used SQLite over NFS for replication. It worked fine.
>Don't worry. AMD was just replaced by ARM (and the manufactures who use their designs)

Maybe for mobile, but even AMD is better than ARM for most server tasks. Maybe a new generation of higher performance 64-bit ARM chips will change this...
I'd say that most people should not write makefiles by hand. You should use some higher level build system, that knows how to deal with source files in your language, track their dependencies, etc. A "hello world" makefile with one source file looks simple, but once the project gets more complicated, you quickly end up building such a high level build system yourself, with the additional disadvantage of restricting your build system to only work on systems with GNU make, even though there might be other native build systems available for the platform.
http://www.amazon.com/gp/review/RDZ1BWLOYU9CO/ref=cm_cr_pr_r...

It looks like posting email addresses is possible? I have also seen phone numbers posted by sellers in cases like this before as well.
Aforementioned CTO here. Great writeup soveran (:

With the past year in retrospect, I can say with certainty that I'm quite pleased with our decision to embrace Cuba. It's led to a highly-declarative codebase with clear layering and very little magic.

If anyone has any specific questions I'd be more than happy to answer.
6 operating systems designed just for Docker and other container runtimes
The EuroPhone!
If you have a modern browser you can do crypto in the browser.

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...
Yeah, it's the primary reason why I can't get any of our properties on https. Any ad supported platform / website simply can't afford to use https.
A related question:

Is there any efficient way to generate a random number in a range w.r.t. the amount of entropy used? The way I know (generate a random number, if it's in the top incomplete section regenerate until it isn't, modulo the width of the range, add the starting value - there are some fencepost errors here but you get the idea) is really inefficient in the case of, for example, you want a number between zero and half the range + 1 (so, for example, if you have an 8-bit RNG and you want numbers between 0-128, inclusive.)

You end up using, on average, 8*(1/(1-127/256)) ~= 15.9 bits of entropy per call, whereas you only "need" to use log2(129) ~= 7.0 bits of entropy per call.
There's also mbtiles, which is a standard way of storing map tiles in an sqlite database in blob fields.

https://www.mapbox.com/guides/an-open-platform/#storing-tile...

you can have sqlite databases that are gigs in size and perform great.
".php" Hadn't seen one of those in a while.
Even if you don't have a fast Internet pipe, you can just boot the PC from your Android phone instead, using DriveDroid. I'm not sure if you can also access the files on the sdcard, though.
>I strongly recommend "Fooled by Randomness",

Its a really good read and can be applied to life outside of investment.
More document oriented. And soon going to be open-source.
If you use autoconf, why not use also automake?
So basically RDBMS is turning you into RDBMS
The digitised wills of Turing and Darwin reveal a surprising similarity
It's impressively random. Scrolling helps, sometimes. Sometimes slow, sometimes not. An interesting case.
I think it is more about multi-client databases because you only have one writer at a time (so not multiple clients updating data).
We wrote several Makefiles from scratch at work.

And a dependency-graph-of-thing-we-work-with to Makefile generator, like the output of gcc -M does.

In fact its a whole build system using gnu make, written from scratch.
Those are full, runnable programs. Nim's boilerplate is similar to Python's here.
Continuous Delivery and Management Pathologies
Show HN: HackHires – personalized hacker jobs newsletter
If I understand its message correctly, /Waiting for Superman/ argues it isn't poor communities causing poor students, but poor schools failing communities. Demonstrated by the charter programs in poor areas exceeding test scores in the best areas.
How to Go on a Mini-Retirement This Summer: Goal Setting in Action
http://s13.postimg.org/7e04u78cn/IMG_0414.jpg
> I wonder if it's something in how the headline numbers are calculated.

This is correct. NYC is basically sui generis for American cities. As examples, there's essentially no county government and the school system is part of the city government. The school system alone accounts for $20B of the $78B and over 100,000 of the 360,000 city employees...AND those school numbers don't include the $900M for the city-funded-and-operated 4-year university system.
Doesn't seem to be quite there, but it's close. Someone posted this below:

https://www.youtube.com/watch?v=c3PUYoa1c9M
Around the turn of the century, I was working for a company that was continuously recording live video streams to a hard drive. Since you can't do that indefinitely, we'd only keep around the last two hours or so. If I recall correctly, XFS was chosen both because of performance and because it was the only filesystem that supported file truncation at the start of the file. It was just a single call to truncate a few hundred meg at the start of the file when you ran out of space. I don't know if any other filesystems support that these days, but it was a great feature for us at the time.
Not necessarily.

Allowing access on both http and https is indeed a bad practice, but not in regards to the scenario you described.

The scenario you described has been covered since long by the 'secure' attribute, available when creating cookies. Assuming the authentication was performed from within the https channel, the cookie won't be disclosed when requests are triggered on the http channel. This covers the 'Reddit' case from an application layer perspective.

The vulnerability is rather in browsers (such as Firefox). They allow the rewriting of an existing cookie value through the http channel, although it was originally set through the https channel. This is a huge problem and I still don't understand why this isn't reported by any researcher as a critical security flaw...
> NLog for logging. It's fantastic.

I use NLog, but I access it through the Common.Logging facade. This is helpful when I need to bolt my code into an environment where NLog kind of sucks, like Xamarin.Android.
I'm working on "Napolean: A Life" by Andrew Roberts http://www.andrew-roberts.net/books/napoleon-a-life/. This is a well written and pretty hefty biography. The author has done a great job of poring over the enormous material available from that era and consolidating it in a coherent fashion. I've always been fascinated by that period mostly because it seems to be the first time there was so much written down on paper which is preserved till today. Almost everyone who was literate seemed to maintain a diary and take notations of everything. Pretty decent descriptions of war maneuvers and battle tactics as well, if you guys like reading that kind of stuff ( I do :) )
Actually, all you needed to do was wrap that batch update in a transaction; by default, SQLite autocommits and writes to disk after each update/insert, which is a bit slow.
Great job on the desk!
Telegram is a proprietary network service, which means that there is no reason to believe that it is secure.
The problem which this is trying to solve is that clients like WYSIWYG and developers want control over their markup.

But, why not make a simple WYSIWYG -> Markdown editor? I've never found an elegant and mature editor which does this
print-%: ; @echo $*=$($*)
.PHONY: print-%

This way the rule continues to work even if such a file suddenly exists in your repo.
Thanks! I posted a new comment about the saucers under this...
Watch Shashtri Sisters 10th April 2015 Episode
Why Pilots Still Matter
Why release on such underpowered hardware?

Technical people/developers won't use this because the hardware quality is insulting (and the price is too low).

Non-technical people won't buy this because there are no apps (and the price is too high for a no-apps phone).

Who is the target market?

This: 4.5" 540x960 IPS screen, 32-bit ARMv7 CPU, 1GB RAM, 8GB flash, 8MP camera, no LTE, no 802.11ac, no NFC, no barometer - Pros: dual SIM, microSD slot (but only up to 32GB microSD cards?!?)

Galaxy S6: 5.1" 1440x2560 AMOLED screen, 64-bit ARMv8 CPU, 3GB RAM, 32-128GB flash, 16MP camera, LTE-A, 802.11ac, NFC, barometer - Cons: single SIM, no microSD slot
Another worth consideration is the Winston: http://www.lcdarms.com/winston-sit-stand-workstation.php

Of the sit-stand converters I've been looking into, the Varidesk and Winston seem better than products like the Kangaroo Pro, ReadyDesk, etc.
Will order one next week (paycheck).
Once you use TopShelf you'll never go back! Honestly, debugging Windows Services are simple using TS.
Thanks for correcting me, it was indeed the 50/60Hz switch. It's been too long!
Ask HN: Are non-free Slack Communities worth the cost?
Hi HN !
I see a lot of Slack based communities annonced here. A lot of them aren't free.
Are they worth the cost ?
Could you share with us your exepriences ?

Thanks and have a good day !
I haven't tried hackpad, but if hackpad can (now) be described as an open-source Trello, that would be great. That opens up the option for self hosting, even if it's on a VM like a Digital Ocean droplet.
"I do this as a hobby..."

I also earn a bit more than $2k on other strategies. I was just describing my highest return strategy and explaining why it can't scale for the sake of discussion.

The real benefit of trading, and why I encourage most quant devs to do it even if they lose money is that it is great mental exercise. When you make mathematical or rationality errors, the market punishes you by taking your money. That's my real reason for actively trading.
I've used passpack in past and it worked quite well.
I find NancyFX really interesting, but I can't really see a reason to stray away from Web API2 besides Mono support. Any specific reasons you prefer Nancy?
> The mere fact that such a thing is necessary disqualifies make as a build tool for me.

It's a very simple debugging addition. Hardly necessary, just convenient. The "built-in" echo works just fine as well.
Skipping breakfast. Intermittent Fasting, start eating at 12 noon, stop eating at 8pm.
Vibrations and sounds may have enhanced worship of Great Goddess Cybele
Obviously it depends on the use case and audience, but language and location should not be conflated by default. Location allows customization of currency, measurement units, legal policies, shipping information, tariffs, dates/times, etc independently of the copy language. There are plenty of countries with more than one major language (there are almost 40 million Spanish-speaking citizens of the US and India has 23 official languages), so websites that guess language based on country alienate a lot of users.

Your browser already tells every website what language(s) you speak in the Accept-Language header, so it's not like that information isn't available.
Have people started receiving their YC invitations for S15?
Bionic ants – workers of the future
As an alternative to CsvHelper I can recommend FileHelpers by Marcos Meli: http://filehelpers.sourceforge.net/

Don't be put off by the dated SourceForge location. It is pure awesome for getting data in and out of CSV format.
Also noteworthy, the IKEA Bekant motorized base can be purchased without a table top.
I built a "desk" on my treadmill. I walk 3+ hours @ 2.5 MPH pace @ 10% incline/grade 4-5 times/week while working. (I've increased the incline as it got less difficult.) To walk any faster makes it difficult to work on a computer. For the other 2-3 times/week (and over the course of 5-6 hours throughout the day), I do strength-training while working, all with "at-home" products (pull-up/chin-up bar, Perfect Pushup stands, dumbbells, ab exercise). The ab exercise I use is https://valme.io/c/health/fitness/t0qqs/my-abs-arent-steel-j..., and it still kicks my butt after almost 2 years. P90X rocks.

As to diet (which you MUST not ignore), I eat a lot of protein during the day (protein bars, protein shakes), in addition to vegetables and fruits, and try to limit myself to under 50g of sugar (only 25g daily from desserts). I also fast a few times each month for never less than 24 hours (sometimes I make it to 40). Gave up soda decades ago (which used to be the only way I could keep coding for so long). It wasn't until I started paying attention to diet that I saw enormous improvements in my abs.

I'm probably in the best shape of my life and thinner/more muscular than I was in undergrad. The hardest part was getting the routine started. Once I saw improvements after a few months, the rest was "easy."
In the last 90 days I dropped 22 lbs. (227 down to 205) using the Ketogenic diet. I did no cardio and incorporated 45 minutes of compound weight lifting 3 times a week. I don't think I'll continue Keto beyond 120 days as it's quite restrictive, but it was indisputably effective for me to shed excess fat.

http://en.wikipedia.org/wiki/Ketogenic_diet
That misses the point; you can already echo a variable wherever you want in a makefile similarly. This gives you a way to do it without editing the makefile, without knowing before hand you want to see that variable.
Why are you assuming they are going to head anywhere?
Ah yes, that makes more sense. Thank you.
Walking 10,000 steps every day.

You may argue that the number 10,000 is a myth, but walking frequently and having a goal is not ;)
First time in many years I didn't get sick at all during this winter (cold Montreal, I'm 51).

Solution:

One squeezed lemon + some maple syrup to sweeten the deal + small doze of organic cayenne pepper.
Daily doze.

Add gym here. 21 pullups in one shot today.
They got acquired a long time ago. This was announced in an email to current members, with more information coming soon regarding the specifics. The email was posted on hn yesterday, but it didn't get as much attention as the tweet.