Progressive Farmer's Weblog

{Adventurer, Biker, Programmer} Wannabe Life Reports

Perbedaan antara <%: … %> dan <%= … %>

Di ASP.Net MVC 1 (.Net 3.5), anda akan menemui tag berikut untuk merender value ke html. Akan tetapi, penggunaan tag tersebut harus disertai dengan Html.Encode untuk mencegah terjadi XSS attack. contoh:

<%= Model.SomeProperty %>

menjadi

<%= Html.Encode(Model.SomeProperty) %>

Pada ASP.Net MVC 2 (.Net 4.0) anda cukup melakukan ini

<%: Model.SomeProperty %>

 untuk menghindari XSS attack, karena string didalam tag tersebut akan secara otomatis di encode tanpa harus menspesifikasian encoding dengan Html.Encode.

Written by progressivefarmer

July 28th, 2010 at 7:09 am

Posted in Programming

Tagged with , , , ,

Buyan Lake

I went to Buyan Lake in Bedugul on June 27, 2010. the lake is so beautiful. the mountainous air is so fresh that makes my mind so relax.

The trip started from my Office in Kuta. Here is the map of route that i take:

Kuta to Buyan route

It takes 2-2.5 hours from Kuta to get there by motorcycle.

We rent a tent from the Lake Maintenance Officer at IDR 150k for a night, it’s quite cheap right? because we only need the tent to keep our bags, if it isn’t rain, it’s better to sleep under the sky and beside the campfire :malu:

The lake itself is easy to find, after you arrive in Bratan lake, Bedugul, just go ahead and you’ll find a junction and turn left there (there is a traditional market in the corner).

There are many activities that you could do at buyan, but I mostly like fishing. there are many fish there, especially after rain. you need special bait to fish there. local people call it Waluh Leaves. you will find these leaves easily around the lake, so it will easy for us to get the special bait :beer:.

Here are some pictures of Buyan lake and us. enjoy :alay

Written by progressivefarmer

March 31st, 2010 at 7:30 am

Posted in Traveling

Tagged with , , , , , , ,

Iwan Fals – Jangan Tutup Dirimu

Listen this song :

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Dari hati yang paling dalam
Kudendangkan sebuah lagu temani sepi
Sejenak iringi nurani

Ada jarak diantara kita
Selimuti sekian waktu telah tersita
Ingin ku hilang jarak terbentang
Semoga

Datanglah kau kekasih
Dekap aku erat erat
Jangan buang pelukku yang tulus

Biarkan hujan turun
Basahi jiwa yang haus
Jangan tutup dirimu

Buat apa kau diam saja
Bicaralah agar aku semakin tahu
Warna dirimu duhai permata

Kau mimpiku aku tak bohong
Seperti yang kau kira seperti yang selalu kau duga
Pintaku kau percayalah
Usah ragu

Datanglah kau kekasih
Dekap aku erat erat
Jangan campakkan pelukku yang tulus

Biarkan hujan turun
Basahi jiwa yang kering
Jangan tutup dirimu

Dedicated for my Edelweiss :)

Written by progressivefarmer

January 5th, 2010 at 7:02 am

Posted in Uncategorized

Tagged with , , , , ,

Lombok Adventures Photos

with 2 comments

Here are photos from Lombok Adventures that taken between 29 December 2009 – 4 January 2010.

Credit for Purwo Lapiza who taken almost of these photos and for the Lumix camera.

or you can visit my gallery page for the complete albums. Enjoy then!!

Written by progressivefarmer

December 28th, 2009 at 8:18 am

Posted in Photos

Tagged with , , , , ,