RSS

Category Archives: javascript

Three.js Essentials Book Review

Three.js Essentials Book Review

Have you ever wanted to create 3D animations on the web, here is the book for you.

Threejs Essentials

Threejs Essentials

The first few chapters explain the overview of setting up your environment and working on a Scene. Three.js is very powerful and can render output in WebGL, Canvas, or SVG format. Three.js is JavaScript powered you can be up and running in no time once you have included the Three.js library you can get from Github.com

Three.js Essentials Screen

For those not familiar with 3D a Scene, this is where all the objects you setup will be rendered to and a Camera Object will be used to represent where the viewer is in 3D space. The book goes over many 3D rendering concepts such as lighting,materials,and particle effects. Anyone familiar with these concepts from game development in 3D such as Unreal or Unity should have no trouble picking the concepts outlined in this book.

Three.js Screen 3

This eBook is a excellent reference on the Three.js library for anyone wanting to move from flash to html animation or work on browser enabled games.

You can check out this book here:

https://www.packtpub.com/web-development/threejs-essentials

Three.js Essentials

Advertisements
 
1 Comment

Posted by on August 8, 2014 in ebook, html, javascript, personal, review, web

 

jQuery 2.0 Development Cookbook

Though I have reviewed many software and hardware tools in the past this will be my first book review:

jQuery 2.0 Development Cookbook

jQuery 2.0 Development Cookbook

jQuery 2.0 Development Cookbook

First I must say really liked the examples that are used throughout the book. They are well documented and intended with an easy to follow style for learning jQuery.

The first few chapters provide a great introduction to jQuery. Concepts such as traversing the Document Object Model and handling basic DOM events such as click and hover are expertly explained. The later chapters of the book cover sections on jQuery UI, jQuery Mobile and making jQuery Plugins by extending the platform.

Chapter 8 is a great guide to on extending jQuery to create plugins. One of which I have started on my own site as a jQuery plugin toolkit for small effects.

For my job I use a lot of dialog overlays and progress bars that utilize jQuery UI and found the sections describing this (Ch 9) to be very useful.

All in all I have to say this is one the best books I have read for jQuery development and recommend this to new users and those who may have come from other JavaScript libraries (YUI, Sencha, Dojo, Prototype) to ramp up their jQuery skills.

You can check out this book here: http://www.packtpub.com/jquery-2-development-cookbook/book

jQuery 2.0 Development Cookbook 

Author: Leon Revill

Leon Revill  has over five years’ commercial web development experience with PHP5 and MySQL technologies on large and small projects. His development skillset extends over many JavaScript technologies, such as jQuery, AngularJS, and NodeJS. Being an all-round tech enthusiast, some of Leon’s spare time is spent working on personal projects to allow him get to grips with new technologies quickly. Leon runs a web development blog ( http://www.revillweb.com/), where he shares his knowledge in the form of articles and tutorials.

 

 

 
Leave a comment

Posted by on March 19, 2014 in html, javascript, personal, Uncategorized, web

 

Tags: , , , , , , , , , ,

Version 1.9 of Facebook Quick Share Released

Version 1.9 of Facebook Quick Share is now available on the Chrome Web Store : https://chrome.google.com/webstore/detail/facebook-quick-share/gccankbfoldbmopamiokjlnnafnoiadd

Facebook Quick Share will allow you to quickly share/like any site to your Facebook wall. Great for sites without Facebook integration. This release corrects the sharing issues with the Chrome Web Store V2 Manifest as well as context menu (right click menu) sharing. Please report any issues.
Facebook Quick Share Chrome Web Plugin

Facebook Quick Share Chrome Web Plugin

 
 

Why JavaScript is the future of programming

This explains it all 🙂

 
2 Comments

Posted by on January 26, 2013 in html, javascript, personal, web

 

Tags: , , ,

Reading a CSV File line by line

Ever needed to read a CSV file? Typically you can accomplish this in Java(and similar languages) by creating a instance of CSVStreamReader and using the readAll() method to read in the file.Though this may read the full file it causes a heavier IO load on the file system.

Here is a method to read a CSV file line by line that is less IO intensive.

function readCsvLine( reader : CSVStreamReader ) {
     var line : Array = reader.readNext();
     if ( line != null ) {
        for ( var i : Number = 0; i < line.length; i++ )  {
            if ( line[ i ].search( /^”\d+”$/ ) == 0 ) {
                line[ i ] = line[ i ].substr( 1, line[ i ].length-2 );
            }
     }
  }
  return line;
}
Now you can test your reader Implementation by using the follow below. NOTE: this is a hybrid Java and the syntax may be a little different if your using standard J2SE/J2EE etc..
while ( ( fieldValues = readCsvLine(reader)) != null) {
     //process line data here
}
Since we are using the readNext() method to read each line rather than using the read() the IO reads are processed in short bursts during each iteration rather than one lone continuous IO stream waiting for all the data to read. In situation where you are dealing with large amount of data this is a very safe way to ensure IO does not bottleneck.
 
Leave a comment

Posted by on June 9, 2012 in html, javascript, web

 

Find out where this JS Alert is invoked

Ever run into a situation where you have an alert popping up from JavaScript and your not sure where it is coming from. Here is a good technique for forcing a stack trace on all alert()‘s by overriding the Alert function.

var old = alert;

alert = function() {
    try {
        throw new Error;
    } catch(e) {
        console.log(e.stack);
    }

    old.apply(window, arguments);
};

Original Article:  http://stackoverflow.com/questions/7808665/how-to-find-out-where-the-alert-is-raised-from

 
Leave a comment

Posted by on April 29, 2012 in html, javascript, personal, web