List fonts used in PDF document

If you want to see what fonts have been used in creation of a PDF document, you can use pdffonts utility of poppler-utils package for this. Just type:

  • pdffonts yourfile.pdf

Generate QR code

  • This simple command will give you an SVG file with QR code vector image in it:
echo "Hello world!" | qrencode --level=H --dpi=300 --type=SVG -o qr.svg
  • If a bitmap is enough, just type:
echo "Hello world!" | qrencode --level=H --dpi=300  -o qr.png

  • Even this simple command will work:
qrencode -o qr.png "Hi!"

  • Change the color from standard black to any if you like:
echo "Hello world!" | qrencode --foreground=808080ff --level=H --dpi=300 --type=SVG -o qr.svg
  • Alpha supported too:
echo "Hello world!" | qrencode --foreground=FFFF00FF --background=0000FF55 --level=H --dpi=300 -o qr.png
echo "Hello world!" | qrencode --foreground=FFFF00FF --background=0000FF55 --level=H --dpi=300 --type=SVG -o qr.svg


Add custom emblems in Linux Mint Mate

You can make and assign your very own Gnome emblems to files and directories in Linux Mint Mate ( Tested on Mint 18 ).

  • Go to Home folder
  • Select from menu Edit -> Backgrounds and Emblems…
  • Choose Emblems
  • Add a New Emblem…
  • Enter the Keyword
  • Click Image to select image file

You can add any custom image of whatever size, as it gets rescaled as needed.

Still you may want to use one of the standard sizes (16×16, 22×22, 24×24, 32×32, 48×48, 96×96) and save it as a PNG file in a location of your choice.

Try to start with the image size of 24×24. You may use one of the existing emblem files for reference, for example /usr/share/icons/Mint-X/emblems/24/emblem-favorite.png .

Removing line breaks from base64 encoded data

You may experience a weird problem, when you attempt to embed base64 encoded TTF font file in a Web page with CSS @font-face and the font just does not work. You try decompressing the base64 data, and get perfectly valid TTF file. Everything is fine, but nothing works.

Well, the problem is caused by line breaks in the base64 encoded data. It is said that those line breaks are there because once upon a time software could not handle long strings. Well, these days it is obviously the opposite. Web browsers seem unable to handle base64 data with line breaks SOMETIMES, because base64 encoded images work perfectly well even if there are the breaks. The fonts don’t though.

Whatever. Take your base64 encoded file and run this command on the command line:

tr -d "\n\r" < Font.base64 > Font-valid.base64

Add image to MP3

You can add album art images to your mp3 files. Use EasyTAG (GUI) or eyed3 (CLI) ID3 tag editors to accomplish that.

Example. Use eyed3 to remove any embedded images, then list options for embedded image file, then embed an image for an icon:

  • eyeD3 --remove-images test.mp3
  • eyeD3 --list-image-types
  • eyeD3 --add-image=test.jpg:ICON test.mp3

LibreCAD icon for Linux Mint Mate

LibreCAD icon, PNG, 48×48 pixels, for use with Linux Mint Mate panel, matching Mint-Y theme icons.

As such an icon was not included in the distribution a custom one had to be made.

LibreCAD icon, PNG, 48x48 pixels

LibreCAD icon, PNG, 48×48 pixels

Windows 10 icon PNG

A 48×48 pixel PNG icon for use with Linux desktops.

Can be used to start a virtual machine with MS Windows 10 inside.

Windows 10 icon, PNG, 48x48 pixels

Windows 10 icon, PNG, 48×48 pixels