the new manager…
Now you’ve earned your reward: a staff to manage. From now on, you success no longer depends on just your technical abilities and specialized knowledge. You only prosper if other people do their jobs well.
Now you’ve earned your reward: a staff to manage. From now on, you success no longer depends on just your technical abilities and specialized knowledge. You only prosper if other people do their jobs well.
zul on 13 Feb 2009 | quintessential geek o_0
Piwik - open source web analytic is alternate to google analytics. It is php/mysql web based application and it uses Open Flash Chart to generate the chart/graph.
zul on 22 Dec 2008 | quintessential geek o_0
There are a lot of ways to do that, you can use pure javacript or using any javascript frameworks. So here is one example how to show/hide element and toggle text using jQuery.
<script type="text/javascript">
$(function() {
$("#tDiv").hide();
var a = $('<a>Show input</a>').attr('href', 'javascript:void(0);').addClass('show-input').toggle(function() {
var self = this;
$("#tDiv").hide();
$("#theText").fadeOut();
$("#tDiv").css({ display:"inline" }).show( "fast");
$(this).text("Cancel");
},
function() {
$("#tDiv").hide();
$("#theText").fadeIn();
$(this).text("Show input");
});
// append show/hide
$("#tDiv").after(a);
});
</script>
zul on 17 Dec 2008 | quintessential geek o_0 & work
Php advent is a series of article which is published everyday started from 1st December to christmas. It publishes the thought and tips from the people involve in php (php community) and its annually event I guess. I like the article Optimize This by Maggie Nelson, really reflect to our current situation.
Well, my passion is back. I just spent RM250 for the rubbers and blade in middle of global financial crisis. Hmmm…it’s not a good idea but I cannot help myself to wait for a few more months…hehe :p . For those who has no idea what is rubber and blade, it’s a ping pong racket which is bought separately and assemble it by yourself (or you just ask the guy who sell it to assemble for you). I lost my old bat which I used at UIA during moving to new house 3 years ago. My current bat is not power enough to spin or block the ball (salahkan bat pulak, macam tuannya power sangat
) … So today I bought Butterfly Sriver for forehand and Yasaka Mark v for backhand and I still dont know which side is better and comfortable, need to test it on this friday night. Each of rubbers cost me around RM70 and the blade is RM110. Now, there’s no excuse for me not to play well…zul…Gambatte!!!…o_O
zul on 15 Dec 2008 | quintessential geek o_0
Besides jpgraph, there’s another free open source chart called open-flash-chart (ofc). It can be used with php, .net, perl, python, gwt and java. It is pretty nice because it uses flash to render the chart. So, you can have a simple “visual effect”chart and graph like fade in, fade out or animated moving tooltips. There’s one issue, it needs flash plugin browser, but I think nowadays flash has became a mandatory plugin for modern browser. Most of the video in web using flash format and video is one of the biggest thing in the web for now and future. So, don’t hesitate to display chart in flash format…errkk, am I promoting???
How to use:
Download the library from the website, upload to your directory and create test.php file or whatever you want to name it (in this case,we use php file). Copy the following code and paste it in the file you just created.
<?php
require_once('../open-flash-chart-object.php');
open_flash_chart_object( 500, 250, 'http://'. $_SERVER['SERVER_NAME'] .'/chart-data.php', false );
?>
“http://’. $_SERVER[’SERVER_NAME’] .’/chart-data.php” is the link to your data file which will provide the data to ofc to render the chart.
The following code is the sample code for chart-data.php. In this part, it’s a little bit tricky, need to learn its API. But, don’t worry it’s simple. Once you know, you can manipulate it into you own way to get the desire data.
<?php
// add random height bars:
for( $i=0; $i<10; $i++ )
$data[] = rand(2,9);
require_once('../lib/OFC/OFC_Chart.php');
$title = new OFC_Elements_Title( date("D M d Y") );
$bar = new OFC_Charts_Bar_3d();
$bar->set_values( $data );
$bar->colour = '#D54C78';
$x_axis = new OFC_Elements_Axis_X();
$x_axis->set_3d( 5 );
$x_axis->colour = '#909090';
$x_axis->set_labels( array(1,2,3,4,5,6,7,8,9,10) );
$chart = new OFC_Chart();
$chart->set_title( $title );
$chart->add_element( $bar );
$chart->set_x_axis( $x_axis );
echo $chart->toPrettyString();
click here to see the example
zul on 15 Dec 2008 | thought & work
Apabila aku mendengar orang bercakap “ooo bijaknya system ni”…sebenarnya siapa yang bijak tu…muahaha…it’s actually a compliment to people behind the system, i.e system architect, developer/programmer, system analyst, project manager, UI designer, QA/QC n etc etc…aku baru mendengar compliment ni beberapa minit yang lalu
… Sistem yang berjaya dan betul-betul mantap memerlukan kerjasama dan comitment antara kedua-dua belah pihak, vendor/developer and client/user…daripada gathering user requirement sehinggalah ke system testing, input daripada user amatlah penting…kalau tak, jadilah system syok sendiri..hehe…tapi bukan system yang fail…erkkk, aku malas nak cerite system yang fail…fail is terrible….
Seperti yang ku jangka…”for the first two weeks, u need to go to epf”, itulah kata-kata hikmat yang diucapkan oleh mr. boss semasa melaporkan diri pagi ni. Haha….aku nak tergelak pun ada, masa keluar company(current company) ni pun buat epf, masuk company lama buat epf jugak….masuk balik company ni pun buat epf…aku tak pun bersungut, marah ataupun kiciwa…In fact, I’m happy…hmmm….ye ke???? nanti aku pikir balik, hehe…walaupun orang cakap, aku tak dapat pengalaman baru, this project thought me a lot of things, walaupun dah 3 tahun aku buat projek ni, I never felt boring, dan tak pernah rasa nak termuntah tengok code tu….projek epf ibarat perjuangan yg belum selesai :p …hopefully it can be settled down soon…walaupun mr boss cakap 2 minggu, tapi aku tau, 2 minggu maksudnya 2 bulan and it is possible to be 2 years!!! gulppp…
Tadi, bila tengok code lama aku, owhhh…I was realized how bad it was, it shouldn’t be done this way…my mind with the cooperation of my heart kept telling me that I should revamp it, but Im still not insane…thats only possible if I have luxury in term of time and resources…and also that made me think how Im going to teach the new colleagues under me and how to become a good “senpai”… the special about human is his brain…so, let me think about it…
I have one week free before I start new job. Make me think what the best thing to do to fully maximize this precious time…maybe I should read the books that I bought a few months ago, ooooh I’m so lazyyy to read lately…or maybe I should watch all dvds which still intact in the box…dah berhabuk pon…or maybe I should sit in front of this notebook and finish all my pending applications and being geeky…owhh, I still cannot live without my notebook though…hmm, vacation sounds good, but who’re going to follow me??? everybody busy with work…balik kampung ok jugak ni, tapi nanti raya haji kena balik jugak…hmmmm…