module

DotNetNuke CSS problem on page postback?

We're having a very strange problem with css in DotNetNuke. It seems that with any of our custom modules, if a user clicks to postback 9 times the skin css is removed and the page becomes rather ugly. Looking at the source the tags with the urls to the css files are gone. After one more click making 10 postbacks, any custom css files w...

modular development

What would you recommend for modular development in Java. OSGI is great but it's support for JPA is pitiful. I would really like not to have to write yet another framework, but it seems inevitable. ...

Magento: Including a module template into the checkout process

Hi, I'm trying to include a custom template into the checkout process on the shipping page. I want that template to adopt the functionality of its parent template so I can use any of the shipping variables within the template. However I can't get magento to load the template. Here is my XML (the header scripts are adding successfully...

How does os.path map to posixpath.pyc and not os/path.py?

What is the underlying mechanism in Python that handles such "aliases"? >>> import os.path >>> os.path.__file__ '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.pyc' ...

Komodo Edit Changes Python sys.path If you "Show in Explorer"

I am using Komodo Edit, a code editor. When I right click on projects and click "Show in Explorer", it will pop up a box just like Windows Explorer at the directory my project is. This is very convenient. However, I noticed an insidious side effect. When you try to run a python file with this window that looks exactly like Windows Expl...

Issues with inspect.py when used inside Jython

Hi, I am using an application developed in Jython. When I try to use the inspect.py in that, it shows error message. My code goes like this import inspect,os,sys,pprint,imp def handle_stackframe_without_leak(getframe): frame = inspect.currentframe() try: function = inspect.getframeinfo(getframe) print inspect.g...

How can I tell if a Windows module handle is still valid?

A module can be unloaded, so how can I tell for sure if it is still in memory? I have a handle to it, obtained from GetModuleHandle. When I tried calling GetHandleInformation on it I see error 0xc0000008 - "An invalid HANDLE was specified." This happened before it could have been unloaded. ...

How to issue "module load" in a shell or Perl script (i.e., non-interactively)

I can use the "module load xyz" command interactively, but when run from a script, it says it can't find the "module" command. Is there any way of loading modules in a script? ...

In Perl, how can I find out if my file is being used as a module or run as a script?

Let's say I have a Perl file in which there are parts I need to run only when I'm called as a script. I remember reading sometime back about including those parts in a main() method and doing a main() unless(<some condition which tests if I'm being used as a module>); But I forgot what the condition was. Searching Google hasn't turned...

Flex "Type Coercion" error when casting to interface

This is the error I am getting in the handleModuleReady function: [Fault] exception, information=TypeError: Error #1034: Type Coercion failed: can not convert MyModule@39b8479 to IModuleInterface. I have an application setup and I have created modules to load at runtime in order to decrease the filesize (as most users will only ever ...

What is the difference between these two ways of loading modules in Prism?

Can anyone explain the difference between this way of loading modules in Prism: protected override void InitializeModules() { IModule customerModule = Container.Resolve<CustomerModule.CustomerModule>(); IModule helloWorldModule = Container.Resolve<HelloWorldModule.HelloWorldModule>(); customerModule.Initialize(); helloW...

Extension/plugin/module system for a Ruby on Rails application?

What would be the best approach to develop an "extension" system for a Rails application? I mean the same kind of system that WordPress has, like registering functions to hooks, etc. Then plugins could be activated/deactivated from an admin panel. Are there some books/online material about implementing this kind of functionality in RoR...

Can I create a Python extension module in D (instead of C)

I hear D is link-compatible with C. I'd like to use D to create an extension module for Python. Am I overlooking some reason why it's never going to work? ...

Listing builtin functions and methods (Python)

I have came up with this: [a for a in dir(__builtins__) if str(type(getattr(__builtins__,a))) == "<type 'builtin_function_or_method'>"] I know its ugly. Can you show me a better/more pythonic way of doing this? ...

jquery javascript module architecture on a website

I want to write a module on one html site - I will never leave the site I think about two possible concurrent basic approaches: We go into the module by use only a specific function (with specific params - everything which will happen, happen there - logic, exception handling etc) We go in by using one handler-fct, which manages some ...

Ruby equivalent of Tie::FIle?

Is there a Ruby equivalent of Perl Tie::File module? ...

In Perl, what is the difference between use and require for loading a module?

What is the difference between doing use My::Module and require My::Module? ...

What methods are there to modularize C code?

What methods, practices and conventions do you know of to modularize C code as a project grows in size? ...

Ruby on Rails modules, code sharing, and community

Prologue: I know about gems. I use Drupal at work. In case you don't know, Drupal is modules. There is a framework and a core framework, but when you build a site in Drupal, installing and configuring modules is most of the work. So what, being new to Rails, I have a pet project and I am trying to build a login/user system. I've read...

Recommended ways to split some functionality into functions, modules and packages?

There comes a point where, in a relatively large sized project, one need to think about splitting the functionality into various functions, and then various modules, and then various packages. Sometimes across different source distributions (eg: extracting a common utility, such as optparser, into a separate project). The question - how...