I'm needing to run Python scripts within a C-based app. I am able to import standard modules from the Python libraries i.e.:
PyRun_SimpleString("import sys")
But when I try to import a local module 'can'
PyRun_SimpleString("import can") returns the error msg:
Traceback (most recent call last):
File "", line 1, in...
I am using a Perl module called from a CGI scipt in IIS 6 that is bombing. The identical folder structure on an XP machine (IIS 5.1) works fantastic. If I remove the module loading command at line 9, it will print "about to load" and "ok", but When I try to run
use Language::Guess;
I receive
The specified CGI application
mis...
Which package from CPAN should I use to send mail?
Sometime the timtowtdi approach is very tiring. For me, especially when it comes to package selection.
So all I want is to send email, potentially HTML emails. Between Mail-Sendmail, Mail-Sender, NET-SMTP (by the way - not available in PPM), Mail-SendEasy, and the 80 or so other packag...
I have the following directory structure:
modules/
api/
controllers/
ApiController.php
InventoryController.php
OtherController.php
The init() method is common amongst multiple Controllers so I want to refactor that into a parent Controller class such as:
class Api_ApiController extends Zend_Controller_Action
{...
I have recently started learning Python and I have 2 questions relating to modules.
Is there a way to obtain a list of Python modules available (i.e. installed) on a mchine?
I am using Ubuntu Karmic and Synaptic for package management. I have just installed a python module.Where is the module code actually stored on my machine? (is the...
I need a free membership module for some open source CMS which use PHP and MySQL and it's easily customized.
Needed features:
Implementation of Plimus, 2checkout and other payment gateways (PayPal it's not enough)
Limited forum and content access based on presence of user in membership program (2nd month he can see more forum categori...
This is a module named XYZ.
def func(x)
.....
.....
if __name__=="__main__":
print func(sys.argv[1])
Now I have imported this module in another code and want to use the func. How can i use it?
import XYZ
After this, where to give the argument, and syntax on how to call it, please?
...
Hello,
So I've installed an extension in my Magento Enterprise.
I've been able to configure new options in the admin interface after installing the module.
However in the frontend it complains "table not found". Checking the database that is indeed true. Seems the mysql4-*.php scripts have not been run or failed.
Is there a log or ...
Hi friends,
I uploaded and activated Ads Module with no error. I can see Ads-List pages.
List | Remote ads | Reports |
Settings | Ad groups | Channels
but all other pages are blank :( as below
What can be the problem? Appreciate helps!!! Thanks a lot!
...
I'd like to dynamically create a module from a dictionary, and I'm wondering if adding an element to sys.modules is really the best way to do this. EG
context = { a: 1, b: 2 }
import types
test_context_module = types.ModuleType('TestContext', 'Module created to provide a context for tests')
test_context_module.__dict__.update(context)
...
Hi I'm looking for a simplified overview of EJB3 components.
I seem to understand most of the pieces of the puzzle, but can't quite get them to fit together in my brain as a full picture. I've developed numerous web applications (wars) that have been deployed on Tomcat before, but not a full-fledged EE application (ear).
I would like ...
I'm looking for one just to get a general idea of how a standard C++ project should be properly setup.
(If that's possible... :-p)
Here are my requirements for this project:
module-based (has libraries/modules that compile into a main program module)
compiles cross-platform
I'd like to do this so that I can get a hold on the basics ...
What do I pass as the first parameter "object" to the function setattr(object, name, value), to set variables on the current module?
For example:
setattr(object, "SOME_CONSTANT", 42);
giving the same effect as:
SOME_CONSTANT = 42
within the module containing these lines (with the correct object).
I'm generate several values at th...
Hey guys,
I follow a module pattern where I instantiate components, however, a lot of time a component will only be instantiate one time (example: a comment system for an article).
For now I instantiate in the same JS file. but I was wondering if it is the wrong approach? It kind of make no sense to instantiate in the same file and alw...
Hi friends,
I'm new at drupal.
I installed Nice Menus Module. When I add to sidebar block at Blocks Settings Page, it works fine. but when I add it to Navigation block, it doesnt work :( it just display the parent links, not the child ones.
my page.tpl.php
<?php if (!empty($primary_links)): ?>
<div id="nav" class="clear-block">
<?php...
Hi
A client of ours is asking us to implement a module in C in Apache webserver for performance reasons. This module should handle RESTful uri's, access a database and return results in json format. Many people here have recommended python mod_wsgi instead - but for simplicity of programming reasons. Can anyone tell me if there is a ...
Hi all,
i use the asp.net(.aspx) language to develope my website.
i want to create a module of news appearing in home page, and by clicking "more" you will get details in another page of news details !!
so i need help!
Thanks
...
Hello everyone,
I'm building a website (a community web site like digg) but we will soon release a new feature that people will need to pay for.
Right now, our website is in pure C# in .NET, very simple pages with some AJAX. When the member log in, there is no HTTPS. Everything is check with session and the internal validation that I d...
Hi friends,
I'm new at Drupal, love it so far :)
I added Photo and Logo File field to blog entry with CCK. I need to display these images at blog post listing page. So at View Module, I added fields as below;
At View:
Content: Logo URL to file
Content: Photo Path to file
and it displays only names of files, but I need to display i...
Hi friends,
I'm new at Drupal.
I use Hostgator and working on my first Drupal project, at the begninning everything was fine. but later site has started loading extremely slow! I even needed to contact to HostGator, and they restarted the apache. than it was fine for 10 mins, and same again now!
Sometimes it give mysql errors like Th...