Use GoJS HTML5 Canvas Library for Drawing Diagrams and Graphs

Nancy Den
Updated on 25-Feb-2020 07:01:47

513 Views

GoJS is a JavaScript library, which you can use to implement interactive diagrams. This page will show you the essentials of using GoJS. If you want to add diagrams and graphs, then use this library, which is Open Source.GoJS has a model-view architecture, in which Models holds arrays of JavaScript objects, which describe nodes and links. To visualize this data using actual Node and Link objects, the Diagrams act as views.Constructing a Diagram with GoJS creates an HTML5 Canvas element to be placed inside the given DIV element.How to draw a diagramStart working with GoJS, you need to declare the ... Read More

Store a Name Permanently Using HTML5 Local Storage

Rishi Rathor
Updated on 25-Feb-2020 07:00:54

373 Views

The Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a user's mailbox, on the client side for performance reasons.HTML5 localStorage saves string data in the browser and lasts beyond the current session. localStorage stores the data, with no expiration, whereas sessionStorage is limited to the session only. When the browser is closed, the session is lost.The data won’t get deleted when the browser is closed. Here, we will save the name for example.You can ... Read More

Difference Between strlen and sizeof for String in C

Mahesh Parahar
Updated on 25-Feb-2020 06:57:24

324 Views

As we know that in programming string can be defined as the collection of characters. Now for the requirement of finding how many characters are being used to create a string, C provides two approaches which are strlen() and sizeof().As mentioned in above point both of these methods are used to find out the length of target operand but on the basis of their internal implementation following are some basic differences between both.Sr. No.Keystrlen()sizeof()1Definitionstrlen() is a predefined function defined in a Header file named string.h in C.On other hand sizeof() is a Unary operator and not a predefined function.2Implementationstrlen is ... Read More

How Server-Sent Events Work in HTML5

Jai Janardhan
Updated on 25-Feb-2020 06:55:09

445 Views

Server-sent events standardize how we stream data from the server to the client. To use Server-Sent Events in a web application, you would need to add an element to the document.The src attribute of element should point to an URL which should provide a persistent HTTP connection that sends a data stream containing the events.The URL would point to a PHP, PERL or any Python script which would take care of sending event data consistently. Following is a simple example of web application which would expect server time.You can try to run the following code to learn how ... Read More

Automatically Redirect Visitors to Your New Home Page

Arjun Thakur
Updated on 25-Feb-2020 06:49:25

2K+ Views

Page redirection is a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection.To redirect from an HTML page, use the META Tag. With this, use the http-equiv attribute to provide an HTTP header for the value of the content attribute. The value in the content is the number of seconds; you want the page to redirect after.Through this, you can automatically redirect your visitors to a new homepage. Set the content attribute to 0, if you want it to load immediately.The following is ... Read More

Favicon Size Requirements: 32x32 or 16x16

Vikyath Ram
Updated on 25-Feb-2020 06:44:30

6K+ Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with a smaller size. The size of a favicon is 16x16, since it also gets displayed next to the URL of your site in a browser's address bar.The 16x16 size for Favicon is suitable for web browsers. But the size varies on multiple platforms and devices. The size is added using the sizes attribute.The preferred size,    1.16x16: For web browser   2. 32x32: or taskbar shortcut icon   3. 96x96: For desktop shortcut iconHere’s how you can add them ... Read More

Create a Favicon for Your Website

Rishi Raj
Updated on 25-Feb-2020 06:37:29

487 Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size.Here, you can see the favicon, The size of a favicon is 16x16 since it also gets displayed next to the URL of your site in a browser's address bar. It is visible on a users list of bookmarks and easily helps in recognizing the website from a list of websites.To add a favicon icon, you need to create an icon, with size 16x16. Also, some websites provide options to create favicon icon from PNG, ... Read More

Favicon Best Practices for Size and Format

Paul Richard
Updated on 25-Feb-2020 06:36:21

4K+ Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size.The size of a favicon is 16x16 since it also gets displayed next to the URL of your site in a browser's address bar. It is visible on a users list of bookmarks and easily helps in recognizing the website from a list of websites.Here’s how you can spot the Favicon, The preferred size,    1. 16x16: For a web browser   2. 32x32: or taskbar shortcut icon   3. 96x96: For desktop shortcut iconHere’s how you can add ... Read More

Free Online Favicon Generators

Arushi
Updated on 25-Feb-2020 06:34:55

342 Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size. Creating it is not something to worry about. Online Favicon Generators easily gives options to create a Favicon for free on button click.Let us see some of the free online Favicon Generators, Favicon.ccFavicon.cc is a favicon creator and generator. Design or you can easily import a logo to design your favicon. You can also create animated Favicon here.Favicon-Generator.orgUsing this create and generate icons for the Web, Android, Microsoft, and iOS apps. Choose an image ... Read More

Watch TCP and UDP Ports in Real-Time in Linux

Pradeep Elance
Updated on 25-Feb-2020 06:34:33

1K+ Views

In a computer network, the network service runs a software in each of the computers that are part of the network. In Linux System this network software uses a protocol called TCP or UDP along with port number. TCP is known as transmission control protocol and UDP is known as user datagram protocol. In this article we will see how to watch the ports are sockets which are running on this protocols on a real time basis.List of Open PortsAs a first step we look for the open ports that are available in the system. Bye open we mean the ... Read More

Advertisements