clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

Change post order by meta key, per post basis, in WordPress

Let users decide which meta key is used to sort each post. I’ll be using WPAlchemy metabox class to create and save the custom fields…

How to enable sourcemaps in Sass and Compass

Yes, it's possible nowadays to have sourcemaps when using Compass. Sourcemaps also enable us to save straight from Chrome Devtools. Set up…

How to install Sass and Compass prereleases on an RVM

Sass and Compass alpha releases have the ability to generate sourcemaps, thus making them very appealing. Maybe you also want to see my…

Inspirational talks about web and web development

Editors note from 2020: This post is a total trip 🔥 How to destroy the web - Bruce Lawson at FOWA/FOM London 2012 (that version was…

OOCSS, ACSS, BEM, SMACSS: what are they? What should I use?

The way we write CSS has changed a lot in last few years, and the abbreviation jungle gets deeper and deeper. Heres a list of links to…

Strip punctuation from a string with regex using PHP

A quick regex snippet on how to match punctuation on a string and strip them out. Source

How to remotely reboot or shutdown your linux server from the command prompt

A quick post on how to restart or turn of a unix-like server. There are 4 commands that all can restart or shutdown a machine: shutdown…

How to use: Easy-WordPress-Custom-Post-Types PHP class

An easy way to make: custom post types, custom taxonomies, and custom meta boxes in WordPress by using the helper class Easy-WordPress…

Setting and reading cookies with JavaScript

Here's two different methods to read and write cookies using JavaScript and/or jQuery. Pure JavaScript Here’s a set of functions: Source It…

Give each excerpt a unique class in WordPress

Giving an excerpt an unique class may come handy when writing CSS in BEM style. Here's a small function to do that. This goes into 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.
  • I love u!