skysight-inc/HackerNews huggingface dataset:
From what I remember, the way I approached it was to have the client stepping the game world forward every frame based on whatever the current state was of all the players.

So for example if a player is going left, every time the game steps forward one frame move the player left.

Then when a message comes from the server with the current game state, update everything to the server positions and then step your game world forward to now.

So a simplified example - we have one object in our game that has an x position and a delta x to move it.

Local
Frame x server_message info
0 ____ no message no real idea of what the game state is
1 ____ no message
2 ____ no message
3 ____ no message
4 ____ no message
5 100 Frame=5 x=100 dx=5 we can start displaying where things are
6 105 no message
7 110 no message
8 115 no message
9 120 no message
10 125 no message
11 126 Frame=7 x=110 dx=4 (x = 110 + 4 * 4)

So we set our local state to what the server says and then step forward by 4 frames to get what we think the current state should be.

12 130 no message
13 134 Frame=6 x=105 dx=5

We ignore this message from the server as it's out of order (we've already received frame 7)

14 138 no message
15 142 Frame=15 x=142 dx=4

No need to do any stepping forward from this server state as we are in sync.

One thing to be careful of is that normally it's not just a case of saying it's 4 frames so I just multiply everything by 4 to get the new positions. With physics engines and more complete calculations you probably want to step the world forward frame by frame to get a better simulation of where everything is.

Hope that all makes sense.
Back when I was somewhat involved in the gaming industry a very, very smart programmer told me the reason his game with his new fancy, innovative, advanced engine didn't work out.

If you make it possible for level designers to make six square mile levels, they all make nothing but six square mile levels.
Let us keep SourceForge in mind as GitHub goes public.
The vast majority of the world doesn't work that way, and the vast majority of software developers don't agree with your point of view.

I think most copyleft advocates realize that. So what?
I love google for this and many other ways the fight abuse of browser users. First, they removed CA, which produced a bad certificate, and now sf with their bundles.
Ok, was a big mistake to show the idea with this on-the-fly-invented syntax this way (because: I still not settle on it), I just try to convey the idea not the implementation.

I wanna build a F#-like type-system with sum/products (https://www.reddit.com/r/fsharp/comments/30ywjy/question_how...) for my language, and be the result of the function already a Result<T, E>, without the user need to annotate it manually. So, I'm thinking in the kind of development that happened in reactive library but as a intrinsic model of the language.

Of course, I'm a total noob in this area, so still researching about this!
Not really, if you see the Google Safe Browsing diagnostic page for sourceforge.net (emphasis mine) [1]:

>> What is the current listing status for sourceforge.net?

>> This site is >>>not currently listed as suspicious<<<.

>> Part of this site was listed for suspicious activity 333 time(s) over the past 90 days.

>> What happened when Google visited this site?

>> Of the 205785 pages we tested on the site over the past 90 days, 588 page(s) resulted in >>>malicious software being downloaded and installed without user consent<<<.

>> The last time Google visited this site was on 2015-06-18, and the last time suspicious content was found on this site was on >>>2015-06-18<<<.

>> Malicious software includes 5877 virus, 4347 trojan(s), 1132 exploit(s).

[1] http://safebrowsing.clients.google.com/safebrowsing/diagnost...
Newbie here. I support this, can somebody explain this breaktrough with an example?
My impression reading the "code" parts of it was, "There's no way in hell I would understand this if I weren't a coder." You'd understand the culture, sure, but if you've never programmed would you grok this paragraph?

> So what if, whaaaat if, we made a little box called Customer (call it a “class,” as in the taxonomical sense, like a Customer is a subclass of the species human, which is a subclass of mammal, etc.), and we put the data and methods relating to customers into that box. (And by box, it’s literally just “public class Customer {}” and anything inside the {} relates to that particular class.)

It's a solid effort, but for someone who isn't technical, jumping from,"ok we have a thing called a class" to "and that's object oriented programming!" is just not something you can do in one paragraph, no matter how well it's written.
uBlock Origin added a filter to block all of Sourceforge...
Bond Street, an Online Small Business Lender, Announces $110M in Funding
> It is important to distinguish EAP from traditional pre-release software. Please note that the quality of EAP versions may at times be way below even usual beta standards.

That... scares me, more than a little. I'm okay with it crashing, or losing queries I wrote. I really want failure cases to be restricted to NOT affecting the database, though. I'll probably stay away or try it out on my personal machine on a toy database for now.
You can use gdb - https://golang.org/doc/gdb
Or that survival bias is a real thing. People only remember the good games that survived obscurity for tens of years, while ignoring the majority of terrible games that didn't.

A lot of people like to claim "old games used to be better!" but pick any month of the 1990s and look at the newest releases for that month, I bet for the average month there might be one title you've even heard of.
As if the parser of JavaScript source code can't have security issues.
> How is this different to how Apple (Microsoft, IBM, Oracle etc.) play the game?

At what point has coercion come in to putting a iDevice in your hand? Sure we could have that argument about advertising but Apple doesn't do a whole lot of that and the advertisements they do create are hardly designed to manipulate you - not to mention we are comparing them to the Romans here...

> This is a wonderful sentiment to approach commerce with, but it's all too easily forgotten when you're already at the top of the game. To stretch my already two-dimensional metaphor, it's at this point that empires start to stagnate, and eventually fall.

It's not a sentiment, it's the very essence of commerce. If you remove that incentive (and decline to implement an authoritarian regime to organise by force, like communism) then you have nothing but a bunch of former bureaucrats twiddling their thumbs (and likely starving to death.)

Commerce is about trading things you have for things you want: no more and no less. The problems of today are not the fault of freely organised trading by independent actors - that, instead, is the thing that brought us out of the stone age - but by the truly pain-in-the-arse implementation details of making this "system" moral and fair (define those terms however you will.) The reason I've air-quoted "system", btw, is because it is no such thing. If the apocalypse comes and the political/financial system falls, and you find yourself holed up in some basement with a stash of weaponry but no food you'll see that commerce is as natural as breathing. We have literally studied magpies and chimps making what we would call business decisions. Commerce is not evil, the system we've built around it is - I think this is the paradigm you have issue with, and it's something you ultimately need to take up with the political system.

Apple's success is owed to being good at this fundamental notion of trade, instead of gaming the system to their advantage (how many Fortune 500's would fall with a fraction of the competition Apple faces?) In order to fall one of four things would have to happen: 1) the entire system turns against them; 2) they stop being good at being Apple; 3) someone else learns how to do as they do or; 4) their actions ancillary to the product they provide me (like OPs points) become so offensive that they outweigh the benefits of being an Apple customer for a significant proportion of the consumer base. Personally, I see none of these as being particularly realistic or becoming so anytime soon.
Why do the links below 'You can use Kedo to build services like:' point to companies like Rdio and Reddit?
> Ctrl-c kills the whole shell. great, but not what I expect.

That is actually exactly what you should expect. SIGINT cancels most things you run in the CLI.

Interrupt a ping because you forgot a count parameter? Ctrl+C

Honestly, the reason I don't use Postgres has nothing to do with the CLI and everything to do with the ecosystem for Multi-Master being inferior to Galera. But yeah, I'm happy with mysql-cli as well and don't really see the Postgres equivalent as a noteworthy improvement.
Not to be confused with Sharps smartphone brand "Aquos"
I don't see how you can imply a human rights violation. "Human rights" are a largely technical term. It's not just rights that humans have, it's a special category of restrictions, and unless you point out the significance of that, you're not talking about human rights. The term "Human Rights" is not very good because it invites confusion. This is not the FSF's fault.

But you can't go from "you have rights" to "that's a claim of Human Rights."

You are imagining what people think and being offended by it, which is your own fault.
As a previous poster suggested, there's no reason desalination should release any CO2 at all. Periods of drought in California are almost perfectly correlated with long periods of clear skies, making solar energy (whether PV or thermal) an excellent solution to this problem. If done correctly, this could also supply energy for pumping into reservoirs or for sale onto the grid during winter or at other times when desalination is not required.

The main problem with this approach is that while desalination (and, for that matter, rainwater capture and treatment and reuse of sewage) would provide ample water for cities and towns, it wouldn't really make a dent in the shortfall for agriculture. The author suggests leaving the rivers and snowpack for the farmers, but the problem is there is no snowpack and the rivers are dry. So none of this is a complete solution.
You misread. I don't expect outside contributors to call the shots. b00gizm referred to "people inside Apple who really want feedback and contributions from the community to improve their language" and I suggested that those inside contributors might not have the power to allow effective outside feedback and contributions.

Incidentally, if Swift is to be widely adopted outside the Apple ecosystem, it'll help hugely if it becomes a community project, not "Apple's project".
In a past life, I built a company with backing from a single investor. If you're going to go down the path of building a company that requires outside financing, you can never assume that a single investor has "enough cash" to meet your future needs.

Your investor could be a billionaire and there are still countless reasons he or she might not be able or willing to provide additional financing. Just a handful: legal problems, health problems, travel, divorce, death.
Web applets were widespread by 1996, I remember writing a few.
Another option / the "traditional WSJ paywall sidestep" is to google the headline (copy and paste it from the paywalled article, e.g.) and then visit it from the google results.
It would have some kind of intelligence, at least able to recall information and form associations between things. But there's no reason to think that it would come out looking human. I mean you can show a dog lots and lots of images and it doesn't turn human.
"Fortuitously, Apple eventually discovered a technically brilliant (but sadly non-copylefted) research programming language and compiler system called LLVM."

What does he mean by that ?

Did LLVM already exist in various pieces and apple "discovered" it by putting them together ?

Or is he purposely using the word "discover" to suggest that you can't invent a programming language (since programming is all reducible to math) and that new languages are merely "discovered" ?
I didn't see a link to the actual report which I believe is this[0]

[0] http://www.realtor.org/reports/profile-of-international-home...
That's no debugger. That's a debugger: https://github.com/derekparker/delve

If you want to attach to running processes, use delve, it's awesome. For me personally, even with Go's short build times, you can't just deploy a new binary into a running system to see where a problem lies. Sometimes there is just no way around a traditional debugger.
But who is forcing whom? Criticizing is not forcing.
Opened a random topic, there's a whole lesson dedicated to using views' tag property, closed immediately...
Very cool. Do you know of any particularly good (English) sources to learn more about the OS, that you could recommend?

I've always been curious about Lisp machines... Was the Oberon OS composed of Oberon code from the lowest to the highest levels?
> If you're runnning Google Chrome: Weep.

I metaphorically did. Then I closed Chrome and tabbed back to my Firefox window.

This feels like I had an Amazon Echo dropped by my house, plugged in, and then shoved behind a book on the shelf so that I wouldn't see it. Ethics be damned.
BBC wearable lets viewers zap channels with their minds
Not unless Google is bricking the phones on purpose. That is after all the very definition of the word "malicious".

In terms of security/privacy a bricked smart phone is much improved...
I can build an forever-free and anonymous personal finance web app
I've always wanted to control my finance, to know where goes my money and one important thing: forecasting. All sites that I've found over this feature as a paid one. Well, listen my plan:

#1. completely free personal finance (home budgeting) web app

#2. most web apps offer overcomplicated interfaces; I think I can create a much more simpler version with the exact needed features

#3. my app will not connect to your bank account

#4. with the possibility to attach documents to your transactions, you have all the control of your files (they will be hosted on your own google drive/dropbox account)

#5. ONLY oauth login with your google/dropbox account (login => a connection is made to your dropbox account, logout => connection closed, tokens destroyed).

#6. Hack-free web app

#7. Provide most useful features for a home budgeting app.

I am still thinking how to monetize this, because I don't want to put up any ad network (at least annual costs: 15$ domain + 120$ hosting)

What do you think of my plan? Would it worth pursuing?
I have no interest in knowing who you are, where you live, your name, address or any other personal info.
That has nothing todo with what op is referring to. Even on iOS you have a virtual memory system, like a normal PC does. If your app runs out of ram it will page to storage and the OS handles this for you. The PS1/N64 did not have any storage beyond RAM and also no virtual memory management so you had to write all the paging from CD/Cartridge to RAM yourself. Quite a difference.
You have to admit that Java-for-the-web was terribly insecure and a common way to spread malware.

http://www.pcworld.com/article/2030778/researchers-javas-sec...

Honestly, that is why I always avoided it.
WIC seemed to me more like a self indulgent brain dump than a work of art or a useful piece of information. First of all, it treats code as being somehow uniquely impenetrable as a value proposition - when we have plenty of similar examples such as any kind of creative art (why is one script worth $100M and another $0 and how can you reliably create one and not the other?) or highly refined mass produced good (e.g. Silicon chips or soda cans) or valuable insight (e.g. Progress in physics can be very expensive and yet be represented as a few scribbles on a page).

You don't need to reduce a computer to a clock with benefits to explain code any more than you need to explain how a typewriter works to explain writing.
No. Categorically not. Is this intentional FUD or can't you discriminate between a program in source and compiled forms?
That's essentially precisely what's happening here. You can see in the different pictures where different sets of training data were used---buildings, faces, animals.

Give the machine millions of reference images to work from and then tell it to find those images in noise, and it will succeed (because it literally can't "imagine" anything else for the noise to be).
How to Growth Hack Content for Lead Generation in 3 Steps
[Beta] Retake control of your Digital Memory with a private social network
Wow, that's meta. I find the original article truly a piece of art. It explains code to laypersons but in a way that's also interesting for seasoned programmers. Being able to bridge that gap requires more than just knowing what code is.
If you haven't already checkout pgadmin-3, I mostly live in the cli but if I need to do something complex or write a large query I often jump into pgadmin as it's display and proper editor are excellent!.

Prefer it to MySQL Workbench even which I liked.
I think they're referring to different games using the Y axis differently.
Yes, how about "their first personal computers".
This story has been picked up by The Guardian: http://www.theguardian.com/technology/2015/jun/18/google-ima...
>WIC seemed to me more like a self indulgent brain dump than a work of art or a useful piece of information

Good thing the author has you to let him know!
How Is 0 not positive?
I just remembered it as \d as display and \dt as display tables.

I often invent mnemonics that only mean something to me until muscle memory kicks in.
That sounds like a good intuition to me. Strict is like push, because it gives you the result as soon as it's ready. Lazy (or perhaps more precisely non-strict) is like pull because you have to go and ask for the result.
Stripe Is the New PayPal
Dear HN,

I am only writing this post because Stripe are not responding to my emails.

I started using Stripe last month and everything was going smoothly. However, this week they sent me an email saying:

"Stripe provides a service between banks and our users. In order to provide service to our users, we are urged by our banking partners to keep an eye on all accounts that sign up for our services. We've noticed that you have processed charges that seem to be unauthorized--in order to make charges with credit and debit cards, the owner of the card must consent to the charge. Charges on your account do seem to lack this consent, which unfortunately means that we will no longer be able to offer service"

This makes no sense as I have had hundreds of payments and not a single payment has been disputed. So how could it be true that the payments are unauthorised? I have sent Stripe emails explaining this and they will not respond.

I am very disappointed. As a member of this community I assumed Stripe would treat developers making a living online with a little more respect. I plan to write a lengthy blog post explaining this in more depth.

Update: I am currently in contact with Stripe CEO over email. He is dealing with the issue. I will keep everyone updated.
China has an authoritarian government that produces pollution that threatens the entire world, uses the great firewall to attack tech companies in other countries, prints up to 282% of GDP [1] in order to buy their way into other countries real estate and companies, ignores human rights and free speech, creates artificial military island near neighboring countries, and supports dictators in Russia and Africa. If China gets anymore powerful, the world is doomed. We need to curb commerce with China.

http://www.washingtonpost.com/blogs/wonkblog/wp/2015/02/11/c...
Maybe it was! https://github.com/kevva/is-positive/commit/3db0639fb52c463f...
I'd call those things services, since they are a huge collection of programs, data and to some degree human operation and hardware.
Computer vision variations on this: http://leafsnap.com/ and https://itunes.apple.com/en/app/dogsnap/id532468586 (funny at parties: what kind of of dog are your friends?)
Depends on your application. In most cases your "write heavy" is going to be isolated to 1 or 2 tables worth of data (or equivalent) and for those cases some type of NoSQL solution can be a really good option. Especially since you can use a PG foreign data wrapper to allow PG to run queries against that information too.

If it's system wide and you need PostgreSQL itself able to handle it, using PG's async features is one potential option but setting up and managing a Postgres-XC cluster would be the next best. XC allows scale-out for writes. If you're at a company with a budget for that type of thing I think I remember reading that EnterpriseDB (the PG company) is offering first class support for PG XC.

In most cases though, I find that the write heavy parts of a system are so isolated that diverting them to a simple NoSQL solution tends to be easiest (Mongo, Couchbase, DynamoDB from AWS, etc).
A tool to create deep links to drive traffic to your apps
He didn't use a commercial lisp? I thought he used Allegro?
I don't think so. There's a plan for a text representation of WebAssembly to show when you view source. That should be pretty similar to obfuscated JS
Any idea that you are this passionate about, is worth endeavoring. Built it, learn some things and relish any measure of success. Happy coding!
New York City Criticizes Verizon on FiOS Delivery
That doesn't work, it is still enabled under the voice search ;)
In other words, you haven't trained your personal neural net with enough Inception-meme instances to be finding it everywhere in the noise? ;)
A former Googler has declared war on ad blockers with a new startup
Show create table was so awkward to me after years of \d table. I remember I had to google even desc table and show databases :-)

Anyway, you might want to check http://pgcli.com/ for a free alternative cli with completion. I started using it over the standard psql and I recommend it to everybody.
I've recently made the switch to postgres, and then I found pgadmin3, and I'm really feeling some pain.

For instance, the "explain query" visualization is great, and very helpful, but there's no way I can find to zoom out, at all. And that window doesn't support mouse scrolling. And there's no way to export the visualization somewhere else. So when I'm trying to figure out why a very, very large query is running slowly, it's agony to use pgadmin3.

Do you know any good postgres query analysis tools?
This comment seemed familiar, so I looked at your comment history. You've left this comment over and over on different stories. In general, it is preferred you leave comments specific to the stories your are commenting on.
I imagine that will break hangouts... not that hangouts on the desktop isn't already broken.
Wow, is there really no way to disable this? I guess I'm going back to Firefox.
Hm. Silk Road took a while. And if they work, the guys that are supposed to shut it down will be taking the pills.
by reading this I just learned about the concept of chained exceptions, although I can't see why is so useful, the built-in traceback and sys module has always been good enough:

import sys,traceback
try:
...
except Exception as ex:
exc_type, exc_value, exc_traceback = sys.exc_info()
logger.error("%s:%s" % (str(ex), str(traceback.format_exception(exc_type, exc_value, exc_traceback))))
raise MyException(" :( ")
yellow background .. next article.
> Ask HN: ... political correctness in tech

> ... on twitter and media outlets

Twitter and media outlets are tech? Examples would help.