Category: Uncategorized
XWiki on OpenShift
1. Create an OpenShift application using following command
$ rhc app-create xwiki jbosseap –gear large
2. Downloaded the xwiki war file from the official web site.
3. Extracted the war file using $ jar xfv xwiki.war
4. Downloaded three jars — guice-servlet, guice, and h2 from http://mvnrepository.com/ and placed the jars in WEB-INF/lib directory. The application expects these jars but don’t bundle them.
5. Update the hibernate.cfg.xml. Basically, we have commented out hsql and uncommented h2. The NullPointerException that you were seeing was because xwiki does not work with JNDI datasource so you have to bind the url manually. If you want to use postgres or mysql then use proper connection url, username, password etc.
6. Pack the war file again using $jar cfv ROOT.war .
7. Copy the artifact to deployments folder in your app source code. Please delete src/ and pom.xml as you are deploying war file.
8. Git commit and push the war.
9. Check the logs.
2013 in review
The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog.
Here’s an excerpt:
The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 110,000 times in 2013. If it were an exhibit at the Louvre Museum, it would take about 5 days for that many people to see it.
Load Twitter Page using JavaScript
Today I had to look at twitter page which was very long. Twitter load results when you reach the bottom of the page. And each time twitter load very few results so it was becoming very tiring to see page in one go. So, I decided to do this task programmatically using JavaScript. Open the chrome developer console and run these three lines.
function A(){console.log("Scrolling ...");window.scrollTo(0,document.body.scrollHeight)}
function B(){window.setInterval(A,1000)}
B()
Download JDK 7 update 25 via wget
To download Oracle JDK 7 via wget run the following following command
$ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.tar.gz" $ mv jdk-7u25-linux-x64.tar.gz\?AuthParam\=1372827196_48b20a1d74cd809579eb76e369de596b jdk-7u25.tar.gz
Spring Integration RSS Feed Issue
If you are working with Spring Integration feed example https://github.com/SpringSource/spring-integration-samples/tree/master/basic/feed and get following error message “Could not find fetcher.properties on classpath“. The solution is to create an empty file called fetcher.properties in src/test/resources folder and this will fix the issue.
2012 in review
The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.
Here’s an excerpt:
19,000 people fit into the new Barclays Center to see Jay-Z perform. This blog was viewed about 87,000 times in 2012. If it were a concert at the Barclays Center, it would take about 5 sold-out performances for that many people to see it.
Time To Move On And Start a New Journey
It has been a wonderful and amazing experience to work at Xebia India office. I have learned and matured a lot in last 2.5 years I spent at Xebia. I was referred to Xebia by Rajneesh Namta who has worked with me at GlobalLogic. I have enjoyed working on lot of technologies at Xebia including NoSQL datatores, various PaaS solutions, BigData technologies like Hadoop, and various Spring portfolio projects. This blog is a retrospective of why I joined Xebia, What I did at Xebia and What lies ahead for me.
Why I Joined Xebia?
I had lot of other Job offers at the time when I was planning to leave GlobalLogic. I joined Xebia because of following reasons :
- Anurag Shrivastava : My first interaction with Anurag was during my interview. He took final round in the interview process and I was very impressed by him. He asked questions which nobody has ever asked me in any other interview like what are your thoughts on Open source, what you want to be 5 years down the line, do you blog etc. I liked the fact that he was not only focussing on project work but talking about things which are also important for building a successful career as a Software developer.
- I wanted to work for a company which will give me a platform to discover myself. From GlobalLogic time I had interest in writing and speaking but because of lack of support and mentorship was not able to do much.
- I wanted to work for small organisation which values quality over quantity.
- Go beyond the conventional project work and do much beyond that and make my name in community.
- Xebia Values : I joined Xebia because I believed in Xebia values.
What I did at Xebia?
The three main things that I did at Xebia are :
- For most part of my 2.5 year stint at Xebia I worked on building a scalable de-duplication engine. I worked with some wonderful and knowledge people(in no particular order) — Guneet, Rahul, Sameer, Karan, Nancy, Rajneesh, Richa and Paritosh. I would like to thank all of them for their help and support.
- Writing : At Xebia I discovered my interest in writing and I have written at lot of technical or developers oriented portals like IBM DeveloperWorks, Developer.com, JavaLobby and Xebee and my blog. Recently a publisher has approached me to write a book. Lets see how it goes.
- Speaking : I discovered my passion for speaking while giving XKE’s at Xebia India office. XKE is Xebia Knowledge Exchange where in on every alternate Wednesday we have three hours of technical or non-technical sessions followed by dinner. I have spoken at most of developer oriented conference in India and have also spoken at RedHat Summit 2012 in Boston.
What lies ahead for me?
I am joining RedHat as OpenShift Evangelist on 21st September. I will be travelling around the world speaking at various conferences, writing about OpenShift, building cool applications and building active and vibrant community around OpenShift. I might also think considering about writing a book if time permits. Let see how things unfold in future.
My Advice to fellow Xebians
Although I am nobody to advice anybody but will still give my advice. Xebia is one of very few IT organisation in India which gives platform to do lot of other things apart from project work; please do make use of them and build an exciting and wonderful career.
Best of luck to everyone and stay connected!
2011 in review — How my blog performed in 2011?
The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.
Here’s an excerpt:
The concert hall at the Syndey Opera House holds 2,700 people. This blog was viewed about 56,000 times in 2011. If it were a concert at Sydney Opera House, it would take about 21 sold-out performances for that many people to see it.
A very bad Software Developer Job Advertisement by Infosys.
I don’t read newspaper daily but today morning somehow I had some extra time so I thought to spent that time reading news paper. While reading or browsing the newspaper I saw a Job advertisement from Infosys. In recent past I have interviewed lot of Java developers from companies like Infosys , TCS and other biggies and found that most of them don’t know how to write code, never heard of new things happening in Software world, technically very weak overall. So, I was very curious to read about what all technologies they are looking to hire.
You can view the Job Opening here.
The first thing I read was …
Web Technologies
Java, J2EE, EJB, WebLogic, WebSphere Commerce Server, WebSphere Portal Server
Here I don’t get what they are trying to say when they write Java as a Web technology. J2EE is very old now it is JavaEE. EJB ?? I am sure they are working on EJB 2 or even prior version of it. And finally the big beasts from Oracle and IBM..
Second Thing which caught my eye…
Open Systems
C++, Unix
..WTF.. Please tell me what do you mean by this.. are you looking for developers who have knowledge of C++, and can work on Unix boxes.. ??
Last Thing that I saw.
Others
Hadoop, Apace Cassandra, OpenLink, etc…
Now you are talking.. Hadoop and Cassandra are the latest technologies and any good developer will love to work on these technologies. Why you are putting these technologies in others..
