Author Archives: Stoimen

Computer Algorithms: Bubble Sort

Overview It’s weird that bubble sort is the most famous sorting algorithm in practice since it is one of the worst approaches for data sorting. Why is bubble sort so famous? Perhaps because of its exotic name or because it … Continue reading

Posted in algorithms | Tagged , , , , , , , , , , , , , , , , , | 2 Comments

jQuery UI Slider IE bugfix

Do your jQuery slider brakes under IE too? When you want to null the sliders on an page, using jQuery UI Slider, somehow the following code works in any browser except IE. // wrong $(’.my-slider’).slider(’value’, 0); I say somehow, because … Continue reading

Posted in javascript, micro tutorial | Tagged , , , , | Leave a comment

Computer Algorithms: Insertion Sort

Overview Sorted data can dramatically change the speed of our program, therefore sorting algorithms are something quite special in computer science. For instance searching in a sorted list is faster than searching in an unordered list. There are two main … Continue reading

Posted in algorithms, PHP | Tagged , , , , , , , , , , , , , , , , | Leave a comment

How to Dump the Generated Zend_Db SQL Query

The Typical PHP Approach Typically a PHP programmer will write his SQL query as a string and will execute it via mysql_query. $sql = "SELECT * FROM my_table"; $resource = mysql_query($sql); So eventually when you want to dump this “complex” … Continue reading

Posted in PHP, zend framework | Tagged , , , , , , , , , , | Leave a comment

Computer Algorithms: Data Compression with Prefix Encoding

Overview Prefix encoding, sometimes called front encoding, is yet another algorithm that tries to remove duplicated data in order to reduce its size. Its principles are simple, however this algorithm tend to be difficult to implement. To understand why, first … Continue reading

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