Blog

Programming insights to Storytelling, it's all here.

Ibrahim Diallo

Page - 4

2020

April

Count the number of words with MySQL

Count the number of words with MySQL

I was looking for a way to count the number of words in a blog post using MySQL. Most solutions I found online required I create a function. I wanted something simpler instead, something as close to a native function as possible. And the answer that occurred to me was to use the Length() and Replace() function with a catch.

March

How I learned to charge my customers

How I learned to charge my customers

After I completed my first programming class, I went straight to Craigslist. I advertised my programming services. I called myself an experienced programmer who could code anything. I posted a link to a website, the one and only I had built for a friend. I described the challenges regular people face when building their own website, then I said a few bad things about WordPress. I ended the post with these words: "I charge a fair price."

Making the impossible possible

Making the impossible possible

One weekend morning, I got up at 7 am. I wore a white t-shirt and black shorts, I tightened my shoes and went down to gym in our apartment building. I had one machine in mind. The treadmill. This wasn't a very active year for me. The only exercise I was familiar with was walking to the bus stop to get to work, and walking to the bus stop to get to school. But that day, I was determined to do cardio.

The Spam we love to read

The Spam we love to read

I have the bad habit of reaching for my phone the very instant I wake up. I start straight with emails, where I get replies from coworkers or companies I work with. They respond to my emails from the evening before, ask for status reports, or schedule meetings. I read and respond from bed before starting my day. But last week, I realized something that has gone unnoticed for a while. I had no new emails from my coworkers, but my screen was full of unread messages. In fact, I had read all messages that mattered, yet there were more in my inbox. I pulled the left navigation and looked at my spam folder. It was empty.

Should I use a CSS reset?

Should I use a CSS reset?

A CSS reset is a tool that reconciles the differences in rendering between different browsers. In the old days, each browser was its own beast. They each came with their own default styles. Internet Explorer had different rules for your un-styled H1 tags vs Chrome or Firefox. Every browser set their defaults to what they thought was a good starting point. There were no predefined rules that they all followed. It was more of a culture than a standard. Fast forward to today, and each web browser had complete overhaul. Yet we see more consolidation.

February

With RSS, You are in Control

With RSS, You are in Control

When I wrote the code that would run this blog, there was no way I could have left out an RSS feed. Early on, before I wrote any valid HTML, I made sure that each post I write was first available through RSS. If I had stayed a year without posting, the day I do, you'd see a new update on your favorite RSS reader.

January

Cubicles are cool again

Cubicles are cool again

It was 2012 when everyone gathered around a cubicle, carefully trying not to step on each other's toes. “So sorry!” one would say. “It's fine.” another would answer. It was an important day in tech and stepping on someone's toes to get a look at the dual monitors was only a minor offense. But the monitors were not the main attraction. It was what they displayed. The manager opened two browser windows. One on each screen and scrolled one at a time to allow everyone to see it.

2019

December

I stood up to my boss, then he got promoted

I stood up to my boss, then he got promoted

There is a special feeling I get on a Sunday evening. Sunday is the weekend and I am home relaxing with my family after a well deserved break. But Sunday evening is the end of the weekend, the end of that pleasant break. I have to go back to work the next day. This is the time I like to sit by the kitchen table by myself, thinking about a better future. One where I don't have to obey the traditional rules of work. I don't want to put my life on pause on a weekly basis and dedicate the time to my employer for a modest fee.

November

Why are TVs so Cheap?

Why are TVs so Cheap?

If you told me that on Black Friday, I could get a 75 inch TV for the price of a smartphone, I'd say that it must be a top of the line smartphone. But it is not price of smartphones that skyrocketed to reach that of TVs. It's the price of TVs that went down to an almost ridiculous number.

October

We never paid for Journalism

We never paid for Journalism

In 2006 at around 4 am, a man appears at the door of a security booth in Downtown Los Angeles. He slowly opens the door, being careful not to be noticed. He grabs the key attached to a small crowbar hanging by the door, then slowly heads back to his truck. 45 minutes later, he comes back the same way and drops the key off then leaves the premises.

JS Tip of the day

How to get an element position on the page

This used to be a painful thing to find on the page. Well it wasn't but almost everyone suggested you use a hacky way to find the correct position of an element…

Photography