10pm.ca – Tidbits for the wandering Googler

Author Archives: PJ

Kohana HTTPS Bug Fix When Trying to Output Using Certain Built-in Static Methods

Cats: kohana, web development

By PJ on September 4, 2013


Many of Kohana’s built-in static methods for getting stuff like HTML::styles unfortunately has a bug when trying to output to a server with HTTPS. The problem can be traced back to URL::base, which doesn’t properly spit out the right protocol … Continued

Command Line Fix for a Super Large MySQL Table Marked as Damaged

Cats: command line, mysql, web development

By PJ on August 7, 2013


Repairing a MySQL table that was over 4Gb in size would have taken days without this command:

Enable Image Placeholders in Firefox for Linux

Cats: firefox, linux, web development

By PJ on August 1, 2013


I think it’s a nice feature when browsing, but when developing websites, it’s kind of nice to know when an image isn’t loading properly. Internet Explorer has that big ugly image placeholder box and frankly I miss it sometimes. The … Continued

Bash Script: Pull the Username from the Path, or Determining Whose Home Directory We’re In

Cats: bash, command line, linux, web development

By PJ on August 1, 2013


I needed a bash script to quickly update the ownership of a bunch of files, based on what directoy I’m currently in. The username is pulled from the present working directory (pwd): /home/SOMEUSER/the/rest/of/the/path

Kohana Modules – A strategy for including assets (.js, .css, images, etc.)

Cats: kohana, web development

By PJ on July 5, 2013


You’re writing a module that also has some necessary CSS or JS or images (or whatever) external media assets. How do you include them? Here’s a strategy that lets you package a module with default CSS/JS/images, but still lets you … Continued

Bash Script to Centre The Active Window for Ubuntu/Linux Mint

Cats: bash, command line, keyboard shortcuts, linux, linux mint

By PJ on June 17, 2013


I recently discovered that Linux Mint lets you use the Super/Win key plus left, right, up, down to control the current window size (window left, window right, maximize, unmaximize, respectively!), which is awesome. But I also like my windows centred … Continued

Greasemonkey Script: Kijiji Extender – Larger Thumbs & Next Page Autoload

Cats: greasemonkey

By PJ on June 10, 2013


Here’s a Greasemonkey helper script that adds two features to Kijiji that I now can’t live without: Larger thumbnail images when browsing; And auto-loading the next page when you reach the 90% scroll mark.

Getting .htaccess rewrites working in subdirectories under WordPress

Cats: apache, web development, wordpress

By PJ on June 2, 2013


If you need to get redirects, or other htacccess directives, working in subdirectories under the WordPress installation, this may help.

Greasemonkey script to show the current dimensions of the browser

Cats: greasemonkey, web development

By PJ on June 2, 2013


When looking for a quick way to show the current dimensions of the browser window for some responsive development, I cobbled together this little Greasemonkey script.

Adding custom menu items or <li> tags before and after your wp_nav_menu in WordPress

Cats: wordpress

By PJ on May 20, 2013


If you need to add arbitrary or custom <li> tags before/after your WordPress navigation menu, such as calling wp_nav_menu, you can use this little bit of code.

  • ← Older posts
  • Newer posts →

Recent Posts

  • SpeedCrunch “Plugin”: Currency Converter
  • OctoPi/OctoPrint Change Webcam Resolution
  • Polono PL60 Label Printer on Ubuntu/Linux Mint
  • Flash Custom Firmware onto Iris v7
  • GIMP – Save for Web Plugin

Archives

  • April 2024
  • August 2023
  • July 2023
  • May 2022
  • April 2022
  • February 2022
  • August 2021
  • June 2021
  • March 2021
  • October 2020
  • April 2020
  • February 2020
  • October 2019
  • April 2019
  • March 2019
  • September 2018
  • August 2018
  • June 2018
  • May 2018
  • March 2018
  • January 2018
  • December 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • September 2016
  • August 2016
  • January 2016
  • July 2015
  • March 2015
  • February 2015
  • October 2014
  • August 2014
  • February 2014
  • December 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012

Categories

© 2025 10pm.ca – Tidbits for the wandering Googler