Posts

Showing posts from May, 2020

How to update a forked repo with git

Access to your fork folder cd whatever Add the reference to the original remote repo, called upstream: git remote add upstream https://github.com/whoever/whatever.git Get all branch from a remote repo: git fetch upstream Go to the brach we want to update such as master: git checkout master Re-write our master branch with the new commits from the original master branch: git rebase upstream/master Finally, to update our remote fork, follow this sentence: git push -f origin master

QT and HiDpi configuration to change icon fonts size in applications

Image
If you are using an application with QT interface, probably you will see icons or fonts very large like zoom or vidcutter. To solve it, just add the following QT values in /etc/environment export QT_AUTO_SCREEN_SCALE_FACTOR=0 export QT_SCALE_FACTOR=1 To choose the better values you can test them executing the following command: env QT_SCALE_FACTOR=0.5 QT_AUTO_SCREEN_SCALE_FACTOR=0 app , where app is the application with visualization issues such as vidcutter UPDATE: This steps also works for Zoom, tested on Ubuntu 19.04 Enjoy it!

How to solve convert-im6.q16 issues

If you try to convert multiple jpg to a single pdf probably you will see this message: $ convert `ls -1v` file.pdf convert-im6.q16: Corrupt JPEG data: 94 extraneous bytes before marker 0xd9 `0.jpeg' @ warning/jpeg.c/JPEGWarningHandler/352. convert-im6.q16: not authorized `pictures.pdf' @ error/constitute.c/WriteImage/1056. To solve the first issue just convert the files to png and after to jpg again, like this example: mogrify -format png *.jpg rm *.jpg mogrify -format jpg *.png rm *.png To solve the second, just execute the following command: sudo sed -i 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/g' /etc/ImageMagick-6/policy.xml Enjoy it!