Showing posts with label troubleshooting. Show all posts
Showing posts with label troubleshooting. Show all posts

Wednesday, December 30, 2009

Git and Unfuddle for python project - using .ignore

This is a reminder to me in case I forget how I got this working.

Main development environment is local laptop
Master reponsitory on Unfuddle.com
Live environment on remote server

There are a few files, like settings.py, that I don't want to be synced and as these files were already in the repository I'd created, git kept trying to sync them.

To resolve:
Assuming already have everything setup - remote server setup with clone from unfuddle.

Create .gitignore file as part of repository:

settings.py
*.pyc
*~
site_media/avatars/*

Remove settings.py from git without deleting on both local and remote environments.

In Local environment:
git rm --cached settings.py
git commit -a -m "remove settings.py"
git push unfuddle master
In remote live environment
git rm --cached settings.py
git commit -a -m "remove settings.py"
git push

That should do it. Now commits can be exchanged without settings.py being updated.

Jerky Mouse on Virtual PC on Dell Laptop

I'm recording the solution to this problem in case it helps someone else with this problem.

STICK SOMETHING IN THE USB PORT!

Install VPC 2007 on Dell laptop (with no mouse) running Windows XP and every time I'd open the VPC guest OS, the mouse would be so slow to respond, sometimes seconds, that it was unusuable. Installed Virtual PC additions, fiddled with the memory settings and all the other solutions I found online, no difference at all. Then found the suggestion to put something in a USB port and in desperation put in a USB stick. It worked! Well that only took 5 hours to solve.