0
голосов
1ответов
406 просмотров

Install custom modules in a python virtual enviroment

I am doing some pylons work in a virtual python enviorment, I want to use MySQL with SQLalchemy but I can't install the MySQLdb module on my virtual enviorment, I can't use easyinstall because I am using a version that was compiled for python 2.6 in a .exe format, I tried running the install fro...

49
голосов
8ответов
69224 просмотров

How can I find out where a Perl module is installed?

How do get the path of a installed Perl module by name, e.g. Time::HiRes? I want this just because I have to run my perl script on different nodes of a SGE Grid Engine system. Sometimes, even run as other username. I can use CPAN.pm to install packages for myself, but it is not so easy to insta...

4
голосов
3ответов
3808 просмотров

Flex load modules READY event not fired, why?

Hello I have this very simple mxml example. Using flex builder with flex sdk 3.4.0 if the module is remote like http://edofiles.s3.amazonaws.com/calculator.swf The READY event is never fired, i don't understand why. Do you get the same behavior ? Original code is from http://lowpitch.com/blo...

6
голосов
3ответов
1524 просмотров

IPython tab completes only some modules

I'm using the EPD version of python and IPython. After installing some modules using easy_install I notice that, although they can be imported, they cannot be tab completed. They exist on the path but, while included modules (pylab, readline, math) can be completed, these new modules cannot. Any...

245
голосов
9ответов
233074 просмотров

Defining private module functions in python

According to http://www.faqs.org/docs/diveintopython/fileinfo_private.html: Like most languages, Python has the concept of private elements: Private functions, which can't be called from outside their module However, if I define two files: #a.py __num=1 and: #b.py import a print a.__num wh...

1
голосов
1ответов
174 просмотров

How to register a module to ruby?

How do I register a module to ruby with IronRuby and C#?

5
голосов
3ответов
10887 просмотров

Maven include JavaDoc Jar in Assembly

I have a project with multiple modules, including on that is responsible for building the final assembly from the artifacts of the other modules. As part of the assembly, I want to include the JavaDocs for two of the other modules. I have updated the pom files for those modules to generate the ...

1
голосов
1ответов
164 просмотров

Create plug and play modules in Rails

I want to conditionally switch on/off certain functionality in my Rails app, for example in my current app I have the following functionality "product show case", "product search", "ecommerce", "user management" etc If I implement the same app for someone else they probably might not want the ec...

1
голосов
1ответов
245 просмотров

Flex Module Development Workflow

I have just started looking into using Modules in Flex and would like to know how you all go about developing them. I understand how to use them (load, unload, application domains, shared classes, etc.), but I'm wondering what a good workflow is in creating them and using them in multiple applic...

6
голосов
4ответов
1939 просмотров

What Perl module(s) do I use to obtain an absolute path (including filename) from a relative one on Windows?

I can only imagine I'm not searching correctly; this seems like an obvious question to be asked here. My apologies if this is a duplicate. I'm writing a Perl program that will take a filename as a command-line argument. I need to convert the filename (or the filename with a relative path attache...

3
голосов
2ответов
4614 просмотров

Python module search path problem

I am trying to work on a dev environment but am find problems in that python seems to be using modules from the site-packages directory. I want it to be using the modules from my dev directory. sys.path returns a bunch of dirs, like this ['', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr...

6
голосов
5ответов
14302 просмотров

Zend Framework modular app, can't load models for each module, autoloading models?

Is there a way to have models for each module? I have 3 modules, one is a "contacts" module. I created a model for it in modules/contacts/models/Codes.php Codes Controller class Contacts_CodesController extends Zend_Controller_Action { public function init() { /* Initialize acti...

14
голосов
2ответов
4668 просмотров

EventAggregator vs CompositeCommand

I worked my way through the Prism guidance and think I got a grasp of most of their communication vehicles. Commanding is very straightforward, so it is clear that the DelegateCommand will be used just to connect the View with its Model. It is somewhat less clear, when it comes to cross Module...

0
голосов
2ответов
2382 просмотров

Installing python module

I'm new to python and is trying to install the pyimage module. http://code.google.com/p/pyimage/ I'm on Windows, and have downloaded and installed 2.6 and 3.1. I downloaded pyimage, and used cmd and cd to get to its dir. I then got this: C:\Users\Jourkey\Desktop\pyimage-0.8.13\pyimage-0.8.13&...

2
голосов
4ответов
174 просмотров

How to handle theming of modules in a web application?

I have made a CMS that allows users to choose which modules to show where on the website. I also have templates/themes that define how the site look. The problem I have goes like this: Suppose I have placed a voting booth module on the site. When I press "View results", it will display the resul...

4
голосов
3ответов
6587 просмотров

Parse a cron entry in Python

All. I am trying to find a python module that I can use to parse a cron entry and get the next time it will run. With perl I use the Schedule::Cron::Events module but I would like to convert to python. Thanks in advance.

7
голосов
2ответов
1471 просмотров

Extending F# List Module

I've been adding a few handy methods to some of the F# modules such as List. type Microsoft.FSharp.Collections.FSharpList<'a> with //' static member iterWhile (f:'a -> bool) (ls:'a list) = let rec iterLoop f ls = match ls with | head :: tai...

1
голосов
2ответов
576 просмотров

How can I force Perl to run the module from the test directory only?

I have perl module file and test script pl which I use to run some function, and after browsing through the use lib and this previous question here... I still don't know how to do this. Basically I have a production directory which contains the module file, and I have a test directory file which...

3
голосов
1ответов
5370 просмотров

Getting Maven exec:java plugin to use project module dependencies

I'm using Maven's exec:java to run jline for one of my projects (current POM attached below). The project used to be a single component, so all dependencies were in the same POM as the exec:java plugin definition. This worked great and all the dependencies were picked up and put on the classpat...

3
голосов
5ответов
422 просмотров

How do I install Perl script dependencies?

I have several scripts that I supply to users as tools for their engineering projects. These scripts contain a lot of duplicated code. I want to extract this code and maintain it in a set of modules. However, in order for this to work, the users would have to install these modules. I don't want t...

1
голосов
2ответов
61 просмотров

how modules can linked

In my dotnetnuke application i added so many modules, i want to display the content in the contentpane when i clicked on the items that is in in the left / right pane. Can you give me the code for navigating the modules..

0
голосов
2ответов
1338 просмотров

Symfony: adding new action/view error. (Newb question)

I'm getting a 404 when trying to add a new module page. I'm apparently missing something fundamental here, being a newbie to Symfony. Can anyone point out what it is I'm missing? Many thanks. modules/admin/actions/actions.class.php /* following executeIndex() */ public function executeSched...

2
голосов
2ответов
1508 просмотров

Extending ActiveRecord::Base in Rails does not work in the test environment

When I add the following block of code in environments.rb, ActiveRecord::Base extends the module in the development environment but not in the test environment. require "active_record_patch" ActiveRecord::Base.send(:extend, ModelExtensions) The library file which contains the module is as foll...

3
голосов
2ответов
1621 просмотров

Isolating Ruby methods from overriding in subclasses? (like Java's private methods)

In Ruby, I'd like to acheive something like this Java sample: class A { private void f() { System.out.println("Hello world"); } public void g() { f(); } } class B extends A { public void f() { throw new RuntimeException("bad guy");} } public class Try { public static vo...

29
голосов
4ответов
16559 просмотров

Difference between components, modules, extensions and plugins in Joomla

What is the difference between Joomla components, modules, extensions and plugins?

0
голосов
2ответов
1055 просмотров

Converting a Flex custom component to a module

How to take an existing custom component in Flex and convert it into a module? EDIT: What should be done in the mxml where this custom component is used? Should it be replaced with a to load the module? If yes, how to deal with code that uses instances of the components?

5
голосов
4ответов
6516 просмотров

OCaml: Tree functions

Are there any modules or functions for dealing with trees? I have a type that looks like this: type t = Leaf of string (* todo: replace with 'a *) | Node of string * t list and I'm struggling to do insertion, removal of subtrees, etc. I've used the googles but can't find any...

0
голосов
3ответов
480 просмотров

pg.so problem with Ruby in Windows

I have installed the pg module with help of gem install pg Which returned Successfully installed pg-0.8.0-x86-mswin32-60 When a .rb-file looks like this require 'rubygems' require 'pg' I get an LoadError (exception 126) which tells me that it can't find the module C:/Ruby/lib/ruby/gems/1...

7
голосов
1ответов
724 просмотров

Solutions to organize Guice binding configurations

It's apparently a bad idea to put all bindings in one module, so what do you think is the more elegant way? I think Bob's idea could be good start for this discussion: It's hard to come up with one-size-fits-all rules for this sort of thing, but one Module per package is certainly a good pla...

3
голосов
2ответов
3764 просмотров

mvn exec:java on aggregate pom

Does anyone know whether it is possible to run mvn exec:java on mvn aggregate POM? Currently I get: 2009-09-24 02:24:14.404 :bash: [email protected] : ~/adfadf/programming/verknowsys/codadris/ide_projects $ mvn exec:java -e -Dexec.mainClass=codadris.coviob2.App_Coviob2 + Error stacktra...