It’s not a secret that I make games. But this game is unique. I desided to do all the graphics myself. Here you can see a preview of what the game looks like just now.Continue reading
If you run a influxdb server on HTTPS with self-signed certificate, you can’t connect to it via influx command. You get ERR: Client sent an HTTP request to an HTTPS server.. Run influx command with -ssl -unsafeSsl and it will work.
For my little project i3-change.py I need lightweight in-memory database. My first idea was to use Redis (I have some experience with it) but it requires some library to control it. I need something more lightweight. I think using linux named pipes is elegant way how communicate with a database. Here is the full source of my lightweight in-memory database: https://github.com/petrposvic/in-memory-storage.
I use i3 window manager. If you switch to another workspace, mouse pointer will move to the center of the active window. It doesn’t matter for my work but sometimes (mainly on workspace where I have web browser) the centered mouse pointer obstructs the view and I’m forced give it away.
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