module

CgiModule and FastCgiModule in IIS7

My web server is IIS7 running on Windows 2008 Web edition. There are nearly 40 modules when checked pre-installed "Modules". It also having "CgiModule and FastCgiModules". All the websites installed on this server purely runs with ASP.NET technology. Can I remove these two modules to improve performance? Same way, my application uses "F...

CMS Module in Magento admin

I want create a new module just like a CMS page in which display multiple Items and admin will be manage it according own requirement could u please tell me how i integrate this module in admin Thanks in advance Pardeep Singal ...

Python How to make a cross-module function?

I want to be able to call a global function from an imported class, for example In file PetStore.py class AnimalSound(object): def __init__(self): if 'makenoise' in globals(): self.makenoise = globals()['makenoise'] else: self.makenoise = lambda: 'meow' def __str__(self): return self.makenoise...

Zend framework: Forms in modules

Hi, What I want to do: Create a number of modules with the forms folder inside them. What I did: Create a bootstrapper inside the module and added an _initAutoload function with the specific module name as namespace. For instance, an admin module with the following bootstrapper: class Admin_Bootstrap extends Zend_Application_Mod...

Working with anonymous modules in Ruby

Suppose I make a module as follows: m = Module.new do class C end end Three questions: Other than a reference to m, is there a way I can access C and other things inside m? Can I give a name to the anonymous module after I've created it (just as if I'd typed "module ...")? How do I delete the anonymous module when I'm done with ...

How to test Guice Singleton?

Guice Singletons are weird for me First I thought that IService ser = Guice.createInjector().getInstance(IService.class); System.out.println("ser=" + ser); ser = Guice.createInjector().getInstance(IService.class); System.out.println("ser=" + ser); will work as singleton, but it returns ser=Service2@1975b59 ser=Service2@1f934ad its...

Best practice to modularise a large Grails app?

Hi all, A Grails app I'm working on is becoming pretty big, and it would be good to refactor it into several modules, so that we don't have to redeploy the whole thing every time. In your opinion, what is the best practice to split a Grails app in several modules? In particular I'd like to create a package of domain classes + relevant s...

How do you install a module in erlang?

I am new to Erlang and would like to to know how to install third party modules for use in my web application. Where do you place this files and what sort of commands do you execute? ...

linux kernel module permissions

Hi All, I wrote a kernel module and a user that opens it with O_RDWR mode, in the module_permission's func i get int op parameter , and would like to know if its value is the same as O_RDWR or maybe the system call open changes it to another known value , and if so where can i find it.. thanks a lot.. ...

Writing Ruby Libraries - hiding methods from outside the module

Hi all, I'm writing a Ruby library which has a module with a bunch of classes inside it. Many of these classes need to be usable and modifiable by calling scripts, but I don't want (some of) the initializers to be visible/callable: module MyLib class Control def initialize # They can use this end def do_stuff ...

ruby/datamapper: Refactor class methods to module

Hello, i've the following code and tried the whole day to refactor the class methods to a sperate module to share the functionality with all of my model classes. Code (http://pastie.org/974847): class Merchant include DataMapper::Resource property :id, Serial [...] class << self ...

Magento - Code Question

I will have publications (news papers), under these publications there will be editions [location and language] and under these there will be offers and offers will have products. currently i have created all as modules i.e. publication to add / edit /delete publication, edition to add / edit/ update editions and so on. the problem is h...

Adding Flex Modules

Is it possible to add multiple Flex Modules at a time to be built in a project as opposed to adding them one by one, as this is becoming a very tedious task. This is for both Eclipse and Flash Builder 4 ...

How to simply add jar files, as libraries in a Netbeans module suite?

Hi, I'm a bit confused with NetBeans (versions 6.5 and 6.7). I have a NetBeans Module Suite application, which consists of several NetBeans Modules. I need to add some code in one of the modules. The new code is using a library, distributed as several jar files. The problem is, that NetBeans does not allow me to add this library jars d...

Assembly Load and loading the "sub-modules" dependencies - "cannot find the file specified"

There are several questions out there that ask the same question. However the answers they received I cannot understand, so here goes: Similar questions: http://stackoverflow.com/questions/1874277/dynamically-load-assembly-and-manually-force-path-to-get-referenced-assemblies ; http://stackoverflow.com/questions/22012/loading-assemblies-...

Trouble importing a Python module

I have a Python project with 2 files: epic.py site.py in the epic.py I have the lines from site import * bark() in site.py I have the lines def bark(): print('arf!') when I try to run epic.py, it returns "bark is not defined" this is weird. ...

Drupal - installed Events modules (calandar) - Views missing

I installed installed Events (calendar) module, and am able to add events and view events using event and event/list paths, however documentation talks about a default view being provided. I don't have this view and I searched through event module to find it (searched for "$view = new view" in install and elsewhere). Is this available in...

How do I export a package symbol to a namespace in Perl?

I'm having trouble understanding how to export a package symbol to a namespace. I've followed the documentation almost identically, but it seems to not know about any of the exporting symbols. mod.pm #!/usr/bin/perl package mod; use strict; use warnings; require Exporter; @ISA = qw(Exporter); @EXPORT=qw($a); our $a=(1); 1; tes...

Apache module for restful services

Hi .. My objective is create an apache module that will provide RESTful services (i.e., we have some legacy code that controls/queries some networking equipment and we would now like to expose that functionality as a RESTful service). I guess the flow might look something like this: WebBrowser -- issues RESTful URI---> [Apache (my_mod...

Why is this the output of this python program?

Someone from #python suggested that it's searching for module "herpaderp" and finding all the ones listed as its searching. If this is the case, why doesn't it list every module on my system before raising ImportError? Can someone shed some light on what's happening here? import sys class TempLoader(object): def __init__(sel...