Category: programming languages
The following puzzle is taken from Timus Online Judge and You can submit your solution at this URL: http://acm.timus.ru/problem.aspx?space=1&num=2025 We first compute the average size n/k so we can …
Using Magic Numbers is one of the causes of ugly code. For example, if you want to deal with two protocols, HTTP and FTP (to count the data packages), …
3D vector operations are quite useful and common in the math world, especially when it involves the geometry. The following is a simple class made in PHP that encapsulates …
I wrote these PHP functions to compute matrix determinant for 2×2 and 3×3 matrices long time ago and I share these three simple functions here just in case someone …
The Tweeter is not good at displaying all tweets. I have more than 600 tweets so far (most of them are sent by PHP script at VPS). If you …