Hey let’s start a list:
Yeah, all good.
a bit of code. Oh wow, it is indented compared to markdown!
A bit of text. Wow, it is indeted as well!
Our database has fast rate of transactions. I did think, that such rate is impossible, until I've seen it with my eyes. I've been instinctively insisting on fixing code to reduce number of transactions (sometimes successful), but never checked what are consequences for database.
One of consequences is fast rate of autovacuum VACUUM FREEZE.
VACUUM is essential for Postgresql to mark non-visible rows (those which were normal rows, but became invisible because of update or delete) as visible to PG. Note, that they become visible only to PG, previously PG didn't know they are free for use, and thus had allocated extra buffers in the end of a table for any new rows (inserts or updates). PG not knowing which rows are free for use is another problem, which causes table bloat, which deserves another post.
VACUUM FREEZE is special kind of VACUUM. From resource usage perspective, it differs from VACUUM by that it has to scan full table (normal VACUUM processes only buffers known to contain at
Switching NixOS architecture (32bit -> 64bit)
There are rumors, that you can switch from system architecture just adding 1 configuration option:
nixpkgs.system = "x86_64-linux"
nixos-rebuild boot && reboot.
|# First add this module to your /etc/nixos/configuration.nix|
|# imports = [ /path/to/iphone.nix ];|
|# iphone.enable = true;|
|# iphone.user = "yourusername";|
|# Then rebuild system. Attach iPhone via cable, open terminal and run command `iphone`|
|# It will fail, but there will occure a dialog on your iPhone to "trust this computer"|
|# Press OK there and run `iphone` again. If it succeeds it will open a freshly mounted folder|
I use separate Firefox profiles for work and personal stuff. To distinguish those I place them on different workspaces.
firefox --no-remote -P MyJob
firefox --no-remote -P default
I have also company Slack on Workspace 0. Which usually contains links to some work stuff.
Firefox and Oracle deprecated Java plugin. But some online banking systems rely on that plugin very much. Soon the only solution would be to use old browser version.
Here I try to solve the yet-to-come problem using Nix.
firefox-esrfrom 18.03 NixOS release (52.9.0esr as of writing)
curl | shfrom some random script in Internet. We accept Oracle license by using Oracle JDK
curl | shhardly can harm our system,
|create extension "uuid-ossp";|
|create extension bloom;|
|CREATE or replace FUNCTION hashuuid(u uuid) RETURNS integer AS $$|
|a bytea := uuid_send(u);|
|RETURN (get_byte(a, 3) << 24) + (get_byte(a, 2) << 16) + (get_byte(a, 1) << 8) + get_byte(a, 0);|