What do I need to do to upgrade an application to the latest Rails version?

I am currently using Rails 2.1.0 and want to upgrade to Rails 2.1.1. After issuing the following command gem update rails I suppose that I need to change this line RAILS_GEM_VERSION='2.1.0' unles…


AccessViolationException from a combo: Attempted to read or write protected memory

Users are occassionally getting the above error when using our application(VB.Net, Winforms, using v2 of the framework). I'm not able to reproduce it. The callstack is as follows::System.AccessVio…


python - Import a module from a relative path

How do I import a Python module given its relative path? For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py? Here's a visual representati…


Refactoring python module configuration to avoid relative imports

This is related to a previous question of mine. I understand how to store and read configuration files. There are choices such as ConfigParser and ConfigObj. Consider this structure for a hypothetica…


Python: import the containing package

In a module residing inside a package, i have the need to use a function defined within the__init__.py of that package. how can i import the package within the module that resides within the package…



c# - Attempted to read or write protected memory

I've started seeing an AccessViolationException being thrown in my application a several different spots. It never occured on my development pc, our test server. It also only manifested itself on 1 o…


python - Importing modules from parent folder

I am running Python 2.5. This is my folder tree: ptdraft/ nib.py simulations/ life/ life.py(I also have__init__.py in each folder, omitted here for readability) How do I import the ni…


java - Mini-OSGi that can run in a sandbox(like AppEngine or WebStart)?

I really like the concept of modular bundles as implemented by OSGi. I also like "managed deployment" services like Google AppEngine(for web application) or Java WebStart(for client software). These…


How to import a Python class that is in a directory above?

I want to inherit from a class in a file that lies in a directory above the current one. Is it possible to relatively import that file?…


Python: Do relative imports mean you can't execute a subpackage by itself?

I've recently ported my Python project to run on Python 3.1. For that I had to adopt the policy of relative imports within the submodules and subpackages of my project. I've don’t that and now the pr…




from import python relative package directory not parent module level