32nd TwitterIrcGateway

2009-11-13

接頭辞によってポスト先を変えるスクリプト

23:39

例によって Configs/${User}/Scripts の下に 90post_33.py のような名前で入れます。

# -*- coding: utf-8 -*-
# vim: fileencoding=utf-8
# vi:set ts=4 sw=4:

import urllib, urllib2
import time, sys, re
import clr
sys.path.append('/usr/lib/python2.5')
import commands

def OnPreSendUpdateStatus(sender, e):
	status = e.Text
	skip = re.match('^([Dd]\s+|@[_a-zA-Z0-9]+).*$', status)
	if skip:
		return
	match = re.match('^33\s+(.*)', status)
	if not match:
		return
	status = match.group(1)
	user = "takano33"
	password = "passphrase"

 	cmd = "wget -O - --user=%s --password=%s " \
 	    "--post-data='status=%s&source=TwitterIrcGateway' " \
 	    "http://twitter.com/statuses/update.xml" % \
 	    (user, password, urllib.quote_plus(status.encode('utf-8')))
 	result = commands.getoutput(cmd)
	e.Text = "D " #None

Session.PreSendUpdateStatus += OnPreSendUpdateStatus

re.match のなかの正規表現でアカウント投稿用プレフィックスを指定します。この例では "33" が先頭にあるときに機能します。

"user = ..." の部分と "password = ..." の部分をアカウントにあわせて書き換えて下さい。

この場合は "33 hoge" と入力すると @takano33 が "hoge" と発言します。

テクニカルというか、バッドノウハウとしては、"D " をついったーに送信するとなにもしないので、それで発言をキャンセルしているというあたりですかね。

urllib2 import して使ってないのとかははじめ使おうと思ったんですが、 IronPython 起因らしき文字コードエラーみたいなのがでて、ローカルで Python 2.5 あたりでは動く部分的なコードがどーしてもうごかんかったからですわ。

TwitterIrcGatewayの方の処理は重くしてもクライアントからは非同期にみえるので、無意味なほど重い処理を入れてもストレスにはなりませんね。地球にはやさしくないと思います。

YeumbeulYeumbeul2012/06/28 05:23This is cysrtal clear. Thanks for taking the time!

fbetaidpncdfbetaidpncd2012/06/29 04:08cX8JTu <a href="http://yeolqrtdurgw.com/">yeolqrtdurgw</a>

dpdhfnytdpdhfnyt2012/06/29 15:13OORKGr , [url=http://wlkhzhnuakoo.com/]wlkhzhnuakoo[/url], [link=http://eywvprczroep.com/]eywvprczroep[/link], http://bsmqxxrzwete.com/

zxcxunnkgnzxcxunnkgn2012/07/01 00:54TctFOR <a href="http://eeplyjnvqalo.com/">eeplyjnvqalo</a>

JacAudichJacAudich2018/02/22 17:39Levitra 10mg Occasion <a href=http://cialibuy.com>generic cialis</a> Amoxicillin Light Headed

MarknefMarknef2018/04/17 06:07which erectile dysfunction pills work
<a href=http://edpils-gg.com/>best erectile dysfunction pills</a>
muse for erectile dysfunction
<a href="http://edpils-gg.com/">erectile pills without a doctor prescription</a>

LdrgeFalLdrgeFal2018/04/17 12:05can erectile dysfunction be healed <a href=http://dc-shuttle.com/>new ed drugs</a>
erectile malfunction <a href="http://dc-shuttle.com/">erectile dysfunction drugs</a> http://dc-shuttle.com/

erectile dysfunctionerectile dysfunction2018/04/17 14:18does erectile dysfunction mean heart problems
erectile organs crossword clue
is erectile dysfunction curable

eddrugsgeneric.comeddrugsgeneric.com2018/04/17 19:49erectile medicine
<a href=http://eddrugsgeneric.com/#>erectile enhancement pills</a>
erectile implants side effects
<a href="http://eddrugsgeneric.com/#">new drugs for ed</a>

KoldrloBKoldrloB2018/04/18 10:37erectile function
<a href=http://edpilsmystery.com/>buy erectile dysfunction pills online</a>
erectile dysfunction and treatments
<a href="http://edpilsmystery.com/">best ed drugs</a>

erectionserections2018/04/18 16:51After research just a few of the weblog posts on your web site now, and I really like your manner of blogging. I bookmarked it to my bookmark web site checklist and will be checking again soon. Pls take a look at my web page as nicely and let me know what you think.

MarknefMarknef2018/04/19 05:22forex account gestitos
<a href="http://options-best-platform-binary-try.pw/60-minute-observetodbjackhopclickbanknet-option-trader-trading-3101.php#">trading tips in commodity</a>
reddit tradingview crypto
<a href=http://binary-try-options-platform-best.pw/trade-options-sucessfully-software-7731.php>2pac we tradin war stories</a>

MarknefMarknef2018/04/19 18:57levitra bestellen
<a href="http://mylevitraok.com">levitra prices</a>
fabrizio levitra band
<a href=http://levitra-gg.com#levitra+prices>levitra 20mg</a>

MarknefMarknef2018/04/20 03:10levitra bayer italiano
<a href="http://mylevitraok.com">levitra 20 mg</a>
free levitra sample
<a href=http://mylevitraok.com#levitra+generic>levitra coupon</a>

MarknefMarknef2018/04/20 06:53dose levitra
<a href="http://levitra-gg.com">levitra coupon</a>
levitra 20mg preis apotheke
<a href=http://levitra-gg.com#levitra+10+mg+prezzo>levitra 20 mg</a>

JosephguiffJosephguiff2018/04/20 07:51top erectile dysfunction drugs
http://toperectiledysfunctionpills.com/ - erectile dysfunction treatment
erectile injection video
<a href="http://toperectiledysfunctionpills.com/">best erectile dysfunction drug</a>

MarknefMarknef2018/04/20 10:42levitra ou sacerdote en
<a href="http://mylevitraok.com">levitra 20mg</a>
levitra 10 mg kaufen rezeptfrei
<a href=http://mylevitraok.com#levitra+coupon>levitra generic</a>

MarknefMarknef2018/04/20 14:25buy city com domain levitra blog
<a href="http://levitra-gg.com">levitra prices</a>
how long does levitra stay in your system
<a href=http://myvardenafilok.com#levitra+20mg>vardenafil 20mg</a>

MarknefMarknef2018/04/20 18:23qual melhor viagra cialis ou levitra prices
<a href="http://levitra-gg.com">levitra 20 mg</a>
biljni cialis vs levitra
<a href=http://mylevitraok.com#generic+levitra>levitra 10 mg prezzo</a>

MarknefMarknef2018/04/20 22:23levitra side effects vision direct
<a href="http://myvardenafilok.com">levitra 20mg</a>
levitra costo
<a href=http://mylevitraok.com#generic+levitra>buy levitra</a>

cialis onlinecialis online2018/04/20 22:54Thank you for another magnificent post. Where else could anybody get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information.

order cialis onlineorder cialis online2018/04/20 23:21Thanks for the suggestions you share through this web site. In addition, numerous young women which become pregnant never even attempt to get health insurance coverage because they are full of fearfulness they couldn't qualify. Although some states right now require that insurers provide coverage no matter the pre-existing conditions. Charges on these guaranteed options are usually larger, but when considering the high cost of medical care it may be the safer route to take to protect your own financial future.

MarknefMarknef2018/04/21 02:17levitra adriana francy's pet
<a href="http://mylevitraok.com">buy levitra</a>
levitra how long before
<a href=http://myvardenafilok.com#generic+levitra>buy levitra</a>

MarknefMarknef2018/04/21 04:54levitra robinson md
<a href="http://levitra-gg.com">levitra coupon</a>
levitra movies moringa plant
<a href=http://mylevitraok.com#buy+levitra>buy levitra</a>

JorgeDexJorgeDex2018/04/21 04:56generic cialis review uk cialis cuantos mg hay

MarknefMarknef2018/04/21 08:31levitra 10 mg orodispersible tablets with windows
<a href="http://mylevitraok.com">levitra 20 mg</a>
palto levitra trajecsys
<a href=http://levitra-gg.com#levitra+prices>levitra 20 mg bayer prezzo</a>

KelconyKelcony2018/04/21 08:44Cialis Opiniones Usuarios <a href=http://cialiviag.com>cialis 20mg for sale</a> Cialis 20 Erfahrungen Propecia Carne Propranolol Online Delivered In Usa

MarknefMarknef2018/04/21 11:50ohad levitra facebook home
<a href="http://myvardenafilok.com">vardenafil 20mg</a>
dosierung levitra 10mg coupons
<a href=http://myvardenafilok.com#levitra+generic>levitra online</a>

MarknefMarknef2018/04/21 15:122cialis comparison levitra viagra
<a href="http://levitra-gg.com">levitra prices</a>
viagra vs levitra differences and similarities between prokaryotes
<a href=http://mylevitraok.com#levitra+20+mg>generic levitra</a>

Viagra kaufenViagra kaufen2018/04/23 03:34
Excellent posts. Thank you.

KelconyKelcony2018/04/23 06:01Priligy Venta Kamagra Soft Tabs 100mg <a href=http://cialviag.com>cialis for sale</a> Price Of Priligy Buy Accutane No Rx Priligy Dapoxetina Dosaggio

KelconyKelcony2018/04/26 16:21Online Apotheke Viagra 25mg <a href=http://buyciali.com>buy cialis</a> Ou Acheter Viagra Generique En Le Tampon Viagra Generika Rezeptfrei Kaufen Cialis 5 Mg Comprime Pellicule Boete De 28

KelconyKelcony2018/04/30 15:56Priligy Revenue <a href=http://cheapciali.com>cialis canada</a> Verapamil 240mg Without Prescription Priligy Farmacia Napoli Viagra Rouge

KelconyKelcony2018/05/02 10:58Cialis Viagra Forum <a href=http://brandciali.com>canadian pharmacy cialis 20mg</a> Baclofene Injectable Sky Pharmacy Review Propecia Buy Canada

KelconyKelcony2018/05/04 15:52Cialis Da Banco Antidotes To Cephalexin Cialis Vente Libre Quebec <a href=http://ciali5mg.com>cialis 5 mg</a> Zentel Valbazen Overnight Shipping Buy Without Perscription Precio Cialis 20 Mg En Farmacia Zithromax Generic Walmart

JoddyDexJoddyDex2018/05/07 02:33<a href="http://bikecommunications.com/">cialis printable coupons</a> cialis online holland cialis herbs enter site very cheap cialis cialis therapie cialis prezzo di mercato weblink price cialis <a href=http://bikecommunications.com/>Cialis Coupon 2018</a>

KelconyKelcony2018/05/10 03:59Advair Fincar Finasteride Online Canada Amoxicillin Maximum Dose <a href=http://ciali5mg.com>generic 5mg cialis best price</a> Levitra Preisvergleich Generika

KelconyKelcony2018/05/11 04:04Refrigeration Of Cephalexin Kamagra Information Zithromax Pimples <a href=http://cialiviag.com>п»їcialis</a> Where To Buy Secure Fluoxetine Medicine

KelconyKelcony2018/05/12 15:11Acheter Du Cialis Andorre <a href=http://cialviag.com>cialis 20mg price at walmart</a> Where Can I Get Fertomid Moteur A Baclofen

CoreyleankCoreyleank2018/05/15 17:03cialis authentique suisse
cialis e hiv <a href="http://cialisees.com/">cialis canada</a>
canada discount drugs cialis <a href=http://cialisees.com/>cialis generic</a>
look here cialis cheap canada

CoreyleankCoreyleank2018/05/15 17:50cialis online
prices for cialis 50mg <a href="http://cialisees.com/">generic for cialis</a>
price cialis wal mart pharmacy <a href=http://cialisees.com/>cialis for sale</a>
cilas

CoreyleankCoreyleank2018/05/15 18:11how does cialis work
cialis online nederland <a href="http://cialisees.com/">cialis 20 mg</a>
calis <a href=http://cialisees.com/>cialis tablets australia</a>
cialis online deutschland

CoreyleankCoreyleank2018/05/15 19:36cialis dose 30mg
cialis 100 mg 30 tablet <a href="http://cialisees.com/#cialis-daily">cialis alternative</a>
cialis 5 mg buy <a href=http://cialisees.com/viagra-cialis-levitra>cialis purchasing</a>
cialis generic

CoreyleankCoreyleank2018/05/15 19:48cialis 30 day trial coupon
click now cialis from canada <a href="http://cialisees.com/#cialis-lowest-price">cialis from canada</a>
does cialis cause gout <a href=http://cialisees.com/tadalafil-20mg>buy cialis online</a>
bulk cialis

CoreyleankCoreyleank2018/05/15 20:01where to buy cialis in ontario
cialis rezeptfrei sterreich <a href="http://cialisees.com/viagra-cialis-levitra">tadalafil tablets</a>
the best site cialis tablets <a href=http://cialisees.com/200-cialis-coupon>canadian cialis</a>
cialis 5 mg

CoreyleankCoreyleank2018/05/15 20:13cialis generico
when will generic cialis be available <a href="http://cialisees.com/#low-cost-cialis-20mg">tadalafil tablets</a>
wow cialis 20 <a href=http://cialisees.com/200-cialis-coupon>cialis generico</a>
cialis uk

CoreyleankCoreyleank2018/05/15 20:53cialis mit grapefruitsaft
cialis 20 mg best price <a href="http://cialisees.com/#cialis-20-mg-best-price">cialis daily</a>
cialis kamagra levitra <a href=http://cialisees.com/#cialis-tablets-australia>canadian cialis</a>
cialis rezeptfrei

CoreyleankCoreyleank2018/05/15 21:10cialis price thailand
cialis therapie <a href="http://cialisees.com/tadalafil-generic">tadalafil 20 mg</a>
wow cialis 20 <a href=http://cialisees.com/cialis-coupon>cialis kaufen</a>
cialis mit grapefruitsaft

CoreyleankCoreyleank2018/05/15 21:27buying cialis in colombia
cialis dosage <a href="http://cialisees.com/tadalafil-tablets">cialis pills</a>
cialis per paypa <a href=http://cialisees.com/#200-cialis-coupon>cialis great britain</a>
cipla cialis online

CoreyleankCoreyleank2018/05/15 21:44side effects of cialis
cialis et insomni <a href="http://cialisees.com/generic-for-cialis">cialis generico</a>
if a woman takes a mans cialis <a href=http://cialisees.com/cialis-for-daily-use>viagra or cialis</a>
achat cialis en europe

CoreyleankCoreyleank2018/05/15 22:01cialis free trial
viagra cialis levitra <a href="http://cialisees.com/viagra-vs-cialis">cialis 20mg</a>
look here cialis order on line <a href=http://cialisees.com/cialis-generico>tadalafil 20mg</a>
cialis pills

CoreyleankCoreyleank2018/05/15 22:37where cheapest cialis
cialis australia org <a href="http://cialisees.com/#cialis-vs-viagra">cialis sans ordonnance</a>
cialis 20 mg cut in half <a href=http://cialisees.com/#cialis-online>cialis 20mg prix en pharmacie</a>
cialis 5 mg scheda tecnica

CoreyleankCoreyleank2018/05/15 22:54calis
cialis flussig <a href="http://cialisees.com/#tadalafil-10-mg">cialis for sale</a>
cialis super acti <a href=http://cialisees.com/#cialis-kaufen>cialis generico</a>
cialis canada

CoreyleankCoreyleank2018/05/15 23:11american pharmacy cialis
buy generic cialis <a href="http://cialisees.com/tadalafil-generic">tadalafilo</a>
cialis herbs <a href=http://cialisees.com/cialis-lowest-price>tadalafil 10 mg</a>
non 5 mg cialis generici

CoreyleankCoreyleank2018/05/15 23:29acheter du cialis a geneve
cialis pills boards <a href="http://cialisees.com/#viagra-cialis-levitra">cialis generika</a>
cialis bula <a href=http://cialisees.com/cialis-purchasing>cialis 20mg prix en pharmacie</a>
look here cialis cheap canada

CoreyleankCoreyleank2018/05/16 00:20free cialis
achat cialis en suisse <a href="http://cialisees.com/cialis-tablets">cialis generico</a>
trusted tabled cialis softabs <a href=http://cialisees.com/#tadalafil-5mg>cialis without a doctor's prescription</a>
generic for cialis

CoreyleankCoreyleank2018/05/16 00:38click here cialis daily uk
buy cialis <a href="http://cialisees.com/#purchasing-cialis-on-the-internet">cialis from canada</a>
click now cialis from canada <a href=http://cialisees.com/#tadalafil-tablets>cialis great britain</a>
cialis taglich

CoreyleankCoreyleank2018/05/16 01:49cialis en mexico precio
cialis for sale in europa <a href="http://cialisees.com/#canadian-cialis">cialis 5mg</a>
look here cialis order on line <a href=http://cialisees.com/#sialis>cialis tablets australia</a>
40 mg cialis what if i take

CoreyleankCoreyleank2018/05/16 02:24legalidad de comprar cialis
cialis 5 mg <a href="http://cialisees.com/cialis-tablets-australia">online cialis</a>
comprar cialis 10 espa241a <a href=http://cialisees.com/buy-cialis-online>buy cialis</a>
wow look it cialis mexico

CoreyleankCoreyleank2018/05/16 02:42opinioni cialis generico
cialis daily dose generic <a href="http://cialisees.com/#cheap-cialis">cialis without a doctor's prescription</a>
canada discount drugs cialis <a href=http://cialisees.com/#online-cialis>cialis cost</a>
cialis free trial

CoreyleankCoreyleank2018/05/16 03:00cialis generico lilly
cialis savings card <a href="http://cialisees.com/#cialis-20mg-prix-en-pharmacie">cialis alternative</a>
cialis price thailand <a href=http://cialisees.com/purchasing-cialis-on-the-internet>cialis purchasing</a>
il cialis quanto costa

CoreyleankCoreyleank2018/05/16 03:17cialis flussig
generic cialis in vietnam <a href="http://cialisees.com/cheap-cialis">cialis 20mg prix en pharmacie</a>
link for you cialis price <a href=http://cialisees.com/cialis-lowest-price>cialis without a doctor's prescription</a>
we like it safe cheap cialis

CoreyleankCoreyleank2018/05/16 03:36acquisto online cialis
cialis 10 doctissimo <a href="http://cialisees.com/viagra-vs-cialis-vs-levitra">cialis purchasing</a>
canadian discount cialis <a href=http://cialisees.com/#cialis-generico>cialis great britain</a>
cialis 5 effetti collaterali

CoreyleankCoreyleank2018/05/16 04:15cialis canada on line
cialis super acti <a href="http://cialisees.com/#viagra-cialis-levitra">discount cialis</a>
cialis 30 day trial coupon <a href=http://cialisees.com/buy-generic-cialis>cialis generique</a>
buy original cialis

CoreyleankCoreyleank2018/05/16 04:35the best choice cialis woman
cipla cialis online <a href="http://cialisees.com/#online-cialis">cialis purchasing</a>
cialis tadalafil online <a href=http://cialisees.com/#purchasing-cialis-on-the-internet>tadalafil generic</a>
cialis online holland

CoreyleankCoreyleank2018/05/16 04:55cialis cuantos mg hay
cialis generique <a href="http://cialisees.com/buy-generic-cialis">cialis 5 mg</a>
generic cialis 20mg uk <a href=http://cialisees.com/#cialis-tablets-australia>cialis purchasing</a>
discount cialis

CoreyleankCoreyleank2018/05/16 05:15enter site very cheap cialis
cialis free trial <a href="http://cialisees.com/cialis-vs-viagra">cialis tablets australia</a>
order cialis from india <a href=http://cialisees.com/buy-cialis>tadalafil tablets</a>
cialis vs viagra

CoreyleankCoreyleank2018/05/16 05:35cialis generico online
cialis daily reviews <a href="http://cialisees.com/viagra-vs-cialis">purchasing cialis on the internet</a>
trusted tabled cialis softabs <a href=http://cialisees.com/#cialis-generique>cialis for daily use</a>
cialis bula

CoreyleankCoreyleank2018/05/16 05:54generic cialis at the pharmacy
only here cialis pills <a href="http://cialisees.com/#cialis-generic">tadalafil 20 mg</a>
click here to buy cialis <a href=http://cialisees.com/cialis-tablets-australia>viagra or cialis</a>
cialis for sale south africa

CoreyleankCoreyleank2018/05/16 06:14buy cialis sample pack
cialis for daily use <a href="http://cialisees.com/#cialis-tablets-australia">online cialis</a>
cialis tablets australia <a href=http://cialisees.com/#cialis-canada>tadalafil</a>
cialis 10mg prix pharmaci

KelconyKelcony2018/05/16 06:25Buy Tamoxifen In Australia Propecia Libido Increase <a href=http://cialiorder.com>cialis 20mg price at walmart</a> Synthroid For Sale Online Purchase Orlistat Pills Articulo 43

CoreyleankCoreyleank2018/05/16 06:33cialis online napol
cialis super kamagra <a href="http://cialisees.com/tadalafil-5mg">low cost cialis 20mg</a>
generic cialis levitra <a href=http://cialisees.com/generic-for-cialis>cialis uk</a>
cialis sans ordonnance

CoreyleankCoreyleank2018/05/16 07:02recommended site cialis kanada
cialis canadian drugs <a href="http://cialisees.com/#cialis-cost">cialis 5mg</a>
cialis soft tabs for sale <a href=http://cialisees.com/#cialis-lowest-price>canadian cialis</a>
cialis coupons printable http://cialisees.com/#cialis-uk

CoreyleankCoreyleank2018/05/16 07:25cialis preise schweiz
only now cialis for sale in us <a href="http://cialisees.com/cheap-cialis">cialis for daily use</a>
cialis ahumada <a href=http://cialisees.com/#tadalafil-20-mg>cialis 20 mg</a>
only here cialis pills http://cialisees.com/#tadalafilo

CoreyleankCoreyleank2018/05/16 07:47tadalafil tablets
il cialis quanto costa <a href="http://cialisees.com/cialis-from-canada">buy generic cialis</a>
we use it 50 mg cialis dose <a href=http://cialisees.com/viagra-vs-cialis-vs-levitra>cialis from canada</a>
cialis 5 mg buy http://cialisees.com/#buy-cialis

CoreyleankCoreyleank2018/05/16 08:09cialis tablets
comprar cialis navarr <a href="http://cialisees.com/tadalafil-10-mg">cialis online</a>
buying brand cialis online <a href=http://cialisees.com/#cialis-coupon>tadalafil 10 mg</a>
cialis kamagra levitra http://cialisees.com/#cialis-daily

CoreyleankCoreyleank2018/05/16 08:32cialis daily reviews
viagra vs cialis vs levitra <a href="http://cialisees.com/cialis-kaufen">cialis 5 mg</a>
il cialis quanto costa <a href=http://cialisees.com/#tadalafil-5mg>viagra vs cialis vs levitra</a>
prix de cialis http://cialisees.com/#cialis-canada

CoreyleankCoreyleank2018/05/16 08:55cialis patentablauf in deutschland
safe dosage for cialis <a href="http://cialisees.com/#200-cialis-coupon">cialis pills</a>
enter site very cheap cialis <a href=http://cialisees.com/cialis-kaufen>purchasing cialis on the internet</a>
cialis tadalafil http://cialisees.com/#cialis-great-britain

CoreyleankCoreyleank2018/05/16 09:17tadalafil 20mg
generic cialis with dapoxetine <a href="http://cialisees.com/viagra-vs-cialis">viagra vs cialis vs levitra</a>
cialis rezeptfrei sterreich <a href=http://cialisees.com/#cialis-vs-viagra>sialis</a>
cialis price thailand http://cialisees.com/#viagra-cialis-levitra

CoreyleankCoreyleank2018/05/16 09:39where cheapest cialis
dose size of cialis <a href="http://cialisees.com/#cialis-20mg">cialis without a doctor's prescription</a>
prezzo di cialis in bulgaria <a href=http://cialisees.com/#buy-cialis-online>cialis generika</a>
purchasing cialis on the internet http://cialisees.com/#cialis-5mg

CoreyleankCoreyleank2018/05/16 10:02cialis tablets for sale
cialis preise schweiz <a href="http://cialisees.com/#cialis-20mg-prix-en-pharmacie">cialis coupon</a>
cialis patentablauf in deutschland <a href=http://cialisees.com/buy-generic-cialis>tadalafil tablets</a>
cialis 5mg billiger http://cialisees.com/#cialis-cost

CoreyleankCoreyleank2018/05/16 10:25cialis 20 mg cut in half
cialis 20 mg <a href="http://cialisees.com/#cialis-5-mg">sialis</a>
warnings for cialis <a href=http://cialisees.com/#cialis-20-mg>purchasing cialis on the internet</a>
cialis 100 mg 30 tablet http://cialisees.com/#cialis-alternative

CoreyleankCoreyleank2018/05/16 10:47cost of cialis per pill
discount cialis <a href="http://cialisees.com/tadalafil-generic">online cialis</a>
5 mg cialis pharmacie en ligne <a href=http://cialisees.com/#buy-cialis-online>cialis 5mg</a>
cialis mit grapefruitsaft http://cialisees.com/#purchasing-cialis-on-the-internet

CoreyleankCoreyleank2018/05/16 11:10we recommend cheapest cialis
free generic cialis <a href="http://cialisees.com/#cialis-for-sale">cialis lowest price</a>
generic cialis 20mg tablets <a href=http://cialisees.com/#buy-cialis>tadalafil generic</a>
cialis daily new zealand http://cialisees.com/#viagra-vs-cialis

CoreyleankCoreyleank2018/05/16 11:33generic cialis pill online
venta cialis en espaa <a href="http://cialisees.com/#cialis-daily">cialis daily</a>
tadalafil 20 mg <a href=http://cialisees.com/#cialis-generika>tadalafil tablets</a>
cialis with 2 days delivery http://cialisees.com/#cialis-for-sale

CoreyleankCoreyleank2018/05/16 11:55cialis 5 mg funziona
cialis generic tadalafil buy <a href="http://cialisees.com/cialis-20-mg">cialis purchasing</a>
preis cialis 20mg schweiz <a href=http://cialisees.com/cialis-tablets>online cialis</a>
cialis therapie http://cialisees.com/#cialis-generico

CoreyleankCoreyleank2018/05/16 12:18we choice cialis uk
generic cialis at walmart <a href="http://cialisees.com/cialis-for-sale">cialis vs viagra</a>
side effects for cialis <a href=http://cialisees.com/#cialis-great-britain>tadalafil generic</a>
cialis authentique suisse http://cialisees.com/#200-cialis-coupon

CoreyleankCoreyleank2018/05/16 12:40cialis en 24 hora
cialis great britain <a href="http://cialisees.com/#cialis-tablets">cheap cialis</a>
cialis for sale <a href=http://cialisees.com/#cialis-great-britain>cialis kaufen</a>
cialis cost http://cialisees.com/#viagra-vs-cialis-vs-levitra

CoreyleankCoreyleank2018/05/16 13:03cialis cuantos mg hay
buy cialis sample pack <a href="http://cialisees.com/online-cialis">cialis 5mg prix</a>
discount cialis <a href=http://cialisees.com/cheap-cialis>cialis alternative</a>
viagra vs cialis vs levitra http://cialisees.com/#cialis-uk

CoreyleankCoreyleank2018/05/16 13:26cialis ahumada
safe dosage for cialis <a href="http://cialisees.com/#cialis-purchasing">buy cialis online</a>
cialis savings card <a href=http://cialisees.com/#cialis-daily>viagra vs cialis vs levitra</a>
cialis farmacias guadalajara http://cialisees.com/#cialis-great-britain

CoreyleankCoreyleank2018/05/16 13:47cialis 20 mg effectiveness
cialis price thailand <a href="http://cialisees.com/#purchasing-cialis-on-the-internet">cialis canada</a>
cialis kamagra levitra <a href=http://cialisees.com/buy-cialis-online>viagra or cialis</a>
cialis coupons printable http://cialisees.com/#cialis-cost

CoreyleankCoreyleank2018/05/16 14:10dosagem ideal cialis
cialis en mexico precio <a href="http://cialisees.com/#cialis-uk">cialis online</a>
buying cialis in colombia <a href=http://cialisees.com/cialis-for-sale>tadalafil tablets</a>
cialis 50 mg soft tab http://cialisees.com/#cialis-5mg

CoreyleankCoreyleank2018/05/16 14:31cialis prices in england
cialis soft tabs for sale <a href="http://cialisees.com/#cialis-20-mg-best-price">cialis 20 mg best price</a>
cialis vs viagra <a href=http://cialisees.com/cialis-canada>cheap cialis</a>
generic cialis with dapoxetine http://cialisees.com/#generic-for-cialis

CoreyleankCoreyleank2018/05/16 14:53cialis 05
cialis canadian drugs <a href="http://cialisees.com/#cialis-generico">tadalafil generic</a>
cialis pills in singapore <a href=http://cialisees.com/#cialis-canada>cialis 5 mg</a>
overnight cialis tadalafil http://cialisees.com/#cialis-tablets-australia

CoreyleankCoreyleank2018/05/16 15:15ou acheter du cialis pas cher
venta cialis en espaa <a href="http://cialisees.com/discount-cialis">cialis daily</a>
40 mg cialis what if i take <a href=http://cialisees.com/#cialis-5-mg>cialis uk</a>
price cialis per pill http://cialisees.com/#cialis-generique

CoreyleankCoreyleank2018/05/16 15:38online cialis
cialis generic <a href="http://cialisees.com/#cialis-5mg-prix">cialis generika</a>
generic cialis review uk <a href=http://cialisees.com/cialis-5-mg>cialis generika</a>
prices on cialis 10 mg http://cialisees.com/#cialis-kaufen

CoreyleankCoreyleank2018/05/16 15:59cilas
cialis lilly tadalafi <a href="http://cialisees.com/#cialis-lowest-price">200 cialis coupon</a>
wow cialis 20 <a href=http://cialisees.com/cialis-kaufen>cialis daily</a>
cialis online holland http://cialisees.com/#purchasing-cialis-on-the-internet

CoreyleankCoreyleank2018/05/16 16:19tadalafil
cialis alternative <a href="http://cialisees.com/tadalafil-10-mg">cialis prices</a>
acheter du cialis a geneve <a href=http://cialisees.com/cialis-daily>cialis prices</a>
cialis manufacturer coupon http://cialisees.com/#tadalafil

CoreyleankCoreyleank2018/05/16 16:39overnight cialis tadalafil
purchase once a day cialis <a href="http://cialisees.com/#cialis-canada">cialis uk</a>
cialis generico online <a href=http://cialisees.com/#tadalafil>viagra cialis levitra</a>
buy cialis online http://cialisees.com/#cialis-20mg

CoreyleankCoreyleank2018/05/16 17:00tadalafil generic
cialis ahumada <a href="http://cialisees.com/cialis-5mg">cialis 20mg prix en pharmacie</a>
cialis rezeptfrei sterreich <a href=http://cialisees.com/#generic-for-cialis>cialis 5 mg</a>
i recommend cialis generico http://cialisees.com/#generic-for-cialis

CoreyleankCoreyleank2018/05/26 04:41generic cialis forumcialis in frankreich ohne rezeptcialis and faintingcost of cialis per pillcialis 20 mg 4 comprimidoscialis soft germanyfake cialisbuy cialis linecialis alcohol forumcialis tulsa ok
cialis savings card
buy generic cialis <a href="http://cialisvonline.com/#buy-cialis-super-active">cialis great britain</a>
tadalafil 10 mg <a href=http://cialisvonline.com/#cialis-5mg>cialis for sale</a>
cialis pas cher paris http://cialisvonline.com/#cialis-super-active
subaction showcomments cialis thanks watchcialis 5mg infarmedwhite finger raynauds cialisbuy cheap cialis soft ukwhat works the best viagra cialis or levitracost of cialis per pillcialis unterschied viagracialis for paralysis patientsbuy cialis online in usacomparativo viagra cialis levitracost of daily dose cialis

CoreyleankCoreyleank2018/05/26 08:21generic meltabs cialis softcialis imperial levitra libidus viagra yohimbecialis side effects eyecialis viagra levitra which is the bestpiu efficace cialis o viagracialis pillen bestellencialis viagra on lineviagra confronto cialiscialis blood pressurenebenwirkung cialis viagra
prescription doctor cialis
no prescription cialis cheap <a href="http://cialisvonline.com/#cialis-5-mg">generic cialis</a>
cialis 200 dollar savings card <a href=http://cialisvonline.com/#buy-cialis>cialis 5mg prix</a>
cialis en 24 hora http://cialisvonline.com/#cialis-20-mg
canadian pharmacy cialis no prescriptionwhat does cialis look likecialis and poppersefeitos colaterais viagra cialis levitrageneric cialis softtabs mail orderbuy cialis in the ukcialis law suitcialis viagra alternativecialis holland apothekewaar kan ik cialis kopeneffet de cialis 5mgviagra cialis opiniecialis viagra para mujer

CoreyleankCoreyleank2018/05/26 18:59cialis once a day generiquekeywords cialis levitra sales viagracat 1 keyword cialiscelebrex renova tramadol cialiscialis side effects and alcoholalternatives to cialis softcialis viagra pharmacycialis 5 mg online bestellenviagra cialis prescription onlinecialis tv addsskillnad pa cialis och viagraannuaires sp cialis eskostprijs cialis apotheekvaniqa cialis propeciawhat is better levitra viagra cialiscialis 20 mg cena aptekadiferencias entre levitra cialis y viagra
bulk cialis
cialis uk next day <a href="http://cialisvonline.com/#cialis-canada">cialis without a doctor's prescription</a>
miglior cialis generico <a href=http://cialisvonline.com/#cialis-without-a-doctors-prescription>tadalafil</a>
how do cialis pills work http://cialisvonline.com/#tadalafil
comprare viagra e cialiscialis tongue swellinginsufflation cialiscialis pricialis experation dateforum cialis viagra levitracialis onlinecanadian pharmacies with free cialispotenzmittel viagra cialis levitra & cobahamas prescription cialisonline cialis salelevitra vs viagra vs cialiscialis club in new yorkorder cialis soft 8 pillscialis vs viagra melhorcialis 5 mg online italiaviagra kamagra cialis anerosis viagra more expensive than cialiscialis and back pain

Buy cialis onlineBuy cialis online2018/06/01 07:17cialis generic <a href="http://cialisees.com/">Buy cialis</a>
female cialis no prescription <a href=http://cialisees.com/>Cialis 5 mg</a>
cialis wir preise http://cialisees.com/

Buy cialis onlineBuy cialis online2018/06/01 18:45cialis generico milano <a href="http://cialisees.com/">Cialis tablets</a>
viagra vs cialis vs levitra <a href=http://cialisees.com/>Cialis canada</a>
we use it 50 mg cialis dose http://cialisees.com/

Generic for cialisGeneric for cialis2018/06/02 21:06cialis prezzo in linea basso <a href="http://cialisiv.com/">Tadalafil</a>
costo in farmacia cialis <a href=http://cialisiv.com/>Generic cialis</a>
generic cialis pro http://cialisiv.com/

Cialis pricesCialis prices2018/06/04 00:46cialis 5 mg effetti collateral <a href="http://babecolate.com/">Generic for cialis</a>
canada discount drugs cialis <a href=http://babecolate.com/>Generic cialis</a>
cialis generico in farmacia http://babecolate.com/

2009-10-15

Shell Context

15:50

書いてみた。

# shell.py
import sys
sys.path.append('/usr/lib/python2.5')
import clr
import re
import thread
import time
import commands

import Misuzilla.Applications.TwitterIrcGateway
import Misuzilla.Applications.TwitterIrcGateway.AddIns
import Misuzilla.Applications.TwitterIrcGateway.AddIns.Console

from System import *
from System.Threading import Thread, ThreadStart
from System.Diagnostics import Trace
from System.Collections.Generic import *
from Misuzilla.Applications.TwitterIrcGateway import Status, Statuses, User, Users, Utility
from Misuzilla.Applications.TwitterIrcGateway.AddIns import IConfiguration
from Misuzilla.Applications.TwitterIrcGateway.AddIns.Console import ConsoleAddIn, Console, Context
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper

class ShellContext(Context):
        def Initialize(self):
                self.suffix = Shell.instance()
                self.config = DLRBasicConfiguration(self.CurrentSession, "ShellContext", Dictionary[String,String]({ "Shell": "シェル"}))
                pass

        def GetCommands(self):
                dict = Context.GetCommands(self)
                dict["SH"] = "指定したシェルコマンドを実行します。"
                return dict

        def OnUninitialize(self):
                pass

        def get_Configurations(self):
                return Array[IConfiguration]([ self.config ])

        # Implementation
        def SH(self, args):
                cmd = args or ""
                self.Console.NotifyMessage("入力されたコマンドは '%s' です。" % cmd)
                out = commands.getoutput(cmd)
                self.Console.NotifyMessage(out)

class Shell(Object):
        @classmethod
        def instance(klass):
                if not hasattr(klass, 'instance_'):
                        klass.instance_ = Shell()
                return klass.instance_
        
        def __init__(self):
                # 普通の #Console にコンテキストを追加する
                CurrentSession.AddInManager.GetAddIn[ConsoleAddIn]().RegisterContext(DLRContextHelper.Wrap(CurrentSession, "ShellContext", ShellContext), "Shell", "Shell")
                self.config = DLRBasicConfiguration(CurrentSession, "ShellContext", Dictionary[String,String]({ "Shell": "シェル" }))

shell = Shell.instance()

対話的にやりとりするものや、cursesとか使ってるものは動かしたらどうなるのかわからんね。hehehe

wgetするときは悪いことは言わんから wget -nv にしておけ。

書いてから Shell Context ではなくて、 Command Context だろ、と気づいた。Shell Contextにするパッチ募集中。

LiendaLienda2012/03/29 10:33salam rastesh man iran zegnedi nemikonam ama az sait shoma kheyli khosham oomade omidvaram movafagh bashid. []ریحانه کُجوری پاسخ داده در مرداد ۱۶م, ۱۳۸۹ ۱۲:۳۲ ق.ظ:سلامخوب به سلامتی انگار داره این زنگ قلاب بافی ما بین المللی میشه!‌ الحمدلله سلامت باشید. ممنون[]

hlbobbrbwahlbobbrbwa2012/03/30 15:384NySKD , [url=http://otpndhwzopeg.com/]otpndhwzopeg[/url], [link=http://ygbssoobvgia.com/]ygbssoobvgia[/link], http://vszwhjagewgr.com/

aecrrpuocnbaecrrpuocnb2012/03/31 21:27KVVkAu , [url=http://qivynbvamocs.com/]qivynbvamocs[/url], [link=http://wekvqupvxjpj.com/]wekvqupvxjpj[/link], http://rgdmqgcrylgc.com/

GerVeskGerVesk2018/02/22 08:07Zithromax Capsules Viagra Ventajas E Inconvenientes <a href=http://tadalafbuy.com>cialis price</a> Sale Discount Generic Zentel Real Medicine Fedex No Rx Viagra Frei Verkauflich 2013

ShathaxedShathaxed2018/04/17 15:35Tylenol And Amoxicillin <a href=http://buyciali.com>п»їcialis</a> Viagra Schweiz Rezeptfrei Achat Viagra Pfizer Ligne Diflucan Online Order

2009-06-26

typablemap2.pyとして導入

12:19

http://d.hatena.ne.jp/syonbori_tech/20090623/1245757607

便利です。

もっともっと拡張するユーザが現れるとよいですね。

2009-05-12

マルチキャストデリゲートを初期化できない

19:53

「○○できない」とかネガティブなエントリばかりでアレなんですが・・・

DLRの拡張で以前は以下のようにして処理を追加していました。

Session.PostSendUpdateStatus += OnPostSendUpdateStatus

ところが、2.0のリリースあたりからReloadするたびにマルチキャストのデリゲートがReloadした回数だけ繰り返されるようになってしまいました。

Session.PostSendUpdateStatus = []

というコードを00init.pyで実行しようとしましたが、PostSendUpdateStatusはReadOnlyですよ、と怒られてしまいました。

みなさんはどのように処理を追加していますか?何かよい方法があれば教えてください。

takano32takano322009/05/12 20:04disconnectすると直ります。Reloadでも初期化するにはどうしたらいいんだろう。

takano32takano322009/05/13 11:00解決編 http://twitterircgateway.g.hatena.ne.jp/mayuki/20090512/1242134503

CarlozCarloz2012/06/28 07:13The genius store caelld, they're running out of you.

ydkuhnpizjydkuhnpizj2012/06/29 04:20Sfl42B <a href="http://dufolomwyuue.com/">dufolomwyuue</a>

bskgylbskgyl2012/06/29 15:254dhWd1 , [url=http://ldtvmwqsllez.com/]ldtvmwqsllez[/url], [link=http://cypuqpkwmpmu.com/]cypuqpkwmpmu[/link], http://raxdyxyupwvq.com/

jgvpstjgvpst2012/07/01 06:01wWdtbv , [url=http://htljapdgbfwm.com/]htljapdgbfwm[/url], [link=http://mihqqwaqukgl.com/]mihqqwaqukgl[/link], http://ubcwlkqkmezf.com/

2009-05-07

言語設定を日本語にするとscraping.pyが正常に動作しない

19:07

Twitterのインターフェイスが若干変わり、言語設定を日本語にしていると scraping.py にて、re_sourceインスタンス変数に格納されている正規表現でのマッチに失敗し、スクレイピングに失敗します。

今回の修正で "span> from Hoge" などとなっていた部分が "Hoge で" と書き換わっているためです。

対応するために re_source を書き換えることも考えられましたが、今後の日本語の文言がどうなるか動向をエスパーできるほどの超人ではないので、おとなしく言語設定を英語にしたら正常にこんにちはこんにちはしている模様です。

scraping.py を使用されている方は参考になれば。

HarrhdHarrhd2012/06/28 03:55I want to send you an award for most helpful internet wirter.

dlzjivyndlzjivyn2012/06/28 13:52JWWWdE <a href="http://ycosbfgubpjt.com/">ycosbfgubpjt</a>

dmltfnrdmltfnr2012/07/01 00:4429L2M1 <a href="http://qahqtdybtzia.com/">qahqtdybtzia</a>

lreuiyyudlreuiyyud2012/07/01 05:39SSyEck , [url=http://mcgmteuxjaje.com/]mcgmteuxjaje[/url], [link=http://plsfcpxtplbw.com/]plsfcpxtplbw[/link], http://quudlhigdadf.com/