Daniol Thomas has Published 197 Articles

Best book to learn Java programming for beginners

Daniol Thomas

Daniol Thomas

Updated on 25-Feb-2020 06:14:12

260 Views

Following books are on top from popularity and content wise and are a good resource to learn java programming from beginner to advance level.

A closer look at Java "Hello World" program

Daniol Thomas

Daniol Thomas

Updated on 24-Feb-2020 12:41:02

314 Views

Let us look at a simple code that will print the words Hello World.ExampleLive Demopublic class MyFirstJavaProgram {    /* This is my first java program. *    This will print 'Hello World' as the output */    public static void main(String []args) {       System.out.println("Hello World"); // ... Read More

private access modifier in Java

Daniol Thomas

Daniol Thomas

Updated on 24-Feb-2020 12:30:54

524 Views

Methods, variables, and constructors that are declared private can only be accessed within the declared class itself.Private access modifier is the most restrictive access level. Class and interfaces cannot be private.Variables that are declared private can be accessed outside the class, if public getter methods are present in the class.Using ... Read More

Which is the best tool to debug JavaScript/jQuery code?

Daniol Thomas

Daniol Thomas

Updated on 21-Feb-2020 12:42:05

177 Views

The following are some of the best browser-based debugging tools for JavaScript −FireBugFireBug is a Firefox addon, widely used to inspect the code. Edit, debug and monitor CSS, HTML, and JavaScript live in any web page.Credit− FirebugDragonFlyDragonFly is a fully-featured suite of developer tools. It supports cross-device and remote debugging, ... Read More

How do we count the records from MySQL table where column holds duplicate/triplicates data?

Daniol Thomas

Daniol Thomas

Updated on 13-Feb-2020 07:53:40

121 Views

Suppose we have the following table named stock_item in which the column quantity is having duplicate values i.e. for item name ‘Notebooks’ and ‘Pencil’, the column ‘Quantity’ is having duplicate values ‘40’ and for items ‘Shirts’, ‘Shoes’ and ‘Trousers’ triplicate value 29 is hold by column ‘quantity’ as shown in ... Read More

How to Get Started with C++ Programming?

Daniol Thomas

Daniol Thomas

Updated on 10-Feb-2020 11:12:51

648 Views

So you've decided to learn how to program in C++ but don't know where to start. Here's a brief overview of how you can get started.Get a C++ CompilerThis is the first step you'd want to do before starting learning to program in C++. There are good free C++ compilers ... Read More

How MySQL evaluates if we export the data to CSV file from a table which contains a NULL value(s)?

Daniol Thomas

Daniol Thomas

Updated on 07-Feb-2020 05:38:28

348 Views

If we export the data from a table having NULL values then MySQL will store \N in CSV file for the record MySQL table having NULL values. It can be illustrated with the help of the following example −ExampleSuppose if we want to export the values of the table ‘student_info’ ... Read More

Update HTML5 canvas rectangle on hover

Daniol Thomas

Daniol Thomas

Updated on 29-Jan-2020 08:09:58

624 Views

To update HTML5 canvas rectangle on hover, try to run the following code:var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); context.rect(20,20,150,100); context.stroke(); $(canvas).hover(function(e){    context.fillStyle = blue;    context.fill(); });

Detect compatibility of the new HTML5 tag with jQuery.

Daniol Thomas

Daniol Thomas

Updated on 29-Jan-2020 06:30:38

152 Views

Use the following to check the compatibility of the HTML5 tag :var $myEL = $(''); $myEL.appendTo('body'); var bgColor = $myEL.css('backgroundColor'); if (/rgb\(255\, 255\, 0\)/.test(bgColor))    return true; else    return false;

MediaStream in HTML5

Daniol Thomas

Daniol Thomas

Updated on 28-Jan-2020 08:07:51

354 Views

The MediaStream represents synchronized streams of media. If there is no audio tracks, it returns an empty array and it will check video stream, if webcam connected, stream.getVideoTracks() returns an array of one MediaStreamTrack representing the stream from the webcam.function gotStream(stream) {    window.AudioContext = window.AudioContext || window.webkitAudioContext;    var ... Read More

Previous 1 ... 6 7 8 9 10 ... 20 Next
Advertisements