clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

Get the first image inserted into a post body in WordPress

Sometimes It’s nice to show to the first image in the post archive page. This is a very simple script, does one thing. Just paste this in…

Redirect parent page to its first child

Redirecting from the parent page comes really handy, when you don't have actual need for the parent page, expect to group the subpages under…

How to use Compass plugins with CodeKit

Compass has a reset, but no Normalize, nor animation. But plugins can help in that. We'll look into the animation plugin, and how to install…

How to easily view and log PHP errors

When developing a site the visible PHP errors are extremely handy. But, on a production site they may give out too much information or it's…

How to open a popup window with jquery

Generally popups are considered bad-ish, but sometimes they’re handy. For example when opening an audio player. The following expects you to…

100% height sidebars without images, unsemantic HTML elements, or flexbox

One really sucky thing about CSS is it’s lack to make stuff 100% height. You’ll face this especially with sidebars, if there is not enough…

Remove weird characters like ö and ä from file names in WordPress. Aka, sanitize file upload image names.

Sometimes when you move your site to another server and the database has different charset (or something else mysterious happens), you may…

Upload a file to FTP server and copy the link to clipboard with Mac Automator

So you want to upload a funny image quickly to the Internet. You may use something like CloudApp. Or, do it yourself with Automator. This…

How to zip and unzip files and folders on your remote server

Sometimes you need to move a ton files to a server, it’s 100 times faster to move as one chunk than one-by-one. Ideally you have an SSH…

Fluid multi column layout revisited

This is part to two the earlier post about fluid multi-column layout done with only floats. You may want to get acquainted with that first…

  • © 2022 Antti Hiljá
  • About
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!