Browse files

Jekyllize jfdi

- separate posts
- add layouts
- add URL config
  • Loading branch information...
annashipman committed Nov 5, 2013
1 parent d7b9cdb commit b3452315d7ce7a468cb81b590fb131dec412aafb
Showing with 971 additions and 1,023 deletions.
  1. +2 −0 _config.yml
  2. +72 −0 _layouts/blog_layout.html
  3. +8 −0 _layouts/blog_post.html
  4. +32 −0 _layouts/default.html
  5. +46 −0 _posts/2011-04-22-what-i-have-learned-about-folder-structure-today.html
  6. +41 −0 _posts/2011-07-20-upgrading-firefox-part-1.html
  7. +14 −0 _posts/2011-07-27-upgrading-firefox-part-2.html
  8. +132 −0 _posts/2011-08-06-how-to-write-efficient-css-basic-css.html
  9. +55 −0 _posts/2011-08-29-how-to-write-efficient-css-evaluation-of-css.html
  10. +13 −0 _posts/2011-09-12-sorl-thumbnail-comes-back-to-bite-me.html
  11. +7 −0 _posts/2011-10-17-my-continuing-struggles-with-linux.html
  12. +10 −0 _posts/2011-11-30-javascript-visualisations-proposal.html
  13. +8 −0 _posts/2011-12-18-preparation-begins-for-javascript-talk.html
  14. +18 −0 _posts/2012-01-21-javascript-talk-takes-shape.html
  15. +52 −0 _posts/2012-02-14-would-have-been-useful-to-know-at-my-first-game-jam.html
  16. +11 −0 _posts/2012-02-20-plan-of-action.html
  17. +53 −0 _posts/2012-04-15-what-should-your-work-log-tell-you.html
  18. +32 −0 _posts/2012-04-29-the-cap-theorem-and-mongodb.html
  19. +19 −0 _posts/2012-07-15-cap-again-or-pacelc.html
  20. +7 −0 _posts/2012-07-19-learning-more-about-d3.html
  21. +23 −0 _posts/2012-11-20-learning-the-perls.html
  22. +15 −0 _posts/2013-01-21-how-to-estimate.html
  23. +19 −0 _posts/2013-03-24-roof-hacking.html
  24. +71 −0 _posts/2013-04-24-partitioning.html
  25. +49 −0 _posts/2013-05-06-upgrading-to-12-04.html
  26. +10 −86 jfdi/roof-bug-fixing.html → _posts/2013-05-21-roof-bug-fixing.html
  27. +53 −0 _posts/2013-07-06-where-do-i-start.html
  28. +6 −0 _posts/2013-08-10-some-regex-in-the-form-of-a-picture.html
  29. +84 −0 _posts/2013-09-09-creating-a-puppet-module.html
  30. +9 −937 jfdi.html
@@ -1,3 +1,5 @@
safe: true
lsi: false
pygments: true
permalink: /jfdi/:title.html
@@ -0,0 +1,72 @@
layout: default
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<div class="col1">
<!-- Column 1 start -->
{{ content }}
<!-- Column 1 end -->
<div class="col2">
<!-- Column 2 start -->
<div class="sidebar">
<li><a href="#puppet-module">Creating a Puppet module</a> <date>9th September
<li><a href="#regex-picture">Some Regex in the form of a Picture!</a> <date>10th
August 2013</date></li>
<li><a href="#where-start">Where Do I Start?</a> <date>6th July 2013</date></li>
<li><a href="#roof-bug-fixing">Roof Bug-fixing</a> <date>21st May
<li><a href="#upgrading">Ugrading to 12.04...</a> <date>6th May 2013</date></li>
<li><a href="#partitioning">Partioning!</a> <date>24th April 2013</date></li>
<li><a href="#roof-hacking">Roof Hacking</a> <date>24th March 2013</date></li>
<li><a href="#estimating">How to Estimate</a> <date>21st January
<li><a href="#learning-perl">Learning the perls</a> <date>20th November
<li><a href="#d3">Learning More About D3</a> <date>19th July 2012</date></li>
<li><a href="#cap-or-pacelc">CAP again – or should that be PACELC?</a>
<date>15th July 2012</date></li>
<li><a href="#cap-theorem-and-mongodb">The CAP Theorem and MongoDB</a>
<date>29th April 2012</date></li>
<li><a href="#questions-for-data">What Should Your Work Log Tell You?</a>
<date>15th April 2012</date></li>
<li><a href="#personal-development-1">P.O.A.</a> <date>20th February
<li><a href="#gamejam-knowledge">Would Have Been Useful to Know at My First Game
Jam</a> <date>14th February 2012</date></li>
<li><a href="#jstalk-structure">JavaScript Talk Takes Shape</a> <date>21st
January 2012</date> </li>
<li><a href="#chat-with-ian">Preparation Begins for the JavaScript Talk...</a>
<date>18th December 2011</date> </li>
<li><a href="#js-talk">JavaScript Visualisations Proposal</a> <date>30th
November 2011</date></li>
<li><a href="#continuing-struggles">My Continuing Struggles with Linux</a>
<date>17th October 2011</date></li>
<li><a href="#sorl-bites-me">Sorl-thumbnail Comes Back to Bite Me</a> <date>12th
September 2011</date></li>
<li><a href="#evaluation-of-css">How to Write Efficient CSS – Evaluation of
CSS</a> <date>29th August 2011</date></li>
<li><a href="#basic-css">How to Write Efficient CSS – Basic CSS</a> <date>6th
August 2011</date></li>
<li><a href="#firefox-part-2">A Voyage of Discovery – Upgrading Firefox Part
2</a> <date>27th July 2011</date></li>
<li><a href="#firefox-part-1">Upgrading Firefox – part 1...</a> <date>20th July
<li><a href="#learned-today">What I have learned about folder structure
today</a> <date>22nd April 2011</date></li>
<!-- Column 2 end -->
<div class="col3">
<!-- Column 3 start -->
<!-- Column 3 end -->
@@ -0,0 +1,8 @@
layout: blog_layout
<div id="{{ page.anchor_id }}" class="blog-post">
<h1>{{ page.title}}</h1>
<date>{{ | date_to_long_string }}</date>
{{ content }}
@@ -0,0 +1,32 @@
<!doctype html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<html lang="en-GB">
<title>Anna Shipman : JFDI</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/style.css" />
<!-- Anything good about the styling of this website is down to the
amazing Chris Govias; you should hire him:
This page also uses the 'Holy Grail' 3 coloumn liquid layout by Matthew James
Taylor: -->
<div class="header">
<span class="name"><a href="/">Anna Shipman</a> : JFDI</span>
<div class="navigation">
<a href="" class="header-text twitter">Follow me on Twitter</a>
<table class="link-group">
<td><a href="/jfdi.html" class="header-text">JFDI</a></td>
<td><a href="/cv.html" class="header-text">CV</a></td>
<td><a href="/games.html" class="header-text">Games</a></td>
{{ content }}
<div id="footer">
@@ -0,0 +1,46 @@
anchor_id: learned-today
title: What I have learned about folder structure today
layout: blog_post
<p><a href="" target="_blank">Easy_install</a> (as it comes) doesn't work for Debian-based systems.</p>
<p>The default behaviour is to install things to <span class="code-sample">/usr/local/</span> – this is the Gnu default – whereas the synaptic package manager installs things to <span class="code-sample">/usr/</span>. I imagine there may be a way to reconfigure the default behaviour, but I didn't get that far.</p>
<p>This is how I found out this rather useful piece of information. I had installed easy_install, and then used it to download all the dependencies I needed to get started with this python/Django project I was going to work on. And then – nada.</p>
<p>For about three hours, no matter what I did, I had this message: </p>
<p class="code-sample">File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/db/backends/mysql/", line 28, in <module>
from django.db import utils
ImportError: cannot import name utils
<p>My friend who was with me, trying to get me set up to start work on the project, is a Django expert, but he uses Windows. Hey, so do I! What am I even doing using linux? (See sidebar for answer...)</p>
<p>We tried a lot of things. I won't go into them all here, mainly because I can't remember many of them. We tried a lot of things that people on the internet had suggested. As a last resort, we even tried to RTFM. To no avail.</p>
<p>After we'd given up and my friend had left, I went back to it to try and figure out what was going on. I even tried to resort to the beginner standard of adding log messages, but all the files I wanted to edit were read-only. Finally, <a href="" target="_blank">this page</a> offered me a glimmer of a clue.</p>
<p>Specifically, the question "Where are my site-packages stored?" and the answer:</p>
<p><span class="code-sample">python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"</span></p>
<p>Which for me, returns <span class="code-sample">/usr/lib/python2.6/dist-packages</span></p>
<p>Hang on though, the error is in <span class="code-sample">/usr/local/lib</span> . . . eh?</p>
<p>A visit to the python2.6 folder in <span class="code-sample">/usr/local</span> confirmed that all of the stuff I needed was in there. And a call to my incredibly helpful and talented friend <a href="" target="_blank">Joe Halliwell</a> confirmed my growing suspicion that this was Not Correct. He explained to me the Gnu/Debian folder structure differences.</p>
<p id="no-sorl-thumbnail">So, I backtracked. I installed everything I needed (except sorl-thumbnail, which wasn't there. However, all I need to do is find a ppa. There is probably also another way to install it correctly. By the time this is all done, I may even know what it is.)</p>
<p>I ran through a few errors on the way, but all of the <span class="code-sample">ImportError: No module named django_extensions</span> variety, and solved one by one, satisfyingly, by installing what I needed in the correct way.</p>
<p>Finally, several hours after my friend came round to work on this, I now have a new error:</p>
<p class="code-sample">File "/usr/lib/pymodules/python2.6/MySQLdb/", line 170, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'anna'@'localhost' (using password: NO)")
<p>It's progress.</p>
@@ -0,0 +1,41 @@
anchor_id: firefox-part-1
title: Upgrading Firefox – part 1...
layout: blog_post
<p>So. Not content with the Ubuntu version of Firefox which is at 3.6.18, I decided that I wanted Firefox 5.0. Heck, I want 5.0.1.</p>
<p>So I followed <a href="" target="_blank">these</a> instructions.</p>
<p>To no avail. I followed them to the letter (or so I thought), but when I finished up by running <span class="code-sample">firefox</span>, to my joy, Firefox popped up, and to my moments later horror, it was still 3.6.18.</p>
<p>Well, lots of reasons why, as I discovered when I unistalled Firefox 3.6.18.</p>
<p>First of all, when it said "Run the following shell script" I just typed it into the console window. That did not work. Don't sigh, I'm new to this!</p>
<p>So I created the shell script and saved it. Following, incidentally, instructions <a href="" target="_blank">here</a> – the bit I was missing was the permissions: <span class="code-sample">chmod +x</span>
<p>[NB. I couldn't agree more with the grateful commenter on that link: "Everybody just writes "run the shell script" but a complete beginner doesn't know, that shell scripts have to be executable and are started with ./"]</p>
<p>OK I've run the script woo hoo! "The firefox command in your ~/bin directory will now run Firefox with the mozilla-build profile." I have the file, the file contains another script, that script should allow me to start firefox, right? </p>
<p><span class="code-sample">bash: /usr/bin/firefox: No such file or directory</span></p>
<p>Well that, presumably is why running the firefox command before started up the old firefox. (So – hey – I could have just run the script in the command line like I wanted!)</p>
<p>So, I decided to roll back a step and delete the new <span class="code-sample">~/bin</span> directory – I didn't like it anyway. I discovered I could actually run Firefox, from the firefox directory, by running this command: <span class="code-sample">exec "/home/anna/firefox/firefox" -P mozilla-build "\$@" </span>. So I wrote a shellscript to do that.</p>
<p>So now I can run firefox. It's 5.0.1. But I have to run it from the command line. Closing Firefox doesn't close the terminal window, but that terminal window is taken up with running firefox (maybe there's a way round that like with gedit &).</p>
<p>A few other things. The firefox running remembers passwords. It remembers what I've set my home page to. But it doesn't start up on the home page even though I've asked it to. Agreeing to restart it does so. Behind the scenes, there are a couple of errors: </p>
<p class="code-sample">(firefox-bin:1923): Gtk-WARNING **: Loading IM context type 'ibus' failed
(firefox-bin:1923): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/ wrong ELF class: ELFCLASS64
<p>Ideally I want this firefox to run normally, i.e. be available on the menu, have an icon in the top panel, not to rely on a command window. I suspect my next port of call is to discuss this with Mr Joseph Halliwell. I hope there will be a part 2 where I turn out to have learned loads about this area!</p>
@@ -0,0 +1,14 @@
anchor_id: firefox-part-2
title: A Voyage of Discovery – Upgrading Firefox Part 2
layout: blog_post
<p>Right, it turned out my next step was not a chat with Joe Halliwell but instead with my good friend and mentor, <a href="">Dolan O'Toole</a>, and what I thought might be a voyage of discovery into how to make my installation of firefox run like a normal program turned out to be just a short trip of discovery to finding out that I hadn't actually been looking in the right places.</p>
<p>After helpfully pointing out that I "sound like a linux newbie :)" (yes, yes I am), Dolan explained where I'd gone wrong: "You followed the instuctions as they are. The only thing you weren't aware of is that most of the time, someone would have done a build of a program for ubuntu and put it in an apt repository, usually on launchpad. I usually search for something like "firefox 5 ubuntu 10.10" if I need to install something before I resort to manual installations."</p>
<p>Good tip, and here it is:</p>
<p><a href=""></a></p>
<p>So – I have learned that it's not quite as straightforward as finding the instructions and then following them – you also have to know stuff. That's OK though. And at least I have firefox the way I want it now. I'm sure there'll be another opportunity to get my hands dirty...</p>
Oops, something went wrong.

0 comments on commit b345231

Please sign in to comment.