packages

VB6 Packaging and Organization

Is there any clean way to package VB6 Class Modules, other than writing DLLs or manually adding prefixes to the module names? EDIT: I'm hoping VB6 has something along the lines of packages or namespaces from other languages. ...

Creating a custom class in the same package defined by a jar file (JMF custom data sources implementation)

I'm trying to extend the JMF implementation for custom data sources in a custom environment. My JMF implementation is packed to a jar file (only class files, all obfuscated). The JMF's package manager uses reflection to instantiate a class. It looks into one of the following packages for the desired class: javax, com.sun, com.ibm. All t...

from where can i get com.sun.cnpi package?

I m building an android application where I need these packages to import: import com.sun.cnpi.rss.elements.Item; import com.sun.cnpi.rss.elements.Rss; import com.sun.cnpi.rss.parser.RssParser; import com.sun.cnpi.rss.parser.RssParserException; import com.sun.cnpi.rss.parser.RssParserFactory; What should I do? From where can I find th...

Organizing multiple Python applications and shared library packages

Suppose that I am writing two applications for my employer, we'll call them App1 and App2. These applications depend on some packages containing code needed by both. Let's say that App1 depends on PackageA and PackageB. App2 depends on PackageB and PackageC. The organizing strategy that seems natural to me would be to check everything in...

Class attributes reset when imported from package

I have a project that is organized something like project/ __init__.py builder.py component/ __init__.py Within builder.py, I have a class called Builder that has several class attributes in order to implement the Borg pattern. The trouble arises when I try to import Builder in component/__init__.py and make change...

Are there best practices for (Java) package organisation?

A little while ago, I saw a question answered here regarding the fine-grained organisation of java packages. For example, my.project.util, my.project.factory, my.project.service etc. I can't find it now, so I may as well ask the question. Are there best practices with regards to the organisation of packages in Java and what goes in th...

Uninstall packages invisible in Android

Hi, I want do uninstall some useless apps from /system. I have super access, and the permission DELETE_PACKAGE in the manifest. But when i run Runtime.exec("pm uninstall package") I get ERROR/AndroidRuntime(10981): java.lang.SecurityException: Neither user 10094 nor current process has android.permission.DELETE_PACKAGES. Anyone know how...

Actionscript 3 Package Trouble

My code is: package com.companyName.softwareName { import flash.display.Sprite; public class SoftwareName extends Sprite { public function SoftwareName() { trace("Testing!"); } } and it is located in C:/dev/com/companyName/SoftwareName as SoftwareName.as Taking the package name out lets it co...

Java package and class name confusions

Suppose somewhere I import javax.servlet.http.HttpServlet. My questions: Does this mean: I could find a folder structure like javax/servlet/http somewhere and inside that HttpServlet.class file would be present? If not, where exactly this class file could be found? Does this mean: These are just nested namespaces with no relevance to...

Where do you keep your Stubs?

One of the JUnit best practices is : same package, separate directories. I am wondering what is the equivalent for Mock classes ? Do you keep them in the same package as classes they are supposed to mock, but in the test directory ? or elsewhere ? ...

Automatically bump versions when building a Debian package

I have a set of Debian packaging scripts and I would like the version number of the package to be incremented each time it is built. (i.e. debian_revision as specified in the Debian Policy Manual) That is, the first build should be PACKAGE-1.0-0, then PACKAGE-1.0-0, and so on (where 1.0 is the upstream_version). Is there an easy way to s...

Grails - IntelliJIdea9 Strange problem with packages

I'm having some trouble on a checked out project here at work. I have a class called GridBuilder, which is located in a package called com.ent.proj.utils.grid package com.ent.proj.utils.grid import grails.orm.HibernateCriteriaBuilder import org.hibernate.criterion.Criterion import org.hibernate.Criteria class GridBuilder { } The w...

Handling missing packages or DLLs in a PyQt app

What's a good way to handle fatal errors - missing packages, .ui files not compiled, Qt DLLs or shared objects not found, etc. - in a PyQt app (or other Python app)? Displaying a cross-platform message box without Qt DLLs or shared objects seems like a lot of work. Dumping a message to the console seems not very helpful, since the end ...

Delphi Environment Setup for Package / Component Development

After reading some mailing lists and bbs, I couldn't find a proper way to setup my development environment for package and component development. Perhaps we can collect some tipps here for a good setup. For component development it is suggested to create a runtime package containing the runtime code for the component and a design time ...

How do I best use a library whose directory may change occasionally?

Hi, I am writing Perl scripts and when I have too many functions, I usually move them all into a library (also good for code reuse). So I usually create a package (e.g. my_lib.pm) and add use lib 'path/to/lib'; use my_lib; to my script. I wonder if it's possible to skip the use lib 'path/to/lib';, which sometimes gives me trouble sinc...

Mac Packaging: proposal for a new method(suggestions please)

Macports is the only packaging system I have checked out on the Mac and I dont like it.(it needs all its applications installed in a particular location. Thats probably the reason why it showed Python2.5 as a dependency which needs to be installed even though I already had it.) For a person who has moved over from Ubuntu, I sorely miss a...

Access Aperture library and import XML

Hello, The library of Aperture is visible in the file system as a package. Inside this package, there's an XML file (among other things) that I want to get access to. The problem is that I can't simply use the path to that XML file due to the fact that the file is contained in a package (which needs to be opened first). Is there a way ...

Perl: How to create objects on the fly?

My goal is to be able to use $obj like this: print $obj->hello() . $obj->{foo}; And I would like to create an object inline, maybe using something like this: my $obj = ( foo => 1, hello => sub { return 'world' } ); but when I try to use $obj as an object, I get an error saying that $obj has not been blessed. Is there some b...

odbcConnectExcel function from RODBC package for R not found on Ubuntu

Installing the RODBC package on Ubuntu is a bit of a kludge. First I learned to install the following: $ sudo apt-get install r-cran-rodbc That wasn't good enough as the package was still looking for header files. I solved this issue by: $ sudo apt-get install unixodbc-dev Good, RODBC installed properly on the Ubuntu machine. But ...

pygsl in debian

Is it possible to install pygsl in Debian? I am using the package and someone with Debian is not sure how to install it without ruining his packaging (since it's not in apt-get.) ...