Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    17
    Views
    703

    Re: Separation of "Action" and "Data" classes

    Wow.

    I posted this three years ago, and boy was I ignorant. Since then I've learned LISP, figured out what I actually want to do with my life in computer science, and actually understand what the...
  2. How do Open-Source programmers make a living?

    My Dad has been asking me a few questions about how open source programmers make a living, and for once, I can't actually think of the answer.
    Obviously they don't live off of sponsorships by major...
  3. Replies
    3
    Views
    357

    Re: Stumped by getopt

    Thanks, I'll check that out then :)
  4. Replies
    3
    Views
    357

    Stumped by getopt

    I'm trying to write a simple range calculating program in C++,
    however, I can't seem to get it to parse the arguments.
    I have used the info and example from the GNU Getopt page, but it seems as if...
  5. Replies
    53,489
    Views
    3,280,312

    Re: The BUMP Thread

    Bump
  6. [ubuntu] Re: [SOLVED] Running GUI programs from the terminal

    I wouldn't use lynx as it's interface is not very user friendly and it doesn't render CSS. Go for links or elinks.

    sudo apt-get install elinks
  7. Replies
    55
    Views
    6,240

    Re: Programming challenge: Ulam Spiral

    I've translated my python script into php, you can find it at this web address...

    http://xavieran.com/ulam_form.html

    :D :D
  8. Replies
    1
    Views
    2,056

    curl include problem...PHP

    I'm trying to use the curl library in a script to work with google's AJAX API, but I get this error when I run it:

    Warning: include(curl) [function.include]: failed to open stream: No such file or...
  9. Replies
    9
    Views
    428

    Re: A bug in python?

    Seems a bit strange though, In my app I need to distuinguish between int and bool...


    def opposite(x):
    '''Return the opposite of x.'''
    if x:
    if isinstance(x,bool):return False...
  10. Replies
    9
    Views
    428

    A bug in python?

    I'm running python 2.5.2 and I think I may have found a bug...

    When I run:

    isinstance(True,int)

    python returns True...
    it also returns true when I substitute False for True...

    Is this a...
  11. Replies
    55
    Views
    6,240

    Re: Programming challenge: Ulam Spiral

    Here's my (rather limited) solution.

    I've used curses, and an abstraction of a pixel...(oooh... ;) )

    I borrowed the prime calculating algorithm from MaxIBoy (hope you don't mind...).

    It's...
  12. Replies
    8
    Views
    377

    Re: playing an audio file...

    http://pygstdocs.berlios.de/

    That's for python, but it is fairly good anyway...
  13. Replies
    55
    Views
    6,240

    Re: Programming challenge: Ulam Spiral

    I'll use the python's curses library.

    OP: I'm sure ruby has a curses library to control exactly where text is output, or you could use spaces and tabs...
  14. Replies
    1
    Views
    362

    Mit-scheme won't run...

    Hi,

    I've installed mit-scheme, so I can do some of the courses in their OpenCourseWare, but when I run it I only get:


    Largest address does not fit in datum field of object.
    Allocate less...
  15. Re: Strange issue with curses and gstreamer :python

    Bump.
  16. Strange issue with curses and gstreamer :python

    I am experimenting with gstreamer in python, using this tutorial:http://pygstdocs.berlios.de/pygst-tutorial/pipeline.html

    I decided to set myself an exercise, to translate the first code example...
  17. Replies
    2
    Views
    860

    Re: Traceback Error - Python

    Sorry guys...really stupid mistake!!


    raise ConfigError,'problem with configuration file:%s'%(cfg.name,traceback.format_stack(0))

    format_stack does not take an int as an argument...
  18. Replies
    2
    Views
    860

    Traceback Error - Python

    Hi,

    I'm trying to extract a stack in my program for a format string with traceback.format_stack(), but when I use it (and any of the other related functions in the traceback module) I get this...
  19. Replies
    0
    Views
    200

    Translation files in launchpad

    Hi,

    I've been checking out launchpad and it's translation service for programs, and am wondering what a .pot file is, and how one creates a .pot file.

    I've tried google, but I can't really find...
  20. Replies
    6
    Views
    329

    Re: Ignoring whitespace in a config file

    Genius!
    Thankyou,
    I should have thought of that... :D
  21. Replies
    6
    Views
    329

    Re: Ignoring whitespace in a config file

    Sorry, I should have specified that.

    Python.
  22. Replies
    6
    Views
    329

    Ignoring whitespace in a config file

    Hi guys,

    I'm writing a function to parse a config file and have got stuck on one large problem.

    I want to ignore any empty lines in the config file such as this:

    GAMESTART
    game=nethack...
  23. Replies
    15
    Views
    3,598

    [ubuntu] Re: is there any software like SKYPE?

    As Riffer said, skype is available.

    I have it working here at home, and it works perfectly; including video.

    The only issue I've had is that it doesn't support sending SMS's to mobile phones...
  24. Replies
    5
    Views
    517

    Re: And or evaluation in python

    Thankyou all your replies.

    I was getting a bit confused with the parentheses and tried chucking a few in somewhere.

    @HymnToLife:
    when I was making this I checked out the rules for...
  25. Replies
    5
    Views
    517

    And or evaluation in python

    Hi all,

    I am writing an implementation of the card game blackjack and am having some problems with a particularly complex if statement that needs to tell if there is a blackjack in the hand or...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4