Author: Konrad Fedorczyk
How to check visibility state in jQuery toggle function?
Here is a quick tip how to check visibility state of a toggled element in jQuery: $(‘#element’).toggle(‘slow’, function() { if($(this).is(‘:hidden’)) { $(this).text(‘This element is hidden.’); } else { $(this).text(‘This element is visible.’); } });
Force Yii to republish assets every page refresh
During webapp development you’ll need often assets republication. When you publish assets using directory path, framework won’t republish them automaticaly. So what can you do? It’s plain simple. Use YII_DEBUG constant as fourth argument in publish function. $assetPath = Yii::app()->assetManager->publish(Yii::getPathOfAlias(‘application.modules.components.assets’), false, 1, YII_DEBUG); From this moment Yii will republish assets on every page refresh only […]
How to change computer name remotely using Windows 7?
There is a command line tool called netdom. Unfortunately it’s not preinstalled on Windows 7. This guide will show how to add this tool to your system and how to change remote computer name.
How to remove unwanted HTTP Response Headers in IIS 7.5
Hiding server software is one of ways to protect your services from hackers. It’s quite easy to obscure IIS identity. In few steps I’ll show you how to accomplish this task on WIMP stack.
Very nice tool for typography scale design!
Type scale is a great new tool to design typography scale. It’s escpecially useful with Google Fonts service. Simply copy and paste font’s name and you’ll get visual reference.
Active directory support for Yii framework
2013-11-07: version 1.0 check documentation at: http://www.yiiframework.com/extension/yii-adldap/ Update: Check this tutorial to know how to map user roles using AD information. Download:
How to manualy recreate AWstats logs on Windows
Sometimes it happens that your scheduled task on Windows missed some logs. I’ve recently had a such problem because I’ve deleted a Windows user that created AWstats task. What did I do to repair this awkward situation? Firstly you cannot simply regenerate daily log from the past. In this case AWstats will simply skip old […]
PHP malicious code analysis no. 1
I found this piece of a PHP malware code on a compromised web server that I started to administer. It’s name was random character string eg. acbjxuu.php. There were about 20 more scripts of this kind. It’s rather very simple script for spaming purposes. For your understanding I’ve wrote what it’s doing in comments between code […]