<?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>Allen J. Hall</title>
	<atom:link href="http://www.allenjhall.com/content/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.allenjhall.com/content</link>
	<description>Materials Science &#38; Engineering, Productivity, and Life</description>
	<lastBuildDate>Fri, 27 Jan 2012 03:55:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Update: Dow Corning Partners With Prof. Silver&#8217;s Adaptive Lens Program!</title>
		<link>http://www.allenjhall.com/content/2012/01/26/update-dow-corning-partners-with-prof-silvers-adaptive-lens-program/</link>
		<comments>http://www.allenjhall.com/content/2012/01/26/update-dow-corning-partners-with-prof-silvers-adaptive-lens-program/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 03:55:25 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Great Scientists]]></category>
		<category><![CDATA[Humanitarian]]></category>
		<category><![CDATA[Materials Science and Engineering]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=524</guid>
		<description><![CDATA[I had the pleasure of briefly meeting and listening to Dr. Gregg Zank (CTO- Dow Corning) this evening.  Some very interesting work going on at Dow Corning!  In particular, his discussion of a waterless powdered shampoo product for third world countries was quite amazing.  It&#8217;s wonderful to imagine a waterless shampoo, let alone one that [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.cvdw.org/index.htm"><img class="size-full wp-image-525 aligncenter" title="Adspecssmall" src="http://www.allenjhall.com/content/wp-content/Adspecssmall.jpg" alt="" width="487" height="229" /></a></p>
<p>I had the pleasure of briefly meeting and listening to Dr. Gregg Zank (CTO- Dow Corning) this evening.  Some very interesting work going on at Dow Corning!  In particular, his discussion of a waterless powdered shampoo product for third world countries was quite amazing.  It&#8217;s wonderful to imagine a waterless shampoo, let alone one that is distributed as a dry product in single use packets!  Very interesting.  It reminded me of another interesting humanitarian project that I&#8217;ve talked about before&#8230;<br />
<span id="more-524"></span><br />
That attention to the developing world, and changing lives right now reminded me of my old post about <a href="http://www.allenjhall.com/content/2010/08/31/adaptive-lenses/" target="_blank">Prof. Silver&#8217;s adaptive lenses</a>.  I think that one of the greatest things that scientists can do is to positively influence lives.  We are in a unique position to do so in very large ways [think about all the amazing inventions you've used today alone].  It means so much when it enables others to benefit themselves also, by improving education, working hours of the day, personal and family health.  Remembering the fluid that Prof. Silver&#8217;s adaptive lenses use, I realized that this may also be a Dow Corning product, and I was correct!  Dow Corning has now partnered with <a href="http://www.cvdw.org/index.htm" target="_blank">The Center For Vision in the Developing World</a>!  Fantastic news, and great to hear a company like Dow Corning is involved in such a great project!  Here is the project webpage: <a href="http://www.cvdw.org/childvision/">Child Vision</a> and their press-release: <a href="http://www.cvdw.org/childvision/release.htm">Child Vision Partners with Dow Corning</a>.  Their goal is to make smaller lighter adaptive glasses that can be used by young children to help their education.</p>
<p><a href="http://www.cvdw.org/childvision/"><img class="aligncenter size-full wp-image-526" title="childvision" src="http://www.allenjhall.com/content/wp-content/childvision.png" alt="" width="607" height="135" /></a></p>
<p>So, my hat is off to Dow Corning this evening, for helping to improve the lives of others around the world.</p>
<p><a href="http://www.cvdw.org/childvision/"><img class="aligncenter size-medium wp-image-527" title="adspecs01" src="http://www.allenjhall.com/content/wp-content/adspecs01-300x200.jpg" alt="" width="300" height="200" /></a><a href="http://www.allenjhall.com/content/wp-content/adspecs01.jpg"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2012/01/26/update-dow-corning-partners-with-prof-silvers-adaptive-lens-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Matlab Gui Programs for Crystal Symmetry Calculations</title>
		<link>http://www.allenjhall.com/content/2011/07/14/matlab-gui-for-crystal-symmetry-calculations/</link>
		<comments>http://www.allenjhall.com/content/2011/07/14/matlab-gui-for-crystal-symmetry-calculations/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 23:04:05 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[crystal symmetries]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Matlab]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[xrd]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=487</guid>
		<description><![CDATA[I&#8217;ve made a few small gui programs (MATLAB) for finding all unique angles for vectors (or plane normals) in both the cubic and tetragonal crystal spaces. I thought I&#8217;d share them here, as I finally worked out a few kinks. Be aware that the little gui&#8217;s use the command window to output their results. Some [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.allenjhall.com/content/wp-content/vectorsymtetgui.png"><img src="http://www.allenjhall.com/content/wp-content/vectorsymtetgui.png" alt="Tetragonal Symmetry Angle Gui" title="vectorsymtetgui" width="259" height="248" class="alignleft size-full wp-image-492" /></a>I&#8217;ve made a few small gui programs (MATLAB) for finding all unique angles for vectors (or plane normals) in both the cubic and tetragonal crystal spaces.  I thought I&#8217;d share them here, as I finally worked out a few kinks.  Be aware that the little gui&#8217;s use the command window to output their results.  Some of my other programs would output latex code so that they could be pasted directly into a thesis for tables etc., but this one just uses the standard out (ala the command window in Matlab).</p>
<p>Essentially you enter the vectors for the two planes of interest, then hit calculate, and all the unique angle solutions for the crystal space you chose (one gui for each crystal space right now- no interest in complicating it by combining at this time) gets output in the command window.</p>
<p><a href="http://www.allenjhall.com/content/wp-content/vectorsymoutput.png"><img src="http://www.allenjhall.com/content/wp-content/vectorsymoutput.png" alt="" title="vectorsymoutput" width="418" height="153" class="aligncenter size-full wp-image-495" /></a></p>
<p>I populate some orientation matrices based upon the vectors you give.  Then, from matrix calculations, using tetragonal and crystal symmetry operations, we determine all the symmetric orientations.  Then, a simple <em>subspace()</em> command gives us the angles of greatest rise (dihedral angle) between the symmetric orientations.  The calculations for these operations can be found in my Thesis (if it ever gets published), but can also be found in: V. Randle and O. Engler. Texture Analysis: Macrotexture, Microtexture &#038; Orientation Mapping. CRC Press, 2000.</p>
<p>Please note- it&#8217;s your job to check if these are correct, I make no warranties about this stuff.  <img src='http://www.allenjhall.com/content/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   It should work, but feel free to go in and edit everything to your liking.  If you use my code, don&#8217;t worry too much about citing me (if you do, I appreciate it, but I often leave out others who have contributed also).</p>
<p>These are very simple, but hopefully they&#8217;ll help a bit for those working in cubic and tetragonal spaces.</p>
<blockquote><p>Here&#8217;s the cubic symmetry angle calculator:<br />
<a href='http://www.allenjhall.com/content/wp-content/vectorsymanglesv02.zip'>Vector Angle Calculator Cubic Symmetries</a></p>
<p>Here&#8217;s the tetragonal symmetry angle calculator:<br />
<a href='http://www.allenjhall.com/content/wp-content/VectorSymAnglesTetragonalv01.zip'>Vector Angle Calculator Tetragonal Symmetries</a></p></blockquote>
<p>I hope they work for you- please let me know if you have problems, if I have time I&#8217;ll try and help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2011/07/14/matlab-gui-for-crystal-symmetry-calculations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic USB Key Backups Using Rsync</title>
		<link>http://www.allenjhall.com/content/2011/01/15/automatic-usb-key-backups-using-rsync/</link>
		<comments>http://www.allenjhall.com/content/2011/01/15/automatic-usb-key-backups-using-rsync/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 23:38:52 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[examples]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Mac OsX]]></category>
		<category><![CDATA[Thesis Writing]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=444</guid>
		<description><![CDATA[For Christmas, my awesome brother (Donnie) got me a decently sized LaCie Iamakey [Amazon] along with a few other awesome items. He remembered it from a year or two ago on an old list! Total surprise, and a great one. I&#8217;ve been eye-ing one for a while since I&#8217;m in need of multiple backups of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lacie.com/products/product.htm?pid=11585"><img src="http://www.allenjhall.com/content/wp-content/iamaKey_angle-300x214.jpg" alt="" title="iamaKey_angle" width="300" height="214" class="alignleft size-medium wp-image-445" /></a>For Christmas, my awesome brother (<a href="http://www.iedonnie.com/ie/">Donnie</a>) got me a decently sized LaCie Iamakey [<a href="http://amzn.to/gstd7a">Amazon</a>] along with a few other awesome items.  He remembered it from a year or two ago on an old list!  Total surprise, and a great one.  I&#8217;ve been eye-ing one for a while since I&#8217;m in need of multiple backups of my research work and thesis writing.</p>
<p>I do do manual backups, and in particular have a drive mirrored using rsync in osX so that it&#8217;s bootable (old computers and poor grad-students tend to make for older hard-drives).  However, I wanted something a bit faster and easier to use.  I wanted an automatic (or semiautomatic) backup of critical writings or data.<br />
<span id="more-444"></span></p>
<p>After digging here and there and playing around over the past of the past few weeks, I&#8217;ve figured it out.  Since I didn&#8217;t see a very good writeup about how to accomplish this, I thought I&#8217;d share what I&#8217;ve done.</p>
<p>The first key is how to launch something when a USBkey is mounted in OsX 10.5.x+.  To accomplish this, I setup a launch daemon process by editing the proper plist for launchd.  However, shortly after the manual edit, I found Lignon, which is a great little GUI for the launchd processes, and I suggest you use it instead.  The older (and free) 2.1.1 worked just fine for me [<a href="http://sourceforge.net/projects/lingon/files/Lingon/">sourceforge</a>] and a newer version is available on the Mac App store.  [Feel free to edit the plist if you know what you're doing, the GUI does just that.]</p>
<p>If you are making your own plist, save it to something easily identifiable in your user account Library under LaunchAgents (~/Library/LaunchAgents):</p>
<p><a href="http://www.allenjhall.com/content/wp-content/Lingon2.png"><img src="http://www.allenjhall.com/content/wp-content/Lingon2.png" alt="" title="XML version" width="856" height="411" class="aligncenter size-full wp-image-461" /></a></p>
<p>In Lingon (at least the old version) this will look something like this:<br />
<a href="http://www.allenjhall.com/content/wp-content/Lingon1.png"><img src="http://www.allenjhall.com/content/wp-content/Lingon1-300x253.png" alt="" title="Lingon Backup" width="300" height="253" class="aligncenter size-medium wp-image-457" /></a></p>
<p>If you look carefully, you&#8217;ll notice that this launch agent will launch at any drive mounting.  When it does, it will attempt to execute a script (in this case named &#8220;AutoWorkBackup.sh&#8221;).  A little trick I&#8217;ve used to only launch on the proper drive mount, is to save the script on the actual drive.  So, the launch agent will launch the script, if it successfully mounts the usbkey.  It&#8217;s a little fail-safe in case of a similarly labeled drive is mounted.  However, it is worth noting at this point, that the script will successfully launch on any other drive also mounting (with the backup key currently mounted).  If I have time (probably won&#8217;t) I may look into possible solutions for this.  The only problem I&#8217;ve found running the script in this manner is that it appears the launch agent is paused and relaunched after 10seconds if the usbkey mount is slow.  Launchd appears a bit fast on the draw for the drive mount process.</p>
<p>Finally, we need the script to do the actual dirty work.  I use a mix of bash script and applescript to get the job done.  I originally only used a bash script and auto-launching rsyncing.  It worked quite well, but left me afraid to mount or unmount the key.  So, I decided a user dialog would be better.  However, I&#8217;m tempted to go back to the automatic method as it really was quite fast and I only mounted my key if I knew a backup was expected.  In the interest of speed, I&#8217;ll assume you can chop out code in the bash script to make your own automatic rsyncing like my first successful script.</p>
<p>Here&#8217;s the code I use that launches an applescript dialog asking if a backup is wanted:<br />
<code><br />
#!/bin/bash<br />
/sw/bin/growlnotify -I /Users/allenhall/ShellScripts/LaCieKey.icns -t "Backup USB Key" -m "Backup Key Detected."<br />
x=`/usr/bin/osascript &lt;&lt;EOT<br />
tell application "Finder"<br />
    activate<br />
display dialog "Would you like to start a backup?" buttons {"Backup", "No"} default button "Backup" giving up after 15<br />
set myReply to button returned of result as text<br />
end tell<br />
EOT`<br />
# the previous wraps a dialog inside a Finder tell clause to allow for user interaction - the result is returned as text<br />
# test if we got the result properly<br />
# echo $x<br />
# note- trick to prevent error thrown- wrap $x in "" for the conditional<br />
if [ "$x" = 'Backup' ]<br />
	then<br />
	# test for if statement<br />
	# echo 'I will back up!'<br />
	# Notify us that we are starting backups<br />
	/sw/bin/growlnotify -s -I /Users/allenhall/ShellScripts/LaCieKey.icns -t "Backup USB Key" -m "RSYNC Backup Has Begun."<br />
	# actual backup script<br />
 	/sw/bin/rsync -r -X -A -a -S -v -x -p --exclude-from=/Users/allenhall/backup_excludes.txt $* /Users/allenhall/TEXWork /Volumes/AHallThesisBackup/<br />
	# notify us that we completed our backups<br />
	/sw/bin/growlnotify -s -I /Users/allenhall/ShellScripts/LaCieKey.icns -t "Backup USB Key" -m "RSYNC Backup Is Complete."<br />
fi<br />
</code></p>
<p>The above script uses a trick to &#8220;tell application Finder&#8221; to display a dialog.  This enables user interaction via an applescript code in a shell script.  Useful little trick.  Note the above shell script also uses growlnotify the command line part of Growl for notifying the user of tasks started and completed.  I&#8217;m sorry the code is a bit jumbled above- looks like I&#8217;ll have to look for a code plugin for WordPress!  Here is the code as ascii text: <a href='http://www.allenjhall.com/content/wp-content/AutoWorkBackup.txt'>AutoWorkBackup</a>.  Please note that you can also add extra folders in the &#8220;actual backup script&#8221; portion &#8211; just watch the rules of rsync when you do.  Of course all the above has to be changed to match your computer and your important folders, etc.  [I assume you aren't dorking with launch agents and rsync without knowing a bit about it- or at least won't hold me responsible.  <img src='http://www.allenjhall.com/content/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ]</p>
<p><a href="http://www.allenjhall.com/content/wp-content/Backup.png"><img src="http://www.allenjhall.com/content/wp-content/Backup.png" alt="" title="Backup" width="414" height="151" class="aligncenter size-full wp-image-482" /></a></p>
<p>I hope you find this useful!  Drop me a line if you end up using it, or if you&#8217;ve made some cute and useful changes!  Here&#8217;s wishing you a healthy, productive, and prosperous new 2011!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2011/01/15/automatic-usb-key-backups-using-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally- Qspace mapping success!</title>
		<link>http://www.allenjhall.com/content/2010/11/13/finally-qspace-mapping-success/</link>
		<comments>http://www.allenjhall.com/content/2010/11/13/finally-qspace-mapping-success/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 03:15:44 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Doctoral Studies]]></category>
		<category><![CDATA[Materials Science and Engineering]]></category>
		<category><![CDATA[Matlab]]></category>
		<category><![CDATA[OsX]]></category>
		<category><![CDATA[Research Work]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[Epitaxy]]></category>
		<category><![CDATA[Thin Films]]></category>
		<category><![CDATA[Xray]]></category>
		<category><![CDATA[xrd]]></category>
		<category><![CDATA[XRDML]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=422</guid>
		<description><![CDATA[I have no idea why this took so long, but I finally have the code to import and output various graphs of the reciprocal space maps (RLM or Q-space) taken using the Xpert Xray diffraction system. One of the difficulties in outputting the older data has been solved by our new line-scan detector system. The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.allenjhall.com/content/wp-content/004RLM_AH296-bg2_2.png"><img src="http://www.allenjhall.com/content/wp-content/004RLM_AH296-bg2_2-300x226.png" alt="" title="Example 3D RLM visualization" width="300" height="226" class="alignleft size-medium wp-image-425" /></a>I have no idea why this took so long, but I finally have the code to import and output various graphs of the reciprocal space maps (RLM or Q-space) taken using the Xpert Xray diffraction system.  One of the difficulties in outputting the older data has been solved by our new line-scan detector system.  The data is now taken in the more simple Omega-2Theta space instead of Omega-Omega2Theta space.  With the help of Mauro Sardela, the fantastic research scientist who runs the XRD lab at the Materials Research Laboratory (FS-MRL), I&#8217;ve properly translated the data into Q-space using the same equations the Xpert Epitaxy software uses.<br />
<span id="more-422"></span><br />
Having the data in MATLAB allows a number of things to be done to the data, in particular, output the data in a form much more appropriate for journal publications.  The Xpert Epitaxy software outputs the data in a fairly crude form, and doesn&#8217;t give a colorized image for the Qspace plots (it does only for the Omega-2Theta plots).</p>
<p>The code I use utilizes the excellent XRDMLread.m function (<a href="http://www.xray.cz/xrdmlread/">available at this link</a>) and then uses the meshgrid and regrid functions to translate the data into a standard gridded data in reciprocal space.  Since I&#8217;m regridding the data, there is the unavoidable need to interpolate data to find representative signal levels at new coordinate points.  So, it&#8217;s important to remember this with my code.  Likely the Xpert Epitaxy software also does this when it reports contour lines at various levels.</p>
<p>There is more work to be done with my code, however.  In particular, I&#8217;m stepping the meshgrid by &#8220;1&#8243; degree, which may not be an appropriate data-density depending on the full scale of your scan.  [i.e., it might be too much, or too little.]  So, I need to run a simple set of code to run a fixed number of data points per scan-range, allowing the data-density to stay the same irregardless of the data-range.  I also need to improve the 3D image plotting, as MATLAB does some strange z-axis scaling while plotting in 3D.  I suspect the aspect command will solve the problem for me and allow camera moves without re-scaling the axes.  Worst case scenario, I&#8217;ll take the data into OpenDX (DXHDF5) and use rubber-sheet and camera commands to get a better three-dimensional image than MATLAB can provide.</p>
<p>So, for now, because of the data-density problem, and not having the code in a form to release (properly commented and code-snippets referenced), I&#8217;m going to ask that you contact me via the contact page for a copy of the current set of m-files for the RLM scans if you need them.  I&#8217;ll happily send them off with some caveats about their short-comings.</p>
<p>Here are some example plots capable with the simple m-files. Note that the data below is plotted with Log(Intensity) scale to show low-intensity nuances in the data.<br />
<a href="http://www.allenjhall.com/content/wp-content/115RLM-AH3173w21g1.png"><img src="http://www.allenjhall.com/content/wp-content/115RLM-AH3173w21g1-300x225.png" alt="" title="115RLM-AH3173w21g1" width="300" height="225" class="aligncenter size-medium wp-image-426" /></a><br />
<a href="http://www.allenjhall.com/content/wp-content/115RLM-AH3173w21g1InverseGray1.png"><img src="http://www.allenjhall.com/content/wp-content/115RLM-AH3173w21g1InverseGray1-264x300.png" alt="" title="115RLM-AH3173w21g1InverseGray1" width="264" height="300" class="aligncenter size-medium wp-image-428" /></a><br />
<a href="http://www.allenjhall.com/content/wp-content/115RLM-AH3173w21g1Gray1.png"><img src="http://www.allenjhall.com/content/wp-content/115RLM-AH3173w21g1Gray1-245x300.png" alt="" title="115RLM-AH3173w21g1Gray1" width="245" height="300" class="aligncenter size-medium wp-image-427" /></a><br />
<a href="http://www.allenjhall.com/content/wp-content/220RLM-AH296-bg2.png"><img src="http://www.allenjhall.com/content/wp-content/220RLM-AH296-bg2-300x226.png" alt="" title="220RLM-AH296-bg2" width="300" height="226" class="aligncenter size-medium wp-image-429" /></a></p>
<p>I guess I should explain the above a little bit.  If you need more info on how x-ray diffraction works, check here: [<a href="http://en.wikipedia.org/wiki/X-ray_scattering_techniques">Xray Diffraction (XRD)</a>]  In my present work, I work with bicrystalline GaAs and epitaxially grown copper indium diselenide.  In the xrd micrographs above, there are two primary diffraction spots.  The first, which is fairly sharp and localized (high intensity) is the GaAs substrate peak.  The second, the more diffuse, is my thin-film CIGS peak.  The distance between them, as well as the projections of the distance in both Qx and Qy give us information regarding d-spacing difference and in-plane and out-of-plane strains.  The spreads of peaks give us information regarding crystal quality, or rather, local crystal variations (which may be due to numerous reasons including stoichiometric changes).  For those of you a bit familiar with XRD, for some of the pictures above, a rocking curve would give you the side-to-side breadth of the peak and the omega-2theta scans would give you your standard broad film peak along with the sharp lorentzian like reflection of the substrate peak.  However, doing simple 2d line scans, you miss a lot of information regarding the peak shape in reciprocal space, which may be important to how your film is grown and what residual stresses or variations of crystal structure exist in your film.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2010/11/13/finally-qspace-mapping-success/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faber-Castell&#8217;s Perfect Pencil 9000</title>
		<link>http://www.allenjhall.com/content/2010/10/14/faber-castells-perfect-pencil-9000/</link>
		<comments>http://www.allenjhall.com/content/2010/10/14/faber-castells-perfect-pencil-9000/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 15:45:08 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[great products]]></category>
		<category><![CDATA[pencils]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[writing utensils]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=406</guid>
		<description><![CDATA[I&#8217;ve fallen back in love with pencils, and here&#8217;s why&#8230; As a kid I always hated the horrible yellow number 2. It was hard to carry in my back-pack without the point breaking, couldn&#8217;t be carried in any pockets without fear of lack of future off-spring, and sharp for only a small instance of time [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.allenjhall.com/content/wp-content/PerfectPencil9000.jpg"><img src="http://www.allenjhall.com/content/wp-content/PerfectPencil9000.jpg" alt="" title="PerfectPencil9000" width="88" height="300" class="alignleft size-full wp-image-361" /></a>  I&#8217;ve fallen back in love with pencils, and here&#8217;s why&#8230;<br />
<span id="more-406"></span></p>
<p>As a kid I always hated the horrible yellow number 2.  It was hard to carry in my back-pack without the point breaking, couldn&#8217;t be carried in any pockets without fear of lack of future off-spring, and sharp for only a small instance of time (delta-t before writing).  So, I was the insane geek with numerous mechanical pencils to my name.  The mechanical pencil mostly solved the carry problem (point didn&#8217;t break- or rather was always breaking to the same size) as well as the sharpness issue (always was a 0.5mm man myself).  And only in the last few instances of the Staedler I had did I have a truly retractable point mechanical pencil worthy of safe-pocket use.</p>
<p>Enter the brilliant mind of the Faber-Castell engineers.  They realized all three of these problems and solved them (and then some) with their Perfect Pencil line.  I don&#8217;t know the history of the perfect pencil, but I know when I saw the nice shiney one I was enthralled (until I saw the price-tag, and about had a heart-attack).  Someone pointed me towards the cheaper plastic FC 9000 perfect pencil.  Thank goodness they did!  I need to buy a handful so I&#8217;m never without, because I&#8217;m now hooked.</p>
<p>The perfect pencil consists of a slightly shorter FC-9000 B hardness pencil with a plastic add-on piece.  The plastic piece acts as all the following: 1) pencil extender (for when the pencil gets dinky- I&#8217;ve gone almost all the way to the eraser end), 2) Shirt-pocket clip, 3) point protector, 4) Sharpener (inside!!)</p>
<p>So, not only did they solve the point breaking, point jabbing sensitive man-parts, and lack of pencil clip, they added to that the ability to have a sharp tip anytime you want, as well as using more of the pencil itself.</p>
<p>I&#8217;ll have to post some pictures of how mine&#8217;s held up over this year&#8217;s use!  It&#8217;s looking great still with almost every-day carry (and knocking around in the bag).  Best yet, it&#8217;s light, good looking, and cheap! (For the Ramen and peanut-butter eating grad-students!)  Big cheers, Faber-Castell!  Please don&#8217;t stop producing this one anytime soon!</p>
<p><a href="http://www.allenjhall.com/content/wp-content/PerfectPencil90001.jpg"><img src="http://www.allenjhall.com/content/wp-content/PerfectPencil90001-300x34.jpg" alt="" title="Courtesy of Faber-Castell AG" width="300" height="34" class="aligncenter size-medium wp-image-408" /></a></p>
<p>Here&#8217;s a link to Faber-Castell&#8217;s webstore where you can buy your own.  (They&#8217;re somewhat hard to find online, and even insanely harder to find locally.) &#8211; <a href="http://www.shopatron.com/products/productdetail/part_number=FC119037/228.0.1.1">Buy from Faber-Castell</a>  [Price is $10 at time of writing, and $6 for 3 more 9000 pencils with erasers (shorter for less awkward initial use with the perfect-pencil cap.]</p>
<p>There are two other products likely also excellent.  One is a perfect pencil that was <a href="http://www.shopatron.com/products/productdetail/Extender+and+Pencil+-+brown/part_number=118344/228.0.1.1.7224.66202.0.0.0?pp=8&#038;">Porsche Designed</a> (approximately $45 at time of writing) and the other is the absolutely gorgeous Graf von Faber-Castell Perfect Pencil which will set you back <a href="http://www.shopatron.com/products/productdetail/Perfect+Pencil+-+Platinum+-+Brown/part_number=118567/228.0.1.1.66164.66180.0.0.0?pp=8&#038;">$250 for the platinum coated</a> and <a href="http://www.shopatron.com/products/productdetail/Perfect+Pencil+-+Sterling+Silver+-+Brown/part_number=118566/228.0.1.1.66164.66180.0.0.0?pp=8&#038;">$395 for the solid-silver</a> (and no, I didn&#8217;t confuse a decimal place).  [Let's hope those links worked as it's very difficult to find some of those on the FC website- especially the FC 9000 Perfect Pencil.]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2010/10/14/faber-castells-perfect-pencil-9000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software For Scientists: Awk (&amp; OsX)</title>
		<link>http://www.allenjhall.com/content/2010/10/13/software-for-scientists-awk-osx/</link>
		<comments>http://www.allenjhall.com/content/2010/10/13/software-for-scientists-awk-osx/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 17:45:26 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Materials Science and Engineering]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[OsX]]></category>
		<category><![CDATA[Research Work]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OsX]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=364</guid>
		<description><![CDATA[For years while Apple had proprietary system software, I was itching to get a Unix system underneath and have the ease of the windowing system. Well, after OsX was released, I was ecstatic. Why? Because of the ease of some tasks in Unix in comparison to other OS&#8217;s. This post is only one example of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.allenjhall.com/content/wp-content/TerminalApp1.png"><img src="http://www.allenjhall.com/content/wp-content/TerminalApp1.png" alt="" title="TerminalApp" width="156" height="176" class="alignleft size-full wp-image-401" /></a>For years while Apple had proprietary system software, I was itching to get a Unix system underneath and have the ease of the windowing system.  Well, after OsX was released, I was ecstatic.  Why?  Because of the ease of some tasks in Unix in comparison to other OS&#8217;s.  This post is only one example of what you can do if you do a bit of research into how to use your Mac.  For those who have un*x boxes, this will merely be a place-holder for a few AWK scripts for you.<br />
<span id="more-364"></span></p>
<p>One of the first research programs I worked on as an undergraduate was taking large amounts of data from an HPGC running a fixed-bed reactor.  There were many problems with the work: (1) since our filter materials were very good at filtering the chemicals used, the run-times to breakthrough were very long (which meant that I had to come into the lab every 4 hours and restart the machine), (2) even with the lowest data setting, we had gobs and gobs of data (gigabytes in a day we were used to kilobytes of data), and (3) the data was saved in the form of: A 1 B 2 C3 (return) D4 E5 F6 (return).  To the rescue was a friend of mine, Nicolas, who was an excellent coder.  He turned me onto AWK and it worked beautifully.  The code he came up with is more complex than the following, and I&#8217;ve misplaced the old code, so for now, let&#8217;s deal with a simple case&#8230;</p>
<p>Let&#8217;s say you have too much data (you set the machine wrong, or you can&#8217;t set the machine properly), and you don&#8217;t care about throwing away the data, as the trends you want to see aren&#8217;t on the order of the data you wish to pitch.  If you have thousands of data-points and you only need say every 5th line, or every other line- do you really put it in Excel and edit it manually?  If so, you shouldn&#8217;t get a pay-raise next quarter- you can save crap tons of time by using the right tools.</p>
<p>Enter <a href="http://www.freebsd.org/cgi/man.cgi?query=awk&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+8.1-RELEASE&#038;format=html">Awk</a> &#8211; a great command-line program available on almost every linux/unix computer (maybe yours is called Gawk).  [A huge book on how to use all the aspects of awk is available here: <a href="http://www.gnu.org/manual/gawk/gawk.html">The Gnu Awk User's Guide</a>.]</p>
<p>With a single one-liner of code in the terminal, you can accomplish your goal of reducing your data.  My pal Brandon wanted to <strong>keep only every 5th line</strong> from his data:</p>
<p><code>cat "$@" | awk -F, '{if (count++%5==0) print $0;}' >~/Desktop/AwkOutput5thLines.txt</code></p>
<p>This is the code I used within Automator to accomplish his data-throw-away needs.  (there was an error with line-endings I fix later on down in this post&#8230;)  cat &#8220;$@&#8221; uses the output of the choose-file automator task (as argument) to feed the file to the awk command (in -F mode for piping).  The count++ command is doing the dirty work.  Hat-tip to <a href="http://duanesbrain.blogspot.com/2006/03/unix-cat-every-nth-third-fourth-fifth.html">Duane&#8217;s Brain blog</a> for the awk portion of the code which does the dirty work here!  Details of how to pass strings as arguments came from <a href="http://hints.macworld.com/article.php?story=20070331120036768&#038;query=finder">this great post on MacOsXHints.com</a>.  </p>
<p>Another frequent problem is throwing away every other line.  Here&#8217;s the code to pitch every 2nd line:<br />
<code>cat "$@" | awk -F, 'NR % 2 == 1' > ~/Desktop/AwkOutput.txt</code></p>
<p>One of the errors my pal had with his data was the line-endings.  So, note that awk requires linefeeds (unix format text) in order to accomplish it&#8217;s goals.  A simple way to translate is to use <a href="http://www.freebsd.org/cgi/man.cgi?query=tr&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+8.1-RELEASE&#038;format=html">tr</a> (translate text) the line-endings into things unix understands.</p>
<p>So, I solved the text line-ending problems by adding the following code:<br />
<code>tr '\r' '\n' </code><br />
making the final code appear like this (within automator) (all in one line):<br />
<code>cat "$@" | tr '\r' '\n' | awk -F, '{if (count++%5==0) print $0;}' >~/Desktop/AwkOutput5thLines.txt</code></p>
<p>Some more great awk links you may find useful:</p>
<ul>
<li><a href="http://www.vectorsite.net/tsawk_3.html">Awk Examples</a></li>
<li><a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-three/">Famous Awk One Liners Explained</a></li>
</ul>
<p>Finally, to give you a few presents for dropping in to read this meager blog, here&#8217;s a finished Automator script as well as an application form of the script in case you need exactly every 5th line like my pal, Brandon.</p>
<ul>
<li><a href='http://www.allenjhall.com/content/wp-content/Keep-every-5th-line.zip'>Keep Every 5th Line Of My Data (ZIP file)</a></li>
<li><a href='http://www.allenjhall.com/content/wp-content/Keep-Every-5th-Line-with-encoding.app_.zip'>Keep Every 5th Line Of My Data With Encoding (ZIP file)</a></li>
<li><a href='http://www.allenjhall.com/content/wp-content/CutOutEvery2ndLine.zip'>Throw Away Every Other Line (ZIP file)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2010/10/13/software-for-scientists-awk-osx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>More on XRD Q-space mapping.</title>
		<link>http://www.allenjhall.com/content/2010/09/30/more-on-xrd-q-space-mapping/</link>
		<comments>http://www.allenjhall.com/content/2010/09/30/more-on-xrd-q-space-mapping/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 14:54:19 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[DataVisualization]]></category>
		<category><![CDATA[Doctoral Studies]]></category>
		<category><![CDATA[Materials Science and Engineering]]></category>
		<category><![CDATA[Matlab]]></category>
		<category><![CDATA[Research Work]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[reciprocal space]]></category>
		<category><![CDATA[xrd]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=339</guid>
		<description><![CDATA[After some new scans, it appears the XRDMLread.m function I talked about is doing a pretty good job of getting the 2-axis scans into MATLAB. I was able to alter the code to accept the standard Epitaxy software&#8217;s translation to Q-space. (In Epitaxy the default is R = 0.5 I believe.) So, the following image [...]]]></description>
			<content:encoded><![CDATA[<p>After some new scans, it appears the XRDMLread.m function I talked about is doing a pretty good job of getting the 2-axis scans into MATLAB.  I was able to alter the code to accept the standard Epitaxy software&#8217;s translation to Q-space.  (In Epitaxy the default is R = 0.5 I believe.)  So, the following image was imported with XRDMLread.m the plotted with the standard 2-d example from the author&#8217;s website.  The code was altered to output 10000xRLU units the same as Epitaxy (Panalytical).  I haven&#8217;t checked all the numbers, but it&#8217;s looking ok so far.  Unfortunately the color-scale looses it&#8217;s meaning as far as intensity is concerned, it appears at first glance.</p>
<p><a href="http://www.allenjhall.com/content/wp-content/1_1_5_rlm_ah296-bg1rlutrial.jpg"><img src="http://www.allenjhall.com/content/wp-content/1_1_5_rlm_ah296-bg1rlutrial-300x275.jpg" alt="(115) Qspace map" title="(115) Qspace map" width="300" height="275" class="aligncenter size-medium wp-image-340" /></a></p>
<p>Working a bit with my old q-space map code, I&#8217;m able to accomplish the following:</p>
<p><a href="http://www.allenjhall.com/content/wp-content/3dtrial3d3ii.jpg"><img src="http://www.allenjhall.com/content/wp-content/3dtrial3d3ii-300x266.jpg" alt="3dtrial3d3ii" title="3dtrial3d3ii" width="300" height="266" class="aligncenter size-medium wp-image-349" /></a></p>
<p><a href="http://www.allenjhall.com/content/wp-content/3dtrial3d3i.jpg"><img src="http://www.allenjhall.com/content/wp-content/3dtrial3d3i-300x266.jpg" alt="3dtrial3d3i" title="3dtrial3d3i" width="300" height="266" class="aligncenter size-medium wp-image-348" /></a></p>
<p><a href="http://www.allenjhall.com/content/wp-content/3dtrial3d3.jpg"><img src="http://www.allenjhall.com/content/wp-content/3dtrial3d3-300x266.jpg" alt="3dtrial3d3" title="3dtrial3d3" width="300" height="266" class="aligncenter size-medium wp-image-347" /></a></p>
<p>  Note the strange love-handles the data gains.  I suspect this might be due to the Gridfit function (see MATLAB files repository) I used for regridding the data.  Gridfit.m uses an extrapolant method.  My suspicion is it is trying to fill out the square of the data matrix and is accomplishing relatively correct values for near-by-data that is outside the scanned range.  I&#8217;ll try it again with regrid or something similar in the future when I have time.</p>
<p><del datetime="2010-11-08T23:30:16+00:00">If anyone knows where the current site for XRDMLread.m is, I&#8217;d love to link to it.  It appears the site may be down (graduated student I suspect).</del> You can obtain the wonderful XRDMLread.m function and examples on the <a href="http://www.xray.cz/xrdmlread/">XRDMLread.m website</a>.  For now, I have to wait until I hear from the authors before I can share the file.  I also don&#8217;t yet trust my icky 3D code, so I prefer not to release that until I have things hashed out.  Sorry!</p>
<p>I&#8217;m extremely happy that Panalytical has published their XRDML file format and that the makers of XRDML.m have released their .m files for MATLAB.  In the past, when Philips had the Xpert systems, the data was stuck for the most part in proprietary data formats.  [You could slice the data and output in ascii- but making that work was a pain- which is why I never released that previous code.]  I&#8217;m much closer to the 3d plotting now, and hope to finish it up before the thesis (my primary work which is not this plotting) is published.</p>
<p>Wishing you luck in you research!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2010/09/30/more-on-xrd-q-space-mapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adaptive Lenses</title>
		<link>http://www.allenjhall.com/content/2010/08/31/adaptive-lenses/</link>
		<comments>http://www.allenjhall.com/content/2010/08/31/adaptive-lenses/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 14:34:56 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Materials Science and Engineering]]></category>
		<category><![CDATA[Motivation]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Great Idea]]></category>
		<category><![CDATA[Humanitarian]]></category>
		<category><![CDATA[Polymers]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=87</guid>
		<description><![CDATA[Every once in a while a simple solution gracefully solves a problem that affects a large number of people. It doesn&#8217;t happen often, but when it does, it&#8217;s wonderful to see the results. This is the type of thing most scientist hope to experience at least once in their careers. I think most of us [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vdw.ox.ac.uk/"><img src="http://www.allenjhall.com/content/wp-content/altered_image_adspecs-150x148.jpg" alt="altered_image_adspecs" title="altered_image_adspecs" width="150" height="148" class="alignleft size-thumbnail wp-image-322" /></a>Every once in a while a simple solution gracefully solves a problem that affects a large number of people.  It doesn&#8217;t happen often, but when it does, it&#8217;s wonderful to see the results.  This is the type of thing most scientist hope to experience at least once in their careers.  I think most of us at one point in time have hoped: &#8220;please let me improve the world in some small way to make life easier for some people.&#8221;</p>
<p>I have to admit as a scientist I love to see graceful solutions to any problem.  Prof. Josh Silver at the University of Oxford has come up with just such a brilliant simple solution that any scientist who understands index of refraction will say: &#8220;Ahhh&#8230; yes!&#8221; about.  Prof. Silver has made plastic glasses with adaptive lenses for third world countries.  In third world countries to get glasses right now you have to either already know (by magic) your prescription, or try and somehow happen across an optometrist (and you thought it was just about affording a roof over your head!).  Unfortunately, optometrists don&#8217;t grow on trees in third world countries, and so you&#8217;re pretty much out of luck.</p>
<p>Enter the &#8220;dial a prescription&#8221; solution of Prof. Josh Silver&#8217;s.  With his glasses you simply turn a few dials which push plungers in or out of a syringe attached to each lens.  These syringes hold a fluid which has the same index of refraction as a polymer film which flexes under pressure (positive and negative pressure).  This pressure of course will bow out or bow in the surface of the &#8220;lens&#8221; (which is fixed on the edges to a certain thickness).  How to know your prescription?  Simple- is it clearer or not?  [Much like the old A or B, A or B, A or B, 1 or 2, 1 or 2 hassle we all go through at the optometrist's office- but cut out all that binary testing... just dial it in or out- bam, there's your prescription- in fact, it's fractions of diopters even- so it's much more analog than the current system.]  Pure brilliance.  Such a simple problem to a complex issue.</p>
<p>The impact to those who can&#8217;t see?  Huge!  I suggest it&#8217;s almost as huge as teaching someone how to farm.  People are illiterate because they can&#8217;t see things clearly enough to learn how to read or write.  Prof. Silver&#8217;s solution has the possibility of changing all of that.</p>
<p>So, my hat is off to him as a scientist- excellent work, and much needed work!!</p>
<p>Here are some links to the adaptive lenses:</p>
<ul>
<li><a href="http://www.guardian.co.uk/society/2008/dec/22/diy-adjustable-glasses-josh-silver">Guardian: Inventor&#8217;s 2020 vision: to help 1bn of the world&#8217;s poorest see better</a></li>
<li><a href="http://www.vdw.ox.ac.uk/index.htm">Prof. Josh Silver&#8217;s Organization: Center For Vision In The Developing World</a></li>
</ul>
<p>And here are some talks that highlight these new adjustable lens glasses:</p>
<p><object width="446" height="326"><param name="movie" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf"></param><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always"/><param name="wmode" value="transparent"></param><param name="bgColor" value="#ffffff"></param><param name="flashvars" value="vu=http://video.ted.com/talks/dynamic/JoshSilver_2009G-medium.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/JoshSilver-2009G.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=623&#038;introDuration=15330&#038;adDuration=4000&#038;postAdDuration=830&#038;adKeys=talk=josh_silver_demos_adjustable_liquid_filled_eyeglasses;year=2009;theme=not_business_as_usual;theme=rethinking_poverty;theme=tales_of_invention;theme=speaking_at_tedglobal2009;theme=the_creative_spark;theme=design_like_you_give_a_damn;event=TEDGlobal+2009;&#038;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /><embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" pluginspace="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" bgColor="#ffffff" width="446" height="326" allowFullScreen="true" allowScriptAccess="always" flashvars="vu=http://video.ted.com/talks/dynamic/JoshSilver_2009G-medium.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/JoshSilver-2009G.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=623&#038;introDuration=15330&#038;adDuration=4000&#038;postAdDuration=830&#038;adKeys=talk=josh_silver_demos_adjustable_liquid_filled_eyeglasses;year=2009;theme=not_business_as_usual;theme=rethinking_poverty;theme=tales_of_invention;theme=speaking_at_tedglobal2009;theme=the_creative_spark;theme=design_like_you_give_a_damn;event=TEDGlobal+2009;"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/W4OiRjv81BY&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/W4OiRjv81BY&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/vr86Eha5vLE&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vr86Eha5vLE&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>If you&#8217;ve been moved by this simple idea, consider sending a donation to them to help support vision for those around the developing world: <a href="http://www.vdw.ox.ac.uk/donate.htm">Donate</a>.</p>
<p><a href="http://www.vdw.ox.ac.uk/"><img src="http://www.allenjhall.com/content/wp-content/vdw_textlogo_white.gif" alt="vdw_textlogo_white" title="vdw_textlogo_white" width="190" height="51" class="aligncenter size-full wp-image-323" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2010/08/31/adaptive-lenses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Matlab doesn&#8217;t open two windows? &#8211; Here&#8217;s a fix.</title>
		<link>http://www.allenjhall.com/content/2010/06/29/matlab-doesnt-open-two-windows-heres-a-fix/</link>
		<comments>http://www.allenjhall.com/content/2010/06/29/matlab-doesnt-open-two-windows-heres-a-fix/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 15:11:49 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[DataVisualization]]></category>
		<category><![CDATA[Matlab]]></category>
		<category><![CDATA[OsX]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Mac OsX]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=297</guid>
		<description><![CDATA[After finally installing Leopard (10.5) osX on my Powerbook G4 (Thesis writing computer), I noticed a strange behavior with MATLAB. MATLAB could no longer open more than one instance of itself. As well, it could no longer open a window once it had opened once in any login session. Strange behavior indeed. Well, here&#8217;s the [...]]]></description>
			<content:encoded><![CDATA[<p>After finally installing Leopard (10.5) osX on my Powerbook G4 (Thesis writing computer), I noticed a strange behavior with MATLAB.  MATLAB could no longer open more than one instance of itself.  As well, it could no longer open a window once it had opened once in any login session.  Strange behavior indeed.</p>
<p>Well, here&#8217;s the fix&#8230; it turns out that Leopard uses launchd to set the display.  So, the old method of launching MATLAB was to set the display to 0.0, but this will fail after the first instance, hence the bug.  What you can do is simply remove this line from the startup script in matlab (located within the startup application contents).</p>
<p>The line that was:</p>
<p><code>$SHELL -c 'bin/'$ARCH'/setsid bin/matlab -desktop -display :0.0 &#038;'</code></p>
<p>should now be:<br />
<code>$SHELL -c 'bin/'$ARCH'/setsid bin/matlab -desktop &#038;'</code></p>
<p>Once I changed that, everything started up fine!  <img src='http://www.allenjhall.com/content/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>ps- you will know you have this problem if you look at your console log immediately after launching MATLAB and it says something like:<br />
<code>6/29/10 9:03:34 AM [0x0-0x78078].StartMATLAB[23469] Warning: Unable to open display :0.0, MATLAB is starting without a display. </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2010/06/29/matlab-doesnt-open-two-windows-heres-a-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NY-PBS Captures The Struggle Of The Graduate Student</title>
		<link>http://www.allenjhall.com/content/2010/04/09/film-the-struggle-of-the-graduate/</link>
		<comments>http://www.allenjhall.com/content/2010/04/09/film-the-struggle-of-the-graduate/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 05:52:01 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Motivation]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Research Work]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Graduate Studies]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[The Scientific Life]]></category>

		<guid isPermaLink="false">http://www.allenjhall.com/content/?p=289</guid>
		<description><![CDATA[It&#8217;s not often that someone goes about deciding to make a film about graduate studies. It just so happens that Thirteen (PBS-NY) has done just that. Their film &#8220;Naturally Obsessed: The Making Of A Scientist&#8221; is quite an excellent snap-shot of the struggle of graduate students to get their PhD degree and accomplish something very [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not often that someone goes about deciding to make a film about graduate studies.  It just so happens that <a href="http://www.thirteen.org/">Thirteen</a> (PBS-NY) has done just that.  Their film &#8220;<a href="http://www.thirteen.org/naturally-obsessed/">Naturally Obsessed: The Making Of A Scientist</a>&#8221; is quite an excellent snap-shot of the struggle of graduate students to get their PhD degree and accomplish something very difficult.  Of course each of our struggles is unique.  We are all dealing with our own situations, with our own fields (some not even in laboratories- the horror- is that real science?  hahahah).</p>
<p>Speaking of our own struggles, what most of the public often does not get a feel for is the absolute devotion, almost to insanity, towards finding the solutions we are looking for.  Many of the comments by the graduate&#8217;s spouses touched home for me.  In each of the graduates followed in this film I saw bits of myself.  One thing however, that is different, is the struggle for the specific protein structure.  Often that struggle is a lot less well-defined.  In this situation, you either get the structure of AMPK or you don&#8217;t.  I guess it&#8217;s a lot like their attempts at creating crystals.  Sure, you get crystals, but if they don&#8217;t have a periodic structure, you&#8217;ll never get diffraction.  In my situation, the variables in our studies are very difficult to control, and so often one doubts one&#8217;s work solely on the question of reproducibility.  Many scientists struggle with this same situation.  People think that doing things like &#8220;measuring temperature&#8221; is a very easy thing.  In reality, it is a very very difficult thing.  Especially in a vacuum.  <img src='http://www.allenjhall.com/content/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   That question just arose the other day in discussing our science with a new undergraduate assistant.  As we talked more and more on the difficulties of measuring temperature we all saw his eyes grow larger in wonder.  The simplest of problems can often be the most difficult.  How accurate do you need to measure it?  What standard will you use?  Do you believe your thermocouple, your thermometer, or your pyrometer?  What if the emissivity of the surface changes?  <img src='http://www.allenjhall.com/content/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is the life of a scientist.  And the film below attempts to capture the lives and struggles of a few graduate students who are hoping for a career in science.  It&#8217;s a struggle.  But, you have heard me say that enough.  <img src='http://www.allenjhall.com/content/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   To learn more about it I strongly suggest you watch this film.  For the graduate student, I warn you: you&#8217;ll see yourself in this.  For those who aren&#8217;t scientists: this may end up being a comedy, and I kindly refer you to <a href="http://www.allenjhall.com/content/2008/08/27/marge-simpson-on-graduate-school/">Marg Simpson&#8217;s commentary on graduate students</a> posted earlier in this blog.</p>
<p><embed src='http://player.theplatform.com/ps/player/pds/kj-5OcNN0M&#038;pid=0IbDG4CTzUuikqXGA0atytdwiHDU_Adg' width='514' height='307' type='application/x-shockwave-flash' allowFullScreen='true' bgcolor='#ffffff' /></p>
<p>My congratulations to Thirteen for doing such an excellent job on this one hour film.  They didn&#8217;t have a lot of time to share with you everything regarding our struggles and achievements, but they distilled it quite well in the time available.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenjhall.com/content/2010/04/09/film-the-struggle-of-the-graduate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

