module

Why is the fields pragma incompatible with multiple inheritance in Perl?

Multiple inheritance is great, and Perl handles it just fine as long as you have a clear understanding of your inheritance heirarchy and some of the potential pitfalls (such as those described in perldoc perltoot). Yet it does not discuss the prohibition of using the fields pragma with multiple inheritance. Indeed, I can find no docume...

PHP CMS Plug ins require others

Hi! I'm writing a CMS, but I've got a problem. I have a mysql table called modules. Modules are similar to Wordpress' plug-ins, or Drupal Modules. Some modules require functions of other modules. I'm now writing the part which includes the modules. Here's my code: //Load modules $res_modules = mysql_query("SELECT * FROM ".$db_prefix."m...

How do I install Spreadsheet::WriteExcel on Windows with ActiveState Perl?

I have installed Perl version 5.6.1. But it doesn't support Date::Calc. So I installed 5.10.0. Now I am writing a program that writes data in Excel using Perl. For this, I have to use Spreadsheet::WriteExcel but Spreadsheet::WriteExcel was not installed when I installed ActiveState Perl. So now do I have to install another version of pe...

PHP Classes problem, class not found

I solved this question my own. The filename was wrong lolz. Hello everyone! I'm building a CMS like Drupal and Joomla. I'm working on the module feature (plugins), and I got the following error: Fatal error: Class 'settings' not found in C:\wamp\www\SYSTEM\view.php on line 22 Here is my code: start.php <?php //First of all, start ...

Dynamic modules with DLLs on Windows

I'm writing an application in C that can be extended at runtime by means of modules / shared objects / DLLs. Those modules may use the API of the existing program but may also provide new functions for use in later loaded modules, so there is the possibility for modules to have dependencies on each other. My current approach under Linux...

Is there a Python module to access Advantage Database Server?

As the title suggest, I was wondering if there is a Python module that can access an Advantage Database Server (Sybase) files such as ADT and DBF. I have searched the web and couldn't find what I'm looking for this is why I wanted to ask it here. ...

How can I have Prism/Unity automatically resolve a View (UserControl)?

In a Composite Application (Prism), when my module loads, I get this error: {"The current build operation (build key Build Key[CustomersModul.ViewModels.CustomerAllViewModel, null]) failed: The parameter view could not be resolved when attempting to call constructor CustomersModul.ViewModels.CustomerAllViewModel(Customers...

How fine grained should modules in Prism be?

Hey girls and guys! I am currently working on a project of mine using Prism (the Composite Application Library/Guidance). The application will be a specialized MSPaint-like application for basketball (predefined objects for balls, players etc.). Now I am wondering how to go about organizing my application into Prism modules. Especiall...

Magento "My Account" link section

I'm currently developing a helpticket module for magento. After you login an go to My Account you see a menu on the left side. I already managed to get a link to my module in that menu. I now want to show this menu when you open my module. Does anybody has some information about this issue? ...

Can I replace a Linux kernel function with a module?

Hi, Im getting into kernel work for a bit of my summer research. We are looking to make modifications to the TCP, in specific RTT calculations. What I would like to do is replace the resolution of one of the functions in tcp_input.c to a function provided by a dynamically loaded kernel module. I think this would improve the pace at w...

Importing files in Python from __init__.py

Suppose I have the following structure: app/ __init__.py foo/ a.py b.py c.py __init__.py a.py, b.py and c.py share some common imports (logging, os, re, etc). Is it possible to import these three or four common modules from the __init__.py file so I don't have to import them in every one of the files? Edit: My goa...

Terminology: Difference between software interface, software component, software unit, software module

I see these terms used quite a lot between various authors, but I can't seem to fix upon definitive definitions. From my POV a software interface is a "type" specifying the way in which a software component may be used by other softare components. But what exactly a software component is I'm not entirely sure (and it seems no-one else...

Generic modules in F#

In C#, I can compile static class Foo<T> { /* static members that use T */ } The result is generic and is not instantiable. What is the equivalent F# code? module<'a> doesn't compile, and type Foo<'a> is instantiable. ...

How can I manage Perl module dependencies?

I'm currently in a project which develops using a framework developed by another department as the base. We are currently introducing quality standards (at last, yay!) in our department, but it's currently impossible to introduce those to the other department. As a consequence, we are working against a constant moving target without eith...

Axis loading modules - Creating tempfile and failing

We are using axis for webservice communication between different system in house. Every once in a while the axis calls fail with a: [org.apache.axis2.deployment.util.Utils] - Created temporary file : C:\WINDOWS\TEMP\_axis2\axis248890addressing-1.41.mar [org.apache.axis2.util.Loader] - java.lang.ClassNotFoundException: Class Not found : ...

What is the most compatible way to install python modules on a Mac?

I'm starting to learn python and loving it. I work on a Mac mainly as well as Linux. I'm finding that on Linux (Ubuntu 9.04 mostly) when I install a python module using apt-get it works fine. I can import it with no trouble. On the Mac, I'm used to using Macports to install all the Unixy stuff. However, I'm finding that most of the pyth...

When setting up Perl code to run as either a script or module, what is the reason for __PACKAGE__?

In this earlier Stackoverflow question and especially brian d foy's "How a Script Becomes a Module" I've read about how to set up code so that it can be run as either a script or a module, using this technique: package SomeModule; __PACKAGE__->run(@ARGV) unless caller(); sub run { # Do stuff here if you are running the file as ...

libapache2-svn, matching version with Subversion 1.6.1

Hello, I'm installing subversion on an Xubuntu desktop system with apache2 installed and running fine. However, I wanted to use Subversion 1.6 because of the sparse directory feature. I'm running Jaunty, but I was able to tell apt-get to download 1.6.1 by temporarily adding the software source "deb http://source archive.canonical.com/ubu...

Python: prefer several small modules or one larger module?

I'm working on a Python web application in which I have some small modules that serve very specific functions: session.py, logger.py, database.py, etc. And by "small" I really do mean small; each of these files currently includes around 3-5 lines of code, or maybe up to 10 at most. I might have a few imports and a class definition or two...

How can I force unload a Perl module?

Hi I am using a perl script written by another person who is no longer in the company. If I run the script as a stand alone, then the output are as expected. But when I call the script from another code repeatedly, the output is wrong except for the first time. I suspect some variables are not initialised properly. When it is called st...