Show more

RT @Xabber_XMPP
The cowards from @torproject have limited replies to their pathetic call to cancel rms. Despicable leadership figures who are in charge of this important project should be removed from their positions. twitter.com/torproject/status/

Sand Fox boosted

Pseudolocale Lib for PHP

I haven't found a good standalone pseudolocalization library for PHP so I wrote my own.
sandfox.dev/php/pseudolocale.h
Or if you're using Symfony Components or you don't mind using huge libraries for simple tasks, there is one good alternative: PseudoLocalizationTranslator in the Symfony Translation Component since version 5.2.

----------------------------------------------------------------------
sandfox.me/php/pseudolocale.ht

en.wikipedia.org/wiki/Pseudolo
symfony.com/doc/current/transl nerdica.net/objects/a85d745959

Sand Fox boosted

Trash Directory for Partition

If you have a separate user writable drive mounted, you may have encountered the same problem I had. If your DE cannot create .Trash-$uid, most DEs will not delete files to the trash at all and KDE will copy deleted files to your home partition. I find both behaviors frustrating.
The solution is rather simple: look at the spec and create the trash directory manually.
# for example, your drive is mounted to /media/external
# go to the drive root
cd /media/external
# create root owned .Trash
sudo mkdir .Trash
# make it world writable with a sticky bit
sudo chmod 1777 .Trash
Note
Sticky bit is used for retaining control over your files in a publicly writable directory. Only the owner of the file can delete or rename it even if other users have write permission in the parent directory. This is a typical permission for /tmp. Read more

specifications.freedesktop.org
en.wikipedia.org/wiki/Sticky_b nerdica.net/objects/a85d745963

Show more

Sand Fox's choices:

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.