Posts Tagged ‘hack’

Simple iPhone voicemail backup

Saturday, January 2nd, 2010

A great article from Strangely Dim on how to backup voicemail messages from the iPhone simply, with no additional apps, and no Jailbreaking.

1) Backup your phone in iTunes
2) Run a simple Terminal script (copy and paste)
3) Wait a few seconds and all of your voicemails are converted to .amr files. The one trick is giving the script a minute or so to run, I kept running it over and over without waiting for it to terminate on its own. Patience!

The script you need to run is here:

pushd ~/Library/Application\ Support/MobileSync/Backup ; \
for I in `find . -name *.mddata -exec grep -la “#\!AMR” {} +` ; \
do cp $I $OLDPWD/`basename -s mddata $I`amr ; \
done ; \
popd

And make sure to click through to Eric’s original article. Thanks for the hint!

How to use Twitter’s RSS Feeds in Flash without the Twitter API

Friday, May 8th, 2009

Due to security changes by Twitter, Flash files not residing on the Twitter.com servers cannot directly access the RSS feeds of Twitter users. I’ve seen dozens of posts around the net regarding these changes and found a simple way to get around the restrictions using php. The issue – Flash cannot pull data from a server unless the server specifically allows it in its crossdomain.xml file. Whenever I am having trouble pulling data into Flash this is always the first place I look. There is a pretty simple workaround in php using a script as an intermediary so the Flash player’s security settings don’t kick in. Create a php file called “twitter.php” and point your Flash file to it exactly as you would the Twitter rss feed. Within the file, include the following code:

< ?php
$twitterFeed = 'http://twitter.com/statuses/user_timeline/22540123.rss';
$outputFeed = @file_get_contents($twitterFeed);
print $outputFeed;
?>

You will need to change in the variable twitterFeed to point to the Twitter RSS you want to parse. That’s it! This should work any time you are looking to pull RSS feeds from a server that doesn’t allow you to access it directly through Flash.