Engineering and technology

Roche limit

In celestial mechanics, the Roche limit, also called Roche radius, is the distance within which a celestial body, held together only by its own force of gravity, will disintegrate due to a second celestial body’s tidal forces exceeding the first body’s gravitational self-attraction. Inside the Roche limit, orbiting material disperses and forms rings, whereas outside the limit material tends to coalesce. The term is named after Édouard Roche (pronounced ɔʃ] (French), /rɔːʃ/ rawsh (English)), who was the French astronomer who first calculated this theoretical limit in 1848.

https://en.wikipedia.org/wiki/Roche_limit

Problemi s perilicama posuđa

Znači, preostane jedino ono školsko razmatranje:

– svaka perilica prvo ispumpa vodu, smatra se da postoji preostali sadržaj šalica i sl. i to traje 20-30 sek (akustički: laaaaaah laaaaaaah laaaaaah)

– onda utoči svježu vodu otvaranjem niza elektroventila, to je tih zvuk bzzzzzzzzzzzzz i žubor

– nakon što utoči, trebalo bi otvoriti vrata da provjerite da li je vodostaj dostatan, obično je to 1-2 cm od donjeg ruba vrata

Ako ima radni vodostaj, kreće “prava akcija”:

– uključuje glavnu pumpu i to se čuje kako “bičuje” lim energično, dakle akustično žljaaam žljaaam žljaaam

– istodobno uklj. grijač i kad je voda mlačna, dakle nakon par minuta, čuje se udarac kad se oslobodi spremnik i pada tableta

Općenito, ako krene u “akciju” i zbrejka – tada rade samo gl. pumpa i grijač.

Ako gl. pumpa ima neki meh. problem, dakle zastoj ili teško okretanje rotora uslijed prodora iz smjera turbine (ispred motora), onda prekida jer troši previše struje takav motor i optočna pumpa je krivac. Imate novu, ne znam da li za taj tip, u Batis.hr i cijena je između 500 i 1000 kn, zapišite model pa nazovite
http://batis.hr/perilice.php?id=36&vrsta=22&id2=11

to je velik posao za zamijeniti odnosno 2 h minimalno će vam računati servis.

Ako grijač ima neki problem, onda nema očekivane krivulje rasta temp i zbrejka ciklus.

Grijač – da li uklj. ili ne – najlakše izmjeriti nekom spravom

https://www.chipoteka.hr/artikl/8627…821-6071050011

stavite u utičnicu i pratite potrošnju – odvodna pumpa 30 W cca, elektroventili nekoliko puta 2-3 W, ovisno o broju, glavna pumpa 150 W cca i grijač 1500-2000 W.

Ne znam da li to imate u domu – ali to je najviše pristupačna metoda.

I to bi bilo to – onako školski izrečeno…

https://www.forum.hr/showthread.php?t=378662&page=273

How to rsync over ssh when directory names have spaces – Unix & Linux Stack Exchange

This works in bash: Escape the spaces with backslash and then use quotes:

rsync -avuz me@some.server.com:"/media/Music/Heavy\ Metal/Witch\ Mountain/*" .

Or if you have the path in the variable $remote_path, spaces can be escaped with substitution:

rsync -avuz me@some.server.com:"${remote_path// /\\ }" .

Source: How to rsync over ssh when directory names have spaces – Unix & Linux Stack Exchange

WritingRules in SPAMASSASSIN

For our first rule, let’s start with the simplest type of rules, the basic “body” rule. These rules search the body of the message with a regular expression and if it matches, the corresponding score is assigned. Body rules also include the Subject as the first line of the body content. See [DumpTextPlugin]

Let’s look at a really basic fictitious rule:

body LOCAL_DEMONSTRATION_RULE	/test/
score LOCAL_DEMONSTRATION_RULE 0.1
describe LOCAL_DEMONSTRATION_RULE 	This is a simple test rule

This rule does a simple case-sensitive search of the body of the email for the string “test” and adds a 0.1 to the score of the email if it finds it. Now, this rule is pretty simple as rules go. It will match “test” but also “testing” and “attest”. The describe statement contains the text which will be placed into the verbose report, if verbose reports are used (this is the default setting for the body, in Spamassassin version 2.5x and upwards).

In regular expressions a \b can be used to indicate where a word-break (anything that isn’t an alphanumeric character or underscore) must exist for a match. Our rule above can be made to not match “testing” or “attest” like so:

body LOCAL_DEMONSTRATION_RULE	/\btest\b/

The rule can also be made case-insensitive by adding an i to the end, like this:

body LOCAL_DEMONSTRATION_RULE	/\btest\b/i
score LOCAL_DEMONSTRATION_RULE 0.1

Now the rule will match any combination of upper or lower case that spells “test” surrounded by word breaks of some form.

Source: WritingRules – SPAMASSASSIN – Apache Software Foundation

NFS – Dovecot Wiki

NFS

NFS is commonly used in one of these ways:

  1. Dovecot is run in a single computer.
  2. Dovecot is run in multiple computers, users are redirected more or less randomly to different computers.
  3. Dovecot is run in multiple computers, each user is assigned a specific computer which is used whenever possible.

The only way to reliably implement the 2nd setup is with the director service.

Dovecot configuration

Single Dovecot server setup or Dovecot director cluster setup:

mmap_disable = yes
#dotlock_use_excl = no # only needed with NFSv2, NFSv3+ supports O_EXCL and it's faster
mail_fsync = always
mail_nfs_storage = no
mail_nfs_index = no

Multi-server setup that tries to flush NFS caches (increases NFS operations, and isn’t fully reliable), try not to use this:

mmap_disable = yes
#dotlock_use_excl = no # only needed with NFSv2, NFSv3+ supports O_EXCL and it's faster
mail_fsync = always
# These settings slow things down and don't fully work, use director proxy instead:
mail_nfs_storage = yes
mail_nfs_index = yes

Common issues

Clock synchronization

Run ntpd in the NFS server and all the NFS clients to make sure their clocks are synchronized. If the clocks are more than one second apart from each others and multiple computers access the same mailbox simultaneously, you may get errors.

NFS caching problems

NFS caching is a big problem when multiple computers are accessing the same mailbox simultaneously. The best fix for this is to prevent it from happening. Configure your setup so that a user always gets redirected to the same server (unless it’s down). This also means that mail deliveries must be done by the same server, or alternatively it shouldn’t update index files.

Dovecot flushes NFS caches when needed if you set mail_nfs_storage=yes, but unfortunately this doesn’t work 100%, so you can get random errors.

Disabling NFS attribute cache helps a lot in getting rid of caching related errors, but this makes the performance MUCH worse and increases the load on NFS server. This can usually be done by giving actimeo=0 or noac mount option.

Index files

If you keep the index files stored on NFS, you’ll need to set mmap_disable=yes. If you’re not running lockd you’ll have to set lock_method=dotlock, but this degrades performance. Note that some NFS installations have problems with lockd. If you’re beginning to get all kinds of locking related errors, try if the problems go away with dotlocking.

With mbox/Maildir formats (but not dbox!) it’s also possible to store index files on local disk instead of on NFS. If the user gets redirected to different servers, the local indexes are automatically created/updated. If the user is (nearly) always redirected to the same server this should be fine and you would likely get higher performance than indexes stored on NFS, but if the server changes it can be slow to recreate the index/cache files.

Source: NFS – Dovecot Wiki