skysight-inc/HackerNews huggingface dataset:
It is not necessary. Various backend systems can store dates and times as UTC, or UTC + time zone offset, and these cover the most common use cases. You can use these formats to communicate with clients, and have clients do the conversion for you, for example, in a browser you can use Date.getTimezoneOffset. One good thing about this is that if the time zone data is incorrect on a client's device, there is a reasonable chance that the client's clock is also showing the wrong time anyway. Most client OSs are aggressively updated so this is mostly solved. The remaining problems are any systems that need to do calendrical math, for example, calendar programs.

In practice, however, people write bad date/time code often enough that it’s a problem. I was recently using a client library that was completely broken if the client’s system had a negative offset from UTC more than 1 hour.

At work we get emails if we leave any container running that was built too long ago (three months or something?)
This Is What It's Like to Be Kidnapped by Pirates
My comment on military dominance was a neutral one - I was making no judgment on it being a good or bad thing. However, if you are an American, you almost certainly would rather have it where your country is in command versus the other possibility (Note: I am a first generation American who has served in the Marine Corps as an infantryman).

My comment on technology is not just confined to electronics - there is a long history of military technology affecting battles, and perceived advantages/disadvantages of countries, which results in decisions being made according to that calculus. One small slice of that history is the introduction of guns to Native Americans. I purposefully did not say it was the only cause, and it is a complete misreading of my comment to state otherwise.
Did this guy pay for this article? It's a pure personal branding/ego piece about a guy who watched a lot of YouTube and had also happened to write for Washington Post (owned by Amazon) and The New York Times, known for publishing absolute reprehensible garbage op-ed pieces justifying atrocities perpetuated by neoliberals while ostensibly still being on the left.
People tend to accept what other people say as true on some level. Journalists, Con men, and Religions benifit from that same bias. Consider the odds of any one random thing say a Tiger in a top hat sitting on the other side of a random door being true is very very low.

However, even if I think someone is lying 99.99% of the time when they say a Tiger in a Top hat is behind the door that still raises the odds immensely.
JSONField is specific to PostgreSQL [1]. If you're working in Django and are bound to some other vendor, RDMS-agnostic solution is handy.

[1] https://docs.djangoproject.com/en/2.0/ref/contrib/postgres/f...
Nice, would have been exactly what I wanted last year. Ended up discovering sttp which is also really nice.

btw: since you were one of the early adopters of Scala.js, will/can this be ported to Scala.js
At least here in Sweden you have much more detailed POI info in the countryside, like rune stoned and such. In Google Maps they can be impossible to find, and even the small path leading to them do not appear.
Have you clicked on the play button? Well... it is not a button. The black one is the start button, which says start.
Good question, since Google’s adoption of Kotlin was seen as the death knell for Scala.
Right, that's my point. What most people associate with "macOS" is actually the stuff layered on top of Darwin, which is mostly proprietary. It's not just the GUI, it's also a lot of the frameworks and libraries as well.
A MeToo Reckoning in China’s Workplace Amid Wave of Accusations
Let's not forget microcontrollers, the moment one wants to write something more universal (different MCU support) using ifdefs is basically unavoidable.
This is just wrong.

Chile has a substantial defense capability, allied with the US. We host their cadets at our military academies, and ours at theirs. Maybe you're thinking of a different country.
Every construct can be harmful if one doesn’t understand its purpose.
Don't know about Rome but in Germany people see it as part of their heritage and identity and get excited when new stuff gets discovered
I'm using the atom parinfer plugin for my clojurescript projects and it makes development so much easier! The "it feels like writing python" analogy really fits.
Now, if only there was a jump to function definition by ctrl+lmb for clj/atom it would be the perfect environment!
yes, there are lots of instances of technological progress, improved medicine, etc...

> In a whole bunch of possible outcomes

in a whole bunch of actual outcomes, you have US failure everywhere
This works with Gmail too.
A more apt analogy would be to make the movie again, frame by frame, using different voice actors maybe and slightly changing the character looks. Sure, they are skipping over the long process of writing and refining a script, painfully planning and directing the movie over many years and then carefully editing it to perfection, but it's not quite the same as downloading the finished movie.
Or create /tmp/fuckgit as a symbolic link beforehand, pointing to a directory which will be deleted by the first command in your function.
Joining the Cloud Revolution: Thoughts on Containers
Hacker News paydirt!

I love it when I find something that directly relates to every day productivity. Kudos to the provider.
OMG, you're totally correct!

I wrote Chile & meant Costa Rica. Thanks :)
Is there such an amount? I can't.
Rosanne.
SafeText – Script to Remove Homoglyphs and Zero-Width Characters to Allow F
Instead of documentation for the press on how to cover scientific topics, don't patronize these rags. What exactly is the point of correcting the press?
"Now with multi-colored tracers!"
#MeToo reaches Vatican as nuns denounce abuse from priests
And this is exactly the sort of behaviour that led me to call git "The Swiss Army Chainsaw of Version Control". It can do anything, but if you wield it wrong it'll cut your leg off without hesitation.

I consider this a UX failure. Give me hg anytime.
كلمات اغنية الليلة دي مصطفى عاطف
From the error message, it seems that it really didn't load, Inanek2 had different problem (I think).

That "captcha" part in the request to OpenSubtitles.org is strange, I will ask them about it. You should try it later, maybe it is some sort of rate-limiting as a lot of people started using the app after I posted on HN.
Very much so
I want vgo to succeed and I like most of your contributions, but comments like this and the original post (“Sam just wants to be the big man on campus”) are petty and rude. You’re better than this.
The Explorable Explanation “Game” Jam Is ON
Future Crew Second Reality Source Code
Re forks, I believe there was a historical difference in which the American etiquette rule was that, after cutting food, you had to put the knife down, move fork to right hand, and then eat. The English rule instead was to keep the fork in the left hand both while cutting and for eating food. Neither would rotate the fork to shovel position.

Edit: spent 10 minutes googling for the right Miss Manners link, but failed. However I may be wrong on the shovel thing, that may actually be encouraged, I'm not sure.
Yes, in Germany they'll call you out if you or your child are too loud. Stateside, on the other hand, asking someone to keep their/their offspring's voice down doesn't go down too well, especially if it's someone's out-of-control child.
One solution would be to be lenient as to what address patterns to accept, e.g. using a regular expression such as /\S+@\S+/ that catches common entry errors but doesn't keep the user from entering uncommon but valid patterns.

The idea here is to help the user avoid mistakes not to actually verify the email address. That's happening at a later stage, i.e. when the user clicks on a confirmation link.
Show HN: The best typed EventEmitter in TypeScript
Printing them out quickly?
That always happens. At CHI'88 I opined the same thing about NaviText SAM, "a hypertext based guideline selection system to select applicable guidelines for a design task", which was full of excellent information, but itself ironically had a really terrible user interface. It turned out I didn't realize its author (Gary Perlman) was standing nearby me and heard me say that, and gave me the stink-eye. ;(

https://www.researchgate.net/publication/224273659_System_de...

Apparently I wasn't the only person who thought that, though:

https://books.google.nl/books?id=-4LuBwAAQBAJ&pg=PA266&lpg=P...
Great to hear you like it. You can also make your own design with the customization tool - https://www.maptiler.com/blog/2018/05/customize-your-map-in-...
I’ve been maintaining unifdef since about 2001. One of the rules I have set myself is to never use #if in unifdef. It’s an easy program to port, so this isn’t very hard :-) but Microsoft’s appalling C libraries make it more painful than it should be.

The main technique is to set the include path depending on the behaviour of the target platform, and have per-platform variant header files. For unifdef, this basically means standard vs windows.

The other thing I don’t have to deal with is build-time configuration options or feature switches. It’s easy to get into a combinatorial explosion with #if but kinda hard if you force yourself to reify each option as a pair of include files!
Do you have an example of a tree-oriented concept explanation?
> Governement often runs on Oracle because

...outright corruption, though that coming brilliantly to light in the 00’s in California is also why comparatively little in California State government does any more. (Also why the trend toward IT centralization in the State was stopped dead in favor of decentralized decision making with central oversight.)
to your point... there are ~350m "Americans" and all the rest of +7b humans aren't. Whatever the desire of Americans in their country, democracy would suggest that +7b people want something that looks like their country in a dominant position.

> complete misreading of my comment to state otherwise.

great... I didn't say otherwise.
Why isn’t Cloudflare listed? They don’t charge for bandwidth so I suppose they’d always be the cheapest.
Fun fact, The Pentium III had an identical pipeline to the Pentium II with added SSE instructions and the Pentium II was just the Pentium Pro pipeline with added MMX instructions. Intel started work on the Pentium Pro back in 1991.

Intel's current architecture is just small incremental improvements to a 27 year old design. The biggest features they have added are Nehalem's hyperthreadding (which they borrowed from Pentium 4) and Sandybridge's uop cache (loop cache).

All their other performance improvements have come from small micro-optimisations and just chucking transistors at the design. Better branch prediction, better load/store buffers, more load/store buffers, more execution units, bigger reorder buffers, wider instruction decoders, more renaming registers, wider instruction retirement, more unique/specialised instructions and of course, clock speed improvements.
But it's still fundamentally the same design which intel could have done back in 1991 if they had the silicon budget.

And this was absolutely the right design decision, everyone else is copying the same design. Apple copied it with their Cyclone/Typhoon/Twister arm CPUs. ARM copied it with their Cortex A57, A72, A73 cpus. AMD copied it with their Zen architecture (after trying out new ideas with Bulldozer and failing). IBM and Sun/Oracle have server class CPUs with more or less the same ideas, but 4 to 8 way "hyperthreadding".

AMD's Zen might pull ahead slightly, but that's only because their design is newer and hopefully free of cobwebs than Intel's design.

But there are still plenty of new CPU design ideas out there, It's quite possible we will see another 50% jump in single threaded performance.
Scala is useful in big data and ML, apache spark is written in it. It works very well for data transformations
Nah, open source just isn't lucrative.

https://www.patreon.com/sindresorhus

Most JS devs know sindresorhus by reputation. You can't help but knowing him through his work. He even put up a separate twitter solely because people kept wanting a way to see whenever he made a new github repo.

Patreon makes him $3300/mo. So that appears to be the ceiling for all of us.
Don’t be like that. The shorthand here is that this is a novel, massively parallel architecture, much like those in supercomputers. If it had been adopted and scaled up, it could have had interesting applications.
So what if tech companies can bid? It’s $10B, they likely already know who they’re going to give it to. Most of this stuff is wired anyways.
4:27 > "Every binary floating point number has an exact decimal equivalent, but not every decimal number has an exact binary equivalent. And the reason for that, you know, is that powers of two and powers of ten are only compatible in one direction, not in the other."

This is because 1/2 is representable as a fraction with 10 in the denominator: 5/10. All fractional digits after the binary point are just powers of 1/2, thus powers of 5/10. Division by ten in decimal doesn't produce any repeating digits.

Here is where the above is slightly misleading, though. The number of decimal digits to capture that exact decimal value of a binary floating point with an n-bit mantissa may be far in excess of the actual decimal precision that is contained in an n-bit mantissa.

In the case of the IEEE 64 bit double we need 17 decimal digits to capture a printed decimal representation which will reproduce the original double. That representation isn't the exact decimal number; much more than 17 digits may be required to get the exact decimal value. The exact decimal value is, I think, rarely of interest. In an ordinary application of floating point numbers, we don't print double values to, say, 30 digits of precision; anything after 17 is "junk".

In the other direction, only 15 decimal digits of precision are guaranteed to be preserved by the representation, so in a 17 digit print, digits 16 and 17 are also "dodgy"; they serve only to record the object exactly.
A Surveillance State Unlike Any the World Has Ever Seen
I'm in Brooklyn. This thread prompted me to check the Spectrum rates. I was on Time Warner Cable pre-merger, and with Spectrum just called and got a 100MB upgrade that costs me $300 less per year than I was paying. Call was easy/fast with good service. No upgrade fees, etc. And they offered me a technician appointment with a one-hour window within 24 hours. Just one experience, but clearly for this NYC consumer, I seem to be benefitting from the merger.

From Spectrum's Brooklyn rate card (link below):
Spectrum Internet 200/10 = $64.99
Spectrum Internet Ultra 400/20 = $89.99
Spectrum Internet Gig = $124.99

Looks like TWC had topped out at 300MB, and they charged about $110/mo

Spectrum Brooklyn rate card: https://www.spectrum.com/browse/content/ratecard.html

Time Warner Cable Brooklyn rate card pre-merger: https://www.spectrum.com/content/dam/spectrum/residential/en...
A huge part of Architecture is learning how to lie.

Historically that’s mostly been decorating functional elements, but today that includes hiding security features or playing with perspective etc.
Chinese internet users employ the blockchain to share a censored news article
I feel that noise level risen across all retail and the service industry outlets. It seems commonplace now to walk into clothing stores, drug stores or even sometimes grocery stores and the music is way too loud.

I think it's part of a wider problem that either a) people might now require too much stimulation or management has concerns that there's not enough stimulation for their customers.
> He discovered a trove of exposed Cambridge Analytica tools in the online code repository Github, long before most people knew the shady, defunct data firm’s name.

Anyone know what this is about?
> Changelog matters when your favourite app which has been free for the past couple years have decided that it’s monetisable now and there are intermittent ads in your feed.

That's a pretty uncharitable interpretation. After all, you used your favorite app for free for a couple years. Maybe they ran out of money. Maybe they tried to monetize in another way, but it didn't work and ads were the fallback to keep the service afloat (though also possible ads were the plan all along once scale was achieved). In any case, your favorite app isn't free to develop or host and you're not under any obligation to use it.
Thank you! Yes, actually it is the 3rd iteration on the implementation of the idea.

Handpicked movies are subtitle pairs which were selected carefully to be in sync (both of them are webrip/webdl/nf). The sync itself is done by simple intersection, and the user can delay the subtitles to each other by an offset value (available clicking on the cog icon). It can help fixing the differences like the first subtitle file includes the intro/theme song, but the second doesn't. If the cut is totally different, it just won't work. It can be avoided by following the hints for choosing the subtitles which are available on the search page.

Also there is an interesting idea which I will consider in the future: it is possible to search on OpenSubtitles.org by fingerprint. Those who are watching something download from torrent, could search basically by the movie file itself, and they will get a list of subtitles which will match perfectly.
I think this Soylent News article summarizes the situation pretty well.

https://soylentnews.org/article.pl?sid=18/05/17/028245

tl;dr: the real one is Ublock Origin, get it here:
https://github.com/gorhill/ublock

From the same author I would also suggest uMatrix, sort of a NoScript on steroids which allows a much finer filtering literally ripping pages of a great deal of their junk more selectively, but be aware that it requires "training" (telling it this can be loaded, that cannot) which for some non technical people could be annoying.
ZeroNet: Decentralised Web Platform [Presentation]
But then it sounds like the $89 is not the general price of the TLD but rather your site as determined by the rate on how the registrar's been receiving queries for your domain on their DNS servers. Can't you "reset" the price by transferring to another registrar?
Costa Rica here.

Not really much to plunder my country for, and if they wanted to, they already did (enclaves about a century ago).

Armed conflict is only necessary if you don't give people what they want.
I loved using Parinfer when I was writing ClojureScript, but it also made me question the value of Lisp syntax.

If brackets can be inferred from indentation, doesn't this imply that they're extraneous — that indentation only would be sufficient to write many Lisp structures?
Cloud storage is the best way for long term backups, esp established providers like Dropbox or Google drive.

Also using Amazon S3 or digital ocean spaces is relatively cheap and super easy to do with tools like s3cmd
> We routinely rely on automated assessment to evaluate our students’ work on programming assignments.

Wait, why would you do that? Algorithms are going to be terrible at judging the hardest and most important part of writing code: how maintainable it is.

Garbage code, through brute force, can eventually pass all test cases -- I hope that is not what schools are teaching.

The idea of using test cases isn't a bad way to form part of an evaluation, given the code getting worked on has a defined interface spec. It can also be done the other way around: run code that produces various bad results to exercise the student's test cases.

However, more often than not in the real world specs don't exist at this level, and by using them, they are going to lead people to certain implementations (rather than showing whether the student can come up with something appropriate on their own). From my experience in school, they often also force a compromise design because the imposed interface has shortcomings (eg: functions that use several output parameters rather than returning an object, or force a certain functional composition that is entirely different than what I would do and how I think).
I think the internet may have shattered the Gell-Mann amnesia effect. People can now hear how inaccurate the media are about every topic, since experts in various fields are coming forward and calling them out online. The big thing that kept the effect going was that people didn't have an easy way to find out the truth about various specialist fields outside of the media.
It doesn't seem unreasonable to read racist intent behind “Muslim brotherhood & planet of the apes had a baby = vj” where vj = Valerie Jarrett, an African American woman, so it seems unlikely that negative reaction to that tweet was entirely politically motivated, or at the very least, that people weren't actually offended by it.

Why is it more likely that a leftist conspiracy purposely misconstrued her words in order to punish her for supporting Trump, than that she made a joke about how much a black woman looks like an ape to her, and caught flak for it?
Yep. Same thing happened here.

New account banned after changing Hotmail settings.
I didn't understand that part. If I remember right, the open street map website used to have a demo page of their own. In any case I'm very happy to see this.
Hack of D.C. police security cameras was part of bigger ransomware scheme
People have a right to the fruits of their labors. I don't care a tinker's mother about the history of copyright — the principle is simple, and copyright is a flawed protection of that right.
I guess the email becomes the price you pay.
Thanks, Joke Explainer. I would have never got that.

(Although the other theory is that the poster was born after 1994 (not long odds on that one, given the local demographics), and doesn't know much about the Internet's history prior to Eternal September.)

EDIT: The Gestating thing was clever. Thank you.
It seems reasonable enough to argue both that 1. AI should take over certain human roles like driving, which causes millions of fatalities due to human error, and 2. it's silly to frame every new step in AI as part of a grand road to SkyNet. The first is proposing AI for a discrete task, the second is extending this way way out to consciousness or something.
In your example though, is Smith and Wesson responsible for the store selling the gun to a child? (In this specific case yes, because they lobby against common sense gun control)

For law enforcement, I assume they wouldn't be hitting the Amazon API directly, but rather using software someone sold them which as part of its service uses Amazon's API.
> If so, why not just call it a version conflict and fail until it's resolved?

Because resolving it, in general, doesn't scale. If the dependency graph is

A -> B -> D

A -> C -> D

B and C have to coordinate their upgrade to Dv2, so as to not break A. But B and C might not know of each other and A might not even know about their dependencies on D. Worse, C might not be able or willing to upgrade to Dv2 in the foreseeable future, for lack of bandwidth, so B is kept from upgrading to Dv2 or has to break A.

If you allow both Dv1 and Dv2 to coexist, B can upgrade to Dv2, A stays unbroken and at some point, C can upgrade to Dv2 too. No need to coordinate the timing or undue rush.

Now multiply that graph with a hundred dependencies and a thousand projects A, and it becomes clear that avoiding the need of coordinated upgrades is a good thing.
They've been finding random hearsay for a while now. Tabloids had a huge audience, and they're the kind of newspapers many were reading for years. Is the Daily Mail or Sun or Mirror or Express more accurate than some clickbait farm? Probably not.

Most people were't exactly reading [insert name of reputable publication] for their daily news, it was low quality tabloids with a helping of TV and radio pundits.