Skip to main content

Posts

Showing posts from 2015

Solved: com.microsoft.sqlserver.jdbc.SQLServerException: The index 1 is out of range.

This error usually comes when we try to insert data in a query where there is no index defined for it.
Example :-
String strQuery=“select * from location where city_id=? ”;
The question mark will be the the first index if we want to insert data so if we call a function like-
oPreparedStatement = oConnection.prepareStatement(strQuery);
oPreparedStatement.setString(1,235);
here we are sending 235 as a first parameter so it will work fine but as soon as we write something after it like
oPreparedStatement.setString(2,”kanpur”)
then it will throw “The index 2 is out of range” since there is no place to send this value in a query hence it will throw the same error. Here index defines the parameter for which there is no place in the query.
To rectify this we need to write query like-
String strQuery=“select * from location where city_id=? And city_name=? ”;
then it will work fine.
The cases in which these errors can occur is-
1)Query is coming out as null. 2)No of parameters are more than the parameters p…

Five Programming language you should learn in 2015

1.Java- This language turned 20 this year but still the popularity is never ending for it. The language mostly used in the big organization holding command over large enterprises application ruling over the business world. The language evolved itself in long theses 20 years to a great extent. There are frameworks like struts and springs also automatic built like maven and gradel that are giving  less headache to the coder and equally contributing role in the popularity of  it. This is also one of the high paying languages in the world.
2.Python- Python that has been changed a lot in last decade is ruling in the heart of all start-ups over the world. The speed through which it develops code in a less time is the reason for its popularity and is started getting a good share of percentage in the web development world. Often with Django framework and various libraries, it is becoming on of the favorite language for the programmers.  It is heavily used in big data and machine learning appli…

5 EXAMS APART FROM COLLEGE PLACEMENTS FOR B.TECH( COMPUTER SCIENCE)

To write these exams, you don't need support from the college if you have a courage and desire to achieve something big then pick any and go for better future after college.
1.NET / JRF- This exam you can take for the admission in P.H.D or Research field. Qualifying this exam also makes a person eligible for applying lectureship in the universities.
http://www.winentrance.com/ugc_national_eligibility_test_net/ugc-net-computer-science-applications-syllabus.html

2.GATE-             This exam you can take to get admission into M. Tech program in prestigious institutes such as IIT/IISC. The score is valid for two years and also helps in getting jobs in Public Service Union sectors.
http://gate.iitk.ac.in/GATE2015/


3.PSU-
            There are various PSU's like CIL, BEL, IOCL, SAIL e.t.c. which organize their exams separately or take based on the GATE score. One can simply crack them to complete the desire for working in most sought government engineering sector of the country. https://en…

5 books that your college doesn’t tell to read seriously for PLACEMENTS

1.Let us C - It can be the best book to pick in your first semester itself. The book is written in a very simple style so you can easily grasp most of the concepts of programming by just working hard on it. It will help you in building basics of programming around c language.

2.HEAD FIRST JAVA-This book you should buy in third semester and invest your whole second year into it by working on all the codes. This book will help you teaching the concepts in a very attractive way. You will never bore while working  through this book.


3.Data Structure Made Easy In Java - As soon you finished studying core java in the 4th semester just pick this book to understand the logic’s of data structure and algorithms. It will help you to go deep inside this subject from which questions are frequently asked in all the interviews. This book carries a great set of problems that will help in developing intellectual knowledge around algorithms.


4.Cracking The Coding Interview – This book you should start pra…

5 steps to add existing project to your GIT HUB repository [Windows]

this tutorial will tell you how to add existing project to your git hub account.
Step1. Go to your GITHUB account. Create New repository 


Step2. Fill the required details. ( uncheck create read me ).
Step 3. Open GIT shell from your desktop.




Step 4. Go to the directory of your project using cd  “path of the project” Initialize git by using command  git init Add your files by using command  git add . Commit your files by command git commit –m ‘first commit’

STEP 5 Select your repository Add using command git remote add origin https://github.com/username/projectname.git
Now push the project to git git push -u origin master


WHAT DOES LOAD BALANCER DO BETWEEN CLIENT COMPUTER AND SERVERS?

Whenever we talk about websites we often tend to be restricted to the domain and hosting only. A person who is generally developing websites does only take care of designing the front end and moreover functionality related to back-end. Most of the  people never thought about the servers and load balancer. Even a student in computer science often confused about the true working of traffic management in servers as well as load balancing it to make sure running the website and application without causing any issue to the end users.
So this article is all about how actually the load balancer work in a real time environment. There are three things that need to understand
1.Client 2.Load balancer 3.Server
Server -Servers are computer programs running to serve the requests of other programs, the clients Thus, the server performs some tasks on behalf of clients. It facilitates the clients to share data, information or any hardware and software resources
The client is the end user who is using …

.