Javascript: How to check dependencies and load missed libraries. JQuery example.

Today I want to provide quite simple code that helps to check and load required libraries. I have met this problem while creating some code that should be delivered to different sites and I am not sure what libraries are loaded there and what are not. So, I decided to check and load dependencies from the script.

Read complete article: Javascript: How to check dependencies and load missed libraries. JQuery example.

Random value selection from array based on weight

Today I decided to publish small article and code describing weighted random values generation or better to say selects values from the array randobly based on weight values. actaully algorithms are widely known and I am just publishing javascript implementation of one of them, I think one of the best ones.

Read complete article: Random value selection from array based on weight

Erlang SSL server example

Today I decided to prepare and publish simple example of SSLsockets usages. As in my previous articles about TCP & UDP sockets I decided to write simple echo server that just returns the pacage it gets. Okay, I do not whant to waist your time and suggest just to go to the article.

Erlang: UDP socket usage example with gen_udp

UDP is a widely used protocol and Erlang is a great platform for different network application different kinds. Today I decided to publish small UDP echo server example. I know that UDP socket usage is very simple in Erlang, but I think somebody will find this code usefull.

Using MySQL PHP: select random row based on weight

Article describes algorithm of random row selection based on weight, so some rows will be selected more often than other. Article includes sample codes, so I hope will bу helpful to somebody.
Do not hesitate to leave comments if you have ideas how to improve the algorithm.