Skip to content

joho.se

  • WordPress
    • Fail2WP
    • EasyMap
    • Cloudbridge Mattermost
    • Shortcodes for Font Awesome
  • Öppet Moln
  • Send spam
  • find.me
    • Matrix, joho68
    • Mastodon, @joho
    • Twitter, joho68
    • Github, joho1968
    • Instagram, hobo68
    • Instagram, 1968geek
    • Instagram, 1968photo
    • 1968photo.com
joho.se
joho.se

joho.se

  • WordPress
    • Fail2WP
    • EasyMap
    • Cloudbridge Mattermost
    • Shortcodes for Font Awesome
  • Öppet Moln
  • Send spam
  • find.me
    • Matrix, joho68
    • Mastodon, @joho
    • Twitter, joho68
    • Github, joho1968
    • Instagram, hobo68
    • Instagram, 1968geek
    • Instagram, 1968photo
    • 1968photo.com

Development

WordPress Plugin Stopsign 1.0.0

21-Apr-2020

Using the APIs over at trafiklab.se can yield some quite useful results. I needed to be able to display the commute stop departure times for public transport in a given place, so I wrote this WordPress plugin called Stopsign. It uses the Trafiklab.se API. The …

Read more

Categories Development, WordPress Tags code, plugin, source code, wordpress

Please use proper message headers (FFS)

12-Feb-2020

Please don’t write code that generates e-mail messages if you are unable to read specifications. Thank you.

Categories Development Tags developers, development, e-mail, headers, messages, rfc822, smtp, specs

SwiftMailer 5, PHP5, and ISO-8859-15

07-Jun-2019

I’ve been using SwiftMailer for as long as I can remember because it’s, IMHO, a great library and far more logical than PHPMailer and “others”. While maintaining a PHP5 codebase for a rather large project, I ran into an issue while using ISO-8859-15 encoded data. …

Read more

Categories Development Tags character encoding, code, mime, php, swiftmailer

Lightbox for Bootstrap 4 and jQuery

31-May-2019

Lightbox (or “image preview”) functionality for Bootstrap 4 without additional libraries (apart from jQuery). Written by Joaquim Homrighausen <joho@webbplatsen.se> 30-May-2019 TEAMYUJO Do as you wish with this 🙂 This is the Javascript/jQuery code for the Bootstrap 4 modal. You don’t have to use jQuery to …

Read more

Categories Development, Web Tags bootstrap, bs4, code, javascript, jquery, lightbox, source code

Simple password construct validator for PHP

31-May-201930-May-2019

/* * Simple password construct validator for PHP * Joaquim Homrighausen <joho@webbplatsen.se> * May 30, 2019 * TEAMYUJO * * Do whatever you want with this snippet 🙂 * * This may not necessarily agree with the section * “Strength of Memorized Secrets” in the …

Read more

Categories Development Tags code, gist, php, snippet, source code

Setting PHP.INI path (or file) for PHP CLI shell scripts

12-Jun-2018

Running a PHP script from the command-line, or CLI, is quite useful at times and is often used to perform some automated task, like a CRON cleanup script, to send out reminders, etc. It’s common that these CLI scripts need some, but possibly not all, …

Read more

Categories Development Tags cli, code, cron, php, shell

Coding for Microsoft browsers like Internet Explorer and Edge

25-Apr-2018

Having been doing battles with things like Internet Explorer 4 (yes, I’m that old), it seems to me like Microsoft have really gotten themselves into a bind when it comes to Edge. With a user-agent string like this: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 …

Read more

Categories Development, Web Tags browser, edge, microsoft, msie, schizophrenia

Thank you Mattermost / @mattermosthq

17-Aug-2017

It finally arrived 🙂 #mattermost #geeksrus

Categories Applications, Development Tags community, geek, mattermost

PHP is_numeric () fails WordPress version string check

16-Jan-2017

This is, perhaps, obvious to most PHP developers. But it came somewhat as a surprise to me. Using is_numeric () for validating a WordPress version string, such as ‘4.7’, does not seem to work very well when WordPress introduces minor releases such as ‘4.7.1’. Since …

Read more

Categories Computers, Development, WordPress Tags code, php

Making SimpleXML truly simple using JSON in PHP

16-Oct-2015

So using SimpleXML in PHP is possibly one of the worst hells of typecasting and data extraction procedures one can encounter, or close to it 🙂 But more the point, you don’t need to walk down that road alone, enter JSON. In the simplest of …

Read more

Categories Computers, Development, Web Tags conversion, json, php, programming, xml
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →

Recent Posts

  • SuiteCRM troubles could be caused by non-default session.name
  • Using diffmon to figure out what Jitsi is up to
  • WonderCMS Bootstrap 5 theme, updated (1.2.0)
  • GeForce RTX 2070 Super Dual Evo OC fan replacement
  • WonderCMS Bootstrap 5 theme, updated
  • WonderCMS Bootstrap 5 theme
  • WonderCMS BS5 local inclusion plugin
  • What does ChatGPT think of “Chat Control”?
  • Arbitrary interpretation of GDPR
  • Random Password Generator (POMjs)
  • Mounting /proc with hidepid under Ubuntu
  • Cloudbridge Mattermost 2.2.0 with WordPress 6 support
  • Folksam och Solid Försäkringar arbetar inte hållbart
  • Ubuntu and Zimbra upgrade night session
  • The Russian Elephant in the Room
  • DeltaFelter
  • Stealth Cookie
  • FidoNet
  • joho68

Recent Posts

  • SuiteCRM troubles could be caused by non-default session.name
  • Using diffmon to figure out what Jitsi is up to
  • WonderCMS Bootstrap 5 theme, updated (1.2.0)
  • GeForce RTX 2070 Super Dual Evo OC fan replacement
  • WonderCMS Bootstrap 5 theme, updated

Looking for something

Copyright © Joaquim Homrighausen; all rights reserved.
  • WordPress
    • Fail2WP
    • EasyMap
    • Cloudbridge Mattermost
    • Shortcodes for Font Awesome
  • Öppet Moln
  • Send spam
  • find.me
    • Matrix, joho68
    • Mastodon, @joho
    • Twitter, joho68
    • Github, joho1968
    • Instagram, hobo68
    • Instagram, 1968geek
    • Instagram, 1968photo
    • 1968photo.com