module

Which Drupal module to use for two-way referencing nodes (to each other)

There are a lot of modules that enable two-way referencing nodes to each other. In the descriptions I read about those modules, they do not functionally seem to differ from each other. The modules I found are: Reverse Node Reference Corresponding Node References Node Relationships BackReference Node Referrer You can find links to the...

What is the proper method to stop loading a Flex Module before it has completely loaded?

I seem to recall that Loader.unload() could once be used to stop loading a swf before it had finished loading. I can no longer find documentation or the blog where I read this. Perhaps it was an unofficial feature. Anyhow, IModuleInfo, returned by ModuleManager.getModule() has an unload() method. If I want to halt loading a Flex Modul...

The _imaging C module is not installed

Hi there. I have a bit of a problem and don't know where to look for answers, hopefully someone has come across it. I have PIL(Python imaging library installed) when I run python import PILimport Image import _imaging I don't get errors. however running my app raises _imaging C module not installed ...

Issues in using 3rd party libraries while developing Apache Modules

Hello everyone! I am writing an Apache module for my internship. I am using C for this (I am not acquainted with Perl or Python that much). I need to use an HTML Parser to solve the problem for which I am writing this module. I am considering libxml2 for this purpose. I am confused how should I link the library in my module ? Should...

How do i build joomla 1.5 modules with JQuery?

I need to build a news scroller module for a website in Joomla (http://www.expedicionantioquia.org/idures/index.php) to replace the one made with flash on the right column. I was thinking on doing it with JQuery to allow the tabbed navigation, but i'm a little bit lost, partly because i haven't found a good tutorial about building joomla...

can apache handle non-http messages

I have a apache webserver, and we need to develop a module in it (using mod_python or mod_wsgi). It will ofcourse handle the requests sent as http GET/POST. However, we would like this module to ALSO handle messages sent by another remote applications which are NOT http based. That is, the body of the those tcp packets may just be a j...

Guice Injection Across Modules for Sharing

I have three Modules in Guice: ReflectionsModule, for providing Metadata (via Reflections) PersistenceModule, for Data Access Objects and Others WebModule, for Web Stuff Simply put, both PersistenceModule and WebModule will fetch a object which is made from Reflections Module. I can not find a very friendly way to do this in guice. ...

How to define the "MODULE DOCS" for display with pydoc?

The pydoc documentation of some Python modules (like math and sys) has a "MODULE DOCS" section that contains a useful link to some HTML documentation: Help on module math: NAME math FILE /sw/lib/python2.6/lib-dynload/math.so MODULE DOCS /sw/share/doc/python26/html/math.html How can such a section be included in your own...

How do you create a python package with a built in "test/main.py" main function?

Desired directory tree: Fibo |-- src | `-- Fibo.py `-- test `-- main.py What I want is to call python main.py after cd'ing into test and executing main.py will run all the unit tests for this package. Currently if I do: import Fibo def main(): Fibo.fib(100) if __name__ == "__main__": main() I get an error: "ImportE...

Undefined symbol error on loading a module in Apache that uses libxml2

Hello everyone! I am writing an Apache 2.2 module that uses the libxml2 API. I have compiled the module using following commands: apxs -I /usr/include/libxml2/ -c mod_xmltest.c sudo apxs -n xmltest_module -i mod_xmltest.la and used the following LoadFile directive in httpd.conf LoadFile /usr/lib/libxml2.so However on starting the...

getting contents (classes & modules) of required files in ruby

Is there any way, to track dynamically which classes or modules are included in required files. a short example: #my_module.rb module MyCustomModule def foo end end #custom.rb require 'my_module.rb' #is here any way to track which modules are in the required 'my_module.rb' #without parsing the file or having some naming conventio...

Finding the root directory of a multi module maven reactor project

I want to use the maven-dependency-plugin to copy EAR-files from all sub-modules of my multi-module project to a directory that is relative to the root directory of the entire project. That is, my layout looks similar to this, names changed: to-deploy/ my-project/ ear-module-a/ ear-module-b/ more-modules-1/ ear-modu...

Making a content generator Apache module that only works for text/html requests

The title of this question may be a bit misleading. I couldn't quite think of anything better. Here is my problem. I am developing an Apache module that needs to manipulate a bit of content in the requested HTML document (this document can be a file on the disk or may be dynamically generated by CGI or PHP) and so I am using libxml2 wit...

What's the equivalent of python's __file__ in ruby?

In python after imports, one can see the file, that has been loaded/where the module comes from. >>> import os >>> os.__file__ '/Users/tm/lib/python2.6/os.pyc' What would be the equivalent in ruby? >> require 'xmlrpc/client' => true >> ... ...

Passing parameters into a Drupal module

How can I pass in a parameter (eg: SKU12345) into a Drupal module. Here is what I have so far... URL: /my_module/sku/SKU12345 $items['my_module/sku/%mySKU'] = array( 'title' => 'Information for SKU %', // include SKU in title 'page callback' => 'my_module_with_parm', //'page arguments' => array('my_function...

Effect of logging on Apache's performence

Hello everyone. I am developing an Apache module. During development I found it convenient to use logging functions at various points in my code. For example after opening a file, I would log an error if the operation was not successful so that I may know exactly where the problem occurred in my code. Now, I am about to deliver my modu...

Can't import scriptext module in PyS60 2.0 on N95

When I try and import scriptext on PyS60 version 2.0 on my N95 phone, I get an import error saying that there is no module named scriptext. How can I work out what the problem is? ...

How does import keyword in python actually work?

Let's say I have 3 files: a.py from d import d class a: def type(self): return "a" def test(self): try: x = b() except: print "EXCEPT IN A" from b import b x = b() return x.type() b.py import sys class b: def __init__(self): if "a" ...

Maintaing the member's hours spent in the organization : Drupal Website

I am running a Drupal powered website of my college. Each student has a certain (fixed) number of hours to complete in any kind of sport. Now, I am maintaining various sports on my website using CCK and Views. Now, if a student plays some sport say A, he will go to the website and check out A's details. Also, after specified period of t...

Zend Framework: Loading modules from another directory

Hey there guys, this is my first question on Stack Overflow. I figured this website has helped me alot so I give it a shot as well. I'm currently working on multiple Zend Framework applications that need to inherit modules from a common module directory. The file structure used is the conventional method (omitting actual names and refer...