Latest Raspbian (2017-07-05-raspbian-jessie) dd: /dev/rdiskX: Invalid argument on OSX and other potential issues with “apt-get” post install

OSX, Raspberry Pi, Tip
So this morning I was trying to install the latest rasbian image onto an uSD card and was getting a strange error when I issued dd. I was using rdisk (BSD raw disk) device to speed up the image writing process (note: I don't think you get this error if you just use /dev/diskX). The dd process would finish and this error would come up:   dd: /dev/rdisk6: Invalid argument 4445+1 records in 4445+0 records out 4660920320 bytes transferred in 133.242184 secs (34980816 bytes/sec) At first I ignored the error and proceeded to boot the Pi, but as soon as I did apt-get update; apt-get upgrade, I would get dpkg errors like: dpkg: unrecoverable fatal error, aborting: files list file for package 'qdbus' is missing final newline E: Sub-process /usr/bin/dpkg…
Read More

Get rid of double (triple) entries in Finder’s “Open With” Menu

Apple, Leopard, Lion, Macintosh, Mountain Lion, OSX, osx Server, Tip
Does sh*t like this make you wanna smack your mac :-) Here is a quick way to rebuild the Launch Services database and get rid of duplicates in the Open With submenu: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user This process should take about a minute or two. You should check to see if this has fixed the problem. On my machine, running 10.8.2, I had to also restart Finder to complete the process using the following command: killall Finder That's all.....Now Open With submenu is squicky clean
Read More

IOS6 Passbook “Can’t connect to iTunes Store” error fix…..

Apple, IOS, ipad, iPhone, iPod, iPodTouch, Tip
Yeah, brand new app in IOS6 and it does not work without fiddling…..Here is how you get it working: Open Settings. Open General. Open Date & Time. Switch the Set Automatically setting to Off. Open Set Date & Time. Set the date to a year ahead. Go back to the Home screen and open Passbook. Tap the App Store button. The App Store should load. Go back to Date & Time and turn on Set Automatically. That's it…….life goes on :-)
Read More

Copying large number of files between two Unix/Linux/OSX Servers

CLI, Linux, OSX, osx Server, Redhat, rsync, ssh, SuSE, Sysadmin, Tip, Ubuntu, Unix
Here are some quick tip(s) for copying a ton of files between unixy machines really fast. You're probably thinking "why not use rsync?"…..well rsync can be miserably slow if your source or destination cpu is underpowered. You can always do a rsync after these commands to make 100% certain that everything checks out, but try using one of these methods for the initial copy: One way of doing it is tar -c /path/to/dir | ssh user@remote_server 'tar -xpvf - -C /absolute/path/to/remotedir' You'll be prompted for the remote servers password or you can use the private key of the remote server using the -i switch in the ssh command. This has the side benefit of preserving permissions. An alternate version of this command can also be used to locally move folder…
Read More

CLI commands that let you access meta data of all files in OSX

Apple, CLI, Lion, Mountain Lion, OSX, osx Server, spotlight, Tip, Tricks
Two small commands with huge possibilities: mdls  usage: mdls [-name attr] [-raw [-nullMarker markerString]] [-plist file] pathlist the values of one or all the attributes of the specified file -raw: don't print attribute names before values -nullMarker: substitute this string for null attributes in raw mode -plist: output attributes in XML format to file. Use - to write to stdout option -plist is incompatible with options -raw, -nullMarker, and -nameexample: mdls ~/Pictures/Birthday.jpgexample: mdls -name Keyword ~/Pictures/Birthday.jpg mdfind Usage: mdfind [-live] [-count] [-onlyin directory] [-name fileName | -s smartFolderName | query] list the files matching the query query can be an expression or a sequence of words -live Query should stay active -count Query only reports matching items count -onlyin <dir> Search only within given directory -name <name> Search on file…
Read More

How to install Office 2010 on Windows XP x64-bit edition

Microsoft, Tip, Tricks, Windows
Let me guess.....you tried it and it failed. Well, there is a way (probably not sanctioned by MS) to get this done. I've installed it on two separate machines and verified that it works. First you need to download MSXML 6 from Microsofts website. Just go to microsoft.com and search for MSXML. There should be a link to MSXML6.0 download. Download the 64-bit version of the software and install it. Then force a windows update by choosing windows update from the start menu. You will notice a bunch of updates for MSXML. Let it update the files and reboot after that's done. Now you need to get the x86 version of office 2010 off the cd and copy it onto your computer somewhere (I just dragged the folder onto my…
Read More

Map any network drive to Mac OS X that auto mounts after system reboot

Apple, Macintosh, OSX, osx Server, Tip
Here is a quick recipe for making a network drive auto mount on your OSX machine. This works with pretty much any protocol supported by Finders "Connect to Server" option. Here is how you do it: From the Finder, hit Command+K or select Connect to Server from the Go menu. You'll see the following window, enter the relevant information (ie: the network drive location, be it afp:// or smb:// or http://) and hit Connect button. Enter your login/password and click “OK” Make sure your Finder Preferences are set so Network Drives are visible on your desktop: At this point you should have a icon like on your desktop Now go to System Preferences under the Apple menu Click on the Accounts icon under System and select Login Items tab (you…
Read More