skysight-inc/HackerNews huggingface dataset:
> * Exceptions as part of control flow: And why not? Exceptions are a part of ordinary human logic. Why do you regard them as unclear or complex?

For any given line it's hard to know if it will raise and if so what type of exceptions.

I do like in Go that if an error can occur there will be a return value for it. Makes you much more aware of when things might go wrong.

With python it seems to be more like "find out at runtime" our "read the docs and source for every function you call"
Let's just say they are both. Just depends on reference point. My brother is taller than I am, I'm shorter than my brother. Both correct, if we presume the height discrepancy has been accurately told.
Even though those charts are framed in economy-neutral terms (positions in global indices, instead of absolute indicators), I still wonder whether setting the comparison year to 2006—right before the beginning of a global recession—has anything to do with the results. Did Canada, perhaps, slip all the way to its current positions in 2007, and then simply not recover? There's no way to tell from the representation used.
Startup claiming “The long-awaited industrialisation of software begins”
Your Guide for Migration to Magento from Any ECommerce Platform
Well I am not a Canadian, but this news piece seems like part of the election campaign. In more honest words,a paid news this seems to me.
I have a laugh every time I read this, but it's not a very good analogy for modern politics.

You can't distinguish between good leaders and bad leaders quite as easily as you can distinguish lizards and people. Especially when both kinds spend millions of dollars trying to convince you that they're good and others are bad. Not to mention that this story kinda assumes/implies that people would somehow be better rulers.

We didn't get to the current system in a revolution. It's not like it was designed to work well. All the laws that allow things like massive surveillance, civil forfeiture, gerrymandering, lying in official capacity, obvious corporate bribery ("lobbying", what a nice word), self-favorably changing elections rules for the next election – all of this has been created gradually over decades, often by different parties and people, each of whom put self-interest ahead of their duty to the people and walked away from the disaster at a leisurely pace.

Given complete lack of accountability of individuals properly positioned in the state machine, we will not see any improvements in how the state works. People everywhere are trained to think "if only we elect the Bernie Sanders of the day, everything will change for the better", then either of the two things happen – a) they get elected and don't fulfill even a tiny fraction of their promises, if not the opposite, or b) they don't get elected ("oh well, let's try again in 4-5 years").

Just to clarify, this is not a call to arms to overthrow the government or anything. It's kinda too late for that to work. And that would be grossly illegal. For some reason.
Good point. I thought you were just referring to graphics, but yeah, the bar for interaction is definitely going to go up once our hands are involved.
>Atom seems to be just badly designed.

I think the problem with Atom speed is using the DOM / web stack, not Javascript itself.
I had the impression that React's primary audience is developers who want full control over resulting DOM. While custom components are possible, you are expected to write your HTML, not wire up things and be done.

You might want to check more enterprisy frameworks like extjs.
Show HN: First OMG evah is by WinstonChurchill
Doing Data Science at Twitter
If anyone is experiencing any deja-vu, this was also posted about four days ago (by the author, I believe).
Those are some pretty depressing charts. It's actually somewhat surreal that we pay $0.75CAD to $1 USD these days, since as I recall several years ago the CAD was actually around the same as USD (even higher at one point).

Also, let's not forget the terrible domestic policies Harper has had, not just economic. Bill C-51 comes to mind. If you view the Wikipedia page on it, you can see how a couple of deaths loosely related to "terrorism" (just a lone maniac with a gun, really) was used to drum up fear and ram through sweeping new powers to various agencies. All at the expense of the privacy of the average citizen of course.

I'll be quite surprised if Harper gains another term. But with 2 left-leaning parties splitting the vote, anything can happen.
Interesting thing it what will happen, in the future, when computers would-be improved enough to replace most human professions?
It is profitable for separate producers to use automated systems but unemployed people have no enough money to buy their products.
Will government regulate production like in socialistic economic model?
It's basically like creating a diff patch, so you're close.
I've just started building the app I've been trying to build for the last 5 years again. I'm on about version 29 now. I've tried jquery, ember, angular, native android all with REST (which I found to be a complex time-sink), grpc (has potential but a bit too non-standard/bleeding edge), and was just looking at swagger when I came across the FB stack of react, relay & graphql. This is like heaven.

No more faffing around with marshalling/demarshalling and such a simple API code generation on client & server aren't even necessary. Plus, react makes the UX incredibly responsive and in future I should be able to use the same server as a backend for native IOS and Android apps which I'm hoping should be pretty quick to chuck together once I've worked out the business logic for a website. It's like a different world since last time I did front end work, and I think this time I might actually be able to create the app I want to, while having something that's maintainable and boiler-plate free. Thanks Facebook!
All these frameworks are great but can we please just work on having feature-rich components/widgets now. And maybe keep them maintained for the next 5 years or so?

No. This is the web. We must reinvent everything every 5 minutes.
We shouldn't even accept it on formal terms. If they need that kind of access during legal proceedings then we might, in good faith, provide that kind of access but it should be provided because we have a good business relationship and not because we signed a contract that gave them the right to our first born.
You're not looking to do web development - you're looking for a pre-assembled UI library.

React isn't that. That's fine - it's not supposed to be.

Hell Angular isn't that... but as it's a framework (React really isn't it's a View library) it has more of that. Angular + Bootstrap probably does most of what you would want...

... but it's an extremely narrow need. Not a general case.
Wow. Just starting to watch, but my first thought is: thank goodness he got to give this talk when he did; otherwise he might have exploded.

The link that works for me on a desktop browser: https://www.youtube.com/watch?v=4jh94gowim0
> A minimal viable program is the smallest program that solves a particular problem. It is small and beautiful. It has no additional features.

A problem is rarely well-defined. Alternately, you can encapsulate small and beautiful programs into classes, and connect objects at runtime to solve more complex problems. OO reinvented.

In his case, he prefers to use the shell to do the plumbing instead of another language.
Its interesting you use the word "component" about ten times in this post, because that's more or less exactly what Web Components are about - a set of specifications that will (hopefully/theoretically) lead to much greater interop between all this stuff. Polymer is one of the first implementations of a library built on this spec.

Keep in mind though, the environment QT runs in is very different to the web, so most of us poor web devs are at the mercy of browser vendors, and as such we're often limited by the lowest common denominator.
Being afraid of failure is perfectly rational if one genuinely does not have any safety net. Something the middle class wealthy folks here probably forget.
Apple tried to implement a garbage collector but they abandoned it later. May be they don't have good developers (but they got a lot of money so they probably can buy anyone) or reference counting isn't that bad in practice.
I can tell you that trillon dollars banks are also ran on spreadsheets and access database.

What I don't get is that a software designed in the 60s to run on machines of the 70s surely can't be that complex. Wouldn't it be cheaper to just re-implement it? Might not even need to change the logic, just convert to a modern syntax.
It signifies an unknown quantity, a string could be any length. I really don't like that saying at all.
I like playing Weiqi and am a fairly strong player when I concentrate ...

I wanna make a Go playing AI Program ...
"Anyone can peer through your baby monitor"

See, CBC, just as alarmist and as factual as the author would prefer!

Fact is, the headline is intended to get you to stop and change your focus on this story so the news outlet can sell your eyes to whatever advertiser they promised you to. Let's not be naive.
Yeah...well. I was talking about normal people like my friends and family ;)
Ditto; I thought this was going to be about STM. Also someone who has not looked at C++ since 98 is doing themselves a disservice; C++14 is a radically different thing.
Of course there are blunders in Python. It's an old language by now. But a great deal of what makes Python really easy to use is that a lot of thought has gone in to getting many of the essential details right.

For instance, take comparison operators - by having < and == work across all the built-in types (including sequences), it's really easy to compare and sort stuff. Which is essential to writing terse and efficient algorithms.
>The hard part is being born into wealth.

How to finance the new business in a realistic way should be part of the "idea", just as much as how to make the widget and how to find customers for it.
And here are the slides: http://www.slideshare.net/extempore/a-scala-corrections-libr...

Wow, this is a brutal talk.
One thing I loved about the default BASIC on the computers of the 70s and 80s was the ease of doing graphics and easily seeing something tangible on the screen.

What is the equivalent of that today? For instance, is there an easy-to-use Python library that lets kids do simple drawing with ease?

Ie, on the TRS-80's Level II BASIC, just doing SET(X,Y) coloured a white pixel at that coordinate, and RESET(X,Y) turned it black. And you could see immediately the utility of applying FOR loops to make horizontal and vertical lines, etc.

I don't remember QBASIC, but the customized BASIC on my Tandy 1000 In the late 80's had graphics modes with I think PSET(X,Y,C) to light pixel with color C, and even had some built-in commands for making line, rectangles, circles, and ellipses.

So it was very easy to type a few lines and get something cool on the screen, but still required a bit of thought on x,y coordinages and some programming constructs to do anything complex.

I only dabble a bit in Python, but what's the best way to do something like that today?

I think there's much more of a feeling of "Wow, look what I made!" after drawing something this way than just using the painting mode for sprites in Scratch.
CoAP – Constrained Application Protocol
> Apple tried to implement a garbage collector but they abandoned it later. May be they don't have good developers (but they got a lot of money so they probably can buy anyone) or reference counting isn't that bad in practice.

Garbage Collection is not very good with a C-language. C is simply the wrong language to be used with GC - same for Objective C. Personally I would also not use a 'conservative GC' in this context. Additionally GC has some overhead and it is not going away: memory usage, responsiveness, etc..

Apple would need to switch to a real higher-level language with managed memory and a precise GC.

GC, Swift and more RAM might have more chances.
Ah, ok, thanks. Right, matrix math is is the use case I was looking for.
If you phrased the interview question like that, I would automatically fail any interview with you. I have been working with GCed languages for 20 years now, and certainly know the ins and outs of GC a bit. So, if your question is, which are problematic situations with GC and which mistakes were made in some popular GC languages, we could have had an interesting discussion. But asking "what is wrong with GC?" suggests to me that you want to hear why GC is a bad idea and asking like that would quickly weed out people who are very knowledgeable in writing good performing programs on GC languages.
I think it is not a rm thing but a bash (or sh) thing. The rm command receives the parameter after the wildcards have been expanded.

Unix in the past was for the tough men...
Big Data Mining in Call of Duty – Using Data to Improve Games
Huawei showed Mate S smartphone technology screen Force Touch
How I Find and Replace in Vim
I'm a CS student, and I do attend hack-a-thons several times a year. My policy is to ignore the competitive aspect. I should feel successful no matter what the judges decide.

My mindset from the beginning is that I won't work on the project at all after the 24 hours allotted. It's a throw-away project. This is really freeing. You don't have to worry if the code is messy, or even if there is a fundamental problem with your idea (game mechanics, etc.)

My goal is to pick a new technology or library to learn and build something with it. Once, I decided I wanted to learn how to use OpenCV, so I made a little game that is controlled by facial tracking. Another time, I had just bought some USB Nintendo 64 controllers, and I wanted to make a game that used them, so me and some friends made a local multiplayer fighting game. (The projects almost inevitably end up as games). Another project we made a multiplayer game with WebSockets to fiddle with lag compensation and clock synchronization. I learned a ton of distributed systems stuff in that short time.
Sometimes, the technical problems take all time, and the finished game just barely counts as playable. Getting OpenCV bindings working with Java took nearly 8 of the 24 hours. Another project, using WebRTC for a peer-to-peer multiplayer game, only came together in the last hour, and stretched the definition of game so much that we won a special award "for challenging perceptions of what games can be" :).

It doesn't really matter, because my goal isn't really to make a great game, it's to force myself out of my comfort zone to learn something new. The game is incidental, really. Sometimes, the judges are looking for something more polished, or more business oriented. That's OK -- the game isn't for those judges. I only invested 24 hours into it. However, I've been pretty lucky, so far -- most hack-a-thons I've been to really celebrate true hacks.

I think one thing organizers can do is emphasize the process of writing the code, rather than the result. Ask what challenges the teams faced, the hardest bug they fixed (or didn't :). Near the beginning, try to offer workshops on different technologies, so that people can branch out and try something new.
You can also offer categories of judging -- if there is only one category, it's hard to decide between an awesome business idea with little technical innovation and an awesome technical achievement with little applicability. No matter which one you pick, someone will be disappointed. But if there's a category for best game, best presentation, best app, most innovative, best technical achievement, or whatever categories you pick, then everyone at the hack-a-thon can participate however they like best, and be recognized for it.
Technology and Courage – Ivan Sutherland (1996)
Is it open source and can it be self hosted?
I remember I couldn't finish watching that video, not because of the content, but due to the way he was presenting it. It was just too disturbing to watch... Don't do that guys...
I usually charge for the value that the project provide. If someone wants it on urgent basis and I have to work extra hard to meet there timelines I usually charge a higher per hour rate.
Location: Long Beach, CA

Remote: Yes

Willing to relocate: Yes

Resume: https://www.dropbox.com/s/xfmvxg98x111w9o/pbecich_resume_Aug...

Github: https://github.com/peterbecich

LinkedIn: https://www.linkedin.com/in/peterbecich

StackOverflow: http://stackoverflow.com/users/1007926/peter-becich

Email: peterbecich@gmail.com

Technologies: Scala, Scalaz, Play, Postgres, R, PL/SQL, CUDA

I've tinkered with Play, Scala.js, and the Mesosphere stack but have taken a step back from these to strengthen my understanding of FP fundamentals. The book "Functional Programming in Scala" has led me into Scalaz, recently. Feedback on the Scala market appreciated!
Simon Peyton Jones – Haskell is useless (2011)
Calvin's, Benson's and Bassham's relief -- I presume?
But it's absolutely possible - at least conceptually - to have your cake and eat it in the realm of economics. This is literally an entire field where the predominant assumption is that life is not zero-sum game.

That said, I feel that a huge chunk of all of this coverage is just delayed biteback for all the ridiculously heavy handed rhetoric that the Conservative party has been playing over the past ~6 years (for those not familiar, the Conservative Party has heavily played the card of being the party that knows how to make the economy strong). They've been playing the card of being fiscally sound and promoting economic growth, and I'm certain huge chunks of the Canadian media (cough CBC) has been just choking at the collar to call bullshit on it. This is all just sweet sweet payback from the perspective of all of the media for that.

Honestly the biggest shame is that no one setup a sovereign fund like the Norwegians did.

As a Canadian, this all sucks.
Using a Power Law Distribution to Describe Big Data
It could very well be that I've completely misunderstood the intention of these frameworks then.

I was under the impression that at the end of the day you're creating either React components and/or Angular directives when you're building a web application. And the particular framework takes care of how the view changes when the model changes, it provides you with some abstractions like Resources (to talk to REST APIs) and Routers (for navigation). Even when you look at ExtJS I don't see why they couldn't provide ReactExtJS or AngularExtJS by just wrapping their widgets so that you're either creating them with "props" or by specifying the initial "scope" if you're doing it Angular directives, for example.

Creating standardized widgets which can be "wrapped" to expose a React (prop/state) or Angular (isolated scope directive) style interface, and then "skinned" (Bootstrap or Material Design or whatever) I would have thought would be the logical thing to do. As another poster commented, perhaps this is what people are calling "Components"? However, I'm pretty sure it could be done right now with what we currently have.

If you say it's an extremely narrow need, I understand because typically I end up facing problems no one else seem to have :)
Don’t Be Fooled: This Adorable Little Drone Means Business
The mysterious origins of punctuation
I agree that the charts are unfortunate. (Also with your stance on C-51 FWIW.) I wouldn't necessarily agree that the reduction in the CAD/USD recently is a symptom of poor policy though. For one thing, the CAD has remained more stable compared to most other currencies; it's mostly that the USD has gained, likely due to its status as the 'safe' reserve currency. For another, a lower dollar isn't necessarily objectively 'bad'. Yes, it reduces the Canadian GDP as measured in USD (as per that one chart), but that doesn't necessarily translate into a reduced average quality of life for Canadians. (It's good for some, bad for others, and probably not hugely impactful for most.)
One of the first things they told me on my first day as an operator in the data-center of a big phone company was: "Remember, in Unix it is not Ctrl + C, Ctrl + V but Ctrl + Insert, Shift + Insert".

One night, in my second week there, I saw some errors on the console coming from a billing process that was running since a couple of days before. I called the on-call engineer in charge of that process and he asked me if I could copy-paste the errors and email them to him...

That month, about 2 million clients received the bills one day too late.
If only it was simply 2$ and not what is closer to 10$.
But you do need one for cuDNN, which is not required for Caffe, but speeds it up.
I live in Alberta and feeling the pain. In my opinion, the only industry that might be doing well in Canada is lumber (mainly, BC). With high USD, lumber exporters are making good money and with low crude, they spend less on their machinery.

The entire service industry in Alberta is in chaos and it impacts the whole country. We were the biggest contributors to the over all GDP and employment growth in Canada. Unfortunately businesses are now putting their equipment up for auction, people are losing their jobs and not sure what might happen next.

I am optimistic though - in periods of down turn and recession, people tend to get more entrepreneurial and find ways to bring innovation to their work. For long term prospect, this recession may be helping us in diversifying our portfolio and minimizing our dependency on just one industry.
Actually, that was my point: for me, .* does not expand to .. or .; the special entires "." and ".." appear to not be considered during globbing.

After closer inspection, it turns out that this is because I'm a zsh user:

% zsh -c 'echo .*'
zsh:1: no matches found: .*
% bash -c 'echo .*'
. ..

Indeed, zsh's manual states:

> No filename generation pattern matches the files `.' or `..'.

… and I've just added another entry to my list of reasons as to why I love zsh.
Google's secret interview process
He was far more effective and far more successful than Machiavelli.

He selected Chandragupta to destroy the Nanda dynasty and used him to create the Maurya empire. The Mauryas ruled the largest empire ever in the Indian subcontinent. Ashoka, the third to rule the empire was responsible for the global transmission of Buddhism.

He was also far more vindictive than Machiavelli.

"It is also told that once, the thorns of a bush hurt Chankya's feet while he was passing through a forest. The wily Brahmin was cut to the quick, and wanted revenge. He got his revenge by pouring sugar syrup into the roots of the bush, thus ensuring that the ants ate up the root and destroyed the bush."

His main philosophy was "A debt should be paid off till the last penny; An enemy should be destroyed without a trace".
Instapainting doesn't run on this technology.

Aren't most convnets trained using dropout these days?

Edit: it seems the implementation that this site uses does as well:

https://github.com/kaishengtai/neuralart/blob/master/models/...

Patents need to go :(.
You assume the false advertisement would be done lawfully. People who hack places to publish list of embarrassing information don't do so legally, so why should we assume that people who abuse data mining services would only be lawful entities?

The false advertisement might say something like "save 50% of your next amazon purchase" or "try out our new car service by getting the first trip free" or any other ways of getting people to voluntarily filling in information which looks completely innocent. All you need is the additional information of name and address, which for the user feels completely separate from the sensitive information which was surreptitiously inferred through the targeted advertisement.

This assuming they can't simply push some malware and get the name that way. We constantly hear about tor hidden service attacks done by de-annonymize people with flash/java/browser exploits.