module

Magento - locate specific core files

Hiya, I am familiar with theming and using template hints in the Magento back office to locate .phtml files. What I am not really familiar with are the core files such as app/code/core/Mage/Catalog/Model What I need to do is override a core file like I would a core phtml file by copying it to 'my theme'. I basically want to amend som...

Adobe Flex, loading embedded fonts from modules

I am just programming a language learning app in Flex for various Asian languages. As some of these languages have very big font sizes (e.g. Chinese), I do not want to load all these fonts into the app. at once but was thinking to put them into different modules and then load only the specific module (depending on which language is chose...

What concerns should I have when installing additional Perl modules on a server?

I would like to ask my system administrator to install various Perl modules such as Moose and Data::Alias. The system is Red Hat Enterprise Linux 5, running Perl 5.8.8. The only problem that I can think of is that some already-installed modules might need to be upgraded and thus run the risk of breaking something. What else should I be c...

How to include unit tests in a ruby module ?

I'm trying to include the unit tests for a module in the same source file as the module itself, following the Perl modulino model. #! /usr/bin/env ruby require 'test/unit' module Modulino def modulino_function return 0 end end class ModulinoTest < Test::Unit::TestCase include Modulino def test_modulino_functio...

How to load compiled python modules from memory?

I need to read all modules (pre-compiled) from a zipfile (built by py2exe compressed) into memory and then load them all. I know this can be done by loading direct from the zipfile but I need to load them from memory. Any ideas? (I'm using python 2.5.2 on windows) TIA Steve ...

How to refer to the local module in Python?

Let's say we have a module m: var = None def get_var(): return var def set_var(v): var = v This will not work as expected, because set_var() will not store v in the module-wide var. It will create a local variable var instead. So I need a way of referring the module m from within set_var(), which itself is a member of modul...

exceptions across module boundaries in C++/CLI

Item 62 of Sutter and Alexandrescu's book "C++ Coding Standards" is "Don’t allow exceptions to propagate across module boundaries." Should we follow the same rule in C++/CLI? ...

zend modules models

My application setup with 2 modules admin and default I test the controller which works fine on modules but the models doesnt work I created a model application\modules\admin\models\User.php <?php class Admin_Model_User{ } inside the controller $user = new Admin_Model_User(); Fatal error: Class 'Admin_Model_User' not found...

Ruby Equivalent of C# 'using' Statement

I've been getting into Ruby over the past few months, but one thing that I haven't figured out yet is what the Ruby equivalent of C#'s (and other languages) using statement is. I have been using the require statement to declare my dependencies on Gems, but I am getting lazy and would prefer to not fully qualify my frequently used class ...

Drupal module nested menu items

In implementing hook_menu for a module, I am trying to put some items into a submenu. So far I have something like this $items['MyModule'] = array( //... 'page callback' => 'system_admin_menu_block_page', 'file' => 'system.admin.inc', 'file path' => drupal_get_path('module','system'), ); $items['MyModule/MenuItem1'] = array( ...

How can I prevent a Python module from importing itself?

For instance, I want to make a sql alchemy plugin for another project. And I want to name that module sqlalchemy.py. The problem with this is that it prevents me from importing sqlalchemy: #sqlalchemy.py import sqlalchemy This will make the module import itself. I've tried this, but it doesn't seem to work: import sys #Remove the ...

Why is Sun inventing another module system when everyone has standardised on OSGi?

Sun is putting a lot of effort behind modularising the JDK in the form of Jigsaw, and insinuating that it should be the module format of choice for other Java developers as well. The only notable player who is using this is NetBeans (and derivative applications). On the other hand, the industry has standardised around OSGi, with all of ...

What are valid Perl module return values?

The common practice in Perl is of course to end modules with 1; so that a call to require can then be checked for success. Is there any reason that the return value couldn't be another true value? In my testing, it does not see to cause any problems, but I'd like to know if anyone has run across any issues (such as some other modules o...

MS Access : Read form control value in a module's function

I have an Access database with a form in which a user clicks a button which in turn runs a macro which also runs a function in a module. Yes, convoluted and no, I am not allowed to change much since it's the customer's application. What I need is to read some combo-boxes and a radio button from the form in the function that's in the mod...

Adding text to RichTextBox from a module

In an attempt to clean up my code, I have tried to put all my functions and subroutines in a module. One of these subroutines populated a grid of RichTextBoxes with data from a MS Access database. It worked when the subroutine was in the form that it was being used on, but not in my Module. Is there any specific reason for this? I notice...

How do I install Perl modules on machines without an Internet connection?

I need to install my Perl-based software on networked machines which aren't connected to the internet. Therefore, I would like to download specific versions and/or latest versions of the Perl modules and I would also like to know if there is an install procedure required for these modules. Background: The machines aren't connected to th...

How to Determine The Module a Particular Exception Class is Defined In

Note: i edited my Q (in the title) so that it better reflects what i actually want to know. In the original title and in the text of my Q, i referred to the source of the thrown exception; what i meant, and what i should have referred to, as pointed out in one of the high-strung but otherwise helpful response below, is the module that t...

drupal twitter service link

i'm using service link module and tries to add twitter link as below if (variable_get('service_links_show_twitter', 0)) { $turl = drupal_http_request('http://tinyurl.com/api-create.php?url='. $url); $turl = isset($turl->data) ? $turl->data : urldecode($url) ; $links['service_links_twitter'] = theme('service_links_build_link', t('Twitte...

How do I install a module and its dependencies in ActivePerl on Windows?

I want to send emails using gmail's smtp servers and perl. I am trying to install Email::Send::Gmail, but it is not clear to me what are the steps to install it. It seems that it depends on other modules that I do not have installed. ...

How to start and use Apache Felix from code?

Hello, everyone! I can't find information about starting and using Apache Felix from code. I want do things which I am able (or unable ;) ) to do with Apache Felix's Shell. For example, how do I start a module? Please help. ...