Convert CSV to XML, HTML, JSON, and More

This article was written on October 07, 2010 by CyberNet.

convert csv xml html json.png

The other day I was looking for a way to take a large CSV file worth of data and convert it into corresponding XML nodes. I wanted the first line of the CSV file to serve as each individual node name so that it could be easily parsed, and most of all I wanted an online solution because I knew I shouldn’t need a full-fledged application to do something this mundane.

After a few quick searches I came across Mr. Data Converter. It’s an awesome utility that lets you paste in any CSV (comma separated values) or tab-delimited data, and it will turn it into one of nine different formats. A full list of compatible formats are below, and notably include HTML, XML, and JSON.

To put the data converter to the test I went ahead and created a very brief CSV file that I could pass through the service to examine what the output looks like. Here’s the CSV content that I started with:

Name,Class,Age,Grade
Jason,Math,14,A
Beth,English,16,B+
Anne,Math,15,A+

And this is the resulting output for all of the supported types:

  • Actionscript
    [{name:"Jason",class:"Math",age:"14",grade:"A"},
    {name:"Beth",class:"English",age:"16",grade:"B+"},
    {name:"Anne",class:"Math",age:"15",grade:"A+"}];
  • ASP/VBScript
    Dim myArray(3,2)
    myArray(0,0) = "Jason"
    myArray(1,0) = "Math"
    myArray(2,0) = "14"
    myArray(3,0) = "A"
    myArray(0,1) = "Beth"
    myArray(1,1) = "English"
    myArray(2,1) = "16"
    myArray(3,1) = "B+"
    myArray(0,2) = "Anne"
    myArray(1,2) = "Math"
    myArray(2,2) = "15"
    myArray(3,2) = "A+"
  • HTML
    <table>
      <thead>
       <tr>
        <th class="name-cell">name</th>
        <th class="class-cell">class</th>
        <th class="age-cell">age</th>
        <th class="grade-cell">grade</th>
       </tr>
      </thead>
      <tbody>
       <tr class="firstRow">
        <td class="name-cell">Jason</td>
        <td class="class-cell">Math</td>
        <td class="age-cell">14</td>
        <td class="grade-cell">A</td>
       </tr>
       <tr>
        <td class="name-cell">Beth</td>
        <td class="class-cell">English</td>
        <td class="age-cell">16</td>
        <td class="grade-cell">B+</td>
       </tr>
       <tr class="lastRow">
        <td class="name-cell">Anne</td>
        <td class="class-cell">Math</td>
        <td class="age-cell">15</td>
        <td class="grade-cell">A+</td>
       </tr>
      </tbody>
    </table>
  • JSON – Properties
    [{"name":"Jason","class":"Math","age":"14","grade":"A"},
    {"name":"Beth","class":"English","age":"16","grade":"B+"},
    {"name":"Anne","class":"Math","age":"15","grade":"A+"}];
  • JSON – Array
    [["Jason","Math","14","A"],
    ["Beth","English","16","B+"],
    ["Anne","Math","15","A+"]];
  • PHP
    array(
    array("name"=>"Jason","class"=>"Math","age"=>"14","grade"=>"A"),
    array("name"=>"Beth","class"=>"English","age"=>"16","grade"=>"B+"),
    array("name"=>"Anne","class"=>"Math","age"=>"15","grade"=>"A+")
    );
  • Ruby
    [{"name"=>"Jason","class"=>"Math","age"=>"14","grade"=>"A"},
    {"name"=>"Beth","class"=>"English","age"=>"16","grade"=>"B+"},
    {"name"=>"Anne","class"=>"Math","age"=>"15","grade"=>"A+"}];
  • XML – Properties
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
      <row name="Jason" class="Math" age="14" grade="A" ></row>
      <row name="Beth" class="English" age="16" grade="B+" ></row>
      <row name="Anne" class="Math" age="15" grade="A+" ></row>
    </rows>
  • XML – Nodes
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
      <row>
        <name>Jason</name>
        <class>Math</class>
        <age>14</age>
        <grade>A</grade>
      </row>
      <row>
        <name>Beth</name>
        <class>English</class>
        <age>16</age>
        <grade>B+</grade>
      </row>
      <row>
        <name>Anne</name>
        <class>Math</class>
        <age>15</age>
        <grade>A+</grade>
      </row>
    </rows>

Pretty awesome, huh? This also makes a handy programming tool since it is able to create arrays for Ruby, PHP, ASP, and even ActionScript. Oh, and if you’re using Microsoft Excel you can just highlight the cells you want to use, copy them, and they will be pasted into the data converter using a format it understands. With that in mind you can actually use Excel functions to help generate random testing data, and then use the convert to get it into the format you need.

Mr. Data Converter Homepage

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


Could Your Facebook Profile Keep You From Landing a Job?

This article was written on August 06, 2007 by CyberNet.

Career builder logoA word of caution for those hunting for a job: make sure that your online profile is “clean” because employers are using information that they find online to help them determine who they should hire. Not only are they using search engines like Google, they’re also checking social networks like Facebook and MySpace. Would any of you be embarrassed by what employers found on your social network profile whether it be pictures, or other content?

This information came from a study done by Careerbuilder.com who surveyed over 1,100 different hiring managers. What they found was that 26 percent used search engines, and 12 percent admitted to using social network sites to check-up on potential employees. While those numbers aren’t that large, I think we can assume that the percentage of hiring managers who use online information will only continue to grow.

Also interesting is that the information these managers found  is actually used to make a decision on whether to hire or not.  While only 12 percent said they used social network sites, according to Reuters, “63% declined to hire an applicant based on what they found, citing lying about qualifications and criminal behavior as two of the top disqualifiers.”

So remember, not only are your friends looking at the pictures from last weekends party, your future employer may be too! If you don’t want your profile seen by anybody other than your friends, make sure you set your profile on social networks to private. It’s also not a bad idea to go to a search engine and search for your name to see what comes up. If the way you appear online is not one that could land you a job, it’s time to do some work to change that!

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


CyberNotes: Top 10 Wikipedia Themes for Stylish Users

This article was written on August 27, 2008 by CyberNet.

CyberNotes
Web Browser Wednesday

According to Alexa Wikipedia is the 7th most visited site in the world only to follow behind companies like Google and Yahoo. Seeing that they receive millions of visitors each day it should come as no surprise that people would use the tools at hand to make their own customized layouts and designs for the site.

Below we’ve listed out our top 10 Wikipedia themes that are specifically designed for Firefox users who have the Stylish extension installed. We’ve tested out each of the styles to make sure they work as advertised, and for each of the screenshots the Firefox Wikipedia page was used. That way you’re able to quickly compare one style to another in order to determine which one you like best. When all is said and done we’ll tell you what our three favorites are (one from each category).

Here’s a quick look at what the Wikipedia page looks like before any modifications have been made.

wikipedia original.jpg

Note: Click on any of the screenshots to see a larger version.

–Dark Themes–

If you like dark skins here are four Wikipedia themes that you’ll definitely want to consider.

  • DeepPurple – The skin doesn’t use an overwhelming amount of purple, but what I like about this is that the hyperlinks are still easy to read.
    wikipedia purple.jpg
  • Dark Grey – Instead of just having a solid black background this one has a smooth gradient that gives the interface a more streamlined feel. It’d be nice if it still used the standard Wikipedia icon, but if you know how to edit the script that can easily be changed.
    wikipedia dark grey.jpg
  • Dark Blue – If you’re looking for a dark theme but aren’t fond of the black/grey then this might be a better fit. You’ve just gotta love blue in order to like this skin.
    wikipedia blue.jpg
  • SKYY – This is almost like the purple skin mentioned above, but instead of using purple in some places it uses a greenish color.
    wikipedia sky.jpg

–Minimalist Themes–

The minimalist themes focus solely on displaying the content for reading purposes, and aren’t designed for editing Wikipedia articles. They ensure that you get the most out of the space available in your browser window.

  • Minimalist – This is about as simple as it gets. Everything is removed including the sidebar, tabs along the top, and even the big “summary” typically shown along the right side of the article.
    wikipedia minimalist.jpg
  • Simple Research – Hands down one of the best looking skins right here. It removes the sidebar, makes the content area fixed-width, throws in some nice rounded corners, and uses all the right colors to make it easy on the eyes. Plus it still includes a small search box in the upper-left corner
    wikipedia simple research.jpg
  • No Sidebar – All this pretty much does is remove the sidebar, and then place an oversized search box at the top. All other default Wikipedia color schemes and styles are kept in tact.
    wikipedia no sidebar.jpg
  • Clean & Compact – If you’re looking for a skin that makes the most of the space available this would surely be it. The sidebar is removed, but the search box is placed in the upper-right corner. You’ll also notice that the table of contents no longer pushes the content down further on the page, and it is instead aligned to the left of the first section.
    wikipedia clean compact.jpg

–Other Themes–

These remaining themes modify the appearance of Wikipedia while leaving all of its functionality in tact.

  • Modifications – For the most part this skin leaves the site untouched, but does a few things such as round the corners on tabs and also on the various sections in the sidebar.
    wikipedia modifications.jpg
  • Grey Lady – By far the most formal looking theme available for Wikipedia. Everything looks and feels as though you’re reading an article on a professionally written site.
    wikipedia grey lady.jpg

–Overview–

It’s definitely awesome the work some of these developers have put into modifying the appearance of Wikipedia. Here are my favorites from each of the categories:

  • Dark Themes: Dark Grey
  • Minimalist Themes: Simple Research
  • Other Themes: Grey Lady

Let us know in the comments which themes you like the best!

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


Mozilla Firefox Add-ons Page Gets A Nice Facelift

This article was written on October 24, 2006 by CyberNet.

Firefox Add-ons

I just went to see what Firefox extensions had been updated today and noticed that the Firefox Add-ons page received a drastic redesign. I think this confirms my thought that Mozilla will be providing a refreshed Firefox homepage when they launch it.

I think the new design adopts the Web 2.0 theme that can be found all over the Internet, but I actually prefer the old look a little more. I don’t completely understand the motorcycle located in the header but it does look like there’s a Firefox logo on the seat. Now I’m curious what is going to happen with the Firefox homepage. Maybe we’ll get some pink ponies? :)

What does everyone else think of the new design?

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


Flickr Donates 10,000 Pro Memberships “for Good”

This article was written on March 06, 2008 by CyberNet.

There are so many reasons that people use Flickr whether it’s for business, personal, or marketing purposes.  A recent blog entry over at Flickr points out how some members of Flickr are using it for something a little different than others and that is “to shine a light of social or global issues.” For this reason, Flickr has created a new site called Flickr for Good.  It’s a place where information can be shared on charity, issues, or other good causes out there. To help promote the site and get more non-profit organizations involved, Flickr has teamed up with TechSoup to donate 10,000 one-year memberships.

TechSoup is all about bringing technology donations to nonprofit organizations. Those 10,000 pro memberships would normally cost around $25 each but they are now available to organizations and libraries through TechSoup for a small administration fee. On the Flickr for Good site they say, “A photo gives us the ability to see what goes on in the world, but can also move us to care, or motivate us to help.  Many individuals and organizations use Flickr to share their mission to make the world better and this is just a sample of what’s going on at Flickr.” They’re hoping that these free memberships will motivate organization to share what they’re doing.

flickr for good
Click to enlarge

As mentioned, it’s not completely free. Flickr did donate all 10,000 memberships but TechSoup charges an administrative fee of $3 per account. Any organization that’s listed in the USA or Canada as non-profit will be able to get a bundle of two accounts or a bundle of five free accounts. The bundle of two memberships will cost $6 while the bundle of five accounts will be $15. My only question at this point is what they’ll do when these one-year memberships expire. Will they once again offer the organizations free accounts? Or will they be required to pay full price if they want to continue what they had been doing?

To view the good works that have already been posted to Flickr like photos from Interplast which gives children the opportunity to have reconstructive surgery for free in 16 different countries, just check out www.flickr.com/good.

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


Backup Your Data With Mozy And Receive 2GB Free

This article was written on July 27, 2006 by CyberNet.

Backup Your Data With Mozy And Receive 2GB FreeOne of the most tedious yet worthwhile tasks that you can do is backup your data. You never know when that sudden crash is going to happen which is why I just showed you earlier today how you could use a batch file to backup certain folders. It isn’t really that hard to do but not everyone has multiple computers around the house that they can use.

Sure you could pay for solutions like Xdrive but why bother when you can use Mozy for free! They give you 2GB of storage and a simple-to-use backup utility that you run on your computer. The application will let you completely customize what kind of files are backed up so that you can prevent unwanted data from reaching their servers. Once your files are are stored on their site Mozy takes the liberty of encrypting your data so that you can sleep easy at night.

They also have a nice referral system setup so that every 4 people that you invite and get to sign-up you will receive 1GB in space. You can either provide them with a hyperlink (this is my referral hyperlink) or you can just use a referral code that they can enter in (my referral code is 2YYJFF). Don’t let me hold you back from using me as a referral :) . I just started using the service today but it seems nice so far. I guess we’ll see how it holds up for the long haul!

News Source: Yahoo

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


Ask City: The Online Map With The Best Features Hands Down

This article was written on December 04, 2006 by CyberNet.

AskCity

I am an unbelievably huge fan of Google Maps but there is a new competitor in town: Ask City! I haven’t used any of the Ask services in the past (no, not even Bloglines) but this one is pretty astonishing. Can it really be that great?

I didn’t think an online mapping service could keep a clean interface like the one Google Maps has and still add more great features. Ask has done just that with their new Ask City and it is hard to even describe how smooth the site operates. In the screenshot above you can see that there is essentially three “frames”: search, results, and map. At first I was wondering “what if I don’t need the results frame” but then I realized you can maximize either the results or the map by clicking the little box in the upper-right corner of their respective frame.

Still nothing too special…but play around with the mapping frame a little. Yes, those are drawing tools at the bottom which makes it super easy to highlight areas (or just to have some fun like I did in the screenshot). After you get done drawing just click on the “snapshot” option to save your spot in the map along with anything that you have doodled on it. You don’t have to create an account or anything to use this feature so I am guessing that it writes the coordinates of shapes and text to a cookie that is stored on your computer.

The Clear/Undo button lets you erase the drawing canvas or undo the last action but there isn’t a way that you can selectively delete certain elements once they have been placed. Hey…we have to compromise on some things don’t we? ;)

So am I going to switch over from Google Maps? It is tough to say because the satellite imagery that Ask City uses is pretty old in my area which is something I use a lot with Google Maps. If I’m just looking up a business or something I’ll probably be using Ask City though. This is just another example of why Google needs to sit down and focus on making their existing products better instead of constantly releasing new things. They said a few months back that they intend to do that but I haven’t seen much as far as improvements go to their already released services.

News Source: Digg

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


Gmail HTML Signature Bookmarklet

This article was written on June 10, 2008 by CyberNet.

html gmail signature bookmarklet.png

One of the things that still surprises me is that Google has not released any way to create HTML signatures for emails in Gmail. As a result there have been a descent number of Greasemonkey scripts for Firefox that give users the chance to automatically insert HTML signatures into an email, but for some of you a simple bookmarklet might be all you need.

To create a bookmarklet that will insert one of your HTML signatures all you have to do is head on over to this site. Once there you should see a rich-text box similar to the one in the screenshot above. You can customize the signature that will appear in the email by inserting online graphics, creating tables, and much more. If you would rather work with the raw HTML code to develop your signature just click the “HTML” button located at the far end of the second toolbar.

After you’re done just move on to the next step to receive your bookmarklet. You can repeat the process as many times as you want in case you find yourself needing more than one signature, and all you have to do is store each one in your bookmarks. Then when you’re composing an email go ahead and select the appropriate signature to have it automatically added to the content area. This works with both new emails and replies/forwards.

There’s only one bad thing that I’ve discovered with this so far, and it’s that the signature is automatically appended onto the end of the email. If you’re composing a new message that shouldn’t matter too much, but if you’re writing a reply it will appear after the quoted portion. I think a better solution for this bookmarklet would be to insert the signature at the current location of the cursor, which essentially lets the user choose the position on-the-fly.

What I’m really holding out for is an HTML signature solution to pass through Gmail Labs. ;)

Create an HTML Signature Bookmarklet for Gmail [via Download Squad & Lifehacker]

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


Microsoft Previews New Windows Live Homepage

This article was written on August 08, 2007 by CyberNet.

At a recent Japanese media briefing, the press were able to get a preview of what the new Windows Live Homepage will look like.  It will replace the current Live.com page that users are able to personalize with content like news and weather, as well as gadgets. The new page will be more of a centralized place where users will be able to include different modules so that all of their Live services come together and are easily accessible from one place. The image below shows what the page would potentially look like:

New windows live

 

Now, as mentioned, you’ll be able to include different modules so that all of your live services will be easily accessible. By that, I mean that if you use Windows Live Hotmail, you’ll have access right on the Live.com page to your email and contacts. Currently if you click to view contacts on your Live.com homepage, you’ll be taken to your Hotmail account.

Other examples include integration of Windows Live Calendar, Windows Live Spaces, and Windows Live OneCare. If you use the calendar, you’ll be able to see your upcoming events without navigating away from the homepage. If you use Windows Live Spaces, you can publish a blog and upload photos right to your Spaces account. And if you use Windows Live OneCare on your PC, you’ll be able to view the status.

The image below gives you a good idea of everything that will be included:

Windows live homepage2

With Microsoft introducing so many new services under the “Live” brand, it’s important that they do something like what has been previewed so that everything is brought together under one roof. There’s been no word on when this is expected to launch, but I’d imagine it should be soon. For those of you who use multiple Live services, this is definitely one thing to look forward to.

Source:Liveside.net

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts:


CyberNotes: The Analysis of a Digg Effect 4X in 10 Days

This article was written on July 14, 2006 by CyberNet.

CyberNotes
Free For All Friday

An article making the front page of Digg and the effects on the website it came from is jaw-dropping to say the least. It effects everything from the obvious such as traffic to the not so obvious like new RSS subscribers and dedicated readers. From July 1st-July 10th, CyberNet News had 4 articles make the front page of Digg. For those that may be unfamiliar with Digg, (although chances are if you’re reading this, you’ve heard of Digg) it is a ‘user driven social content website.’ Users submit cool articles they find and the community of Digg votes on the articles they like. The articles that get enough Diggs end up on the front page where the masses come to get the latest cool news. This is essentially an analysis on the 4X Digg effect we experienced complete with crazy graphs that speak for themselves on the powerfulness that Digg can have.

 

–Visitors/Traffic–
The obvious effect on a website after a front page Digg article is the huge increase in visitors and traffic. The four articles that made the front page of Digg were:

  1. Firefox 2.0 Gets Undo Close Tab & Scrolling Tabs (July 1st)
  2. 9 Screenshots Of Firefox 2.0′s New Preferences (July 7th)
  3. Firefox 2.0 Beta 1 Candidate Now Available (July 8th)
  4. How To Tweak Firefox 2.0 Beta 1 (July 9th)

Get the trend? All four articles were regarding Firefox which tells us a lot right there! We keep track of our stats with a free program Google has called Google Analytics. They provide you with every statistic imaginable, and display them in useful graphs.

Graph 1

Above you can see the huge jump in traffic almost instantly after article #1 hit the front page. It literally makes it appear as though we had no traffic all day, which wasn’t the case. Article one peaked with about 2,500 visits for the hour, however traffic remained pretty steady afterwards and thus far has attracted 24,000+ pageviews. Pageviews combined for all four articles have totaled nearly 150,000!

Graph 2

To the right is another graph that nearly speaks for itself. The blue section of the graph represents Digg. Nearly 87% of our visitors on July 1st came to us because of our Digg article. Absolutely Insane.Typically our graph looks like a well balanced pie chart with pretty equal portions. Not so on “Digg Days.”

 

–Bandwidth–
Of course with an increase in traffic comes an increase in bandwidth, especially on a ‘Digg Day’ when there is a sharp sudden increase in traffic.As a side note, a Digg Day really could turn into a D-Day (a.k.a Doom’s Day) if you’re not running on a reliable server! The picture below depicts this so well, really there’s no need for an explanation!

Graph 3
However, here are a few details about what’s going on in the graph. This depicts article number 2 which made it to the front page on July 7th. This ended up being a short lived article on Digg as enough people labeled this as “lame” (hey, it wasn’t that lame now was it?) and it was removed from the front page– one of the effects of users controlling the content. The graph does a good job of showing just how quickly the bandwidth spikes to all time highs and then returns to a steady flow. The article contained 9 large screeshots which is why it peaked so high.

 

–Browsers/Operating Systems–

Graph 4

With 4 articles all regarding Firefox making it to the front page of Digg, it’s not hard to figure out which browser was most prevalent during our ‘Digg Days.’ You guessed it, Firefox with about 75% of the users and Internet Explorer next with around 12%. Both Safari and Opera had about 4% of the share. As a funny side note, one of the browsers listed in the statistics was named ‘I am using a browser and OS so new and innovative that you will never have heard of it proof that someone altered their browser with a new identity’ you know who you are, identify yourself and this ‘innovative’ browser you’ve got. Yes, Google Analytics really does give you every statistic imaginable.

Graph 5

The operating system graph looks very similar to the web browser graph with 80% of visitors using Windows. Around 12% were Mac users and 7% were Linux users. Somewhat surprising, this shows that people are still more comfortable with open source software versus an open source operating system.

 

–Overview–
The ‘Digg Effect’ as it’s called, really does affect a website in more ways than one. Each time an article makes the front page of Digg we end up with more RSS subscribers and dedicated readers something that any blog such as CyberNet strives for. It also makes for some good entertainment after all is said and done and you’re left with roller coaster appearing stats and graphs. Case in point below

Bandwidth

Graph 6

Traffic

Graph 7

And of course, if you liked this analysis, Digg it!

Update:
We also forgot to mention that the graph above that plots all of the Digg articles has a large dip because we switched hosting providers. As a result we were down for a few days.

Copyright © 2010 CyberNet | CyberNet Forum | Learn Firefox

Related Posts: