Dino’s Journal

A peek into the mind of a sleep deprived software developer, husband, dad and gamer.

In Part 1, I covered how I generated links to the Previous and Next post for my “indexed” journal entries. In this post, I'll talk about how I generated the links for non-indexed journal entries.

Handling Old Journal Entries

So, now that I have navigation working for my “indexed” entries. I turned my attention to my precursor journal entries. These entries don't use base 10 numbers as indexes in their slugs/URLs. For example, the post slug for Journal Entry – I ends in “I”, which is a roman numeral. Same goes for Journal Entry – II, III, IV and so on. To further complicate things, I decided to leave the post slugs unchanged for other precursor journal entries. The post slug for Journal Entry – XV for instance is still “decisions-decisions”. I thought about writing JavaScript that would convert roman numerals to base 10 numbers. But then that won't work for non-indexed entries like Journal Entry – XV.

Shot myself in the foot right there, huh? >_<

Read more...

Ignore the negative people. Instead of whining and complaining, focus your time and energy on living. Focus it on actually doing or creating something. That's a far better use of your time and energy. And you'll be a better person for it.

Love this. This is similar to what Jocko Willink said in his book Discipline Equals Freedomignore and outperform. Love it.

Link: Unhappiness

Tags: #Bookmarks #SelfImprovement

I've never been interested in getting an Apple TV subscription, until today. This documentary on Dads looks wonderful.

Happy Father's Day to all the Dads out there!


Found out about this documentary from maique. I would have linked to the Micro.blog post itself, but there doesn't seem to be a way to do that.

Tags: #Parenthood #FathersDay

Fallout 4 BoS Power Armor One of the easiest ways to get decent Power Armor in Fallout 4, is to join the Brotherhood of Steel.

Tags: #GameScreenshots #Fallout4

Update 06/22/2020: Didn't realize that the JavaScript that I talked about in this post, was actually creating a Next link for this post. It thought this was a Journal Entry post, because it found that text in here. That's hilarious, but that is also part of the fun of tinkering. I have fixed it.

Finally got full blog post navigation working for my Journal Entries. If you have JavaScript enabled on your browser, you could effectively navigate from Journal Entry – I up to Journal Entry – XVI, then continue on to Journal Entry – 001, all the way up to the latest one (as of this writing), Journal Entry – 060. You can also navigate from Journal Entry – 060, all the way back down to Journal Entry – I.

Getting Post Slug and Index

To make navigation work between blog posts in a series, I made use of a standard format for post slugs/URLs. I call them “indexed” entries because I added an index to the end of the slug/URL. For example, “journal-entry-001”, “journal-entry-002”, “journal-entry-003” and so on. It's really just a way to help me figure out the sequence of posts.

So, first off, here is the JavaScript for getting the post slug from the URL. Then from there, getting the post index from the slug. Without this code, it will be impossible to automatically generate the links to the Previous and Next posts.

var element = document.querySelector('meta[property="og:url"]');
var content = element && element.getAttribute("content");

// Get post slug
var postSlug = content.split('/').pop();
var postIndex = postSlug.split('-').pop();
Read more...

It's a game that has been on my radar for a couple of years now and that $14.99 price point was just too good to pass up.

I find myself in the same situation. I usually wait till a game's price drops to $20 and below before I buy them. That's how I bought XCOM 2, Sleeping Dogs and other video games.

The game is open ended MMO, but the galaxy can be explored off line as well. I like to do things at my own pace, so I'll be playing the game off-line at least for the foreseeable future.

Interesting, I might check this out then. Can it be paused at any time? One of the things I look for in games nowadays is if it can be paused at any point in the game. This is so I can respond to calls for milk and cookies from my little gremlins.

Read more...

The Facebook Dilemma is a two part documentary from Frontline. Here is a description of the documentary from their website:

The promise of Facebook was to create a more open and connected world. But from the company’s failure to protect millions of users’ data, to the proliferation of “fake news” and disinformation, mounting crises have raised the question: Is Facebook more harmful than helpful? This major, two-night event investigates a series of warnings to Facebook as the company grew from Mark Zuckerberg’s Harvard dorm room to a global empire. With dozens of original interviews and rare footage, The Facebook Dilemma examines the powerful social media platform’s impact on privacy and democracy in the U.S. and around the world.

Overall, it was a pretty good documentary. They weren't lying about the original interviews and rare footage. It reveals insights into company culture — why Facebook is the way it is now and how they got there.

Read more...

Could not use the Xbox because Davin was watching Cars yet again. So, I decided to watch the PBS Documentary The Facebook Dilemma instead. What a very interesting one. I'll talk about it in a separate post.


Eat until you are 80% full. A good tip I read from the Japanese Contentments book. I also need to start implementing it.


Decided not to exercise and instead went to work assembling the glider for Coney. This was going to be my exercise. Unfortunately, the hardware needed to assemble the glider was missing. Not to mention, the Ottoman that came with it was damaged. Last time, we returned the glider because the base on the glider was damaged. This time, since only the Ottoman is damaged, we've decided not to return the glider. We instead called customer service to ask them to send us the missing hardware and a replacement for the damaged Ottoman.

Read more...

The Witcher

No spoiler thoughts on Season 1 of The Witcher on Netflix. It is a pretty good show. The story was interesting, though the way it was told was confusing (more on this further below). The fight scenes were great. The dialogue was funny. Geralt's one liners were hilarious. The bard Jaskier was great as comic relief. The soundtrack was pretty good too. I'm assuming the songs composed for the show were original ones? If so, they were pretty good. For awhile after watching the finale, I kept singing, “Toss a coin to your Witcher, oh valley of plenty.” Damn that song is so catchy! There is some nudity, but not enough to make me feel uncomfortable watching it around kids. Certainly not as much nudity as in Game of Thrones.

Okay, so the way they told the story was weird and confusing. The scenes that focused on Ciri represented the current/present time in the story. The scenes focused on Geralt were flashbacks. The show never tells you this though. I only figured it out 4 episodes into the show. The scenes that focused on Geralt, start as flashbacks and progress forward until you get to the last episode of the season. That is where the story of Geralt finally catches up to the present time in the story. It sounds cool now that I think about it, but it ended up confusing me. They could have handled it better I suppose. Still a really good show. I'm looking forward to Season 2.


This post is Day 3 of my #100DaysToOffload challenge. Visit https://100daystooffload.com to get more info, or to get involved.

Tags: #TVShow #100DaysToOffload

It has been a stressful week for reasons I don't want to elaborate on. But there was good news yesterday and that's all that matters right now. What a coincidence it is, that yet again, these are the kind of songs I have lined up for today. Anyway, it's time for another music log Friday.

The first track today is perhaps my best discovery last year. It is the song “Shine” by Mondo Cozmo. I do not remember where I heard it from. It was probably from the Top 50 Rock Songs of 2019 countdown. Honestly, not the song I expected to hear from an artist who does folk rock/indie rock music. But either way, this is a great song. It is about trusting in Jesus and living life the best you can, without telling others how to live their lives. It reminds me of something I read in the Word on Fire Bible — that each one of us is responsible for our own salvation. Stop looking at what other people are doing and focus instead on what you should be doing.

This song has some really good lyrics too. It starts out with this:

Stick with me Jesus through the comin' storm I've come to you in search of something I have lost Shine down a light on me and show a path I promise you I will return if you take me back

Then on the bridge there's the lyrics below. It nearly brought tears to my eyes when I first heard them. This is such a good song.

Come with me Mary through these modern lines Stick with me Jesus til' the end of time Shine down a light on me and let me know And take me in your arms and never let me go

Read more...

Enter your email to subscribe to updates.