Sleepout in sydney’s centennial park

On September 21, 2011, in Uncategorized, by Kishore

Let’s sleepout in Centennial Park, Sydney in support of homeless.

Visit hrxsleepout.com.au for more info and to register for the event.

And you don’t have to attend to support the cause, donate here http://hrxsleepout.gofundraise.com.au/page/team-peace

Tagged with:
 

Beware of this EMail/SMS scam as responses to any ads on classifieds/forums. I just got this scam email in response to an ad on the Gumtree.

Continue reading »

Tagged with:
 

Microsoft just suggested that the best editor for a Java file is Microsoft Visual Studio .. :)

It even implied that it’s actually a J# file.. take that for skewed view of the world.

http://shell.windows.com/fileassoc/0409/xml/redir.asp?EXT=java


Microsoft suggesting visual studio as an editor for a Java file

 

Evaluate an EL expression

On February 8, 2011, in java, by Kishore

Once you start using EL heavily within your UI, eventually you will want to use it/evaluate it back in your EJB’s and Seam/Spring components

There are three steps to evaluating an EL expression.

1
2
3
4
5
6
7
8
9
10
11
//get current EL context
javax.el.ELContext elContext = javax.faces.context.FacesContext.getCurrentInstance().getELContext();
 
//get the expression factory (for seam). You can probably do ExpressionFactory.newInstance() if not using seam .
javax.el.ExpressionFactory expressionFactory = org.jboss.seam.core.Expressions.instance().getExpressionFactory();
 
//Create value expression as the EL I'm evaluating is a value e.g. #{bean.property} . Create MethodExpression if the EL is a method e.g. #{bean.method()}
javax.el.ValueExpression valueExpression = expressionFactory.createValueExpression(elContext, elExpressionYouAreEvaluating, WhateverYouAreExpecting.class);
 
// get value and dont' forget to cast.
whateverYouAreExpecting = (WhateverYouAreExpecting) valueExpression.getValue(elContext);

Yup.. that’s how convulted this is . It should more be like below

1
2
//NOTE: imaginary code
Object value = ExpressionFactory.getValue("#{bean.property}");

That’s what these guys are asking as well..

Tagged with:
 

Just did a small post about log4j DEBUG logging not working in jboss 5.1.0.

http://community.jboss.org/people/kchintoju/blog/2010/08/22/debug-logging-not-working-in-jboss-jboss-5-and-log4j

Tagged with:
 

Ever saw some/none of the DB calls in jboss (4.2.3) and oracle (9i) failing with the following error. The exceptions can be all different types, but eventually caused by this following exception.

.
.
Caused by: java.lang.NoSuchMethodError: oracle.sql.converter.CharacterConverters.toUnicodeChars([BI[CII)I
.
.

This happened when I tried to switch databases this morning (both Oracle 9i) . Nothing fixed it till I replaced both the Driver jars(nls_charset12-10.2.0.jar, ojdbc14-10.2.0.jar) , preferrably from somwhere the connection is working, I took them from a colleague.  Or you can try and download the latest drivers as well. But make sure to delete your server work and temp directories.

 

If you are like me and manage your ID3 tags outside iTunes for your music, this is how you force iTunes to refresh all ID3 info without having to recreate the entire library.

  1. Select all songs (Ctrl+A)
  2. Right click the selection, click on ‘Get info’
  3. Without entering any data, just click on ‘Ok’ this will force iTunes to refresh ID3 info.
    NOTE: Care full not to enter anything in the ‘Get info’ dialog when it is open. Because anything you enter will be applied to all songs.

Voila! that should do it.

Tagged with:
 

Google Chrome Offline Installer (From Google)

On March 17, 2009, in browsers, by Kishore

Having issues downloading/updating google chrome due to corporate proxies. Try the offline installer from Google it-self.

Download the offline installer from Google http://www.google.com/chrome/thankyou.html?standalone=1&hl=en

Google Chrome Proxy Issues

Tagged with:
 

If you are having issues connecting to your subversion repositories from Eclipse (May be with Subversive/Subclipse). Try the following.

Enter proxy details into Subversion configuration:

Open servers file in the following location

Window XP
C:\Documents and Settings\MyUserId\Application Data\Subversion\servers
Windows Vista
C:\Users\Clientside\AppData\Roaming\Subversion\servers

Update following lines at the end of file

[global]
http-proxy-exceptions = yourproxy exceptions (e.g. dev.company.com.au)
http-proxy-host = yourproxyhost (e.g. proxy.company.com.au)
http-proxy-port = your proxy port (e.g. 8080)
http-proxy-username = proxyusername
http-proxy-password = proxypassword

This step might not be needed all the time

Update Eclipse Proxy settings

Windows > Preferences

Type ‘proxy‘ in the filter text box. Go to ‘Network Connections’ config page. Choose manual proxy configuration and Update the proxy details.

Tagged with:
 

How to install OpenOffice.org 3.0 in Linux Mint

On December 17, 2008, in Uncategorized, by Kishore

This is pretty simple in the linux mint. (You usually already have OpenOffice.org 2.4 which comes by default, so this is more like an upgrade procedure)

You add the OpenOffice deb repository as this is not yet available from Ubuntu reps and do a mintUpdate which will quickly tell you what is ready to be updated. Here we go.

Step 1 – Add openoffice.org repository. To do this first open Synaptic Package Manger, Go to Setting>Repositories. Click new which will add new repository at the end of list. Add the following details as shown in screenshot for the new repository entry. Then press ok to save.

add-repository-mint1

Step 2: Open mintUpdate (Menu>Administration>mintUpdate) and click on Refresh, Which will now show all the updates for open office. Click installl updates

Tagged with: