Katcode - katcode.com - KAT CODE

Latest News:

Find and Kill Range of Forked Processes 27 Jul 2013 | 11:03 am

This will find all process IDs of a forked perl script, loop through them and issue kill command to shutdown all processes that this script runs in.

Override Apache From Envelope Email Address On Linux 27 Jul 2013 | 03:02 am

If you have upgraded your linux server recently and are unable to send email using PHP mail() you might need to override the envelope From address to a valid email format. The default apache from addr...

PHP exec() Error Codes 14 May 2013 | 03:43 am

These are what the exec() error codes mean that are returned in third parameter of exec(). 1 – Catchall for general errors. 2 – Misuse of shell builtins. 126 - Command invoked cannot execute. A permis...

Installing Sublime Text 2 for Fedora 17 and 18 11 May 2013 | 01:21 am

yum-config-manager –add-repo http://repo.cloudhike.com/sublime2/fedora/sublime2.repo yum-config-manager –enable yum install sublime-text

Configure Pidgin to Connect to Google Talk 11 May 2013 | 01:18 am

In the Modify Account dialog Basic tab settings: Protocol: XMPP Username: //is the username portion of your email Domain: gmail.com Resource: Home Advanced tab settings: Connection security: Use old-s...

Installing Chrome Browser in Fedora 9 May 2013 | 01:25 am

The following will install a stable chromium release. 1) Create file /etc/yum.repos.d/fedora-chromium-stable.repo with this content. Create as root. [fedora-chromium-stable] name=Builds of the "stable...

Useful Sublime Text Settings 26 Apr 2013 | 11:56 pm

Go to Preferences -> Settings Default // Set to true to removing trailing white space on save “trim_trailing_white_space_on_save”: true, // Auto wrap at column 80 “wrap_width”: 80, // Show ruler at co...

MYSQL: Checking and Turning on Slow Query Log 4 Mar 2013 | 11:39 pm

First check if log_slow_queries setting is ON. In mysql run this sql. SHOW variables LIKE 'log%'; If it is OFF then you need to turn it on in your mysql config file my.cnf or my.ini. In linux file is ...

Url safe base64 encoding in PHP 2 Mar 2013 | 03:10 am

Whenever passing base64 encoded strings in url should always urlencode or do the following which replaces characters that should not be in a query string value with safe characters so query string wil...

Opening window into tab with window.open() in Chrome 1 Mar 2013 | 06:17 am

Use this method when you need to open a new window into a tab and not into a popup window through javascript. This should work in most browsers if settings have not been altered. function open_in_tab(...

Recently parsed news:

Recent searches: