Thursday, March 8, 2012

Compiling Bonobo.Git.Server from Source

After downloading Bonobo.Git.Server source code:
https://github.com/jakubgarfield/Bonobo-Git-Server

I experienced a few problems getting started.

I suspect that just installing the following will allow you get to business immediately:
but here is the path I took...

Problem 1:
I was not able to open the project.  It reported this error in VS2010:
Error : The Project Type is not supported by this Installation

Solution 1:
Edit  Bonobo.Git.Server / Bonobo.Git.Server / Bonobo.Git.Server.csproj and remove
{e53f8fea-eae0-44a6-8774-ffd645390401}; from ProjectTypeGuids


Problem 2:
A lot of web dependencies are missing, and the "Install Web Components" button does not work in VS2010

Solution 2:
Install Microsoft Web Platform


Problem 3:
Error 175: The specified data store provider cannot be found, or is not valid.

Solution 3:
Install ADO.NET 2.0 Provider for SQLite



References:

  1. http://social.msdn.microsoft.com/Forums/is/vssetup/thread/e68a080d-b394-4c8b-b593-438b82c284b8

  2. http://social.msdn.microsoft.com/Forums/en/vssetup/thread/90f13749-8eaa-4a1b-b29e-b621b54cbefe

  3. http://stackoverflow.com/questions/4444742/error-175-the-specified-data-store-provider-cannot-be-found

Tuesday, March 6, 2012

Bonobo Git Server - "The remote end hung up unexpectedly"

Problem:
The following error occurs in SmartGit when trying to push an existing local repository to a new remote repository on Bonobo Git Server:
Push:
The remote end hung up unexpectedly
The remote end hung up unexpectedly
RPC failed; result=22, HTTP code = 404

Solution:
Modify the web.config file in the root of Bonobo.Git.Server (C:\initpub\wwwroot\Bonobo.Git.Server\Web.config) and up the limits on the following lines:

<system.web>
   <httpRuntime maxRequestLength="102400" />


<security>
   <requestFiltering>
     <requestLimits maxAllowedContentLength="102400" />

In both cases "102400" was replaced with "999999999" and the push worked!

References:

  1. windows - Issue with GIT hosted on IIS with Bonobo - Stack Overflow

Redirect a Python Import

Problem:
You need to redirect a Python import to a module or package in a relative location.

Solution:
Create a dummy module that replaces its own reference in sys.modules with a reference to a module or package in another location.
# Paste this in the module being imported, in this example a package
# Note that when del sys.modules[__name__] is executed, local variables no longer accessible
# You can store items in sys.argv if exec('import {0}'.format(module_name)) needed,
# but you get the following warning:
# RuntimeWarning: Parent module 'attila' not found while handling absolute import
import os
import sys

RELATIVE_VALUE = -1  # Directories to step up:  -1 = . (packages only), -2 = .. , -3 = ... , etc.
PATH_APPEND = []  # After step up, append this sub path, example: ['foo', 'bar'] -> /foo/bar is appended

pth = os.path.sep.join(__file__.split(os.path.sep)[0:RELATIVE_VALUE] + PATH_APPEND)
sys.path.insert(0, pth)

del sys.modules[__name__]
import foo  #name of this module, and the one you are redirecting to


Reference: 

  1. http://stackoverflow.com/questions/4855936/how-can-i-transparently-redirect-a-python-import/9450785#9450785 
  2. https://gist.github.com/1983695

Thursday, March 1, 2012

FlashBuilder Fails to Launch: JVM terminated. Exit code=-1

Problem:
FlashBuilder fails to launch, with a "JVM terminated.  Exit code=-1" error:



Solution:
Delete the following line from the FlashBuilder.ini file in root of your installation directory:

-XX:MaxPermSize=512m


The default installation directory on 64bit Windows 7 is:

C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\FlashBuilder.ini



References:
  1. http://www.blog.techsplice.com/archives/38

VirtualBox - Windows 7 fails to install - Status: 0xc0000225

Problem:
While attempting to install Windows 7 as a guest on a Linux host using VirtualBox, the following error occurs during installation:

Windows failed to start...

Status: 0xc0000225

Solution:
In the VirtualBox settings for the virtual machine, select "Enable IO APIC" under System > Motherboard.

References:
virtualbox.org • View topic - [SOLVED] Windows 7 fails to install; Status: 0xc0000225