sábado, 7 de julio de 2012

Using Django 1.4 with Eclipse (Part 2 Creating the Models)

I switched to WordPress. My new blog is at luiscberocal.wordpress.com. Part 3 of is at http://wp.me/p1JIuD-3F

This is part 2 of our tutorial on how to use Django with Eclipse. On Using Django 1.4 with Eclipse (Part 1 Configuration) we discussed how to configure Eclipse to work with Django and VirtualEnv.

On Part 2 we'll see how to create a model and synchronize it to the database.


The source code for this tutorial is hosted at https://github.com/luiscberrocal/django_eclipse_tutorial
I'm creating a tag for each part,  the tag for part 2 is https://github.com/luiscberrocal/django_eclipse_tutorial/zipball/Part_02_Creating_the_Models

Git Resources and Tutorials

I recently had to do some research about how Git worked. I saw on YouTube Introduction to Git with Scott Chacon of GitHub which was great for general concepts. But the one that answered most of my questions was this one by Patrick Hogan:

First of all finally figured how to do a fetch and merge instead of a pull.
git fetch

git merge origin/master
Now among the resources listed by Patrick:
  • Git Tower a mac graphic client for Git
  • Kaleidoscope an app to spot differences between files.
  • DiffMerge: an application to visually compare and merge files within Windows, Mac OS X and Linux.
  • Git Immersion: A very nice tutorial for git.
  • Gitolite: allows you to setup git hosting on a central server, with very fine-grained access control and many (many!) more powerful features.
Another great resource I found was Git – setting up a remote repository and doing an initial “push” where the author explains how to display the current branch on your terminal.

viernes, 29 de junio de 2012

Using Django 1.4 with Eclipse (Part 1 Configuration)

I used Python for my master's thesis project and honestly I didn't liked it. Recently I had a project at work and went with Python to solve the problems. In that process I discovered or actually rediscovered Django. So I decided to create a couple of tutorials to help mi get a grip of Django.

martes, 3 de abril de 2012

Suitability Analysis with ArcGIS (Part 3 Suitable Parcels)

On part 3 we are going to select the most suitable parcels for a waste disposal site.
Some of the tools we'll be using are:
1. Times
2. Raster to Polygon
3. Set Null
4. Select

miércoles, 28 de marzo de 2012

Suitability Analysis with ArcGIS (Part 2 Suitability Model)

On part2 of our tutorial we'll discuss how to create the suitability raster.
Among the Spatial Analyst tools that we'll be using are:
1. Reclass
2. Weighted Overlay

lunes, 26 de marzo de 2012

Suitability Analysis with ArcGIS (Part 1 Restriction Mode)

This is a tutorial on how to create a restriction model. A restriction model is a boolean raster of zeros and ones. Where a cell with zero value represents a cell restricted for the proposed use and a cell with value one represents a viable cell for the proposed use.
The tutorial is set to find a suitable area for a waste disposal site. Among the ArcGIS tools used are:
1. Union
2. Feature to Raster
3. Buffer
4. Is Null
5. Con

viernes, 23 de marzo de 2012

Using Zonal Statistics to Explore your Data with ArcGIS 10

I recently was asked by a student of mine for practical example on how to use Spatial Analyst's Zonal Statistic and I couldn't come up with anything practical. After a little research I decided to create this tutorial to show my students how use Zonal Statistics.