Skip to content

Instantly share code, notes, and snippets.

View rajeshpv's full-sized avatar

Rajesh Rao rajeshpv

  • Consultant
  • Cary NC
  • 07:17 (UTC -04:00)
View GitHub Profile
<context-param>
<param-name>org.mortbay.jetty.servlet.Default.dirAllowed</param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
<init-param>
<param-name>acceptRanges</param-name><param-value>true</param-value>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>blah</groupId>
<artifactId>art</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>JasperReports</name>
<url>http://jasperreports.sourceforge.net</url>
<description>JasperReports Library</description>
[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>