When you install a new Linux alongside another one, your computer will likely use the last installed OS’s GRUB instead of the one from the previous install. In my case, I have installed Debian, and a few days later, a Linux Mint on the same disk. But the thing is I prefer the Debian’s GRUB […]
Category Archives: Linux
[Debian] Japanese IME in GNOME 3 desktop
Surprised The japanese IME on Debian, when installed properly, works pretty much similarly to the Windows 7 one… I was quite surprised by the quality of this software piece. Step by step Install those packages from official repositories: ibus and ibus-mozc (along with their dependencies, of course). Launch the Region & Language settings app. In […]
[Debian] Basics of animated GIF optimization with ImageMagick
I was doing an ingame video capture and I needed to have it in a GIF format. A few frames of the animation could be optimized as there were sometimes still images. So if I wanted to remove those unnecessary frames (while keeping the correct duration, of course), one can simply use ImageMagick. How to […]
[Debian] Create a QRCode for a vCard file
Didactic I am writing a little tutorial here for creating a QRCode for a vCard file. As I don’t use it that much, it feels like I need a memo for it. Preparation We will use a vCard file named test.vcf which contains the following:
1 2 3 4 5 6 7 8 9 10 |
BEGIN:VCARD VERSION:2.1 N:Family Name;First Name;;; FN:First Name Family Name TITLE:Your job title EMAIL:emailaddress@example.com ADR;HOME:;;123, avenue des Champs-Élysées;Paris;Île-de-France;75008;France TEL;TYPE=cell:+33 123456789 URL:http://example.com END:VCARD |
Result file Generating the image Prerequisites qrencode package with […]
[Debian] Generate TeX formulas as SVG or PNG images Wikipédia-like
Preparation We will use this file named texfile.tex as the .tex to convert:
1 2 3 4 5 6 |
\documentclass[12pt]{article} \pagenumbering{gobble}% Remove page numbers (and reset to 1) \begin{document} My first \TeX~document. $s_n = (Ta)_n = \displaystyle\sum_{k=0}^\infty T_{nk} a_k$ \end{document} |
Result file Generating PNG images Packages you need: texlive (or any other TeX program, I guess) dvipng Step by step In the Terminal, go to the directory containing the .tex file. Execute this:
1 |
$ latex texfile.tex |
Output:
1 2 3 4 5 6 7 8 9 10 11 12 |
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./texfile.tex LaTeX2e <2014/05/01> Babel <3.9l> and hyphenation patterns for 2 languages loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo)) (./texfile.aux ) [1] (./texfile.aux) ) Output written on texfile.dvi (1 page, 584 bytes). Transcript written on texfile.log. |
Convert to PNG at 150dpi (to […]
[Debian] Fix the backlight function keys on Intel GPU laptop
*UPDATE* March 10th, 2019 I have to update my post because the previous fix does not work anymore with recent versions of debian + GNOME 3, on the same laptop as before (sandybridge core i3). Now, you have to follow this suggestion given by people all around the world: edit the /etc/default/grub file in super […]