tag on Python

http://gazpacho.sicem.biz/

剛剛在某頻道,由沒什麼辦不到的 pcman 所開示,看起來是 Python+GTK 的 IDE,比 Glade 完成度更高的樣子。手邊沒有 Debian,暫時不能用用看。

先記下來。不知道用它來寫 GUI 程式會有多快。

Posted by yungyuc at 17:09, 0 comment, 0 trackback.

這兩天被 comment spam,於是 google 了一下找到一個網頁,不能直接跑,但小改一點就可以砍 spam 了。在 COREBlog root 裡建一個 Script (Python) 物件:

for i in range(1, 465):
    try:
        ent = container.get_entry(i)
        for com in ent.comment_list():
            if com.author == "Charge Back":
                ent.deleteComment(int(com.id))
                print "%s: %s deleted" % ( com.id, com.author )
    except:
        pass

print "Done."
return printed

現在想起來,一直以來都沒有把 COREBlog 的架構弄清楚過呢;連砍 spam 都要用抄的 ;p

Posted by yungyuc at 16:53, 1 comments, 0 trackback.
Change to page (10 entries in each page): 1
© hover year to navigate month: powered by django