Archive for November, 2009

25
Nov

Codepad

   Posted by: myururdurmaz    in Uncategorized

Küçük uygulamalar veya scriptler yazıp test etmek istiyorsanız bu site tam size göre.

http://codepad.org/irV8v8fe

http://codepad.org/

Bookmark and Share
Tags: , , , , , , , , , , ,

Tags: , , , , , , , , , , ,

25
Nov

Portable Pidgin 2.5.8

   Posted by: myururdurmaz    in Uncategorized

Üzerinde plugini var etkinleştirmek için tools > plugins.

Bilmeyenler için bir uyarı -encryption plugini görüşmelerini şifreler, ancak karşılıklı olarak 2 tarafta da bulunması lazım. Arkadaşlarınızla karşılıklı olarak dinlenemeyecek şekilde görüşebilirsiniz.

Download/İndir

Detaylı bilgi için
http://www.pidgin.im/
http://pidgin-encrypt.sourceforge.net/

Bookmark and Share
Tags: , ,

Tags: , ,

Standart mı değil mi bilmem, karşılaştığım bir subtitle için yazdığım kodu.

Kullanım:
python .py dosyadi.xml

import math
import sys
import re
import codecs
from xml.dom import minidom
xmldoc = minidom.parse(sys.argv[1])

x,z  = 0,0
yazi = ""

df = codecs.open(sys.argv[1] + ".srt","wt","utf-8")

def saat(msaniye):
    hour = math.floor(msaniye/3600000)
    minute = math.floor((msaniye%3600000)/60000)
    second = math.floor((msaniye%60000)/1000)
    milisecond = math.floor((msaniye%1000))
    return "%02:%02:%02,%03" % (hour,minute,second,milisecond)

def saatbul(sira):
    r = 0
    for satir in xmldoc.getElementsByTagName(‘SYNC‘):
        q = satir.getAttribute(‘start‘)
        if (r == sira) :
            return satir.getAttribute(‘start‘)
        r += 1
    return int(q) + 2000

for tag in xmldoc.getElementsByTagName(‘SYNC‘):
    print >>df,  x
    print >>df, saat(int(tag.getAttribute(‘start‘))) ,  "–>"  , saat(int(saatbul(x + 1)))
    x += 1
    z = tag.getAttribute(‘start‘)
    m = re.search(‘\<P.+\>(?P<metin>.+)\<\/P\>‘,tag.toxml())
    yazi = m.group(‘metin‘)
    yazi = yazi.replace(‘#‘,’\n‘)
    print >>df, yazi
    print >>df, " "

Link: flvxml2srt

Bookmark and Share
Tags: , , , , , ,

Tags: , , , , , ,

Switch to our mobile site