skysight-inc/HackerNews huggingface dataset:
Except, now you have one that you expect and the other you don't. This doesn't make the language anything but more inconsistent. I prefer consistency inside a language far more than familiarity between languages.
Right now, I am also a software developer (recently worked in Python) trying to find a job within Sweden. What are good ways to find a job in sweden, any popular job forums, websites and etc? Kindly enlighten.
It is amazing that you managed to pull this great venture off by spending 15 hours (including 6 hours of sleep). And congrats that you already got customers signing in for your services, but I just wanted to understand (out of curiosity) how will you manage to provide the 'million-dollar' information to your customers every week as you promised?

May be you are an expert in this, but eventually you will drain out rite? If this piece of information is the secret recipe than you need not answer ;-)
You can check the real value of your salary on this site: http://www.numbeo.com/cost-of-living/
It is possible to safely outsource the creation of vanity bitcoin addresses (http://bitcoin.stackexchange.com/questions/3853/can-one-safe...). That being said, I'm not sure if the techniques used are applicable to GPG.
> let considered harmful

Did people actually use the side-effect var-hoisting intentionally within their code?

Pretty much any JS style-guide worth its salt suggests manually moving var declarations to the top of scope since it's nice to know ahead-of-time which indicators of state you should be keeping an eye on.

The idea of inspecting a variable that is later-on defined with let seems baffling to me. I can't think of any reason why you would want to do this.
How a Simple Idea Turned into a Product Loved by Millions of Users
The problem with XML was that people tried to make it semantic. You had XML Schema (awful), and because of schema you had to have namespacing (also awful).

Take that away - plain unnamespaced tags, with no semantics beyond "this is a character sequence", common-sense business-specific tag names, and no schema - and you get something that's just as nice to work with as JSON is. And there are plenty of libraries (e.g. Jackson) that will serialize back and forth to objects. But too many people drank the semantic kool-aid and tried to autogenerate classes from schemata or other such silliness.
I imagine it has something to do with the 'new' functional movement that is gaining mind-share outside of academia.
Thanks but massively? function() {} vs () => {}?
I found my job through a recruiter. The reason was that I was looking for small companies, which were hard to find on Google. I searched through all the known channels (linkedin, job posting boards, forums, stackoverflow) but I could only find some ads from big companies. I contacted a recruiter that seemed decent, and they had a much bigger list of companies, including fun small companies!

The important thing is that you pick the right recruiter. Ignore all the recruiters that send you irrelevant spam, pick a recruiter that really cares and who doesn't send you unsollicited spam.

They set me up with a handful of interviews, they played them out against each other (so I could get a higher wage), they managed the contact with all the companies, and I ended up with a much higher salary than I ever expected, at a fun company!
I'm a senior (12y exp) dev in a "non-silly-money"-industry (i.e. not finance or SAP-contractor), regular non-startup, in-house dev only. Currently making around 600-650/y.

You should be looking at maybe 550-750/y as dev, at least for the major corporations. Startups are always hard to predict, especially if there are other compensations.
Flexible implant will allow paralysed humans to walk
== $4,207.89 / month

(to save anyone the google)
> If you use '/' is branch names you can create path conflicts.

You could say the same thing about filesystems though. Not sure this is an issue.
To be fair, the article itself ends with "No"

> So is Javascript getting worse? Well … no.
Audi Cruise Control Bug
I'm really dumbfounded and thinking maybe I should just start a slick looking minimal website with a random number generator and a payment form. This way I can sell interesting sequences of numbers. I could avoid the whole mess of generating keys, since this is about as useful as painting a house with a five hundred pound bomb.
Is there a difference between design-by-contract and the condition modifications allowed by the Liskov substitution principle? They seem related but I'm not well-enough versed in the differences.

"...the subtype must meet a number of behavioral conditions. These are detailed in a terminology resembling that of design by contract methodology, leading to some restrictions on how contracts can interact with inheritance:

Preconditions cannot be strengthened in a subtype.

Postconditions cannot be weakened in a subtype.

Invariants of the supertype must be preserved in a subtype."

http://en.wikipedia.org/wiki/Liskov_substitution_principle
Hi,

I'm the article author. Thanks to posting it on HN, I got a massive traffic source :)
The purpouse is to run tests periodically for a system user.
A possible scenatio is, for example, you have a user "etl" that runs all ETL processes in your server. You need to check SFTP connectivity on many servers, Oracle database connections are working, NFS dirs are mounted an so on. If something is broken, you ETL processes can stop and you notice it cause your Business Intelligence reports have missing data.

So what do you do if an SFTP connection is broken? At some point you will need to login as "etl" user, that holds the credentials. That's why I wrote this article! When you login, you will see running tests that failed: those test (it is supposed they) will say you where is the problem.
Then you can fix it, and run again tests to check everything is ok.
What is cool about "prove" is that is remembers the tests failed, so, if you have a large test base, you do not wait a lot of time that all tests run: it only run the tests you are interested in, those that you need to fix when you login.

Hope it can help to clarify.
Cheers,
fibo
Once GnuPG supports ECDSA (hopefully, in the near future, there's a branch with some of the code already implemented) I'll be happy to switch the service to this secure method!
4D Visualisation of Matter
Slight off-topic to non-Europeans: if you are planning to visit Europe, start with Stockholm.
For startups I linked another poster to: http://swedishstartupspace.com/job-board/

and "try visiting STHLM Tech Meetup's bar mingle after each event: http://www.meetup.com/STHLM-Tech-Meetup/
"

But also check out Linkedin and monster and such for corporate jobs. I believe most are up there. Otherwise try to network with people working in the big corps, that is usually the best way to get in.
Guide for Stockholm workers.

1. Average Salary for a software developer with 5 year experience. 32,000 - 38,000 SEK/Month.

2. You can calculate your take-home money here [1].

3. Average 2nd hand rental apartment (30-50 sqm) 5,000 - 7000 SEK/Month. Its easy to find single-person accomodation. [2]

4. The quality of an average apartment is pleasant. Kitchen & Laundry is fully functional from day 1 in every apartment around Sweden.

5. If you've kids, then day-care (preshool) is highly subsidized & generally good quality.
All education is free for everyone from age 7-70

6. Almost everyone speaks English. You'll not find any difficulty even if you dont know Swedish.

[1]. http://www.ekonomifakta.se/sv/ (you can enter kommune as Stockholm & enter your salary and date of birth)

[2] http://www.blocket.se/bostad/uthyres/stockholm?sort=&ss=&se=...
I think he means OO adds unnecessary complexity, hence the "bad bet".
When I was interviewing for various dev jobs fresh out of university a couple of years ago, we were discussing salaries at or just below 30k SEK / month. I finally ended up accepting a job with a similar salary, but elsewhere.

If I were you, I would not settle for anything less than 35k. Maybe you can push it to 40k.
Please explain what Google should do. Give Microsoft less time to fix the hole (and thereby also give attackers less time to use the hole), give Microsoft and the attackers more time, give Microsoft and the attackers unlimited time, or try not to find security problems at all? Which of these is least evil?
I will help you publish this for a copy of all keys generated.
If I'm following the blog post correctly, let does have effects outside of its lexical scope: it effectively makes the variable even more undefined than a totally non-existent variable. That is, the following code will not throw anything:

// x has not been defined or initialized anywhere
console.log(typeof x)

However, if you add a let statement after it like so:

// x has not been defined or initialized here
console.log(typeof x)
let x = "foo";

typeof will fail with an exception, because the let statement changes x from an undefined variable to a new state that isn't even undefined anymore.
Interacting with USB HID devices from web apps
No, because it can only throw if there's a flaw in the code. Not randomly according to the argument passed to the function. Unless I'm missing something, it will either always throw, or never throw.
The New Theory of Content Marketing
Mind Over Matter: Forming a Daily Habit
$143.83 (122 euro) NYC to Stockholm Wed Jan 21. norwegian.com
That's a rather starry-eyed view of Haskell's String type. It has terrible performance in terms of both memory and time, which is why we now have Text instead.
Tydy.it chosen as site of the week
This seems like a valid concern, not only for journaled file systems but for log-structured and COW file systems as well. In fact, even more for them, because shredding would be feasible if the journal doesn't move. While I don't know of any work on this problem at the file system level, there's plenty at the flash level because your typical FTL is very much like a log structured file system. Perhaps some of the work on implementing secure erase there could be "backported" into file systems.
To get a better picture of salaries in relation to cost of living, you should probably also check out http://www.numbeo.com/cost-of-living/city_result.jsp?country... .
Is that salary you quoted before or after taxes?
If you want "actual killer features", they'd by definition be unreadable, since you've never seen them before. I used to think F# was unreadable, then I realized it was those killer features that have no "curly equivalent" that was tripping me up. Once I learned them, it became easier to read.

Before I knew what lambdas were JS was hard to read too, and before I learned inheritance both Java and C# were confusing messes.

And what would F# need to move to? You can type out the types now, you can do all the OO of C#. The only thing I can think you mean is as add curly braces around functions and classes, which wouldn't make it objectively easier to read, just more familiar to some C# developers. Unless you mean add higher kinded types, but that would move it closer to Haskell.
Booking.com is hiring!

OPEN TO WORLDWIDE APPLICATIONS (we offer relocation packages) - Software Developers, Team Lead Development, Mobile developers, Frontend Developers & Designers

Have a look at our website: https://workingatbooking.com/vacancies/software-developer-wi...

Or reach me at: it.recruitment@booking.com
Ask HN: How should equity+cash for contract work be structured?
My questions are:

- For a contractor/freelancer, how should equity as part of compensation be structured?
- Grants instead of options?
- Should I be buying shares at the same cost that the last angel round was at?
- Is it typical to have an agreement that the startup can buy back shares within a given period?

I have been doing freelance development for the past 2 years and building my own products on the side in my free time. So far I have aggressively avoided any potential customers wanting to pay a portion of my rate in equity.

That said, I have started talks with a company that had been a competitor to a side project I created. I bootstrapped my side project and abandoned the product a year ago when it became clear a lot of marketing money would be needed to see a future. They just finished raising their 2nd angel round and want me on board to build 2.0. I still have a passion for the product and believe there is a future there.

For the sake of simplicity, lets say my normal contract rate is $100/hr and I am interested in exchanging half for equity. Again, for round numbers lets say their last angel round was done at a $1,000,000 valuation.

So at the end of 500 hours of work I would receive $25,000 in cash and $25,000 in shares (or about 4% ownership). Sound right? Any success stories when setting something like this up?
In the link that you provided, it asks if I am a member of the Swedish church? Can you please shed some light on how that affects taxation?
The most beautiful city, the most beautiful women, the most hilarious sense of humor.
That would be before taxes.
There are many edge cases you need to consider, so a seemingly simple language feature can become hard to get right quickly.

I highly recommend reading through https://roslyn.codeplex.com/discussions/570551 and the other four revisions of the nameof() spec, they do a very good job at explaining the tradeoffs of each design.
I'm glad I wasn't the only one... Although this is kinda interesting as well.
You pay a tiny amount of church tax if you are a member of the Swedish church.

http://en.wikipedia.org/wiki/Church_tax#Sweden
Every salary mention in Sweden culture/companies is before tax.

Tax is dependent on where (which kommune) you live. Its generally between 29.5% to 32% until your salary is 32,000 SEK.

You pay higher tax on income more than 32,000 SEK and it goes upto 50%.
Hi guys, as the CTO of a startup in Stockholm let me know if you have any questions. Incidentally we are also looking for developers (ruby on rails), we are well funded and about to launch our product in a few days.

Ping me on david@universalavenue.com if you want help/info/apply for a job.
Book giveaway on Amazon only today: Startupedia (please review if you can)
Swedish church membership means an additional 1% tax on average.
If you belong to a religious federation (I do not think this is limited to the Swedish Church), your membership fee or however men of the cloth prefer to phrase things, is deducted straight through taxation. It's rather odd.
Show HN: Atom Shell Version Management À La “n”
I wrote a little tool for myself, because I got annoyed about keeping my atom-shell version up-to-date and having to run ~/Downloads/atom-shell-v0.20.5-darwin-x64/Atom.app/Contents/MacOS/Atom app/ to execute my applications. Since other people might have the same problem, I thought I'd share it with you guys.

ASV (https://github.com/omnidan/asv) let's you easily manage your atom-shell versions and allows you to run atom-shell with an atoms command.

It works like n (nodejs version management) and m (mongodb version management) and can be installed using npm: npm install -g asv
After installation, simply run asv latest and it'll download the latest atom-shell version, then run atoms to run it.

Works on linux and OS X. Please let me know what you think!
>3. Average 2nd hand rental apartment (30-50 sqm) 5,000 - 7000 SEK/Month. Its easy to find single-person accomodation. [2]

Unless you live far out that sounds low for a 2nd hand contract. Anywhere close to the city it is more like 10k for 30 sqm.
ugh, really sick of this meme. OO is a tool in the box, it's useful a lot of the time, sometimes it isn't. The reason ES6 introduces the `class` keyword is that people are doing that already.
According to this [1] comment on Amazon US, the Lychee product is a cheaper version of the official Tetris product [2].

[1] http://www.amazon.com/review/R10BVZ9OBT3IW3

[2] http://www.amazon.co.uk/Tetris-Version-2-Tetrimino-Light/dp/...
33-35 kSEK/month before tax if you have a few years experience. There seems to be a very small span, so 40k would be hard to find.

That range is about 50k USD/year, if any Bay Area people want to have a laugh.
I personally don't pay any church tax. Its only if you want to pay.

There is no way to reduce your taxes (apart from tiny tiny amount of church tax) for salaried employee.
FTC Chairman Warns of IoT Data Privacy Threats [pdf]
On the other hand, taxes may be reduced if you work more than a certain amount each year, as it has been the last eight years. But we're moving from a right-ish gov't to a left-ish now, so YMMV.
Short key IDs are bad news (with OpenPGP and GNU Privacy Guard) http://www.asheesh.org/note/debian/short-key-ids-are-bad-new...
Why we ditched Django for Microservices
> a proposal that we get rid of all administrative staff and replace them with academics

This is similar to how Colleges in Oxbridge are administered. They do have full time administrative staff but only the bare minimum and the academic staff has more administrative responsibilities. This arrangement is very effective at keeping red tape under control. Example: at a German university if you need a new printer, you have to fill endless forms (finding out which can be non-trivial) and you have to wait weeks for the approval. I you want to order a printer in November or December, that's simply impossible because of end-of-year accounting. At the college in Oxford where I worked, I went to the IT person and said that I need a printer. He gave me a new printer right away and I was good to go. Not even a signature was required. I have many more such examples. It's not clear though to what extend this common-sense-driven approach to administration can be scaled up to bigger institutions like universities.
You can find these single-person 2nd hand rentals 15 minutes metro distance from city. I wrote this from a point where you can start working as soon as possible and with assumption you are willing to commute 15-20 minutes one way from office to your residence.
Also removes return statement for 1 liners.
Reduces clutter of anon functions, especially when you're chaining a bunch together

e.g.

ES5

users.map(function(user) {
return user.name
}).filter(function(name) {
return name.length < 30
}).sort(function(a, b) {
return a.length - b.length
})

vs

ES6

users
.map(user => user.name)
.filter(name => name.length < 30)
.sort((a, b) => a.length - b.length)

Contrived, but typical example.
It's €6200 if you're two shareholders, and €12400 when you're a single shareholder. Don't ask me where the logic lies in that. You'll still have an obligation to pay the full €18600, should you go bankrupt, don't forget that! There are also specific things, such as extended director liabilities, in the first 3 years after incorporation.

Something else to do would be to build a piece of IP, and then make a contribution in kind to the company during incorporation. This is also allowed.

That way, you won't have to contribute cash. If you have software that is worth €20k (using some valuation), then that can be contributed to the company as capital.

But you'll still have to pay the notary fees (€1000-€1500), plus for the valuation report (€800-1000) of the IP. You might also have to pay capital gains tax on the increase in value of the IP, which probably will be 7.5% on €20k, or €1500.

Contributing cash is better if you can, though, in this case.

Best of luck !
Exactly. It's so difficult to get URLs "right", and that's quite non-obvious until you do something like writing a crawler.

Another example is whether foo.com/bar is the same as foo.com/BAR. Usually yes, but it's entirely possible that they will serve different content.

Also, which URL parameters should be disregarded, and which should be considered important? A crawler must do quite a bit of nontrivial page introspection in order to figure out the answer to that all on its own.

Often pages that are essentially the same will be a bit different. Timestamps and time-sensitive data (eg. listings on a marketplace) will trip you up, here.
> I have seen that developers have this weird need to create your own method and means of communicating errors.

Developers ignore most of the status codes because they introduce unnecessary complexity on both ends (client and server) and do not always map well with the application logic. With JSON payloads, HTTP is used as a "light vehicle" to carry the application logic. Since the payload is going to be specially interpreted anyway, I don't see a benefit in cramming legacy HTTP cruft in the headers and in status codes.

The really annoying thing is the web server spitting out HTML on error conditions instead of the expected JSON.
5 Italian startups to look out for in 2015
> Unless otherwise noted, the following arithmetic functions are defined for both integer, real and mixed combinations of arguments

This is good point. Thanks. It seems that the original view of John John McCarthy - before the decade of different implementations, was "right",

> It is nothing Scheme has contributed.

Scheme, it seems, re-emphasized it, much later, as the answer to the mess made by different implementations.

I could give you an example form a complete different field, in order to show how common such pattern is.

The very first Aryan Vedas emphasize the notion of taking inspirations from the nature and remaining in unity with it. They use deities as symbols for the major natural powers and appreciate them.

Then these ideas has been taken by "other people" and mechanistic, ritual-based religions, based on worshiping and praising of anthropomorphic idols emerge. This, in turn, resulted in emergence of Upanishads as thinking people got sick with all that nonsense, and from the Upanishads the Advaita Vedanta and Buddhism schools has been developed (and got ruined by "commentators").

This is a social pattern. I can't tell how meany times in history these cycles of inflation and reduction, mass hysteria and returning back to the very few "great insights" happened.

I am not telling you that this my analogy for the evolution of Lisps is precise - only the MIT guys behind Scheme could tell whether I am wrong or not - but I have this notion, based on what I read in books and watched in lectures, so I, if you have no objections, would still hold my opinions.
More like:

var _this = this;
call(function (){
return _this.value;
});

versus

call(() => this.value);

So yeah, much more readable, and less issues with this binding to some other caller or window.
Classes adds complexity and reduces composability. With OO you end up with a soup of inheritence and patterns. Functions are way easier to compose and reason about.
The government job agency is also a good place to check:

http://www.arbetsformedlingen.se/Globalmeny/Other-languages....

I think search is just in Swedish, but many jobs are listed in English:

http://www.arbetsformedlingen.se/4.38a41afd11d99fbdb65800016...
iOS has limited support for background processes.
> let considered harmful: The problem with let is that it is not “hoisted” to the top of its block, as var is with its containing function.

Interesting point, but I disagree. I think that the lack of hoisting is one of the benefits of `let`. It works in a different way, which is more in line with other languages. Sometimes, you don't want a bunch of variables at the top of your function. Many functions do not need to be executed in the way that hoisting makes easier.

By the way, quoting Betteridge’s law of headlines at the beginning of your article whose headline is a question does not mean you get a free pass of using such a headline ;)
PEN America: “The Harm Caused by Surveillanceis Unmistakable”
a new angle on the good old 'can software damage hardware' question
A beginner's guide to Java Persistence locking
I've had that question used on me in a scientology clinic. I assume it opens one up to new suggestions.
Remember, it's not the function that's throwing the exception, it's the runtime. In order to make it not throw an exception, we'd have to special case typeof to make the runtime behave differently just for it. /That/ is inconsistent.