skysight-inc/HackerNews huggingface dataset:
As a former schoolchild, please no, PLEASE NO. Waking up early is already hard, having to wake up an hour earlier than I would otherwise have to for the entire year would be hell. Just use normal non-DST time. Please.
One of the fundamental problem with captchas is that writing a bot that defeat captchas is a very interesting exercise for teaching AI.
If their test is challenging enough and interesting, just mash a project together for fun and submit it.
Does this not make Twitter AND RT look bad? They've just proven something they and Trump have been denying.
You are mistaking the variety of desktops with a variety of graphics stacks (which there aren't). At the levels of the stack that nVidia work at, there are only a small number of options (sometimes one), maintained by specialist developers who work closely together, and more or less share one long-term roadmap. For example, if you do OpenGL on Linux, you use the Mesa library, and so does everybody else. If you care about protocols, X11 is the legacy standard that everybody used to work with, and Wayland is the agreed replacement. We swear at nVidia because Intel developers have been good members of the community for years, and AMD have made an effort to become constructive participants. nVidia still aren't.
Those discounts feel really light for adland. Did RT get a lousy deal or a good one?
Probably taste: normal case first, special case last, regardless of what the respective comparison clauses look like.
I think it means average cost per month.

Basically what they say is that yearly spend was $960, and then present it as per-month-cost, but I can imagine food prices varied quite a bit with the seasons back then, so that true spend at any given month could be quite a bit different from this average.
FYI This is an advertisement pushing a token on the eth block chain for hotel rewards.
He runs the show, so he doesn't need to submit any reports
Mobile App Necessary When You Have a Mobile Website
There is some cargo culting there but it's mostly correct.

Helper is a code smell as it's a sign of "we don't know what the responsibility of this is or what to call it so we'll just chuck a load of shit in this file and call it a helper". The methods in should belong to something and live on that class, not in an external class.

RequestExtensions is more shit than the original solution. Extension methods are even worse! Shoot the reviewer.
And changes trajectory towards the sun.
Does this mean we could hook Cython up to NVPTX as the backend?

I've always thought it weird that I'm writing all my code in this language that compiles to C++, with semantics for any type declaration etc...And then I write chunks of code in strings, like an animal.
Great choice of name for a different thing. https://xkcd.com/144/
It's seriously amazing how much you (and many others) give to the floss community.

I do the 9-5 developer thing and enjoy it very much, but I would probably lose my shit if I constantly had random strangers emailing me on my personal accounts demanding help.

I joke to myself that I would be the worst floss maintainer in the world and immediately reply to every feature request with an hourly charge out rate.
> The biggest problem I see with people trying to write unit tests is that they don’t want to change how they write code. It’s like watching an OO person try their hardest to write OO code in a functional language.

<rant>

I personally hate javascript with the burning passion of a thousand suns. I just can't stand it. I can't stand the syntax, the philosophy, the package manager, the idea of "lets not worry about how X work just do an include and npm install", the abyss that is the error system, the person who considered 'undefined' to be a good thing to implement, the NaN that has nothing to do with numbers but everything to do with type casting when there is no actual type system, the lack of a good standard library, the fragmentation and slow progression of the language, the callback hell, the coercive nature of it's operators when you don't expect them to, the 6000 ways you can make an "object" that is not really an object, the confused terminology that goes against every other agreed-upon language, the myriads of outdated tutorials that lead developers to copy/paste code that stopped working 10 years ago, the notion that javascript is sexy and ES6 fixed it, the fact that you (whoever reads this) think you fixed it, the godawful bloated frameworks, the fact that I need 14000 dependencies to run a simple project because every 2 lines require their own implementation of a github repo so that the developer can boast about his cool profile, and most of all I hate the person who thought it would be a good idea to take this mess and put it server side.

</rant>

I can put almost all of that aside and work through threw whatever is thrown at me. However, what I can't ignore is when a language is deceptive by nature. Ex. Javasript uses the term "object" to describe something that isn't an object in the traditional sense. Hence when an OO person tries to write OO code in said language they end up getting virtually molested by whoever designed said functionality mainly because the OO person expects things to work in a certain way when they don't due to naming.

The problem is not them not adapting and changing how they write code; the problem is actually the language itself being designed by retarded monkeys who confuse terminology and at the same time don't communicate the reasoning behind their decision making. Hence what you get is someone like myself who spends hours pulling his hair out trying to figure out why there is nothing similar to an isset() function in the standard library or why '2 == [[2]]' or why JS adds a ';' at the end of EVERY LINE. I mean Just look at this:

function mynum() {
return
1;
}

console.log(mynum()); // undefined

I would submit to you that most OO people would have an easy time transition to ANY functional language that isn't designed to confuse because before we ever did OO, all of us did functions and can easily reason about them and how they relate to each other. The problem is the language, not the user!
Movavi Video Editor 14.0.0 Crack and Activation Key Download
> that method is now dependent on the static class and you don't have any control over it.

I don't see how you have any less control over it than any other code you wrote. If you don't want it to write log statements, then don't do that. Most static methods are small and pure so don't need to write log statements anyway.

> Now your testing will dirty whatever database you're using, as well as run 10x slower.

I've never used a logging framework that didn't allow you to configure where log statements were written, or give you control over the logging threshold for individual classes. However if your method is writing logs then presumably there is a reason, which is just as useful in the tests. If you mock it out then you're testing against different code to the one you will actually run against.

> If you start using a custom delegate solution, then your code is not consistent with everything else that uses DI.

Passing functions as arguments directly is 'DI', just without the need to configure that through an external container. Reducing the amount of interfaces (often with a single implementation) and external configuration makes navigating the code easier.
That's an integration test really. The clients all have an abstraction around the http endpoints so nothing touches integration in unit tests. The advantage of this is you deal with transfer objects only in the code, no HTTP which would violate separation of concerns.

I use HttpMock myself in test cases which fires up an http server for personal projects. We use Wiremock commercially.
Then why not say "The family’s food bill was $80 a month."
Would it be possible at all to intercept it for analysis?
Or who think "if the github is in this state, the site's probably terrible!"
There goes 10 minutes of my life I am not getting back. It is an advert for the ICO. A click bait title with a long rant which doesn't even try to get close to the information implied in the title.
i think this, learning of hierarchies, could be the start of something relevant to unlocking more workable language modelling

https://blog.openai.com/learning-a-hierarchy/
https://github.com/jayniz/zsh-tmux-neovim-docker
Where I work I heard the IT dept literally had to pull developers from retirement to make a change to the payment systems. Sadly pulling people from retirement is an option that the company will not have forever. At one point there will be no other choice but a complete rewrite.
and keep as much logic away from templates, that way you can unit test the model.

problem is templating frameworks are too smart.
We should probably have two completely different versions of this discussion for typesafe and type-risky languages, since typechecking is effectively a form of testing at both unit and integration level.
Sure but the problem lies the exact definition of delivered. What does delivery mean here?
There should be laws that give the benefit of the doubt to the prosecution/litigant in situations like this. Not holding my breath though.
Who said they were counting on it? The point is that this is a problem that could be ameliorated by simple regulations. In NYC, for example, it would not be possible to increase someone's rent by 100%.
I think USA got a horrible deal, RT is a nation state, a million is nothing to them. Their GDP (Googled it) is 1.283 trillion USD (2016). https://www.google.com/search?q=russia+gdp

Kudos to them for exposing twitter though.
> To liken it to something you may be familiar with - when commenting your code, do you think it's better to add comments in as you write the code? Or add in the comments at a later date after the code is all written? I'm sure you immediately know which approach results in better quality commenting, and it's the same with TDD.

Not to take the analogy too far, but usually when writing a chunk of code I can keep it's behaviour in my head for a good amount of time and find it's best to add comments at the "let's clean this up for production" phase when you can take a step back and see what needs commented. If you comment as you go, you'll have to update your comments as the code changes and sometimes throw comments out which is a waste of time.

Likewise with tests, I'm not saying write them far into the future, but I think having to strictly stick to red/green/refactor is going to waste time. What's wrong with writing a small chunk of code then several tests when you're mostly happy with it? Or writing several tests at once then the code?
I don't get it, please explain what do you mean.
> Shoot the reviewer

Duly noted! Although I'll try talking to her first, I'm sure there's more behind the decision :)

One of the methods that was inside takes a request, extracts the body and returns the parsed graph from the body. It's used by many controllers from many projects. I don't know where to put such a thing, hence the request extension.
When I was young and loved the movie JFK I thought it was a huge conspiracy. Then I went to Daley plaza, its so much smaller than it seems on tv, that window is really close. I think any reasonably trained shooter could have got him.
I had a chat with my American co-worker why they don't use something more modern, and he seriously tried to explain me that requiring ID would be racist.

Now I knew the theory already, since I spend a lot of time online, but I asked him to explain it to other co workers, most of them very liberal as they say in U. S, they all thought he is joking.

Americans are funny sometimes :)
That's a poor excuse all the colonizators and invaders always use - "We buit something there! We brought good and civilization to the wild bloodthirsty pagans! White man's burden anyone?"

Not really. Locals would build it as well, just maybe later.
Technology spreads disregarding the governments or countries.
> 5 billion lines of new COBOL code are written every year.

Are you sure about that? Sounds like rather a lot.
> in hindsight it appears that it could not be delivered anywhere near the original budget.

What makes you think that? It's on the public record that NBN Co were fairly well on-budget (after they'd upped the peak funding from $39bn to $44.1bn a few years earlier) up until to the 2013 election.

Of course, the media preached it was over budget, so that's what most people think, and Malcolm Turnbull was so suspicious that he commissioned a forensic review into their financials - which was very quietly released when it found "no material issues". There was also some evidence of the incoming NBN management choosing to keep quiet and shut down a cost reduction program that had successfully found efficiency gains and cost improvements ('Project Fox' which was leaked to the media).

All major fibre rollouts have tended to show that costs reduce over time - Chorus in NZ reported a 44% reduction in per-premises cost over their rollout so far, and Openreach in the UK have reported a 50% reduction from when they started.

Coupled with the fact that the Coalition's plan blew out by $15 billion, I think it would have actually been better to continue with the original plan and try to fix the problems. What they ended up doing was to not fix any of the existing problems, and try to 'fix' the things that were good about the NBN (the technology)...

This isn't counting that any upgrade to FTTN (which will be required in less than 10 years) would cost tens of billions of dollars more, or the much higher running cost of FTTN. In the end, the LNP really picked a dud and absolutely screwed up something that could have been fixed.
Click-bait title and article about nothing. Most written text is obvious to anyone who travels even once a year.
I stopped reading when article started to tell about hotel loyalty schemes, right after declaring they are uninteresting things of past.
This is good for bitcon
It's really a good idea! It could be helpful for all the ones, who don't know how to play music, to produce it from scratch.
Thanks! we've been considering writing plugins for Garageband/Ableton
All the Trump supporters etc have been screaming for months that there is nothing to see here. Russia has been claiming there was nothing to see.

Yet here is Russia's state owned propaganda station a admitting twitter pitched the idea of them targeting the the US elections with their adverts.
Don’t waste your time, this rambles for several paragraphs and then starts talking about etherum tokens for travel rewards.
Hi I'm Lynn, an AI lawyerbot who can review your NDA
Seriously only clicked because aol.com. That's a thing I've not seen in close to 20 years.
Always ask for the reason before slating it :)

Usually that's a single responsibility class:

interface IGraphParser {
Graph Parse(Request request);
}

Inject that into the caller via the container then you can mock the thing that calls it and just return a static Graph object, which you can't do with a simple extension method (which is why it sucks).
Guess this helped Twitter get into the black for the first time.
I so wish x86 would die. But that seems so improbably these days that will likely never happen.
Indeed. Not to mention that the article entirely fails to make its case. The whole premise of the system seems to be to eliminate fraud in a universal hotel rewards scheme by tying points to payments by ethereum. Not only does that require every participating hotel to accept payments in ethereum and only in ethereum - which seems like a huge, show-stopping, give-up-and-try-something-else precondition for success - but I don't see why a bad actor couldn't simply refund the payments out of band, leaving the beneficiary with the points. It is trivially worked around.

Best of luck to the guy, but I don't like this company's chances.
I would argue you absolutely need to be testing the internal details. That is the entire point of measuring branch coverage and performing mutation testing. Unit tests are not black box tests. They need to know that for special values, the unit has to follow a different code path but still produce sensible output. Reading the documentation of a function is not sufficient to determine what edge cases the unit has, but testing those edge cases is often critical to verifying that the unit adheres to its specified behavior under all conditions.

As for the smell, sometimes things are irreducibly complex. Some things in this world do require tedious book keeping. All the refactoring in the world cannot change the degrees of freedom of some problems.

Tests on consumers should not test branches of subordinate units. If you did this then the number of tests would explode exponentially with the number of branch conditions to handle all the corner cases. If a private unit produces a list of objects, but has special cases for some values of its argument, test those branches to verify it always produces the correct list. Then just make sure each caller does the correct thing with the list of objects. That is the purpose of separation of concerns: the consumer does not need to know that some values were special.
Because the knowledge required to fix, update or port these programs is almost completely owned by the programmers that developed them, who are in the process of retiring or are unwilling to share knowledge for (justified) fear of losing their job.

Regarding "how complex can these programs be", these programs run core operations for banks and insurance companies, so you can probably imagine the amount of hidden business logic and technical hacks that have stacked up over decades of operation and changes. This will not surface in requirements gathering meetings without A LOT of blood, sweat and tears. The alternative would be to reenginer the company's processes before the building the software to support them, but that would mean a lot of change and that tends to be harder than most software engineering endeavours.

Not only are these programs complex (projects to re-implement them from scratch in J2EE would certainly be measured in years), but they are mission critical and the organization cannot afford to live without them or something 100% equivalent.

There was a lengthy discussion about this on HN some time ago: https://news.ycombinator.com/item?id=12096250
> channel.on('update:todo' ...

> channel.push('delete:todo' ...

> Have a CRUD interface over websocket

REST over websockets. What's the advantage over HTTP? I know websockets allow for pushing data to clients, but this is pull so apparently there should be no advantage, only more code to write.

Edit: maybe you're sharing updates among all the users connected to the server. Still, for sending requests HTTP is enough. Any performance advantage by using websockets?
I'm not sure I see what RT is attempting to say about Twitter here. That they offered them promoted content, ad-buy discounts, custom emojis, etc, in exchange for an ad-buy of a certain amount. This doesn't seem like anything other than a partnership of some kind.

It doesn't say anything that RT should favour one candidate over another, in fact the presentation specifically promotes unbiased content and news.
I really like absinthe with apollo/subscripions on the frontend for realtime updates.
Show HN: Build .NET Core Apps for Raspberry Pi with Docker (Screencast)
Telstra just told me today that yes, I can pay for 100/40, but they can't guarantee anything past 25/5. Not sure how my situation gets counted by NBN.
Ask HN: How can I get my co-founder to stop coding?
I run a small startup with my co-founder.

Things are going pretty well, I built the product myself and my co-founder has found a customer and sold it to them. We haven't taken any loans, accepted any funding or given away any equity.

We are currently preparing to launch in the new year.

My co-founder has some experience coding, and sometimes takes it upon himself to dive in the code and make changes.

This causes a couple of problems:

* He doesn't understand the stack well, and has introduced bugs

* We have lost potential opportunities because he has told customers that the product doesn't have features it actually does. When asked why, he will say things like I didn't see it in the code

* He has a tendency to take out his laptop when meeting potential customers, bring up the codebase, and try to talk them through it

On the plus side, he has found us our first customer, and I have no doubt that he can find more (he's very salesy, and well connected) but I really need him to step away from the code!

I'm just not sure how to raise this with him without damaging the relationship. Any advice, HN?
State of Vue.js Report [80 pages, case studies, survey results, future of Vue]
I work on cobol migrations (or anything mainframe more correctly) to x86. I've never seen a rewrite of a real application that actually worked. Some have tried but ended up throwing the towel.
We've taken a different approach, by being binary compatible. Basically we rewrote a CICS/IMS/etc, as well as some z/OS layers.
Depending on the clients, some want to stay in cobol, but others want to modernize, but in a controlled and progressive way.
A complete rewrite is out of the question, but you can try to do it in steps.
The presentation may promote unbiased content, but it would be naïve to suggest that Twitter had no idea who RT would support.
The presentation specifically promotes unbiased political reporting. In addition, many media organisations promote themselves as the go-to place for political reporting.

They proposed a partnership with an organisation they hoped would buy ads promoting political reporting. I don't see why this casts Twitter in a negative light.
I always understood this to be a feature. Captchas seem to be used as public signposts for tasks that AIs are not yet good enough at.

So, given the financial incentives on both sides, I'd like to believe that continually creating and overcoming these tasks is a possible route to AGI.
Hi, I used gtk-recordmydesktop (beware it will freeze your desktop under Ubuntu 17.10 Gnome but works fine under Unity). It gives you an .ogv file and then there's some editing to get a gif. I described the process at the end of: https://blog.openbloc.fr/javascript-es2015-starter-kit/

Mainly convert the .ogv to .mp4 with ffmpeg (don't have the command here), create a png palette from the video so your gif colors are more accurate and use ffmpeg to create the gif:

ffmpeg -y -i video.mp4 -vf fps=10,scale=800:-1:flags=lanczos,palettegen palette.png
ffmpeg -i video.mp4 -i palette.png -filter_complex 'fps=1,scale=800:-1:flags=lanczos,setpts=0.25*PTS[x];[x][1:v]paletteuse' todoApp.gif

This gives you a 800px wide gif, with 1FPS, and sped up 4 times (setpts=0.25) :)
I strongly agree, but that's a conditional agreement - I believe we should relieve humanity of the very concept of earning a living, but at the same time we also need to do it in such a way that the whole civilization won't collapse in the proces.

My only complaint in the previous comment is about the PR double-speak. We all know that when a company purchases automation, it's meant to replace human workers. But companies won't honestly admit it.
> Twitter better hope it has its story straight (and the paper shredders working overtime) because this looks to me like Putin's minions have been ordered to go right for Twitter's jugular.

But for what purpose/to what end?

Bringing Twitter down would remove Trump's favourite method of communication.

Or is this retribution for Trump not being the Manchurian candidate/lap dog Putin wanted? If that were the case, I would expect Russia to expose whatever they're holding over Trump (peepee tape?) to get him ousted.

Trump already won the election, so taking out Twitter would only serve to reduce their ability to influence future elections.

I'm not denying this looks fantastically bad for Twitter, but the aim of taking down Twitter isn't clear to me. There has to be a net positive to taking down Twitter, but what is it?