HNHacker News
TopNewBestAskShowJobs

jansommer

556 karma · joined July 16, 2020

https://ja.nsommer.dk
submissionscomments
jansommer··on Turn the radio volume down for adverts and DJs talking
I've used an app on Android for Spotify called ad-free that does something similar. I think it polls the notification list and somehow gets info on the currently played song, and if the notification is a link to something being advertised, then volume is set to 0. Pretty neat.

Edit: Here's the source... https://github.com/abertschi/ad-free

jansommer··on Hackers earn $990k for 63 zero-days exploited at Pwn2Own Toronto
Most likely. You'd probably need to install your own root certificate on your victims devices in that case.
jansommer··on 83% of Developers Suffer from Burnout, Haystack Analytics Study Finds
Whenever I've automated something, the time I've spent doing that thing manually becomes free to work on the 1000 other tasks in the backlog. Nobody is going to give you a week off even if you automate the work of 10 people. And you're not limited to repetitive tasks for burnout, intellectually stimulating work can drain you as well.
jansommer··on A Poor Man's API
Agree. I've used PostgREST for production and it works great. No need to rewrite the API.
jansommer··on Building a BFT JSON CRDT
Could you elaborate? How do you get CRDT's for free in Erlang?
jansommer··on QuickJS Running in WebAssembly
Not sure if I'd trust the wasm runtime. If someone breaks out of that it's game over. QuickJS in a unikernel in something like Firecracker VM would be the most secure approach and still provide good performance and startup time.

Another thing is resource consumption where you likely want to limit cpu- and mem-usage.

jansommer··on Ask HN: What is the thing you've built that you regret the most?
Right now I have regretted spending so much time and energy learning how to build win32 applications in C and implementing multi monitor DPI support (kind of a nightmare in a library not made for this), because it has fried my brain.

But the odd dream of creating an awesome retro gui for.. well, whatever reason, will likely pop up again soon.

jansommer··on Ask HN: Anyone else struggling to get a software dev job?
Agreeing is pretty much always the best move in the beginning. If you after careful consideration thinks something is wrong, you better be ready to offer an alternative or make a compelling argument for dropping it. You'll also have to have earned their trust, otherwise you're just some random stranger with an opinion.
jansommer··on An open source lawyer’s view on the copilot class action lawsuit
It's likely already trained on Windows source code unless they have specifically excluded the repositories of the leaked Win 2000 code. Perhaps someone who's never going to contribute to ReactOS and Wine can verify?
jansommer··on Ask HN: Skeptical about my company going “full serverless”. What am I missing?
Makes sense to be skeptical here. Cold boots can make the system slow unless there's a fairly constant flow of requests, and if that's the case, why not keep using app services. I get that the architect wants to rid the system of VM's, but going from monoliths to nano services.. Can't tell if that's a good idea.

But if you compare Azure Functions with stored procedures in a DB, then it's pretty cool to have a kind of hot swapping at the function level.

I'd be cautious, but with a gradual migration there's hopefully time for reflection as well. Going 100% on anything is rarely a good idea, so hopefully your architect isn't religious about this.

jansommer··on BearSSL: A smaller SSL/TLS library
https://bearssl.org/gitweb/?p=BearSSL;a=summary
jansommer··on Google Ad Disguising Itself as www.gimp.org
It's kind of crazy when they could just extract the domain name, or provide options for how much of the url you want (domain? subdomain? path? ...)
jansommer··on Multiranges in Postgres
I agree, you'll never hear me recommend MSSQL to anyone, but it's unfortunately quite popular among my customers and hence something I have to take into account when buying software.
jansommer··on Multiranges in Postgres
Range types are not supported in SQL Server. You'd likely need columns for start and end to be compliant.
jansommer··on Auditory brainstem response distinguishes occasional and constant tinnitus
I have noise induced tinnitus and have found that benzodiazepine makes it completely silent. That silence comes with a pretty steep price though, in regards to the side effects. So there certainly is potential for a cure, and there's always a few trials going on. One that's particularly interesting is https://www.withpower.com/trial/phase-3-tinnitus-6-2021-925a.... I don't remember where I read it, but the reason they're trialing Etanercept is because they tested it on 12 people where I recall 11 of them experienced quieter tinnitus. If it works, then we have an FDA and EMA approved product for treatment.
jansommer··on Microsoft Clipchamp
I use OpenShot a lot and it was really easy to get started and easy to use. It tends to crash now and then, so save often.
jansommer··on Ask HN: Auto Generated API (REST/GraphQL) for SQL Server?
Looks like ways to import data to SQL Server from REST endpoints
jansommer··on The impact of removing jQuery on our web performance
The bureaucracy can be a good thing, because it also makes it harder for the government to get information on its citizens, and I think this is deliberate after WW2. Making it hard to exchange information is annoying (I've heard fax machines were still in use during the corona pandemic) but serves as an additional layer of protection from hostile governments. Time will tell if digitizing everything in for instance Denmark (my country) was a good idea.

Number 3 is the same in Denmark. You can almost double your salary if you work for the private sector.

jansommer··on I Finally Found a Solid Debian Tablet: The Surface Go 2
I recently got the same tablet in a cheap second-hand deal. Seller had never used it so battery is excellent. Bought it because I wanted to kill time by installing Linux, and it actually wasn't as bad as expected. Could have just disabled secure boot and be done with it, but that was probably where I spent most of my time. Waydroid is was easy to install so I can run both Android and Gnome, but x86-64 Android is so limited in software that I uninstalled it.

What I found was that it's a cool way to play Heroes of Might and Magic 3. Playing that game on a tablet gives the feeling of playing an interactive board game. It runs smoothly in Wine. A pretty important thing in the game is the ability to right click, which didn't work, and I would assume Windows have the same problem (I don't think Windows tablet support would be sufficient), so I wrote a mouse hook in win32 c that enables long press to right click.

There's lots of annoying nuances, like the Gnome 42 icons in the activity list is really small, the on screen keyboard is small and almost unusable in landscape mode (but big in portrait mode) and camera works for gstreamer apps only so no browser support (and the suggested fix doesn't work for Fedora 36).

I removed Windows and have locked the boot order so it won't be altered.

All in all 10/10 as a tablet for someone looking for excuses to tinker with Linux (and win32!).

jansommer··on Windows 11 on a Surface 3 2GB
I got a cheap Surface Go 2 a few days ago, with 4 gb ram. Installed Fedora 36 and it works ok with a few caveats [0]. It feels smoother than win11 which it came with. I have Weston running in a separate tty where I run the full Waydroid UI/a complete Android OS. This runs super smooth and games like Asphalt 8 and a Tux racing game has great graphics with no lag. Firefox for Android works as well, but I have seen more crashes than I'd like, I might try upgrading from LineageOS 10 to 11 one day and see if it fixes it. Video at 1080p plays fine in Fedora, Waydroid handles up to 720p before it starts lagging.

I really like having a machine that can go from full blown desktop, to Linux tablet, and to Android for tablet friendly games.

[0]:

* Battery monitor sometimes dies and I have to logout to fix it

* The resolution have to be scaled x2 for the text to be readable and a few modals like the Firefox save dialog is too wide for a 10.5" display in portrait mode

* On screen keyboard is for some reason very small in landscape mode, but large in portrait

jansommer··on Don't use Kubernetes yet
I was in a startup with a small team and we used Kubernetes for servers that required more than 8 GB memory. Cloud Run and App Engine doesn't offer more than that, at least not at the time. The alternative were to deal with virtual machines ourself with Ansible scripts, and I'm not sure how that would auto scale + it would break the existing flow of Docker containers for everything. It took a while to figure out how to put Kubernetes in a closed VPC, but after that it was fairly straight forward.
jansommer··on The computers are fast, but you don't know it
Win32 is so really, really fast. And with Tiny C Compiler the program compiles and boots faster than the Win10 calculator app takes to start.
jansommer··on We will never have enough software developers (2020)
Companies have only tested my code skills and handed me personality tests when applying for full time jobs. As a freelancer, I get one or two interviews where I talk to the architects, tech leads and managers, and that's it - either I'm in or out after that. They end up treating me as an employee anyway, so don't really know why this distinction is made in the first place, but I suspect HR.
jansommer··on Fine dining faces its dark truths in Copenhagen
I live in Copenhagen and have heard the same story from friends or acquaintances. After the pandemic where a lot of servers and chefs were laid off, the restaurants are having a hard time finding staff. Pretty much every place is looking for staff, and some are closing earlier because they can't find any. People know the conditions are horrific and seek into other industries.
jansommer··on Ask HN: Most employable programming languages for next decade or two?
SQL. It's been there for the last ~50 years and it's going to be around for at least another decade.
jansommer··on SQLite 3 Fiddle
Sounds super cool! Really appreciatw the work you're doing. What I'm imagining in regards to Raft is this:

5 or more servers, each running unikernels in tiny virtual machines, with a JavaScript interpreter or similar to run untrusted user code. Each unikernel is then booted on every request, perhaps with a cool down period before being shut down. This would work similar to GCP, Azure etc. and performance would be great because of how fast unikernels boot.

The unikernels would also be compiled with SQLite, with each database per customer stored on the host, and with restrictions on the virtual machine to only allow access to the database associated with the caller.

Whenever untrusted code is executed, it can insert/update/read/delete from the database on the host. If the host then handled replication, that means I can just shut down the vm when the code has been run, and start a clean one for the next customer. A guarantee that the data have been safely replicated would be essential here, since another server might handle the next request, with the expectation that the data is in a new state.

jansommer··on SQLite 3 Fiddle
Displaying unicode characters could be a problem here. I haven't managed to get it working when building a BusyBox powered Buildroot Linux, and in my search I've found another one who've tried and failed as well.
jansommer··on SQLite 3 Fiddle
I think it's a deal breaker that rqlite only supports deterministic statements [0] and the way dqlite works is by having to run inside your application, meaning that you no longer can scale to zero.

Ideally someone would implement replication as a separate process, like litestream but with better guarantees like rqlite/dqlite, but until that happens, I don't think they're of much use in a SaaS, unless it's to be an in process database alternative to Postgres and the likes, where users only access is through something like a rest api.

[0] https://www.sqlite.org/deterministic.html

jansommer··on Generating websites with SPARQL and Snowman, part 1
Completely agree. I'm hoping to one day see Jena [0] compiled to a native image [1]. Having a persistent triple store with transactions, and an inference api in owl/rdfs/shacl with a prolog-like "logic programming engine", running in-process like SQLite, would be awesome.

[0] https://jena.apache.org/

[1] https://www.graalvm.org/22.0/reference-manual/native-image/

jansommer··on Expert systems and the legal world
Just out of curiosity, may I ask what language/system those rules are written in?
← PreviousPage 5 of 7Next →