SQLite AND SPAM

Posted to Multiply on Mar 15, ’10 3:47 AM.

Grabe. Nainis ako sa SQLite today. So eto, blog muna.

Antagal ko na rin na hindi nagsulat dito.
Since mas madali ang topic about sa SPAM, yun muna.
SPAM
 
In fairness a, beneficiary ako ng US$6M!
Wow!
At hindi ko kilala yung namatay!
Eto yung original letter (via email, of course), pinadala sa aking Y! acct nung Fri 3/12, 11:38 AM (ayon sa timestamp sa message na prinovide ng Y!):
 
Bequest
From: Reverend Matthew Johnson <revmatthew@live.co.uk>
To:

On behalf of the Trustes and Executor of the estate of Late Dr Emmanuel Riggs.Please view Letter attached and get back to me.

Yours in his service,
Rev.Matthew Johnson
Parish Priest

At ito yung attached letter (in ASCII text format a! How unprofessional!)
St Benedict Parish
781 high road,
north finchley,
London N12 9QR
United Kingdom
Dear Beloved,
                           Notification of Bequest
On behalf of the Trustes and Executor of the estate of Late Dr Emmanuel Riggs,I once again try to notify you as my earlier letter to you through the Post Office was returned undelivered.I hereby attempt to reach you via your e-mail address.I wish to notify you that late Dr Emmanuel Riggs made you a beneficiary to his will.He left the sum of Six Million United States Dollars (US6,000,000.00) to you in the codicil and last testament to his will.
Being a widely travelled man,he must have been in contact with you in the past or simply you were nominated to him by one of his numerous friends abroad who wished you good.Late Dr Emmanuel Riggs until his death was an Ethical philosopher,former managing director and pioneer staff of a giant construction company.He was a very devoted christian who loved to give out and devoted himself to writing books.His great philanthropy earned him numerous awards during his life time.Late Dr Emmanuel Riggs Will is now ready for execution.
According to him this money is to support your personal endeavours and to help the poor and the needy.Please If I reach you as I am hopeful,endeavour to get back to me as soon as possible to enable the immediate execution of your portion of the bequest to enable earlier disbursment by the Paying Bank.You should  foward along your telephone and fax numbers including a proof to confirm your identity as the beneficiary in question and your current mailing address if different from the above.Proof of Identity should be either International passport or drivers License.
I hope to hear from you immediately.
Yours in his service,
Rev.Matthew Johnson
Parish Priest
Yes. Dear beloved. Sino ka?!
Nakaka-tempt kunin e. But sabi nga, it’s so good to be true.
Oh well. Mag-usap kayo ng lelang mo. Preferably sa kabaong.
Moving on….
SQLite
 
Ok sana e. Kaso epal si foreign keys.
Sabagay, by default naman kasi walang foreign key constraints ang SQLite (which is VERY WEIRD). Pero pwede via foreign key triggers.
So ok na. Na-translate ko na ang 10-table schema sa isang full-fledged database.
OK din ang queries, lalo na sa many-to-many relationships (na medyo kritikal). So far, so good.
Pero via PHP, ang ganda ng resulta:
FATAL ERROR: MALFORMED SCHEMA: FOREIGN KEY
 
Siyempre hindi yan yung actual error message.
It turns out na hindi niya alam kung ano ang dapat gawin sa foreign key triggers. At ang mga pangalan nila ay nagsisimula sa fk_.
FK nga!
So ito, napo-port tuloy sa MySQL database.
Medyo paunti-unti pa. So far so good.
Sana hindi maging so good to be true.
Shet lang.
Tapos wala pang framework.
A little rant
 
Hindi talaga ako masyadong kuntento sa CS 192 class ko ngayon. Considering na medyo kailangan siya sa CS 195.
Kamusta naman kasi, wala man lang abiso o kahit hint lang ba na kailangan ng framework sa isang industrial application. O kahit na kailangan ninyo na mag-conduct muna ng technological survey bago magsimula sa paggawa ng isang application.
And what I mean by industrial applications ay ang mga sites na ka-level ng CRS o Facebook (in short, web apps). Siyempre hindi rin naman mawawala ang mga ka-level ng ATM OSs (in fairness may guumagawa ng stand-alone program na kailangan i-deploy para sa OUR).
Hindi naman sa sinisiraan ko ang propesor ko sa 192. Siguro nga pagkukulang na namin iyon. Ayon nga kay Rommel, sa industry naman e bibigyan ka lang ng specs then ikaw na (o kayo na) ang bahalang mag-implement. Pero sana kahit hint lang e mayroon na naibigay. O kahit rekomendasyon man lamang. Kaso, ang masaklap, wala.
At nalaman ng buong klase na talagang kinakailangan ng isang framework sa isang klase na, though related ngunit, hindi naman talaga masyadong konektado: ang CS 165 (kaya may SQLite rant dun).
At nalaman ng buong klase ni Sir Mike iyon nung mga 1st week of March. At ang final demo: march 25.
Sabagay, sa lagay na iyan ay medyo kaya pa. Kaso, aaralin mo pa yung framework. Wala naman kasing automated tools na kagaya ng YACC na, pakainin mo lang ng grammar in regex, e may parser ka na. Wala, sa pagkakaalam ko, na framework na pakainin mo lang ng database schema ay may full-fledged application ka na. Siguro ang closest ay ang Ruby On Rails. Gagawa ng weblog? E madali lang yun e. 5mins kaya. Pero hindi mo mapapakain sa kanya ang basic SQL statements tapos may matino ka nang model, then auto sa controller at view. Iku-customize mo pa siya. At syempre andiyan din ang testing.
At nakakainis din ang RoR kung pabago-bago ang database schema. As in hindi yung eleksyon ng attributes ng isa o iilang tables. Kundi isang (medyo) radikal na rebolusyon sa database schema. Tulad nang sa amin.
Grabe. sabi ni sir Mike nung Feb e dapat final na ang schema. Kaso, Marso na, hindi pa final sa amon.
Siguro nga, pagkukulang na rin namin iyon. E si Rommel pa naman ang nag-suggest sa akin nung mga January pa lang na mag-Drupal. Akala ko e parang font-end HTML generator lang siya (kasi yun ang intindi ko sa sinabi ni Rommel… anggulo din nun e). Yun pala, PHP framework siya.
Swerte lang niya (nila, if I may correct) at may kasama silang nagma-masteral na. Under pa sila ni Sir Kyl, na, hindi naman sa nangmamata, ay medyo lax sa requirements at medyo madaling hagilapin.
Nililinaw ko lang na hindi ako naninira nng tao. Kaya nga rantl. Pwedeng hindi pansinin.
Bahala na. Mali pala: Si Bathala na (ang bahala).
Tasukete kudasai, kami-sama.
Hay…
Advertisements

Mag-iwan ng puna

Filed under Archives, Multiply

Mag-iwan ng Tugon

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Baguhin )

Twitter picture

You are commenting using your Twitter account. Log Out / Baguhin )

Facebook photo

You are commenting using your Facebook account. Log Out / Baguhin )

Google+ photo

You are commenting using your Google+ account. Log Out / Baguhin )

Connecting to %s