safari gets stuck loading and rendering part of page

Maybe dns prefetch issue (like with google adsense).  Try, in your mac:   defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false Or these other various tricks at http://support.apple.com/kb/TS3408


ubuntu unity messed up

You login to ubuntu. desktop all messed up.   try: gconftool-2 –recursive-unset /apps/compiz-1 unity –reset or unity –replace  


Remove apps from doc (does not uninstall)

Method 1) Using Launchpad – Mac App Store apps only Hold down the Option key, and once the icons start jiggling click the “X” shown in the corner of icons that you want to delete. This removes the app from Launchpad, and does not uninstall them, but this is limited to apps installed from the […]


Mac OS missing ~/Library directory

Apple hides it so you can’t shoot yourself in the foot. To show it permanently in finder: chflags nohidden ~/Library/ To hide it: chflags hidden ~/Library   You can show it temporarily in the Go menu by clicking on option.


Starting x windows after su as someone else after ssh

If you need to start an x window after sudo ing as someone after doing ssh, you may run into permission problems, for example:   ssh -Y A@remote_machine su B xclock   it will fail. To grant such permission, as user A, type: xauth list then, copy the whole line.  Su to B, and type: […]


grub rescue

When in grub rescue, you only got insmod, ls, set, unset (I think). Thus, you must insmod the required modules in order to be able to do anything substantial. do: set root=<whatever> set prefix=<whatever>/boot/grub where <whatever> is like (md0) or (hd2,1). the /boot/grub is by default where modules are, so that insmod will work. If […]


svn tunneling

subversion uses ssh. If ssh blocked from A to C, but A-> B and B->C is not blocked, setup tunneing:   1. on A: /etc/subversion/config in the [tunnel] section, add: ssh = $SVN_SSH ssh -o ControlMaster=no <machine B’s hostname> ssh -o ControlMaster=no   2. on B: /etc/ssh/ssh_config HostbasedAuthentication yes EnableSSHKeysign yes   3. on C […]


A Musing on WordPress and Website Hacking

Introduction As an owner of a software and IT company, I love to solve technical problems. That’s why when recently sites I own and run, as well as my customers’ sites, were seemingly infected with malware (through no fault of mine or the company’s, more on this later), and having swiftly removed the said malware, […]


screen after su

you su, then screen, and get:   “Cannot open your terminal ‘/dev/pts/3’ – please check.”   You instead need to run: screen < /dev/tty