Better HN
topnewbestaskshowjobs
Log inSign up

andoma

571 karma · joined Jan 21, 2013 (13y ago) · 134 submissions

Submissions

comment 6y ago · link · parent

A self-plug for my own HAP C library: https://github.com/andoma/libhap

I've been using it on a Raspberry Pi to control various things and recently decided to shape it up and release it to the public.

comment 7y ago · link · parent

Somewhat related, IPv4 addresses can also be represented in a shorter classfull form NET.HOST, like

  10.1 == 10.0.0.1
  192.168.1 == 192.168.0.1
While it has practically no use in today's CIDR [1] internet, it's still a useful shortcut for home-networks, etc (I have my home network configured as 10.0/24)

  $ ping 10.1
  PING 10.1 (10.0.0.1) 56(84) bytes of data.
  64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.181 ms
I've also recently stumbled on some software that no longer parses this address form. Can't remember where though.

[1] https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

comment 7y ago · link · parent

Tangental: Reminds me how buttons in various places (I've noticed this in elevators and POS terminals) beeps when you press them. However, the beep is not really tied to the CPU registering the event but rather the button itself being pressed. Ie, sometimes when you press the button, it clearly beeps, but nothing happens. Not sure if it's a result of underspecification or cheaping out on the electronics or both.

comment 7y ago · link · parent

Imagine the disappointment when pressing enter and nothing happens because the key didn't register.

comment 7y ago · link · parent

> 2 b) Maybe cloud functions are enough?

I generally agree, but eventually you're gonna start getting emails saying things like "We're deprecating Node 8.x in our Lambda / Cloudfunction / etc"

comment 7y ago · link · parent

No, It's not just you.

comment 7y ago · link · parent

Very true. Another upside of deriving all timing from actual outputted samples: If your application have a sequencer which does "bouncing" (i.e. generating a recorded file, or similar, from the project) you can just run the sequencer as fast as possible in a loop which just writes audio to a file without any concerns about real time, etc.

comment 7y ago · link · parent

FWIW, GCE have console. Another thing I miss in AWS is the ability to change instance user-data while running (GCE also allows this, including the ability to long-poll for changes)

comment 7y ago · link · parent

When this happens I just switch to tethering from my cell phone. Redundant enough.

comment 7y ago · link · parent

Correct, my bad. Did some tests and AFAICT neither EXT4, XFS nor BTRFS allows arbitrary byte ranges here.

comment 7y ago · link · parent

It will remove if you use FALLOC_FL_COLLAPSE_RANGE

comment 7y ago · link · parent

I returned Comcast's modem because:

1) I wanted better control of routing (have a bunch of wireguard tunnels). I want all the IOT-crap on a separate network, etc.

2) Whenever there is a transient link connectivity issue on the cable side it seems that the comcast modem tries to "fix" this by rebooting itself which takes a good 5 minutes.

I got a Netgear CM700 which is basically just a DOCSIS / Ethernet -bridge (you just get the public IP using DHCP on the ethernet side).

The cable modem connects to a homegrown Linux ARM based router and then I use Unifi PRO Access Point from Ubiquity Networks for Wifi. Never looked back since. The Unifi AP have multiple SSID's configured which is separated on different vlans on the way back to the router. The Netgear modem have so far never had a single hick-up from what I can tell (about six months in now).

OpenWRT certainly is an option, but unfortunately getting high performance wifi out of it is a bit of a dice roll in my experience. I've tried a few hardware variants but eventually gave up and bought the Unifi PRO instead. Also I'd just rather have separate things that do each thing well.

comment 7y ago · link · parent

Two of my favorites:

Madness took me from Mental Hangover by Scoopex:

https://www.stef.be/bassoontracker/?file=https%3A%2F%2Fapi.m...

Global Trash 3 v2 from Hardwired by The Silents:

https://www.stef.be/bassoontracker/?file=https%3A%2F%2Fwww.s...

Both demos where trendsetting and truly ahead of its time.

comment 7y ago · link · parent

Ongoing effort of restoring an AGC

First episode: https://www.youtube.com/watch?v=2KSahAoOLdU

comment 7y ago · link · parent

Lookback | Mobile developers | Remote | Fulltime

Helping the world build great experiences.

Lookback is a cash flow positive, remote-first, SaaS startup from Stockholm, with headquarters in Palo Alto.

Android Developer: https://lookback.io/jobs/android-developer-2019/

iOS Developer: https://lookback.io/jobs/ios-developer-2019/

About: https://lookback.io/about/

comment 8y ago · link · parent

I believe the correct solution to this problem would be that the installers would snapshot the system, install all packages without any fsync()ing at all, then finally one sync() and remove the snapshot. Optionally keeping snapshots if user want to roll back from a broken upgrade (for whatever reason). Again, as others have written here, btrfs is great if your software plays along with it, otherwise it might not be so great.

comment 8y ago · link · parent

Lookback | Devops | Remote | Full-time

Lookback is a cashflow positive, remote first, tech SaaS startup from Stockholm, with headquarters in Palo Alto. We are growing and now we need a hands-on operations person capable of working in a devops organization to help us figure out how to move forward.

This is a senior role. Basically, what we need you to help us figure out, and do, is:

* Improve and maintain our hosting environment on AWS.

* Work methodically with monitoring, alerting, logging and analytics

* Work with developers to improve shipping culture and tooling.

To to be able to do this, we think you should have solid experience in at least Linux, AWS and Docker, or similar technologies (…and tell us about that super important thing that we don’t even know about yet). Also you’ll need curiosity and a genuine drive to keep developing and improving our systems.

Nothing is on fire, few things are set in stone, so this is a great opportunity for someone who knows what they are doing to come in and show us how it is done.

We offer competitive salaries, stock options and benefits.

We have a small but highly competent team of engineers and a hands-off management culture. And we love building tech.

The position will be based remote in Europe or North America.

Apply here: https://lookback.io/jobs/devops/

comment 8y ago · link · parent

Although still in beta, I'd like to add BearSSL to the mix of well written and documented C libraries. In particular compared to the OpenSSL "documentation". It's also nice to see an TLS implementation without any memory allocations at all.

comment 8y ago · link · parent

Yup, The 32GB version should really be called Slackbook Pro.

comment 8y ago · link · parent

Yup. Has happened to me multiple times as well on AWS. GCP OTOH offers (optional) live migration of instances.

comment 8y ago · link · parent

FWIW, Safari does not include your local IP address in the list of candidate addresses for WebRTC until you also authorize the page to access your camera.

comment 8y ago · link · parent

Fair enough :-) I'll read more thorough next time.

comment 8y ago · link · parent

FWIW the second example of finding halfway points in https://web.stanford.edu/class/cs9/sample_probs/ListShufflin... is buggy. Crashes if the list have odd number of elements.

comment 9y ago · link · parent

For the record, gcc and clang does this as well when using the restrict keyword. (I'm still a big fan of Rust though)

  int foo(int *restrict x, int *restrict y) {
    *x = 0;
    *y = 1;
    return *x;
  }
Compiles to:

  foo:
    movl	$0, (%rdi)
    movl	$1, (%rsi)
    xorl	%eax, %eax
    ret

comment 9y ago · link · parent

Yeah, this was more a generic comment not specifically aimed at Atom. Sorry if that wasn't clear.

comment 9y ago · link · parent

Personally I don't mind RAM usage that much. I'm more concerned about excessive CPU usage resulting in unnecessary battery drain on my laptop or annoying fan-spinning.

comment 9y ago · link · parent

tcpdump -nw - | strings -n 6

Credit to https://twitter.com/marcan42

comment 9y ago · link · parent

Thanks, Very happy to hear this :-)

comment 9y ago · link · parent

Even though a GCE instance can be made to boot pretty quicky it's a bit sad that it takes around 40-50 seconds before any network connectivity can be established.

I asked a question about it here a while ago https://serverfault.com/questions/845298/no-network-connecti...

Checked again just now, approx. 40 seconds between pressing START in the console UI and until I can ping 8.8.8.8, using serial console on Debian Stretch.

If anyone have a clue how to improve this I'd be most happy to hear about it. I'm using this for CI builds.

comment 9y ago · link · parent

Exactly this. Expanded the SSD in my late 2014 MBP recently. At least that's still possible. Just praying now that it won't break down.
12345