packages

Latex: Extracting the sty files of all the used packages

Hi. So after writing a large .tex file and using many packages I want to archive everything, not just the .tex .jpg files, but also the .sty files. This is because sometimes some options in the sty files are changed, and then I can't compile the file. The "problem" is that in using Ubuntu, I already installed all the packages in my s...

Can I use rattle on 64-bit R?

Trying to install rattle on a windows server 2008 R2 64bit machine, using 64-bit R ver2.11, I got the following message: install.packages("rattle", dependencies=TRUE) Warning: dependencies ‘RGtk2’, ‘rggobi’, ‘RSvgDevice’, ‘Biobase’, ‘multicore’, ‘marray’, ‘affy’, ‘snowFT’, ‘Rmpi’, ‘rpvm’ are not available When I tried to install one o...

Protected members in a superclass inaccessible by indirect subclass in Java

Why is it that in Java, a superclass' protected members are inaccessible by an indirect subclass in a different package? I know that a direct subclass in a different package can access the superclass' protected members. I thought any subclass can access its inherited protected members. EDIT Sorry novice mistake, subclasses can access a...

JavaCC: How can I make generated boilerplate classes package-private?

Hello, everyone! I know that I can specify the option SUPPORT_CLASS_VISIBILITY_PUBLIC = false; inside a .jj file. But this makes only the generated class itself package-private. The "boilerplate" classes (such as ParseException) are still public. This is very annoying, since I use java.text.ParseException for public exposure of the API...

Python accessing modules from package that is distributed over different directories

Hi, I have a question regarding one single module that is distributed over multiple directories. Let's say I have these two file and directories: ~/lib/python xxx __init__.py util __init__.py module1.py module2.py ~/graphics/python xxx __init__.py misc __init__.py ...

Obtain stored procedure metadata for a procedure within an Oracle package using ADO.NET

Hi, I am trying to obtain the stored procedure metadata (procedure name,parameter types,parameter names etc) for a procedure declared within an Oracle package, using the standard ADO.NET API - DbConnection.GetSchema call. I am using the ODP driver. I see that the Package is listed in the 'Packages' and 'PackageBodies' metadata collecti...

_REQUIREDNAME always nil

I'm trying to use the method for naming a lua package after the filename mentioned here, however _REQUIREDNAME is never defined. For example I have these two files samplePackage.lua: print("_REQUIREDNAME: ", _REQUIREDNAME) return nil; packageTest.lua: require "samplePackage" And when I run packageTest.lua it outputs > _REQUIREDNAM...

Combining packages from different projects into a single project in eclipse

Hi, As part of the Android application I am developing in eclipse, I need to combine two packages from different projects into a single project. I tried copying the files in the package of the second project under the src folder of the first folder and copied other files required for second package into the res folder of the first proje...

Selective jar packaging.

I have my small program.jar that uses a small part of huge library.jar. Is there a tool to repackage several jars into one so it can be run stand-alone and is as small as possible? Update: size matters. ...

Which is your favorite "hidden gem" package on Hackage?

There are a lot of packages on Hackage, some well known (such as HUnit) and some less known (such as AspectAG). I'm wondering which package you think is a hidden gem that deserves more users. Maybe a useful data structure, helpers for monads, networking, test, ...? Which is your favorite "hidden gem" package on Hackage? ...

Include Unit tests in the same package as the source code in Java

I'm getting back into Java after a long stint in the Ruby world and I've got a question about JUnit tests and the source I'm testing. If I've got a package of graphics code for my company, lets call it com.example.graphics, should I include my tests in that package too or should they be included in a seperate package, like com.example.g...

What are simple instructions for creating a Python package structure and egg?

I just completed my first (minor) Python project, and my boss wants me to package it nicely so that it can be distributed and called from other programs easily. He suggested I look into eggs. I've been googling and reading, but I'm just getting confused. Most of the sites I'm looking at explain how to use Python eggs that were already cr...

how to use import javax.microedition.io.HttpConnection; in SE Application in Java

i want to use this import javax.microedition.io.HttpConnection; package in my SE application. my purpose is to connect to the webserver to download a image. i found this code while searching. that code was designed to ME application. can soemone help me to find this for SE application. ...

Do lists of recently added, not recently updated, perl/php/python/ruby/etc. modules exist?

For many programming languages, there are centralized sites (ex. CPAN, PEAR, PyPi, RubyGems, etc.) which list recently updated (existing plus newly added) modules, but I haven't seen any site which allows you to list only recently added/created modules. Can anybody point me to such a site/service? ...

Do lists of recently added, not recently updated, perl/php/python/ruby/etc. modules exist?

For many programming languages, there are centralized sites (ex. CPAN, PEAR, PyPi, RubyGems, etc.) which list recently updated (existing plus newly added) modules, but I haven't seen any site which allows you to list only recently added/created modules. Can anybody point me to such a site/service? ...

importing symbols from python package into caller's namespace

I have a little internal DSL written in a single Python file that has grown to a point where I would like to split the contents across a number of different directories + files. The new directory structure currently looks like this: dsl/ __init__.py types/ __init__.py type1.py type2.py and each type fi...

Creating an R package for windows.

Hi guys, I would like to create an R package which would include classes, methods and functions. The thing is, I managed to create it on Linux (and it is working on Linux), but I can't make the same package work on Windows (which is my main OS). What I tried to do (maybe it was a bit foolish) was to convert the tar.gz into a Zip file ...

Multiple Objects of the same class in Python

Hello, I have a bunch of Objects from the same Class in Python. I've decided to put each object in a different file since it's easier to manage them (If I plan to add more objects or edit them individually) However, I'm not sure how to run through all of them, they are in another Package So if I look at Netbeans I have TopLevel... an...

How do I dynamically discover packages from a partial namespace in perl?

I have a directory structure that looks like: Foo::Bar::Baz::1 Foo::Bar::Baz::2 etc Can I list the packages from something like: use Foo::Bar::Baz; Thanks! Edit: Made it more clear what the modules are. ...

How do you use multiple versions of the same R package?

In order to be able to compare two versions of a package, I need to able to choose which version of the package that I load. R's package system is set to by default to overwrite existing packages, so that you always have the latest version. How do I override this behaviour? My thoughts so far are: I could get the package sources, edi...