Author Archives: József Koller

Laravel (4.2): Single table inheritance for Eloquent

Written by on August 21, 2014 in Development

Originally I wanted to publish this article when Laravel 4.2 was only in development but it is out for a while now so I’m here to present my trait for this particular issue. Whilst the title may not be straight forward, here is the thing with more than 3 words: Multiple models sharing one table, auto-filtering queries based on column value. If you are familiar with WordPress you probably know that there is only one table with all the pages, posts, attachments and “custom post types“. This article is not about explaining all the little details, it’s for more advanced developers who can grab my code snippet. I assume you already know Laravel, Eloquent and PHP5.4.

2 comments Read more

Github-like headings in WordPress within few minutes

Written by on November 29, 2013 in Work

First of all GitHub is awesome, that’s what we all know so let’s get straight to the point. One of my favorite features is that link thing next to each heading, few days ago I thought it would be nice for my blog too. I’ve found many related plugins but none of them succeed to met my requirements. I wanted a small, efficient and smart plugin which will not update my database with tons of unused classes and HTML tags so I’ve made it on my own and now it’s available for anybody (for free).

Start a discussion Read more

Working with LESS + LESS Hat + Sublime Text

Written by on November 8, 2013 in Development

The CSS specification has evolved a lot in that last five years and many long-awaited features have been implemented in the major browsers since then. This sounds great but  CSS3’s brought some really hard issues while the syntax basically remained the same as it was before. I’m talking about those well-known browser prefixes, absence of nesting and so-called mixins. In this article I’ll show you my own method of css coding using the latest LESS and LESS Hat version. If you are dedicated to Sass you can skip this article but I won’t bite you if you read on.

3 comments Read more

Faster website in one minute without any plugin

Written by on October 20, 2013 in Development, Wordpress

I’m working on a WordPress site which was installed on a fairly slow server so I have to deal with even the slightest speed issues I find. The first thing I’ve tried was W3 Total Cache which is rather a bloatware than a performance optimization plugin (It might be good for better hosts but not for most of the shared hosts). Few more cache plugins later I’ve decided to set up the easiest and the fastest cache and compression I can imagine (via htaccess). This article is useful for WordPress owners but also for anyone who uses PHP and Apache.

Start a discussion Read more

Regenerate thumbnails in WordPress

Written by on October 11, 2013 in Work

Last week I finished a project with thousand images (few hundreds megabytes which is basically unimportant) when I suddenly realized that almost each image file is way larger than it is necessary. For example why I should use a 150×150 image as a 50×50 sideshow thumbnail? Plus there was one more resolution for featured images. So I decided to add those two dimensions to optimize page load speed – this was the easy part. Assuming you’ve already faced with this story you might know that adding  new image resolution will not generate new images automatically.

9 comments Read more

Finally arrived

Written by on October 10, 2013 in Blog

This is the third personal site for me and I hope it will last longer than the predecessors. As a coder I’m always seeking for better and faster ways to achieve the same goal – I cannot stop updating my stuff. So I decided to finally share my experience with others in English. (Apologies in advance for my improper grammar, I’ll do as much as I can to improve it.)

This website will be my wall in the future because 140 char is not too much (Twitter) to express my thoughts and Facebook is for “friends and family” and not for the community I really want to help. The most of the post will be about web development (tutorials, tools, plugins, news and so on) but I’ll share great music and sometimes interesting games (I’m big fan of indie developers).

I don’t know what’s coming exactly but I’m optimistic and ambitious about the future. Plus I must say a huge thank you to Unsplash for the awesome CC Zero images which will be used in post headers. Let’s get the party started!

Start a discussion Read more