packages

Package for fast determination of similarity between two bit sequences

I need to compare a query bit sequence with a database of up to a million bit sequences. All bit sequences are 100 bits long. I need the lookup to be as fast as possible. Are there any packages out there for fast determination of the similarity between two bit sequences? --Edit-- The bit sequences are position sensitive. I have seen a p...

Package module not found in Python 2.5, but found in 2.6

I have package structure that looks like this: ae util util contains a method mkdir(dir) that, given a path, creates a directory. If the directory exists, no error is thrown; the method fails silently. The directory ae and its parent directory are both on my PYTHONPATH. When I try to use this method in Python 2.6, everything is ...

How to compile a class file in Java?

I have the following code generated by Eclipse (.java file). import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Display; public class HelloWorldSWT { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Display display = new Display(); ...

PHP Packaging/Deployment

What is a good way to package a web application in PHP for easy deployment? Currently, I am using make to generate a gzipped tar file. In Java, most people use Maven and build WARs. I wonder if there is a similar standard practice in PHP world. There is a Maven for PHP. I wonder if it's the way to go. ...

How can Notepad++ be extended as an IDE for R ?

Hi all, I am working with NppToR as an extension allowing the use of notepad++ to be an IDE for R. But there are a few features I didn't yet see implemented (I compiled the list from another IDE solution, which is not open source) : Object Browser - Allow users to see all the data and function objects that are available, including tho...

Package Memory Management

Since I have been running in a lot of difficulties when trying to use DLLs, I decided to try out runtime packages (mainly to avoid the memory manager and type registry problems). From my application I do something like this: HandleList := TList <THandle>.Create; try PackageObj.DoSomething (HandleList); finally FreeAndNil (HandleLi...

Share Memory Manager between Application and Package

This question is a follow up of this question. How can I achieve that my application and my runtime package use the same memory manager? I thought that this was the case by default but since I get strange access violations and invalid pointer exceptions, I inserted calls to GetMemoryManagerState just before entry to the runtime package ...

How do I compile my Java source files?

My source files are in this folder: c:\data\mycompany. All of my source files contain the following as the first line: package mycompany; Now from the c:\data folder, I compiled everything using this command: javac mycompany/*.java -extdirs c:\some\other\folder\with\libs. This compiles fine. Now when I try to execute it (again from c:\d...

Python sub-package references

I am about at wits end with what should be an extremely simple issue. Here is the format of a simple example that I wrote to try to fix my problem. I have a folder top with __all__ = ["p1","p2"] in __init__.py . I then have sub-folders p1 and p2 with __init__.py in both of them with __all__ again defined with the names of two simple modu...

Java RMI Netbeans Packages

When using Netbeans I am able to run RMI applications if I don't put the source files in a package, however when I try and split it up into packages. I start to get class not found exceptions any help would be greatly appreciated. ...

Custom components - how to manage?

I've made a couple of programs which I release as freeware on my webpage. One of these programs uses TSpinEdit for some number input. It works quite well, so I haven't really had any reason to use anything else. However, yesterday, a user told me he didn't like how small the buttons were. I can't really disagree, because, well, they are...

using __init__.py

I am not getting usage scenarios or design goals of python __init__.py in my projects. Assume that I have 'model' directory (refers as a package) which I have kept the following files. 1. __init__.py 2. meta.py 3. solrmodel.py 4. mongomodel.py 5. samodel.py I found two ways of using __init__.py. I have common definition which n...

Simulation of molecular dynamics in Python

I am searching for a python package that I can use to simulate molecular dynamics in non-equilibrium situations. I need a setup that can handle a fairly large number of molecules in a primarily kinetic theory manner, and that can handle having solid surfaces present. With regards to the surfaces, I would need to be able to create arbitra...

Placing exceptions in their own subpackage?

In the current package that I am working on for a project I have about 13 different custom exceptions. Is it a good idea to place these into their own subpackage below the package that has all the classes that will be using these exceptions? For example: com.company.project.core contains a bunch of classes which can throw some cus...

CLisp: "use-package" resolving conflicts non-interactively

I'm trying to use parenscript in GNU common lisp to compile a lisp file into a javascript one. I find that using the PS symbol macro "@" doesn't work if I try to use its prefix ("ps:@"). However, if I use the REPL and run (use-package :ps) before I try compiling the lisp file, everything works as expected (and I don't have to use the pr...

Install folder heirarchy to eclipse

I am kind of new to the Eclipse IDE. I have a heirarchy of folders C:\...\org\xmlvm\iphone that contains a lot of java files. How can I use them in Eclipse via import org.xmlvs.iphone;? UPDATE: I found a .project and a .classpath file. Does that help? I also found a .jar file. Do I drop that in plugins or feature? ...

How can I find a package?

In my code I have the following statement import com.apple.dnssd.*; and compiler (javac) complains about this line. It writes that the package does not exist. But I think that it could be that "javac" search the package in a wrong place (directory). In this respect I have two questions: How can I know where javac search for the package...

Interplay between visibility of class and fields.

I learned that a class can be either public or package-private (the last value is the default one). A field of a class also can be either public or package-private. These "statuses" have the same meaning. If something is package-private it is visible only within the same package. It is public it is visible from everywhere (from any packa...

Dynamically manage two jar files with the same package and class names

I have two jar files from a client, one of which is used for a testing and another for final versions. Currently I put them in different folders and modify the library path when deploying our code, but it would be nice to be able to load both jar files and switch between them dynamically at runtime. Is this possible? ...

Package <blah> does not exist error - NetBeans 6.8 & Windows 7

I'm using NetBeans 6.8 on Windows 7. I upgraded from WinXP and NetBeans 6.7. Now my existing java web app project is no longer able to import/find the packages I've developed - I receive a 'Package ,blah. does not exist' and yet the packages do exist, worked fine in NetBeans 6.7 and the project still compiles and runs OK. I've tried ch...