Sunday, December 5, 2010

Cara membuat scrolling bloglist pada blog

Scrolling bloglist  adalah seperti mana terdapat pada sidebar blog ini.Mempunyai butang untuk memasukkan link ,memaparkan hanya senarai blog, mengikut update dan tidak menggunakan banyak ruangan .Kebanyakan blog list yang ada adalah panjang jadi dengan menggunakan cara ini adalah lebih mudah untuk menguruskan kannya.



Untuk membuatnya:

Mula mula masukkan bloglist dahulu.
Pada design pilih --page elements-add a gadget--bloglist
Bagi dashboard baru pilih Layout...Add a Gadget...bloglist

Sebelum itu backup template terlebih dahulu.

Kemudian :
masuk ke design—edit html-expand template widget
untuk dashboard baru pilih template...Edit HTML....tandakan pada expand template widget
Kemudian cari kod yg dibawah,yg bertanda dengan warna merah  adalah berbeza mengikut tajuk yg diberi pada widget.
<b:widget id='BlogList1' locked='false' title='Blog List' type='BlogList'>
<b:includable id='main'>

<b:if cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>

<ul>
<b:loop values='data:links' var='link'>
<li><a expr:href='data:link.target'><data:link.name/></a></li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

Kemudian tambahkan kod berwarna hijau seperti dibawah ini.

<b:widget id='LinkList1' locked='false' title='Blog Roll' type='LinkList'>
<b:includable id='main'>

<b:if cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>

<div class='blog-list-container' expr:id='data:widget.instanceId + "_container"' style='overflow: auto; display: block; overflow-x: no; overflow-y: scroll; height: 300px; width: 160px;'>
<ul>
<b:loop values='data:links' var='link'>
<li><a expr:href='data:link.target'><data:link.name/></a></li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div> </div>
</b:includable>
</b:widget>

 Kemudian save template

#Lebar dan tinggi widget boleh diubah pada bahagian teks warna oren.
Kemudian save template

Topik berkaitan: Cara letak border,background dan scroll pada widget 

Update 23/12/2012

Novel terbaru Ramlee Awang Murshid - Rayyan Fantasi

 Novel ke-20 RAM: RAYYAN FANTASI

Sebagai peminat RAMLEE AWANG MURSHID,  Novelis Thriller No. 1 Malaysia, saya tidak ketinggalan mendapatkan novel thriller beliau yang terkini, Rayyan Fantasi. Baharu sahaja di lancarkan semalam di MPH, Alamanda. 

 
Selain dari novel RAM, novel terkini Aisya Sofea juga saya dapatkan dari blogger Abang Long...sesiapa yang berminat hendak mendapatkan novel2 ini boleh lah berurusan dengan beliau...

Saturday, December 4, 2010

Holiday Detox

Asyik makan daging korban saja sejak Raya hari tu. Lepas tu banyak pula attend kenduri kahwin... makan nasi beriyani lagi, daging lagi, ayam, berempah berminyak...minum air sirap bandung, manis pekat dengan susu dan ice-cream soda....aduish...

baju, kain seluar semua dah semakin ketat...alamak...tak boleh jadi ni!!!!

Sebelum diet tu jom kita buang dulu semua toksin dalam badan tu....

==========================================
If your holiday celebrations are leaving you feeling fat, achy, and lethargic, you’re not alone. Millions of your fellow revelers are in the same swollen boat.

Good news! This 3-day detox will blast away bloat, boost energy, burn fat, and ensure you regain your mojo in just 72 short hours. The meals are vegetarian (no meat or poultry—you had your fill on Turkey Day), and they’re loaded with the ideal mix of antioxidants, protein, fiber, vitamins and minerals. Here’s how it works:

•Follow the same daily menu for three days in a row.

•Eat only what is listed on the menu–no added sugar, honey, sugar substitute, salt, salad dressing, condiments, etc.

•Drink only what is listed on the menu—no soda, fruit juice, alcohol, or diet beverages.

•Enjoy black coffee or tea at breakfast (regular or decaffeinated).

•Drink two 8-ounce glasses of water within 30 minutes of eating your lunch and dinner meals. Drink as much additional water as you’d like throughout the day.

•Drink one cup of regular or decaffeinated green tea after your lunch, afternoon snack, and dinner.

•The plan is vegetarian, but if you’d like to make it vegan see simple substitutes at breakfast and dinner.

Ready, set, go.

Daily Menu

Breakfast

In a blender, combine ¾ cup skim milk (for vegan plan, substitute soy or almond milk), ½ banana, ½ cup frozen raspberries, ½ cup frozen blueberries, 1 scoop vanilla whey protein powder (for vegan plan, substitute soy, rice, or pea protein powder), ¼ teaspoon cinnamon, and 5 ice cubes. Blend until smooth and frothy.

Optional black coffee or tea

Lunch
Drink two 8-ounce glasses water (with optional lemon) within 30 minutes of eating. Drink as much additional water as you’d like during the meal.

Large spinach salad

•Unlimited spinach leaves
•Unlimited antioxidant-rich produce (Best choices include bell peppers, tomatoes, carrots, red onions, broccoli, and sliced beets. You may also add cucumbers, mushrooms, celery, and cauliflower.)
•½ cup red kidney, pinto, or black beans
•1 tablespoon toasted, chopped pecans
•Dress with 1 teaspoon olive oil and unlimited balsamic or red wine vinegar

1 pink or red grapefruit
1 cup green tea

Snack
½ cup unsalted pistachio nuts (in shell)
1 cup green tea

Dinner
Drink two 8-ounce glasses of water (with optional lemon) within 30 minutes of eating. Drink as much additional water as you’d like during your meal.

Unlimited baked, grilled, broiled, or poached fish
Good choices include cod, halibut, haddock, and wild salmon, seasoned with fresh lemon and black pepper (for vegan plan, substitute Sautéed Tofu—see recipe below)
Unlimited steamed broccoli with optional fresh lemon and black pepper

1 cup green tea or naturally caffeine-free herbal tea

Recipe: Sautéed Tofu

•Oil spray (canola or olive oil)
•1 block extra firm tofu, drained and pressed for at least 30 minutes
•1 clove garlic, minced
•Fresh lemon juice or balsamic vinegar
Liberally coat a large nonstick skillet with oil spray, and preheat the skillet over medium-high heat.
Cut the tofu into 1-inch cubes. Add the tofu cubes to the skillet in a single layer and cook, without stirring, for 2 minutes. Toss the cubes and cook for 6 minutes, stirring every few minutes to brown the tofu evenly on all sides. Add additional oil spray as necessary to prevent the tofu from sticking to the skillet.

Add the garlic and sauté for 30 more seconds (watch the pan closely to make sure the garlic doesn’t burn).

Transfer the tofu to a plate and dress with unlimited fresh-squeezed lemon juice or balsamic vinegar.

source: http://health.yahoo.net/experts/joybauernutrition/holiday-detox

Kuala Lumpur International Motor Show 2010

Masih berkisar tentang kereta .... sekarang kereta yang kena cium itu dah selamat berada di "hospital" untuk mendapatkan rawatan... alang-alang dah berada di hospital tu, teruslah nak ganti baju baru..aduishhh...melayang lagi duit nampaknya....

Dah cerita pasal kereta, jom kita tengok pameran kereta di PWTC...manalah tahu ada yang berkenan di hatikan...

Kuala Lumpur International Motor Show 2010 (KLIMS 2010)

Diantara kereta yang di tayangkan di booth PROTON, kereta konsep Proton,

Kereta PAHLAWAN.
 JEBAT
 KASTURI
  LEKIR
LEKIU
 TUAH

Ini kalau anak-anak bujang saya tengok , mau nya tak tido malam berangan nak bawak ..terutama Jebat, Lekir dan Lekiu tu...sporty sangat kan..
(sumber: http://mediamalaya.com/proton-pahlawan-di-klims-2010/)

The Sun

Remember way back in primary school when the teacher showed us how to draw a SUN. The sun always looked like this:

Never once did I question my primary school teacher as to why the sun should be drawn that way.
The sun usually looked bright and round in my eyes:


In high school, when people started reading and seeing more things around them, I learnt to draw the sun like this:

Again, being a typical Malaysian student, I didn't ask much. I just followed what others did.. and well, also because the sun looked wayyy nicer than the first one ;p
But to my naked eye, in sunny Malaysia, the sun still looked round. Sometimes looking up at the sun was impossible. Squint till cannot see the sun or if I tried to stare at the sun, my eyes will ended up seeing stuff in weird colours:


After high school, I was bound to meet someone who was selling art pieces at the malls (aka art drawn by professional artist) and it always looked like this:

PS: it will loook prettier with colours on it

This morning, I finally found the answer I wasn't was searching for after all those years XD

As I looked outside my window, the weather outside was absolutely fabulous today after all the continuous snowfall in the previous days. Hence, I decided to play around with my GF1... Played with the ISO, and WB modes on Manual.



I also ended up getting shots of the sunset. Yay because through my window, I can see the sunrise, and see it moving to the right side till it sets. East and West doesn't seem so far ;)










I thought the shots turned out nice... But then when I asked a friend to give his opinion, he said it was nice but its like any other normal photos.... *sad* Oh well, as long as I am happy with it and at least I know why the sun was drawn as what I've been taught since 6 years old :)

Cara mengelakkan read more automatik pada halaman statik

Memasang read more secara automatik memang menyenangkan kita kerana tidak perlu lagi memasukkan apa apa kod dan memilih bahagian mana teks yang hendak dipotong.Tetapi masaalahnya bila kita membuat halaman statik pada blog pun ada read more juga.Halaman statik untuk meletakkan sitemap dan tukar link tentunya kita nak paparan penuhkan?Jadi tutorial ini adalah bagi rakan rakan yang ingin mengatasi  masaalah dengan read more automatic ini.


Caranya:
Masuk ke dashboard,pilih template>>Edit HTML


Cari kod dibawah ini:
<div class='post-body'>

<b:if cond='data:blog.pageType == &quot;static_page&quot;'><br/>
<data:post.body/>
<b:else/>

<b:if cond='data:blog.pageType != "item"'>

<div expr:id='"summary" + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb("summary<data:post.id/>");
</script> <span class='rmlink' style='float:right;padding-top:20px;'><a expr:href='data:post.url'> read more "<data:post.title/>"</a></span>

</b:if>
<b:if cond='data:blog.pageType == "item"'><data:post.body/></b:if>

</b:if>

<div style='clear: both;'/> <!-- clear for photos floats -->
</div>

Apa yang perlu kita buat ialah tambahkan kod warna hijau padanya.Cara ini telah saya gunakan pada read more automatic dengan thumbnail yang ada pada blog ini.

Jika kod diatas tiada gunakan cara ini:
cari kod dibawah ini:

<div class='post-body entry-content'>

kemudian letakkan kod ini dibawahnya:

<b:if cond='data:blog.pageType == &quot;static_page&quot;'><br/>
<data:post.body/>
<b:else/>


kemudian cari pula kod ini:

<div style='clear: both;'/> <!-- clear for photos floats -->

dan letakkan kod ini diatasnya:

</b:if>

Selamat mencuba

update 14/9/2013

Friday, December 3, 2010

Satu kebetulan?

Adakah ini satu kebetulan?
selepas kejadian semalam (sila baca entri sebelum ini), 
hari ini terfikir setelah teringat kata-kata seseorang suatu masa dulu (entah zaman batu bila dulu...) mengenai kereta ini lah. 

Orang tu kata, kita jangan cakap apa-apa yang tak baik/elok pada kereta kita semasa kita sedang pakai kereta tu...nanti kereta tu "merajuk"..

hurmmm..?? kereta merajuk???? 

contohnya macam kes inilah...bukan lah saya cakap perkara tak elok pada kereta ni, cuma saya pernah bercakap kepada anak bongsu saya, yang saya sedang berfikir-fikir nak cat baru kereta ni dan nak jual dan tukar kereta baru.  (Al-maklum lah "baju" yang dipakainya dah lusuh..nak bagi baju baru lah...)

Anak bongsu saya ni pulak pergi lah canang sana-sini pada abang2 dan kakak2 dia yang ummi nak tukar kereta baru... semasa di rumah, dalam kereta semasa nak gi kedai, nak gi airport hantar abi...diulang-ulangnya cerita tu...

tak lama lepas tu... jadilah kejadian semalam tu...pastu saya terfikirlah cerita orang tu berkenaan kereta "merajuk" ...

tapiiiiiiii...

semua ni kan dah suratan takdir... nak jadi-jadi lah...

bukan pasal "merajuk" pulak kan...

 kalau kita percaya ni, macam percaya cerita tahyul aje...

heeee...na'uzubillahi minzalik...

tak mahulah termasuk mensyirikkan Allah pula...

Gambar Belangkas