-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
262 lines (177 loc) · 15.2 KB
/
atom.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[Small Steps]]></title>
<link href="http://tskogberg.github.com/atom.xml" rel="self"/>
<link href="http://tskogberg.github.com/"/>
<updated>2012-12-24T13:51:40+01:00</updated>
<id>http://tskogberg.github.com/</id>
<author>
<name><![CDATA[Tomas Skogberg]]></name>
</author>
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[Own domain]]></title>
<link href="http://tskogberg.github.com/blog/2012/12/24/own-domain/"/>
<updated>2012-12-24T00:45:00+01:00</updated>
<id>http://tskogberg.github.com/blog/2012/12/24/own-domain</id>
<content type="html"><![CDATA[<p>New domain and ideas for this blog.</p>
<p>Since last time I’ve gotten
work as a Ruby/Rails developer and my idea is to share some thoughts
about that. It could be some practices that we use at work or it could
be some ‘aha’ moments.</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Setting up Octopress]]></title>
<link href="http://tskogberg.github.com/blog/2012/06/12/setting-up-octopress/"/>
<updated>2012-06-12T14:49:00+02:00</updated>
<id>http://tskogberg.github.com/blog/2012/06/12/setting-up-octopress</id>
<content type="html"><![CDATA[<p>This post will try to explain step by step the installation of <a href="http://octopress.org">octopress</a>, how to deploy the result to <a href="http://dropbox.com">dropbox</a> and finally host it with <a href="http://kissr.co">kissr</a>.</p>
<p>Since I use a MacBook, all my steps will be based on OS X as operating system, but my guess is that with some small adjustments you’ll do fine with whatever you use. Also I’ll be reusing current installation guides (why reinvent the wheel!?) as much as possible only adding adjustments needed to make it run.</p>
<h2>1. Install</h2>
<p>Time to install needed software and create accounts.</p>
<h3>1.1. Octopress</h3>
<p>Octopress has a nice short <a href="http://octopress.org/docs/setup/">installation guide</a> that explains what you need. One small thing is that if you like to be able to use the current ruby version (as of writing this it’s: 1.9.3p194), you should run:</p>
<p><em>(It also fixed a problem i had of running the current version of bundler with 1.9.2p290).</em></p>
<h4>Using rvm:</h4>
<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'>rvm install 1.9.3-p194 && rvm use 1.9.3-p194</span></code></pre></td></tr></table></div></figure>
<p>Now that you got the latest version of ruby let’s make sure to use 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>
</pre></td><td class='code'><pre><code class=''><span class='line'>cd \path\to\your\octopress\directory\
</span><span class='line'>echo 'rvm use 1.9.3-p194' > .rvmrc
</span><span class='line'>source .rvmrc</span></code></pre></td></tr></table></div></figure>
<h4>Using rbenv:</h4>
<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'>rbenv install 1.9.3-p194
</span><span class='line'>rbenv global 1.9.3-p194</span></code></pre></td></tr></table></div></figure>
<p>To verify that everything went okey with the install of ruby, 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'>ruby -v</span></code></pre></td></tr></table></div></figure>
<p>It should respond with: ruby 1.9.3p194 (2012-04-20 revision 35410)</p>
<h3>1.2. Dropbox</h3>
<p>Just go to the <a href="https://www.dropbox.com/install">dropbox</a> site, download and start/follow the installation. Don’t forget to create an account!..</p>
<h3>1.3. Kissr.co</h3>
<p>Go to <a href="http://http://www.kissr.co/">kissr</a>. Check if the domain your want is available, if so click <em>try it</em> and follow the instructions.</p>
<p>If everything goes as it should you now have everything needed to deploy your own free site on kissr.</p>
<h2>2. Configuration</h2>
<p>Some config is needed before you can create your first blog post.</p>
<h3>2.1. Octopress</h3>
<p>Before you can make the first blog post you need to <a href="http://octopress.org/docs/configuring/">configure</a> the site.
Some social media applications are supported as addons/plugins and it shouldn’t be too hard to add support for others if needed (someone might have done it already).</p>
<h2>3. Create content</h2>
<p>Now that you have everything running, it’s time to change the default page kissr created for you during install and create our own first blog post.</p>
<h3>3.1. Octopress</h3>
<p><a href="http://octopress.org/docs/blogging/">Blogging</a> explains blogging basics. I highly recommend you to use <a href="http://pow.cx/">POW</a> to preview your site.</p>
<p>One thing I found out is that if you use <a href="http://www.zsh.org/">zsh</a> as your shell you will run into some trouble with some of the rake tasks. Read more about it at Travis Jeffery’s <a href="http://travisjeffery.com/b/2012/01/zshs-extended-glob-and-octopresss-new-post-script/">site</a> for solutions.</p>
<p>Make a new post:</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'>rake new_post["hello"]</span></code></pre></td></tr></table></div></figure>
<p>Edit the generated markdown file with your favorit editor and add some content to 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>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>---
</span><span class='line'>layout: post
</span><span class='line'>title: "hello"
</span><span class='line'>date: 2012-06-12 15:03
</span><span class='line'>comments: true
</span><span class='line'>categories:
</span><span class='line'>---
</span><span class='line'>
</span><span class='line'>Hello!
</span><span class='line'>
</span><span class='line'>Welcome to my new blog.</span></code></pre></td></tr></table></div></figure>
<p>Now let’s generate the page.</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'>rake generate</span></code></pre></td></tr></table></div></figure>
<p>Preview it with POW or the local built-in preview.</p>
<h3>3.2. Dropbox/Kissr</h3>
<p>Great you now got a local version of your blog, but what now? Well it’s time to deploy it to Dropbox/Kissr.</p>
<p>While creating a Kissr account/domain it added a folder structure in your dropbox folder.</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'>\path\to\dropbox\Apps\KISSr\<your domain>.kissr.co\</span></code></pre></td></tr></table></div></figure>
<p>You’ll find that Kissr have auto generated some content here for you. Since you want to use octopress, you don’t need anything kissr has generated for you. So let’s remove it! (make sure that you’re at the right path!)</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'>rm -rf *</span></code></pre></td></tr></table></div></figure>
<p>Time to copy the generated content in \public to your kissr domain.</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'>cd \path\to\your\octopress\directory\
</span><span class='line'>cp -r public \path\to\dropbox\Apps\KISSr\<your domain>.kissr.co\</span></code></pre></td></tr></table></div></figure>
<p>Since humans are lazy we don’t like to repeat manual work, so why not automate it a bit.</p>
<p>You could make a script file:</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'>echo 'cp -r public \path\to\dropbox\Apps\KISSr\<your domain>.kissr.co\' > deploy.sh
</span><span class='line'>chmod +x deploy.sh</span></code></pre></td></tr></table></div></figure>
<p>Or even better add a rake task to your Octopress Rakefile:</p>
<figure class='code'><figcaption><span>Rakefile </span></figcaption>
<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>
</pre></td><td class='code'><pre><code class='ruby'><span class='line'><span class="n">desc</span> <span class="s2">"Deploy website to kissr"</span>
</span><span class='line'><span class="n">task</span> <span class="ss">:kissr</span><span class="p">,</span> <span class="ss">:destination_path</span> <span class="k">do</span> <span class="o">|</span><span class="n">t</span><span class="p">,</span> <span class="n">args</span><span class="o">|</span>
</span><span class='line'> <span class="k">if</span> <span class="n">args</span><span class="o">.</span><span class="n">destination_path</span>
</span><span class='line'> <span class="n">path</span> <span class="o">=</span> <span class="n">args</span><span class="o">.</span><span class="n">destination_path</span>
</span><span class='line'> <span class="k">else</span>
</span><span class='line'> <span class="n">path</span> <span class="o">=</span> <span class="n">get_stdin</span><span class="p">(</span><span class="s2">"Enter the full path for your local dropbox/kissr directory: "</span><span class="p">)</span>
</span><span class='line'> <span class="k">end</span>
</span><span class='line'> <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">## copying </span><span class="si">#{</span><span class="n">public_dir</span><span class="si">}</span><span class="s2"> to </span><span class="si">#{</span><span class="n">path</span><span class="si">}</span><span class="s2">"</span>
</span><span class='line'> <span class="n">cp_r</span> <span class="s2">"</span><span class="si">#{</span><span class="n">public_dir</span><span class="si">}</span><span class="s2">/."</span><span class="p">,</span> <span class="n">path</span>
</span><span class='line'><span class="k">end</span>
</span></code></pre></td></tr></table></div></figure>
<p>To use it:</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'>rake kissr[\path\to\dropbox\Apps\KISSr\<your domain>.kissr.co\]</span></code></pre></td></tr></table></div></figure>
<h2>4. Conclusion</h2>
<p>Making a simple but fully functional nice looking static blog is fairly easy to do with Octopress/Dropbox/Kissr. I hope this post will help you creating your own without too much work. Best of luck and see you soon.</p>
<p>Final note, you might want to check out <a href="http://octopress.org/docs/theme/">Theming & Customization</a> to read about how to customaize your blog. For premade themes checkout: <a href="https://github.com/imathis/octopress/wiki/List-Of-Octopress-Themes">List Of Octopress Themes</a>.</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Update]]></title>
<link href="http://tskogberg.github.com/blog/2012/05/31/update/"/>
<updated>2012-05-31T18:36:00+02:00</updated>
<id>http://tskogberg.github.com/blog/2012/05/31/update</id>
<content type="html"><![CDATA[<p>I’m still here. Added a few new features to the site.</p>
<ul>
<li><p>An image gallery</p>
<p>It uses <a href="http://highslide.com/">highslide.js</a>. There’s some more work to be done there to make it fully automated. My thoughts is to make a rake task that will add new gallerys and make it semi-automated. I have some basic command line ruby code that generates html based on new image files. More about that in a future post.</p></li>
<li><p>About page</p>
<p>Nothing special here. Just some personal information.</p></li>
</ul>
<p>Also I’m in the progress of makeing a weather jquery plugin that’ll show the forcast for the local weather based on the viewers current ip. It’s just my first stumbling steps into jquery. Looking forward to share more about it in a near future.</p>
<p>Next post will show how I did the setup of this blog. It’s fairly simple, but perhaps it’ll help someone struggling.</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Welcome]]></title>
<link href="http://tskogberg.github.com/blog/2012/05/25/welcome/"/>
<updated>2012-05-25T11:35:00+02:00</updated>
<id>http://tskogberg.github.com/blog/2012/05/25/welcome</id>
<content type="html"><![CDATA[<p>I made a <a href="http://octopress.org/">Octopress</a> blog a year ago wanting to try it out and see how easy it was to create one. Back then I didn’t have a server to put it on, neither did I have any real motivation to be able to write anything of interest on it.</p>
<p>Well now I’ve found <a href="http://kissr.co">Kissr</a> so at least one of the above is satisfied. I guess we’ll findout later on about the other….</p>
<p>Maybe I should write a bit about what Octopress and Kissr offers. Octopress is a framework for generating static HTML pages. It’s kinda neat if you got no need for serverside generated pages and ideal for my needs, just wanting a simple blog. What about Kissr then? Well it’s a webserver service for viewing static HTML pages using <a href="http://dropbox.com">Dropbox</a>.</p>
<p>The best part of it all is that all is free! Which is awesome!</p>
]]></content>
</entry>
</feed>