Previously, we have looked at the navigation bar, the hero image, and the combination of the two. I figured that next natural step is to look at how to style the content on the page. I want to add some sort of visually pleasing container and Bulma‘s box class seems to be a good option. …Continue reading "Fixing JWS.app: Styling the content on the page"
Previously, we looked at using Bulma to improve the nav bar and we looked at ways we could improve the hero image. I figured that this week, we would combine the two. See the Pen JWS.app – Hero with Nav by Joe Steinbring (@steinbring) on CodePen. I kind of like this look but the nav …Continue reading "Fixing JWS.app: What if we merged the nav bar with the hero image?"
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 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()"