FAQ Database Discussion Community


How autoloader works in zend framework 2

php,zend-framework2,package,composer-php,autoloader
I am just trying to create a package for packagist, a zend framework 2 user authentication module, https://packagist.org/packages/tahmina8765/zf2auth When I keep this zf2auth folder in my modules folder, it works. But when I download it with composer, it downloaded in vendor/tahmina8765/zf2auth. In this folder, it does not work. I mean,...

Verify installation, print version if already installed otherwise install that package

python,linux,package
I am creating setup file, where first I check whether particular package already installed or not, if yes then print it's version, otherwise install that package. consider nltk, I am doing like this: nltkv = '{}.'.format(nltk.__version__) if nltkv == '': print "Nltk is not installed, Let's start installing .../n" subprocess.call('sudo...

Application Name And Application Icon from Application Package Name In Android

android,package
I have stored package name of an application by the following code . mActivityManager = (ActivityManager)this.context.getSystemService(Context.ACTIVITY_SERVICE); for (ApplicationInfo packageInfo : packages) { String pck = packageInfo.packageName; if(pck.startsWith("com.google") ) { app = new APP(R.drawable.ic_launcher,packageInfo.packageName); application_package.add(app); continue; } if((packageInfo.flags & ApplicationInfo.FLAG_SYSTEM)==1)continue; if(packageInfo.packageName.equals("com.walton.taskkiller")) continue; app = new...

How to pass a hash as optional argument to -M in command line

perl,hash,package,command-line-interface
I know that when we need to pass some arguments to the use keyword after a package name we can pass them in the command line after the -M parameter. For example: use feature 'say'; say 'hello!'; can be invoked from the command line with >perl -Mfeature=say -e"say 'hello!'" But...

how to do multiple serch in installed RPM packages?

linux,bash,package,redhat,sudo
how to do multiple search in installed RPM packages? $rpm -qa| grep 'mysql' 'jdk' 'jre' or $rpm -qa| grep mysql && rpm -qa| grep jdk && rpm -qa| grep jre ...

how to setup a path within a python package

python,package
I'm creating a package, first I install it locally python setup.py develop I am having an issue when I call the program >>> import cstm.artefact as art >>> art.what_is('Objname', 'en') Traceback (most recent call last): File "<input>", line 1, in <module> File "/home/guinsly/development/public/project/jeunesse/canadian_science_and_t echnology_museum_api/cstm/artefact.py", line 56, in what_is valeur =...

How to set auto-indent and formatting style in Atom.io editor

netbeans,package,code-formatting,atom-editor
I'm looking for a way to auto-format code in Atom.io, but so far I did not find anything useful in the forums... I know other IDEs have this feature. For example in Netbeans there is a feature to auto-format code that is configurable (Tools>Options>Editor) in terms of style and language...

Build and clean with specific source code in Netbeans

java,netbeans,package,projects
I have a project with four packages. One of them has the same name as the project (to lower case) and within a source code with the main method. When i click build and clean I generate a ".jar" which starts the main method with this source code. I have...

Export R package documentation to a web page

r,package
I have created an R package following Hadley Wickham's instruction on how to build and document packages with Roxygen. Now I would like to export the function help pages and vignettes to a bunch of html files so that it can also be read and linked-to on a website. When...

Make methods available at higher level in a package

python,package
Consider the following package structure: foo/ # package name foo/ # module name __init__.py foo.py # contains "bar" method exceptions.py # contains "BarException" class Now in order to call the bar method, we have to do (I'd like to lose one foo): import foo foo.foo.bar() Now I know it is...

Docker-compose running container

package,docker,zookeeper,docker-compose
I am trying to launch a zookeeper instance and a process which connects to the zookeeper instance using docker-compose (contents in docker-compose.yml file) . As soon as docker fetches the repositories for both the entities and launches the zookeeper instance, it fails to connect the process to the zookeeper instance...

MELPA pointing to non-existent version of multi-term?

emacs,package,melpa,multi-term
I am trying to use MELPA to install the emacs package "multi-term". When I do package-install multi-term, I get "http://melpa.org/packages/multi-term-20141203.1658.el: Not found". However, a more recent version http://melpa.org/packages/multi-term-20150220.1320.el is on MELPA. Why is emacs not installing this version?

construct a .jar from a folder

java,package
what I want is to regenerate sdovis.jar complete file, I took mapbuilder.jar tool, after that I unzip it using winrar, the result contains a folder named oracle, and I want generate from that folder a .jar file in order to use it in a specific project. Thank you.

Correct way to get golang.org/x/tools/go/ast/astutil

go,package
It seems the repository has moved from golang.org/x/tools/astutil to golang.org/x/tools/go/ast/astutil I'm trying to build gore but it cannot found the astutil, I have the workaround to get it compiled: mkdir $GOPATH/src/golang.org/x/tools/go/ast ln -s $GOPATH/src/golang.org/x/tools/astutil $GOPATH/src/golang.org/x/tools/go/ast but is this the correct way to fix this? I've tried to remove the x/tools...

how to edit existing debian package in installation cd?

installation,debian,package,edit,cd
ive been trying to edit a Debian installation CD, followed tutorial on debian website https://wiki.debian.org/DebianInstaller/Modify/CD, successfully extract cd, use genisoimage to recreate iso, try to install debian, no problem. and then the problem, when i tried to edit one of the package, say i want to change a picture in...

Removing RPM Packages

linux,package,rpm
Hello experts and thank you for taking your time to answer the question: Can I remove the .rpm files after having installed the program? EXAMPLE: I have installed the rar.rpm file and now I have the rar.rpm in a directory where I downloaded the file and want to know if...

In Laravel 4, How are the merging rulesets implemented?

php,validation,laravel,package,validationrules
I'm using the dwightwatson/validating package to create validation rules in the model. I particularly like the custom rulesets you can create for different routes. Model protected $rulesets = [ 'set_up_all' => [ 'headline' => 'required|max:100', 'description' => 'required' ], 'set_up_property' => [ 'pets' => 'required' ], 'set_up_room' => [ 'residents_gender'...

Incompatible packages in R

r,package,packages
Working with time series in R, I find out that unfortunately, two packages seem to be incompatible with each other. These are forecast and TSA. The first snippet shows forecast working as it should. require(forecast) test<-ts(rnorm(100), frequency=12, start=c(2000,1)) mod<-arima(test, order=c(1,1,2)) mod2<-forecast.Arima(mod, h=12) This MRE shows my problem: require(forecast) require(TSA) test<-ts(rnorm(100),...

How do I import definitions from another file in a Go program? [duplicate]

go,scope,package
This question already has an answer here: go build works fine but go run fails 1 answer I have the following files: gopackage/main.go: package main func main () { foo(); } gopackage/otherfile.go: package main import "fmt" func foo() { fmt.Print("foo\n") } Apparently, the reference to foo from main.go does...

how to use %dopar% when only import foreach in DESCRIPTION of a package

r,foreach,package,domc,doparallel
How to avoid "could not find function "%dopar%"" in a function of a package when only imports (not depends) foreach in DESCRIPTION of a package? is there a way like foreach::%dopar% as I use foreach::foreach in function? Thank you. Code like: In function foreach::foreach(1:9) %dopar% { ...} In DESCRIPTION Imports:...

Composer scripts

package,laravel-5,composer-php
I'm currently developing a package for Laravel 5. Now I wrote an artisan command and I want it to run every time a user installs the package (requires) or runs composer update. So in my composer.json file of the package I have added the scripts section but for some reason...

How to install postgres with NSIS with all parameters?

postgresql,installer,package,nsis
We have a C# program which uses postgres as its database, so we want to bundle the postgres in the installer as a semi-silent install, i.e. the user will be notified about the mandatory installation, but the installation itself will be automatically performed without the need for user input. After...

How can I get all Class files in a specific package in Java?

java,reflection,methods,package
As the description says: how to get a list of all Java class files for a given package name.

Does anyone know how to retrieve list of cell cycle genes from KEGG in R?

r,package,cell
I know how to retrieve a list of genes for specific pathways from KEGG website by using KEGG API but I couldn't find any packages that could do the same thing in R. The only annotation package I found was KEGG.db which just give a list of available pathways in...

Laravel: run a command line program when package is installed

php,laravel,compilation,package,laravel-5
I am attempting to create a Laravel 5 package that lets me manipulate images, including optimize their file size. Ideally I would like to do something like the following: Image::scale('myImage.png', 300, 300)->rotate(90)->optimize()->save('newImage.png'); For the "optimize" step, I wish to use pngquant So long as pngquant is installed, this isn't too...

Rotating axis labels in lattice() package - R [duplicate]

r,package
This question already has an answer here: How to rotate the x-axis labels 90 degrees in levelplot 1 answer I case of built-in R plotting function I can change orientation of axis labels with las parameter, which takes values : {0, 1, 2, 3}. How to achive the same...

R{beepr} error in beepr package in R

r,package,beep
I installed the "beepr" package like a month ago to warn me when I finished a long script. I worked perfectly until now. I don't know why when I call the function in Rstudio it prints an error: beep(9) Please use (fixed|coll|regexp)(x, ignore_case = TRUE) instead of ignore.case(x) Please use...

Using numbers as package names in java

java,package
I have checked the following posts already: https://docs.oracle.com/javase/specs/jls/se7/html/jls-6.html#jls-6.2 and SO post: Is this a valid java package name? and What package naming convention do you use for personal/hobby projects in Java? I tried creating a package like this: package 01; public class Test { // ... } When I compile...

A java class can't find an other in the same package

java,class,import,package
i am implementing a java program in ubuntu without an IDE that converts a currency to €, i have 2 classes ConvertiEuro and Valuta both in the same directory (package) called finanza, the class ConvertiEuro uses the class Valuta, when i try to compile Valuta.java it compiles correctly but when...

Ubuntu down load a package and all of its dependencies without installing them

ubuntu,download,package
I need to download a package and all of its dependencies without installing any of them. I'm looking for a command like apt-get -R --download-only install package-name Or any solution that would produce the same result. Based on my research I could not find a solution that produces this and...

how to safely update way generators 3.0 package in laravel 4.2

laravel,laravel-4,package,composer-php,way-generators
i figured out too late that way generators version 3 package is not compatible with laravel version 4.2 it only work with laravel 5, now i need to switch to a previous version of the package and i do not know how to do it properly as my laravel project...

Relative imports and package structure in eclipse?

eclipse,python-2.7,package
I'm having trouble with relative imports, but I think its because i'm not understanding package structure completely. For example, here is my package structure. neo_autorig/ Source folder, Top level __init__.py basic/ Subpackage for basic utiltites for the script __init__.py name.py name_test.py module_locator.py Theres more than this, but this is basically...

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...

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...

Why a public class needs to be imported in package other than it's own?

java,inheritance,package
I didn't get any specific answer to this question; If a class is public, then why it needs to be imported during inheritance in another package?

How to compile and simulate a modelica model that is part of a package with JModelica?

package,modelica,openmodelica
My question is similar to the question of janpeter. I study the ebook by Tiller and try to simulate the example 'Architecture Driven Approach' with OpenModelica and JModelica. I tried the minimal example 'BaseSystem' in OpenModelica and it works fine. But with JModelica version 1.14 I get errors in the...

cannot find -lfcl using fcl library

cmake,package,ros,fcl
I want to run a ROS node using fcl library. I just wrote a small code and I edited the CMakeLists.txt to make sure that I can run the node but I got the following error: /usr/bin/ld: cannot find -lfcl collect2: error: ld returned 1 exit status What should I...

Oracle Sql: How to add multi sub total in sql?

sql,oracle,package,totals,subtotal
I want query multi sub total in query sql. How query multi sub total. please help me. SQL CODE: SELECT MB.COUNTRY_CODE As C_CODE, MB.OPERATOR_NAME AS C_NAME, C.PMN_CODE AS OPER_NAME, (C.RANG_START / 1024) AS R_START, (C.RANG_END / 1024) AS R_END, COUNT(*) AS T_OPER, '0' AS TE_CHARGE, SUM(C.RATE) AS TR_CHARGE FROM IR_V_IMM_RATE_BY_CDR...

Can't install any python package from the python command prompt

python,shell,install,package
I am trying to install some python packages from the python shell but I get syntaxError. I am using python 3.4.3 which supposed to come with pip installed and I can see pip3 pip3.4, pip, easy_install, and easy_install-3.4 under scripts but whenever I run the command in the shell I...

How to compile dependent .java files located in different packages

java,import,package
I have a folder named pack, inside that there are two folders p1 and p2. inside folder p1 i write the following code in file named sum.java package pack.p1; public class sum{ public static void Display_Sum(int a,int b){ System.out.println("Sum = "+(a+b)); } } then inside folder p2 i write following...

Reading a Gephi graph in R

r,graph,package,gephi
I would need to read a Gephi graph into Rstudio. To do the contrary - reading a R graph into Gephi - I found the rgexf package and the write.gexf function. But there is apprently not a read.gexf :) Do anyone have a solution to this little issue ? Sincerely...

PL/SQL Packages inserting count Number autmomatically in variable

oracle,variables,plsql,count,package
the Exercise is: Create a public variable in a package called v_Guest_Count that is automatically initialised with the number of Guests in the Guests table. Use the following SQL: SELECT COUNT(*) FROM Guests; I tried it like this but it won't work: create or replace PACKAGE BODY BEACHCOMBER IS v_guest_count...

Cant install a package in R

r,install,package
I cant seem to install this package. package ‘zoo’ successfully unpacked and MD5 sums checked Warning: unable to move temporary installation ‘C:\Users\Xiang\Documents\R\win-library\3.2\file248444b815fb\zoo’ to ‘C:\Users\Xiang\Documents\R\win-library\3.2\zoo’ Does anyone have a solution to solve this problem? Thank you....

Using external class files in a package

java,package,classpath,javac
I have a program that uses an external library called JHelper located in a neighboring folder home |--lib | |--JHelper.java | `--JHelper.class `--prj `--HelloWorld.java The HelloWorld.java file //package prj public class HelloWorld { public static void main(String[] args) { String echoed = JHelper.echo("Hello World"); System.out.println(echoed); } } I can compile...

How to get all sync adapters (type/authority) for a specific package

android,package,sync,authority
I'm trying to determine the list of sync adapters an installed apps provides, but I can't find anything linking a sync authority and the package/app handling it? Using AccountManager.getAccountsByType only provides account, no authority or package information at all. Using ContentResolver.getSyncAdapterTypes() provides all sync authorities available, however I'm unable to...

Roxygen error “Skipping invalid path”

r,package,devtools,roxygen2
The output from running devtools::document(). I have no idea how to fix this and the roxygen documentation is not great at helping figure error messages out. Any ideas on how to get rid of this so my functions can be documented? Updating NEONExclusionZones documentation Loading NEONExclusionZones First time using roxygen2...

how to version packages in golang?

go,package,version
I've read a whole bunch of articles and SO questions on importing 3rd party go packages which all seems straight forward, but what I don't understand is that none that I have read make any references to versioning. In Dartlang there's the pubspec file that defines your package including its...

Python package broken after moving it to CentOS server

python,deployment,package
I have a python app that I have moved recently from the Windows box I developed it on to a Linux (CentOS) server. Everything runs fine in PyCharm on my workstation I wrote the code on, however, upon zipping/tarring the containing folder, regardless of where I move it, I get...

Generate two different package using CPack in cmake : Linux

c++,linux,cmake,package,cpack
I want to create two different package for my project. DCM (Includes all the modules except RCM specific module ) RCM (Specific Module.) 1. DCM : src/CMakeList.txt cmake_minimum_required (VERSION 2.8) add_subdirectory(ecs) # Include all modules set(CPACK_GENERATOR TGZ) set(CPACK_PACKAGE_NAME "dcm") set(CPACK_PACKAGE_VENDOR "AB") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Device Control") set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")...

npm update doesn't update the package

npm,package
I've run into a issue where I try to update a package on a remote server, specifically the mongoose package. If I run npm mongoose --version it will return a version number of 1.3.10. However in package.json the version specified is ^2.7.4. I've tried to run npm update and it...

Unable to register my bower package - No versions available

sass,package,packages,bower,bower-install
My bower package sass-smacss: https://github.com/leongaban/sass-smacss And my bower.json file: { "name": "sass-smacss", "version": "1.0.0", "description": "SMACSS based SASS modules for organized style writing", "homepage": "https://github.com/leongaban/sass-smacss", "main": "sass/main_web.scss", "authors": [ { "name": "Leon Gaban", "email": "[email protected]", "homepage": "http://leongaban.com", "twitter": "@leongaban" } ], "repository": { "type": "git", "url": "https://github.com/leongaban/sass-smacss.git" }, "keywords": [...

Install package into custom directory Composer

path,install,package,composer-php
Hey I am trying to install a package into a custom 'admin' directory using composer. Here is my JSON: { "name": "frontier/installer", "description": "The best front end engineer package around", "require": { "aheinze/cockpit": "*" }, "extra":{ "installer-paths":{ "admin": ["aheinze/cockpit"] } } } Now when I run composer install it all...

Get date and time of installation for packages installed via pip

python,package,pip
I would like to find a way to get the calendar date and time in hour:minute:seconds format for my packages installed via pip. I would like to be able to see something in output like: Month/Day/Year - Hour:Minute:Seconds for each package. Thanks!...

GHC can not find installed module

haskell,package,ghc
My haskell installation can not find bytestring module installed by operating system $ ghci GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> :m +Data.ByteString.Lazy <no location info>: Could not...

How to use S3 methods from another package which uses export rather than S3method in its namespace without using Depends or library()

r,package,r-package,r-s3
I'm working on an R package at present and trying to follow the best practice guidelines provided by Hadley Wickham at http://r-pkgs.had.co.nz. As part of this, I'm aiming to have all of the package dependencies within the Imports section of the DESCRIPTION file rather than the Depends since I agree...

pyinstaller with namespace packages

python,namespaces,package,pyinstaller
I have a module/package structure where I am using namespace packages, I have multiple user made libraries which I keep in separate repositories, and they have fairly generic names like db, io, utils and so on. To avoid conflict with other packages I have a top level/namespace package named acme,...

Relationship between a package statement and the directory of a .java file?

java,package
Consider a package hierarchy folder1/hi. folder1 contains B.java and hi contains A.java. B.java: package hi.a12.pkg; public class B { } A.java: package a12.pkg; public class A {B b; } Now B.java compiles successfully, but A.java does not. Since both should produce class files in same location. Hence they should be...

How to make package inside master package in Android project using Eclipse?

java,android,eclipse,package
I read here - How to create new packages in an Android project how to make a package, but I need to make a package inside master package com.example.me. Every time I try to make new package there, it makes package in src folder, not in com.example.me package. I mean...

How does javac automatically compile dependencies of a class

java,import,package,javac
Given the following directory structure: /top |--- wrk |--- pkg |--- A.java |--- B.java Assume that the two files A.java and B.java contain the following code, respectively: // Filename: A.java package pkg; class A { B b; } // Filename: B.java package pkg; class B {...} Assuming that the current...

Problems building an R package (NAs introduced by coercion)

r,shell,package
I have written the Boggler package which includes a Play.Boggle() function that calls, on line 87, a progress bar script using shell: shell(cmd = sprintf('Rscript.exe R/progress_bar.R "%i"', time.limit + 1), wait=FALSE) Everything works fine when sourcing the files individually and then calling the main Play.Boggle() function, but when I try...

Finding the attributes of a package in Ubuntu

python,ubuntu,package,apt,aptitude
i want to find and print all attributes of a package using python. I'm using ubuntu and developing in python. I can search and find all packages. FOr example one these packages is "eclipse-cdt". I want to develop a code giving the attributes of this package, such as, isInstalled, isUpdateable,...

How to create own MSI package with Open Source Software? [closed]

windows-installer,package
does anyone know an Open Source Software for creating own MSI packages? I wanna create an MSI file for installing a 3rd party Software. Currently it's installed via different commands (bat-file) and with different configuration files. Is there a free Open Source software for recording an installation so that i...

Difference in package importing between Python 2.7 and 3.4

python,python-2.7,import,package,python-3.4
For this directory hierarchy: . ├── hello │   ├── __init__.py │   └── world │   └── __init__.py └── test.py And the Python source files: test.py: if __name__ == '__main__': import hello hello/__init__.py: import world hello/world/__init__.py: print("yes you win") Running test.py with Python 3.4 throws ImportError saying that module world is not...

auto set options in own package

r,package,devtools,roxygen2
it is probably bad style but can I modify options on package loading? E.g. my package should set the following options options(java.parameters = "-Xmx8000m") options(dplyr.width = Inf) lattice.options(default.args = list(as.table = TRUE)) lattice.options(skip.boundary.labels = 0) ...

import to all package member files (package scope)

scala,import,scope,package
I have multiple class files in one package/directory. Similar to this: File 1: package model import same.library class File1Class {}[...] File 2: package model import same.library class File2Class {}[...] etc... Being part of package model already allows each member to access all package model-defined classes, so I was wondering if...

What happens when export names conflict in Meteor?

javascript,node.js,meteor,package
I read that in Meteor, If your app uses the email package (and only if it uses the email package!) then your app can see Email and you can call Email.send. Most packages have only one export, but some packages might have two or three (for example, a package that...

Installing Atom packages with git port blocked

c++,git,package,atom-editor
I'm trying to install the autocomplete-clang plugin for atom. Unfortunately my company firewall blocks the 9418 port which is used by the git:// protocol. I'm able to install plugins which use https:// URL to clone git repos and dependencies but when I try to install autocomplete-clang I get the following...

shell script to install a package if not alreay installed

shell,package
I have made a C program, but it depends on the ncurses library. So, when i give my code to anyone else, I have to ask him/her to install ncurses library first then only compile the code using the Makefile i provided. However, I want to write a shell script...

How to check installation and version using command line for any package?

linux,command-line,package
Like I want to check python version, I will do: python -V but for checking nltk version, nltk -V will not work. I have to do: python -c "import nltk; print nltk.__version__" Is there any generalized way to check whether particular package or library x is installed or not, if...

In a package: ORA-00942 table or view does not exist

oracle,plsql,datatable,package,oracle-sqldeveloper
So, I think I've scoured all the similar posts and can't solve mine. In a pkg spec, I declared: TYPE record_type IS RECORD (Pat_Nbr VARCHAR2(4), Trt_Procedure VARCHAR2(5), Phys_ID VARCHAR2(3), Phys_Name VARCHAR2(20), Phys_Specialty VARCHAR2(18)); TYPE table_type IS TABLE OF record_type INDEX BY BINARY_INTEGER; t_Pat_Trt table_type; PROCEDURE BuildPatTbl (t_PatTrt OUT table_type, PatTblCount...

java - Eclipse Helios SR 2 Package explorer error

eclipse,ide,package,explorer,helios
I need help. I was starting to work on a new project in Eclipse and so I decided to rid my package explorer space of any past projects within the IDE. I had 2 projects saved prior to opening the IDE: "new" and "project 1." I proceeded to delete project...

My version of python have multiple versions of packages in 'site-packages', is it safe to delete some of them?

python,python-2.7,package,package-management
I have, in /usr/local/lib/python2.7/site-packages multiple versions of the same package. E.g. I have django-angular-0.7.13-py2.6.egg, django-angular-0.7.13-py2.6.egg-info, and django-angular-0.7.13-py2.7.egg. Is it safe to delete the two files that are, ostensibly, the wrong version? When I got into the python interpreter, import the package/module, it tells me it's run from <module 'django_angular' from...

Composer Package Error

github,package,composer-php,versioning,gravatar
I'm not sure what I've done wrong here. I've created a package and I'm trying to require it by using this: composer require "karl-ballard/gravatar" : "1.0.*" However, I keep getting this as an output: InvalidArgumentException Could not find package 1.0.* at any version for your minimum-stability (stable). Check the package...

Creating a new ServiceProvider / Facade as a package in Laravel 5

php,laravel,package,composer-php,laravel-5
Introduction I've never worked with a framework before (Zend, CakePHP, etc) and finally decided to sit down and learn one. I'm starting with Laravel because the code looks pretty and unlike some other frameworks I tried to install, the "Hello, World!" example worked on the first try. The Goal For...

Python - Can I import specific classes when importing all from a package

python,import,module,package
I have a package set up with a tree structure like pkg\ __init__.py module1.py Class11 Class12 module2.py Class21 function21 I want specific classes and functions to be in the global namespace such that when I start my script with from pkg import * I will be able to directly use,...

How to install the latest version of a package using composer in the command line?

php,laravel,package,composer-php,laravel-5
i'm trying to install the latest version of cviebrock/eloquent-sluggable that is compatible with laravel 5, i believe this is the 3.0.0-alpha / dev-master version. however when i run composer require cviebrock/eloquent-sluggable it try's to pull in version 2.x witch is only compatible with Laravel 4. Using version ~2.0 for cviebrock/eloquent-sluggable...

make available only a subset of functions in python package

python,function,package
I am currently creating a package for python but I would like to give access to the user only a specific set of functions defined in this package. Let's say that the structure file is as follows: my_package/ __init__.py modules/ __init__.py functions.py In functions.py, there are several functions as below...

Package (Python PIL/Pillow) installed but I can't import it

python,package,pip,packages,pillow
I've been using python for simple data processing scripts, but now I want to do some image processing and I encountered a problem. Importing the pillow module doesn't seem to work. I found a simple script here to check what packages are installed and I found it, but importing it...

UML: packages within packages

package,uml,aggregation,composition
I am working on a UML package diagram, and was wondering: a lot of my packages have a related topic in common, so i put them into a more general package. When drawing the UML diagram, do I literally draw the packages within a larger package? Or, do I use...

Composer autoload file not work if set in repositories

php,cakephp,package,composer-php
i wrote the followings "repositories": [{ "type": "package", "package": { "name": "rysas/ffxiv-lodestone-php-api", "version": "dev-master", "source": { "url": "git://github.com/rysas/Final-Fantasy-XIV-Lodestone-PHP-API.git", "type": "git", "reference": "origin/master" }, "autoload": { "files": [ "vendor/rysas/ffxiv-lodestone-php-api/ffxiv-lodestone-api.php" ] } } }] After doing a composer update, my library isn't loaded, everything works fine if i do the following "repositories":...

The type java.util.Map$Entry cannot be resolved

java,jar,package
I've a JSP file which needs the class Map, which belongs to javax.script (if I'm not wrong). I've imported it, but I'm getting the following error: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files After doing a bit of research, I think it's because...

What is the purpose of packages “provide” and “ifneeded” command in TCL?

package,tcl
I Want to know , What is the purpose of packages "provide" and "if-needed" commands in TCL ? Please any body clarify my doubts. Thanks in Advance. ...

Making R-Package: NAMESPACE

r,package
I am creating a R-package and I am at the step where I BUILD the package. I have read the Writing R Extensions documentation about NAMESPACE (more specifically the sections 1.5.1 and 1.5.2 on import, export and on registering S3method). I am worrying about this step because when I CHECKmy...

What is the reason python needs __init__.py for packages?

python,module,package,init
I understand that python needs the __ init __.py file in order to recognize the directory as a python package, that way we can import sub modules into our program.I can see the similarity to classes and how init can be used to execute necessary code off the bat. However,...

SSIS package execution succeeds but doesn't do its job

sql-server,ssis,package,sql-server-agent
I use SQL Server Agent to fill tables in DataWarehouse. I have about 50 steps in the job and every step is run with a proxy account. And every step works correctly besides one: SSIS package which contains about 20 Execute SQL Tasks which execute procedure. This is what I...

Unity3D 5 packages conflict

unity3d,google-play,package,admob
I have Unity 5.0.2f1. Firstly, I've successfully added GooglePlayGamesPlugin-0.9.20.unitypackage to my project. Then, I've tried to import GoogleMobileAds.unitypackage, but I got these errors: Error importing folder (The pathName assets/plugins is already mapped to fce8a713f1e5a4cc4b9973d1ef630f31. But the meta data wants it to be mapped to cbde64d36fd994c458fffca9e931b232) Error importing folder (The pathName...

How do you use the meteor-accounts-t9n package?

javascript,meteor,package,translation
I'm once again attempting to use the meteor-accounts-t9n package and I'm seriously flipping out with the vague explanations provided in the package's GitHub. I added the package with meteor add meteor-accounts-t9n as well as the accounts-password and accounts-ui packages. Then I created part of my usual project structure: client folder,...

Override a package method, when that method is internally imported within the package

python,package,override,python-import
If I import a package, let's say networkx. How to override one method inside it so that it's the one called by every other function inside the package ? Example : import networkx as nx def _draw_networkx_nodes(G, pos, nodelist=None, node_size=300, node_color='r', node_shape='o', alpha=1.0, cmap=None, vmin=None, vmax=None, ax=None, linewidths=None, label=None, **kwds):...

Updating Rows In a Table That Was Used to Import From SSIS

sql-server,ssis,package
I am currenly creating a SSIS package that selects the top 2000 entries from one table and insert those entries into another table. How can I update those entries in the original table (my select contains a condition whereby I check where the status is still empty) so in my...

Perl: Static vs Package methods

perl,static,package
I need to create a package which will be used by other developers. What is the best way to implement static methods? For static (class) methods I must expect 1st parameter $class, and method must be called as a class method: My::Package->Sub1(); From the other hand I can write a...

Discover Meteor Microscope Share It Button

javascript,html,meteor,package,atmosphere.js
How would I add a "Share" button on the left of the "Discuss" button. I wanted the button to be the same style/color as the current "Discuss" button. I added the package from https://atmospherejs.com/joshowens/shareit I added the {{>shareit}} into the post_item.html. <template name="postItem"> <div class="post"> <a href="#" class="upvote btn btn-default...

How to import my own class?

java,import,package
I have this java class : package myClass; public class myClass { private int herAge ; public void setHerAge (int herAge) { this.herAge = herAge ; } } and I want to import this class after compile it in another source file called Test.java exists in the same directory ,...

Importing with package name breaking enum comparison in Python

python,import,enums,package
My friend and I are making chess AIs in Python, but we're running into a mysterious problem with enums. We encode the piece types in an enum like so: Piece.py: from enum import Enum class PieceType(Enum): type_one = 1 ... def recognise_type(my_type): print("Passed ", my_type) if my_type is PieceType.type_one: print("Type...

Unable to load any package in R (unable to load shared object)

r,dll,error-handling,package,shared-objects
I have been using R for the last 2 years. I tried to start the program yesterday to run one of my scripts and the packages that I am using failed to load. I am not sure what happened as it was working fine earlier. I tried to uninstall and...

Why do java source files require package declarations?

java,compilation,package
I think I am failing to understand java package structure, it seemed redundant to me that java files have a package declaration within, and then are also required to be present in a directory that matches the package name. For example, if I have a MyClass.java file: package com.example; public...

how to install Lasagne package with python con windows

python,package,neural-network
I'm new on python and I'm running some script on python 3.4. I'm getting the following error: ImportError: No module named 'lasagne'. Does someone know how to install this package on Python please? ...

How to monitor type within oracle package

variables,oracle11g,package,step-into
I'm working on a perviously developed website that uses oracle as the back end. I'm getting a ORA-06502: PL/SQL: numeric or value error and I'm trying to pinpoint the exact issue. The problem I have is some of the procedures are using for loops with type tables. In the specifications...

How to automate NuGet package creation using Jenkins?

jenkins,automation,package,nuget,nightly-build
For one of my projects I am using many dependencies in the form of NuGet packages. When I change any of them, I need to recreate the package and deploy it every time. We currently have Jenkins setup as our task runner. I was wondering is there a way to...

using “as” breaks imports in python?

python,import,module,package
Why does this work fine in python 2.x: >> import matplotlib >> import matplotlib.pylab while this doesn't? >> import matplotlib as mp >> import mp.pylab ImportError: No module named mp.pylab isn't as just a short hand/alias for the module being used? it doesn't make sense that the first case works...

Import struct from another package and file golang

struct,go,package
I have a problem trying to import a type from another package and file. The struct that im trying to import is the one underneath. type PriorityQueue []*Item type Item struct { value string priority int index int } If i would put the PriorityQueue alongside with all of it's...