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.
...
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...
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...
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
...
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 ...
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...
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...
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...
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...
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 ...
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# 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...
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)’...
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)...
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...
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...
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
...
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));
...
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...
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...