PC usage cost for 24 hours?

Categories: blog



New housemate entered. I gave him a room. My mistake. Should’ve put him in the same room as the grizzly guy. Another 2 of my friend wanted in. Hrmm.. no place for those 2. Have to rethink strategy.

So anyway.. lets get back to the main agenda. New housemate.. brought his PC and doesnt fucking switch it off when he goes to sleep.

I searched the internet for calculating PC usage per day (24 hours per day.. 720 hours per month). I found a testing strategy and calculation formula at overclockers. There’s also a power supply calculator, very thorough but missed a few. Nevertheless still useful. It also mention about capacitor aging.. I know enough it meant a capacitor’s lifespan. Capacitor aging. With all the information I downloaded TNB’s electricity tariff booklet. Even though there’s special conditions when certain limits are exceeded. I calculate with lowest charge.

(0.210KW x 720 hours x 21.8 cents per KW/h) = 3296.16 cents = RM32.96 / month!

Roughly RM 35 - 40 per month. Since this new housemate doesnt use his pc 24/7. I’ll cut it to half around 1/3 of 40 and add it to his rent.

International Link down (TMnet, Jaring, other ISP services) :|

Categories: blog

Argh.. I have suspected that it wasnt me. My PC is fine. My modem (nan-mataru) is fine.. yes nan-mataru is my modem’s name.

But who couldve suspected that it was a natural disaster? Not me. I thought it was all TMnet’s fault as always.

Found a link. Taiwan earthquake disrupts TM’s Internet service.

So.. entertainment abruptly halted. Time for work!

stop();
hammertime();

Google.com.my: public smoking ban

Categories: blog

I found a post in Star’s Citizen Blog on Banning Smoking in Public Places. There was this one bit comment made by one narrow minded person. Annoys me to no end.

Fumes producing vehicles serves a purpose. Transporting you from one place to another.. so the byproduct is tolerable. Smoking on the other hand only irritates and disturbs others around it. If you want to smoke, smoke it privately in smoking rooms or in your own room. Not when there’s others around.

It takes so little effort to be considerate.

Python ORM (ActiveRecord) and Disabling / Hiding contents in Joomla

Categories: Development
no_entry.jpg

Woh.. I thought this day would pass away like the day before. But.. work really caught up to me and beat me down to it.

The migration of student data for UTM. I stalled it for quite some time. It lack interesting stuff for my attention but I wouldn’t want Dla to be mad at me again. So I did it.

Originally I used mysql using select queries.. the usual stuffs. But then, the errors are hard to keep track if I use record[0].. record[1] untul record[18]. I’ve been spoiled by activeRecords / active record pattern in codeigniter. So I went on searching on google and found something quite similar. "An ActiveRecord like ORM (object relation mapper) under 200 lines" on activestate’s recipes. It fits my needs. Done and done.

cipher-2-900px_400.jpg

To use it without any relation to other tables. Use it like this

class Tablename(Storm):
   pass

    

More info.. read the recipe and this blog (More on Python Metaprogramming).

Other than that..someone asked for to do this, encrypt and disable content from users ( I try not to reinvent the wheel, I’ve learned it the hard way). Basically it just makes it hard for most users to copy and paste it. Still it can be reversed if you know how. :D The source code is encoded with unicode decimal values. I cant paste it here. :D

<script language="JavaScript1.2">

function disabletext(e){return false}

function reEnable(){return true}

//if the browser is IE4+document.onselectstart=new Function ("return false")

//if the browser is NS6if (window.sidebar){document.onmousedown=disabletextdocument.onclick=reEnable}</script>

Just delay the inevitable and make it hard enough to shoo away normal users. Still using it like this take considerable amount of power from the server (encoding) and from the user, decoding. It’ll limit the amount of users but hey.. I’m just doing what people ask me to do as long it doesnt involve kicking babies and hunting dragons (with the right equipment and after training I’ll go).

There’s also quite some service that I discovered.

Been busy.. with a game.. and work

Categories: blog

Yup.. I’ve been busy for the whole week. Playing a game. Its in close beta.. there’s lots of code to follow and one of them is the code of silence.

Also.. there’s quite a lot of work. Been here and there. But things been great. Looking forward what future holds.

 

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.