module

What modules are distributed with Perl?

How do I know what modules are distributed with Perl? My first guess is that the core modules listed here are always included, though I cannot find this stated explicitly. However, I have used modules outside this set (e.g. LWP) without having to install them on Mac OS X and Linux. So to refine my question a little: What modules are...

Is a Ruby module equivalent to a Java Interface?

As I understand it, an interface is Java is intended to enforce a design by laying out methods for classes implementing the interface to fill in. Is this the idea with a Ruby module also? I see that just like with Interfaces in Java, you can't instantiate a module in Ruby. ...

How to exit a module before it has finished parsing?

I have a module that imports a module, but in some cases the module being imported may not exist. After the module is imported there is a class inherits from a class the imported module. If I was to catch the ImportError exception in the case the module doesn't exist, how can I stop Python from parsing the rest of the module? I'm open to...

DotNetNuke: Social Links for Blog Module

What is the best method for adding social links to each blog entry? I could use sample code of adding links to the ascx files or I am even able to pay a little for a module that will do it. I will have parent and child portals. edit: I've updated the module and checked the social bookmarking options. However it did not appear? Am I...

Linux - identify process owning a specific address in physical memory

Under Linux, how can I tell what specific process owns / is using a given address in physical memory? I understand that this may require writing a kernel module to access some kernel data structure and return the results to a user - I need to know how it can be done, regardless of how complicated it is. ...

upgrade module from php 4.x to 5.x?

We have (finally) upgraded to php 5.x from 4.x . The problem is that one of the third-party modules we use doesn't load. vis: PHP Warning: PHP Startup: Unable to load dynamic library '/somewhere/ext/myapp.so' - /somewhere/ext/myapp.so: undefined symbol: compiler_globals Unfortunately, we do not have the source for the app, so are una...

How to change a Python module name?

Is it only possible if I rename the file? Or is there a __module__ variable to the file to define what's its name? ...

Why can't I use my Jython class in an imported module?

I have a couple of Jython modules living in the same directory. One of them defines the following class: from java.lang import Runnable class MyTask(Runnable): def __init__(self, params): Runnable.__init__(self) self._params = params def run(self): # do stuff print "Done doing stuff" I can ins...

How can I access the current executing module or class name in Python?

I would like to be able to dynamically retrieve the current executing module or class name from within an imported module. Here is some code: foo.py: def f(): print __name__ bar.py: from foo import f def b(): f() This obviously does not work as __name__ is the name of the module that contains the function. What I would like...

What do you keep in your Perl toolbox?

I am a Perl developer and have gravitated towards a specific suite of modules that I use for almost everything. I primarily build GIS and database oriented web applications for reporting and data entry and the like. I'm curious what groups of modules other Perl devs have settled on using regularly. Mine: CGI DBI Spreadsheet::WriteE...

What is a module in .NET?

What exatcly is a Module? What is the difference between a module, a class and a function? How can I access a Module in c#.net? UPDATE: I am asking this because- without using code signing, i want to calculate a cheksum of the IL code of only some particular functions (at runtime). ...

Why will some modules load and some modules not load in FLEX 3?

I have an app with several modules. There is only one module loaded at anyone time. 2 out of the 3 modules load without problems but the third a new module will not fire the ModuleEvent.Ready. I have an event handler function that handles the ModuleEvent.PROGRESS and it just traces out the bytes loaded vs bytes total. It seems to load th...

How to use apache2.3 mod_auth_form module with IBM Http Server 6.1

I want to use Apache's mod_auth-form module with IBM HTTP Server 6.1 (which is based on apache) but this module will be released with apache http server 2.3. The source code for this module is available in development trunk. I haven't build/compiled any apache module. Can anyone let me know if it is possible to compile the mod_auth-form...

How do I choose a package name for a custom Perl module that does not collide with builtin or CPAN packages names?

I have read the perldoc on modules, but I don't see a recommendation on naming a package so it won't collide with builtin or CPAN module/package names. In the past, to develop a local Session.pm module, I have created a local directory using my company's name, such as: package Company::Session; ... and Session.pm would be found in di...

Putting code and data into the same section in a Linux kernel module

I'm writing a Linux kernel module in which I would like to have some code and associated data in the same section. I declare the data and the functions with the attribute tags, like: void * foo __attribute__ ((section ("SEC_A"))) = NULL; void bar(void) __attribute__ ((section("SEC_A"))); However when I do this, gcc complains with: e...

Hierarchy traversal and comparison modules for Python?

I deal with a lot of hierarchies in my day to day development. File systems, nested DAG nodes in Autodesk Maya, etc. I'm wondering, are there any good modules for Python specifically designed to traverse and compare hierarchies of objects? Of particular interest would be ways to do 'fuzzy' comparisons between two nearly identical hier...

Which Perl modules are good for writing a RESTful web API client?

Hi all: I am going to be writing an application that does a bit of computation on data it gets from a RESTful web service and outputs to a text file and/or HTML page. The web service is XML over HTTP. I have done a simple proof of concept with LWP::Simple and XML::Simple, but it's all a bit ad-hoc. Can anyone recommend some Perl modu...

How do upload images remotely to Drupal using the Image module?

Images can be uploaded through Drupal's frontend interface with the Image module. However, I'd like to be able to upload and create image nodes remotely by requesting a URL and passing the image as a parameter. I have the REST API module, which works fine, but I can't figure out what function I need to call in the backend to create the i...

Is there a CPAN module that digests a short string into a short number?

I need to create unique numerical ids for some short strings. some.domain.com -> 32423421 another.domain.com -> 23332423 yet.another.com -> 12131232 Is there a Perl CPAN module that will do something like this? I've tried using Digest::MD5 but the resulting numbers are too long: some.domain.com -> 29680057245717615035661393...

Does VBscript have modules? I need to handle CSV

I have a need to read a CSV file, and the only language I can use is VBscript. I'm currently just opening the file and splitting on commas, and it's working OK because there aren't any quoted commas in fields. But I'm aware this is an incredibly fragile solution. So, is there such a thing as a VBscript module I can use? Somewhere to ge...