jQuery Jeditable and Chosen hybrid

Jeditable – edit in place plugin for jQuery. Chosen - jQuery plugin that makes select boxes user-friendly. So why not combine them together. This javascript code will let you select in place with Chosen select box. Default list and save … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

jQuery Jeditable and Autocomplete hybrid

Jeditable – edit in place plugin for jQuery. The Autocomplete - jQuery UI Autocomplete control widget provides suggestions while you type into the field. So why not combine them together. This javascript code will let you edit in place along … Continue reading

Posted in Programming | Tagged , , , , , | 5 Comments

Color spaghetti

This gallery contains 1 photo.

More Galleries | Leave a comment

Sort by specific order in MySQL query

If you want to sort the list by a certain order, such as a list of numbers from the beginning of 4,5,1, and then in ascending order, you can create a sort order by IF statement rule with additional columns … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Local date format in PHP or MySQL

If locale is installed on the server then with PHP: For MySQL local date:

Posted in Programming | Tagged , , , | Leave a comment

Display data from long running PHP script with jQuery

When a PHP script is executed for a long time and it is not clear what it is happening, such as a long loop, a prolonged processing, rainy weather, or other magical things. That is, the desire to see what … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Text wrap for imagettftext

One line text does not always fit into a given width of the picture, then you need to word wrap the text to a new line, depending on the width. If only the width is less than one word, then … Continue reading

Posted in Programming | Tagged , , , , | 4 Comments

Calculate days between dates

Using php strtotime function difference between dates: Another way to set date with mktime function: Before PHP 5.1.0 negative timestamps were not supported. Under any known version of Windows date could be from 1970 to 2038 years. And using MySQL … Continue reading

Posted in Programming | Tagged , , , , , , , | Leave a comment

Delete WordPress users with no posts by MySQL query

Back up your database regularly, and always before any upgrade. This query delete wordpress users (and they meta info) with no posts: This query select users with no posts: This query select users with no posts and no comments:

Posted in WordPress | Tagged , , , | 4 Comments

Text language detection with php

Previously was Google Language API for language detection but it is now paid. I found an alternative way to detect the language of text using Text_LanguageDetect pear package with 52 supported languages. Here is lithuanian text language detection example with … Continue reading

Posted in Programming | Tagged , | 6 Comments

CodeIgniter VS Zend Framework

Just made two simple empty CodeIgniter 2.0.3 and Zend Framework 1.11.11 applications to compare time elapsed for script execution. CodeIgniter about 0.01s and Zend Framework about 0.07s. CodeIgniter Wins.

Posted in Programming | Tagged , , | Leave a comment

Android geolocation application demo using PhoneGap, jQuery Mobile and Google Maps

This android geolocation application uses PhoneGap api for phone geo position and displays the phone position point on Google Maps. jQuery Mobile is used to display the page header, footer and content map. Page is resized to full height and … Continue reading

Posted in Programming | Tagged , , , , | 69 Comments