Tag Archives: Computing

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: 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

Computer Algorithms: Data Compression with Relative Encoding

Overview Relative encoding is another data compression algorithm. While run-length encoding, bitmap encoding and diagram and pattern substitution were trying to reduce repeating data, with relative encoding the goal is a bit different. Indeed run-length encoding was searching for long … Continue reading

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

JavaScript Performance: for vs. while

JavaScript Loops If you have read some preformance tests on JavaScript loops, you may have heard that “while” is faster than “for”. However the question is how faster is “while”? Here are some results, but first let’s take a look … Continue reading

Posted in javascript | Tagged , , , , , , , , , , | 3 Comments

Computer Algorithms: Data Compression with Diagram Encoding and Pattern Substitution

Overview Two variants of run-length encoding are the diagram encoding and the pattern substitution algorithms. The diagram encoding is actually a very simple algorithm. Unlike run-length encoding, where the input stream must consists of many repeating elements, as “aaaaaaaa” for … Continue reading

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