-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
150 lines (128 loc) · 9.03 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Sven's Blog</title>
<subtitle>About Ruby on Rails and web development in general</subtitle>
<id>https://svendittmer.github.io/blog</id>
<link href="https://svendittmer.github.io/blog"/>
<link href="https://svendittmer.github.io/feed.xml" rel="self"/>
<updated>2016-09-24T08:44:00+02:00</updated>
<author>
<name>Sven Dittmer</name>
</author>
<entry>
<title>Setting up postgres on linux mint debian edition</title>
<link rel="alternate" href="https://svendittmer.github.io/blog/2016/09/24/setting-up-postgres/"/>
<id>https://svendittmer.github.io/blog/2016/09/24/setting-up-postgres/</id>
<published>2016-09-24T08:44:00+02:00</published>
<updated>2016-09-24T10:28:23+02:00</updated>
<author>
<name>Sven Dittmer</name>
</author>
<content type="html"><p>This is a step-by-step guide to getting up and running with postgres on <abbr title="Linux Mint Debian Edition">LMDE</abbr>. I'm new to postgres, since I've only been working with mysql so far. I want to share with you the problems and solutions I encountered getting postgres up and running, hoping that it may help you setup postgres, too.</p>
<p>Setting up postgres on my local machine wasn't as easy as I expected. I had to get it up and running when I started using heroku, where postgres is the default database. At some point, the tutorial required a working installation of postgres, without explaining how it's done. But even if you don't use heroku, postgres offers some advantages to you, especially when used in a rails app. In case you're interested, check the further reading section after you finished this article.</p>
<h2 id="installing-postgres">Installing postgres</h2>
<p>This is actually simple, it takes two commands:</p>
<pre><code>~ $ sudo apt-get update
~ $ sudo apt-get install postgresql postgresql-server-dev-&lt;required-postgres-version, e.g. 9.4&gt;
</code></pre>
<p><em>postgresql</em> installs all you need to run the database, while <em>postgresql-server-dev-9.4</em> is required to install the <em>pg</em> gem later. You may also use Synaptics to install postgres if you prefer using a GUI.</p>
<h2 id="getting-access">Getting access</h2>
<p>When I tried the <em>psql</em> command, I got this error:</p>
<pre><code>Fatal: role lmde does not exist
</code></pre>
<p>After some research, I learned that a role is what you would call a user in mysql. So psql tried to access the database using my username as role, and that role did not exist. When installing postgres a user account and a role called <em>postgres</em> were created. So, in order to access the database, I had to login as <em>postgres</em>, like so:</p>
<pre><code>~ $ su -
~ # su - postgres
~ $ createuser lmde --createdb
</code></pre>
<p><em>createuser</em> is a utility command offered by postgres, which creates a role. Don't forget the <em>–createdb</em> option, or <em>rake db:create</em> will fail.</p>
<p>This is all I had to do to continue the heroku tutorial. If this guide doesn't work for you, here are some of the resources that helped me setup postgres:</p>
<ul>
<li><a href="https://www.digitalocean.com/community/tutorials/how-to-setup-ruby-on-rails-with-postgres">How To Setup Ruby on Rails with Postgres | DigitalOcean</a></li>
<li><a href="https://www.postgresql.org/docs/9.4/static/tutorial-createdb.html">PostgreSQL: Documentation: 9.4: Creating a Database</a></li>
</ul>
</content>
</entry>
<entry>
<title>Beginner Series</title>
<link rel="alternate" href="https://svendittmer.github.io/blog/2016/09/19/beginner-series/"/>
<id>https://svendittmer.github.io/blog/2016/09/19/beginner-series/</id>
<published>2016-09-19T22:04:00+02:00</published>
<updated>2016-09-24T10:28:23+02:00</updated>
<author>
<name>Sven Dittmer</name>
</author>
<content type="html"><p>Today I'm starting a series of beginner tutorials for budding web developers. I expect the reader to have a basic understanding of the topic. My goal is to provide some best practices that go a little beyond "Hello World". The articles will cover Ruby on Rails, HTML, CSS, Bootstrap and some other related stuff.</p>
<h3 id="articles-tagged-beginner-series">Articles tagged "beginner series"</h3>
<ul>
<li><a href="/blog/2016/09/24/setting-up-postgres/">Setting up postgres on linux mint debian edition</a></li>
<li><a href="/blog/2016/09/19/beginner-series/">Beginner Series</a></li>
</ul>
</content>
</entry>
<entry>
<title>New Design</title>
<link rel="alternate" href="https://svendittmer.github.io/blog/2016/06/13/new-design/"/>
<id>https://svendittmer.github.io/blog/2016/06/13/new-design/</id>
<published>2016-06-13T22:31:00+02:00</published>
<updated>2016-09-24T10:28:23+02:00</updated>
<author>
<name>Sven Dittmer</name>
</author>
<content type="html"><p>Check out the new design of this website! I added a header to prevent all the
text from sticking at the top. Looks better now! 😸</p>
<p>In case you're wondering why I didn't add a header before launching this site,
there's a good reason for that.
It took me weeks to choose the right blogging platform, and when I had
chosen Middleman, I thought I had to build some really fancy stuff, optimized
for SEO, using flexbox, customize Middleman and all that. I was busy doing that
for some time until I realized that I didn't have any imagination how my website
should look like (except from totally awesome!!!), and on top of that I had no
text or images to present.</p>
<p>Then I decided to start with a simple Bootstrap page,
no fancy stuff, and to add an article every day until the content would be worthy
of SEO, style and all that. Well, three articles is enough to justify adding
a header, I guess.</p>
</content>
</entry>
<entry>
<title>Deploying Middleman to Github Pages</title>
<link rel="alternate" href="https://svendittmer.github.io/blog/2016/06/12/deploying-to-github-pages/"/>
<id>https://svendittmer.github.io/blog/2016/06/12/deploying-to-github-pages/</id>
<published>2016-06-12T23:30:00+02:00</published>
<updated>2016-09-24T10:28:23+02:00</updated>
<author>
<name>Sven Dittmer</name>
</author>
<content type="html"><p>I've had quite some trouble deploying my site to github pages.
The reason is that the deploy needs to be configured differently,
depending on whether you create a website for a project or for your account.
The default configuration won't work if you're making a website for an
account. This configuration worked for me:</p>
<pre><code>activate :deploy do |deploy|
deploy.deploy_method = :git
deploy.branch = 'master'
end
</code></pre>
<p>Also, note that the current version of middleman-deploy (1.0.0) doesn't seem to
do the trick, I had to use the alpha Version: <code>gem "middleman-deploy", "~&gt; 2.0.0.pre.alpha"</code></p>
<p>After figuring out how it works, I must say that I'm quite happy with the result:
The deploy works like a charm and I've got a free website now, ssl already included! 😄</p>
</content>
</entry>
<entry>
<title>First Blog Entry</title>
<link rel="alternate" href="https://svendittmer.github.io/blog/2016/06/12/first-blog-entry/"/>
<id>https://svendittmer.github.io/blog/2016/06/12/first-blog-entry/</id>
<published>2016-06-12T02:00:00+02:00</published>
<updated>2016-09-24T10:28:23+02:00</updated>
<author>
<name>Sven Dittmer</name>
</author>
<content type="html"><p>I've been playing with the thought of building my own blog for a few months, and now is the time I turn this thought into reality. Choosing a platform wasn't easy, and I considered using Wordpress, Ghost, Jekyll or Medium until I decided to dive into Middleman instead. I might still copy some articles to Medium though, since I am already registered at Medium and I spend at least a couple minutes every day to check out what's going on there.</p>
<h3 id="why-middleman">Why Middleman?</h3>
<p>Well, first of all I like the idea of creating static websites. Since I'm dealing with database-backed web-apps at work every day, it seemed to me that diving into this kind of technology might broaden my mind and enable me to look at building websites in a new, different way. Secondly, Middleman is based on Ruby, so I can bring in my experience as Ruby on Rails Developer and use my favorite Template Language Slim.</p>
<p>Alright, this should be enough text for a first blog entry. Writing is done, now ship it!</p>
</content>
</entry>
</feed>