module

Display new module in site

hey there i am new to drupal , i created a new module base on this example http://api.drupal.org/api/drupal/developer--examples--page_example--page_example.module/6/source i just changed the module name and method to my module new name 'jtpc' and change the jtpc_perm to this function jtpc_perm() { return array( 'access jtpc ...

VB cross-thread Shared (static) member access

Hello all. I'm a newbie to threading, trying to learn it as I go. Please don't make any assumptions and try to explain threading concepts and rules that might seem obvious. I have a Module (Static class) as follows: Module Main Private ReadOnly _dbConn As SqlClient.SqlConnection Public ReadOnly Property DBConn() As SqlClient.SqlConne...

Python DBM Module for Windows?

Hello, I would like to use the dbm module on my Windows machine, but it is currently only supported on Unix. http://docs.python.org/library/dbm.html Does anyone know of a similar module with similar syntax or a workaround to get dmb functional on windows? Being able to access a database written to the hard drive much like how I code to ...

IIS module and WCF

I have written an IIS module (base IHttpModule) that does some custom (OpenAuth) authentication before preceding to my WCF REST service. I have extended GenericPrincipal to track my user, with an IIdentity, and set the context.User field to my new principal: application.context.User = principal However, when I receive the context in WC...

Python submodule internal references -- are they just crazy?

Apologies in advange for the newbie question. I can't get my head around this, and the docs don't help! Consider the following directory structure: spam.py foo / __init__.py ham.py eggs.py with the following code: # __init__.py # blank # ham.py print( "got ham!" ) # eggs.py print( "got eggs, importing ham!"...

ruby modules: using data fromt a class definition in a module

i've got a module that wants to use data provided by the class that included it - but at the class level, not the instance level. the goal is to have class 'metadata' provided to a module that the class includes, so that the module can use the metadata during the included call. this works: module Bar def value @value end de...

is it possible for a ruby module to get the directory of the file that defined a class that included the module?

i've got a module and a class that includes the module. these are not defined in the same file, or in the same folder. i want the module to get the directory that the class is defined in. # ./modules/foo.rb module Foo def self.included(obj) obj_dirname = # ??? what goes here? puts "the class that included Foo was defined in th...

Perl modules: MySQL vs DBI

A lot of our automated processes use perl and need to access our MySQL DBs. I hate to admit it, but up until recently we haven't really done much benchmarking with the majority of our processes. One of our devs setup a test to compare the performance of "use MySQL" vs "use DBI" with the following pseudocode: for ($i = 1; $i <= 1000; $...

Implement CPU extensions in a kernel module

Hi all, I'm looking for information relating to implementing certain CPU extensions in a kernel module. I've found something related: http://www.mirrors.docunext.com/lxr/http/source/arch/mips/kernel/unaligned.c in fact, it's the only source code that I can find that is even close. Basically, I have a binary only shared object built wit...

Share instance data across objects/classes in a custom web app

I'm working on a rack web app from the ground up in Ruby and I want to be able to share the instances of several objects across all classes in the app. For example, the logger, the request information, a currently authenticated user, get/post parameters, etc. To any of you familiar with PHP, I've accomplished this in the past with stati...

Miva Merchant (Miva Script) When Making A Payment Module, How Do I Retrieve The Following Variables

Order Total Billing Address Billing Zip Billing Email I am a beginning MM developer and I am finding that proper documentation for developers with Miva Merchant is very inadequate. Any help would be much appreciated! ...

Programatically creating menu hiearchy in Joomla

Hi, Let's say that I have a vast quantity of restaurant reviews in a database -- not Joomla articles, just database tables. I want to display these restaurant reviews as part of a Joomla 1.5 web site. I can write a component to display each review. That part is fine. But rather than listing the reviews as a list on a page, I want to us...

How could I use a per module bootstrap ?

Hi, I'm using Zend Framework 1.10.7 and I'm looking for a way to use a per module bootstrap to set up specific module configuration. I thought it was as simple as extending the Zend_Appplication_Bootstrap_Bootstrap and put it at the root of the module directory, but it doesn't seem. Thank you. ...

Gwt Multiple Modules

How can I define multiple modules in gwt? If I create the second modules I get compiler error, but the compiler find automatic the two modules. I use gwt with maven... ...

JSF modular web application

Hello, talking about a modular web application like a Content Management System, where you can upload and install separated modules, I would like to know what is the best way to develop separeted modules (like News, rss Reader, Forum, etc...) using JSF, that could be put in packages and uploaded into the modular web application. Thank ...

Zend - loading resources based on working module

Hi there, I want to load jquery-admin.js while on admin module, and jquery-site.js while on the front end ( site ) module. I also initiated the request from the bootstrap so that I can get Zend_Controller_Request_Http data before the bootstrap dispatches( I am afraid that it doesn't work ) like this: public function _initRequest() ...

Using built-in type(,,) function to create a dynamic module

I'm trying to use the type(,,) function to dynamically build a module. The module creates classes representing templates, and I need a new class for every .tex file that lives in a particular folder. For instance, if I have a a4-page-template.tex file, I need to create a class called A4PageTemplate. I can create the type easily enough u...

What is the cleanest way to duplicate base/parent.pm's functionality for non-object perl modules?

I'm not thinking too clearly right now and possibly overlooking something simple. I've been thinking about this for a while and been searching, but can't really think of any sensible search queries anymore that would lead me to what i seek. In short, I'm wondering how to do module inheritance, in the way base.pm/parent.pm do it for obje...

Need to confirm my thinking on Modules vs Classes in VB.net

I'm working on a project with a contractor we hired to do some VB.Net programming. I used to program for this project, but I have more recently become primarily the project manager so I can work on other issues I have. His method of programming differs greatly from what I was taught in school. The only time he uses classes is basically i...

modinfo srcversion: How do I generate this from my source?

I have a compiled version of a linux module, and then I have about 20+ variations of its source. Through various foolish mistakes, I've lost track of which version of the source was the actual one I used to make the module. I noticed that modinfo <module name> gives srcversion: <hash>, and I found some explanation somewhere that says i...