Monday, March 31, 2008

Velopokatushka2


Google map





Thursday, March 27, 2008

my bike

I purchased the bicycle two weeks ago.

Черкассы
Магазин "ВЕЛОбум" Адрес: г.Черкассы, ул.Парижской Комунны, 65
Режим работы: с 08-00 до 18-00
Телефон:8-0472-36-12-88

http://forum.ck.ua/viewtopic.php?t=9810
http://velokuban.ru/

My bike is Kross Hexagon V5 but frame like in V6.

SPECIFICATION:
  • FRAME 26" Alu 6061
  • COLOR blue
  • SIZE 15", 17", 19", 21"
  • FORK Suntour XC-60
  • SPEEDS 24
  • FRONT DERAILLEUR XCC322 Suntour
  • REAR DERAILLEUR Shimano Altus
  • FRONT BREAK Alhonga HJ-806AD
  • REAR BREAK Alhonga HJ-806AD
  • SHIFTERS Shimano ST-EF-35
  • CRANKSET Cyclone AL7-324P
  • RIMS Alexrims X2100
  • HANDLEBAR HL Corp Alu
  • STEM HL Corp Alu
  • TIRES Kenda K901/K902 26x1.95

Thursday, March 20, 2008

Console

Теперь разделены статьи консоль и консоль для интернета

Как правильно спросить в никсах исполнимый файл или нет?
ls -l file1
или
stat -c %a file1

как скопировать пермишен одного файла другому?
chmod --reference=file1 file2

Прикольная команда делает список файлов с числовым представлением пермишенов
for i in $(ls) ; do bla=$( stat -c “%a” $i);echo “$i: $bla”; done

Замена одной папку в пути на другую
pwd | sed 's/\/старая_папка\//\/новая_папка\//'

Create tar gz archive
tar -pczf name_of_archive.tar.gz /path/to/directory

Bash Guide for Beginners
http://tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html

Advanced Bash-Scripting Guide
http://tldp.org/LDP/abs/html/

Print dir with sort.
Сортировка папок по размеру
du -sb * | sort -n -t\ | more
thx Vitaliy

Print current dir
pwd | awk '{i=split($0, Name, "/") ; print ("Name[" i "]=" Name[i])}'
http://project.net.ru/web-master/unix_shell/article4/

List of directories
Список директорий
find . /* -type d -maxdepth 0
tree -dR -L 3

Make CD fs and burn it
mkisofs -r -o image.iso ivana_kupala/
sudo mkdir /mnt/iso
sudo mount -t iso9660 image.iso /mnt/iso -o loop
sudo umount /mnt/iso/
cdrecord -v -eject -dummy image.iso
cdrecord -v -eject image.iso


Make DVD
mkisofs -dvd-video -o /home/alexey/Download/karaoke.iso /home/alexey/Download/Karaoke/

isoinfo -i karaoke.iso-l

  1. Make an "ISO" filesystem image of a DVD filesystem:

    mkisofs -dvd-video dvd >dvd.iso

    dvd is the directory containing the filesystem produced by dvdauthor.

  2. Record "ISO" filesystem image to disc:

    growisofs -dvd-compat -Z /dev/dvd=dvd.iso

    The -Z option selects one-time recording or overwriting. growisofs can also record a new session (hence its name) but DVD videos must be recorded in a single session. The -dvd-compat option enables various recording features to improve compatibility.

  3. Record DVD filesystem directly to disc:

    growisofs -dvd-compat -Z /dev/dvd -dvd-video dvd
How to create ISO images from your HD CD DVD
=============================================
To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it. (ubuntu automount so you need to unmount, that's quite easy, just choose the option unmount from the shell).

dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi

To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.

mkisofs -o /tmp/cd.iso /tmp/directory/

This results in a file called cd.iso in folder /tmp which contains all the files and directories in /tmp/directory/.

=============================================


http://womble.decadent.org.uk/talks/dvd-ukuug06/dvd-talk-ukuug06-paper.html

Rename
Переименование последовательности символов в файлах
how-to-bulk-rename-files-in-linux-in-the-terminal
ex.
rename 's/(-2\.0-)/_v2_/' *


Count lines with find and wc
Как узнать количество строк во всех файлах ".java"
find . -wholename './*.java' -type f | xargs wc -l


Count directorys sizes with find and du
Как узнать обьем всех по отдельности папок в текущем каталоге
find . -maxdepth 1 -type d | xargs du -sh
du -h --max-depth 1

Monday, March 17, 2008

Print login module info

private void print() {

System.out.println(">>> -------------------------------------------------- = ");
System.out.println(">>> EXOMAN MyLoginModule.print() subject = " + subject);
System.out.println(">>> EXOMAN MyLoginModule.print() callbackHandler = " + callbackHandler);
System.out.println(">>> EXOMAN MyLoginModule.print() sharedState = " + sharedState);
System.out.println(">>> EXOMAN MyLoginModule.print() options = " + options);

if (subject != null) {
System.out.println(">>> EXOMAN MyLoginModule.print() subject.getClass() = " + subject.getClass());

// print private credentials
System.out.println(">>> EXOMAN MyLoginModule.print() subject.getPrivateCredentials() = " + subject.getPrivateCredentials());
Set priv = subject.getPrivateCredentials();
System.out.println(">>> EXOMAN MyLoginModule.print() priv = " + priv);
if (priv != null && !priv.isEmpty()) {
Iterator privIt = priv.iterator();
while (privIt.hasNext()) {
Object elem = privIt.next();
System.out.println(">>> EXOMAN MyLoginModule.print() elem.getClass() = " + elem.getClass());
}
}

// print public credentials
System.out.println(">>> EXOMAN MyLoginModule.print() subject.getPublicCredentials() = " + subject.getPublicCredentials());
Set pub = subject.getPublicCredentials();
System.out.println(">>> EXOMAN MyLoginModule.print() pub = " + pub);
if (pub != null && !pub.isEmpty()) {
Iterator pubIt = pub.iterator();
while (pubIt.hasNext()) {
Object elem = pubIt.next();
System.out.println(">>> EXOMAN MyLoginModule.print() elem.getClass() = " + elem.getClass());
}
}

// print principals
Set principals = subject.getPrincipals();
if (principals != null && !principals.isEmpty()) {
System.out.println(">>> EXOMAN MyLoginModule.print() principals = " + principals);
Iterator principalsIter = principals.iterator();
while (principalsIter.hasNext()) {
Principal elem = principalsIter.next();
System.out.println(">>> EXOMAN MyLoginModule.print() elem = " + elem);
System.out.println(">>> EXOMAN MyLoginModule.print() elem.getName() = " + elem.getName());
}
}
}

// print shared state
Iterator i = sharedState.keySet().iterator();
while (i.hasNext()) {
Object o = i.next();
System.out.println(">>> EXOMAN MyLoginModule.print() o = " + o);
System.out.println(">>> EXOMAN MyLoginModule.print() sharedState.get(o) = " + sharedState.get(o));
}

// print options
if (options != null && !options.isEmpty()) {
Iterator keyOpt = options.keySet().iterator();
while (keyOpt.hasNext()) {
Object opt = keyOpt.next();
System.out.println(">>> EXOMAN MyLoginModule.print() keyOpt = " + opt);
System.out.println(">>> EXOMAN MyLoginModule.print() options.get(keyOpt) = " + options.get(opt));
}
}

}

Thursday, March 13, 2008

dos and win console commands

http://www.ss64.com/nt/
*.bat files

Examples:
call cd applications/assembly/
rmdir /s /q ..\..\..\..\..\..\..\exo-working\exo-tomcat\
mkdir ..\..\..\..\..\..\..\exo-working\exo-tomcat\
xcopy /e /h /r ..\..\..\..\..\..\..\exo-dependencies\tomcat-5.5.17\* ..\..\..\..\..\..\..\exo-working\exo-tomcat\*
pause null

Tuesday, March 11, 2008

HOWTO: Change your forgotten password

http://ubuntuforums.org/showthread.php?t=133102

Recovery-mode -> passwd -> reboot

D-Link 2500U

Официальная страничка тут
Цены на прайс UA тут

Все инструкции!

Инструкция по настройке модемов D-Link 2xx0U

команды
http://chairday.narod.ru/DSL-2500U.html

Всё о Dlink DSL-2XX0U
http://ogo.in.ua/forum/viewtopic.php?t=1865

GPL source code для устройств U-серии
http://forum.dlink.ru/viewtopic.php?t=48216

Новые версии FW для устройств U-серии
http://forum.dlink.ru/viewtopic.php?t=39596


Другие ссылки:
http://www.myip.ru/
http://www.all-nettools.com/toolbox