Noodlecode parody of spaghetti code

Month: March 2010 (page 2 of 3)

Happy Together Mar 11, 2010

happy-together-20100311-kbsw-avi_thumbs_2010-03-14_05-57-36
Happy Together, Mar 11 2010, from KBS World

Continue reading

Let’s Go! Dream Team Mar 10, 2010

lets-go-dream-team-s2-20100310-kbsw-avi_thumbs_2010-03-14_22-07-27
Let’s Go Dream Team Season 2, Girl Group Special, Mar 10 2010, from KBS World

Continue reading

Star Golden Bell Ep. 274

star-golden-bell-e274-20100309-kbsw-avi_thumbs_2010-03-12_17-44-02
Star Golden Bell, Episode 274, Mar 9 2010, from KBS World

Continue reading

Recursive delete using Python

Let’s say you have a folder with many (and deep) subfolders, and in each folder, you want to delete ‘Thumbs.db’ file:

#!/usr/bin/env python

import os

def delete(root, name):
    os.unlink(os.path.join(root, name))

def main():
    for root,dir,files in os.walk(os.getcwd()):
        for f in files:
            if f.lower().endswith('.db'):
                if f == 'Thumbs.db':
                    print 'Delete %s' % os.path.join(root, f)
                    delete(root, f)

if __name__=='__main__':
    main()

Save this script as ‘deletethumbs.py’. Go to top folder where you want to delete those ‘thumbs’ and execute it:

cd ~/Music
python ~/deletethumbs.py

Invincible Youth Ep. 18

invincible-youth-e18-20100309-kbsw-avi_thumbs_2010-03-10_00-53-27
Invincible Youth, Episode 18, Mar 9 2010, from KBS World

Continue reading

Aegisub 2.1.8 Fedora 12 RPM

Aegisub is an advanced subtitle editor that assists in the creation of subtitles, translations, and complex overlays using audio or video. Developed by enthusiasts it builds on workflows created and perfected through professional, hobby, and everyday use

SPEC file and patch: Download
F12 RPM: Download

Refer to previous post on how to rebuild the RPM from spec file provided.

Note: Use pulseaudio as audio player (View > Options > Audio > Advanced > Audio Player)

aegisub-screenshot

Aegisub on Fedora 12

References:

OpenShot 1.1.0 Fedora 12 RPM

OpenShot Video Editor is a free, open-source, non-linear video editor, based on
Python, GTK, and MLT. It can edit video and audio files, composite and
transition video files, and mix multiple layers of video and audio together and
render the output in many different formats.

Spec file and patch: Download
F12 RPM (No warranty, use at your own risk): Download

To install this package, build its RPM from SPEC file.

yum install rpmdevtools

Prepare development environment, as regular user:

rpmdev-setuptree

put *.spec file in ~/rpmbuild/SPEC and *.patch file in ~/rpmbuild/SOURCES

Then:

cd ~/rpmbuild/SPEC
spectool -R -g -A openshot.spec
rpmbuild -bb openshot.spec

After finish building the RPM, install it (as root):

yum localinstall ~/rpmbuild/RPMS/noarch/openshot-1.1.0-1.fc12.noarch.rpm --nogpgcheck

(Make sure to have RPMFusion repo installed, as it grabs dependencies from there)

openshot-screenshot

OpenShot on Fedora 12

References:

Star Golden Bell Ep. 273

star-golden-bell-e273-20100302-kbsw-avi_thumbs_2010-03-04_11-17-09
Star Golden Bell, Episode 273, Mar 2 2010, from KBS World

Continue reading

Invincible Youth Ep. 17

invincible-youth-e17-20100302-kbsw-avi_thumbs_2010-03-02_23-23-51
Invincible Youth, Episode 17, Mar 2 2010, from KBS World

Continue reading

Happy Together Feb 26, 2010

happy-together-20100226-kbsw-avi_thumbs_2010-03-01_15-28-01
Happy Together, Feb 26 2010, from KBS World

Continue reading

Older posts Newer posts

Copyright © 2017 Noodlecode