My lessons from life and software development

  • I am my startup’s only customer, and it’s already profitable

    Over the last 6 months at my full time job, things have gotten a bit hectic. We’ve doubled our customers, added 3 more employees, and had a CEO who was busy with other projects. This had created a need for leadership and organization like never before. I saw an opportunity to step up but I…

  • Life Lessons from Stefan Sagmeister

    I recently saw a TED Talk by Graphic Designer Stefan Sagmeister. He takes the audience on a journey through moments of his life that made him happy. He focuses on which of these moments had to do with good design, but in one slide he lists bullets of “Things I’ve Learned In My Life So Far”.…

  • Number field types for both iOS and Android phones

    It’s a lot of work to be filling out a form from a mobile phone. Which is why we need to make it extra easy for them to input their data. One of the simplest things you can do is indicate that a field such as a phone number, zip code, or x is numeric.…

  • Adsense error: Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin [domain].

    I noticed this error when adding google adsense code to one of my sites. I thought it was just happening on my new site, until I checked my other sites and realized it was happening everywhere! I had no idea how long this had been going on for, but wanted to get it fixed ASAP.…

  • End of the day countdown in javascript

    Here’s how to have a realtime display showing how many hours, minutes, and seconds are left in the day: Time left until midnight: <span id=’HMSremaining’></span> <script> function calculateHMSleft() { //calculate var now = new Date(); var hoursleft = 23-now.getHours(); var minutesleft = 59-now.getMinutes(); var secondsleft = 59-now.getSeconds(); //format 0 prefixes if(minutesleft<10) minutesleft = “0”+minutesleft; if(secondsleft<10)…

  • Days Until Christmas in PHP

    Here’s how to calculate the days until Christmas using PHP: $daysuntilxmas = ceil((mktime(0,0,0,12,25,date(‘Y’)) – time()) / 86400); echo “There are $daysuntilxmas days to Xmas!”; You can combine this with my End of the day countdown javascript to have a realtime countdown with hours, minutes, and seconds. If you do that, decrement the $daysuntilxmas by 1…

  • WP Post Signature error: You do not have sufficient permissions to access this page

    I recently installed the WP Post Signature wordpress plugin so that a custom signature could be included in each of my posts. After installation from the Plugins -> Add New page, I clicked on the ‘Settings’ link from that same page and got the error: “You do not have sufficient permissions to access this page”. What…

  • Mobile Phone vs. Tablet Detection in PHP

    Since posting Simple Mobile Browser Detection in PHP I have received feedback indicating that an iPad is not considered a mobile device. It ultimately depends on your definition of ‘mobile’, but I see their point in that tablets are very different from cell phones. Screen size and browser capability are pretty different between mobile phones and tablet/pads, so I…

  • Simple Mobile Browser Detection in PHP

    In developing TaskShot, I wanted to determine which users were using their cell phones to browse the site. A quick search yielded many large classes, bloated snippets, and code that did way too much. All I needed was to detect if they were coming from a mobile phone or not. I figured the simplest way…

  • My Experience with ConceptFeedback.com

    I came across ConceptFeedback.com when looking for ways to get input on my Task Management App. The idea is simple – submit screenshots of your website to their community and as long as you have reviewed 5 other sites you’ll get people to review yours. There’s also a paid option where you can have expert…

About Shane

Shane is the creator of musician’s tool SongKeyFinder, and developer inspiration CodeKindly