1,336 Topics

Member Avatar for
Member Avatar for iwanttolearnc

im trying my hand at calling c functions from python. im reading up the tutorial [URL="http://csl.sublevel3.org/C-functions-from-Python/"]http://csl.sublevel3.org/C-functions-from-Python/[/URL]. however part of the tutorial says that i should [QUOTE]Compiling dynamic libraries on Mac OS X is different from the usual gcc -shared you might be used to: gcc -dynamiclib -I/usr/include/python2.3/ -lpython2.3 -o myModule.dylib …

Member Avatar for gerard4143
0
229
Member Avatar for arthurav

I have the following program : [CODE] #include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int,int); matrice(char *); matrice(int,int,T **); matrice(matrice &x); ~matrice(){}; template <class U> friend ostream &operator <<(ostream &,matrice<U> &); int getNrLinii(){ return m; } int getNrColoane(){ return …

Member Avatar for Fbody
0
190
Member Avatar for arthurav

I am creating a template class for working with matrices and get an error when I try to use the overloaded << operator. This is the code: [CODE]#include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int); matrice(FILE *); matrice(int,int,T **); …

Member Avatar for vijayan121
0
2K
Member Avatar for iwanttolearnc

im trying my hand at calling c functions from python. im reading up the tutorial [URL="http://csl.sublevel3.org/C-functions-from-Python/"]http://csl.sublevel3.org/C-functions-from-Python/[/URL]. however part of the tutorial says that i should [QUOTE]Compiling dynamic libraries on Mac OS X is different from the usual gcc -shared you might be used to: gcc -dynamiclib -I/usr/include/python2.3/ -lpython2.3 -o myModule.dylib …

Member Avatar for iwanttolearnc
0
234
Member Avatar for fabzster

Hi I have a db that has the following Data for example: PolicyNumber, StoreId, ConsultantName,ClientName, ClientSurname I would like to have a report that will give me a list of policies done for that day seperated by store printed to PDF. So Basically Store - 12CEL 24Hr001 Bob Joe Soap …

Member Avatar for fabzster
0
1K
Member Avatar for hazyvisions

I can't get images to load.. I always get an error here's my code so far: #pong import os, sys import pygame from pygame.locals import * if not pygame.font: print "Warning, fonts disabled" #-------------------------------------------------------- def load_image(name, colorkey=None): fullname = os.path.join('data', name) try: image = pygame.image.load(fullname) except pygame.error, message: print 'Cannot …

Member Avatar for wanna_develop
0
170
Member Avatar for BobTheLob

Hey guys, it's been quite a while since i've been on here :P I'm fiddling around with the Go language. However, I'd much rather have a build script that'll compile the program for me than typing in the lines of code necessary every time: [CODE] 6g hello.go 6l hello.6 ./6.out …

Member Avatar for griswolf
0
98
Member Avatar for Nassarofficial

Hello, i have to split my code into parts so i split a dragimage demo from the wx demo package which is this code: [ICODE] import wx import images #---------------------------------------------------------------------- class DragShape: def __init__(self, bmp): self.bmp = bmp self.pos = (0,0) self.shown = True self.text = None self.fullscreen = False …

Member Avatar for loveerl
0
255
Member Avatar for foren

[CODE]import re, os, sys sys.stdout = open('c:\\Fummy_Tasks\\RECONSTR_ANALYSIS\\04052010\\test1_Strings\\log1.txt', 'a') memdump = open('c:\\Fummy_Tasks\\RECONSTR_ANALYSIS\\04052010\\test1_Strings\\test.txt','rb') count = 1 while 1: memdump_line = memdump.readline() if not memdump_line:break evidence = open('c:\\Fummy_Tasks\\RECONSTR_ANALYSIS\\04052010\\test1_Strings\\word1.txt','rb') for x in range (0,len(memdump_line)-3): while 1: evidence_line = evidence.readline() if not evidence_line:break if memdump_line[x]==evidence_line[0] and memdump_line[x+1]==evidence_line[1] and memdump_line[x+2]==evidence_line[2]: print memdump_line print count count = …

Member Avatar for olaji
0
95
Member Avatar for nooony

I've been learning python during one semester, and pygame in one week... Im making a simple kid guessing game where random images appear with one word. click on the correct image that the word describes and a little green right image appears and a red cross 'wrong' if it is …

Member Avatar for nooony
0
487
Member Avatar for stljim

Hello everyone, I'm _very_ new to xml, especially converting using an xslt. Here's my source XML generated by Eeye Retina. This data is being used by MS Access and I don't need all the data from the original XML. When I try to run the MS Access app I get …

Member Avatar for iceandrews
0
272
Member Avatar for mydreamgirl

Here is the code from client side: [code]public class TempMail { private String url = "http://localhost:9081/Servlet_Test/Servlet_Test"; public StringBuffer invokeServletForLogin(String unm, int key1, int key2, byte[] pwd, byte[] newPwd, String flag) throws IOException { HttpConnection c = null; InputStream is = null; OutputStream os = null; StringBuffer b = new StringBuffer(); …

Member Avatar for dumparun
0
161
Member Avatar for Gh0st93

I was running a game I wrote in python with pygame on my Mac 10.6 machine and I notice this Warning. "Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz." So does anyone …

Member Avatar for Gh0st93
0
173
Member Avatar for blur0224

So I'm building a web crawler for a pet project I've been working on. I'm using tutorial code for the crawler then building on it. I've done extensive troubleshooting and haven't had any luck. The problem: [LIST] [*]Roughly half the websites return content, but all of them return headers. [*]Some …

Member Avatar for blur0224
1
312
Member Avatar for tammy12w

i am trying to get java SE development kit for my mac book pro (which has snow leopard) someone told my to download this java on the apple website but it did not work it just said this: This update requires Mac OS X 10.4.11 or higher. Mac OS X …

Member Avatar for seanbp
0
105
Member Avatar for nutrion

All, First, thanks for reading! I'm very new to python, and I'm trying to do something that seemingly feels impossible. I'm using Python 3.x to write a script. This script, so far, only runs Windows "net use" command and gets back drive mapping info. The problem is that I need …

Member Avatar for ckoy
0
296
Member Avatar for MasterGberry

I am having an issue using this new operator function that I learned. The program thinks that I am calling the operator=() instead of the operator+() so it is hitting an infinite loop. I marked the areas where there are issues, and i commented some of the newer things that …

Member Avatar for MasterGberry
0
147
Member Avatar for WASDted

[ATTACH=RIGHT]18505[/ATTACH]The HP Elitebook 8440w should be called [I]work-mobile[/I] not workstation. The word ‘workstation’ implies you are stationary at a big, powerful computer. Not if HP has something to say about it. They've successfully taken the workstation concept and combined it with what a mobile user expects from a notebook. This …

1
293
Member Avatar for dogsbody

Hello Every One. A lot of my outgoing e- mail have vertical lines down the left hand side of the page. This seems to be me at fault as they are not on incoming mail unless they are replies. I am running Snow Leopard OS X 10.6.5. Hope some one …

0
82
Member Avatar for buba_kazouba

[URL="http://www.ihackintosh.com/2009/01/install-mac-leopard-os-x-retail-dvd-on-a-ordinary-pc-with-boot-132-hack/"]i tried to follow the steps here[/URL] but it doesn't work my problem is in the very first step burning the boot 132 generic iso actually i don't know if i did it right or not. i tried to copy the iso paste it in the cd then press "burn …

Member Avatar for mazzah
0
216
Member Avatar for jmcorpse

Hello, Can some one give me a hand on my search algorithm? I know it's not working right and am not sure how to make it work properly. It is on line #'s 69 to 73. It has to search for the name that is already stored in the array …

Member Avatar for Agni
0
340
Member Avatar for jsav

A program I'm trying to compile is simply not working right. I have everything defined the way it should with all the right #include statements there. However, anytime I try to compile with g++, it tells me the functions are undefined. Really, I should not be getting this error. I …

Member Avatar for jsav
0
283
Member Avatar for Gh0st93

So her is my problem I have a Macbook running OS 10.6.5 and i have python 2.x and 3.x installed on it and I can run python in the terminal but if I try to run the idle it just bounces for a few seconds then disappears. can anyone help.

Member Avatar for Gribouillis
0
872
Member Avatar for onebetter

Msn wont run, startup or anything and it sucks :( MalwareBytes’ Anti-Malware log Malwarebytes' Anti-Malware 1.24 Database version: 1016 Windows 5.1.2600 Service Pack 2 12:17:53 PM 8/2/2008 mbam-log-8-2-2008 (12-17-53).txt Scan type: Full Scan (C:\|D:\|) Objects scanned: 93499 Time elapsed: 31 minute(s), 21 second(s) Memory Processes Infected: 1 Memory Modules Infected: …

Member Avatar for jholland1964
0
341
Member Avatar for M3M69

i have this code that reads a file and strips out all the non essential stuff and then i want to make a dictionary for the actors and films they have been in .. i do that but it keeps on telling me that actors isnt defined ... how am …

Member Avatar for winmic
0
92
Member Avatar for Annettest

Hello all. I am having problems with compiling code on my Mac (OS X, 10.6.5). This started happening suddenly when I tried to (1) install f2c using g++, and then (2) compile code including f2c. Now I'm having problems compiling ALL code! I don't understand the error, and would really …

0
95
Member Avatar for Annettest

Hello everyone. I am having problems with compiling code on my Mac (OS X, 10.6.5). This started happening suddenly when I tried to (1) install f2c using g++, and then (2) compile code including f2c. Now I'm having problems compiling ALL code! I don't understand the error, and would really …

0
109
Member Avatar for geasssos

I need to do a program about: ask the user keep typing word until the word "stop" has been typed. my teacher said we need to add a class called Input. and he give the code to me. I have no idea how to use this code..any one can help? …

Member Avatar for geasssos
0
103
Member Avatar for Annettest

I am trying to compile a program using make on Mac OS X with gcc4.2. But I'm getting this error: fpu_control.h: No such file or directory I have never had a problem with an include file before and I'm rather confused! I have googled fpu_control.h, but I can't find anywhere …

Member Avatar for SgtMe
0
1K
Member Avatar for SuperTron

Hi there, I am having some problems with an assembly line on my core 2 duo system running mac os x 10.6.4. Basically, I am trying to run this C command using gcc: [CODE] __asm__("movl %0, %%esp" :"=m" (jumpsp)); [/CODE] Where jumpsp is a character pointer. Now, this code fragment …

0
38
Member Avatar for Sykee

[CODE] import subprocess import os def main(): quickfile = file_existance() quickdraw = subprocess.Popen(['java', '-jar', quickfile],\ stdin = subprocess.PIPE, \ stdout = subprocess.PIPE) event = WindowEvents(quickdraw) def file_existance(): filename = raw_input("Please enter the location of quickdraw: ") while (not os.path.isfile(filename)): print "That file does not exist, try again" filename = raw_input("Please …

Member Avatar for WildBamaBoy
0
249
Member Avatar for huzzlar

Hi, I have a G4 eMAC 1Ghz OS X v10.2.8. I would like to know how does one burn a .dmg file? I would like to burn the contents of the .dmg and not the .dmg itself so that it works properly like auto starting the program when the CD …

Member Avatar for MyPianoSucks
0
582
Member Avatar for victordq

Hi guys, I'm new to forum and to Python. I need some help with the python - MySQL interaction. I'm creating a program for my conclusion project in College and it's not working. I gotta present it on Wed, 11/24, and I'm really desperate for some help. It's suposed to …

Member Avatar for victordq
0
201
Member Avatar for 3FLryan

I did an accidental overwrite of the pre-instealled Python framework in the System directory of my Mac running OSX 10.5.9. From the official Python website: "The Apple-provided build of Python is installed in /System/Library/Frameworks/Python.framework and /usr/bin/python, respectively. You should never modify or delete these, as they are Apple-controlled and are …

Member Avatar for 3FLryan
0
224
Member Avatar for jawadsatti

plz mention me the errors i dont understand what i do.. [CODE]#include<fstream> #include<iostream> #include<string> #include<ctype.h> #define _TABSIZE 4 using namespace std; int tabsize = _TABSIZE; class token { public: token() : _what(code) {} public: enum type {code, comment, pp, keyword}; string _str; type _what; friend istream& operator>>(istream&, token&); friend ostream& …

Member Avatar for Nick Evan
0
145
Member Avatar for ShontiD

Using Visual Studio 2008...My assignment is to use the file SalesData.txt to load an array of structs, and use the array of structs to show to the screen a control-break report which breaks with each change in salesperson and shows each salesperson's total sales. I have not finished but I …

Member Avatar for Ancient Dragon
0
145
Member Avatar for Sykee

[CODE] def main(): #Check to see if quickdraw is located in the correct palce quickfile = file_existance() quickdraw = subprocess.Popen(['java', '-jar', quickfile], stdin = subprocess.PIPE) #Intro, explaining what will occur throughout program intro() # x_coordinate(1) y_coordinate(1) initial_ball(quickdraw) def file_existance(): filename = raw_input("Please enter the name of the file: ") while …

Member Avatar for TrustyTony
0
161
Member Avatar for ekkanh

Hi, how do I write a list to a file on mac os x? I have tried everything..... file = open('test.txt', 'w') mylist = ["rocks","box"] file.write("This doesnt work either") file.write(str(mylist))

Member Avatar for woooee
0
63
Member Avatar for daveevans1

My fiancees' computer is running Mac OS X 10.4.6 (I think)..her MSN e-mail is sending e-mails to her contact list with links to Canadian Drug websites. I've run clamxav numerous times and cant seem to get rid of it. Any help on where to find this pain in the rear …

Member Avatar for daveevans1
0
241
Member Avatar for Agnusmaximus

Hi guys. I'm trying to find a good open source project written in C (any kind: email, browser, chat program, communications program, music player) to download for the Mac os X preferably for Xcode. I would like to examine these open source programs' source and understand what they do (pick …

Member Avatar for Agnusmaximus
0
217
Member Avatar for Klustor

So what im trying to do is, if the user select his location then the listbox should be filled in with values. I always get [B]NameError: global name 'listcomputers' is not defined[/B] but i dont understand why. can anybody help me ? [CODE]import os import wx class MyForm(wx.Frame): def __init__(self): …

Member Avatar for Klustor
0
538
Member Avatar for Agnusmaximus

Hi guys, I'm new to this site and I have a question regarding internet bots in general. What I want to do is to use C (or php) to create a bot that will scan the internet (perhaps log into sites, retrieve data, get links, play internet games?) on the …

Member Avatar for Agnusmaximus
0
237
Member Avatar for losh177

Hi, I'm working on an overloding operator homework. I'm overloading the + = += << [] && operators to work with objects that contain int arrays that can be set to have index from x to y instead of 0 to x. I'm getting the LNK2010 & LNK1120 errors on …

Member Avatar for losh177
0
243
Member Avatar for sujimon

Hi, The website that I have been working on for sometime is about to be deployed now. However, after deployment the reports are not opening in one of the two machines that I have deployed. All other pages seem to be working fine except reports not opening with the error …

Member Avatar for sujimon
0
829
Member Avatar for Khodz

So I'm working on a database-type program for the Java course that i'm doing and i seem to have run into a bit of a roadblock. This class compiles and runs alright but where i have a problem with it is when i try to amend the text file using …

Member Avatar for Khodz
0
193
Member Avatar for losh177

Hi, I need some help figuring out what's wrong with my code. I'm getting quite a few of syntax errors for missing ';' which I have and missing type identifier. This errors are happening on my intarray.h file for string declaration (line 34). I get more errors that still need …

Member Avatar for losh177
0
183
Member Avatar for Archenemie

I basically want to map out folders and subfolders in a dictionary and i have this code ive written, but instead of adding each filename to the dictionary it overwrites it each time. Any suggestions? [CODE]for fname in os.listdir(os.getcwd()): print fname x += 1 maincat = {fname} print "x = …

Member Avatar for Archenemie
0
108
Member Avatar for thekevinguy

Hello, I'm pretty new to programming in general, and I'm trying to get started with python. Whenever I open up IDLE, everything seems to work fine. However, when I go to File>New Window, I just get a blank window and everything freezes up. If I restart my computer, I can …

Member Avatar for Gribouillis
0
155
Member Avatar for sammiepooh

Hello, I am fairly new to this site and am new at studying unix/linux OS. Recently I had an assignment involving finding a script that had run an administrative task such as checking file systems periodically. With it, I had to take each line and describe in my own terms …

0
152
Member Avatar for mindserve

Well this is interesting for those who have images ( external) in their reports. I have an app that shows the jpg without any issues on Vista ( home basic) 32 bit. Same app on Windows7 pro does not allow the jpg to appear in the report. I switched the …

0
53

The End.