Author: Konrad Fedorczyk

  • How to add template identifier in Yii2 HTML output

    How to add template identifier in Yii2 HTML output

    Sometimes it’s nice to know which template is currently rendered, just by looking into HTML source. It saves a lot of time if your application is really big.

  • A MAN LEARNS THROUGHOUT HIS WHOLE LIFE

    A MAN LEARNS THROUGHOUT HIS WHOLE LIFE

    If you’re a fan of Firefox (mainly because it’s an awesome tool for webdevelopment) like me. You should already know that there’s an additional console for developers (I’ve did not until five minutes ago). When you press Shift + F2 it shows little input bar on the bottom of the window. For example type the […]

  • How to unfreeze KDE’s plasmashell?

    How to unfreeze KDE’s plasmashell?

    I’m using Debian 9.4 and this freaking KDE5 is freezing very often! What you can do when your desktop stops responding? Restart computer? Use ALT+CTRL+F1…12? Nah! There’s a better solution! Simply edit your  ~/.bash_aliases: nano ~/.bash_aliases And append to it: alias restart-plasma=’kquitapp5 plasmashell && kstart plasmashell’ Now whenever your plasma desktop starts trolling you, go to your console and […]

  • JS Glitcher

    JS Glitcher

    I’ve created simple JS glitcher based on jQuery for fun. It has framework like structure so you can easily extend it’s effects. Check JSFiddle for demo or Gist for raw code.

  • Ajax registration for WordPress Newsletter plugin

    Ajax registration for WordPress Newsletter plugin

    There are some forum posts about customizing ajax registration of Newsletter plugin but these solutions aren’t complete (for example activation emails aren’t supported). Here you can find my code with instructions.

  • Never ever put I²C device in one cable with USB…

    Never ever put I²C device in one cable with USB…

    This is what you get:

  • Quick optimization of jpeg files in a directory (Linux bash)

    Quick optimization of jpeg files in a directory (Linux bash)

    Firstly install jpegoptim. You can do this on Debian like systems using apt: sudo apt-get update && sudo apt-get install jpegoptim Then go to directory with jpeg files and use this command: find . -name ‘*.jpg’ -exec jpegoptim -m70 -o -f –strip-all {} \; It will find all jpg files recursively and optimize with following settings: m70 […]

  • Simple CVE: CVE-2018-6389 protection

    Simple CVE: CVE-2018-6389 protection

    There’s a DoS problem with WordPress CMS and it won’t be fixed by it’s creators. I’ve decided to create a simple not intrusive solution for Apache hosted websites. Please click Continue reading for details.

  • Start a new project with grunt & github for (total) dummies…

    Start a new project with grunt & github for (total) dummies…

    This short article will guide you through very basics of web development automatization. You’ll need a terminal and some basic knowledge how to use it. I work on Linux bash but it can be basically anything (well maybe not AmigaDOS). I’ll cover git basics also.

  • Differences between character counting in PHP and Javascript

    Differences between character counting in PHP and Javascript

    I’ve recently codded my own validation rules for forms. I’m checking length of a string on a client side and also on a server side (obviously it’s a good practice). After my script went on a production, users started to complain about validation errors (even if data in a form was passed proper). This is […]