clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

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 chunk than one-by-one. Ideally you have an SSH access…

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…

PHP if, else and elseif statements

Here's all the different ways to do conditional logic in PHP. The bare-bones basic syntax in plain english goes something like this…

Fluid multi column layout where sidebar and margins stays fixed width, without JavaScript

More fluid layout examples ahead. First I was like hmm... sure need js to that. But of course not! I was working on a layout with a lot of…

Different ways to redirect URL

A quick guide on redirection with Apache, NGINX or just plain HTML. Apache A very robust way of redirecting. Just paste this in your…

  • © 2021 Antti Hiljá
  • About
  • Follow me in Twatter → @hiljaa
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • console.log('Smash the patriarchy!')
  • I love u!