#python - Sat 31 Mar 2007 between 01:35 and 02:15

NY Lost Funds



chiwawa_42(lynx can take html from stdin)
Chairosif you're on OS X, you might like TextMate.
chiwawa_42Chairos: +1, textmate is amazing
CSWookietoanducit: Not a fan of vim?
chiwawa_42just bought it, it's just... perfect
sontekCSWookie: A website for a user group, I expect it to need a lot of new features
CSWookieNothing is as perfect as vim. vim makes me happy in ways that no other program but ssh makes me happy.
AndaresHey, with Tkinter...
CSWookiesontek: I'd check out djangoproject.com (#django) and also turbogears (I don't know its links, but you can google them).
AndaresHow do I specify the width/height of a widget?
CSWookiesontek: djangoproject.org, rather, probably.
sontekCSWookie: I'll play with them, I'm more looking to learn python than use a prefabbed one
CSWookie: right now I'm a .net developer =[
CSWookiesontek: I would not reccommend making your own.
sontek: Its just wheel spinning. I've used django, and its pretty pythonic.
sontek: the only problem I've seen with it is I'm not sure how well it likes schema changes.
sontek: Turbogears is supposedly more fully baked, and ToskaWidgets (its widget library) is supposed to be realy nice.
sontek: But there's plenty of fine frameworks out there, so why waste your time reinventing the wheel when you could be making something that will look nice in your portfolio, and learning while you're at it.
sontekCSWookie: I'll check it out =) If they are flexible enough for me to add what I need it'll be nice
CSWookie: there is actually a talk on django at the local linux user group here
CSWookiesontek: Django is nice.
sontek: And bear in mind, they aren't a bunch of cut'n'paste lego coding.
sontek: You can make your own furm in an afternoon, if you know Python, and not too much more if you don't.
sontek: So they won't get in the way of your creativity.
s/furm/forum/
sontekCSWookie: I'm watching the turbogears video right now, its pretty cool
chiwawa_42any idea on how to pass a _very_ long string to a program ran with os.popen() via stdin ? Tried to echo it but got sh: -c: line 1: syntax error near unexpected token `newline'
polpakchiwawa_42: use subprocess.Pipe
err Popen
but that's not the problem
chiwawa_42so subprocess.Popen would do the job? may you tell me how to use it, I only found something about using it to replace os.popen2, wich i also don't know usage
polpakproc = subprocess.Popen("command to run", stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=True)
then just talk to the subprocess with proc.stdin.readline() and proc.stdout.write()
chiwawa_42polpak: very nice, ty
polpakerr I have that wrong
you write to the proc's stdin
and readline from it's stdout
chiwawa_42got it :)
polpak: hem... i'm using python 2.3.5, built in latest Mac OS X, subrocess module not found...
Jafet2.3 is oooold.

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive

NY Lost Funds