Creating abstracted Dockerfile is something I really wish existed. Every time,
I write a
Dockerfile for a specific base image I must specify the correct
package manager command. You either use
yum or any other
call for the package manager. This is unfortunately, not very reusable. But,
here is a simple schema how to use M4 macros to achieve this abstraction.
I am learning Ruby, and coming from Python it's not a an easy thing.
Ruby is confusing, it has a weird syntax, and things are not really
simple as in Python. There is still tons of stuff which seem like dark magic.
nil, there are
bundler. And there is Rails,
which isn't Ruby. Ruby is good for so many people out there, and I am sure
you can do amazing things in it. I already know it's never going to be my
weapon of choice, but it's not bad knowing my way around it. I'd like to know
how to set up a simple project, read and debug code, install gems and package
ruby projects. I have been ignoring Ruby for too long.
Yesterday night I released a new version of my CLI password manager Pwman3. This is a major mile stone, with huge amount of changes and improvements. Read more to find about what changed, and what I learned writing this version.
If you have a publicly available server you can setup a permanent SSH connection to it from your OpenWRT. Add remote port forwarding to the plan, and you get an easy way to always access your hosts where your OpenWRT router is.
I am announcing here the release of the ebuilds collection of mate-desktop for gentoo. All ebuilds support building with traditional GTK+2 and the newer GTK+3.
Creating morse code or translating it to ASCII text is fun, even more fun is making your laptop beep morse code. Here how you can do it with Python.
Regular Expressions are really awesome, and If you read the last post you might got the wrong impression I am totally against their use. I love using regular expressions, but sometimes, knowing Python is more than enough.
When programming in Python, regex are not always your best tool. This has a few reasons, regex can be computationally expensive, unreadable and unmaintainble, and finally, sometimes there is a better pythonic way without them. Here are a few examples.
This blog is back from a long pause