skysight-inc/HackerNews huggingface dataset:
"Not every important idea is a huge world-changing event. Sometimes building a small company that makes a big difference to a small number of people is more important."

Totally agree. DHH actually gave a talk about this subject at Start-Up School back in 2008. Definitely worth watching
http://www.youtube.com/watch?v=0CDXJ6bMkMY
For iOS this is a very big step. The current dogma is app based multitasking which has a 1 to 1 relationship with data. Ink gives documents a 1 to many relationship so we can have data based multitasking. Very smart
Maybe they want to disrupt developers working for a big bad company.
I would bet that PG will not respond to this one.
IMHO, there is a subtle difference between your version and the version posted.

You assuming a "real" producer-consumer relationship. But the posted code seems to imply a sort of "supervisor-worker" relationship.

The "supervisor" "snoops" on the worker's state and raises an alarm if the worker is doing something weird.

As you stated at the end, synchronizing around currentPos seems to be most reasonable solution (assuming that's possible). That guarantees that no Point method is running while currentPos's state is being examined.
The Atomic* classes in Java give you essentially direct access to these mechanisms.
That's kind of the issue here, right?

If Apple decides to levy a new API for doing interapp data sharing, doesn't this put Ink in a rough spot? Like, especially if it comes down from on-high that this is now the only way apps are allowed to talk to one another?
Good question, I'd be curious myself. I've used it quite a bit for Hackathons, since it's really easy to get started, but nothing yet in production.
That's an insightful analysis.

For me, the question is knowing what exactly I'd do differently. On a lot of crucial points, I don't know and don't know how to find out (except experimentation).
How does this interact with the effort to encourage the use of HTTPS everywhere?
Edit: Downvotes? Really? I write a thoughtful introspective comment based on my personal experience of being a design-trained single founder and you give me downvotes? Ugh
I'm sure that it does degrade like that at normal temperatures. Normal explosives will also tend to degrade slowly over time as the chemical reactions that power their explosion also have a "activation barrier that prevents this happening readily". But as the temperature increases probability that any given molecular interaction will exceed that activation barrier increases. And if the activation barrier is exceeded, a chemical reaction happens that will release energy and increase the local temperature. In some substances if you increase the local temperature by enough there will be a runaway reaction which will quickly liberate all of the available chemical energy, an explosion. This all has to be triggered, but the strength of the substance makes me think that the energy involved in breaking it ought to be enough.

Now, it might be that the energy required to get over the potential barrier is large enough compared to the energy released by the reaction that this doesn't happen. If there people with real chemistry experience here instead of just semiconductor physics and basic statistical mechanics I'd be grateful if they'd speak up. I'm mostly inferring from the prior beliefs of other chemists that this substance wouldn't be stable at all that it will tend to explode if given a chance.
>> Just a PSA Git is distributed

Can you please elaborate?
You said 'almost every day'. Seems more like 'almost every week'. I'm just nitpicking though.
Yeah let me know if you have any problems.

Also if you do end up using it, then feel free to submit a PR to the readme to add your website.
Your expectations are based on a completely different scenario. A honeypot is designed to attract attackers, and is designed with bad security in mind. No corporate network runs SSH in the open. There's no need.

What a corporate network needs is to provide remote access to specific services based on who is authorized. A VPN is the way to accomplish this. It would be stupid to allow SSH access to everyone (including hackers) when only a handful of authorized administrators would even have SSH accounts, much less do anything on the box. You keep it behind the VPN and only allow specific users access. It reduces the attack surface, creates audit trails, simplifies revoking network access, etc. This is security 101.
This is exactly why we have an internal system which mirrors repos. We've never had our build/deploy process interrupted by GitHub outages because we always use the internal mirror.
If you live in the UK or have any personal or professional interest in the UK internet, I'd encourage you to make a regular donation to the Open Rights Group. They do fantastic work and the money goes a long way.
Outside of the first two paragraphs of just complaining, its a good guide on using Vagrant with wordpress
The goal may be to potentially open up a new attack vector to steal code, some of which may contain secrets. This is pure speculation, but a definite possibility.
True or not, I don't consider "the law says I have to" a valid excuse for acting like an asshole. Corporate goons love to sanctimoniously declare that they have no choice but to be selfish fucks, but they sure aren't using any of their billions of dollars of lobbyist money to get the law changed.
I'm not really sure of Rust's semantics, but this sort of thing is achieved using GADTs in Haskell. They look like this

data T a where
TI :: Int -> T Int
TS :: String -> T String

which lets you reflect a value up into its type. Something similar but more implicit seems to be going on with that Rust example.

Another method is kind of a hack: unify the type variable with an unused argument. This looks like

data T a b = T b -- we want to find a way to choose a

setA :: a -> T a b -> T a b
setA _ t = t -- Just returns the second argument
-- BUT tells the compiler the `a` type unifies
-- with the type of the first argument

> :t setA Int (T "foo")
setA Int (T "foo") :: T Int String
If you want to know the real truth behind Dokku and Flynn, you should listen to episode #99 of The Changelog: http://thechangelog.com/99/
I'm fairly sure it's 1. Maybe ~25 or something. It's not that obvious but the upvote button is a little gray triangle to the left of a comment/post
My approach to guessing a gender from a first name.
Hi!
A short time ago, i decided to try and build an API that would try to guess the gender of a first name. I thought this might be useful for segmenting user lists for campaigning, analytics or similar.
My first approach was to use a dataset of approved names from a few European countries. This was in the believe that most countries had lists like this (Which they don't) and i planned to add them as i went along. I got wiser and the first feedback i got also told me that the API should be able to do probabilistic guesses and if possible, also offer some sort of localization filter to achieve more accurate guesses.
I decided to take an approach of using large, growing datasets of user profiles from social networks. Each entry containing a first name, a gender, a country_id and language_id. At last, i exposed this datamodel through http://genderize.io
It responds in JSON. Simple example: http://api.genderize.io?name=robin
I am now looking to get some feedback on my new approach. What do you think of this way of doing guesses. What do you think of the API? Any feedback is welcome.
The API is completely free by the way.
This sounds more like what we experienced:

> The write of the default value (zero, false or null) to each variable synchronizes-with the first action in every thread. Although it may seem a little strange to write a default value to a variable before the object containing the variable is allocated, conceptually every object is created at the start of the program with its default initialized values.

I can't get that to jibe in my memory though against:

> The final action in a thread T1 synchronizes-with any action in another thread T2 that detects that T1 has terminated.

> T2 may accomplish this by calling T1.isAlive() or T1.join().

If we were looking into the threads, it would have been obvious that we should wait for the thread to finish before expecting to find a completed value in it other than the default. That's not what happened.

It's unfortunate that I didn't get a copy of the code in question, because it was a genuine idiosyncrasy in Java and by the time I got around to asking my friend for a copy, he had already rewritten his code in a different way that didn't hit the same bug.

Didn't use revision control, got his degree didn't care to repeat the same miserable exercises, now probably hacking ruby in his day job like me (except I promise I'm using revision control.)
Can't spin yarn without Threads! :D
In addition to the other comments, regarding limited scope, note that trademarks have dual purpose:

One one hand it protects the interest of the registering company, by preventing competitors from benefiting from their marketing.

On the other hand, it protects the public by protecting the public against confusion about the origin of a product or service.

E.g. if Dirt-T-Water Inc. starts selling poor quality unfiltered tap water and market it with "it's the real thing", it'd benefit from Coca Cola's marketing and harm Coca Cola's brand, but the reason for that is that it would capitalize on peoples trust and expectations of the Coca Cola brand by confusing some portion of them into associating the two.

Whether or not the public would be confused is also a key test in most jurisdictions as to whether or not a trademark has been violated.

So unlike many other form of protection for corporate assets, trademark protections - when not overreaching - often very directly aligns with public interests.
As punishment?
Probably to disrupt businesses that rely on github or cause a service to function improperly causing a security loophole they can exploit.
"certainly a lot of developers made some quick money on iOS"

AKA: iOS developers make more money because iOS users are more likely to spend it. Android users are people like the highschool student in India who is never going to buy an app.
You can also use public PaaS
Congratulations!

I played with an early prototype of this; it feels like it should have always been there very, very quickly. Worth trying the demos if you've not had a chance yet.
> I think he is more referring to the portability of content within Wordpress.

If that's right, it's inexcusable. The idea that a proprietary for-profit protocol would be non-portable between two sites that (in principle) support the protocol is a bit hard to imagine.

> If I am using a platform to manage content, I'd like to think that I could easily port that content wherever I want.

That would seem to be an implicit expectation, but maybe I'm being naive.

One of my perhaps unrealistic expectations about proprietary protocols and markups is that they should provide import and export paths to one or more widely accepted generic document formats. Most protocols provide an import path, but, for obvious reasons, fewer provide a way to export.
Yes and no. First off, people have been clamoring this for a while, and so far Apple hasn't moved. So we said enough waiting, let's make this happen.

Second, people use products that are made by a variety of companies, not just apple. Being able to send content between apps and between devices requires an independent, multi-platform approach.
That was very informative, thanks! :)
In my experience, it's only the web community who has this "look and feel" definition of design.

An electrical engineer who designs an electrical circuit calls that process "circuit design." An aerospace engineer who designs a spacecraft trajectory calls that process "trajectory design." See the Wikipedia article on design:

https://en.wikipedia.org/wiki/Design

You'll see that the web community is living in a language bubble.
I'm in a very similar situation. I graduate December and intent to work in a coperate environment where I can learn about the involved market.

My issue has been I don't know enough about the world to know where and can apply my skills to solve problems.
People who willingly paid the prices Microsoft asked for their goods because those individuals decided that it was in their self-interest to do so.

http://en.wikipedia.org/wiki/Bundling_of_Microsoft_Windows

"The Findings of Fact in the United States Microsoft antitrust case of 1998 established that "One of the ways Microsoft combats piracy is by advising OEMs that they will be charged a higher price for Windows unless they drastically limit the number of PCs that they sell without an operating system pre-installed. In 1998, all major OEMs agreed to this restriction."[5]"
Not a good time to submit links to github, I guess.
Extortion, research, or for evil. Attacking Github may be an attempt to effect someone that uses it (Github may not be the direct target). What if it's possible to effect HFT trading.

---

We do know that they've been consistently attacked. Github has been unsuccessful in mitigating attacks.

Github needs to explain why these attacks are happening. What is being done to stop them. What has been done to stop them. And if they are different from previous attacks.
extortion, potentially.
They needed external libraries to parse it, but the information is easily represented in native data structures, is it not? That's what people are referring to.
getting a bit offtopic here, but the doctrine of laches means you have to actively persue many legal rights, including copyright, or after a length of time, you will not be eligible for remedy.

http://en.wikipedia.org/wiki/Laches_(equity)

This is a strong legal basis for abandoned works infact being safely usable. If somebody sleeps on their rights for 10/20/30 etc years, and the waits for a big payday to act, its not equitable and in good faith.
your iPhone uses about 361 kW-h if you stack up wireless connections, data usage, and battery charging.

This site says 3.51kWh a year to charge an iPhone. So the original claim seems off by 100 times.

http://blog.opower.com/2012/09/how-much-does-it-cost-to-char...

Also, why would you stack charging and usage? It is the same electricity counted multiple times.
I'm willing to bet the question has a fabricated back-story. If you look at the user's question history: there are some interesting ones, but they all could be justified as a collegiate homework problem.
> A honeypot is designed to attract attackers, and is designed with bad security in mind.

I wouldn't say that. You'd be very hard pressed to find a production server without SSH, if not on the default port. I'm doing absolutely nothing to draw attention to myself, so it stands to reason that somebody who is (say, running a large website) would draw a lot more probes and "hacked" logins.

> amongst them not running SSH in the open

Moving SSH to a different port is the usual "fix" I see, which does next to nothing really. There's very little in terms of attacks against sshd, and none when you disable password based authentication. Having an open port is not an issue unto itself, unless you used an older Debian to generate your keys.
Public Service Announcement

You can have multiple remotes for your Git repositories, one of them (Github) being down should not affect your work since you can coordinate a new one with your team in the manner described above.
HN Hardware Hackers:  Fundamentals of PCB Design
There have been a number of discussions on HN about doing circuit boards and wanting to learn how. Here's a good intro by an recognized expert in high-speed PCB design:

http://www.techonline.com/electrical-engineers/education-training/courses/4000356/Fundamentals-of-PCB-Design

For the mechanics of actually designing the electronics and laying out a PCB I'd recommend the free training videos from Altium:

http://altiumvideos.live.altium.com/

intro:

http://wiki.altium.com/display/ADOH/Tutorial+-+Getting+Started+with+PCB+Design

Keep in mind that this is professional-grade software (not free).

A good KiCAD (FOSS) tutorial can be found here:

http://www.youtube.com/watch?v=okAUlHsTcg0

http://www.kicad-pcb.org/display/KICAD/KiCad+EDA+Software+Suite
But you'll need memory barriers. Let's say you have two variables, x and y, satisfying x >= y at all times, and the values of x and y are never allowed to decrease.

// Thread 1
atomic_inc(&x);
atomic_inc(&y);

// Thread 2
local_y = atomic_read(&y);
local_x = atomic_read(&x);

If you go through it logically, it's always in a valid state, right?

No. You need explicit synchronization. If we start at x=1, y=1, then thread 2 can see x=1, y=2, which seems impossible!

Or in short, your exception sucks. (By "sucks" I mean it is not sufficiently detailed enough to prevent errors.)
Sorry, misread that. Direct debit support would be nice!
This is essentially my argument. A lot of people seem to start out gaining skills in design and development, as needed by their job, but as they gain experience they always tend to go into one camp. I know plenty of people that class themselves as both designers and developers, but few at senior-level that would consider themselves just as good with either.
IOS 7 Redesign
A thousand repos is a bit much, don't you think? I've worked for some pretty big agencies before and the number of active projects has never been more than 50-60. That's only going to cost you around $50/month.

The reason I say active is because even if you do have a thousand repos, you're surely not maintaining all of them - that would be insane. You would probably have 950 repos which would be better off archived, backed-up, and removed from GitHub.
this was good http://www.artima.com/insidejvm/ed2/threadsynch3.html
>I don't think you get what schemas are for. Schemas don't validate the content - they validate the structure and variable types. It doesn't magically make the data valid. It lets you make assumptions about how that data is structured.

In a typed language the very first stage of deserialization, the "turn this from a string into objects in my language" step, will do that for you "for free".

In an untyped language I guess it could be helpful, but again: it's almost always easier to write these sort of checks in a general purpose programming language than in XML schema.

>The advantage of a schema is that one schema can be used in multiple languages. Someone's Lua based embedded system can run the same schema as a Go program on a 32 CPU box.

If that's what you want there are more robust and performant approaches, e.g. thrift.

>You can give someone a well written schema, tell them "make your data like this, and run the validator when you open and save your XML". In this way, it's a free, one line (in most languages) structure sanity check.

Right, but that doesn't tell them what they think it means. It doesn't make the request valid.
I learned not to write life-critical software. There is no bringing back the dead. Corporate mission-critical software (unless said corporation is power, weapons, transportation, or healthcare related) can usually only lose money.
see also
http://www.nsa.gov/ia/mitigation_guidance/security_configura...
"Things to commit before you quit your job if you want to get sued your ass off by your former employer."
It would absolutely make sense. However, my guess if the story is true would be that one (simpler, cheaper) device caused damage to other, more expensive equipment, in a way that was not foreseen. (Another similar scenario: A software controlled pump not stopping like it should, causing an entire lab bench to be flooded with corrosive liquid).

Unfortunately non-software guys often have a lack of appreciation for how subtle some software bugs can be. Re. the mentioned Therac-25 incident in this thread.
"True sociopaths."

The state of the peer-reviewed literature on this topic is a pathetic shambles. At this point in time, there isn't a "true" sociopath.
Codeplane - A simple hosted git service
I agree, life would be much easier if they provided import/export paths, sadly we have to hack our way around it. I have used other plugins for wordpress before, like backupbuddy, to accomplish the same thing.
I think Cloud efficiency is about time saving. Is it cost efficient to rent on AWS expensive hardware with the worse uptime of the market ? Nop
But the cloud is not only that : with a proper solution like PaaS, you can just focus on what is important for you : your code. The point is : find a provider who is responsible for your service be up and running and forget about it. At Clever Cloud we detect the load and adjust resources, we deploy for you, we monitor for you... This is the real goal of cloud computing : forget about hosting, it's just working, and focus on your own added value.
There are a lot of hidden costs to the inflexibility of running local hardware.

With hosted you get:

- 24h availability of mixed skills sets (e.g. Cisco at 4am)

- ability to expand if under load/attack

- costs in proportion to revenue (sales go down you can have lower opex next month)

- ability to move resource around the globe in days

Some of this becomes critical if you get to point that SLAs matter.
One? Your colo probably also will rent you help to rack, wire, and anything else physical. How many days do you expect to be "downtown?" Apart from the physical / racking aspect, it's not like your Ops has any less work to do with respect to clouds. You still have to manage your own software services, security, etc on either platform.

You could triple your provisions with the savings of not being on the cloud, so it's hard to believe you won't see the train coming, if the concern is having to rack more than 20-60 servers a day. Arguably, that would be a good problem to have!
So, if I am parsing this correctly:

Yes, it's a concern, because Apple hasn't made your product core functionality yet, and no, it's not a big deal, because your larger product roadmap sounds like a platform for sharing content between apps on different ecosystems.

Looking for an acquisition by Dropbox?

EDIT: Don't get me wrong--sharp product, and good luck to you!
Come learn more about Docker next week in NYC
Well, on one front it's a business risk. On another front, it's an avenue to open acquisition talks. Ink isn't an app, it's a core feature.

I'm quite excited to see this though - the end user experience looks great.
Basing your evaluation of China on anything that happened or didn't happen with Japan is a fallacy. China should be evaluated on its own merits or demerits, and not in comparison with Japan.

For one, Japan never had more than 50% of the US population. For their GDP to have eclipsed ours, their average citizen would have had to produce and consume twice as much as the average US citizen. The Japanese are highly productive, but not that much.

China on the other hand has four times our population. It's an entirely different dynamic here, and somewhat uncharted territory. No comparison.
Organizing Data: Moving Beyond the Spreadsheet
Roku, Apple and Google should brace for streaming video boom