PHP 5.3 mCrypt dll for Windows

by justin carlson on 07/14/2010
There isn't one. Just a reminder, mcrypt is built in for PHP 5.3.x on windows, you don't need to do anything with a dll anymore.

Appcelerator, Titanium Mobile and Android

by justin carlson on 07/09/2010

I finally have a working development environment to test out Appcelerator's products. I'll step you through some of the gotchas I come across and do a bit of a review of the whole process as I work with Titanium Mobile.

Apple 4.0, New Terms, Worried Developers

by justin carlson on 04/08/2010
Check out this little gem in the Apple iPhone SDK 4.0 terms:

3.3.1 Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).

Does this mean Titanium Mobile, Unity3D, Ansca, MonoTouch, and possibly PhoneGap are headed to the deadpool?

Geeklog Migration Assistant

by justin carlson on 10/28/2009
Coffee Break Code - Quick Examples I've been migrating some Geeklog sites around lately and I was getting frustrated while changing config values between domains, databases, etc. I had been using Tony Bibb's migration script but it doesn't include some of the settings I wanted to change, and I'm a sucker for eye candy.  I created a new tool and have been using it. I think it's pretty stable but if you use it PLEASE make a backup first.

PHP 5.3 and Microsoft SQL Server

by justin carlson on 09/02/2009
Microsoft recently released an updated SQL server driver that works with PHP 5.3.x.  I needed to make some changes to a very old app that uses MSSQL and PEAR::DB so I decided to grab this and try it out.  Of course it didn't work out so well or I wouldn't be posting this.

Bug in PEAR_PackageFileManager Plugins for Windows Users

by justin carlson on 08/19/2009
There's a bug in PEAR_PackageFileManager_Plugins for windows users. It won't recognize CVS directories, and the build fails. The bug has been accepted and verified, but no stable release is available yet.  

The error users receive states:
PEAR_PackageFileManager_Plugins Error: Directory "foo" is not a CVS directory (it must have the CVS/Entries file)

PHP 5.3 - Changes to array() definitions.

by justin carlson on 07/08/2009
I've come accross this change ( bug? ) in PHP 5.3, while troubleshooting a Creole/Propel problem it caused.
Array items are not as defined when using the same key twice. PHP 5.3. Array order is Incorrect.
I have a feeling this will break code in other projects as well, so I've reported it here:
http://bugs.php.net/bug.php?id=48858&thanks=4

Why I want Canvas Support in IE

by justin carlson on 06/23/2009
My reasons for disgust at the lack of <canvas> in IE.
This is a response to: https://twitter.com/adrianba/status/2293950528

Sending Mail From Slicehost with PHP

by justin carlson on 04/29/2009
If you are trying to get mail going on a Slicehost or similar self managed hosting solution ( I'm using Ubuntu ), this quickie guide may help.

Spell Checking in Eclipse, Zend Eclipse

by justin carlson on 03/31/2009
You may be aware of Eclipse's built in spell checker.  It does not offer suggestions or replacement, but it will mark your mistakes. I was using a standard dictionary but of course it hit on a lot of php functions. I've created a decent dictionary that includes every PHP function and a ton of common words from various sources.  I'm sharing it here so others won't have to do the same. This post contains the dictionary downloads and instructions for enabling the spell checker in Zend Eclipse.

Windows "lag" when off domain network.

by justin carlson on 11/28/2008
I have been struggling with what I can only describe as "click lag" whenever I try to work from home with my laptop.  At work it's part of a domain, and a few drives are mapped automatically when I logon.  When I connect at home, it doesn't have access to the domain any more, and it becomes, well, very unstable at best.

Center Those Left Floated Links (CSS)

by justin carlson on 11/07/2008
So you've created some fancy web 2.0 looking buttons with a nice hover effect and maybe even a click effect, they sit float:left in your content.  You've even matched them up with your button element styles so everything looks pixel perfect. They look great don't they? Later in your site design you encounter a couple places where you'd like to center those buttons. Uh oh. There is no float:center. You can't center a dynamic width div using auto margins. So what do you do?

Cut straight to an example, or read more for the full info.

Google Maps and Directions, REST Interface?

by justin carlson on 08/12/2008
I'm looking into Google Map's Mobile API and it's RESTful interface.  I don't know if it's supported at all, it may even be against the TOS or TOU.  I do know it's not documented by Google at all. Why use it instead of the API they already supply?  The simple answer is, their GDirections API doesn't support all of the features you can access over the REST interface used by the mobile API.  These features include Walking directions, Highway or Non-Highway directions, and an option to avoid tolls.  The other obvious benefit is the ability to write server side code and avoid JavaScript all together.  Click read more to see example code.

More Cables

by justin carlson on 07/28/2008
I had ordered 6ft cables, and I guess I needed 10ft ones.  I went ahead and ordered 3 10ft, 1 15ft, a new set of 12ft rca's and 2 TOSlink cables while I was at it, might as well save on shipping right?  I think everything will arrive Wednesday so I can finish wiring up the living room and get stuff off the floor and chair they're currently on. I can't say enough praise for monoprice.com, good products, fast, cheap. 

Once these arrive I think I'll finally be done with everything house-related for a couple weeks!

PHP and PHAR

by justin carlson on 07/24/2008
This is just a simple guide for installing, configuring, and testing PHAR on Windows. Once everything is setup I will be benchmarking it.

Internet Tablet

by justin carlson on 07/22/2008
I decided I wanted a tablet PC to hang on my wall and display a Google calendar, and perhaps a few other custom pages I would write that could interface to a gallery app, etc.  Requirements were: Thin and runs a browser, and not much else.  I found some tablets on Ebay that looked like they might work.   The idea is simple, a website will handle multi-user calendars, allowing friends and family to submit events to my calendar via sms, email, or a web page.  The touch panel which would be on the wall in my kitchen would display my calendar and reminders, so I can throw away my paper calendar and stop writing things down everywhere.

But look at this on TechCrunch. Sweet Jesus. It's almost like they read my mind. 

HDMI Cables

by justin carlson on 07/21/2008
So you're standing in line at big box retail, and they want to sell you these high quality cables, they're called HDMI and the sales person seems to insist that they're the best for the TV you've purchased. What do you do? Tell them no thanks, tell them you're not spending $30 - $140 for a $5 cable.  Go home with your TV and buy your HDMI cables from monoprice.com instead. They're great cables and there is no difference in picture quality. HDMI cables carry digital content, 1s and 0s, and they either get to their destination or they don't, there's no "better", there's no fancier way to say 1 or 0.   Anyone that tells you any different is a fool or trying to sell you something you don't need.

Home Sweet Home

by justin carlson on 07/21/2008
I closed on my house on the 15th in the evening. Steve Hill was my Realtor and he was wonderful.  I would recommend him to anyone looking to buy or sell a home, he really made the process easy on me, even when there were delays from the sellers, etc.  Steve if you read this, thanks again!

Murder is Delicious

by justin carlson on 06/05/2008

Since I'm an Iowa farm boy at heart, I will never understand why anyone wouldn't want to have some delicious beef or pork.

I could not pass up the opportunity to see a "Naked PETA Protest".  My buddy Matt and I went downtown around 3pm for lunch. I had my delectable Arby's Big Roast Beef sandwich while I was there.  It was even tastier than I remembered them being. There were several others that had the same idea, some were wearing their burger king hats.

I'll post the rest of the pictures later tonight but here's the fun shots.


 

p.s. - No-one was naked.

Zombiephone - Back from the Dead

by justin carlson on 05/22/2008

After my phone washing, I took out the battery and ran a hair dryer on it for a few hours. It didn't want to work at all, so I put it away and planned on getting a new one. I found one of my spare batteries and put it in, hooked up the charger, and BINGO, phone came back to life, though a little less than perfect. I can't make calls ( I can receive and hear but not talk ), but data works, and most importantly, my contacts were safe!

So, if you're trying to call and I don't answer you know why, it rings and I don't pick up.

I'm really amazed at the PPC-6700 and it's durability. It's been dropped, run over and dismantled, washed in a washing machine, dried for a bit, and still functions to some degree.