Get JSON Data

JSON (JavaScript Object Notation) is a lightweight data-interchange format. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others (http://www.json.org/)

How to get those data and deserialize them into our object data ?
You can check out the following C# code :
Please note that Track object properties should be configured as same as the JSON return value. As such, before create the object data, you must generate c# classes from JSON. You may use jsonTocsharp by simply entering the JSON, and klik generate, you will get a bunch properties that should be put within your class/object.

For further knowledge about JSON, you can visit Mastering JSON

May it helps,
Thanks

Google Maps API - Example

Simple example how to put map into our website :
  1. Call google maps javascript API :
  2. Put this javascript :
  3. Type this in your body tag :
  4. Type this under head tag, to set css style (optional) :

For complete tutorial and reference, please read Google Map Javascript API Tutorial and Google Map Javascript API Reference

May it helps,
Thanks 

Solr File Indexing

Solr also support for file indexing, such as content, author, and any meta data inside a file.
I will show you how to use this, with assume that the solrconfig.xml is already set up as my environment.
Check out below :
  1. Call URL address directly from browser (or using curl command), as follow :
  2. OR, you can call via WebClient object in C# on ASP.Net : The content is not indexed, but recorded, just to minimize the memory use.

For complete reference, please read Solr Wiki - ExtractingRequestHandler
My it helps,
Thanks

Faceted Search using Solr

How to use Solr faceted search :
  1. To understand and how to install, please read Apache Solr
  2. To using within .net, please read and download Solr client for .NET
  3. This is how solr first initialization. Put this code inside application_start within your Global.asax file
  4. This is how solr and solr.net related with your class data object
  5. To add to index, code shown as below
  6. To retrieve the data, based on faceted search by user
Please note :
  • Language : C# on ASP.Net
  • Library needed : Solrnet, Castle Windsor, and WindsorAdapter

May it helps,
Thanks

NHibernate – How to use

An example, how to use Nhibernate :
  1. Add code below to your web.config file 
  2. Create session manager class as below 
  3. Call them with this code 
  4. And use them as needed, to save or delete 
Please also note below :
  • Language : C# on ASP.Net 
  • Database  : MySQL 
  • Library needed : Nhibernate, Castle Windsor, WindsorAdapter

May it helps, Thanks