SyntaxHighlighter

Tuesday, January 07, 2014

Configure proxy setting for Eclipse kepler

Eclipse update stuck without any error indication after upgrade to 4.3.1

Goto : Windows -> Preferences -> General -> Network Connections
Active Provider : Manual
Enter proxy value for HTTP & HTTPS only
Clear SOCKS


Tuesday, December 10, 2013

SSH Login without Password

execute the following from client. Prerequisite user id already created in remote-host.


$ ssh-keygen

Generating public/private rsa key pair.
Enter file in which to save the key (/home/ubai/.ssh/id_rsa):
Created directory '/home/ubai/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ubai/.ssh/id_rsa.
Your public key has been saved in /home/ubai/.ssh/id_rsa.pub.
The key fingerprint is:
5a:b8:3a:74:f1:f5:3a:aa:40:0d:28:75:9d:9e:83:53 ubai@localhost.localdomain
The key's randomart image is:
+--[ RSA 2048]----+
|  . .. .         |
| . o  E          |
|. . .+ .         |
| .  oo=.  .      |
|    ..o+S. .     |
|   .. .+.   .    |
|   ...o    .     |
|    .o    o      |
|    ...... .     |
+-----------------+

$ ssh-copy-id -i ~/.ssh/id_rsa.pub <remote ip / host>

The authenticity of host 'remote-ip (remote-ip)' can't be established.
RSA key fingerprint is c8:b1:2a:bb:1b:a9:f1:eb:0b:5e:a2:06:32:49:3d:bb.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
ubai@remote-ip's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'remote-ip'"
and check to make sure that only the key(s) you wanted were added.




Finally save the passphrase


$ ssh-agent bash
$ ssh-add
Enter passphrase for /home/elyobo/.ssh/id_rsa:
Identity added: /home/ubai/.ssh/id_rsa (/home/ubai/.ssh/id_rsa)



Friday, November 01, 2013

Retrieving cell value from android-uitableview

Modify  android-uitableview


br.com.dina.ui.widget.UITableView

   public BasicItem getBasicItem (int id) {  
     BasicItem bi = (BasicItem) mItemList.get(id);  
     return bi;  
   }  



Client Code :
 BasicItem bi = tableView.getBasicItem(index);<br />  
 bi.getTitle()  

Friday, December 03, 2010

missing ) before statement

Javascript original code causing missing ) before error. after some modification using escaped character. Able to fix this issue. Following are the code


 var stringContent = m_infowindow;
infoWindow.setContent("<div id=\"infowin-overlay\""
+"<P align=\"right\"><small>[ <a href=\"#\" onclick=\"clearOverlays(\'" +m_title+ " \');\">Remove</a> ]</small></P>"
+"<br />"
+stringContent+"</div>");

Friday, November 19, 2010

Admin Console not starting after new installation

no error can be found in server.log, following is the only message available

oracle-glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|Cannot refresh Catalog : Connection timed out

Apparently glassfish is trying to retrieve update information from glassfish update center, by removing glassfishv3/glassfish/modules/console-updatecenter-plugin.jar files will solve the access issue

reviving the blog

Need to create a landing page for google adsense registration. Adsense publisher id is compulsory for getting the google map api