Friday, November 15, 2013

Batch renaming of files containing some character in theirs name

import glob
import os
os.chdir("C:\Users\waldekd\Desktop\PHOTOGRAPHY")
for files in glob.glob("*.*"):
    if not files.endswith("mp3"):
        index = files.find("@")
        if index > -1:
             print files[:index]
             os.rename(files, 'new'.join(files[:index]))

Wednesday, May 29, 2013

FCE preparations: simple story...

It was five o’clock in the morning when there was a knock at the door. I was sleeping soundly at the beginning I did not recognise the sound. Somebody knocked once again. This time I was sure that it was not a dream. I opened the door. I saw her. She was standing there and looking at me strangely. I saw blood on the boots...
It all began a few days ago. After the manager of my office had been found dead in his home I took over his responsibilities. During one of the our weekly meetings I came across her. She was the most beautiful girl I had ever seen. We started going out together and sometimes she stayed in my flat for night. It was like a dream, but one day she told  me that she had to go out of the city for some time. I wanted to know why she needed to do it but she denied replying to my question whispering “It doesn’t matter”.   
The next evening I got a phone call. It was my friend who told me that a woman had killed Norman, the boss of the NeoComp, but the police were not able to catch her. We agreed to arrange the meeting the next day as NeoComp was one of our main suppliers. After that I went to bed.
It was five o’clock in the morning when there was a knock at the door...

Sunday, February 10, 2013

Enable errors displaying in Joomla

In the configuration.php file, set $error_reporting value to '6135'
var $error_reporting = '6135';

Saturday, January 19, 2013

Thursday, January 17, 2013

Saturday, January 12, 2013

Sunday, January 6, 2013

Search This Blog