1,336 Topics
![]() | |
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 … | |
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 … | |
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 **); … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
[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 = … | |
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 … | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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. | |
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: … | |
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 … | |
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 … | |
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 … | |
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? … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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& … | |
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 … | |
[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 … | |
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)) | |
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 … | |
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 … | |
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): … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … |
The End.