Monday, June 19, 2023

Linuxfx always ends up having sources errors

This is what happens to Linuxfx Operating System (based on Ubuntu) after several weeks or months have passed by. Version is "Linuxfx 11.3.1 Plasma x86_64". It just doesn't update properly and you need to reinstall it or manually fix it:

PS /home/user> sudo apt update         
Hit:1 https://download.onlyoffice.com/repo/debian squeeze InRelease
Hit:2 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jammy InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:4 http://deb.anydesk.com all InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu jammy InRelease
Hit:7 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Get:8 https://packages.microsoft.com/repos/edge stable InRelease [3,569 B]
Hit:9 http://ppa.launchpad.net/emoraes25/cid/ubuntu jammy InRelease
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:11 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3,611 B]
Hit:12 https://dl.google.com/linux/chrome/deb stable InRelease
Get:13 https://packages.microsoft.com/repos/ms-teams stable InRelease [5,931 B]
Hit:14 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu jammy InRelease
Get:15 https://packages.microsoft.com/repos/code stable InRelease [3,569 B]
Err:16 http://ppa.launchpad.net/yann1ck/onedrive/ubuntu focal InRelease
403 Forbidden [IP: 185.125.190.52 80]
Hit:17 http://ppa.launchpad.net/linuxuprising/java/ubuntu jammy InRelease
Get:18 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [499 kB]
Get:19 https://packages.microsoft.com/repos/edge stable/main amd64 Packages [8,783 B]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [246 kB]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41.4 kB]
Get:22 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [69.7 kB]
Get:23 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [10.3 kB]
Get:24 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [740 kB]
Get:25 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [536 kB]
Get:26 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [21.9 kB]
Get:27 https://packages.microsoft.com/repos/code stable/main armhf Packages [71.7 kB]
Get:28 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [15.6 kB]
Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [721 kB]
Get:30 https://packages.microsoft.com/repos/code stable/main arm64 Packages [71.3 kB]
Get:31 https://packages.microsoft.com/repos/code stable/main amd64 Packages [71.0 kB]
Get:32 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [430 kB]
Get:33 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [99.9 kB]
Get:34 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.3 kB]
Get:35 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [932 kB]
Get:36 http://archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [627 kB]
Get:37 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [274 kB]
Get:38 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [20.5 kB]
Get:39 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/yann1ck/onedrive/ubuntu/dists/focal/InRelease 403 Forbidden [IP: 185.125.190.52 80]
E: The repository 'http://ppa.launchpad.net/yann1ck/onedrive/ubuntu focal InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

The graphic update manager doesn't fix it either. Reinstalling will fix all of this.

Saturday, June 17, 2023

How to prevent scattering bacteria when flushing the toilet

Flushing the toilet at ambient pressure, causes particles, viruses, fungus and bacteria to be spread all around. If you flush with the lid closed, you will just make the inner part of the lid to be impregnated with all the material, hence you will get your hands dirty when you touch it. This is specially harmful in public bathrooms or restrooms.

Not only particles and living things fall to the ground, but also they keep floating suspended in the air. This is really bad, because they stick to things above the ground level, and also can be inhaled and transported by air circulation inside the building.

Demonstration links:

 

To fix this, use toilets that flush from behind with negative pressure (compared to earth's atmosphere), the vacuum toilets. You must not flush while you are sitting, since could get your bowels sucked out through the anus (this is a risk which can happen with any suction or drain, like a vacuum cleaner or pool drain). They are usually used in industrial environments, commercial applications and army/navy related transport, nobody has them at home:

 

There's another type called "Pressure Assist Toilet" or "Power Flush Toilet", but it's not the same. They can operate two ways:

  1. Pressurize the water that's going to the toilet bowl, similarly to having the water cistern / deposit at a very high height with a wide pipe: The pressure in water increases by 1bar for every 10m depth. They fake it by compressing air inside a cistern's vessel with the line's water pressure, so it's released when flushing, greatly increasing the flow rate to the bowl. Would be like throwing a big bucket full of water to the bowl at once. The water can overflow the bowl in some cases, if what's inside clogs the drain in a certain manner. Some toilets (regular ones or squat toilets), just discharge the whole water line pressure directly to the bowl, without any cistern in the middle. This has the advantage that you can be flushing continuously as long as you want, sthere's no need to wait for refill. The downside is that, if the line's pressure is low, may not be able to flush properly or the water may not cover all the desired parts of the bowl. If the water pressure is too high, or the nozzle has a weird shape, it can lead to water splashing which is not hygienic, so you must set aside before flushing.
  2. Suctioning temporarily the air that is trapped in the trapway (so they induce the siphon effect earlier without requiring the water to reach certain level in the bowl first). This can be combined or not with the 1st point. The downside is, that the air which is sucked, may not be sterile or even contain waste, so the system will get dirty in the inside and require a costly maintenance or unexpected behavior.

Making portable applications for Windows is not as easy as it looks like

Some commercial program offer the possibility to create portable applications for Microsoft Windows, for software that is not officially distributed as portable. An example of such program which I'll be testing today, is VMware ThinApp 2212.

The application which I'll try to make portable, is "Bentley MicroStation CONNECT Edition - Update 15 [10.15.00.074] [2020, English/Russian]", magnet Info Hash v1 2d512ede2083d41b5851350e40aab85392488c65. First I'll perform a normal install and see how much time does it take, then make it portable and compare.

The operating system is Windows 10 64-bit version 22H2 Build 19045.3086. 

The size of all the installer files ("MicroStation CE15" folder) is 7.88 GB, but not everything will be installed.

NORMAL INSTALL

Normal install (without the 2 extra software) takes 15 min. Size occupied by installed software is about 19 GB. MicroStation runs perfectly fine so no comments on the matter.

CREATION OF PORTABLE VERSION

The creation of a portable requires a lot of space, specially if you choose to build the MSI and compress. The drive has 265GB of free space, with ThinApp installed and all the installer files of MicroStation.

This is the time that takes each step:

  • Prescan (scan C: and registry just before installing the software): 7 min.
  • Actual installation of MicroStation: 15 min.
  • Postscan and comparison: 27 min.
  • Entry point configuration: Restricted write access; do not generate MSI package; do not compress virtual package: 4 min.
  • Save project files: 36 min.
  • Build portable application: 34 min.

Results:

  • Total time taken to make the portable: 123 minutes vs normal install which is about 15 min.
  • Saved project is located at: "C:\Program Files (x86)\VMware\VMware ThinApp\Captures\CONNECTION Client\"
  • Total size for saved project: 55.3 GB
  • Total size for portable application itself (subfolder "\CONNECTION Client\bin\"): 27.8 GB
  • If generating the MSI package and compress are selected, it will take several hours, maybe half a day. Only choose if the portable application already works.

Launching the portable program from "bin\MicroStation CONNECT Edition.exe" always fails. The welcome screen is always presented, but when it's time to load the main window just closes without any message. This is an indication that this program is more difficult to capture than usual, or it's not possible at all (don't know).

If you try to run a portable version made by someone else, it happens the same, doesn't launch at all, so the guy didn't double check that it worked in various systems before publishing: The House of Portable: Bentley MicroStation 10.09 Portable

Friday, June 9, 2023

Why Terminator can say I'll be back

It's fine that The Terminator says I'll be back. After all, machines can also take shortcuts. Arnold Schwarzenegger is just being too German now.

Links