You will be able to remote other ubuntu desktop by this following command:vinagre 192.168.0.174
May 27, 2009
Remote Desktop in Ubuntu
Posted by samneang 0 comments
May 18, 2009
Javascript Unique Item in Array
After we follow this code bellow, we'll get tempArr[] which store unique items.
Example: array[1,10,2,2,5,4,5,6,6,8,10,8] => array[1,2,4,5,6,10,8]
======================================
function contains(a, e) {
for(j=0;j<a.length;j++)if(a[j]==e)return true;
return false;
}
if(!contains(tempArr, urlObj[i].group)){
tempArr.length +=1;
tempArr[tempArr.length-1] = urlObj[i].group;
}
Posted by samneang 0 comments
May 09, 2009
Selenium
Selenium is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser.
======================================1./ You need to have Ruby in your pc then install selenium by a command below.
sudo gem install Selenium
2./ cd to our JSSpec's path then run command below in order to access HTTP Server from that directory by default it's "http://localhost:8000"
python -m SimpleHTTPServer
3./ run you JSSpec file by putting it's name after the http's path above
Reference:
ChrisinCambo - jsspec_ci
Posted by samneang 0 comments
