diff --git a/content/posts/2012-01-23-how-to-find-our-flat.md b/content/posts/2012-01-23-how-to-find-our-flat.md index f7277e0..00efcec 100644 --- a/content/posts/2012-01-23-how-to-find-our-flat.md +++ b/content/posts/2012-01-23-how-to-find-our-flat.md @@ -16,52 +16,52 @@ As our building is a bit of a maze, we thought it would be useful to tell you ho First, go to Øvre Storgate 1B. You can find it with Google Maps. Press buzzer 4A. Wait for the nice people to let you in. -[][1] +[][1] You find yourself in a hallway. There is a welcoming door here. Go through the door and turn right.
-[][2] +[][2] There’s a door on the right to the garage. Go through it and turn left.

-[][3] +[][3] Cross the garage. There’s a raised area at the back with a door on the left.

-[][4] +[][4] Go through the door which leads to the bottom of the back stairwell. The complicated bit is now over!

-[][5] +[][5] Climb up 2 flights of stairs.

-[][6] +[][6] Oh no! Another flight of stairs. Nearly there though.

-[][7] +[][7] Woo, you made it! Go through this door 😀

If you’re feeling adventurous, you can try to find the other way on your own. Hint: it starts with the front stairwell. There are bad instructions on the welcoming door! - [1]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0045.jpg - [2]: https://jamesmcdonald.com/wp-content/uploads/2012/01/bilde.jpg - [3]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0047.jpg - [4]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_00481.jpg - [5]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0049.jpg - [6]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0050.jpg - [7]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0051.jpg \ No newline at end of file + [1]: /wp-content/uploads/2012/01/IMG_0045.jpg + [2]: /wp-content/uploads/2012/01/bilde.jpg + [3]: /wp-content/uploads/2012/01/IMG_0047.jpg + [4]: /wp-content/uploads/2012/01/IMG_00481.jpg + [5]: /wp-content/uploads/2012/01/IMG_0049.jpg + [6]: /wp-content/uploads/2012/01/IMG_0050.jpg + [7]: /wp-content/uploads/2012/01/IMG_0051.jpg diff --git a/content/posts/2012-06-11-hardcoded-gnomeish-composition.md b/content/posts/2012-06-11-hardcoded-gnomeish-composition.md index e99114e..9f02aee 100644 --- a/content/posts/2012-06-11-hardcoded-gnomeish-composition.md +++ b/content/posts/2012-06-11-hardcoded-gnomeish-composition.md @@ -4,18 +4,6 @@ author: james type: post date: 2012-06-11T16:42:20+00:00 url: /2012/06/hardcoded-gnomeish-composition/ -aktt_notify_twitter: - - yes -al2fb_facebook_link_id: - - 658281334_10151014685521335 -al2fb_facebook_link_time: - - 2012-06-11T16:42:24+00:00 -al2fb_facebook_link_picture: - - post=https://jamesmcdonald.com/?al2fb_image=1 -aktt_tweeted: - - 1 -dsq_thread_id: - - 3804739886 categories: - Tech @@ -36,4 +24,4 @@ Digging into the current Debian gtk+ source verifies this: So they start with the X Input Method layer which has nice unixy text config files (check out /usr/share/X11/locale) and they want to extend it with some extra sequences. What’s the best way to do that? Clearly snarf what’s already there, bolt on your own bits and hardcode the lot into your binary. -Well done, chaps. \ No newline at end of file +Well done, chaps. diff --git a/content/posts/2012-12-08-import-things-tasks-into-apples-reminders.md b/content/posts/2012-12-08-import-things-tasks-into-apples-reminders.md index ae17aa9..d30f879 100644 --- a/content/posts/2012-12-08-import-things-tasks-into-apples-reminders.md +++ b/content/posts/2012-12-08-import-things-tasks-into-apples-reminders.md @@ -4,8 +4,6 @@ author: james type: post date: 2012-12-08T13:36:46+00:00 url: /2012/12/import-things-tasks-into-apples-reminders/ -dsq_thread_id: - - 964365161 categories: - Apple - Hacks @@ -15,53 +13,52 @@ OK, so I was making a list of things to do today, but then I decided that having A neat trick you can do with Cultured Code’s Things is to select a bunch of tasks and drag them to a text editor, which will create one line per task with any note appended in brackets. Looks sort of like this: -
- Make lists of things
-- Procrastinate (Try making scripts to manage lists of things)
+
- Make lists of things
+- Procrastinate (Try making scripts to manage lists of things)
 
This is all very well, but there’s no simple way to get that list into Reminders without copying and pasting the relevant bits individually. That sounded boring, so instead I learned enough AppleScript to do it automatically. It probably took more time, but it was definitely more amusing. Anyway, it was that or complete the bunch of tasks I’d just written down. Here’s the AppleScript code to accomplish this feat. -
-- Reminders Importer
--- James McDonald <james@jamesmcdonald.com>
-
--- Imports a text file into Reminders as one task per line.
--- Creates a task list called "Import". Strips off " -" at the start and puts bracketed text into the body (note) of the task. This is the format you get by dragging from Things to a text editor.
-
-tell application "Reminders"
-	if not (list "Import" exists) then
-		make list with properties {name:"Import"}
-	else
-		tell list "Import" to delete reminders
-	end if
-end tell
-
-tell application "Reminders"
-	repeat with l in paragraphs of (read file "Users:james:Documents:tasks.txt")
-		if length of l is not 0 then
-			if l starts with "- " then
-				set l to characters 3 through end of l as text
-			end if
-			
-			if l contains "(" then
-				set AppleScript's text item delimiters to "("
-				set b to text item 2 of l
-				set l to text item 1 of l
-				set AppleScript's text item delimiters to ")"
-				set b to text item 1 of b
-				set AppleScript's text item delimiters to ""
-			else
-				set b to "" as text
-			end if
-			tell list "Import"
-				make reminder with properties {name:l, body:b}
-			end tell
-		end if
-	end repeat
-end tell
+
-- Reminders Importer
+
+-- Imports a text file into Reminders as one task per line.
+-- Creates a task list called "Import". Strips off " -" at the start and puts bracketed text into the body (note) of the task. This is the format you get by dragging from Things to a text editor.
+
+tell application "Reminders"
+    if not (list "Import" exists) then
+        make list with properties {name:"Import"}
+    else
+        tell list "Import" to delete reminders
+    end if
+end tell
+
+tell application "Reminders"
+    repeat with l in paragraphs of (read file "Users:james:Documents:tasks.txt")
+        if length of l is not 0 then
+            if l starts with "- " then
+                set l to characters 3 through end of l as text
+            end if
+
+            if l contains "(" then
+                set AppleScript's text item delimiters to "("
+                set b to text item 2 of l
+                set l to text item 1 of l
+                set AppleScript's text item delimiters to ")"
+                set b to text item 1 of b
+                set AppleScript's text item delimiters to ""
+            else
+                set b to "" as text
+            end if
+            tell list "Import"
+                make reminder with properties {name:l, body:b}
+            end tell
+        end if
+    end repeat
+end tell
 
Yes, I know. AppleScript is weird. -So, now that I’ve written the blog post about the script to migrate to one task manager from another the list of tasks I made of things to do this morning, it’s this afternoon. Yay! \ No newline at end of file +So, now that I’ve written the blog post about the script to migrate to one task manager from another the list of tasks I made of things to do this morning, it’s this afternoon. Yay! diff --git a/content/stuff.md b/content/stuff.md index 0a07e16..51ec9ef 100644 --- a/content/stuff.md +++ b/content/stuff.md @@ -11,4 +11,4 @@ Things you can grab. My [current CV][1], or at least the most recently updated version thereof. - [1]: https://jamesmcdonald.com/wp-content/uploads/2010/08/Curriculum-Vitae-James-McDonald.pdf \ No newline at end of file + [1]: /wp-content/uploads/2010/08/Curriculum-Vitae-James-McDonald.pdf diff --git a/content/wp-content/uploads/2010/08/Curriculum-Vitae-James-McDonald.pdf b/static/wp-content/uploads/2010/08/Curriculum-Vitae-James-McDonald.pdf similarity index 100% rename from content/wp-content/uploads/2010/08/Curriculum-Vitae-James-McDonald.pdf rename to static/wp-content/uploads/2010/08/Curriculum-Vitae-James-McDonald.pdf diff --git a/content/wp-content/uploads/2012/01/IMG_0045-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_0045-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0045-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_0045-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0045-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_0045-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0045-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_0045-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0045-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_0045-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0045-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_0045-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0045-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_0045-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0045-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_0045-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0045.jpg b/static/wp-content/uploads/2012/01/IMG_0045.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0045.jpg rename to static/wp-content/uploads/2012/01/IMG_0045.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0047-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_0047-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0047-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_0047-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0047-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_0047-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0047-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_0047-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0047-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_0047-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0047-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_0047-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0047-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_0047-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0047-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_0047-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0047.jpg b/static/wp-content/uploads/2012/01/IMG_0047.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0047.jpg rename to static/wp-content/uploads/2012/01/IMG_0047.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00471-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_00471-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00471-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_00471-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00471-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_00471-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00471-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_00471-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00471-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_00471-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00471-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_00471-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00471-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_00471-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00471-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_00471-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00471.jpg b/static/wp-content/uploads/2012/01/IMG_00471.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00471.jpg rename to static/wp-content/uploads/2012/01/IMG_00471.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0048-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_0048-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0048-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_0048-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0048-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_0048-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0048-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_0048-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0048-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_0048-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0048-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_0048-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0048-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_0048-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0048-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_0048-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0048.jpg b/static/wp-content/uploads/2012/01/IMG_0048.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0048.jpg rename to static/wp-content/uploads/2012/01/IMG_0048.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00481-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_00481-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00481-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_00481-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00481-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_00481-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00481-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_00481-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00481-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_00481-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00481-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_00481-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00481-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_00481-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00481-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_00481-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_00481.jpg b/static/wp-content/uploads/2012/01/IMG_00481.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_00481.jpg rename to static/wp-content/uploads/2012/01/IMG_00481.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0049-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_0049-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0049-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_0049-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0049-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_0049-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0049-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_0049-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0049-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_0049-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0049-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_0049-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0049-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_0049-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0049-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_0049-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0049.jpg b/static/wp-content/uploads/2012/01/IMG_0049.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0049.jpg rename to static/wp-content/uploads/2012/01/IMG_0049.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0050-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_0050-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0050-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_0050-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0050-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_0050-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0050-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_0050-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0050-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_0050-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0050-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_0050-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0050-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_0050-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0050-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_0050-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0050.jpg b/static/wp-content/uploads/2012/01/IMG_0050.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0050.jpg rename to static/wp-content/uploads/2012/01/IMG_0050.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0051-1000x288.jpg b/static/wp-content/uploads/2012/01/IMG_0051-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0051-1000x288.jpg rename to static/wp-content/uploads/2012/01/IMG_0051-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0051-150x150.jpg b/static/wp-content/uploads/2012/01/IMG_0051-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0051-150x150.jpg rename to static/wp-content/uploads/2012/01/IMG_0051-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0051-224x300.jpg b/static/wp-content/uploads/2012/01/IMG_0051-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0051-224x300.jpg rename to static/wp-content/uploads/2012/01/IMG_0051-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0051-764x1024.jpg b/static/wp-content/uploads/2012/01/IMG_0051-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0051-764x1024.jpg rename to static/wp-content/uploads/2012/01/IMG_0051-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/IMG_0051.jpg b/static/wp-content/uploads/2012/01/IMG_0051.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/IMG_0051.jpg rename to static/wp-content/uploads/2012/01/IMG_0051.jpg diff --git a/content/wp-content/uploads/2012/01/bilde-1000x288.jpg b/static/wp-content/uploads/2012/01/bilde-1000x288.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/bilde-1000x288.jpg rename to static/wp-content/uploads/2012/01/bilde-1000x288.jpg diff --git a/content/wp-content/uploads/2012/01/bilde-150x150.jpg b/static/wp-content/uploads/2012/01/bilde-150x150.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/bilde-150x150.jpg rename to static/wp-content/uploads/2012/01/bilde-150x150.jpg diff --git a/content/wp-content/uploads/2012/01/bilde-224x300.jpg b/static/wp-content/uploads/2012/01/bilde-224x300.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/bilde-224x300.jpg rename to static/wp-content/uploads/2012/01/bilde-224x300.jpg diff --git a/content/wp-content/uploads/2012/01/bilde-764x1024.jpg b/static/wp-content/uploads/2012/01/bilde-764x1024.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/bilde-764x1024.jpg rename to static/wp-content/uploads/2012/01/bilde-764x1024.jpg diff --git a/content/wp-content/uploads/2012/01/bilde.jpg b/static/wp-content/uploads/2012/01/bilde.jpg similarity index 100% rename from content/wp-content/uploads/2012/01/bilde.jpg rename to static/wp-content/uploads/2012/01/bilde.jpg