PeterSmith.Org

Tēnā koe! Ko Peter tōku ingoa — Greetings! My name is Peter.

Peter posing in his office

I am a teacher and lecturer at the University of Auckland, where my main teaching and research activity is in the field of strategy. I am particularly interested in Strategy-as-practice (a practice-based view of strategy), Professional service firms, especially engineering firms, and Innovation as strategy, especially technology roadmapping (TRM).

This website is my little corner on the Internet. As well as being something of a commonplace book, I am trying to make this website into the hub for my online identity and communications.

A blog entry updated on 20 Dec 2023

It's a long story, but at the end of the day, I wanted a little raspberry pi 4B, to auto login and run a script (on the console only).

This is how I got it going.

Full item …

A blog entry updated on 6 Dec 2023

Here at the University of Auckland, we have access to the library of courses and training from Skillsoft. Browsing through the immense catalogue, I notice a short course (30 minutes or so) on containerised application. So, I thought I would give it ago.

AWS SysOps Associate 2021: Application Containers badge

AWS SysOps Associate 2021: Application Containers badge

Full item …

A blog entry updated on 20 Nov 2023

I wanted to tidy away a server and mover to using docker containers under WSL. That's a story for another day.

But when I have a server running in my docker container, that I can happily access via https://localhost:9443, how do I access it from the local LAN. I.e., use https://example.com:9443

There is a lot written on this and the problems associated with it.

What to do.

Full item …

A blog entry updated on 9 Nov 2023

There are a lot of "recipes" out there for how to start cron under wsl when a Windows PC starts up. I won't bore you with why I wanted to do that. Suffice to say, the recipes didn't work for me. But eventually, I found a way.

Full item …

A blog entry updated on 17 Oct 2023

I have written a a few times about importing Fastmail calendars into orgmode.

This week, I have been reworking it; I had move to using Exchange/Outlook for my calendaring again, but whilst on RSL/sabbatical, I walked away from that approach, and returned to having my calendar in Fastmail and importing the details into orgmode.

Full item …

A blog entry updated on 2 Jul 2023

This post by Stephen Downes took me to this piece on the adoption of interactive touchscreens. I won't repeat much (if anything) of what was said there, but led (via a tweet) to this diagram on deep learning created by Impact Wales. What a chain of links! There is so much 'curation' of content going on here.

But my point was that the digram is very useful, such that I wanted to keep a record of it.

Full item …

A blog entry updated on 28 May 2023

A very solid flat white … Or was it more of a cortado? Either way, it was good, and just what we needed after fighting our way through the crowded streets of Tenby.

Full item …

A blog entry updated on 27 May 2023

After a 2 hour drive this coffee and tea cake were most welcome. Look at the size of that tea cake! Newport is an interest place of contrasts; a very modern shopping centre and a very old traditional high street.

Full item …

A blog entry updated on 23 May 2023

A kick-ass cortado. Thank you, that’ll definitely nicely.

Full item …

A blog entry updated on 7 May 2023

A stroll in the woods around Zürich.

Full item …

A blog entry updated on 10 Apr 2023

Having a ¨heiße Schokolade" or more colloquially as ¨heiße Schoggie¨ is something of a ´thing´ here. So, we did, at one of the best places for them, the Milch Bar.

You know its good when your hot chocolate is made from Lindt chocolate mix. And the milk was so very creamy.

Full item …

A blog entry updated on 8 Apr 2023

A lovely Easter coffee and sweet pastries.

Full item …

A blog entry updated on 7 Apr 2023

I arrived in Zürich on Monday to continue my sabbatical (Research and Study Leave) at the University of Zürich.

As always, I broke the trip to Europe with a stopover; this time spending a couple of days in Los Angeles (but that´s another story).

The University of Zürich sits besides ETH Zürich (the federal technical university). Both have similar numbers of students and it seems as if there is a healthy rivalry between them.

Full item …

A blog entry updated on 1 Apr 2023

We went to Downtown LA to do a bit of sightseeing, etc, and had excellent cortados from Bluebottle Coffee.

Of note, the cafe is in the Bradley Building, which featured in Bladerunner. The building has been done up rather nicely and seems like a rather exclusive haunt.

Full item …

A blog entry updated on 18 Feb 2023

Lovely day for a stroll around the ‘burbs.

Full item …

A webmentions entry posted on 27 Jan 2024

Thanks for the recommendation Chris. I've been pondering it for a while now; basically putting off doing anything. Then I came across this post on how many zettelkasten. I think you and the post have pushed me over the edge, and I'll start the process of 'collapsing' my separate Zettelkästen into my commonplace book.

A blog entry updated on 11 Feb 2023

Part of the 'Uptown' block party.

Full item …

A blog entry updated on 7 Feb 2023

A fun visit to the Tip Top factory. No photos allowed inside because of ‘ice cream spies’.

Full item …

A blog entry updated on 31 Jan 2023

So this is how my site has looked over the years.

Full item …

A blog entry updated on 28 Jan 2023

SSL certificates are something of a pain for me. I have a number of devices that need then. For example, I use Zotero and keep all my .PDFs on my NAS. That requires WebDAV, and https is the only way to go, so my Synology NAS needs an SSL certificate. Nowadays, the way to go seems to be Let's Encrypt.

Full item …

A blog entry updated on 27 Jan 2023

For the rice pudding 50g pudding rice 1 cinnamon stick 1 vanilla pod, split lengthways 30g golden caster sugar A large pinch of flaky salt 550ml whole milk 200ml double cream For the apples 350g bramley apples, peeled, cored and roughly chopped into 2cm pieces 60g light brown sugar or golden caster sugar 1 tsp vanilla bean paste (optional) Put the rice, cinnamon, vanilla, caster sugar, salt, 400ml of the milk and the double cream in a medium saucepan and bring to a gentle simmer over a medium heat.

Full item …

A blog entry updated on 27 Jan 2023

Schabram, K., Bloom, M., & Didonna, D. (2022). Recover, explore, practice: The transformative potential of sabbaticals. Academy of Management Discoveries. https://doi.org/10.5465/amd.2021.0100

Sabbaticals have seen an exponential growth in adoption over the last two decades and are ascribed extensive benefits by employers and employees alike. Little is known, however, about how individuals spend their time or how their experiences impact them after they return to work. Drawing on narrative interviews with 50 diverse professionals, we discover that sabbaticals combine "building blocks"− distinct periods dedicated to recover, explore, or practice− into three typical trajectories: working holidays (alternating recovery and practice), free dives (alternating recovery and exploration), and quests (unfolding from recovery to exploration to practice). While participants returned from all sabbaticals feeling affirmed in their own voice, periods of exploration and practice were associated with the extent to which sabbaticals fundamentally changed their self-narrative and disrupted the trajectory of their working lives. Those on working holidays tended to return to their former lives (though with a greater confidence and need for balance), while free divers pursued better fitting but similar work (e.g., a change in position or employer), and questers were most likely to make drastic career changes. Our model extends the breaks literature and authenticity scholarship, and offers insights to those considering a sabbatical.

Full item …

A blog entry updated on 26 Jan 2023

As I work towards integrating my Zettlekasten with this commonplace book, I need a way to have backlinks between my pages; e.g., when I reference/create a link, say, from "Page 1" → "Page 2", I want to automagically create a backlink that goes in the other direction "Page 1" ← "Page 1".

Full item …

A blog entry updated on 25 Jan 2023

I rather like the way Karl Voit shows how pages have been updated on his site. It's not a Hugo site, but I can see the value in doing something like that.

First, you should know I am using page bundles. It seems clean to have all the 'content' for a page in one place. Secondly, I'm using org files and not .md files (no markdown).

Rather than actually modify posts when there is an update, I want to add a separate file with the details of the update. In the example below I might have two updates to the blog entry made on 2022-12-27.

Full item …

A blog entry updated on 25 Jan 2023

Free ice cream courtesy of the Link Alliance. Yum, yum, yum. There was also some street art. I couldn't quite make out what the text said. I think it is, "Forget about the last one. Get yourself another". If so, that's from a song by "Th'Dudes" called "Bliss".

Full item …

A blog entry updated on 25 Jan 2023

This is something of a synthesis of two presentations I found on the web.

Much of the advices applies to publishing in many/most/all management and organisation studies journals. I.e., it is important to have a clear research question, a rigorous methodology, and a well-written and well-structured manuscript that adheres to the journal's guidelines. Additionally, it is important to have a strong and relevant theoretical or practical contribution to the field, and to properly cite and acknowledge any previous research that has influenced the research. Finally, it is important to be able to clearly communicate the significance and implications of your findings for practitioners and future research.

Full item …

Now

A pages entry updated on 23 Jan 2023

My About Me page provides a thumbnail sketch of who I am. This page, is more about what I'm doing and planning to do now.

Full item …

A blog entry updated on 22 Jan 2023

Getting some fresh air in a new part of town.

After shopping at Mitre 10 and Bunnings (::sigh:: neither store had all we wanted, so we had to got to both), we went for a wee walk. We've not walked around here before. The artwork was rather nice.

Full item …

A blog entry posted on 22 Jan 2023

To have responsive images, I used a shortcode for figures. I modified it to handle SVG and rotated images. Alas, I had some other problems with it (too hard to change the size of the images generated for srcset). So I have switched to the code by Charl P. Botha. It's pretty nice.

And again, I've made it work for both SVG and rotated images.

Full item …

A blog entry updated on 15 Jan 2023

I am in the process of redesigning the site. Well, technically, I'm just doing a new skin (layout, template, or whatever). As part of that I wanted to have a gallery function.

So, this page is my 'test bed' for my gallery shortcode. Basically, it just displays all the images associated with the current page bundle.

Full item …


Webmentions
If you webmention this page, please let me know the URL of your page.

BTW: Your webmention won't show up until I next "build" my site.

  • A reply by Evgeny Kuznetsov on 11 Jan 22 at https://evgenykuznetsov.org/en/reactions/2022/re-011120357/

    To accomodate a complex layout like this, webmention.io-backup would have to parse the config file and look up the date field in all the content files' front matter to figure out which directory corresponds to which website page (basically, the way Hugo does it when it creates the pages in the first place). Programming all this is not impossible, of course, but it would be quite an endeavor that I’m not sure I want to embark on, especially considering the fact that one’s config.toml may contain something along the lines of

    [frontmatter]
      date = [':git', 'lastmod']
    

    I don’t want to open that can of worms!

    These ‘mentions’ on my side aren’t being threaded back to the original post.

    Beware, this is Salmention territory you’re stepping into. There be dragons.

  • A reply by Evgeny Kuznetsov on 10 Jan 22 at https://evgenykuznetsov.org/en/reactions/2022/re-010174726/

    I see.

    The reason webmention.io-backup is failing to correctly work your directory structure is that it expects the directory structure to mirror the URL path, that is, it expects petersmith.org/blog/2022/01/10/third-steps-to-indieweb/ to reside in content/blog/2022/01/10/third-steps-to-indieweb/. In your setup, that directory doesn’t exist; instead, content/blog/20220110-third-steps-to-indieweb is used. I suppose, you are using permalinks config option to achieve that? If so, that’s quite a problem, because in this case webmention.io-backup can not really infer the directory name, since the URL is formed based on the date parameter and not based on the first 8 digits of the directory name, right?

    I mean, I can make a patch for webmention.io-backup to work on your directory structure, it’s fairly trivial. But I’d be reluctant to incorporate it in the main branch, because it wouldn’t be flexible at all.

  • A mention by  on 14 Oct 21 at https://petersmith.org/blog/2021/10/14/second-steps-in-indieweb/

    ...After my first steps to IndieWeb, I got a really helpful message from Robbi Nespu. Alas, I've not (yet) got webmentions working in any real way, and the page he commented on had a broken URL (all my problems, not Robbi's).

  • A reply by Robbi Nespu on 10 Oct 21 at https://robbinespu.gitlab.io/indieweb/211010050323/

    Hello Peter Smith, How going? I also using Hugo, the getting webmention response working is easier if using a javascript called as PlaidWeb/webmention.js . Some tips from my experience :

    • Setup the h-card because it important and needed for indieAuth (to use some external services such as https://webmention.io )
    • You may use https://xray.p3k.io to inspect if the HTML are parse correctly, you can submit the URL or just paste the raw HTML (even with localhost / 127.0.0.1 addressed inside the source code, it working very well). It save my time during debugging.
    • I also use https://telegraph.p3k.io to preview (check) if all link inside h-entry support webmention. You also can manually send webmention by give a source and target from there.
    • Lastly, validate published web using https://indiewebify.me/ get your website until level 3.

    Hope this helpful 😀

  • A mention by robbinespu  on 18 Dec 22 at https://brid.gy/post/twitter/robbinespu/1604448117360844805

    ...📝 New post: ↩️ Reply to: petersmith.org/webmentions/li… - ➡️ journal.robbi.my/posts/22121807…

  • A reply by Robbi Nespu on 18 Dec 22 at https://journal.robbi.my/posts/221218071647/

    Previously, I always send my URL to the Wayback Machine to archive it. But now, I have a better way to do it. I use the Gitlab CI/CD service to send my URL to the Wayback Machine. It is a free service and it is very easy to use. I just need to add a few lines of code to my Hugo build script.

    Here is an example:

    First, I need to add some python script called archivenow during build stage.

    pages:
      stage: deploy
      script:
        - hugo --verbose --minify --enableGitInfo
        - git clone git@github.com:oduwsdl/archivenow.git
        - cd archivenow
        - pip install -r requirements.txt
        - pip install ./
        - cd ..
        - ./submit10url2backway.sh
        - echo 'Build is complete and feed submited to web archieved..!!!'
    

    Then, I need to add “submit10url2backway” script to send my URL to the Wayback Machine. Here is the script:

    #!/usr/bin/env bash
    # Copyright Robbi Nespu <contact@robbi.my> , 2022
    # License: MIT
    
    # This script is used to archive my website to the Internet Archive.
    
    # Fetch RSS and read the first 10 URLs send send it to the Wayback Machine
    urls1=$(curl -s https://robbinespu.gitlab.io/index.xml | grep "<link>" | head -n 10 | awk -F"<guid>" '{print $2} ' | awk -F"</guid>" '{print $1}')
    for i in $urls1
        do  archivenow --ia --is --mg "$i"
    done
    
    # Same like previous but for the IndieWeb RSS
    urls2=$(curl -s https://robbinespu.gitlab.io/indieweb/index.xml | grep "<link>" | head -n 10 | awk -F"<guid>" '{print $2} ' | awk -F"</guid>" '{print $1}')
    for i in $urls2
        do  archivenow --ia --is --mg "$i"
    done
    
    # Archive the main website
    archivenow --ia --is --mg "https://robbinespu.gitlab.io/"
    echo "Done!"
    

    But I have turn off / comment out the script since a year ago because I don’t want to archive my website too often (because I added a webhook to execute CI/CD when received payload from webmention ).

    Plus this tricks only work for existing old post, the new post not being archived yet because pipeline still running and it the “artifacts” still un-publish.

    I only want to archive it when I have a new post. So, I will archive it manually 😊

  • A mention by robbinespu  on 18 Dec 22 at https://brid.gy/post/twitter/robbinespu/1604546453375967233

    ...📝 New post: ↩️ Reply to: petersmith.org/webmentions/li… - ➡️ journal.robbi.my/notes/22121807…

  • A reply by Robbi Nespu on 18 Dec 22 at https://journal.robbi.my/notes/221218071647/

    Previously, I always send my URL to the Wayback Machine to archive it. But now, I have a better way to do it. I use the Gitlab CI/CD service to send my URL to the Wayback Machine. It is a free service and it is very easy to use. I just need to add a few lines of code to my Hugo build script.

    Here is an example:

    First, I need to add some python script called archivenow during build stage.

    pages:
      stage: deploy
      script:
        - hugo --verbose --minify --enableGitInfo
        - git clone git@github.com:oduwsdl/archivenow.git
        - cd archivenow
        - pip install -r requirements.txt
        - pip install ./
        - cd ..
        - ./submit10url2backway.sh
        - echo 'Build is complete and feed submited to web archieved..!!!'
    

    Then, I need to add “submit10url2backway” script to send my URL to the Wayback Machine. Here is the script:

    #!/usr/bin/env bash
    # Copyright Robbi Nespu <contact@robbi.my> , 2022
    # License: MIT
    
    # This script is used to archive my website to the Internet Archive.
    
    # Fetch RSS and read the first 10 URLs send send it to the Wayback Machine
    urls1=$(curl -s https://robbinespu.gitlab.io/index.xml | grep "<link>" | head -n 10 | awk -F"<guid>" '{print $2} ' | awk -F"</guid>" '{print $1}')
    for i in $urls1
        do  archivenow --ia --is --mg "$i"
    done
    
    # Same like previous but for the IndieWeb RSS
    urls2=$(curl -s https://robbinespu.gitlab.io/indieweb/index.xml | grep "<link>" | head -n 10 | awk -F"<guid>" '{print $2} ' | awk -F"</guid>" '{print $1}')
    for i in $urls2
        do  archivenow --ia --is --mg "$i"
    done
    
    # Archive the main website
    archivenow --ia --is --mg "https://robbinespu.gitlab.io/"
    echo "Done!"
    

    But I have turn off / comment out the script since a year ago because I don’t want to archive my website too often (because I added a webhook to execute CI/CD when received payload from webmention ).

    Plus this tricks only work for existing old post, the new post not being archived yet because pipeline still running and it the “artifacts” still un-publish.

    I only want to archive it when I have a new post. So, I will archive it manually 😊

Word count: 200 (about 1 minutes)

Published:

Updated: 27 Jan '24 06:52

Author: Peter Smith

Permalink: https://petersmith.org/

Section: page

Kind: home

Bundle type: branch

Source: _index.org