<?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>Mac Archives | Programming Zen</title>
	<atom:link href="https://programmingzen.com/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmingzen.com/tag/mac/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Thu, 12 Nov 2020 02:23:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">1397766</site>	<item>
		<title>Installing rbenv on Zsh (on MacOS)</title>
		<link>https://programmingzen.com/installing-rbenv-on-zsh-on-macos/</link>
					<comments>https://programmingzen.com/installing-rbenv-on-zsh-on-macos/#comments</comments>
		
		<dc:creator><![CDATA[Antonio Cangiano]]></dc:creator>
		<pubDate>Fri, 06 Sep 2019 17:44:37 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[rbenv]]></category>
		<category><![CDATA[rbenv zsh]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ruby-build]]></category>
		<category><![CDATA[zsh]]></category>
		<guid isPermaLink="false">https://programmingzen.com/?p=2197</guid>

					<description><![CDATA[<p>Recently, I updated my Mac to the latest beta of macOS. It&#x2019;s not a polished product yet, but overall it&#x2019;s been a fairly enjoyable operating system. One of the changes that will impact you as a developer is that Apple switched the default shell from Bash to Zsh (Z shell). You can, of course, change it back to Bash, but I don&#x2019;t mind Zsh (or Fish) so I decided to keep it. I needed to install htmlbeautifier, a gem used by some prettifier extensions within Visual Studio Code. If you try it with the default system installation of Ruby, you&#x2019;ll </p>
<p>The post <a href="https://programmingzen.com/installing-rbenv-on-zsh-on-macos/">Installing rbenv on Zsh (on MacOS)</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Recently, I updated my Mac to the latest beta of macOS. It&#8217;s not a polished product yet, but overall it&#8217;s been a fairly enjoyable operating system.</p>



<p>One of the changes that will impact you as a developer is that Apple switched the default shell from Bash to Zsh (Z shell). You can, of course, change it back to Bash, but I don&#8217;t mind Zsh (or Fish) so I decided to keep it.</p>



<p>I needed to install <g class="gr_ gr_4 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="4" data-gr-id="4">htmlbeautifier</g>, a gem used by some prettifier extensions within Visual Studio Code. If you try it with the default system installation of Ruby, you&#8217;ll get a permission error:</p>



<pre class="wp-block-code"><code>$ gem install htmlbeautifier
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.</code></pre>



<p>At this point, you might be tempted to simply <code>sudo</code> it, but that&#8217;s not a smart approach. Instead, I like to have multiple versions through an environment management system such as <a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://github.com/rbenv/rbenv" target="_blank">rbenv</a> or <a href="https://asdf-vm.com/#/" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">asdf</a>.</p>



<p>For this particular machine, I picked rbenv. Unfortunately, following the usual setup instructions didn&#8217;t really work, so I&#8217;m sharing the setup that worked for me here.</p>



<p>I updated brew and used it to install <g class="gr_ gr_4 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="4" data-gr-id="4">rbenv</g> and ruby-build. The latter allows us to select a series of Ruby versions to chose from.</p>



<pre class="wp-block-code"><code>$ brew update &amp;&amp; brew install rbenv ruby-build</code></pre>



<p>To ensure that rbenv is correctly loaded when we start a new shell, I had to edit a couple of files. I added the following line to <code>.zshenv</code>:</p>



<pre class="wp-block-code"><code>export PATH="$HOME/.rbenv/bin:$PATH"</code></pre>



<p>This adds gem-specific binaries to the PATH so that they are accessible to the shell without fully qualifying them with their path.</p>



<p>Then I added the following lines to <code>.zshrc</code>:</p>



<pre class="wp-block-code"><code>source $HOME/.zshenv
eval "$(rbenv init - zsh)"</code></pre>



<p>This ensures that the previous file is sourced when a new session is started and that rbenv is initialized for Zsh.</p>



<p>At this point, you&#8217;ll want to source <code>.zshrc</code> (or simply restart the terminal of your choice like iTerm2, instead):</p>



<pre class="wp-block-code"><code>$ source ~/.zshrc</code></pre>



<p>With rbenv ready to go, I installed the latest version of Ruby and set it as my global default for this machine.</p>



<p>You can determine the latest stable version by running:</p>



<pre class="wp-block-code"><code>$ rbenv install -l</code></pre>



<p>Go ahead and run:</p>



<pre class="wp-block-code"><code>$ rbenv install 2.7.2
$ rbenv global 2.7.2</code></pre>



<p>After restarting the terminal again, do a quick sanity test to ensure that the right version of Ruby is being selected:</p>



<pre class="wp-block-code"><code>$ ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) &#91;x86_64-darwin20]

$ ruby -e "puts (1..100).reduce(:+)"
5050</code></pre>



<p>Finally, you&#8217;ll be able to install htmlbeautifier, like I did:</p>



<pre class="wp-block-code"><code>$ gem install htmlbeautifier</code></pre>



<p>No need for <code>sudo</code>.</p>



<p>I hope this helps anyone who is trying to install rbenv on zsh. It did the trick for me.</p>
<p>The post <a href="https://programmingzen.com/installing-rbenv-on-zsh-on-macos/">Installing rbenv on Zsh (on MacOS)</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmingzen.com/installing-rbenv-on-zsh-on-macos/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2197</post-id>	</item>
		<item>
		<title>40 productivity apps I use on a regular basis</title>
		<link>https://programmingzen.com/productivity-applications/</link>
					<comments>https://programmingzen.com/productivity-applications/#comments</comments>
		
		<dc:creator><![CDATA[Antonio Cangiano]]></dc:creator>
		<pubDate>Thu, 20 Nov 2014 19:17:08 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[productivity]]></category>
		<guid isPermaLink="false">http://programmingzen.com/?p=1565</guid>

					<description><![CDATA[<p>I&#x2019;m always on the lookout for better tools to get things done and today I&#x2019;m going to share the applications I use and value the most for my productivity with you, as I feel these may be of equal benefit to you as well.  Please feel free to let me know about your choices in the comments below, including if there are others that really do the job for you. I upgrade my collection of tools regularly and am always game to give something new a spin. Productivity apps on my Mac Adium for communicating with my Gmail contacts. </p>
<p>The post <a href="https://programmingzen.com/productivity-applications/">40 productivity apps I use on a regular basis</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m always on the lookout for better tools to get things done and today I&#8217;m going to share the applications I use and value the most for my productivity with you, as I feel these may be of equal benefit to you as well. <a id="fnref:1" class="footnote" title="see footnote" href="#fn:1">[1]</a> Please feel free to let me know about your choices in the comments below, including if there are others that really do the job for you. I upgrade my collection of tools regularly and am always game to give something new a spin.</p>
<h2>Productivity apps on my Mac</h2>
<ul>
<li><a href="https://adium.im/">Adium</a> for communicating with my Gmail contacts.</li>
<li><a href="https://www.skype.com/en/">Skype</a> for computer-to-computer calls and the occasional video conference.</li>
<li><a href="https://www.google.com/+/learnmore/hangouts/">Google Hangouts</a> for actual phone calls, video calls, and screen sharing.</li>
<li><a href="https://www.sublimetext.com/">Sublime Text</a> for general editing of text or programming languages that don&#8217;t have a dedicated IDE like <a href="https://developer.apple.com/xcode/">Xcode</a> or <a href="https://www.jetbrains.com/ruby/index.html?utm_source=antoniocangiano.com&amp;utm_medium=Banner&amp;utm_campaign=RubyMine" rel="nofollow">RubyMine</a>.</li>
<li><a href="https://itunes.apple.com/us/app/byword/id420212497?mt=12&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">Byword</a> for writing posts in markdown.<a id="fnref:2" class="footnote" title="see footnote" href="#fn:2">[2]</a> I bought the in-app option to publish to blogs and Evernote, as it&#8217;s handy in this respect (particularly for the latter). Yes, I could easily use Sublime Text for this, but I prefer the distraction-free approach of Byword when writing larger amounts of content.</li>
<li>Apple Calendar synchronized with <a href="https://calendar.google.com">Google Calendar</a>.</li>
<li><a href="https://gmail.com">Gmail</a> on the web. I haven&#8217;t found a Mac email client I could love.</li>
<li><a href="https://drive.google.com">Google Drive/Docs</a> when sharing an article with my wife or friends, especially if I want to get feedback before publication. I also use it occasionally as a replacement for Excel/Form.</li>
<li><a href="https://db.tt/mQUzRFXP">Dropbox</a> to synchronize key files between all of my devices.</li>
<li><a href="https://www.evernote.com/referral/Registration.action?uid=46438&amp;sig=31171303984a5e3f0d0e45f52ee9e508" rel="nofollow">Evernote</a> for note taking and bookmarking. I resisted Evernote for a long time, then one day, it suddenly clicked for me. I also have the Evernote Web Clipper for Chrome.</li>
<li>The <a href="https://itunes.apple.com/us/app/doit.im/id533391459?mt=12&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">Doit.im</a> Mac app which I use for my very loose version of GTD (Getting Things Done). This is essentially my TODO list app/service.</li>
<li><a href="https://itunes.apple.com/us/app/reeder-2/id880001334?mt=12&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">Reeder 2</a> connected to my <a href="https://feedly.com/">Feedly</a> account, to stay abreast of noteworthy posts and news.</li>
<li><a href="https://itunes.apple.com/us/app/tweetdeck-by-twitter/id485812721?mt=12&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">TweetDeck</a> to handle a few social media accounts.</li>
<li><a href="https://iterm2.com/">iTerm2</a> as a replacement of the stock Terminal app.</li>
<li><a href="https://www.marketsamurai.com/c/Antonio">Market Samurai</a> for SEO and online marketing research.</li>
<li><a href="https://itunes.apple.com/us/app/screenflow-5/id917790450?mt=12&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">Screenflow</a> for screencasting.</li>
<li>Photoshop and Lightroom for photo editing and handling.</li>
<li>iMovie for the occasional video editing not related to screencasting.</li>
<li><a href="https://www.shareasale.com/r.cfm?b=167384&#038;u=412005&#038;m=19222&#038;urllink=&#038;afftrack=" rel="nofollow">1Password</a> synchronized via Dropbox so that I only ever have to remember one password.</li>
<li><a href="https://evernote.com/skitch/">Skitch</a> for screen grabbing and quick annotations. I particularly like the ability to share the screenshot with one click (when it works), and its integration with Evernote (being made by the same company).</li>
<li><a href="https://itunes.apple.com/us/app/dragondrop/id499148234?mt=12&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">DragonDrop</a>, a Mac utility that allows you to very quickly copy/move a series of files from one place on your filesystem to another.</li>
<li><a href="https://www.pushbullet.com/">Pushbullet</a> to send and receive SMS from my computer as well as handling my Android phone notifications.</li>
<li>Keynote for the occasional presentation that is not work related (at work I use the Microsoft Powerpoint, which is provided to employees, or the open source equivalent of it).</li>
<li><a href="https://ipython.org/">iPython</a> as my calculator and quick data analysis tool.</li>
<li><a href="https://www.teamviewer.com/en/index.aspx">TeamViewer</a> to remotely login into my other laptops.</li>
<li><a href="https://www.rescuetime.com/rp/netrich" rel="nofollow">RescueTime</a>, a recent addition, to keep track of my time, help with accountability, and generally motivating me to do more.</li>
</ul>
<h2>Productivity apps on my Android phone</h2>
<p>On my giant smartphone (the Samsung Galaxy Note3) I use most of the same services and apps, provided an app for Android exists. So you&#8217;ll see me use Evernote, Dropbox, Google Drive, Hangouts, Doit.im, et cetera, there as well.</p>
<p><img data-recalc-dims="1" fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-1566" src="https://i0.wp.com/programmingzen.com/wp-content/uploads/2014/11/android-apps.jpg?resize=550%2C978&#038;ssl=1" alt="My Android home screen" width="550" height="978" srcset="https://i0.wp.com/programmingzen.com/wp-content/uploads/2014/11/android-apps.jpg?w=550&amp;ssl=1 550w, https://i0.wp.com/programmingzen.com/wp-content/uploads/2014/11/android-apps.jpg?resize=168%2C300&amp;ssl=1 168w" sizes="(max-width: 550px) 100vw, 550px" /></p>
<p>The main noteworthy mentions are:</p>
<ul>
<li><a href="https://play.google.com/store/apps/details?id=com.google.android.gm">Gmail</a> as I find the app to be much better than the mobile site version.<a id="fnref:3" class="footnote" title="see footnote" href="#fn:3">[3]</a></li>
<li><a href="https://play.google.com/store/apps/details?id=com.twentyfivesquares.press">Press</a> as my feedreader client for Feedly, instead of Reeder.</li>
<li><a href="https://play.google.com/store/apps/details?id=org.withouthat.acalendarplus">aCalendar+</a> as my Google Calendar client, instead of Calendar for Mac.</li>
<li><a href="https://play.google.com/store/apps/details?id=org.buffer.android">buffer</a> to schedule social media posts (on my Mac I also use buffer, but I do so from Chrome).</li>
<li><a href="https://play.google.com/store/apps/details?id=au.com.shiftyjelly.pocketcasts">Pocket casts</a> to catch up with interesting podcasts such as <a href="https://askaltucher.com/">Ask Altucher</a>, <a href="https://fourhourworkweek.com/category/the-tim-ferriss-show/">The Tim Ferriss Show</a>, <a href="https://www.tropicalmba.com/">Tropical MBA</a>, and a dozen others.</li>
</ul>
<p>Not everything on the Mac has a worthy equivalent on Android, so I don&#8217;t have a text editor to recommend here for example. On phones, I find that Google Drive, or any of the built-in editors capable of editing files that are stored in Dropbox, to be okay in a pinch.</p>
<h2>Productivity apps for iOS</h2>
<p>As I mentioned in <a href="https://programmingzen.com/2014/11/13/choosing-a-tablet-ipad-air-2-vs-nexus-9-vs-samsung-galaxy-tab-s/">a previous post</a>, I recently got a new iPad Air 2. It&#8217;s an entertainment device but I try to use it for productivity tasks as well. This will be the case all the more so once I get my hands on a decent keyboard case for it.</p>
<p>Much like my phone, where corresponding Mac apps exist for iOS, I use them. So Evernote, Dropbox, 1Password, and even Byword, are all installed there. One exception would be an RSS reader. Technically there is Reeder for the iPad, but I have been using the free version of <a href="https://itunes.apple.com/us/app/feeddler-rss-reader-2/id919242388?mt=8&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">FeeddlerRSS</a> so far and find that it works well enough.</p>
<p>On top of the more or less cross-platform list, I have a few educational apps which are actually useful thanks to the iPad&#8217;s screen size:</p>
<ul>
<li><a href="https://click.linksynergy.com/fs-bin/click?id=L55SxWXSMU0&amp;offerid=323058.81&amp;type=3&amp;subid=0" rel="nofollow">Udemy</a> <a id="fnref:4" class="footnote" title="see footnote" href="#fn:4">[4]</a></li>
<li><a href="https://mbsy.co/7BWnn" rel="nofollow">Code School</a></li>
<li><a href="https://itunes.apple.com/us/app/kindle-read-books-ebooks-magazines/id302584613?mt=8&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">Kindle</a></li>
<li><a href="https://itunes.apple.com/us/app/safari-queue/id881697395?mt=8&amp;uo=4&amp;at=1l3vtkL" rel="nofollow">Safari Queue</a> <a id="fnref:5" class="footnote" title="see footnote" href="#fn:5">[5]</a></li>
</ul>
<p>There are more applications, of course, but these are the ones that I use frequently and feel are worth mentioning. That said, this list is never static. For example, just a couple of days ago, while on Skype with my friend <a href="https://betterexplained.com/about/">Kalid</a>, he mentioned <a href="https://www.beeminder.com">Beeminder</a> to me, praising its accountability and goal tracking abilities. I had already come across it before, but overlooked it. Kalid swears by it, so I&#8217;m going to give it a shot.</p>
<p>Let me know what you use and would recommend. I love to check out cool applications and refine my toolkit and workflow as needed.</p>
<div class="footnotes">
<hr />
<ol>
<li id="fn:1">Some would argue that quite a few of these apps aren&#8217;t strictly productivity apps per se. I willfully acknowledge that, but I still consider them to be part of my workflow. Also, the focus of this post is not on programming tools. <a class="reversefootnote" title="return to article" href="#fnref:1"> ^</a></li>
<li id="fn:2">Case in point, I wrote this very post with Byword for Mac. <a class="reversefootnote" title="return to article" href="#fnref:2"> ^</a></li>
<li id="fn:3">Technically I have the Inbox app too. I&#8217;m not overly impressed so far however. <a class="reversefootnote" title="return to article" href="#fnref:3"> ^</a></li>
<li id="fn:4">At the time of writing Udemy has <a href="https://click.linksynergy.com/fs-bin/click?id=L55SxWXSMU0&amp;offerid=323058.133&amp;type=3&amp;subid=0" rel="nofollow">a great sale</a> going for nine days. They&#8217;re starting out at $10 and will increase the price each day by a dollar. After the sale is over, prices will revert back to normal. <a class="reversefootnote" title="return to article" href="#fnref:4"> ^</a></li>
<li id="fn:5">Which is the iOS client for Safari Books. This app just came out so I don&#8217;t have a ton of experience with it, but it looks promising. <a class="reversefootnote" title="return to article" href="#fnref:5"> ^</a></li>
</ol>
</div>
<p>The post <a href="https://programmingzen.com/productivity-applications/">40 productivity apps I use on a regular basis</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmingzen.com/productivity-applications/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1565</post-id>	</item>
	</channel>
</rss>
