Saturday, 6 January 2018

Android Work with Fragments (Basic) -Tutorial

In Android apps start working with activities. To learn how these process works you should have to understand the life cycle of a Activity. To learn about life cycle check this pic




Apps start working with the onCreate method when you create an activity the method is created by default to check this have a look at this

Saturday, 31 December 2016

Introduction

Hello Readers,
I make this blog to make java and other languages easier to you.
Agar aap haste haste sab sikhna chate hai to mera ye blog phade.
Is blog pe aapko kuch bhi mil skta hai. Jaise koi Programing Language ya phir kisi ved-puran ki koi katha, ya phir koi moral values wali kahani , kisi historical character or figures ke baare mein , Kuch bhi .
Agr aapko koi help chaiye to aap mughe mail bhi kar skte hai ya phir apni problem apni email id ke saath comment karein.
So keep Reading by Blogs and don't forget  share to Your Friends.

Sunday, 25 December 2016

Php : Tutorial 1

Php: Tutorial 1

Doston pichle post mein aapne padha web services ,web development ke baarein mein ki kis trah web apps develop karne ke liye hum diff -diff languages use krte hai eg. Php,Asp.net etc.
Aaj hum baat karte hai php ki .
PHP is a recursive acronym for HyperText Preprocessor .Php ek bht hi assan language hai use kerne ke liye . Aaj hum php start karnege ek dum basic level se .
Sabse pahle iske server installation ka method .
Jaise aapne pichle post mein padha tha ki server install karne ke liye WAMP or XAMPP use hota hai.
Main XAMPP use krta hun bcoz mughe uske features ache lgte hai.Aur ye use karne mein easy bhi hai


so XAMPP install karne ke liye click   karein
phir jab ye download ho jaye to use install karein
phir aapko aisi screen dikayi degi .


iske baad aap apache ko start kar de jise aapka virtual server start ho jayega. Uske baad aap apne pc ke browser mein "http://localhost/" type karein.



 phir jaise hi aap enter press karenge to aapko aisi screen dikahi degi




 isko use karne ke liye aapko apni sabhi files "C:\xampp\htdocs" yahan save karni hogi.
iske baad aap isse use kar skte hai.

agr aap koi alag folder bana kar use krna chte hai to use kr skte hai
lekiin vo folder "htdocs" ke ander hi hona chaiye jisse ki aap usko access kar sake.
eg.




 jaise maine yahan project naam ka folder create kiya hai.
Aap bhi aise hi folder create kar skte hai.
folder ko url se access karne ke url mein thoda change karein.
Url Changes

localhost ke aage "/" daal ke apne folder ka naam likhe jisse ki us folder ko aap access kar ske.
agr aap folder ke aage "/" daal ke file ka naam type krte hai to vo file run ho jayegi.

Php ka code "<?php" se start aur  "?>" pe khtm hota hai .
<?php
//code here 
?>
Php sabhi types ke datatypes ko support krta hai eg. int, float,double,char etc.
php mein code krna bht assan hai .Php mein kisi bhi datatype ko define karne ki koi need hai jaise hum dusri langages mein krte hai eg. in Java 
int i="12";
same in C++.
But yahan aisa kuh bhi nahi hai yahan bus aapko varibale ke aage "$" ka sign lagana hai jisse aapka variable define ho jayega. eg.
$i="12";
jiase ki dekha aapne ki yahan kisi bhi datatype class ko call nahi karna pada .
PHP mein print kar vana bhi bht assan hai yahan bus aapko "echo" type krna hai aur aapka jo bhi msg echo mein hoga vo vahan print ho jayega . eg. 
<?php
echo "hi";
?>
Jaisa ki aur sabhi languages main hota hai ki jo bhi "    " ke ander hota hai vahi print hota hai .But agr hum " " ki jgh ' ' (single qotes) use karein to bhi msg print hoga php mein.
Agr hamne variables ki value print karni hi to hum use echo ke saath use kar skte hai .Agr hum var. ko ' ' mein type karenge to vo as itis print hoga but agr hum usse " " mein type karenge to uski value print hogi eg.
<?php
$hi="2";
echo "2,";
echo "$hi,";
echo $hi.",";
echo '$hi';
?>
output:
2,2,2,$hi


Iss code ko aap anpe editor mein copy karein aur file ko ".php" se save karein.

 






WEB Development through PHP

WEB Development php se iska  mtlab hai aisi applications ko develop krna (banana) jo internet pe run kar sake Php se. Php(HyperText PreProcessor) ye thoda sa ajeeb hai but Php ek bht powerful tool hai web pages banae ke liye .
Web History :-Web Applications develop karne ke liye pahle CGI(Common gateway interface) use hota tha.CGI html ke saath database applications develop karne ke liye use karte the.CGI mein diff. languages use hoti thi programming languages like C++.Lekin ab CGI use nahi hota CGI ke baad new  technologies aayi jaise PHP ,ASP.net,C#etc.
Php main hum 2 trh se app. develop karte hai
1. With MVC
2.Without MVC
MVC(Model view Controller ) ye large app. develop karne ke liye use hota hai.Hum Without MVC bhi develop kar skte hai but isse bht complexions aa jayegi web pages mein .MVC use karne se complexions kam hoti hai aur work load bhi . Isse jydatar sabhi jitne bhi hum varibales lete hai sabki table automatic create ho jati hai .
MVC use karne ke liye hum frameworks ka use krte hai
1.Codeigniter
2. Laravel
Web apps develop karne ke liye HTML,Javascript,Css, Angular js , Node js aana chaiye.
Angular js aur Node.js ye ek framework hai client side MVC use karne ke liye .
Code Igniter or Laravel se Server Side MVC par use hota hai.
Angular.js  aur Node.js use karne ke liye javascript aani chaiye.



Before starting it we have to understand some topics or terms like servers, client machine,Database,online hosting,web apps.

Client Machine and Servers

Client Machine :- Iska mtlab hai jis Computer par application run hogi,use machine ko hum client machine kahte hai aam words mein aur jis machine par user kaam karta hai (user-> end user).
Php files hamesha servers par run hoti hai aap in files ko normal html files ki trh nahi use kar skte iske liye aapke pass server hona jaruri hai .Server pe php ki files upload hone ke baad hi aap unhe chla skte hai .
Server use krne ek 3 ways hai 
1. Apna server khridna 
2. Server ko Rent pe lena 
3. Apni Machine ko as a local server use krna 

Tino  ke apne faide aur nuksaan hai (pros and cons)
Jab aap ko Online kisi official kaam ye koi aisa kaam jise aapko remotly access karna padta hai tab aap server rent par le skte hai khrid skte hai . Apna server  khridne pe aapko data share nahi krna pdta
Jabki aapko Rented server mein data share krna pdta hai.Aap Apne pc ko bhi as local server use kar skte hai.
Apne pc mein server eg. Apache install  kar ke .Uske liye kaafi saare software aate hai
eg.Xampp,Wampp,LAMP
Inhe aap download karein aur use karein.
Apache server muptiple site ko host krta hai virtually kyunki jab aap koi server rent pe lete hai to koi saste plan wla to aapko useim sirf ek hi website host krne ke liye milti hai.


Database 

Database ka mtlb hai jahan data store ho raha hai . Database ko hum backend kahte hai database mein structured or unstructured database hota hai. Database ke liye MySQL,Oracle 10g, Sql Server use krte hai. MySQL  free hai .SQL acronym hai Structured query language ka. SQL mein data tables ke form mein store hota hai.
Unstructured mein data tables mein store nahi hota. eg.MongDB ye ek unsturcted database ka type hai .

Online Hosting

Online hosting doston ek trike ke Cloud apps ka hi part hai.Ismein company apne servers provide karvati hai . Hosting main companies server aur us site ka access provide krvati hai.
jab bhi koi user us site ka url type krta hai to vo url ip add. mein convert hokar server par jata hai jisse ve server us requested file ko open krta hai.
eg. 000webhost.com etc.

Friday, 25 November 2016

ECommerce introduction

E-commerce basically ek economic activity hai jismein trading buying and selling of goods hai.
e.g :- Jab ek customer book shop mein enter hota hai to books ko check krta hai exmaine krta hai aur apni manchai book ke liye pay krta hai .Customer ki requirement ke liye jaruri hai ki boook shop supply chain,logistic support provide krvana aur payments ko handle krna jiase kaam kare.
Jaise ki hum electronic age main enter kar rahe hai to ye question arise hota hai ki kya business aur dusri commerical transactions electronically possible hai ya nahi.
E-commerce or electronics commerce methodology hai modern business ki jo business organistation, vendors, aur customers ki need ko define karta hai jismain cost reduce , goods ki quality improve hona,.

Friday, 1 July 2016

Android tutorials

Android
Sabse pahle android ek Linux base OS hai Lekin iski development java lang. se hui hai.
Agr aapko android application develop karni hai to aapko core (Basic of Java )Java aani chaiye.
Bcoz Java ke bht se methods or concepts  yahan use honge.
Android application development ke liye hamne sabse pahle Development Environment set krna hoga jiske liye hamne sabse pahle java install karna hoga (download java).
How to install java click here
Jdk install karne ke baad Java path set karein
1. Click on My computer
2. Select system Properties
3. Go to Advance setting tab
4. Select environment variable
5. Under System Variables, click New
6. Enter the variable name as path
7. Ab path enter karein jahan jdk install hai generally "C:\Program Files\Java\jdk1.8.0_25" (but do confirm that it's correct).
8. Click OK
Phir Application development ke liye Android SDK download karein ismein do options Android studio or Eclipse (Eclipse ke liye Android library download karni hoti hai )
Ab android studio ko install karein .
After installation ek Android emulator device create create karein .
Agr aapka PC mein Vt-x error aati hai to solution ke liye  PC ke restart kar BIOS (kuch Aur try na karein vrna problem ho skti hai ) mein jaaye Aur virtualization on kar de (how)
Aur agr phir Haxm problem aati hai to do options hai agr aapke PC mein Intel processor hai to Haxm sepratly download karein
Agr AMD processor hai to Genymotion  download karein agr na chalein to phir apna processor or motherboard change karien
Ram requirements:-Min 4gb,   8gb Good
Os:- Min. Windows 7 , Ubuntu 14.0


Agr aapke pass ek extra smartphone (bcoz agr app ne naya try karte hain jismein memory format ka danger hai isliye )hai small application test karne ke liye to us me in debugging option on karein or phir use USB se connect karein PC mein Aur jab aaka app ban jaaye to use run apne USB emulator pe karein isse vo app apke phone par chal jayegi.