Technology has advanced to the point where programming has become an essential part of our lives. We use software and applications for communication, entertainment, education, and work, and these are all built on programming languages.

Adding JavaScript To HTML Page

 JavaScript is applied to HTML page in a similar manner like CSS. Whereas CSS uses <link> elements to apply external stylesheets and <style> elements to apply internal stylesheets to HTML, JavaScript only needs one friend in the world of HTML, the <script> element.

There are three different ways using which user can add JavaScript into webpage.

1. Inline JavaScript

2. Internal JavaScript

3. External JavaScript

 

Inline JavaScript

JavaScript written within the HTML element with the event handling attribute then it is called as inline JavaScript. This method is used when we have to call a function in the HTML event handler attribute. Many cases where we have to add JavaScript directly are onclick, onmouseover, onload etc. In this method, JavaScript can be added in HTML directly without using <script> tag.

<HTML>

<HEAD>

<TITLE>Inline JavaScript</TITLE>

<//HEAD>

<BODY>

<form>

<Input type="Button" value="Clickme" onclick="alert('Button Click')">

</form>

</BODY>

</HTML>


Share:

JavaScript

 JavaScript is a light weight object oriented programming language used for scripting the webpages. It is an interpreted and full fledge programming language, used primarily by web browsers to provide dynamic and interactive experience for the end-user. Most of the functions and applications that make the Internet indispensable to modern life are coded in some form of JavaScript. 



Today, JavaScript can execute not only in the browser, but also on the server, or actually on any device that has a special program called the JavaScript engine. A JavaScript engine is a computer program that executes JavaScript(JS) code.

Uses of JavaScript:

1. Adding interactivity to website : If you want a website to be more than a static page of text, you will need to do some Java Scripting.

2. Developing mobile applications : JavaScript isn't just for website, it's used for those applications you have on your phone and tablet as well.

3. Creating web browser-based games : Ever played a game directly from your web browser. JavaScript probably helped make that happen.

4. Back end development : JavaScript is mostly used on the front end of the things but it's a versatile enough scripting language to be used on back end infrastructure, too.

5. Client-Side validation : JavaScript contains built in function to validate the data before it is sent to the server.

6. Event Handling : JavaScript helps to handle the event which occurs when end users interact with the webpages. Eg. onclick, onmouse over, on keydown and so on.

7. Building web servers and developing server applications : A web server can be created by using Node.js. Node.js is event-driven and not waits for the response of the previous call. The HTTP module can be used to create the server by using the createServer() method.


Features of JavaScript

  • JavaScript is an object based scripting language.
  • Giving the user more control over the browser
  • It handles date and time
  • It detects the user's browser and OS
  • It is light weighted
  • JavaScript is a scripting language and it is not Java.
  • JavaScript is interpreter based scripting language.
  • JavaScript is case sensitive.
  • JavaScript is object based language as it provides predefined objects.
  • Most of the JavaScript control statements syntax is same as syntax of control statements in C language.
  •  An important part of JavaScript is the ability to create new functions within scripts. Declare a function in JavaScript using function keyword.

Limitations of JavaScript

  •  Depends a lot on the browser 
  • Inability to use local devices
  • JavaScript can be disabled 
  • Not Search Engine Friendly
  • JavaScript cannot protect your page source or images
  • It doesn't have any multithreading or multiprocessor capabilities
  • For security reason, JavaScript doesnot allow the reading or writing of files
  • It doesn't have any multiprocessor/multithreading capabilities.
  • As there is no support available, this cannot be used for networking applications
  • Cannot access webpages hosted on a different domain
  • Cannot Access databases 
Share:

PHP: Hardware and Software


 T
alking to hardware requirements, it has been seen that PHP sucessfully run on 100 MHz Pentinum machine running Linux and Windows NT , respectively. Performance of such machine was fine for use as a personal development environment. A site expected to receive thousands of requests a day would need faster hardware, of course. Although more resources are needed when comparing a PHP-powered site to a flat HTML site, the requirements are not dramatically different. PHP work on any types of hardware whether it is Intel or , Power PC and Sparc CPUs.

Regarding to operating system PHP run smoothly on Windows NT and its successors, but later version of PHP requires at least Windows 2008/Vista. For UNIX operating systems, PHP works well with Linux and Solaris, as well as others. If you have chosen a PPC based system such as a Macintosh, you may chooose Linux PPC, a version of Linux. You may pursue the commercial WebTen Web Server that runs in the Macintosh OS. Chad Cunningham has contribute has contributed patches for compiling PHP in Apple's OS X. In 1999 Brian Havard added support for IBM's OS/2. 

PHP still works best with the Apache Web Server. You can make PHP work with almost any web server using CGI version, but I don't recommend this setup for production web series. If you are using UNIX, we recommend this setup for production Web sites. If you are using UNIX, we recommend compiling PHP as an Apache module. 


Other software requirements for PHP are:

A PHP engine : Version 5. Included in XAMPP-Windows.

A web server: Apache HTTP Server 2.0 is recommended. Included in XAMPP Windows.

A database server : MySQL Server 5.0 is recommended. Included in XAMPP Windows.

A PHP debugger: XDebug 2.0 or later.


Installing PHP : To install PHP, I suggest to install AMPP software stack, AMPP package is combination for "Apache MySQL PHP Perl" package. Among the different available option from AMP, I suggest you to choose XAMPP.

XAMPP is the most popular software package which is used to set up a PHP development environment for web services by providing all the required software components. During the process of software deployment, most of the web servers use almost similar components, so use of XAMPP provides easy transition from local server to live server. XAMPP is a AMP stack which stands for cross platform, Apache, MySQL, PHP, Perl with some additional administrative software tools such as PHPmyAdmin, FileZilla, Mercury mail server and JSP Tomcat server. Other commonly known software packages like XAMPP are WAMP, LAMP and others.

The XAMPP server is used to test the PHP pages. It works as local server. It contains a MySQL database to manage or save data on a local server. 


Advantages of XAMPP:

It is free and easy to use and easily available for Windows, Linux and Mac OS.

It is a begginers friendly solution package for full stack web development.

It is a open source software package which gives a easy installation experience.

It is very simple and lightweight to create set up for development, testing and deployment.

It is a time saver and provides several ways for managing configuration changes.

It handles many administrative tasks like checking the status and security.


Software component of XAMPP :

Apache plays the role of processing the HTTP request. It is the actual default web server application. It is the most popular web servers maintained by Apache Software Foundation.

MySQL plays the role of database management system in XAMPP. It helps to store and manage collected data very efficiently. It is an open source and most popular.

PHP is the server side scripting language which stands for Hypertext Preprocessor. It is embedded with HTML code which interacts with the webserver. It is an open source and work well with MySQL and has become a common choice for web developers.

Perl is the high level programming language designed for text editing which serves purpose like web development and networking programming.

Share:

PHP

 PHP is a widely used open source general purpose Server side scripting language that is especially suited for web development and can be embedded into HTML. PHP  that earlier stood for Personal Home Pages is a widely used open source general purpose scripting language and so, now known as Hypertext Preprocessor. PHP is typically used as a server side language(as opposed to a language like JavaScript that's generally executed on the client side). 

                         


  PHP is used to develop dynamic websites or web applications. PHP scripts can only be interpreted on a server that has PHP installed. The client computers accessing the PHP scripts require a web browser only. A PHP file contains PHP tags and ends with the extensions ".php".

PHP is known as a server sided language. That's because the PHP doesn't get executed on your computer, but on the computer you requested the page from. The results are then handed over to you, and displayed in your browser. 

            Typically PHP is used for Server Side Scripting, Command Line Scripting and even for creating desktop applications.

    PHP is compatible with all major Operating Systems including Linux, Windows and MAC OS. It is also compatible with most popular web servers such as Apache and LiteSpeed. PHP can be used to create dynamic content such as PDF's, images and is compatible with the most popular types of database tools such as MySQL.

PHP can aslo be used to add extra functionality to your website by integrating applications built for 3rd party websites such as facebook or by creating PHP based mailing lists or you can even create Wordpress Plugins for commercial use.

PHP is an HTML embedded Web scripting language. This means PHP code can be inserted into the HTML of a web page. When a PHP page is accessed, the PHP code is read or "parsed" by the server the page reside on. The output from the PHP functions on the page are typically returned as HTML code, which can be read by the browser. Because the PHP code is transformed into HTML before the page is loaded, users cannot view the PHP code on a page. This makes PHP pages secure enough to access databases and other secure information. 


The Uses for PHP are :

  • It is utilized to make a dynamic site.
  • To interact with a web server.
  • To collaborate with any back-end.
  • To communicate with the local record arrangement of the OS.
  •  To actualize the business sensible layers.
  • It can Encrypt Data.
  • Access Cookies variable and set treats.
  • Utilizing PHP you can limit the client to get to explicit page.
  • PHP typically used to yield HTML code to the program.
  • It is utilized for interface web application with Database.
  • It is utilized to send and get Emails.
  • You can utilize PHP to discover the present date, and afterward assemble a schedule for the month.
  • It can encode information.
Features of PHP 

1. Simple

It is very simple and easy to use, compare to other scripting language, it is very simple and easy.

2. Interpreted 

It is an interpreted language, i.e., there is no need for compilation.

3. Faster

It is faster than other scripting language e.g. asp and jsp.

4. Open source

PHP is an interpreted scripting language(actually precompiled opcodes), free, open source and distributed under a license authorizing the modification and redistribution.

5. Platform Independent

PHP code will be run on every platform, Linux, UNIX, Mac OS, and Windows.

6. Case Sensitive

PHP is case sensitive scripting language at time of variable declaration. In PHP, all keywords, classes, functions, and user defined functions are NOT case sensitive.

7. Error Reporting

PHP have some predefined error reporting constants to generate a warning or error notice.

8. Real Time Access Monitoring 

PHP provides access logging by creating the summary of recent accesses for the user.

9. Loosely Typed Language

PHP supports variable usuage without declaring its data type. It will be taken at the time of the execution based on the type of data it has on its value.


Advantages of PHP

The following are the advantages of PHP:

1. PHP is free : You don't have to pay anyone to use PHP. Whether you run the PHP engine on a beatup 10 year old PC in your basement or in a room full of million dollar :enterprise class" servers, there are no licensing fees, support fees, maintenance fees, upgrade fees, or any other kind of charge.

2. PHP is Cross Platform :PHP can be used with a web server computer that runs Windows, Mac OS, Linux and many other version of UNIX.

3. PHP is widely used : PHP is used on different websites from countless tiny personal homepage to giant's websites.

4. PHP hides its complexity : Powerful ecommerce websites can be built using PHP as well as simple sites. Simpler and complex features can be used simultaneously which doesn't get in the way with each other's. 

5. PHP is built for web programming : Unlike other programming languages, PHP was created for generating webpages.

Share:

Greatest number among any 10 numbers

 


Share:

What is Function? Write a program to demonstrate any two string function using C.

 A function is a block of statements that performs a specific taskIn c, we can divide a large program into the basic building blocks known as function. The function contains the set of programming statements enclosed by {}. A function can be called multiple times to provide reusability and modularity to the C program. In other words, we can say that the collection of functions creates a program. The function is also known as procedure or subroutine in other programming languages.



Share:

What is Array in C? Write a program to sort numbers in descending order.

 

  • An array is a collection of data items, all of the same type, accessed using a common name.
  • A one-dimensional array is like a list;  A two dimensional array is like a table;  The C language places no limits on the number of dimensions in an array, though specific implementations may.
  1.     #include <stdio.h>
  2.     void main ()
  3.     {
  4.  
  5.         int number[30];
  6.  
  7.         int i, j, a, n;
  8.         printf("Enter the value of N\n");
  9.         scanf("%d", &n);
  10.  
  11.         printf("Enter the numbers \n");
  12.         for (i = 0; i < n; ++i)
  13. 	        scanf("%d", &number[i]);
  14.  
  15.         /*  sorting begins ... */
  16.  
  17.         for (i = 0; i < n; ++i) 
  18.         {
  19.             for (j = i + 1; j < n; ++j) 
  20.             {
  21.                 if (number[i] < number[j]) 
  22.                 {
  23.                     a = number[i];
  24.                     number[i] = number[j];
  25.                     number[j] = a;
  26.                 }
  27.             }
  28.         }
  29.  

 

Share:

Difference on Break and Continue Statement in C

 














Share:

Policy To GONUJI

 Privacy Policy

Narendra Kumar Gupta built the GONUJI app as a Free app. This SERVICE is provided by Narendra Kumar Gupta at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at GONUJI unless otherwise defined in this Privacy Policy.

Information Collection and Use

For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to Kumar Naren. The information that I request will be retained on your device and is not collected by me in any way.

The app does use third party services that may collect information used to identify you.

Link to privacy policy of third party service providers used by the app

Log Data

I want to inform you that whenever you use my Service, in a case of an error in the app I collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing my Service, the time and date of your use of the Service, and other statistics.

Cookies

Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.

This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.

Service Providers

I may employ third-party companies and individuals due to the following reasons:

  • To facilitate our Service;
  • To provide the Service on our behalf;
  • To perform Service-related services; or
  • To assist us in analyzing how our Service is used.

I want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.

Security

I value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and I cannot guarantee its absolute security.

Links to Other Sites

This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by me. Therefore, I strongly advise you to review the Privacy Policy of these websites. I have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.

Children’s Privacy

These Services do not address anyone under the age of 13. I do not knowingly collect personally identifiable information from children under 13 years of age. In the case I discover that a child under 13 has provided me with personal information, I immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact me so that I will be able to do necessary actions.

Changes to This Privacy Policy

I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page.

This policy is effective as of 2021-08-07

Contact Us

If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me at kumar.naren777@gmail.com.

Share:

Love and Romance

 

We've all experienced love. We've loved (and been loved by) parents, brothers, sisters, friends, even pets. But romantic love is different. It's an intense, new feeling unlike any of these other ways of loving

Why Do We Fall in Love?

Loving and being loved adds richness to our lives. When people feel close to others they are happier and even healthier. Love helps us feel important, understood, and secure.

But each kind of love has its own distinctive feel. The kind of love we feel for a parent is different from our love for a baby brother or best friend. And the kind of love we feel in romantic relationships is its own unique type of love.

Our ability to feel romantic love develops during adolescence. Teens all over the world notice passionate feelings of attraction. Even in cultures where people are not allowed to act on or express these feelings, they're still there. It's a natural part of growing up to develop romantic feelings and sexual attractions to others. These new feelings can be exciting — or even confusing at first.


The Magical Ingredients of Love Relationships

Love is such a powerful human emotion that experts are constantly studying it. They've discovered that love has three main qualities:

1.    Attraction is the "chemistry" part of love. It's all about the physical — even sexual — interest that two people have in each other. Attraction is responsible for the desire we feel to kiss and hold the object of our affection. Attraction is also what's behind the flushed, nervous-but-excited way we feel when that person is near.

2.    Closeness is the bond that develops when we share thoughts and feelings that we don't share with anyone else. When you have this feeling of closeness with your boyfriend or girlfriend, you feel supported, cared for, understood, and accepted for who you are. Trust is a big part of this.

3.    Commitment is the promise or decision to stick by the other person through the ups and downs of the relationship.

4.    These three qualities of love can be combined in different ways to make different kinds of relationships. For example, closeness without attraction is the kind of love we feel for best friends. We share secrets and personal stuff with them, we support them, and they stand by us. But we are not romantically interested in them.

5.    Attraction without closeness is more like a crush or infatuation. You're attracted to someone physically but don't know the person well enough yet to feel the closeness that comes from sharing personal experiences and feelings.

6.    Romantic love is when attraction and closeness are combined. Lots of relationships grow out of an initial attraction (a crush or "love at first sight") and develop into closeness. It's also possible for a friendship to move from closeness into attraction as two people realize their relationship is more than "just like" and they have become interested in one another in a romantic way.

7.    For people falling in love for the first time, it can be hard to tell the difference between the intense, new feelings of physical attraction and the deeper closeness that goes with being in love.

Lasting Love or Fun Fling?

The third ingredient in a love relationship, commitment, is about wanting and deciding to stay together as a couple in the future — despite any changes and challenges that life brings.

Sometimes couples who fall in love in high school develop committed relationships that last. Many relationships don't last, though. But it's not because teens aren't capable of deep loving.

 

 

                                                                                    -Nissan Nyaupane

                                                                        Gorkha Model Secondary School

                                                                                    Lamahi, Dang

Share:

Use of Internet in Covid

 The covid-19 pandemic has graphically illustrated the importance of digital networks and service platforms. Imagine the shelter in place reality we would have experienced at the beginning of 21st century, only two decades ago: a slow internet and (because of that) nothing like Zoom or Netflix.


Digital networks that deliver the internet to our homes, and the services that ride on those networks have leapt from an ancillary "nice to have" to something that is critical to economic activity and our daily lives. It is time to consider whether these companies are too important to be left to make the rules governing their behavior themselves.


New Rules For a New Reality

It is neither unusual, nor untoward that innovators make the rules for the new reality they create. After all, they are the ones who see the future. The last time there was a major technological revolution- the industrial revolution-it was industrial capitalists like Rockefeller, Carnegie, and Morgan who made the rules. However, it ultimately became necessary to assert the public interest in the oversight of these activities. 

 

The connectivity and services built by information capitalists have become too important to be left any longer without public participation in determining the rules they follow.

 

This does not mean that we need heavy handed regulation like in the industrial era. But it does mean that the critical nature of these digital services warrants public interest representation in decisions about their practices. We know the results of the companies making the rules.

 

                                                                -Nishan Neupane

                                                            Gorkha Model School

                                                                  Lamahi, Dang

Share:

Important Questions For Grade XII Management Computer Science Students

1. Program to convert Celsius to Fahrenheit.

2. Program to convert Nepali Rupees to Indian Rupees.

3. Define Data types used in C programming.

4. What are the advantages of Functions?

5. Difference between Structure and Union.

6. Write a program to reverse a number.

7. Make a program to decide whether a number is palindrome or not.

8. Program to add two different matrix.

9. Define Recursion. Give an example of Recursive function.

10. Write a program to print Fibonacci Series.



Share:

Translate

Wikipedia

Search results