skysight-inc/HackerNews huggingface dataset:
BaguetteBox: The simple and easy to use lightbox script in pure JavaScript
It's sad to see that the united states has to be mentioned like this now.
How much time have you spent in Singapore?

I've been here on and off for most of the last year. It's a beautiful country. You get a close-to-zero crime rate, almost zero violent crimes, impeccably clean transit system (and country in general). Incredibly civilized people, even in the lower socio-economic environs. And they've taken religious and social harmony to a whole new level.

It's a pretty nice fishbowl life as long as you don't want to carry a gun, or do drugs.
I've been here for a year - it's pretty damn nice country as long as you follow the rules.
Why Nvidia thinks it can power the AI revolution
First, this doesn't affect PayWave yet, just PayPass. But to continue:

(1) Don't put your phone in the same pocket as your card,
(2) Get either a metal or protected wallet for NFC-enabled cards,
(3) Review card usage and don't worry about it. You aren't responsible for card fraud with credit cards. The chances of this being used against you are incredibly slim. It's also less useful as an avenue to commit fraud since payment with NFC is usually limited to under $25 by merchant agreements. Besides, duplicated cards are old hat, what with programmable chips and magnetic strips already. What's neat here is the proof-of-concept demo involving phones without the need for specialized SIM cards or approved phone handsets. Not 100% sure myself, but maybe it only works because PayPass allows for stickers on your phone case to emulate a credit card?

Oh and if you go to pay for something on a website and enter your 3-digit code plus the card number, well, spyware could have your card already. So NFC as an attack vector is slower and less useful. Watch out for those custom keyboards ;-)
> the more Singapore has grown, the more Singaporeans fear loss. The colloquial word kiasu, which stems from a vernacular Chinese word that means "fear of losing," is a shorthand by which natives concisely convey the sense of vulnerability that seems coded into their social DNA

Fear as a means to bind a society. This is also used in the US correct? Fear of communism, socialism, terrorist...
The black market here in Washington will absolutely thrive because the Washington Liquor Control Board screwed up: http://slog.thestranger.com/slog/archives/2014/07/08/how-was...

The tl;dr:

* Not enough pot: You'll never believe the name of the consulting firm hired by the state to estimate how much pot we’ll need. It’s a company called BOTEC, short for—no shit—“Back of the Envelope Calculation”

* Too few pot shops: Seattle is slated to get just 21 cannabis stores. This seemingly-arbitrary allotment is far fewer than the hundreds of dispensaries already serving medical marijuana patients only, and City Attorney Pete Holmes has repeatedly asked the liquor board to increase this number.

* Not even the state is clear on where stores are allowed: Can I open a pot business here?...But the state apparently sometimes can’t—or won’t—answer that question.

Also, I should mention that the first and last time I bought pot was when I was 15 and living in Minnesota. I might buy pot at some point, but I only smoke very rarely, and it sounds like a huge hassle at the moment. That said, were I to buy, it would be from a state-regulated store.
"Be Pythonic" – Python For Ever
Elon Musk: AI potentially more dangerous than nukes
Something to be aware of - Singapore is hyper aware of the terrorism threat. There is a non-stop video playing in every MRT (rapid transit) station showing a non-descript person blowing up the MRT - including the explosion and sound effects, and asking people to constantly be aware of their surroundings. They have (admittedly somewhat lax) security staff watching for bags at every entrance. They have removed all garbage cans from inside the MRT area.

The country is very, very safe because of the low crime, so, as a result, Terrorism is one of the most significant risks to be watchful for.
Nerve implant retrains your brain to stop tinnitus
Virtualenv Vs VirtualenvWrapper
Unicode support is the biggest problem I have with OCaml, and it's something I noticed immediately as I tried to put in messages and keywords for a japanese friend.

It may not be wise to break current behaviour of the char and string types, but their literals should at least support unicode escapes. One way to do this would be to bring in UCS-4/UTF-32 strings as offered by Camomile, and have some simple convention to allow UCS-4 strings to be mapped from what are UTF-8 literals in the code.
This glosses over so much detail that really helps you understand MinHash and LSH. I feel like matt has really solid intentions, but this is one of the algorithms where actually reading the math and understanding it helps you write a good implementation. You're also missing the intuition (random projection) behind this sort of method by skipping out on the maths.

For book chapters: Sarier Har-Peled's comp-geo book has a pretty solid chapter on LSH from a geometrical point of view and builds it up from basics in Hamming Space.

Otherwise the Ullman book the author recommends is pretty excellent.
http://infolab.stanford.edu/~ullman/mmds.html
Amazon Web Apps: turn your mobile friendly website into a mobile app
There was a ton of work being done on Twitter after mh17 from citizens on the ground in Ukraine. I was working with one gentleman on investigation of a portion of crash-site footage that includes what appears to be the tail of a rocket or missile. The video is still online here:

http://thelead.blogs.cnn.com/2014/07/17/first-hand-account-o...

It is shown a handful of times, but the first instance is around 1:08.

It doesn't fit the scale of a missile fired from a Buk. The conclusion I made based on this and other evidence was that the footage was not genuine. For example:

https://pbs.twimg.com/media/BtA5Hh5CcAAN28-.jpg:large

On the left is a still from the video above. On the right is a still from a supposed crash in Ukraine days earlier. All of that said, it's impossible to believe anything without being on the ground yourself...

I'm @thegrif on Twitter - you can see the back and forth by filtering posts that include #mh17.
Not as successful as the other ones here, but it's starting to show promise. http://mynativemap.com/

I created it to help people that can't surf into Google Map's in their own language. the link's forces the selected language manually and ignore the automatic language detection.

Started a few months ago and it's already covering my hosting in ad revenue. hopefully I'll have better numbers to report on the next Round of "...best passive income.." :)
It's beautiful if you're a fan of a city-wide shopping mall aesthetic...
Every time I see things like this I'm grateful for Dart SDK
There's been so much negative exposure of Singapore's human rights record that I'm surprised this revelation is what makes you flip the bit. It's completely in line with policies the PAP has been implementing since independence.
Well, I like the fact using this setup I am able to search for code and class definitions very easily, without going though an extra step of configuring virtualenv wrapper.
That was a great talk! Thank you. Started out a bit hanky because of his nervousness but he pulled through and ramped up.
I finally installed atom last week expecting that it'd be able to render the site you were working on in-line, and react to save events. I was somewhat disappointed. There's an inbuilt markdown renderer - I don't think it'll take too long for someone to build it (unless it's already there and I missed it).
Regarding the anti-hate speech laws, France, Canada, and other countries also have some pretty strict laws against the kind of hate speech you can utter.

It's interesting that Americans just assume that you should be legally allowed to spout whatever kind of vile suits your fancy, without any legal implications.

I don't think there is any "absolute" right or wrong way of regulating speech (even Americans have laws against defamation, libel, and shouting"fire" in a crowded theater) - but, it's important to recognize that just because other people approach it differently - it doesn't mean that they are doing it the "wrong" way.

It's useful to look at how American Laws (and attitudes) have changed over the last century or so around homosexuality, same sex marriage, interracial marriage, prohibition, heck, even the right for women to vote - to see how that even in a single country, the "Right" and the "Wrong" can evolve/change in a very short period of time.
Many people in this world don't have access to International banking. (because of local conditions or restrictions). This solves the problem.
>It's a pretty nice fishbowl life as long as you don't want to carry a gun, or do drugs.

Or look "kind of Bangladeshi".

Or challenge any kind of social order.

Or get involved in domestic politics at all (as a foreigner).

Fwiw, I've been here longer than you. I enjoy the low crime rate, weather, transit system (excluding the erratic bus arrival times) and the privileges a white face affords me too.

I'm careful of what I say online though, because I know that they are listening closely and are likely to respond accordingly (probably listening even closer than the US monitors its citizens).

>And they've taken religious and social harmony to a whole new level.

A whole new level where the possibility of a race riot in Little India is non-existent?

Or a while new level where race riots in Little India happen, but they manage to put a nice enough spin on it to satisfy you?
>""If there is a single fundamental difference between the Western and Asian world view, it is the dichotomy between individual freedom and collective welfare," said Singapore businessman and former journalist Ho Kwon Ping in an address to lawyers on May 5, the day Fay was caned. "The Western cliché that it would be better for a guilty person to go free than to convict an innocent person is testimony to the importance of the individual. But an Asian perspective may well be that it is better that an innocent person be convicted if the common welfare is protected than for a guilty person to be free to inflict further harm on the community"
In an article about caning a us citizen: http://www.corpun.com/awfay9405.htm
Sorry, I thought it was implied. Like an article about baby eating or something. If your argument is that you're a nihilist and don't value life (be it baby monkey or human) then that's something I can reason with, but if you're saying it's ethical to kill baby monkeys and not humans, re-read my post.
Apparently enough of it wasn't built in that someone went ahead and created a Moose for Ruby[1]. I haven't done a lot of Ruby but I imagine it's nice as a day to day language. I enjoy Objective C's message passing syntax and dynamic runtime so Ruby is likely a good fit for me.

Personally the reason to use Perl over Ruby is the community. I gel a lot better with the members of the Perl community I've met compared to when I was poking my head around Ruby. I don't mean this in a bad/flamy way. No one was "mean" to me or anything. My brain is just damaged in the Perl kind of way rather than the Ruby kind of way.

Anyways, the actual question shouldn't be why Ruby over Perl, rather it should be "why don't we have Moose (or something like it) in every language." There's nothing about it that ties it to Perl. A dynamic runtime isn't a bad thing to have but I can't really see why most of the really nice parts couldn't be implemented in other languages at compile time.

Simply put, Moose is awesome. You can build so much functionality with not a lot of code and it actually glues together well. Type coercions are awesome and super useful in day to day programming. I've been doing a lot of API work where I need flexibility in terms of output (JSON, XML, RSS, etc) where a plain object dump to the specified format isn't enough. In the case of the XML there is an XSD it needs to match against and the structure isn't particularly amicable to sane JSON output.

Care of Roles, Type coercions, Attribute meta roles, and some preemptive thinking I basically just create objects with attributes and a few methods containing business logic and not a lick of serializer logic.

package My::Foo;

use MyCo::Moose; #Exports a few things I usually need like aliasing,
use My::Type::Exports qw(:all);

with 'My::Role::AwesomeSerializer';

has 'some_attribute' => (
is => 'ro',
isa => MaybeSuperComplexObjectType,
coerce => 1,
traits => ['UseMyJsonSerializer'],
json_name => 'someAttribute',
xml_name => 'My::SomeAttribute',
alias => 'some_call_it_this',
);

# yatta

__PACKAGE__->meta->make_immutable();

1;

In my types package I have various coerce methods that accept different data formats. The logic in the class doesn't have to change, nor do I need to write a new constructor/factory like I would in other languages, when the data I'm being given changes in some non-trivial way.

[1] http://pacman.blog.br/blog/2014/02/07/moosex-a-new-ruby-dsl-...
Regarding the passport - I had to hand over my passport in Australia and Portugal to purchsse a SIM card, and I wasn't even allowed to buy one in Brazil, had to get a local to go buy one for me (and show their identification).
Kiasu is more like "fear of missing out on a 40% off sale at H&M" than it is fear of communism or terrorists.
"Registrations here are closed"
Yes; QOS has no place crossing the boundaries of a network segment - It should allow me to control the ingress and egress of my network, but be stripped before it gets to a network "trunk" like an ISP.

Further on that; If bandwidth on a segment is constrained, the ISP should divide it as fairly as possible, while also trying to maximize throughput. Each user should get an equal share, and if they're using less than that, the remainder should be apportioned to the other users evenly.
Happily, you're first example is actually already supported in the latest Underscore (1.6.0):

_.each([1,2,3], _.partial(something, _, 'param'))

Example:

_.map([1, 2, 3, 4], _.partial(Math.pow, _, 8))
// [1, 256, 6561, 65536]

Admittedly, "_.partial" is 3 more characters than "$.call", but if you really used it a lot, you could alias it to something short like "_p".

Unfortunately, this doesn't seem to be present in the latest Lo-Dash (which I generally prefer).
>There is a non-stop video playing in every MRT (rapid transit) station showing a non-descript person blowing up the MRT - including the explosion and sound effects, and asking people to constantly be aware of their surroundings.

It's not non-stop. I see it maybe 1 time in 7 or 8. Half the time they're playing a trailer for some movie.

This kind of thing is not out of place in London or New York either. Actually, in London the anti-terrorism posters are way more Orwellian.
> You can buy old refurbished analog/digital meters for cheap and measure what you want

But can you use them? New Zealand power retailers install their own meters - you can't supply your own. You can certainly install additional metering of your own but you can't get rid of the smart meter.

Are things different where you live?

Also, I disagree with your final paragraph. Our local distributors have been spending lots of money installing new lines and upgrading the network, and the retailers are changing the meters because it means we get an accurate bill every month (rather than an estimate for two out of every three months) and they don't need a meter reader to visit every property every three months. It's a significant improvement in service and it simplifies their operations at the same time.
I honestly don't know, but Ruby does seem to be on its way out. It might be a long death since there are so many Ruby developers, but I think it is probably on the way out. The main reason is that Ruby doesn't do anything particularly well except it is easy to learn. There are several alternatives that are equally easy to learn now and have more compelling use cases. Time will tell of course, and I am most likely wrong.
Ah, that's not totally fair. There's places to go that aren't shopping malls - I miss the hawker centres and food streets, and there's some great walking to be had.

That said, the single best thing about Singapore is that it's a gateway to the rest of SEA. Changi is the best airport in the world, IMO, and you can be in Thailand or Vietnam in an hour for $100. No malls there! (Well not by CapitaMalls, anyway)
Ask HN: Examples of thinking Bigger (Tony Hsieh)for the near future?
I see Facebook (connecting the world), Google (all the world's info in one place), Amazon, Alibaba (shopping), Microsoft.
What are of examples of this for the near future (10 to 20 years)
Yes, software is eating the world. I was hoping for more specific responses from today's perspective.
Those changes you mention have all been in the direction of increasing freedom.

Please refrain from the lazy "fire in a crowded theatre" censorship apologia in future. It doesn't add anything to an argument for censorship.

http://www.popehat.com/2012/09/19/three-generations-of-a-hac...
It seems to me that some level of either user-controlled QoS or congestion notification is desirable at the ISP level, since your software (e.g. Netflix, VoIP) might not know that the ISP network is congested, but you'd still prefer to tell your ISP's routers to prioritize the VoIP over the Netflix (within your allotted share of bandwidth, of course).
that's weird. I'm using chrome on debian and haven't encountered any issue.
via http://artvoice.com/issues/v12n6/theaterweek and its suggestions, I found:

http://chronicle.nytlabs.com/?keyword=calibre.caliber (1936)

http://chronicle.nytlabs.com/?keyword=manoeuvre.maneuver (1943)

http://chronicle.nytlabs.com/?keyword=sombre.somber (1929)

Slightly less clear cut but still strong:

http://chronicle.nytlabs.com/?keyword=goitre.goiter&format=c... (1935)

http://chronicle.nytlabs.com/?keyword=lustre.luster (1935)

http://chronicle.nytlabs.com/?keyword=meagre.meager (1927)

Might be interesting to graph all these next to editor or leadership changes, as well as style guide revisions. Or actually, current events, now that I look at some of the years where it's been sharpest.
What if you had an ideal electric car driving on flat ground with no friction losses (i.e. if you turn off the motor, it coasts forever.)

If you draw constant power from the batteries, is it impossible to maintain constant acceleration?
Credentialist elitism seems to have a stronger hold in Germany than in the US. To be sure, it exists everywhere to some degree or another, but the US also respects those who perform even if they don't have the paper (e.g. Steve Wozniak, John Carmack, etc).
>You need to get a permit to give any kind of free speech in the 'free speech area'.

This information is out of date. They changed the law on that some years ago.

The 'free speech area' (Hong Lim Park) is just the only area where you can have a demonstration WITHOUT applying for a permit.

The normal anti-free speech laws applying (i.e. you're not allowed to incite racial hatred in Hong Lim Park either), but you're allowed to go there and demonstrate without a permit (with a few restrictions). IIRC, they held the pink dot rally there.

They had a protest against immigration somewhere up in the north east too. They allowed that to happen (protest application was clearly approved) even though they were protesting government policy and closely allied with the opposition parties.

These protest laws and their application aren't really a whole lot different to what you see in the west these days. You think the West does free speech better? Check out what they did to Occupy.
The problem isn't just reducing the emissions produced by people who already have cars (though that would of course help); it's limiting the future emissions of the huge numbers of people who don't yet have cars, but want them. Hence the reason China and India won't agree to limit their citizens to current per-capita levels of emissions that are a fraction of those in countries with higher levels of car ownership.
I was going to say this was pretty common in London. Even before the 2005 bombings, due to the IRA threat in the late 20th century. Bins were removed from the underground in the early 90s after the bombing at Victoria station, and from the City after the bombing in Bishopsgate.

Edit: I some words.
Cheap FPGA Development Boards: What to look for
The riot in Little India was almost unique in this country's history (which says a lot), and, it's important to note, happened after someone was run over by a bus, was predominantly not involving singaporeans (mostly foreign workers), and involved a lot of alcohol.

They've had (multiple) Riots in Vancouver (though, usually involving Hockey, but also alcohol). I don't find that an indictment on Vancouver.

But, yes, I do agree, it's pretty clear that you don't want to discuss politics, and certainly don't want to get involved in them if you are a foreigner.
> even Americans have laws against defamation, libel, and shouting"fire" in a crowded theater

And pornongraphy and state secrets and so on.
So let's say global warming gets really bad and a ton of methane gets dumped into the atmosphere.

Is there anything stopping us from engineering algae with methane as an input to their metabolic process (genes borrowed from Methylococcus capsulatus) and releasing them into the ocean?
Api.wordpress.org Secret key URL
MozDrive: One Mozillian, 48 States, 25 Days, Lots of Mozilla Users Visited
It's pretty heavenly if you come here as a caucasian with lots of money (which sivers did), or a caucasian working for a multinational on an expat package.

If you're not one of those, there are some significant disadvantages, but still maybe enough significant advantages for it to be a nice place to live.
Singapore's level of command and control seems incredibly obnoxious to me - but living in a Five Eyes country I'm part of a mesh with perhaps as much surveillance on it; the difference is that here in New Zealand it's used to bother half a dozen Communists, arrest a fat German, and suck up to the US government. If I'm going to live in a surveillance state anyway I might as well at least get some of the benefits.
Show HN: Change the Yosemite based on the time of day
Monkeys are much more similar to humans, and presumably much more able to experience suffering, than bacteria are. People like to draw an arbitrary line between humans and other animals, and there are good reasons for that in a lot of cases (e.g., should we give chimpanzees the right to vote in government elections, or start giving them drivers’ licenses?), but that might not be the most relevant line to draw in terms of ability to experience suffering. Many people clearly experience some cognitive dissonance when deciding how to treat animals: for example, many people treat pet dogs as family members but eat other animals like pigs, even though dogs and pigs probably aren’t really very different in any ethically relevant way.
I'm not actually arguing for, or against, censorship. My entire point was to point out that different countries have different laws, each of whom (for the most part) believe they are "right" at the time they have them. And, that when evaluating some other country's laws, don't believe that they are "wrong" just because they are different.

And the "fire in a crowded theater" phrase is a short-hand to refer to the Supreme Court Argument, which forms the foundation of american attitudes towards free speech. It's faster than copy and pasting the entire precedent. I'm sorry if it offended you.