## How to Install Limesurvey2 Release Candidate 2 (LS2RC2) on Server.

This version of limesurvey has released but it is not stable because it is under development not completely developed. I installed it to test it & to report the bugs in it.

Follow the steps to install the Limesurvey 2.0 RC2:

• Go to the following link to download the limesurvey version 2(not yet released) and click on the suitable package.

http://www.limesurvey.org/en/unstable-release

$scp -r /path/to/extracted folder folder_name username@server IP address:~/home_directory For Example :$  scp -r /Desktop limesurvey2RC2 rimpy@202.164.53.122:~/public_html

Note: This package is not having complete files and folders as were in the limesurvey 1.92+ (released version).

• Copy the files and folders from the limesurvey folder which you have installed earlier  & paste those files/folders in your new limesurvey folder.
• Go the config.php file and make the changes as follows:
1. $databaselocation = ‘localhost’; 2.$databasename       =   ‘ ‘;
3. $databaseuser = ‘root’; 4.$databasepass       =   ‘ ‘;
5. $dbprefix = ‘lime_’; 6.$rooturl            =   “http://{$_SERVER[‘HTTP_HOST’]}/path/to/limesurvey2RC2”; 7. //Installation Set up 8.$defaultuser  = ‘admin’;
9. //This is the username when Limesurvey is installed and the administration user is created on installation
10. $defaultpass = ‘password’; • In the above url, if your limesurvey folder is different than “limesurvey2RC2” then you also have to reflect that changes in$rooturl variable. To do that simply replace the name folder at the end of the $rooturl variable with newer one. See the line 6 in above code. • Now go to your server link (e.g 202.53.164.122/~rimpy) and click on the uploaded folder as in my case it is limesurvey2RC2. • Then it will start actual installation steps. • First it will ask you about default language selection that will be used throughout the whole installation process.Screenshot is shown below: • After selecting the language click on the start installation button. • In next step , it will ask you about the agreement with GNU General Public License. • Click on the “I accept” button . • After doing agreement, it will check for the requirements for your Limesurvey2.0RC2 & also report the permission errors if any. • After setting permissions, click on the try again button it will show the following screen with next button. • Click on the next button & it will then ask for database configuration as in following screen. • Giving the suitable information in mandatory fields & click on the next button. • Then it will ask you to populate your database which you have created. • Click on the populate database button. • Then it will ask for the optional settings as shown in below screen. • Click on the next button & it will show the screen of successful installation with username & password. • Click on the administration button & it will show the first login screen as below. • Give your username (in most of cases it is “admin“) & password & after login it will show the following Limesurvey screen. • Your Limesurvey tool is ready to create surveys . Thats all . Enjoy with different surveys 🙂 Advertisements ## How to insert Google Map Service in Limesurvey. Limesurvey supports Google Map Service in questions. It will ask the user to point out the location with balloon and it will automatically give values of latitude/longitude in the text box. To insert Google map in any survey , you need to get an API key .Using an API key enables you to monitor your application’s Maps API usage, and ensures that Google can contact you about your application if necessary. How to get Google Maps API: • Create your Google account. • Visit the APIs Console at https://code.google.com/apis/console and log in with your Google Account. • Click the Services link from the left-hand menu. • Activate the Google Maps API v3 service. • Click the API Access link from the left-hand menu. • Your API key is available from the API Access page, in the Simple API Access section. How to use Google API key in Limesurvey to use Gmap service : • Create the question in which you want to use Google Map Service. • Choose the question type “Short free text“. • Go to advance settings & choose “Google Maps” in “Use mapping service” option. • Set “default position” option to “Yes” if you want to set any default position on map. • Set “zoom level” to appropriate value. (say 20). • Give latitude/longitude values of the default position in Default Position text box if you set it to yes earlier. • Give settings of map width & height according to your wish. • Save the question. Global Settings : • In the main administration toolbar , click on the global settings icon as shown below: • In Global Settings , go to the General Settings & give the Google API Key in “Google Maps API Key“.(which you got in Simple API Access section). • Click on the save settings & your map service is ready to use. Enjoy different locations on map 🙂 ## Creating Quiz in Limesurvey using Assessments. LimeSurvey has the ability to create “assessments” on your survey , even for multilingual surveys. Assessments are rules which evaluate the responses to a survey immediately after it is submitted, and then display text blocks to the participant based on that evaluation. Example : Suppose you have two questions in your survey. Q1) “Sum of 2 and 5 ? ” and the question is given with three possible answers (i) 7 with assessment value 5 (ii) 8 with assessment value 0 (iii) 10 with assessment value 0. Q2)”Difference of 10 and 5 ? ” and this question is given with three possible answers (i) 7 with assessment value 0 (ii) 5 with assessment value 5 (iii) 3 with assessment value 0. If the participant answer both the questions with right option then he/she will score 10 marks at the end. How to use Assessments ? • Go to the General settings & then to Notification & data management. • Set the Enable assessment mode? to Yes & then save. Set assessment value for each answer After enabling the assessment mode,when you now edit an answer of a question you will see an additional field right beside each code field where you can set an assessment value for that answer. As shown in given screen shot: Define Assessment Rules • To set assessment rules, click the assessment icon in one of the menus on the survey administration tool bar. • You will see the following screen after clicking on the icon: In the “Add/Edit” box you can choose the following: • Scope: It is the scope of the assessment. Choose either “Total” which will create an assessment based on the sum of all the answers in the entire survey, or you can choose “Group” which will create an assessment based on the sum of all the answers in a group (chosen in the next row). • Group: If the scope of this assessment is for the current “Group”, from here you have to choose which group you want to assess. • Minimum: The minimum “sum” of answers to which this assessment will apply. • Maximum: The maximum “sum” of answers to which this assessment will apply. • Heading: The heading of the assessment which will display to the participant if this assessment is shown. Example : Assessment PASS or Assessment FAIL. • Message: The actual message for this assessment. Inside the message you can use the tags {PERC} or {TOTAL} to show the related score in that particular message. Example: Congratulations You Scored {TOTAL} • You can create as many assessments as you like, and you can create more than one assessment to display for a given score. Note :It is important to note that if you use assessments, you must ensure that you have not chosen to autoload the URL at the end of the survey in the general survey setup, because the assessments only show on the final “completed” page after submitting a survey. Assessment Placeholders : When using assessments the following placeholders are available: • {PERC}: Displays the score of the current group. Only available at assessment message. • {TOTAL}: Displays the total score. Only available at assessment message. THANK YOU 🙂 Hope it will help you a lot. ## How to get your Limesurvey updated to latest version. • If you are using old version of Limesurvey then when you get logged into your limesurvey, you will get a message “Update available: version + (build no.)” on top right corner in bright red color. • If you don’t get any message then go to limesurvey/version.php and check the build number and the current version you are using. • There are two methods to get your version updated : “manually” or by using “3-Click Comfort Update“. • If you want to update it manually then go to the following link : http://docs.limesurvey.org/Upgrading+from+a+previous+version&structure=English+Instructions+for+LimeSurvey • Download the latest version of limesurvey. • If you want to go with 3-Click Comfort update then follow the below given procedure: Click on the message ” Update avialable: version + (build no.)” as shown below: It will ask you the method you want to use for update shown here : step Click on the 3-click Comfort Update and it will ask you about a limesurvey update key . Click on the update key button, it will display update key is valid.Then click on the “Proceed to step 2” button. After that it will ask to give a write permissions to a long list of files. Use following command to give write and execute permissions to your whole Limesurvey folder :$ chmod +wx  foldername

Replace the /limesurvey/scripts/survey_runtime.js file with the latest survey_runtime.js file.

Then click on the “proceed to step3” buton.

It will create the Database and file back up. you can check it at limesurvey/tmp/ filename.

Then click on the “procced to step 4 button“.

Your limesurvey is up to date now . You can check it from limesurvey/version.php file .There will be latest version and build no. written in the file.

Thats all 🙂

## How to create LaTeX Input files ?

LATEX input files can be created with any text  editor . It contains the LATEX commands and the data which you want to add in your document.The input for LaTeX is a plain ASCII text file.The commands used in it tells LaTeX how to typeset the text.

A minimal example looks something like the following:

\documentclass{article}
\begin{document}
Hello I am Rimpy Garg.
\end{document}
It is a simple document file created in Latex . Extension of your latex file should be .tex .

To create the pdf of your file, go to terminal and run the following command :

\$ pdflatex filename.tex

Pdf file has been created where you have placed your input file.

Example 2 :

\documentclass{article}
\begin{document}

This is my \emph{first} document prepared in \LaTeX{}.
\end{document}

“Whitespace” characters, such as blank or tab, are treated uniformly as “space” by  LaTeX.Several consecutive whitespace    characters are treated as one “space”.

Text from the input file :

It does not matter whether you
enter one or several             spaces
after a word.

Formatted output :

It does not matter whether you enter one or several spaces after a word.

Latex Commands :

A few commands MUST appear in every LaTeX input file in a certain order. They are:

\documentstyle{stylename}
\begin{document}
\end{document}

The documentstyle has a required argumentstylename to select an overall typesetting style for the document; the one you normally use isarticle(there are alsobook,report,letterandmemo). It also has an optional argument to select 11pt or 12pt normal type size (10pt is the default size).

Between the\documentstyleand\begin{document} commands you can place commands that will affect the environment of the entire document, such as changes to margin widths.

The actual text of your document and associated commands go between the\begin{document}and\end{document}commands.

LaTeX commands are case sensitive, and take one of the following two formats:

• They start with a backslash \ and then have a name consisting of letters only. Command names are terminated by a space, a number or any other “non-letter”.
• They consist of a backslash \ and exactly one non-letter.

Some commands need an argument, which has to be given between curly braces { } after the command name. Some commands support optional parameters, which are added after the command name in square brackets [ ]. The general syntax is:

\commandname[option1,option2,…]{argument1}{argument2}…

## How to install LaTeX on Linux.

LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de-facto standard for the communication and publication of scientific documents. LaTeX is available as free software.

LaTeX was first released in 1985 by Leslie Lamport as an extension of TeX. Tex was developed by Donald E. Knuth. It was first released in 1978. LaTeX is used, as mentioned, earlier in academic environments for book publication and article publication. Not to go off-topic, but LaTeX is also used to create the formulas displayed on wikimedia applications such as Wikipedia! In addition to its ability to display formulas and beautifully created pages, LaTeX can do much more but that goes beyond the scope of this article.

Installation :

To install LaTeX on Debian (& Ubuntu) run the following commands:

# apt-get update

# apt-get install texlive texlive-base

If you want the full LaTeX package run :

# apt-get install texlive-full

The latter command should be unnecessary, for the purposes
install the texlive-full package.


## Validations in Limesurvey using Regular Expressions.

• First of all create survey from ” create or import new survey” button and give proper settings from 5 tabs i.e. General, Presentation & Navigation , Publication & access control , Notification & Data management.
• After saving the created survey , create groups for that survey .
• Then start adding questions to each group that you have created.
• To do the same , click on the “add new question to the group” button.
• First of all, give code of the question.
• Put Question .
• Give help for the question (it is optional).
• Set question type which is suitable for your question.
• After that in validation box, give regular expression for your question.

For example : If you want to set a condition that participant should write their name with first letter capital  and if they don’t write it will not proceed further untill the answer is not given in a valid manner.For such condition you have to write the following regular expression in validation box :

([A-Z]{1}[a-z]*)

In this way, you can set validation for each question by giving suitable regular expression.