Since I was working on web development, countless of websites me and my colleague had done either revamped or develop from scratch depending on client needs. Those are giving me such sweet-and-sour experience while doing it but full satisfaction after everything was successfully delivered.
Below a few simple websites that honorary doing by my own self which still "alive" :)
Cendera Merah Enterprise
"Cendera Merah Enterprise ditubuhkan pada 23hb. Ogos 2006 dengan modal permulaan sebanyak RM500.00 dan beroperasi di Alor setar, Kedah Darul Aman. Perniagaan yang diwujudkan adalah berteraskan dan bermatlamat kepada pembekalan terutamanya penjagaan kesihatan, pakaian dan peralatan sukan dan juga peralatan pejabat."
Chantekgifts
"For this year, the Chantekgifts team has created a selection of gift baskets & boxes that is not only attractive but also delicious!! We have searched high & low for the best cookies, chocolates, jams and other delectable items and found the best of the best in this business. To prove that, we’ve even sampled more than we should!!"
Tuesday, October 26, 2010
Thursday, January 28, 2010
So gauche..!!
While driving this morning somewhere around at Taman Maluri area (marked A),
we just stranded by something unusual incident in front of us happened between a young chinese guy (A) driving think-he-got-a-big-car and malay uncle (B) and his wife riding a "kapchai" (small motorbike).. (not intended to be racists)
Actually I was not really sure what was happened between them until I saw A came out from his car with steering lock was trying to attack B but seems like B doesn't do anything accept trying to defend himself from what he deserve --B honk while an A stop right on yellow crossing lane which is clearly his fault-- So A keep shouting plus some abusive words throw out to B and I was feeling so uncomfortable and preparing if something getting worst happened while B still keep his menace by trying to explain that clearly A made a mistake..
I do really respect to B because of the way he trying to protect himself and his wife, so this just happened pretty fast and A still keep yelling while walked away to his car and I move my car drive slowly to him and said "relax lah bro, sudah2 la tu" and drive away with down hearted while thanks to my lovely wife because she always calm me down before I did something unusual.. :p
I bet if you guys at my place on that time, you will feel the same as what I did felt.. once again, I have not being racists with anyone but what happened this morning really pissed me of as our Prime Minister @ Datuk Seri Najib mission of 1Malaysia being scratches by this kind of people..
we just stranded by something unusual incident in front of us happened between a young chinese guy (A) driving think-he-got-a-big-car and malay uncle (B) and his wife riding a "kapchai" (small motorbike).. (not intended to be racists)
I do really respect to B because of the way he trying to protect himself and his wife, so this just happened pretty fast and A still keep yelling while walked away to his car and I move my car drive slowly to him and said "relax lah bro, sudah2 la tu" and drive away with down hearted while thanks to my lovely wife because she always calm me down before I did something unusual.. :p
I bet if you guys at my place on that time, you will feel the same as what I did felt.. once again, I have not being racists with anyone but what happened this morning really pissed me of as our Prime Minister @ Datuk Seri Najib mission of 1Malaysia being scratches by this kind of people..
Wednesday, January 27, 2010
PR14HJ, Preston
--Reflash back my memories--
I was in Preston, part of UK northend for further my study which I never thought that I am going to that far and I still think about it till now..
A lots of memories with some good and bad experience I faced that's because I'd never been abroad before, so it was pretty hard for me to get along especially with the 4 seasons weather plus the language of British accent was so-hard-to-understand for me..
Actually, there are so many memories to share but I am aware I could not elaborate more and will continue when time permitted, cheers..
I was in Preston, part of UK northend for further my study which I never thought that I am going to that far and I still think about it till now..
A lots of memories with some good and bad experience I faced that's because I'd never been abroad before, so it was pretty hard for me to get along especially with the 4 seasons weather plus the language of British accent was so-hard-to-understand for me..
Actually, there are so many memories to share but I am aware I could not elaborate more and will continue when time permitted, cheers..
above: from "A" - my IT Faculty down to "B" - my not-so-nice house
Monday, January 25, 2010
Syntax error or cache memory error..??
Last saturday I received text from Toroy to mention that one of our website produced an error message:
user warning: Unknown table 'term_node_6' in field list query: SELECT DISTINCT(node.nid), node.title AS node_title, bla..bla..bla..
So, I thought it was such a normal linking error from database and I give it a try to recover but I still couldn't found any error from it, so strange.
Normally, this kind of error definitely came from database which is some of tables have been removed without updating in the website. Since it happened in weekend I don't have much time to concentrate at that problem until I return back at office today and give it one more try, voila! It working like a charm..
After investigating all the problems occur, I was thinking to give a try to dump all the caches by creating custom Drupal script since there was no error at all because Drupal are known as running on full database.
So sometimes cache slip could be a reason too, here's the Drupal based clear cache script:
// only allow site administrators to visit this page:
if (!user_access('administer site configuration')) {
drupal_not_found();
}
elseif ($user->roles[6]) {
drupal_clear_css_cache();
$tables = array(
'cache',
'cache_content',
'cache_filter',
'cache_menu',
'cache_page',
'cache_views',
);
foreach ($tables as $table) {
cache_clear_all('*', $table, TRUE);
}
drupal_set_message('Cache cleared.');
drupal_goto();
}
else {
drupal_clear_css_cache();
$tables = array(
'cache',
'cache_content',
'cache_filter',
'cache_menu',
'cache_page',
'cache_views',
);
foreach ($tables as $table) {
cache_clear_all('*', $table, TRUE);
}
drupal_set_message('Cache cleared.');
drupal_goto();
}
?>
and named it as "clear-cache.php" so it will be "http://www.yourwebsite.com/clear-cache.php"
run that script, voila! It dump all the caches which sometimes so "irritating" from developer point of view.. :)
Friday, January 22, 2010
Subaru Impreza GRB Prodrive - N2010 Rally Spec.
Actually, I do hate those new breed of Impreza's because of the hatchback and most obvious, there's no more frame-less window but after looking at these spec'ed, it was totally change my perception which is this car actually not bad at all..! Below is an article to describe about this new breed:
Prodrive has launched the Impreza N2010, its latest FIA spec group N rally car. The N2010 uses a new 33mm air restrictor, introduced by FIA to help balance the performance of Group N and the unrestricted Super 2000 rally cars. Enlarging the restrictor diameter from 32 to 33mm, fitting high flow fuel injectors and recalibrating the ECU increases peak power by 20 bhp, but more significantly, improves torque and responsiveness throughout the rev range.
Performance upgrade to the 1,994cc boxer engine have been matched by enhancements to the car’s dynamics. The Ohlins dampers have been revised with extra travel, while the suspension bushes have been strengthened.
“On gravel the Impreza is certainly a match for any Super 2000, but it is on tarmac, that the additional engine performance will really come into its own and make the N2010 a competitive alternative to a Super 2000, but at about half the price and with significantly lower running costs,” said Graham Prew, Prodrive sales manager.
Prices start at £120,000 and for the first time Prodrive has introduced a financing option to enable the car to be leased over two years with an option to buy the car at the end of the term. The package includes insurance and system rebuilds.
source taken from : Paultan.org
Thursday, January 21, 2010
Wednesday, January 20, 2010
Life ain't easy..
Got SMS'ed from Syahrul(colleague) on way to office and rarely he asked me to have a breakfast, so I did replied "jom..!". Meanwhile, I got another text from Toroy(colleague) also asking me the same question but he wanted having somewhere around at Kampung Baru, so I just replied "jom.. tp kene amek Syahrul dulu la.."
So, picked up Syahrul and we heading to Kampung Baru as suggested by Toroy --since he already arrive and about eating half of his roti canai-- While having a breakfast, suddenly Syahrul with his low voice tone said "Aku nak blah.." and I was stunned for a while as Toroy already knew it --team leader la katakn-- We lost another colleague but for the good sake of him, he made a right decision..
Best of luck bro..
So, picked up Syahrul and we heading to Kampung Baru as suggested by Toroy --since he already arrive and about eating half of his roti canai-- While having a breakfast, suddenly Syahrul with his low voice tone said "Aku nak blah.." and I was stunned for a while as Toroy already knew it --team leader la katakn-- We lost another colleague but for the good sake of him, he made a right decision..
Best of luck bro..
Monday, January 18, 2010
Monday's boredom
What a bored today(monday)..
Yesterday, picked up my cousin(jan kedah) at Salak South, LRT station --he text me before mentioned that he got an offer at Telekom Malaysia(Menara TM)-- while suddenly there was a heavy down pour with rain, it was really sudden because at the moment I drove my car it was no sign of getting down of rain plus I'm a kind of person who need an umbrella while rain to cover up my head to prevent by getting a migraine sometimes. So there was no umbrella in my car and that's the story begin of today.. :p
Yesterday, picked up my cousin(jan kedah) at Salak South, LRT station --he text me before mentioned that he got an offer at Telekom Malaysia(Menara TM)-- while suddenly there was a heavy down pour with rain, it was really sudden because at the moment I drove my car it was no sign of getting down of rain plus I'm a kind of person who need an umbrella while rain to cover up my head to prevent by getting a migraine sometimes. So there was no umbrella in my car and that's the story begin of today.. :p
Thursday, January 14, 2010
Static HTML using Drupal session
Pretty tough decision from my boss since he wanted the jQuery sliding login in static html website attach together with Drupal. Meanwhile, I figure out the session variables in Drupal must be enable in jQuery login in order to synchronize both.
So, this's the code after do some hard-code which is need to put in the static html:
chdir('/home/your_username/public_html/your_website/');
require('/home/your_website/public_html/your_website/includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_SESSION);
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
include('/home/your_username/public_html/your_website/themes/aquasoft/page-user-login.tpl.php');
So, this's the code after do some hard-code which is need to put in the static html:
chdir('/home/your_username/public_html/your_website/');
require('/home/your_website/public_html/your_website/includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_SESSION);
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
include('/home/your_username/public_html/your_website/themes/aquasoft/page-user-login.tpl.php');
Friday, January 8, 2010
Drupal 5 - Hard time with TinyMCE
What's "TinymMCE"..?
One of my client requesting me to add-on this module into their website which powered by Drupal. I'd thought it was a simple module integration as I did others before but it turn wrong, bunch of hassle within the progress, sigh..
TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.
TinyMCE is very easy to integrate into other Content Management Systems. - quote from http://tinymce.moxiecode.com/
TinyMCE is very easy to integrate into other Content Management Systems. - quote from http://tinymce.moxiecode.com/
One of my client requesting me to add-on this module into their website which powered by Drupal. I'd thought it was a simple module integration as I did others before but it turn wrong, bunch of hassle within the progress, sigh..
The process delayed about half day just to integrate this and actually it involve with some others plugin as well. Below I list down a step on how to integrate Tinymce module into Drupal:
1. Download TinyMCE Drupal @ http://drupal.org/project/tinymce and unzip it
2. Download TinyMCE Standalone @ http://tinymce.moxiecode.com/ and unzip it
3. Place TinyMCE Drupal in /public_html/modules/
4. Place TinyMCE Standalone in /public_html/sites/all/modules/tinymce/ (create new folder name "modules"
and "tinymce") so your path will be /public_html/sites/all/modules/tinymce/tinymce/
*set folder permission to chmod 777
5. Create a profile name as I'm using e.g. "tinymce" or you may choose any name as your wish, in Access
Control /admin/user/access/ make sure enable at tinymce module -> access tinymce and save it.
6. Create new input formats at /admin/settings/filters/ and rename it as "Rich Text Editing" and choose the
filter exactly same with "Filtered HTML" and choose only user roles of "tinymce" may have permission
to use and save it.
7. Go to your Drupal website and enable the module at /admin/build/modules/ and also tweak the setting of
TinyMCE at /admin/settings/tinymce/ by creating a new profile and now you are done.
Labels:
Drupal,
editor,
javascript,
open source,
php,
TinyMCE,
WYSIWYG,
zzbeauty
Subscribe to:
Posts (Atom)