5 March 2013 10:14
If you’re running Mac OS you might have lots of duplicate entries in your “open with” menu. Thanks to a quick Google I found this post which details the fix, which, is nice and simple!
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
You’ll need to the relaunch /force quit finder or reboot.
Only issue I had was a couple of default “open with” options had reset, but, get info on those types and reset takes no time at all.
Filed: General //
15 February 2013 13:55
Kind of old news now, but, I’ll post this anyway.
Take a read of this post. To find out what it’s all about and how it was done. If you don’t understand or can’t be bothered, here’s the output.
$ traceroute 216.81.59.173
traceroute to 216.81.59.173 (216.81.59.173), 64 hops max, 52 byte packets
1 192.168.50.1 (192.168.50.1) 0.572 ms 0.375 ms 0.364 ms
2 84.19.53.18 (84.19.53.18) 0.575 ms 0.565 ms 0.527 ms
3 84.19.53.2 (84.19.53.2) 2.520 ms 2.935 ms 2.440 ms
4 88.211.81.53 (88.211.81.53) 2.662 ms 2.977 ms 2.623 ms
5 v207.core1.lon1.he.net (216.66.80.177) 5.594 ms 10.048 ms 13.509 ms
6 10gigabitethernet2-4.core1.par2.he.net (72.52.92.42) 9.420 ms 12.393 ms
10gigabitethernet7-4.core1.nyc4.he.net (72.52.92.241) 71.061 ms
7 10gigabitethernet2-3.core1.ash1.he.net (72.52.92.86) 81.497 ms 76.879 ms 84.098 ms
8 10gigabitethernet1-2.core1.atl1.he.net (184.105.213.110) 96.704 ms 99.003 ms 99.772 ms
9 216.66.0.26 (216.66.0.26) 95.045 ms 93.482 ms 103.896 ms
10 10.26.26.102 (10.26.26.102) 129.185 ms 127.454 ms 128.497 ms
11 episode.iv (206.214.251.1) 127.964 ms 130.673 ms 126.375 ms
12 a.new.hope (206.214.251.6) 132.574 ms 135.954 ms 132.619 ms
13 it.is.a.period.of.civil.war (206.214.251.9) 137.614 ms 134.545 ms 132.662 ms
14 rebel.spaceships (206.214.251.14) 136.608 ms 148.727 ms 136.672 ms
15 striking.from.a.hidden.base (206.214.251.17) 138.535 ms 130.344 ms 128.546 ms
16 have.won.their.first.victory (206.214.251.22) 131.485 ms 129.979 ms 128.568 ms
17 against.the.evil.galactic.empire (206.214.251.25) 129.952 ms 132.530 ms 134.179 ms
18 during.the.battle (206.214.251.30) 136.926 ms 137.240 ms 128.703 ms
19 rebel.spies.managed (206.214.251.33) 129.211 ms 129.687 ms 131.459 ms
20 to.steal.secret.plans (206.214.251.38) 137.336 ms 134.963 ms 137.010 ms
21 to.the.empires.ultimate.weapon (206.214.251.41) 137.164 ms 132.548 ms 136.727 ms
22 the.death.star (206.214.251.46) 138.797 ms 135.106 ms 131.307 ms
23 an.armored.space.station (206.214.251.49) 131.542 ms 127.945 ms 127.242 ms
24 with.enough.power.to (206.214.251.54) 132.804 ms 136.714 ms 136.465 ms
25 destroy.an.entire.planet (206.214.251.57) 137.520 ms 131.996 ms 132.086 ms
26 pursued.by.the.empires (206.214.251.62) 127.587 ms 128.695 ms 133.108 ms
27 sinister.agents (206.214.251.65) 132.133 ms 130.615 ms 131.129 ms
28 princess.leia.races.home (206.214.251.70) 136.134 ms 148.275 ms 147.835 ms
29 aboard.her.starship (206.214.251.73) 147.638 ms 141.807 ms 129.552 ms
30 custodian.of.the.stolen.plans (206.214.251.78) 140.750 ms 142.327 ms 150.433 ms
31 that.can.save.her (206.214.251.81) 150.344 ms 145.455 ms 139.564 ms
32 people.and.restore (206.214.251.86) 141.018 ms 133.512 ms 133.397 ms
33 freedom.to.the.galaxy (206.214.251.89) 135.804 ms 130.033 ms 131.854 ms
34 0-----i-------i-----0 (206.214.251.94) 131.347 ms 131.364 ms 136.892 ms
35 0------------------0 (206.214.251.97) 137.222 ms 138.468 ms 135.353 ms
36 0-----------------0 (206.214.251.102) 130.934 ms 131.678 ms 131.364 ms
37 0----------------0 (206.214.251.105) 131.165 ms 128.787 ms 132.123 ms
38 0---------------0 (206.214.251.110) 131.030 ms 130.483 ms 136.405 ms
39 0--------------0 (206.214.251.113) 136.736 ms 137.485 ms 139.646 ms
40 0-------------0 (206.214.251.118) 132.272 ms 129.410 ms 131.636 ms
41 0------------0 (206.214.251.121) 130.995 ms 137.218 ms 136.325 ms
42 0-----------0 (206.214.251.126) 138.280 ms 137.995 ms 138.286 ms
43 0----------0 (206.214.251.129) 136.456 ms 137.882 ms 137.453 ms
44 0---------0 (206.214.251.134) 132.797 ms 131.182 ms 132.678 ms
45 0--------0 (206.214.251.137) 131.026 ms 146.013 ms 134.406 ms
46 0-------0 (206.214.251.142) 136.977 ms 134.188 ms 131.634 ms
47 0------0 (206.214.251.145) 133.170 ms 132.137 ms 131.775 ms
48 0-----0 (206.214.251.150) 131.519 ms 130.287 ms 132.893 ms
49 0----0 (206.214.251.153) 133.129 ms 138.519 ms 136.406 ms
50 0---0 (206.214.251.158) 138.966 ms 146.695 ms 142.437 ms
51 0--0 (206.214.251.161) 143.186 ms 132.973 ms 133.305 ms
52 0-0 (206.214.251.166) 137.930 ms 135.482 ms 136.323 ms
53 00 (206.214.251.169) 137.449 ms 135.504 ms 136.256 ms
54 i (206.214.251.174) 136.883 ms 135.939 ms 131.455 ms
55 by.ryan.werber (206.214.251.177) 131.137 ms 131.221 ms 131.316 ms
56 when.ccies.get.bored (206.214.251.182) 131.330 ms 131.044 ms 132.570 ms
57 read.more.at.beaglenetworks.net (206.214.251.185) 131.069 ms 135.185 ms 136.913 ms
58 read.more.at.beaglenetworks.net (206.214.251.190) 138.096 ms * 138.574 ms
Filed: General //
19 December 2012 21:13
If you run WordPress and have updated it, in my case to 3.5, you may have come across the bug where the “Publish” button disappears and all you can do is “Submit for Review”.
Now, a google search for this returns thousands of results, the fixes range from auto_increment values being full, harddrives being full, dodgy plugins, non-latest version plugins and DB corruption.
For me, non of those fixes worked. I started backing up the DB tables just by doing a simple duplication and on one table hit an error telling me that the default value (0000-00-00 00:00:00) wasn’t valid for a datetime column. I’m running MariaDB, but, it’s essentially MySQL – but fixed.
Turns out the fix is to remove NO_ZERO_DATE,NO_ZERO_IN_DATE from the sql_mode in the my.cnf. Restart and the issue goes away.
Interestingly on the previous WordPress version I had a plugin installed (Incorrect Datetime Bug Fix) but had to uninstall it because it broke 3.5.
WordPress need to get their date handling in order!
Filed: General //
22 October 2012 13:24
If you’ve upgraded to Mountain Lion you might not have Xcode’s command line tools installed anymore. Normally you can install via Xcode itself, but, if you’re going to be doing this remotely you’ll need command line instructions. It’s actually not to tricky. You’ll need a developer account for Apple though.
If you go to https://developer.apple.com/downloads/index.action, login and then (at the time of writing) download “Command Line Tools (OS X Mountain Lion) for Xcode – October 2″ you’ll be on the way.
Next, mount the DMG:
$ hdiutil attach -mountpoint /Volumes/xc xcode451cltools_10_86938200a.dmg
Then run the installer:
$ sudo installer -pkg Command\ Line\ Tools\ \(Mountain\ Lion\).mpkg -target "/"
Lastly, detach:
$ hdiutil detach /Volumes/xc
Filed: General //
8 June 2012 15:58
You might notice that you’re now being bounced to archive.ianwinter.co.uk for all posts. I’m planning to move home over to ian.io. Right now you’ll end up in a loop of death until the holding page is finished.
Plan isn’t set, but, I might move over to jekyll, I might stay with wordpress, I might just not blog as much, I don’t know!
Either way it’ll change and I don’t have a new design yet.
Filed: General //
14 September 2011 23:14
Had a need to quickly (and easily) replace some yum packages this evening, namely getting mysql5.0 to 5.5 and php5.1 up to 5.3. I wasn’t looking forward to doing this manually as keeping the dependencies in check is a faff at best. A quick Google however led me to the package yum-plugin-replace. This very easily sorts all the plugins out, flips them in out, shakes them all about and quicker than you can say Robert’s your mother’s brother sorts it all out.
Getting it going is easy:
yum install yum-plugin-replace
yum replace mysql --replace-with mysql55
Do the usual confirmations and you’re done! Same goes with php to php53. This does of course assume you’ve already installed the EPEL and IUS channels to get this packages from.
On a side note, if you do mysql don’t forget to run the upgrade script.
mysql_upgrade --password
Filed: Technology // Tagged: centos, mysql, php, yum //
27 July 2011 14:22
Nothing to do with Ian’s aside from the fact I found them. Also a post more for reference than anything else but a couple of interesting posts I’ve seen recently.
News that Velocity are running an EU conference is also welcome news.
Filed: Technology // Tagged: ianteresting, links //
27 July 2011 14:16
This has been done to death on the vast expanse of the interweb, but, I’m blogging it anyway more for my own reference than anything else.
OS X Lion is distributed via the App Store however it’s really easy to make a USB drive that’s bootable which you can use to install Lion from.
- Load up Mac App Store, login, purchase and download OS X Lion.
- Once downloaded, open Finder and go to the Applications and locate the “Install Max OS X Lion” file
- Right click on the downloaded file and select “Show Package Contents”.
- Go to “Contents”, then inside the “SharedSupport” folder and you’ll find a file titled “InstallESD.dmg”. Copy this over to the desktop. Make sure you copy and paste rather than drag & drop this file.
- Plugin the USB drive you want to use. 4GB is enough, but, I’d do it on an 8GB one. I used one of these with Amazon’s frustration free packaging, which rocks!.
- Open up “Disk Utility” and drag InstallESD.dmg from wherever you copied it to in to the left-hand sidebar. Select the attached USB from left side and click on “Partition” tab.
- Select “1 Partition” from the Volume Scheme dropdown menu. Choose “Mac OS Extended (Journaled)” from the left.
- Now click on “Option” at the bottom. Select “GUID Partition Table” and press OK. Now click on Apply at the bottom right. Be warned this is will erase all data on your USB flash drive.
- Once it’s done formatting click on ”Restore” (it’s right next to where you clicked on “Partition” in Step 6).
- Choose the USB drive you plugged-in in Step 5 as “Destination” with the InstallESD.dmg file as “Source”.
- Click Restore and type in your password. This will create the Lion bootable USB flash drive.
After it’s done, you’re pretty much set. You can either carry on and install Lion or you can reboot with your USB drive plugged in and whilst holding down the “Option” key select it and boot up to the installer.
Also, if you don’t back up your machine and loose everything, don’t blame me. Good article on backing up and more specifically cloning can be found over on Craig Grannell’s site.
Thanks to articles on Mashable, Information Week and Redmond Pie.
Filed: Technology // Tagged: install, lion, mac, osx //
16 May 2011 22:21
Just because I can really I setup Dropbox syncing on one of my CentOS 5 servers. It’s a little bit of a faff, but, not that hard. The official guide is online, but, this is a shorten version and might not cover everything but it worked on my headless VM just fine.
First up su to whichever user you want to install Dropbox as. You’ll need two terminal’s open so fire them both up now. You’ll also need lynx, gcc and python installed so if you don’t have, sort that out with yum.
In your home directory grab the correct binary for you (x86 or x86_64).
wget -O dropbox.tar.gz http://www.dropbox.com/download/?plat=lnx.x86
wget -O dropbox.tar.gz http://www.dropbox.com/download/?plat=lnx.x86_64
Now unpack it and start it up in your first terminal window.
tar xvfz dropbox.tar.gz
~/.dropbox-dist/dropboxd
Now in your second terminal go to http://dropbox.com using lynx (lynx http://dropbox.com) and login, then using the key shortcut “g” paste in the URL that your first window should now be prompted you to go to. This is to register the machine with your Dropbox account. You’ll need to scroll down the page to re-enter your password. Once done the first window should say hello to you and it’ll quit.
Next up sort out the init.d script. Put the following in /etc/init.d/dropbox and chown 755 it when you’re done.
# chkconfig: 345 85 15
# description: Startup script for dropbox daemon
#
# processname: dropboxd
# pidfile: /var/run/dropbox.pid
# config: /etc/sysconfig/dropbox
#
### BEGIN INIT INFO
# Provides: dropboxd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the Dropbox file syncing daemon
# Description: Dropbox is a filesyncing sevice provided by dropbox.com
# This service starts up the dropbox daemon.
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
# To configure, add line with DROPBOX_USERS="user1 user2" to /etc/sysconfig/dropbox
# Probably should use a dropbox group in /etc/groups instead.
[ -f /etc/sysconfig/dropbox ] && . /etc/sysconfig/dropbox
prog=dropboxd
lockfile=${LOCKFILE-/var/lock/subsys/$prog}
config=${CONFIG-/etc/sysconfig/dropbox}
RETVAL=0
start() {
echo -n $"Starting $prog"
if [ -z $DROPBOX_USERS ] ; then
echo -n ": unconfigured: $config"
echo_failure
echo
rm -f ${lockfile} ${pidfile}
RETURN=6
return $RETVAL
fi
for dbuser in $DROPBOX_USERS; do
daemon --user $dbuser /bin/sh -c "/home/$dbuser/.dropbox-dist/dropboxd&"
done
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}
status() {
for dbuser in $DROPBOX_USERS; do
dbpid=`pgrep -u $dbuser dropbox | grep -v grep`
if [ -z $dbpid ] ; then
echo "dropboxd for USER $dbuser: not running."
else
echo "dropboxd for USER $dbuser: running (pid $dbpid)"
fi
done
}
stop() {
echo -n $"Stopping $prog"
for dbuser in $DROPBOX_USERS; do
killproc /home/$dbuser/.dropbox-dist/dropbox
done
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
# See how we were called.
case "$1" in
start)
start
;;
status)
status
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $prog {start|status|stop|restart}"
RETVAL=3
esac
exit $RETVAL
Edit /etc/sysconfig/dropbox and add the following line to match your linux account where you’ve installed Dropbox.
DROPBOX_USERS="linux_user_name"
Make sure it starts on boot.
chkconfig dropbox on.
That’s it. Enjoy.
Filed: Technology // Tagged: centos, dropbox, sync //