awesome thanks!
Worked! appreciate the fast response :)
~shonen
User Profile
Collapse
-
Problem with my CSS/HTML, What is wrong?
http://www.shonenshead .com/testing.html
Link provided above for the small little backend im working on for the company I work for. (Nothing to fancy, or requiring a crap load of work, I just don't want marketing to complain too much :) )
Anyway, when you close the browser smaller than a full screen, the entire body text immediately moves left and into the menus screen. Is there anyway that I can prevent this? And if... -
Problem with some socket/event programming
I'm currently attempting to connect to a shoutcast server
pull down the information from here and then I'll parse it.
I got this working with the httplib, which was great, the problem is I want to use the select statement to do only do this periodically. (I'm trying to be a client, accepting data, that might be my first problem)
Basically this is the code that im working on to TEST to mimic what the httplib does,... -
well this would be how I'd do it
...Code:x = open('nameoffilehere.txt','r') holder=[] for l in x: line = l.strip('\n') #get rid of the pesky newline line = line.split('|') # i think you used | to split lines holder+=[line] x.close() #now the entire file is set up in a list #now you should be able to access your info similarly to this:Leave a comment:
-
I use Ubuntu/Linux when coding
Python 2.5 (should be)
Uh....i prefer the text file/command line :P
Toooooo goooooeeeyy ahhhhh!
~shonenLeave a comment:
-
Ok well let's check out your code here, (cause this is where you need to check it)Code:for r in range(100): d1 = diceroll() d2 = diceroll() sum = d1 + d2 print d1 print d2 print sum
you're calling your diceroll 100 times BUT because python overwrites your variables, you're basically overwriting your variable sum 100 times and then printing...Leave a comment:
-
irclib Question: A bot that does a specified process, repeatedly
Hi guys!
Alright so here is my question, I've been messing around with irclib in my python programs creating a bot. I just want to add a little bit of functionality to it!
So basically, what i have in mind is that it reads a socket, pulls the information that I want from the socket (parses it all up and gives me what i want), and updates the channel I'm in (or for testing sake, a PM to me over the network)
...
No activity results to display
Show More
Leave a comment: