Archive for December 2007
Irreplaceable – Beyonce
Posted December 20, 2007
on:To the left
To the left
To the left
To the left
Mmmm to the left, to the left
Everything you own in the box to the left
In the closet, that’s my stuff
Yes, if I bought it, baby, please don’t touch (don’t touch)
And keep talking that mess, thats fine
Could you walk and talk, at the same time?
And it’s my name thats on that jag
So go move your bags, let me call you a cab
Standing in the front yard, telling me
How I’m such a fool, talking ’bout
How I’ll never ever find a man like you
You got me twisted
You must not know ’bout me
You must not know ’bout me
I could have another you in a minute
Matter fact, he’ll be here in a minute (baby)
You must not know ’bout me
You must not know ’bout me
I can have another you by tomorrow
So don’t you ever for a second get to thinkin’
You’re irreplaceable?
Ahuh Ahuh (Yea Rihanna)
Ahuh Ahuh (Good girl gone bad)
Ahuh Ahuh (Take three… Action)
Ahuh Ahuh
No clouds in my storms
Let it rain
I hydroplane into fame (Eh eh)
Come’n down with the Dow Jones
When the clouds come we gone
We Rocafella (Eh eh)
She fly higher than weather
And she rocks it better
You know me
An anticipation for precipitation
stacks chips for the rainy day (Eh eh)
Jay, rain man is back with lil Ms. Sunshine
Rihanna where you at?
Membuat Grafik (Part 2)
Posted December 14, 2007
on:Maaf sebelumnya kalo banyak sekali komentar – komentar seputar tutorial membuat grafik yang belum sempat saya balas. Sekarang saya akan mencoba untuk memberikan sample kode dari library jpgraph yang sudah di download, jika berhubungan dengan database maka caranya bisa disamakan dengan tutorial yang sebelumnya.
Berikut contoh kode grafik yang mungkin bisa menjawab beberapa pertanyaan, seperti yang diajukan oleh rekan Tota :
include ("../jpgraph.php");
include ("../jpgraph_bar.php");
include ("../jpgraph_line.php");
// Some “random” data
$ydata = array(10,120,80,190,260,170,60,40,20,230);
$ydata2 = array(10,70,40,120,200,60,80,40,20,5);
// Get a list of month using the current locale
$months = $gDateLocale->GetShortMonth();
// Create the graph.
$graph = new Graph(300,200);
$graph->SetScale(“textlin”);
$graph->SetMarginColor(‘white’);
// Adjust the margin slightly so that we use the
// entire area (since we don’t use a frame)
$graph->SetMargin(30,1,20,5);
// Box around plotarea
$graph->SetBox();
// No frame around the image
$graph->SetFrame(false);
// Setup the tab title
$graph->tabtitle->Set(‘Year 2003′);
$graph->tabtitle->SetFont(FF_ARIAL,FS_BOLD,10);
// Setup the X and Y grid
$graph->ygrid->SetFill(true,’#DDDDDD@0.5′,’#BBBBBB@0.5’);
$graph->ygrid->SetLineStyle(‘dashed’);
$graph->ygrid->SetColor(‘gray’);
$graph->xgrid->Show();
$graph->xgrid->SetLineStyle(‘dashed’);
$graph->xgrid->SetColor(‘gray’);
// Setup month as labels on the X-axis
$graph->xaxis->SetTickLabels($months);
$graph->xaxis->SetFont(FF_ARIAL,FS_NORMAL,8);
$graph->xaxis->SetLabelAngle(45);
// Create a bar pot
$bplot = new BarPlot($ydata);
$bplot->SetWidth(0.6);
$fcol=’#440000′;
$tcol=’#FF9090′;
$bplot->SetFillGradient($fcol,$tcol,GRAD_LEFT_REFLECTION);
// Set line weigth to 0 so that there are no border
// around each bar
$bplot->SetWeight(0);
$graph->Add($bplot);
// Create filled line plot
$lplot = new LinePlot($ydata2);
$lplot->SetFillColor(‘skyblue@0.5’);
$lplot->SetColor(‘navy@0.7’);
$lplot->SetBarCenter();
$lplot->mark->SetType(MARK_SQUARE);
$lplot->mark->SetColor(‘blue@0.5’);
$lplot->mark->SetFillColor(‘lightblue’);
$lplot->mark->SetSize(6);
$graph->Add($lplot);
// .. and finally send it back to the browser
$graph->Stroke();
?>
Dan hasil akhir grafiknya sebagai berikut :