HackerTrans
TopNewTrendsCommentsPastAskShowJobs

PascalW

no profile record

Submissions

The surprising struggle to get a Unix Epoch time from a UTC string in C or C++

berthub.eu
131 points·by PascalW·tahun lalu·96 comments

Synctrain: A Rethought iOS Client for Syncthing

t-shaped.nl
4 points·by PascalW·2 tahun yang lalu·0 comments

Advent of Code 2023

adventofcode.com
4 points·by PascalW·3 tahun yang lalu·0 comments

It's time for Flutter to adjust its market strategy

blog.flutterbountyhunters.com
1 points·by PascalW·3 tahun yang lalu·3 comments

Android in Docker without QEMU/emulator

github.com
226 points·by PascalW·5 tahun yang lalu·71 comments

comments

PascalW
·tahun lalu·discuss
Thanks for the shout out to kindle-dash! <3 Great looking dashboard you have there!
PascalW
·3 tahun yang lalu·discuss
Instead of using a cronjob you can put the device into sleep and use the RTC to schedule the next wakeup (see [1]). This takes only very little power, as the device is only turned on for mere seconds and sleeps the remaining time.

[1] https://github.com/pascalw/kindle-dash/blob/main/src/dash.sh...
PascalW
·3 tahun yang lalu·discuss
Some Kindles can easily be jailbroken [1]. I have two jailbroken Kindle 4 devices and they're still great. Both for reading (though you have to sideload books) and as e-ink dashboards [2]. A Kindle 4 can run for ~ 28 days on a single charge, refreshing the screen every hour.

[1] https://wiki.mobileread.com/wiki/Kindle4NTHacking#Jailbreak

[2] https://github.com/pascalw/kindle-dash
PascalW
·3 tahun yang lalu·discuss
Have you considered managing DNS records with Terraform or Pulumi? That way you can easily automate (bulk) changes.

Edit: this is possible with Namecheap as well, see https://registry.terraform.io/providers/namecheap/namecheap/....
PascalW
·3 tahun yang lalu·discuss
Flutter is no longer the only game in town (using the same approach), new solutions have come that are direct competitors.
PascalW
·4 tahun yang lalu·discuss
I've personally only tested it with a Kindle 4 NT. I haven't had any reports of people using this on other Kindle devices, but in theory it should work as long as the device is jailbroken.
PascalW
·4 tahun yang lalu·discuss
Highscalability.com was great! I still follow their RSS feed but there's not a lot of new content nowadays. If someone knows a similar resource I'd love to hear about it!
PascalW
·4 tahun yang lalu·discuss
Flutter for web is quite rapidly improving in all the areas you mentioned. For right now I think it's already very suitable for highly complex browser applications such as a Figma, Google sheets etc. Load times aren't the best due to a quite hefty WASM download, but for _applications_ that you typically open only a couple of times per day and where you work in for several hours, that initial loading delay really doesn't matter.

Just don't expect to use it for an E-Commerce site or something like that.
PascalW
·5 tahun yang lalu·discuss
I'm using it myself to run Whatsapp for the Matrix Whatsapp bridge [1] on a VPS.

[1] https://docs.mau.fi/bridges/go/whatsapp/android-vm-setup.htm...
PascalW
·5 tahun yang lalu·discuss
Interesting. I've never been able to make Anbox run in a cloud environment though, don't recall the exact details. But indeed I guess it should be able to work as there's also a commercial offering targeted specifically at cloud setups. https://anbox-cloud.io/
PascalW
·5 tahun yang lalu·discuss
Came across this very useful project. It provides Docker images with Android running directly in Docker, without qemu or an emulator. I've never seen this before, all other solutions that I'm aware of either run the Android emulator in Docker or use qemu directly (like Anbox).

Advantage of this is that it's very lightweight and does not require VT-X or AMD-V, ideal for running in cloud environments that typically do not expose this CPU capability.
PascalW
·5 tahun yang lalu·discuss
Very similar. I guess it's really k8s (the control plane) itself that is so resource intensive. Looking with top right now kube-apiserver, kubelet, kube-controller, kine and k0s use 13.5, 12.5, 5.6, and 3.0 % CPU respectively. Obviously it fluctuates quite a bit, but seems to be around 25-30% of 1 CPU core too. Also uses about 500-600mb of memory.

So yes, it definitely takes quite a bit of resources. I'm running this on 4 CPU cores and 6 GB memory, so 25% of 1 core and some 600mb of memory still leaves plenty of resources for the services. On a more philosophical note (as was mentioned below in this thread), it is a bit wasteful perhaps.
PascalW
·5 tahun yang lalu·discuss
Curious what makes you think k3s is the better choice? The only reason I ended up going with k0s was that I had problems getting k3s working well behind a locked down firewall. With k0s that was pretty easy.
PascalW
·5 tahun yang lalu·discuss
I'm using iptables myself and it works fine, though you have to make sure that traffic on the kube-bridge interface is allowed.

With iptables:

  -A INPUT -i kube-bridge -j ACCEPT
  -A OUTPUT -o kube-bridge -j ACCEPT
Other than that I've configured iptables to drop all incoming traffic except a few whitelisted ports.
PascalW
·5 tahun yang lalu·discuss
I'm doing something similar though I've opted specifically to _do_ use Kubernetes via k0s [0]. It works wonderfully well and allows me to use most things that are available in the k8s ecosystem like cert-manager [1] and external-dns [2]. All configuration is stored in Git and the server itself is basically disposable as it only runs k0s and some very basic stuff like iptables rules.

I see this sentiment quite a lot that k8s is too complex for small scale setups, but in my experience it scales down very well to small setups. Granted, you do have to know how to work with k8s, but once you learn that you can apply that knowledge to many different kinds of setups like k0s, bare metal, EKS/AKS etc.

[0] https://k0sproject.io/

[1] https://cert-manager.io/

[2] https://github.com/kubernetes-sigs/external-dns