0.126
mari@pi mari@pi Πεμ. 9 Απρ. 2009 14:00 tags προγραμματισμός 1 views 2 σχόλια
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
από mari@pi mari@pi 2009-04-14 10:59
it works! hoooreii
από 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 Παρ. 3 Απρ. 2009 11:18 tags εκδηλώσεις 0 views 1 σχόλια
* η συναυλία του πσκ ?(όποιος γνωρίζει περισσότερα κομεντάρει
65 days of static
έχουν ωραίο όνομα πάντως..

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



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

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

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

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

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


από 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 Τετ. 18 Φεβ. 2009 14:50 αποθήκευση (528 φορές)
another bad day at work
mari@pi mari@pi Σαβ. 14 Φεβ. 2009 21:39 tags ζωγραφική , καο 0 views
kao for users
kao for users
mari@pi mari@pi Σαβ. 14 Φεβ. 2009 19:21 0 views
pms sucks!
whatf is pms?



mari@pi mari@pi Παρ. 30 Ιαν. 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 Τετ. 28 Ιαν. 2009 13:45 tags mainframe , προγραμματισμός 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 ?