<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQUARISM &#187; Mac</title>
	<atom:link href="http://squarism.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://squarism.com</link>
	<description>until lambs become lions</description>
	<lastBuildDate>Mon, 07 May 2012 17:52:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Watchr filesystem events not firing</title>
		<link>http://squarism.com/2011/03/15/watchr-filesystem-events-not-firing/</link>
		<comments>http://squarism.com/2011/03/15/watchr-filesystem-events-not-firing/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 03:30:05 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://squarism.com/?p=1068</guid>
		<description><![CDATA[I wanted to use a ruby environment inside a Ubuntu VM but still be able to edit text files in Textmate. So I shared out my project folder and fired up a watchr script I made. Unfortunately, it didn&#8217;t work at all. I tried a few different libs, including rev, rb-inotify, rb-fsevents (which turned out [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to use a ruby environment inside a Ubuntu VM but still be able to edit text files in Textmate.  So I shared out my project folder and fired up<a href="https://gist.github.com/821247"> a watchr script I made</a>.  Unfortunately, it didn&#8217;t work at all.</p>
<p>I tried a few different libs, including rev, rb-inotify, rb-fsevents (which turned out to be mac only) but nothing was firing when I&#8217;d save a file.  I thought maybe rev or watchr was broken in 1.9 but that was not the case.  The problem is the vmware shared folders.  When you do a write, modify or whatever, it doesn&#8217;t fire the same hooks as a local event does:<br />
<code><br />
Modify File -> Textmate Save -> project/foo.txt  (does not fire in watchr)<br />
Modify File -> Vi Save in VM -> project/foo.txt (watchr fires)<br />
</code></p>
<p>And it wasn&#8217;t just watchr (as I said), every ruby library was seeing the same thing.  So I gave up on the shared folders through VMware and just installed netatalk.<br />
<code><br />
sudo aptitude install netatalk<br />
</code></p>
<p>I can edit files in Textmate this way and watchr works as expected.  So why is this important?  Because a tight <a href="http://en.wikipedia.org/wiki/Read-eval-print_loop">REPL</a> is important.  And watchr / wtchr makes the tight loop happen.  This is also probably going to happen if you use autotest in a project with lib/* test/* too.</p>
<p>Pretty specific but I hope it helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2011/03/15/watchr-filesystem-events-not-firing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reconnect a Mac mouse without a mouse</title>
		<link>http://squarism.com/2010/12/22/reconnect-a-mac-mouse-without-a-mouse/</link>
		<comments>http://squarism.com/2010/12/22/reconnect-a-mac-mouse-without-a-mouse/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 00:23:45 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://squarism.com/?p=849</guid>
		<description><![CDATA[So you&#8217;ve replaced the batteries, restarted your mouse or whatever. You have a bluetooth mouse that you need to reconnect or re-pair but you don&#8217;t have a mouse to get to the bluetooth icon in the notification area or status bar location. Here what you do: Command Key + Shift + / &#8211; gets you [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://squarism.com/wp-content/uploads/2010/12/bluetooth_connected.png" alt="" title="bluetooth_connected" width="96" height="84" class="alignright size-full wp-image-850" />So you&#8217;ve replaced the batteries, restarted your mouse or whatever.  You have a bluetooth mouse that you need to reconnect or re-pair but you don&#8217;t have a mouse to get to the bluetooth icon in the notification area or status bar location.</p>
<p>Here what you do:</p>
<ol>
<li><em>Command Key + Shift + /</em> &#8211; gets you into the help area in any menu</li>
<li><em>Right arrow</em> &#8211; gets you to the Apple menu</li>
<li><em>Down arrow until System Preferences</em></li>
<li><em>Enter</em> &#8211; opens System Preferences</li>
<li><em>Type mouse</em> &#8211; in the search box and hit enter will open the mouse pane</li>
<li><em>Hit enter at the &#8220;no mouse found&#8221; screen</em> &#8211; this will pair your mouse if it&#8217;s powered on and trying to pair</li>
</ol>
<p><img src="http://squarism.com/wp-content/uploads/2010/12/bluetooth_found_mouse-300x167.png" alt="" title="bluetooth_found_mouse" width="300" height="167" class="aligncenter size-medium wp-image-851" /></p>
<p>Problem solved.  Leave a comment if it works or a similar problem but different solution worked for you.  If you can&#8217;t click in the comment box, just scream really loud towards my email address.  :)</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2010/12/22/reconnect-a-mac-mouse-without-a-mouse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nmap won&#8217;t compile in homebrew solution</title>
		<link>http://squarism.com/2010/12/18/nmap-wont-compile-in-homebrew-solution/</link>
		<comments>http://squarism.com/2010/12/18/nmap-wont-compile-in-homebrew-solution/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 06:11:24 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://squarism.com/?p=825</guid>
		<description><![CDATA[I recently moved my Mac Pro dev box to homebrew from macports. Doing the mysql move (the lazy way &#8212; moving the data directory) was easy enough but doing a massive `brew install` of a bunch of packages didn&#8217;t work when I got to nmap (the network port scanner). Specifically the linker error (maybe the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://squarism.com/wp-content/uploads/2010/12/nmap_homebrew-300x180.png" alt="" title="nmap_homebrew" width="300" height="180" class="alignright size-medium wp-image-827" />I recently moved my Mac Pro dev box to homebrew from macports.  Doing the mysql move (the lazy way &#8212; moving the data directory) was easy enough but doing a massive `brew install` of a bunch of packages didn&#8217;t work when I got to <a href="http://nmap.org/">nmap</a> (the network port scanner).</p>
<p>Specifically the linker error (maybe the linker &#8230; looks to a stacktrace to a Ruby and Java guy) was this:</p>
<pre>Undefined symbols:
  "ScriptResult::get_id() const", referenced from:
      formatScriptOutput(ScriptResult)       in output.o
      printhostscriptresults(Target*)     in output.o
      printportoutput(Target*, PortList*)    in output.o
  "ScriptResult::get_output() const", referenced from:
      formatScriptOutput(ScriptResult)       in output.o
      printhostscriptresults(Target*)     in output.o
      printportoutput(Target*, PortList*)    in output.o
  "open_nse()", referenced from:
      nmap_main(int, char**)in nmap.o
  "close_nse()", referenced from:
      nmap_free_mem()     in nmap.o
  "script_scan(std::vector<Target*, std::allocator<Target*> >&#038;)", referenced from:
      nmap_main(int, char**)in nmap.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [nmap] Error 1
make: *** [all] Error 2
Exit status: 2

http://github.com/mxcl/homebrew/blob/master/Library/Formula/nmap.rb#L1

Error: Failure while executing: make
Please report this bug at http://github.com/mxcl/homebrew/issues
These existing issues may help you:

http://github.com/mxcl/homebrew/issues/#issue/3128
</pre>
<p>I love the little URL for more help at the bottom, unfortunately a redirect killed the help.  The correct URL is <a href="https://github.com/mxcl/homebrew/issues/3128">here</a>.  Maybe an anchor tag in the wrong place on the URL, who knows.  Anyway, I posted a note on the issue site as well, I got around the issue by doing this first:<br />
<code>brew install lua</code></p>
<p>Then just install nmap like before:<br />
<code>brew install nmap</code></p>
<p>Worked for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2010/12/18/nmap-wont-compile-in-homebrew-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macports upgrade breaks ImageMagick</title>
		<link>http://squarism.com/2010/12/16/macports-upgrade-breaks-imagemagick/</link>
		<comments>http://squarism.com/2010/12/16/macports-upgrade-breaks-imagemagick/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 18:55:16 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://squarism.com/?p=585</guid>
		<description><![CDATA[A blind upgrade of all macports packages broke my ruby project because it uses imagemagick. dlopen(/opt/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /opt/local/lib/libMagickCore.3.dylib Referenced from: /opt/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle Reason: image not found - /opt/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle Massive hack incoming: cd /opt/local/lib sudo ln -s libMagickCore.4.dylib libMagickCore.3.dylib There should be a better solution but I can&#8217;t find one until macports gets it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>A blind upgrade of all macports packages broke my ruby project because it uses imagemagick.</p>
<p><code><br />
dlopen(/opt/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /opt/local/lib/libMagickCore.3.dylib<br />
  Referenced from: /opt/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle<br />
  Reason: image not found - /opt/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle<br />
</code></p>
<p>Massive hack incoming:<br />
<code><br />
cd /opt/local/lib<br />
sudo ln -s libMagickCore.4.dylib libMagickCore.3.dylib<br />
</code></p>
<p>There should be a better solution but I can&#8217;t find one until macports gets it&#8217;s goddamn *bEEp* straight.  I swear to deity, every time I do a sudo port upgrade outdated, something breaks.  I know it&#8217;s not macports fault but the nature of native ruby gem extensions but I&#8217;m just going to avoid upgrading.</p>
<p>Something else to consider is my recent switch to homebrew.  I haven&#8217;t made the switch on all my boxes and the ImageMagick problem isn&#8217;t related to the package manager.  I do prefer brew&#8217;s command structure.  Moving MySQL wasn&#8217;t insanely difficult but I did cheat by just doing a stupid copy of the MySQL data files.</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2010/12/16/macports-upgrade-breaks-imagemagick/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhone Developer Activation Problem</title>
		<link>http://squarism.com/2010/05/10/iphone-developer-activation-problem/</link>
		<comments>http://squarism.com/2010/05/10/iphone-developer-activation-problem/#comments</comments>
		<pubDate>Mon, 10 May 2010 22:58:06 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[ObjC]]></category>

		<guid isPermaLink="false">http://squarism.com/?p=461</guid>
		<description><![CDATA[I went to renew my membership on my iPhone developer account and although the membership is $99/year, my expiration date was only extended out for 3 months. I opened a ticket and it took about a month or two to get this thing resolved. I had to send screenshots, steps and evidence that I was [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://squarism.com/wp-content/uploads/2010/05/iphone_portal_expiration.png" alt="" title="iphone_portal_expiration" width="264" height="95" class="alignright size-full wp-image-466" /><br />
I went to renew my membership on my iPhone developer account and although the membership is $99/year, my expiration date was only extended out for 3 months.  I opened a ticket and it took about a month or two to get this thing resolved.  I had to send screenshots, steps and evidence that I was doing the right thing (ok, fine, tier 1 support).  Eventually I got a person that had a trick up their sleeve but didn&#8217;t quite get it right.  I&#8217;m blogging this in case this is happening to someone else.</p>
<p>First, the symptoms.  Let&#8217;s say your dev account is about to expire in January 2010.  You want to renew for another year.  You add a year subscription to your cart, pay for it.  You&#8217;d expect your new expire date to be Jan-2011.  But in your profile and in the &#8220;thanks for ordering&#8221; activation page it says March 2010 or something else wrong.  Support send me activation links basically to the same page that wouldn&#8217;t activate any differently.  Each time I checked out, it would say March 2010.</p>
<p>The trick was to click on renew membership (as if paying again), click the checkbox to select which membership you want to buy ($99 year) and hit continue.  Now you&#8217;re on a &#8220;Review your purchase&#8221; page.  Click continue here.  Finally, it says &#8220;Proceed to your country&#8217;s Apple Online Store to purchase&#8221; and has an add to cart button.  Stop here.</p>
<p>Click the following link: <a href="http://developer.apple.com/iphone/enroll/activate.action">http://developer.apple.com/iphone/enroll/activate.action</a>.  It should bring you to a page with a single textbox for your activation code (the one you&#8217;ve been trying to use all along).  Put this in and hit continue.  Your expire date should be correct now.  If not, try using a link formatted like this:<br />
<code>http://developer.apple.com/iphone/enroll/activate.action?activationCode=YOURCODEHERE</code></p>
<p>Seems like they have some bug in the dev store.  Please comment if this helped you so it&#8217;s documented.</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2010/05/10/iphone-developer-activation-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RMagic, ImageMagick, Snow Leopard and Ruby 1.9</title>
		<link>http://squarism.com/2010/03/08/rmagic-imagemagick-snow-leopard-and-ruby-1-9/</link>
		<comments>http://squarism.com/2010/03/08/rmagic-imagemagick-snow-leopard-and-ruby-1-9/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:32:28 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://squarism.com/?p=381</guid>
		<description><![CDATA[I ran into a problem that kept me busy over the weekend. It seems that rmagick (which is requires for the awesome sparklines project will compile and run on Snow Leopard, however it has a critical bug when trying to use it. The script/server process will crash with a &#8220;Trace/BPT trap&#8221; error. The logs won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into a problem that kept me busy over the weekend.  It seems that rmagick (which is requires for <a href="http://nubyonrails.com/pages/sparklines">the awesome sparklines project</a> will compile and run on Snow Leopard, however it has a critical bug when trying to use it.  The script/server process will crash with a &#8220;Trace/BPT trap&#8221; error.  The logs won&#8217;t say anything and the hell if anything is going to appear on the browser.  WTF.</p>
<p>Here&#8217;s my stack on my Mac: (do not use this stack, this is just for informational purposes only)</p>
<ul>
<li>ruby19 installed via macports: sudo install ruby19</li>
<li>regular rubygems installed</li>
<li>ImageMagick 6.6.0-0 installed via macports</li>
<li>A bunch of github gems installed but not firing on the controller method that crashes</li>
</ul>
<p>So I started over on a CentOS 5.4 VM just to try out my stack and it worked.  Except, I used ruby 1.8.7 compiled via source.  It&#8217;s a really lengthy process and it&#8217;ll be part of my README if I ever get this project done.  On CentOS you have to compile and install ImageMagick yourself because yum has a really old version.  There&#8217;s a ton of devel dependencies too.  If anyone needs the instructions, leave a comment and I&#8217;ll copy/paste from my README.</p>
<p>So I suspected that ruby 1.9 was causing problems my mac laptop and that turned out to be true.  I did a <code>sudo port uninstall ruby19</code> and then a <code>sudo port install ruby</code>.  I had to reinstall all the gems again but it wasn&#8217;t too bad.  If port gives you a ln error, just exit your shell and open a new one.</p>
<p>So RMagick, ImageMagick and ruby 1.9 do not play together.</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2010/03/08/rmagic-imagemagick-snow-leopard-and-ruby-1-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Growl Network Notifications Not Working</title>
		<link>http://squarism.com/2010/02/27/growl-network-notifications-not-working/</link>
		<comments>http://squarism.com/2010/02/27/growl-network-notifications-not-working/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 02:13:53 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://squarism.com/?p=349</guid>
		<description><![CDATA[Growl&#8217;s network notifications weren&#8217;t working. Either sending or receiving. I had two machines that had growl cleanly installed and my main machine that&#8217;s had many versions installed over the years. It was my main box with a dirty growl history that was having problems. I found a post on cocoaforge that helped a lot. First, [...]]]></description>
			<content:encoded><![CDATA[<p>Growl&#8217;s network notifications weren&#8217;t working.  Either sending or receiving.  I had two machines that had growl cleanly installed and my main machine that&#8217;s had many versions installed over the years.  It was my main box with a dirty growl history that was having problems.</p>
<p>I found a post on <a href="http://forums.cocoaforge.com/viewtopic.php?f=6&#038;t=15109">cocoaforge</a> that helped a lot.  First, I ran the uninstall applescript (I always keep uninstallers in ~/Uninstallers but you can find it in the Growl.dmg).  That didn&#8217;t really work, it gave me an Apple Script time out.  So I removed everything manually.  I deleted the pref pane from SysPrefs by right-clicking on Growl and selecting remove.</p>
<p><img src="http://squarism.com/wp-content/uploads/2010/02/growl_remove.png" alt="growl_remove" title="growl_remove" width="312" height="72" class="aligncenter size-full wp-image-350" /></p>
<p>After that was done I removed the preferences file from ~/Library/Preferences and also a folder under ~/Library/Application Support called Growl (has two subfolders called Tickets and Plugins).  I emptied trash.  Reinstalled Growl 1.2 (latest).  I didn&#8217;t restart.  I re-setup the network bit of Growl on this page:</p>
<p><img src="http://squarism.com/wp-content/uploads/2010/02/growl_network.png" alt="growl_network" title="growl_network" width="300" height="136" class="aligncenter size-full wp-image-351" /></p>
<p>Notifications started working.  Now all my boxes are notified when something cool happens.  Weee!</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2010/02/27/growl-network-notifications-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scroll Lock Button on OSX</title>
		<link>http://squarism.com/2008/03/12/scroll-lock-button-on-osx/</link>
		<comments>http://squarism.com/2008/03/12/scroll-lock-button-on-osx/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 21:31:18 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://squarism.com/2008/03/12/scroll-lock-button-on-osx/</guid>
		<description><![CDATA[Here&#8217;s an esoteric fix for something I wanted to do. In a certain game, right click will move the camera. For some reason, when hosting synergy on the Mac (as the server) and connecting a Windows client, the right clicking gets whacked. It works fine the other way (don&#8217;t ask me). So I want to [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an esoteric fix for something I wanted to do.  In a certain game, right click will move the camera.  For some reason, when hosting synergy on the Mac (as the server) and connecting a Windows client, the right clicking gets whacked.  It works fine the other way (don&#8217;t ask me).</p>
<p>So I want to hit scroll lock to lock the screen so that mouse-looking works.  Except there&#8217;s no scroll lock button on a Mac keyboard!  Doh.  But I find a solution:</p>
<p><code><br />
keystroke(f13) = lockCursorToScreen(toggle)<br />
</code></p>
<p>Found on <a href="http://www.mattcutts.com/blog/how-to-configure-synergy-in-six-steps/">mattcutts.com</a>, this is the option I need.  I use SynergyKM, which is a Mac-ified app to control synergy.  It doesn&#8217;t use the conf file of synergy but instead uses a .plist property file.  So I edited it to look like this:</p>
<p><a href="http://squarism.com/2008/03/12/scroll-lock-button-on-osx/synergy-scrolllock/"><img src="http://squarism.com/wp-content/uploads/2008/03/Synergy_Scrolllock-300x97.png" alt="Synergy Scrolllock" title="Synergy Scrolllock" width="300" height="97" class="alignnone size-medium wp-image-1295" /></a> </p>
<p>And viola, roll over to the XP box from Mac, hit F13 and mouse look works in WoW (or probably any other drag-tracking app).</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2008/03/12/scroll-lock-button-on-osx/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Synergy2 mouse centering</title>
		<link>http://squarism.com/2007/10/04/synergy2-mouse-centering/</link>
		<comments>http://squarism.com/2007/10/04/synergy2-mouse-centering/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 02:29:38 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://squarism.com/2007/10/04/synergy2-mouse-centering/</guid>
		<description><![CDATA[Synergy is a great tool for sharing multiple screens (reverse KVM) but for some reason lately I&#8217;ve noticed that if I&#8217;m physically on the center screen, then the mouse recenters occasionally. It&#8217;s pretty annoying. I turned on debug log and looked in ~/Library/Logs/synergyd.log. I found this: 2007-10-04 22:12:11.894 Synergyd[337] DEBUG: dropped bogus motion -840,-526 I [...]]]></description>
			<content:encoded><![CDATA[<p>Synergy is a great tool for sharing multiple screens (reverse KVM) but for some reason lately I&#8217;ve noticed that if I&#8217;m physically on the center screen, then the mouse recenters occasionally.  It&#8217;s pretty annoying.</p>
<p>I turned on debug log and looked in ~/Library/Logs/synergyd.log.  I found this:</p>
<blockquote><p>2007-10-04 22:12:11.894 Synergyd[337] DEBUG: dropped bogus motion -840,-526</p></blockquote>
<p>I searched sourceforge for that string and found code that essentially centers the mouse when it detects motion on the primary screen.  There doesn&#8217;t seem to be an option to control the behavior, so short of me making a patch, I don&#8217;t see a solution.</p>
<p>UPDATE: I found a workaround, simply move your mouse over to the display that it being buggy and the if() condition doesn&#8217;t fire off.  So in my case, my mac connects to my PC&#8217;s keyboard and mouse.  I move the PC&#8217;s mouse over to the Mac screen and the Mac stops acting weird (the centering problem).</p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2007/10/04/synergy2-mouse-centering/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ports being weird.</title>
		<link>http://squarism.com/2007/08/12/ports-being-weird/</link>
		<comments>http://squarism.com/2007/08/12/ports-being-weird/#comments</comments>
		<pubDate>Sun, 12 Aug 2007 21:36:10 +0000</pubDate>
		<dc:creator>Dillon</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://squarism.com/2007/08/12/ports-being-weird/</guid>
		<description><![CDATA[When I typed port, portmirror or anything related to darwinports (macports), I got a strange error with no google hits. # portmirror can't find package macports while executing "package require macports" (file "/opt/local/bin/portmirror" line 11) stormbringer:~/phonedmg root# port can't find package macports while executing "package require macports" (file "/opt/local/bin/port" line 42) The solution was to [...]]]></description>
			<content:encoded><![CDATA[<p>When I typed port, portmirror or anything related to darwinports (macports), I got a strange error with no google hits.</p>
<p><code> # portmirror<br />
can't find package macports<br />
    while executing<br />
"package require macports"<br />
    (file "/opt/local/bin/portmirror" line 11)<br />
stormbringer:~/phonedmg root# port<br />
can't find package macports<br />
    while executing<br />
"package require macports"<br />
    (file "/opt/local/bin/port" line 42)<br />
</code></p>
<p>The solution was to <a href="http://svn.macports.org/repository/macports/downloads/MacPorts-1.5.0/">download macports 1.5</a> and run it again.  It&#8217;s been a while since I had used ports on my Mac and maybe the project got renamed or changed.  I dunno.</p>
<p>Then &#8220;port selfupdate&#8221; failed with &#8220;Directory not empty&#8221; errors from mv:rename so I did this:</p>
<p><code>mv /opt/local/var/db/dports/distfiles/ /opt/local/var/macports/distfiles<br />
mv /opt/local/var/db/dports/receipts/ /opt/local/var/macports/receipts/<br />
mv /opt/local/var/db/dports/software/ /opt/local/var/macports/software/</code></p>
<p>Then it seemed to work:</p>
<p><code># port selfupdate<br />
MacPorts base version 1.5 installed<br />
Downloaded MacPorts base version 1.510<br />
Configuring, Building and Installing new MacPorts base<br />
selfupdate done!</code></p>
]]></content:encoded>
			<wfw:commentRss>http://squarism.com/2007/08/12/ports-being-weird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

