-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
393 lines (233 loc) · 11.8 KB
/
index.html
File metadata and controls
393 lines (233 loc) · 11.8 KB
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Dark Side of the Spoon</title>
<meta name="author" content="David 'DePhraser' Fraser">
<meta name="description" content="This week I am volunteering at the Young Rewired State centre in Edinburgh. Young Rewired State (YRS) is a national event running during a week in …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://dephraser.net">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="Dark Side of the Spoon" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22764281-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="collapse-sidebar sidebar-footer" >
<header role="banner"><hgroup>
<h1><a href="/">Dark Side of the Spoon</a></h1>
<h2>Code, food, and stuff</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:dephraser.net" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/08/08/wednesday-at-young-rewired-state/">Wednesday at Young Rewired State</a></h1>
<p class="meta">
<time datetime="2012-08-08T13:35:00+01:00" pubdate data-updated="true">Aug 8<span>th</span>, 2012</time>
</p>
</header>
<div class="entry-content"><p>This week I am volunteering at the Young Rewired State centre in Edinburgh.</p>
<p>Young Rewired State (YRS) is a national event running during a week in early
August where young people from up and down the country gather in centres to sit
and make something with the help of volunteer mentors from the local area.</p>
<p>This year the theme is open data with the participants taking data from
a variety of sources to try and make something interesting from it.</p>
<p>A quick scan of the hashtag
<a href="https://twitter.com/#!/search?q=%23yrs2012">#YRS2012</a> will reveal both the
number of projects people are working on, the passion of both the kids and the
mentors is teaching and demonstration their skills, and the fun people are
having.</p>
<p>We have only two kids here at the Edinburgh centre, being hosted by the
University of Edinburgh’s School of Informatics in Appleton Tower and the
Mentors outnumber the participants by 2:1. This has not been a problem
as the expertise of the mentors is reasonably well spread.</p>
<p>The knowledge and enthusiasm that the teenagers brought here has been
breathtaking. Within 3 hours of getting here they had already selected their
project and had got down to it.</p>
<p>It has been called Project F, mostly started as a joke, but it kind of stuck.
All to be released shortly as soon as they get it working. But they are
presenting at Edinburgh Techmeetup tonight so hopefully they will have
something working by then.</p>
<p>I am enjoying myself. I have always enjoyed teaching and teaching people who
actively want to learn is a joy.</p>
<p>We head down to Birmingham on Friday for the Festival of Code. Centres from all
over the country will gather in the Custard Factory to hear presentations, win
awards, eat pizza, and generally have good time.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/07/29/the-book-what-started-it/">The Book What Started It</a></h1>
<p class="meta">
<time datetime="2012-07-29T14:59:00+01:00" pubdate data-updated="true">Jul 29<span>th</span>, 2012</time>
</p>
</header>
<div class="entry-content"><p><em>I want to tell you about the pleasure, the sheer unbridled joy, of cooking
without a recipe</em>.</p>
<p>An odd start to a recipe book, but once you get into it you understand what Nigel
Slater is on about in his book, ‘Appetite’.</p>
<p>This was the first cookbook I really read, picking it out of the many books on
my Dad’s bookshelf purely because its orange spine stood out from the rest.
Before I had made things from memory and on my parents advice, my repertoire
consisting of a few pasta dishes and a fruit salad.</p>
<p>It is Slater’s manifesto of cooking, his mission statement for the kitchen.</p>
<p>The first third of the book doesn’t really contain any recipes at all rather
explaining his passion for cooking in drool inducing language with full page
gastronomic pornographic images. It talks about what you really need in your
kitchen, the little number of pans and knifes you really need, how and where to
shop, what flavours really go together, and when fruit and veg are in season and at
their best. He tells you that you should cook for fun, that you don’t have to
cook every night, that its fine to get a takeaway every so often.</p>
<p>His recipes are written in the way people cook. He understands that we don’t
all cook like they do on Blue Peter, with each ingredient pre-measured and put
in its own little dish all lined up ready to go. It’s not <em>20g of basil</em> it’s
<em>a good handful</em>. It encourages experimentation and the recipes should be
treated more as templates than anything else.</p>
<p>My copy is well thumbed and a couple of the pages are stuck together at the
back when the flat above me water pipe burst. The recipes I use on a regular
basis and flecked and stained with cooking debris. I love it.</p>
<p>I would recommend this book to people starting to cook or who have cooked for
a while.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/04/16/ant-javadox-and-github/">Ant Javadoc and GitHub</a></h1>
<p class="meta">
<time datetime="2012-04-16T20:29:00+01:00" pubdate data-updated="true">Apr 16<span>th</span>, 2012</time>
</p>
</header>
<div class="entry-content"><p>During our <a href="http://www.inf.ed.ac.uk/teaching/courses/sdp/">Systems Design Project</a>
course at Edinburgh we hit the problem of a large team coding on separate parts
of a system and not having instant access to each other like we would in
a development office environment.</p>
<p>We wanted to create a easy, automated way to share documentation about code
which was being worked on in separate branches. The code was already being
documented by JavaDoc and some of use were generating it adhoc to look at other
peoples stuff.</p>
<p>I had used Github pages service before (this site is hosted there). Since our
code was already hosted there this would create an easy platform to view the
generated JavaDoc as a web page, independent of the branch it was on.</p>
<p>Ant was being used to build the code so it was a simple task to add an ant task
into generate the JavaDoc and then call a script that would upload it Github
pages.</p>
<h3>Ant Task</h3>
<pre><code><target name="javadocgenerate">
<javadoc packagenames="uk.ac.ed.inf.sdp2012.group7.*"
sourcepath="src"
destdir="../pcdoc"
author="true"
version="false"
windowtitle="Group 7 PC code">
</javadoc>
<exec executable="/bin/bash">
<arg value="publish.sh"/>
</exec>
</target>
</code></pre>
<h3>Bash Script</h3>
<pre><code>#!/bin/sh
# Push javadoc files to a website hosted by github <http://pages.github.com/>.
# Before executing this script, generate the javadoc files into pcdoc
#
#David Fraser
# find out the current branch so we know where to switch back
OLD_BRANCH=`git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
git checkout gh-pages || exit $?
# Clear out the old files: (files which will be served)
rm -rf javadoc/*
# Replace them with new files and commit them:
cp -pr pcdoc/* javadoc \
&& git add javadoc \
&& git commit -a -m "generated javadoc"
#Remove the generated doc
rm -rf pcdoc/*
git push origin gh-pages || exit $?
# Switch back to the old branch
git checkout $OLD_BRANCH || exit $?
</code></pre>
<p>All the user has to do is call ‘ant javadocgenerate’ and any JavaDoc they have
added to the code will be generate and put online. It does take 5 or 10 minutes
for the docs to appear online but Github notify you when the page is built.</p>
<h3>Links</h3>
<p><a href="http://help.github.com/pages">Github pages</a><br/>
<a href="http://ant.apache.org/manual/Tasks/javadoc.html">Ant JavaDoc</a></p>
<p><a href="http://sdpgroup7.github.com/code/javadoc/overview-tree.html">Example from SDP</a></p>
</div>
</article>
<div class="pagination">
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2012/08/08/wednesday-at-young-rewired-state/">Wednesday at Young Rewired State</a>
</li>
<li class="post">
<a href="/blog/2012/07/29/the-book-what-started-it/">The book what started it</a>
</li>
<li class="post">
<a href="/blog/2012/04/16/ant-javadox-and-github/">Ant Javadoc and GitHub</a>
</li>
</ul>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2013 - David 'DePhraser' Fraser -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>