I want to conditionally switch on/off certain functionality in my Rails app, for example in my current app I have the following functionality "product show case", "product search", "ecommerce", "user management" etc
If I implement the same app for someone else they probably might not want the ecommerce function, how do I disable the eco...
I have a project with multiple modules, including on that is responsible for building the final assembly from the artifacts of the other modules. As part of the assembly, I want to include the JavaDocs for two of the other modules. I have updated the pom files for those modules to generate the JavaDoc JAR files, and modified the assemb...
How can I find out what settings a certain NIC was loaded with in linux? I know there's modprobe.conf , but it doesn't give me the config if it was loaded using custom params with modprobe. Also, is it possible to figure out what the default setting for a driver is?
...
How do I register a module to ruby with IronRuby and C#?
...
According to http://www.faqs.org/docs/diveintopython/fileinfo_private.html:
Like most languages, Python has the
concept of private elements:
Private
functions, which can't be called from
outside their module
However, if I define two files:
#a.py
__num=1
and:
#b.py
import a
print a.__num
when i run b.py it pr...
I'm using the EPD version of python and IPython. After installing some modules using easy_install I notice that, although they can be imported, they cannot be tab completed. They exist on the path but, while included modules (pylab, readline, math) can be completed, these new modules cannot.
Anyone know what I should look into to find t...
Hello I have this very simple mxml example.
Using flex builder with flex sdk 3.4.0 if the module is remote like http://edofiles.s3.amazonaws.com/calculator.swf
The READY event is never fired, i don't understand why.
Do you get the same behavior ?
Original code is from http://lowpitch.com/blog/modulemanager-and-imoduleinfo-loading-fl...
How do get the path of a installed Perl module by name,
e.g. Time::HiRes?
I want this just because I have to run my perl script on different nodes of a SGE Grid Engine system. Sometimes, even run as other username.
I can use CPAN.pm to install packages for myself, but it is not so easy to install for other users without chmod 666 on fo...
I am doing some pylons work in a virtual python enviorment, I want to use MySQL with SQLalchemy but I can't install the MySQLdb module on my virtual enviorment, I can't use easyinstall because I am using a version that was compiled for python 2.6 in a .exe format, I tried running the install from inside the virtual enviorment but that d...
Hi,
I have a PRISM based silverlight solution under source control. In regards to theming I have a project for each theme, for example 'Theme_Summer', 'Theme_Winter' projects. In reality there may be over 30 of these theme projects. Each theme project contains a selection of resource dictionaries to hold the styles etc along with the im...
How much of a security risk are linux kernel modules? I remember reading that it was possible if someone got access, that all they had to do was load a rootkit module. Is this correct? Is there any way to protect against this?
What parts of the kernel are actually exposed through the module interface, and what functions do programmers h...
The problem
I am trying to make a generic http module in asp.net C# for handling roles defined by an enum which i want to be able to change by a generic parameter. This will make it possible to use the generic module with any kind of enum defined for each project.
The module hooks into the Authenticate event of the FormsAuthenticationM...
(Assume that: application start-up time is absolutely critical; my application is started a lot; my application runs in an environment in which importing is slower than usual; many file need to be imported; and compilation to .pyc files is not available.)
I would like to concatenate all the python source files that define a collection o...
I extracted a contributed module into the sites/all/modules folder, but it is not yet appearing in my admin panel under Administer -> Site building -> Modules. What could be the problem?
I tried clearing the cache, it made no difference.
...
Hi, I'm creating a web page that is built using "modules", in other words the page is put together using other php files.
On one side of my page there is a div container with some links next to it, this div container will be used to hold certain information. The information is held within separate php files that I wont to be able to loa...
Hi,
I'm not sure if this is possible, but I am currently loading most of my modules from within the main application assembly, I am trying to now load external XAP modules.
I have something like this:
ModuleInfo themeModule = new ModuleInfo();
themeModule.ModuleName = "Theme_External";
themeModule.ModuleType = "Theme_External...
When I debug certain applications (using Visual Studio 2005) I notice strange, randomly named modules are loaded. The names change each time. But they are like di-leyes, jnilel-e, lkmjelxl, llufvuwr. The module path is always identical to the module name. And the module timestamp seems to be the time when the module was loaded.
So it s...
Hi, I want to load my top-menu in a dropdown panel. I used this "jquery dropdown plugin" and it just works great for a html static content. But I'm going to load a joomla position in this panel so it may show a module in the dropdown panel. How can I do this?
Note : please see the plugin page before any new suggestion.
Best regards an...
I created module for admin specific operations. I don't want to write the same access rules for every controller, it's not pretty coding style.
...
I'm guessing that the units it uses is meters (m), but it doesn't seem clear from the documentation I've found. Is this correct?
If so, just to verify, in order to convert between miles/meters, I presume these functions should do the trick:
public static function mi2m($mi) { // miles to meters
return $mi * 1609.344;
}
public stat...