Top.Mail.Ru
? ?
Image
Image
Consequences' Journal
20 most recent entries
Image
Image

Date:2008-09-16 01:12
Subject:does this thing still work?
Security:Public
Mood:Image horny

perhaps....

post a comment



Date:2008-09-16 00:57
Subject:Your mom! Oh yeah!
Security:Public

Thats right baby, I come back with a bang, a 5 sec bang of yo mama cause thats all i need cause im cool like dat.

post a comment



Date:2003-07-15 22:26
Subject:0.5.0 of PyLJclient released
Security:Public

Basically this version shifts one line over four spaces. I noticed that the processor usage goes up dramatically with 0.4.0 and maybe earlier versions. This one fixes that by correctly adding a call to sleep, apart from that it's 0.4.0. and it has the view posts tab which was what I was working on a long time ago when I stopped working on the client, so you get to see a 1/4 finished view posts tab which doesn't work. Apart from that, pyLJclient is still a pretty decent basic client which doesn't freeze up if there is network traffic. questions and concerns here.

thanks for trying this! and code contributions are always welcome.

2 comments | post a comment



Date:2003-07-15 21:20
Subject:four little spaces
Security:Public

four little spaces brought the processor activity down from 95% to 1 or 2.

post a comment



Date:2002-09-02 22:05
Subject:
Security:Public
Mood:Image amused

encrypting the emacs manual....LOL jeez. anyone want to take over pyLJclient development? I have dozens of pages of UML diagrams that still have to be implemented. I'll give em to you, good pirce :P

1 comment | post a comment



Date:2002-07-19 17:59
Subject:
Security:Public

I've got a ticket to the yankees game tonight if anyone wants it.....

post a comment



Date:2002-07-06 17:13
Subject:
Security:Public

have I recently mentioned that Mouse on Mars - Autoditacker is kick ass album?

post a comment



Date:2002-07-06 16:58
Subject:
Security:Public

look here!

open source is fun! just improved error handling on someone's great code!

1 comment | post a comment



Date:2002-07-06 14:46
Subject:
Security:Public

MS document object model:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/obj_document.asp

and

http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/ifaces/IWebBrowser2/IWebBrowser2.asp

wanna submit stuff from a form automatically? You have to dig in a little deeper into the html source for that, find the script name and the variables being passed to it, and do it through the urllib and urllib2 modules of python, or you can use IEs COM interfaces.

doc = ie.Document
doc.forms(0).Account.value = "987654321" # Referenced as the first (0 based count) form on the page.
sleep(0.5) # Otherwise it seems to run too fast and get confused :-(
doc.frmLogin.Password.value = "some_password" #Referenced by the form's name in the HTML.
sleep(0.5)
doc.forms(0).submit() # Sends the info.
sleep(1)

You can check if it's finished processing by checking if
ie.ReadyState == 4 and
doc.readyState == "complete"

and here's how to get IE to save a webpage to a file with python

import win32com.client,time,string
# Get the browser object
ie = win32com.client.DispatchEx("InternetExplorer.Application")
ie.Visible = 0
ie.Navigate("http://www.google.com")
time.sleep(5)
text = ie.Document.body.innerHTML
text = unicode(text)
text = text.encode('ascii','ignore')

filename = "c:/test.html"
output_file = open(filename,'w')
output_file.write(text)
output_file.close()
ie.close()

1 comment | post a comment



Date:2002-06-15 14:22
Subject:
Security:Public

NVIDIA introduces Cg. Now's a good time as any to jump into graphics programming.

2 comments | post a comment



Date:2002-06-07 13:28
Subject:
Security:Public

Barry's Tea Gold Blend

I think this tea is very good. anyone else has tea recommendations?

1 comment | post a comment



Date:2002-06-05 23:08
Subject:
Security:Public

mozilla, such a memory hog, 32Megs on my laptop with only 2 windows open. don't matter, I got memory to burn.

2 comments | post a comment



Date:2002-06-05 22:11
Subject:ok, I'll take the friggin quiz...
Security:Public

19

I act like I'm 19.
This test was brought to you by James - Part of the David and James phenomenon. Take it here.

2 comments | post a comment



Date:2002-06-05 21:33
Subject:
Security:Public

holy fucking shit. mozilla 1.0 is FAST on my laptop.

post a comment



Date:2002-06-02 13:51
Subject:
Security:Public

just got back from driving all the way from the edge of long island. nice drive and nice day makes for nice driving, even through the bronx. Stayed over at my cousin's house for the night. Now I will go and take a shower.

1 comment | post a comment



Date:2002-06-01 13:52
Subject:
Security:Public

i'm going to make this weekend as unproductive as possible.

wait. i have to make an lj script first. after that, it's on.

post a comment



Date:2002-05-02 20:52
Subject:
Security:Public

A coder's guide to coffee

post a comment



Date:2002-04-16 16:11
Subject:
Security:Public

has anyone had experience writing mp3 streaming servers (like shoutcast)? I am thinking about writing one, but can find no protocol documentation. let me know if you find anything. I want to broatcast mp3s all over my house :)

2 comments | post a comment



Date:2002-04-14 21:07
Subject:
Security:Public

new Past Entries window

2 comments | post a comment



Date:2002-04-14 19:02
Subject:
Security:Public

heh. just realized postevent uses mon, while getevents uses month as the variable that indicates the month to use. horray for inconsistencies in the protocol mode list.

post a comment


Image
Image
browse
Image
Image
my journal
Image
Image
Image Image
Image
Image