iOS 5 changed the database that deals with Calendar colors. The value is now a hex value just like CSS uses (something like #fe6548)

- Install sqlite3 via Cydia

- ssh to your iPhone

- Run sqlite3 and open the calendar database

iPhone:~ mobile$ sqlite3 /var/mobile/Library/Calendar/Calendar.sqlitedb

- Issue the SQL commands to change the calendar colors:

sqlite> UPDATE Calendar SET color='#9FC6E7' WHERE title = 'Chris Carey';
sqlite> UPDATE Calendar SET color='#FF7537' WHERE title = 'Work';
sqlite> UPDATE Calendar SET color='#D06B64' WHERE title = 'Important';
sqlite> UPDATE Calendar SET color='#B3DC6C' WHERE title = 'School';
sqlite> UPDATE Calendar SET color='#4986E7' WHERE title = 'Chris & Nasique';
sqlite> UPDATE Calendar SET color='#AC725E' WHERE title = 'Health';

-Quit sqlite3

.quit

-Quit ssh

exit

If needed, kill the calendar app or reboot the phone to get it to reload the new colors

 

Twitter API, PHP precision and scientific notation

On November 29, 2011, in Uncategorized, by Chris Carey

If you use PHP and the Twitter API, be on the lookout for this issue.

Twitter IDs are up to 141 quadrillion (141 million billion). These Twitter IDs exceed PHP’s default precision of 14. So your Twitter IDs could be converted to scientific notation by PHP.

A Twitter ID of 141675395434037249 will be stored as 1.41675395434037249E+17 once PHP gets it’s hands on it.

This could cause code that has been working great for a while to stop working.

Edit your php.ini and set precision to 20, or use
ini_set(‘precision’, 20);

 

Debian squeeze libmysqlclient.so.15

On November 18, 2011, in Uncategorized, by Chris Carey

Here is what you need if you have some binary on Debian squeeze which wants libmysqlclient.so.15


wget http://ftp.nl.debian.org/debian/pool/main/m/mysql-dfsg-5.0/libmysqlclient15off_5.0.51a-24+lenny5_i386.deb
sudo dpkg -i libmysqlclient15off_5.0.51a-24+lenny5_i386.deb

 

mBuzz Maintenance Page

On October 12, 2011, in Uncategorized, by Chris Carey

mBuzz Maintenance page. The ‘Like’ and ‘Comment’ buttons both function. It sent the Likes and Comments into an IRC channel that could be seen during the upgrade process.

 

Show or Hide hidden files in Finder OS X

On May 10, 2011, in Uncategorized, by Chris Carey

Here is how it’s done via the Terminal:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

How to Hide Hidden Files:

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

Thanks Brooks Andrus

 

Google Search Globe

On May 6, 2011, in Uncategorized, by Chris Carey

Google is working on this open source data visualization project Search Globe, check it out. I’m a big fan of creative data visualization.

 

MacBook Air 2010 Faces of Death

On May 4, 2011, in Apple, by Chris Carey

My MacBook Air 2010 has been crashing a lot. Here is a sampling of some of the screens of death I’ve experienced over the past 3 days.

I’ve read that this is an issue with the Macbook Air’s when attached to an external monitor (link). It certainly does seem more common when connected to a monitor. However, I’ve got the crash when using the laptop without connector as well.

Also, when connected to some monitors with VGA, there is a wavyness to the screen image which look like jagged vertical saw blades.

Blue screen of death (no external monitor):

20110504-070101.jpg

Continue reading »

 

Google Buzz link inside GMail

On February 21, 2011, in Uncategorized, by Chris Carey

The location of Google Buzz within GMail does not make sense to me.

Currently Google Buzz is inside of GMail, along with Inbox, etc:

Here is how it should look. Google Buzz should be it’s own section up with Mail:

 

Firesheep netmask error solved

On November 8, 2010, in Uncategorized, by Chris Carey

When using Firesheep on MacOSX you get:

“Couldn’t get netmask for device en1: en1: no IPv4 address assigned.”

Open up terminal and type “ifconfig” to see if your ethernet cart is indeed on en1. My Mac Air has the wireless card as en0, not en1.

Go to the url “about:config” in Firefox. This opens up extra configuration options for Firefox. Search for ‘firesheep’ and there will be an option to change the Firesheep interface.

Tagged with:  

Super Mario Bros Blocks

On September 27, 2010, in Art, by Chris Carey

As a distraction from all the Calculus homework I had to do this weekend, here is my weekend art project Super Mario Bros Blocks

The blocks were purchased from Barclay Woods http://www.barclaywoods.com/craft_parts.htm#cubes

The people at Barclay are great and I would definitely do business with them again.