Python Resources Part 1

The default Django tutorial – Excellent and a great introduction!
https://docs.djangoproject.com/en/1.5/intro/tutorial01/

Some other tutorials to check out
http://www.ianlewis.org/en/administer-wordpress-django-admin
http://www.netmagazine.com/tutorials/get-started-django
http://www.webreference.com/programming/python_django_blogs/index.html
-> http://net.tutsplus.com/tutorials/python-tutorials/building-ribbit-with-django/

Python Apps
{USELESS – OUT OF DATE}https://github.com/nathanborror/django-basic-apps/
http://pinaxproject.com/
http://djangosnippets.org/
https://bitbucket.org/codekoala/django-articles/overview
https://github.com/schbank/Thaddeus

Ref
http://www.ibm.com/developerworks/opensource/library/os-django/index.html
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html
http://www.jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/
http://www.aptivate.org/en/blog/2013/01/22/making-it-obvious-which-copy-of-a-django-site-you-are-using/

Installation
http://docs.python-guide.org/en/latest/starting/install/win/
http://tumblr.intranation.com/post/766290325/python-virtualenv-quickstart-django
http://bitnami.com/stack/django/installer (note – pick version 1.5)

Tips and Tricks
http://ericholscher.com/blog/2008/oct/5/django-tips/
http://stackoverflow.com/questions/15128135/django-setting-debug-false-causes-500-error
http://www.brankovukelic.com/2013/04/three-awesome-django-admin-enhancements.html

Other Interesting
http://blog.smalleycreative.com/tutorials/setup-a-django-vm-with-vagrant-virtualbox-and-chef/

CSS/JS
http://twitter.github.io/bootstrap/index.html

Advertisements

Firewall for Mac OSX

Trying to NoobProof from http://www.hanynet.com/noobproof/

EDIT: Works as advertised, at least for blocking outgoing connections to specific URLs, which is what I was looking for (through blacklists). It is merely a GUI for the ipfw firewall installed by default (that’s what the “regular” firewall uses, except the UI for that only allows you to block incoming connections) and so in order for it to be active, you need to have the regular firewall turned on.

Posted in Mac

Levinux – Making addition of Django python framework permanent

EDIT: Doesn’t work. For some reason, I am missing the django cache module and the paths are still messed up. Need more research.

Levinux is a Micro Core Linux virtual appliance geared towards python development. Problem is it is core python only and I wanted to use a python framework called Django but the django module kept disppearing between restarts. To make the addition of the framework permanent,

  • Add in /opt/.filetool.lst the following line

usr/local/lib/python2.7

  • Run the following command to save the changes

filetool.sh -b

 

 

Mac – Password Manager

I like the idea of a local database that I replicate on different machines using DropBox (that’s LastPass out), I couldn’t get Keepass to work (crashed upon launch despite a successful install of Mono and XQuartz) and Dashlane seems to only work through its browser plugins (ie I can’t just copy a password to the clipboard).

Since I am using PasswordSafe on Windows and Linux, I tried to install PasswordSafe with WineBottler and it worked to the extent I can open the PasswordSafe database but copy to Clipboard didn’t work.

I then tried PasswordGorilla, a clone of PasswordSafe (as per http://passwordsafe.sourceforge.net/relatedprojects.shtml) that has installers for Windows, Linux and Mac AND works with existing 3.x PasswordSafe databases (which then can be re-opened with PasswordSafe on Windows) – details at http://passwordsafe.sourceforge.net/relatedprojects.shtml and downloads at http://gorilla.dp100.com/downloads/. So I’ll give it a shot and update this post if it doesn’t work out.

Posted in Mac

Mac – Burn an ISO to USB

Extract from http://forums.macrumors.com/showthread.php?t=598291

– Insert USB Stick

– Open Disk Utility, Click ERASE. Format USB using MS-DOS (FAT)

– When Disk appears in Left hand column, right click and get Information (note down the “Disk Identifier : eg disk6”)

– Then right click the Disk and select Unmount. (the drive still shows but the disk unmounts)

– Switching to the Terminal App

– Change to superuser / root, by issuing:

sudo su – (then enter your password)

– Change directory to where ever your recently downloaded .iso image is stored, eg: Downloads – My file iso is called ubuntu-11.04-server-amd64.iso, (approx 650mb) so use the following command:

dd if=ubuntu-11.04-server-amd64.iso of=/dev/disk6 bs=8192

– This will start copying the file to the USB stick. There is no “verbose” or screen “output” of what is happening. But after 15mins you should see something like:

Mac-Pro: Downloads root# dd if=ubuntu-11.04-server-amd64.iso of=/dev/disk6 bs=8192 86222+0 records in 86222+0 records out 706330624 bytes transferred in 461.654162 secs (1529999 bytes/sec)

Posted in Mac