Yearly Archives: 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) ;
}

Bluetooth HID

Bluetooth HID is a lightweight wrapper of the Human Interface Device protocol defined for USB. The most of SonyEricsson’s no-smarthpones support this Bluetooth Profile for remote controling desktop programs such as presentation viewers and media players.

I create 3 HID profiles targeting 3 popular media players: the Nullsoft Winamp, the Cyberlink PowerDVD and the Nero ShowTime.

For downloads, updates and more info you can visit the Project’s Page.


Pelex – New version 1.4.1


New version for the webpage auto-hitting application Pelex is available.

New version’s change log

  • Add automatic delay to load all page contents (usefull if user setting very small space time for between each hit)
  • Add support for https
  • User input fields disabling when hitting process is running
  • Enter key, as keyboard shortcut for start and stop hitting process
  • URL field getting the focus after stopping the hitting process
  • Minor UI corrections

Download the new version from my box.net folder


Pelex

Today a friend asked me if I know any MS Windows application to automate hits to a webpage and because I don’t have in mind any, I create a simple one.

I called Pelex, written in C#, targeting the .NET Framework 3.5.
The app is portable, no need for installation. Just run the exe.

It’s free software, distributed under the terms of GNU General Public License 3 and you can download it from my box.net folder


When the hdd is going down

When you make a fresh Windows 7 install in a tired machine and the process of expanding files takes a looong don’t go away, before change optical drives, or select another setup solutions like flash drives etc. think that maybe your hdd needs urgently change.

The same if in Windows XP setup presented missing files (and prompts you to press F3 to continue). The hdd is the first suspect.

Think about it before you waste your day in experimental installations


Vatlidator

A validation tool for greek VIES VAT IDs. Targeting the .NET platform 3.5
Uses ViesGr.dll. to check if a greek VIES VAT number is valid
(NOT if exists and corresponds to a natural person or a legal entity).

Also supports an automated multilingual interface, by using .lang files combining the use of Props.dll. You can add more languages by generate .land files based on English.land, who founded in your program installation folder. If you see your language file at the next distribution and get your mention, just contact me.

The application distributed under the terms of GNU General Public License in to two versions. One complete with installer and one portable (all-in-exe) but stripped from multilingual support.

You can download the version you prefer from my box.net folder.
Complete version with installer: http://www.box.net/shared/pc5csy0m3ofve95or6ae
Portable version: http://www.box.net/shared/lhilv3d5medecz78ao96