News for hackers. Stuff that matters.

spencercw

Re:PostgreSQL Subtransactions Considered Harmful on Wednesday September 01, 2021 @02:53AM (#28377096)
I do basically the same thing. If a method tries to start a transaction when a transaction is already open then it's immediately rejected.

I don't really like automatic transaction joining behaviour because it makes it hard to reason about the application behaviour. Will this transactional method commit when it returns? It's impossible to tell without looking at who's calling it.

It also encourages annoying behaviour like, oh this method uses the database, better make it @Transactional.

Re:Writing my first Gameboy Emulator on Wednesday December 30, 2020 @04:29PM (#25586340)
Nice idea to write that stuff down. Something that flummoxed me for a while was how Pokemon Yellow does the Pikachu sound, since the Game Boy doesn't really support sample-based audio. Turns out it does something akin to spending 100% of its CPU time turning the sound on and off to play the samples.
Re:Chrome exempts Google sites from user site data settings on Sunday October 18, 2020 @10:15AM (#24818022)
For what it's worth, Netflix has a higher score on my machine than YouTube.
Re:Dolphin Progress May 2019 on Sunday June 02, 2019 @04:04PM (#20077739)
Followed by a GameBoy emulator if you're feeling a bit more adventurous. It's big enough to be challenging, but small enough that it can easily be done by one person.
Re:Firefox 60 released on Wednesday May 09, 2018 @03:24PM (#17033031)
Firefox ESR 60 has been released at the same time, and is more or less identical to the non-ESR version. ESR makes a lot of sense for corporate networks, even if it can be a drag being a bit behind the curve.
Re:How did we end up with containers? on Thursday April 05, 2018 @01:38PM (#16767048)
CentOS has a great utility called needs-restarting which finds processes which have been updated and need to be restarted. I just stick it in a cron job and I have an email waiting for me in the morning if I need to do anything.