Programming :: Setup The References To Other Projects In Python

Mar 11, 2010

I am developing a system in Python that includes an engine and multiple front ends. I am doing the engine and a curses front end together and will add additional FE's later. My problem is that I don't know how to get my front end to import the modules from the engine. I have them set up in Eclipse (using Pydev) as separate projects, but in the same workspace.

I've been a developer for years, but this is my first Python project, and I'm also fairly new to Eclipse. I guess my question is, How do I set up the references to other projects of my own making?

View 1 Replies


ADVERTISEMENT

CentOS 5 :: How To Setup Subversion Server To Run Multiple Projects

Jan 17, 2011

I want to know How to set up Subversion server to run Multiple Projects? I want something to manage it over the web or manage it over kloxo as I am currently using control panel kloxo.

View 3 Replies View Related

Programming :: Seg Fault But No Memory References?

Apr 25, 2011

I can't figure out why I'm getting seg fault in this program im making in c++. The program is of the game "Mastermind" board game which I'm sure many of you might have heard of.im fairly new to coding c++. I do not know why I'm getting seg fault error when trying to compile as I'm not using any pointers? or trying to access memory that was not allocated to me?

View 5 Replies View Related

Programming :: How To Build VS2005 Projects

Feb 3, 2011

I need to create a SW project both for Windows (written with MS Visual Studio 2005) and Linux. Currently I have a build script for windows and another for Linux. I would like to build the project for both platforms on a single PC. Is there a way of building VS2005 projects with Linux (not using Cmake)?

View 2 Replies View Related

Programming :: Looking For Educational Bash Projects?

Sep 14, 2010

Have you ever seen a hobbyist electonic Kit? They have projects that try to teach what each type of component does. Is there such a thing for Bash? It would tend to be aimed at tasks that are suitable for bash and not attempt to go over the line of what is better suited as a compiled program. Intuitively I think maybe something that timestamps files; when you download them, or anything else that would keep a home PC better organized is practical.

View 5 Replies View Related

Programming :: Compile (gcc) Using Code From Other Projects?

Jan 16, 2010

I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:

Code:

#include "fstab.h"
int main(int argc, char *argv[])
{
lock_mtab();

[code]....

But I don't know how to compile it. I was trying (naively) something like:

Code:

$ gcc mount.truecrypt.c fstab.c -o mount.truecrypt

But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]

View 5 Replies View Related

Programming :: Assembly - Structure References To Members - Get The Values 403004h And 4

Jul 9, 2011

[Code]....

if the address of stWndClass is 403000h, WHY it would be compile as mov eax,[esi+403004] and the first one would be mov eax,[esi+4]? I know how to get the values 403004h and 4,but do not know why.

View 5 Replies View Related

Ubuntu :: Programming Languages For Projects \ Which Ones The Best To Learn

Mar 25, 2010

have a previous background in internet programming languages such as XHTML, DHTML, CSS and javacsript. I would like to start programming and managing my linux system (like an expert) and starting on linux projects also. My question is which is the best programming language to learn: C, C++ (may b even C+), python, Perl etc... I'm learning BASH right now cause I know its a necessity for linux systems. but what would you guys suggest after that I learn.

View 2 Replies View Related

Programming :: Small Projects In C++ Using Advanced Features

Feb 4, 2010

Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects. It doesn't mean building a calculator or matrix multiplication programs, nor does it mean building games, nor does it mean dealing with databases,

What I actually want is to use the advanced features of C++ like:
i.Templates
ii. Nested friends
iii.Virtual functions
iv. Operator overloading (not merely '+', '-') but '[', '<<' also

View 4 Replies View Related

Programming :: Using Grep And Regular Expression To Find Class References In C++ File?

May 28, 2010

I'm trying to math all class references in a C++ file using grep with regular expression. I'm trying to know if a specific include is usuless or not, so I have to know if there is a refence in cpp. I wrote this RE that searches for a reference from class ABCZ, but unfortunately it isn't working as I espected:

grep -E '^[^(/*)(//)].*[^a-zA-Z]ABCZ[]*[*(<:;,{& ]'
^[^(/*)(//)] don't math comments in the begging of the line ( // or /* )
.* followed by any character

[code]....

Well, I can get patterns like this:

class Test: public ABCZ{
class Test: public ABCZ {
class Test : public ABCZ<T>

[code]....

View 4 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

Mar 22, 2009

I want to be able to do

sudo ./program.py

instead of always having to do

sudo python program.py

What do I need to change?

View 5 Replies View Related

Programming :: Python - Get Text File Data Into An Array On Python?

Nov 30, 2009

I've already used line split stuff to transform my data into something like this in a text file:

Code:

['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']

[code]....

How can I get this on a python program so I can manipulate it as an array?

View 3 Replies View Related

Programming :: Places On Internet To Find Projects For Learning To Program In C?

May 26, 2010

Essentially, I am reading the book "Absolute Beginner's Guide to C (Second Edition)", but the biggest problem is that it doesn't have problems nor projects to practice programming. Unfortunately, I do not have the greatest of an imagination to create my own ideas for problems to solve. Does anyone know of any sites that have good problems/projects to work on when I learn throughout the book?

View 6 Replies View Related

Programming :: Python 2.x - Represent The Same In Python 3.x

Mar 4, 2010

I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x

Code:

def blah(self, (string1, string2))

View 4 Replies View Related

Ubuntu :: How To Setup Vim For Python

Nov 17, 2010

i have been trying to set up vim for python development but i cant seem to find vim-python package has it been removed or has it been combined with some other package

View 1 Replies View Related

Slackware :: OpenShot - Sudo Python Setup Install

Mar 19, 2010

Does anybody use openshot in Slackware 13? What I made: I modified the slackbuild script for openshot of Slackbuilds.org for version 1.1.1 and then I made the package and installed it. Of course the dependencies too. But when I start Openshot, I get the following error:

OpenShot (version 1.1.1)
Error: OpenShot has not been installed in the Python path.
(Both the site-packages and /usr/share/openshot folders were checked)
Use the following command to install OpenShot:
$ sudo python setup.py install

View 1 Replies View Related

Programming :: Totem Python Plugin Programming: Any Signal For Video Mouse Click?

Feb 9, 2011

I want that I click with the mouse on the video, it paused.I notice that there is "BaconVideoWidget" which I guess is the video rendering widget but it don't have signal named "clicked":

Code:
vd = totem_object.get_video_widget()
vd.connect("clicked", vd.hide)

[code]....

View 3 Replies View Related

Ubuntu Installation :: When Trying To Run 'python Setup.py Build' Get An Error (Shown At The End)?

May 5, 2010

I would like to install pymedia on my ubuntu 9.10 karmic distribution, but I am having a bit of a hard time doing that.I managed to install all the libraries (lame, libogg, libvorbis etc.) but when trying to run 'python setup.py build' I get an error (Shown at the end).I found on the interwebs that it may have to do with the version of gcc c++ compiler running (currently gcc-4.4) and that it only works with gcc-3.x. Therefore I downloaded gcc-3.4 (from the old jaunty archive), and with this one still no joy.NebelhomP.S. I am not a complete newcomer to linux and python but I am not an expert so it may happen that I ask questions with a very obvious answer.

Code:
nebelhom@nebelhom-desktop:~/pymedia-1.3.7.3$ python setup.py build
Using UNIX configuration...

[code].....

View 1 Replies View Related

Programming :: Python 2.x Vs 3.x

Apr 21, 2010

I'm starting to learn python and I am wondering whether I should start with python 2.x or should I just start learning python 3.x?

View 2 Replies View Related

Programming :: Convert Map From Python 2.x To 3.x

Apr 6, 2010

I have an existing line of code from a P2 script that I cannot find a solution to converting to P3:

Code:
for i, x in map(None, list1, list2):
I have found the information about converting the simple case:
map(None,x) becomes list(x)

But my googling was unable to find a solution when more than one iterable exists.

View 2 Replies View Related

Programming :: How To Run Python Script From C

Jan 31, 2010

I have a python script I wrote a while ago and now I would like to call that script from inside C. I know how to do one command from C, but how would you execute an entire script from C, and passing arguments? Like:

Code:

int main(void)
{
python( myprogram(1 2 3) );
}

So I can pass arguments to my script.

View 3 Replies View Related

Programming :: Py_FindMethod In Python 3.1.1

Jan 19, 2010

what the equivalent function in Python 3.1.1 is for Python 2.6.4s:

Py_FindMethod

Be buggered if I can find anything in the doco to say what replaced it or what alternative code may need to be entered to replace it

View 1 Replies View Related

Programming :: Python With Web Development ?

Dec 17, 2010

I have decided to learn python as it seems to be powerful not just for web development (like php) but also a clean powerful language for other puposes.

Q: Can someone suggest a tutorial or book, on learning python (beginner to intermediate) which has as its focus for learning, web development?

In order of preference: 1. Comprehensive, 2. Online, 3. Free

View 2 Replies View Related

Programming :: Piping In Bash Using Python?

Dec 16, 2010

I have a bash script that I want to import in to Python, mainly just to see if I can or not. However in the script I do use some piping of commands into sed to trim it down to what I need. When I tried doing it with the os.system() call, it didn't work. The exact error is

sed: -e expression #1, char 16: unterminated `s' command

However the command that was run can be run in bash without an error. Is there a better/another way to do this? For reference the command is:

Code:

locate -n 1 wp-config.php | sed 's/wp-config.php/
/g' | sed '/wp-config.php/ d' | sed '/^$/ d'

View 3 Replies View Related

Programming :: Accessing Python Scripts Using Web?

Mar 17, 2011

I am using Centos. I have written some scipts in python that access my routers and fetch the configuration, etc. Now i was thinking of creating a web interface which i can access from my windows XP. I want it to have good look n feel :-),

View 7 Replies View Related

Programming :: C++ Or Python - Create 3D Animation ?

Jan 25, 2009

I want to create 3D animation and also make some big programs. Is python capable of that? or should I stick to C++?

View 3 Replies View Related

Programming :: Linking Options For Python?

Dec 11, 2010

I am trying to build an application that must link with python so as to load a python module during runtime.I have this makefile :

Code:
[alex@iskandhar src]$ cat Makefile
CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK

[code]....

View 4 Replies View Related

Programming :: List Sorting In Python?

May 10, 2011

I have a list of list and I'd like to sort the list according to the last value of each row.

Let's say we have the list

L1 = [ [1,2] , [4,6] , [78,-3] ]

I wish to get

L2 = [ [78,-3] , [1,2] , [4,6] ]

Is there a simple way to do that in python?

View 4 Replies View Related

Programming :: Parsing S-Expressions In Python?

Feb 1, 2011

I've been loosely following this:http://norvig.com/lispy.htmlAnd I have a problem: the parsing function throws an array out of bounds exception. I thought that maybe I'm doing it wrong, so I copy and pasted the code from the page, and still the same error

View 2 Replies View Related

Programming :: Initializing Pmw Megawidgets For Python 2.6

Oct 12, 2010

I am having a problem initializing the Pmw megawidgets for Python 2.6.I have Pmw_1_3 loaded in the site-packages directory.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved