[23-06-2018]

TIS-100 – nice brain teaser for people
who like Assembler

If you like brain teasers, there is this cool game: TIS-100. It’s a game, where you are supposed to solve Assembler based problems. You have a reduced set of instructions: moving data, basic arithmetics, few conditional jumps, and only one register – ACC. Well, in fact there are two registers, but other one is only […]


[21-06-2018]

Killing all your VNC sessions at once


[20-06-2018]

Pegasus Workflow Management System + VMware Fusion

If you want to start your experience with Pegasus Workflow Management System I strongly advice to use ready to go Virtual Machine available for download. You can get it here. PegasusTutorialVM-4.7.4.ova After downloading it, open VMware Fusion and choose: File -> Import… and choose PegasusTutorialVM-4.7.4.ova (you can find it wherever you have stored it – […]


[12-06-2018]

Do not give up. Fight till the end.

I was supposed to say This is the end Beautiful friend This is the end My only friend, the end — The Doors, The End after seeing this beautiful picture during startup. As you may guess, it was gone. Everything was gone. Apart from data: “- Thank you! My dear Backup System, thank you. I […]


[04-06-2018]

Java, Python and IO inheritance

If you remember old way of reading/writing streams between JVM and external process, you probably remember how tedious it was in the past (all these Gobblers, Threads, etc.). Today, it’s way more simple. All you have to do, is inheriting JVM’s IO. Let’s say you want to run simple Python code that reads something from […]


[30-05-2018]

macOS High Sierra – make sure your system is safe
updated for ClamAV release 0.100.0

If you want to make sure that your macOS High Sierra is clean (when it comes to malicious software) you can use free tool (free as in beer and free as in speech – at the same time) called ClamAV. You can get it various ways. You can download it’s commercial version from AppStore – […]


[29-05-2018]

Simple automation for random commenter name

$input_1 = array( "Pragmatyzm", "Idealizm", "Sofizm", "Arystotelizm", "Scholastyka", "Egzystencjalizm", "Fenomenologia", "Analityka", "Behawioryzm", "Buddyzm", "Kartezjanizm" ); $input_2 = array( "Kanta", "Arystotelesa", "Platona", "Sokratesa", "Kartezjusza", "Peirce’a", "Dennetta", "Kołakowskiego", "Tatarkiewicza", "Kotarbińskiego", "Kanta", "Locke’a" ); $name = $input_1[rand(0, count($input_1) – 1)] . ‘ ‘ . $input_2[rand(0, count($input_2) – 1)]; <input hidden="true" type="text" name="author" id="author" class="text" value="<?php echo htmlspecialchars($name)?>"/>


[28-05-2018]

GDPR and blog comments

I have no idea whether GDPR affects personal blogs or not. However, I decided to clean all the e-mails attached to comments, anyway. In fact, I haven’t asked people for name, e-mail, anything, for quite some time (more than a year already, I guess). Today, however, I have decided to make a final step. I […]


[28-05-2018]

I’d love to comment an article on your blog

but you don’t let me do it. Dear, anonymous blogger, you make me run away just after reading your ideas. Yes, you hide yourself behind Disqus, Twitter, Facebook login. You force me to provide my name, my e-mail, my everything. It makes me say “-I don’t care. Reading was nice, but I have no time […]


[28-05-2018]

Unpacking RPM

rpm2cpio file.rpm | cpio -idmv


[26-05-2018]

It looks like all the people in IT industry write books …

and this reminds me of a quote The irresistible proliferation of graphomania among politicians, taxi drivers, childbearers, lovers, murderers, thieves, prostitutes, officials, doctors, and patients shows me that everyone without exception bears a potential writer within him, so that the entire human species has good reason to go down into the streets and shout: “We […]


[22-05-2018]

Story of a simple task

There was this on-line challange where you were supposed to calculate the cargo that could fit into your cargo space. Task, itself, was not complicated, however my ideas about solving it, were jumping from technology to technology. From purely functional, via object based to ancient, structural based, approach. At first, I though – “Why not […]


[18-05-2018]

CentOS 7 – issues while using certbot

On CentOS 7 you can face issues related to pyOpenSSL version while running certbot (https://certbot.eff.org/). ImportError: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer. If you can’t force CentOS 7 to use more recent version of this package, try this: > cd ~ > curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" > python get-pip.py > […]


[18-05-2018]

Connecting to already running Docker container

> docker ps CONTAINER ID IMAGE abcdef123456 image_name > docker exec -it abcdef123456 /bin/bash


[17-05-2018]

Calling C code from Python via Cython

If you need more information what Cython is, take a look here: http://cython.readthedocs.io/. This sample, is a simple “Hello world” code for macOS based installation of Python and Cython. First step is to get Cython for your platform. You can use pip to achieve that # Installation of Cython at macOS # I prefer to […]


[17-05-2018]

How to get info which release of CentOS was installed

> cat /etc/centos-release > cat /etc/redhat-release


[11-05-2018]

The Art of Quitting

Do you want to avoid these awkward moments when you want to do something inside editor but you have no idea how to do it? Do you want to look like a pro while working with random people? Do you remember last time you have asked your colleague – How do I quit this thing? […]


[01-05-2018]

Surviving in Java’s world

JNI Cookbook – Appendix B


[27-04-2018]

uDocker – when there is no root around

Docker (at some point) requires root privileges. However, it’s not always the case you have them. And then, you need to go via sys admin ;) source: When Sysadmin lends a hand – CommitStrip If you have found yourself in a situation like this, consider using either uDocker or Singularity. Using uDocker, you can run […]


[26-04-2018]

Ansible Container and time out
during the process of storing large image files

If you have encountered the issue related to time out (during the build process of images while using ansible-container), take a look here: Reproducing the issue (macOS) $ python2.7 -m ensurepip –default-pip $ sudo pip install virtualenv $ virtualenv venv $ source venv/bin/activate $ pip install ansible $ pip install ansible-container[docker] $ pip install docker==2.7.0 […]