Jump to content

ratmandall

Active Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by ratmandall

  1. My first idea was to use Wget to download the HTML file and then scan through it to see if anything changed when someone was online to when they weren't.

    If you look closely this text appears when a user is online

    <span class="msOnlineNow ">

    >Retrieve html of a users profile
    >Test whether the text <span class="msOnlineNow "> appears in the HTML
    >If True the user must be online.
    >If False the user must be offline.

  2. Well I was extra bored :rolleyes: So I made a python script to help you do this, Make sure you run it in the directory with all your songs.

    You can download python here http://www.python.org/download/releases/2.5.4/

    Once it has generated the random names, copy the folder of songs to your Ipod. Then you can hit enter and the script will change the songs back to their original state.

    [Tested on Ubuntu GNU/Linux, should work with windows tho.]

    #Run this in the directory with your songs, and DO NOT CLOSE this until you have recovered the names.
    raw_input("Are you sure you want to continue? Make sure not to exit prematurely.")
    import os,random
    chars = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
    old_new = {}
    for song in os.listdir('.'):
        if song.endswith((".mp3",".wav",".aac")) == True:
            new = str(random.randint(0,2000))+random.choice(chars)+song[-4:]
            old_new[new] = song
            os.rename(song,new)
            print "Generated random name"
        else:
            print "Unrecognized extension"
            
    def recover():
        for old_song in os.listdir('.'):
            try:
                os.rename(old_song,old_new[old_song])
                "Song name recovered...."
            except KeyError:
                pass
             
    raw_input("\nHave you copied the songs to your Ipod?")
    raw_input("Hit enter to recover the names")
    recover()

    It's a bit overkill :P but I love overkill D:

  3. Have you tried gtk? It always seemed like the easiest to me.

    Here's a simple window with a kill function so the program exits properly when the window is closed.

    import gtk, sys
    
    def gtkwindow():
        def kill(window):
            window.destroy()
            sys.exit()       
        window = gtk.Window()
        width, height = 250,200
        window.resize(width, height)
        window.show()
        window.connect('destroy',kill)    
        gtk.main()
    
    gtkwindow()

  4. I have a pretty good one i wrote in c++ that uses GetAsyncKeyState. It does what i need it to do.. Id like to expand on it but i never use it so that my be a project for the future.. I guess if anyone wants to help the only other thing i would like it to do is send logs to gmail. and that would mean that pass and usernames would have to be coded in before it is compiled.

    And its not the one that takes up 100% or your memory.

    You could also make it log screenshot's every 5 minutes or however long you want.

  5. ---NEW CHALLENGE---

    Feb. 11, 2008

    Language: any

    Description: Create a mini-downloader. Must be able to download files from the internet. Size of file doesn't matter just the quality. Optional to include a GUI, extra points if you do.

    Must Have: An area to input the URL, a way to submit or cancel, and a load-bar (or a way to see the downloads progress).

    Time limit: 1 1/2 - 2 weeks

    To win: Download successfully, looks good. Also try to make it as short as possible.

  6. OK i give that one a try first its all most done burning and

    will net tools work with Linux

    uhh not quite sure what net tools is, but linux has alot of networking tools a simple google search will help you out on specific tools.

  7. that ive been having some problems trying to install Linux on my old laptop any ideas what i could do to get it to work

    What distro are you trying to install and what exact problem are you having?

    like the other guy said it could be million thing's.

    http://google.com

×
×
  • Create New...