<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Alex Zeitler]]></title>
  <link href="http://AlexZeitler.com/atom.xml" rel="self"/>
  <link href="http://AlexZeitler.com/"/>
  <updated>2013-02-22T21:15:04+01:00</updated>
  <id>http://AlexZeitler.com/</id>
  <author>
    <name><![CDATA[Alex Zeitler]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Ctrl+Tab to switch between Windows in OS X Application]]></title>
    <link href="http://AlexZeitler.com/blog/2013/02/22/ctrl-plus-tab-to-switch-between-windows-in-os-x-application/"/>
    <updated>2013-02-22T20:44:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2013/02/22/ctrl-plus-tab-to-switch-between-windows-in-os-x-application</id>
    <content type="html"><![CDATA[<p>If your OS background is Windows, you&#8217;re used to use CTRL+TAB to switch between the Windows inside an application. In OS X this doesn&#8217;t work and some people even suggest to buy third party tools. But there&#8217;s a simple solution inside the OS X Keyboard settings:</p>

<ul>
<li>Open Keyboard settings</li>
<li>Select &#8220;Keyboard &amp; Text Input&#8221;</li>
<li>Find &#8220;Move focus to next window&#8221;</li>
<li>Double click the current keyboard shortcut</li>
<li>Change it by hitting CTRL+TAB on your keyboard</li>
</ul>


<p><img src="http://AlexZeitler.com/images/ctrltabonosx.png" alt="image" /></p>

<p>Btw: CTRL+TAB doesn&#8217;t work in Sublime. You have to edit your .sublime-keymap (SHIFT+CMD+P -> &#8220;Key Bindings - User&#8221;) and paste this:</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>[
</span><span class='line'>   { "keys": ["ctrl+tab"], "command": "next_view" },
</span><span class='line'>   { "keys": ["ctrl+shift+tab"], "command": "prev_view" }
</span><span class='line'>]</span></code></pre></td></tr></table></div></figure>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Restarting node.js server automatically when source code changes]]></title>
    <link href="http://AlexZeitler.com/blog/2013/01/21/restarting-node-dot-js-server-automatically-when-source-code-changes/"/>
    <updated>2013-01-21T23:46:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2013/01/21/restarting-node-dot-js-server-automatically-when-source-code-changes</id>
    <content type="html"><![CDATA[<p>During development, you&#8217;re constantly changing your source files. Normally that would require you to call something like</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$ node server.js</span></code></pre></td></tr></table></div></figure>


<p>everytime you change one of your source files.</p>

<p>A simple workaround is to</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$ sudo npm install supervisor -g</span></code></pre></td></tr></table></div></figure>


<p>Now you run</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$ supervisor server.js</span></code></pre></td></tr></table></div></figure>


<p>Only once and everytime your source code changes, your development server gets restarted by supervisor automatically.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Convert SVG to PNG on OS X]]></title>
    <link href="http://AlexZeitler.com/blog/2013/01/21/convert-svg-to-png-on-os-x/"/>
    <updated>2013-01-21T23:33:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2013/01/21/convert-svg-to-png-on-os-x</id>
    <content type="html"><![CDATA[<p>If you need to convert .svg files to .png, there&#8217;s a handy command line tool that comes with OS X: qlmanage.</p>

<p>To convert my.svg file to my.png having a width of 1000px just run</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>qlmanage -t -s 1000 -o . my.svg</span></code></pre></td></tr></table></div></figure>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[git push prompts for UserName and Password on GitHub]]></title>
    <link href="http://AlexZeitler.com/blog/2012/02/07/git-push-prompts-for-username-and-password-on-github/"/>
    <updated>2012-02-07T22:33:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2012/02/07/git-push-prompts-for-username-and-password-on-github</id>
    <content type="html"><![CDATA[<p>If <code>git push origin master</code> prompts for you UserName when <code>&lt;origin&gt;</code> is on GitHub, you may need to fix your <code>origin</code> url, e.g.</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>git remote set-url origin git://github.com/AlexZeitler/node-hands-on.git</span></code></pre></td></tr></table></div></figure>


<p>The correct url is the GitHub url with read/write access (you get it if you click the SSH button):
<img src="https://github.com/AlexZeitler/alexzeitler.github.com/raw/source/images/readwriteurl.png" alt="image" /></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[My OS X findings]]></title>
    <link href="http://AlexZeitler.com/blog/2012/02/05/my-os-x-findings/"/>
    <updated>2012-02-05T20:11:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2012/02/05/my-os-x-findings</id>
    <content type="html"><![CDATA[<p>As I already told you, I&#8217;m pretty new to the OS X platform and I&#8217;m always looking for tools to get the daily work done.</p>

<p>The following list shows you the tools I&#8217;ve found or that have been recommended to me (this list will be updated from time to time, so you can bookmark it ;-))</p>

<h3>development</h3>

<ul>
<li>Web Debugger (something Fiddler for Windows)

<ul>
<li><a href="http://www.charlesproxy.com/">Charles</a></li>
<li><a href="http://hurl.it">hurl.it</a></li>
</ul>
</li>
<li>SCM

<ul>
<li><a href="http://code.google.com/p/git-osx-installer/downloads/list?can=3">Git</a></li>
<li><a href="http://gitx.frim.nl/">GitX</a></li>
<li><a href="http://www.sourcegear.com/diffmerge/">DiffMerge</a></li>
</ul>
</li>
</ul>


<h3>editor</h3>

<ul>
<li><a href="http://www.jetbrains.com/webstorm/">WebStorm</a> (JavaScript, nodejs, Web Development in general)</li>
<li><a href="http://www.sublimetext.com/">SublimeText</a> (Textfiles etc.)</li>
<li><a href="http://mouapp.com/">Mou App</a> (MarkDown editor)</li>
</ul>


<h3>launcher</h3>

<ul>
<li><a href="http://www.alfredapp.com/">Alfred</a></li>
</ul>


<h3>MongoDb</h3>

<ul>
<li><a href="http://mongohub.todayclose.com/">MongoHub</a> A MongoDb GUI for OS X</li>
</ul>


<h3>productivity</h3>

<ul>
<li><a href="dropbox.com">Dropbox</a></li>
<li><a href="https://www.evernote.com/">Evernote</a></li>
<li><a href="http://grumlapp.de">Gruml</a>, RSS Reader with Google Reader integration</li>
</ul>


<h3>shell</h3>

<ul>
<li><a href="https://github.com/robbyrussell/oh-my-zsh">OH MY ZSH</a></li>
</ul>


<h3>usability</h3>

<ul>
<li><a href="http://code.google.com/p/shiftit/">Shift it</a> Windows 7 like Window docking (left/right etc.)</li>
</ul>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[rake generate for octopress fails with invalid byte sequence in US-ASCII (ArgumentError) ]]></title>
    <link href="http://AlexZeitler.com/blog/2012/01/15/rake-generate-for-octopress-fails-with-invalid-byte-sequence-in-us-ascii-argumenterror/"/>
    <updated>2012-01-15T23:53:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2012/01/15/rake-generate-for-octopress-fails-with-invalid-byte-sequence-in-us-ascii-argumenterror</id>
    <content type="html"><![CDATA[<p>If you&#8217;re receiving an error similar to this</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
<span class='line-number'>12</span>
<span class='line-number'>13</span>
<span class='line-number'>14</span>
<span class='line-number'>15</span>
<span class='line-number'>16</span>
<span class='line-number'>17</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>[~/Documents/alexzeitler.com]$ rake generate         [source][ruby-1.9.2-p290] 
</span><span class='line'>## Generating Site with Jekyll
</span><span class='line'>unchanged sass/screen.scss
</span><span class='line'>Configuration from /Users/alex/Documents/alexzeitler.com/_config.yml
</span><span class='line'>Building site: source -&gt; public
</span><span class='line'>/Users/alex/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/convertible.rb:29:in `read_yaml': invalid byte sequence in US-ASCII (ArgumentError)
</span><span class='line'>  from /Users/alex/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/post.rb:39:in `initialize'
</span><span class='line'>  from /Users/alex/Documents/alexzeitler.com/plugins/preview_unpublished.rb:23:in `new'
</span><span class='line'>  from /Users/alex/Documents/alexzeitler.com/plugins/preview_unpublished.rb:23:in `block in read_posts'
</span><span class='line'>  from /Users/alex/Documents/alexzeitler.com/plugins/preview_unpublished.rb:21:in `each'
</span><span class='line'>  from /Users/alex/Documents/alexzeitler.com/plugins/preview_unpublished.rb:21:in `read_posts'
</span><span class='line'>  from /Users/alex/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:128:in `read_directories'
</span><span class='line'>  from /Users/alex/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:98:in `read'
</span><span class='line'>  from /Users/alex/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:38:in `process'
</span><span class='line'>  from /Users/alex/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:250:in `&lt;top (required)&gt;'
</span><span class='line'>  from /Users/alex/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `load'
</span><span class='line'>  from /Users/alex/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `&lt;main&gt;'</span></code></pre></td></tr></table></div></figure>


<p>when running <code>rake generate</code> for octopress, add this to your <code>.profile</code> or <code>.zshrc</code> etc.</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>LANG=en_US.UTF-8
</span><span class='line'>LC_ALL=en_US.UTF-8</span></code></pre></td></tr></table></div></figure>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[This application requires a version of Adobe AIR which cannot be found]]></title>
    <link href="http://AlexZeitler.com/blog/2012/01/15/this-application-requires-a-version-of-adobe-air-which-cannot-be-found/"/>
    <updated>2012-01-15T22:57:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2012/01/15/this-application-requires-a-version-of-adobe-air-which-cannot-be-found</id>
    <content type="html"><![CDATA[<p>If you&#8217;re receiving this message, when trying to install Adobe Air on OS X:</p>

<p><img src="https://github.com/AlexZeitler/alexzeitler.github.com/raw/source/source/images/applicationrequiresaversionofadobeair.png" alt="image" /></p>

<p>You&#8217;ll need to disable automatic graphics switching in the Energy Saver settings:</p>

<p><img src="https://github.com/AlexZeitler/alexzeitler.github.com/raw/source/source/images/automaticgraphicsswitchingoff.png" alt="image" /></p>

<p>If you experience problems with an Air based application (like Balsamiq Mockups) during runtime, you should try this also…</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Permission denied (publickey) when trying to access repository on GitHub]]></title>
    <link href="http://AlexZeitler.com/blog/2012/01/13/permission-denied-publickey-when-trying-to-access-repository-on-github/"/>
    <updated>2012-01-13T18:10:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2012/01/13/permission-denied-publickey-when-trying-to-access-repository-on-github</id>
    <content type="html"><![CDATA[<p>If you already own a GitHub account and try to clone from or push to a repository on GitHub you may receive a</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>Permission denied (publickey)</span></code></pre></td></tr></table></div></figure>


<p>error.</p>

<p>This may be the case if you have set up a new machine without having installed your existing ssh key properly.</p>

<p>To do so, just copy your private key to your <code>~/.ssh</code> directory and call:</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$ ssh-add ~/.ssh/id_rsa</span></code></pre></td></tr></table></div></figure>


<p></p>

<p>whereas <code>id_rsa</code> is the name of your ssh key.</p>

<p>Another reason why you fail, may be a missing <code>.config</code> file in your <code>~/.ssh</code> folder.</p>

<p>If this is the case, just create it and paste the following into it:</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>Host github.com
</span><span class='line'>  User git
</span><span class='line'>  Port 22
</span><span class='line'>  Hostname github.com
</span><span class='line'>  IdentityFile ~/.ssh/id_rsa
</span><span class='line'>  TCPKeepAlive yes
</span><span class='line'>  IdentitiesOnly yes</span></code></pre></td></tr></table></div></figure>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Hello (from a new) World]]></title>
    <link href="http://AlexZeitler.com/blog/2012/01/12/hello-from-a-new-world/"/>
    <updated>2012-01-12T19:24:00+01:00</updated>
    <id>http://AlexZeitler.com/blog/2012/01/12/hello-from-a-new-world</id>
    <content type="html"><![CDATA[<h2>Yet another blog?</h2>

<p>If you know my blog <a href="http://blog.alexonasp.net">Alex on ASP.NET</a>, you may ask why I started blogging on another Url and a different <a href="http://www.octopress.org">blog engine</a>?</p>

<p>As you may have noticed on <a href="http://twitter.com/AlexZeitler">Twitter</a>, besides ASP.NET MVC and WCF Web API, I started developing mobile-first and single page web applications using HTML5, CSS3 and Javascript a few month ago.</p>

<p>Most of the Javascript and CSS3 frameworks (not least node.js) have their background in the OSS community which is mainly focused on Linux and OS X.</p>

<p>To have that technology stack available just in time (and sadly often long before being available on the Windows stack) for my <a href="http://pdmlab.com">daily work</a>, I decided to step out of the comfort zone / think outside the box (name it whatever you want) and use both platforms on a daily basis also.</p>

<h2>What to expect?</h2>

<p>As I&#8217;m pretty new to both OS X and Linux (read: Ubuntu), I&#8217;ll post about my experiences during my way to the &#8220;x world&#8221; (not least as a documentation for myself if I forgot about something I already solved).</p>

<p>That means I&#8217;ll document which languages, tools and frameworks I&#8217;ll use, what I (dis)like on the &#8220;new&#8221; platforms etc.</p>

<h2>Will you leave .NET / the Microsoft stack?</h2>

<p>Short answer: No.</p>

<p>Long answer: World is changing fast and a developers (geeks) world even faster and as much as I like ASP.NET MVC and Web API: it&#8217;s simply on the server side and much things nowadays happen solely on the client (read: client == browser != classic desktop).</p>
]]></content>
  </entry>
  
</feed>
