Musings of a dad with too much time on his hands and not enough to do. Wait. Reverse that.

Tag: miscellany (Page 5 of 8)

Assessing my Posts

The end of the year is a traditional time to reflect back and assess one’s actions for the past twelve months. So, what better time to do a little analysis on what I’ve been posting on this blog.

Getting my blog data

As far as I can tell, I have no way to download summary information on my posts from the WordPress console; however, some information–title, category, tags, publishing date, etc.–is available in a table in the Posts section of the console. So, I used the handy Table-to-Excel browser extension to copy the contents of the table to a CSV file that I could later process with Python.

Parsing the raw data

The blog data from my administration console didn’t copy down so nicely. Here’s some code I wrote to clean up the data and get it into a dataframe for cleaner work later:

blog_data = []

with open('./data/raw_post_data.txt', 'rb') as f:
    for raw_line in f:
        line = raw_line.decode("utf-8")
        title = line.split('false')[0]  # do some initial trimming of the row
        data_part = line[line.find('Brad')+4:]  # splitting on the "author" value
        data_list = data_part.split('\t')
        blog_data.append([title.strip(), data_list[1].strip(), data_list[2].strip(), data_list[5].strip()])
    
df_blog_data = pd.DataFrame(blog_data[1:], columns=['title', 'categories', 'tags', 'published'])
df_blog_data = df_blog_data[df_blog_data.title!='All']  # remove the header row from the dataframe

Afterward, I cleaned up my dataframe a little and added a few more columns:

df_blog_data['publish_date'] = df_blog_data.published.apply(lambda p: datetime.strptime(p.split()[1], '%Y/%m/%d'))
df_blog_data['year'] = df_blog_data.publish_date.apply(lambda p: p.year)
df_blog_data['month'] = df_blog_data.publish_date.apply(lambda p: p.month)

Time for some analysis

With a relatively manageable dataframe, I can generate some charts and do a little analysis. With the following code, I take a look at how prolific I’ve been with blogging:

width =0.3
fig, ax = plt.subplots(figsize=(10, 6))

df_blog_data[df_blog_data.year==2019].groupby(['month']).count().iloc[:,[0]].plot(kind='bar', ax=ax, width=width, position=0, color='orange')
df_blog_data[df_blog_data.year==2018].groupby(['month']).count().iloc[:,[0]].plot(kind='bar', ax=ax, width=width, position=1, color='blue')

_ = ax.set_title('Number of Blog Posts: 2018 - 2019')
_ = ax.set_ylabel('Number of Blog Posts')
l = ax.legend()
l.get_texts()[0].set_text('2019')
l.get_texts()[1].set_text('2018')

…and the results:

The number of blog posts I’ve written over the last two years

Well, I clearly peaked six months into the life of this website and it’s been downhill from there. At least in 2019 I think I’ve pretty consistently delivered three posts a month.

So, what sort of content have I been delivering? Categories and tags should tell this story. For the most part, I’ve tried to assign only one category per blog post, but not always. So, to try to get an idea of how often I’ve used each category on the site, I had to do a little gymnastics to pull out each category separately and report each count. Here’s the code I came up with:

df_cats = pd.DataFrame( ','.join( df_blog_data.categories.tolist()).replace(' ', '').split(','), columns=['category'])
fig, ax = plt.subplots(figsize=(10, 6))

_ = df_cats.groupby('category').size().plot(kind='barh', ax=ax, color='mediumpurple')
_ = ax.set_title('Categories used for blog posts: 2018 - 2019')

This blog is clearly heavily weighted toward technology. I also have an Uncategorized category in there which means I forgot to categorize one of my previous posts. I definitely need to work on adding more general and genealogy-type posts just to keep things interesting.

To analyze my use of tags, I wrote roughly the same sort of code:

df_tags = pd.DataFrame( ','.join( df_blog_data.tags.tolist()).replace(' ', '').split(','), columns=['tag'])
fig, ax = plt.subplots(figsize=(10, 6))

_ = df_tags.groupby('tag').size().sort_values().plot(kind='barh', ax=ax, color='green')
_ = ax.set_title('Tags used for blog posts: 2018 - 2019')

Well, I do like tools–especially the software kind! I had feared that python would be a dominating topic, but it’s not as bad as I thought and even the parenting topic is a close fourth. In the future, I would like to write more about the college experience as I have recently become the parent of a college student and will add another to that list in the not-too-distant future. I must also write more on the podcast topic as I do make much use of that medium in my lengthy commutes to and from work. And, so here’s to more quality posts in 2020!

How are you doing?

Chances are, most days you’re asked this question at least once if not dozens of times. The majority of the time, though, the questioner doesn’t really care about your response. This statement is simply another form of hello; unfortunately, since it is in the form of a query, the recipient feels compelled to respond.

Are you merely average?

The average, even expected, response to this question is to simply utter “good” or “o.k.” I say phooey on that! Buck the system! Be different! Stand out!

As a social experiment, you could reply with something like “I’m horrible!” or “I’m having a rotten day!” and test the sincerity of your inquisitor, but I say do the opposite: provide an over-the-top positive response.

Even if you’re not feeling splendiferous, saying that your are can be beneficial:

  • It can help you stand out in the eyes of your questioner, which can be important in work and social situations.
  • it can paint you as a generally positive or go-to type person in the minds of your associates–again, a good quality to be ascribed.
  • it can help improve your vocabulary as you look for new and interesting words to describe your effervescence, and
  • you might just start believing that you truly are exuberant if you say it enough times. (And who doesn’t want to be exuberant as much as possible?)

So, the next time someone asks you “how’re you doing?” try replying with one of these (with bonus points for three or more syllables):

  • awesome
  • bombastic
  • buoyant
  • canny
  • cheerful
  • competent
  • dynamite
  • excellent
  • excited
  • fabulous
  • fantastic
  • great
  • ineffable
  • jolly
  • jovial
  • jubilant
  • magnificent
  • phenomenal
  • resilient
  • rhapsodic
  • salubrious
  • sanguine
  • smashing
  • spectacular
  • stupendous
  • terrific
  • tremendous

Any questions?

Horshack has a question

It seems like half the email I receive at work ends with some variation of:

“Please let me know if you have any questions.”

Often, I’m tempted to reply with some snarky, off-topic question. I refrain, but if I did reply, it’d be a query with a subtle allusion to pop culture, with bonus points for a 70s or 80s reference. The canonical example is from the masterpiece Monty Python and the Holy Grail:

“What is the air-speed velocity of an unladen swallow?”

Aside from this classic, here is my list of other nonsensical questions carefully culled from pop culture:

What’s the meaning of life, the universe, and everything? (The Hitchhiker’s Guide to the Galaxy, 1979)

After speculating on the fitness of African and European swallows, questioning the meaning of our existence is probably the next great question truly showcasing your wit in the workplace. Although, this one’s a bit trite by now. Let’s see if we can do better.

What was the middle thing? (A Fish Called Wanda, 1988)

The leader of a group of bank robbers goes into lengthy details about how they will perpetrate their crime without leaving evidence. At the end of the explanation, when the leader asks if anyone has any questions, dimwitted Otto pipes in with this pearl.

When it comes to stewed prunes, are three enough? Four too many? (Fletch, 1985)

During a voice-over, investigative reporter Irwin Fletcher lists out all the questions of his investigation that are still troubling him. He ends his list with this gem.

What would you say you do here? (Office Space, 1999)

A must-see for any office worker, one of the sub-plots of the comedy pits the employees of Initech against two efficiency consultants, looking to trim the company payroll in order to boost company profits. In one hilarious exchange, the consultants do seem to uncover a truly ineffectual employee and cut to the chase with this question.

Over Macho Grande? (Airplane 2, 1982)

I don’t think I’ll ever get over Macho Grande.

I know you can be overwhelmed and you can be underwhelmed, but can you ever just be whelmed? (10 Things I Hate About You, 1999)

This is a reasonable question.

Who run Bartertown? (Mad Max Beyond Thunderdome, 1985)

The archetype of dystopian cinema, the Mad Max movies were full of violence, despair, and questions of authority.

¿Donde está la biblioteca, Pedro? (Dodgeball, 2004)

The villain, White Goodman, is expanding his chain of fitness centers to Mexico and must now brush up on his Spanish. It is always important to know where your local library is.

Where’s the beef? (Wendy’s commercial, 1984)

These Wendy’s commercials were a hit back in the 80s. Time to bring back the age old question.

I know he can get the job, but can he do the job? (Joe Versus the Volcano, 1990)

In the same vein as Office Space–let’s call these Work Dystopian cinema–Joe Versus the Volcano is the story of a man mired in mediocrity longing to do something extraordinary. In one scene, the audience gets to listen in on Joe’s boss, Mr. Waturi, having an absolutely inane phone conversation with another manager. If only I had a dollar for every similar conversation I’ve been part of over the course of my career.

What Can You Get a Wookiee for Christmas (When He Already Owns a Comb)? (Star Wars Christmas Album, 1980)

I guess they do celebrate Christmas in a galaxy far, far away or else droids wouldn’t struggle with such serious, gift-giving quandaries.

Do you know where the weight room is? (Tommy Boy, 1995)

Initially, I considered the other sage question from Tommy Boydid you eat a lot of paint chips when you were a kid?–but I thought that was a little too mean for these purposes.

What’s in the box? (Se7en, 1995)

Ok, I probably shouldn’t end this post with this question. Maybe I should have went with my first choice: Dude, where’s my car? (A fantastic film in its own right.) But, I’ll throw caution to the wind and finish with this one. Whatever you do, though: don’t look in the box!

« Older posts Newer posts »

© 2024 DadOverflow.com

Theme by Anders NorenUp ↑