module

Flex Modules vs RSL

Hi, I'm a little bit confused about when is better to use Flex Modules or RSL libriaries (in Flex 3.5). My goal is split my project in several unit projects, so I can test and work separately. Let's assume I have a Customer app and Vendor app. I also have a front-end panel with two buttons. Each button launches Customer app or Vendor a...

How to get the URL of a Flex Module from within the Module when this.loaderInfo is null

I've used ModuleManager to load a Flex Module. When the module is fully loaded I want learn the URL of the swf that contains the class definition from which the module instance was created. I haven't studied the internals of the Flex framework, but I suspect that the IModuleInfo instance's factory.create() is probably calling on applic...

In flex how do I pass data retrieved from a remote object service to a modules interface?

I found at this Adobe tutorial a nice "RemoteService" class that creates a RemoteObject and contains the functions for handling the result and fault events. If I wanted to use this approach, how could I pass the data from the result handler to interfaces that modules from the main application could use? I could put the RemoteService/Re...

Drupal filter_form form input

This drupal form snippet will give me a textarea with user able to change filter to full html/wysiwyg mode. My Questions: How can I default to to full html mode? function MY_MODULE_admin() { $form = array(); $form['format'] = filter_form($form->format); // MY_MODULE - ** Image 1 ** $form['MY_MODULE_image_1'] = array( '...

Apache modules installed but don't seem to load in Ubuntu

I am pretty new to Linux. Got a VPS set up yesterday, installed Apache2, PHP5 and MySQL. When I do apache2 -l I get this: Compiled in modules: core.c mod_log_config.c mod_logio.c prefork.c http_core.c mod_so.c When I do sudo a2enmod rewrite I get this: Module rewrite already enabled And rewrite.load is in /etc/apache...

Python namespace in between builtins and global?

Hello, As I understand it python has the following outermost namespaces: Builtin - This namespace is global across the entire interpreter and all scripts running within an interpreter instance. Globals - This namespace is global across a module, ie across a single file. I am looking for a namespace in between these two, where I c...

Close HTTP connection from within Apache filter

Hi, I'm trying to build an Apache filter that will allow the server to only take as many bytes of an incoming POST file upload as it needs. I want it to acknowledge the client with a 200 OK and close the connection after a certain defined delimiter has been detected in the request stream. I'm just starting with Apache filters, and modu...

How do you extend a Ruby module with macro-like metaprogramming methods?

Consider the following extension (the pattern popularized by several Rails plugins over the years): module Extension def self.included(recipient) recipient.extend ClassMethods recipient.send :include, InstanceMethods end module ClassMethods def macro_method puts "Called macro_method within #{self.name}" end ...

MySQL Module for Python

What is a good, and easy to install MySQL module for Python? Especially for Mac OS X (in terms of installation)? ...

Python: Define Classes in Packages

I'm learning Python and I have been playing around with packages. I wanted to know the best way to define classes in packages. It seems that the only way to define classes in a package is to define them in __init__.py of that package. Coming from Java, I'd kind of like to define individual files for my classes. Is this a recommended prac...

Adding an Include Path for a Module in a Simple Perl Tutorial

I'm trying to do a simple tutorial but I'm having trouble getting started. My problem seems to be installing and getting the correct path to the modules. 1. Here is the original code:* #!/usr/bin/perl -w use strict; use LWP 5.64; my $browser = LWP::UserAgent->new; my $url = 'http://www.cspan.org/RECENT.html'; my $response = $browser->...

problems with async jquery and loops

I am so confused. I am trying to append portals to a page by looping through an array and calling a method I wrote called addModule(). The method gets called the right number of times (checked via an alert statement), in the correct order, but only one or two of the portals actually populate. I have a feeling its something with the loop ...

GWT complex app, many screens. Architecture?

I'm making a GWT application which will have many screens. There will be a menu on the left and clicking a menu option will open the relevant module in the right side content area. Clicking on items in the content area will link to other modules that open in the same content area. How do I implement this architecture? How do I pass obj...

Folder structure of a PHP MVC framework... am I doing this right?

I'm currently working on my own PHP Framework, and I need some help figuring out if I'm going in the right direction or not... The framework is both for my own use and to generally advance my PHP skills further. I've encountered numerous problems that by overcoming them I have learned a great deal, and love being able to create somethin...

Kohana 3: Login without salt

We're developing a software that will manage users and I need to build an application with Kohana 3 and Auth Module. My application will allow just login. I don't need to append a salt to the passwords when user log in. How could i do that? Thank you. EDIT: I know, its wrong but I changed the core. Now I encrypt password without the sa...

Can I setup a specific login action for each module?

Hi, I'm working on a symfony 1.4 project which contains a frontend and a backend. I want to know if it's possible to configure a different login action for each module. I've tried to add a settings.yml file in the config folder of each module but it doesn't work. Thanks, ...

Extending magento cms modules

I need to extend the magento cms module, if I follow the generall module creation steps its overriding the existing module and trying to run my module, but I want my module to work along with core magento module. ...

php blob to picture in joomla module in 1 Script

Hi ! I have pictures in a database and i want to read it out and display it as a picture. However i get strange long charakters as result. my code: <?php /** * @version 1.0 $ * @package HelloWorld * @copyright (C) 2010 BlaBlbb * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ /** ensure this file is being included by a parent...

Math Looping Between Min and Max Using Mod?

i'm attempting to build a tiny (or perhaps not so tiny) formula that will contain numbers between a set min and max, but also loop these numbers so they are not clipped if they are outside of the range. so far, this is what i have. min1 = 10 max1 = 90 val1 = 92 //will make 11, which is what i want since it loops formula: min(max(min...

Joomla - Warning! Failed to move file error

Hi Guys, I have found some solutions to this error and tried implementing them but none of which has worked and hope that some here at SO might have a different answer. I get this error, "Warning! Failed to move file" when I try install modules into my new installation of Joomla here: http://sun-eng.sixfoot.co.za Here's some solution...