HN user

PascalW

1,028 karma
Posts23
Comments137
View on HN
berthub.eu 1y ago

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

PascalW
131pts96
t-shaped.nl 1y ago

Synctrain: A Rethought iOS Client for Syncthing

PascalW
4pts0
adventofcode.com 2y ago

Advent of Code 2023

PascalW
4pts0
blog.flutterbountyhunters.com 3y ago

It's time for Flutter to adjust its market strategy

PascalW
1pts3
github.com 4y ago

Android in Docker without QEMU/emulator

PascalW
226pts71
github.com 5y ago

Show HN: Low-power Kindle-based dashboard

PascalW
284pts71
pascalw.me 6y ago

Making Django and Webpack play nice together: no plugins required

PascalW
2pts0
www.theguild.nl 6y ago

HTTP Caching Gotcha: Heuristic Freshness

PascalW
2pts0
medium.com 7y ago

Your organization is unmanageable

PascalW
1pts0
medium.com 7y ago

Firefox Test Pilot shutting down

PascalW
3pts0
docs.google.com 7y ago

State of Reason Survey

PascalW
2pts0
github.com 8y ago

Show HN: Dashbling – Hackable React-based dashboards for developers

PascalW
2pts0
connect-watch.com 8y ago

Connect Watch: first AsteroidsOS powered smartwatch

PascalW
1pts1
pixelambacht.nl 9y ago

Saving the internet 2000 terabytes a day: fixing Font Awesome

PascalW
5pts0
www.theguild.nl 10y ago

Deploy a Spring Boot app on your own server in less than 15 minutes

PascalW
1pts0
kabisa.nl 11y ago

How to run your Jenkins CI jobs isolated in Docker containers

PascalW
5pts0
robots.thoughtbot.com 12y ago

Build Phase, new iOS development podcast by Thoughtbot

PascalW
2pts0
jfactory.pwiddershoven.nl 13y ago

Show HN: jFactory - easy object factories for Java

PascalW
1pts0
barkplug.in 13y ago

Growl, meet Bark.

PascalW
10pts7
github.com 14y ago

Stubbing HTTP requests in Objective-C with ease

PascalW
1pts0
www.macrumors.com 15y ago

Apple Releases iOS 5 Beta 2 to Developers, Now with Wi-Fi Sync

PascalW
2pts0
pwiddershoven.nl 15y ago

Show HN: Jekyll + indextank = static websites with fulltext search

PascalW
6pts2
www.mafipulation.org 15y ago

Apple AirTunes private key extracted

PascalW
371pts94

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.

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.

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.

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.

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

I Still Use RSS 5 years ago

Thanks I'm an RSS nut too but didn't know about hnrss. Super useful to keep track of replies.

That's a good point. I'm using partial refresh for this reason, which works quite well because the screen is relatively static (I do a full refresh after 4 partial refreshes, to remove the minor ghosting that does occur). But if your dashboard shows a lot of different content you'll have to do full refreshes, which on the Kindle at least also cause a flash.

I could replace ht with another HTTP client. I just picked it because it was the easiest way I knew to compile an HTTP client with statically linking openssl.

If anyone knows an easy way to compile curl with statically linked openssl, let me know!

It would also not be difficult to build a small custom client based on Hyper or Reqwest.

Though I'm not sure if it would actually make a large difference with only 20 screen refreshes per day.

Might be a nice fit indeed. I considered doing this on my Remarkable 2, but it's a bit tricky to combine a dashboard with actually using the product as it's intended (for note-taking, in this case).

The advantage of using a Kindle like this is that it's cheap enough that I don't have to use it for anything else. I bought the Kindle used for €25.

That's an interesting idea! It depends a bit on the data that is shown on the dashboard, but I guess in many cases the data is quite static. The data on my dashboard can change at any time in theory, but there are many times where the data remains the same for 2-3 hours.

I don't know exactly yet, but from what I'm now seeing it consumes 3-4% battery per day, with the dashboard updating every 30 minutes for 10 hours a day.

I'm only letting it update during office hours, so I reckon I should get around a month of battery life with this usage.

Yes that should be possible. You could use this as a starting point: https://www.mobileread.com/forums/showpost.php?p=3812831&pos.... With that you can wait for the 'goingToScreenSaver' event and then write your dashboard to the screen.

There are some minor downsides though. If you keep the built-in Kindle UI running it will draw a menubar on the screen when the Wi-Fi connection status changes and power consumption will be a bit higher with this setup. All in all still a good tradeoff if you want to keep using the Kindle for it's original purpose too.

Edit: someone else posted a link to this tool which does exactly this: https://www.mobileread.com/forums/showthread.php?t=236104