Sunday, August 20, 2006

Homebrew scripts

Hi there, long time no blog.

This is a short post to introduce two home made scripts. They're not terribly useful, but I do happen to use them often and I've been asked in the past to share them, so I thought I might as well do it here (assuming people still read this blog...).

Anyhow, both are python scripts, but only the first one is truely cross platform, though the second one could be changed to be so too.

numericnames

This script renames files in folders and subfolders (recursively) to follow a numeric naming scheme. That is, all files in a folder will be renamed to FOLDERNAME00000.extension, where FOLDERNAME is the name of the folder in question, 00000 is a numeric sequence and extension is the extension of the file. The numeric sequence is basicly a padded count of the files in the folder. If you have 10 files, the sequence will be 01, 02, 03, ... The script takes into account deleted files (filling the empty slots when renaming) and increases the padding size when needed. I mostly use this script on images folder, usually photos or the like when I don't really care about the name of the file but still want to give them a meaningful base name (the name of the folder).

wallpaper

This script is basicly a wallpaper management tool. It requires KDE and pyKDE's DCOP access to change the wallpaper, but it could be changed to use some Gnome method, win32 method or whatnot.
It takes a source directory (with possible subdirectories), supports different operations: changing the wallpaper randomly, changing and deleting the current wallpaper, changing to (or one of) the latest wallpaper(s), running a renaming script (I use numericnames for that). You can specify a pattern to use only a subdirectory of the source folder. The script uses a simple config file (which it locates next to its own location) to define source directory and default operation. The config file is generated on first run.

Hopefully, those could be useful to someone else too.

Martin

18 Comments:

Anonymous Anonymous said...

This comment has been removed by a blog administrator.

4:04 PM  
Anonymous Anonymous said...

Excellent website. Good resources here, I will be back!
- www.blogger.com r
spaghetti alla carbonara

9:35 AM  
Anonymous Anonymous said...

Hi to everyone =)
Aciphex
Aciphex
http://www.yeshuanet.com/docs/images/Aciphex/index.html
-----------------------------------------------------
Tramadol
http://www.yeshuanet.com/docs/images/Tramadol/index.html
Tramadol
*****************************************************
Bentyl
http://www.yeshuanet.com/docs/images/Bentyl/index.html
Bentyl
tahk u

3:42 PM  
Anonymous Anonymous said...

This comment has been removed by a blog administrator.

8:32 PM  
Anonymous Anonymous said...

Good day to everyone
Aciphex
Aciphex
http://www.yeshuanet.com/docs/images/Aciphex/index.html
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Tramadol
http://www.yeshuanet.com/docs/images/Tramadol/index.html
Tramadol
-----------------------------------------------------
Bentyl
http://www.yeshuanet.com/docs/images/Bentyl/index.html
Bentyl
thx

10:28 AM  
Anonymous Anonymous said...

Hi
Here you can find lots of information about pills.

tretinoin
triphasil
==================================
ultracet
ultram
valium
/////////////////////////////


V
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
valtrex
vaniqa
vermox
==================================
viagra
vicodin
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
watson
::::::::::::::::::::::::::::::::::::::::::::::
wellbutrin
xanax
yasmin
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
zanaflex
zelnorm
/////////////////////////////
zithromax
zocor
zoloft
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
zovirax
zyban

Z
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

zyloprim
zyrtec

---------------------------------------------
/////////////////////////////

PPS
If I'll find something else, I'll post it here ))

Please post your comments

6:36 AM  
Anonymous Anonymous said...

Hello, people

I discover this searches :
sitemap
http://info-graf.fr/mas/images/smilies/sitemap.html
sitemap
So this one your can test :
map
map of the site
http://eagleinsurance.com.au/images/smilies/sitemap.html
I discover this searches :
sites map
map sites
http://buff.com.au/images/smilies/sitemap.html
enjoy with new class of search ;-)
your can mail me karlonushik@cashette.com

7:34 PM  
Anonymous Anonymous said...

Hello

some fresh links
--------------------------------------------------
http://pacodelucia.org/chat/chat/images/britney-spears/index.html
http://terebigemu.se/forum/images/ringtones/index.html
http://northwestacademy.net/forum/images/cialis/index.html
::::::::::::::::::::::::::::::::::::
britney spears
ringtones
cialis
/////////////////////////////
cialis
ringtones
britney spears
::::::::::::::::::::::::::::::::::::

P.S.
It would be interesting, if you'll post your thoughts about that pills.. thank u
Thank you for your post;)

8:41 AM  
Anonymous Anonymous said...

Hi all!
teen sex thumbnail [url=http://byronss.com.au/photos/images/smiles/temp/index.html] hot hardcore teen sex [/url]
teen sex tpg http://byronss.com.au/photos/images/smiles/temp/index.html --> perfect teen sex
asian teen sex gallery black teen sex video l

9:31 PM  
Anonymous Anonymous said...

Do you care about you helth??!! )
So why we don't think about this?

Hello


fluoxetine
/////////////////////////////
fosamax
gris
---------------------------------------------------------
hoodia
`````````````````````````````
imitrex
/////////////////////////////
ionamin
!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!
kenalog
lamisil
_______________
levbid
levitra
`````````````````````````````
lexapro
lipitor
`````````````````````````````
lortab
meclizine
---------------------------------------------------------
meridia
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
mircette
naprosyn
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
naproxen
nasacort
:::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
nexium
/////////////////////////////
nizoral
---------------------------------------------------------
ortho
!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!
paroxetine
:::::::::::::::::::::::::::::::::::::::::::::::::
penlac
percocet
`````````````````````````````
phendimetrazine
phentermine
---------------------------------------------------------
prevacid
prilosec
:::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
propecia
protopic
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
prozac
pyrethrin
:::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ranitidine
remeron
:::::::::::::::::::::::::::::::::::::::::::::::::
retin
************************************************


PS
It would be great, if you'll post some more info about that pills.. thx
This is my university project )) Thank you for your post;)

2:06 AM  
Anonymous Anonymous said...

Hi all!
soft core teen sex free teen sex trailer
hot teen sex clip http://byronss.com.au/photos/images/smiles/temp/index.html --> filipina t
een sex
young teen sex com naked teen sex pic l

9:01 PM  
Anonymous Anonymous said...

Hello
amateur
amateur home sex video

amateur home movie
-->http://info-graf.fr/forum/Themes/default/images/icons/temp/index.html
amateur sex video
amateur cook heat in kitchen professional

10:57 AM  
Anonymous Anonymous said...

Do you care about you helth??!! )
So why So should we??

Hi
Here is some pills-info links

`````````````````````````````
acetaminophen
--------------------------------------------------
acetazolamide
`````````````````````````````
acetylcysteine
/////////////////////////////
acetylsalicylic
_______________
aciphex
_______________
acyclovir
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
adipex
--------------------------------------------------
aldara
!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!
alesse
allegra
!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!
allopurinol
`````````````````````````````
amitriptyline
amoxicillin
!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!!-!-!-!
antivert
ativan
--------------------------------------------------
bentyl
biaxin
bontril
/////////////////////////////
bupropion
/////////////////////////////
buspar
_______________
buspirone
butalbital
carisoprodol
`````````````````````````````
celebrex
celexa
--------------------------------------------------
cialis
--------------------------------------------------


PS
It would be great, if you'll post some more info about that pills.. thx
This is my university project )) Thank you for your post;)

3:18 AM  
Anonymous Anonymous said...

Hi all!
1. custom hrt phentermine
Best video tramadol cod
link generic cialis
2 diet phentermine pill--> http://culturitalia.uibk.ac.at/forumSLI/_forumSLI/000002cf.htm
More info tramadol hcl 50mg--> http://culturitalia.uibk.ac.at/forumSLI/_forumSLI/000002d0.htm
cialis 20mg--
> http://culturitalia.uibk.ac.at/forumSLI/_forumSLI/000002d1.htm
3. herbal phentermine
tramadol depression
free cialis

8:13 AM  
Anonymous Anonymous said...

Hi
old teen sex [url=http://byronss.com.au/photos/images/smiles/temp/index.html] hardcore teen sex video [/url]
anime teen sex http://byronss.com.au/photos/images/smiles/temp/index.html --> taboo teen sex
free teen sex and links free
teen sex pussy movie l

2:13 PM  
Anonymous Anonymous said...

Good day to everyone
Aciphex
[url=http://www.yeshuanet.com/docs/images/Aciphex/index.html]Aciphex[/url]
http://www.yeshuanet.com/docs/images/Aciphex/index.html
`````````````````````````````````````````````
[url=http://www.yeshuanet.com/docs/images/Tramadol/index.html]Tramadol[/url]
http://www.yeshuanet.com/docs/images/Tramadol/index.html
Tramadol
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Bentyl
http://www.yeshuanet.com/docs/images/Bentyl/index.html
[url=http://www.yeshuanet.com/docs/images/Bentyl/index.html]Bentyl[/url]
thank you

11:14 AM  
Anonymous Anonymous said...

Hi all!
asian lesbian teen sex [url=http://byronss.com.au/photos/images/smiles/temp/index.html] teen sex moviescom [/url]
teen sex trade http://byronss.com.au/photos/images/smiles/temp/index.html --> teen sex myths
big tit teen sex india teen sex
l

12:58 PM  
Anonymous Anonymous said...

Free Porn Videos, with no popups or redirects, blisteringly fast porn downloads for teen, hardcore, milf, mom, asian, lesbian, amateur, webcam girls,

8:20 AM  

Post a Comment

<< Home