skysight-inc/HackerNews huggingface dataset:
I'll give back my engineer card (if I find it) if you swear not to apply for a security one :)

There's no way to make a system really secure and as you point out there is no way to "prevent idiots from harming themselves". What you do is stopping common/easy vectors and raising the effort bar/reducing conversions for the attacker.

If we require that a guy to use his computer learns how its threat model works, we failed as a industry.

And to address your points: users know that downloaded files are evil and Chrome warns about that. The javascript schema is mitigated by Chrome - if you copy-paste the initial "javascript:" is cut out. I'd love to know the other 998 to open discussions about them.

Note about the use of the word idiots: more of people who are not tech-savvy; you might be an idiot in this meaning for one or more of: electricians, mechanics, doctors...
also can verify that F.lux doesn't work on my machine 12.04 ubuntu - could be the graphics driver.

But Redshift works, and is open source.
Smartwatch Concept on Behance
> Everyone over 40 has a buy to let portfolio and those under 40 are stuck in rented property with few rights.

Never seen it put so pithily, and yes, that's exactly how it feels.
I also disable tests by default that require a working installation to run. This allows me to have a test suite that can be run prior to installation and a larger support test suite that can pinpoint problems on production systems.
When I saw the scene, I imagined the cord and/or the parachute to be elastic. So even if the cord is taut, it may not be in a stable stationary state; the cord might snap beyond a certain amount of stress or the parachute might unhinge.

Infact, after Clooney's character unleashes himself, Bullock's character recoils back, which seems to agree with my elastic theory.
How to Shine at Work
Dear Newsweek: RTFM
Yeah, specific line items would be:

- Icon specific JS methods for state switching

- Delivery of detail-specific icons based on context

- Proper back-filling for accessibility (they're trying, at least!)

Edit: Lists...
Salesforce Can't Tell You Where Its Revenues Come From
Nice idea, but there are just too many privacy implications here to ignore.
The lack of a combination of affordable property and decent jobs in areas within a reasonable distance is definitely causing increasing problems in this country, and only worsening social inequality. Remote working is one solution that I think very slowly will become more mainstream. I mean really why do start-ups have to grow in a 'technology hub'? Most small/start-up companies in these areas I know of rarely collaborate or seem to benefit from proximity with each other.
How do you balance this need with getting higher quality sleep by totally blacking out your room before bed?

We live in a loft with angled ceiling windows/blinds* - if I don't close them then it's difficult to sleep with the general ambient city light. I was thinking of making an Arduino IR thingy to open them every morning at sunrise automatically, but tbh the noise of the blinds opening would probably wake us up anyway.

I could wear a sleep mask too, but that would obviously prevent me from waking up to the sun too.

On vacation in California this year I noticed myself waking up every morning with the sun and feeling amazing - wish it was as easy to replicate year-round in London :(

http://instagram.com/p/O1K5oYPEV1/
Bitcoin isn't legal tender anywhere. One could argue that a currency is something which is legal tender somewhere in the world.
At the very least make sure the important passwords he wants to pass on are kept securely and kept accessible.
There are cases where I do tests like that. There are two reasons for them.

1. It can save time debugging failures because I know whether the basic instantiation of thing was sane or not.

2. There are cases where there are complex object instantiation tests where an object is returned according to some other logic. Obviously these need to be tested.

In the first case those aren't tests for the sake of testing the API. They are sanity checks for saving time troubleshooting other test case failures.
Yeah, if everyone knew I had £1,000,000,000.00 hidden under my mattress (and some mattress that would be), then I imagine my life might be under a little more threat than otherwise too.
Hey Joel,

You and Buffer continue to be awesome. If I ever shut down my startup and work for somebody, I'd first apply to you. Is that a good enough compliment? :-)

- Manu
Hi,

I think it also helps me in a way. First, it helps by sharing the "downs" of the journey (it kind of calms me down).

Second, when I have to write about something, I put more thought into it. (it also becomes more clearer to me).

I will write when I have spare time (you always can find it)

Thank you for your thoughts
Regards
Did an F-15 airplane successfully land with just one wing?
Same here, it is very difficult for me to tell levels of nested structures in yaml. Though I'm sure if I sat down and read up on it I could force it into my brain. But shouldn't it be intuitive to read without that?
Looks great! One thing to consider - the Sass download button is a US Dollar sign, which initially confused me when I saw it as I wondered if there was some sort of paid feature.
Ask HN: How can I tell if a chrome plugin is safe?
I would like to use chrome (chromium, actually) with incognito TABs - not windows, so that I can have multiple tabs with no session sharing between them.
I just found a plugin that does this - Incognito This [1]

But recently I've seen some news here about how dangerous chrome plugins can be.
So I'm not sure if this plugin is safe, especially given the permissions it needs:

- Access your data on all websites (this one worries me a little)
- Read and modify your bookmarks
- Read and modify your browsing history
- Access your tabs and browsing activity

So, in general, is there any way I can tell if a chrome extension is safe?
(meaning: it won't be changing page content and/or capturing user input it's not supposed to')

[1] https://chrome.google.com/webstore/detail/incognito-this/icnaplnkjfjncegmphmlfpggildllbho
But it's not always a necessity to be responsive.
Heck, I work with software that is 10 years old, and the only thing that keeps us sane is very meticulous testing.

Seems like the author never heard of testing the tests: mutation testing.
Let's say you have 400 MUSD, or a ton of gold, and it becomes widely known.
Having a history degree doesn't exactly make you more qualified to be a bartender (going by the example in the article).
The problem with XSD and DTD is they only offer primitive ways to validate data, and it takes significant effort to validate some data (eg,[ https://stackoverflow.com/questions/3382944 ]). As a result, there have been a bunch of other XML schema validators created to counter these problems, but we should really ask why we need to keep inventing new languages when the existing ones turn out to be insufficient.

If we start out instead with something that's turing complete and simple to begin with (perhaps S-expressions?), we can (often trivially) write our own validators/type-checkers, or any other processing tool to verify the document structure, with few or no constraints, and without requiring the effort and expertise to parse complex syntax.
There are plenty of ways of learning things. I consider myself as well-learned as most college-educated people I know, and I never had any student debts. I'm also incredibly lucky to be in a field where the lack of a degree is not a problem, but perhaps this will be more common in the future.
Anyone have a practical guide to Haskell? For instance, how can I open a file, split a line on a separator, then do something on the third column? Also, how can I talk to MySql or Sqlite? Load a table then perform operations on the loaded data? I've found the best way to learn anything is to find real uses in my day to day work and start small.

In short, find some tasks for which I would use Perl|Python|Ruby and solve them with Haskell.
The concept of a cryptocurrency subsumes traditional currency. You cannot just say, "bitcoin is not a currency". Well of course it isn't! It's an entirely different animal.

It would be like saying the Internet is not a phone system.
The writing is not that great (maybe because English is not my mother tongue) but the article is an interesting read.
> Haskell is in some ways a nicer language for functional programming than Scala, and if you are serious about learning more FP, we recommend learning it.

I'd take it as far as to say that, if you're a developer of any sort, you should learn at least some Haskell at some point. It does things in such a completely different way from more mainstream languages that the sheer mind-opening effect of learning it is worthwhile.
Awesome job! Bookmarked for future usage :)
This is nothing new and its been like that since the early 80s when Thatcher sold off the council housing stock at rock bottom prices. An area of London gets popular, money moves in pushing prices up and people out. City government does nothing. Rinse and repeat. All this has happened before, all this will happen again.

At the end of the 90s it was Notting Hill, now its Shoreditch, Spitalfields and Whitechapel with the gentrification wave pushing itself out east with Bethnal Green next in line.

Ultimately this will be the demise of the UK economy as all the money and jobs will focus on the southeast leaving the rest to fend for themselves.
Not sure what your point is.

The OP pretty much dismisses the article and cites the one thing that is well-known, less interesting, and not the focus of the article. The article is way more interesting and lists a variety or reasons (the one the OP quotes, historical reasons, wrong reasons, and even one final twist).

The OP's comment looks like a case of "did not RTFA". Color me unimpressed.
Exactly. Let's all give up bitcoin, the financial lord sayeth so.
The job market is pretty horrible for those with no experience - I spent 2 years looking for a job before getting fed up and started teaching myself programming in an effort to make myself an attractive entry-level hire, and I possess a masters.
I've been following this a bit on #mtgox-chat where @gmaxwell (nullc) and others are sleuthing on it. It sure seems like one of the big addresses (~200k BTC) has suddenly been brought online.

No explanation as to why, but apparently how it is being chunked follows their usual procedures.

Crazy stuff.
Unfortunately, English is my native language but i spent all my time in school programming and thus now suck at writing haha :) thanks for reading though!
Norway is mostly the same these days. Maybe it's a Northern European phenomenon. Of course, there is an upside to this: By renting, you are not taking on the risk of a fall in real estate prices. But I'm not sure if the fewer rights make up for it. You can't be "evicted" for no reason over here, but to my understanding it is legal to have renting contracts with a 1-month notice to termination. So it's more or less the same situation.
This is great! Exactly what I've been looking for. I'll definitely use it on my next project
It's less about industry than about foreign investors seeing London property as a store of value. There's a whole class of people living in properties as "guardians" at discounted rent simply to avoid the property seeming abandoned:

http://online.wsj.com/news/articles/SB1000142405270230454950...
Naked Python Framework | a Python command line application framework
You're probably going to have a bad time trying to do it like that. Perl/Python/Ruby are brilliant at what they do, and the problems they're best at aren't necessarily problems that Haskell is very good at.

If you're interested in learning the language, I suggest starting with Learn You a Haskell For Great Good[1] (first programming book I've ever considered to be a page-turner), then following it up with Real World Haskell[2] (going through that one now myself)

[1] http://learnyouahaskell.com/

[2] http://book.realworldhaskell.org/read/
specifically buffet has made a career of acquistions of medium and small family businesses which are being sold at distressed prices because of estate taxes.

Moreover Berkshire Hathaway is in the insurance business, and life insurance is a way of circumventing the estate tax.

Not surprisingly, buffet is an advocate of estate taxes.

As for Soros, he is well known for manipulating the price of the pound. It's often lauded as a 'brilliant move' but the net effect of what he did was to screw over poor and middle-class britons.
That was my experience with Knoppix around 2001. Sound did just work (starting at early boot stages!). Then came PA and messed it all up.
Real World Haskell (RWH) [1] is probably what you want, although it may not be as good of a first introduction as other books such as Learn You a Haskell (LYAH) [2] or Programming in Haskell [3].

[1] http://book.realworldhaskell.org/ (free to read online)

[2] http://learnyouahaskell.com/ (free to read online)

[3] http://www.cs.nott.ac.uk/~gmh/book.html
From the article:

>In most businesses, the only tests that have business value are those that are derived from business requirements.

This 10000 times over. I write lots of tests for financial software. My tests are always longer than my code. However, my tests are always written to business/legal requirements and never to the code in a financial software context. Moreover I try very hard to ensure the tests can be run on production software safely, so we know for sure whether or not things are actually working as expected in the field.

For application frameworks it is different. The tests are written to the specification, not to the code.

But if I had a dollar for every time I have seen a test case that shouldn't be there, because it tested some non-requirement, or worse (some behavior of a dependency).....
If you're looking for a guide to using Haskell in the real world, you should check out "Real World Haskell", by O'Sullivan et al, freely available online at [1]. It's an excellent book, in my opinion one of the best programming books available on any language.

In particular, for interacting with MySQL, check out the chapter on that in RWH [2], and for reading lines and operating on them, see [3].

However, you should start from the beginning, as those kind of operations (for better or worse), require a firm grounding in Haskell concepts like types, monads, etc.

[1]: http://book.realworldhaskell.org/read/

[2]: http://book.realworldhaskell.org/read/using-databases.html

[3]: http://book.realworldhaskell.org/read/io.html
I have about a half a year's worth of Racket (acquired over around a year and half) under my belt, and intend to learn Haskell in the coming two years. Is there anything startlingly different in Haskell compared to the LisPs?

EDIT: Thank you for the responses, I have bookmarked the relevant github page and feel like my question has been well-answered :) Also, even more interested by Haskell than I was before.
I fully agree with most of what you're saying, but I'm not sure where the degree of capitalism involved comes in. I think it has much more to do with the lack of creativity in government that you mention. Ultimately it does feel like younger generations are the fuel for the engines that drive the UK economy.
I'm not sure, I think in the UK it's a fairly common assumption that a history degree means you'll most likely be operating a beer tap to pay the bills. This is also useful in most pubs since they are a few centuries old.
I'm in UK and I've been eyeing Berlin for a while now. The rent prices for offices/accommodation seems to be a fraction of those in London. Also startup community in Berlin seems to be booming.
The equivalent of your XML would be:

{"name": "bob", "salary": "1e999"}
Berlin startups
[Show HN] A new JS-based Kanban taskboard UI component
> Well explain further. I hate these smart arse sounding comments - "you are doing it wrong" without any indication why, or how to do it better.

With unit tests, there are certain things that must be tested, such as very high-value code contracts, and the like. There are many things that people test (like "correct output" for the input) which may not be so valuable, particularly if several possible values may be correct.

So test contracts, not internals, and not representation. And please for the heaven's sake, don't test the behavior of your dependencies.
The correct "general" definition also requires the prime element to be non-invertible and non-zero, thus 1 is excluded.

It should be noted that this definition excludes "composite numbers" only when the ring is an integral domain. In a general commutative ring this isn't necessarily true.
It's not just that. USB nkro keyboards can fail in several interesting ways, so they earned a bad reputation. Paradoxically the hacks that work around the standard (e.g. a keyboard reports as several devices behind a usb hub) are more reliable, so many keyboards use that instead.

There are several cases of driver bugs you have to work around and ignoring driver bugs, it's just generally much harder than it should be (which means more device bugs):

* USB HID specifies two interfaces: the full report interface and a simplified "boot interface" that lets you avoid parsing interface descriptors. The boot interface supports only 6 keys, low speed and it's supposed to be used by bioses etc. Some host devices (like TVs) use the boot interface, those can't support more than 6kro.

* A USB device can specify several interfaces, the host selects which one it'll use to talk to it. For HID devices the boot interface (if supported) has to come first. The problem is that sometimes the first one is selected as it's the "default" one. It's not really supposed to happen but when it does, you can't have more than 6kro.

* The number of simultaneous keys a keyboard (one of its interfaces) can report is specified in its interface descriptor. The USB HID spec contains few sentences that can be easily misunderstood to mean that if a keyboard can report more than simultaneous 6 keys, it doesn't support the boot interface. Some bios writers read it that way, so if you have a fully compliant keyboard with nkro, it will fail on some (buggy) bioses.

* USB specifies low-speed (1.5Mbit/s) and full-speed (12Mbit/s) operation (2.0 adds high speed and 3.0 adds super speed). At low speed the payload length of the interrupt frames the HID devices use are limited to 8 bytes, which limits them to 6 keys (one byte is used for modifiers, one is reserved) for one frame messages. It's possible to chain multiple frames per message, but some OSes don't support that. This means that a nkro low-speed keyboard will (on buggy oses) have only 6kro.

* A way to work around the last problem is to make a keyboard that uses the full-speed interface. The problem is that one some systems this fails hard (the keyboard doesn't work at all).

(source: I wanted to make my own dream keyboard. The existing USB HID device implementations i could find had various limitations so I decided that i'd make my own one. I mean, hey, how hard could it be?)
Ask HN: Is above the fold enough (UX)?
When Ubuntu (the Linux/Gnu desktop/OS) moved the window buttons over to the left hand side it was frowned upon by the community. Top left placement is supposedly better from a usability perspective: buttons say in the top left, have more predictable placement and are easier to reach with a pointer (if you just throw the pointer to the top left), having buttons in the top left is good for cascaded windows etc.

I've noticed an annoying trend with popular websites. They place things like Sign in and Sign Out in the top right corner. And even with my modest laptop screen size, I sometimes struggle to find them - as they are found slightly off-screen. In part I think this is deliberate.

Yahoo mail has even followed suit. Stackoverflow has a rather irritating search box placement of top right. When I'm slightly zoomed in on that site, I have to scroll to the right to use it.

So I ask: is this a bad usability trend? Can we push essential controls back to the top left for crucial functionality, for us left to righters, top to bottomers?
> You now end up with the following problems: locking, synchronising filesystem state with the program, inode usage, file handles to manage galore and concurrency. All sorts.

Which is why he's reusing git for resolving those pain points? Well presumably all except "synchronizing filesystem state with the program" -- where he's gone from using some kind of xml parser to marshal xml to objects/structs in ram to using a (simple(r)?) text parser to do the same.

I'm guessing he just writes/reads a full (part) of a log (a branch of the full tree, or whatever is used in the program. Maybe a list anchored at a date?) -- and lets git sort the history/backup thing.

So, yes, it's a different format, but I think the argument you're making is off -- seeing as he already has git for that? It's more like combining Maildir (or mboxes, only commited when valid) and git.
It's still a draft (and if I may nit-pick, an expired draft).

It only has "complete structural validation". Which means it doesn't feature custom types.

Although it adds a workaround for the date issue by adding a handful of supported sub-types (http://json-schema.org/latest/json-schema-validation.html#an...)

It is far from what validation XML Schemas offer.
I felt similarly. While I didn't think it was bad, I didn't think it was good, either. I watched it, but it never really pulled me in despite having everything that should have pulled me in. I spent most of the time waiting for something to happen or trying to figure out what had happened when something did happen.
Let us combine with the story earlier from the week about the SAT test being changed. Having a college education is marketed very heavily in this society and what do the ACT and SAT have use for other than determining which colleges are open to a student. With High Schools pushing these tests hard they in turn are pushing students to college even when it might not be the best choice.

Don't underestimate the power that marketing has. Between state and privates schools there is a lot of money to be had and it only keeps working if they can convince each generation that the education they provide is indispensable
It all depends on what you're doing. I have no degree and started out manning the phones in a level 1 position on a help desk.

Almost anyone was able to get a job doing it. I was competent so I excelled and moved up fast. After getting 3 promotions in 18 months it was reasonably easy to get a better job elsewhere.
"Is there anything startlingly different in Haskell compared to the LisPs?"

Static types, possibly more purity (depending on the lisp you've been writing), pervasive laziness, slightly awkward (but usually unnecessary) macros.
In those cases, you will accept any help you can get. Trust me.
The single biggest thing you'll notice is how much time you'll devote to thinking about types, and how that makes your code much more declarative.

Even casually skimming through the GetOpts implementation in Cabal should give you and idea of what I mean:

https://github.com/haskell/cabal/blob/master/Cabal/Distribut...
The source of the value is mostly the land, rather than the building. When prices rise, it's actually the land value rising, but we talk about it like 'house prices' are going up.

Causes a guaranteed bubble as you can't make more land, so price rises are not followed by increased production causing the price to fall again.
Hidden code in your chipset and how to discover what exactly it does
btw, what will the price be once its out of beta?
What did Newsweek mean when they said he used reverse polish notation? I know what RPN is, but did he use it in his code?
Digikey's and Farnell's parametric search are the best from a user's perspective. All the sites are pretty terrible from a designer's perspective. I concluded this from working out how to generate HTTP requests for them for my pet project: https://github.com/kasbah/1clickBOM