Thursday, October 29, 2009

A study on incompetence

It is one of the essential features of such incompetence that the person
so afflicted is incapable of knowing that he is incompetent. To have
such knowledge would already be to remedy a good portion of the
offense. (Miller, 1993, p. 4)

http://www.apa.org/journals/features/psp7761121.pdf

An interesting read. Makes me wonder about myself...

Friday, October 23, 2009

File sorter

This batch file sort.bat sorts all my hentai manga files. It reads the file sort.lst and moves any file that contains the first word to a folder (the second word). You can use notepad to create the files and copy and paste both files below.

sort.bat - copy the lines below and save as "sort.bat"
@echo off
if '%1==' goto default
if %1==? goto help
if %1==/? goto help

:sort
if '%2==' goto one
md %2
move *%1* %2
goto :EOF

:one
md %1
move *%1* %1
goto :EOF

:default
FOR /F "eol=; tokens=1,*" %%i in (sort.lst) do if exist *%%i* call sort %%i %%j
goto :EOF

:help
echo Sorts file into directories according to pattern specified in sort.lst


sort.lst - copy and paste the lines below and save as "sort.lst"
;List file to sort files into directories
;First word = pattern to match, 2nd word = directory name (if not given then uses first word)

Akazawa
Akishima "Akishima Shun"
Amatarou
Amazake "Yoshu Ohepe"
Amazume "Ryuuta Amazume"
Ameno "Amano Ameno"
Asuka "Bai Asuka"
Azure "Konno Azure"
Black_Dog "Black Dog"
"Black Dog" "Black Dog"
Bosshi
Crimson
Cuvie
Daigo
Distance
Ei_Itou Itouei
Fueta "Fueta Kishi"
Fukudahda "Kensoh Ogawa"
Gakuen "Ringo Gakuen"
Garyuh "Garyuh Chitai"
Hanaharu "Naruko Hanaharu"
Mamoru "Hashia Mamoru"
Haganema
Hellabunna
Hidemaru
"Hi-per Pinch"
"Hi-PER_PINCH" "Hi-per Pinch"
Hootch "Shindo Eru"
[Inu] "Inu"
Inuboshi
Itaba "Hiroshi Itaba"
Itosugi "Masahiro Itosugi"
ITOUEI "Itouei"
Ishikei
Jingrock
Jouji "Jouji Manabe"
Jushirou "Jushirou Tsubaki"
John_K "John K Peta"
"John K" "John K Peta"
Jyogi "Tsukino Jyogi"
Juuzoh "Minazuki Juuzoh"
Kabao "Kikkawa Kabao"
Kazuaki "Saida Kazuaki"
Kensoh "Kensoh Ogawa"
Kirara "Moe Kirara"
Kisaragi "Gunma Kisaragi"
Kohakutei
Kokonoki "Nao Kokonoki"
Komine "Komine Tsubasa"
Konsaki
Kokoromi "Kokoromi Shingon"
Kouchaya "Ootsuka Kotora"
Koyanagi "Royal Koyanagi"
Kuroiwa "Menou Kuroiwa"
Kyoden "Sanbun Kyoden"
Makinosaka "Makinosaka Shinichi"
Maybe
Mayonnaise
Mikami "Mikami Cannon"
Mitarashi "Mitarashi Kousei"
Momoyama "Momoyama Jirou"
Mysterious "Ueshiba Riichi"
Nagare "Nagare Ippon"
Nakadera "Akira Nakadera"
Nakayama "Nakayama Tetsugaku"
Natsu "Otono Natsu"
Nekomori "Nekomori Maririn"
Nise_Midi "Ishikei"
"Nise Midi" "Ishikei"
Nisemidi "Ishikei"
Nitta "Nitta Jun"
Norutaru
Oda "Oda Non"
Okawari
Ohepe "Yoshu Ohepe"
Onikubo "Hirohisa Onikubo"
Onizuka "Onizuka Naoshi"
Oshigoto "Konno Azure"
Polinky
Risshin "Private Risshin Seminary"
Rate
Koyanagi "Royal Koyanagi"
Saegusa "Saegusa Kohaku"
Saigado
Sakazaki "Doi Sakazaki"
Sasagawa "Sasagawa Hayashi"
Sasakura "Ayato Sasakura"
Sasayuki
Shiden "Shiden Akira"
Shindo "Shindo Eru"
Shinobu "Tanei Shinobu"
Shiwasu "Shiwasu No Okina"
"Sister_and_Brother" Fuuga
Taira "Taira Hajime"
Takaoka "Takaoka Motofumi"
Takeda "Takeda Hiromitsu"
Takemura "Sessyu Takemura"
Takayuki "Asaki Takayuki"
Takla "Mahiro Takla"
Tenjiku "Tenjiku Rounin"
Tesshin "Azuma Tesshin"
Tomohiro "Tomohiro Kouda"
Toshiaki "Toshiaki Kaneko"
Tsutomu "Tsutomu Mutsuki"
Tuna "Tuna Empire"
Type.90 "Type 90"
Type_90 "Type 90"
Type90 "Type 90"
Udon-Ya
Unagimaru
U.R.C
Utamaro "Spark Utamaro"
Wamusato "Wamusato Haru"
Wanyanaguda
WonderSquare
Yamatogawa
Yoshihisa "Inoue Yoshihisa"
Toshiki "Yui Toshiki"
Yasui "Yasui Riosuke"
Youtarou "Sena Youtarou"
Yukimi
Yukimino "Yukio Yukimino"
Yuzuki "Yuzuki N"
Zukiki

You can add any number of entries to sort.lst, just note that the match is not case sensitive and it matches any file containing that first word. Note that you can use wildcards in that first word, for example "Oda?Non" where ? = match any single character, * = match any character(s).

*** Advanced ***
You can make sort.bat to be more specific, just change the 2 lines with
move *%1* %2
to
move %1 %2
Then it will only match the first word exactly, so then you have to add the wildcards yourself to the first word (so instead of say Zukiki, you will have to use *Zukiki* Zukiki.