Last week, we looked at more ways to tweak the nav bar on JWS.app. This week, I figured that we would move down to the hero image. The current hero image is dynamically generated based upon a subset of images on photos.jws.app. It doesn’t look great, though. See the Pen JWS.app – Hero (Before) by Joe Steinbring …Continue reading "Fixing JWS.app: The Hero Image"
This year has caused a lot of plans to go out the window. You can’t travel, go to school (in person), or even grab a beer at the neighborhood bar. As we always do, we find a way though. Two of the conferences that I have really enjoyed in the past are going online, this …Continue reading "Two really promising upcoming “pay what you want” online conferences"
Last week, we looked at two ways to fix the nav on JWS.app. For the first option, we simply added an additional header that displays when the screen width gets narrow enough. For the second option, we introduced a hamburger menu. This week, let’s look at two new options. The first of this week’s options …Continue reading "Fixing JWS.app: The Nav Bar (Part 2)"
Back in April, I posted about creating JWS.app and I knew at the time that there were issues with it. This new “Fixing JWS.app” series is all about addressing those issues. The first thing that we are fixing is the nav bar. Let’s look at what we are dealing with.Continue reading "Fixing JWS.app: The Nav Bar"
Back in May, I bought a 2016 VW e-Golf (my first electric car). Before I bought it, I did a ton of research and I knew theoretically what I was getting into but really needed to figure out a few things in practice. Two weeks after it arrived at my house, I tried a roadtrip …Continue reading "Living with an electric car in Wisconsin: The Heater"
Back in 2011, I wrote few short posts about what I install right after reinstalling windows. I figured that 9 years is enough time between these kinds of posts. This time, I’m going to go over my prefered tools for writing code.Continue reading "My prefered tools for coding"
For day 21 of 21 in the “PHP Function of the day” series, I’m going to look at sha1(). This is similar to the md5() function that we looked at on day 12. I’ll start by saying that sha1 isn’t great and should not be used for storing password hashes. Let’s take a look. <?php $stringToHash = …Continue reading "PHP function of the day: sha1()"
For day 20 of 21 in the “PHP Function of the day” series, I’m going to look at array_rand(). The function takes a required array and an optional number of random keys to return. It returns a random key (not the value). Let’s take a look. <?php $names = array(“Joe”,”Jim”,”Sarah”,”Jill”); $numbers = array(1,2,3,4,5,6,7,8,9); $names_rand_keys = array_rand($names,3); $numbers_rand_keys …Continue reading "PHP function of the day: array_rand()"
For day 19 of 21 in the “PHP Function of the day” series, I’m going to look at date_diff(). Let’s take a look. <?php $shoppingDay=date_create(“2020-05-28”); $payDay=date_create(“2020-06-01”); $difference = date_diff($shoppingDay,$payDay); print_r($difference); echo “<br /><br />”.$difference->format(“%R%a days”); ?> See the output As you an see, this calculates the difference between two dates (something that could be pretty …Continue reading "PHP function of the day: date_diff()"
For day 18 of 21 in the “PHP Function of the day” series, I’m going to look at srand(). The function lets you specify the seed for rand(). In modern versions of PHP, rand() is seeded automatically and there is no real reason to do this. So, why the explanation? YOLO? 🙂 Let’s take a look. <?php …Continue reading "PHP function of the day: srand()"