Skip navigation

Category Archives: Uncategorized


w2tags.heroku.com

The old friend of mine now got study for S2 in malaysia, he is interesting on making
the analog (human reading) of “meter-listrik” to become a barcode (see below ),
is it feasiable?

You need 3 files

1. \WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE
2. \WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.exe.manifest
3. \Windows\assembly\GAC_32\WebDev.WebHost\8.0.0.0__b03f5f7f11d50a3a\WebDev.WebHost.dll

no:3. you can’t copy with windows explorer, go to console and copy it

Okay,
Long time no see ya…

now, my programming language for web dev focus on
1. javascript (jquery)
2. ruby on rails
3. c# (monorails)

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

<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…

You might not have permission to use this network resource.
Contact administrator of this server to find out if you have access permissions.

The account is not authorized to log in from this station

this is the result if we try to logon to DSL ( dsl-n-01RC4.iso ) from windows XP
gues what, the problem is realy simple, the “/etc/samba/smb.conf” doesn’t have line in global says:

[global]
  encrypt passwords = true

Usually I am using Suse 10.1 and also testing on ubuntu 6.10 server, and the configuration was good on that distribution.

Ok I’ll show you the recent configuration of

DSL - N:
[global]
   workgroup = HOME
   server string = %h server (Samba, DSL)
   dns proxy = no
   log file = /var/log/log.%m
   max log size = 50
   syslog = 0
   encrypt passwords = true
   obey pam restrictions = yes
   invalid users = root
   socket options = TCP_NODELAY
ubuntu 6.10 - Server:
[global]
   workgroup = HOME
   server string = %h server (Samba, Ubuntu)
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   invalid users = root
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
   socket options = TCP_NODELAY

my friend in the office got this problem and the solution (preliminary) is to increase the heap size to be-come
“java -Xms32m -Xmx512m” .