User Profile

Collapse

Profile Sidebar

Collapse
shonen
shonen
Last Activity: May 3 '07, 12:40 AM
Joined: Mar 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shonen
    replied to Problem with my CSS/HTML, What is wrong?
    awesome thanks!

    Worked! appreciate the fast response :)


    ~shonen
    See more | Go to post

    Leave a comment:


  • shonen
    started a topic Problem with my CSS/HTML, What is wrong?

    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...
    See more | Go to post

  • shonen
    started a topic Problem with some socket/event programming

    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,...
    See more | Go to post

  • shonen
    replied to delete a list in text file
    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:
    ...
    See more | Go to post

    Leave a comment:


  • shonen
    replied to What is your OS and Python Version
    I use Ubuntu/Linux when coding

    Python 2.5 (should be)

    Uh....i prefer the text file/command line :P


    Toooooo goooooeeeyy ahhhhh!

    ~shonen
    See more | Go to post

    Leave a comment:


  • Code:
    for r in range(100):
        d1 = diceroll()
        d2 = diceroll()
        sum = d1 + d2
        print d1
        print d2
        print sum
    Ok well let's check out your code here, (cause this is where you need to check it)

    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...
    See more | Go to post

    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)
    ...
    See more | Go to post
No activity results to display
Show More
Working...