Monday, April 23, 2012

Multi-Touch Gestures for Mac OS X


Finder, Mission Control, and Desktop
Push Windows Aside to Show Desktop – Four Finger Spread
Activate Mission Control – Four Finger Swipe up
Switch Desktops & Full Screen Apps – Three finger swipe left or right
Mission Control All Windows for Current Application – Four Finger swipe down
Zoom Into Window in Mission Control – Two finger swipe up over window
Open Launchpad – Four finger pinch
Drag Windows – Three finger hold and drag over window bar
Tap to Click – Tap with a single finger
Right-Click – Two finger click
Scroll – Two finger swipe in direction to scroll

Safari, Chrome, Firefox
Zoom In & Increase Font Size – Spread
Zoom Out & Decrease Font Size – Pinch
Go Back – Two Finger swipe right
Go Forward – Two Finger swipe left
Look Up Word in Dictionary – Three fingered double tap over word (Safari only)
Smart Zoom – Two finger double tap (Safari only)

Quick Look & QuickTime Player
Enter Full Screen – Spread
Exit Full Screen – Pinch
Scrub Video – Two finger swipe right or left (QuickTime only)

Preview
Rotate Image – Two finger rotate gesture
Zoom Into Image – Spread
Zoom Out Image – Pinch

Misc
Flip Calendar Pages – Two finger swipe left or right (iCal)
Refresh Tweet Stream – Two finger pull down (Twitter)

Thursday, April 5, 2012

HOW-TO:Install XBMC on iPad/iPhone/iPod touch

Last month I covered how to Send AirPlay Video from an iPhone or iPad to a Mac, PC, or TV with XBMC. TIme to show how to install XBMC on your iDevice.

Unfortunately, jailbreaking is a must for this tutorial. XBMC directly competes with some of Apple’s core products and has been rejected from inclusion in the App Store. The only way to enjoy the awesomeness that is XBMC is to jailbreak your device and download it directly from the XBMC repository.

Requirements:
  • To install XBMC for iOS you must have a jailbroken iDevice running iOS 4.x or higher.
  • For hardware: iPad 1, iPad 2, iPhone 3GS, iPhone 4, iPhone 4S, iPod touch 3rd gen (16GB and 32GB models only), iPod touch 4th gen.

Steps:
Step 1: Tap the Cydia icon on your homescreen.
Step 2-iPhone: Manage - > Sources -> Edit -> Add
Step 2-iPad: Sources -> Edit -> Add
Step 3: Type in  http://mirrors.xbmc.org/apt/ios/
Step 4: Tap on the teamXBMC source.
Step 5: Tap on the XBMC-iOS icon.
Step 6: Tap install, then confirm.
Step 7: Let it install, then exit Cydia. You should now have a new XBMC icon on your screen.

Links: How to Install & Configure XBMC on the iPad.

Sunday, April 1, 2012

How to install MySQL 5.5 on Mac OS X 10.7 Lion


This may not be obvious, but on the new Macs that ship with Lion, you can use the MySQL 5.5 64-bit dmg installer. It works perfectly on Lion, even though the MySQL site (still, at the time of this writing) says Mac OS X 10.6 Snow Leopard. You can use the Preference Pane to stop and start MySQL.

Now after MySQL 5.5 is running, strangely enough, you cannot simply launch terminal and type
mysql -u root
Bash will complain that it can’t find mysql. So we have to help it like so:

1. Use your favorite text editor to edit the file
/Users/%yourname%/.bash_profile
If this file doesn’t exist you can create it.

2. Add the following line to your .bash_profile
export PATH=$PATH:/usr/local/mysql/bin
and save the file. Be careful editing this file exactly as above. You can render terminal unable to find all your programs if you break your $PATH.

3. Quit and relaunch terminal, or type
source ~/.bash_profle
and hit return to reload the changes in your profile.

4. Check your $PATH by typing
echo $PATH
and pressing return. You should see something like this
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin
5. Now you should be able to run
mysql -u root
which means there is no root password by default!

6. Run this next, at the mysql prompt
GRANT ALL ON *.* TO 'root'@'localhost' IDENTIFIED BY 'your_password_here' WITH GRANT OPTION;
This is how to secure your root user login.

Now, for PHP to use this connection I had to tweak my system as shown below:

1. Run phpinfo() and check out the path PHP is trying to use for mysql.sock. On my new Mac Mini, it was
/var/mysql/mysql.sock
2. From terminal, I did
sudo find / -name mysql.sock -print
3. The critical line of output shows that MySQL 5.5 installs the sock to
/private/tmp/mysql.sock
4. Now we need to create a symlink for PHP to be able to access the mysql.sock. Trouble is if you try it you’ll get an error because /var/mysql doesn’t exist. So next, do
sudo mkdir /var/mysql
5. Finally, do this
sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock

Good Cydia Repo's

Apart from default repositories, I would recommend following Repo's for Cydia:

  • Hackulo.us - http://cydia.hackulo.us
    • First source to install after iPhone/iPod/iPad Jailbreak
    • Main Apps: Installous and AppSync [Must Have Cydia Apps]. You will need to install Installous ONLY; AppSync will be automatically installed.
  • HackYouriPhone - http://repo.hackyouriphone.org
    • Best source for cracked Cydia themes and DreamBoard themes (Cydia Store themes)
    • Main Themes: Amplified HD, BoxorHD, Boxor HD – Ceramic White, blAze HD/iPad, Elite PRO HD, Glass Orb, iFlat, iFlat4 HD iPad, iNitsua Z SD/HD/iPad, inPulse for iPad, inPulse HD/SD, Kryptonite, LiveOS, Omega HD, Prestige-HD/SD, revi-krs HD+SD, Revolve HD/SD, SBHD,Snow Leopard and many more
    • Good source for games DLC and cheats.
    • Excellent source for cydia apps/tweaks as well.
  • iHacksRepo - http://ihacksrepo.com
    • Good source for cracked apps/themes
  • insanelyi Repository - http://repo.insanelyi.com
    • Best source for cracked Cydia apps and Cydia tweaks (Cydia Store apps).
    • Main Apps: Action Menu Plus Pack, AndriodLock XT, Barrel, biteSMS, frash, Graviboard, Gridlock, iAcces, iFile, Infiniboard, Infinidock, Infinifolders, Lockinfo, Masks, Multifl0w, My Wi, SleepFX, YourTube 2 and many more.
    • Excellent source for cracked Cydia themes
    • Good source for games DLC and cheats
  • xSellize - http://cydia.xsellize.com
    • Repo hosts a good deal of ROM packs for Game Boy Advance, Nintendo 64 and NES which of course you can load on your emulators.
    • Excellent source for cracked Cydia Store apps/themes: e.g. Cycorder, Cyntact, CLASSified HD, FBUploader, iBlacklist, ScrollingBoard, Speed Intensifier and many more.
    • May cause Cydia loading errors
  • Sara Official Repo - http://isoftjsc.com
    • Repo to download Sara
  • xmbc Official Repo - http://mirrors.xbmc.org/apt/ios/ 
    • Repo to download xmbc
Others (decent but not necessary):
  • BYA (BiteYourApple) - http://repo.biteyourapple.net
    • This repo contains a wide range of apps, mods and ringtones for your iPhone. This is one of those all-in-one repos that holds some highly popular and useful Cydia apps and tweaks. It even contains some new jailbreak tweaks for the iOS 5.
    • Excellent Italian source for Cydia apps/themes, e.g. Full Screen for Safari, GroupSMS,Home Page in Safari and Wifi Sync.
  • P0dulo - http://p0dulo.com
    • Not a very well-known repository but once you browse the content of this repo, you will find that it contains a wide range of pretty much anything. Apps, tweaks, utilities, addons, themes, ringtones, emulators, you name it. The number of content is not that high but it makes up for the quality.
  • iCauseFX - http://repo.icausefx.com/
    • Another repository that is rich in content. One thing that you will notice about this Cydia source is the wealthy selection of themes although there is no shortage of apps and tweaks to be found in here. We recommend that you install the iCauseFx repo icons after adding this source for easier package browsing.
  • PwnCenter - http://apt.pwncenter.com
    • When it comes to ringtones, themes and wallpaper, then you can't go wrong with this source. This repo specializes in hosting multimedia content rather than the usual apps and tweaks. Again this repo hardly has any tweak or app, so if those are what you are looking for, then you might want to look elsewhere.
  • Sinful iPhone - http://sinfuliphonerepo.com
    • Excellent source for free Cydia apps/themes: e.g. AndroidLock, Attachment Saver, FaceBreak, GameBoy emulator, iBlueNova, iRealSMS, My3G, MyWi, and NES emulator.
    • May cause Cydia loading errors
  • iAP Cracker Official Repo/Source - http://cydia.myrepospace.com/urus
    • iAP Cracker: Great app cracks inApp Purchases and make it Free.
    • Examples for free inApp Purchases: Angry Birds (Mighty Eagle), Asphalt 6: Adrenaline, Jetpack Joyride, Line Birds, Plants vs Zombies and Tiny Tower.. .
  • 51iPA Source - http://cydia.51ipa.com
    • Chinese source, known as the best games DLC/Cheats worldwide.
  • iHackstore Repo/Source - http://ihackstore.com/repo
    • Good source for cracked apps/themes
  • TheiPhoneSpot Repo/Source - http://apt.theiphonespotrepo.net
    • New source: Cydia apps and Cydia themes.