skysight-inc/HackerNews huggingface dataset:
Just wanted to correct some things, as a fan of both Elixir and Rust.

> No for loops

But we do have for loops? That's what comprehensions are: https://elixir-lang.org/getting-started/comprehensions.html

> no typed parameters

But if you need types on your parameters, you have Guards, which... check for type? Sure, you don't type every last parameter, but if you want that you can upgrade to Dializer and get that feature too. It's just not as useful as you likely treat it.

> implied returns

I understand that some may not like this, but it comes out of the idea that generally, you want to avoid "side effects"- ie, things in code that happen without anyone but the original function causing them being able to tell. Elixir doesn't completely lack them, as that would be pretty unreasonable, but it does at least ask that you're clear about the purpose of functions by having them always return something.

> IO.puts() refuses to print certain objects (list of ints) and just prints a newline, making it useless for debugging.

This seems like something must be going wrong. `IO.puts` certainly prints lists of ints, however, it might also be mistaking them for a charlist, which is definitely a concern. That's why generally, you want to use `puts` for text, and `IO.inspect` for data structures. As an added convenience, if you want to annotate your data structure with text, you can modify `IO.puts` like so: `IO.puts "List: #{inspect(list_of_numbers)}"`. That will parse the list to the inspect version and insert it into your `puts` line.

For the record, I'm not saying any of these necessarily shouldn't be a reason to not like Elixir- we all have our preferences, but the reason behind many of these choices is philosophical, and I'd be happy to explain anything else that has puzzled you, if you're still interested in learning more about Elixir.
You Can Trademark Whatever Words You Want Now
Epic Games acquisition of Houseparty and the future of collaboration in gaming
Animating Meteorite Impacts
Its a great little box. I have 2 or three cameras recording 24x7, a large chuck of the spinners is a Samba share, and Webmin tells me that I'm usually at 10-20% cpu and 25% memory.
I've got an SSD connected to USB also, and it really makes the spinners feel slow ( WD Red Pros ) but that's mostly because they spend a lot of time idle and the first access is delayed.
Of course it isn't perfect. It holds on to dust a bit too well, and it isn't super easy to connect another USB device once you get it all dressed in place. I don't use the screen. I did at first, but I'm not black-belt level at managing HDMI devices and it doesn't present as much value as the light pollution it causes.
The RockPro64 would probably best it in most tests, but I already had the Cloudshell.
I have dreams of incorporating it into an all-ARM Linux domain classroom.
I also write Go for a living, and feel sort of the same way about other languages. But then I have some good news for you with Rust, you'd like it (at least I did/do). It's different from Go, for sure, and in my head fulfils different purposes from Go, but it's nice to have a choice between two things I like.

Fair warning, though, before Go, I wrote Delphi for a living.
This is an oft-repeated falsehood. There is no such distinction between platforms and publishers as far as online websites go. The law is very explicit about this, google section 230.
Yes, this would be pretty easy to solve with an initialization function and using that everywhere. Change the arguments in the function prototype and the compiler will definitely complain!
The real question is:

Can I buy the chips? Can I get the technical documentation?

If I can't build my own RPi in volume, this is STILL a problem.
RasPi reliability is tricky, for sure. The recipe that's working for me now is brand name power supplies (RasPi foundations, CanaKit, or Adafruit) and brand name SD cards. Don't trust SD cards that come in RasPi bundles or kits, even from Adafruit; I've had those fail horribly. So far all my Samsung cards are working great. I've also been using A1 grade SanDisks, no issues so far (only been a few months) as well as using cheap SSDs for one RasPi. I highly doubt the SSD is going to run into any issues, and it works seamlessly on the new Pis with a nice boost in performance.

The RasPi itself is so cheap I think a lot of people cheap out on the power supply and such, which ends up giving them lots of problems.

Anyway, given the poor reviews I've seen on the Cloud Key regarding hardware failures, especially on the newer versions, I just went with a Pi. But yeah, if someone has a machine on their network already, that's a great option too. I just wish Ubiquiti would release an official Docker image.

EDIT: I'm not necessarily arguing that people use RasPis for UniFi controllers, or that you personally should. I just thought your comment was a good opportunity to discuss RasPi reliability, because I know a lot of people have trouble with that.
More fundamentally, it's a problem with secular society. Really, if the only goal of life is achieving material prosperity, and you're not achieving it, there's no particular reason not to kill yourself, other than holding on to hope, which is quite irrational in some circumstances.
Interviewer: "Will Republicans say the sky is blue?"

Democrat: "No."

Republican: "Of course it's blue. It's hot pink, which is a shade of blue."

Democrat: "... wait, what? You think... huh?"

Interviewer: "Looks like the Democrat was wrong!"

Which is true... ish. Truthy.
Bill Gates accidentally makes the case to regulate platform companies
Why is it less interesting that about 20% of Republicans do agree with that statement (according to the article), than that Democrats think 50% do?
Show me a real, evidence and facts based solution to homelessness that Republicans have come up with and I'll edit it into my comment and remove that part.
I was confused too. At the end they say they'd rather do python than Go. And yet it was going so well until this issue which is not any better in Python.
This is pretty normal in NYC/NJ
I got an AdaFruit servo hat and I use it to drive my hexapod. I used to use a Propeller and then an Arduino. My next project is to integration some vision recognition into my robot. I am planning on using a Jetson Nano for the vision part, but I believe switching to a Pi for the robot was a helpful precondition. I haven't decided if I will just use the Nano to control the robot or use it as a visual co-processor with the Pi.

Old video of my hexapod below. Still works great though, because it is really sturdy.

https://www.youtube.com/watch?v=121DuXM5tYE
> Programmers who write code like this should not be allowed to practice.

This is really misplacing the responsibility and shows a lack of understanding about what is actually happening in the industry.
People expect their salary to go up for a number of reasons, but the major factors are inflation and cost-of-living. If your salary is not going up by at least a certain percent a year, you are likely stagnating or losing income.

Another reason people expect their salary to go up is because it is a basic expectation that has existed for decades, and one upon which the supposed fairness of the current market is predicated. The idea is that you start young, earn little, work your way up, and earn more. Life is _much_ more expensive the older you get.
> While I think that 'studying for a test' is a pretty charitable interpretation of events I think the parent has a point. While making it clear to car makers that there is a line which they can't cross is a good thing; I think serious though should have gone into making the test less easy to game in the first place.

> I suspect similar cheats are employed all over the industry. For example my motorcycle has a dead spot which people have been known to bypass the clutch switch to avoid. The reason for the dead spot is that the noise test is carried out at a specific speed and by programming a dead zone in the fuel map they can make it pass the test.

Can you go into more specifics about this? I used to ride and am embarrassed that I have no idea about this "dead spot" you are referring to.
As I mentioned in another post in here I'm running a 4 Raspberry Pi Kubernetes cluster at work (based on K3S).

At home I use RPi Zero W for controlling my media centre in the living room (Mopidy-based) from my kitchen.
Ask HN: How do you respond to security questionnaires?
A software company we are integrating with wants their 100 question security assessment questionnaire completed. Any advice?

We are a two engineer team without a SOC audit and without a third party pen test that stores medical and financial data.

These questionnaires are time consuming and redundant. It seems insecure to produce something that details our security too. Does a /security page with some details suffice? Am I just being lazy?
Speaking of did anything happen with all those insurance files he posted during his exile/asylum in the embassy? Were the conditions extradition or did nothing ever come of them.
I'm not OC, but my solution there would be to seek non-Amazon based UI :)
This is something that worries me about current green initiatives. We throw down subsidies for electric cars, but they still fuel on coal fired plants. Or all the money we throw away to make ethanol.

It would be so much better if we just started taxing externalities like carbon or fertilizer runoff and let markets decide the tech to do it organically.

But let's not let the car oligopoly completely off the hook. At some point they all took that step over the line.
Testing ActionText without JavaScript (Ruby on rails)
One runs pi-hole, and maybe soon will also run pi-vpn. The other runs a small Nextcloud instance that I use for org files and such. In the past I also had magic mirror installed on one and used it as a sort of weather/reddit/news dashboard.
What legal trouble might there be for providing references?
This would be a good application for a Pi Zero W (with WiFi) - if you want to collect the data in a central location. I've linked the CO2 sensor I used in another comment.
This is a silly framing, but I'll bite: All Chromium and Gecko browsers are based on Unix pipes (and Windows named pipes) for IPC. Chrome and Firefox together bring in billions of dollars of advertising revenue.
Regarding your mutual backup idea, I love this and I've wondered why this hasn't taken off as a Thing in response to how many of us are untrusting and DIYers in this era of cheap storage and bandwidth.
ФЕЙЛЫ #4 ОМАГАТ ЭТО САМЫЕ СМЕШНЫЕ ПРИКОЛЫ И НЕУДАЧИ
Huawei runs most of KPN. Bet you we'll never know the real cause just management bllsht. The real reason probably is not spending money on the right places (aka people, redundancy, protocols, upgrades, etc) but on CEO lunches or stuff like that.
It's probably less than ideal to start trying to rank the severity of the misconceptions in a general way, straight out of the gate. I just don't see the point of skipping the nuance and going straight for the partisan circle jerking.
Thank you. That's what I should have said. :)
Fabricating attention.
The Petrie multiplier: how oppression is amplified against minorities
Probably in the realm of "can't be manufactured within the community leading to a reliance on the outside world for something we don't really need". Not relying on the outside world is also a pretty big theme of their culture.
Agriculture department buries studies showing dangers of climate change
Conspiracists will always tell you they're skeptics, though.
Hempcrete Lego bricks with negative carbon footprint
Did you also acquire an ASCAP/BMI license for the music-on-hold? A lot of people are unaware that is classified as a public performance of the music and requires a license. Unless you are playing royalty-free music, in which case you are fine.
Oh, no. I'm certainly not seeking legal advice :) Consider it more of 'thinking out loud'. But given the karma on my posts, maybe my idea isn't being conveyed.

I was thinking more akin to the lawsuit that happened against Trump 1.5 years ago, when he was blocking citizens on Twitter. And he was overruled in court. I think the legal confusion was "what is a private social media site when politicians are making political speech?"

I know we also had a snafu here in Bloomington, IN over the same. A politician was using a local FB group for campaigning. They were also a mod as well of the group, and were restricting speech on said group. It was resolved in an unrelated way when they were caught in some questionably illegal things, and they stepped down. But left the 'private social media, with politicians and political speech' unanswered.
Uart is just serial, you’d connect it to your serial pins on the pi and read serial from Linux like normal. Data is whatever the protocol Honeywell is using. Could be any range of things sent in a predictable pattern. Could be timestamp,temp,air quality,status, and then some kind of delimiter like newline or eor. Note the pi devices use 3.3 volts instead of 5 so you have to make sure Honeywell is not sending too much voltage as a logical high. There’s probably an easy way to convert it though using a voltage devider.

How much do those sensors cost?
I have three connected in a Spark cluster.
I work for the Raspberry Pi Foundation, in the Education team.

We're always on the look out for new ideas and projects to turn into learning resources.

If anyone would like to share their code, wiring diagrams and setup processes, then please feel free to email me.

marc@raspberrypi.org
Fuck yeah (tm)
I don't regret it, because I'm not the type to look behind me.

But still, I'd say you can pursue entrepreneurship. Plenty of people do. I do subcontracting and I love it. It's not a jobby-job but still is pretty stable (provided you are a good saver because IMHO freelancers need one year of living costs set aside).

As for intimacy, I found out that the key is not to be overly tired all the time. Both need to have a breather at least once a day. Get a babysitter or an au pair or something.
Bill Gates says letting Android win mobile was his ‘biggest mistake’
Those "hipster bubbles" are the areas where most tech innovation is happening. Nobody is saying that insurance companies aren't using .NET.
The “zero value of a type should be useful” concept is pretty fundamental to Go’s design. You can imagine compiler tooling that didn’t alter the language allowing you to catch unintended uninitialized values, but a language that changed the underlying default would no longer be Go.
Seems they tried exactly that with the Boeing 737 MAX.

What could ever go wrong with that?
Ironically, Firefox is also based on XP/COM (though less and less over time, thanks to deCOMification and deCOMtamination).
Well, one counter point is the religious one. If one holds onto hope until the natural end of life, then they are guaranteed a great final situation in heaven that will never get worse. Conversely, despair and suicide are often considered the sure way to enter hell. In this hypothetical scenario, the tropes of "it gets better" and "permanent solution to a temporary problem" are literally true, regardless of how difficult a person's life is.
Yes, that will be a complete success with anything coming from/going to China. Because we all know that they respect IP.
Do you normally just install whatever you find on the internet, or are modern os secure enough?
I'm not so sure about always "stay indoors" part - in particular in case the dams leak and half of the country is about to be under water.

I guess depends on the height of your house - though in quite a few places even rooftop might be below or close to sea level.
1. RPi 1B (256 MB RAM) as my home phone/voicemail system, using Asterisk PBX (with FreePBX). Have used it since it first came out.
2. RPi 1B+ as a car media server with minidlna using a USB WiFi adapter.
3. RPi 2B as an ownCloud server.
4. RPi 3B as a LibreELEC (Kodi) media (streaming) center.
5. RPi Zero W. No use yet.

I have used the 3B for RetroPie as well in the past.
I am planing on using a RPi for different kinds of webscraping in the future.
I would also like to set up a NAS/backup server.
I don't believe flat earthers should be banned from social networks, so it sounds like we're in agreement.
Four things:

1. Pihole to ad block ads (useful for phone browsing) https://pi-hole.net/

2. Custom Weather conditions dashboard, using Dark Sky's API

I'd love to replace the weather dashboard with one of my integrated work / personal calendars so I could see what meetings I have each day but work won't expose that data, claims it's a security risk.

3. Custom NYC subway dashboard, showing me estimated train arrivals for trains at the 2 closest stations.

The MTA has free apps which also show estimated train arrivals but only for one station at a time. Also, the MTA's train estimation methodology isn't as accurate as it could be.

4. Retro Pie, to play NES and SNES games https://retropie.org.uk/
You would have two images, one with all compile time dependencies, sources, etc, which you use to assemble the release, and another image with only the artifact (the release) and none of the rest. Hex (Elixir's package manager) is open source and uses this approach, which you can see here: https://github.com/hexpm/hexpm/blob/d015973e472af59644ee537f...
Facebook Free basics also suffers the Tom's Shoes problem [1] - basically by giving away the free service in a developing country, it kills the local economy for the same service and sets it back, not forwards. By saturating the ISP market, Facebook is hindering ISP development in Brazil.

This would be less of a problem if Facebook offered net neutral internet service but they're not - FB is only offering free access to theirs and a handful of partners websites. It's charity message of bringing "free internet to people who don't have it" is a red herring to the problems it presents.

[1] https://knowledge.wharton.upenn.edu/article/one-one-business...
This is really interesting to read. I've been writing Go for about ~4 years professionally, and recently (<6 months) jumped into Elixir (and a bit of Rust). They've been nothing but a breath of fresh air, and I can't wait to write more as I'm starting my new thing. I'm definitely more excited about Elixir as it's really, really pleasant to write and in some sense, a major increase in productivity.

Agree about typed parameters + implied returns, but you can get some of that back using guards + dialixer/dialyzer.
You're being downvoted, but to a large extent, you're probably right here. For many topics journalists used to cover, you genuinely don't need them any more, since enthusiasts posting Patreon/donation funded content is at least as good in terms of quality. Tech, games, TV, music, sports, celebrity gossip, all of them can be covered just as well or better by some random guy on YouTube or some online blog site.

And that in fact be another reason why the media as a whole is doing so poorly. In the old days, a fair few people read the papers for this stuff. Nowadays they can get the same information elsewhere, without the stories they're less interested in taking up space.
Tell us more! My team is currently looking for a digital signage option that would include cable/IPTV of some variety.
How Verizon today sparked a 'cascading catastrophic failure'
FlightAware in particular gives you access to a greater level of data and services on their site if you're an active contributor via a PiAware.
Also, honestly, it's just fun fooling around with the antenna and software setup to maximize the number of flights I can see :)
"Properly controlled immigration can be good for America" is a meaningless question. Of course Democrats would think Republicans would be opposed to this idea. The idea of "proper control" is the whole debate! We have republicans who feel that building a wall is part of properly controlling things and democrats who think it's a moral outrage. Several of these questions are phrased so as to make them non-partisan and in doing so create a "bad people on both sides" effect. Vague statements like this create bad sociology my friends!

This isn't about a perception gap. It's about not putting together very good polling questions and then drawing some conclusions based on them.
I understand your point but must say it's 100% unhelpful, facts on the ground is that suicide rates among young people are up. Are kids faking some sense of doom and gloom to get likes on Instagram? Sure. But I doubt these kids are willing to go far enough to actually commit suicide and influence these numbers in a substantial way.
This is such a defeatist attitude that lets VW off the hook. We may yet find that everyone was doing it but this isn't it. No one has been found to be doing large-scale cheating like VW so far. And the technology to make diesel cleaner has always been there. The VW scandal is exactly that they cheated to make the cars cheaper by avoiding having extra emissions hardware. Even after all the scrutiny diesel cars are still being sold and as far as we know pass emissions.
It’s really important to understand that ideology does not arise in a vacuum; it is an expression of one’s material conditions. For example if you tell me you believe that taxation is theft and the free market will solve your problems, I can reasonably guess that you are the owner of some business for whom labor is just a cost and taxation to support public goods is going to cost you more than it benefits you. That includes everyone from corporate interests down to small business owners. The rest of the republican base is those who can be induced to be allies of the above on the basis of race. Keep that in mind and all their ideological positions suddenly make sense. They’re just looking out for number one. Even the immigration stuff; labor is at a disadvantage when capital can move freely but labor is stuck.

This is also the reason that the extreme right has often had corporate sponsorship at key moments in history.
Why not? The recursive call gets optimized away, so it's just as fast as a loop.
Fortigate is pretty configurable. I’d be really surprised if it couldn’t do site to site or site to client with a little configuration.
Probably not, this might to push blockstack's possible ico.
A plan to phase out fossil fuel production in the US
Jerk (Physics)
https://www.theverge.com/circuitbreaker/2019/6/24/18715211/r...

they write "It reportedly struggles with full screen video playback from YouTube for example, even if you turn down the resolution to 480p."

I was surprised by this review too. Not sure where they get that from
Ars Electronica, who was a host to the Telegarden for some time, as featured in the article, did a follow-up project called Telezone where people on the Internet could control a robot to build a miniature "city" -> https://ars.electronica.art/futurelab/project/telezone/
>We are a two engineer team without a SOC audit and without a third party pen test that stores medical and financial data.

>These questionnaires are time consuming and redundant.

This is how data breaches happen. You should be willing to jump through a few, usually reasonable, hoops if you're storing medical and financial data.

Instead of looking for a quick-fix that will "suffice", you may consider actually securing the sensitive data you hold on other people.

Edit: After a little googling, I'm genuinely concerned about the product you are offering, at a firm of your size, with no compliance. Yikes from me.
Deport those Indians first
Lack of language improvement. Sure, you can do anything with macros, but then when you open some random open source library it may be using different macros (or macros that are named the same way but act differently) than those that you use. Putting something in the language forces everybody to use the same standard. It can be good and it can be bad.
Here is some promotion codes:

9KJ9RFYF9ARW
KWXLKFPWKA9J
TPWWHEWTYTH6
H67F7TH6LRXR
FTE9H9J3X96K

(for info the codes will expire on 2019-07-22)
A thermostat in a car is more than just a sensor, it is usually also directly opening or closing a conduit through which coolant can flow into the engine.