Friday, December 31, 2010

First Android Application!

We made it! First android application (tool I would say) is now released!
Decimal Converter is actually for computer scientists because it converts from decimal to binary, hexadecimal and octal!
The new in this application is that it can convert negative integers 32-bit!
If you have an android phone try it!

Friday, December 24, 2010

Surprise by Vaslabs!

We have released the new version of DBHC! Now you can convert between decimal, binary, hexadecimal, octal and Text! Yes, text! We have made it to give you a Christmas present and we are glad. We hope you will be too!

Download it from there and enjoy!

Part 2 Lesson 2

Ok so let's create a playlist with a given format(if given). (continue from lesson 1)
User should provide 2 arguments now. The first is the artist and the second the format of the song:
e.g user will give Dion mp3
so $1 is "Dion"
$2 is "mp3"
The script will be like that:

for music in "$1/*/*.$2"; do
audacious -e "$music" &
done

but what if he misses one argument or he doesn't want to provide one of the 2?
Think about it.
We can ask for an argument -a for the artist and -f for format. eg:
user will give: script_name -a Dion -f wma
of
-f mp3
or nothing.
Solution on next lesson :P

Wednesday, December 22, 2010

Part 2 Lesson 2 (tricks (a))

What about a live clock in your terminal? Try this:
clear; while true; do
date
sleep 1
clear
done

:P