Monday, January 4th, 2010

Alex's Antidote iPhone icon
That’s right folks, my website is now iPhone friendly. (Note: from what I understand it should also work in certain other fancy phones too)
Here’s how it goes:
Step 1 – Open Safari -> Navigate to: alexsantidote.com

find Alex's Antidote in iPhone's Safari Browser
Step 2 – Check out my fancy mobile theme

New Mobile Theme

Page Menu
Step 3 – Bookmark for future reference

Bookmark Options
If you’re really awesome you’ll bookmark it to your Home Screen

Bookmark to iPhone's Home Screen
And you’ll see a nice shiny icon that will take you straight to this website when you touch it!

Shiny Bookmark Icon!
How’d I do it?
- Install the WordPress plugin called: WPtouch Mobile Plugin + Theme for WordPress
- Make a custom icon in GIMP (sudo apt-get install gimp)
- The icon should be saved in .png format.
- You will need 2 different sizes: 57 x 57 and 32 x 32
- Name the 32 x 32 icon something that reflects the name of your blog (I used: Alex`s Antidote)
- Name the 57 x 57 icon “apple-touch-icon.png” without the quotes.
- In WordPress Settings you will find a menu called: WPtouch, upload the 32 x 32 icon there (look around, you’ll figure it out), then make necessary adjustments below (lots of settings to play with).
- FTP/SSH into your root (and/or wordpress) directory for your blog and copy over the 57 x 57 icon you named “apple-touch-icon.png”
- Done!
Let me know what you think in the comments (if you have time).

Tags: Alex, Antidote, Apple, Blog, Bookmark Icon, Browser, Custom Icon, iPhone, Necessary Adjustments, Page Menu, Png Format, Quotes, Safari, Screen Caption, Ssh, Step 1, Step 3, Wordpress
Posted in General, Updates | 1 Comment »
Saturday, January 2nd, 2010

WordPress Logo by koka_sexton via Flickr
So I noticed yesterday that a newer version of WordPress was available. I clicked on the upgrade link and proceeded as usual until I was presented with the following error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2515174 bytes) in /var/www/usr/htdocs/wordpress/wp-includes/http.php on line 1327
This appeared very odd to me at first… 33,554,432 bytes allowed, but when it attempted to allocate only 2,515,174 bytes it caused a fatal error? Well as strange as that looks, there’s an easy fix…
(note, I assume you already backed up your DB and existing wordpress installation — proceed at your own risk)
To Fix*: (assuming you want to use the auto-upgrade feature still and not a manual upgrade)
———————————————
- Open your existing wp-config.php file in a text editor of your choice
(note: if your blog is hosted on your computer you can just open the file and save it when you’re done, if your blog is hosted on an external server like mine is, you’ll probably need to FTP or SSH in, retrieve a copy, edit, then upload the new version).
- Scroll down to almost the end of the file and you should see a comment that looks like this:
/* That's all, stop editing! Happy blogging. */
you want to put the code in step 3 just above this comment.
- Insert the following line of code on it’s own line (mine is on line 67):
define('WP_MEMORY_LIMIT', '64M');
- Save the file (and be sure to upload the new copy if you have an external host).
- Go back to your dashboard, click the upgrade link, and proceed as normal.
I hope this helps someone, I know it helped me…
*special thanks go to the kind folks found here: http://wordpress.org/support/topic/344567

Tags: Blog, Dashboard, External Server, Fatal Error, Fatal Error Allowed Memory Size, Ftp Ssh, Htdocs, Kind Folks, Logo, Memory Error, Memory Limit, Odd, Risk, Sexton, Special Thanks, Step 3, Strange, Upgrading Memory, Upload, Usr, Wordpress, Wp
Posted in Antidotes | 2 Comments »