tag:blogger.com,1999:blog-91206929122592038542024-02-19T08:55:12.417-06:00The Golden RationalUsing technology to improve efficient education and open scientific research.Anonymoushttp://www.blogger.com/profile/09177051578810677099noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-9120692912259203854.post-70613806771868154872014-02-27T11:55:00.003-06:002014-02-27T12:04:34.444-06:00Editing a codebase on a remote server from Chrome OS <br />
<span style="font-family: inherit;">Here's a quick post about how your Chrome OS device, in developer mode, can edit a codebase on a remote (e.g. university, personal) server as if the code were local. And you don't need to install <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCkQFjAA&url=https%3A%2F%2Fgithub.com%2Fdnschneid%2Fcrouton&ei=l3gPU57QEaby2QWi5YGYAg&usg=AFQjCNEdu-2ZzUqc1TIW1G-15v2DYyNhZg&sig2=4562i5Wo5BJKeuXtPkiyEA">Crouton</a> or any Linux partition-esque things to do so. This allows instant saving back to the server, where you might be running scripts or need access to large data files you can't host locally.</span><br />
<span style="font-family: inherit;"><br /></span>
<br />
<h3>
<span style="font-family: inherit;">Step 1: Install Caret</span></h3>
<span style="font-family: inherit;"><a href="https://chrome.google.com/webstore/detail/caret/fljalecfjciodhpcledpamjachpmelml?hl=en">https://chrome.google.com/webstore/detail/caret/fljalecfjciodhpcledpamjachpmelml?hl=en</a></span><br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0E1NQ_S-vMkas1cELUVEq5Y4c-yTWZrsczxF3IPf2TwqD9KXhpdXePk0QlcV8hSNY28SG6d08Hj78pEQcGj0R31RjUradSKzTulH5xdLBtln4v1h6zm9mPlEtnePJO5M93F1aOkXlEw0/s1600/Screenshot+2014-02-27+at+11.49.35+AM.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0E1NQ_S-vMkas1cELUVEq5Y4c-yTWZrsczxF3IPf2TwqD9KXhpdXePk0QlcV8hSNY28SG6d08Hj78pEQcGj0R31RjUradSKzTulH5xdLBtln4v1h6zm9mPlEtnePJO5M93F1aOkXlEw0/s1600/Screenshot+2014-02-27+at+11.49.35+AM.png" height="265" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Caret is an excellent code editor in the style of Sublime Text.</td></tr>
</tbody></table>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: inherit;"></span><br />
<span style="font-family: inherit;"></span>
<br />
<h3>
<span style="font-family: inherit;">Step 2: Install Chrome OS dev tools</span></h3>
<ul>
<li><span style="font-family: inherit;">You need to be in <a href="http://www.chromium.org/chromium-os/poking-around-your-chrome-os-device#TOC-Putting-your-Chrome-OS-Device-into-Developer-Mode">developer mode</a> on your Chrome OS device, but the channel is irrelevant (stable/beta/dev)</span></li>
<li><span style="font-family: inherit;">Open a terminal with Ctrl-Alt-T</span></li>
<li><span style="font-family: inherit;">Type </span><span style="font-family: Courier New, Courier, monospace;">sudo -i</span></li>
<li><span style="font-family: inherit;">Type </span><span style="font-family: Courier New, Courier, monospace;">dev_install</span></li>
</ul>
<div>
<h3>
<span style="font-family: inherit;">Step 3: Mount the remote server</span></h3>
</div>
<div>
<ul>
<li><span style="font-family: inherit;">Exit from the superuser session by Ctrl-D</span></li>
<li><span style="font-family: inherit;">Type </span><span style="font-family: Courier New, Courier, monospace;">cd ~/Downloads</span></li>
<li><span style="font-family: inherit;">Type </span><span style="font-family: Courier New, Courier, monospace;">mkdir remote_folder,</span><span style="font-family: inherit;"> where remote_folder is whatever you want to call it</span></li>
<li><span style="font-family: inherit;">Type </span><span style="font-family: Courier New, Courier, monospace;">sshfs username@remote.server:/path/to/folder remote_folder</span><span style="font-family: inherit;">, where you can fill in the information for your username, remote server domain, and the default folder you want to start in</span></li>
</ul>
<div>
<h3>
<span style="font-family: inherit;">Step 4: Use Caret to edit code in the style of Sublime Text and other code editors</span></h3>
</div>
</div>
<div>
<ul>
<li><span style="font-family: inherit;">Project --> Add directory</span></li>
<li><span style="font-family: inherit;">Browse to Downloads/remote_folder/ then find the top level folder containing code you want to edit.</span></li>
<li><span style="font-family: inherit;">Edit! And Saving will instantly save back to the server. So perhaps you want a </span><a href="https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo?hl=en" style="font-family: inherit;">SSH window</a><span style="font-family: inherit;"> open </span>simultaneously<span style="font-family: inherit;">, running scripts on the server.</span></li>
</ul>
<div>
<span style="font-family: inherit;">Hope this is useful.</span></div>
</div>
<br />
<span style="font-family: inherit;"><br /></span>
Anonymoushttp://www.blogger.com/profile/09177051578810677099noreply@blogger.com0tag:blogger.com,1999:blog-9120692912259203854.post-13912113564963622952013-10-29T11:17:00.000-05:002013-10-29T11:24:31.467-05:00How much science can you do on a tablet?Apple have announced both their <a href="http://www.theverge.com/2013/10/22/4866868/apple-ipad-5-2013-availability-price-air">iPad Air</a> and <a href="http://www.theverge.com/2013/10/22/4865784/ipad-mini-with-retina-display-2013-announcement">Mini Retina</a> this month, and we fully expect Google to follow with a refresh to the <a href="http://gizmodo.com/rumor-nexus-10-specs-leak-briefly-google-play-store-1453270372">Nexus 10</a>. Due to excellent battery life, portability, and mature application stores, I've tried working on both iOS and Android tablets (the Asus Transformer Infinity, the Nexus 10, and briefly, the iPad 3) for my work in scientific research, with mixed results. Unfortunately, I've not had a go with the Microsoft Surface range, but there are some <a href="http://yieldthought.com/post/60180703528/microsoft-surface-vs-ipad-linode">excellent blog posts</a> by Mark O'Connor to assist me in my review (albeit from a programmer's, rather than a scientist's, point of view).<br /><br />It's a recurring question (of mine, of the internet's) whether a tablet can indeed replace a desktop and/or laptop for some, most, or even all your scientific research needs. This may be with or without a keyboard attachment (this blurs the lines between laptops, 'hybrids' with dockable touchscreens, and tablets). Of course, my answer to this will be general, and heavily biased by my experiences and needs. Everyone has a different workflow and specific discipline, each requiring unique and personalised technological demands. But this is why comment boxes were invented: do chip in below (or on Google Plus) with your opinions.<br />
<br />
<h2>
Requirements</h2>
<br />
Let's remove the low-hanging obstructions first. If you have access to a supercomputer for heavy lifting, like running hefty computer scripts, then tablets are viable; however, not if you need to carry round your CPU heft. Let's also assume that, if you need professional-grade image editing or other proprietary software, you won't even consider the lightweight alternatives. (Journalist reviews of Chromebooks and tablets as productivity replacements are often negativity skewed due to their disproportionate reliance on software such as Photoshop.)<br />
<br />
I need to following in my entire workflow:<br />
<br />
<ul>
<li>Access to Mendeley for scientific article reading, management, annotation, and bibliography creation</li>
<li>Access to a GUI word processors (e.g. Google Docs, MS Word) and LaTeX typesetting (preferably cloud-based like sharelatex.com). </li>
<li>Access via SSH to the university supercomputer (remote access to edit and run scripts for my research)</li>
</ul>
<div>
The following qualities are encouraged in my device of choice:</div>
<div>
<ul>
<li>Screen size big enough to see a lot of code, images, writing; but small enough to be portable</li>
<li>VGA or HDMI out for presentations</li>
<li>Long battery life for working remotely, at conferences, etc</li>
<li>Openness and access to free software</li>
</ul>
<h2>
<br /></h2>
<h2>
General issues</h2>
<div>
Both Android and iOS tablets run on <b>ARM</b> processors. This is an <u>architecture</u>: the computer is set up differently to your typical PC (which often run <b>x86</b> processors). Apps or programs written for one architecture cannot simply work on the other one without being recompiled. In addition, (non-Pro) Surface tablets run a ARM-specific OS called Windows 8 RT. ARM architecture typically gives devices excellent battery life (<a href="http://www.theverge.com/2013/10/10/4822576/hp-chromebook-11-review">not always</a>...) but less computational heft. If you're doing mostly less-CPU-intensive tasks, such as coding, writing, and reading, modern mid- and high-end tablets have the power. The other issue is that the apps you require have to be (1) written for your mobile OS of choice, and (2) has to be optimised for your tablet. This is not usually an issue on iOS and Android, but Windows RT currently falls short in the quality of ecosystem, as reported by many other sites. On an optimistic note, Android once upon a time had a much lower quality of tablet apps in comparison to iPads, but has now arguably caught up.</div>
<div>
<br /></div>
<div>
If you do a lot of writing, a bluetooth or dockable keyboard is essential. This begs the question: don't they already have <a href="http://en.wikipedia.org/wiki/Laptop">screens that attach to keyboards</a>? The advantage of a removable keyboard and ARM-powered heart is the flexibility to slouch-and-read versus sit-and-type - and the freedom from being tethered to a power source.<br /><br />Let's look at OS- and ecosystem-specific issues.<br /><br /><h2>
iOS</h2>
</div>
</div>
<div>
The only tablets that run iOS are the iPads. As mentioned, I've only had 1-2 weeks of iPad experience. Apps can be more polished than those seen on Android and Surface tablets, but in my experience, you had to pay a lot more, and a lot more often, for suitable apps. I found Android to have a lot of excellent Google apps (free) and open-source software/ports (free), but the applications were sometimes buggy or ugly (if this matters to you). The blogosphere has contrasting arguments about ecosystem app prices, however, and statistics alone do not tell the story. Some developers <a href="http://phandroid.com/2013/07/12/what-does-freemium-mean/">charge</a> for features after you've downloaded their free app; <a href="http://lifehacker.com/are-you-willing-to-pay-for-ios-7-app-updates-1296671061">others</a> require you to update to a new (paid) version for continued development.<br /><br />iPads are more locked-down; this might result in a more secure system, and may protect battery life against badly-written power-sucking apps, but it can make it hard when trying to browse files, administrate at a system levels, etc. This ultimately was the knock-out blow for my budding iOS adoption: for example, I need to be able to easily upload/download files when working remotely.</div>
<div>
<br /></div>
<h2>
Android</h2>
<div>
Simply, you've got more choice here. Android tablets are made by Samsung, Asus, Google, and many other companies. You won't find a <a href="http://eee.asus.com/en/transformer-infinity/features">dockable</a> iPad; you won't find an iPad with a dedicated and specialised <a href="http://www.samsung.com/global/microsite/2014galaxynote10.1/">stylus</a>. However, build quality tends to fall short of the iPad's industrial-yet-pleasing design. </div>
<div>
<br /></div>
<h2>
Windows (RT)</h2>
<div>
There's the Surface 2, which runs Windows RT, in line with the rest of this list. But there's the Surface Pro 2, too, which has <b>x86 architecture</b>. The Surface Pro is best described as a touch-screen laptop with a removable keyboard, rather than a tablet, and is almost double the price of the entry-level iPad/Nexus 10. It can run Windows 8 programs, rather than simpler apps, but battery life is inferior. It's ultimately the comparison of apples and oranges. As such, I will only consider the Surface 2 (<b>ARM</b>) here.</div>
<div>
<br /></div>
<div>
As mentioned, Windows RT is still developing; more worryingly, it's not clear if it will be allowed to continue to develop. <a href="http://www.maximumpc.com/dell_stops_selling_xps_10_windows_rt_tablet100h">Companies</a> have, one by one, stopped making ARM-powered Microsoft devices, and instead concentrated on x86 devices instead. The excellent keyboard options that the Surface has available may be a moot point if the OS languishes in its current state, behind Android and iOS.</div>
<div>
<br />On the other hand, if you require MS Word above all else, you can't beat the Surface 2. MS Office comes free of charge with the device, and it is almost identical to the typical PC (x86) version.</div>
<div>
<br /></div>
<h2>
My experience</h2>
<div>
I found tablets to comfortably perform a lot of common tasks in my work. I found that writing was good in word processing apps (Apple's Pages, Android's Google Drive/Docs), though a little more difficult on sharelatex.com (using a web browser on a tablet is not still on par with laptops, but e.g. the Google Chrome team are on the path to merging the two branches). This was similar across devices I used. Reading was also excellent on all three of the iPad, Asus Transformer Infinity, and Nexus 10. Ten inches is the minimum for PDF reading/annotating if you don't want to be constantly zooming and scrolling, and a high-resolution screen is also important when studying images and text. Using SSH apps, I could log on to my university supercomputer and edit/run code. I could even write code locally and upload it later, when offline. I could manage my Mendeley library almost completely via apps and the browser, thanks to a <a href="https://play.google.com/store/apps/details?id=info.matthewwardrop.scholarley&hl=en">wonderful application</a>.<br /><br />However, the screen size was prohibitive at times; multitasking was a pain; web-browsing could be laggy; and OS updates on Android often broke as many features as they fixed (a common issue with Google, who seem to value cutting-edge over stability). <a href="http://yieldthought.com/post/60180703528/microsoft-surface-vs-ipad-linode">Some have said</a> that a 10-inch screen forces you to concentrate on the task at hand, bottlenecking/sharpening (delete as appropriate) your focus and attention. Others, me included, are so scatter-brained with code and writing/reading that a large surface area is required; tabs and windows litter two or more monitors; alt-tab or its equivalent just won't cut it. Most importantly, apps might be a good approximation, but if they can't beat a full-blown program on a (x86) laptop, you're left wondering if it's possible to skimp. In my case, the most important program was Chrome, <a href="http://thegoldenrational.blogspot.com/2013/10/completing-masters-in-cloud.html">as I (can) do most my work in the browser</a>. Google Presentations isn't ready for tablets yet, either, and that is my go-to application for PowerPoint-style presentations (on my Chromebook).</div>
<div>
<br /></div>
<div>
The worst experience was with Asus. My Infinity tablet, while beautiful, broke often. It's more truthful to say my <i>five</i> Asus tablets. In the end, I took the refund rather than waiting for Asus to fix yet another mechanical issue. Also, Asus tablets have a <a href="http://www.xda-developers.com/android/problems-identified-on-the-transformer-infinity-and-mods-to-help/">common processing bottleneck</a> where the computer chip can't seem to do two things at once, like downloading an app update and type at the same time. I also faced nothing but problems when connecting to an overhead projector to show a PDF. You just can't risk these issues cropping up on the day of a scientific presentation! On the contrary, I didn't see the same fragility with the Nexus 10 and iPad.<br /><br /><h2>
Summary</h2>
</div>
<div>
Today, I use a Chromebook Pixel (x86 laptop) for my day-in, day-out workflow, and this speaks volumes. Ultimately, one needs <b>reliability</b>. I didn't find this physically with Asus tablets, and I didn't entirely find it software-wise in the app stores on both iOS and Android (though we're almost there). One also needs <b>productivity</b>; if this requires a large screen, then it's going to have to come from a laptop as it stands. But if you like the modular focus of <a href="http://www.tuaw.com/2011/07/20/lions-full-screen-apps-some-hits-a-lot-of-misses/">full-screen apps</a>, it won't be a problem for you. And if you want to type quickly and efficiently, you need a hardware keyboard, begging the question: "<i>And so what's left to make me choose a tablet over a laptop</i>?" And here's where I hold the candle of optimism for tablet (and portable/cloud) computing as a whole: battery life should be all-day, apps and OSs should be lightweight and easy to maintain, and there should be plentiful development for applications. Here, tablets (and Chromebooks) are side-by-side, if not well past, the level of standard laptops that run Windows and Mac OS. So I'd answer my title question as such: <b>close to all but not close enough</b>. You can't replace the laptop or desktop completely as it stands. Let's see if the new Nexus 10 and attendant update to Android (4.4) appear enough to make me change my mind.<br /><br />Let me know if you have any other solutions or workflows. I probably have a lot more to say on this topic, but this was a rough overview of the major issues and experiences I've had.</div>
Anonymoushttp://www.blogger.com/profile/09177051578810677099noreply@blogger.com0tag:blogger.com,1999:blog-9120692912259203854.post-69004787258609655172013-10-16T10:48:00.002-05:002013-10-16T11:03:20.995-05:00ShareLaTeX vs Microsoft Word in scientific writing: Part 1A co-author and I are in the process of writing two scientific articles for submission to a meteorological journal. As these two papers will be similar in structure and content (obviously not too similar!), this gives me an opportunity to weigh the benefits of <a href="http://www.sharelatex.com/">LaTeX-in-the-cloud</a> versus the standard Microsoft Office Word application. So let the fight begin! In the cloud corner, I present the <a href="http://www.theverge.com/2013/2/25/4023830/google-chromebook-pixel-review">Chromebook Pixel</a>:<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggOvRVXhyphenhyphenzitjREQ0heDf3bGGJFdOQNTO6hAUuCQM86_szr0KjAAQvaREkwos2ZJAayyZ-2XR7NEEW5yQ5LPjse-k4TnnBm7B3oa7MCXP07WCj8BK6mxmWrpUQ-nJLyrRgeDFu0I4Kb_8/s1600/2013-09-23" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggOvRVXhyphenhyphenzitjREQ0heDf3bGGJFdOQNTO6hAUuCQM86_szr0KjAAQvaREkwos2ZJAayyZ-2XR7NEEW5yQ5LPjse-k4TnnBm7B3oa7MCXP07WCj8BK6mxmWrpUQ-nJLyrRgeDFu0I4Kb_8/s320/2013-09-23" width="240" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Chromebook Pixel (left) with external monitor displaying PDF (right)</td></tr>
</tbody></table>
<br />
It's the best Chromebook out there right now, and was produced as more of a showcase for Chrome OS. It's got more power than most people need in a Chromebook. Also, it can simultaneously run Ubuntu Linux thanks to the <a href="https://github.com/dnschneid/crouton">Crouton</a> project. This comes into play later in the post.<br />
<br />
Next, in the local/MS Office corner, I present the Compaq Presario C700:<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrA-QyZf6MUXZsnFtyEyXkgzmq9PmO7DE3LW-N9qIF4t3FRlbPIO4oE9N5E0iTzfiMpJmZaQpMucwtzQfJdQG2A_Jp_PzXdoM-cDV-dCCGcAgCgUzIpHH74Ggdd0vLGHzsa7rbk0RJoMQ/s1600/2013-10-16" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="233" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrA-QyZf6MUXZsnFtyEyXkgzmq9PmO7DE3LW-N9qIF4t3FRlbPIO4oE9N5E0iTzfiMpJmZaQpMucwtzQfJdQG2A_Jp_PzXdoM-cDV-dCCGcAgCgUzIpHH74Ggdd0vLGHzsa7rbk0RJoMQ/s320/2013-10-16" width="320" /></a></div>
<br />
It's old, but still going. It runs Windows 8 (soon to be 8.1) and Microsoft Office 2013. Its battery is now useless, requiring constant hookup to the mains; fortunately, I can access it from my Chromebook remotely via <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CD4QFjAA&url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fchrome-remote-desktop%2Fgbchcmhmhahfdphkhkmpfmihenigjmpp%3Fhl%3Den&ei=_bNeUrL9CYa32wXA5oHQDg&usg=AFQjCNEuGk15vuDjTteKZQK7QRCwTCs9Mg&sig2=3XKlP48eVAcqvjnW7IBRIA&bvm=bv.54176721,d.b2I">Chrome Remote Desktop</a>, if I need to be portable.<br />
<br />
As with all good scientific sensitivity tests, I need to keep everything the same in both cases, and just change the variable I'm testing. Here are the other helpers in my paper-writing factory:<br />
<br />
<h3>
Bibliography management: Mendeley</h3>
First, I use <a href="http://www.mendeley.com/">Mendeley</a> to manage my biblography. It's an "iTunes for scientific papers and PDFs", as I've once heard it described. It syncs all my PDFs (metadata and all) to the cloud, so I can access everything from the browser, or download a desktop program (Mac, Linux, Windows). Its major flaw for us Chrome OS users is the almost-impossible way to get PDFs into your online catalogue, as you can't download the application (and shouldn't need to!). Yes, this is <strike>a little</strike> <a href="http://feedback.mendeley.com/forums/4941-general/suggestions/1022895-upload-pdfs-using-mendeley-website-interface">extremely</a> counter-intuitive for a cloud-friendly application, but that's the way it is right now. The best solution is to run Ubuntu on my Pixel when I need to upload PDFs, via the previously-mentioned Crouton solution. But if I just want to access my papers within Chrome OS, <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=http%3A%2F%2Fmetatato.com%2F&ei=aLReUtrdIanE2gXGqoHwDA&usg=AFQjCNFcnbG52569Ma4c3Z_3-MwC_SuEcA&sig2=PWUUadbrxK02-chyhyueSw&bvm=bv.54176721,d.b2I">Metatato</a> is a handy website (and Chrome extension) which mimics many features of the desktop Mendeley program.<br />
<br />
When I'm using ShareLaTeX, I can upload a .bib file automatically generated by Mendeley. Then I can easily cite references within LaTeX (this ease is a major advantage of LaTeX over Word). And when I'm using Word, there is a plug-in that allows Word to import citations from Word, and automatically generate a bibliography. I've only had experience with ShareLaTeX; I will report back on Word-and-Mendeley integration in Part 2.<br />
<br />
<h3>
Figure creation: Google Drawings</h3>
I'm creating figures for publication with <a href="http://www.python.org/">Python</a>, but this is maintained on a separate server. I access the server via <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fsecure-shell%2Fpnhechapfaindjhompbnflcldabbghjo%3Fhl%3Den&ei=orReUt-uFKzC2gXaloCgBQ&usg=AFQjCNETNiInrBd9eRIIHLD0BFiBLu07uQ&sig2=4hjc-hlkyS5kg4dsS8MR7w&bvm=bv.54176721,d.b2I">SSH</a> from Chrome OS. The outputted images are then downloaded onto my Chromebook via a public_html folder on the server, and uploaded into <a href="https://support.google.com/drive/answer/177123?hl=en">Google Drawings </a>if required (for annotating, combining etc). I've previously mentioned Google Drawings as a good all-round image editor. It can combine smaller images while maintaining their resolution (good for publications); it is good for quick schematic diagrams; it integrates well with other Google Drive office-style applications. It is easy to export (download) the final product as a .pdf to create good-quality figures for either Word or ShareLaTeX. And it certainly beats using Word or Powerpoint to mash together a diagram (often the case in academia it seems!).<br />
<br />
<h3>
Verdict: Using ShareLaTeX for collaboration</h3>
If the other person is not as comfortable using LaTeX, it can become difficult. A lot of people are much more comfortable with Word due to its malleable, What-You-See-Is-What-You-Get nature.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR97PfWWrtY4sxJVuTzz-bxFXOq8iWJs1t1VKQ_ewQo3yKE1_r8tgfENBI-4jP42x_6IQXLiyxFSbrb6S9CePx2nCQXIJ4oOGBe5VOu8hc_G5atHtXLbh1KdQKNaVUEEpRImLSpZ3mSgs/s1600/latexshot.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="171" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR97PfWWrtY4sxJVuTzz-bxFXOq8iWJs1t1VKQ_ewQo3yKE1_r8tgfENBI-4jP42x_6IQXLiyxFSbrb6S9CePx2nCQXIJ4oOGBe5VOu8hc_G5atHtXLbh1KdQKNaVUEEpRImLSpZ3mSgs/s320/latexshot.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Example of ShareLaTeX.com screen, with code in the middle, and the compiled PDF on the right.</td></tr>
</tbody></table>
<br />
Otherwise, ShareLaTeX shows history of edits (with a paid account), has a chat facility, is accessible simultaneously by two (or more, with paid account) people, and compiles relatively reliably. I found that large documents (my thesis, for example) sometimes wouldn't compile, but this was only ever temporary and more likely to do with the huge volume of high-DPI figure files in my project.<br />
<br />
The main advantages with (Share)LaTeX is as follows:<br />
<br />
<ul>
<li>Seamless, easy management of bibliography</li>
<li>An organised folder of high-resolution figures that precludes the need to chase images round your Word document</li>
<li>Everyone has the same 'version'; no compatibility errors like with Word (both different years and different OSs!)</li>
<li>Fast help from the website developers when there were issues compiling</li>
<li>ShareLaTeX is free at its base feature level, which is sufficient for many people (poor students like me included)</li>
</ul>
<br />
<ul></ul>
<br />
<div>
However, there are shortcomings:</div>
<div>
<ul>
<li>Can be tedious when trying to get a manuscript to output perfectly in line with a journal's style guide. Sometimes, where a change would be a couple of keystrokes in Word, it would be a time-consuming Google goose-chase to track down the relevant 'hack'.</li>
<li>ShareLaTeX is still missing a mature 'track changes' equivalent for collaboration (and the ability to point fingers at whoever just deleted that supremely-written paragraph)</li>
<li>Some journals don't like LaTeX. Full stop.</li>
</ul>
<div>
I hope to discuss these matters further when I begin the entire process again for the second paper, but in Microsoft Word. I look forward to sharing my experiences...</div>
</div>
Anonymoushttp://www.blogger.com/profile/09177051578810677099noreply@blogger.com0tag:blogger.com,1999:blog-9120692912259203854.post-25641780350763242122013-10-16T00:20:00.001-05:002013-10-16T09:53:37.404-05:00Completing a Master's in the cloudAs <a href="http://thegoldenrational.blogspot.com/2013/10/introduction.html">previously mentioned</a>, I decided to do my Master's Thesis work on a <a href="http://www.google.com/intl/en/chrome/devices/chromebox.html">computer</a> running Chrome OS (a Samsung Chromebox). Including a HD monitor, keyboard, and mouse, it cost less than half the price of my colleagues' iMac desktop computers (running OS X). In fact, I started using an iMac before being offered a new computer of my choice, and chose the cheaper Chrome OS route. I'm not saying everyone can save money and do that; but I'd like to explain why I don't think a $1500 desktop computer is the right choice for everyone.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggOvRVXhyphenhyphenzitjREQ0heDf3bGGJFdOQNTO6hAUuCQM86_szr0KjAAQvaREkwos2ZJAayyZ-2XR7NEEW5yQ5LPjse-k4TnnBm7B3oa7MCXP07WCj8BK6mxmWrpUQ-nJLyrRgeDFu0I4Kb_8/s1600/2013-09-23" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggOvRVXhyphenhyphenzitjREQ0heDf3bGGJFdOQNTO6hAUuCQM86_szr0KjAAQvaREkwos2ZJAayyZ-2XR7NEEW5yQ5LPjse-k4TnnBm7B3oa7MCXP07WCj8BK6mxmWrpUQ-nJLyrRgeDFu0I4Kb_8/s320/2013-09-23" width="240" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Example of Chromebook and external monitor (rotated for easy reading of PDFs)</td></tr>
</tbody></table>
<br />
First, my main tasks as a Master's student were <b>writing essays</b> for classes, <b>writing my thesis</b>, <b>coding</b> in Python and Matlab as part of my research, and putting together <b>poster and projector presentations</b>. Originally, on the iMac, this was completed using Microsoft Office Word, a local build of LaTeX, Mac's native Terminal, and Office Powerpoint, respectively. The iMac wasn't a newer model; it was creaking and slow, and the spinning <a href="http://www.thexlab.com/faqs/sbbod.html">beachball of death</a> made a frequent cameo throughout. When I switched to the Chromebox, I gained speed and ditched frequent, large application updates. But I also had to create a new workflow. Here's how I did it.<br />
<br />
<h3>
Writing</h3>
LaTeX is my favourite way of creating a professional-looking manuscript, but for short class essays, it can be overkill. However, Microsoft Word can also be overkill. <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC8QFjAA&url=http%3A%2F%2Fdocs.google.com%2F&ei=gxpeUufICMna2QW4vIAg&usg=AFQjCNHj75Au5kt8svXmuNkhBD_DjnPhNQ&sig2=uwl-Ll74zIBrDh2agq0mLg&bvm=bv.54176721,d.b2I">Google Docs</a> does most of the same, basic tasks, and is frequently updated. It auto-saves every few seconds, is accessible on any computer with internet connection, allows download of .doc files for offline editing (or even switching to e.g. MS Word), and is excellent for collaboration (not that class essays required much of that).<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7bVCgGP2HJFRYY90VxSktsa3AeVk-tM4HVyukgfa2PbbsZFV_rz9xcVT36EHmQuvmb-_F7Bx2wYHHMatyUixCH_U5655sLIGx5HZPcnZUYkhAK3FtpVZ3DXs-7pNsl2KQ9QLOusP7A70/s320/docsexample.png" style="margin-left: auto; margin-right: auto;" width="320" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Google Docs</td></tr>
</tbody></table>
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm3kc5n__c7w6QQFsNzxV_H4I9LfF0IZMYIhBEmMt9Ex1KP-3ubZiiXRjks5EP9coYZ55NlQjleXR5KGW1ila_WOb9PS_rXlyppV1FNwE9_NKxa6PS4uuQ3mzJvfBCsWjYeRXj6afxDHI/s1600/latexshot.png" imageanchor="1" style="clear: right; display: inline !important; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="171" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm3kc5n__c7w6QQFsNzxV_H4I9LfF0IZMYIhBEmMt9Ex1KP-3ubZiiXRjks5EP9coYZ55NlQjleXR5KGW1ila_WOb9PS_rXlyppV1FNwE9_NKxa6PS4uuQ3mzJvfBCsWjYeRXj6afxDHI/s320/latexshot.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">ShareLaTeX.com</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7bVCgGP2HJFRYY90VxSktsa3AeVk-tM4HVyukgfa2PbbsZFV_rz9xcVT36EHmQuvmb-_F7Bx2wYHHMatyUixCH_U5655sLIGx5HZPcnZUYkhAK3FtpVZ3DXs-7pNsl2KQ9QLOusP7A70/s1600/docsexample.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a></div>
<br />
<br />
When it came to long, organised manuscripts with many images and some mathematical typesetting, I required LaTeX. Luckily, <a href="http://www.sharelatex.com/">ShareLaTeX.com </a>is a fantastic free resource; it compiles 'in the cloud', meaning it's an all-in-one system to avoid requiring a local build of LaTeX for your typesetting needs. It was slightly slower to upload my figures, and compile remotely, but this downside was countered by frequent auto-saves, and the fact that packages were provided and administered by the website programmers. Less time worrying about admin; more time writing my thesis.<br />
<br />
<h3>
Coding</h3>
I was fortunate to have access to a university server with plenty of programming power. Chrome OS has an <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fsecure-shell%2Fpnhechapfaindjhompbnflcldabbghjo&ei=BRxeUvi1LMH22gW4pICYDQ&usg=AFQjCNGhFDTb5wgGhMXKroc8Ff2tG-mi9A&sig2=-w7oAkhtKGyysc6z27U9Iw&bvm=bv.54176721,d.b2I">extension</a> that lets the user SSH into another server or computer. In my case, I was harnessing the server's horsepower, and hence my local computer was a terminal with no need for a powerful processor: just the window to connect remotely. If I needed to do anything locally, however, I would have needed to either run a <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC0QFjAA&url=https%3A%2F%2Fgithub.com%2Fdnschneid%2Fcrouton&ei=2xxeUtmhE-LN2AW9hICICg&usg=AFQjCNEdu-2ZzUqc1TIW1G-15v2DYyNhZg&sig2=uQRkkS1WkKnY6IX9E3yRVw&bvm=bv.54176721,d.b2I">Crouton</a> script (which installs a Linux distribution, such as Ubuntu, to be run alongside Chrome OS with no need to dual boot) or install a <a href="http://chromeos-cr48.blogspot.com/2012/10/arm-chrubuntu-1204-alpha-1-now.html">ChrUbuntu</a> partition (requires a restart of the computer to boot into Ubuntu). Chrome OS, while based on Linux, does not allow installation of regular Linux applications without some severe modding.<br />
<br />
<h3>
Presentations</h3>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPEblKtLhQjWzbnrniliRxNZhlJtH25ayBLkLqwqJQbHWFQn_fy5Tjve0u1BnXXzZ8kYkYxwvYD_ogtt2ABulRJlkCMaKJVoaz0zm-035foyvXg2ovynJjvb8tXPK8k03uQv6-Q4YhumE/s1600/slidesshot.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPEblKtLhQjWzbnrniliRxNZhlJtH25ayBLkLqwqJQbHWFQn_fy5Tjve0u1BnXXzZ8kYkYxwvYD_ogtt2ABulRJlkCMaKJVoaz0zm-035foyvXg2ovynJjvb8tXPK8k03uQv6-Q4YhumE/s320/slidesshot.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Google Slides (image created with Google Drawings)</td></tr>
</tbody></table>
<br />
I ultimately presented my Master's defence in <a href="https://support.google.com/drive/answer/1685857?hl=en">Google Slides</a>, a free alternative to MS Office's Powerpoint. Not only does it automatically back up slides while editing, it can be used to present via a projector on any computer with the Chrome browser. It did not have many templates and some other flashier features found on Microsoft's paid competitor, but it was sufficient for a professional and reliable presentation. In terms of creating a conference poster, Google Slides has recently updated to allow for custom page sizing. I will report back on this when it comes to creating a poster for a conference I am attending in February.<br />
<br />
<h3>
Other</h3>
To create schematic diagrams, and to perform other image-editing functions, there were two programs that provided all the tools I needed. First, <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCwQFjAA&url=https%3A%2F%2Fsupport.google.com%2Fdrive%2Fanswer%2F177123%3Fhl%3Den&ei=fh5eUs_UHonV2AW0wICgBg&usg=AFQjCNEcvchGLIdgHOC6s1bji4a13i4vWQ&sig2=Bcc2RHMJTq8L5hfVZZxvHA&bvm=bv.54176721,d.b2I">Google Drawings</a> is a Paint-like web application which integrates well with Google Drive's free alternatives to MS Office. It works very well for combining high-resolution images (and keeping the resolution before downloading as a PDF). Second, the offline packaged app <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fpixlr-touch-up%2Fjklljiahjgoglchglekebfljnmbaleig%3Fhl%3Den-US&ei=ax5eUsHXAsfI2wWV5oDgDA&usg=AFQjCNHBm5-QdOBKKB7P9TxNslbXQhoKXA&sig2=hE36cNXovik-yPBizwKegA&bvm=bv.54176721,d.b2I">Pixlr Touch Up</a> proved useful for changing colour images to black-and-white, cropping, and other basic photo and image tools.<br />
<br />
Overall, the Chrome OS experiment was a success, and I did not regret being an early adopter (I don't know anyone else who currently uses Chrome OS as their main OS for science research). If you have any workflow-related questions, or wondered if this kind of system would work for you, please use the comments section below.Anonymoushttp://www.blogger.com/profile/09177051578810677099noreply@blogger.com0tag:blogger.com,1999:blog-9120692912259203854.post-3145820973786489932013-10-15T21:17:00.000-05:002013-10-15T21:17:09.695-05:00Introduction<blockquote class="tr_bq">
<i><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif; font-size: large;">Are you a Mac person or a PC person?</span></i></blockquote>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">This was the first technology-related question posed to me soon after starting work on my Master's Thesis at a new institution, two years ago. It's probably a common one for most people too. But it's a false dichotomy: it's a <a href="http://www.zdnet.com/so-where-does-linux-fit-into-the-post-pc-world-7000017335/">post-PC world</a>. A world where Microsoft hasn't yet successfully adjusted to <a href="http://www.nbcnews.com/technology/pcs-shipments-fall-sixth-straight-quarter-8C11363480">falling PC sales</a>. Apple isn't the sole alternative for science, education, and technology, as I will argue. This blog will hopefully offer thought-provoking alternatives, or advice to those looking for open, cheap (free?), flexible workflows in scientific research, technology, education, and beyond.</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">There have been many solutions to the bloated, high-expense Windows ecosystem. Such as an <a href="http://yieldthought.com/post/12638596672/setting-up-an-ipad-linode">iPad as a thin client</a>; that is, using a lightweight terminal (such as an iPad) to connect to a more powerful server or computer elsewhere. Or the typical fallback of Linux, with its various distributions <span style="background-color: white; color: #444444; font-size: x-small; line-height: 16px;">—</span> though we haven't yet seen the oft-hailed world-conquering new dawn of Ubuntu. My choice two years ago was halfway between these two: Google's <a href="http://www.google.com/intl/en/chrome/devices/features/">Chrome OS</a>. It's a lightweight distribution of Linux, but at first glance, it best resembles Windows 7. However, it couldn't be more different. HTML-based packaged apps (that work offline) combine with websites or 'extensions' loaded in the Chrome browser (that usually don't). You cannot install Windows or Mac apps, but this in part prevents the typical system slowdown you find in those OSs. Updates to Chrome OS occur automatically every six weeks or so, takes seconds to complete, and the HTML/Linux core obviates many of the security risks with Windows/Mac machines. And as everything is synced with the <a href="http://www.xero.com/us/small-business-guides/cloud-accounting/cloud-computing/">cloud</a>, you can wipe the machine (accidentally, deliberately), and everything can be returned safely at a later time simply by logging in. Best of all: laptops and boxes start at <b>$</b><b>199</b> (USD).</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://cdn.arstechnica.net/wp-content/uploads/2013/10/IMG_7616-640x431.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><img border="0" height="215" src="http://cdn.arstechnica.net/wp-content/uploads/2013/10/IMG_7616-640x431.jpg" width="320" /></span></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Photo: Andrew Cunningham, Ars Technica</span></td></tr>
</tbody></table>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br />Schools <a href="http://www.businessinsider.com/22-percent-us-school-districts-use-chromebooks-2013-10">are catching on</a>. The public are <a href="http://techreport.com/news/24131/249-chromebook-is-amazon-top-selling-laptop">enthusiastic</a>. But the key is that Chrome OS (and cloud-computing in general)<b> does not work for everyone</b>. This is especially so as a researcher in science. In fact, it doesn't always fully work for me (as I will articulate in a later post). Many of us need specialised (local) applications that may be constrained to just one or two OSs. Others require proprietary software such as Photoshop and cannot afford to skimp. On the other hand, there are some everyday apps that can be replaced with cloud-based (and usually free) alternatives. For example, Microsoft Office becomes Google Docs. A local setup of LaTeX (the <a href="http://www.latex-project.org/">typesetting language</a> used often in sciences and technology) becomes <a href="http://www.sharelatex.com/">ShareLaTeX</a>. By nature, these cloud-based alternatives are backed-up and frequently use auto-save, and become more reliable than traditional local applications. There's also the option of remote access via a Chrome window into your Windows, Mac, or Linux laptop. Finally, there are <a href="https://github.com/dnschneid/crouton">other</a> <a href="http://chromeos-cr48.blogspot.com/2012/04/chrubuntu-1204-now-with-double-bits.html">ways</a> of running typical distributions of Linux on a Chromebook if needs be.</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">But further specifics can wait until a future blog post. This blog will highlight, amongst other things that pop into my head, the benefits of <b>open-source</b>, or <b>free</b>, or <b>cloud</b>-based techniques in the sciences, technology fields, and education. It's driven by a few main points:</span><br />
<ul>
<li><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Academia shouldn't be spending so much on bloated, locked-in systems when it should pride itself in free, open alternatives, where available and appropriate.</span></li>
<li><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">The same can be said for school and university students, who are often encouraged to buy high-end laptops that some students simply don't need.</span></li>
<li><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Tips and tricks, and faster and more efficient workflows, are better shared between scientists and in other related fields.</span></li>
</ul>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Comments encouraged, and I hope to write something of interest!</span></div>
Anonymoushttp://www.blogger.com/profile/09177051578810677099noreply@blogger.com0