Category Archives: Programming

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

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

Check if event exists on element

To check whether the event exists on element is possible with jQuery function date(). For example there is a form and if I need to bind an event submit() but before check submit event exists on element.

Posted in Programming | Tagged , , | Leave a comment

Mediawiki 1.17.0 $wgSharedUploadDBname error

I tried Mediawiki 1.17.0 and set common database for all upload files by variable $wgSharedUploadDBname, and uploading file got warnings and fatal error. So if you need $wgSharedUploadDBname, it is better not to use Mediawiki 1.17.0, yet use the older … Continue reading

Posted in Programming | Tagged , , | 1 Comment

JQuery Mobile listview error calling method refresh

Made two pages on JQuery Mobile library, put on every page listview. Lists are dynamically generated. But notice if I call the refresh on the invisible list, an error is returned: Uncaught cannot call methods on listview prior to initialization; … Continue reading

Posted in Programming | Tagged , , | Leave a comment