Search:

Type: Posts; User: Taidgh; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    65
    Views
    6,017

    Re: Beginner programming challange #1

    Okay here's my finished effort:


    #!/usr/bin/env python
    import random, sys

    try:
    file = open(sys.argv[1],"r")
    guesses = file.readlines()
    for guess in range(0,len(guesses)):
  2. Replies
    65
    Views
    6,017

    Re: Beginner programming challange #1

    Lol, thanks for pointing that out for me. I feel like an idiot now. :D
  3. Replies
    65
    Views
    6,017

    Re: Beginner programming challange #1

    Could anyone tell me why this doesn't work?


    #!/usr/bin/env python
    import random

    guess = raw_input("Please enter a number between 1 and 100: ")
    guess = int(guess)
    try:
    if guess ==...
  4. Replies
    2
    Views
    1,477

    Re: Python curses problem

    Thanks for that.
  5. Replies
    2
    Views
    1,477

    Python curses problem

    So I have this piece of code:


    import sys, time, curses

    def main():
    menu = 1
    stdscr = curses.initscr()
    while menu:
    menu()
  6. Thread: First Language

    by Taidgh
    Replies
    169
    Views
    15,737

    Poll: Re: First Language

    But certain languages are more effective, and have features that make them more relevant to most modern programmer's needs. You wouldn't tell most people to learn Latin or Ancient Greek as their...
  7. Replies
    46
    Views
    2,064

    Re: Behold: The Electronic Cigarette

    Just get a vaporizer. Leave the tobacco smokers to ruin their lungs.
  8. Replies
    22
    Views
    5,054

    Re: I have found a funny troll blog

    How does their inability to feel enthusiasm for relearning how to use their computer, for no apparent reason, show lack of common sense? I use Linux because I like to tinker. You don't have to be a...
  9. Replies
    27
    Views
    987

    Re: Name my program!

    Karl Pilkington reference? :p
    As for a name, Padlock?
  10. Replies
    6
    Views
    544

    Re: Please give feedback on Python OOP program

    I looked at that thread, and had an attempt myself.


    #!/usr/bin/env python

    import random

    class Player:
    def __init__(self, lives, balls):
    self.lives = lives
  11. Replies
    6
    Views
    399

    Re: Compiling C programs

    And make main() return 0 (0 == success).
  12. Thread: python program

    by Taidgh
    Replies
    2
    Views
    282

    Re: python program

    Or alternatively, int(x).
  13. Replies
    6
    Views
    564

    [ubuntu] Re: Audio playback stopped working on 8.10

    Right, I guess I'm reinstalling again. I'm begining to tire of Ubuntu...
  14. Replies
    16
    Views
    792

    [ubuntu] Re: No sound after an ALSA update.

    Try
    sudo gedit /etc/modprode.d/alsa-base
    instead.
  15. [ubuntu] Re: Verry Pissed. Sound not working no matter what i try

    I'm getting the same thing. Someone told me it could be an issue with PulseAudio, but trying to fix that just made it worse.
  16. Replies
    6
    Views
    564

    [ubuntu] Re: Audio playback stopped working on 8.10

    I tried following the guide and it didn't work. If I get no sound at all (no startup or login sounds) would it still be related to PulseAudio? Also, system_1 and system_2 no longer show up as...
  17. Replies
    6
    Views
    564

    [ubuntu] Re: Audio playback stopped working on 8.10

    #!/usr/bin/env python
    import bump
    for bump in bump:
    print "Bump."
    bump+=1
  18. Replies
    6
    Views
    564

    [ubuntu] Re: Audio playback stopped working on 8.10

    Do not try to bump the thread. Instead try to realise the truth. What truth? That there is no thread.
  19. Replies
    12
    Views
    716

    [ubuntu] Re: menu key on keyboard wont work

    Everyone look at the link in hist first post. He means the key that will open up the right-click menu. It worked for me as default, but I'm not sure how to fix your problem.
  20. Replies
    6
    Views
    564

    [ubuntu] Re: Audio playback stopped working on 8.10

    I get the same message:

    audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Could not open audio device for playback.
    when I try to use my soundcard (SiS SI7012) with...
  21. Replies
    6
    Views
    564

    [ubuntu] Audio playback stopped working on 8.10

    Up until recently, my sound has worked fine (out of the box). I bought a Samson Q1U usb mic today, and got that working well on my laptop (8.10). When I unplugged it sound playback was no longer...
  22. Replies
    2
    Views
    784

    [other] Re: Linux Tar usage question

    What's the point of tar if you want them uncompressed? Wouldn't a directory do it?
  23. Replies
    7
    Views
    341

    [ubuntu] Re: "command not found"

    I said it first. :(
    Just kidding. :)
  24. Replies
    7
    Views
    341

    [ubuntu] Re: "command not found"

    Are you sure it isn't a problem such as case sensitivity? Could you post a sample session, enclosed in [CODE] tags, to make things clearer?
  25. Replies
    3
    Views
    365

    [ubuntu] Re: usb stick recommend

    I would seriously recommend this:http://www.thinkgeek.com/computing/drives/a6d9/ , especially as they have sales on. I have one and it works great.
Results 1 to 25 of 51
Page 1 of 3 1 2 3