+ Visit This Blog Every Day to Increase Your SNED-Q + Something New Every Day Blog
 
Archive For Posts Tagged: Programming


This happened when I was very young, so I obviously don’t remember it, but many of the effects of the crash explain some of the things I saw when I was a young gamer.

In the late 70’s and very early 80’s, console gaming was becoming popular. There were way more competitors then I was aware of, including: Atari 2600, Atari 5200, Bally Astrocade, ColecoVision, Coleco Gemini, Emerson Arcadia 2001, Fairchild Channel F System II, Magnavox Odyssey2, Mattel Intellivision and Intellivision II, Sears Tele-Games, Tandyvision, and Vectrex. Many of these had next-generation systems planned too (like the Atari 7800).

There was also stiff competition form the personal computer world with such competitors as: Atari 400 and 800, Radio Shack’s Color Computer, and Commodore VIC-20 and C64.

Each of these systems had its own game library. On top of this, there were issues with game programmers wanting more credit and more money. Activision spun off from Atari in 1979 to create their own games to sell for the Atari. There was a court case, but Activision won, and was allowed to continue. This spawned dozens of clones. Dozens of major companies (including Quaker Oats… I wonder if they got Brimley to do the commercials?!?) created video game divisions who were all creating 3rd party games for all the above-listed systems. They created such nightmares as Chase the Chuck Wagon (which was created in partnership with Purina dog food. Trade in your dog food UPCs for a copy of the game!), Skeet Shoot, and Lost Luggage… which were all TERRIBLY low quality games (go figure).

Then there was the E.T. debacle. Atari produced a video game version of E. T. The Extra Terrestrial, which they overproduced expecting high sales, but rushed to come out, leading to a [FAIL]ure of a game. It had terrible sales, due to word of mouth of it’s crappiness, and since they paid a fortune for the marketing rights, they lost a ton of money. It’s believed that Atari dumped hundreds of copies E. T. cartridges in an Arizona (or New Mexico, depending on your source) landfill.

They even made terrible ports of Pac-Man (which is a practice that continues today). The Atari port led to Atari celebrating “Atari National Pac-Man Day, on April 3rd, 1982″ – an event I’d like to celebrate every April 3rd from now on. Atari manufactured twelve million cartridges and sold seven million units. Ouch.

The market was completely saturated with dozens of competitors creating terrible games. The stores were taking heavy losses from returns of bad products, and the distributors didn’t have any money to return to them. Retailers were selling $30 games (that’d be like an $80 game today) for $5 on clearance… just to get SOME money back.

The bottom fell out, and the whole industry crashed.

Years later, Nintendo came on scene. It met serious resistance from retailers who considered video games a “fad.” They renamed Famicom to the NES, and made wording changes so that it wasn’t a “console,” it was an “entertainment system.” ROB the robot was added to marketing so it was more like selling a toy.

The other big difference was that Nintendo fought against 3rd party game creation. They used a control chip so that only Nintendo licensed games (the Nintendo Golden Seal of Approval) could play on the NES (except for that crazy Quattro Adventure game). I basically understand it like a region code on DVDs. They also limited 3rd parties to 5 games per year, and made them pay for manufacturing up front, so if the game bombed, Nintendo wasn’t at a loss. They got around competition laws by saying they were doing it to protect the quality of the games.

And the rest, as they say, is history.

Source: Where else.



Tetris turns 25 today.

This article says it best:

Tetris die-hards know the feeling: The game makes us stare unblinkingly at the screen for hours. It makes us yell at the inanimate display when we accidentally drop a block one square off. Its Russian folk-song theme worms its way into our ears and lingers all day. It makes us yearn, more than anything, for just one long, vertical piece.

and:

For one, playing the game is an exercise in futility. You can never win. The game is set up so that the blocks fall increasingly faster, until it catches up with you. The goal, then, is the continued pursuit of besting your previous high score. (This is classic addict behavior — “I want my highs to get higher and higher.”)



My life will never be the same… in a good way.

Let me explain. I am quite… particular… about the way I need my computer set up. Especially when programming.

Upon getting a new PC I spend a few hours organizing things exactly the way I want them. The order of the icons on the quick launch bar. The default Windows (not XP) theme with a gray start bar located at the bottom of the screen. The Start Menu in alphabetical order. Always show all menu items. Never group taskbar windows. And on and on.

This, ahem, fastidiousness, carries on to my daily PC activities. The programs have to be opened in a certain order. Outlook first. Visual Studio next. If web development then one Firefox and one IE window. Then two Windows Explorer windows (not My Computer windows, they are not the same).

I have a workflow, and I need to stick with it. If I don’t have the windows in the right order, it takes time to find the right window, and that’s a problem.

But, occasionally, one of the applications crashes. Outlook hangs, or Visual Studio freezes up. Until today, my only option was to close down all of the applications and start over. It’s that important to me. (I know, they make medication for that.)

Enter Taskix. A lightweight utility that allows you to drag and reorder taskbar items. This is revolutionary. It’s mind blowing. It makes me happy. Taskix has a very small footprint (about 600K of RAM) so it runs quitely in the background.

As a bonus, it allows you to close windows by middle clicking on the window in the taskbar.

Download it. Love it. Give the guy some money.

And thanks to Zee for the hint.



When programming in HTML, colors are expressed in hexadecimal codes. For instance, Red is #FF0000, white is #FFFFFF, and black is #000000. The blue in the header on this page is #003366. (The # just indicates that a hexadecimal value will follow. Kind of like a dollar sign.)

I had a vague idea of how this all worked, but got a first class lesson today that made it all crystal clear. I’ll try my best to translate, but I’m guessing it will lose something in translation.

First things first- all of the colors that can be displayed in your web browser (all 16,777,216 of them) are made up of different combinations of red, green and blue.

There are 256 different shades of each primary color available. Mix the 256 shades to get variations of colors. (256×256x256 = 16 million options)

In the hexadecimal code, 2 digits correspond to each color. The first set of 2 digits represent red, the second green, and third is blue.

The available values for each single digit range from 0 to F, in this order: 0123456789ABCDEF.
(If it helps, think of the letters kind of like face cards where Jack = 11, Queen = 12 etc.)

You put 2 single digits together to create the pair.

So 00 is the lowest value for any pair. 01 is the next, followed by 02, 03, 04 and so on. When it gets into the letters, they just count up. So it goes 08, 09, 0A, 0B, 0C, OD, 0E, 0F.

When you reach F, add one to the “tens” digit and start over in the “ones” digit. 0D, 0E, 0F, 10, 11, 12, 13 … 19, 1A, 1B, 1C … 1F, 20, 21, 22 and on and on until you reach FF. (When you say it in your head, say them as two digits, not the normal numbers. So “one-eight”, “one-nine”, “one-A” not “eighteen”, “nineteen”, etc.)

Black is #000000. No Red, No Green, No Blue.
White is #FFFFFF. All Red, All Green, All Blue.

Since the first set of 2 digits corresponds to Red, the color code for Red (#FF0000) translates to: The highest value possible for Red (FF), No Green (00) and No Blue (00).

Blue would be #0000FF. No Red (00), No Green (00) and The Maximum Value for Blue (FF).

Purple, a mix of blue and red, is #800080. Half Red (80), No Green (00), Half Blue (80). (In the hexadecimal value system 80 is halfway between 00 and FF.)

Again, there are over 16 million variations available. (#000016 would be a very, very dark blue, for instance.)

And why this cryptic method? The same reason we had the Y2K debacle. It takes less disk space to store a 6 digit hexadecimal number than it would to store in a different format. Add up all of those saved bytes, and you can save a lot of cash on disk storage space.

Source: Zee, who taught me over the phone how to make a darker shade of a color by tweaking the hex codes. Come to think of it, circa 1993 he also taught me how to program my first HTML page over the phone so I could post it to GeoCities (and later FortuneCity). Viva la nerds!



There is no File.Rename method in VB.NET.

There is a File.Delete method. And there’s a File.Create and File.Copy and File.Open. But to Rename a File you have to use File.Move.

For example:

  If File.Exists(NewFilePath) = True Then      File.Move(NewFilePath, FilePath)  Else      lblMessage.Text = "Error Renaming Resized File"  End If


In this case, NewFilePath and FilePath are in the same folder, they just have different file names.