Navigation

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();
    //doSomething();
  }  
}

.

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

[DEFAULT]
...
bantime  = 600 # = 10min (bigger = better)
...
banaction = iptables-allports


[ssh]
enabled  = true

[ssh-ddos]
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
https://console.developers.google.com/project

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

Proxy:

Camera SJ4000 diving

Diving with Camera SJ4000 (in linux named Novatek) in Greece / Corfu / Kassiopi.
First video is original, second was edited by Google tools stabilization & repair (brightness, ...)

Proxy settings debian, raspberry-pi

nano /etc/environment

Pages

Subscribe to www.duckd.cz RSS