FAQ Database Discussion Community


Titanium - CoreData error wrapping ADTECHMobileSDK in an iOS native module

ios,objective-c,core-data,module,titanium
We’re working to build a native iOS titanium module to wrap the ADTECHMobileSDK library, a library we use for ads. We successfully manage to port the banner views but we’re having troubles with interstitials: The app crashes when the method -load is called on the interstitial with the following message...

Python: importing a module with parameters?

python,logging,parameters,import,module
I have a small logging wrapper module, test.logging: import logging debuglog = "debug.log" f = open(debuglog, 'w') # truncate the file f.close() logger = logging.getLogger('test') logger.setLevel(logging.INFO) formatter = logging.Formatter( '%(asctime)s %(name)s %(levelname)s: %(filename)s:%(lineno)d: %(message)s') fh = logging.FileHandler(debuglog) fh.setLevel(logging.DEBUG) fh.setFormatter(formatter) logger.addHandler(fh) def get(moduleName): return logging.getLogger("test." + moduleName) and some modules...

How to disable the autoloading of a specific module in Linux

linux,module,autostart
I compiled my Linux kernel according to the Linux Device Driver Chapter 4: Debugging Techniques. After I loaded my first hello world module and then checked the output by dmesg, however, all I can see is evbug: ........ I know I can turn off evbug's output by execute sudo rmmod...

Access submodule from another submodule when both submodules are in the same main module

module,rust
I'm using rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14) and I've got the following setup: my_app/ | |- my_lib/ | | | |- foo | | |- mod.rs | | |- a.rs | | |- b.rs | | | |- lib.rs | |- Cargo.toml | |- src/ | |- main.rs |...

Python installed package won't import modules

python,module,packages,setuptools
I want to create a python app named knife that can be executed from CLI, the problem is that it can't import the modules. My file structure is like this: my_project/ knife/ __init__.py knife.py external.py setup.py My setup.py looks like this: #!/usr/bin/python from setuptools import setup, find_packages setup(name='Knife', version='0.3', description='Very...

Subroutines defined in required file assigned to wrong namespace after use of custom module

perl,module,namespaces
In a script I am working on, I have something similar to the following: require "environment.pm"; # Various definitions, including subroutine get_coll() use Custom::Module; In the Custom::Module file, I start with package Custom::Module; and end with 1; When I try to call get_coll() I get an error about it: (...

How do variables inside python modules work?

python,module,python-module
I am coming from a Java background with Static variables, and I am trying to create a list of commonly used strings in my python application. I understand there are no static variables in python so I have written a module as follows: import os APP_NAME = 'Window Logger' APP_DATA_FOLDER_PATH...

So I have angular from bower, now what?

json,angularjs,module,bower,ngresource
I just started a new project, these are the exact steps I have taken. foundation new project_name --libsass bower install angular --dev grunt build All good, the sass files are compiling, angular is setup under bower_components inside the angular folder, but wait..... Now I need to add Angular's ng-resource module....

Erlang: runing custom module

import,module,erlang,otp
Windows 7 x64, Erlang-OTP 17. I wrote simple module like this: -module (somequery). -export ([fbquery/2]). fbquery(P1,P2) -> inets:start(), ssl:start(), token = "78a8shd67tyajsndweiu03hr83h19j", Encoded = {"Authorization","Basic " ++ base64:encode_to_string(lists:append([token,":",""]))}, ContentType = "application/xml", Headers = [Encoded, {"Content-Type",ContentType}], Options = [{body_format,binary}], {ok, File}=file:read_file(P1), Res = httpc:request(post, {"https://datapi.com/api/xml4-8", Headers, ContentType, File}, [], Options),...

AngularJS: Failed to instantiate module error

javascript,angularjs,module,controller,dependencies
i know this question has already been asked, but i could not find the answer to my personal case. I'm sure it's a stupid thing i didn't notice but i'm not getting out of it. I'll post all the code i have (it's not that much) because i can not...

Django: how to customize my data in pivot chart of chartit module

django,module
In django view I have: females = Demographic.objects.filter(gender__startswith='f') males = Demographic.objects.filter(gender__startswith='m') I use chartit to have a graph for the number of people per sex, in other words to show females.count() and males.count(). Do you have any idea how to customize my data into chartit pivot chart? Currently my code...

Modulating Code for c++

c++,parameters,module
I have heard that it is best practice to 'modulate' your code, to minimize the amount your code relies on other sections of your code. If I have a float: float X = 1000; And a function that uses X: void A() { //use X } Is it better practice...

Can't use “super” to refer to a name that was brought in by “use” from another crate

module,rust,super,use
I am using super inside a module to refer to names in the parent namespace. However, I cannot get this to work when I refer to a name in the parent namespace that was brought in with a use statement. What am I doing wrong? // crate mylib pub fn...

Add methods to class Node.js

javascript,node.js,module
I have two classes, one Car: var config = require('./configuration'); module.exports.Car = function(){} module.exports.Car.prototype.set_tires = config.set_tires; module.exports.Car.prototype.remove_tires = config.remove_tires; module.exports.Car.prototype.drive = function(){console.log("BRUMMM BRUMMM")} and a Motorbike: var config = require('./configuration'); module.exports.Motorbike = function(){} module.exports.Motorbike.prototype.set_tires = config.set_tires; module.exports.Motorbike.prototype.remove_tires =...

prestashop: adding a product to cart, with custom fields

php,module,prestashop,cart
Good day all. I'm developing a module for prestashop, in which the user choose some settings, and then it is possible to save these settings and add a custom product to cart, using them as values for custom fields. I've added a new product, with 7 custom text fields. then...

Error installing perl module (cpan and manually)

perl,module
I'm trying to install the SQL::Translator module. Everything runs fine until it gets to this test: DBD::SQLite::db do failed: not an error at t/sqlite-rename-field.t line 62. # Failed test '-- Convert schema '' to '':;' # at t/sqlite-rename-field.t line 62. # died: Died at t/sqlite-rename-field.t line 62. # Looks like...

return value from a function inside a module

javascript,node.js,module
I have created a module like the following: module.exports = function() { function func1 () { } function func2 () { } return function() { func1(); func2(); return value; }; } when I call the module in another file myModule = require('myModule') use the module myModule() I get an undefined...

Opencart 2x Request multiple rows data

php,module,controller,opencart
I try to make a simple image module. No errors, the only problem is data not saved(maybe)/not loaded everytime I visit this module back. Here's my code in controller: if (isset($this->request->post['photo_image'])) { $photo_images = $this->request->post['photo_image']; } elseif (isset($this->request->get['photo_image'])) { $photo_images = $this->model_module_photo->getProductImages($this->request->get['photo_image']); } else { $photo_images = array(); } $data['photo_images']...

Best way to future proof software that opens files with default application interactively

vb.net,excel,class,import,module
I have created a VB .NET application that opens files in their default application - extracts information and returns it to a listview on a form. All of the code is in my main form. The main form has in it Imports Microsoft.Office.Core Imports Microsoft.Office.Interop.Word Imports Microsoft.Office.Interop.Excel If in the...

How get a list of dependent modules in within some parent module?

javascript,angularjs,list,module
Setup: Several angularjs modules declared as: angular.module('a', ['a.b']); angular.module('a.b', ['a.b.c1', 'a.b.c2']); angular.module('a.b.c1', []); angular.module('a.b.c2', []); Question: Is there a way to get all children modules from a specific parent module? I mean something like: angular.module.getChildrenFromParent('a.b'); That should return an array of strings or an array of references to the modules...

Multiple requires of same module seem to affect scope of each successive require

node.js,module,scope
I created the following 3 files: base.js var base = {}; base.one = 1; base.two = 2; base.three = 3; base.bar = function(){ console.log( this.three ); }; a.js var base = require('./base'); base.three = 6; module.exports = base; b.js var base = require('./base'); module.exports = base; test.js var test_modules =...

TypeScript: use class as module

module,typescript
It's not possible to add class local interfaces and type declarations like so: class Foo { interface Bar {} private bar: Bar; } Up till now, I've been putting everything inside a module: module Foo { export interface Bar {} export class Foo { private bar: Bar; } } However,...

Yii2 disable asset of a vendor module

module,yii2,assets,vendor,assetbundle
I have install yii2-admin module, located in /vendor/mdmsoft/yii2-admin and I want don't want it to load it's own asset bundle. It there anyway to disable this module asset bundle?

Why was the ISO standard for prolog a failure? [closed]

module,prolog,standards,iso,iso-prolog
In the introduction here, it states that the ISO standard for Prolog was a failure. Can anyone elaborate on this?

Drupal module development, custom database tables, pages for managing those data

table,module,drupal-7
I'm completely new to Drupal development I want to learn how to create basic module with such functionality: Create module with custom database tables Create one or several new pages as logical section of the site Manage data from database tables on those newly created pages For example, i want...

SugarCRM Extensions, modules and views

module,views,sugarcrm,suitecrm
I recently got employed at a company that mostly develops modules for SuiteCRM which is based upon SugarCRM. However there are a few points I don't really get at the moment and Google hasn't been too helpful either. I've been told that most of the development is done in the...

Zend Framework 2 - Accessing 2 different tables from same controller file

php,mysql,module,zend-framework2,tablegateway
I have succesfully completed the the album table tutorial in Zend Framework 2 manual. I have implemented using tablegateway. I can see that he used only one table named "album" and hence he implemented according to that one table. Lets say I have another table called "artist" that holds the...

Accessing the __all__ list of the parent module of a class instance

python,class,python-2.7,module,namespaces
I have an instance of a class SomeClass that is defined within a module m. For the behavior of SomeClass, I need to access the following list: m.__all__ How can I access this list from an instance of SomeClass? Instances of SomeClass have the following built-in: SomeClass.__module__ However, this is...

How to install RPi.GPIO to windows

python,module,install,raspberry-pi,gpio
I have looked and most of the tutorials are rasbian based. I would like it on windows so I can develop a python script on windows to which would later be put on the Raspberry pi. I have downloaded the module and have tried python setup.py install in command prompt...

Express basic module use within a view

javascript,node.js,express,module
I working on developing an app using express/nodejs. This is what my routes/index.js file looks like, as you can see I am trying to include a sidebar module and access it within the index view: var express = require('express'); var router = express.Router(); var sidebar = require('./modules/sidebar'); router.get('/', function(req, res){...

accessing a variable from outside a function and returning the variable. In a module pattern

javascript,function,module,scope
I'm learning about how to split up different functionalities into different section so I could have loose coupling. i have two object 1.'addition' and 2. 'subtraction'. I don't think that info matters for this Q. what i want to do is that when amount = 3 in the index.html file...

PHP Fatal error: Call to undefined function imagecreatefrompng()

php,module,gd
That is the error message that I get on my php error log. So far, I know that the GD library is the problem, it's not installed ( I think is not installed but it was working before in my server and now is not so I don't know what...

How to identify the Python interpreter version for an undocumented .py module?

python,module,versioning,interpreter,cpython
Is there an implemented program solution to identify which version of the Python interpreter is supported for an undocumented .py module except for manually looking into the source code? $ python get_py_version my_module.py '2.6 version module' Problem arose after installing an undocumented package in 3.x interpreter to discover during the...

NodeJs npm WARN uninstall not installed in $HOME/node_modules

linux,node.js,module,npm,uninstall
I have NodeJs module installed on /usr/lib/node_modules/ If i want to uninstall: $ npm remove <module> I get this error message: npm WARN uninstall not installed in /home/<user>/node_modules: "<module>" OS: Manjaro Linux / 0.8.13rc1 / Ascella / XFCE Thanks!...

What program does apple uses to create modular javascript files

javascript,module,documentation
When I looked at the new MacBook website from Apple I saw a nice smooth scrolling effect on the wireless page. I started digging in the JavaScript and found an uncompressed JavaScript file and I was blown away. (https://www.apple.com/v/macbook/a/scripts/wireless.built.js) There were so many comments, and you could almost follow what...

ImportError: No module named - Using my own module in separate *.py file [closed]

python,python-3.x,module,importerror
There was a missed typo that caused this error. Thanks for those who helped me see what I could not. I've created a function in "MD2CSV.py" file to transform an XML file to an CSV file using LXML. After I got that working, I'm trying to call it from another...

Delete modules to clean namespace?

python,module,namespaces,package
I am working on a pretty huge Python package. Inside several modules, different programmers import other modules to do calculations. For the sake of this discussion, let's stick to numpy. Common practice, when importing modules is defining an alias for easier programming, so let's say in a module foo.py there...

How do I use namespaces with TypeScript external modules?

javascript,module,typescript
I have some code: baseTypes.ts export module Living.Things { export class Animal { move() { /* ... */ } } export class Plant { photosynthesize() { /* ... */ } } } dog.ts import b = require('./baseTypes'); export module Living.Things { // Error, can't find name 'Animal', ?? export class...

Python: cannot load class from my module

python,module
EDIT: I couldn't use my own modules. It was a stupid waste of time. If you ever have the same problem, try reading this first: http://docs.python-guide.org/en/latest/writing/structure/ I just started OOP with Python and I am confused by modules and classes. I work with a Mac and I can write my...

Namespace module class methods undefined

ruby-on-rails,module
I'm trying to use modules for namespacing reasons. I have this file located in my Rails app at /lib/reports/stripe.rb. module Reports module Stripe def self.foo puts 'i am foo' end end end In my console, I'd expect to be able to call foo by Reports::Stripe.foo or Reports::Stripe::foo, but I get...

How do you run/call a module in another module in VBA excel?

excel-vba,module,call
Okay so i have 3 modules. My first module is "main" that is the module that i need to call the other module. What i mean is that when i run main, i want it to call/run the other 2 module. Currently when i press F5, it doesn't do this....

How to set a mpreal parameter inside a Fortran module [duplicate]

module,fortran
This question already has an answer here: Fortran derived types: Overloaded assignment operator not working with 'PARAMETER' attribute 2 answers I'd really like to be able to define some parameters in a Fortran module, so so that they are accessible for the main program and all its subroutines. The...

node.js use local variables in imports

javascript,node.js,module
I'm working on a small project - online game in node.js, learning it at the same time. I started off with one big server file server.js where I did all http, https, socket handling, however, as it began growing in size I figured I should keep my classes and functions...

Python's setup.py installed CLI script doesn't allow importing same module

python,module,setuptools
I want to create a python app named knife that can be executed from CLI, the problem is that it can't import the modules. I followed the same folder structure as the Django project for reference. My directory structure is like this: knife/ knife/ bin/ knife-cli.py core/ main/ __init__.py __init__.py...

Magento adminhtml custom (customer) tab add fields correct

magento,module,magento-1.9
I want to add a custom tab to the edit customer page. Now that is not a problem. But i wondered, is there a perfect way to add input fields in that tab? Because every tutorial uses a phtml file where you add code yourself. But is it possible to...

VBA - Use same variables in more modules

excel,vba,excel-vba,module
I want three modules that are summarized like that: FIRST MODULE Sub settings() Dim variable1,variable2,variable3,_ variable4,variable5,variable6 as String variable1="Stack" variable2="Overflow" variable3="Best" variable4="Site" variable5="Ever" variable6="I love it!" End sub SECOND MODULE Sub module2() 'LINE CODE THAT CALLS "settings" MODULE (I want to know it!) 'my sub that uses the six-variables above...

How to make a default instance in Ruby as in Prime class?

ruby,class,module,instance,default
I would like to make a class or maybe a module which can be loaded / required with "require" or "require_relative". However, for simplicity I don't want to instantiate any objects, just start using its methods, similar to Ruby's Prime class. How can I achieve this? require "my_module" puts My_module.convert("data")...

how function(global){…}(this) works?

javascript,module
AirBnb Javascript Style Guide recommends the following code pattern for modules: // fancyInput/fancyInput.js !function(global) { 'use strict'; var previousFancyInput = global.FancyInput; function FancyInput(options) { this.options = options || {}; } FancyInput.noConflict = function noConflict() { global.FancyInput = previousFancyInput; return FancyInput; }; global.FancyInput = FancyInput; }(this); But once you run for...

How to package a Python module

python,module,packaging
I am a newbie to Python and I have been going through the exercises in LPTHW: http://learnpythonthehardway.org/book/ex46.html The explanation of packaging the author gave was very vague, so I did some researching, but I was still left with some questions in the end. Firstly, what happens if you have a...

“from math import sqrt” works but “import math” does not work. What is the reason?

python,module,komodo
I am pretty new in programming, just learning python. I'm using Komodo Edit 9.0 to write codes. So, when I write "from math import sqrt", I can use the "sqrt" function without any problem. But if I only write "import math", then "sqrt" function of that module doesn't work. What...

SOLVED: Installing lxml, libxml2, libxslt on Windows 8.1

python,windows,module,installation,lxml
After additional exploration, I found a solution to installing lxml with pip and wheel. Additional comments on approach welcomed. I'm finding the existing Python documentation for Linux distributions excellent. For Windows... not so much. I've configured my Linux system fine but I need some help getting a Windows 8.1 tablet...

Referencing nested TypeScript modules

javascript,intellij-idea,module,typescript
I have the following situation: /*file A/Z.ts*/ ///<reference path="B/Y.ts"/> module A{ import Y = B.Y; export class Z{ //use class Y } } /*file A/B/Y.ts*/ ///<reference path="../Z.ts"/> module A.B{ import Z = A.Z; export class Y{ //use class Z } } Which seems to compile fine however I get javascript...

Exception with type definition for random-string module

node.js,module,typescript
I am trying to write a .d.ts for random-string. I have this code: declare module "random-string" { export function randomString(opts?: Object): string; } I am able to import the module no problem then with: import randomString = require('random-string'); and invoke: console.log(randomString); // --> [Function: randomString] However, this doesn't work with...

Not sharing configuration files from a Parent Project

maven,module,lifecycle
I have a parent pom looking like this: ... <module>mod1</module> ... <build> <plugins> <plugin> ... <phase>process-resources</phase> ... </plugin> </plugin> </build> with two plugins,maven-resources-plugin and maven-antrun-plugin. I want those plugins executed only within the parent pom. But my problem is that they are executed in my module too. Even so I'm...

How to declare a module deprecated in python

python,module,deprecated
How to declare a module deprecated in python? I want a warning to be printed whenever a particular module is imported or any of its functions are called....

Typescript One File Per Class

file,class,module,namespaces,typescript
I have just started with Typescript, using Visual Studio 2015, and can't find a way to use classes in separate files. In a single file, there is no problem: module someModule { export class TitleScreenState extends Phaser.State { game: Phaser.Game; constructor() { super(); } //some code here } class GameRunningState...

ES6 module scope

javascript,module,ecmascript-6
I have the code: // lib.js var a = "a"; export var b = "b"; // main.js console.log(a); // "a" variable is not available in a global scope import {b} from "lib"; console.log(a); // is "a" variable available in a global scope or only in a module scope? Can I...

ES6 global import

javascript,module,ecmascript-6,ecmascript-harmony
What is the best way to import some modules in all of the files of the project, so I don't have to write stuff like: import React from 'react'; import Reflux from 'reflux'; import reactMixin from 'react-mixin'; in almost every single file?...

Why does this code works well? It changes the Constant storage area string;

linux,module,kernel,constants
this is a simple linux kernel module code to reverse a string which should Oops after insmod,but it works well,why? #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> static char *words = "words"; static int __init words_init(void) { printk(KERN_INFO "debug info\n"); int len = strlen(words); int k; for ( k = 0;...

Perl Module using %EXPORT_TAGS

perl,module
I'm having trouble properly using %EXPORT_TAGS in my Perl module. In Solver.pl I have: use MatrixFunctions qw(:Normal); Then inside MatrixFunctions.pm, I have: package MatrixFunctions; use strict; use Exporter; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); $VERSION = 1.00; @ISA = qw(Exporter); @EXPORT = (); @EXPORT_OK = qw(&det &identityMatrix &matrixAdd &matrixScalarMultiply...

How to hook to action of another Orchard Module

model-view-controller,module,dependencies,orchardcms
Given: Module A and Module B up and running in Orchard CMS Objective: Execute some code from Module B when action of Module A is invoked Details: Module A updates the UserPartRecord table and Module B should update other tables when a new record is created I see that i...

Is there a module for Python that recieves (reads) text from a picture?

python,image,module,ocr
In relation to my question: If not for Python, what other programming languages have/acquire this feature?

i have an issue with cURL in 2 sites

php,curl,drupal,module,libcurl
I have 2 drupal sites installed in different machines..On the first one,on status report in the list I have: cURL cURL library Enabled only that row with cURL...On the second drupal site, I have that: cURL cURL library Enabled cURL Enabled On the second file my module uses the cURL...

How to export a variable from a module in JavaScript?

javascript,node.js,variables,module
According to this post we know that variables can be exported from one module in JavaScript: // module.js (function(handler) { var MSG = {}; handler.init = init; handler.MSG = MSG; function init() { // do initialization on MSG here MSG = ... } })(module.exports); // app.js require('controller'); require('module').init(); // controller.js...

How can I tell runhaskell that a module is not in the same folder?

haskell,module,haskell-platform
I want to place a module in a different folder. Is there a possibility to tell in the import statement the path to the module? Note I don't want to use cabal, because in the editor I use, runhaskell is the default executable for haskell.

UAC Kamailio module for INVITES

module,uac,provider,kamailio
It's UAC Kamailio module designed to send a INVITE to a provider trunk with authentication or, in opposite, it's only to send REGISTER?

How to specify module in namespace?

ruby-on-rails,module,routing,namespaces
I want to do something like: namespace :dashboard do get 'speed' get 'engine' get 'oil' get 'errors', :to => 'warn_system#errors', :module => false end Only errors link to another controller. dashboard_speed GET /dashboard/speed(.:format) dashboard#speed dashboard_oil GET /dashboard/oil(.:format) dashboard#oil dashboard_engine GET /dashboard/engine(.:format) dashboard#engine dashboard_errors GET /dashboard/errors(.:format) dashboard/warn_system#errors {:module=>false} For the last...

What's the module name of built-in predicate 'term_string/3' in SWI-Prolog 7.1.3?

module,prolog,predicate,swi-prolog,built-in
I am using a framework that has globally overridden the built-in predicate term_string/3 with different behaviour. Now i would like to use the built-in one, but what is its module name? I would like to call <ItsModuleName>:term_string(..) I know that list operations have a separate module :- use_module(library(lists)) that can...

Type encapsulation in Coq

types,module,encapsulation,coq
Is there a way in which I can define a type inside a Coq module but encapsulate the constructors? I want a client of the module to be capable to use the type but not to construct members of that type, similar to what can be done in OCaml with...

Python package/module import functions from sub packages

python,function,import,module,packages
I'm building a python package to do some auditing of systems at work. Thus far I've been able to work with using free floating .py files and and running the main file in the same directory as the module files. At a high level I want to create a package...

How to update perl module with cpanm

perl,module,updates,cpan,cpanm
I try to install/update Perl module with cpanm. But, it failed for every modules. for example: cpanm Config::General --> Working on Config::General Fetching http://www.cpan.org/authors/id/T/TL/TLINDEN/Config-General-2.56.tar.gz ... OK Configuring Config-General-2.56 ... OK Building and testing Config-General-2.56 ... OK Successfully installed Config-General-2.56 (upgraded from 2.52) 1 distribution installed So, i expect that version...

How to use custom css file for layout of a module in Yii2

php,css,layout,module,yii2
I am using basic pack of Yii2. I created a module named Admin and I want this module has it own layout but i don't know where to put all its css files. Then, how to include them in layout.php. My dirs like this: basic -- module -- admin --...

Passing information between class modules in vba

vba,class,module
What is the best way to pass information between two class modules in vba? I think I understand the property set statements but don't know how to connect two classes as such....

Replacing an imported module dependency

python,python-2.7,module
As described here, in python it is possible to replace a current module implementation using sys.modules: import somemodule import sys del sys.modules['somemodule'] sys.modules['somemodule'] = __import__('somefakemodule') But it doesn't work if import somemodule is done in the code of another imported module: In this example: CustomModule import somemodule def f(): print(somemodule.someFunction())...

Undefined is not a function when calling node module

javascript,node.js,module
I've separate some logic to different file in my project, the problem is that I got the following error Cannot read property 'readFile' of undefined this is the structure of my project projName utils file.js the file.js code is module.exports = function () { var fs = require('fs'); function readFile(filePath)...

Different module.exports pattern in node.js

javascript,node.js,express,module
Lets assume we are creating simple app with node.js and express (Note App). We want to organize our code and put all controllers in separate folder. so we create a folder and create index.js in it. then we add our controllers js files to this folder. Then initialize all controllers...

python: install two versions of same module

python,pandas,module
To be more precise, I need to install two versions of Pandas. On one hand, I'm writing codes to be run on a server with pandas 0.13. All other part of my work, I want up-to-date pandas and other modules (0.16.1 for now). The two projects are not connected and...

How can I put Component into Module in Joomla! site?

joomla,module,components,joomla-extensions
I wonder if exists a way to put component into module without install plugin, neither component nor module. Thanks and my apologize for my bad English....

Importing system modules in python

python,python-2.7,module
Background: I'm writing a symbolic package aimed at pypy for representing expressions and taking derivatives. Not working on simplification or anything like that at the moment, just differentiation and evaluation. Question: I'm writing expression classes to represent many of the functions in math (sqrt, log, exp, sin, cos, etc, etc)....

Install python module from diferrent directory

python,module,python-2.x
I have found a custom http requests python module that greatly simplifies my task. To be specific this one : http://docs.python-requests.org/en/latest/ So i downloaded the package from a site. Extracted the archive and attempted to install the module. When i use the following command from the directory where the module...

Sharing data within a Python module

python,module
I have written some Python libraries and structured them as a module. All files within the module require some data from a text file to work. The easiest solution would be to let each library read the file whenever they need it. However, reading the same file several times seems...

eclipse pydev - how to install python modules

python,eclipse,module,pydev
Just working my way through a (very good) book call Test Driven Development using Python. This makes use of Python3.4 by the way. By the way, I am running in a Windows 7 OS. I've got all the stuff working using a simple text editor and running from the command...

install python module using a zip file

python,module,pip
I have downloaded a zip file from here but I don't know how to install it and then use it in my python 2.7 they said it supports both python 2 and 3 using command: "pip install hazm" after bunch of lines it gets to these errors: creating build\temp.win-amd64-2.7\Release\libwapiti\src C:\Users\Mohammad\AppData\Local\Programs\Common\Microsoft\Visual...

JavaScript function is returning NaN

javascript,function,module,nan
I have a function and it is supposed to return a number but instead it is returning NaN. Here is the code function priceCalc(cust, transit, passType){ var price = 0; if (passType === "monthly"){ if (cust === "student" || cust === "elderly"){ price = transit.monthly / 2; } else if...

opencv 3.0 beta create new module (usable in Python)

python,opencv,module
I have locally added a module to OpenCV 3.0 beta (in a local contrib repository) that is working fine in C++. Now I am trying to make it work in Python, without success. As suggested here I replaced my CV_EXPORTS by CV_EXPORTS_W and added the macro CV_WRAP to the functions...

TypeScript: workaround for relative reference path?

module,typescript,tsd
My goal is to refer to .d.ts files that I've installed with tsd. The tsd definitions GitHub repository has examples using paths relative to the source file's location: /// <reference path="../typings/tsd.d.ts" /> I find that a potential maintenance issue - if I want to reorganize how my project is organized,...

Python: using X and Y values to draw a picture

python,numpy,module,scipy
I have a series of methods that take an image 89x22 pixels (although the size, theoretically, is irrelevant) and fits a curve to each row of pixels to find the location of the most significant signal. At the end, I have a list of Y-values, one for each row of...

All Payment Modules in Prestasop Not Displaying

module,prestashop,payment,prestashop-1.6
please help me None of my payment modules are being displayed on the final checkout page . I have installed and configured the following modules correctly payment by cheque Bank Wire Cash on delivery. Payu (payment gateway like paypal ) All the above worked fine until past month when they...

Include module , how does it work?

ruby-on-rails,ruby,module,include
By example : module Feature def self.included(klass) puts "#{klass} has included #{self}!" end end class Container include Feature end can you explain me how module can manipulate klass ? can't find any clear documentation about it. regards....

Importing modules using ES6 syntax and dynamic path [duplicate]

javascript,node.js,module,ecmascript-6
This question already has an answer here: ES6 variable import name in node.js? 2 answers This works: import app from './../app.js'; But this doesn't: import app from path.join(process.cwd(), 'app'); I'm Getting: SyntaxError: /path/file.js: Unexpected token (5:16) > 5 | import app from path.join(process.cwd(), 'app'); | ^ It is possible...

Apache mod evasive leads to permission denied of index.php

apache,security,module,access-denied
For security reasons I installed the apache modules security and evasive. No I get sometimes the Error Forbidden You don't have permission to access /index.php on this server. The logfile of apache shows me: [Tue May 12 14:42:32.825039 2015] [evasive20:error] [pid 27443] [client 192.168.32.22:51305] client denied by server configuration: /var/www/test/index.php,...

Write lua_requiref in lua5.1

module,lua,load
I would like to use the function lua_requiref, but in lua5.1. Is there a way to get the effect of lua_requiref in lua 5.1?...

Angular Error: [$injector:unpr] Filtering Error

javascript,angularjs,dependency-injection,module
I've got an Angular app that's throwing me this error: Error: [$injector:unpr] http://errors.angularjs.org/1.2.27/$injector/unpr?p0=advFilterNameFilterProvider%20%3C-%20advFilterNameFilter at Error (native) at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.27/angular.min.js:6:450 at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.27/angular.min.js:36:202 at Object.c [as get] (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.27/angular.min.js:34:305) at...

How to reuse a MVC partial view from Module A in Module B in Orchard Modules?

asp.net-mvc,view,module,orchardcms
I want to reuse a partial view from Module A by writing @Html.Partial("~/Modules/ModuleA/Views/Shared/TaskBox") in a view from Module B but the view is not found. Is that even possible?...

How to create .jar library from class in Intellij IDEA

java,intellij-idea,module,packages
I am trying to learn java and have implemented a single, and simple, class in Intellij IDEA 14.1.3. I want to be able to use this class in other projects without copy and pasting the class source into each project src directory. Essentially, I want to create a package, or...

Maven/Netbeans: open source files inside child modules

java,maven,netbeans,module
I have a multi-module maven project in this structure: Parent --ChildA --src --A.java --ChildB --src --B.java --ChildC --src many more... I have Parent open as a project in Netbeans, I want to be able to use "go to type" (ctrl+O) to quickly access A.java (due to the large amount of...

global variable defined in main script can't be accessed by a function defined in a different module

python,module,global-variables
I want to define a few variables in my main python script and use them in a function which is defined in a separate module. Here is an example code. Lets say the main script is named main.py and the module is called mod.py. Mod.py def fun(): print a main.py...

Slickgrid onClick… How to update dataView without global dataView?

javascript,module,slickgrid
Short version: Is it possible to access the dataView within the scope of this subscription method? grid.onClick.subscribe(function(e, args) { var rowData= args.grid.getDataItem(args.row); //want to update data in dataView for this row }); (Elsewhere in my module i have) dataView.onRowsChanged.subscribe(function(e, args){ grid.invalidateRows(args.rows); grid.render(); }); Long Version: I've created a generic JavaScript...

can i access Module class method from controller just by calling the method?

ruby-on-rails,module,include,request
I have the following module inside lib/api_client: request.rb module APIClient class Request require 'digest/sha1' require "net/http" require "uri" def self.venues_response ... end end end wich i include in my controller class like this: class VenuesController < ApplicationController include APIClient I'd like to access it's methods from inside venues_controller like this:...

Importing Python module from another module in the same level

python,import,module,package
I am working on a Python package with the basic structure listed below, and examples of what each Python file contains in curly brackets. MAIN_PACKAGE/ setup.py main_package/ __init__.py { import package1 import package2 __all__=['main_package'] } package1/ __init__.py { import module1 import module2 __all__=['package1'] } module1/ __init__.py { from script1 import...