0.156
mari@pi mari@pi Thu. 9 Apr. 2009 14:00 tags programming 1 views 2 comments
had(once more again) to massively remove some file extension from files#!/usr/local/bin/python
# Remove extension from my files
# Author: mayia pi 2009
import os

extension = raw_input('enter the extension u want removed ?(without the dot):\n')
ext = '.' + extension
print 'search n destroy ' + ext + ' ...'

n = 0
for fname in os.listdir(os.getcwd()):
    if fname[-len(ext):] == ext :
        newfname = fname[:-len(ext)]
        os.rename(fname, newfname)
        print fname + ' renamed ' + newfname
        n +=1
print ' --- ' + str(n) + ' files stripped'
...now i also need a nice ftp script
from mari@pi mari@pi 2009-04-14 10:59
it works! hoooreii
from mari@pi mari@pi 2009-05-06 14:36
reverse ...
#!/usr/local/bin/python
# add extention to my files
# Author: mayia pi 2009

import os

extention = raw_input('enter the extention u want added (without the dot):\n')
ext = '.' + extention
print 'adding ' + ext + ' to everything...but .py'

n = 0
for fname in os.listdir(os.getcwd()):
    if fname[-2:] <> 'py' :
        newfname = fname + ext
        os.rename(fname, newfname)
        print fname + ' renamed ' + newfname
        n +=1
print ' --- ' + str(n) + ' files renamed '
mari@pi mari@pi Fri. 3 Apr. 2009 11:18 tags events 0 views 1 comments
* η συναυλία του πσκ ?(όποιος γνωρίζει περισσότερα κομεντάρει
65 days of static
έχουν ωραίο όνομα πάντως..

* ενεργειακές ανησυχίες στο παρακάτω που ακούγετε επίσης ενδιαφέρον
εγκατάσταση φωτοβολταικών στην κατάληψη του κτήματος Πραποπούλου



from tt39 tt39 2009-04-03 12:29
Γνωρίζω περισσότερα.
mari@pi mari@pi Thu. 12 Mar. 2009 14:14 tags astros 0 views
ένα κοντινό του prasinada φωτογραφία από τεράστιο φυτό στη παραλία του άστρους
ένα κοντινό του prasinada φωτογραφία από τεράστιο φυτό στη παραλία του άστρους
mari@pi mari@pi Thu. 12 Mar. 2009 14:00 tags astros 1 views 4 comments
in the orange fields behind

koutroufa zzzz
in the orange fields behind koutroufa zzzz
from mari@pi mari@pi 2009-03-12 14:06
τα συγκεκριμένα δέντρα παίζει ναναι ελιές ...είναι
from tt39 tt39 2009-03-12 14:50
Μου θυμίζει τρομερά κάποιο ζωγράφο...πολύ γνωστό πολύ παλιο...μόλις θυμηθώ θα ενημερώσω.
from mari@pi mari@pi 2009-03-12 16:48
τώρα που το λες...κλε...οχι... monet?!?
from tt39 tt39 2009-03-13 08:56
Ωχ, εσύ είσαι καλή!

Εδώ.
mari@pi mari@pi Thu. 12 Mar. 2009 1:30 tags plants , R.I.P. 0 views
μαρούλια μετά από 4 μήνες...το ψηλότερο φάγαμε σήμερα~)
μαρούλια μετά από 4 μήνες...το ψηλότερο φάγαμε σήμερα~)
mari@pi mari@pi Mon. 9 Mar. 2009 22:32 tags crete 0 views 2 comments
photoshoped falasarna dated 20070401 άλλη μια wallpaper
photoshoped falasarna dated 20070401 άλλη μια wallpaper
from tt39 tt39 2009-03-10 08:42
Τι είναι photoshoped εδώ;
from mari@pi mari@pi 2009-03-10 08:49
ε , τα χρώματα
mari@pi mari@pi Thu. 5 Mar. 2009 13:39 tags music 0 views 4 comments
στον πλανήτη λέει της υπόθεσης έρχονται κιαυτοί, βίβα
στον πλανήτη λέει της υπόθεσης έρχονται κιαυτοί, βίβα
from tt39 tt39 2009-03-06 13:35
Άιντε, τα κατάφερα με τα πολλά.

Εδώ.
from mari@pi mari@pi 2009-04-03 11:01
from mari@pi mari@pi 2009-04-06 09:11
ο Reznor στο digg dialogg~ένα νέο είδος διαλόγου?
from mari@pi mari@pi 2009-05-05 09:40
a
mari@pi mari@pi Tue. 24 Feb. 2009 17:54 tags design , inkscape 0 views 1 comments
, the beginning
, the beginning
from tt39 tt39 2009-02-25 09:01
Ωχ, μ' αρέσει πάρα πολύ!

Καλημέρα!
mari@pi mari@pi Mon. 23 Feb. 2009 9:58 0 views 3 comments
from mari@pi mari@pi 2009-02-24 16:53
ψευδαίσθηση του κυκλικού χρόνου όπως είπε ο ποιητής
from mari@pi mari@pi 2009-02-24 17:18
prrrrrrt nevra
from koukos koukos 2009-02-25 01:44
ωραίο ήταν, 5 parts.
recursions, routine, and circles..
mari@pi mari@pi Thu. 19 Feb. 2009 17:02 tags books 0 views 1 comments
m
wow!? a drawn alphabetical catalogue of disasters ...
The Gashlycrumb Tinies by Edward Gorey 1962


from mari@pi mari@pi 2009-02-21 10:49
there i also found a geek version > The Geek ABC's
cannot say i got it all (imust not be that geeky isthat a relieve) but i did like the sketches n the site n i did wondered a little bit in Jared von Hindman's Head Injury Theater
here is one other sketch from there >
 
head like a hole
head like a hole jared himdman

... black as your soul

mari@pi mari@pi Wed. 18 Feb. 2009 14:50 download (536 hits)
another bad day at work
mari@pi mari@pi Sat. 14 Feb. 2009 21:39 tags draw , kao 0 views
kao for users
kao for users
mari@pi mari@pi Sat. 14 Feb. 2009 19:21 0 views
pms sucks!
whatf is pms?



mari@pi mari@pi Fri. 30 Jan. 2009 10:00 tags inkscape 0 views
inkscape showcaseorwhat can inkscape do for u on a r.i.p. fridge
inkscape showcase
or
what can inkscape do for u on a r.i.p. fridge
mari@pi mari@pi Wed. 28 Jan. 2009 13:45 tags mainframe , programming 0 views
wondering in the mainframe i came across
a simple rexx to tell me if my dataset is empty or not empty or does not exist at all ~
 arg dsname
 say DSNAME
   x=LISTDSI(DSNAME)
   if x = 0  then do
      if SYSUSED > 0 then do
         Say 'Dataset 'DSNAME' exists and is not empty'
         exit 0
      end; else do
         Say 'Dataset 'DSNAME' exists but is empty'
         exit 1
      end
   end; else do
      say "Dataset "DSNAME" does not exist"
      exit 2
   end
exit

jcl to run above rexx (ISITEMTY) for dataset (MAI.DATASET):
//RUNMYREX  EXEC PGM=IKJEFT1A,
//         DYNAMNBR=30,REGION=0M
//SYSEXEC  DD DSN=B.T.R,DISP=SHR
//INC      INCLUDE MEMBER=SYSOUT
//SYSTSIN  DD *
 PROFILE NOPREFIX
 %ISITEMTY MAI.DATASET
so u can then conditionally continue like this....
// IF (RUNMYREX0.RC=0) THEN                   /*if MAI.DATASET exists and is not empty
...do whatever u wanna do with your dataset here
// ENDIF



an alternative to my earlier post .... tell me icetool ~ is it emty ?