zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Arduino SRF08

October 18, 2012 by Igor Drobot 4 Comments

The speed of the sound in the dry air (20° C) is around 343 m/s. Send a short ultrasonic pulse at Frequency of 40Khz in the air, and try to listen to the echo. Of course you won’t hear anything (only a little click noise), but with an ultrasonic sensor the back pulse can be detected. If you know the time of the forth & back travel of the ultrasonic wave, you know the distance, divide the distance by two and you know the range from the ultrasonic sensor to the first obstacle in front of it.
[Read more…]

Filed Under: DIY, Linux, Programming Tagged With: arduino, Sonar, SRF08, Ultra Sonic

Monitoring with ICQ

September 3, 2012 by Igor Drobot 2 Comments

Another modern method for the mobile age to be up to date everywhere about your infrastructure. Everyone has a mobile device with internet access, you need only a ICQ client to receive information notifications.

Today I’m going to talk about how to bring this idea to live… [Read more…]

Filed Under: Bash, Debian, Linux, Monitoring, Ubuntu Tagged With: centerim-utf8, ICQ, Instant Messaging, Monitoring, ssh

Fix locale issues in Mac OS X

August 16, 2012 by Igor Drobot Leave a Comment

I faced a problem with locales in terminal on Mac OS X Lion. Midnight Commander didn’t want to display Cyrillic symbols in filenames and directories, on my remote media-Server I’ve been getting messages like “warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)”. The solution is fairly simple – add these two lines to ~/.bash_profile (by default is seems to be missing, so create the file):

1
2
3
4
ids:~ id$ cat .bash_profile 
 
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

ids:~ id$ cat .bash_profile export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8

Filed Under: Apple, Bash, Mac OS X Tagged With: Apple, bash, locale, MAC OS X

Terminator

July 1, 2012 by Igor Drobot Leave a Comment

Everyone of you know the default GNOME Terminal or the KDE-Konsole, this terminals are usable only after some tweaks like color scheme or the hotkey binding.
I work usually with a lot different [Read more…]

Filed Under: Bash, Linux Tagged With: bash, Konsole, Terminal, terminator

Find duplicate files by size

May 17, 2012 by Igor Drobot Leave a Comment

Find the same files by their size:

1
ls -l | awk '$1!~/^d/{if(size[$5]!=""){ print}size[$5]=$8}'

ls -l | awk '$1!~/^d/{if(size[$5]!=""){ print}size[$5]=$8}'

Very useful to delete duplicate photos or videos.

Filed Under: Bash, Linux Tagged With: duplicate, duplicate filles

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 11
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok