10pm.ca – Tidbits for the wandering Googler

Latest Posts

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 →

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