A Workaround for the Default Gmail “From” Rewrite

Google automatically rewrites the “From” field of any e-mail you send through its SMTP servers to the default address set up in your Gmail account, even if you don’t send the mail directly from Gmail. If you’re not careful, this can tarnish your business image. This small quick fix has to be done before you start sending e-mails to help you keep your branding consistent.

Start by signing into the Gmail account you use with Google SMTP. Click the gear icon in the top left corner, then choose Settings. Select the Accounts and Import tab. Look at the Send mail as section and make sure you have more than one e-mail address set up. If you don’t, add another account, preferably one personalized with your business branding. Now simply make this your default account; Google’s SMTP will automatically rewrite the From field using this address instead of your Gmail account. It’s that simple!

problems with phpmyadim

Sometimes it happens that phpmyadmin (/mysql) don’t allow you to do what it should allow, such as change the encoding of a column (or of a table or of a database), or change the engine of tables.

Then, after many failed attempts via sql query, I found that the easiest solution is

  • export the database
  • do the changes you want through a text editor, such as Kate, i.g., replacing the old enconding with the new one
  • import the (modifyed) database (after deleting/renaming the old one)
  • done!

matrix clients

desktop clients

Unfortunately all the matrix desktop clients we have tested are quite poor from a graphical point of view: very different from whatsapp or telegram ones, and in particular their interface lacks of intuitivity.

Furthermore, the only capable to make a (video or audio) call is Element, while the others work only as messaging app.

mobile clients

There is Element, but I found Schildichat, with a more friendly interface, very similar to WA or Telegram.

svg rounded corner and shadow

shadow (like css shadow-box)

At least with Firefox you can use a filter, like the following:

.shadow{filter: drop-shadow(8px 6px 6px gray);}

rounded corner

The simplest way to round the corners of a box is to

  • use rect element with rx and ry attributes (such as rx="20" ry="20")
  • and define the style of rect with stroke-linejoin:round; and something like stroke:[your color]; stroke-width:[the width you like];

You can see the following example

box rounded

update wordpress in localhost

First of all backup your database follwing these insctructions.

  1. Get the latest WordPress zip (or tar.gz) file.
  2. Unpack the zip file that you downloaded.
  3. Deactivate plugins.
  4. Delete the old wp-includes and wp-admin directories on your web host (through your FTPor shell access).
  5. Using FTP or your shell access, upload the new wp-includes and wp-admin directories to your web host, in place of the previously deleted directories.
  6. Upload the individual files from the new wp-content folder to your existing wp-content folder, overwriting existing files. Do NOT delete your existing wp-content folder. Do NOT delete any files or folders in your existing wp-content directory (except for the one being overwritten by new files).
  7. Upload all new loose files from the root directory of the new version to your existing WordPress root directory.

NOTE – you should replace all the old WordPress files with the new ones in the wp-includes and wp-admin directories and sub-directories, and in the root directory (such as index.phpwp-login.php and so on). Don’t worry – your wp-config.php will be safe.

Be careful when you come to copying the wp-content directory. You should make sure that you only copy the files from inside this directory, rather than replacing your entire wp-content directory. This is where your themes and plugins live, so you will want to keep them. If you have customized the default or classic themes without renaming them, make sure not to overwrite those files, otherwise you will lose your changes. (Though you might want to compare them for new features or fixes..)

Lastly you should take a look at the wp-config-sample.php file, to see if any new settings have been introduced that you might want to add to your own wp-config.php.

More details here.

svg with external image embedded

All browsers have this limitation: they not allow to show an svg with an external image embedded, such as

<image x="2" y="2" width="somewidth" height="someheight" xlink:href="myimage.jpg">

even though the image is in local.

For security reasons.

android mail app

K9-Mail is a good app, but unfortunately rarely updated, in the last year. Besides, it has had an annoying cryptography bug and a notification bug.

So we tried FairEmail, that is definitely more accessorized, but not really privacy-friendly as they pretend, and not so open source: impossible to contact the developer, and pro functionalities are blocked until you pay something.

So, we went back to K9-Mail, that is absolutely open-source, even more “spartan”, but in its latest release without cryptography bug and notification bug.