[22-05-2018]
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]
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]
> docker ps CONTAINER ID IMAGE abcdef123456 image_name > docker exec -it abcdef123456 /bin/bash
[17-05-2018]
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]
> cat /etc/centos-release > cat /etc/redhat-release
[11-05-2018]
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]
JNI Cookbook – Appendix B
[27-04-2018]
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]
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 […]
[26-04-2018]
If you encounter this kind of problems, make sure to check port forwarding on your router. Recently, it happened to me that router decided to remove all the port forwarding I have set up in the past. Just make sure to have this list of forwards configured. You can read more about configuring Polycom with […]
[21-04-2018]
If you encounter this kind of issue g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. Make sure to provide way more memory for your Docker
[21-04-2018]
Recently, I have found that it is a definitely good idea to call sudo tmutil addexclusion -p $HOME/Library/Containers/com.docker.docker if you have Time Machine and you play with Docker a lot. This command is definitely worth running.
[20-04-2018]
If you are getting this error ‘Error while fetching server API version: {0}’.format(e) DockerException: Error while fetching server API version: (‘Connection aborted.’, error(2, ‘No such file or directory’)) you should know that all you need is a Docker that is running ;) I love this kind of errors :)
[27-03-2018]
In Java 10, there is no longer javah tool. It means, that you can’t extract information regarding native interfaces easily. It’s not that simple to generate header files based on compiled – class – files. If you desperately need to process lots of class files, you can alway hack through using javap tool. You can […]
[20-03-2018]
Eventually, the time for updates has come. I had to update all the codes (Makefiles, to be precise) to get JNI Cookbook samples working with most recent releases of the tool chain. http://jnicookbook.owsiak.org/introduction/
[20-03-2018]
Well, you will be surprised with Java 10 and JNI. They have warned – that’s true, but it escalated quickly ;) > javah -jni -d c -cp target recipeNo001.HelloWorld javah: No such file or directory you have to switch to javac and use it’s new feature of generating JNI headers directly from java files instead […]
[20-03-2018]
In the past I was using Eclipse as a tool for Java formatting. Eclipse allows you to call formatter from CLI which makes it super convenient to format lots of files easily. You can find description here. But, I think that Eclipse’s time approached. I have found something called: Google Java Format. It’s very handy […]
[10-03-2018]
From time to time, I need to generate animated GIF. Mostly in cases when I want to share some info on web page or when I want to show some actions to the users. Usually, few steps that has to be done to achieve something. Like “-Click here, click there, here you go. It’s all […]
[08-03-2018]
If you are fan of point and click games you can’t miss this one – CHUCHEL. This is yet another game from well know Animata Design. These guys are the ones behind Smorost, Machinarium, and Botanicula (just to mention few). All these games have few, common, attributes: surrealistic sense of humour, great sound tracks (made […]
[06-03-2018]
While exporting gameplay from Awesomenauts, you may experience issues related to architecture used during ffmpeg compilation. Awesomenauts come with precompiled ffmpeg version, but it looks like something went wrong. The results are horrible. No exporting inside macOS High Sierra. It looks like Awesomenauts are distributed with incorrectly built tool (in fact, libs). ./ffmpeg_mac dyld: Library […]