Wednesday, May 8, 2013

SCRA Detail Syllabus for year 2013-2014

Special Class Railway Apprentices (SCRA) - 2013-2014 

+Sanjay Prasad 

SCRA EXAMINATION -

Paper I General Ability Test 2 Hours 200
Paper II Physical Sciences 2 Hours 200
Paper III Mathematics 2 Hours 200
Total

600

General Knowledge 

For General Knowledge read books of SCHAND, UPKAR, TATA .

Constitution of India and its characteristic features:
Democracy, Secularism, Socialism, equality of opportunity and Parliamentary form of Government. Major political ideologies - Democracy, Socialism, Communism and Gandhian idea of non-violence. Indian political parties, pressure groups, public opinion and the Press, electoral system.
India’s foreign policy and non-alignment, Arms race, balance of power. World organisation - political, social, economic and cultural. Important events (including sports and cultural activities) in India and abroad during the past two years.
Broad features of Indian social system: The caste system, hierarchy, recent changes and trends. Minority social institution - marriage, family, religion and acculturation. Division of labour, co-operation, conflict and competition, Social control - reward and punishment, art, law, customs, propaganda, public opinion, agencies of social control - family, religion, State educational institutions; factors of social change -  economic, technological, demographic, cultural; the concept of revolution.
Social disorganisation in India: Casteism, communalism, corruption in public life, youth unrest, beggary, drugs, delinquency and crime, poverty and unemployment. Social planning and welfare in India, community development and labour welfare; welfare of Scheduled Castes and Backward Classes.
Money: Taxation, price, demographic trends, national income, economic growth. Private and Public Sectors; economic and non-economic factors in planning, balanced versus imbalanced growth, agricultural versus industrial development; inflation and price stabilization, problem of resource mobilisation. India’s Five Year Plans.
Geography : Solar system and the earth. Seasons, Climate, Weather, Soil - its formation, erosion. Forests and their uses. Natural calamities cyclones, floods, earthquakes, volcanic eruptions. Mountains and rivers and their role in irrigation in India. Distribution of natural resources and industries in India. Exploration of underground minerals including Oil. Conservation of natural resources with particular reference to the flora and fauna of India.
Science : Knowledge of the human body, nutrition, balanced diet, substitute foods, public health and sanitation including control of epidemics and common diseases. Environmental pollution and its control. Food adulteration, proper storage and preservation of food grains and finished products, population explosion, population control. Production of food and raw materials. Breeding of animals and plants, artificial insemination, manures and fertilizers, crop protection measures, high yielding varieties and green revolution, main cereal and cash crops of India.Evolution of life, plants and animals, heredity and environment-Genetics, cells, chromosomes, genes.

English
This is test understanding and command of the language of candidates. Use SCHAND English book.

Mathematics
Algebra
complex number
Matrices and Determinants
Probablity
Permutation and Combination
profit and loss
interest
Profression
quadratic equation

Trigonometry
Addition and subtraction formulae, multiple and sub-multiple angles. Product and factoring formulae. Inverse trigonometric functions - Domains, Ranges and Graphs. DeMoivre's theorem, expansion of Sin n0 and Cos n0 in a series of multiples of Sines and Cosines. Solution of simple trigonometric equations. Applications: Heights and Distance. 

Geometry
Rectangular Cartesian. Coordinate system, distance between two points, equation of a straight line in various forms, angle between two lines, distance of a point from a line. Transformation of axes. Pair of straight lines, general equation of second degree in x and y - condition to represent a pair of straight lines, point of intersection, angle between two lines. Equation of a circle in standard and in general form, equations of tangent and normal at a point, orthogonality of two cricles. Standard equations of parabola, ellipse and hyperbola - parametric equations, equations of tangent and normal at a point in both cartesian and parametric forms. 

Integral Calculus and Differential equations
Vectors and its applications 

Statistics 
Frequency distribution, cumulative frequency distribution - examples. Graphical representation - Histogram, frequency polygon - examples. Measure of central tendency - mean, median and mode. Variance and standard deviation - determination and comparison. Correlation and regression. 
  


Read More...

Wednesday, March 20, 2013

upload user profile image and save to data base -PHP MYSQLI

   If you are working on customized CMS or Social networking website then user profile image may be or may not be a head ache I have developed my own where we can upload and rename the image username.jpg/png/gif with size restriction to 200KB.

PHP MYSQLI Upload Image Tutorial

First design a table where database name is Sanjay.
Create a table userImage  fileds
user - username will be stored
url - url of img stored
lastUpload- when the upload was done.
create a folder upload/   where  all images will stored.
<?php
$user=$_SESSION['user'];
$db=new mysqli('localhost','root','','Sanjay');
if($db->connect_errno){
echo $db->connect_error;}
$pull="select * from userImage  where user='$user'";

$allowedExts = array("jpg", "jpeg", "gif", "png","JPG");
$extension = @end(explode(".", $_FILES["file"]["name"]));
if(isset($_POST['pupload'])){
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/JPG")
|| ($_FILES["file"]["type"] == "image/png")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 200000)
&& in_array($extension, $allowedExts))
  {
  if ($_FILES["file"]["error"] > 0)
    {
    echo "Return Code: " . $_FILES["file"]["error"] . "<br>";
    }
  else
    {
    echo '<div class="plus">';
    echo "Uploaded Successully";
    echo '</div>';
     
    echo"<br/><b><u>Image Details</u></b><br/>";
   
    echo "Name: " . $_FILES["file"]["name"] . "<br/>";
    echo "Type: " . $_FILES["file"]["type"] . "<br/>";
    echo "Size: " . ceil(($_FILES["file"]["size"] / 1024)) . " KB";

    if (file_exists("upload/" . $_FILES["file"]["name"]))
      {
      unlink("upload/" . $_FILES["file"]["name"]);
      }
    else
      {
          $pic=$_FILES["file"]["name"];
            $conv=explode(".",$pic);
            $ext=$conv['1'];

      move_uploaded_file($_FILES["file"]["tmp_name"],
      "upload/". $user.".".$ext);
      echo "Stored in as: " . "upload/" . $user.".".$ext;
      $url=$user.".".$ext;
   
      $query="update userImage set url='$url', lastUpload=now() where user='$user'";
      if($upl=$db->query($query)){
          echo "<br/>Saved to Database successfully";
              }
      }
    }
  }
else
  }
  echo "File Size Limit Crossed 200 KB Use Picture Size less than 200 KB";

  }
}
?>
<form action="" method="post" enctype="multipart/form-data">   
  <?php
    $res=$db->query($pull);
    $pics=$res->fetch_assoc();
    echo '<div class="imgLow">';
    echo "<img src='upload/$pics[url]' alt='profile picture' width='80' height='64'   class='doubleborder'/></div>";
   
    ?>
   
    <input type="file" name="file" />
    <input type="submit" name="pupload" class="button" value="Upload"/>
  
</form>

Hope You will understand this simple script.
Read More...

USSD base balance check on Linux using datacard

If you are Indian Data card user, having data card of micromax, beetal,huwai,zte we have always option to check your balance on windows OS as they provide software for that but what about Linux. I accept the pleasure of using that software is quite awesome but still we can check our data card balance on linux using a free app called Prepaid Manager.

Linux Prepaid Manager


First Install Prepaid Manager. Installing will not let you to use these app. You have also install a configuration file in which all settings are there called serviceproviders.xml

First Install libxml2-utils
sudo apt-get install libxml2-utils
if faile use command su instead of sudo.

open file manager in admin mode
 sudo nautilus
or sudo namo .....
whatever your file manager is
and search for serviceproviders.xml open in text editor
look for your service provider.
where to search this file
/user/share/mobile-broadband-provider-info/


First Look for your operator like Aircel, Vodafone, Relaince .....

Example of Aircel
and add before <apn></apn> tag

<balance-check>
<ussd>*125#</ussd>
</balance-check>

<balance-top-up>
     <ussd replacement="CODE">*130*CODE#</ussd>
 </balance-top-up>

Save the file and use Prepaid manager software.

Read More...

Sunday, February 3, 2013

Web Developer extension and the choice of Best Web Browser

If you are a web developer then the question is quite common which is
the best web browser for web development . In this tech arena every
browser want to take the number one tag. In this blog I am going to
share my favorite browser and why it became number one .
Mozilla Firefox is my favorite, I accept chrome has taken the market
share for being light and fast, internet explorer 10 is also doing well
but still I die for firefox. Right now I use Firefox 18 , in speed its
par with chrome and IE 10 in some cases faster, but right now we use
modern computer that has atleast 1GB of RAM and dual core CPU so you
can't see the speed difference only benchmarks can tell the difference.
Firefox uses more memory around 130MB but its not a problem.
Firefox offers net and clean interface, always welcome new technologies,
devoted towards open source and also stable and secure. Its extension
arena has everything you need and it makes you special , chrome also
supports extension and has decent store where you can download and
install extension with no restart feature but firefox interface is
awesome as firefox is feature rich compared to chrome. IE is by greedy
microsoft the company is not listening to its old customer as the
support of IE10 is limited to Windows 8 still now does not supports
multiplatform so it was ommitted from my list.

Firefox and the extension we die for :
If we are a web developer or SEO Expert then Firefox makes you job easy,
I am going to share a partial list of my favorite extension.

1. ADBLOCK PLUS
Web Designer has to surf a lot to get new ideas or inspiration but the
the annoying ads and pop ups make the job hard, adblock plus not only
block all these but gives you interface to control it.

2. Colorzilla
If you are a web designer or UI designer then you can't stop yourselve
playing with colors. This is not a color picker tool but has eyedropper
and other cool option.

3. Firebug
HTML , HTML5 , CSS , javascript wonder which kind of scripting is using
this firebug is the only solution, it give not only to view source of
website but with advance option. This is Web Designer no. one app.

4. Webrankstat
This is a SEO tool provides alexa rank, google rank,page index
,backlinks and other information while surfing.

list is going to updated soon.
Read More...

Sunday, January 13, 2013

Installing Xampp 1.8 on 32 bit and 64 bit linux and solve phpmyadmin Access error

What is Xammp ?
XAMMP is now become number one choice for web developer for its ease of use and stability. XAMPP is an easy way  to install Apache distribution containing MySQL, PHP and Perl.
In this tutorial I am going to share how to install Xampp 1.8 on 32 bit and 64 bit linux and solve phpmyadmin Access error. In previous tutorial I already shared xampp 1.7 installation guide .

First Download Xampp 1.8 from apachefriends and copy it to home directory and rename it to xampp1.8.tar.gz. If you run 64 bit OS install Wine or ia32-libs otherwise you will not able to enjoy xampp as it is 32 bit application.

Installation guide of xampp 1.8 :

Run terminal and use following command
sudo tar xvfz xampp1.8.tar.gz -C /opt
if fails use
su tar xvfz xampp1.8.tar.gz -C /opt
Now xampp install successfully in /opt/ folder. we can start xampp by simply by command
sudo /opt/lampp/lampp start
Xampp 1.8 installation
 launch the url in firefox localhost but when launching phpmyadmin you will get following error.
xampp 1.8 phpmyadmin error
Don't worry We will soon solve this error . But first we have to make /opt/htdocs/ writable so we can easy create folders and files there by following command
 sudo chmod 777 -R /opt/lampp/htdocs
Now  we have to solve phpmyadmin Access error by simply editing httd-xampp.conf file.
Open terminal and run command
sudo kate
or sudo following by your favorite editor like gedit to open as root.
and open file httd-xampp.conf located at /opt/lampp/etc/extra/httd-xampp.conf
Look for following lines
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>
and replace with following
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all 
   Require all granted
</Directory>

After this , you will not able to open phpmyadmin same error will displayed on browser.
We have to restart Xampp in order to work. use following command
sudo /opt/lampp/lampp stop 
to stop xampp and
sudo /opt/lampp/lampp start
to start xampp 1.8

or you can use simgle command to restart
sudo /opt/lampp/lampp restart

Open localhost/phpmyadmin , after changing default language to english
it will look like
PHPMYADMIN  xampp 1.8

This tutorial is tested on Linux Mint KDE 14 Nadia.
@https://plus.google.com/111215709458999120537
Read More...

Wednesday, October 31, 2012

Ubuntu 12.10 failed to impress people

I am a big fan of Ubuntu using since it launched 6.04 till ubuntu 12.10 64 bit. It always gave something interesting  and innovative. The biggest plus point of ubuntu is its stability and speed and Linux each and every distro secure. But the experience that I got from 12.10 is pathetic.

System Tested
Acer Emachine
2.13 GHz Dual Core
4GB DDR3 RAM
OS - Ubuntu 12.10 64 bit

Installation 
Booting from Live USB (763MB) was a awesome experience better than 12.04. Installation went smooth and took around 15 minutes to install. Desktop was responsive but not as 12.04.
Updated Software Sources , then install Gnome 3 Shell and after reboot I was back to my favourite Gnome default desktop it was responsive compare to unity desktop. By default you will find a power off option so shut down and restart become easy.

Ubuntu 12.10 and its Problems
Package Selection- distro comes in 763MB iso but didnot provide GIMP or Cheese.
Software Install issue - You will not able to run 32 bit application as Ubuntu 12.10 not ready to install Wine.
As it has some dependecy issues installing ia32-lib
sudo apt-get install ia32-lib
also fails gives output

Unable to correct problems, you have held broken packages.
 
So you will not able to install Wine 1.5/1.4 , XAMPP (PHP MySQL Development).

Media Playback
After installing flash and necessary codecs everything runs smooth and experience was good.

Conclusion : Unity Desktop was not mature compare to Gnome 3 default desktop, user interface was average on unity, You will find not able to install some software  , I will recommend OpenSuse 12.2 Gnome , Linux Mint Mate ,stick back to ubuntu 12.04 or wait for ubuntu next release.

Read More...