Wednesday, 22 August 2012

Being Interviewed ...

This is actually nothing got to do with JDK ... Just my idea on the development of software.

Firstly

I have Joined a new startup company, I mean to say my company(Mindchain Solutions Ltd) had signed up a contract  with another company to work on a new product in the betting arena. I am going to write a few of my rumble (or my  expression of dissatisfaction).

I am a hardcore developer ( Architect, Analyst, Coder(senior)) the only thing which does not come to me is the business of making money. And how idiotic these days the interviews are,

They ask candidates to write tests (online or in house)

Ask some idiotic technical questions like ( what is difference between Interface and Abstract class?) or sometime go a bit further and ask questions from the Java API like

in the ConcurrentHashMap

Can you tell me what the method putifabsent does and the interviewer not being English has a weird pronunciation,

And if with difficulty even if we answer that question call us for face to face and if we give the best solution, reject us because we gave a very good answer, and they don't have any other reason to reject.

For example, I was asked to write a program to see if the input text was a palindrome and if so create a user and add his count as one.

when I gave them the solution as we can use StringBuffer.reverse() and then compare both the original text and reversed text. Which is the best solution which can exist. Reject the candidate.


A person with experience will have worked on technologies, his experience will be an assert to the company.


My Startup experience has to come to a end ... the main reason is Recession :) ...

Thursday, 2 August 2012

php tomcat mac jee

How to install tomcat in mac

# Add the wget alias for curl to the end of the bash_profile file
#----------------------------------------------------------------------------#
echo 'alias wget="curl -O"' >> ~/.bash_profile
 
 
Create a Projects Directory 

mkdir projects
 
cd projects 

mkdir tomcats
 
cd tomcats 
 
 
Download Apache Tomcat
 
wget http://mirror.rmg.io/apache/tomcat/tomcat-7/v7.0.29/bin/apache-tomcat-7.0.29.tar.gz 


Unpack tomcat

tar -xzvf apache-tomcat-7.0.29.tar.gz
 
rm apache-tomcat-7.0.29.tar.gz
 
 
I have renamed the apache-tomcat-7.0.29 to tomcat7029 (7029 as the version of the tomcat)
 
 edit startup.sh
 
Add JAVA_HOME
 
1) Check to see the list of Java VMs in your machine
 
ls /System/Library/Frameworks/JavaVM.framework/Versions/
 
I had 1.6 version

2) check if Home dir is present

ls /System/Library/Frameworks/JavaVM.framework/Versions/1.6
 
open the startup.sh file in the tomcat/bin folder
 
Add this line after the one which starts with EXECUTABLE=
 
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
 
 
then starting tomcat 
 
tomcats > sh tomcat7029/bin/startup.sh 


Open a Browser

Type in http://localhost:8080 in the address bar

Tomcat Installed !!!


Now installing PHP

there is a PHP java bridge library and only catch is we have to use Tomcat 6 and Java JDK 1.6 as this inly contains a JSR 223 command line script interpreter called jrunscript.


installation details http://php-java-bridge.sourceforge.net/pjb/tomcat6.php

First to install php5 and php-cgi (along with all its dependencies!) with:
sudo apt-get install php5 php-cgi