Archive for December, 2007

MRTG temperature monitoring with smartctl

Thursday, December 6th, 2007

So first of all you will need self MRTG and smartmontools. Now we can go write some script to produce such graphs

(more…)

Javascript marque

Sunday, December 2nd, 2007

Because I did not find good marque, made my own. Demo http://remdex.info/htmlai/marque/
Features

  • Configurable speed (Pixel step and timeout)
  • Configurable direction (From left to right, right to left)
  • Stop on mouseover
  • Mouseover marque delay
  • Separated HTML and javascript

Download marque

mod_rewrite voodoo

Sunday, December 2nd, 2007

Recently i desiced to makeover my image gallery to nice URL. Previous url looked like:
thumbnails.php?album=$2
displayimage.php?album=$2&cat=$3&pos=$5
displayimage.php?pos=-$2
thumbnails.php?album=$2&cat=$3
and so on, after applied  mod_rewrite we got:
(more…)

Nemokami subdomenai, DNS įrašai

Sunday, December 2nd, 2007

Taigi pakūriau nemokamą subdomeną servisą. Kolkas galima kurti tik vieno tipo subdomenus <jusu_vardas>.animewallpapers.lt vėliau priparkuosiu remdex.info na ir gal dar kokį com’a nusipirksiu. Prašome išbandyt ir apie pastebėtas klaidas pranešti. Platesnė informacija http://tavodns.net

sql order filtering

Sunday, December 2nd, 2007

Small exercise witch recently helped me. Let say we have column with values 5,1,2,1,3,4,8 and we need, that Mysql or PostgreSQL order it such sequence 2,3,4,5,8,1,1 this means, if price is < 2 $ we should put it in the back.

Want answer ? Read more…
(more…)

Kuriame trackerį

Sunday, December 2nd, 2007

Taigi nusprendžiau susikurti trackerį pabandymui. Taigi pabandysiu viska paaiškinti nuo a iki z kaip kas daroma. Kadangi man pačiam tai buvo pirmas kartas :D
(more…)

PHP caching methods (Unfinished traslation to english…)

Sunday, December 2nd, 2007

So, I will try to review a ceople caching methods witch I used.

  1. SQL query caching.
  2. Content caching
  3. Memcache( For testing purposes tested )
  4. eAccelerator, Zend and others similar php cache engines.

(more…)

Nuotolinis prisijungimas prie linuxo VNC pagalba

Sunday, December 2nd, 2007

Taigi, yra bent keletas būdų kuriuos ir aptarsiu… (more…)

PHP sorting algorithms

Sunday, December 2nd, 2007

One day looking for a sorting algorithm spent some time and did not find anything good. Actually found, but it needed some adoption. So decided paste it here, maybe someone it will save some time:

I give you free main functions.

  • First moves item up.
  • Second moves item down.
  • Third one moves item down or up by number of positions depending on given parameter.

(more…)

.htaccess against crawlers

Sunday, December 2nd, 2007

So if someone tries to leech your website, found solution. I found one .htaccess file. He blocks access for all site crawlers.  It needs working mod_rewrite apache module. File content looks like :
(more…)