Tuesday, August 26, 2014

PHP Framework

PHP Framework

A framework is to design to provide a structure for common elements
  • database interaction
  • presentation layer
  • appication logic
PHP framework is to offer a design, which can use across multiple applications. so less time to writing up database interface code  or presentation layer interfaces and more time on writing the application itself
.
The architecture represented by breaking an application is reffered as Model-View-Controller(MVC).
Model refers to the data
View is the presentation layer
Controller refers to the application logic
Php frameworks help to promote RAD which saves the time , helps build more stsble applications, and reduces the amount of replicative coding for developers and less complicated.

eg :-

CodeIgniter

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you're a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you're tired of ponderously large and thoroughly undocumented frameworks, then CodeIgniter might be a good fit.
this framework can also help beginners to build more table apps by ensuring proper database interaction and coding on the presentation layer.
Why CodeIgniter ?
  • for speeding up the development process
  • to reuse the code for simillar projects
  • extensive use.

"HelloWorld" program in PHP CodeIgniter using Netbeans.

   No comments     
categories: 

"HelloWorld" program in PHP CodeIgniter using Netbeans.

Step 1:- download the CodeIgniter framework form the following link “http://ellislab.com/codeigniter/download”.
 

and extract it into “C:/xampp/htdocs/” rename the folder as "codeignter". open a browser and type "http://localhost/codeigniter", you will get following.
s
Step 2:- open netbeans , select 'new project' . in the new project window select 'PHP' and 'PHP Application with Existing Sources'.
then click next
new
type your 'Source folder' and 'project name' in the shown space.
 2
Step 3:-
Create a file at application/controllers/pages.php with the following code.
<?php
class Pages extends CI_Controller {
    public function view($page = 'home')
    {     
    if ( ! file_exists(APPPATH.'/views/pages/'.$page.'.php'))
    {
        // Whoops, we don't have a page for that!
        show_404();
    }
    $data['title'] = ucfirst($page); // Capitalize the first letter

    $this->load->view('templates/header', $data);
    $this->load->view('pages/'.$page, $data);
    $this->load->view('templates/footer', $data);
}  
}
?>
Step 4:-
Create a folder at application/views/templates
Create the header at application/views/templates/header.php and add the following code.
<html>
<head>
    <title><?php echo $title ?> - CodeIgnite</title>
</head>
<body>
    <h1>CodeIgniter 2 Tutorial</h1>
Create the footer at application/views/templates/footer.php and add the following code.
<strong>&copy; 2011</strong>
<script type="text/javascript">if(!NREUMQ.f){NREUMQ.f=function(){NREUMQ.push(["load",new Date().getTime()]);var e=document.createElement("script");e.type="text/javascript";e.src=(("http:"===document.location.protocol)?"http:":"https:")+"//"+"js-agent.newrelic.com/nr-100.js";document.body.appendChild(e);if(NREUMQ.a)NREUMQ.a();};NREUMQ.a=window.onload;window.onload=NREUMQ.f;};NREUMQ.push(["nrfj","beacon-5.newrelic.com","eb488e72a1","3758250","NgEEZBYHDUFWVk0KWg9LJUUXEgxfGFZWB1AIAwhZEAMRHR0=",0,117,new Date().getTime(),"","742446fde086bef8","","",""]);</script></body>
</html>
Step 5:-
In that directory, create two files named home.php and about.php. Within those files, type some text and save them. try "Hello World!".
Open the routing file located at application/config/routes.php and add the following two lines
3
Open the config file located at application/config/config.php and change the following line as shown below
h
Step 6 :- run the project by pressing F6 on your keyboard or as the following button.
ff
get your "hello World"
tt

Monday, August 25, 2014

"HelloWorld" program in PHP CodeIgniter

   No comments     
categories: 
Its really simple and i'll show you the steps.

Step 1:- download the CodeIgniter framework form the following link “http://ellislab.com/codeigniter/download”.



and extract it into “C:/xampp/htdocs/” rename the folder as "codeignter". open a browser and type "http://localhost/codeigniter", you will get following.


















Step 2:- open a notepad or any other editor and write the following program .

 <?php
class HelloWorld extends CI_Controller
{
    function index()
    {
        echo "Hello World";
    }
}
?>

 After writing the above program save it to “C: /xammp/htdocs/codeigniter/application/controllers” as “HelloWorld.php”. And now type “http://localhost/codeigniter/index.php/HelloWorld” you will get output as “Hello World” like following.



Saturday, August 23, 2014

Download Artificial Intelligence pdf

   No comments     
categories: 

Computer-Networking-A-Top-Down-Approach-6th-E.pdf

   No comments     
categories: 

 Download Computer-Networking-A-Top-Down-Approach-6th-E.pdf



In Chapter 1, the treatment of access networks has been modernised, and the description of the internet ISP ecosystem has been substantially revised, accounting for the recent emergence of content provider networks, such as Google’s. The presentation of packet switching and circuit switching has also been reorganised, providing a more topical rather than historical orientation.

In Chapter 2, Python has replaced Java for the presentation of socket programming. While still  explicitly exposing the key ideas behind the socket API, Python code is easier to understand for the novice programmer. Moreover, unlike Java, Python provides access to raw sockets, enabling students to build a larger variety of network applications. Java-based socket programming labs have been
replaced with corresponding Python labs, and a new Python-based ICMP Ping lab has been added. As always, when the material is retired from the book, such as Java-based socket programming material, it remains available on the book’s Companion Website (see following text). 

In Chapter 3, the presentation of one of the reliable data transfer protocols has been simplified and a new sidebar on TCP splitting, commonly used to optimise the performance of cloud services, has been added. 

In Chapter 4, the section on router architectures has been significantly updated, reflecting recent developments and practices in the field. Several integrative sidebars involving DNS, BGP, and OSPF are included 

Chapter 5 has been reorganized and streamlined, accounting for the ubiquity of switched Ethernet in local area networks and the consequent increased use of Ethernet in point-to-point scenarios. Also, a new section on data center networking has been added.

Chapter 6 has been updated to reflect recent advances in wireless networks, particularly cellular data networks and 4G services and architecture. 

Chapter 7, which focuses on multimedia networking, has gone through a major revision. The chapter  includes an in-depth discussion of streaming video, including adaptive streaming, and an entirely new and modernized discussion of CDNs. A newly added section describes the Netflix, YouTube, and Kankan video streaming systems. The material that has been removed to make way for these new topics is still available on the Companion Website.  

Chapter 8 contains an expanded discussion on endpoint authentication.

Concepts of Programming Languages e-Book Download pdf.

   No comments     
categories: 

Download Software Engineering-9th-edition-by Ian Sommerville.pdf

   No comments     
categories: 

Fundamentals of Database Systems, 6th Edition

   No comments     
categories: 
Download DBMS.pdf : Download Fundamentals_of_Database_Systems,_6th_Edition.pdf  DBMS & ADBMS

Thursday, August 14, 2014

introduction to Moodle in tamil ( moodle தமிழில்)

   No comments     
categories: 


Moodle
Moodle ஆனது ஒரு மெய்நிகர் கல்வி சூழலின் (Virtual learning environment) கற்றல் தளம் ஆகும். அத்துடன் கணிணி வலைதளத்துடன் தொடர்புடைய இலவச மென்பொருளான(open-source) ஒரு மின்கற்றல் (e-learning) முறைமை ஆகும்.
Modular Object-Oriented Dynamic Learning Environment என்பதன் சுருக்கமே Moodle ஆகும்.
Moodle மார்டின் டௌகியமஸ் (Martin Dougiamas) அவர்களால் கல்வி நடவடிக்கைகளுக்கு உதவுவதற்கு அபிவிருத்தி செய்யப்பட்ட கணிணி வலைத்தள தொடர்புடைய கூட்டு கட்டுமானமாகும். அத்தோடு தொடர்ந்து  வளர்ச்சியடைந்து வரும் மென்பொருளாகும். Cross-Platform இயங்கு தளமான Moodle, PHP படிவ நிரலாக்க மொழி மூலம் உருவாக்கப்பட்டது. இதன் முதற்பதிப்பானது 20 ஆகஸ்ட் 2002 இல் வெளியிடப்பட்டது. இக்கற்றல் தளம் கற்போர், கற்பிப்போர் மற்றும் நிர்வாகிகளுக்கு பாதுகாப்புடன் கூடிய, ஒருங்கிணைந்த அமைப்பாக உருவாக்க்கப்பட்டுள்ளது. அத்தோடு 65 மில்லியன் கல்விசார், நிறுவன பாவனையாளர்களை கொண்டுள்ளது. moodle உலகில் அதிகளவில் பயன்படுத்தப்படும் இலவச கற்றல் தளமாகும். GNU GENERAL PUBLIC LICENSE மூலம் இலவசமான open-source ஆக வழங்கப்படுகிறது.

Moodle கொண்டுள்ள சிறப்பம்சங்கள்.
moodle ஆனது மேலாண்மை கற்றல் அமைப்பு (learning management systems) ஆகும். மின்கற்றல் தளத்துக்கான, பல குறிப்பிடத்தக்க அம்சங்களை கொண்டுள்ளது.
  • ·         ஒப்படை சமர்பித்தல்
  • ·         கலந்துரையாடல் மற்றும் ஆலோசனை மன்றம்
  • ·         கோப்புக்கள் தரவிறக்கம்
  • ·         தரம் பிரிப்பு
  • ·         உடனடி தகவல்கள்
  • ·         இணைய இணைப்பு நாட்காட்டி
  • ·         இணைய இணைப்பு செய்தி மற்றும் அறிவிப்புக்கள்
  • ·         இணைய இணைப்பு வினாவிடை
  • ·         Wiki தகவல் களஞ்சியம்
                     ஆகியன உள்ளடக்கப்பட்டுள்ளன.
moodle அபிவிருத்தி செய்பவர்கள் குறிப்பிட்ட புதிய plug-ins களை கட்டுமானங்களாக உருவாக்க முடியும். moodle உள்கட்டமைப்பு பலவிதமான plug-ins களை உள்ளடக்ககூடியது.
  •   சொல் மற்றும் கணித செயற்பாடுகள்
  •   வினாவிடை வகைகள் (பல தேர்வு வினா, இடைவெளி நிரப்பல்)
  •   தகவல் செயற்பாடுகள்
  •   வரைகலை கருப்பொருள்
  •   உறுதிப்பாட்டு முறைகள்
  •   சேர்க்கை முறைகள்
                     அவற்றுள் சிலவாகும்.
moodle பாவனையாளர்கள் PHP படிவ நிரலாக்க மொழி பயன்படுத்தி புதிய தொகுதிகளை உருவாக்குவதன் மூலம் moodle இற்கு பங்களிக்க முடியும். moodle இன் அபிவிருத்தி செயற்பாடுகள் open-sources நிரலர்கள் துணையோடு செய்யப்படும்.
இலகுவான drag and drop அம்சங்கள், நன்கு ஆவணப்படுத்தப்பட்ட வளங்கள் அத்தோடு மேம்படுத்தப்பட்ட பயன்பாடு ஆகியன moodle ஐ இலகுவாககற்கவும் பயன்படுத்தையும் ஏதுவாக உள்ளன. அத்தோடு 95 இற்கும் மேற்பட்ட மொழிகளிலும் வளங்கபடுகின்றது.
moodle வெளியிடுகள்
வெளியிடப்பட்ட நாள்
பதிப்பு
நிலை
20-ஆகஸ்ட்-2002
1.0.9
முடிவு
29-ஆகஸ்ட்-2003
1.1.1
முடிவு
20-மார்ச்-2004
1.2.1
முடிவு
25-மே-2004
1.3.5
முடிவு
31-ஆகஸ்ட்-2004
1.4.5
முடிவு
05-ஜூன்-2005
1.5.4
முடிவு
20-மே-2006
1.6.9
முடிவு
07-நவம்பர்-2006
1.7.7
முடிவு
30-மார்ச்-2007
1.8.14
முடிவு
03-மார்ச்-2008
1.9.19
முடிவு
24-நவம்பர்-2010
2.0.10
முடிவு
01-ஜூன்-2011
2.1.10
முடிவு
05-டிசம்பர்-2011
2.2.11
முடிவு
25-ஜூன்-2012
2.3.10
முடிவு
03-டிசம்பர்-2012
2.4.7
முடிவு
14-மே-2013
2.5.3
செயல்
18-நவம்பர்-2013
2.6.1
செயல்
12-மே-2014
2.7.1
செயல்