module

Searching for tutorials on writing PHP modules?

Possible Duplicate: Getting Started with PHP Extension-Development Has anyone got some resources on how to write PHP (> 5.2.x) modules in C/C++? Besides that would it be advisable to code such modules for efficiency gains on maybe sorting large heaps of search results and the like? Thanks in advance. ...

Drupal API: how to load a module dependency from another module

I am attempting to develop a Drupal module that defines the class MyFeedsSyndicationParser. This class extends the class FeedsSyndicationParser from the Feeds module. In my module's .info file the dependency on the Feeds module is identified. When I enable the module the php_error.log contains: PHP Fatal error: Class 'FeedsSyndication...

Find unused code in a Maven modularised project

Hi, I have to clean up an old project and general knowledge here is that the project contains lots of unused code that we could remove. That would save some headaches and make maintenance easier. I found the Eclipse Core Tools plugin which looks like a great tool, but in our case we have a Maven2 project that is split in 3 modules. I...

Can I use strtok() in a Linux Kernel Module?

I need to do a parse on the data written to my module, and the use of the strtok() function of string.h would be useful. However I've tried #include <string.h> and #include <linux/string.h> with no success. Is this possible? Or will I have to write my own strtok function? Thanks ...

How to organize GWT project with multiple modules and shared server?

I have three GWT modules that will have some code in common - typically domain classes - and also share the same server instance. My first thought was to organize it like this: app1/client/ app2/client/ app3/client/ server/ shared/ The modules would then have in their descriptors: <source path = "client"/> <source ...

How can I import a C++ python extension into a module in another directory?

Here is the directory structure: app/ __init__.py sub1/ __init__.py mod1.py sub2/ __init__.py sub2.so test_sub2.py The folder app is on my PYTHONPATH All of the _init_.py files are empty. The shared library sub2.so is a C++ extension module that I compiled using cmake and boost-pyth...

module: command not found

I'm attempting to load several modules for building a library on Linux but am told that the command 'module' doesn't exist. I've Googled around and discovered that the solution was to source a directory called "module" which I am unable to locate despite extensive searching. I'm not quite sure what I should and any help would be appreci...

How can I install django-stdimage in my django project, rather than as a module (jailed shell, no path access)

The question about covers it. I'm using dreamhost, and need to utilize the stdimagefield rather than image field so I can do this: image3 = StdImageField(upload_to='path/to/img', size=(640, 480)) If there is a better way to do this, please let me know. Edit: Trying it like this, everything is working with the "python manage.py shell...

How to create a modul system for a cms?

Im building a CMS (ASP.NET C#) and I am currently looking at how to implement a module system. How is it done with most modularized systems on the web? The most important thing is that I dont want the modules messing with any of the core files. Example of a case: I have an ajax search method that is using a webservice method named Sear...

Package module not found in Python 2.5, but found in 2.6

I have package structure that looks like this: ae util util contains a method mkdir(dir) that, given a path, creates a directory. If the directory exists, no error is thrown; the method fails silently. The directory ae and its parent directory are both on my PYTHONPATH. When I try to use this method in Python 2.6, everything is ...

Jooml - "Hello World - Hello" module

I successfully created a the simple joomla module from joomla.org tutorial http://docs.joomla.org/How_to_create_a_module Now I would like to add it as a restricted menu item in the "User Menu" How would I do this? What Menu Item Type should I use? thank you! ...

F# Checked Arithmetics Scope

F# allows to use checked arithmetics by opening Checked module, which redefines standard operators to be checked operators, for example: open Checked let x = 1 + System.Int32.MaxValue // overflow will result arithmetic overflow exception. But what if I want to use checked arithmetics in some small scope, like C# allows with keyword c...

Installshield 12: Changing the destination of a merge module at run time

Hi, I’m trying to change the destination of a merge module at run time... Let me explain: I have a merge module, which its destination is set to the [SystemFolder] folder. And I have a lot of MSI projects point to this one merge module, all pointing the merge module (Component) destination to ‘(Use merge module's default destination)’...

How to understand which modules must be configured in httpd.conf (Apache)

Hi all, I have latest Apache installed on CentOS 5.4. After I configured Virtual hosts and left the server for a while I saw a lot of memory consumption. In the ps aux I saw that apache is taking a lot of memory. In order to reduce the memory usage I'd like to disable unneeded modules in apache configuration. Web site content: 1) HTML 2)...

List used PHP modules in code base

I need to list all PHP extensions that's required by a given code base. What would be the best way to tackle this problem? My initial thought is to write a script that goes through all files and find all functions and compare them to a given extension/function database. Any other suggestions? Update: I already did some Bash script w...

Why does my Perl program complain "Can't locate URI.pm in @INC"?

I'm new to Perl. I get the following error when I run a script: Can't locate URI.pm in @INC (@INC contains: /usr/local/packages/perl_remote/5.6.1/lib/5.6.1/i86pc-solaris /usr/local/packages/perl_remote/5.6.1/lib/5.6.1 /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1/i86pc-solaris /usr/local/packages/perl_remote/5.6.1/lib/site_p...

Python reference external module in Netbeans

I'm working with a Netbeans for Python development, I have a number of projects (which have a number of modules). What I basically want to know is, how do I import one of these modules into a new project? I have tried editing the python path in netbeans, but to no avail. Here's my setup: Netbeans projects ================= ProjectA ...

C Strange behaviour on 64-bit server

Hi, I have this strange behaviour in Apache post_config handler : int setup_module(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,server_rec *s) { //1 my_config_t *config = ap_get_module_config(s->module_config, &my_module); //2 log_me(config->logfp, apr_psprintf(ptemp, "My module version %s\n", MY_VERSION)); ...

Python trouble importing modules

I am building a web app with this directory structure: app/ __init__.py config/ __init__.py db_config.py models/ __init__.py model.py datasources/ __init__.py database.py ... ... Every __init__.py file has __all__ = ['', '', ...] in it, listing the...

Where is my module located?

I made a kernel module and used the code below to try to make a /dev/mytimer entry. #define DEVICE_NAME "mytimer" #define MAJOR_NUM 61 static struct class *fc; fc = class_create(THIS_MODULE, DEVICE_NAME); device_create(fc, NULL, MAJOR_NUM, "%s", DEVICE_NAME); I don't see my module in /dev as /dev/mytimer... But when I lsmod, I see i...