rss search

next page next page close

Facebook email module via Heroku

At last, after a few days struggling, Alhamdulillah, now I can use Sendgrid (a cloud-based messaging system) with “swiftmailer” to send out email notifications about Tempahan Projektor via Heroku (cloud-based application that offer free https), in DCT’s Facebook’s SewaProjektor page.

The work is quiet tedious as “sendgrid-php”‘s Git submodule (https://github.com/sendgrid/sendgrid-php), was configured to received parameter without swiftmailer attached in “/SendGrid/Smtp.php”:

public function __construct($username, $password)
{
/* check for SwiftMailer,
* if it doesn't exist, try loading
* it from Pear
*/
if (!class_exists('Swift')) {
require_once 'swift_required.php';
}
call_user_func_array("parent::__construct", func_get_args());

I do not have PEAR module in my “heroku”, so the right path must be set out to original swiftmailer application’s file.

So, I de-attached the submodule sendgrid-php (as I cannot commit any changes to the branches directly to sendgrid’s git), and make a folder of my own ‘sendgrid-php-swift’ branch in my local heroku.

Then, I:
$git add sendgrid-php-swift/
$git commit -am “installing sendgrid-php-swift”
$git push heroku

and voila! It is working perfectly. ๐Ÿ˜‰

To call the email function using php, easily use:

Filename:myemail.php
include 'sendgrid-php-swift/SendGrid_loader.php';
$sendgrid = new SendGrid($SENDGRID_username, '$SENDGRID_password');
$mail = new SendGrid\Mail();
$mail->
addTo('$email')->
setFrom('$email2')->
setSubject($subject)->
setText($message)->
setHtml($htmlmsg);
$sendgrid->
web->
send($mail);

Best of luck. ๐Ÿ˜‰

P/S: i) https://blazing-sky-7775.herokuapp.com
ii) https://github.com/dzulaiman/sendgrid-php-swift/


next page next page close

Panduan Papan Tanda Perkahwinan

Sebagai panduan kepada bakal pengantin hasil daripada pengalaman beta sendiri dan rakan-rakn, berikut ialah panduan untuk papan tanda perkahwinan yang terbaik:

1. Papan tanda sekurang kurangnya bersaiz A4.
2. Tulisan di papan tanda berskala besar
3. Kertas yang digunakan sebaiknya adalah berwarna yang bukan berwarna putih
4. Anak panah lebih besar digunakan
5. Jika perlukan nama ibu bapa, letakkan ia bersaiz sedikit kecil berbanding nama pengantin
6. Letakkan tarikh perkahwinan jika anda tidak bercadang mencabutnya
7. Letak papan tanda ditempat yang mudah dilihat semasa memandu dan semasa kenderaan berhenti.

Sekian, semoga ia mmbantu ๐Ÿ™‚


next page next page close

blogging like facebooking or tweeting

if I may blog like I update my fb status.. looking for wordpress ext for smartphone or should I make one?


next page next page close

blogging.exe -start

Salam and very good morning to all my wonderful readers. How’s your great weekend? ๐Ÿ˜‰

Its been a while since I updated my personal and computer blog. A lot of things happen, and during that time I have to admit, that I does not have time to commit to blogging.

Some reasons (which you’ll find a few of them quite common between bloggers ;p ) that I paused my blogging activities:

1. Not much information – atmosphere always mundane,cool,nothing much happen.

I recently does not getting much input to blog about. Here, I mean after I moved to new home – closer to my workplace,the atmosphere quiet routine, and there is nothing much development going around and not much ‘movement’ can be seen as the place as not as crowded as before. Some ‘unusual things’ are not usually happen compared to Damansara before.
2. Mood:Lazy

This is common reason for most bloggers to pause blogging. Maybe it seems happening to me resulted from the first reason above.

Hm.. Nah. It is not. I am just to lazy to connect my neurons to figure out what to blog, and lazy to send out signal to my hand to type what I am thinking these days.
3. Working with some other domain

This might be one of a kind, the ‘noble’ reason, why I paused my blogging activity. Addressing my computer blog as the plaintiff in this case, I found myself ‘guilty’ not to update because currently I am indulge in other domain, that is energy researching, other than computer analyst as before. So I am not entirely in front of my computer the whole day, instead doing field research at the, literally, reactor site.
4. Busy with something else – personal, money

This is rather selfish reason not to share this journal reader with my personal thoughts, money making agenda, and a few financial tips and tricks. Ok, it’s a promise. I will share those things soon after I have confidence and some experiences on managing those tasks. Good knowledge must be shared with others. It is better that way, in a hope that we, me and u,ย  will get the benefit more.

5. My camera phone broke – so no pic

Yeah, my phone with camera, that I usually use to capture most photos in this blog, not to mention the previous entry as an example, was broke due to water unresistant riding my motorbike during the rain. So, I can’t capture photo evidence and posted in my blog these days. It still at the nearby phone repair shop. I will push them to fix today.

6. My WP broke – can’t upload pic

I can’t believe it is WP 2.9.1 now. I am currently using the.. erm.. older version of WP. Time is so fast. Technology is rapidly evolving. One of the thing encumber me is my WP can no longer upload pic into my blogs. It looks like it broke somewhere at the plugin (Just my wild guess). So everytime I wanna upload the pics, I need to login to flickr and get the link from there.
7. I dunno what to blog about.

Yeah. I dunno. I lost my words now. ๐Ÿ™‚

In conclusion, let’s start the new phase with new mood. I will periodically update my blog now. See ya. ๐Ÿ™‚


next page next page close

Kalau xnak update blog, baik delete je blog tu..

“Kalau tak nak update blog, baik delete je blog tu..” kata Alin. Ouch.. That sound so harsh, my dear friend. Hehe. Tapi fikir-fikir balik mungkin ada betulnya. Tapi x jugak. Anyway she does not know what blog address that I am blogging. Should I say that this blog cannot be deleted as I am paying erm.. let see.. RM0.90×20+Rm30 = RM48 per year.

So, maybe today I will keep updating once again. ๐Ÿ™‚ The idea (to blog) is there mostly during ‘offline’ condition at various places, eg. supermarket, in the car, during traffic jams, but fade away when I just launched the browser in the mood of blogging – it end up reading mails, news and also chatting. Lolz.

Image from: http://tutor2u.net

This is my blog anyway. I wont blog everything like Alin (coz I’m afraid of cyberstalking same cases as Kathy Sierra who ended up cancelling her speaking engagement) but I can feel free to blog whatever and whenever I want to.

OK. I’ll see you when I see you. ๐Ÿ™‚


next page next page close

PJ Challenge 09

Lately I keep seeing advertisement of Blogger Karnival at Petaling Jaya, sponsored by Kaspersky. And the day has come. It is today – 20th June 2009.

ACTIVITIES :
PHOTOGRAPHY CONTEST ( CAPTURE KARNIVAL MOMENTS)
TREASURE HUNT
BLOG 101 (BASIC)
BLOG 411 (ADVANCE)

More info:
http://www.pjchallenge.com
Utusan.com.my

“…selain daripada Karnival Bloggers, beberapa acara yang bakal mendapat sambutan ialah PJ Drift, pertandingan perbarisan, bengkel Liveable City, lumba basikal, sukan rakyat, Power Boat, program tanam pokok dan Seminar Landskap 2009.” Utusan

Blog 411
I dunno whether I will be going or not, but I has registered in advanced for Blog 411 slot. “How to blog more humourously, the drama and emotions of blogging, secrets of the Malaysian blogosphere, how blogging relates to journalism and more.” is some description for the slot from Kaspersky SEA website.

Raising number of bloggers
From my view, there are sudden raising on the number of bloggers nowadays, and it increase rapidly everyday. I wonder how many blogspot’s subdomains has already occupied and how many dot com domains were purchased from a serius blogger every single day. Now everyone can blog, can have own website and can talk almost anything to the world. Hatred, dissatisfaction, crappy things (sounds like me isn’t it) and not to forget all the good things, motivation and ‘Chicken soup of The Day’.

Who are those featured blogger?
There are a lot of bloggers from different niche: Life, Leisure, Business, Computers, Gardening, and others. To be truth, I didn’t even know those whose name listed in that blogger 411 slot such Kenny Sia, Amanda Choe, Ellie Chee, Niki Cheong, Jason Goh and Rames (excluding Josh Lim I first known from Advertlets controversy back in 2007). Of course I do follow some personal blog like the blog linked from here and also rather peeking into kak jie‘s, ayoi’s, and the small sueannajoe‘s mumblings. I dunno whether to classify a good blogging need to have special techniques or just ‘be yourself’ thingy. Although what in my mind now they are only Josh Lim’s crony, but thanks to them for having some time and making this event success!

Last but not least, if I go there this morning (oh gosh, its 3.30 am now, why I’m still awake) or afternoon, I hope to see some more Malay bloggers and also getting to know more about above blogger name mentioned. (BTW Ixora, Lynn, Niesah, Lolly, and sumer pembaca, g tak? Kalo g bgtaulah ek, leh lepaking kejap.)

A couple of Qs
P/S: Maybe a couple of questions to throw out to Kaspersky Lab, the event organizer probably:
1. How do bloggers (as bloggers raising rapidly) can help stop **cybercrime (as they also growing very rapidly)?
2. Can I get your free Antivirus now?

Ok babeh, time to sleep. Berhenti merepek sekarang! ๐Ÿ™‚

** Cybercrime means not bounded to only hacking, malware or phishing links, but let say distributing porns, attacking an individual personally, publish bad things or porn pic for a person, and others.


next page

Facebook email module via Heroku

At last, after a few days struggling, Alhamdulillah, now I can use Sendgrid (a...
article post

Panduan Papan Tanda Perkahwinan

Sebagai panduan kepada bakal pengantin hasil daripada pengalaman beta sendiri dan...
article post

blogging like facebooking or tweeting

if I may blog like I update my fb status.. looking for wordpress ext for smartphone or...
article post

blogging.exe -start

Salam and very good morning to all my wonderful readers. How’s your great weekend?...
article post

Kalau xnak update blog, baik delete je blog tu..

“Kalau tak nak update blog, baik delete je blog tu..” kata Alin. Ouch.. That...
article post

PJ Challenge 09

Lately I keep seeing advertisement of Blogger Karnival at Petaling Jaya, sponsored by...
article post