Archive for Computing


Plotting data on videos – A useful way to convey qualitative and quantitive information

flameheight_boxscale_cb_rad1



Every once in a while, someone makes an impression on you that lasts for a lifetime. It sticks with you every single time. This is one of those, although a bit on the nerdy side, it is one that can change the way you present information in a very meaningful way.

I was once sitting at the NIST annual fire conference, going about my business, and someone working on a project regarding the structural response aspect of buildings on fire showed a video in their presentation. No big deal, right? Normally, we get cool fire videos, then some plots, and so on. Sometimes the plots are interesting, sometimes they are default from Excel with the ugly legend and all – with no story to tell.

But not this guy. He showed a video with real-time plots superimposed over the video showing the exact real-time structural response of the structure overlaid on the video in a plot. “AMAZING!” I thought. And it stuck with me. A useful way to convey synchronous information. People love videos, why not tell the qualitative AND quantitative story at the same time?

So I started working in grad. school on fire problems, and naturally, soon thereafter, I was scheduled to give a presentation. As most of my real creative coding and writing work happens of hours between the hours of 1 AM and 6 AM, I wanted to make this happen. I REALLY wanted some real-time plotting action in my presentation. No Excel templates for me! So I stayed up for a couple nights and worked on a way to use MATLAB to make this plotting dream a reality: I worked on importing videos, messing with frame rates, tons of images, and so forth. And soon thereafter, it happened. I had a working script.

I used it to show plots of large-scale fire tests with actual and predicted flame heights vs. time as seen here:

You need to a flashplayer enabled browser to view this YouTube video



And I used the script to show the predicted flame heights on a small-scale test in an amazing way that just about anyone can relate to, fire-crazed scientist or not:

You need to a flashplayer enabled browser to view this YouTube video



From anyone who has seen the videos firsthand, the response has been amazing. This is a great teaching and communication tool, and surprisingly enough, I haven’t found any existing program or tool that does this. And so I am sharing the videos and script here for anyone to use to better convey information.

My next steps are: 1) to convert the script to Python (since I am now almost exclusively using Python+numpy+scipy for my graduate research and daily work instead of MATLAB, and 2) to make the script into a cross-platform and easy to use tool.

I’m providing the code in its raw and uncommented and unedited form. It generates a number of images with plots superimposed on them, and then it is trivial to use a program to stitch them together into a video. I used Quicktime’s built in method. Sorry, too much current work going on finishing my MS thesis and Master’s degree to clean up the code, but it’s a brutal use of the “release early, release often” ideal! Hopefully someone can make some use of it.

So, here are the linked .m files:

http://www.koverholt.com/scripts/ssPlotVideo.m
http://www.koverholt.com/scripts/fireplotVideo.m

Enjoy! And please leave your comments or ideas!

No comment »

How to remove yourself and your thoughts from this world

“… and television on all over the place is leading to a steady dumbing
down of the American public and a corrosion of basic critical thinking in the population.”

- Jamie Raskin, American University law professor, November 2004 on the Democracy Now! radio program


Flickr user sandymichelle


Just this past Sunday I had to kill my television – in the best sense of the word. You know: denounce, unrecognize, and the such. It was really stealing away any free (and productive) time that I had. I mean, the idle brain cells spin out of control and zoning out in front of TV after a long day of work leads to: not caring about what you eat, not thinking critically about other great things in the world, not spending ol’ fashioned time with your family or friends. (Lots of great, original articles about Killing Your TV)

I remember about 4 years ago when I came across a similar “Turn Off Your TV” site online in the form of a podcast. And the 2 people were talking on and on about trans fatty acids. I was so compelled as to what they were saying I remember typing as fast as I could to take notes and replaying parts and looking up health terms and the such. Learning. Critical thinking. Sharing. I went on to write an article in the paper at my school and was excitedly telling everyone about my findings. I continued to look up more and more information – I was addicted to knowledge. Just a few minutes ago, I just finished my meal of baked chicken, couscous, and black bean soup with tomatoes, onions, bell peppers, and garlic. And I know that most of that motivation to eat healthy as I do today came from that little audio finding 4 years back. Now it allows me, 4 years later, a chance for me to just sit and enjoy a meal – in peace and quiet – and experience the flavors of life one by one. Hmm, there was life before TV.

I kept running past the idea that parents talk to their kids about 28 minutes a day while the average adult watches 2.5 hours of television per day. Hmm. What are we doing to ourselves? Now, I’m not being anti-fun here, entertainment is great, and I make it through most of my day with a humorous outlook on life. But I see people ignoring food as they eat, sitting silently among family or friends, just gazing. Paying lots of money – to be advertised to constantly and have this machine suck away brain cells.


Flickr user janz87


I also came across someone who said – if aliens came to visit us and checked out the layout of our homes, they would think the television is some sort of god of ours, as our entire houses are arranged around the careful placement of the television set. And then comes the arguments about using a DVR to save time. Of course, it is better than just mindlessly watching channels and surfing without barriers, but there are other ways to go about getting your fix without paying a crapload (ahem). But I can think of many better things to do anyway! I don’t think you’ll lose sleep at night or have regrets on your deathbed – just wondering and wishing that you you had watched more TV.


Flickr user chrisdonia


On another note, it is awesome to see change and progress going on all around the world, from the recent election all the way down to the small world of fire protection engineering. Every time I watch one of the videos about technology and change in this era – I get all giddy and warm on the inside. It’s true.

There’s a giant conversation going on. And it doesn’t depend on power or money or anything. Just a passion – a want. I think of how one person that I know revamped and forever changed the world of fire modeling by utilizing a couple of free tools to bring together thousands of users who were all previously working in dark corners. I think of how a few scratches I made on a notebook one night turned into a tool that hundreds of fire model users use every week – and I think of the next step, and the next, constantly progressing. I think of those that are “too busy” to participate in this movement and think this is only for nerds and computer people – and how bad I want them to participate.

I came to the conclusion that the two ideas I speak about here are interrelated. Apathy and social sloth. Here’s what I think: no one is any more busy than anyone else. Some of us just want something more strongly than others. And that used to be okay, praised even – when the dark corners were predominant. But now, everything is public – the world pushes upon itself.

Don’t be “too busy” watching TV or sitting out on this big movement – wherever you are or whoever you are. This is big. Join in anytime.

Comments (2) »

The Arrival of Collaboration in Fire Protection Engineering

Earlier today, the professor for my Combustion class mentioned that for our final project, we will be working on a problem that currently has no solution. This intrigued me of course, as I wondered if our final grades would have no solution as well. After he explained, it made all the more sense and reminded me why my love and passion is in the field of fire protection engineering, the school I go to, and the people I work with: they all heavily align with my values and principles of sharing knowledge and making information available to everyone, everywhere.

[From NASA]

So, let me explain his model simply by example:

The professor said that when he first started this class 2 years ago, the students were working on a different problem with no solution… at the time. The class worked together and in the end the results were so significant that a couple of students took the initiative to publish the results in a scientific journal. The same happened when the class was taught last year – project done, paper published.

So what does this mean and why do you care? Well, all too often in the academic world, people can get caught up in working on projects and sort of work themselves into a dark corner where nobody gets to benefit from the results… and this is done in real life as well, not just academics. This is where the ridiculous amount of collaborative technology available to us comes in to play. Want to gather up notes on the Smagorinsky constant and publish them for anyone to find who is searching for them in the next 1000 years? Easy: 5 minutes. Want to publish your results in the most useful way? Easy: work on an open source project in your area along with your research – or make your own.

…Or you could write a paper, finish your thesis work, wrap up the loose ends in a few years and show a flashy poster of your work 5 years after anybody cares about it anymore or thinks it to be useful.

I digress. I just wanted to stress this new method of collaboration that is among us, and how it’s going to change the way that we work together and grow together in fire protection engineering and fire science.

[From Rowan University College of Engineering]

Why not make use of motivated students and brainpower when they come together? Here is me welcoming this new phase of community and collaboration in a field that directly impacts life safety and makes safer buildings around the world. So when we work on that final project in a few weeks, it’s not really at all about a grade anymore – it’s about a new way of doing science – together.

Update: This is exactly the kind of stuff that I’m talking about here, posted today on the SFPE National blog that I set up a year ago – collaboration: Foundation Funded Research underway at WPI

Comments (1) »

Three Men One Trip

Update on the big move to MA

In just over 9 days, I will be departing for the big move to Massachusetts with nothing more than 16 boxes holding 30 cubic feet (about 224 US gallons) of my belongings. I will be traveling with my dad and cousin Abel and leaving behind 23 years of memories physically in the good old Houston of Texas.

The trip will involve a little-engine-that-could Ford station wagon and a Nighthawk 750 motorcycle with the three of us alternating riders for all of the comfort and enjoyment that the 1800 miles will bring upon us. The trip will look something like this:

I was fortunate after looking at 2200+ postings on craigslist to find a place to live for a good price (good by New England’s standards) which has all bills included AND is fully furnished! All I have to go on is a few pictures from the landlord and a few external supporting pictures thanks to modern technology (Thanks Google and Microsoft!):

I’ve tried to make it a focal point just to be a listener for my last days in Houston. My story is already known; I just want to slowly and patiently take information in as the final days leak through the drain.

Tianguis Cultural del Chopo

Last night, I met someone who was embarking on an adventure at the same time as I, except in a much different direction. She lives in Austin and will be taking THE bus down to Monterrey, Mexico then flying into Cuba for a few days. Just to explore the world and take in more experiences, couchsurfing style. What a great idea.

While I was looking around and making a customized Google map to share with her some cool spots that lay back in my memory, I was trying hard by visual cues and street names and picture order to find a punk/hippie/skater flea market that I ran across in Monterrey. I believe that it was fashioned after this concept in Mexico City:

The Tianguis Cultural del Chopo is a Saturday flea market near Mexico City downtown, known locally as El Chopo. [...]

Originally, the Tianguis was a place for hippies to trade sixties memorabilia including not only records but also clothing, magazines, books and other collectibles. Eventually, the Tianguis has also given place to more recent musical styles like metal, goth, punk, grunge and ska, among others. Almost always, some local and touring bands play live gigs at the back of the market, where you can also find the casual traders standing and looking up for that rare and collectable record or CDs.

On the northern end of the market at Aldama and Camelia is an area called Espacio Anarcho-punk. Vendors in this part of El Chopo sell mostly books, movies, and other materials that have an anarchist or radical perspective. Many of the Espacio Anarcho-Punk vendors contribute to a weekly zine of the same title addressing local social issues and radical politics.

(from Wikipedia)

Lots of cool stuff to be seen in the world. :)

Information R/evoultion

An excellent video about how information access, sharing, collaboration, and all of my other favorite things going on in the world is here:

You need to a flashplayer enabled browser to view this YouTube video

Comments (2) »

Wordle Mashup of my Brain

Wordle.net says that if you took my public brain so far and blended it into oblivion, it would look something like this. Looks about right to me!

No comment »

The Big Move to MA

WPI

Welp, I’ve been accepted to start my M.S. and eventually start my Ph.D. at Worcester Polytechnic Institute this fall! I will be studying fire protection engineering, a continuation of my bachelor’s degree. The school is populated with just under 4,000 students and it is a private engineering school. Not only does this school house one of the top fire protection engineering programs in the US, but the faculty and their work align closely with my values and passions in life.

The big move will look something like this in 8 weeks:


Some cool info about the school includes the fact that Robert Goddard went there and graduated in 1908 – he was the gradnfather of modern rocketry with the first liquid fueled rocket. Also, the fire protection engineering department has about 150 masters of science students and 4 (!) doctoral students. This is quite the opportunity I smell.

What I did during the summer of 2008

So far this summer I’m being funded by UHD as a last request to make a catalog of fire models for various textbooks. The work is very refreshing and I love to work when I learn much more than I expected. :) Another cool side effect of this work is that I can include the FDS models and example writeups on my website, free for anyone else in the world to see and learn from. The technical writeup is located here and it gets updated automatically anytime I change a single word in there. Eventually it will have links to FDS files for FDS users and students around the world to download and use on their own – I love technology.

FDS MESH Size Calculator tool

Finally, to finish off a nice post about fire protection engineering and FDS: I updated my FDS Mesh Size calculator on my other website to include some awesome and never-before-done functionality! It now takes in x, y, and z dimensions and an expected heat release rate and gives the user three MESH lines (coarse, moderate, and fine) to guide them on making an FDS file that has an adequately resolved MESH.

The tool can be found here on my FDS/sciency website and the nice folks at NIST gave me a link on their third-party tools page of the FDS website: http://fire.nist.gov/fds/thirdparty.html

—–

I know I post out-there stuff like this on my blog here sometimes, but this is what is on my mind and taking up my mental cycles and daily days. Jump in and read the linked pages or play with the tools of my creation!

No comment »

On equal access to knowledge for all… on net neutrality

Some of my friends and colleagues may have heard me go on a rant or two about net neutrality or equal information access. Hopefully this post will describe my stance a bit better. Those who know me know that I stand strong for open knowledge and easily accessible information for all of us in the world. This includes upholding open document standards and the opposition of tiered-internet infrastructures. But most people that use computers these days, I am afraid, don’t think or feel that these ideals will affect their day-to-day computer usage that they partake in.

Well, I happen to think that it not only affects your daily pursuit of knowledge and you work in whatever field you are in, but it also greatly affects the way we work together as a society, create and bring new ideas into fruition, and nurture successful generations to follow.

Last Thursday, the FCC held a public hearing on net neutrality. 5 commissioners from the FCC joined and heard from leading public scientists, network operators, and entrepreneurs. 2 commissioners were in support of network neutrality, 2 against, and one neutral (pun intended). Also, Comcast and many other carriers were invited to the hearing; however, they declined.

Here is the video from the hearing as well as other snippets on the topic:

You need to a flashplayer enabled browser to view this YouTube video

Jason Devitt, CEO of Skydeck, testifies at the FCC Hearing
You need to a flashplayer enabled browser to view this YouTube video

Law Professor Lawrence Lessig on Net Neutrality and the Rise of Google
You need to a flashplayer enabled browser to view this YouTube video

From Barack Obama’s address at Google
You need to a flashplayer enabled browser to view this YouTube video

You’ll notice I stuck a button on the right of my site in support of net neutrality. I’ll be calling my senator and representatives on Monday morning to let them know of my support of net neutrality and a new Act working its way through the House of Representatives. I urge you to do the same. It is critical to recognize that issues such as Verizon winning the FCC spectrum auction to Microsoft’s OOXML as a international standard to Comcast breaking fundamental ethical and technical ways of the internet are of utmost importance to our current age, culture, and political era.

In the end, regardless of the specific topic at hand, be cognizant of those trying to disrupt and block the progressive movement that is before us. Especially when it involves profit rather than progress. Especially when that blocking impedes our societal learning, sharing, innovation, creativity, and global and equal access to information for all.

No comment »

Apartment fires burn and homes are lost due to outdated modes of thought

[Used from KPRC video click2houston.com]

Fire. It’s what I do. And I happen to subscribe to Google News alerts that have “Houston Fire” in the title. Helps me keep in touch with the fire. It also helpingly disturbs me as to what actually goes on outside of the classroom. Really, it’s quite a good way to keep yourself thinking and valuable if you are stuck with that stagnant smell of your job or classes.

Lots of fires happen everyday. Apartment fires always happen. A lot. Three apartment complexes burned to the ground within 48 hours over the past weekend. And then some. This is what I see:

Residents Say They Heard Gunshots Before 3-Alarm Fire

Blaze damages second apartment complex in 24 hours

Fire erupts at SW Houston apartments

Apartment Blaze Damages At Least 16 Units

Apartment fire sends 5 to Hospital

Yes, those are the most recent stories in my warm and cozy feed reader.

When is legislation going to get off of its ass and move at the pace that the rest of us do? When is enforcement going to follow? Sure, I guess we all are biased to the field that we are in and think that it is the most important thing in the world. But seriously, people are dying and losing their homes in the midst of an ocean of politics and code books wasting valuable daylight.

Southeast Houston Apartment Fire

[Picture used from myFoxHouston.com]

A lot of the time, I am an optimist. I see what change has followed the positive move of a community-based and collaborative internet (see video in previous post) in other industries. And then I imagine progress and change happening in our daily lives. I dream of governmental processes being way more open and community-driven than we are used to. I can watch it in real-time, play-by-play happening with larger corporations – as they break down due to the epidemic spread of knowledge and awareness. And I imagine a world where fire sprinklers (technology that has been around for 130 years) and other fire safety systems make fire protection engineers obsolete before my industry has even had a chance to get popular and prestigious.

I suppose what I am saying is that I toil my soul, expand my brain, and work every breathing moment that I can, day-by-day on prediction of fire, contribution to the robust knowledge that we have on fire/combustion, and working using my technical skills. All of this to allow fire documentation, analytical and numerical tools, and scientific information to be available to all people around the world: engineers, scientists, students, and so on. Why? I’d say, in this century and society, I do it to contribute. And I think if just a few other key people did the same, our fire, death, and loss of home problems would vanish at amazing and mind-blowing speeds.

P.S. This thought process isn’t just limited to my field of fire science, but I write about it because it is what I do. Think about your field for a second. Finance, safety, technology, whatever it is. Mentally apply success to the field by working on and tweaking the top 3% of the people, systems, or methods that are in use now. Realize that these top 3% are there due mainly to tradition, and did not get there due to community-driven work.

Keep working at it. Align your work with your values. The change will happen. I’ll be waiting.

No comment »

The Golden Resource List for Python Beginners

After years of being a master-of-none with programming languages, I have finally settled on one to delve deeper into: Python. I’ve been learning Python for about a month now, and it has been quite pleasurable. Although the language has been around since 1991, it has been gaining in popularity in the recent years and is used in many underlying projects at Google, Youtube, NASA, Honeywell, and the University of Maryland to name a few. It is an excellent language for a programmer of any level to pick up, and I chose it because of its versatility, clear syntax, and ease of use for transforming my ideas into a a functional and high level language.

Along the way during the past month, I have sifted through hundreds of websites and quite a few beginner books. So here, I would like to share the links that I found most helpful in my quest for Python knowledge. As far as my past experience, I’ve dabbled in many other languages such as MATLAB, HTML, Fortran, C++, Java, Perl, and so on but never really grew to master a single one or use it in my daily life.

So, without further delay, on to the list:

Before You Start With Python

  1. Python.org – I couldn’t make this list without including the main Python site. There is just a great amount of information there. Plus everything I link to can probably be found there, but my list is only those resources that really helped me along in my learning experience.
  2. Teach Yourself Programming in Ten Years – Article by the director of research at Google – A great overview of programming and learning to program, all the while avoiding the ides presented by the “Learn to program in X days” books.

Excellent Python Tutorials

  1. Dive Into Python – This is one of the first tutorials that I read about Python, and it gave me an excellent overview of the language. It really broke down the code line-by-line, but it still reads like a mix between a reference guide, a cookbook, and a tutorial. It’s a freely available book and should definitely be within quick reach as you learn Python.
  2. How to Think Like a Computer Scientist – This is by far my favorite tutorial in the entire list. I like this (freely available) book because of its plentiful and challenging exercises! I am usually picky when choosing textbooks on a new subject, and I will almost always get the book that has the most examples in it. I spent most of my time creating my own programs at the end of each chapter, and really got a feel for the language (and a nice sense of accomplishment!) at the end of each chapter. Highly recommended.
  3. Python Videos at ShowMeDo – There are over 100 videos at the time of this posting over a wide range of topics. Anything from how to open a Python session to namespaces and more. It was nice when starting out to just sit and watch someone who knew what they were doing do routine tasks, and it helped to ground basic concepts before jumping in on my own. Don’t forget to thank the creators of the videos with a comment!
  4. Learning to Program – This is one that I am going through last, because it gets into a bit more in depth discussion about basic and moderate topics. Very thorough.

Beginner Exercises and Projects

  1. How to Think Like a Computer Scientist – I just HAD to list this again, because it goes at just the right pace and the exercises are well thought out. I am convinced that I really learned about 80% of my Python basics here when I put them to practice. Learn by doing!
  2. Projects for the Beginner – Python – This is a thread on a forum with over 100 ideas for programs. Use this when you are low on inspiration but high on ambition!
  3. Python Challenge – Neat implementation of puzzles that can be solved with Python scripts. They get harder as you progress levels. You might want to hit up the Python Challenge after getting a good hold on the basics and after you have many of these other links open in other tabs. :)
  4. Useless Python Challenges – This site should be visited after you have finished all of the trivial Python exercises and projects. When you are self-sustaining on the language and eagerly looking for some projects to do, but are hitting a writer’s block for programs, go here.

Beginner Forums and Lists

  1. Python Forum – Beginners – Not a very high traffic forum, but they have a beginners subforum with 15-30 posts per day, just enough to keep you busy. I find it helpful to attack the problems that other beginners are facing. And if you come up with a good solution, post it and help others while you learn. Everyone wins!
  2. Learning Python Blog – One of the few “learning only” Python blogs. It is always good to see information shared from others while they learn. Sort of like this list. :)
  3. Python Tutor Mailing List – I only recently signed up for this, but I must say that there are some very knowledgeable and helpful people on here and it keeps the Python information coming at you via email. Seems to be quite a few students on here and you will most certainly learn something with each email thread.

Interesting Python Projects and Libraries

  1. Django Project
  2. TurboGears
  3. Google GData Python API – This is an amazing API from Google that allows you to interact with Google Calendar, Docs, Maps, Youtube, Notebook, and so on. It is very easy to install and use and I look forward to developing with this in the near future.
  4. wxPython – GUI toolkit for interface development. I haven’t gotten to GUIs yet, but everywhere I turn I see references to wxPython.
  5. matplotlib – 2D plotting library that produces very nice looking graphs. Supports many, many types of graphs and is very customizable.
  6. SciPy – A collection of Python tools and modules for use in science, engineering, and mathematics. This is the light at the end of the tunnel for me and I hope to get more involved with this library as I progress with my Python learning.

Editing Tools and Shells

  1. iPython – An enhanced Python shell that seems geared towards science, engineering, and high performance computing.
  2. TextMate (Mac OS X) – This is such an amazing editor that I must list it here. I didn’t use it at all before I started with Python, and now I simply cannot go without it. I had previously heard it described by programmers as a magical tool, but I had no idea. It does autocompletion based on previous words, syntax highlighting for a ton of languages, has a quick and easy-to-read method to execute Python scripts. It is perhaps the only non-free item in my list, but very much worth it!
  3. TextWrangler (Mac OS X) – This is what I used for a couple of years… until I discovered the greatness of TextMate a few weeks ago. TextWrangler is free though if you wish to use it.

Other Resources (References, Packages, Hosting)

  1. Python Library Reference – Huge list of explanations about Python’s Standard Library. Made to help you discover the power of Python in your everyday programming.
  2. Python Webhosting – List of webhosts that offer Python solutions on their webhost. Python can be run on most hosts via CGI, but these wiki pages explain exactly how they implement Python usability. Plus I found out about the cool idea of HCoop cooperative web hosting through this list; this is the host on which you are reading this blog. :)
  3. Python Package Index – Directory of Python packages that you can learn about, download, and use in your own programming. Don’t reinvent the wheel!
  4. Python Cookbook Code Samples – This is a directory in the same vein as the previous listing, but the solutions to problems are presented as code with user comments. As of now there are over 2000 recipes.
  5. The Daily Python URL – Just as it sounds. News about Python in compact form.

Again, while there are many, many other resources for learning Python, this is a list of my personal favorites. These are the specific sites that have been very helpful and impacting on my venture to learn Python. So while I may not have listed a particular item – I probably saw it, but didn’t get much from it at this time.

Finally, you must forgive me if I got some detail wrong. I am learning, after all! Hopefully this list will help new and moderate Python users to utilize some of the best (and free!) Python resources that others have put up for all to learn from. Thanks to those people who shared their knowledge. And have fun with Python!

Comments (3) »

How to install PyObjC, pygame, and gasp on Mac OS X for Python tutorial

I am going through the Python tutorial “How to Think Like a Computer Scientist” right now, and it is an excellent source for beginner/intermediate Python hands-on learning.

http://openbookproject.net/thinkCSpy/

However, when I got to chapter 8, my fun stopped right away. The author refers to a Python library called GASP (Graphics API for Students of Python) and gives an example and case study of a small game. The thing is, he doesn’t tell you how to install the module and it abruptly interrupts your lovely Python learning experience.

http://openbookproject.net/thinkCSpy/ch08.xhtml

I tried to use easy_install to install most of these, and it always ended up failing for some reason or another.

As I am using Mac OS X Leopard, I will provide the missing instructions for how to get the gasp module installed (and its dependencies) for anyone else who runs into this situation:

How to install PyObjC, pygame, and gasp on Mac OS X

  1. I assume that you have already installed some version of Python; I am using Universal Python 2.5 from http://www.pythonmac.org/packages/ which is a nice, easy-to-install package and has other prebuilt packages like numpy, wxPython, matplotlib, etc. ready to be installed. You can see other ways to get Python on your Mac at http://wiki.python.org/moin/MacPython/PythonDistributionsForMac
  2. You will need to install PyObjC, which is also available as a package from http://www.pythonmac.org/packages/ under the 2.5 link.
  3. Now, you will install pygame from a package (pygame-1.8.0rc4-py2.5-macosx10.4.mpkg.zip) available at http://rene.f0o.com/~rene/stuff/macosx/. This is linked from http://www.pygame.org/download.shtml
  4. Finally, we get to the part of installing gasp, which is confusing to find in itself. The FAQ page is at https://answers.launchpad.net/gasp-code/+faq/42 but the link to download is wrong. Get it from https://launchpad.net/gasp-code/+download. You will want to download the Code Release which is currently called python-gasp-0.1.1.tar.bz2.
  5. Extract the bz2 file and there will be a folder inside called gasp. Copy this folder to the /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ directory and you will be in business!

    This is the command that I used: sudo cp -R ~/Desktop/python-gasp-0.1.1/gasp/ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/gasp

  6. Open a python session and type import pygame and import gasp to make sure that they are installed correctly.
  7. Carry on with the great tutorial linked above!

I found it odd that the beginners tutorial left out all of this information. Hopefully this will save someone the two days that it took me to find all of these links, packages, and methods.

Comments (4) »