module

Export PYTHONPATH - syntax error.

I need to connect MySQLdb - module. I download MySQLdb - module and install it. But when i write (in python interactive shell): import MySQLdb - i get no module named MySQLdb. Then i decided to include MySQLdb directory in PYTHONPATH variable. I write (in python interactive shell): export PYTHONPATH=${PYTHONPATH}:/where/module/live...

Extract and modify module content using module chrome in Joomla

I need to extract menu items using module chrome from mainmenu module output: <ul class="menu"> <li id="current" class="parent active item1"><a href=""><span>Menu item1</span></a> <ul> <li class="item1"><a href=""><span>Menu Item</span></a></li> <li class="item2"><a href=""><span>Menu Item</span></a></li> <li class="item3"><a href=""><s...

Whether or not to modularize with Rails plugins?

I'm working on application which can be logically grouped into a core engine, and business domain modules. The business domain modules essentially encapsulate code which is specific to our customers' businesses. We initially separated this out using the root rails structure for our core engine, and having all customer code in separate ...

How can I use common code in python?

I'm currently maintaining two of my own applications. They both share some common aspects, and as a result, share some code. So far, I've just copied the modules from one project to the other, but now it's becoming a maintenance issue. I'd rather have the common code in one place, outside of both of the projects, which they can both impo...

Deployment/Distribution/Installation of Apache modules

Hello everyone.! I am a student and on an internship currently. I was developing an Apache module, that will be available for my company's clients to download and use. I have completed the module now. Now I want to know what are the best practices regarding the deployment of module. Should I provide binaries of the module or source fi...

Stop an operation without stopping the module in python

Well, I have made a module that allows you to copy a file to a directory easier. Now, I also have some "try's" and "except's" in there to make sure it doesn't fail in the big messy way and doesn't close the terminal, but I also want it to display different error messages when a wrong string or variable is put in, and end the module, but ...

Ruby Module Include Question

Hi, I have a CommonFunctions Module inside the lib/ folder. I have a Question Model, which includes the CommonFunctions module. Now I am trying to access the favorite function of the CommonFunctions like Question.favorite. But I am getting NoMethodError. I have included the code. Can anyone please tell me where I am doing the mistake E...

Installing boost log

Hello, I've got this library for logging in boost. I have a question about installing. How to install it? Here is the latest version. There are 3 folder: boost, doc, libs. How can I install this library without recompiling all boost? ...

Error handling when importing modules

Hello people, This probably has an obvious answer, but I'm a beginner. I've got a "module" (really just a file with a bunch of functions I often use) at the beginning of which I import a number of other modules. Because I work on many systems, however, not all modules may be able to load on any particular machine. To make things slig...

PRISM and WPF how to add a module on demand

Hi, I have a set of tabs in my shell window and one main region whicxh is a contentcontrol. I also have four modules that I want to load on demand when a certain tab is selected. So when tab1 is selected I want to load moduleA, when tab2 is selected I want to load ModuleB, etc. The first module loads on when the application starts. The p...

Difference between Module & Component in Joomla

I am a newbie in Joomla. Can somebody please tell me what is the basic difference between the module & component in Joomla? If possible, please tell with some examples, so that it is easily understood. ...

Module to highlight the source code shown in a node

What are the possible module candidates for highlighting the source code shown in a node? Is there any module that does the task using Javascript? ...

How can I check if a file exists on a remote server using Perl?

How can I check if a file exists on a remote server using Perl? Can I do this while using the Perl module Net::FTP? CHECK TO SEE IF FILE EXISTS if (-e $file_check) { print "File Exists!\n"; } else { print "File Doesn't Exist!\n"; } ...

How to load a model from another module with CodeIgniter

Im using the HMVC extension with CodeIgniter and i got 2 modules modules/frontpage -- controllers frontpage.php ( <- this controller needs to load the person model) -- models -- views modules/person -- controllers -- models person_model.php ( defines Person_Model extends Model ) -- views using $this->load->model('p...

Passing variables/functions between imported modules

I'm going to throw out some pseudocode. Then explain what I want, because I am not sure how to otherwise. File_A class Panel_A(wx.Panel) def __init__(self): button_a = wx.Button(parent=self) def onButton(self, event): pass to list view File_B class Panel_B(wx.panel): def __init__(self): listview_a =...

CVS export inside a module

I have a checked out a module. It's in /home/user/repositories/repository. I want to export a folder inside this module. Suppose it's folder3. /home/user/repositories/repository/folder1/folder2/folder3/ I get into /home/user/repositories/repository/folder1/folder2/ and try to run cvs export -r MYTAG -d MY_DIR folder3 But it d...

cvs checkout -c doesn't show all modules

I have a module in my repository. Let's call it module1. If I just checkout it, it's alright, it shows up in my machine and I can work on it. There's a parameter in checkout command named -c - according to help, '"cat" the module database.'. But when I run this command cvs co -c The module isn't showing up. Why? Is there a cache fi...

[MS Access 2003 Look up field and modules] Getting the value not the ID

I have a table tblInvestigators which contains a lookup field to display a list of names A grant may have more than 1 investigator. A requirement of my project is to list all investigators in a single cell next to the grant details, so i'd have: Grant A | Name A, Name B, Name C etc. I have a VBA module that concatenates the investiga...

[PHP.ini] Can't load mcrypt.dll dynamic library.

Hey guys, I'm trying to load this module: php_mcrypt.dll' Everything in the php.ini file is correct, see for yourself: extension_dir = "C:/PHP/5.2.13/ext" extension=php_mcrypt.dll The file exists in this path. And other modules are in there as well and are loaded successfully. It only has a problem with this particular module. I hav...

Can I selectively open a module so I can refer to some of its values without qualification?

In Haskell, I use the Data.Map module, and its principal type of the same name, Data.Map.Map, like this: import Data.Map (Map) import qualified Data.Map as M In F#, I want to do something similar with my Item module, which contains a type of the same name: module Item type Item = { Description: string } let empty = { Description = "...