skysight-inc/HackerNews huggingface dataset:
Eventually JWT has very little Roundtrips.

Our current Implementation is:

- Really short lived JWT of 1 minute
- If the JWT is invalid and the user didn't do a request in the last minute it does query the database for a session token (we use session tokens and jwt).
if the Token is inside the database/redis/ehcache/whatever the user gets still a new JWT token.

Actually we did that since we needed a "sane" way of revoking tokens fast but still keep the user logged in until the browser is closed.

We don't have a mobile client (yet) but I guess we try to do something like that, too. just not with a session.
This works really well and mostly our users won't hang around for more than a minute and when they do its not a problem to have a single backend call.
I kind of wish, they would instead implement ZFS for mac os. That would be awesome. Sending snapshots from your osx to your server as backups on filesystem level, leveraging all the existing tools etc.
Tim Berners-Lee Keynote at Decentralized Web Summit
Sync is not backup. If you corrupt or delete a file, the destructive action will get propagated as well. Time machine and many other backup systems gives you access to previous versions of files and folders.
If you're going to for taste then maybe go for another salad than lettuce though :)
The military's job is to make people we fight want to stop fighting. That's it.

If you keep strategy simple and easy-to-understand, you can stay on mission.

Unfortunately, that's not where we're at. The military is used for all sorts of things -- famine relief, nation-building, geo-political force projection, and so on. This is the problem with aircraft carriers. They might be lead weights in the event of an actual shooting war with a major superpower, but right now we're using them for mobile airports. And mobile airports are useful for all kinds of things.

If you get rid of the mobile airport, then what's going to take their place? Who's going to show the flag in the Taiwan Strait or the Persian Gulf? Who's going to support some U.N. humanitarian mission that's urgent, remote, and requires CAPs?

The more capability you develop, the more you can't imagine doing without that capability. So our floating airports are here to stay -- until somebody sinks them.

Which means we have to support both those and figure out how to do our actual job, which is making people we fight want to stop fighting.

We see this same pattern of behavior in platform after platform. When you get to a certain rank at the Pentagon, you feel it's "your time" to bring a big change to the services. And that means big bucks, big capabilities, and so forth. Nobody wants to be -- or gets rewarded for being -- a wise and crafty caretaker of an ever-shrinking pile of money. (Yes, I'm sure there's lip service paid to all of this. I'm simply making an observation as an outsider watching DoD for several decades.)

Quick tempo lethal aerial force projection is going to have to be submersible. Otherwise hypersonic missiles make mincemeat out of your task force. No matter what kind of radar-controlled gun you have, you ain't stopping something coming in from directly overhead at Mach 10. The kinetic energy alone is sufficient here. Got a lot of other thoughts on this, but on some topics on the net I've learned to keep my mouth shut :)

ADD: No matter what, Congress needs to re-sort out DoD. We need one service for police force work, nation-building, and humanitarian aid. Another force for space. One for cyber. Then leave the other ones alone. I might would peel off strategic missiles from the Air Force because strategic missiles have nothing directly to do with flying around.

Re-split the money. Then reduce senior staff by 20-40%.
Kinetic bombardment would look fairly similar to a ballistic attack, but would not be similar to nuclear weapons launch.

https://en.wikipedia.org/wiki/Kinetic_bombardment
Now we will get Raspberry Pi with Swiss quality... :-)
Awesome.... Sounds pretty interesting, Microsoft aacquired LinkedIn for $26B... Wao!!! Heavy amount.... Microsoft is progressing fine. Hope it would not be just like Nokia.
Does that require the nas to be formated to compatible FS?

Does it still freeze and hang Finder regularly after you move away from the network where the NAS is available?
> Actually those obligations are very carefully worded to allow US to weasel out of it if necessary.

The only reason the US keeps 30 000 troops so close to the DMZ in South Korea, is so that they won't be able to weasel out. Make no mistake, those boys and gals' are there as hostages.

If the DPRK decides to launch an attack, under pretty much any scenario those troops will be engaged in battle within 24h and I doubt that the US public would be okay with leaving them there to fend for themselves.
SmartFinder – Way Better Then Android File Transfer (Mac)
Writing a 2D Platform Game in Nim with SDL2
How does this guarantee a secret ballot, i.e. that voters remain unable to prove to a third party that they voted in a particular way?

Low-value elections don't necessarily need secret ballots, but it's important for high-value elections, like selecting the POTUS.
Apple has removed the option to allow unsigned apps to run from the macOS sierra beta.

Perhaps you think this isn't a big deal. You're wrong.
If Apple doesn't change this by the time of the release of the OS, OS X 10.11 will be the last one I use.

Recommended reading/watching:

There is a war coming: Cory Doctorow on the future regulation of general purpose computation – video

http://www.theguardian.com/commentisfree/video/2012/apr/19/c...

Curated computing is no substitute for the personal and handmade

https://www.theguardian.com/technology/2010/jul/27/curated-c...
and I still use ATM machines....
I thought the big problem for the US Navy in terms of spending spinning out of control was related to the Zumwalt class destroyers. Started out with a plan of 32 ships, then down to seven and now three.

https://en.wikipedia.org/wiki/Zumwalt-class_destroyer
Stripe does have micropayment pricing. Just email them and ask about it.
Cointegrated Time Series Analysis for Mean Reversion Trading with R
We already allow remote voting for anyone who wants it.
Forced updates for Windows 10 burned all the credibility Microsoft was slowly regaining. Whatever might be going on in there, they still have enough of the old strongarm bullying monopolist in their collective corporate character that their good works really cannot be trusted over the long term.
Reading your comments with the word "portal" gave me an eerie flashback to AOL and then Yahoo!
They call(ed) these forces a `tripwire'.
Sleek dev flow automation tool for busy coders
You're talking about specialisation in a restricted field, like maths or a scientific discipline. That's part of education.

I'm talking about how all (healthy) humans learn about the world they inhabit, by building a broad context of the entities and concepts in it. We all learn to speak a language for instance, in fact I believe most people actually learn a couple. We learn to interpret facial expressions, who is our friend and who is not, how to find sustenance and so on. We learn a whole bunch of things outside of formal education and specialised technical knowledge.

We specialise even in the kind of knowledge I describe, sure, but we can also change specialisation without too much hassle. I myself have been making my living as a programmer for the past several years coming from a completely non-technical background for most of my life. It was hard going to learn a new thing from scratch, but I was perfectly able to do so. We lose this flexibility as we grow older but for most of our lives we have nothing like the limitations of machine learning.
>U.S. is still 100% committed to total defense of both Taiwan and South Korea.

US is not committed to defend Taiwan.

US-Taiwan relations act is carefully grafted to avoid commitment. It's not solid defense pact like US has with South Korea or Japan. US position is called strategic ambiguity. US has the freedom to determine how much it want's to assist Taiwan to defend itself.

ps. US don't even have formal diplomatic relations with Taiwan. China is more important to US interests than Taiwan.
SQLAlchemy dialect maintainer here. I'm happy to hear somebody is using it, I've been working on it for a while but in the last 2 years I only received one bug report. And I don't think that is because the code is flawless.
Because it's important to distinct intention to contribute to open-source world and intention to use this world to make money.
I wonder what is the minimal size of UniK and if it runs on Raspberry Pi...
Super neat stuff, looks like you guys have a solution that fills a big gap (the big disconnect is that you have hardware hackers who don't build up the stack or high level devs who have things they want to build but don't want to bring up panels to do it).

What's the refresh rate/interactivity/frame rate for your devices? Looks like you guys have lots of awesome options - are there videos of the devices in action or the dev environment?

Are the high prices of devkits primarily driven by the panel cost or for other reasons?
Be Lazy and Cheap: Guidelines for Academic Conference Websites
The laptop has a convenient strong password entry mechanism already.
Approaches of Mozilla and Microsoft are quite different.
No, they only streamed a single track live.
InfluxDB vs. Elasticsearch as time-series DB benchmark
The first is doing it on a mobile device, locally, without sending data to the cloud. That's pretty big, and only been possible recently with the performance increase in mobile SoC's.
Did I give any reason to think so?
I think there are big opportunities here for the extension of democracy. Democracy as it stands is quite weak - technically a Polyarchy, meaning that elected officials make decisions which we ratify. This could mean citizens could participate in decision making.

The same reason is why the government and many people will try to oppose it, because greater democracy is a threat to any power system.

The reason why people feel disconnected from politics is by design. The rulers don't want the people to participate, they want them passive.
You can siglongjump out of a signal handler [1]. If you sigsetjump right before doing a blocking call, you can reliably detect signals.

Another way to avoid the race condition in poll/select, before p{poll/select} were standardized, was to store the timeout parameter in a global variable and have the signal handler set it to zero. Finally there is the self pipe trick, which admittedly doesn't require EINTR at all.

[1] This is historical unix behaviour. At one time it was specified by the SUS, but it seems that it was dropped from more recent SUS/Posix standards.
"Deep learning" was clearly heard at least a few times.
New Apple File System in 10.12
It's a joke :)

https://en.wikipedia.org/wiki/Halting_problem
Too much reliance on GPS.. this is not smart high-tech...
The dollar doesn't necessarily have inflation in comparison to my national currency... and it may be the most readily available investment opportunity that helps you avoid poor national economic policies.
Deadlocking would be the ideal outcome. Deadlocks are easy to debug. Silent concurrent memory corruptions not so much.
Just signed up for the same thing on edX! Still going through the math review though.
Ask HN: Which IDE handles very large projects the best?
Most IDEs I use get really slow when working with a large amount of files. Which IDE have you used that handles this problem the best ?
He is "demonizing" some "typical PHP programmer". It's not the languages fault that it is allegedly often used by novices to start their first website project, and that by no fault of their own those novices do not have any appreciable CS education and thus build their programs like I build a sandcastle: keep trying random things until it does not fall over anymore.

The argument is exactly to make this difference. There is the technical and somewhat objective aspect of the language and its implementation, and there are the people who created the language, who use the language etc. A bad language can have a great community, and vise versa.
> But I disagree with the "just feints" notion in present day

Maybe saying "feeling each other out" would be better than "feints". At any rate, that's just my perception. I'm also not qualified to say what's what.

Countries continue to trade with each other, and there are diplomatic ties between the US, China and Russia. They continue to have some common goals, in spite of some differences. I think overall that's a positive thing. I trust our leaders to decide how to deal with various strategies put forth by other countries.

History was pretty interesting and tense at times. So is the present. I believe the ties are better these days among nations than they were 40-70 years ago. Monarchies used to send family members to each other to keep the peace. We try to do the same with diplomacy where possible.
Some UK seats are marginal. You only need to manipulate a few dozen votes to influence those seats.

That's much easier to do.
One of the Best Knowledge Discovery Digest for Professional Millennial
This a digest which I send twice a week around Business, Entrepreneurship, Startups and Software Engineering related topics. It consists of carefully chosen articles and videos based on quality, depth of knowledge and authenticity. The content is public on the internet but it's easier not to have to waste your time to be able to find these sources and make better use of the time you dedicate to increase your knowledge and stay up to date in your topics of interest. Subscribe if interested! https://www.getrevue.co/profile/ahmed_sharkasy/archive/22141
It's a rookie trade because they left a bulldozer trail of evidence behind.
Do you really want citizens participating though? I have no clue about what it takes to run a state and I'm not a lawyer and can't really read new laws. Also, I have a job and very limited free time that I don't want to spent on keeping up with new developments in politics.

So my opinions are likely very biased and quite useless for the political process. Even elected officials seem to have a hard time reading all the things they vote on, letting Joe average vote on almost everything seems like a recipe for disaster to me.
"You know full well that it's illegal to use systems without authorisation. In the US, it's called the Computer Fraud and Abuse Act and they'd be committing a criminal offense, with severe penalties, if they did (and government could prosecute with or without OWS consent, as AaronSw experienced). There's also an open ended civil claim you'd now have against them. So whether express or implied, the project from then on, was under a direct cloud of legal threat."

Wait what? Because what they did was illegal, to ask them to stop is to threaten legal action?

A: "Hey, you just hit me, can you stop?"

B: "Oh sorry we'll stop."

C: "Gosh, you didn't have threaten them with legal action!"

A: "What when did I do that"

C: "You know full well assault is a criminal offense and the government could prosecute with or without your consent. There's also an open ended civil claim you'd now have against them."
Facebook sprite
Great read.

Jumping ahead a little:
The Sim City 4 community is one of the better ones I've ever seen. 13 years after the release, and people are still releasing high quality mods and custom buildings. The community has kept the game alive for all these years, and made the SC4 experience many times better.
I meant as a technology in general, given that they pushed it so hard as a killer feature of the game and it ended up being the reason most people couldn't play it.
Her Google Trends data analysis is bad - see http://www.seolondonsurrey.co.uk/blog/bad-google-trends-data...
I don't really see what JWT got to do with it. It's just an encoding format, and whether you put session state in the token is orthogonal.
Thankfully not (or only in the way they are 100% committed to bring peace to the middle east, i.e. by providing lip service, vague promises and performing some maneuvers in the general vicinity).

Letting China occupy Taiwan is better for everyone (including the Taiwanese people) than the 3rd World War.
Article forgot SimLife, the most complex but ultimately boring of all, but made for some fun animations of animals that looked like office furniture: http://www.abandonia.com/en/games/4996/SimLife.html

From the manual:
"The family that Transmogrifies together eats flies together!"
Why I’m done with Apple
I'm guessing this is a not-so-subtle critique of GMO labeling. I'm not against GMOs, but anyone who is against labeling is caught up by propaganda. Everything else that goes into food is labeled - there is nothing wrong with mentioning that a food contains GMO as well.
Globalisation is Fraying. Look Under the Elephant Trunk
thank you. bought a practical one on skillwise.
France Launches Massive Meteor-Spotting Network
I keep hearing this, but as a Mac user who uses Time Machine and CCC, what's a good way to test the backups? After all deleting my only system to attempt a restore seems even more dangerous.
Which Number s, sadly, are missing, are those of Switzerland and Finland. I find it really interesting, because in Switzerland, every man mandatory serves in the Army, and then takes his full-automatic gun and ammunition home with himself. In Finland a lot of people have guns. Just because of animals in far away Areas. Best comparison would be the numbers for Israel. Very low, even though every man and woman who currently serves always carries his or her Service rifle. All numbers are massively lower than in the US. For me, that shows that not Guns are the Problem. It's the people carrying them.
The differnce is that in TheDao the money is protected by a smart contract. It's auditable by anyone and securely locked - literally no single person or entity owns keys to the lock.

In case of Paycoin, and many other similar scenarios, you had to trust the company.
Hitler's war was absolutely about resources. He wanted land in Eastern Europe for lebensraum. The purpose of the genocide was to depopulate the land to allow for German settlement.
None at all? So you'd be paying for the privilege of writing code for your own computer? Wow.
Have an Interesting Old Blog Post? Here Are 8 Ways to Go Back and Promote Them
Jailed JavaScript library runs untrusted code safely in browsers, Node.js
Suppose you were to throw the whole thing out and write a good replacement (and backwards-compatibility be damned), what would it be like?

Steal the best bits from Windows NT, and improve the existing mechanisms.

Kill signals in their current form. Build a general-purpose notification mechanism consisting of a mutex and a message. Possibly allow a process to have more than one message queue (Windows makes this really, really easy).

All IO, networking and informational signals (SIGWINCH, SIGCHLD etc) then come as messages (these may have to be fixed size, but anything from a few words to a 4k page would do). select, poll etc are replaced by waiting on a mutex. You can put all your worker threads waiting on that mutex. A message arrives. The kernel wakes one waiting thread and gives it the message (via an atomic deque-or-block syscall). You don't have to do any O(n) processing to work out which socket it relates to as the kernel has helpfully put it in the message.

In the deluxe 4k page version, a 1500-byte ethernet frame arrives, is DMA'd into the top half of a page, the kernel inspects it and sets message headers to say where the data is, and hands it directly into the userspace of a waiting process.

The one downside of this is that UNIX pipe programs become slightly more complicated. Rather than just doing "while(read()) write()" you'd have to switch on the type of message recieved and implement your own abnormal exit functionality. This could probably be tidied away for you inside the standard library.

External process control mechanisms would have to be built for killing processes and suspend/resume.
10 Cool Things You Can Do with CodePen and JavaScript
I really appreciate the kind words and thanks for spreading Jack!
Italy here, it works in the same way. Parties have their watchers. I expect this to happen in every country, unless there is only one real party and the others are there just for the show.

In every paper based system problems can arise outside the voting site: parties can buy votes but that's the same with internet voting. With the internet and computers an attacker has the benefit of changing a vote every 1,000, on the client or on the server or on the network (MITM). That's enough to win many close elections. I wonder how parties could watch against that. Are we going to end up with computers with rootkits for every major party fighting each other for the right to vote on our behalf?
Wow. That's huge. I hope it's only for the beta, although I don't see any logic behind adding it back for the public release ( in terms of beta testing ).
I have hard time to understand what you mean (begining at if we could refactor ...) can you give examples ?
Considering that you can basically establish no invariants in the signals model, to me it sounds like a cooperative model is the way to go.

Have a way to poll for "outstanding" signals and deal with them accordingly, in some sort of queue (and the OS drops older messages or something, if they're important you'd deal with them).

The "freeze-the-world-and-do-this-thing-instead" model seems like the best way to introduce "my entire program is now broken"-style bugs. The OS deals with interrupts but the OS is also running by itself.
Enhlin – Free High-Resolution Photos
Elon Musk Might Soon Have Competition from India
It's focused on SSDs and encryption, though, so it's modern.
3D Fiber Lash Mascara – All Natural Fibers
Amazed at the amount of open source coming out of MS these days, very nice !
Maybe. You might be right, who knows?
Well as the STM32F103ZE has some external memory connected to it (hopefully several MB of it), you could get Linux running on it directly - who needs a Raspberry Pi ;)
Sure it's great for optimizing land use. Agricultural land is cheap. The real question is cost.
__vsyscall simply abstracts away the actual system call invocation strategy (int, sysenter, syscall), but doesn't change the model at all.

Anyway, what I was thinking was similar to call gates, which were phased out for being slow. Probably just making syscall faster in the CPU and reducing the overhead kernel side would be enough.
If it's closed source and you have little-to-no control over the software, how much of a difference does it make?

Interestingly the results of this still end up on iCloud by the looks, and it back fills from iCloud (will that add big battery drain for first install of iOS 10?)
Unikernels – Rethinking Cloud Infrastructure