Monday, October 21, 2013

Pearl Jam Lightening Bolt tour setlist 2013

Pendulum
Low Light
Given to Fly
Do the Evolution
Mind Your Manners
My Father's Son
Cropduster
Wishlist
Sirens
I Am Mine
Lukin
Not for You
Down
State of Love and Trust
Lightning Bolt
Porch

Encore:
Other Side
Future Days
Gone
Black
Jeremy
Daughter
Even Flow
Rearviewmirror

Encore 2:
Smile
Once
Alive
Baba O'Riley
(The Who cover)
Yellow Ledbetter

source: www.setlist.fm

Sunday, October 13, 2013

Nine Inch Nails setlist 2013 @ TD Garden, Boston, MA

Copy of A
1,000,000
Came Back Haunted
Terrible Lie
March of the Pigs
All Time Low
Find My Way
Piggy
Disappointed
Survivalism
Running
A Warm Place
The Wretched
Into the Void
The Frail
Satellite
Somewhat Damaged
Wish
The Hand That Feeds
Head Like a Hole

Encore:
Even Deeper
In This Twilight
While I'm Still Here
Black Noise
Hurt

Tuesday, September 10, 2013

Stone Temple Pilots with Chester Bennington setlist 2013

Stone Temple Pilots with Chester Bennington setlist at House of Blues, Boston, MA 2013

Down
Big Bang Baby
Vasoline
Dead & Bloated
Out of Time
Silvergun Superman
Church On Tuesday
Big Empty
Sour Girl
Interstate Love Song
Pop's Love Suicide
Hollywood Bitch
Sex Type Thing
Sex & Violence

Encore:
Wicked Garden
Piece of Pie (with Richard Patrick)
Trippin' on a Hole in a Paper Heart

Monday, August 26, 2013

Spring DefaultMessageListenerContainer xml bean setting/configuration

    <bean id="cachingConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
        <property name="targetConnectionFactory" ref="emsFactory" />
          <property name="sessionCacheSize" value="${maximumSession}"/>
    </bean>

    <bean id="jmsContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
        <property name="destinationName" value="${receiveQueueName}" />
        <property name="connectionFactory" ref="cachingConnectionFactory" />
        <property name="messageListener" ref="mylistener" />
        <property name="maxConcurrentConsumers" value="${maximumListeners}" />
        <property name="autoStartup" value="true" />
    </bean>   

    <bean id="ctiSendDestination" class="com.tibco.tibjms.TibjmsTopic">
        <constructor-arg value="${sendTopic}"/>
    </bean>
   
    <bean id="mySender" class="my.test.MySender">
        <property name="jmsTemplate" ref="jmsTemplate" />
        <property name="destination" ref="ctiSendDestination" />
    </bean>
   
    <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
        <constructor-arg ref="cachingConnectionFactory" />
    </bean>
   
    <bean id="emsFactory" class="com.tibco.tibjms.TibjmsConnectionFactory">
        <property name="serverUrl" value="${emsUrl}" />
        <property name="userName" value="${emsUser}" />
        <property name="userPassword" value="${emsPassword}" />
    </bean>
   
    <bean id="mylistener" class="my.test.Mylistener">
    </bean>

Tuesday, August 6, 2013

Jimmy Eat World - setlist 2013 tour

I Will Steal You Back
No, Never
Goodbye Sky Harbor
A Praise Chorus
Heart Is Hard to Find
Futures
Kill
Pain
Always Be
Sweetness
My Best Theory
Appreciation
Your New Aesthetic
Work
We Are Never Ever Getting Back Together (Taylor Swift cover)
Lucky Denver Mint
Hear You Me
For Me This Is Heaven (Jim solo acoustic)
Damage
Let It Happen
Bleed American

Encore:
Chase This Light
23
Big Casino
The Middle

Sunday, July 28, 2013

Bon Jovi "Because we can" tour setlist 2013

That's What the Water Made Me
You Give Love a Bad Name
Raise Your Hands
Born to Be My Baby
Lost Highway
Whole Lot of Leavin'
It's My Life
Because We Can
What About Now
We Got It Goin' On
Keep the Faith
(You Want to) Make a Memory
Bed of Roses
Captain Crash & the Beauty Queen From Mars
We Weren't Born to Follow
Who Says You Can't Go Home
I'll Sleep When I'm Dead
(w/ "Jumpin' Jack Flash" & "Start Me Up")
Bad Medicine
(w/ "Old Time Rock and Roll")

Encore:
Dry County
Wanted Dead or Alive
Runaway
Someday I'll Be Saturday Night
Have a Nice Day
Livin' on a Prayer

Encore 2:
Always
I Love This Town

source: http://www.setlist.fm/setlist/bon-jovi/2013/metlife-stadium-east-rutherford-nj-7bc68a9c.html

Wednesday, July 24, 2013

POD setlist 2013 tour with flyleaf

Boom
Set It Off
Lost in Forever
Youth of the Nation
Without Jah, Nothin'
Panic & Run
Eyez
Roots in Stereo
Beautiful
Murdered Love
Southtown
Alive
Babylon the Murderer
On Fire
Strength of My Life
Satellite

Monday, July 15, 2013

Alient Ant Farm setlist 2013

Courage
What I Feel Is Mine
Let Em Know
Movies
Sympatico
Attitude
Glow
Sticks and Stones
Smooth Criminal  (Michael Jackson cover)

Hoobastank setlist for 2013

This Is Gonna Hurt
The First of Me
Pieces
Running Away
Same Direction
Slow Down
No Destination
You Before Me
Inside of You 
Incomplete
Out of Control
Crawling in the Dark
The Reason


Saturday, July 13, 2013

Daughtry setlist tour 2013

Outta My Head
Crawling Back to You
Over You
Feels Like Tonight
In the Air Tonight(Phil Collins cover with Brad Arnold)
No Surprise
Life After You
It's Not Over
September
Home
There and Back Again


3 Doors Down setlist 2013

Time of My Life
Duck and Run
Loser
One Light
It's Not My Time
Away From the Sun
Citizen/Soldier
Behind Those Eyes
Here Without You
Symphony of Destruction (Megadeth cover)
The Better Life
Kryptonite (with Chris Daughtry)
When I'm Gone

Wednesday, July 10, 2013

Slash featuring Myles Kennedy and the conspirators @House of Blues, Boston, MA 8th July 2013

Halo
Been There Lately
Standing in the Sun
Doctor Alibi
Welcome to the Jungle
Rocket Queen
Back from Cali
Gotten
No More Heroes
Starlight
Let It Roll
Shine
Nothing to Say
We Will Roam
Nightrain
Ghost
You're a Lie
Sweet Child O' Mine
Slither
Anastasia


Encore:
Immigrant Song
Paradise City

Wednesday, June 19, 2013

Counting Crows setlist 2013

@Bank of America Pavillion, Boston, MA 18th June 2013

Black and Blue
Omaha
Start Again
Richard Manuel is Dead
Round Here
Catapult
Daylight Fading
Return of the Grievous Angel
You Ain't Goin' Nowhere
1492
Colorblind
Children in Bloom
Goodnight L.A.
Hospital
Anna Begins
Meet on the Ledge
A Long December
Rain King

Encore:
Washington Square
Holiday in Spain
Walkaways
Hanginaround 

Saturday, June 15, 2013

Monday, March 25, 2013

Ibatis queryForList returning a List of String objects

Using an IBatis query that returns mutiple rows from the database, each row can be returned as an object and all these individual objects can be encompassed in a List.

query
<select id="getEmpNames" resultClass="java.lang.String">
        select names from emp_address where dept_id = #value#
    </select>
   
    Java code
    public class EmployeeDaoImpl extends SqlMapClientDaoSupport {
    ...
    ...
        public List<String> getEmpNames(Long deptId) {
       
         List<String> tempList = getSqlMapClientTemplate().queryForList("getEmpNames", deptId);
         return tempList;
         }
     ..
     }
   

For example if the above code snippet returns 5 rows from the database, IBatis internally constructs 5 String objects and returns a List<String>.

Friday, March 8, 2013

Convert java attributes to start with upperCase when being written to xml file using XStream

    if (xstream == null) {
                xstream = new XStream(){
                  
                    @Override
                    protected MapperWrapper wrapMapper(MapperWrapper next) {
                            return new UpperCaseMapper(next);
                    }
                };
            }
           
    private static class UpperCaseMapper extends MapperWrapper {
        public UpperCaseMapper(Mapper wrapped) {
                super(wrapped);
        }

        @Override
        public String serializedMember(Class type, String memberName) {
            String camelCase = memberName.substring(0, 1).toUpperCase() + memberName.substring(1);
            return super.serializedMember(type, camelCase);
        }
       
        @Override
        public String realMember(Class type, String serialized) {
                String camelCase = serialized.substring(0, 1).toLowerCase()
                                + serialized.substring(1);
                return super.realMember(type, camelCase);
        }
    }

Saturday, January 26, 2013

Soundgarden setlist @ Orpheum Theatre, Boston, MA in 2013

Searching With My Good Eye Closed
Spoonman
Jesus Christ Pose
Outshined
By Crooked Steps
Taree
My Wave
Been Away Too Long
The Day I Tried to Live
Blow Up the Outside World
Fell on Black Days
Ugly Truth
Drawing Flies
Hunted Down
Non-State Actor
Blood on the Valley Floor
Mailman
A Thousand Days Before
Burden in My Hand
Head Down
Loud Love
4th of July

Encore:
Incessant Mace
Rusty Cage
Black Hole Sun
Slaves & Bulldozers

source: www.setlist.fm

Saturday, January 12, 2013

Ibatis return custom java object from query as List

Using IBatis if a sql query returns a number of rows and you need to IBatis to convert these rows to a java Object then you need to

1) create a resultMap entry where you map the propery in the java object to a column in a table
2) create a statement which contains the query and specify a resultMap (This is has been defined by above step 1)

using the above two configurations, Ibatis converts each row into a new MyClass() object and then populates it with the data from that row.

java code snippet
Map parameterMap = new HashMap();
parameterMap.put("inputNames", "abc");
      
List nameList = (List) getSqlMapClientTemplate().queryForList("getEmpDetails", parameterMap);
       
 

ibatis config       
<sqlMap namespace="myQueries">

    <resultMap id="idMap" class="com.test.MyClass">
        <result property="myId" column="ID_COLUMN_IN_DATABASE_TABLE"/>
        <result property="name" column="NAME_COLUMN_IN_DATABASE_TABLE"/>
    </resultMap>
   
    <statement id="getEmpDetails" resultMap="idMap"
        parameterClass="java.util.Map">
        select mytable.ID_COLUMN_IN_DATABASE_TABLE, mytable.NAME_COLUMN_IN_DATABASE_TABLE
        from mytable
        where mytable.name = #inputNames#
    </statement>
   
</sqlMap>

Using XStream to set xmlns attribute (xml namespace)

Thoughtworks xstream does not have an API to add xmlns attribute to xml root element. There is a work around to do the same using their useAttributeFor() API. Its a bit of hack but serves the purpose.

java pojo
public class TestXmlns {
    private String name;
    private String address;
    private String xmlns;
   
    ...get/set for above attributes.
   
}

create an instance of xstream and add below configuration
xstream.useAttributeFor(TestXmlns.class, "xmlns");

Example:
TestXmlns x1 = new TestXmlns();
x1.setName("abc");
x1.setAddress("zyx");
z1.setXmlns("http://com.company.mytest");

XStream xstream = new XStream();
xstream.useAttributeFor(TestXmlns.class, "xmlns");

String xmlString = xstream.toXML(x1);

output
<TestXmlns xmlns="http://com.company.mytest">
    <name>abc</name>
    <address>xyz</address>
</TestXmlns>

Convert java.util.Date to xsd:dateTime xml format

When converting java.util.Date to xml xsd dateTime format, one of the approaches is to use XMLGregorianCalendar class to format it to xml xsd format specifications.

input
new java.util.Date()

output
2013-01-12T10:30:09.274-05:00

code snippet:
String convertedDate = "";
GregorianCalendar gc = new GregorianCalendar(TimeZone.getTimeZone("EST"));
//use below line to pass in a java.util.Date as an argument
//gc.setTime(date);
try {
       convertedDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(gc).toXMLFormat();
} catch (DatatypeConfigurationException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}