Lubuntu, LXDE, fist move

Merge image and audio file - FFMPEG

Merge files by FFmpeg:

ffmpeg.exe -loop 1 -i image.jpg -i audio.mp4 -acodec copy -vcodec mjpeg merged.avi


Recepty na jídla

Zařízení MTP USB - Toto zařízení nelze spustit. (Kód 10)

Po připojení mobilu nelze nainstalovat ovladač - Zařízení MTP USB hlásí "Toto zařízení nelze spustit. (Kód 10)
Mě pomohl restart mobilu :)


Arduino Prtotothreads alternative - without protothread library

Protothread alternative:

unsigned long timestamp = 0;
int interval = 1000; // =1s

void loop()
  if(millis() - timestamp > (unsigned long)interval) {
    timestamp = millis();


Pspell / Aspell and linux

Install programs (czech dictionary):

apt-get install libpspell-dev php5-pspell aspell-cs

Use program in PHP:

Howto protect Linux server - Quick install fail2ban

Install fail2ban:

apt-get install fail2ban

Copy configuration file to right place:

cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

Edit configuration file

bantime  = 600 # = 10min (bigger = better)
banaction = iptables-allports

enabled  = true

enabled  = true

Restart service:

service fail2ban restart

Check iptables:

iptables -L -n

Log file:

Settings Ubuntu 14.04 LTS. Trusty Tahr - Server, LAMP

Howto Android application Google maps GPS

1) Generate SHA1 fingerprint:

# Windows
C:\Program Files\Java\jdk1.8.0_05\bin\keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

# Linux
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

2) Enable Google API

Raspberry Pi

Boot settings:

# nano /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait bcm2708.w1_gpio_pin=18



Subscribe to RSS