I use simple script for screenshots (bind on PrtSrc key). It saves picture of current screens in home directory. Usualy I want open the picture immediately. I created simple script that opens the youngest .jpg file in current directory (named gimp-last).Continue reading
ESP3D is firmware for ESP8266 and ESP32 to add wireless control your 3D printer. For me is important print progress and temperatures but you can upload files on SD card and start printing, move motors and send custom commands.
You can get ESP3D here https://github.com/luc-github/ESP3D. I use it with ESP12 and here is my wiring:
Of course ESP part are two pin headers. GPIO0 and GPIO2 are high but for programming I can switch them.
|UART Download Mode||0||1||0|
In Android development I occasionally need test some separated functionality. Building the whole project takes time and may causes side-effects. That’s why I use command line compiler.Continue reading
In Python there exists logging module. You should use it instead of print function. In this article I’ll show you how use logging in sub-modules.Continue reading
By default in i3 there is a key shortcut MOD + SHIFT + e to open bar on top of your screen. If you click on Yes button, i3 terminates. But you have to use a mouse what is not comfortable. I rewrite the shortcut to use dmenu instead of the i3-nagbar.Continue reading
In Bash there are two well-known constructs named here-document and here-string. here-document is
wc << EOF > one two three > four five > EOF 2 5 24
and here-string is
bc <<< 5*4
Last upgrade of Google Chrome brings new feature – Tab Hover Crads. If you want disable it, go to chrome://flags/, search Tab Hover Cards and set to Disabled.
Yesterday I updated Windows 10, BIOS and some drivers of my Dell and couldn’t run Grub, just Windows Boot Manager. I re-installed Grub from Debian recovery without succes, Windows started directly after reboot.
First fix was copy /boot/efi/EFI/debian/grubx64.efi to /boot/efi/EFI/Microsoft/Boot/bootmgrfw.efi (with backup of original file, of course) and then Grub started. But why BIOS didn’t read /boot/efi/debian/grubx64.efi?
In BIOS (Boot Sequence menu) I had 1. option “debian” and File System List was “HD(1,GPT,D6E…)” what was wrong. I deleted this option and add new one with File System List “PciRoot(0x0)/Pci(0x17,0x0)/Sata(0x2,0x0)/HD(1,GPT,D6E…)” and correct File Name “\EFI\debian\grubx64.efi” and then Grub started work.
Then I reverted back “first fix”, rename back /boot/efi/EFI/Microsoft/Boot/bootmgrfw.efi.backup to /boot/efi/EFI/Microsoft/Boot/bootmgrfw.efi and Grub starts after reboot again.
All time when I used i3 window manager I used i3status too. i3status is little bar on bottom of the screen which displays info about things I’m interested in, i.e. free disk space, IP address, volume level, date and time (+ tray icons).Continue reading