Page 2 of 5

Interfering in the way users are used to doing things is a no-no

Gainslog is a simple calorie tracker I made with only a handful of users. If you ever tracked your macros before, you know reaching your daily protein intake goal is the most difficult to attain from all three macronutrients (proteins, carbs, and fats). Once you hit your proteins target, the other ones come around easy.

Video quality and editing over great content

Great content is usually something entirely new or offers a different perspective on things we already know, but… consider fitness videos. Exercises don’t change over the years. Yes, the social media fitness industry keeps throwing at us different variations of the same exercise to keep us entertained, but the basics stay the same. Hands outside […]

More than ordinary

It’s immensely pleasing when the barber doesn’t need to ask how you want your hair done, or when the barista hands your favorite drink the second you sit at the bar, or even when things go wrong and apologies are made. More than ordinary. We love that. And we give back. It’s no longer just […]

Eloquent trick #1: Replace conditionals with “when”

It happens very often that we want to apply certain eloquent query conditions based on what a request sends in. Sometimes it’s a “search by name” thing, other times we just need to filter the records based on a status column. Usually it looks like this: public function index(Request $request) { $posts = Post::newQuery(); if […]

Thank you, apple, for letting us know we’re not alone

Feel bad for messing up something at work lately? You’re not alone :). Apple messed up big time. The bug lets you call anyone with FaceTime, and immediately hear the audio coming from their phone — before the person on the other end has accepted or rejected the incoming call. Read more here.

Amend git user information for all commits

It happened way too many times to push commits without realizing the author information was wrong. To fix it, I used to rebase, mark each commit to edit, and set the correct information. Today I found out there is a better way. The command bellow rewrites the entire commit history, updating the user name and […]

Bazinga! Enough is enough.

I’ve followed the Big Bang Theory series up until season 5 or 6. Can’t really remember when they got too boring for me. Today I learned Jim Parsons decided to quit, causing the show to close shop. Everyone in the cast wanted to continue, but Jim said enough is enough. It’s time to wrap this […]

My cowboy days are over

I did an oopsie today. It wasn’t bad. It was really, really bad. I was trying to figure out a “it doesn’t work on my end” problem on the live server and I accidentally ran a piece of code that blocked a few thousands of users from accessing the platform. Luckily, we had backups in […]

Remember what makes winter so great

It is only natural, as the years run by, for our priorities to change. We are no longer ditching, or hurrying homework to sneak outside and play. We are no longer concerned our sleigh is not fast enough. Or to have the biggest, fattest snowman in the whole neighborhood. But this winter we rolled the […]

© 2019 cdruc

Theme by Anders NorénUp ↑