Tuesday, 19 May 2009

Our Love

"Our love" was like one tale,
A Lost dream was like one fresh morning,
Hey "My Love", you forgot me exactly as
like mountain become the water river.

Thursday, 19 March 2009

Wednesday, 18 March 2009

is Folder Option Vanished in your PC?

1.  Go to your Start menu, click on Run and open up your Registry Editor by typing "regedit" without the quotes and pressing OK.

2.  Once there go to: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folde r\Hidden\SHOWALL

3.  Delete the value CheckedValue. (Its type should be REG_SZ and data should be 2.)

4.  Create a new DWORD value called CheckedValue (same as above, except that the type is REG_DWORD) by right clicking on the right pane->New->DWORD Value. Modify the value data to 1 (0x00000001).

After this, it will let you change the "Hidden Files and Folders" option.

How to disable the Right Click on Web Page ?

To disable the Right Click on Web Pages, include the following JavaScript code on the such pages.....

< script language="javascript" >
window.onload = function() {
runmikescroll();
document.onmousedown = function() {return false;}
document.onselectstart = function() {return false;}
}

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {
if(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false");
< /script >

नेपली राष्टिय गान

सयौँ थुङ्गा फूलका हामी, एउटै माला नेपाली
सार्वभौम भई फैलिएका, मेची महाकाली

प्रकृतिका कोटीकोटी, सम्पदाको आँचल
वीरहरुका रगतले, स्वतन्त्र र अटल

ज्ञानभूमि, शान्तिभूमि, तराई, पहाड, हिमाल
अखण्ड यो प्यारो मातृभूमि नेपाल

बहुल जाति, भाषा, धर्म, संस्कृति छन् विशाल
अग्रगामी राष्ट्र हाम्रो, जय-जय नेपाल ।

रचनाकारः व्याकुल माइला (प्रदीपकुमार राई),
सङ्गीतकारः अम्बर गुरुङ
सङ्गीत संयोजनः शरद गुरुङ
गायक/गायिकाः ज्ञानु राणा, शिशिर योगी, सुनिता सुब्बा, यम बराल, विमला राई, अन्जु पन्त, अजय थापा, जयनन्द लामा, बेनुका राई, झुमा लिम्बू, रुपा झा, चन्दा देवान, राजेशपायल राई, अनीलमान महर्जन, गॅगा न्यौपाने, नारायण ओली, राजेन्द्रमान श्रेष्ठ, राम गुरुङ, रीना भुसाल, सृजना श्रेष्ठ ।

Nepal Nation Anthem (in english)

We are hundreds of flowers, the one garland - Nepali
Sovereign, spread out from Mechi to Mahakali.

Amassing nature's millions of resources
By the blood of heroes, independent and immovable.

Land of knowledge, land of peace, Terai, hills, mountains
Indivisible this beloved, our motherland Nepal.

The diverse races, languages, faiths, and cultures are so extensive
Our progressive nation, long live Nepal.

Friday, 6 February 2009

Do you know how to retieve the form value from bean in MVC Framework in Coldfusion ?

While working with MVC framework, if you want to retrieve the value from UI form elements to bean file of model.
Sometimes, we have this kinda problem, we are not able to retrieve value from bean. To resolve the value which are provided to UI, at that time, the Name of function on Bean file should be exactly same as the elements NAME value in UI.

Lets take a small example here,
you make a userBean.cfc at with the following content;

< cfcomponent output="false" name="userBean" displayName="Users Bean" >
< cfset variables.instance.username = "" / >
< cfset variables.instance.password = "" / >

< cffunction name="setUsername" returnType="void" access="public" output="false" >
< cfargument name="username" type="string" required="true" >
< cfset variables.instance.username = arguments.username >
< /cffunction >

< cffunction name="getUsername" returnType="string" access="public" output="false" >
< cfreturn variables.instance.username >
< /cffunction >

< cffunction name="setPassword" returnType="void" access="public" output="false" >
< cfargument name="password" type="string" required="true" >
< cfset variables.instance.password = arguments.password >
< /cffunction >

< cffunction name="getPassword" returnType="string" access="public" output="false" >
< cfreturn variables.instance.password >
< /cffunction >
< /cfcomponent >

you have a UI file as login.cfm at with the following content;
 
< cfform action="#viewstate.getValue('myself')#adminLoggedIn" method="post" >
< span >Sign In< /span >
< label for="username" >Email:< /label >
< cfinput type="text" name="username" value=""/ >< br / >
< label for="password" >Password:< /label >
< cfinput type="password" name="password" value=""/ >< br / >
< input type="submit" value="Submit" / >
< /cfform >

Now, if you go through above Bean file (userBean.cfc) & UI file (login.cfm),
the name= "username" and name="password" of login.cfm file have same name as the function name of userBean.cfc file as
setUsername();
getUsername();
setPassword();
getPassword();

Which do really work out.

if name value of login form and function name after have get/set prefix should be exactly same, otherwise it will not work out.