Feb 19, 2015

Install cvBlob on Debian

cvBlob installation looked like an easy task but took me a little while to figure out.

First, there are no libcv4 libcvaux4 libraries in Debian (at least in Wheezy). I installed libopencv-dev instead.

Next, there was a very strange problem that persisted after cvBlob installation:

$ ./red_object_tracking
./red_object_tracking: error while loading shared libraries: libcvblob.so:
    cannot open shared object file: No such file or directory

The solution was to run sudo ...

Continue reading →

Update git on Debian

Add the following repository to the sources.list:

deb http://ppa.launchpad.net/git-core/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/git-core/ppa/ubuntu precise main

Now, run sudo apt-get update and get the following output:

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A1715D88E1DF1F24

And fix it by running

sudo apt-key ...

Continue reading →

Feb 16, 2015

Clang fatal error: headers not found

In the morning I decided to try building the json11 library. I almost submitted a github issue but then understood that the error quite silly and was probably originating from my broken setup:

$ make test
clang++ -O -std=c++11 -stdlib=libc++ json11.cpp test.cpp -o test -fno-rtti -fno-exceptions
In file included from json11.cpp:22:
./json11.hpp:53:10: fatal error: 'string' file not found
#include <string>
         ^
1 ...

Continue reading →

Feb 15, 2015

Deploying sample Silex app to Heroku

For the last couple of weeks I met quite a few people who were praising PHP and I had an idea to have a brief look at it once again after more than 4-year break.

I decided to push a sample application to Heroku by following their tutorial but that turned out to be nontrivial on my Ubuntu 14.04LTS. Below I'll give a brief list of commands that ...

Continue reading →

Aug 15, 2014

Work-life balance & weekend reading

Links:

Continue reading →

Apr 23, 2014

Learning GNU screen

I recently started to remotely log into several servers quite often so I felt a need to maintain reliable connections to them and I considered a few choices:

As the beginner, I decided to stick to the easiest option - screen. It comes preinstalled on many server and many administrators install them alongside vim, emacs and git.

I decided to use this blog post for two purposes ...

Continue reading →

Apr 21, 2014

Moving Google Drive folder

UPD: My approach was partly successful, because Google Drive still decided to resync all my files after I successfully moved the root folder. If you have any idea what I could've missed, you're welcome to leave a comment below.

Let's describe what we aim to do: we have Google Drive on our computer in a synced state, but we want to move the whole Google Drive folder ...

Continue reading →

Jan 13, 2014

Small plans for January

This is a great year, I hope! So in order to make it great, we need to put some efforts to make it bright.

To strive, to seek, to find, and not to yield
- Alfred Tennyson

Continue reading →

Dec 25, 2013

Creating shortcut function in Fabric to create a Pelican draft

I migrated from Wordpress to Pelican few month ago and so far I was satisfied with it, mainly because my demands to the blogging platform are far lower than one might imagine. But as atrue engineer, I always strive to eliminate any duplication in code or in actions.

For this reason I've created one more Fabric function that creates a draft for me, properly setting the date and slug ...

Continue reading →

Aug 10, 2013

Rename all *.rst files in a directory according to their date

TODO:

  • add verbose mode
  • move awk output into variable and test if file already begins with a date
#!/bin/sh
for f in $(find ./content/ -name '*.rst'); do
    name=$(basename "$f")
    dd=$(dirname "$f")
    d="$dd/$(cat "$f" | grep ':date:' | awk '{print $2}')-$name"
    if [ ! -f "$d" ]; then
        mv "$f" "$d"
    else
        echo "File '$d' already exists! Skiped '$f'"
    fi
done

Continue reading →

Next → Page 1 of 9