Thursday, December 20, 2007

fastest so far...


my fastest connection so far.. fastest we can get from pldt plan 990. tsk!

Wednesday, December 19, 2007

my new 5.1 speakers


christmas gift ng beibee ko.. :)

NextBase HM-058

Specs:
• 160W RMS Total Power Output
Subwoofer - 60W
Front - 20Wx2
Center - 20W
Rear - 20Wx2
• Flexible Switch between 5.1 & 2.1 Sound Channel
• Tone Control Adjustment (Bass, Treble & Suer Bass)
• 6.5" Long-Throw Woofer Enhance Deep & Strong Bass
• 3" Drivers & 1" Spherical Tweeters Produce Crystal Clear Sound
• Wooden Subwoofer and Satellite Speakers
• Full function remote control

what's in the box:
+ user manual
+ remote control
+ 4 brackets with screws for the front(left,right) and rear(left,right)
+ shielded wires: wires for the rear speakers are longer compared to center and front(left, right)
+ warranty card
+ 4pcs stereo rca cables: 1 for the 2.1 auxilliary input and 3 for the 5.1 input
+ 4pcs 3.5mm male stereo jacks to female rca: used for 5.1 out from pc sound card and mp3/mp4, cd players
+ of course, 5.1 speakers (active sub, center, 2 front left and right, 2 rear left and right

Thursday, November 29, 2007

coup again @ manila peninsula

another coup plot is being staged by whoelse but trillanes, lim and their magdalo gang!! tsk!

this time at the manila peninsula hotel.. hmmm.. hotel again?

nakaka-asar na to ah. imagine mo na lang ikaw nasa place nang mga guests sa hotel at teka, baket laging hotel pinipili ni trillanes? dahil ba sa aircon? hahay..

Thursday, November 08, 2007

stupid eh?

Most ridiculous British law:

1. It is illegal to die in the Houses of Parliament (27 percent)

2. It is an act of treason to place a postage stamp bearing the British monarch upside-down (seven percent)

3. In Liverpool, it is illegal for a woman to be topless except as a clerk in a tropical fish store (six percent)

4. Mince pies cannot be eaten on Christmas Day (five percent)

5. In Scotland, if someone knocks on your door and requires the use of your toilet, you must let them enter (four percent)

6. A pregnant woman can legally relieve herself anywhere she wants, including in a policeman's helmet (four percent)

7. The head of any dead whale found on the British coast automatically becomes the property of the king, and the tail of the queen (3.5 percent)

8. It is illegal to avoid telling the tax man anything you do not want him to know, but legal not to tell him information you do not mind him knowing (three percent)

9. It is illegal to enter the Houses of Parliament in a suit of armour (three percent)

10. In the city of York it is legal to murder a Scotsman within the ancient city walls, but only if he is carrying a bow and arrow (two percent)

stupid eh?

--taken from yahoo news

Wednesday, October 31, 2007

Google Gmail now with IMAP

yep! good news. gmail now supports IMAP. go to "Settings" then to "Forwarding and POP/IMAP" tab. howto setup is here

Tuesday, October 02, 2007

PHONE A CLEANER SERVICES


No time to clean your pad, rooms & homes? We spend money for spa, car wash & laundry... why not for our homes?

For professional, quick and efficient home cleaning please contact:

PHONE A CLEANER SERVICES
Address: MJ Cuenco Avenue, Mabolo, Cebu City
Tel. No.:
032-238-3314
email:
phoneacleaner@gmail.com

rates:
200 bucks per hour for the first 2 hours, 175 bucks for the succeeding hours.

promo rates for members:
150 bucks per hour for the first 2 hours -- you save 100 bucks!

membership fee: 480 bucks only!

possible services includes:
cleaning (kitchen, bathrooms, bedrooms, storage rooms)
window washing
dusting
polishing
waxing
sanitizing
vacuuming

*lastly, all cleaning equipments and supplies are provided by us.

Friday, September 28, 2007

whitespace

ever heard of whitespace programming language?

as the name implies whitespace makes use of spaces, tabs and newlines -- making the strings and characters in the script ignored by the interpreter. misleading a co-worker/programmer has never been this easy.. as you can write your code on top of a more programmer friendly code such as C. nonsense comments can help too. hehe.

makes me remember of my Brainf*ck post in livejournal!

there's an emacs mode you can download at the site. :)

enjoy!

Thursday, September 06, 2007

mynissancebu sticker EB


myNissanCebu will be having a sticker EB this coming Saturday, Sept 8, 2007 300pm at Gaisano Bowlingplex Carpark, Banilad, Cebu City.

passing away

early this morning, around 3am i received a sms from my brother. then i found out that mamang just passed away, between 12-1am. my lola's been battling with alzheimer and kidney complications for several years. finally she's reunited with our creator. mamang we'll miss you.

i have to go home and take a week or more absence from work. hopefully, by saturday i'll be in manila na.

Monday, September 03, 2007

Savepoints inside Transactions

while working on a script, i discovered how to use SAVEPOINTS inside a PostgreSQL Transaction.

typical PostgreSQL Transactions looks like this:
BEGIN;
INSERT/UPDATE/DELETE STATEMENTS;
IF ERROR THEN
ROLLBACK;
ELSE
COMMIT;
END IF;


sample postgreSQL Transaction with SAVEPOINT:
BEGIN;
SAVEPOINT my_svpnt;
INSERT STATEMENT 1;
IF ERROR THEN
ROLLBACK TO SAVEPOINT my_svpnt;
END IF;
INSERT STATEMENT 2;
RELEASE SAVEPOINT my_svpnt;
COMMIT;


what do you do if you want to commit some statements or just ignore some errors before committing everything? knowing that inside a transaction all succeeding statements after an error will be ignored.

sample scenario:

loop thru checkboxes from a HTML POST then INSERT or UPDATE rows.
problem then arises because i am too lazy to write long PHP codes -- i don't want to check each rows from a HTML POST to determine if what i need to do is INSERT or UPDATE. that is, to INSERT if the row doesn't exist or UPDATE if it exist.

there's an easy way, i can check the primary key -- i don't want to do that either.

i need to know if transactions can be done in such a way where i can decide which statements to commit.

test first if each rows exists in the table:
// begin postgreSQL transaction
$conn->execute('BEGIN');
// loop thru checkboxes, rows from HTML POST
FOR ($i = 0; $i <= $rownum; $i++) {  // check if checkbox is checked
IF ($checkbox[$i] == 1) {
// check if row exist or is not yet in the table
$checkRowSQL = "SELECT * FROM pay_schedule             
                WHERE
                pay_schedule_id = {$n_pay_schedule_id[$i]}";
// pg_query
$rsChk = $conn->execute($checkRowSQL);
// get result set from SELECT query
$result->set_resultset($rsChk);
// EOF() - SELECT returns 0 rows then INSERT new row
IF ($result->EOF()) {
$sql = "INSERT INTO pay_schedule
    (pay_schedule_code, pay_schedule_remarks, pay_schedule_schedule_id)
    VALUES
    ('$s_pay_schedule_code','$n_pay_schedule_remarks[$i]', $n_pay_schedule[$i])";
$rs = $conn->execute($sql);
// if INSERT returns an error, break from FOR loop
IF (!$rs) {
$header = 'Unable to Insert Pay Scheme';
$message = 'Check entries...';
break;
}
// not EOF() - SELECT returns a row then UPDATE row
} ELSE {
$sql = "UPDATE pay_schedule SET
          pay_schedule_code = '{$s_pay_schedule_code}',
          pay_schedule_remarks = '{$n_pay_schedule_remarks[$i]}',
          pay_schedule_schedule_id = {$n_pay_schedule[$i]}
          WHERE
          pay_schedule_id = {$n_pay_schedule_id[$i]}";
$rs = $conn->execute($sql);
IF (!$rs) {
// if UPDATE returns an error, break from FOR loop
$header = 'Unable to Update Pay Scheme';
$message = 'Check entries...';
break;
}
}
}
}
// no error then COMMIT everything
IF ($rs) {
$conn->execute('COMMIT');
$header = 'Update/Add Confirmation';
$message = 'Pay Scheme Updated/Added';
// if there's an error then ROLLBACK all changes
} ELSE {
$conn->execute('ROLLBACK');
}
$commandname = 'Ok';
$command = 'fnReturn()'; // return to original page


using SAVEPOINT my code looks like this:
// begin postgreSQL transaction
$conn->execute('BEGIN');
// loop thru checkboxes, rows from HTML POST
FOR ($i = 0; $i <= $rownum; $i++) { // check if checkbox is checked 
if ($checkbox[$i] == 1) {
// establish a SAVEPOINT
$conn->execute('SAVEPOINT bgn_svpnt');
// try to INSERT row
$sql = "INSERT INTO pay_schedule
   (pay_schedule_code, pay_schedule_remarks, pay_schedule_schedule_id)
   VALUES
   ('$s_pay_schedule_code','$n_pay_schedule_remarks[$i]', $n_pay_schedule[$i])";
// pg_query
$rs = $conn->execute($sql);
/* if INSERT error, i.e duplicate row or constraint violation
     do a ROLLBACK TO bgn_svpnt savepoint then UPDATE existing row
  */
IF (!$rs) {
$conn->execute('ROLLBACK TO SAVEPOINT bgn_svpnt');
$sql = "UPDATE pay_schedule SET
         pay_schedule_code = '{$s_pay_schedule_code}',
         pay_schedule_remarks = '{$n_pay_schedule_remarks[$i]}',
         pay_schedule_schedule_id = {$n_pay_schedule[$i]}
         WHERE
         pay_schedule_id = {$n_pay_schedule_id[$i]}";
$rs = $conn->execute($sql);
// if ERROR still then cancel FOR loop and ROLLBACK everything
IF (!$rs) {
$header = 'Unable to Update Pay Scheme';
$message = 'Check entries...';
break;
}
}
// good to do a RELEASE if savepoint is not needed anymore
$conn->execute('RELEASE SAVEPOINT bgn_svpnt');
}
}
IF ($rs) {
$conn->execute('COMMIT');
$header = 'Update/Add Confirmation';
$message = 'Pay Scheme Updated/Added';
} ELSE {
$conn->execute('ROLLBACK');
}
$commandname = 'Ok';
$command = 'fnReturn()';


i settled with the second code since it will eliminate unnecessary lame SELECTs, wherein i have to retrieve and check result sets.

Wednesday, August 29, 2007

poor man's wifi

can't get a good wifi signal? while surfing i stumbled with this poor man's wifi site -- cheap DIY wifi antennas.

new words encountered: wifry, wokfi, woktenna -- get the idea?

Wednesday, July 25, 2007

xpango referrals

choose from this free gifts and start earning credits..

Click here to get your free mobile phone or apple ipod


Click here to get your free mobile phone or apple ipod


Click here to get your free mobile phone or apple ipod


Click here to get your free mobile phone or apple ipod

Xpango uses a unique Credit system to reward customers with Free Mobile Phones, Gaming Consoles & MP3 Players!

Each Gift is received for Free in exchange for Credits which can be gained by Xpango members.

When you register with Xpango and select your Free Gift, you will receive a 'Referral ID' which is used to gain Credits. Credits can easily be gained by either (or a combination of) participating in Xpango Offers, Referring Friends, or by purchasing a Mobile Accessory / Clix Package

Credit requirements for Gifts vary depending on the retail price of the Mobile Phone/Gaming Console/MP3 Player. More expensive Gifts require more Credits than less expensive Gifts.

Xpango genuinely provide the lates Mobile Phones, Gaming Consoles and MP3 Players Worldwide and for Free!

All gifts are provided in exchange for Credits and there are many ways of gaining Credits at no cost.

The best way of gaining Credits for free is by;

- Completing Free Offers (Register for Free Offers such as Blockbuster or 1on1 Pyschic and get Credits!)

- Referring Friends (Get a Credit for every friend you refer who completes a Free offer or purchases a product)

Once you have gained your Credits, you receive your Free Gift!

TIME magazine features upDharmaDown


whoa! lakas talaga ng dating ng UDD! they're now featured in TIME magazine.

check out the article: Music: The Way of Dharma

Friday, July 20, 2007

HPATDH book

i recently got hold of a "supposed" photo(as in picture files in jpg) copy of HP7 book. i even downloaded the compiled pdf format of the photos and the first 10 chapters that were typewritten, also in pdf.

not sure if it's just an elaborate hoax.. but, it's worth reading while waiting for the REAL one.

i wanted to post some pictures but i'm not sure 'bout the implications..

Friday, July 13, 2007

mynissancebu 4th EB


mynissancebu yahoogroup will be having its 4th EB this coming Sunday, July 15!!

sorry guyz, i can't commit...not sure if i can come.

Wednesday, July 11, 2007

harry potter and the number seven

j.k. rowling seems to have a penchant for the number 7.

harry potter and the order of phoenix





The fourth installment in the Harry Potter Series will be shown here in Pinas today Wednesday, July 11.

Thursday, July 05, 2007

Jung Test Results

while updating my stumbleupon preferences i came upon this Jung Test to determine my personality type. i'm an ISTP. what's yours?

Introverted (I) 63.33% Extroverted (E) 36.67%
Sensing (S) 58.33% Intuitive (N) 41.67%
Thinking (T) 55.26% Feeling (F) 44.74%
Perceiving (P) 54.05% Judging (J) 45.95%

ISTP - "Engineer". Values freedom of action and following interests and impulses. Independent, concise in speech, master of tools. 5.4% of total population.
Free Jung Personality Test (similar to Myers-Briggs/MBTI)

1408 movie


1408 = 13

   1
   4
   0
+ 8
----
13

watched this "stay scared" movie last night and enjoyed every minute of it. really like the part where john cusack(serendipity, con air) is inside room 1408. most of the horror movies i've seen lately are IMHO not that good i.e. the zombie flick 28 weeks later. 1408 by the way is a short story written by who else but stephen king.

i say, just check out the movie for yourselves.

i'll post the torrent file later.

Wednesday, July 04, 2007

choppy movie

for those of you guyz using ubuntu linux - - ever encounter choppy dvd playback on your dvd drive?
solution : enable DMA (Direct Memory Access). hdparm will do the trick. here’s how.
result : no more frame by frame playback.

sudoku

i simply love this puzzle. perfect for killing time. u don’t need to be a math wizard or have einsteins' IQ. only requirement is logic and of course, always have a pencil (with eraser) ready at all times.

whenever u want an instant headache then go on divulge yourself with uber gruelling SUPER TOUGH sudoku puzzles.

gezeala.tk & other blogs

just registered gezeala.tk! this blog can now be accessed thru www.gezeala.tk or gezeala.blogspot.com

other rants and raves:
+ wordpress
+ googlepages

Tuesday, July 03, 2007

google gezeala

wala me magawa..

then..

i googled gezeala

haven't done this in a long, long time

good to know i still exist :)

this reminds me of my site gezeala.tk which is now defunct.

bad trip.. it's not free anymore!

 

© New Blogger Templates | Webtalks