Juozas's Dump

A growing collection of anime, photos and any other kind of weird content.
[Tumblr|​X/Twitter|​Pillowfort|​Loforo|​Mastodon] [Random post]

 tags  journal  gallery  RSS

18.5.2024 08:22:26

Upgraded ram for my old computer

It was the time to upgrade ram so I looked for compatible ram modules the internet and found some on Ebay. They arrived a bit earlier than expected and not so pricy so it was a good deal. Earlier I tried different ram but that didn't work so I had to look for compatible ram list in my motherboard manual and found some still available to buy. I upgraded ram to max amount possible so the system performs way better now as there're virtually no slowdowns as there''s enough memory to run most things.

15.3.2024 22:13:40

My firefox installation on Ubuntu got updated to 124

Mozilla is ready to release Mozilla Firefox 124, so Mozilla ppa for Ubuntu already has it already built even before the release date even though currently it is in the beta state. Because of that  Firefox version 124 got installed even if officially latest release is only Firefox 123 and no Release notes for 124 is ready yet.

28.2.2024 10:51:05

Loforo down

Can't access loforo from anywhere since this morning. It appears to be down as server is not connecting from any device no matter the location. Will have to wait and see if it comes back up :)

Update: It's back up. It came back online after some time, it appears there was an outage where the site is hosted.

4.8.2023 15:31:53

My internet died today

The primary isp connection I use to connect to the internet just suddently stopped working. It appears it's an issue related to my area (city) and I'm only able to use mobile phone internet that has limited data. Worked for a short while, then - gone.
Edit: It's back. This was a temporary downtime. Fixed on isp side.

28.6.2023 10:22:11

Changed my vpn server ip

Google was detecting my vpn server ip's country as Russia while actual location it was hosted on was Lithuania. So becouse google was doing this frequently I was forced to change my ip so this nonsense would hopely end. Now I'm waiting for dns to propagate until the hostname is reachable again. This server also hosts my minetest server software and it will be unreachable on some points in the world for a while.
Edit: It's now live on my end. Should be reachable everywhere soon.

26.6.2023 22:45:40

Clearing i/o cache on Linux

Running

sync; echo 3 > /proc/sys/vm/drop_caches 

under root or

sudo bash -c 'sync; echo 3 > /proc/sys/vm/drop_caches'

when using sudo helps to avoid some i/o caching issues when benchmarking file system operations such as duplicate finding. Meaning of values (from kernel documentation, https://www.kernel.org/doc/Documentation/sysctl/vm.txt):

To free pagecache:

echo 1 > /proc/sys/vm/drop_caches

To free reclaimable slab objects (includes dentries and inodes):

echo 2 > /proc/sys/vm/drop_caches

To free slab objects and pagecache:

echo 3 > /proc/sys/vm/drop_caches


reposted by linux
22.6.2023 19:00:16

tr -cd '[:print:]' < /dev/urandom | gzip -9 > /dev/null

Generates a huge cpu usage on linux. May generate excessive cpu heat and/or cause fan to run very fast. A great way to stress test the cpu and/or its fan on linux.


reposted by linux raumfahrtagentur
28.2.2023 21:47:08

Oneline random image html file generator

The command below generates a html file pointing to 100 random image files found in the directory tree of the working directory. You can adjust it to your needs by putting the paths you want to exclude or adding more extensions to placeholders as shown below. The output file shows images centered on screen, with max widths no larger than screen.

echo -e "<html>\n<head>\n<title>Random Images</title>\n</head>\n<style>\nimg {max-width:100%; height:auto}\nbody{text-align:center}\n</style>\n<body>\n$(find -type f -not \( -ipath "./paths/*" -or -ipath "./to/*" -or -ipath "./exclude/*" \) -and \( -iname "*.jpg" -or -iname "*.jpeg" -or -iname "*.png" -or -iname "*.gif" -or -iname "*.webp" -or -iname "*.bmp" \) | cut -d\/ -f2- | sort | shuf -n 100 | tr '\n' '\0' | xargs -0 -I{} echo "<div style=\"margin:auto\"><img title=\"{}\" src=\"$(realpath "{}")\"></div>")</body>\n<html>" > /tmp/random.htm

The output file is saved as /tmp/random.htm


reposted by linux
23.2.2023 20:54:57

Zero Width Space

A vere useful where text needs to be wrapped and regular spaces cannot be used. The unicode for it is 0x200B, in linux it can be inserted by typing Ctrl+Shift+U with unicode characher code following right after that

This​is​a​test​paragraph​where​unicode​character​that​is​invisible​space​otherwise​called​zero​width​space​is​used.​It​wraps​around​the​edges​of​the​screen​and​/​or​parent​element​and​is​very​useful​in​other​places​.​Text​just​nicely​wraps​around​such​place​even​if​it​looks​weird​otherwise​.​I​used​it​in​my​blog​settings​so​my​social​links​would​wrap​around​nicely​where​needed.​Unicode​is​a​​very​useful​indeed.

Having a nbsp (0x00A0) in tags also returns weird results in when browsing and/or reading posts. It also can't be copy-pasted. It must be typed manually by using keyboard shortcut and hex code right after that.


reposted by test
18.2.2023 19:24:18

Found a duplicate post while checking old posts for tags

Recent post which was dupe of an old post has been deleted.

2 comments
22.2.2023 11:31:12
is this bug of kyselo? If so could you provide more info?
22.2.2023 18:55:58
@severak not a bug; the mentioned post was a copy of a post I've already posted earlier, not accidental double posting or anything like. I just forgot that I've already posted that when I posted such post.
16.2.2023 08:14:56

Youtube Full Screen is broken when using Theater Mode

This morning I noticed that screen would turn blank with audio still playing in background as soon as YouTube player were switched to full screen, I thought my pc was broken, almost was ready to reboot it on the spot. Then I found that the theater mode would be the cause. It seems to be a yet another bad youtube updade, will have to wait till they fix it and avoid the theater mode wherever possible.

Update: It appears that this YouTube bug has just recently been fixed, I don't encounter any new issues while using YouTube in fullscreen when the player is in the theater mode.

16.1.2023 19:05:02

rm -rf --no-preserve-root /

Trying to install an old Ubuntu Linux 10.04 LTS version and make it usable along currently running Ubuntu 22.04 LTS would fail as it would lead to dependency hell and other problems when trying to install video drivers. Just by installing base system, default kernel (2.6.x) and networking components the system would not boot unless booted from external usb with old bootloader installed on it. Also if target partition was formatted from modern system the bootloader would not install to any drive nor create its config files. It would still not work as the screen would not show anyhing unless the backported kernel (3.0.x) were installed from the repositories. It would require proprietary nvidia driver on graphical interface as open source driver would not work with my monitor as I found eariler. And after installing a newer kernel version that would work with current bootloader (from a deb file other than what is available on repositories) the nvidia driver installation would still fail as no kernel headers would be found at the time. Trying to install kernel header deb files would not work unless dpkg was updated to a version newer than available on the repositories. After upgrading dpkg and installing kernel headers the kernel modules would fail to build as it would not work with current c compiler, trying upgrade it would require manually downloading and installing required debs, and it might lead to dependency hell not mentioning some debs that would not be available to download ending with a system w/o working graphics. As I was trying to find such packages I ended by running the rm -rf --no-preserve-root /  just out of frustration since I was unable to find them online :\ Also later I found that even backported 3.0.x nvidia kernel modules still wouldn't build as such kernel might be incompatible and/or driver would be broken. Conclusion: don't try to install a newer kernel from packages not coming in repositories and then try to install graphics drivers as it might lead to many problems in the future. Also don't use backported kernel as it would not be compatible with provided nvidia driver. Use virtual machine instead if needed.


reposted by raumfahrtagentur linux
30.11.2022 22:50:33

YouTube was very unstable today

I noticed a horrible browser lag when using youtube. Digging deeper I found that it was caused by the site itself and not an addon. It would cause an insane cpu and memory usage rise upon page reload, the only solution would be to kill the browser. I also suspected an adblock bug but disabling it on yt didn't help much, where other addons were also disabled.

26.10.2022 08:26:46

Reinstalled server os

Today i've reinstalled the os of the server that runs my minetest server and related pages. It will take some time to setup everything and to restore what's needed. It has been running Ubuntu 20.04 LTS up until now and the new os is Debian 11.

Edit: Got the web server working. Sadly no running minetest server yet.

Edit2: Minetest server is finally back up and running, old worlds restored.

20.9.2022 15:45:19 reposted from linux

Ubuntu 22.04 has an annoying apt bug. It does not properly upgrade all packages

Running apt in dist-upgrade mode generates weird results as some packages are not upgraded. The only solution is to manually add each not upgraded package to command line which is super annoying and wastes precious time :\ The following behavior is what reproduces faulty results:

juozas@xubuntu:~$ export LC_ALL=C
juozas@xubuntu:~$ sudo apt-get --no-install-recommends dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.15.0-46 linux-headers-5.15.0-46-generic linux-image-5.15.0-46-generic linux-modules-5.15.0-46-generic linux-modules-extra-5.15.0-46-generic
  linux-tools-5.15.0-46 linux-tools-5.15.0-46-generic
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  fonts-opensymbol libreoffice libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc libreoffice-common libreoffice-core
  libreoffice-draw libreoffice-gtk libreoffice-gtk2 libreoffice-gtk3 libreoffice-help-common libreoffice-help-en-gb libreoffice-help-en-us libreoffice-impress
  libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-lt libreoffice-math libreoffice-report-builder-bin libreoffice-style-colibre libreoffice-writer
  libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 python3-uno uno-libs-private ure
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
juozas@xubuntu:~$ sudo apt-get --no-install-recommends dist-upgrade fonts-opensymbol
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.15.0-46 linux-headers-5.15.0-46-generic linux-image-5.15.0-46-generic linux-modules-5.15.0-46-generic linux-modules-extra-5.15.0-46-generic
  linux-tools-5.15.0-46 linux-tools-5.15.0-46-generic
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  libreoffice libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw
  libreoffice-gtk libreoffice-gtk2 libreoffice-gtk3 libreoffice-help-common libreoffice-help-en-gb libreoffice-help-en-us libreoffice-impress
  libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-lt libreoffice-math libreoffice-report-builder-bin libreoffice-style-colibre libreoffice-writer
  libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 python3-uno uno-libs-private ure
The following packages will be upgraded:
  fonts-opensymbol
1 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
Need to get 102 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do
you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 fonts-opensymbol all 2:102.12+LibO7.3.6-0ubuntu0.22.04.1 [102 kB]
Fetched 102 kB in 0s (340 kB/s)          
(Reading database ... 332342 files and directories currently installed.)
Preparing to unpack .../fonts-opensymbol_2%3a102.12+LibO7.3.6-0ubuntu0.22.04.1_all.deb ...
Unpacking fonts-opensymbol (2:102.12+LibO7.3.6-0ubuntu0.22.04.1) over (2:102.12+LibO7.3.5-0ubuntu0.22.04.1) ...
Setting up fonts-opensymbol (2:102.12+LibO7.3.6-0ubuntu0.22.04.1) ...
Processing triggers for fontconfig (2.13.1-4.2ubuntu5) ...
juozas@xubuntu:~$ sudo apt-get --no-install-recommends dist-upgrade libreoffice     
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libreoffice-base : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed
 libreoffice-base-core : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed or
                                  libreoffice-core-nogui (= 1:7.3.5-0ubuntu0.22.04.1) but it is not installable
 libreoffice-calc : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed
 libreoffice-core : Breaks: libreoffice-base (< 1:7.3.6-0ubuntu0.22.04.1) but 1:7.3.5-0ubuntu0.22.04.1 is to be installed
                    Breaks: libreoffice-calc (< 1:7.3.6-0ubuntu0.22.04.1) but 1:7.3.5-0ubuntu0.22.04.1 is to be installed
                    Breaks: libreoffice-draw (< 1:7.3.6-0ubuntu0.22.04.1) but 1:7.3.5-0ubuntu0.22.04.1 is to be installed
                    Breaks: libreoffice-gtk2 (< 1:7.3.6-0ubuntu0.22.04.1) but 1:7.3.5-0ubuntu0.22.04.1 is to be installed
                    Breaks: libreoffice-gtk3 (< 1:7.3.6-0ubuntu0.22.04.1) but 1:7.3.5-0ubuntu0.22.04.1 is to be installed
                    Breaks: libreoffice-impress (< 1:7.3.6-0ubuntu0.22.04.1) but 1:7.3.5-0ubuntu0.22.04.1 is to be installed
                    Breaks: libreoffice-writer (< 1:7.3.6-0ubuntu0.22.04.1) but 1:7.3.5-0ubuntu0.22.04.1 is to be installed
 libreoffice-draw : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed
 libreoffice-gtk3 : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed
 libreoffice-impress : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed
 libreoffice-math : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed
 libreoffice-writer : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed
 python3-uno : Depends: libreoffice-core (= 1:7.3.5-0ubuntu0.22.04.1) but 1:7.3.6-0ubuntu0.22.04.1 is to be installed or
                        libreoffice-core-nogui (= 1:7.3.5-0ubuntu0.22.04.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
juozas@xubuntu:~$
21.5.2022 18:00:33

Some useful number facts

0x00007FFFFFFFFFFF (2^47-1,140737488355327) is largest possible address size in 64-bit architecture, it's integer representation could be obtained by running a command in unix terminal as shown below

$ echo $((2**47)-1)

Any address larger then the number above will raise an exception.

16.4.2022 16:17:42

Automatic linking annoyance

The editor is too trigger happy to automatically mark anything that looks like links to appear as links. E.g. typing somefile.sh becomes linked w/o asking. It's very annoying when trying to type or paste code snippets that has fragments looking like that and removing them is quite troublesome :\

Edit: Links can be removed after they've been inserted by editor, but this leaves extra unused garbage html, and that can be removed by editing hidden textarea using browser developer tools and not directly interacting with text field thus avoiding accidental reinsert of link where it is not wanted.

1 comments
16.4.2022 20:44:41
this is known bug. I struggle with this all the time just not found enough courage to go and fix the editing component. :-D
16.4.2022 16:01:49

Find manually installed packages that has other packages depending on it on Debian based systems

Running command below generates a list of packages that can be marked as automatically installed, as long as apt-rdepends package were already installed. It generates a script that can be used to mark all found packages as manually installed.

echo \#\!/bin/bash > mark-auto.sh; apt-mark showmanual|xargs -I{} sh -c '[ "{}" = "$(apt-rdepends -r --state-follow=Installed --state-show=Installed {} 2>/dev/null)" ] || echo apt-mark auto {}' >> mark-auto.sh

It can be modified to mark packages automatically if preferred instead of writing to a script

apt-mark showmanual|xargs -I{} sh -c '[ "{}" = "$(apt-rdepends -r --state-follow=Installed --state-show=Installed {} 2>/dev/null)" ] || apt-mark auto {}'

Before running apt-get autoremove run it with pretend mode (-s), e.g

apt-get -s autoremove --purge

Mark any package not desired to be removed with

apt-mark manual <package>

reposted by linux schaaf
14.4.2022 20:44:42 reposted from linux

Installed Ubuntu 22.04 LTS from scratch, to be released within a week (April 21, 2022)

Ubuntu 22.04 LTS is soon to be released so I decided to do a complete reinstall. After booting into Linux Live USB first I've deleted everything from my old install except for the important stuff I needed to keep. Then I've reinstalled the base system using debootstrap and used a script I made to enter the chroot, I installed required packages there to make it boot and to be able to access network. Finally I've installed everything else I needed including graphical interface where a list of installed previously packages would help alot. Such list could be generated by running commands as shown in example below.

First generate package list files while in old system as shown below

$ apt-mark showmanual > manual_old.txt
$ dpkg-query -Wf '${Package}\n' > packages_old.txt

After reinstalling system repeat same in the new installation, only change output file names where needed.

$ apt-mark showmanual > manual.txt
$ dpkg-query -Wf '${Package}\n' > packages.txt

Finally compare package list files generated above, a list of missing packages would be stored in files as shown below

$ sort manual_old.txt > 1.txt; sort manual.txt > 2.txt; comm -23 1.txt 2.txt > missing_manual.txt
$ sort packages_old.txt > 1.txt; sort packages.txt > 2.txt; comm -23 1.txt 2.txt > missing.txt
12.3.2022 16:36:21

Spam generator

$ for q in $(eval echo {1..$((2+$RANDOM%200))}); do echo $(cat </dev/urandom|tr -cd '[:lower:]'|tr -s '[:print:]'|head -c $((2+$RANDOM%32))); done|xargs

Generates a random amount of random words containing random lowercase letters (up to 200 words and 32 letters per word)


reposted by linux
27.2.2022 16:16:31

Chat gone

Just noticed that chat link were removed from menu, not sure it was an accident or intentional. Also the chat page is showing an error 500 with Verboten (Forbidden) shown in text.

1 comments
28.2.2022 14:10:41
this is known issue. It just waits for me to run certificate renew script.
19.2.2022 22:08:16 reposted from linux

Double dollar sign ($$) in bash

It substitutes to PID of the current running shell. For example running

ps -Alf|grep $$

generates interesting results, as shown below

$ ps -Alf|grep $$
0 S juozas     11125   11120  0  80   0 -  3391 do_wai 22:43 pts/0    00:00:00 bash
4 R juozas     11197   11125  0  80   0 -  3506 -      22:46 pts/0    00:00:00 ps -Alf
0 S juozas     11198   11125  0  80   0 -  2859 pipe_w 22:46 pts/0    00:00:00 grep --color=auto 11125

Another example is to use it in the file names where it gets substituted with the PID of the current running shell.

$ cat >f$$.txt <<EOF
This is a test. The pid of running shell is $$
EOF
$ cat f$$.txt
This is a test. The pid of running shell is 11125
$ ls f$$.txt
f11125.txt
$ LC_ALL=C rm -v f$$.txt
removed 'f11125.txt'
18.1.2022 17:01:16

My primary monitor just started to malfunction

It would show a white picture with vertical bars on near middle right of the screen. Had to to use an old vga monitor not fully compatible with my current software which caused me alot of annoyance. Had to uninstall old nvidia driver as it would not detect this monitor correctly, installed open source alternative, and added a script that sets correct login resolution and rate as automattic detection would not set correct one resulting in monitor showing an error. Not mentioning display settings showing modes not properly supported it.

16.1.2022 22:30:11 reposted from updates

DO NOT USE backup tool

Please, do not use backup tool. It downloads large numbers of images in short time which leads you to be banned from my hosting. Kyselo then looks completely down from your IP while other connections are completely OK.

I got banned this way. (massive facepalm)

I hope no one other got banned this way. If you know about someone, please let them contact me via my other contacts listed here.


In the near future I will move Kyselo to my own server which I acquired from my friend. There will be proper backup system with big ZIP files generated server side.

28.12.2021 19:12:05

A few of my popular manga sites just went down

I just noticed today that Mangalife and Mangasee both went down today. They've been running on the same network, one of them is a development version of the other and none is accessible atm. If none gets back soon this can mean a site seizure or somthing at least equally serious as alot of people are complaining about this site on many other social networks I usually frequent.

Edit: It's back. This was a temporary site hickup :\

13.12.2021 14:09:27

Loforo is not reachable on my VPN

Just stopped working. All the traffic is directed to blocked.hetzner.com when checking through the traceroute. Didn't do anything too bad just suddently got blocked or some other error I don't know.]

Edit: Loforo's back. Probably was temporary or some1 seen my message on some site. This is annoying. Can't traceroute the site properly though.

11.12.2021 11:28:33

Open random page of kyselo right from unix terminal

Run command below in your unix terminal

$ firefox https://kyselo.eu/all?since=$(TZ=Europe/Prague date -d @$(shuf -i $(($(TZ=Europe/Prague date -d '2020-07-13T00:35:49' +"%s")))-$(date +"%s") -n 1) +"%Y-%m-%dT%H%%3A%M%%3A%S")

2020-07-13T00:35:49 is the date of first post in server time, replace 'firefox' with your browser command if you have different browser installed.

Edit: Added correct timezome matching to kyselo to command line, found by examining date of some posts and choosing correct timezone matching the site location.

Edit2: Shortened command a bit by inlining some variables used before.


reposted by linux
1 comments
11.12.2021 23:22:20
works on windows too (in git bash) - I just added start before it
10.9.2021 18:26:16

Switched to ESR release from regular Firefox

Since WebRender shipped with recent versions of Mozilla Firefox is too buggy and cause video screen tearing when watching Youtube videos in full screen and also it seems next versions are removing the ability to disable it too so I'm getting rid of it and going to use an ESR release instead and if the future versions of it remove remove this feature I'm going to get rid of firefox in my system entirely and use alternative browser that would still work with my configuration w/o problems

15.8.2021 10:53:49

Reddit down

When I visit Reddit all I get is an error. The main page would not load. Looks like it's time to use other platforms as long as Reddit stays down :\

1 comments
15.8.2021 12:31:12
Reddit is back. Seems it is no longer down :)
6.3.2021 15:33:20

The strange biome name in minecraft, found by Phoenix SC on YouTube

It is minecraft:asdawerthawajrhtkajwhegrkjawsg

 
▼ see more... ▼
 

Timeline speed: 0.77 posts per month

login