package

What is an elegant way to find versions of packages on a pypi package index?

Currently I'm using a very ugly approach based on a regex for finding links and taking them apart. I'm unhappy with the code, so I'm asking for nicer solutions, preferably using only the stdlib. Edit The task at hand has 2 parts: Find all distributions that match a certain criteria (like prefix of the name). Find all versions availa...

Not able to run SSIS PACKAGE by DOS commands

Hi... I want to run a SSIS package in command prompt... for that i used the command dtexec/f "C:/Filename.dtsx"...but when i executethis command i am getting an error like "Product level is insufficient for the component "Data Conversion"... but when i run the SSIS package in BIDS,it executed successfully... y is that?? is it because o...

How do I organize my java packages in our web mvc project?

Do you have any good tips on how should i organize class packages for my java project? We are usually building web MVC projects and our structure is something like this com.company.project.model.* - all model classes com.company.project.service.* - all service classes com.company.project.service.entity.* - service classes related to pa...

How do you work on Oracle packages in a collaborative, version-controlled environment?

I'm working in a multi-developer environment in Oracle with a large package. We have a DEV => TST => PRD promotion pattern. Currently, all package edits are made directly in TOAD and then compiled into the DEV package. We run into two problems: Concurrent changes need to be promoted on different schedules. For instance, developer...

How do I structure Python code into modules/packages?

Assume I have this barebones structure: project/ main.py providers/ __init.py__ acme1.py acme2.py acme3.py acme4.py acme5.py acme6.py Assume that main.py contains (partial): if complexcondition(): print providers.acme5.get() Where __init__.py is empty and acme*.py contain (partial): def get(): v...

Unable to find/install the Java package acm.graphics

I get the following error message RobotFace.java:3: package acm.graphics does not exist import acm.graphics.*; ^ It suggests me that I do not have acm.graphics -package. I have tried to find and install the package in MacPorts unsuccessfully by port search acm How can you install acm.graphics package in your computer for Java? ...

designing Java interfaces with ordinary-sounding names, that "play nicely" with other packages.

I'd like to define an interface called Tag in a Java package I am working on, but am hesitant to use such an ordinary-sounding name because of the collision issue. (e.g. you can import only one class or interface with a particular name; if there are more than one that share the same name, you can use import for one of them, but the rest ...

How to use \L DOS command for creating Log file in SSIS

Hi, I'm trying to use the below command to execute for generating the log file for SSIS package. DTExec /FILE "C:\Documents and Settings\CP0808\My Documents\Test.dtsx" /logger "DTS.LogProviderTextFile;c:\log.txt" But it got the error as below. Please advise. Started: 12:03:20 AM Error: 2009-05-04 12:03:21.15 Code: 0xC001000E ...

How to make maven place all jars common to wars inside the same EAR to EAR root?

We have a solution with numerous wars. Wars are similar in the sense they all use hibernate and spring. This means that we have a number of same jars inside each war. This is becoming a problem, because the size of the ear is starting to grow out of proportion. I would like to use Maven to calculate dependencies and to place all jars co...

Standard non-code resource location for python packages

This should be a common scenario, but could not find any relevant post yet.. I plan to deploy a Python library (I guess the same applies to regular applications) which makes use of some images and other resource files. What is the standard location for such items? I imagine, for project Foo, the choices would be Have resources directo...

Wrap files in one executable package

Hi I'd like to wrap a bunch of files (an .exe a .xml, some images) in 1 executable package. When the user launches this executable package the .exe included in this executable package should run. Is this possible in the first place on the windows platform? What I'm not looking for is a self extracting zip or an installer because both o...

How do I add an init.d script into a .deb

I have a project.init file in the debian directory (along with rules, control, etc), and I have dh_installinit in my rules file (in the binary-arch rule). When dpkg-buildpackage completes, the init script has been copied to debian/project/etc/init.d/project, and the various pre/post scripts have been created. However, when I actually i...

Execute a Groovy class in a package from the command line

Is there a way to execute a Groovy class by specifying the package with dots, as with java? Example: File ./my/package/MyClass.groovy: package my.package class MyClass { static void main(String[] args) { println "ok" } } > cd my/package my/package> groovy MyClass ok > cd ../.. > groovy my/package/MyClass.groovy ok > groovy ...

How do I deploy/import war package into Netbeans

Hi there, I have looked through the help documentation in netbeans 6.5.1 but cannot find anything explicit explaining how to deploy/import a war package. I know in Eclipse, it's as easy as right clicking in the Project Explorer >> select IMPORT >> WAR FILE. However, I still am unable to find a solution for Netbeans. Thankyou, Jordan ...

Package for distributing calculations

Do you know of any package for distributing calculations on several computers and/or several cores on each computer? The calculation code is in c++, the package needs to be able to cope with data >2GB and work on a windows x64 machine. Shareware would be nice, but isn't a requirement. ...

Load a single symbol from a LaTeX package

When using the MnSymbol package, pdflatex gives two font warnings: LaTeX Font Warning: Encoding 'OMS' has changed to 'U' for symbol font (Font) 'symbols' in the math version 'normal' on input line 120. LaTeX Font Info: Overwriting symbol font 'symbols' in version 'normal' (Font) OMS/cmsy/m/n --> U/MnSym...

When should you use a package variable vs a lexical variable (and what's the difference)?

I'm looking at some older Perl code on Perl Monks to figure out programming with Win32::OLE and MS Word. Scattered throughout the code are variables with names like $MS::Word and the like, without a 'my' included in their declaration. After reading a bit on Google, I understand that these are called 'package variables' versus 'lexical va...

Force my custom debian package to resolve R dependency from specific repository

I've created a ubuntu/debian package that installs an application that depends on R. When installing I want the package to install R from the repository at: deb http://cran.uk.r-project.org/bin/linux/ubuntu jaunty/ because this repository contains the up to date version of R. I've tried adding the package to the sources.list file from ...

In Perl how do you dynamically pick what method to use as a callback?

In Perl, it's pretty trivial to specify a callback or code reference if its package is known: package Foo; sub foo { print "in foo" } # and then package main; sub baz { my $code = shift; $code->(); } baz( \&Foo::foo ); And this prints in foo. Lets say you have an object, ever so trivial, like this: package Foo; sub new ...

Check if Python Package is installed

Hi, what's a good way to check if a package is installed while within a Python script? I know it's easy from the interpreter, but I need to do it within a script. I guess I could check if there's a directory on the system that's created during the installation but I feel like there's a better way. I'm trying to make sure the Skype4Py p...