Trying vim-plug

Software

I’ve used Vundle for years to manage my Vim plugins, but I saw vim-plug referenced in a plugin’s documentation, and thought it was worth a try. I don’t use many plugins, so the idea of a “minimalist” tool was appealing.

I added the following to my ~/.vimrc, with a larger and smaller plugin to test:

call plug#begin()
Plug 'sirver/UltiSnips'
Plug 'jsit/toast.vim'
call plug#end()

Then downloaded vim-plug into the ~/.vim/autoload/ folder:

$ mkdir ~/.vim/autoload
$ cd ~/.vim/autoload
$ curl -OL https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Now I can run :PlugInstall! to get them installed, surprising though it may seem.

Updated. Elapsed time: 14.727488 sec.
[==]
- Finishing ... Done!
- UltiSnips: Resolving deltas: 100% (527/527), done.
- toast.vim: Receiving objects: 100% (5/5), 4.94 KiB | 4.94 MiB/s, done.

That was it! Nice.

Thanks to Junegunn Choi and the contributors for this excellent tool. They’ve got a coffee coming from me.


My Hahndorf Inn Hotel mug

Hardware

Back in late March I started reviewing my coffee mugs. Today’s comes from the Hahndorf Inn Hotel in the Adelaide Hills.

I studied in Adelaide for a few years in the mid-2000s, and went up to the German village of Hahndorf as often as I could for a mental break and to see the sights. South Australia remains my favourite part of the country, and Hahndorf would rank up there among my favourite towns.

For a while they offered a promotion where you could “keep” your mug if you paid for a mugaccino or hot chocolate. They ended up giving me a brand new one in a padded box, which let it survive the trip back home in my luggage to KL where my family lived at the time.

Vim’s spell checker is insisting mugaccino isn’t a word. How barbaric!

Photo of the white porcelin mug on our balcony, with a black and white line drawing and lettering for the Hahndorf Inn Hotel.

It’s one of my favourites, as you can probably tell from the wear. The walls are a bit thicker, so it retains heat well. The lettering has only just started coming off after thousands of dishwasher and hand washing cycles, and the inside isn’t stained from coffee or tea at all. I’ve had mugs fifteen years its junior not fare as well.

Today I’m drinking some Madura English Breakfast from it on our balcony in Chatswood, which feels like another world away. Their loose leaf is the best, but even their teabags are excellent.


Music Monday: JJ Lin, Practice Love

Media

Today’s return to blogging happens to be a Music Monday, which is rather delightful. This song came right through the speakers of a bubble tea shop in Sydney, and instantly transported me back to the mid-2010s during happier times.

Play 林俊傑 JJ Lin - 修煉愛情 Practice Love (華納official 高畫質HD官方完整版MV)

Practice Love was seemingly everywhere when we went back to Singapore in 2014, from shopping centres to a taxi we got from the airport. The official music video is something else.

JJ Lin is a Singaporean musician, and one of those frustrating people who can sing in multiple languages. I’d happily accept talent in just English, let alone Mandarin, Hokkien, and Cantonese.


Waycross derailment in the US

Thoughts

Remote railfanning took an unexpected turn last night US time, or early afternoon in Sydney.

Clara and I had Virtual Railfan’s Folkston camera in Georgia up on our TV while we worked today, and we couldn’t help but notice a mixed-freight CSX train come to a stop. I saw the boom gates for the level crossing raise, indicating the train was going to be there for a while.

Screenshot from Virtual Railfan's Folkston, Georgia webcam, showing a CSX freight diesel locomotive waiting on a rail line behind a level crossing.

I was about to jump on and write a post about how I’d been learning more about how such signals work, before I saw someone in the live stream’s chat window comment about a derailment up the line in Waycross.

We jumped over to that stream by Virtual Railfan, and saw several uncovered wagons sitting in the dirt next to the main line. Crews were already there with trucks and excavators. Note the exposed bogie wheels in the far left, just above the blue and white truck.

Screenshot from Virtual Railfan's Waycross, Georgia webcam, showing three derailed hoppers with an excavator and engineers in hard hats.

It wasn’t clear from the video what the train was carrying. I’ve watched enough rail video around Georgia and Florida by now to know it could have had ammonium nitrate fertiliser which… would not have been fun in a derailed car. That might have explained the crews hosing down the hoppers, not sure.

This is the second time this year a goods train has had an incident in the US state of Georgia. I hope the drivers were okay.

Update: Almost ten hours since the derailment, that other train is still waiting at that Folkston level crossing. That’s a long night.


GamersNexus launches a Ukraine charity shirt

Thoughts

My favourite hardware review channel on YouTube has launched another in their Hardware Heart series, and it looks beautiful. From the description:

100% of the profit from the sale of this shirt will be given evenly to two charities (World Central Kitchen & International Fund for Animal Welfare). These organizations are donation-funded and are leading the charge on providing food and necessities to the people who have been affected by the conflict. World Central Kitchen supports both the remaining inhabitants of Ukraine and the refugees who have fled to neighboring countries. They work with IFAW on delivering food for people and their pets around Ukraine and outside of it.

THIS IS A PRE-ORDER AND SHIRTS WILL BE PRINTED TO ORDER. Sales will close on 11th May 2022 and WILL NOT re-open.

Steve also discussed it on his most recent news video which is worth checking out.

They did a shirt for the Australian bushfires in 2019-20 which raised more than $20,000. Let’s get the number even higher this time. Слава Україні. 💙💛

Limited charity shirt for Ukraine relief.


Dealing with depression (fun!)

Thoughts

So many of my technical posts here started because I learned something, and I figured it was worth making someone else’s life easier if I shared it. Today we’re doing some brain hacking, and exploring some thoughts that I’m sure are not uncommon in Our Current World™ right now.

For some personal background, is a phrase with four words. I’ve had anxiety for as long as I can remember. It was misdiagnosed a few times growing up, but it took a few panic attacks in my late twenties and early thirties for medical professionals to see exactly what was going on and to help with treatment and mental exercises. I still jump when a bus beeps a horn across the street, and my workspace always has to face into a room to avoid fight-or-flight panic, but that’s become manageable over the last few years.

What’s blindsided me over the last six months is depression. For all the family turmoil my sister and I suffered as kids, I only ever had what could best be described as teenage angst and sadness. I’ve been lucky that I’ve always had something to do, think about, and enjoy, even in the midst of bad things. I had worries about my future, but that manifested as anxiety, not depression.

I’m not sure what the spark was late last year. I suspect it was some family trauma, an overall case of ennui at the state of the world, not being able to travel (the main thing Clara and I save money to do), and not feeling like I was giving friends and work the attention they deserved. Easy things became difficult, and difficult things became insurmountable. That feedback loop is difficult to unwind once those neural networks are established.

One of my favourite quotes from my dad used to be that “only boring people get bored”, but now I appreciate that’s simplistic. Depression is insidious precisely because it sucks the joy and motivation out of doing things you otherwise love, or that you know you want to do. I look over at the pile of half-completed hobbies at my desk now, and shake my head with bemusement and exasperation that I can’t work up the fortitude to pick any of them up again.

Which leads me to what to do about it. It’s hard, and might not always be possible, but you need to see someone about it. I empathise that in the pits of it, it can seem ridiculous to think someone else could understand what you perceive to be a messed up state of mind, let alone offer help. I went through many sleepless nights thinking yeah, but what could they do, it’d be pointless. But in my case she was able to observe and offer insight I didn’t expect.

“Touch grass” has become a meme, but it does help too. I hadn’t noticed that I’d retreated indoors again instead of using our balcony for work and personal projects like I had last year. Sunshine and fresh air do wonders for my outlook, even if temporarily. I’ll take it.

I don’t feel like I have an especially severe case, but I have newfound respect for those of you who’ve spent your entire lives like this. Feeling like your own mind is working against your happiness, self-worth, and productivity is so many levels of fucked. You and I are worth more than these degrading thoughts. Big love from me.


A Sydney (Harbour!) wave and a smile

Travel

The last week has been hard again, so I took an unscheduled break. The highlight of the long weekend had to be walking across the Harbour Bridge for a change of scenery with Clara and her Blue Bear Cat. The break in our monsoon weather was rather nice.

Hope you’re well. We’ll return to our regularly-scheduled programming soon.

Photo taken from the Sydney Harbour Bridge on a fresh but partly-cloudy day.
Photo of Clara's little Blue Bear Cat enjoying the sunshine in Chatswood.


Vintage social network sentences

Internet

I read this on someone’s old blog post, and it took me a moment to realise it wasn’t a sentence:

Mixx Facebook Twitter Digg delicious reddit MySpace StumbleUpon

Also, how many of those are still around? Are we down to three?


Remote railfanning, and a live GP38-3 in Florida

Travel

Picture the scene: is a phrase with three words. Clara and I are camped out at a unique double-diamond rail crossing waiting for locomotives to pass us. Just as the morning sun crested the horizon, we heard the sound of two rebuilt CSX GP38-3s pulling an intermodal train. We hurriedly took a bunch of pictures and looked up the locomotive number online.

Granted the title gave away the punch line here, but Clara and I weren’t in Plant City, Florida on their chilly morning; we were half the planet away the following evening in Australia. It was equal parts surreal and awesome.

I grew up obsessed with trains, but I’ve had a resurgent interest in it of late, due in no small part to games like Train Simulator, and delightful YouTube channels like Distant Signal. When Danny suggested we follow Virtual Railfan’s web streams from around the US, we had no choice. It was so much fun seeing the very lines he explored in his videos, live!

This was the second locomotive in this consist, but the first I was able to screenshot by the time I saw it:

View of the CSX loco passing the double diamond in Plant City in early morning.

I looked up the loco number, and it’s a rebuilt GP38-3. I have a soft spot for GP38-2s from the original Train Simulator, so it seemed fitting that it’d be the first American loco I’d spot for real :).

We’ve had Japanese commuter railway cameras up for a while, but rural America has been a fun change of pace.


A market failure with sunk costs

Hardware

Have you ever wondered why people seem content on making the world a bit crappier, if it means they don’t lose a buck? A quid? Another insignificant amount of financial value?

Every time our company has moved to a bigger office, we’re faced with a wall of Ethernet cables that have been cut off a patch panel. The previous tenant would have spent peanuts on the panel, and probably won’t be using such a panel with butchered Ethernet connectors it at their new address, but they had to take it because it was theirs. Our ops guys then have to spend days tracing where each cable goes, crimping new connectors, and attaching them to a new panel.

That paragraph invoked the word panel at least four times. Panel. Patch panel. I heard you like panels.

The same thing happened when Clara and I moved panels. Moved house… damn it. The previous panel tenant must have affixed a water filter to the kitchen tap. When they moved out, they took the liberty of removing it and part of the tap assembly with them. Because they paid for it. It’s unlikely their new apartment would have the same tap as here, so they probably threw it away. But it now means we have a kitchen tap that sort of works, unless we or the landlord could be bothered to track down the specific model number and find a replacement.

This attitude of I paid for it, so screw the next person is the perfect example of a market failure and a negative-sum game. Both deal with societal loss when someone acts in their own selfish interest. Any incidental benefit gained from the previous tenants in these examples is disproportionately borne by the next person in money and effort. That sucks!

Technically, a tap that sucks would be the opposite of what you’d want. Like a decimated patch panel, which would be a patch panel with 10% of its ports damaged. Pardon, 10pc; with apologies to incorrect style guides.

Clara and I leave apartments in better condition than when we moved in, and the company I work for always leaves offices with things plugged in neatly for the next tenants. But that just shows that under our current economic system, regular people like you and I subsidise the selfish.

As with everything from digital privacy to patch panel shenanigans, you have to look at the incentives to understand the ways in which people behave. If you were selfish, why would you want to fix this system if others are willing to part with their time and money to accommodate you?

They may be right… but it won’t stop me oiling those hinges even if we’re about to move out, or leaving a labelled patch panel behind. Sucker!