cooking, programming and everyday life xrado

Sunday, August 28, 2011

wmon - web server monitor

wmon or web monitor for Linux servers is tool I made about 3 years ago. The idea was to get a better picture of web server load. That's how it looked back in 2008.



A few lines of PHP and bash commands and chart made with GD library. Turned out to be quite useful. I gave it also to some friends and the totally forgot about it. Then one day a friend mention me, what about wmon, its very cool tool, are you planing any updates. I've been quite happy to hear it and that gave me some momentum to actually push it further.

I've found a nice charting tool dygraphs, that draws canvas charts and also have zooming in some other cool features. Dygraph relay gave mi some good options to add additional features, like top processes and services status changes for any pointed time on chart. I've also added easy way to include external wmon in to one report. Thats how you can monitor all servers from one location.


Turned out pretty good and probably useful for others, so i decide it to sell it on codecanyon.net. Hopefully it will buy me some beer :). If you are interested you can get it and try it here. Thanks!

Wednesday, March 23, 2011

pyGtranslator 0.6

I've just updated pyGtranslator. Looks like google online translator changed few things, thats why pyGtranslator wasn't working anymore. It's using a google api now. Hope we will not exceed 100,000 characters/day limit :) 

I've build just 64 deb, because i don't have any 32bit system running any more. pygtranslator_0.6-1_amd64.deb 

source: https://github.com/xrado/pygtranslator

To be honest, I'm rather using online version, so i don't know if I will continue updating it in the future. But if you find it useful, drop me a line and will fix it, if i can.

Wednesday, October 27, 2010

nkbm bank@net prijava si ne zapomni gesla

Pred kratkim je NKBM prenovila spetno banko in od takrat si prijava ne zapomni več logina. Sigurno je bolj varno vsakič vpisat geslo, a če uporabljaš računalnik samo ti, pride prav če lahko ta korak preskočiš. Žal je nova verzija to onemogočila. Login forma ima sedaj autocomplete=off in zraven tega se še login izvede z ajax klicom. Ker gesla ne vem na pamet in mi je zelo tečno vsakič ga gledat in vpisovat, sem se odločil da naredim JS bookmarklet, ki se bo logiral namesto mene. 

(function(){
	var runthis = function() {
		new Request({
			url: 'https://bankanet.nkbm.si/bnk/Login', 
			method: 'post', 
			data: { action:'login', user: 'USERNAME', pass: 'PASSWORD' },
			onSuccess: function() {
				location.href = 'https://bankanet.nkbm.si/bnk/Nkbm?action=login';
			}
		}).send();
	};

	if(!location.href.match('/bankanet.nkbm.si/')) location.href = 'https://bankanet.nkbm.si/bnk/';
	else if (!window.MooTools) {
		var mo = document.createElement('script');
		mo.type = 'text/javascript';
		mo.onload=runthis;
		mo.src = 'http://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js';
		document.body.appendChild(mo);
	} else {
		runthis();
	}
})();

Zgoraj je formatirana koda bookmarkleta. Sledi link ki vsebuje to isto kodo, ki ga preprosto primeš in neseš v bookmark vrstico >> bank@net <<. Kar moraš še narediti je da urediš ta bookmark in v linku zamenjaš USERNAME in PASSWORD s svojim. Če se ne nahajaš na nkbm strani je potrebno bookmarklet klikniti dvakrat. Prvič preusmeri na nkbm, drugič logira. Testirano v FF in Chrome. Previdno z gesli...

Če ima kdo kakšno boljšo rešitev ...naj pove.

Monday, October 04, 2010

fix geany

Is geany corrupting your files?  Since I upgraded Ubuntu to Maverick RC, I had problems saving files over gvfs. I even made me switch to gEdit. But not for long. gEdit have so stupid keyboard shortcut and you can't to anything about it. So I was forced to look for further solution and finally got it on geany sourceforge bug tracker. Enabling use_safe_file_saving in geany settings file (.config/geany/geany.conf ) to "true" fixes the issue. Still don't know if this is a gvfs or geany issue, but at least geany is working again. Geany is still the best programming IDE I came across.

Saturday, October 02, 2010

portfolio re-design

I finally managed to put together new re-design of my online portfolio www.xrado.si. On the site is virtually nothing new except for the new style, I just made a few substantive changes and prepared the base for the English version (hope soon). This does not mean that I'm doing nothing, but I have many things in work or unfinished, so they can not be published yet. Thanks to Valter C. for his time. I owe you now :P
pages:  1   2   3   4   5   6   7   8   9   10