Date: | 2002-07-19 17:59 |
Subject: | |
Security: | Public |
I've got a ticket to the yankees game tonight if anyone wants it.....
1 comment | 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.
5 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
3 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
Date: | 2002-04-13 18:23 |
Subject: | |
Security: | Public |
chillin at home
1 comment | post a comment
Date: | 2002-04-11 09:42 |
Subject: | |
Security: | Public |
in order not to stick to any particular gui toolkit, I am going to put what I call adapters between the python that deals with the logic and the part that deals with the display. The adapter translates logically arranged python classes and data structures into values for the display components. The message from the display is routed back through the adapter, converted back to logical python classes.
As a result, as long as a new display structure appears the same to an adapter, it can be used without change. If the adapter cannot handle the new display structure, a new one can be written, or the current one modified to fit the structure. The deal is that as far as the display is concerned, he only needs to go as far as the adapter in dealing with the program.
post a comment
Date: | 2002-04-09 17:02 |
Subject: | |
Security: | Public |
heh. looks like I can't remove developers from my own project on sourceforge.
4 comments | post a comment
Date: | 2002-04-08 02:29 |
Subject: | |
Security: | Public |
things are only complicated as you make them out to be.
...deep thoughts by Jack Handy
2 comments | post a comment
Date: | 2002-04-05 22:43 |
Subject: | apache 2.0 released. |
Security: | Public |
woohoo! Apache 2.0 released for a production level environment. Ok kids, go out and upgrade your 1.3 v.
post a comment
|