Monthly Archives: December 2011


Linksys WAG200G convert annex B to A and vice versa

For a long time, a very good Linksys WAG200G gathering dust in a corner, because was ANNEX B and still unusable on my PSTN line… until now! I made a risky decision, to flashing the router with a custom firmware, which convert it to ANNEX A functionality.

Searching the net I found two firmwares, menioned by Moho at adslgr.com forum, which are based on OpenWAG200 project, and convert annex a routers to b and vice versa.

WARNING: THIS IS EXPERIMENTAL, OPEN BETA SOFTWARE. YOU ARE USING THIS SOFTWARE AT YOUR OWN RISK. YOUR ROUTER MAYBE BRICKED!

To avoid bricking your WAG200:

  • Language setting must be set to english prior to flashing the firmware
  • Do not flash via remote internet connection or wireless connection – flash ONLY from wired LAN PC
  • If flashing will take more than the progress bar is telling you, wait patiently for about 10 minutes before manually restarting the router….

If you are not so lucky and you got a bricked router, read Unbricking WAG354G tutorial from Marco Vedovati, his advice is likely to work and at WAG200.


Javascript Function: strToPhpChr(str)

There are times when converting a string into PHP concatenated chr( ) functions are very useful.
So, here is a simple javascript function, who do the dirty job.

/**
* @author Petros Kyladitis - 2011
* @license MIT License
* @description get PHP concatenated chr( ) functions from a string
* @param str String to be converted
* @return the PHP code
*/
function strToPhpChr(str){
  var strLen = str.length ;
  var phpCharCode = '' ;
  for(i=0; i<strLen; i++){
    phpCharCode +=  'chr(' + str.charCodeAt(i) +  ').' ; 
  } 
  return phpCharCode.substring(0, phpCharCode.length-1) ; 
} 

Otecat: greek whitepages number info search tool

A desktop application for searching telephone number information, using the whitepages.gr OTE on-line service. Needed connection to the internet, except if the telephone number searched at the past and enrty existed at local database. The availability and the quality of the data, based on OTE web service.

The application is written in C#, targetting .NET 3.5 framework
and is licensed under the terms of GNU GPL

For more info, updates, downloads or checkout the code see at the program’s home page


Blink Element’s Border Javascript Function

I need a piece of javascript code to make the border of an element blink infinite.
So I write the next function, that changes element’s border color (using DOM) to 2nd passed color code. Then make infinite recursion calls of this function, after the passing time by using setTimeout("javascript statement",milliseconds); Use anonymous function as statement to setTimeout for passing altered color parameters each time, set 1st color code to 2nd and vice versa. After every recursive call set all params to null preventing memory leaks.


/**
* @author Petros Kyladitis - 2011
* @license MIT License
*
* @description make the border of an element blink
* @param colorA first border's color code
* @param colorB second border's color code
* @param elementId element id
* @param time blinking time in milliseconds
*/

function blinkBorder(colorA, colorB, elementId, time){
  document.getElementById(elementId).style.borderColor = colorB ;
  setTimeout( function(){
    blinkBorder(colorB, colorA, elementId, time);
    colorB = null;
    colorA = null;
    elementId = null;
    time = null;
  } , time) ;
}