<?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>Virtually Shocking &#187; Mac OS X</title>
	<atom:link href="http://virtuallyshocking.com/category/tech/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://virtuallyshocking.com</link>
	<description>Not actually all that shocking.</description>
	<lastBuildDate>Wed, 23 May 2012 14:51:44 +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>Back to Windows</title>
		<link>http://virtuallyshocking.com/2009/04/01/back-to-windows/</link>
		<comments>http://virtuallyshocking.com/2009/04/01/back-to-windows/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 12:56:57 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[april-fools]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/?p=1257</guid>
		<description><![CDATA[After many years of using and promoting Linux, and more recently the Mac, I&#8217;m giving up the fight and going back to using Windows. Perhaps &#8216;back&#8217; is the wrong word, since I&#8217;ll be switching to Vista. I&#8217;ve gotten tired of not having the device drivers I need, having to research every accessory I buy to [...]]]></description>
			<content:encoded><![CDATA[<p>After many years of using and promoting Linux, and more recently the Mac, I&#8217;m giving up the fight and going back to using Windows. Perhaps &#8216;back&#8217; is the wrong word, since I&#8217;ll be switching to Vista. I&#8217;ve gotten tired of not having the device drivers I need, having to research every accessory I buy to see whether it will work on the Mac or in Linux, futzing for hours with arcane commands and configuration files just to get my webcam to take a picture.</p>
<p>I&#8217;m also sick of missing out on current events, like the Conficker worm, which somehow made the top story on Google News last night. Top story! I was feeling really left out. Once I have windows installed on my Mac Pro, though, I should be able to join the Conficker party in no time. </p>
<p>Sure, it&#8217;ll be difficult to do my work, since it relies largely on UNIX-based software, but hey, that&#8217;s what Cygwin is for, right? And PuTTY. Got any recommended software for me? It&#8217;s been a while since I was a full-time Windows user. A Quicksilver replacement would be particularly welcome. And send me a copy of Conficker if you have it &#8212; thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2009/04/01/back-to-windows/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cisco VPN Client Error 51 After Leopard 10.5.3 Upgrade</title>
		<link>http://virtuallyshocking.com/2008/06/26/cisco-vpn-client-error-51-after-leopard-1053-upgrade/</link>
		<comments>http://virtuallyshocking.com/2008/06/26/cisco-vpn-client-error-51-after-leopard-1053-upgrade/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 17:18:04 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/06/26/cisco-vpn-client-error-51-after-leopard-1053-upgrade/</guid>
		<description><![CDATA[JHU uses Cisco VPN for outside connections to the university network. Unfortunately, this requires using Cisco&#8217;s VPN client, which is not really available for free download on the internet at large. Normally when I have a problem, I just re-install it, but the current version provided by Hopkins refuses to install on 10.5.3, citing a [...]]]></description>
			<content:encoded><![CDATA[<p>JHU uses Cisco VPN for outside connections to the university network. Unfortunately, this requires using Cisco&#8217;s VPN client, which is not really available for free download on the internet at large. Normally when I have a problem, I just re-install it, but the current version provided by Hopkins refuses to install on 10.5.3, citing a wrong O.S. version number. &#8220;Must be 10.4 or greater.&#8221; So 10.5 !>= 10.4? Anyway, what&#8217;s the problem I was trying to fix?</p>
<p>After upgrading my workstation from 10.5.2 to 10.5.3, the VPN client refused to load with a message about &#8220;Client error 51&#8243;, saying it couldn&#8217;t find the VPN service. This may be related to my use of an external USB wifi adapter, but it was never a problem in 10.5.2. Regardless, I found that restarting the VPN service fixed the problem. As an administrative user, I had to run this:</p>
<p><code><br />
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart<br />
</code></p>
<p>Now everything works fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/06/26/cisco-vpn-client-error-51-after-leopard-1053-upgrade/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Firefox 3</title>
		<link>http://virtuallyshocking.com/2008/06/19/firefox-3/</link>
		<comments>http://virtuallyshocking.com/2008/06/19/firefox-3/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 13:46:40 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/06/19/firefox-3/</guid>
		<description><![CDATA[After checking my most important extensions for updates (most had them) for Firefox 3 compatibility, I took the plunge and upgraded to version 3. So far it seems pretty snappy, though I&#8217;m not used to the new look. If I hit any snags as I use it, I&#8217;ll update this page.]]></description>
			<content:encoded><![CDATA[<p>After checking my most important extensions for updates (most had them) for Firefox 3 compatibility, I took the plunge and upgraded to version 3.</p>
<p>So far it seems pretty snappy, though I&#8217;m not used to the new look.</p>
<p>If I hit any snags as I use it, I&#8217;ll update this page.</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/06/19/firefox-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phun With Macs</title>
		<link>http://virtuallyshocking.com/2008/05/11/phun-with-macs/</link>
		<comments>http://virtuallyshocking.com/2008/05/11/phun-with-macs/#comments</comments>
		<pubDate>Sun, 11 May 2008 17:07:21 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/05/11/phun-with-macs/</guid>
		<description><![CDATA[Phun, the interactive physics simulator, is now available for Mac OS X. Be warned. If you like physics or tinkering around with things, this program could be a huge time sync sink. (I&#8217;ve been futzing with SyncML too much lately.) I was playing with it in (ugh) Windows XP last time I was in New [...]]]></description>
			<content:encoded><![CDATA[<p>Phun, the interactive physics simulator, is <a href="http://phun.cs.umu.se/wiki/Download">now available</a> for Mac OS X.</p>
<p>Be warned. If you like physics or tinkering around with things, this program could be a huge time <strike>sync</strike> sink. (I&#8217;ve been futzing with SyncML too much lately.) I was playing with it in (ugh) Windows XP last time I was in New Orleans, and Amanda informs me that what I thought was about 20 minutes was actually closer to two hours.</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/05/11/phun-with-macs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating Large Numbers in C</title>
		<link>http://virtuallyshocking.com/2008/04/03/calculating-large-numbers-in-c/</link>
		<comments>http://virtuallyshocking.com/2008/04/03/calculating-large-numbers-in-c/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 20:10:11 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[My Other Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools of the Trade]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/04/03/calculating-large-numbers-in-c/</guid>
		<description><![CDATA[As a corollary to my last post, it&#8217;s important to be careful when calculating file seek positions (if you&#8217;re skipping around that way). It turns out it&#8217;s necessary to cast all of the numbers being used when calculating a seek position to a large integer, such as unsigned long int. By the way, Rob had [...]]]></description>
			<content:encoded><![CDATA[<p>As a corollary to my <a href="http://virtuallyshocking.com/2008/04/02/c-ifstream-and-the-2-gb-limit/">last post</a>, it&#8217;s important to be careful when calculating file seek positions (if you&#8217;re skipping around that way). It turns out it&#8217;s necessary to cast all of the numbers being used when calculating a seek position to a large integer, such as <code>unsigned long int</code>.</p>
<p>By the way, <a href="http://ademus05.livejournal.com">Rob</a> had some helpful comments on that last post. (Thanks Rob!)</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/04/03/calculating-large-numbers-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ ifstream and the 2 GB Limit</title>
		<link>http://virtuallyshocking.com/2008/04/02/c-ifstream-and-the-2-gb-limit/</link>
		<comments>http://virtuallyshocking.com/2008/04/02/c-ifstream-and-the-2-gb-limit/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 00:54:46 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools of the Trade]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/04/02/c-ifstream-and-the-2-gb-limit/</guid>
		<description><![CDATA[Any system that encodes values in some set number of places has a limit on the values that can be held. For example, old, mechanical cash registers were physically limited in the number of digits they could ring up. Likewise, modern LCD cash registers are limited by the number of digits available on the screen, [...]]]></description>
			<content:encoded><![CDATA[<p>Any system that encodes values in some set number of places has a limit on the values that can be held. For example, old, mechanical cash registers were physically limited in the number of digits they could ring up. Likewise, modern LCD cash registers are limited by the number of digits available on the screen, though they may be able to hold longer numbers than they can show. The &#8220;Y2k&#8221; problem was also a result of such limitations.</p>
<p>Binary encoding of course has similar limits. Two bits can hold four values. Three bits can hold eight values. The relationship there is exponential &#8212; x bits are limited to 2<sup>x</sup> values.</p>
<p>One thing that programs might want to keep track of internally is the current location in a file that one is reading or writing. Like a bookmark, there are one or more variables that can be used to store locations in a file. Typically these are simply integers, indicating some sort of offset from the beginning or end of the file. These bookmarks impose a limitation. No file positions past 2<sup>x</sup> offsets may be recorded, or often even reached.</p>
<p>It turns out that in C++, in Linux, x = 31. This provides 2<sup>31</sup> = 2147483648 positions. Given that a position is normally a byte (B), we are then limited to 2147483648 B, or 2097152 kB, or 2048 MB, or 2 GB.  With our newest, largest models, this is a problem. My latest simulations are producing data files that are around 21 GB when uncompressed.</p>
<p>It turns out that in 64-bit Linux, libc does not have this problem. It is therefore possible to use normal C file I/O commands to process large files (on most modern systems, which incorporate Large File Support or LFS). After searching high and low on the interwebs for a way to convince C++ to use larger variables for file I/O, and not finding much, I caved and spent all of five minutes changing my code over to use C I/O.</p>
<p>What made this bug a little more difficult to track down than it might have been is that for some reason, Mac OS X Leopard does not suffer from this problem with C++ stream I/O.  Someone at Apple must have allocated a few more bits for file position pointers. My code was therefore working fine on my sorta-64-bit Mac but not on our fully-64-bit cluster or our workstations running recent versions of Linux.</p>
<p>Ultimately it would be nice to write some kind of wrapper or overload the C++ I/O functions to do things correctly, but for the moment my code is working properly and I am happy.</p>
<p>Do you have any better ideas for getting around this 2GB limit?</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/04/02/c-ifstream-and-the-2-gb-limit/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Advanced Bash Scripting</title>
		<link>http://virtuallyshocking.com/2008/03/27/advanced-bash-scripting/</link>
		<comments>http://virtuallyshocking.com/2008/03/27/advanced-bash-scripting/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 19:24:42 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools of the Trade]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/03/27/advanced-bash-scripting/</guid>
		<description><![CDATA[I have written before about the usefulness of command-line scripting in computational science. Today, while looking for some information on various file test operators in bash (e.g. to check whether a file or directory exists), I found this amazing guide. As the author puts it, This tutorial assumes no previous knowledge of scripting or programming, [...]]]></description>
			<content:encoded><![CDATA[<p>I have written <a href="http://virtuallyshocking.com/2008/01/04/using-unix-and-linux-for-research-in-silicio/">before</a> about the usefulness of command-line scripting in computational science.</p>
<p>Today, while looking for some information on various file test operators in bash (e.g. to check whether a file or directory exists), I found <a href="http://tldp.org/LDP/abs/html/index.html">this amazing guide</a>. As the author puts it,</p>
<blockquote><p>
This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction . . . all the while sneaking in little snippets of UNIX® wisdom and lore. It serves as a textbook, a manual for self-study, and a reference and source of knowledge on shell scripting techniques.
</p></blockquote>
<p>For instructional purposes, all along the examples have little comments like, &#8220;explain why this is the case&#8230;&#8221;, to test your knowledge as you go through the manual. This would make it <i>excellent</i> for use as textbook on basic programming ideas.  It is even available in <a href="http://personal.riverusers.com/~thegrendel/abs-guide.pdf">PDF</a> format, and was updated March 18th of 2008.</p>
<p>I can assure you that every new member of the lab will be getting a link to this guide from me.  Proper knowledge of shell scripting is an amplifier of one&#8217;s productivity. An investment of a few hours learning the basics will probably return a hundred-fold savings of time over a few months. More advanced concepts are naturally learned as more difficult scenarios are encountered.  I&#8217;ll be writing soon about some of the more sophisticated issues I&#8217;ve encountered using shell scripting.</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/03/27/advanced-bash-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GTD Tip: Finder&#8217;s Column View</title>
		<link>http://virtuallyshocking.com/2008/02/29/gtd-tip-finders-column-view/</link>
		<comments>http://virtuallyshocking.com/2008/02/29/gtd-tip-finders-column-view/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 21:30:59 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[GTD]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/02/29/gtd-tip-finders-column-view/</guid>
		<description><![CDATA[For the Mac users among you, here&#8217;s something I&#8217;ve been doing the last few months that you might find useful. When you get to the following part of your weekly review (which you are doing, aren&#8217;t you?): Review &#8220;Pending&#8221; and Support Files Browse through all work-in-progress support material to trigger new actions, completions, and waiting-fors. [...]]]></description>
			<content:encoded><![CDATA[<p>For the Mac users among you, here&#8217;s something I&#8217;ve been doing the last few months that you might find useful.</p>
<p>When you get to the following part of your weekly review (which you <i>are</i> doing, <i>aren&#8217;t</i> you?):</p>
<blockquote><p>
<b>Review &#8220;Pending&#8221; and Support Files</b><br />
Browse through all work-in-progress support material to trigger new actions, completions, and waiting-fors.
</p></blockquote>
<p>try using the column view in Finder to go through your digital files. This assumes that you have some or most of your project support materials in digital form. Here&#8217;s my project view (click thumbnails for full size):</p>
<p><a href='http://virtuallyshocking.com/wp-content/uploads/2008/02/threecol.png' title='threecol'><img src='http://virtuallyshocking.com/wp-content/uploads/2008/02/threecol.thumbnail.png' alt='threecol' target="_blank" /></a></p>
<p>As you click through the list, it&#8217;s easy to delve into the sub-directories but keep track of where you are:</p>
<p><a href='http://virtuallyshocking.com/wp-content/uploads/2008/02/threecol_2.png' title='threecol_2'><img src='http://virtuallyshocking.com/wp-content/uploads/2008/02/threecol_2.thumbnail.png' alt='threecol_2' target="_blank" /></a></p>
<p>Do you have any weekly review tricks?</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/02/29/gtd-tip-finders-column-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screen Terminal Multiplexer</title>
		<link>http://virtuallyshocking.com/2008/02/22/screen-terminal-multiplexer/</link>
		<comments>http://virtuallyshocking.com/2008/02/22/screen-terminal-multiplexer/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 00:29:01 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools of the Trade]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/02/22/screen-terminal-multiplexer/</guid>
		<description><![CDATA[If you are not familiar with screen (and you use the UNIX command line regularly), you are missing out. I&#8217;ve added a new command-line tools section to my tools page. The screen bit, with a link to a good tutorial, is here.]]></description>
			<content:encoded><![CDATA[<p>If you are not familiar with <code>screen</code> (and you use the UNIX command line regularly), you are missing out. I&#8217;ve added a new command-line tools section to my <a href="http://virtuallyshocking.com/tools/">tools page</a>. The <code>screen</code> bit, with a link to a good tutorial, is <a href="http://virtuallyshocking.com/tools/#screen">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/02/22/screen-terminal-multiplexer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CESE Single-Cell Simulator</title>
		<link>http://virtuallyshocking.com/2008/02/22/cese-single-cell-simulator/</link>
		<comments>http://virtuallyshocking.com/2008/02/22/cese-single-cell-simulator/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 00:08:45 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Cardiac Electrophysiology]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools of the Trade]]></category>

		<guid isPermaLink="false">http://virtuallyshocking.com/2008/02/22/cese-single-cell-simulator/</guid>
		<description><![CDATA[I recently discovered an interesting piece of open-source software, the CESE single-cell simulator. It&#8217;s based on Java and runs on a number of platforms. The point of this simulator is strictly to run single-cell electrophysiological models. It comes with a few of the staples in the field (like the Luo-Rudy dynamic model), and you can [...]]]></description>
			<content:encoded><![CDATA[<p>I recently discovered an interesting piece of open-source software, the <a href="http://cese.sourceforge.net/">CESE</a> single-cell simulator. It&#8217;s based on Java and runs on a number of platforms.</p>
<p>The point of this simulator is strictly to run single-cell electrophysiological models.  It comes with a few of the staples in the field (like the Luo-Rudy dynamic model), and you can buy more recent/complex models from a company called Simulogic. Alternatively, there are directions on the site for designing your own models.</p>
<p>Unfortunately, the program currently displays the output of all of the selected variables on the same plot, rather than breaking the plot into several panels, one for each current. The latter is the way we typically look at model data. Furthermore, I don&#8217;t see a way to import experimental data traces for comparison. I also had some rendering issues with pull-down selectors in Mac OS X&#8217;s Java implementation.</p>
<p>We currently have our own single-cell simulator with an ugly but functional GUI, linked to the ionic models in our tissue simulator.  However, it might be nice going forward to make our models compatible with CESE, and to work with the CESE developers to improve the view mode. It would be nice to have CESE as a standard platform for model development.</p>
<p>If you want to download it and try it out, you just need a working Java installation, and you can get CESE itself <a href="http://cese.sourceforge.net/">here</a>.  Check the built-in help for a tutorial.</p>
<p>Have you used CESE before?  What did you think? If you download it and try it out, please post something about your experience here as well (or email me).</p>
]]></content:encoded>
			<wfw:commentRss>http://virtuallyshocking.com/2008/02/22/cese-single-cell-simulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

