Saturday, July 30, 2011

Fix VNC Screen Sharing after upgrade to OS X Lion

After upgrading my MacBookPro to OS X Lion I noticed that none of my Windows, and other non-Apple VNC clients such as TigerVNC, RealVNC or TightVNC could connect to it. Following some instructions in the Apple Support Discussions web site I installed the Onyx utility, used it to delete all the caches under the Cleaning section. After cleanup and reboot, VNC sharing works again, with TigerVNC, with iPad client etc.

Here is the download link to Onyx, I used version 2.4.0b3 which is the 10.3 MB (beta) download. You can skip the S.M.A.R.T. and system volume tests on startup.

http://www.macupdate.com/download/11582/OnyX-Beta.dmg

Good luck, please comment on whether this works for you.

Saturday, January 22, 2011

Mac Outlook 2011: Keyboard shortcut to quickly file messages

Trying a switch to Outlook 2011 for Mac I needed a keyboard shortcut to quickly move selected email messages to specific folders. I edited some of the default AppleScripts which appear in Outlook's script menu, ended up with a script per folder I want to move messages to. Next step was to assign a keyboard shortcut to each script e.g. Option-A for File Message to Archive, Option-F for File Message to Follow-Up and so on.


A sample script is below, this is the one I use to move messages to a folder named "Archive", I simply created copies of this script for each folder I want to move messages to from the keyboard. The script is saved under ~/Documents/Microsoft User Data/Outlook Script Menu Items/File Message to Archive.scptd


The keyboard shortcut mapping is done from the OSX > System Preferences > Keyboard panel, just create a new Application shortcut, pick Outlook 2011 as the application and enter the exact name of your script as it appears in the script menu.


(*

 File message to Archive folder

*)

on run {}
 
 tell application "Microsoft Outlook"
  
  -- listSelectedItems : a list of all items selected in Entourage
  set listMessages to current messages
  
  -- Check to make sure items are selected, if not then quit
  if ((count of listMessages) < 1) then return
  
  -- Iterate through selected items
  repeat with objInSelection in listMessages
   
   set listFolders to mail folders
   
   repeat with objFolder in listFolders
    
    if (name of objFolder is "Archive") then
     set gtdFolder to objFolder
    end if
    
   end repeat
   
   if (class of account of objInSelection is not imap account) then
    -- IMAP currently not supported
    move objInSelection to gtdFolder
   end if
   
  end repeat
  
 end tell
 
end run

Tuesday, August 17, 2010

Caveats of Snow Leopard's Exchange 2007 Integration

My Company recently switched to Microsoft BPOS which allowed me to use the native Exchange 2007 support in Snow Leopard. I'm documenting below the various caveats I've encountered while using Mail.app and iCal on BPOS. Overall Mail is very workable and easily became my default email client. Still struggling with iCal, pretty much using it as a calendar viewer but all editing is done via OWA or Outlook in a VM.

Mail.app (v4.3)
  • Cannot configure server-side Exchange email rules, only client side-rules (workaround: configure via OWA)
  • Doesn't support sending or requesting read-receipts
  • No HTML composing
  • No easy way to set font type or size when composing (see workaround from jasonjackson)
iCal (v4.0.3)
  • Doesn't allow editing message when declining invitation
  • Cannot delete event without sending a Decline message
  • Pending invitations remain in iCal even when deleted on Exchange server
  • Events forwarded to Outlook users appear to them as calendars
Address Book (v5.0.2)

Sunday, August 30, 2009

Fix Juniper Network Connect on Snow Leopard

If you are unable to connect your corporate Juniper SSL VPN with Network Connect after an upgrade to Snow Leopard, enter the commands below in a Terminal window:


sudo chmod 755 /usr/local/juniper/nc/6*
sudo mkdir "/Applications/Network Connect.app/Contents/Frameworks"



Try to connect as usual and this should do it.

Tuesday, August 18, 2009

Sort installed RPMs by size

Keep forgetting this one, to list all RPM packages installed on a Linux (Red Hat / CentOS) machine sorted from the largest to the smallest in size:

rpm -qa --queryformat '%{size} %{name}\n' | sort -rn | more

This outputs something like this:

[root@healthy ~]# rpm -qa --queryformat '%{size} %{name}\n' | sort -rn | more
87389896 kernel
66720559 glibc-common
35274936 perl
30873913 valgrind
28767659 selinux-policy-targeted
27805586 redhat-logos
27022854 valgrind
26982540 mesa-libGL
24517704 mesa-libGL
22091978 python
20474820 specspo


Sunday, July 5, 2009

Cydia size mismatch error

While installing SBSettings or other packages in Cydia it kept aborting the installation with the error "Size mismatch error" and an "Okay" button was the only option.

After some googling I found out it was probably network related, disabled Wifi to force going over 3G and the installation worked. It could also be that the repository server is down, in this case be patient and try again later.

Default root password on iPhone 3.0

Just installed SSH, was able to login with:

- root / alpine
- mobile / alpine

You can change the default passwords if logged in via SSH by using the 'passwd' command for both accounts.