Reorganise and tidy up

This commit is contained in:
2018-09-14 15:53:01 +02:00
parent 13b1f91da0
commit 8693bc10be
50 changed files with 55 additions and 70 deletions
@@ -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 <a style="color: #0000ff; text-align: left;" href="http://maps.google.no/maps?f=q&source=embed&hl=no&geocode=&q=%C3%98vre+Storgate+1B&aq=&sll=61.143235,9.09668&sspn=19.475471,35.244141&vpsrc=0&ie=UTF8&hq=&hnear=%C3%98vre+Storgate+1B,+3018+Drammen,+Buskerud&t=m&z=14&ll=59.743467,10.203002">with Google Maps.</a> Press buzzer 4A. Wait for the nice people to let you in. First, go to Øvre Storgate 1B. You can find it <a style="color: #0000ff; text-align: left;" href="http://maps.google.no/maps?f=q&source=embed&hl=no&geocode=&q=%C3%98vre+Storgate+1B&aq=&sll=61.143235,9.09668&sspn=19.475471,35.244141&vpsrc=0&ie=UTF8&hq=&hnear=%C3%98vre+Storgate+1B,+3018+Drammen,+Buskerud&t=m&z=14&ll=59.743467,10.203002">with Google Maps.</a> Press buzzer 4A. Wait for the nice people to let you in.
[<img class="size-medium wp-image-55 alignleft" title="IMG_0045" src="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0045-224x300.jpg" alt="" width="224" height="300" srcset="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0045-224x300.jpg 224w, https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0045-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][1] [<img class="size-medium wp-image-55 alignleft" title="IMG_0045" src="/wp-content/uploads/2012/01/IMG_0045-224x300.jpg" alt="" width="224" height="300" srcset="/wp-content/uploads/2012/01/IMG_0045-224x300.jpg 224w, /wp-content/uploads/2012/01/IMG_0045-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][1]
You find yourself in a hallway. There is a welcoming door here. Go through the door and turn right. You find yourself in a hallway. There is a welcoming door here. Go through the door and turn right.
<div style="clear: both;" /> <div style="clear: both;" />
[<img src="https://jamesmcdonald.com/wp-content/uploads/2012/01/bilde-224x300.jpg" alt="" title="bilde" width="224" height="300" class="alignleft size-medium wp-image-57" srcset="https://jamesmcdonald.com/wp-content/uploads/2012/01/bilde-224x300.jpg 224w, https://jamesmcdonald.com/wp-content/uploads/2012/01/bilde-764x1024.jpg 764w, https://jamesmcdonald.com/wp-content/uploads/2012/01/bilde.jpg 1434w" sizes="(max-width: 224px) 100vw, 224px" />][2] [<img src="/wp-content/uploads/2012/01/bilde-224x300.jpg" alt="" title="bilde" width="224" height="300" class="alignleft size-medium wp-image-57" srcset="/wp-content/uploads/2012/01/bilde-224x300.jpg 224w, /wp-content/uploads/2012/01/bilde-764x1024.jpg 764w, /wp-content/uploads/2012/01/bilde.jpg 1434w" sizes="(max-width: 224px) 100vw, 224px" />][2]
There&#8217;s a door on the right to the garage. Go through it and turn left.</p> There&#8217;s a door on the right to the garage. Go through it and turn left.</p>
<div style="clear: both" /> <div style="clear: both" />
[<img src="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0047-224x300.jpg" alt="" title="IMG_0047" width="224" height="300" class="alignleft size-medium wp-image-56" srcset="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0047-224x300.jpg 224w, https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0047-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][3] [<img src="/wp-content/uploads/2012/01/IMG_0047-224x300.jpg" alt="" title="IMG_0047" width="224" height="300" class="alignleft size-medium wp-image-56" srcset="/wp-content/uploads/2012/01/IMG_0047-224x300.jpg 224w, /wp-content/uploads/2012/01/IMG_0047-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][3]
Cross the garage. There&#8217;s a raised area at the back with a door on the left.</p> Cross the garage. There&#8217;s a raised area at the back with a door on the left.</p>
<div style="clear: both" /> <div style="clear: both" />
[<img src="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_00481-224x300.jpg" alt="" title="IMG_0048" width="224" height="300" class="alignleft size-medium wp-image-73" srcset="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_00481-224x300.jpg 224w, https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_00481-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][4] [<img src="/wp-content/uploads/2012/01/IMG_00481-224x300.jpg" alt="" title="IMG_0048" width="224" height="300" class="alignleft size-medium wp-image-73" srcset="/wp-content/uploads/2012/01/IMG_00481-224x300.jpg 224w, /wp-content/uploads/2012/01/IMG_00481-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][4]
Go through the door which leads to the bottom of the back stairwell. The complicated bit is now over!</p> Go through the door which leads to the bottom of the back stairwell. The complicated bit is now over!</p>
<div style="clear: both" /> <div style="clear: both" />
[<img src="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0049-224x300.jpg" alt="" title="IMG_0049" width="224" height="300" class="alignleft size-medium wp-image-60" srcset="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0049-224x300.jpg 224w, https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0049-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][5] [<img src="/wp-content/uploads/2012/01/IMG_0049-224x300.jpg" alt="" title="IMG_0049" width="224" height="300" class="alignleft size-medium wp-image-60" srcset="/wp-content/uploads/2012/01/IMG_0049-224x300.jpg 224w, /wp-content/uploads/2012/01/IMG_0049-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][5]
Climb up 2 flights of stairs.</p> Climb up 2 flights of stairs.</p>
<div style="clear: both" /> <div style="clear: both" />
[<img src="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0050-224x300.jpg" alt="" title="IMG_0050" width="224" height="300" class="alignleft size-medium wp-image-61" srcset="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0050-224x300.jpg 224w, https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0050-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][6] [<img src="/wp-content/uploads/2012/01/IMG_0050-224x300.jpg" alt="" title="IMG_0050" width="224" height="300" class="alignleft size-medium wp-image-61" srcset="/wp-content/uploads/2012/01/IMG_0050-224x300.jpg 224w, /wp-content/uploads/2012/01/IMG_0050-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][6]
Oh no! Another flight of stairs. Nearly there though.</p> Oh no! Another flight of stairs. Nearly there though.</p>
<div style="clear: both" /> <div style="clear: both" />
[<img src="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0051-224x300.jpg" alt="" title="IMG_0051" width="224" height="300" class="alignleft size-medium wp-image-62" srcset="https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0051-224x300.jpg 224w, https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0051-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][7] [<img src="/wp-content/uploads/2012/01/IMG_0051-224x300.jpg" alt="" title="IMG_0051" width="224" height="300" class="alignleft size-medium wp-image-62" srcset="/wp-content/uploads/2012/01/IMG_0051-224x300.jpg 224w, /wp-content/uploads/2012/01/IMG_0051-764x1024.jpg 764w" sizes="(max-width: 224px) 100vw, 224px" />][7]
Woo, you made it! Go through this door 😀</p> Woo, you made it! Go through this door 😀</p>
If you&#8217;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! If you&#8217;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 [1]: /wp-content/uploads/2012/01/IMG_0045.jpg
[2]: https://jamesmcdonald.com/wp-content/uploads/2012/01/bilde.jpg [2]: /wp-content/uploads/2012/01/bilde.jpg
[3]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0047.jpg [3]: /wp-content/uploads/2012/01/IMG_0047.jpg
[4]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_00481.jpg [4]: /wp-content/uploads/2012/01/IMG_00481.jpg
[5]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0049.jpg [5]: /wp-content/uploads/2012/01/IMG_0049.jpg
[6]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0050.jpg [6]: /wp-content/uploads/2012/01/IMG_0050.jpg
[7]: https://jamesmcdonald.com/wp-content/uploads/2012/01/IMG_0051.jpg [7]: /wp-content/uploads/2012/01/IMG_0051.jpg
@@ -4,18 +4,6 @@ author: james
type: post type: post
date: 2012-06-11T16:42:20+00:00 date: 2012-06-11T16:42:20+00:00
url: /2012/06/hardcoded-gnomeish-composition/ 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: categories:
- Tech - 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&#8217;s the best way to do that? Clearly snarf what&#8217;s already there, bolt on your own bits and hardcode the lot into your binary. 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&#8217;s the best way to do that? Clearly snarf what&#8217;s already there, bolt on your own bits and hardcode the lot into your binary.
Well done, chaps. Well done, chaps.
@@ -4,8 +4,6 @@ author: james
type: post type: post
date: 2012-12-08T13:36:46+00:00 date: 2012-12-08T13:36:46+00:00
url: /2012/12/import-things-tasks-into-apples-reminders/ url: /2012/12/import-things-tasks-into-apples-reminders/
dsq_thread_id:
- 964365161
categories: categories:
- Apple - Apple
- Hacks - 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&#8217;s <a href="http://culturedcode.com/things/" target="_blank">Things</a> 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: A neat trick you can do with Cultured Code&#8217;s <a href="http://culturedcode.com/things/" target="_blank">Things</a> 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:
<pre class="lang:default highlight:0 decode:true " title="Things export" >- Make lists of things <pre class="lang:default highlight:0 decode:true " title="Things export" >- Make lists of things
- Procrastinate (Try making scripts to manage lists of things) - Procrastinate (Try making scripts to manage lists of things)
</pre> </pre>
This is all very well, but there&#8217;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&#8217;d just written down. This is all very well, but there&#8217;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&#8217;d just written down.
Here&#8217;s the AppleScript code to accomplish this feat. Here&#8217;s the AppleScript code to accomplish this feat.
<pre class="lang:applescript decode:true " title="Reminders Importer" >-- Reminders Importer <pre class="lang:applescript decode:true " title="Reminders Importer" >-- Reminders Importer
-- James McDonald &lt;james@jamesmcdonald.com&gt;
-- Imports a text file into Reminders as one task per line.
-- 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.
-- 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"
tell application "Reminders" if not (list "Import" exists) then
if not (list "Import" exists) then make list with properties {name:"Import"}
make list with properties {name:"Import"} else
else tell list "Import" to delete reminders
tell list "Import" to delete reminders end if
end if end tell
end tell
tell application "Reminders"
tell application "Reminders" repeat with l in paragraphs of (read file "Users:james:Documents:tasks.txt")
repeat with l in paragraphs of (read file "Users:james:Documents:tasks.txt") if length of l is not 0 then
if length of l is not 0 then if l starts with "- " then
if l starts with "- " then set l to characters 3 through end of l as text
set l to characters 3 through end of l as text end if
end if
if l contains "(" then
if l contains "(" then set AppleScript's text item delimiters to "("
set AppleScript's text item delimiters to "(" set b to text item 2 of l
set b to text item 2 of l set l to text item 1 of l
set l to text item 1 of l set AppleScript's text item delimiters to ")"
set AppleScript's text item delimiters to ")" set b to text item 1 of b
set b to text item 1 of b set AppleScript's text item delimiters to ""
set AppleScript's text item delimiters to "" else
else set b to "" as text
set b to "" as text end if
end if tell list "Import"
tell list "Import" make reminder with properties {name:l, body:b}
make reminder with properties {name:l, body:b} end tell
end tell end if
end if end repeat
end repeat end tell
end tell
</pre> </pre>
Yes, I know. AppleScript is weird. Yes, I know. AppleScript is weird.
So, now that I&#8217;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&#8217;s this afternoon. Yay! So, now that I&#8217;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&#8217;s this afternoon. Yay!
+1 -1
View File
@@ -11,4 +11,4 @@ Things you can grab.
My [current CV][1], or at least the most recently updated version thereof. 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 [1]: /wp-content/uploads/2010/08/Curriculum-Vitae-James-McDonald.pdf

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 180 KiB

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 180 KiB

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 185 KiB

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 131 KiB

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Before

Width:  |  Height:  |  Size: 462 KiB

After

Width:  |  Height:  |  Size: 462 KiB