This is the quickest way I’ve found to search for and replace every occurrence of a string in multiple files in linux.

grep -rl matchstring somedir/ | xargs sed -i 's/string1/string2/g'

example:

grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g'

My latest project is an Browser Based Tower Defense (Elemental TD) game written in Javascript using the MooTools framework on the client end. The thing that sort of sets it apart from other browser games is that it is a true browser based tower defense: it does not use flash; it’s all javascript / [...]

MooTools 1.2 Beginner’s Guide, authored by Jacob Gube and Garrick Cheung is an outstanding book. It aims to provide a solid foundation for MooTools new comers, and assumes a limited knowledge of Javascript, HTML, and CSS. This book aims at not just at providing a laundry list of MooTool function definitions, but at providing a complete coverage of how MooTools geared towards a beginner. I highly recommend it.

OpenLayers Tutorial Part III – Controls. Tutorial covering OpenLayers Controls, various examples and sample code, including styling controls with CSS, placing controls outside the map in panels, and more.

I use javascript on a daily basis at work, and MooTools is my framework of choice. It’s easy to use, powerful, and has made my life exceedingly easier. MooTools did much of the heavy lifting in my Google Summer of Code project; I would have spent many more sleepless days without it. [...]

This post will cover the basics of Dijksta’s shortest path algorithm and how it can apply to path finding for game development. It is my opinion that understanding this algorithm will aid in understanding more complex AI algorithms, such as A*. This post is aimed more towards developers starting out in game development or those curious about Dijkstra’s algorithm, but this will be a somewhat simplification of it and discuss mainly the concepts.

Remove ^M characters in VIM by replacing \r with nothing. ^M is really \r. Use :%s/\r//g

OpenLayers Tutorial Part II – Tutorial covering OpenLayers Layers, including how it works on the backend, WMS, Vector layers, Google Maps and OpenLayer mashup instructions, and other Layer object related concepts.

Tutorial Introducing OpenLayers, covering the basics of creating a map and populating it with a single layer.

WriteBite is a site that pays you to write.  Specifically, you get paid to write rants.  Make money to complain.  Etc.  It’s a mix of Digg and Break.com kind of.  Except rewards go to writters, not people videotaping themselves blow shit up (although explosives are fun too).  I’ve been working on the new site for [...]

Subscribe to RSS Feed My tweets