Category: Work

April 6, 2012

How to install Windows XP SP3 on Mac OSX Mountain Lion and get drivers, too. [updated 3/2/16]

This has been far and away my most-read article ever. Thanks for reading! If this saved you a couple bucks of your time, consider donating via Paypal or via Bitcoin to 16FCWbn1wSpgn3a5mcjXRAYGYRQ5MW3qv5.

I considered various triple and quad boot options for my new (to me) MacBook Pro, but eventually decided on a simple dual-boot, OSX Lion and Windows XP.  If you’re reading this via a Google search, you likely ran into some problems too.  If you have been trying to do this without involving Boot Camp at all, bear in mind that even with all the drivers technically working you’re not going to be able to do things like use the multi-touch trackpad, use the function keys on the keyboard, etc.  Don’t worry though, this is an end-to-end guide on what to do to get XP running on a machine running Lion, complete with download links.

5/2/2012 Edit: From the comments I can pretty safely say this doesn’t work on  2011 Macbook Pros. Sorry, it’s likely due to them using new hardware not accounted for in the Leopard driver pack. If you can find a way to make it work, please leave a comment.

9/7/2012 Edit: It sounds like this works for Mountain Lion as well, as it should. This should work for all OSX releases for the foreseeable future, but will likely not work on newer hardware. We’re using hardware profiles from Leopard, and many chips and cards used since simply didn’t exist then.

3/2/2016 Edit: Hoo boy, this thing still gets traffic. Since Windows XP is no longer supported, and is a positive magnet for malware now, I really don’t recommend you do this anymore. Only if the XP installation is not going to access the Internet. However, the links to the driver … (More) “How to install Windows XP SP3 on Mac OSX Mountain Lion and get drivers, too. [updated 3/2/16]”

April 1, 2012

Read My Lips, No New Fart Apps

I took the plunge, bit the bullet, followed the crowd and clichéd all the clichés. I bought a Mac, specifically a MacBook Pro from Late 2008. I’ve already pre-emptively deleted a paragraph that sounded like gushing because I’m honestly very impressed with OS X, moreso than I expected to be.

Anyway, the reason I’m writing this post is that I bought this thing to write iOS apps on, and I’ll be sharing my experience learning, debugging, testing and (probably) swearing with all of you. I hope it is informative to some of you, because I’m coming from a background in function-oriented PHP. It has done everything I needed it to do, and while OO programming is definitely cleaner, more secure code, I have seen little appeal in such a mental overhaul of my approach. So I approach this with no small amount of trepidation, the tutorials I’ve read so far haven’t really clicked with me yet, and I still feel out of my depth. I have one app I’m going to be working on right away, the series of posts will be mostly unfiltered, I will be learning, breaking things, and fixing things from post to post, so you get a feel of what I’m going through; my reasoning for this is that I know I’m not the only one making this transition from function-oriented PHP to Objective-C and Xcode.

The first post will be up before Friday, dealing mostly with Xcode and my understanding of things going in. I’m also revealing my studio name (obviously an important step in being an iPhone millionaire, much like how “writers” will have a grand story in their head, but when you ask “oh, how far along is the book?” they respond with, “Well, I haven’t actually written anything yet, but that part’s … (More) “Read My Lips, No New Fart Apps”

February 7, 2012

The Toolbelt: Some of my most-used code snippets for PHP, MySQL, HTML and CSS.

I’ve meant to work on this for quite a while. These are some of my most used code snippets to shorten a process, handy workarounds, pieces of code I need all the time or other such things.

HTML: The Meta Redirect

Use case: You need to redirect someone to another page, and don’t want to bother notifying them.

Code: [code][/code]

Advantages: Silent, works cross-platform, timer can be set (in whole seconds) by adjusting the 0 in content, will work in the body even though it’s a meta tag.
Disadvantages: Breaks back buttons.

PHP/MySQL: Quickly process and sanitize form data.

Use case: You’ve just accepted a form and want to easily work with the data, and escape the data to prevent SQL injection attacks.

Code: [code]foreach($_POST as $key=$value) { $$key=addslashes($value); }[/code]

Advantages: Saves a lot of repetitive entering of $_POST[‘element’]. Instead you just use $element. Also escapes the data early on so we don’t forget further along in the code.
Disadvantages: You create a lot of variables instead of one array. Your array isn’t actually destroyed, just copied. The idea is that the backend is working primarily with this POST data so making a lot of variables isn’t an unwanted thing.

PHP/MySQL: Save an if statement on every mysql_error() check.

Use case: You need to use mysql_error() function to handle errors in your SQL statement.

Old code: [code]$result = mysql_query($query);
if(!$result) { die(mysql_error()); }[/code]

New code: [code]$result = mysql_query($query) or die(mysql_error());[/code]

Advantages: Reduces risk of typos breaking your page, cleaner.
Disadvantages: No known disadvantages.

PHP/MySQL: One standardized method of DB querying.

Use case: You want to get in the habit of one naming scheme for your MySQL queries, and don’t want to go the OOP route.

Code: [code]function doQuery($query) {
$result = mysql_query($query) or die(mysql_error());
return $result; }

…… (More) “The Toolbelt: Some of my most-used code snippets for PHP, MySQL, HTML and CSS.”

July 23, 2011

Dreamweaving Again

So the good news is I’ve gone longer without posting on here, but that’s like saying midget murder is more condonable because they’re about half a life.

I’ve started on a new web project, and with the number of features I want to build out it stands to be my most ambitious project yet, and it’s gonna require some new technologies. Understand that I really don’t like the thought of relying on JavaScript, due to long-standing grudges, but jQuery does offer features I’m really gonna need in this project, in a prepackaged solution. When I hear that there are quite a few Top 100 websites that make use of it, I’m reassured.

So, Project Havana, as I’m calling it right now, is fragrance-related and fills a niche that no other industry website has sufficiently covered. This will also serve as a website I can show as a portfolio piece for both the UI and backend. That’s still a field I’d love to do as a day job again, and I’ve also just recently found all the code for the largest project I’d worked on but was under NDA on for a year. So it’ll be good to have both projects available to point to. I’m being rather tight-lipped on the particulars to this project as I want to develop it at a slower pace, get each feature dialed in before moving onto the next one, and then when I have something worth putting out there, I can do it without regret or concern. So that’s new, as I usually throw up core functionality and build out the site as it’s live, add those features as people use the site.

I’m going to try and get back on the three-day writing schedule, we will see.… (More) “Dreamweaving Again”

January 5, 2011

On The Love And Loss Of Friends

The holiday season is a trying time for most of us, for a whole variety of reasons. This year, many former coworkers of mine and friends had to deal with the suicide of Jon Vance, a guy that was as intelligent as he was sociable, and one who I never would have thought was capable of such a thing. That was back on November 23rd of 2010, and I’ve found myself thinking about him every day since. I think part of it is because I haven’t had the closure of a funeral, or even seeing a grave, I experienced all the tragedy with none of the healing that comes with moving on.

Even hearing that guilt is a normal mechanism for suicide survivors, it makes the burden no less onerous. The argument with myself is that I should’ve spoken to him more, let him know he had friends and we really do care and want to see him do well, and not hurt. The placating counterargument is that I’m all the way out here, and he’s so far away, how much would it have meant? How much good would it have done? It’s the pain of never having an answer to that, no matter what and no matter how much you want one. Justifiably or not, I think a lot of us share a sense of guilt.

I have had closer deaths to me, my mother nearly six years ago and my grandfather around the age of 9. But I’ve never had to deal with someone I know taking their own life. Why does it feel so different? I did have plenty of time to prepare for losing Mom, after two near-death scares and seeing her the night before she died, I knew exactly what the call was at 4:45 … (More) “On The Love And Loss Of Friends”

December 15, 2010

PHP Lessons to my 16-year old self.

Over the past five days I’ve turned a sketch for a Basenotes March Madness site into a real, working application, and did it with efficiency, normalization and security in mind. Web design was something I started messing with when I was about 10 or 11 years old, with a little 64-page book that actually gave a good understanding of the basics. Though I don’t need to consult that book I still keep it around, maybe I’ll find some young nerd to pass it along to although quite a bit of it is deprecated code now. It wasn’t until 18 and in college that I learned C and subsequently PHP, and really got a feel for the database design that had always intrigued me. I’ve had several projects of varying scales, and picked up a significant bag of tricks. If I could go back and get my 16 year old self to do all the stuff he wanted to do, I’d have these words of wisdom for him.

  • Go pick up a copy of The C Programming Language. Forget about Perl, C will get you where you want to be.
  • MySQL is much, much easier to get started with than Oracle, and forget about ColdFusion, it’ll be dead soon.
  • JavaScript is sometimes a necessary evil. It can do things that are either way too cumbersome or flat-out impossible any other way. But don’t worry, JavaScript is becoming respectable.
  • Keep all your code from old projects. You’ll be amazed how much wheel reinvention you’ll save yourself when the time comes to implement a login system again.
  • All those ideas you’ve had in your head? You need to use $_POST[] and $_GET[] to make them work. That’s how you send data from page to page. GET is only useful if you only care
(More) “PHP Lessons to my 16-year old self.”
December 10, 2010

Chanel Platinum Egoiste – The Prophet Biggie Smalls

How does an early 90s aromatic fougère get street cred?

“…easy, call em on the phone and Platinum Chanel cologne and I stay, dressed, to impress…”
-Notorious B.I.G., Nasty Girl

I’m fairly sure Platinum Egoiste is the only bottle in my collection that has been rapped about, but smelling it, it’s hard not to see that Biggie was on the right track. Platinum Egoiste is an aromatic fougère, meaning it combines the fern, lavender and oakmoss trio of a traditional fougère with additional woods and spices. 1993 was a transition year for the fragrance industry, some of the last few heavy-hitters and offbeat mainstream offerings before CK One and L’Eau d’Issey Miyake in 1994 set the stage for the aquatic-dominant industry we find ourselves in now. Where most current offerings are either soapy, inoffensive aquatics, or cloying sweet club scents, Platinum Egoiste is neither, and instead opens with a blast of rosemary, clary sage and vetiver that is herbal, slightly bitter, and very “aromatic”. Give it a bit to settle down and you see that the top notes have made some room for the cedar and even a fleeting floral hint, which Basenotes lists as geranium. This combination is unique to my collection, Pasha de Cartier comes close but Platinum Egoiste does a more classy job of it. It’s fairly linear from this point, drying down and losing some of that effervescent, sparkling quality but retaining the slightly sweeter herbal scent.

It’s my belief that fougères are some of the best out there when you need to show a professional, mature side. It’s my go-to scent for job interviews, for example. It rarely overpowers unless grossly overapplied, so it’s workplace friendly. Projection is right about where I’d want it, longevity is average at 5-8 hours.

The marketing campaign for the … (More) “Chanel Platinum Egoiste – The Prophet Biggie Smalls”

August 31, 2010

Remembering August

Rumors of my demise are greatly exaggerated.

This month has been the best, busiest and most life-changing month I’ve ever experienced. Let me bring you up to speed.

Back in early August, Diana and I moved in together, which involved moving out of our respective cities and into a new town. We knew where we wanted to be, but even now as I sit here, looking out the window to see the sunset casting the Sandia Mountains red, it’s hard to believe that the hard work and determination paid off and we’re really here: Albuquerque, New Mexico.

The drive out here was an experience in itself, the first day was a long drive much like any other I’ve been on. The second, however, took us through the wind farms and hills of Western Oklahoma, the stark, desolate panhandle of Texas, devoid of life save for Amarillo, which seems to pop up from nothing and leaves you back on God’s definition of the flatlands just as quickly. After Texas was two hundred miles of New Mexico, and it included the most breathtaking driving of my life, through canyons and overlooking mesas and mountain ridges in the distance that evoked a thought I’d never had before, the thought that the landscape of where you call home could truly make you happy or sad, and maybe people are happier out here just because they get little flashes of the truly awesome in their day-to-day life. The fact that Diana and I still find breathtaking new views seemingly every week is confirmation in itself that we picked the right home, and in many ways I feel like I was always meant to end up here.

After moving quickly came work, four days after moving to a town where we knew nobody and had nary … (More) “Remembering August”

April 20, 2010

I thought I was following @BestBuyPaducah

Alright, I need to address this if I’m going to be posting on that particular Twitter account again. If you’re receiving this blog post via Facebook you’re more than welcome to ignore it. So from August last year to January this year you’ve been reading the Twitter feed from BestBuyPaducah, which has been my endeavor to get my workplace a bit more presence on the web while also being personable, relatable and generally a store you don’t mind reading about on Twitter. Several months ago I was told that Twitter was going to be made a mandatory thing for stores in my district (an area from around Cape Girardeau in the north to Nashville in the south). I’d been posting essentially because I wanted to, no pay, just for fun. With it being mandatory, it also became something that another department would handle, for hourly pay. This didn’t sit well with me for reasons I believe you can understand. After much arguing and being threatened with legal action and my job (you’re a great group of folks but a Twitter account isn’t worth my job), I caved and changed the name and let them do what they want with the BestBuyPaducah name.

So, let’s get some things straight:

I’m not a manager, I can’t do discounts via Twitter, promotions, or any of that stuff, and I won’t be involved with it if/when the time comes.

The opinions you see on the renamed account, DanielBBPaducah, are obviously mine and may not (and probably don’t) reflect on the opinions of Best Buy as a company. This is the same logic that applies to my opinions working on the floor, i.e., just because I think Canon makes the best digital camera on the market doesn’t mean corporate agrees.

I really like helping customers, … (More) “I thought I was following @BestBuyPaducah”

August 29, 2008

The Prophet Ice Cube

Today was a good day.

Okay no that’s all I’ve got in relation to Ice Cube. Today just went about as well as I could ever hope for a day to go. Woke up with no pain or stiffness in my ankle, got out of bed refreshed and sat in front of the new 32″ monitor (the computer hasn’t acted up in almost a week now), some Brian Eno playing as the creative juices stirred and I found myself completely caught up on my reviewing. Well, so I say, I’ve still got a bit over 30 reviews to go but I’m caught up in the niche experiment.

I’ve been in the process of trying to move up within the Office Depot company; it’s been unsuccessful but not for lack of effort. I’m currently in what’s considered a Level 1 position, and the next step up is (surprise) Level 2. One of the major conditions for working at the store I’m at currently is that I would be able to be promoted to this Level 2 position fairly quickly. Sure enough, about a month into my tenure there a spot opened up. I was told, yup, we’re all set, just gotta key you in for it. Fast forward to a week later. Nothing. Fast forward. Nothing, it never happened. The position simply isn’t there now, they chose not to fill it at all.

That wouldn’t have bothered me too much except that I was continually being led to believe that I was getting this position. If you’re not gonna do it, tell me you’re not gonna do it. Combine that with the fact that the manager in question is not what I consider a model leader (I’m wording this carefully), and it becomes pretty clear what my course of action was … (More) “The Prophet Ice Cube”