Guess what…

#set($size = $DictHelper.CreateDict(“size=50″,”maxlength=50″))

User Name:$FormHelper.TextField(“user.name”,$size)

NVelocity will tray to mapping to variable with typeof User in propertyBag or in Session.

Ok,

Since April 2007 I am on Client in Cakung doing web development using CastleProject Umbrella (call monorails), my development environment using SharpDevelop and WinXP and sometime using notepad++, its new kind of experience after I am developing using CakePHP and before that developing in Delphi connect to Appfuse Application.

I think I am in the right track choosing monorails for WebDevelopment in net 2.0, I hope I can fill this blog some of my experience using CastleProject.

See ya….

Remember the old days when I ran Ruby 1.8.2 only, I got similar message from Ruby 1.9.0 (ruby-1.9.0-20060415-i386-mswin32.zip)

"C:\Ruby1.9\bin>irb
C:\Ruby1.9\bin\ruby: no such file to load -- ubygems (LoadError)

C:\Ruby1.9\bin>"

This the result from the last installation from Ruby 1.8.6, since the Distribution for Ruby 1.9.0 Does not include rubygems, so you must remove the Environment Variables that Ruby will lookup for the options.

RUBYOPT = -rubygems

Mungkin sudah lumrah kalau di javascript kita bikin object dan creating methodsnya menggunakan prototype, dan yang sudah lumrah juga bahwa penulisan di javascript sebisa mungkin minimal (production biasanya di compress menggunakan tools dari Dean Edward), nah disini saya coba tamplikan cara penulisan untuk penambahan methods (contoh untuk object Date) dengan mengunakan function shortcut untuk prototype dan hasil dari pemanggilan function tersebut akan ditambahkan shortcut prototype penambahan methods dan shortcut prototype function penambahan methods menggunakan json.
javascript - extend prototype

I am waiting my friend install Oracle 10g on our Development Server in SLES 10, so I grab my intermediate file of my Ruby Doc Browser and Compare it with the Ruby 1.9, and this is the result (screen-shoot) in my Open Office

Ruby Diff 1.8.6 to 1.9.0 Kernel
Read More »

My Current editor for webdevelopment (check on Categories on this post)
NOTEPAD++
notepad.png

<a href="#" class="delrec" norec="1">
	<img src="del.gif");?>"/>
</a>
- - - - - -
<script type="text/javascript">
$().ready(function() {
	$(".delrec").click(function(){
		rec = $(this).attr("norec");
		if (confirm("Are you sure to delete this record:"+rec)) {
			location = "<?php e($this->webroot."ctrls/delete/");?>"+rec;
		}
	});
});
</script>

some of the command are:

hg add -n "glob:**.ctp"    // it will show match file, doesnot execute the command
hg add "glob:**.ctp"       // this one will add to the next commit
hg revert -all             // this one will revert back to the last commit ( all files )
if you already change the file it will be have add ext .orig

Read More »

Creating CakePHP Code using Ruby Code Generator from PostgresSQL or MySQL database just like scaffolding (but on steroids)

http://rubyforge.org/projects/rubycakephp/

masih dalam taraf bersih-bersih dulu biar ndak kebawa coding yang di kantor en restructure coding biar ruby way gituuu…

when you have function like this and if it process rapidly (says like using timeout or timer) and if it the engine on the back-end query to database, sometimes the result of the cache for classpath got errors, so you must adjust how you call to the server using ajax!.

function ajaxReload(action,targetID) {
logEvent(‘===>AJAX:Reload’+targetID);
$.ajax({
type: “POST”,
url: “webroot);?>boards/”+action,
data: “name=John&location=Boston”,
success: function(msg){
$(targetID).html(msg);
}
});
}