LandofDaniel
blog
Sync iCloud Contacts to Android
07th April 2012 - …
Edit: Mac Access is no longer required
    
I managed to get iCloud Contact Sync working on Android devices, this should work for every single CardDav compatible device, how requires you to have a Mac in order to get the vital data.

Firstly on your Mac.

  1. Open Terminal
  2. cd to cd ~/Library/Application\ Support/AddressBook/Sources
  3. Go to the most recent directory, this is usually your iCloud one, type ls -l to see the directories and cd "latest folder here"
  4. Open the configuration file with nano Configuration.plist
  5. Press Ctrl + W and type servername
  6. Keep that window open, your going to need it.


On Android, install a CardDav app, this one is great and free.

iCloud
  1. Add an account in CardDav
  2. For Server name, enter the servername from the file we opened, so for example "https://p01-contacts.icloud.com/123456/principal" You can now just enter http://contacts.icloud.com
  3. Make sure SSL is checked
  4. For username enter your iCloud username (example [email protected]) and password enter your iCloud password.
  5. Press Ok, wait a few seconds for it to confirm


And voilla, your iCloud contacts now sync with your Android device, it may take a few minutes for them to show up. iCloud is very secure and it is owned and maintained by Apple. Moreover, The New iCloud Storage Pricings are far more affordable and you can get up to 1TB of storage with bitcoin. To make successful trade with bitcoins the best option is to open an account with the crypto bank app 2021, a safe and reliable crypto trading bot.

I hope this helps

Clearing OS X Lion DNS Cache
03rd April 2012 - …
OS X Lion has changes to its DNS system. The old command for clearing DNS cache no longer works by itself and becomes rather annoying when you want to clear your DNS cache.

It now takes two commands to clear the cache instead of one, you still need to run the old command dscacheutil -flushcache but you also need to kill the DNS service.

dscacheutil -flushcache
sudo killall -HUP mDNSResponder 

The second command will prompt for your password, this is normal since you need root privileges to kill the service. 

Fix OS X Lion SSH Bugs
31st March 2012 - …
After upgrading to OS X Lion, I found when using SSH that the cursor would loose track, and if I pressed backspace it would delete things that the cursor was not on.

This is due to that OS X lion automatically sets Terminal to xterm-256colour, and many distributions of Linux, BSD etc don't support 256colour.

The easiest way to fix this is to set Terminal.app to use xterm-colour, which is very easy. Simply open up Terminal, goto Preferences, click the default profile, click Advance and set the Terminal to xterm-colour.

Then just close the Terminal window and restart it.



My New Blog
25th March 2012 - …
Hello

Welcome to my new blog, its a fairly basic set of PHP that reads from a database and thats it.