module

What is the best Drupal Survey module

We're after a replacement for a DotNetNuke installation with a DynamicForms module by DataSprings. Currently the problems are mainly performance related, but the fact that DynamicForms uses Postbacks on ASP.Net all the time renders it also highly susceptible to slow server response time. We're after a Drupal module which would allow u...

Cross-module Communication

Hi, Quite simply, it of course makes good sense to group parts of an application into appropriate modules. Commonly, keeping these modules decoupled is not an issue, however it often arrises that data from the a user management module is required by other components. It is substantially less than ideal by normal principles that these ...

How can I load a Perl module at runtime?

Good Day, I would like to use the HTML::Template module. However, it is not installed on the server I'm using to develop CGI scripts. Is it possible to load a module at runtime: I found the Template.pm file on my local Perl installation and uploaded the file to the server I'm using. #!/usr/bin/perl -w use CGI qw(:standard :html4); ...

How do you access an instance variable within a mixin method?

Hi, How do you access an instance variable within a mixin method? I can think of 2 ways, but both seem problematic. Have the mixin method access the instance variable directly as any class method would, e.g self.text. Problem with this is that it places restrictions on where the mixin method can be used, and forces the class doing the ...

Drupal voting module with an image per option

I've searched for a while and can't find this option. In Drupal 6.15 I'm trying to setup a Poll that will allow me to upload an image for each option to vote on, and have the image inline with the radio button. Also I'd like to have a text field for each option to describe the image. thanks ...

Why am I getting the error "cannot import name Scanner" when I try to use the mwclient module for Python?

I'm using Python 2.5.2 (because mwclient still only works for 2.x). I've copied the mwclient folder into the /usr/lib/python2.5/site-packages/mwclient folder, and when I run a program that imports mwclient I get this: Traceback (most recent call last): File "get_wiki.py", line 2, in <module> import mwclient File "/usr/lib/pyth...

Passing and receiving data from a module to my main application using interfaces.

Hi there! I read (twice) this very useful article: http://blogs.adobe.com/flexdoc/pdfs/modular.pdf And, I know that the best way to make a connection from my main app to my modules is through interfaces. So, my problem is, how can I implement an interface so my module can send and receive data from my main app?, cuz, I understand that...

Python - Spaces in Filenames

Possible Duplicate: How to escape os.system() calls in Python? Is there a Python method of making filenames safe (ie. putting \ infront of spaces and escaping ( , ), symbols) programatically in Python? ...

Wordpress or Drupal Users Report Module

Hello Guys I have to build a site that receives some custom report from my users and store them in a database. The users are able to view their reports and the department administrator comments on it. I was creating this myself using PHP although it was good but it's full of security holes and I get lost after a while when my code grows ...

ExpressionEngine 2: Sharing Libraries, or Loading Libraries from other Modules

I’ve got a number of custom modules that use a few of the same common libraries, in particular my database class. Is there a place I can put this commonly used class for use in modules via $this->EE->load->library('mydb'); or, is there a way to load that class in one module when it’s located in the libraries folder of another module? ...

Python equivalent for Ruby's ObjectSpace?

Hello guys, I've a name of a class stored in var, which I need to create an object from. However I do not know in which module it is defined (if I did, I would just call getattr(module,var), but I do know it's imported. Should I go over every module and test if the class is defined there ? How do I do it in python ? What if I have the ...

Drupal removing pointless span classes

I am working on a Drupal site here: http://selkirk.treethink.net I have a couple modules that are firing out an insane amount of span classes, which you can see in the source code there. Nice menus is one of these and is causing 60% of them. I need to prevent these modules from doing this but I can't seem to find the code that's doing...

How do I get .try() working in a Rails module?

With Rails 2.3.5 I've written a module in RAILS_ROOT/lib/foo.rb which I'm including in some models via "include Foo" and all is well except where I try to use some_object.try(:some_method) in the module code - it throws a NoMethodError rather than returning nil like it would from a Rails model/controller/etc. Do I need to require a Rail...

DotNetNuke Module does not show on page, steps to trouble shoot?

I have a DotNetNuke Module created in DNN 4.9.2. It runs fine on my dev machine but when I post it to the live server, I just get a blank screen, well my skin with no content. I have installed and then uninstalled, then reinstalled the module, same issue. I must be overlooking something. Can anyone outline some ideas on how to trouble...

With Zend Framework, what is the difference between Module and Package

Hi all, I devlopp web applications with Zend Framework. For now, I have a huge library, wich contains each an every things, used by a couple of web applications. I am thinking of reorganising it, using the concept of "Module". But I am not sure about the difference between Module and Package. What I understand is : a Module contain...

Implementation hexagonal map (Self-Organizing Map) on Python

I am looking for hexagonal self-organizing map on Python. ready module. If one exists. way to plot hexagonal cell algorithms to work with hexagonal cells as array or smth else About: A self-organizing map (SOM) or self-organizing feature map (SOFM) is a type of artificial neural network that is trained using unsupervised learning t...

How to access a toplevel entity in ruby, from inside a module which defines the same name.

Inside a module I have a class named Process. module M Process= Class.new Process::wait(0) end This raises NoMethodError. How do I access the toplevel Process from inside the module? Is this at all possible, without renaiming my class? ...

[Drupal] Similar By Terms module

I have a blog where you can add tags. I wanted to see the related blogposts to this tag in a view so i created one with the module Similar By Terms. However, i can't seem to link old blog posts to new posts. Only new posts to old posts. what does this mean? when i add a new blog i get all past blog post with the same tag posts. But whe...

what is philosophy of using import in Python?

Do I need always import all I need in the beginning of the script? Use import immediately before using things from this? What to do if import thing uses several times? What is good style of using import in Python? ...

Is "extend self" the same as "module_function"?

extend self and module_function are two ruby ways to make it so you can call a method on a module and also call it if you include that module. Are there any differences between the end results of those ways? ...