Category Archives: Tutorials

Articles and Interview Questions,Tips and  Tutorials – Interview Sortout

Schools On Web – Experience The Learning

SOW i.e. Schools On Web is a passionate group of highly experienced education professionals and technology enthusiasts,bring the most affordable range of one stop learning solutions. SOW team is here to recreate your success stories with the masses!

SOW vision is to connect the dots between different levels of education and creating an unending success bridge

Schools on WEB helps schools to brings together the management, teachers and parents, all on the same platform with one objective – ‘Holistic Development of Students’. with our solution deployed at schools, the management, the teachers can let go off the resource and academic planning on us, so that most of their time is devoted in development of students!

An Ed-Tech initiative to empower schools with one stop digital solution to take care of all of the learning needs of Students, Teachers, Parents and Schools. Schools On WEB promotes in-school learning instead of after-school learning. Students spend most of their time in just consuming knowledge instead of applying it in real world.

Their should be enough time for students to actually apply the same knowledge in their real-life which happens after school with their families or friends. Students should find learning to be found in every act they do.

Considering the current education situations, Schools On WEB bringing one-stop solution covering:-

  1.  Competitive prep in association with premium academies of INDIA
  2. One stop Knowledge hub to explore available Careers, opportunities and scholarships around the world.
  3. Ed-Tech Awareness programs for School, Parents, Teachers and Students
  4. SOW campus for exploring in-school learning programs Schools On WEB inviting Inviting Schools to activate अपना आत्मनिर्भर Digital School for FREE!

Click on link to apply https://schoolsonweb.com Schools administrations will be contacted once applications are processed. On the last day a webinar will be conducted.

Schools applicants in pre-launch offer will get “1 lac worth Program – NEO Ed-Tech awareness 2020 program for Schools” for Free!!”

Contact Details

Website and Registration Link : https://schoolsonweb.com/

Facebook : noesis.schoolsonweb

Twitter : @schools_on_web

Instagram : schoolsonweb

Linked In :schools-on-web

Spread the love

PHP Code Online

PHP is a server-side scripting language used by millions of users worldwide. Full-Form of PHP is HyperText PreProgramming. The secret behind the popularity of PHP is simplicity and being Open Source. PHP has the biggest community over the world to support and share.

PHP has numerous Frameworks and CMS along with eCommerce that make it considerable. Developers need to write and debug some piece of code regularly and without saving them in a file and then run by the server in a local machine or on the server.

There are many such places available where we can run our chunk of PHP Code or a complete PHP Program and without saving it in any file.

These websites provide online PHP editor to write code and to execute PHP Code online. These are the Online Compiler and Interpreter providers helping the coders.

You just need to type your code and click on the run button without any mess and you will get the output of the program.

There are numbers of Online PHP editor where we can run or PHP Code and PHP Program:

Write Php Online

This is the best place where you can use PHP editor and can run your PHP code and PHP Program Online. You will find a very simple interface and a white background code editor to write PHP Code. You don’t need to save your PHP Program. There is a run button just below the PHP Editor once you will finish your PHP Code just click run and you will have your output. It is a very quick interpreter and loved by almost the PHP Developers.

URL : http://www.writephponline.com/

Online PHP IDE

Joodle is the IDE provider. It provides the API to embedded IDE for almost the programming languages in any HTML page. You can use its interface to write PHP Code and get instant output. This PHP Editor is featured with Full Screen Editing Mode, User Input Console, Memory and Time analytics of the program.

URL: https://www.jdoodle.com/php-online-editor/

Geeks For Geeks IDE

This is one where you can save your code for a longer time. This saves your content in your storage or in the browser. Whenever you will be back you will find your last PHP programs. This PHP Editor Provides tabs for many other programming languages you can just click and switch between the languages. GFG IDE provides two modes of the editor – Dark Mode or Night Mode and Light Mode.

URL: https://ide.geeksforgeeks.org/

This is a separate subdomain of Geeks Fo Geeks dedicated to IDEs for different languages.

PHP Tester

PHP Tester is a dedicated IDE for PHP and lets you write PHP Code and Run PHP code online. This provides you the facility to test your PHP code and get instant Result Online. You can also switch between the versions of PHP in this PHP Editor. You can easily check where a code is compatible with different types of PHP versions or not.

URL: http://phptester.net/

Interview Sort out

Interview Sortout also provides you a PHP Editor and Interpreter powered by Joodle. We have used a dark PHP Editor theme, that is loved by almost the programmers. You can run your PHP programs here without any server and without saving it to any file. This tool provides you with highlighted syntax and output with time and memory usage.

URL: https://www.interviewsortout.com/run-php-code-online/

Spread the love

Artificial Intelligence future

The ultimate guide on Artificial Intelligence

When it comes to Artificial Intelligence, we immediately think of cutting-edge technologies, robots that understand and decide what actions to take and a futuristic world in which machines and men live together.

In reality, Artificial Intelligence and its use are much more real than can be imagined and are now used in different areas of everyday life.

However, these are less invasive uses of what is thought or what is often shown by science fiction films that have found in the theme of Artificial Intelligence the starting point for many more or less successful series.

What is Artificial Intelligence?

AI is a subdivision of computer science dealing with the development of systems and software capable of acting intelligently, and doing things that would normally be done by people – equally as well, or sometimes better.

AI refers to the science and methodology itself, and to the behavior exhibited by the machines and programs which result from it.

The term was first introduced during The Dartmouth Conference of 1956, by Stanford University researcher John McCarthy.

In its practical applications since then, three distinct approaches to AI have evolved.

There are the big AI companies that are using artificial intelligence to shape the connected future like Amazon, Apple, Facebook, Google, IBM, Intel, Microsoft, Twitter, Qualcomm, OpenAI, Nvidia, Netflix and more.

Strong AI

Machines and applications in this field are designed to simulate the functions of actual human intelligence – to think as we think. Systems may also have the ability to explain why humans think the way they do.

The “Holy Grail “of this approach is to create machines that are artificial simulations of human consciousness – a level that we’re some way distant from.

Weak AI

The products of this philosophy are functioning systems and software that do things that humans do – but not necessarily in the same way.

Weak AI machines may behave like people on the surface, but they can’t reveal how humans think. An example of this would be the chess-playing capabilities of IBM’s Deep Blue.

How it is helping the people in daily life

Artificial intelligence is not just a term in fashion: today its influence on our daily life is greater than ever. Whether you are reading emails or looking at the Netflix catalog, artificial intelligence makes decisions to improve our user experience based on our preferences, inclinations, and behaviors.

AI has been instrumental in driving innovation in areas such as medicine, research, language, cars and of course advertising. Here’s how artificial intelligence affects our daily lives.

Automobiles

AI has dramatically changed the future of driving and cars. Self-driving vehicles can deal with an almost infinite number of scenarios.

These smart cars make accidents caused by less likely human errors and can even automatically change settings based on the owner’s preferences, such as turning on seat heating on a cold winter night.

Navigation

Applications such as Waze evaluate traffic and road works to find the fastest route to your destination, all thanks to AI.

Navigation services make these assessments based on this type of element every time a command is given. And this also happens in the case of ride-sharing services.

Medicine

Machine learning, a subset of AI, is greatly influencing the way we treat and communicate with patients at every stage of interactions with them.

The ML is used to analyze imaging exams, search for tumors and make diagnoses using pathologist reports.

AI plays an important role in detecting potential symptoms and has proved more efficient than the manual processes that were used before.

Chat-bots, which can help to find patterns in the patient’s symptoms, and facial recognition software, are combined with deep learning to help identify rare genetic diseases.

Machine Learning

Moreover, the different techniques of learning and developing algorithms give rise to as many possibilities of use that widen the field of application of machine learning to make a specific definition difficult.

However, we can say that when we talk about machine learning, we talk about different mechanisms that allow an intelligent machine to improve its capabilities and performance over time.

What are the career aspects of Artificial Intelligence?

The careers in artificial intelligence (AI) have grown and it is expected that this industry will contribute more to job creation in the future.

According to Digital Transformation Institute, the growth will be increased by 2.3 million positions in 2030.

Let’s take a closer look if careers in the AI industry entice you i.e. machine learning engineer, data scientists, video game programmer, robotics programmer, data mining analyst, software engineer, business intelligence developer, research scientist and big data engineer/architect.

Even the median annual salary of AI professional is whopping $100,000 to $150,000.

Have you any question? Let us know in the comments below!

Spread the love

In How many ways we can use Model in CakePHP

CakePHP is an MVC based framework and facilitates unlimited flexibility. A model in cake PHP is used for the data source and all the logics that require to gather the data.

Later we use a Model functions to get these formatted data in Controllers and send them to view using the set function.

Here we are going to learn in how many ways we can use a Model or data source in CakePHP applications.

The naming convention followed in CakePHP help us to reduce our effort and to make the development process rapid.

Since Model is used as a logical unit and data source we can use it in any Controller where we need the data, irrespective the name of model and controllers.

A Controller with name “Users” can access the functions written in Model User without any manual initialization. But the question is how to use another Model and its functions in Users Controller?

When we are developing a complex application we usually need to access data from many tables or we can say from many Models in a single controller.

If there is no association then we need to initialize the other Models manually. Once we initialize these models we can use any functions in these models in the Controller. We can use any data source in any controller.

Even we can use the Model in our plugins Model, in the same way, we use in our standard models.

There are different ways to initialize a model in any Controller:

  • Initialize at the start of Controller and use it in any action of Controller.
  • Initialize in the particular action of Controller.
  • Initialize and Using in Another model.

Initialize at the start of Controller and use it in any action of Controller

There are many such situations when we need to use any model continuously in all the functions, then we need to initialize a model that can be used from anywhere.

Here we once initialize the model is available anywhere in a controller to use. We should not use this method when we are using the Model in only a few functions.

This may create overhead to the application when each time a data source is being loaded without reason.

Initialize in a particular action of Controller

When we have limited usage in a controller then it is not a good practice to initialize a model at the start.

We should initialize when we need only.

There may be some particular function that needs to access data from another model.

Initialize and Using in Another model

There are many such situations arrived when you need to use another model functions in your model, then you need to import that model in your model.

When we need additional data apart from association we need to fetch data from a model that is not the current model. CakePHP provides flexibility to use a number of existing model functions in your model.

This facilitates code reusability and improves the maintainability of application and at the same time reduce overhead and development time.

Hope this article will help you in using a model in Cake PHP in different ways.

Happy Learning 🙂

Spread the love

How to add additional fields to user profile in WordPress

WordPress is the most-popular CMS and provides unlimited flexibility to users to do anything they wish.

To maintain its flexibility and maintainability WordPress provides hooks. Using these hooks we can extend the functionality and customize the interfaces as per requirement.

WordPress provides metadata to add additional information with content.

Using these meta we can add number of custom fields with any content like post, page,media,user,category,terms etc.

Here we would know that how to add an additional field to user profile?
For example we have to add highest educational qualification of users.

So we need to to add a user meta for this field. Let the field name is highest_qualification.

We will hook the user meta to the hooks related to user profile. Available hooks for user profile are:

  1. show_user_profile
  2. edit_user_profile
  3. personal_options_update
  4. edit_user_profile_update

These hooks enable user to add and update the meta field. Lets have a look on code snippets:
STEP #1: Add form field when user is going to edit the profile details:

Create a function add_user_educational_qualification and hook it with show_user_profile and edit_user_profile.

<?php
    add_action( 'show_user_profile', 'add_user_educational_qualification' );
    add_action( 'edit_user_profile', 'add_user_educational_qualification' );
    function add_user_educational_qualification( $user ) { ?>
	    
    <table class="form-table">
     <tr>
      <th>
       <label for="address"><?php _e("Highest Educational Qualification");?></label>
     </th>
     <td>
      <input type="text" name="highest_qualification" id="highest_qualification" value="<?php echo esc_attr( get_the_author_meta( 'highest_qualification', $user->ID ) ); ?>" class="regular-text" />
     <span class="description"><?php _e("Please enter your heighest Educational Qualification."); ?></span>
    </td>
 </tr>
</table>
<?php }  ?>

STEP #2 : Now we need to save this information to user_meta table , so we need the hook that are used to save or update the user profile and details.

Create a function save_user_educational_qualification and hook it with personal_options_update and edit_user_profile_update.


	add_action( 'personal_options_update', 'save_user_educational_qualification' );
	add_action( 'edit_user_profile_update', 'save_user_educational_qualification' );

	function save_user_educational_qualification( $user_id ) {
	    if ( !current_user_can( 'edit_user', $user_id ) ) { 
	        return false; 
	    }
	    update_user_meta( $user_id, 'highest_qualification', $_POST['highest_qualification'] );
	}

STEP #3: Now we need to display this information any where in the website:

We are ready with our additional field highest_qualification. We have added it and saved it to database.

WordPress provide a function highest_qualification and using this function we can get the value of meta fields.

 


<?php 
   $meta_key = 'highest_qualification'; 
   $highest_qualification = get_user_meta( $user_id, $meta_key,true); 
?>
Spread the love

What is the Storage Engine in MySQL

Following Question Based on MySQL Storage Engine covered in this Section:

  1. What is storage engine?
  2. How many types of storage engines are there in MySQL?
  3. What are the features of Different type of storage engines?
  4. Why Memory is faster than MyISAM and InnoDB?
  5. Which one is the Transaction Compatible Engine?
  6. Which are the storage engine in MySQL , do not use Indexing?
  7. What are the main difference between in MyISAM and InnoDB?
  8. Which version of MySQL support Transaction?

MySQL Storage Engine

Storage Engine in MySQL is the bottom most layer and stores data in various formats. Based on their techniques and compatibility for different types of application we choose which one would be suitable. MySQL has number of storage engines. Few of them are transactional and few are non-transactional. Here is the list of popular storage engines in MySQL:

  1. MyISAM
  2. InnoDB
  3. Memory(HEAP)
  4. Archive
  5. CSV
  6. MERGE

MyISAM

This is a non-transactional storage engine and a table can hold up to 256 TB data. Before MySQL 5.5 MyISAM was the default storage engine, but after Introduction of transaction support InnoDB is the default storage Engine in MySQL. Data in MyISAM is compressed and optimized for quick access. Earlier it was known as ISAM. It can repair the corrupted tables itself on startup.

InnoDB

InnoDB is the most widely used storage engine now a days and used as a default storage engine in MySQL. It is transaction safe and compatible to ACID properties of database transactions. It supports all the DML, DDL and DCL operations. It can hold up-to 64 TB data in a table. It also uses compression techniques to store data.

MEMORY

Memory Engines store data in Memory. It uses the hash index techniques to store data and hence the access of data is comparatively faster than MyISAM and InnoDB. In Memory data is stored in the form of HEAP tables.

Archive

The engine is used for archiving the records. It can be used to archive the huge amount of data and records. It stores data in compressed format and when an access request is come it serves the data after decompressing the archives. We can not have Indexing in Archive engines so we have to scan all the data to get the particular records.

CSV

CSV is a well-known spreadsheet format. It is also used for Non-SQL based systems to store and retrieve data. Data is stored CSV format or comma separated formats. This is also a non-indexing technique. We can not have a NULL value in CSV. It also required to read full table to get a record. Hence it is slower than InnoDB and MyISAM.

MERGE

MERGE is storage engine that uses MyISAM tables as component and merged them to store as a single table. MERGE tables use Indexes of component tables, they do not have their own indexes. When we run DROP command then It does not drop tables in real, but the merger splits.

Spread the love

How to create a custom page template in WordPress?

What is WordPress Template?

WordPress Page Template is a simple PHP script embedded in HTML page where we can design the layout and put the contents as per our requirement.

There are two parts of a page template

  1. Header
  2. Body

Header is the information part and for WordPress use. WordPress recognize these information in Header. And decide whether it is a page template or not.

<?php
/**
* Template Name: Interview Sortout Custom Page
* Template Post Type: post, page
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/

Template Name – A template is named as {my template name}. This option will be reflect in Layout option when we will create a Page or Post. Template name is not

Template Post Type – This is the scope of template , that where can we use this template. We have to specify that what post type can use this template.

Body is the main content representation. It organize the heading, Thumb images, content, breadcrumb, sidebar etc.


<?php get_header();?>
<div class="container">
	<h2 class="blog-title"><?php the_title(); ?></h2>
	<main><?php the_content();?></main>
	<aside><?php dynamic_sidebar('right-side-bar' ); ?></aside>
</div>
<?php get_footer();?>

 

A complete Page Template:

 


<?php
/**
* Template Name: Interview Sortout Custom Page
* Template Post Type: post, page
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header();?>
<div class="container">
	<h2 class="blog-title"><?php the_title(); ?></h2>
	<main><?php the_content();?></main>
	<aside><?php dynamic_sidebar('right-side-bar' ); ?></aside>
</div>
<?php get_footer();?>
Spread the love

WordPress Dashboard – Tutorial 4

Admin Login
  • Give the user name and password .
  • Check the remember box as the browser will remind the login and password next time.
Dashboard area contains the following main tools and links:
  • Welcome section
  • Main menu(side menu)
  • Top menu
  • Admin area
  • Screen option
  • Help option
  • Quick draft section
  • At a glance section
  • Activity section
 
Welcome Section
  • This section has some important links which used frequently.
  • We can customize our site look as we click on Customize Your Site button.
  • Direct links to add an about page, to write the first blog.
  • We can turn on/turn off comments by external user on our posts from here.
  • We can visit our menu and widget systems from the link given.
Screen Options:
  • Screen option shows a group of check boxes.
  • Each check box is for a particular section.
  • If it is checked the section is on the screen on the dashboard .
  • Unchecked boxes hide the section from dashboard.
  • Ex – we have to hide the Welcome section from screen. We will uncheck it.

Spread the love

WordPress Installation : Tutorial 3

WordPress Installation
Before install a WordPress we should ensure that we have already created a database , where we have to create the WordPress tables with a prefix name .Default is prefix is wp_. We should have the following information as we are going to install the WordPress:
  • Database Name: wordpress
  • User name: root
  • Password: by default blank
  • Hostname:localhost

Steps:

  1. Put
    the database name as you have created in the database field. It
    appears “wordpress
    by default.
  2. Give
    the mysql user name, which is root
    by default.
  3. Give
    the password of mysql , if you have’n define , then let the
    password field blank.
  4. Give
    the host name as running on default port, localhost.
  5. Give
    a prefix for the table name , which are being install in database.

A wp-config.php file is created, containing the information about database, username, password etc, at the time of installation.

Spread the love

WordPress Minimum Requirement : Tutorial 2

Chapter:2-Before Installation
Minimum Requirement of a system to run the WordPress
  • We need a server to run the PHP script, because PHP is a server side
    script and WordPress is based on PHP.
  • WAMP Server which is-Windows Apache MySQL PHP
  • Download Source code of WordPress from: http://wordpress.org/downloads
  • Latest  version of WordPress is wordpress-3.8.1 (as on 03-04-2014)
  • Latest of WAMP is 2.2 having
    • Apache 2.2.22
    • Mysql 5.5.24
    • PHP 5.3.13
    • PhpMyadmin 3.4.10.1
  • Apache is an open source web server , which is available in free. Apache is the one of the most popular and the most lovable web server by the web developers across the world.Separately we can download from: http://www.apache.org
  • MySQL is the most preferred open source RDBMS .
  • Very identical to MSSQL and other RDBMSs.
  • PHP(PHP Hypertext Preprocessor) is an open source server side scripting language having the features of OOPS and syntax similar to C
    Programming and Perl.
  • PHP provide a rich library to manipulate data and make most of the
    complicated data operations easy.
Spread the love

WordPress Inroduction : Tutorial 1

  • WordPress is a world famous Open Source CMS. Based on PHP as an open source server side scripting language.
  • WordPress is a free and open source blogging tool and a content management system (CMS) based on PHP and MySQL, which runs on a web hosting service.Features include a plug-in architecture and a template system.
  • WordPress is used by more than 18.9% of the top 10 million websites as of August 2013. WordPress is the most popular blogging system in use on the Web, at more than 60 million websites.
  • Architecture of template:
History:
  • WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on millions of sites and seen by tens of millions of people every day.
  • It was first released on May 27, 2003, by its founders, Matt Mullenweg and Mike Little,as a fork of b2/cafelog. As of February 19, 2014, version 3.8 had been downloaded more than 20 million times.The license under which WordPress software is released is the GPLv2 (or later) from the Free Software Foundation.
Content Management Bystem (CMS)
  • A Computer Application that allows publishing, editing and modifying content  as well as maintenance from a central interface.
  • CMSs are often used to run websites containing blogs, news, and shopping. Many corporate and marketing websites use CMSs. CMSs typically aim to avoid the need for hand coding but may support it for specific elements or entire pages.
  • The function and use of content management systems is to store and organize files, and provide version-controlled access to their data. CMS features vary widely. Simple systems showcase a handful of features, while other releases, notably enterprise systems, offer more complex and powerful functions. Most CMS include Web-based publishing, format management, revision control (version control), indexing, search, and retrieval. The CMS increments the version number when new updates are added to an already-existing file.

Architecture of wordpress template:

 

Spread the love