Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for katamole

A quick question: I have been writing a small program to simply read a file and send to cout. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { char ch; ifstream in_stream; in_stream.open("self.cpp"); while(!in_stream.eof()) { cout << ch; in_stream.get(ch); } in_stream.close(); return 0; } [/CODE] This works ok, except …

Member Avatar for dkalita
0
2K
Member Avatar for Alex!

Hey Guys. I've been given a Major for school where I have to create a Mathematics program in Python. The problem I am having is that If i try to set up a canvas with a background image, the buttons will not show any more!? the second problem I am …

Member Avatar for vegaseat
0
108
Member Avatar for katamole

Hi there, One of the ways one can reverse a string in python is like so: [CODE=PYTHON] Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> mystring = "Hello, World!" >>> mystring[::-1] '!dlroW ,olleH' >>> [/CODE] It is …

Member Avatar for sravan953
0
140
Member Avatar for katamole

Hi all, Looking through the more popular visualization packages for Python, it seems like it is very difficult to specify a network with absolute length values for the edges. Example: Create 4 nodes: a, b, c, d Create edges between all nodes: a>b, a>c, a>d, b>c, b>d, c>d This is …

0
57
Member Avatar for katamole

Hi there, I've been searching the documentation but I can't find any answers (perhaps I'm asking the wrong questions). Say we have a list of animals: Sheep, Cow, Pig, Horse. All of these animals have attributes (4 legs, etc.) We have the name of the animal and the attributes stored …

Member Avatar for katamole
0
395
Member Avatar for katamole

Hi again, I'm trying to use a python wrapper for the last.fm api. It's pretty old but seems to be working ok (for now). See [url]http://code.google.com/p/pyscrobble/[/url] Anyway, I'm having trouble extracting some information from the output. [CODE] import scrobble user = scrobble.User('mattfeliks') # invoke user class recent = user.recent_tracks # …

Member Avatar for katamole
0
99
Member Avatar for docesam

i want to start programming a new program (electronic health care center) in python and before start learning python i wanna make sure that python does have all the features i need to accomblish this project so i wanna ask you does python able to support these features : 1- …

Member Avatar for Mearah
0
164
Member Avatar for katamole

Hi there, I'm quite new to python and have a question regarding list matching. What would be the most efficient method of searching for matching items in a list? Ideally, the code would look like: [CODE] list1 = ['spam', 'eggs', 'bacon'] list2 = ['spam', 'ham', 'king richard'] matchitems(list1, list2) ... …

Member Avatar for woooee
0
179
Member Avatar for katamole

I'm currently doing a projecteuler problem, which requires finding the sum of all the primes below two million. I have a primitive function which determines whether or not a number is prime. This function is incorporated into the below function to produce a list with all the primes below the …

Member Avatar for MK12
0
163
Member Avatar for katamole

Hi everyone, As a personal project I've decided to write a small script which will take a raw_input film title, then look up the IMDB rating and return the result. As an extra challenge I decided to employ re. Now, this is how far I have got (yes, I am …

Member Avatar for katamole
0
667