Skip to main content

Posts

Happy Halloween (from computer nerds)

© oweners / pablo / koding.com

మాస నియామక రూపాత్మక

మాసం మాస నియామకం చైత్రం శ్రీ పద్మీ విష్ణు వైశాఖం శ్రీ కమలా మధుసూధన జ్యేష్ఠం శ్రీ రామా త్రివిక్రమ ఆషాడం శ్రీ వృశాకపివామన శ్రావణం శ్రీ ధన్యా శ్రీధర భాధ్రపదం శ్రీ బుద్ధీ హృషీకేశ ఆశ్వీయుజం శ్రీ యజ్ఞా పద్మనాభ   కార్తీకం శ్రీ ఇందిరా దామోదర మార్గశిరం శ్రీ శ్రీ కేశవ పుష్యం శ్రీ లక్ష్మి నారాయణ మాఘం శ్రీ కమలా మాధవ ఫాల్గుణం శ్రీ పద్మా గోవింద అధికమాసం శ్రీ ఆననందా పురుషోత్తమ

Which way isAssignableFrom ?

Between java auto boxed types and primitive data types, which way is the class assignable from? Simple. Long ln = 1L; //autoboxing (assignable) assertTrue(Number.class.isAssignableFrom(ln.getClass())); assertTrue(Long.class.isAssignableFrom(ln.getClass())); assertFalse(long.class.isAssignableFrom(ln.getClass()));

Enable alwaysUseFullPath with mvc:annotation-driven

mvc:annotation-driven doesnot have alwaysUseFullPath attribute. However, in instances this is needed, adding the following bean BEFORE mvc:annnotation-driven tag will set up the alwaysUseFullPath correctly <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" id="handlerMapping">         <property name="alwaysUseFullPath" value="true"> </property></bean> So the fuller xml should like this <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" id="handlerMapping">         <property name="alwaysUseFullPath" value="true">     </property></bean>  <mvc:annotation-driven>   <mvc:message-converters>    <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">     <property name="objectMapper" ref="jacks...

"Human"

With all the unreasonable Terror in the world, We should look to Random acts of these "Humans" to be inspired. To have faith, that there is good, still in this world. Happy Long weekend everyone.