Programming

Programming

Google Maps and Me...

Greetings. I’ve been messing around with the Google Maps API v.3 for a client of mine.  I figure I would share my initial findings: The “app” is ASP.NET 3.5, but really it’s a bunch of auto-generated JavaScript.  The big map layout has a good 100+ markers placed designating various Acme Distribution Centers (I had just watched some Looney Tunes…).  When you select a state from the dropdown, the map will center and zoom in on that state, and the Acme Distribution Centers for that state will be listed on the right (actually the google.maps.Geocoder JSON result...

Programming the Atari 2600, and Me - Part 5

So, the last post was pretty long, running through basic kernels practically line-by-line to see how the 6507 instructs the TIA to do great things with our TV.  The remainder of our posts really, then, have to do simply with performing various functions on the 2600.  How do I show a sprite?  How do I position it on the screen?  Sounds, collisions, etc...This post, however, will be one last smackdown on the relationship between our machine cycles and the TV rastering.  This time, we're getting into cycle counting and troubleshooting our assembly code. If you've been farting around...

Programming the Atari 2600, and Me - Part 3

In our previous post in this series, we went over the environment within which our 2600 game must live.  It is a harsh, barren environment by today’s standards, which makes this all the more bitchin’.  Anyway, let’s take a quick look at what we’ve covered: Our game will be running through a 1.19Mhz 6507 CPU.  This CPU can direct commands to a custom Atari chip – the Television Interface Adapter (TIA) – which we use for updating the display, receiving collision notifications, and initiating audio.  The TIA, indeed the entire system, is clocked so that it is in sync...

Programming the Atari 2600, and Me - Part 2

Greetings. Now that we have an IDE set up for creating our 2600 game, we need to know what we’re actually having to program.  Here’s a breakdown of (what I’ve garnered is) the core of the Atari 2600 architecture: We have a game cartridge [A], our program ROM.  We have [B], a MOS 6532 RAM / IO/ Timer (RIOT) chip.  [C] is a MOS 6507 microprocessor, practically identical to the 6502 of fame.  Last we have [D], a custom Television Integrated Adapter (TIA) chip designed specifically for the machine. The links above will give...

Linq, the Postage Stamp problem, and Me...

I had at one point been farting around with algorithms to "solve" efficiently a problem where, given a dartboard with R regions of values V0, V1, ... VR, find the set of regions with the greatest minimum sum you cannot get with N darts.  This is basically the Postage Stamp problem (see also the Coin and Knapsack problems). One of the solutions I was working on used some Linq.  A central component to the solution was to find that least sum.  So I used Linq to find all “throwable” sums (say set ST), then compare that...

Programming the Atari 2600, and Me - Part 1

Greetings… I have always had an urge to test my programming patience against the Atari 2600, but to start, always lacked the game idea.  I have a two year old and 6 month old, and recently in my lack of sleep, had a revelation for the lamest game ever.  I have since not been able to stop my attempt to realize this game. This series will be for aspiring Atari 2600 programmers.  I know there are many, many of you out there.  Perhaps seeking fame, perhaps fortune.  Either one won’t be found in this endeavor.  IT IS THERE...

JSON.NET, Linq, Extension Methods, and Me...

Greetings! Been long time no post!  A two-year-old + three-month-old = time bye bye.  Whatever… I have been doing a lot of web work lately.  One library that has been retardedly fantastic is JSON.NET for all your JSON needs.  If you have love for JSON, you must use this library, because it’s plain tasty. I found myself needing a quick and dirty JSON diff tool, so I threw down this extension method: static public JObject JsonDiff(this JObject jobj1, JObject jobj2) {     return new JObject(         (from p1...

Conway's Game of Life, Pong, Screensavers, and Me...

Greetings, all: Due to the massive increase in my blog traffic (I think I het around 20 / week or so) after I initially offered up my Game of Life screensaver, I now offer, in celebration of the new year, GoLPong! That's right, for 2009 you now can have a fancy new Game of Life screensaver.  BUT THIS ONE'S PACKED WITH NEW FEATURES!  Well, what are they? Game of Life does both trails and no trails Flickers between trails and non-trails Pong played...

C++, Conway's Game of Life, and Me...

NOTE as of 5.03.08Update to code. It actually works now. (what do you expect in 30 minutes)NOTE as of 06.23.08C++ source is now available through this pageNOTE as of 01.13.2009ALL NEW C++ Game of Life screensaver, with PONG! Get it (and source) here!Ok, just trying to get back into C/C++ for work and decided to quick write Conway's Game of Life. I have named it thusly YAGOL (Yet Another Game Of Life). I so hate C/C++ Win32 programming after working in C#. Been working on it for a few days and nights and had...

«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789