<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://deimel.de/feed.xml" rel="self" type="application/atom+xml" /><link href="https://deimel.de/" rel="alternate" type="text/html" /><updated>2021-03-30T09:44:30+00:00</updated><id>https://deimel.de/feed.xml</id><title type="html">Michael Deimels Blog</title><subtitle>No comment</subtitle><entry><title type="html">My blog goes on</title><link href="https://deimel.de/2020/11/17/blog-reanimate.html" rel="alternate" type="text/html" title="My blog goes on" /><published>2020-11-17T00:00:00+00:00</published><updated>2020-11-17T00:00:00+00:00</updated><id>https://deimel.de/2020/11/17/blog-reanimate</id><content type="html" xml:base="https://deimel.de/2020/11/17/blog-reanimate.html">&lt;h1 id=&quot;my-blog-goes-on&quot;&gt;My blog goes on&lt;/h1&gt;

&lt;p&gt;After this blog had a longer hibernation, I will try to write something more often.&lt;/p&gt;

&lt;p&gt;One of my upcoming post will some insides from one of my private technical projects #covid-project.&lt;/p&gt;

&lt;p&gt;Stay tuned…&lt;/p&gt;</content><author><name></name></author><summary type="html">My blog goes on</summary></entry><entry><title type="html">Migrate a Rails Application from ruby 1.9.3 to ruby 2.2</title><link href="https://deimel.de/2017/12/07/migrate-rails-app-from-ruby19-to-ruby2-2.html" rel="alternate" type="text/html" title="Migrate a Rails Application from ruby 1.9.3 to ruby 2.2" /><published>2017-12-07T00:00:00+00:00</published><updated>2017-12-07T00:00:00+00:00</updated><id>https://deimel.de/2017/12/07/migrate-rails-app-from-ruby19-to-ruby2-2</id><content type="html" xml:base="https://deimel.de/2017/12/07/migrate-rails-app-from-ruby19-to-ruby2-2.html">&lt;h1 id=&quot;migrate-a-rails-application-from-ruby-193-to-ruby-22&quot;&gt;Migrate a Rails Application from ruby 1.9.3 to ruby 2.2&lt;/h1&gt;

&lt;p&gt;As first step to migrate all Rails 3 application to 5.1, we moved
from ruby 1.9.3 to ruby 2.2.&lt;/p&gt;

&lt;h2 id=&quot;problems&quot;&gt;Problems&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;YAML serializer was moved from Syck to Psych. There are some issues with utf-8 encodings.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;script to migrate to Psych:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  require &quot;ruby-progressbar&quot;
  require &quot;syck&quot;

  def yaml_field_to_psych(model, field)
    id = model.id
    sql = &quot;Select #{field} from #{model.class.table_name} where id = #{id}&quot;
    result = ActiveRecord::Base.connection.execute(sql)

    yaml = result.first.first
    if yaml.present?
      syck_yaml = Syck.load(yaml)
      psych_yaml = Psych.dump(syck_yaml)
      ActiveRecord::Base.connection.execute(&quot;update #{model.class.table_name} set #{field}= #{ActiveRecord::Base.sanitize(psych_yaml)} where id = #{id}&quot;)
      true
    else
      false
    end
  rescue =&amp;gt; e
    puts &quot;Error: #{e} in #{model.class.name} field:#{field} id:#{id}&quot;
  end

  puts &quot;start fixing yaml fields&quot;
  fixed = 0
  total = 0

  cnt = MyModel.count
  total += cnt
  progress_bar = ProgressBar.create(title: &quot;fix MyModel&quot;, total: cnt, format: &quot;%t %c/%C: |%B| %E&quot;)
  MyModel.find_each do |obj|
    fixed += 1 if yaml_field_to_psych(obj, :my_yaml_field)
    progress_bar.increment
  end

  puts &quot;fixed:#{fixed}/#{total}&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;iconv&lt;/code&gt; must be added to the Gemfile&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test-unit&lt;/code&gt;  must be added to the Gemfile&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;with ruby2.2 you get warnings when you have duplicate keys in a Hash&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;improvments&quot;&gt;Improvments&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;the Application uses only have of the memory that leads to a overall performance&lt;/li&gt;
&lt;/ul&gt;</content><author><name></name></author><summary type="html">Migrate a Rails Application from ruby 1.9.3 to ruby 2.2</summary></entry><entry><title type="html">Make it OpenSource</title><link href="https://deimel.de/2017/11/03/make-it-open-source.html" rel="alternate" type="text/html" title="Make it OpenSource" /><published>2017-11-03T00:00:00+00:00</published><updated>2017-11-03T00:00:00+00:00</updated><id>https://deimel.de/2017/11/03/make-it-open-source</id><content type="html" xml:base="https://deimel.de/2017/11/03/make-it-open-source.html">&lt;h1 id=&quot;make-it-opensource&quot;&gt;Make it OpenSource&lt;/h1&gt;

&lt;p&gt;this is a small checklist for open sourcing a project on Github&lt;/p&gt;

&lt;h2 id=&quot;steps&quot;&gt;Steps&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;Make your github project public.
    &lt;ul&gt;
      &lt;li&gt;go to the &lt;em&gt;Settings&lt;/em&gt; page&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Create a meaningfully README
  &lt;a href=&quot;https://gist.github.com/stereosupersonic/00be9ab2a0bc0accaf68aade53815dbf&quot;&gt;Here is a template&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Choose a license.
    &lt;ul&gt;
      &lt;li&gt;create a file called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;LICENSE&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;choose a license type like the MIT License and put it there&lt;/li&gt;
      &lt;li&gt;add your name and the date&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Setup Travis
    &lt;ul&gt;
      &lt;li&gt;login to travis and enable your project&lt;/li&gt;
      &lt;li&gt;add the build info on top of your README
        &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  [Status](https://travis-ci.org/YOURNAME/PROJECT.svg)](https://travis-ci.org/YOURNAME/PROJECT)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;</content><author><name></name></author><summary type="html">Make it OpenSource</summary></entry><entry><title type="html">Codewars Katas</title><link href="https://deimel.de/2017/10/24/create-codewars-kata.html" rel="alternate" type="text/html" title="Codewars Katas" /><published>2017-10-24T00:00:00+00:00</published><updated>2017-10-24T00:00:00+00:00</updated><id>https://deimel.de/2017/10/24/create-codewars-kata</id><content type="html" xml:base="https://deimel.de/2017/10/24/create-codewars-kata.html">&lt;h1 id=&quot;codewars-katas&quot;&gt;Codewars Katas&lt;/h1&gt;

&lt;p&gt;Sometimes I challenge my self and try one of the code katas from &lt;a href=&quot;http://www.codewars.com/&quot;&gt;coderwars&lt;/a&gt;. I’ll try to finish it within one &lt;a href=&quot;https://en.wikipedia.org/wiki/Pomodoro_Technique&quot;&gt;pomodoro&lt;/a&gt; means 25 minutes. The setup on my local machine looks like this:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;go to my katas dir and create a new folder&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;inside the folder, i create one lib and one spec folder&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;add a &lt;em&gt;README.md&lt;/em&gt; with the link to the kata&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# Two old ages

http://www.codewars.com/kata/two-oldest-ages-1/train/ruby
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;add a Gemfile:&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;source 'http://rubygems.org'

gem &quot;guard-rspec&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;then init the project&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle install
guard init
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;create a function class under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;lib/&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;class TwoOldAges
  def self.call(numbers)
    Array(numbers).sort.last(2)
  end
end
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;and spec inside &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spec/&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;require_relative '../lib/two_old_ages'

RSpec.describe &quot;TwoOldAges&quot; do

  it &quot;test something&quot; do
    expect(TwoOldAges.call([1,5])).to eq([1,5])
  end

  ....
end

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;start Guard with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle exec guard&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;hapy-hacking&quot;&gt;Hapy Hacking!!!&lt;/h2&gt;</content><author><name></name></author><summary type="html">Codewars Katas</summary></entry><entry><title type="html">Github Flavored Markdown</title><link href="https://deimel.de/2014/11/28/github-flavored-markdown.html" rel="alternate" type="text/html" title="Github Flavored Markdown" /><published>2014-11-28T00:00:00+00:00</published><updated>2014-11-28T00:00:00+00:00</updated><id>https://deimel.de/2014/11/28/github-flavored-markdown</id><content type="html" xml:base="https://deimel.de/2014/11/28/github-flavored-markdown.html">&lt;h1 id=&quot;github-flavored-markdown&quot;&gt;Github Flavored Markdown&lt;/h1&gt;

&lt;p class=&quot;meta&quot;&gt;28. November 2014 - Wartenberg&lt;/p&gt;

&lt;h2 id=&quot;config&quot;&gt;config&lt;/h2&gt;

&lt;p&gt;before you can use the update github-flavored-markdown
you must update &lt;em&gt;_config.yml&lt;/em&gt; with:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;markdown&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;redcarpet&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;redcarpet&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;extensions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;no_intra_emphasis&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt;
               &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;fenced_code_blocks&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt;
               &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;autolink&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt;
               &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;tables&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt;
               &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;highlight&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt;
               &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;with_toc_data&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt;
               &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;strikethrough&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;syntax&quot;&gt;Syntax&lt;/h1&gt;

&lt;h2 id=&quot;auto-link&quot;&gt;auto link&lt;/h2&gt;

&lt;p&gt;http://example.com&lt;/p&gt;

&lt;h2 id=&quot;highlighted&quot;&gt;highlighted&lt;/h2&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is ==highlighted==
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is ==highlighted==&lt;/p&gt;

&lt;h2 id=&quot;syntax-highlighted&quot;&gt;Syntax highlighted&lt;/h2&gt;

&lt;p&gt;ruby&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'redcarpet'&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;markdown&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Redcarpet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Hello World!&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;markdown&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;to_html&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;sql&lt;/p&gt;

&lt;div class=&quot;language-sql highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;FROM&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mytable&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;WHERE&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;strikethrough&quot;&gt;Strikethrough&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;this is ~~good~~ bad
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;this is &lt;del&gt;good&lt;/del&gt; bad&lt;/p&gt;

&lt;h2 id=&quot;more&quot;&gt;more&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;**Everyone _must_ attend the meeting at 5 o'clock today.**
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Everyone &lt;em&gt;must&lt;/em&gt; attend the meeting at 5 o’clock today.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://help.github.com/articles/github-flavored-markdown&quot;&gt;more info about GitHub Markdown&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://help.github.com/articles/markdown-basics/&quot;&gt;Markdown&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><summary type="html">Github Flavored Markdown</summary></entry><entry><title type="html">Create a blog post</title><link href="https://deimel.de/2014/11/27/create-a-blog-post.html" rel="alternate" type="text/html" title="Create a blog post" /><published>2014-11-27T00:00:00+00:00</published><updated>2014-11-27T00:00:00+00:00</updated><id>https://deimel.de/2014/11/27/create-a-blog-post</id><content type="html" xml:base="https://deimel.de/2014/11/27/create-a-blog-post.html">&lt;h1 id=&quot;create-a-blog-post&quot;&gt;Create a blog post&lt;/h1&gt;

&lt;p class=&quot;meta&quot;&gt;27. November 2014 - Wartenberg&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;create a new file under _posts format: YYYY-MM-DD-my-title.md&lt;/li&gt;
  &lt;li&gt;add a header in this new file like:&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;---
layout: post
title: My Title
---

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;add content with &lt;a href=&quot;/2014/11/28/github-flavored-markdown.html&quot;&gt;Markdown&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;start preview server bundle exec jekyll serve –watch&lt;/li&gt;
  &lt;li&gt;open http://0.0.0.0:4000/&lt;/li&gt;
  &lt;li&gt;deploy&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git commit &lt;span class=&quot;s2&quot;&gt;&quot;my new blog post&quot;&lt;/span&gt;
git push origin master&lt;span class=&quot;s2&quot;&gt;&quot;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href=&quot;https://guides.github.com/features/mastering-markdown/&quot;&gt;Mastering Markdown&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://help.github.com/articles/markdown-basics&quot;&gt;Markdown Help&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://help.github.com/articles/github-flavored-markdown&quot;&gt;GitHub Markdown&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://help.github.com/articles/writing-on-github&quot;&gt;Writing on GitHub&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><summary type="html">Create a blog post</summary></entry><entry><title type="html">Blog Setup</title><link href="https://deimel.de/2012/03/01/setup-this-blog.html" rel="alternate" type="text/html" title="Blog Setup" /><published>2012-03-01T00:00:00+00:00</published><updated>2012-03-01T00:00:00+00:00</updated><id>https://deimel.de/2012/03/01/setup-this-blog</id><content type="html" xml:base="https://deimel.de/2012/03/01/setup-this-blog.html">&lt;h1 id=&quot;blog-setup&quot;&gt;Blog Setup&lt;/h1&gt;

&lt;p class=&quot;meta&quot;&gt;01 März 2012 - Wartenberg&lt;/p&gt;

&lt;p&gt;Nach dem ich schon länger nach einer einfachen Lösung für’s bloggen gesucht habe,
bin ich zufällig auf die Kombination von Github-Pages und &lt;a href=&quot;http://github.com/mojombo/jekyll&quot;&gt;Jekyll&lt;/a&gt; gestoßen.&lt;/p&gt;

&lt;p&gt;Hier beschreibe ich nun wie ich die erste Version meiner Seite zum Laufen gebracht habe.&lt;/p&gt;

&lt;h2 id=&quot;github-page-eirichten&quot;&gt;Github Page eirichten&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;ein Gihub Repository mit &lt;strong&gt;Username&lt;/strong&gt;.github.com anlegen.
In meinen Fall &lt;a href=&quot;http://stereosupersonic.github.com&quot;&gt;stereosupersonic.github.com&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;das Projekt lokal erstellen&lt;/li&gt;
&lt;/ol&gt;

&lt;pre class=&quot;terminal&quot;&gt;&lt;code&gt;
    mkdir stereosupersonic.github.com  
    cd stereosupersonic.github.com 
    git init
    touch index.html
    git add index.html   
    git commit -m 'hompage init' 
    git remote add origin git@github.com:stereosupersonic/stereosupersonic.github.com.git
    git push origin master
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;em&gt;unter &lt;a href=&quot;http://stereosupersonic.github.com&quot;&gt;http://stereosupersonic.github.com&lt;/a&gt; sollte man einen leere Seite sehen&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;##Domäne anpassen&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;eine Datei Namens &lt;strong&gt;CNAME&lt;/strong&gt; anlegen und die Domäne eintragen &lt;em&gt;deimel.de&lt;/em&gt;&lt;/li&gt;
  &lt;li&gt;nach github Pushen&lt;/li&gt;
  &lt;li&gt;beim Hoster oder DNS-Provider den DNS A record auf &lt;em&gt;stereosupersonic.github.com&lt;/em&gt; zeigen lassen&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;##Jekyll einrichten&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;gem install jekyll&lt;/li&gt;
  &lt;li&gt;die Verzeichnisse &lt;em&gt;“_layouts”&lt;/em&gt;, &lt;em&gt;“_posts”&lt;/em&gt;, &lt;em&gt;css&lt;/em&gt; und &lt;em&gt;images&lt;/em&gt; anlegen&lt;/li&gt;
  &lt;li&gt;habe mich hier &lt;a href=&quot;https://github.com/mojombo/mojombo.github.com&quot;&gt;https://github.com/mojombo/mojombo.github.com&lt;/a&gt; inspirieren lassen ;-)&lt;/li&gt;
  &lt;li&gt;Pushen&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;##ersten Blog Post schreiben&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;im Verzeichnis “_posts” einen neu Datei anlegen im Muster &lt;strong&gt;Jahr-Monat-Tag-titel-ohne-leerzeichen.md&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;im Header layout: post  und title: Mein erster Post eintragen&lt;/li&gt;
  &lt;li&gt;mit Markdown den gewünschten Text formatieren&lt;/li&gt;
  &lt;li&gt;Pushen&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Erster Blog-Eintrag ist online.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id=&quot;probleme&quot;&gt;Probleme&lt;/h2&gt;

&lt;p&gt;wenn beim Start der Fehler kommt &lt;em&gt;invalid byte sequence in US-ASCII&lt;/em&gt;
in der Bash folgende Variablen setzen: &lt;br /&gt;
&lt;code&gt;export LANG=de_DE.UTF-8 &lt;/code&gt;  &lt;br /&gt;
&lt;code&gt;export LC_ALL=de_DE.UTF-8 &lt;/code&gt;&lt;/p&gt;

&lt;h2 id=&quot;todo&quot;&gt;TODO&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;atom.xml für rss&lt;/li&gt;
  &lt;li&gt;rss bei Feedburner eintragen&lt;/li&gt;
  &lt;li&gt;Template Engine auf Haml umstellen&lt;/li&gt;
  &lt;li&gt;Layout auf Twitter-Bootstrap umstellen&lt;/li&gt;
&lt;/ol&gt;</content><author><name></name></author><summary type="html">Blog Setup</summary></entry></feed>