Better HN
topnewbestaskshowjobs
Log inSign up

flexd

650 karma · joined Jun 13, 2010 (16y ago) · 320 submissions

Embedded Software Developer http://github.com/flexd
Submissions

comment 6y ago · link · parent

I'll try it out!

comment 6y ago · link · parent

I find that the hardest thing about logging what I eat is knowing what I eat, and what calories those things contain. Often I eat lunch at work where they serve a ton of different dishes, and I dont have the opportunity to weigh what I eat, and I have no idea what exactly they put in that said that day. If I try to err on the side of caution, I'll be super hungry because the number of calories I ate does not add up to the number logged. Unless I have the time to make all my food and measure it or only eat processed/pre-made food that is labeled it's hard to keep accurate track.

Do any of you feel the same way? I have used Myfitnesspal and similar before, but have never stuck with it. Before I have stayed reasonably fit because I usually ride mountain bikes a lot,but the past few years there has been less riding and I'm now +10kg my normal weight at least.

comment 7y ago · link · parent

The point here is to improve the user/developer experience learning Elm. It's one of the things that make Elm such a nice language to work with. A error message that suggests how you might fix the problem is so useful when you are not familiar with the language or programming in general.

Being able to do frontend development that /just works/ when it compiles is fantastic. I have yet to use Elm for anything serious because I mostly do backend work, but if I need to Elm would be my choice. No more 'undefined is not a function' mysteries or trying to figure out what part of the latest Javascript framework is stopping me.

Elm has the basics of what you need to develop frontend applications today, even though I'm sure there is work to be done yet.

comment 7y ago · link · parent

> "[...] Don’t be surprised if they flash their high beams. It’s common and only considered mildly rude. Just move over."

According to the very angry and also very stereotypically German Police officer pulling over me and my friend back in 2017, flashing your lights is in-fact illegal. We were doing approximately 140km/h having just passed the police car in the left lane when someone pulled out ahead of us going much slower forcing us to slam the brakes to avoid hitting them. No blinkers were used on their part and we flashed our lights as we had seen and experienced countless times on our trip to let them know we were coming. We had driven all the way down from the top of Denmark, through Germany, France and Switzerland, down through parts of Italy and were then on the way back up through Germany when this happened so we had seen people flashing their high beams like that countless of times, and it seemed like a good practice if you were going much faster than the people ahead.

My friend was driving at the time and luckily got no ticket and kept his license after getting scolded by the police officer for a good 15 minutes.

No idea if it's actually illegal, but considering of angry the police officer was I'm assuming so. We were confused as to why they stopped us at first, and he kept yelling/asking "what is that? Why do you do that?"

Other then that my experiences driving on the Autobahn (and that whole stretch of road) have been pretty good! Very straight roads of decent quality where they seem to use concrete or something instead of asphalt like they do here in Norway. Someone else mentioned the speed limits kept going up and down over short distances, which I remember as well.

I think the most perplexing thing for us driving on the Autobahn is that you can purchase alcohol, even the stronger stuff, at the gas stations along the way, coming from having a strongly regulated alcohol monopoly system here in Norway where anything stronger than 4,7% alcohol is only available at Vinmonopolet, which is only open specific hours and dribks with a lower percentage are also only available in normal stores within certain hours.

This is turning out to be a much longer comment than I intended.

comment 8y ago · link · parent

So the whole problem could have been avoided if you had chosen a more mature programming language at the time time? Perl, Python and PHP all had perfectly good SQL libraries at the time, as well as a lot of other languages that have been around a long time.

comment 8y ago · link · parent

I'm looking forward to the video! Wish I could have been there but I had accidentally^W unfortunately booked my return flight just after the talk ended.

comment 9y ago · link · parent

In my experience the brushed motors used for that size either break quickly with crashes, or just stop to work within 4-6 hours (max!) of flight time. The brushless motors are much more solid and less likely to fail. I have broken many of those too, but they last a lot longer.

comment 9y ago · link · parent

This article is very outdated. Small brushless quadcopters are readily available now. Such as the Hoverbot Nano [1] mentioned in another commment, or a Eachine Lizard [2], and lots more.

And you can go even smaller, such as a pepperfish [3]

This is a small brushless quad with 0703 motors with a 1 cell battery. https://i.imgur.com/EdFFfsc.png / http://rotaro.no 54mm in diameter

[1] https://hoverbot.io/ [2] https://www.banggood.com/Eachine-Lizard95-95mm-F3-FPV-Racer-... [3] http://fishpepper.de/projects/pepperf1sh/

comment 9y ago · link · parent

https://github.com/neovim/neovim/issues/2211

There are packages for Jessie at the very least.

comment 9y ago · link · parent

Does anyone know of a good open-source alternative to rollbar?

comment 10y ago · link · parent

I haven't replaced Docker with rkt on a big scale (or ran Docker on a big scale), but I recently changed over some Docker containers to rkt.

First off, this and the rest of the rkt docs is a good starting point https://coreos.com/rkt/docs/latest/rkt-vs-other-projects.htm...

Second, rkt runs Docker images without modifications, so you can swap over really easily https://coreos.com/rkt/docs/latest/running-docker-images.htm...

rkt uses acbuild (which is part of the application container specification, see https://github.com/appc/spec) to build images, and I had a very tiny Docker image just running a single Go process.

I just created a shell script that ran the required acbuild commands to get as similar image.

A good place to get started is the getting started guide https://coreos.com/rkt/docs/latest/getting-started-guide.htm...

Docker runs as a daemon, and rkt doesn't (which is one of the benefits). I just start my rkt container using systemd, so I have a systemd file with 'ExecStart=/usr/bin/rkt run myimage:1.23.4', but you can start the containers with whatever you want.

It's also possible to use rkt with Kubernetes, but I have not tried that yet. http://kubernetes.io/docs/getting-started-guides/rkt/

comment 10y ago · link · parent

This doesn't help my impression of Digital Ocean at all (even if I am a paying customer currently). A few years ago you could impersonate Digital Ocean staff on their support pages with no effort. They grabbed the username from your email, so whatever you put in front of the @ becamse your username on the forums, visible to everyone. And the avatar came from one of those email->avatar services where you can sign up and set it to anything. So when I signed up with a username like digitalocean@mydomain.com, I ended up being called "digitalocean" on the support forums, and if I had wanted I could just change the avatar to the Digital Ocean logo and impersonate DO or anyone else.

I tried reporting it but got pretty much the same answer as this guy (though I did not get banned). Luckily they fixed it like a year later.

Great write-up, and interesting problem! I wonder if more hosting providers are vulnerable to the same problem.

comment 10y ago · link · parent

Here is another example of the exact same: a SoundCloud client written in React+Redux https://github.com/andrewngu/sound-redux http://soundredux.io

comment 10y ago · link · parent

Arq only runs on Windows and OS X though. I would prefer to use something open-source, that runs on Linux. I won't be renewing my Crashplan subscription when it expires.

comment 10y ago · link · parent

Except if you have a bit of data you'll spend a few years uploading it. Their servers are slow. Only getting like 5-20Mbit/s, mostly slower here in Europe.

comment 10y ago · link · parent

I am also interested in rkt support, so I created an issue like you suggested. https://gitlab.com/gitlab-org/gitlab-ce/issues/17784

comment 10y ago · link · parent

This is a perfect example of what an attacker could do with your browser. If you can get a user's browser to run code, as this site demonstrates there is a lot of information you can find. And coupled with a Cross-Site Request Forgery, you could get access to a bunch of things. If your home router has a vulnerability that bypasses authentication and allows you to execute commands on the router or similar (which is not uncommon, home router security is awful), you could get a foothold into the network just by sending someone a email with links that they are likely to click on.

Note to the author: I am not entirely sure how the WebRTC connection gets you a local IP, it seems to be connecting to stun:stun.services.mozilla.com. Anyway,that grabs the wrong local address for me, and gets the IP of my docker0 interface, perhaps it could grab more IPs, or is it just displaying the first one it finds?

Edit: Oh, the getIP function just calls the callback on the first candidate it finds.

comment 10y ago · link · parent

Use GPG/OpenPGP and encrypt it before sending it to your colleagues? https://gnupg.org/

Or use a zerobin instance somewhere (encrypts things clientside with AES 256) and pass them a link. https://zb.a.im/

49.

The 2015 SANS Holiday Hack Challenge: Fun for Everyone(holidayhackchallenge.com ↗)

2 points · by flexd · 10y ago · discuss

comment 11y ago · link · parent

Seems so. They have a website http://www.haka-security.org/

comment 11y ago · link · parent

A container is just useful. But given Go's static binaries, you could also just ship the binary over to a server and be up and running. But it's nice to just have a container with all the bits/config inside that you can just copy over. The benefits of a container are the same for any language.

comment 11y ago · link · parent

I would choose Go. It comes with an excellent built-in package net/http (https://godoc.org/net/http) that quickly allows you to setup a web service. An Go's mechanic (?) of implicit satisfaction of interfaces allows you to do some really cool things. One of the gripes about Go seems to be error handling, and your code ends up with a whole bunch of 'if err != nil { stuff }'.

Matt Silverlock (http://elithrar.github.io/article/http-handler-error-handlin...) talks a bit about how you can use some of Go's strengths to create a web services without any frameworks or packages that aren't built-in. Go and net/http is very powerful and allows you to do very much without needing any external packages.

If it was up to me, I would write the service in Go and run it in a container somewhere. But the container is not required :)

Go has been a bit lacking in debugging options previously as you said, but lately cool projects like godebug https://github.com/mailgun/godebug and Delve https://github.com/derekparker/delve have been released, making it possible to debug programs better.

comment 11y ago · link · parent

My intentions is that I want a complete list of .no (Norwegian) domains, and http://norid.no refuse to give out that list to anyone.

I would like to be able to continuously check the Norwegian IP-space for compromised sites, because it would be interesting to see. Of course doing this on a bigger scale would be cool as well.

comment 11y ago · link · parent

I am interested.

comment 11y ago · link · parent

Have you looked at https://github.com/jmoiron/sqlx It's a nice little wrapper around database/sql that offers some of the things you talk about.

comment 11y ago · link · parent

Given that a suitcase is not very solid and you are walking away with it to break open at your leisure, why does the padlock matter?

comment 11y ago · link · parent

Apparently dl.google.com is powered by Go. I'm guessing that get's a fair bit of traffic too.

http://talks.golang.org/2013/oscon-dl.slide

comment 11y ago · link · parent

I do not plan on living with my parents forever. Basically I can either pay like $1000++ per month to rent, which would be money I never see again, or if you have saved up money like I have, I can get a loan and buy something and spend about the same paying down the mortage. Money well spent, because at some point (like 25-30 years) I will own the apartment outright. Of course I will probably not remain in that apartment for the next 25 years, but it is basically an investment. There are only so many places to live in central Oslo, and the demand is always going up. And even if the market crashes and I lose a lot of money, the prices of all the other apartments will be lower as well, so I would be able to buy another place at an equally lower price.

Loan interest is very low at the moment, around 2.7-2.9%, and to counter everyone loaning way too much, you need to have 15% of the loan sum in order to qualify. I can expect to pay maybe $320k for a apartment in Oslo, depending on how big and where it is. $320k would typically be >50m2 somewhat central, or 30-40m2 very central (those go for even more). I will need to have about $48k in cash to be able to get a loan at that price.

I also have some student loans, but I have basically my whole life left to pay them off at a very low interest, so I pay like $154 every two months or something I think. It is the best interest loan I am ever going to get, so there is no point just paying it down immediately even if I have the cash for it.

TL;DR: Paying for a mortage is better than paying someone else rent, and I do not want to live in my parents basement forever.

comment 11y ago · link · parent

I make around $58k before taxes. Currently near 100% of that is going into a savings fund to buy an apartment. My parents generously offered to let me live in their street level basement for free until I can afford buying my own place, so I moved in last summer after I finished university. I am close to having enough money to get a loan, and I am looking for a suitable place now. Trading some of my privacy and independence at 27 years old is probably hard for some, but I have a good enough relationship with my parents that living with them is not a huge problem, even if my social life (i.e having people over) has been somewhat diminished.

This does not answer much of what you asked for though, since you are not in the same situation.

When I was in university I worked part-time, and I also got a loan&stipend from the government (as all students do in Norway). I usually made enough to save 40-50% of my income, which is why I have money saved up now. I made maybe $15k before taxes from work and got about the same in student loans. 40% of the student loans gets converted to a stipend if you pass your exams.

By the budget I have planned for when I buy an apartment, it will look something like this:

- Rent/Loan: 40%

- Groceries: 12%

- Utilities/Electricity/Stuff: 16%

And then there are probably more expenses I have not accounted for, but hopefully I will be able to save some money, but probably less than 32%

comment 11y ago · link · parent

Luckily for us; there is a low risk of Cylons for the foreseeable future!
12345
11