Category: technical
August 28, 2012
beginner, github, HTML5, http, implementation, internet, javascript, programming languages, technical, tricks
In Javascript, there are some nice language features, one of them is to define a class via returning a list of functions. For example, the following illustrates this simple …
QueryString is a requested pairs of key and value for URL. For example, in the URL http://www.sample.com/index.php?a=1&b=2&c=3 the QueryString is a=1&b=2&c=3. The first delimiter between the requested file name …
August 20, 2012
adsense, algorithms, apache server, implementation, php, programming languages, SEO, technical, tricks, web programming
Checing if a visitor being a search bot is easy. You can use one of the globals, the $_SERVER to check if it contains bot-like string. For example, many …
Sometimes if you want to extract some records from a table you can use the following SQL syntax select * from table order by rand() limit 10 Different SQL …
Python provides a module timeit which allows quick timing of a piece of code. The straightforward example is given below. import timeit bar = timeit.Timer("a += 1", "a = …