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...
Type: Posts; User: Xavieran; Keyword(s):
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...
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...
Thanks, I'll check that out then :)
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...
Bump
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
I've translated my python script into php, you can find it at this web address...
http://xavieran.com/ulam_form.html
:D :D
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...
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...
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...
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...
http://pygstdocs.berlios.de/
That's for python, but it is fairly good anyway...
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...
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...
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...
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...
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...
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...
Genius!
Thankyou,
I should have thought of that... :D
Sorry, I should have specified that.
Python.
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...
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...
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...
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...