Skip to content

Instantly share code, notes, and snippets.

View rajeshpv's full-sized avatar

Rajesh Rao rajeshpv

  • Consultant
  • Cary NC
  • 05:01 (UTC -04:00)
View GitHub Profile
[error] :::: ERRORS
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/content/org/scalatra/scalatra-scalatest_2.8.0/2.0.0-SNAPSHOT/maven-metadata.xml
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/content/org/scalatra/scalatra-scalatest_2.8.0/2.0.0-SNAPSHOT/scalatra-scalatest_2.8.0-2.0.0-SNAPSHOT-sources.jar
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/content/org/scalatra/scalatra-scalatest_2.8.0/2.0.0-SNAPSHOT/scalatra-scalatest_2.8.0-2.0.0-SNAPSHOT-javadoc.jar
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/content/org/scalatra/scalatra-test_2.8.0/2.0.0-SNAPSHOT/maven-metadata.xml
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/content/org/scalatra/scalatra-test_2.8.0/2.0.0-SNAPSHOT/scalatra-test_2.8.0-2.0.0-SNAPSHOT.pom
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/content/org/scalatra/scalatra-test_2.8.0/2.0.0-S
@rajeshpv
rajeshpv / gist:869399
Created March 14, 2011 16:17
pull file here
Test this
@rajeshpv
rajeshpv / gist:1009332
Created June 5, 2011 19:52
xslt example
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes" indent="no"/>
<xsl:template match="/cat">
<xsl:copy>
<xsl:apply-templates select="mName"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
#!/bin/bash
find $1 -name '*.jar' | while read f
do
jar tf "$f" | grep "$2" && echo "[in $f]"
done
## findjar lib javax/servlet/Filter.class
@rajeshpv
rajeshpv / jobinterviewquestions.txt
Created January 31, 2012 19:36 — forked from xfire/jobinterviewquestions.txt
Job Interview Questions you Should Ask
Software development
- Which platforms (Linux, Windows, Mac, Embedded) will I develop for?
- What programming languages are you using for which kind of projects / applications?
- What Development Environment are you using?
- Are you using any coding style guidelines? If yes, can I take a look at the document?
- Are you actively supporting / allowing time for keeping your code base maintainable and up to date?
- How do you handle documentation? Is there time reserved specifically for documenting projects?
@rajeshpv
rajeshpv / spring-aop-example-tracing.xml
Created February 1, 2012 02:29
Spring AOP tracing
<bean id="customizableTraceInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor">
<property name="enterMessage" value="Entering $[methodName]($[arguments])"/>
<property name="exitMessage" value="Leaving $[methodName](): $[returnValue]"/>
</bean>
<aop:config>
<aop:advisor advice-ref="customizableTraceInterceptor" pointcut="execution(public * org.synyx.hades.dao.GenericDao+.*(..))"/>
</aop:config>
@rajeshpv
rajeshpv / learn-haskell-steps.txt
Created February 6, 2012 19:25
Haskell learning
learn - http://learnyouahaskell.com/introduction
download - http://hackage.haskell.org/platform/
@rajeshpv
rajeshpv / aop.xml
Created February 17, 2012 17:13
spring method aop
<bean id="customizableTraceInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor">
<property name="enterMessage" value="Entering $[methodName]($[arguments])"/>
<property name="exitMessage" value="Leaving $[methodName](): $[returnValue]"/>
</bean>
<aop:config>
<aop:advisor advice-ref="customizableTraceInterceptor" pointcut="execution(public * org.synyx.hades.dao.GenericDao+.*(..))"/>
</aop:config>
@rajeshpv
rajeshpv / sbt-twirl-compile.sh
Created February 23, 2012 16:31
testing spray twirl
cd ~/projects-github
projects-github $ java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) Server VM (build 22.1-b02, mixed mode)
git clone https://github.com/spray/twirl.git
cd twirl
sbt
twirl > publish-local
@rajeshpv
rajeshpv / compile-warn.sh
Created February 23, 2012 16:37
warns when compile twirl
[warn] /home/rpradeshik/projects-github/twirl/sbt-twirl/src/main/scala/twirl/sbt/Utilities.scala:89: non variable type-argument java.lang.Integer in type pattern xsbti.Maybe[java.lang.Integer] is unchecked since it is eliminated by erasure
[warn] lazy val (line: Maybe[JInteger], pointer: Maybe[JInteger]) =
[warn] ^
[warn] /home/rpradeshik/projects-github/twirl/sbt-twirl/src/main/scala/twirl/sbt/Utilities.scala:89: non variable type-argument java.lang.Integer in type pattern xsbti.Maybe[java.lang.Integer] is unchecked since it is eliminated by erasure
[warn] lazy val (line: Maybe[JInteger], pointer: Maybe[JInteger]) =
[warn] ^
[warn] /home/rpradeshik/projects-github/twirl/sbt-twirl/src/main/scala/twirl/sbt/Utilities.scala:89: non variable type-argument java.lang.Integer in type pattern xsbti.Maybe[java.lang.Integer] is unchecked since it is eliminated by erasure
[warn] lazy val (line: Maybe[JInteger], pointer: Maybe[JIntege