When you're old and curmudgeonly like I am you become set in your ways.  It's hard to believe but some of these ways are wrong.  Your habits are a result of your old thinking and most importantly your old actions.  Since I know everything now, it's conceivable to me that a younger version of me may have made an error in thinking and ended up habitually doing something silly, without thinking, like screwing around with my iPhone at every single spare moment throughout the day.

See what I did there with the bold.

We do things, we make decisions and choices without even considering the options.  Our subconscious not only can provide us with important facts, like all the words to the closing song of Gilligan's Island, it also will bring up complex thoughts like the results of thinking or provide a course of action.  Don't believe me?  Think of the last time you drove a car somewhere and had one of those realizations like, "Holy crap I'm driving a car and not paying attention to where I am or where I'm going!  How did I make it this far?"

Learning anything requires repetition, so does unlearning.  But before you start training yourself what you want to do, like Zippity the Zebra in Man vs. Beast you have to "realize it's a race."  The key there is to set yourself a standing order to notice when you do some physical thing . Go on, put that subconscious to work for you noticing you taking the phone out, or eating that 28th cookie.

Now you are at that crossroads, where you make the choice.  The thing you've done at up until this point over the last 87 times this choice came up, the thing you decided you wanted to change for some reason, will seem very compelling.  It may even seem crazy that you ever wanted to or could change.  Here is where you will need to have thought out the good reasons for why you will change, to overrule the habit and emotional response that is tied into taking that habitual action.  What you want to do here is put yourself in the right frame of mind to realize, that, yes there are actually other things you might want to do besides restock the floors in Tiny Tower.

The way I recently learned and am trying to do that is to have a nice little slogan, "WWID?"  This means, "What Would I Do? Where I, is me heroically taking into account my full hierarchy of values."  This is a pretty general mindset, depending on the particular habit I'm trying to change I may just focus in on that one for a few weeks and have a different slogan to recall in my time of need.

So in summary, I plan to take certain things I don't want to do anymore and notice when I'm doing them so I can wake myself up enough to know, "it's time to make a choice," and then put myself in a heroic frame of mind to make that choice.

Posted
AuthorKevin McAllister

MobileMe Calendar finally got me past the occasional frustration and issues on my calendar sync solution. They did this by breaking my Rube Goldbergian solution completely and having me setup a much simpler system. My prior solution was like this, Google calendar for my work domain was my main calendar. But when I first got an iPhone there was no two way sync between Google calendar and the iPhone, but I could sync using MobileMe between my phone and my desktop. So I got a piece of software called BusySync (which I later upgraded to BusyCal), this would sync the Google Calendar to my desktop iCal store which would then be synchronized via MobileMe to my phone. And it mostly worked. I had my calendar on the web, on my desktop and on my phone and could make changes in any of those 3 places. Although sometimes it would do weird things and I had to keep BusyCal always running on my work computer to keep everything going.

Recently I unthinkingly upgraded MobileMe to the new Calendar. Which of course broke all of that for various reasons. And this turned out to be the best thing I could do, as now I have a much simpler solution that seems to accomplish the same goals and work more reliably.

Now my phone synchronizes with the Google calendar directly using ActiveSync. And my desktop and laptop BusyCal synchronize with Google calendar directly but only need to be running when I need a calendar there. So MobileMe solved my occasional calendar problems by becoming useless for me.

At this point I'll have to evaluate if there is any point to keeping MobileMe at all or if I can simply use DropBox to keep the other things in sync that MobileMe does for me, and I certainly don't need another email account, or IM account and their iDisk solution is a joke compared to the ease of Dropbox.

Is there any other value to this service I'm missing?

Posted
AuthorKevin McAllister
CategoriesHacker
5 CommentsPost a comment

A friend of mine recently released a gmail notify applet for Linux. [gmnotify](http://gmnotify.sourceforge.net/) from what I can tell it is pretty sweet compared to some of the alternatives. Go ahead and check it out. That is if you use gmail and want little windows popping up telling you that you got an email.

Posted
AuthorKevin McAllister
CategoriesHacker

I guess I am impatient, and I don't want to read everything, and therefore I demand of people that effect my life choose good names for stuff. The current complaint is about MySQL's privilege system. [Apparently](http://dev.mysql.com/doc/refman/4.1/en/grant.html) USAGE privilege is a synonym for “no privileges.â€? Any reason, why this can't simply be NONE, or "TOO FEW PRIVILEGES TO BOTHER MENTIOING" or anything besides a word that makes it look like something?

Yes I get the low level irony of me claiming to be impatient and taking the time to write this rant. But if you think about it, I have now seared this into my memory with this 5 minute interlude.

Posted
AuthorKevin McAllister
CategoriesHacker

Anyone out there have a [mini-ITX](http://mini-itx.com/hardware/intro.asp) board, or any generally associated things like like a DC-DC ATX converter or and old 60 or 80 Watt laptop AC adapter, or some old low wattage ATX power supply that I could at least use for some prototyping or testing with said board? Anyway, I obviously have a little project in mind. I plan to mess around with [Asterisk](http://asterisk.org/) on one of these. I'd like to get the lowest TCO home PBX system running that I can. I may even consider a [Soekris](http://www.soekris.com/). If I can get my hands on one relatively inexpensively.

Posted
AuthorKevin McAllister
CategoriesHacker

So far so good today. I finally isolated the bad part on my laptop. (Allison spilled a large cup of water on it a couple months ago). I tried booting with a linux CD and noticed that the resulting kernel panic mentioned some errors relating to the VM system. So I decided to use memtest on the Knoppix disc. And stopped it at around 13,000 errors at just above 128 MB. So I pulled out the soDIMM in slot 2 and it booted. My new memory should be here Wednesday. :) It gives me an excuse to squeeze a little more life out of this laptop, by bumping the memory to 512, from 256. And I have two worthwhile 1PM NFL games to watch for the first time in a million years. Probably because the Jets play tonight, god I hate watching Jets games.

Posted
AuthorKevin McAllister
CategoriesGeneral, Hacker

I have been trying to "get organized" since sometime in high-school when I was probably told to "buckle down." Nothing seems to have taken very well, however. The problem that I seem to have is two-fold. First, every time I see a neat discussion or article or book on how to help you do stuff, I read it and get all fired up and start thinking about how to implement that philosphy. Second I am letting the **best** destroy the good. And I think this is the bigger of the two problems.

Basically I start trying to plan out some structure that is used to capture the main things I need capturing, which anyone can tell you are a list of your projects. A list of your next actions. And some sort of calendar to capture the hard landscape of what is happening. And finally a reliable reference file. Where to store stuff you may need to reference later, reliably, in a form that is easy to look up.

Well as a guy who builds systems and programs this is a nightmare, I start thinking this is simple enough to build something. Well it isn't, because all of the sudden I have something way more complex than the [37signals](http://37signals.com/) people have built, and it will take me a good 8 or 40 hours to put together. And then I start thinking about backup, because hell if this is my life I better be able to back it up. And of course I don't have time for this because while I am thinking about this I am shirking all kinds of other responsibilities, and the fires are growing all around me. Then I run around for 3 days putting them out and long for an uninterrupted month where I can construct this super-duper life runner application.

Well I am a father, and I work, and I have hobbies, there is no uninterrupted month coming any time in the forseeable future, which I can't really see much of anyway because I am so busy running around putting out fires, or planning for the utopia in some distant future. I really need to work on my middle game.

Anyway, starting today, I am going to errect a little bit of scaffolding to try and hold my life together. I am going to spend about 10 minutes thinking about the simplest system that can possibly work.

*I am picturing a calendar and a notebook.*

I think the biggest thing here is consistency of putting everything there, and to get in the habit of looking at it several times a day. Maybe I can trick myself and write "email" or "bloglines" on the cover, since I typically look at both of those several times an hour.

I have to convince my brain that it doesn't have to be perfect to start using it.

Posted
AuthorKevin McAllister

Amazing how some technology left out Friday after confirming it works, heck it had been working the same way since July. Seems to grow fungus or mold, or simply atrophy and no longer work after the weekend is over. Like making [JBoss](http://www.jboss.org/) talk to [MySQL](http://www.mysql.com/) luckily trial and error correction is made nearly impossible because it takes a good 10 minutes for each round trip on the cycle. :-(

Posted
AuthorKevin McAllister
CategoriesHacker

A while back I noted that [devedge was dead](http://logicaldisconnect.org/archives/2004/10/20/netscape-devedge-dead/). Well googling for some javascript stuff led me to the [Mozilla Developer Center, Javascript page](http://developer.mozilla.org/en/docs/JavaScript). The [references link](http://developer.mozilla.org/en/docs/Category:JavaScript:References) gives you the good stuff. Thank you for getting this together finally. Because it gives me a definitive source for this type of info.

Posted
AuthorKevin McAllister
CategoriesHacker

If you use a computer as much as I do there is something very refreshing about deleting old crap and clutter. If you are a programmer and are responsible for thousands of lines of code, there is something great about deleting old, unused code. It makes you feel so much more in control of the environment. Very theraputic. Today, I am taking nearly a whole day to delete old broken down code. Gotta board up the windows and wall off the slums from the shiny code that actually does good work.

Posted
AuthorKevin McAllister
CategoriesHacker

This post is to give a shout of thanks to the guys who figured out why installing XP and Fedora on a single machine sometimes causes the first OS installed to be inexplicably lost somewhere on the disk with no hope of recovery. Well there is hope. If you set up dual boot with XP and Fedora Core 2 or later, and you are sure you lost all of your data from one of your installs, read on for more info.

If you want to skip my gripping adventure in geekdom, and just fix your problem, read [Prevention and Recovery of XP Dual Boot Problems[(http://www.redhat.com/archives/fedora-devel-list/2004-May/msg00908.html). Thank you "Jack Aboutboul" for putting this together.

Well if you are still interested, or if that didn't help you much, maybe a recount of my adventure will.

*Background*: I installed Fedora Core 4 in early July. I left some room for Windows XP too, figuring I would eventually have to install it. Well the first thing I found out was that XP wants to write to the first partition on the disk, even if you install to some other partition. (I know it's just the MBR) but the installer seems to think it can't continue unless you put a file system on the first partition that it understands.

So I figure, okay no big deal, I'll use [parted](http://www.gnu.org/software/parted/parted.html) and move stuff around. No good. Extended partitions can't be moved, they can be resized though. And Since redhat started including [SELinux](http://www.nsa.gov/selinux/) and maybe for other reasons as well, the ext3 file system they set up, has a bunch of options turned on that parted doesn't understand and because of that it won't even try and do the resizing and moving for you. So the answer to that is to use [resize2fs](http://www.google.com/search?q=resize2fs) to change the filesystem size, and then use fdisk to change the corresponding partition size to match. Now is the time to break out the calculator and take good notes (measure twice cut once). Then create new duplicate partitions further on in the disk and use dd to copy the existing partition data over. Leaving a nice clean 15 GB at the beginning of the disk for XP to do its worst.

... *8 hours pass* ...

Finally XP is installed and fully patched with security updates, and has firefox, thunderbird and gaim installed. Okay, great, now just reboot with the FC4 install disk, go into rescue mode, change the active boot partition, run grub-install and update the grub.conf to point at the new partitions, right? :-( very wrong!

Fedora informs me that there is no linux installation here, but thanks for coming out. I look at fdisk and see much to my dismay all kinds of weird errors about all the non windows partitions not ending on a sector boundary. *oh boy* My first thought is that the xp installer did something stupid and messed with the other partitions, and boy was I angry. But then I decided that the data is all there, the new partition doesn't extend beyond where my first linux partition **was**. So unless xp maliciously overwrote all that stuff, it had to be recoverable. And I don't remember waiting patiently while the installer wrote zeros all over my work for the past 2 months.

So I boot the machine in [knoppix](http://www.knoppix.org/) fire up one of the best programs I have ever come across [testdisk](http://www.cgsecurity.org/index.html?testdisk.html) which is used for partition recovery. And testdisk does not give me good results at all. Even after messing around with the options to tell it [TARFU](http://en.wikipedia.org/wiki/Tarfu).

So I grabbed a coke zero, and sat down and played a game of [Madden 2006](http://www.easports.com/sports/madden06/index.jsp), of course I threw 2 picks on my first 3 passes, which led to 14 points by Oakland :-(. I have to remember to always kick off to start the game if I am frustrated. I recovered and won 31 - 14, with McNabb coming off his slow start to throw 3 TDs.

So I turned to google thinking, many other people had to have this problem. And I was lucky to come across [this](http://www.redhat.com/archives/fedora-devel-list/2004-May/msg00908.html). After reading through, I was very angry for not taking a dump of the partition table before installing xp. But I figured, if I try a few different number of heads for the disk geometry, maybe it will work out, and I won't actually be changing anything, just the way I am looking at the data on the disk. I tried 255. And things looked better to fdisk now.

Still a little loopy, because the XP install was done with the heads set to 240. So I fired up testdisk, and now it found all the partitions, and things were looking right, so I used it to write out the partition table, rebooted, did the grub thing noted earlier. And *BAM*! everything back to normal.

So hopefully if anyone else has this problem, they can have a better chance of finding the solution. Specifically when anyone else is me again.

Posted
AuthorKevin McAllister
CategoriesHacker

If you can't resist the urge to buy shiny new O'Reilly books every time you are within 1 mile of a Barnes & Noble or a Borders, and you are often restraining yourself from purchasing a bunch of new books on [amazon](http://www.amazon.com/exec/obidos/redirect?link_code=ur2&camp=1789&tag=logicaldiscon-20&creative=9325&path=http://amazon.com/)(then click on the amazon link and buy lots of stuff so I can get referral fees and feed my own demons!) Okay, that's not really the point although I wouldn't mind a few extra bucks toward my Mexico fund. The point is, I have the same problem, I always want to get new books, often the technologies will help me with my work. And the biggest part of the problem is these books are always between 30 and 60 dollars each.

So if you want help resisting this urge to spend money, go to your library and get a library card. There are some good books there, but that is not the only reason. In the [Buck's County Community College Library](http://www.bucks.edu/library/) you have electronic access to the O'Reilly Safari collection. And you don't actually need a card to get in there to use it, just have to drive there. Also if you have a card for any Pennsylvania library you can get to [Access PA Power Library](http://www.powerlibrary.net/) which gives you access to a lot of stuff you would ordinarily have to pay for. Well in this case you are paying for it with tax money, but you aren't using it. Probably the best feature of the Power Library is access to [NetLibrary](http://www.netlibrary.com/) which is chock full of stuff, including some technical books (A search for books with the word "programming" in the title published between 2000-2005 resulted in 49 books.) The downside is you need to read the books on your screen, but they are PDFs so I can read on my Linux desktop.

I can only speak for PA but I am sure that many other states have similar deals, and it can't hurt to go to the library and check it out.

Posted
AuthorKevin McAllister
CategoriesFinance, Hacker

I have thought of it so many times, and dismissed it for various reasons. Too hard, too much cutthroat competition, not enough time, not a viable way to make money, way too many wanna-bes I don't want to get classified with them. But damnit, there is no other thing I would rather waste some spare time on than writing video games.

I think the main reason I got interested in programming and playing with computers at all was games. I would never have given a second look at my Dad's [TRS-80](http://www.kjsl.com/trs80/) if he hadn't shown me how to load up some game, he acquired from who knows where, with the data cassette drive and start playing.

> You are in a dark cave, there is a hallway to the west, another to the east and a smell > of rotting flesh from the south, you have a pocket knife, and there is a torch on the > floor.... What do you want to do?

I learned BASIC on that thing just so I could try and mimic what the authors of that wonderful game had done, and my love of programming came from video game roots.

Man, I was hooked, from then on I would have trouble with my body weight, because I would prefer to sit in front of the TRS-80, Atari, IBM PC AT, Beltron, Commodore 64, Nintendo, Sega Genesis, PlayStation, N64, PlayStation 2 than do other stuff. I mean sure I played sports, and did all kinds of other stuff, but sometimes it was a battle to pull myself from playing [*River City Ransom* ](http://www.seanbaby.com/nes/rcr.htm) one more time, "This time I'll win without buying the cowboy boots!"

Anyway, since then I have gotten degree's in Electrical Engineering and Computer Engineering, have taken numerous programming courses, have done programming professionally, and have always thought of doing game programming, but never had the guts to follow through. Always doing what other people thought was a more viable means of making money. But hell, I have a day job. I get paid that way, if I am going to do side work, that may eventually become a way to get paid, I need to do something I have passion for.

And video games are that passion. So yeah, add me to the list of all the geeky wanna-be's who tried this. Because I am trying. My goal is to have something playable by the end of September, and hopefully sooner. And yeah I am going to the dark side to do this, because if I do want to eventually make some money on this, I need to maximize that chance. I am going to try and do this in C# with DirectX on windows.

*GASP*! I thought you hated windows?! I thought you were mister Linux. Well I got news for you, to quote a lovable scoundrel, "Look, I ain't in this for your revolution. ... I expect to be well paid. I'm in it for the money."

So I start today, actually I started about 3 days ago, but I publically start today. So watch this space, for the next revolution in gaming. :)

Posted
AuthorKevin McAllister
5 CommentsPost a comment

If you are like me you're 6 foot 2 and your name is Kevin. Also you spend most of your day staring at a monitor of some type. I have some advice, I don't know how well they will work for you, and I don't know if there is anything to back up my reasoning behind these actions, but they seem to work for me.

1. If you can afford it get some kind of non-CRT monitor, like the ones on laptops or those nice LCD (or whatever technology it is) displays. They are more crisp. My work provides one for me. 2. Turn down the brightness. Turn it down all the way until it reaches a point just below where it is comfortable, then turn it back up 1 or 2 clicks. You still want it to be comfortable, but why stare into a 1000 watt light bulb if you can stare into a 30 watt bulb instead. 3. Turn down the contrast too. This one I remember hearing that it is easier on the eyes if the contrast is not very high. 4. Go outside a few times a day and look at stuff far away, and under natural light. Especially if you are locked in a room with fluorescent bulbs. 5. Blink. If you notice that when you are staring at a screen you don't blink, you probably should figure out a way to make yourself do that.

I have found that my eyes are less strained feeling the more I pay attention to this kind of stuff. Maybe you will too.

Posted
AuthorKevin McAllister
2 CommentsPost a comment

I noticed a whole bunch of referalls to my site from the Jet's message board, I thought maybe someone had linked to the whole Ed Hochuli debacle, but I hunted it down and found out that no, someone was stealing my bandwidth to show a picture I have on my site of Chuck Bednarik. Well I don't approve of that, so I used a friends instructions on how to let the people know what I think of them [using mod_rewrite](http://www.chaosreigns.com/adventures/entry.php?date=2001-11-28&num=01). Thanks Darxus. Now instead of concrete charlie that persons signature on the message board contains [this](http://logicaldisconnect.org/YouSuck.jpg).

plus the Jets suck. Seriously a first round pick for Doug Jolley, watching your preseason it doesn't even look like he is starting.

Posted
AuthorKevin McAllister
CategoriesGeneral, Hacker

I am trying to [Get stuff done](http://wiki.43folders.com/index.php/GTD "Getting things Done info") and in doing so I have decided to use my [gmail](http://gmail.com/) account to capture everything. If you search hard enough there is a PDF somewhere that gives you some ideas on implementing a gmail based GTD system. I found that I have been languishing in putting stuff into my system, and decided because it was too hard. I had to open thunderbird and then click compose and type the address and then the thing I want to do. I am sure I could speed this up a bit, but it was painful. So I wrote a quick script using zenity: #!/bin/bash

TO="xxx@gmail.com" SUBJECT=`zenity --entry --text="What do you want to get done?" \ --title="GTD\ Entry"` if [ "$?" -eq "0" ] then echo | mail -s "${SUBJECT}" ${TO} fi

and mapped it up to F12 using a technique from my previous post. And now any time I think of something I want to do I just hit F12, type a quick "next action" and hit enter. Later I can process my gmail inbox. I may also have to find a way to batch this process for when I am going through my physical inbox. But so far so good.

By the way, Buy the book, (or get it in a library or whatever) it's great, it at least makes you feel like you can do lots of stuff without worrying about it all the time.

Posted
AuthorKevin McAllister
CategoriesHacker

If you use Gnome and want to do custom keyboard shortcuts, i.e. write your own script and have it executed when you hit a magic key combination, it is not as easy as going to the "Keyboard Shortcuts" preferences. Apparently you gotta mess around with gconf (The linux registry?!), anyway after a short bit of google hunting I found this mailing list posting: Custom Keyboard Shortcuts in Gnome (Solved). Thanks, Philip Chapman.

Posted
AuthorKevin McAllister
CategoriesHacker

So I liked the way Tom's websites have evolved to have a fancy one where he writes long articles and a not so fancy one where he tells the world off through his away message. I don't know if this is what encouraged Mike to break off and create his separate Deep Thoughts blog, but either way the combined effort has caused me to do something similar. Of course I tried to make it more complicated, by using my single wordpress install. I have simply created a separate category called Notebooks and changed the index page of my site to only show everything but the Notebooks category. However my RSS feed should pick up all the entries to the Notebooks category, so the three people that faithfully read my RSS feed every 72 days when there is a new post, should have a bit more than they are used to handling. Everyone else (which I think there are only 3 of them also) of course will simply have to go to the Notebooks Category page.

Posted
AuthorKevin McAllister
CategoriesHacker

The Iceberg Secret article: Joel on Software - The Iceberg Secret, Revealed also known as Chapter 25 in the Joel on Software book. Has inspired in me a profound revelation, when it comes to developing software.

Once you understand the Iceberg Secret, it's easy to work with it. Understand that any demos you do in a darkened room with a projector are going to be all about pixels. If you can, build your UI in such a way that unfinished parts look unfinished.

Outside of the context of my life this may not be huge to you. But if you shared some of the experiences I have over the past 5 years, you would understand how profound this is. Or you might say, yeah, I know that, who doesn't know that.

But it doesn't matter, based on the understanding I reached this morning reading Chapter 25, it will forever alter the way I handle the creation of software. Sure there are other great insights provided by Joel, and they may all be even more important, or seem more important. But as for me, as for right now, there is nothing more important to understand.

When it comes to software there is nothing, absolutely nothing more important about it than the user interface.

Posted
AuthorKevin McAllister
CategoriesHacker, Work