We won again!

Great victory for the People - Tax Cut!

Office and IE

Properly Validate TextArea Length (IE vs. Firefox)

Let’s consider this example, where HTML page has a TEXTAREA and an INBOX.  When user types inside TextArea, Inbox should show the length of TextArea string. <script type=”text/javascript”> function TTLength(objTT){ var tt= document.getElementById(‘TXT1’); tt.value = objTT.value.length; } </script> <textarea onKeyDown=”TTLength(this);” onKeyUp=”TTLength(this);” rows=”10″> This Text Area Contains a string With Newline […]

ASP.NET

Grow TextArea Height Along with User Input

There are situations, when you do not want to have scroll bars inside a TextArea. Main reason not to have scroll bars inside TextArea is to make your pages more mobile-friendly.  For example on iPhone Safari scroll bar inside TextArea will not even show up.  Another reason not to have scroll […]

No Picture
MySQL

MySQL Upgrade on Windows – Easy and Painlessly

How to update MySQL Server on Windows Machine   Preliminary notes: These steps work for MySQL Server that is running as a service on Windows machine. These steps were tested, when MySQL data directory is located on a different drive from MySQL  installation directory.   Determine your current MySQL version.  […]

PHP

Control WordPress 3.X.X Admin Bar Options for Subscribers

WordPress admin bar contains many interesting and convenient links for admins and editors. But it is totally useless, redundant and confusing for regular users. Here is how to hide it for subscribers while viewing the site. Open your theme functions.php file and add these  lines at the very end: if(current_user_can(‘subscriber’)) add_filter( ‘show_admin_bar’, […]

No Picture
MySQL

How to Move MySQL D/B Files (Windows)

Locate your MySQL installation files and central configuration file basedir=”C:/Program Files/MySQL/MySQL Server 5.1/” Your MySQL configuration is stored in “my.ini” file Locate your MySQL Database location: datadir=”C:/Documents and Settings/All Users/ Application Data/MySQL/MySQL Server 5.1/Data/” Stop MySQL service. Modify My.ini file to point to a new D/B location and Save. Move […]

PHP

Integrating bbPress Forum with WordPress Theme

Problem When I was preparing to roll out bbPress forum as a part of  WordPress site,  I discovered that process of bbPress user and login integration has a very good coverage on the Internet. This article deals with integrating bbPress forum “look and feel” with WordPress. How to make bbPress forum […]