Cameras

I just got back home from Laracon in NYC and this year I decided I should take my real camera pictured above. I carried it around taking photos for two days then the battery went dead and I forgot the charger. doh. From that point forward I only used my iPhone.

Now that I’m home I started reviewing all the photos and to be honest I think I like all the picture from my phone better than the ones I took with this dedicated camera. Granted I’m not a “real” photographer but for how easy carrying a phone is versus one this size I just don’t think it’s worth the effort to carry a dedicated camera anymore.

Trust

Another day, another report of a security issue. I guess I need a tinfoil hat because I’m to the point where I don’t trust apps, extensions, or much of anything.

For my phone I download a few games, and a few utility style apps, but for everything else I use Safari where I can run blockers to prevent sites spying on me. It’s such a sad world that this is what the internet has become.

I used to think Stallman was crazy, but now I’m starting to see his point.

Seasons

Having a daily routine is important as it allows you to coast through the day knowing what comes next. For most people, daily routines include going to work, having dinner, picking up the kids, etc. and once it’s ingrained into your daily life it seems to just happen.

I’ve noticed for me my routine of creating stuff changes based on the seasons. In the winter when it’s cold and it gets dark at 5 PM, I tend to spend more time on the computer writing, drawing, or coding. Then when the time changes and the weather turns warm I want to be outside away from all this.

A good example of this is this blog. Check out the yearly posting schedule. From October – February I posted a ton, then the time changed and I’ve stopped writing.

Screen Shot 2019-07-08 at 3.57.35 PM.png

At the end of the day, there are only 24 hours and if you can’t keep up a daily habit because you’d rather do something else don’t let that bother you. To quote Olin Miller, “You probably wouldn’t worry about what people think of you if you could know how seldom they do!”. Just push it aside and pick it up again when you are ready to start back.

This is also why I’m a fan of TV shows having seasons, Podcast doing seasons, and even software development going through sprints. It allows you a dedicated time to do something then move on to something else. When the end is in sight you can push to it.

Note to self…

dont-tweet-when-angry.jpeg

Note to self… Do not tweet when I’m angry. Nothing good can from it and nine times out of ten it’ll end in more frustration and heartache.

“Thoughts On” journals

Derek Sivers has a blog post from back in January on the benefits of a daily diary and topic journals and this part is something I started trying:

There are certain subjects in your life you think about a lot. People, places, hobbies, health, plans, finances.

For each subject that you might have ongoing thoughts about, start a separate “Thoughts On” journal. Whenever you have some thoughts on this subject, open up that file, write today’s date, then start writing.

I’ve started doing this in my notes app and once I see something that makes me think I open it up and start writing.

thoughtson.png

Derek describes his thoughts on like this:

I find it so useful to keep my thoughts on each subject together, because I can see my past thoughts and current thoughts in one place. I can see how my thoughts on this subject have evolved or keep repeating. Sometimes I think I have a new thought on a subject, so I open up the file and write it down, then afterwards I see I had that same thought a year ago and had forgotten about it. If you care about your thoughts, keep them.

For me, each has been more of a rant. I see something on the internet and that enrages me so I write down all my anger. Then I’m done with it and I don’t have to think about it again. Next time you want to argue on the internet write it down and move on with life. I promise you’ll be happier.

If Else in SQL

Today I hit an interesting problem and when creating a report for an internal billing system. The system itself automatically bills each customer every year and we have two types of customers. One that pays with a credit card through Stripe, and another type that we invoice and their billing departments pay.

Because invoices take longer for us to be paid we always create the invoice 30 days before it’s actually due and for Stripe customers,​ we do it 7 days early. This way if anything goes wrong like a declined credit card it gives them extra time to fix it before becoming delinquent.

Of course, the side effect to this is it causes our stored “next billing date” to be 7 or 30 days off depending on the type of customer, and we keep the original date in case the customer ever decides to switch from one to the other.

With that setup out of the way, I needed to create a list of customers ordered by when they would be billed. Like all things, there are many ways to solve this but for this, I decided to do it directly through SQL. What I wanted to happen was if an organization is a Stripe customer then creating a “real_bill_date” set to 7 days before it’s due, otherwise create a “real_bill_date” to 30 days prior.

Here is the query I was able to create:


SELECT
  CASE
    WHEN
      organizations.stripe_active = \'1\'
        THEN
          DATE_SUB(next_bill_date,INTERVAL 7 DAY)
    ELSE
      DATE_SUB(next_bill_date,INTERVAL 30 DAY)
  END AS real_bill_date,
  organizations.*
FROM
  organizations 
WHERE 
  subscription_active = 1
ORDER BY 
  real_bill_date ASC

This uses SQL WHEN/ELSE clauses to determine what should be happening. Basically translating into “if Stripe is active, then subtract 7 days”, “else subtract 30 days”.

This is useful for the next time you think you have to do a query and then do a query looping each to get a calculated field. Yes, that typically works but is process intensive and can lead to timeouts. Doing it directly through SQL is usually much faster.

Own Your Narrative

In my local paper,​ there was a story about a guy doing something dumb, the internet found it and now the insanity has started spiraling. He was fired from his job, now getting death threats, and on and on. The article ended with a quote from him saying, “now when anyone searches his name this event will be the first thing that comes up and will continue to affect my life”.

This is a reminder of why it’s so important to own your own narrative. Have your own blog or website where ​you can control the SEO, you can respond to whatever event on your own terms, and bypass the journalist that have their own narrative that may not match your own.

Many (most) journalists​ are spin doctors and they already know the angle they are going to take on a story before they even contact you. They will take your quotes out of context and they will bury if that is what their story calls for. Without having your own medium to fight back you might be at their mercy, and that is not somewhere you want to be.

Plan For YOUR Users​

Today the CommitStrip featured this comic about losing touch with your users. It’s really great:

Strip-Codeuse-et-ecran-4k-650-finalenglishV3.jpg

But it also made me think about the other side of this. If you are building something where your target market is someone really close to yourself then, by all means,​ take advantage of that. One thing that comes to mind is fonts for code blocks on your personal blog. You are probably save using source code pro or something that isn’t preinstalled yet many developers have it installed.

Of course, there are many more examples of how you can take advantage of what you target user will be using and it never hurts to plan for them first with simple fallbacks for the others.

Relaunching dotdev

A few years ago, 2016 according to my projects page, I launched a site named dotdev. The original goal was a developer magazine, but that didn’t really work out, so then it turned into a Medium publication where I curate web development tutorials. Due to Medium’s constant changes, I decided sticking with them was not a great idea so I moved all the articles I had written over to a WordPress install and just left it sitting.

I’ve been thinking about it ever since and finally decided its time for me make use of the site and I’m going to officially relaunch it on Monday. Instead of developer tutorials, it’s going to be a site dedicated to bringing you cool developer tools and news. There are so many neat apps, code, and products that I come across that I’d really love to share them but I don’t have a great outlet for that. So dotdev is going to be that place. The goal is to curate and highlight products that I think are cool and each post will be short and to the point, so it’ll be easily digestible​.

dotdev-screenshot.png

The site will continue to be on WordPress and I’m using Tailwind CSS to create the theme with the help of Jason Beggs. I wanted something super minimal and the goal right now is to just get content out and stick with it. I plan to improve it as time goes on and I’m setting little milestones so when I hit one I’ll spend more time improving it.

If developer tools and resource are something of interest to you be sure and follow dotdev through RSS, Twitter, Facebook, or Email.

Sleep, Glorious Sleep

sleep

For the past month, I’ve started going to bed and waking up at set times, and it’s been amazing. Every night 10 PM is bedtime, lights out, and no talking, then every morning 6:30 AM is wakeup time. I’ve been really consistent and started using a sleep app as a way of tracking it.

sleep-analysis

As you can see, I cheated a little over the weekend, but since starting this habit, I’ve felt the best I have in years. I’m no longer tired every day, and in need of a nap. Instead, I feel great and now that my body has acclimated at around 9:50 PM my body tells me it’s bedtime.

We all know sleep is essential but if you’ve been struggling, try going to bed and waking up the same time every day, even on the weekends. I know you’ll lose a little bit of reading or work time, but it’s worth it.

iOS Do Not Disturb While Driving

Since iOS 11 Apple introduced a featured called “do not disturb while driving” where it tries to detect when you are driving and prevent notifications. On the surface, it sounds like a great feature and I enabled in a few weeks ago thinking it would make driving safer.

What I found in practice is it’s been very annoying for me. I’m not a Siri user and when I stop at red lights I typically unluck my phone and change the music. It’s not been sensitive enough to know that I’m now stopped so every time I have to select the option, “I’m not driving” which turns the whole thing off.

I imagine if I used Siri more often, I could just use that to tell it to play something new, but as I’ve written before I have no confidence in Siri, so I don’t use it. I think “do not disturb” while driving is a useful feature and I’m all for it, but right now it isn’t really polished enough for me and feels like more of an annoyance than anything.

It’s one of those features that is so close to being perfect I want to keep it activated, but at the same time, I think I’d prefer to just turn it off and be done with it.

How about you? Is this a feature you use? Am I the one doing it wrong and it’s really a great feature? Feel free to sound off in the comments below.

Bullet Journaling

bullet-journal.jpeg

Todo lists are my kryptonite. I’ve used them all and I’m never satisfied. I like the scheduling components of digital and how easy it is to add, move, or arrange different tasks but I also like physically writing them all out.  It’s a vicious cycle. One week I’m using Todoist, then the next I’m back to pen and paper.

One of the advantages to pen and paper that many people forget about is it creates a type of daily log book with every day outlined. I enjoy looking back on a day from a year or two ago and seeing exactly what I was working on, what I was focused on, and what my day was like. I’ve been doing that for a few months now and it works, but some tasks are falling through the cracks when I don’t complete them on the day I write them down.

That is where The Bullet Journal comes in. I have the daily log down, but I was missing the rest of the structure. The index, the monthly log, the future log, and migrations. All of those combined with the daily log create the whole process and makes it a decent system.

The book outlines all these steps (you can find this online for free), plus goes into details about the preparation, the practice, making it your own, and much more. It also makes a great desktop resource that you can quickly reference if you forgot how something is supposed to work.

This week I’ve been doing it every day and I’m feeling more focused. I spend about 20 minutes each night planning out the next day and reflecting on what I did or didn’t do on the current day.  Here is my plan from last night:

bullet-journal-daily-log

Since I love to draw it’s also giving me a reason to pull out the colored pencils and create a daily calendar. There are so many different ways you can bullet journal and I’m finding that I like using their system as a base and then just add on to as needed. For example, if I have something on my mind, I flip to a new page and just start writing to get it out of my head. I’ve honestly been doing that a lot when I come across articles or tweets I disagree with. After writing it out I lose interest in engaging in the futile art of social media banter. Also, when I come across a quote I like I flip the page and write it down.

quotes

All in all, it’s a pretty engaging system and if you are unhappy with how you are keeping up with your tasks give it a try. It might suit you or it might not, and to me, life is all about trying new things to see what sticks.

Vintage Instagram

Stringed Picture Hanger

For a long time, I’ve wanted one of these for my office wall. I’m not exactly sure what to call it, but it’s an excellent way for me to hang up art my kids have created and pictures that I’ve taken that I might want to share with friends and family. Even though I’ve shared most of these before on digital channels, I think there is something more personal about looking at them hanging on a wall in your home, and now I can see them every time I walk in and out of my office. Double win.

Blowing Rock

Yesterday was my 40th birthday so I took the day off work, let the kids skip school, and we headed up to the mountains of NC to visit Grandfather Mountain and walk across the swinging bridge. After our 2+ hour drive, we arrived and at the entrance, the guard said the top of the mountain included the bridge was closed for maintenance. Talk about disappointment.

We pulled out the map and found that Blowing Rock was nearby and it’s a place we’ve never visited so headed in that direction. On the way, we stopped at a few overlooks to stretch our legs and get some photos. Even though the trip didn’t go as planned it was still a lot of fun. Here are some of the photos from the trip.

Pedialyte – A Marketing Success Story

A few weeks ago I went on a vacation to the city that is in the middle of the desert, Las Vegas. Even though it was technically late winter or early spring the weather is always dry and hot.

On the massive billboards down the strip, I kept seeing marketing for Pedialyte. Something to the effect of “Stay hydrated Vegas, drink Pedialyte.” It stuck in my head because I’ve always thought of children when I hear the word Pedialyte.

Flash forward to this past week when I’ve been mountain biking every day, and I got dehydrated. The first thing that came to mind was Pedialyte, and I went out and bought some.

They didn’t use invasive tracking pixels, they couldn’t measure engagement, it was just an old school traditional advertisement with a simple message everyone can relate to. That’s marketing!

Closed Captioning

Kottke has a new post outlining why everyone is watching TV with closed captioning turned on and it made me think of my own habits and how I’ve started using it.

I think around six months ago I would be watching a movie and it seemed like I had to have the volume fairly loud to hear the dialog, but then when scenes played music the music was super loud. So then I’d have to turn it down, only to turn it back up again 30 seconds later. I thought it was quite annoying and rude of the movie producers.

Anyway, because of this I turned on closed captioning so I didn’t have to fiddle with the remote or the volume. Since doing it I don’t even like watching TV without it on, and as far as I know I don’t have any hearing problems.

Of course, I’d also rather read a blog post than listen to a podcast. I think maybe I’m just wired to prefer reading over listening.

PHP: Underscores for Private

Jeffrey Way released a new Laracasts Snippet, and in it, he mentioned a tweet from me:

In the podcast, he talked about how PHP felt more “libertarian” in the early days. The underscore represented that this should be protected or private and even though this is a recommendation from the creator of the code, you are an adult, and if you want to do something with it, then you accept the risk.

The language and community have since switched the stance, and now everyone wants to restrict it with the feeling that if it’s code you are writing, then you know best how it should be used.

I’m not sure one way is better than the other, but as I mentioned in the tweet, I miss the old days.