Saturday, December 22, 2018

Remove iPad grey keyboard bar




If like me you are annoyed by the amount of space taken by the ‘Shortcut’ bar presented above the keyboard, you can make it go away by turning off Shortcuts under Settings > General > Shortcuts.

One caveat I’ve found on the new iPad Pros is that the convenient password fill shortcut is not longer presented when facing a login form. This is one that I use multiple times per day so I’m still on the fence with keeping shortcuts ON or OFF.






Tuesday, September 25, 2012

Fix iPhone 4 Home Button by rubbing it with alcohol

Incredibly this repair method has worked on two iPhones I own that had issues with their home button for over a year. One was not registering clicks at all for a while and while it's not 100% fixed it does work about 70% of the time now. The other phone's home button works 100%, sweet!


Saturday, September 8, 2012

MacBook Jerky Bluetooth Mouse and Wifi

Noticed today that my bluetooth mouse connected to my MacBook Pro gets nearly unusable when doing large file transfer to a nearby computer, the cursor is jerky and skips large parts of the hand motion.

This seems to be connected to Wifi vs. Bluetooth antenna interference, the jerkiness is significantly worse when my MacBook is in clamshell mode i.e. lid closed connected to external monitor. As soon as the MacBook lid is open the mouse cursor movements become smooth again. Problem goes away once file transfer is completed too.

Wifi 802.11g
Logitech M555b
MacBook Pro (15-inch, 2.53GHz, Mid 2009)
OS X 10.8.1

Saturday, July 30, 2011

Fix VNC Screen Sharing after upgrade to OS X Lion

Update: Mountain Lion seems to have fixed all issues I've had connection to the Mac from a Windows VNC client. The solution below has only worked intermittently for me.

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

*** UPDATE*** Microsoft released an Office 2011 SP2 upgrade on 4/12/2012, in this version of Outlook the scripts are expected to be placed in the folder: ~/Library/Application\ Support/Microsoft/Office/Outlook\ Script\ Menu\ Items/

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.

Monday, June 15, 2009

How to mount an LVM partition

This details the commands I had to run to mount a CentOS 5.1 main disk into another machine. Because of LVM using mount on standard scsi partitions is not enough.

Assuming main physical disk: /dev/sda
Second physical disk: /dev/sdb
  1. Run pvscan to list the physical volumes found in any block device of the system. Among error lines this returned PV lines for /dev/sda2 and /dev/sdb2. On the same line was the name of the volume group, in my case 'sysvg'
  2. Made the 'sysvg' volume group active by typing lvchange -ay sysvg. This created a new entry in the /dev/sysvg
  3. Doing an ls /dev/sysvg showed the different volumes under that volume group, from there simply had to do: mount /dev/sysvg/root.vol /mnt
  4. When done: umount /mnt && lvchange -an sysvg

Friday, May 22, 2009

GWT disable text selection in an HTMLTable

While modifying FlexTable to handle cell selection It took me a while to figure out how to disable the native text selection behavior of the browsers on 'SHIFT+Click' events. Turns out this native javascript function does the job pretty well. I tried playing with event.preventDefault() and event.stopPropagation() but that didn't work.

private native static void disableTextSelectInternal(Element e, boolean disable)/*-{
if (disable) {
e.ondrag = function () { return false; };
e.onselectstart = function () { return false; };
e.style.MozUserSelect="none"
} else {
e.ondrag = null;
e.onselectstart = null;
e.style.MozUserSelect="text"
}
}-*/;

@Override
public void onKeyDown(KeyDownEvent event) {
if (event.isShiftKeyDown()) {
disableTextSelectInternal(table.getElement(), true);
}
...

Thursday, May 7, 2009

How to disable GZIP compression in Firefox

Not sure this is the only/best way but I used the following steps to disable gzip compression in Firefox 3.0:

  1. Type about:config in the URL bar (Accept the disclaimer)
  2. Type encoding in the filter field underneath the URL bar
  3. Doubleclick the line network.http.accept-encoding
  4. Enter the following value instead of the default: gzip;q=0,deflate;q=0
Note: See comment from Anonymous below for a possible better way of doing this. Thanks Anonymous!

Delete Flash9f.ocx - Access is denied

After installing Windows 7 on an XP partition I couldn't completely get rid of the Windows.old folder. The culprits were a few ocx and dll files left with strange permissions by Adobe Flash and Acrobat. All attempts to take ownership and delete failed.

I was finally able to delete these files easily thanks to Unlocker.

Sunday, May 3, 2009

GWT+Eclipse: NoSuchMethodError

If you get this error message while compiling a GWT module in Eclipse, go to the project Build Path and change the Order/Export tab to have the GWT-SDK module at the top.

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.genericType()
Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
at com.google.gwt.dev.jdt.TypeRefVisitor.maybeDispatch(TypeRefVisitor.java:178)
at com.google.gwt.dev.jdt.TypeRefVisitor.endVisit(TypeRefVisitor.java:101)

Software List May '09

Here is the list of programs or utilities that I currently use to get things done. Many of them are open source and freewares, the ones that are not are marked with an asterisk.

The every day stuff:
  • OS: Windows 7 RC1 *
  • Office 2007 *
  • Firefox 3 / Chrome
  • Pidgin
  • gVim
  • SecureCRT *
  • 7zip
  • FileZilla
  • Greenshot (screen capture)
  • VLC
  • TrueCrypt
  • AutoHotkey
More specialized:
  • Wireshark (network capture)
  • WebScarab (http capture)
  • SquirrelSQL (sql client)
  • Eclipse (java coding)
  • Tomcat / Hibernate / Spring / GWT
  • PostgreSQL
  • TightVNC
  • VMWare *
  • GIMP
  • TPFanControl (keeps lap cool)
  • ClipX

Thursday, November 20, 2008

Check Point VPN on Mac OS X

I've given up on SecureClient for Mac OS X, currently using Leopard and found that IPSecuritas is a much better replacement. CPU usage when idle is insignificant compared to the 90%+ used by the Check Point client software.

IPSecuritas from Lobotomo Software