RSS

Why JavaScript is the future of programming

This explains it all ūüôā

Advertisements
 
2 Comments

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

 

Tags: , , ,

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

600 people reached the top of Mt. Everest in 2012. This blog got about 2,500 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 4 years to get that many views.

Click here to see the complete report.

 
Leave a comment

Posted by on December 30, 2012 in Uncategorized

 

Moving from Amazon Cloud Player to Google Music

Today I thought I would try transfering the songs I have on Amazon over to Google Music. The main reason I am doing this is I ordered the new Google Nexus 7 Tablet and want to give the Google Music player a good try on its home platform.

To get all your music from Amazon, log into the Amazon Cloud Player, select the songs you want and then click Download.

amazon cloud player download

amazon cloud player download

The Amazon MP3 Downloader (install from here) will start up and begin to download your music. If your on Windows, the music will automatically get added to Windows Media Player.

Then head over to Google Music which will give you the option of uploading file by file or installing their Google Music Manager (also available for Mac and Linux), which can be setup to automatically move files from a folder or Windows Media Player to the Cloud.

Google Music Manager

Google Music Manager

Note the song being transfered above is from a game called Bastion. It is available on the Google Chrome Web Store, PC, Xbox 360 and the Mac App Store.

Well there you have it, if you have any issues transferring your music or links to moving music from another cloud service post in the comment. NOTE: Moving music to Google Cloud will take longer to upload because the music will have to be matched and categorized similar to iTunes match.


YouTube Video for Bastion: If you have not played this game try it out.

 
Leave a comment

Posted by on July 7, 2012 in amazon, android, html, music, 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

 

Martial Arts Software

Do you run your own Dojo, School, Gym, etc…

There are some exciting new features being added to OpenBlackBelt.com that you should check out. You can visit their blog and check out all the details.

http://www.openblackbelt.com/blog/


 
Leave a comment

Posted by on May 20, 2012 in Uncategorized

 

Tags: , , , ,

Demandware Certified

image

For my 25th post check out my DemandWare Certificate.

 
1 Comment

Posted by on May 8, 2012 in personal

 

Sold vs Shipped

“Thursday’s media reports of¬†Kindle Fire¬†sales collapsing after a stellar launch are misleading, a leading analyst says, and an indication that many tech bloggers and journalists don’t understand the difference between “shipments” and “sales” of a product.”

This is good trending advice, do not mistake shipments for sales leads ūüôā

See full article at http://www.pcworld.com/article/255074/kindle_fire_sales_didnt_collapse_in_the_first_quarter_of_2012_research_group_says.html

 
Leave a comment

Posted by on May 6, 2012 in amazon, personal, web