skysight-inc/HackerNews huggingface dataset:
> motor controllers with significant power handling cost too much, although this is improving

There are more than a few h-bridge ICs out there that can easily control many amps of current; Infineon's BTN89xxx line is fairly popular, but there are others. Many can be found as "breakout boards" on Ebay and other places. They'll usually control 12-24vdc @ 40A and more; they are MOSFET devices (n-channel, integrated high-side pumps, etc). These boards are fairly cheap.

Now, an h-bridge of course doesn't make a motor controller, but it is the most difficult piece of the puzzle, and perhaps the most expensive part (in terms of electronics hardware and developing one - because frying MOSFETs or IGBTs in the process of development can add up quickly). The rest is monitoring and code (basically using a microcontroller to interpret control signals and feedback signals from current, encoders, etc - implement PID as needed for speed or other control, overcurrent monitoring, etc).

Of course, none of this will match the capabilities of a Roboteq or Vantec motor controller - but you won't be spending several hundred dollars, either. These lower end devices and designs (and there are other companies that make lower-end controllers, like Dimension Engineering and others) are more than enough though to control electric wheelchair motors (but if you want proven "bulletproof" controllers, spend the money).

And if you are really cheap or want to experiment? Pick up some cheap logic-level high-amperage N-channel mosfets off ebay (or other places), parallel them together for more current handling (of course, there may be issues with capacitance load), then build a simple "h-bridge" from 40A Bosch relays scavenged from a pick-ur-part (most of those places give 'em away), and put the mosfet pack on the low-side connected to ground. A couple more mosfets to control the relay switching, and you have a (somewhat) cheap (though large) 40A PWM-capable hybrid h-bridge (just don't switch the relays while PWM'ing!).

I guess all of this is to say that there are plenty of inexpensive options out there that aren't "old-school" L293 or L298 solutions (though honestly, for their application, such h-bridge controllers still work well, provided you pair them properly - that is, larger motors running at 12 volts or a tad more off of gel-cell or similar batteries, when efficiency isn't as great a deal).
Linux Syslog Server and Log Management Best Tools
http://www.bash.org/?top has been basically a static page (is it actually static?) for at least 13 years now. I keep hoping for some upstart quotes to make it in there, but there's been no change since sometime before 2004.
>I think people severely, severely underestimate the amount you can make self-publishing.

You're results are fairly atypical, but I think a lot of it heavily depends on the niche you publish under as well. I have friends that self publish romance books and they sell for ~$3-5. If they make 10k in a year they're happy. People see value in a $40 technical book over a typical novel.

A survey I saw recently had the median income for unagented authors at around $7k/yr for non-technical genres.
Slack is definitely not built on top of IRC. There is, however, an IRC interface to Slack.
I'd guess he was charging peanuts and rather than raising his rates he figured a job paid more.

Then again, I think every programmer needs to work with people better than them for a few years.

Most of the worst code I've seen is from programmers who have always been one-man bands, or have been a one-man band for a very long time. It's often a case of not knowing what you don't know.
Look at the code carefully. The only way you can reach "return value" is if `value == null`, so the compiler complains with "Required Int, found Int?", because it (quite rightly!) can't prove that value is definitely not null

Let's change it to

var value : Int? = null

fun F() : Int {
if ( value == null ) return 0
return value // error
}

Now the compiler still complains, with a different error:

"Smartcast to Int is impossible because value is a mutable property that could have been changed by this time". Right you are.

val value : Int? = null

fun F() : Int {
if ( value == null ) return 0
return value
}

This version compiles fine because `value` is a constant (though I think the compiler should've complained about dead code. You can never reach `return value`.)

fun F(value : Int? ) : Int {
if ( value == null ) return 0
return value
}

This version also works fine.
Ask HN: Is there any platform to store and get the different data sets?
I want the json data set of cities. Is there any github like platform just for the data sets?
It's entirely unclear to me whether this is parody or not.
Why Pu'er, a Complex Tea, Draws Rapt Fans and Big Dollars
Η φιλοσοφία faster better cheaper στην προώθηση ιστοσελίδων
but the cause of the escalation was the current ruling party

Of Turkey, yes. There's an understanding amongst democratic countries that you do not interfere in national elections. Sending a member of the cabinet to another country during national elections is interfering. Any Dutch government should have sent them packing, and the Turkish government was actually counting on that: now Erdogan has additional ammunition to paint the EU as an enemy. It surprises me that he hasn't declared The Netherlands to be secretly ruled by Gulen yet.

Do you really think it would have gone down nicely if the European Commission would have campaigned in England during the Brexit campaign? Or if Putin would have gone to the US to campaign for Trump?
Definitely, but I've talked to a half dozen other authors who self-published and made a grundle.

Especially if you either find a niche technology with bad documentation or a widespread technology with a bad problem, there's a lot of cash in it. I think the Meteor.js authors talked about pulling in $500k
I'm glad this was posted here. A lot of you could really benefit from spending some time outdoors.
I'm not saying Google can't do it, and I agree that they did it right (build the technology first). What I'm saying is that there isn't strong evidence that they are getting good at enterprise sales yet. If they can do it, then they will be very successful. I'm starting to see signs that they might be doing it right, but the jury is still out.
I agree with this, but out of curiosity, presumably the funds have their own blockers/SPVs below that they could just route their investments through and allow other investors in the startup to receive the flow-through treatment (like we would in hedge/PE). My assumption was that the standardized governance structure of a Corp was also appealing to VCs who prefer it to the possibility of being screwed by an adverse amendment to the LLCA, etc.
I'm not so sure. His claim is coming from the fact that the research was obviously funded or written by an ill-intentioned party. Andrew Wakefield received loads of money from lawyers who wanted to sue vaccine manufacturers. In this case, Monsanto paid money to academics for them to put their names on papers Monsanto had written. In this way, the pro-gmo position is more similar to the anti-vax position than pro-vax.
I absolutely agree that whiteboarding is a skill that requires practice. That said, with a reasonable interviewer, the first couple things you're discussing really don't matter. The trick is to understand that no one cares if you're actually writing working code, and that the important thing is communicating your intentions and process.

> There is no insert.

This really isn't a problem. If you need to insert a line, in most cases you can just draw an arrow and then describe what you forgot to do there. Code may not even be necessary. Anyway, an arrow is fine.

> There is no context driven autocomplete or quick method lookup

Again, not really a problem. Just say "I forget the method name here, I'm just going to assume it's called 'append'" (or some other appropriate name). No reasonable interviewer cares in the slightest as long as it's clear you know what you're doing and it makes sense.

> If you code iteratively the whiteboard is not your friend.

This is absolutely an issue. Everyone codes iteratively though. Successful whiteboarders learn to do the iterative part of coding verbally instead of in code. You talk through the algorithm you're going to implement, and refine your plan in words, and then only when you've got a solution you're happy with do you pick up the marker. As a side benefit, this demonstrates your thought process much better than coding would. Actually, this is just a better flow even for development on your own computer. Once you develop the skill, you'll find that a little more planning time before you touch the keyboard almost always leads to faster implementation overall.
Thanks for the confidence in our approach :D Being open and honest about everything is super important to our company culture. We definitely have some great stuff in the pipeline for the next few months.
No it is not harder to say about HPV. The HPV vaccine is one of the sturdiest linkages between atomic-level scientific understanding and social policy.

HPV produces a protein called E6, which inhibits the protein called p53 in your cell. P53 is the centralized monitor of the health of the cell's DNA. When HPV inhibits the ability for the cell to monitor its DNA, it cannot respond to ordinary damage like UV, etc. This DNA damage builds up and triggers cancerous mutations that would otherwise have been repaired were the HPV E6 protein not inhibiting the p53 protein.

By getting a vaccine, HPV cannot infect you, thus it cannot produce the E3 protein, thus your p53 protein is functional, thus when you get ordinary DNA damage you repair it rather than accumulating cancer-causing damage. If you do not get a vaccine and you get infected with HPV you now have lost a significant checkpoint in preventing cancer.

p53, E6 & HPV: https://serotiny.bio/notes/proteins/p53/
Yeah, technical & business-oriented books are a quite a bit different. Romance novels is a very different world.
Good thing this sort of thing doesn't happen in heath care.

It would totally destroy people's trust in the medical industry if, for example, drug companies did this sort of thing.
I too pursue this niche, personally and professionally (SCAD alum here – I have chosen to take my career down a more design-centric path).

One of the best products in this space is Framer Studio[0].

Framer has quick visual feedback and added GUI around a specialized flavor of CoffeeScript. Creating a UI, prototyping the UX, exploring the motion design aspects and mirroring to device is all done by blending design sensibilities and very basic coding. This has been an incredibly valuable tool for me, personally. Sometimes I kind of view it the same way I view Google Translate... it won't make you fluent in the language but you can communicate ideas in a quick way.

I do not currently see many (if any) design/code tools today that match Framer's accessibility, extensibility, community and quality of output.

0. https://framer.com/
I did, yes. They are starting to show signs of learning how to sell to an enterprise. If they get it right, they will do well. I'm just saying the jury is still out.
Basic information is easy to grab from your server logs. Unless you're doing much more detailed stuff (journeys through the site, in-page interaction, etc) then you may not really need google analytics. You can probably do a lot more with just logs than I expect, but the most basic thing that a lot of people want (basically just a hit counter) is easy enough to get.

I've been having success playing with http://goaccess.io/ recently. Not doing much with it (partly as nobody is really visiting my site and there's not yet much real content up :)) but it seems good and doesn't require you to change what you're doing.
All else being equal, would you reject an extra 20k?

All of the stuff you mentioned is still part of "compensation".
Your Next Car Will Be Delivered Like a Pizza
I have no experience in kotlin but many other languages that use iterators would go with something like

for length, bytesRead in input.bytes() { //...

Edit: quick google search, the actual syntax is

file.forEachBlock { bytes, size -> //...
Thanks for using as part of your main portfolio Philip! Can I ask what else is in there?
Dynamixel servos are expensive for sure, but there are a couple of low-end models which are pretty reasonably priced given their (excellent, as you note) capabilities. The XL-320[1] is only $22. They're puny, but I've had fun with them.

[1] http://www.trossenrobotics.com/dynamixel-xl-320-robot-actuat...
What if I'm Canadian? Is it better to incorporate in Ontario or Delaware?
Stop Cheapening [Toronto's] Tech Sector by Quoting Our “Cheap” Engineers
Taxing Robots?
I've been paying very close attention to what they are doing and attended Google Next. I know what they are doing. They seem to be doing the right thing, but the jury is still out. They still haven't proven they are good at the enterprise.
Not sure if sarcasm.

Seriously, do they do that?
Some friends and I decided to have a go at the treasure a few years back. It was a good excuse to go out camping and road-tripping with some mates. We identified a spot we each thought it may have been and then spend some weekends one summer checking them out. One place we found outside of Estes Park, CO did have a rather large hole dug out right next to a 'swamp'/water-filled depression, there were a LOT of beer cans and champagne bottles around from at least a winter beforehand. The place fit all the bills for the treasure's location, at least to our minds. Maybe the people that found it are mum, the tax reasons would be enough to shut my mouth too.

The treasure has been around for so long, and there have been so many attempts at it, I figure there is no way that it has not been discovered yet, if the thing really exists. Maybe Fenn put some note in there that says to contact him for more cash or something, so that he'll know that it was found. I doubt this. More than likely, there is no treasure at all and it is an intentional wild-goose chase and the 'real treasure is friendship'. But that doesn't square with all the deaths people have had looking for it. If the 'real treasue is friendship' then Fenn has real blood on his hands. We all had a great time camping at least.
If you make over $400 in income from book sales you need to take that income and apply self-employment tax on that income.

In addition you need to make quarterly payments for the estimated tax.

If you haven't done so yet. To fix your situation you can file an amended return. A CPA can do it for you... given your income, you should be able to afford it.

As your income grows so it does the likeliness of being audited.

https://www.irs.gov/businesses/small-businesses-self-employe...

Now that you have published your story, your real name and the income you obtained I strongly suggest to do it ASAP.
Assure you that there are ways to deal with Fenn dieing and still require the party finding it to make contact with someone to claim the prize; in fact, Fenn planned this when he thought he would die from cancer.
I get the sense that different verticals require vastly different strategies. A friend of a friend pulls in ~$10-20k a year on Kindle erotica, but they have to pump out like 2 books a month.
I knew what this was going to be before I clicked it...

Old NVIDIA cards flashed to show false specs were showing up in the market, NVIDIA was completely in the right to move towards signed firmware, and while it had an unfortunate effect on an open source effort, it was what had to be done at the time to protect consumers.
Lateinit is good for what it is designed for which is allowing for fields that are always going to be initialized before use but after construction, normally by a library. I wouldn't describe it as a crutch in that case.

It'd be ideal if libraries were better about using constructor injection when possible, but I think there are some valid scenarios where circular dependencies make it impossible to use only constructor injection.
Ask HN: What charting library do you use along with Angular?
So basically, you can upload HTML and have users of the web client run the code on the Telgram/Whatsapp domain by sending it with another MIME type such as mp4?

I use Telegram Desktop but this should have showed up in any security test, which they apparently didn't do. As a pen tester, maybe I should take it upon myself to audit stuff that I use now and then...
For us it was natural to open the source code, we prefer to work that way. All our source code is publicly viewable and most of it is open source.
Back in the late nineties, I and a few coworkers called Gene Ray, the Time Cube guy. We were sure his site was parody. After a few minutes conversation, we concluded he was sincere. Therein lies the danger of extreme parody -- there are enough oddballs out there that you can't immediately discount something as parody.
This seems hard to believe from my experience. I am friends with around 15 UX designers, and acquaintances with around 30 more, many of which are at top companies like Uber, Google, Microsoft, Amazon, and IBM. None of them know how to code to my knowledge, other than some basic HTML, CSS and jQuery, which they primarily use to build portfolio websites for themselves. Anecdotal and small sample size, yes, but these people are certainly having no trouble "surviving" in design.
> I can tell you that seeing Uber on a resume beyond March 2017 would be an instant red flag for me.

That's insane - you think everyone at Uber can afford (both literally and metaphorically) to simply quit their jobs without a landing place?

The flip side of this is that I would be happy to avoid working for someone who's so easily prejudiced against someone before ever meeting them. That kind of social bigotry is also very toxic...
Do you mind paying US tax?
Imagine this. You are interviewing for a job, you walk in a room with 2 people who hand you over a sheet with a few problems. They ask you to write the solutions on the whiteboard, while they wait for you to complete.

Not a word is said, they are clicking at their laptops, and staring at the whiteboard, as waiting for the genie to pop out of a bottle. All the while your mind is frozen and stuck in a bad loop.

This lasts an hour, you are barely able to complete parts of the problems and are frozen. Of course this affects your usually creative and sharp mind.

The torture lasts an hour, time's up! You shake their hands, as a kiss of death, and head out. As you are walking back, all the answers to all the problems they wanted you to whiteboard, come rushing like a torrent in your mind. Too bad, another 'botched' technical interview.

This is my experience as a battle tested developer who is shipped many products and has been programming for the love of computers since the age of 12 (professionally for more than 15 years). I am not going to be working at Google any time soon (not that a Google job really matters to me).
Is the source code for this published somewhere?
Indeed. And the timezone or location. And maybe break it out into seconds as well.
No, VFS is a valid kernel interface, as is ALSA. Your analogy is wrong and pointless.

This is more similar to removing all support for files and requiring everyone to install MySQL.
Most likely:

in.buffered.readText()

The Kotlin stdlib has a rich set of extension methods for reading in whole files of various common formats at once. readText() reads it all into memory at once. readLines() reads it into a list of Lines. forEachLine{} runs a closure on each line. useLines reads it into a sequence (a lazily-evaluated collection) and then passes that into a closure. buffered converts it to a BufferedReader, basically wrapping it in your buffering loop. inputStream converts it to an InputStream, reader to a Reader, and most common Java protocol libraries take one of those two, so if you need something more complicated you just pass that in.

I've yet to write an input loop in Kotlin.
Looks like they will open source the whole thing. I'd be very interested in learning how much Gitlab paid for this acquisition.
Cleaning your concrete – What is the right Choice?
Sesame Street, too, just to clinch the deal.
WhatsApp testing chat tools that would let businesses talk to users
Next thing you know we will find out lobbyists are writing legislation!</snark>

Seriously though, is the content of the research valid, or not?
Gitter uses a proprietary websocket protocol built on top of the Bayeux protocol: https://docs.cometd.org/current/reference/

More details can be found on the developer site: https://developer.gitter.im/docs/faye-endpoint

We also have an open-source IRC bridge: https://github.com/gitterHQ/irc-bridge
Or the people that worked on the Greyball project? I wouldn't touch those people with a ten foot pole, it would be like hiring one of the VW people working on emissions. "I was just following orders" can only go so far.
That is my understanding as well. It's written like a media prop -- I mean, look at this:

> bypass Telegram’s upload policy and upload a malicious HTML document with a mime type of a video file “video/mp4”. Then, they were able to send it to the victim side in an encrypted channel through telegram servers.

It's only missing the words "cyber" and "darknet" to make it complete, but they just upload html with javascript (malicious or not) and it happens to be over https.

So it's a bit obfuscated, but yeah it seems to only affect the web clients.
Yes, you would be overreacting.

If a CEO is going to classify all male Uber employees as male chauvinists and not hire them I would see that as stereotyping and discrimination of a class. The world is not black and white and I would definitely not want to work for that CEO.

That being said, I see issues with Uber long term. Not just Travis issues but also in the business model. Eventually all car manufacturers will have level 5 autonomy. At that point the car manufacturers will be Uber. They will be able to produce the car at cost and watch it drive away from the car manufacturing plant to be rented out wherever it's destination state/country is.

Uber doesn't have a chance in the long term.
Unconventional way of learning a new programming language
Why is this the default answer to any discussion on topics such as these?

I look at it as Vaudeville acts vs Hollywood films. Or local hack community college professor vs Youtube Stanford Machine Learning Course.

The legal and tax situation is written into the law. The VC outlook on this topic is common knowledge.

So why do we have to pay expensive consultants (attorneys, accountants) for what are in reality just FAQ's.

Incorporating an LLC is one of the easiest government interactions I have ever had. It is literally a one page form, the hardest part is picking the name of the company (definitely check the US trademark office database and get the .com)

It was the same for the Delaware C Corp I created. A one page document that needed to be faxed.

All the rest of the paperwork was very elegantly handled by Clerky.

I think there is a big risk in going for advice from an attorney and getting bad advice. I feel much more comfortable in broad research on a topic and crowd-vouched and vetted knowledge rather than trusting one sole practitioner.
Also it's not clear from the article that the headline matches John Maeda's actual position, so perhaps the point is moot anyway.
Oh I agree. I just don't think understanding that something is logically best for a group of people is why I can do a hard thing. I'm fairly sure there's a part of my brain that lets me act against my empathy for an individual at times.
s/spurns/spurs/

Not trying to be snarky. Maybe it was a typo, but non-English speakers might not immediately get from that to the correct word.
With literally billions of dollars on the line what do you think?