<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4014902805338213291</atom:id><lastBuildDate>Wed, 06 Nov 2024 02:54:41 +0000</lastBuildDate><category>Big Data</category><category>Game Development</category><category>JAVA</category><category>Pigscript</category><category>Assembly</category><category>Clustering</category><category>Cryptography</category><category>ElGamal</category><category>Erlang</category><category>HDFS</category><category>Hadoop</category><category>Hbase</category><category>Hot spotting</category><category>Humanoid Robot</category><category>Instance Based</category><category>Json</category><category>Machine Learning</category><category>NAO</category><category>Operating Systems</category><category>Python</category><category>Redis</category><category>Testing</category><title>Let me know</title><description>Tiroshan's Tec Blog </description><link>http://tyronmadushanka.blogspot.com/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>Tiroshan's Tec Blog </itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-2650658132784695711</guid><pubDate>Tue, 15 Aug 2017 15:45:00 +0000</pubDate><atom:updated>2017-08-15T21:02:11.627-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Clustering</category><category domain="http://www.blogger.com/atom/ns#">Erlang</category><category domain="http://www.blogger.com/atom/ns#">Redis</category><title>Redis Cluster Client for Erlang</title><description>&lt;div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6KE7heGvSx72gRzaLxjrnfcqCR5YD7m72Jjb7034p87wvY3NRr0U8lKWE3mGMpg2R4KG80_EDJBcQC0PDJWfMOMKUtKuunARb33UP-Nuhhb6pEV24pOisONorlwhOt4cqA5LhOMpGg7k/s1600/redis.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="500" data-original-width="1544" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6KE7heGvSx72gRzaLxjrnfcqCR5YD7m72Jjb7034p87wvY3NRr0U8lKWE3mGMpg2R4KG80_EDJBcQC0PDJWfMOMKUtKuunARb33UP-Nuhhb6pEV24pOisONorlwhOt4cqA5LhOMpGg7k/s640/redis.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Redis&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://redis.io/"&gt;Redis&lt;/a&gt; (Remote Dictionary Service) is an open source NoSQL database server which is licensed under BSD-license. Redis is an advanced key-value store and considered as a data structure server since keys can contain many of the foundational data types such as Strings, Lists, Sets, Sorted Sets, and Hashes. Redis works with an in-memory data set in order to reduce the overhead in accessing the non-volatile memory and thus supposed to keep the entire key space in memory during operations. When terminated&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;data will be purged from memory. But depending on the use case, data can be persisted either by taking a snapshot of the data and dumping it on disk periodically or by maintaining an append-only log of all operations.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;Redis is supporting advanced features like Sorted Sets, and many other complex atomic operations since it is in memory, and single threaded. Redis does not use the Operating System-supplied Virtual Memory facilities and instead implements its own system called Redis Virtual Memory.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;The goal of Redis Virtual Memory (VM) is to swap infrequently-accessed data from RAM to disk, without drastically changing the performance characteristics of the database while supporting data sets that are larger than main memory.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size: 14.6667px;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;For production applications, replicating the data across multiple nodes is mandatory task and redundancy allows for recovery in case of environment failure. Since the Redis is heavily used in concurrent applications because of its performance, load distribution across multiple nodes is also an important point. &amp;nbsp;With previous versions of the Redis DB, replication and data distribution over multiple nodes are handled within the application itself as described in the below diagram.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX6TtWhLAV-DiD51bkvPApNnQ7xsLxifYHjOk1PjcVUUAqmtkQWSZtca_kUN4EzjWyzBF0bMn538Q3YY_qNAvuCsUpHPd6DlvOPyyzemssX1nw2Tv7cHsEFvA73stwUjQuskk9b8oYVII/s1600/ered_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="451" data-original-width="608" height="295" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX6TtWhLAV-DiD51bkvPApNnQ7xsLxifYHjOk1PjcVUUAqmtkQWSZtca_kUN4EzjWyzBF0bMn538Q3YY_qNAvuCsUpHPd6DlvOPyyzemssX1nw2Tv7cHsEFvA73stwUjQuskk9b8oYVII/s400/ered_1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="background-color: white; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Redis Clustering&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: start;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;With the Redis version 3.0, Redis introduced Redis Clustering, which reduces an application headache in Redis node management by letting the application to query required data.&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvZRjKnkQDCrQXA9niaxranwmsK1z5XT5ksPmh4FjB7gCQ5a5XnRYTvuQ8bYihUjQlJENxuH06lZ423z6znU5xzgZvYMsNhbW5JyHQ7yTAc7XoCKeCdrD9e4JGgp0dPpRaWZpYsPOS70/s1600/ered_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="456" data-original-width="608" height="298" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvZRjKnkQDCrQXA9niaxranwmsK1z5XT5ksPmh4FjB7gCQ5a5XnRYTvuQ8bYihUjQlJENxuH06lZ423z6znU5xzgZvYMsNhbW5JyHQ7yTAc7XoCKeCdrD9e4JGgp0dPpRaWZpYsPOS70/s400/ered_2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;Please refer the &lt;a href="https://redis.io/topics/cluster-spec"&gt;Redis official document&lt;/a&gt; for clustering and the following image provides an abstract view of the cluster concept.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpdAC0ewxPmty-I7CHDkVYsRw2QkFMH3kfVOZcipA-xJ65cXg6A3UsuRfYV80YIzNjwFUC8F5TQUlWELJs4KAxY3ioDL00OjQniHGFrqYJ_nWe0f-NvGwrmNuj8xMNXgk_7iofXVbryU/s1600/ered_3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="482" data-original-width="608" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpdAC0ewxPmty-I7CHDkVYsRw2QkFMH3kfVOZcipA-xJ65cXg6A3UsuRfYV80YIzNjwFUC8F5TQUlWELJs4KAxY3ioDL00OjQniHGFrqYJ_nWe0f-NvGwrmNuj8xMNXgk_7iofXVbryU/s400/ered_3.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style="text-align: start;"&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Erlang Redis Cluster Client - eredis_cluster_client&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: start;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;The eredis_cluster_client is an enhanced version of &lt;a href="https://github.com/tongdao/eredis_cluster"&gt;eredis_cluster&lt;/a&gt;&amp;nbsp;an &amp;nbsp;Erlang wrapper for &lt;a href="https://github.com/wooga/eredis"&gt;eredis&lt;/a&gt; client&amp;nbsp;which provides the ability to connect multiple clusters initiating a single eredis_cluster_client instance.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;The &lt;a href="https://github.com/tongdao/eredis_cluster"&gt;eredis_cluster&lt;/a&gt; client only facilitates to access a single cluster within your application, while &lt;a href="https://github.com/Tiroshan/eredis_cluster_client"&gt;eredis_cluster_client&lt;/a&gt; implemented on the top of eredis_cluster to address this issue.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnysbY0MY010Oqt3MyzGt-inffRzWsNh7db6HObJVQVe8oTat_-y4J5q8PSl9PyJSK0Pd5KoyW7ZkVsMK73ZMQssCOZJDHuHDLzZUgQeydnYSXSfCN-BndBlGnYaH-N0LOT6s3XE7sB38/s1600/ered_4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="537" data-original-width="624" height="343" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnysbY0MY010Oqt3MyzGt-inffRzWsNh7db6HObJVQVe8oTat_-y4J5q8PSl9PyJSK0Pd5KoyW7ZkVsMK73ZMQssCOZJDHuHDLzZUgQeydnYSXSfCN-BndBlGnYaH-N0LOT6s3XE7sB38/s400/ered_4.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;To connect multiple Redis&lt;/span&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&amp;nbsp;clusters in your application, you need to start the eredis_cluster_pool supervisor, and multiple eredis_cluster_client s in your application supervisor as,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/37c43d52655848e5edb23b43a6d6e120.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;Available functions.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/6cf5716e3e30b2454acc483be36dcd70.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;eredis_cluster_client Git Repo :&amp;nbsp;&lt;/span&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;a href="https://github.com/Tiroshan/eredis_cluster_client"&gt;https://github.com/Tiroshan/eredis_cluster_client&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2017/08/redis-cluster-client-for-erlang.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6KE7heGvSx72gRzaLxjrnfcqCR5YD7m72Jjb7034p87wvY3NRr0U8lKWE3mGMpg2R4KG80_EDJBcQC0PDJWfMOMKUtKuunARb33UP-Nuhhb6pEV24pOisONorlwhOt4cqA5LhOMpGg7k/s72-c/redis.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-111537095151843664</guid><pubDate>Wed, 08 Feb 2017 10:28:00 +0000</pubDate><atom:updated>2017-08-15T08:18:13.609-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Big Data</category><category domain="http://www.blogger.com/atom/ns#">Instance Based</category><category domain="http://www.blogger.com/atom/ns#">Machine Learning</category><title>Hands on k-Nearest Neighbour Algorithm - (k-NN)</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAdHvBBq3bXraxsUGIY7DrLpWslS4LSm1RScBdIdXtAsrH-UPW5hK4ZeNwiT70Ju0s2Z1b2PI09D2V6vJMNgIXOlGMLF6EBQXp6nvfBaPSecdm2tUtsUdoTOQ4HOpO1VNuH7dY4UWGMfo/s1600/k-NN.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;img border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAdHvBBq3bXraxsUGIY7DrLpWslS4LSm1RScBdIdXtAsrH-UPW5hK4ZeNwiT70Ju0s2Z1b2PI09D2V6vJMNgIXOlGMLF6EBQXp6nvfBaPSecdm2tUtsUdoTOQ4HOpO1VNuH7dY4UWGMfo/s640/k-NN.png" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;From this post onward&amp;nbsp;I am trying to explain Data mining and Machine learning algorithms which I have tried out for some industrial solutions during my professional career as a data scientist and kick off this initiative with a simple machine learning algorithm which is&amp;nbsp;&lt;/span&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;called as “k-Nearest Neighbour”.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt; &lt;span style="color: #444444;"&gt;The k-NN algorithm is categorized as an Instanced Based Algorithm and known as a classification or Supervised Learning Algorithm.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;What is k-NN Algorithm?&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;As the name itself describes the methodology, it looks for k number of nearest-neighbours when it requires to predict some labels for a given unknown data point and consider the majority voting.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;It does not refer a model for a prediction on unknown data, hence there is no learning requires, other than storing entire training data set. That means it makes predictions using the training data set directly and predict class label for an unknown instance by searching through the entire set for the k-most similar neighbors.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;As an example let’s consider 2-D data space, that has 5 data points labeled as triangles (green) and 8 data points labeled as circles (red). Suppose that we need to find the label of an unknown data point (let’s take it as a square (blue) ) considering the distribution.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span id="goog_2137725348"&gt;&lt;/span&gt;&lt;span id="goog_2137725349"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-95Wzr_y7bC2YHD-hObNRc_gsjilIHM387v06tWI3Wzl20pYJfQs844Y6aPu5QxtuiVCg4CMdMzvSkvBd4gusTOSD9AylGyPOW_Qbez2P-NN313E5TO_seXUE1E09E1UYew7eKkbYhbA/s1600/sLYJQiI9rxwO6U3x9jiygvw.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-95Wzr_y7bC2YHD-hObNRc_gsjilIHM387v06tWI3Wzl20pYJfQs844Y6aPu5QxtuiVCg4CMdMzvSkvBd4gusTOSD9AylGyPOW_Qbez2P-NN313E5TO_seXUE1E09E1UYew7eKkbYhbA/s1600/sLYJQiI9rxwO6U3x9jiygvw.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;At a glance, you may able to predict it as a triangle data point.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;We can predict the unknown label as follows either consider,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;Consider k-nearest neighbors and get majority voting among candidates&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;Consider k radius circular space and get majority voting among candidates&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ol&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="color: #444444;"&gt;&lt;b&gt;Consider k-nearest neighbors&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #444444; white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;In this approach, the algorithm calculates the distance between given data point and each and every data point in the training set and consider k number of neighbors among them as shown in the diagram. ( consider k=5)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwjxqxVp-JUwWMIowI3tSrrx2_4ffyPfyGmqgHt8RAB29JcXSYqf2DDT7Evsa4c_yHwD9kSeh4uv1VS5OcfkbKQECZELrRpW68Y1F4J1zmlS1OvD-nMmjlD19bKeiGbVj_y62gkqXPfHo/s1600/s4j1IO2uMPQ826z6BFlBqEQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwjxqxVp-JUwWMIowI3tSrrx2_4ffyPfyGmqgHt8RAB29JcXSYqf2DDT7Evsa4c_yHwD9kSeh4uv1VS5OcfkbKQECZELrRpW68Y1F4J1zmlS1OvD-nMmjlD19bKeiGbVj_y62gkqXPfHo/s1600/s4j1IO2uMPQ826z6BFlBqEQ.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/ef2864090a30372f3b71d5322fd1ca17.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;b&gt;Consider k radius circular space&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;Here it considers data points which are inside a circle that has k unit radius and then consider majority voting among candidates.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwvFZY2guhSpavYffNMx0-xnbdRAeCHp35GWMDioIxyvXvw7HUXETrowKDhRMwNfWUBqzRjtVHYQYhSRt9bJikU6gisyWmAOnhwGUdeJSIYyoOSkFHRzkvk8SiYDwmsq03HmqOPj1Ku_w/s1600/sTtKGD2OYZiAYJLK6YwmiXQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwvFZY2guhSpavYffNMx0-xnbdRAeCHp35GWMDioIxyvXvw7HUXETrowKDhRMwNfWUBqzRjtVHYQYhSRt9bJikU6gisyWmAOnhwGUdeJSIYyoOSkFHRzkvk8SiYDwmsq03HmqOPj1Ku_w/s320/sTtKGD2OYZiAYJLK6YwmiXQ.png" width="290" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style="text-align: start;"&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Efficiency &amp;amp; &amp;nbsp;Accuracy Improvements&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;Since the algorithm scans through all training elements in order to generate results, time complexity increases with the size of the data set.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;Suppose we have n examples each of dimension d algorithm takes O(nd) to compute distances to all examples and takes O(ndk) time to find k closest examples. So the total time complexity of the algorithm is O(ndk).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;Thus several approaches had taken to improve the efficiency as well as the accuracy of the algorithm.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;b&gt;&lt;i&gt;Efficiency -&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;ul&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;Reducing the number of samples&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;&lt;a href="http://pointclouds.org/documentation/tutorials/kdtree_search.php"&gt;k-D tree / k-Dimensional tree&lt;/a&gt; -&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&amp;nbsp;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify;"&gt;A data structure used for organizing some number of points in a space with k dimensions. It is a binary search tree with other constraints imposed on it. K-d trees are very useful for range and nearest neighbor searches. This partition space recursively and search for Nearest Neighbour only close to the test point.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;ul&gt;&lt;ul&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;&lt;a href="https://en.wikipedia.org/wiki/Vector_quantization"&gt;Vector Quantization&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&amp;nbsp;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify;"&gt;An artificial neural network algorithm that computes representatives (codebooks) for a given training set and it reduces the sample size by introducing codebook vectors as training data for the algorithm.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div&gt;
&lt;div&gt;
&lt;ul&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;&amp;nbsp;Reducing the dimension size&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;&lt;ul&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;Dimensionality reduction approaches like &lt;a href="https://en.wikipedia.org/wiki/Principal_Component_Analysis"&gt;Principal Component Analysis&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/Linear_discriminant_analysis"&gt;Linear Discriminant Analysis&lt;/a&gt; etc. can be used to reduce the size of the dimension space.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;b&gt;&lt;i&gt;Accuracy -&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;Use a proper distance calculation&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;For the demonstration purpose I have used the most popular distance measure - Euclidean distance. It calculated as follows,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;b&gt;Euclidean_Distance(x, xi) = sqrt( sum( (xj – xij)^2 ) )&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;Where,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;b&gt;x &lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;: new data point&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;b&gt;xi&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;: existing point&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;b&gt;j &lt;/b&gt;&amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;: input attributes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;This algorithm can be implemented using other popular distance calculation approaches like &lt;a href="https://en.wikipedia.org/wiki/Hamming_distance"&gt;Hamming Distance&lt;/a&gt; , &lt;a href="https://en.wikipedia.org/wiki/Taxicab_geometry"&gt;Manhattan Distance&lt;/a&gt; ,&lt;a href="https://en.wikipedia.org/wiki/Minkowski_distance"&gt;Minkowski Distance&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/Jaccard_index#Tanimoto_similarity_and_distance"&gt;Tanimoto Distance&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/Jaccard_index"&gt;Jaccard Index&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/Cosine_similarity"&gt;Cosine Similarity&lt;/a&gt; and &lt;a href="https://en.wikipedia.org/wiki/Kernel_method"&gt;Kernel Methods&lt;/a&gt; based on the properties of the data set. If it is difficult to select the proper distance calculation with your data, you can try with different distance metrics with different k values and select the most accurate approach.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;&lt;a href="http://www.data-machine.com/nmtutorial/distanceweightedknnalgorithm.htm"&gt;Distance weighted algorithm&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Consider distance of a neighbor with a weigh the contribution of each of the k-neighbours to their distance to the given instance (x) &amp;nbsp;that results from greater weight (w) when a neighbor more close to the given instance (x).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;
&lt;li&gt;&lt;span style="color: #444444;"&gt;Feature weighted Algorithm&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;Some features (dimensions) may be much more discriminative than other features. But the Euclidean&amp;nbsp;distance treats each feature as equally important and will reduce the accuracy of the predictions. So it is good to scale each feature by its importance for classification.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;The sample implementation of k-Nearest Neighbor Algorithm -&amp;nbsp;&lt;a href="https://github.com/Data-Buddies/algorithms/tree/master/instance-based/k-nearest-neighbour/python"&gt;Git&lt;/a&gt;&amp;nbsp;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;b&gt;Note :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;b&gt;Since the k-NN algorithm stores the entire training data set, you may want to consider the consistency of your training data.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2017/02/hands-on-k-nearest-neighbour-algorithm.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAdHvBBq3bXraxsUGIY7DrLpWslS4LSm1RScBdIdXtAsrH-UPW5hK4ZeNwiT70Ju0s2Z1b2PI09D2V6vJMNgIXOlGMLF6EBQXp6nvfBaPSecdm2tUtsUdoTOQ4HOpO1VNuH7dY4UWGMfo/s72-c/k-NN.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-7348949355541197419</guid><pubDate>Wed, 04 Jan 2017 18:13:00 +0000</pubDate><atom:updated>2017-08-15T08:22:09.655-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Big Data</category><category domain="http://www.blogger.com/atom/ns#">Hadoop</category><category domain="http://www.blogger.com/atom/ns#">Pigscript</category><category domain="http://www.blogger.com/atom/ns#">Testing</category><title>Hands on Pig Unit Testing</title><description>&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjovm_AV9TUvuv9apjX7szFMfhNLU2AJED0uF5yzW97tOCD_AhLDEDVryE61JFLOKaKpj_zp_-w2MKiCHgugpt8nf2Nom2Zv2PdXTfWuV8jtkySWbJSpEvs1FoWDtG7TC0nyIIRFLQ2pxM/s1600/pigUnit.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjovm_AV9TUvuv9apjX7szFMfhNLU2AJED0uF5yzW97tOCD_AhLDEDVryE61JFLOKaKpj_zp_-w2MKiCHgugpt8nf2Nom2Zv2PdXTfWuV8jtkySWbJSpEvs1FoWDtG7TC0nyIIRFLQ2pxM/s1600/pigUnit.png" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Why Unit Testing ?&lt;/span&gt;&lt;/h2&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; text-align: justify; white-space: pre-wrap;"&gt;When we develop a distributed system, it is crucial to test the logic in an automated way and execute tests in the development environment (with an IDE). The productivity of our development process could kill because of this long development-test-development cycle for complex systems.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="background-color: white; text-align: justify; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="background-color: white; text-align: justify; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="white-space: pre-wrap;"&gt;In the domain of distributed system and big data analytics we have to implement complex logic and sometimes we have to change the logic that we have implemented due various requirements and reasons. In this case, we need to assure that changes in our code will not break the entire process or entire application.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #212121; font-family: &amp;quot;arial&amp;quot;; text-align: justify; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="orphans: 2; text-align: start; text-indent: 0px; widows: 2;"&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;What is Pig ?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px;"&gt;Pig is a highly used for data analysis problems and it is a scripting language which is used with Apache Hadoop. Pig is provided flexibility in data manipulation in Apache Hadoop and it works with data from many sources (including structured and unstructured data).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size: 14.6667px;"&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-size: 14.6667px;"&gt;Behind the scene, pig scripts are translated into a series of MapReduce jobs that are run on the Apache Hadoop cluster.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="orphans: 2; text-align: start; text-indent: 0px; widows: 2;"&gt;
&lt;div style="font-style: normal; font-weight: normal; letter-spacing: normal; margin: 0px; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span id="docs-internal-guid-9073ac79-6a97-8d1e-bc1f-8912deede022"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;You can find more details about Pig from this &lt;/span&gt;&lt;a href="https://pig.apache.org/" style="text-decoration: none;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;link&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Familiar with Pig Unit Test ?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px;"&gt;When you are working with pig script, you need to test your Pig Latin scripts. Even after the implementation of data flows, you need to test your logic regularly when you do some changes to scripts, to UDFs or in the version of Pig and Hadoop that you are using, in order to ensure that changes do not break your code.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size: 14.6667px;"&gt; &lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px;"&gt;For unit testing of Pig scripts, there is Pig Unit library provided by Apache group. It enables running of Pig script using JUnit. Pig Unit can run in Local and MapReduce mode. By default Local mode will be used, this mode does not require a cluster. It will enable you to use your local file system as a Hadoop cluster, each time it will create a new local one. On the other hand, MapReduce mode does require Hadoop cluster and installation of HDFS. For Development testing, purpose developers can run Pig Unit in Local mode. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-align: justify; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="orphans: 2; text-align: start; text-indent: 0px; widows: 2;"&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Official Pig Unit Test Guide: &lt;/span&gt;&lt;a href="https://pig.apache.org/docs/r0.8.1/pigunit.html" style="text-decoration: none;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;https://pig.apache.org/docs/r0.8.1/pigunit.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0px;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: large;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;&lt;span style="font-size: 14.6667px; white-space: pre-wrap;"&gt;The minimal required set up for Pig Unit test consists of four libraries:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;ul style="font-style: normal; font-weight: normal; letter-spacing: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Hadoop Core - &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;needed for working with Hadoop File System (&lt;/span&gt;&lt;a href="https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-core" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-core&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Apache Pig Unit - &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&amp;nbsp;core component for running tests (&lt;/span&gt;&lt;a href="https://mvnrepository.com/artifact/org.apache.pig/pigunit" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;https://mvnrepository.com/artifact/org.apache.pig/pigunit&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Jline - &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&amp;nbsp;needed for reading input (&lt;/span&gt;&lt;a href="https://mvnrepository.com/artifact/jline/jline" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;https://mvnrepository.com/artifact/jline/jline&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Joda Time - &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;needed for time operations used by PigUnit (&lt;/span&gt;&lt;a href="https://mvnrepository.com/artifact/joda-time/joda-time" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;https://mvnrepository.com/artifact/joda-time/joda-time&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Maven : &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/ca1ad1b21d377abe00e7d509685fa545.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Gradle :&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://github.com/Tiroshan/hadoop-tutorials/blob/master/hadoop-pig/gradle/dependencies.gradle" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;Link&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; to dependencies.gradle of Pig Unit Test Tutorial Project&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://github.com/Tiroshan/hadoop-tutorials/blob/master/hadoop-pig/build.gradle" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;Link&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; to build.gradle of Pig Unit Test Tutorial Project&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Here I refer my Word count project to explain the features of Pig Unit framework. Additionally, I have included a step to load some data from an HBase table and will explain how to mock external data source in Pig Unit Test (which is not explained in most of the tutorials). &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/856bed294437cb9ae6023b3b8d18a0dd.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;NOTE: I have provided 2 shells scripts to create that HBase table on your cluster and DML for it if you really want to try it on a Hadoop Environment. You can find them from &lt;/span&gt;&lt;a href="https://github.com/Tiroshan/hadoop-tutorials/tree/master/hadoop-pig/utility/bin" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;My Word Count pig is like this:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/d6068471a0d4b1af25237680b66a2804.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;First, it loads input file from an HDFS location passed from externally and extracts words while ignoring unwanted characters. Then it loads data from an HBase table (namespace and table name is provided externally) which keeps words to be filtered from HDFS data. Then it joins loaded HBase data and HDFS data. Then it groups words and gets the count of each word. Finally, it stores the result on HDFS as the path is given externally.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Let us see how we going to test this flow using Pig Unit Testing framework. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;You can mock external parameters which are provided externally as a string array like,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/70aa6a68f305955927646c9f861bc5e7.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;You can use local file system files paths instead of HDFS file location when you execute Pig Unit Tests. You can provide them with relative paths.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;You have to mock external data sources and for this, we can use Pig Unit override feature and it will override a line of code at the run time for a given alias.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsaFBwbVOD6h8hBLDDQfMEeBGafk6OWo3gQm3hu4q4z-UaKrgk6pGOD_bquhITxKcA822YclSDYh7v-94n0mLtqScKyrs8TSG2rPoYF3OusVzH9xTBp2BQSIQ-nk2rSCa4VDSPuULWHTc/s1600/override.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsaFBwbVOD6h8hBLDDQfMEeBGafk6OWo3gQm3hu4q4z-UaKrgk6pGOD_bquhITxKcA822YclSDYh7v-94n0mLtqScKyrs8TSG2rPoYF3OusVzH9xTBp2BQSIQ-nk2rSCa4VDSPuULWHTc/s640/override.png" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/4c3537ed25ea53f922e88604c01cbea7.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Here Pig unit will override above Pig code by&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/628bcfc4cdf2d3f6cc3a3d3058ac44b8.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;You can verify intermediate results (units) using an external file which contains expected result or using a string array of expected results etc.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Note that &lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Pig currently drops all STORE and DUMP commands. You have to tell PigUnit to keep the commands and execute the script like this. If you run this, Pig unit will create an &amp;nbsp;output part file inside ‘/resources/output/wordcount/’ directory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7UB7JIXBPbxpyPwst-qKEr8CTV-RoJ0JjaWoV6cGss0t2lVCrfoS2SWtYFO0C2c0h9mWeG2nEDLm3EB-uMLNsYCeWeYADmC2Yu-SjfM7tTMJ5Uee6h0OmRVSBaLAQGMKNmiaVjOjFEBg/s1600/store.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;img border="0" height="105" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7UB7JIXBPbxpyPwst-qKEr8CTV-RoJ0JjaWoV6cGss0t2lVCrfoS2SWtYFO0C2c0h9mWeG2nEDLm3EB-uMLNsYCeWeYADmC2Yu-SjfM7tTMJ5Uee6h0OmRVSBaLAQGMKNmiaVjOjFEBg/s400/store.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: white; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/ca1d5ff80e4310c3101f79f519666bc2.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div style="font-style: normal; font-weight: normal; letter-spacing: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span id="docs-internal-guid-9073ac79-6a98-e167-0b25-ab4ea3b2fd33" style="font-size: 14.6667px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 1.38; margin-bottom: 11pt; margin-top: 0pt; text-align: justify; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Find my Pig Unit example from &lt;/span&gt;&lt;a href="https://github.com/Tiroshan/hadoop-tutorials/tree/master/hadoop-pig" style="text-decoration: none;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;git&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; and refer ‘pig unit test tutorial’ for this.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2017/01/hands-on-pig-unit-testing.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjovm_AV9TUvuv9apjX7szFMfhNLU2AJED0uF5yzW97tOCD_AhLDEDVryE61JFLOKaKpj_zp_-w2MKiCHgugpt8nf2Nom2Zv2PdXTfWuV8jtkySWbJSpEvs1FoWDtG7TC0nyIIRFLQ2pxM/s72-c/pigUnit.png" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-5402856678969994440</guid><pubDate>Thu, 29 Dec 2016 06:10:00 +0000</pubDate><atom:updated>2017-08-15T08:25:57.253-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Big Data</category><category domain="http://www.blogger.com/atom/ns#">HDFS</category><category domain="http://www.blogger.com/atom/ns#">Json</category><category domain="http://www.blogger.com/atom/ns#">Pigscript</category><title>Load Dynamic &amp; Complex Json Messages in Pig Script without a schema</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis2nXLEg2IAZMLeHoIgc2XAgFOKz2fXUlppqTHEJLY2vs1KVDdP2Ml5oVimlr_cyGYQXMXTFOqZNrH58uvNq98iLfj6aib4Ny73FF-Z8sy1cBh0VP_sKvjGT42p065RBvGb_vV-mnykBk/s1600/Data-by-using-Apache-Pig-and-Hadoop-platform.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis2nXLEg2IAZMLeHoIgc2XAgFOKz2fXUlppqTHEJLY2vs1KVDdP2Ml5oVimlr_cyGYQXMXTFOqZNrH58uvNq98iLfj6aib4Ny73FF-Z8sy1cBh0VP_sKvjGT42p065RBvGb_vV-mnykBk/s640/Data-by-using-Apache-Pig-and-Hadoop-platform.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Load Complex &amp;amp; Dynamic JSON messages - Problem&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;Suppose that you have to load dynamic and complex JSON messages and have done some transformations and aggregations in your pig script. Simply you can use Pig In built JsonLoader to load JSON messages from HDFS. As an example, let’s try to load some HDFS data which stored as following Json format. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt; &lt;script src="https://gist.github.com/Tiroshan/1298b75b3dc037e91c90236690534574.js"&gt;&lt;/script&gt; &lt;span style="color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;[NOTE - You need to give JSON message as a single line string as in Pig Example &lt;a href="http://hadoop-tutorials/hadoop-pig/src/test/resources/input/testJson"&gt;GIT&lt;/a&gt; project ] &lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;We can load JSON data using Pig in built JsonLoder as shown below and I have Flattened data which is inside the pig bag. Then final tuple is created. &lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt; &lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;script src="https://gist.github.com/Tiroshan/40e0d90576b1ab3f46de9b788f66ea4d.js"&gt;&lt;/script&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;span style="color: #444444;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;b&gt;NOTE : $jsonFilePath is an external parameter - passed to script&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="color: #666666;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;Yes, In pig script we can use JSONLoader which comes with Pig as a built in function for load complex JSON messages. But the problem with the JSONLoader is that the entire schema has to be specified as shown below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span id="docs-internal-guid-08af54e9-4920-d317-45e7-918e4c3bb0f6"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;What if positions of the Json message has changed without changing the format. Then Jsonloader loads data to the wrong attribute according to the given schema. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;Let's look at a simple example. Here I take a simple JSON message as below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“A”:”val_a”, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“B”:”val_b”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;If we have given schema as follows,&lt;/span&gt;&lt;br /&gt;
&lt;script src="https://gist.github.com/Tiroshan/9efc551afab86f55e9e3c146345d0e53.js"&gt;&lt;/script&gt;

&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;JsonLoader assume that every data in that format and convert it to a pig data structure like,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“A”:”val_a”,&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------&amp;gt; A: chararray&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“B”:”val_b”&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------&amp;gt; B: chararray&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;But if some data exists as below, without affecting to the format but has changed in order.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“B”:”val_b”, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“A”:”val_a”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;Pig will load that messages as below since we have provided the expected schema and it will break the entire logic of the data flow.&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“B”:”val_b”,&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------&amp;gt; A: chararray &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;“A”:”val_a”&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------&amp;gt; B: chararray&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;This is critical with data which has dynamic and complex Json format. But Twitter has introduced an open source library called “Elephant-Bird” which can address this drawback. This library consists many features other than loading of dynamic JSON message functionality. &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;How to use Elephant-bird - Solution&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; text-align: start;"&gt;
&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;With the JsonLoader from elephant-bird, there is no need to specify the schema. The JsonLoader simply returns a Pig &lt;/span&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt;&lt;span style="color: black;"&gt;map data type&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline;"&gt; and fields can be accessed using the JSON property name as shown below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;script src="https://gist.github.com/Tiroshan/f785bfbeadb523a4c0aa8d7002b25b5f.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06" style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;You can download Elephant Bird library from &lt;/span&gt;&lt;a href="https://mvnrepository.com/artifact/com.twitter.elephantbird" style="text-decoration: none;"&gt;&lt;span style="font-size: 14.6667px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;this&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt; and refer &lt;/span&gt;&lt;a href="https://github.com/twitter/elephant-bird" style="text-decoration: none;"&gt;&lt;span style="font-size: 14.6667px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;this&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt; to be more familiar with Elephant-bird.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06" style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;When you are using an external library, you have to register it to Pig script using REGISTER.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt; &lt;script src="https://gist.github.com/Tiroshan/78447649ca5b534089eb4d745e91a5a0.js"&gt;&lt;/script&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;b style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 14.6667px; white-space: pre-wrap;"&gt;NOTE: $elephantBirdLibPath - path to elephant-bird jars. (local file path)&lt;/b&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;Please refer &lt;/span&gt;&lt;a href="https://github.com/Tiroshan/hadoop-tutorials/tree/master/hadoop-pig" style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; text-decoration: none;"&gt;&lt;span style="font-size: 14.6667px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;this&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;git project to familiar with the elephant-bird library. I have integrated Pig unit along with this project and you can run it in your local environment. (just run unit test)&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt;&lt;span style="background-color: transparent; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;b id="docs-internal-guid-08af54e9-492a-f6b3-bef5-890ad15bb2c7" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt;&lt;span style="background-color: transparent; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Hadoop submit command if you run this on Hadoop.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt;&lt;span style="background-color: transparent; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt; &lt;script src="https://gist.github.com/Tiroshan/f0b8ab9449ec1254976f2c6cdb54bf9b.js"&gt;&lt;/script&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt;&lt;span style="background-color: transparent; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;; font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-08af54e9-4929-19df-1042-349a93219c06"&gt; &lt;/span&gt;&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2016/12/load-dynamic-complex-json-messages-in.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis2nXLEg2IAZMLeHoIgc2XAgFOKz2fXUlppqTHEJLY2vs1KVDdP2Ml5oVimlr_cyGYQXMXTFOqZNrH58uvNq98iLfj6aib4Ny73FF-Z8sy1cBh0VP_sKvjGT42p065RBvGb_vV-mnykBk/s72-c/Data-by-using-Apache-Pig-and-Hadoop-platform.jpg" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-7721817586398878766</guid><pubDate>Tue, 20 Dec 2016 08:58:00 +0000</pubDate><atom:updated>2017-05-17T03:29:55.121-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Humanoid Robot</category><category domain="http://www.blogger.com/atom/ns#">NAO</category><category domain="http://www.blogger.com/atom/ns#">Python</category><title>Next Level Shopping Experience - Adapt NAO Humanoid Robot Features In Customer Care</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://www.ald.softbankrobotics.com/en/cool-robots/pepper"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;img border="0" height="313" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ihIZyVyPSj41MkCbeDhD_TQFs2vKcs5l4BkArl3WnWPJiP_NbBOo1tDAKvHddLbqJ-yOTwVTi6YFyvC876k2Ypi8fLpd4S8c6TYfZSMl_ggzVgQj-OZ3evuK8F0sZ0M56PYpUsp8gTk/s640/qui_est_pepper.png" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;

&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Humanoid Robot ?&lt;/span&gt;&lt;/h2&gt;

&lt;div style="font-family: &amp;quot;times new roman&amp;quot;; text-align: justify;"&gt;
&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Humanoid Robot is a machine which is a combination of hardware and software and it can interact with humans, but for a specific purpose or a domain since it only programmed for one specific area.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://www.ald.softbankrobotics.com/en/cool-robots/nao" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; color: #1155cc; font-style: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;NAO&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444;"&gt;is also a humanoid robot which is a product of Aldebaran Robotics and it includes many advanced features like &amp;nbsp;&amp;nbsp;wireless capable and programmable with abstract interfaces. It introduces specific tasks such as face recognition &amp;amp; detection, voice recognition &amp;amp; detection, voice to text translation, text to speech with some advanced gestures. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444;"&gt;Click &lt;a href="https://store.aldebaran.com/default/nao/features.html"&gt;this&lt;/a&gt; to find features of NAO humanoid robot.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;div style="text-align: center;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://www.ald.softbankrobotics.com/en/cool-robots/nao"&gt;&lt;span style="font-size: 14.6667px;"&gt;&lt;img border="0" height="314" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEtMrAWpXgsZ9AE0MoQh0Jr7hlL98zrMOjaZMGH51b4h3E9qiZ4en5_SYmuTTNakXerRFQ3dbcLrHxuCgV9WeZEi5cjon-Bcz8oG7BD3HFjw5SvDr7ZsI6JcOlUj41hkJ8AgEKo2ENjyc/s640/Qui_est_NAO_6.png" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;

&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Integrate a Display to NAO&lt;/span&gt;&lt;/h2&gt;


&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Here I tried to display product description with some product related attributes, views and some recommendations through a product catalog when a customer requests a product search (voice based request) from NAO. When a customer appears in front of NAO, It greats (waves hands and greet according to the time) the customer and then asks for a product search. When that client performs a voice based product search, NAO extracts the product name, product specific attributes like color, product name, size etc using the pattern matching approach with a help of set of predefined grammar rules. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Then extracted product related attributes are sent to a back end server. Products details (Image, description etc.) displays on a tab - when NAO gets a SUCCESS response from the back end server and then it points the display to the customer.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHKjRdnTy4kyuT5-q8_728C3KSC4ZlIDTnxweJvP2pfM4L00zoixqUJqHn8QuZqBuWMRQ8M1mDB3G48k-27GTLBuPvlmsA8W6kw1CI8JWCSG76R7yTOrTazb6s6MCvOwCUuyW748KcAao/s1600/swA6VqErqgr5ZUMI0h-wHgg.png" imageanchor="1"&gt;&lt;img border="0" height="238" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHKjRdnTy4kyuT5-q8_728C3KSC4ZlIDTnxweJvP2pfM4L00zoixqUJqHn8QuZqBuWMRQ8M1mDB3G48k-27GTLBuPvlmsA8W6kw1CI8JWCSG76R7yTOrTazb6s6MCvOwCUuyW748KcAao/s640/swA6VqErqgr5ZUMI0h-wHgg.png" width="640" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol style="margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;NAO robot detects voice request and extracts product attributes using grammar rule extractor.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Send product attributes through a web socket connection &amp;nbsp;to the tablet application and tablet application forwards the request to the Product API.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Captures the product search request and performs indexed search on given attributes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Sends product result response back to tablet application ( List of products with images and descriptions). Check the response state.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Displays the responses on the display.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;Sends back SUCCESS response to NAO ( if tab application timeout / FAIL state for product search request - application sends FAIL state response back to NAO and terminate socket connection) &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;In addition to the product display, application captures customer selected (clicked) product name and sends it back to the NAO as a &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;product select even&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;t. In order to keep the interaction with customer and provide a good expereince, NAO responses and do some activities &amp;nbsp;based on the selected products (Give some promotion codes etc.) . &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;I have used NAO’s sonar sensor to identify whether the customer still stand nearby if the customer does not engage with the NAO. if the customer no longer engage with NAO, it waits some time and end the customer session while coming back to the default position and setting the display to main page. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;NAO programming&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;: Python + &amp;nbsp;NAO Python API&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Backend Server &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;: Node Js&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Tablet Application&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;: Node Js + Angular Js&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="color: #444444;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;NOTE: &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Aldebaran Robotics has introduced a new humanoid robot called&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;a href="https://www.ald.softbankrobotics.com/en/cool-robots/pepper" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; color: #1155cc; font-style: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;Pepper&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444;"&gt;targeting retail industry with a inbuilt display and &lt;/span&gt;&lt;/span&gt;&lt;a href="https://www.ald.softbankrobotics.com/en/cool-robots/romeo" style="text-decoration: none;"&gt;&lt;span style="background-color: transparent; color: #1155cc; font-style: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;Romeo&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444;"&gt;with more advanced features.&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://tyronmadushanka.blogspot.com/2016/12/integrate-nao-humanoid-robot-with.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ihIZyVyPSj41MkCbeDhD_TQFs2vKcs5l4BkArl3WnWPJiP_NbBOo1tDAKvHddLbqJ-yOTwVTi6YFyvC876k2Ypi8fLpd4S8c6TYfZSMl_ggzVgQj-OZ3evuK8F0sZ0M56PYpUsp8gTk/s72-c/qui_est_pepper.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-6308764009259144762</guid><pubDate>Mon, 19 Dec 2016 09:29:00 +0000</pubDate><atom:updated>2017-05-17T03:40:39.015-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Hbase</category><category domain="http://www.blogger.com/atom/ns#">Hot spotting</category><title>HBase - Avoid RegionServer Hotspotting</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZR_QIE3SZS_iMa7eM6QCHc-WP5STl4L3tuhozPxpUElpKnK5GWzHqOphjKFGz_-B7EegffyON-zUO8sN17hV_wIYk6WOMWz0kVH8N5VEtd9GmUT_MUAyfYrcVFUX7AcFPwXo0rCSjAdg/s1600/Learn-how-to-develop-effective-data-models-in-Hbase-740X296.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;;"&gt;&lt;img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZR_QIE3SZS_iMa7eM6QCHc-WP5STl4L3tuhozPxpUElpKnK5GWzHqOphjKFGz_-B7EegffyON-zUO8sN17hV_wIYk6WOMWz0kVH8N5VEtd9GmUT_MUAyfYrcVFUX7AcFPwXo0rCSjAdg/s640/Learn-how-to-develop-effective-data-models-in-Hbase-740X296.jpg" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;

&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Hbase&lt;/span&gt;&lt;/h2&gt;

&lt;div style="color: black; font-family: &amp;quot;times new roman&amp;quot;; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;/div&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; white-space: pre-wrap;"&gt;Hbase architecture follows the master server architecture. Region servers serve data for reads and writes. When accessing data, clients communicate with hbase region servers directly and Hbase Master handles region assignment, creation and deletion of tables. Hbase uses Hadoop distributed file system and stores all data on top of the HDFS files. Also Hbase uses Zookeeper to maintain the distributed tasks and track the health of the cluster. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;The Hadoop Data Nodes stores the data of the Region servers and region servers are collocated with the HDFS data nodes while preserving the data locality. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-size: 14.6667px;;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Hbase tables are divided horizontally by row key range into &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Regions &lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;and a region contains all the rows in the table between the region’s start and end key&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-size: 14.6667px;;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;Hbase maintains a special catalog table called as META table which tracks the location of the regions in the cluster of row keys and zookeeper stores the location of the META table. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-size: 14.6667px;;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;There is a special HBase Catalog table called the META table, which holds the location of the regions in the cluster. ZooKeeper stores the location of the META table.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-size: 14.6667px;;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;To view more details on Hbase architecture refer &lt;/span&gt;&lt;a href="https://www.mapr.com/blog/in-depth-look-hbase-architecture" style="text-decoration: none;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;this&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Hbase Hotspotting&lt;/span&gt;&lt;/h2&gt;

&lt;div&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;Records in Hbase are stored as sorted list of row keys according to the lexicographically order and allows fast access to an individual record by its key &amp;nbsp;or fast fetching of a range of data between a given start and end row keys. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;Simply we can refer row keys with natural sequence at data insertion time, but this can &amp;nbsp;cause regionserver hotspotting. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;By its default behavior Hbase stores rows with similar keys to the same region.&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;When records with sequential keys are being written to HBase, &amp;nbsp;all this data writes hit one Region. So large amount of client traffic is directed at one node, or only a few nodes, of a cluster.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-size: 14.6667px;;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;But this would not be a problem if a Region was served by multiple Region Servers since the writes gits multiple region server even they serves as a single region.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0VK9NQaN6VcNmuRrXmKMgSbQQkYXhmfhgvuC8pXl1oRuzBBIfwZdE-MihR-11llWxGcXul9-BWab_mJ_XALrbkrNldvyL-unAN-x9SAinLkgAtKn9pc4MFh592XAWjdhi9gLdjHkiePg/s1600/s9aXB1DCoXWcx6NBdNfFx9w.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;;"&gt;&lt;img border="0" height="147" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0VK9NQaN6VcNmuRrXmKMgSbQQkYXhmfhgvuC8pXl1oRuzBBIfwZdE-MihR-11llWxGcXul9-BWab_mJ_XALrbkrNldvyL-unAN-x9SAinLkgAtKn9pc4MFh592XAWjdhi9gLdjHkiePg/s320/s9aXB1DCoXWcx6NBdNfFx9w.png" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 8pt; margin-top: 0pt; text-align: center;"&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 8pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;But the common situation is that each Region lives on just one Region Server and each Region has a predefined maximal size. If a Region reaches that maximal size it is split in two smaller Regions becoming a hotspot victim because one of these new Regions takes all new records (Limits the write throughput to the capacity of a single server instead of making use of multiple/all nodes in the HBase cluster). &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHJkhugKg2m1oufJHdjKwVgZfAEu6osIcvG_c7q_w6s8KWFQ_hR7Vbe4ijiDQBhVhNozud9HVsKZ905vwt08yWt-psslabcnqgmGyuvogG_havbKrWHjykdceyFtgYfyLgAKSxCOvNFVw/s1600/slh_vnQeK7EzvpDu0PnV6kg.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;;"&gt;&lt;img border="0" height="189" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHJkhugKg2m1oufJHdjKwVgZfAEu6osIcvG_c7q_w6s8KWFQ_hR7Vbe4ijiDQBhVhNozud9HVsKZ905vwt08yWt-psslabcnqgmGyuvogG_havbKrWHjykdceyFtgYfyLgAKSxCOvNFVw/s320/slh_vnQeK7EzvpDu0PnV6kg.png" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Solutions for Hbase Hotspotting&lt;/span&gt;&lt;/h2&gt;

&lt;div&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; color: #999999; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-style: italic; font-weight: 700; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large; font-style: italic; font-weight: 700; white-space: pre-wrap;"&gt;Add a salt to the Row Key&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; font-style: italic; font-weight: 700; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Include a random data to the start of a row key (randomly assigned prefix) to cause it to sort differently than it otherwise would. Salting prefixes can be used correspond to the number of regions we want spread the data.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjs46UwclE_eyz2CX2CKrPHjUQdlAUfE5q6GJTWBwtmox8nJ_l_7yBuWd4kO5wqrLwbuAkhOPMTVb3aHdrIhFBeuVFYI565FCdhAQRXMQv7oTl9hwQQiSxjc3TiSQJf-dd03UAth3QVP8/s1600/svSlo465La4WKSAPfAlEDUQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;;"&gt;&lt;img border="0" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjs46UwclE_eyz2CX2CKrPHjUQdlAUfE5q6GJTWBwtmox8nJ_l_7yBuWd4kO5wqrLwbuAkhOPMTVb3aHdrIhFBeuVFYI565FCdhAQRXMQv7oTl9hwQQiSxjc3TiSQJf-dd03UAth3QVP8/s400/svSlo465La4WKSAPfAlEDUQ.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;h4&gt;
&lt;span style="background-color: white; font-style: italic; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Use of Hashed Row Key&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: white; color: #444444; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;This approach is suitable when application reads query a record at a time and records will spread between multiple regions / region servers according to the hash function. Using a deterministic hash allows the client to reconstruct the complete row key and use a Get operation to retrieve that row as normal.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiNiEAhxvpPOR5-K1YtzSZQbhoDN301fXseVb-7od34cn6VYrdu5gy6o_UBq-3Q-rKYQlh_zxJdmjY_HRbz7DxbMye3aNtxKXI0TivOs-DXxWEvcH0qpHDm5CUSr8VVnmXC6KR1tOAbN8/s1600/scIX4aYppin0HItfynLty2w.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;;"&gt;&lt;img border="0" height="303" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiNiEAhxvpPOR5-K1YtzSZQbhoDN301fXseVb-7od34cn6VYrdu5gy6o_UBq-3Q-rKYQlh_zxJdmjY_HRbz7DxbMye3aNtxKXI0TivOs-DXxWEvcH0qpHDm5CUSr8VVnmXC6KR1tOAbN8/s400/scIX4aYppin0HItfynLty2w.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;span style="background-color: white; color: #444444; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large; font-style: italic; font-weight: 700; white-space: pre-wrap;"&gt;Reverse the row key &lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;h4&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; font-weight: normal;"&gt;Reverse a fixed-width or numeric row key so that the part that changes the most often (the least significant digit) is first. This effectively randomizes row keys, but sacrifices row ordering properties.&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIuBYJymuJBhEaAaOGjj0mtQO500O9jr1GONQI2BdtPPaACL_Abij401TY0VVgCZ94PpGwqaRiqH_rZvfPSDj0GDbrq8R1abC7m_9EmTxAaTiImmG7L0ZWdartg5viBcAd_YAuvIu0kZ0/s1600/s1YZ9YAl5bEElkFy4kgZStg.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;;"&gt;&lt;img border="0" height="311" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIuBYJymuJBhEaAaOGjj0mtQO500O9jr1GONQI2BdtPPaACL_Abij401TY0VVgCZ94PpGwqaRiqH_rZvfPSDj0GDbrq8R1abC7m_9EmTxAaTiImmG7L0ZWdartg5viBcAd_YAuvIu0kZ0/s400/s1YZ9YAl5bEElkFy4kgZStg.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; color: black; font-style: italic; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white; font-style: italic; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: large;"&gt;Bucketing approach&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; text-indent: 36pt; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-indent: 36pt; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-indent: 36pt; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-indent: 36pt; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-indent: 36pt; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;row_key = (++index % BUCKETS_NUMBER) + original_key&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Where,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;index&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; - The numeric (or any sequential) part of the specific record.&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;BUCKETS_NUMBER&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; - the number of “buckets” we want our new row keys to be spread &lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;across.&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;original_key&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;- The original key of the record we want to write.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="background-color: white; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px; text-indent: 36pt; white-space: pre-wrap;"&gt;New row keys of bucketed records will no longer be in one sequence, but records in each bucket will preserve their original sequence. Since data is placed in multiple buckets during writes, we have to read from all of those buckets when doing scans based on “original” start and stop keys and merge data so that it preserves the “sorted” attribute. Scan per bucket can be parallelized and so the performance won’t be degraded. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-indent: 36pt; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjid53mNmum5ucaVlqc5lNs-j_rqXbsd6nrshnOANf6ajghbWChPMoq7F-gbgS5EvBPRUE_CmPQADuCp0OOLqOHJNThP5r_u82DJBc064FIx-dN9zWoZHd62HihyacC9PxgZeN3kpqrynQ/s1600/sPQYYnGCeeDHnnAyf8AIIDQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: 14.6667px;;"&gt;&lt;img border="0" height="271" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjid53mNmum5ucaVlqc5lNs-j_rqXbsd6nrshnOANf6ajghbWChPMoq7F-gbgS5EvBPRUE_CmPQADuCp0OOLqOHJNThP5r_u82DJBc064FIx-dN9zWoZHd62HihyacC9PxgZeN3kpqrynQ/s400/sPQYYnGCeeDHnnAyf8AIIDQ.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; text-indent: 36pt; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;"&gt;
&lt;span style="background-color: white; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.296; margin-bottom: 0pt; margin-top: 0pt; text-align: center; text-indent: 36pt;"&gt;
&lt;span style="background-color: white; color: black; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 14.6667px;;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"&gt;
&lt;span style="font-size: 14.6667px;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2016/12/hbase-avoid-regionserver-hotspotting.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZR_QIE3SZS_iMa7eM6QCHc-WP5STl4L3tuhozPxpUElpKnK5GWzHqOphjKFGz_-B7EegffyON-zUO8sN17hV_wIYk6WOMWz0kVH8N5VEtd9GmUT_MUAyfYrcVFUX7AcFPwXo0rCSjAdg/s72-c/Learn-how-to-develop-effective-data-models-in-Hbase-740X296.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-3448597966025271947</guid><pubDate>Sat, 28 Feb 2015 16:34:00 +0000</pubDate><atom:updated>2016-12-21T21:55:16.827-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cryptography</category><category domain="http://www.blogger.com/atom/ns#">ElGamal</category><title>Implement A Digital Signature Batch Screening For Elgamal </title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTwcq1dDudgQaofEbUfzu83rs2Nr9qH89JB12D7ApOsWjcuTndGZyMxkBP8FEwXOlYM5TOMRa_jRBi3O2HQZcTZ7Cigz3GhSE6zkIraBZDTyE3unVaTQ-G3jr-_mrGRao3188OJ-is1ys/s1600/Biometrics.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTwcq1dDudgQaofEbUfzu83rs2Nr9qH89JB12D7ApOsWjcuTndGZyMxkBP8FEwXOlYM5TOMRa_jRBi3O2HQZcTZ7Cigz3GhSE6zkIraBZDTyE3unVaTQ-G3jr-_mrGRao3188OJ-is1ys/s640/Biometrics.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
ElGamal&lt;/span&gt;&lt;/h2&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDxfO-XBcgxb8ZPX8I7dIBgjJ41LAt3xgWFJSvA-6cKWgBHViJdyvSjKCFwOWiu-ZlNd4t_mpuGTSA1VC38bvX4tRG8hGGyEOqHCfXezbPePOj_wsBihb8MXKHIrW7dX1W5B_yK4ZLeQs/s1600/Elgaml.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="color: black; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot;; font-size: 14px; text-align: justify; white-space: pre-wrap;"&gt;The ElGamal Encryption Scheme is an asymmetric key encryption algorithm for public key cryptography algorithm for public key cryptography and it is based on Diffie Helman key exchange.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #444444;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; text-align: justify;"&gt;
&lt;span class="mw-headline" id="Key_generation" style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Key generation&lt;/span&gt;&lt;/h2&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDxfO-XBcgxb8ZPX8I7dIBgjJ41LAt3xgWFJSvA-6cKWgBHViJdyvSjKCFwOWiu-ZlNd4t_mpuGTSA1VC38bvX4tRG8hGGyEOqHCfXezbPePOj_wsBihb8MXKHIrW7dX1W5B_yK4ZLeQs/s1600/Elgaml.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDxfO-XBcgxb8ZPX8I7dIBgjJ41LAt3xgWFJSvA-6cKWgBHViJdyvSjKCFwOWiu-ZlNd4t_mpuGTSA1VC38bvX4tRG8hGGyEOqHCfXezbPePOj_wsBihb8MXKHIrW7dX1W5B_yK4ZLeQs/s320/Elgaml.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style="background: none rgb(255, 255, 255); border-bottom-style: none; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;"&gt;
&lt;ul style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin: 0.3em 0px 0px 1.6em; padding: 0px;"&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Randomly choose a secret key&amp;nbsp;&lt;i&gt;x&lt;/i&gt;&amp;nbsp;with 1&amp;nbsp;&amp;lt;&amp;nbsp;&lt;i&gt;x&lt;/i&gt;&amp;nbsp;&amp;lt;&amp;nbsp;&lt;i&gt;p&lt;/i&gt;&amp;nbsp;−&amp;nbsp;1.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Compute&amp;nbsp;&lt;i&gt;y&lt;/i&gt;&amp;nbsp;=&amp;nbsp;&lt;i&gt;g&lt;/i&gt;&lt;sup style="font-size: 11.1999998092651px; line-height: 1;"&gt;&amp;nbsp;&lt;i&gt;x&lt;/i&gt;&lt;/sup&gt;&amp;nbsp;mod&amp;nbsp;&lt;i&gt;p&lt;/i&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;The public key is (&lt;i&gt;p&lt;/i&gt;,&amp;nbsp;&lt;i&gt;g&lt;/i&gt;,&amp;nbsp;&lt;i&gt;y&lt;/i&gt;).&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;The secret key is&amp;nbsp;&lt;i&gt;x&lt;/i&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="font-size: 14px; font-weight: normal; line-height: 22.3999996185303px; margin-bottom: 0.5em; margin-top: 0.5em;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;These steps are performed once by the signer.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h3&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; text-align: justify;"&gt;
&lt;span class="mw-headline" id="Signature_generation" style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Signature generation&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style="background: none rgb(255, 255, 255); border-bottom-style: none; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;"&gt;
&lt;div style="font-size: 14px; font-weight: normal; line-height: 22.3999996185303px; margin-bottom: 0.5em; margin-top: 0.5em;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;To sign a message&amp;nbsp;&lt;i&gt;m&lt;/i&gt;&amp;nbsp;the signer performs the following steps.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin: 0.3em 0px 0px 1.6em; padding: 0px;"&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Choose a random&amp;nbsp;&lt;i&gt;k&lt;/i&gt;&amp;nbsp;such that 1&amp;nbsp;&amp;lt;&amp;nbsp;&lt;i&gt;k&lt;/i&gt;&amp;nbsp;&amp;lt;&amp;nbsp;&lt;i&gt;p&lt;/i&gt;&amp;nbsp;−&amp;nbsp;1 and gcd(&lt;i&gt;k&lt;/i&gt;,&amp;nbsp;&lt;i&gt;p&lt;/i&gt;&amp;nbsp;−&amp;nbsp;1)&amp;nbsp;=&amp;nbsp;1.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Compute&amp;nbsp;&lt;img alt=" r \, \equiv \, g^k \pmod p" class="mwe-math-fallback-image-inline tex" src="https://upload.wikimedia.org/math/9/9/8/998605102271444e000a47030ecf2c1d.png" style="border: none; display: inline-block; vertical-align: middle;" /&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Compute&amp;nbsp;&lt;img alt=" s \, \equiv \, (H(m)-x r)k^{-1} \pmod{p-1}" class="mwe-math-fallback-image-inline tex" src="https://upload.wikimedia.org/math/e/2/b/e2b71441122c33e81b283228fd1a73dc.png" style="border: none; display: inline-block; vertical-align: middle;" /&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;If&amp;nbsp;&lt;img alt="s=0" class="mwe-math-fallback-image-inline tex" src="https://upload.wikimedia.org/math/7/8/7/787d0b6e5d9e7525a7054c6f96c377ea.png" style="border: none; display: inline-block; vertical-align: middle;" /&gt;&amp;nbsp;start over again.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="font-size: 14px; font-weight: normal; line-height: 22.3999996185303px; margin-bottom: 0.5em; margin-top: 0.5em;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Then the pair (&lt;i&gt;r&lt;/i&gt;,&lt;i&gt;s&lt;/i&gt;) is the digital signature of&amp;nbsp;&lt;i&gt;m&lt;/i&gt;. The signer repeats these steps for every signature.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h3&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; text-align: justify;"&gt;
&lt;span class="mw-headline" id="Verification" style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Verification&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style="background: none rgb(255, 255, 255); border-bottom-style: none; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;"&gt;
&lt;div style="font-size: 14px; font-weight: normal; line-height: 22.3999996185303px; margin-bottom: 0.5em; margin-top: 0.5em;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;A signature (&lt;i&gt;r&lt;/i&gt;,&lt;i&gt;s&lt;/i&gt;) of a message&amp;nbsp;&lt;i&gt;m&lt;/i&gt;&amp;nbsp;is verified as follows.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin: 0.3em 0px 0px 1.6em; padding: 0px;"&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;img alt="0&amp;lt;r&amp;lt;p" class="mwe-math-fallback-image-inline tex" src="https://upload.wikimedia.org/math/b/0/b/b0b890fc6654a8f3a7e65d8db0f69129.png" style="border: none; display: inline-block; vertical-align: middle;" /&gt;&amp;nbsp;and&amp;nbsp;&lt;img alt="0&amp;lt;s&amp;lt;p-1" class="mwe-math-fallback-image-inline tex" src="https://upload.wikimedia.org/math/4/b/e/4be510a7756bd3ff3db8b2e30b694af6.png" style="border: none; display: inline-block; vertical-align: middle;" /&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0.1em; text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;img alt=" g^{H(m)} \equiv y^r r^s \pmod p." class="mwe-math-fallback-image-inline tex" src="https://upload.wikimedia.org/math/5/a/9/5a98ff85b43fb12eaea7bc7eaf28eb69.png" style="border: none; display: inline-block; vertical-align: middle;" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="font-size: 14px; font-weight: normal; line-height: 22.3999996185303px; margin-bottom: 0.5em; margin-top: 0.5em;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;The verifier accepts a signature if all conditions are satisfied and rejects it otherwise.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h3&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
Batch verification approach&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;In modified version of ElGamal Batch verification &amp;nbsp;approach, multiplication of &lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;img height="28" src="https://lh6.googleusercontent.com/pYAEAWJkGOptGkrKG7ZxPT-wi0Hm2neD4ORrp12gXOWLRn4OdsauPB_N-TZdQUaJm3-kS-PAbGlWxPIUup8pdA9Rcrw9aqsmO2Z0mjT0sKpkUP0FoHGvJNjvSO5x823Vbh9vH7tT" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="52" /&gt;&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; is computed for a batch of &amp;nbsp;r &amp;nbsp;and &amp;nbsp;s. &amp;nbsp;Then get the summation of collision-resistant hash value for every message and checks for the &amp;nbsp;equality of both values of summation of hash and the multiplication of &lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;img height="28" src="https://lh3.googleusercontent.com/ASu10C8l_gLhqNIrduGkfSGJecUs-uEmTAhxMcPzKQQGdUzC6VmBLmiiu3Z2qi1_dSxil85diak_3MjC7pVhlhJqVq1LITFwS-8eh2pgxfYPQNx1TKeTXZ95JD_VtfSiC5rb6RHB" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="52" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: #444444; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;A signature (&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: italic; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;r&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;,&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: italic; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;s&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;) of a message &lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: italic; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;m&lt;/span&gt;&lt;span style="background-color: transparent; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; is verified as follows.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style="margin-bottom: 0pt; margin-top: 0pt;"&gt;
&lt;li dir="ltr" style="background-color: white; font-size: 14px; font-style: normal; font-weight: 400; list-style-type: disc; margin-left: 23px; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.92; margin-bottom: 0pt; margin-top: 7pt;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: transparent; color: black; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;img alt="0&amp;lt;r&amp;lt;p" height="18" src="https://lh4.googleusercontent.com/ZCBvmDWJzLJJiu-E_4Papx-l_RGz5rd_XFvcENPfGUcmvxr3_tTuAjQtK2EPeHPFtIWRY10e9RRKC8Giy1SLQBP4fC3NpEaXqD1bQ41oX2TjSD0pwyZlN-VTwzF0AdUZS7O0Nhjw" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="81" /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: black; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; color: #444444; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;and&lt;/span&gt;&lt;span style="background-color: white; color: black; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;span style="background-color: white; color: black; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;img alt="0&amp;lt;s&amp;lt;p-1" height="18" src="https://lh3.googleusercontent.com/P93PGnuTa67mmnI1gjSZgZHaNe4iekDFgXtT6Mcr9rGDumCz7OC0PJh4MxKrTRy5k5onlP2dmX4WYcUmZq32tfbr8x1OWcKJ5pnrk8l74xR-hJ_BMl7l3JcrURpH6RzV9_HckiVV" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="114" /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: black; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir="ltr" style="background-color: white; color: black; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; list-style-type: disc; margin-left: 23px; text-decoration: none; vertical-align: baseline;"&gt;&lt;div dir="ltr" style="line-height: 1.92; margin-bottom: 1pt; margin-top: 0pt;"&gt;
&lt;span style="background-color: white; color: black; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;img height="34" src="https://lh5.googleusercontent.com/j9DAxhIV36b196me_PP53GNjjWHn6c3wUQUSjv33mCvx1xRUjWQ9aE7cbVnZ2UPHRpxlV5nd1yl7H-6vRmkhHc2t5t_VdaQ12kkH66fzec2dBlF-x1gziHGYv8hP7_kCAqtWUqT8" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="239" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div style="line-height: 1.92; margin-bottom: 0pt; margin-top: 4pt;"&gt;
&lt;span style="background-color: white; font-size: 14.6667px; font-style: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;The verification scheme accepts a signatures if all conditions are satisfied and rejects if there exists at least one forged signature. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="docs-internal-guid-39e28e1c-1a69-0aa6-ec98-b6f42f6ffa39"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Results&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNFQAdWlfDspvQxXFwnqpUHj3mg3R1JMidW2197Su-9KJjRsYExxJaobbMk4WfK9HykZFbc4oHkeP-k1wqb-cOQJ2iIaDzSpv0JQJd9_zDhIN2GdcLR_kBwV_X8hdHEO5l1e8xn8lhKGI/s1600/batchtime.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="color: black; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNFQAdWlfDspvQxXFwnqpUHj3mg3R1JMidW2197Su-9KJjRsYExxJaobbMk4WfK9HykZFbc4oHkeP-k1wqb-cOQJ2iIaDzSpv0JQJd9_zDhIN2GdcLR_kBwV_X8hdHEO5l1e8xn8lhKGI/s1600/batchtime.PNG" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
Code&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;script src="https://gist.github.com/Tiroshan/088048a4f6920c30f602326ad9e4a062.js"&gt;&lt;/script&gt;
&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2015/02/implement-digital-signature-batch.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTwcq1dDudgQaofEbUfzu83rs2Nr9qH89JB12D7ApOsWjcuTndGZyMxkBP8FEwXOlYM5TOMRa_jRBi3O2HQZcTZ7Cigz3GhSE6zkIraBZDTyE3unVaTQ-G3jr-_mrGRao3188OJ-is1ys/s72-c/Biometrics.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-5530750480429954705</guid><pubDate>Wed, 15 May 2013 09:04:00 +0000</pubDate><atom:updated>2016-12-21T22:04:37.638-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Game Development</category><category domain="http://www.blogger.com/atom/ns#">JAVA</category><title>2D Game Development Using Java – Introduction</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9MSk-Eu-ztLYvX2NX_U9jT-8RJW9WNthM0-FCT5KrF3tU13Gy6BKG_DD53mtM5WwoiZvzG7NxtVQb_n2f6bmEjMIgLnm3derV5CNd6P4nUFt5SW38K9NaUYzY93r0oFM1We_wSYcKW2w/s1600/Java-Persistence-API.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9MSk-Eu-ztLYvX2NX_U9jT-8RJW9WNthM0-FCT5KrF3tU13Gy6BKG_DD53mtM5WwoiZvzG7NxtVQb_n2f6bmEjMIgLnm3derV5CNd6P4nUFt5SW38K9NaUYzY93r0oFM1We_wSYcKW2w/s640/Java-Persistence-API.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;h2 style="background-image: none; border-bottom: 1px solid rgb(170, 170, 170); color: black; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Introduction&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Battle Tank was developed as a small 2D game which is controlled by an &amp;nbsp;AI (Artificial Intelligent) at client side and this game is a multiplayer game which allows to connect five maximum player and communication is handled by a central server which is developed in C# language.&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;h2 style="background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom: 1px solid rgb(170, 170, 170); color: black; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Game Server&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div style="font-size: 12.75px; text-align: center;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;a href="https://tyronm.files.wordpress.com/2013/07/serar.png" style="border: 0px; color: #0da4d3; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.18s ease-out; vertical-align: baseline;"&gt;&lt;img alt="serAr" class="aligncenter size-full wp-image-20" height="180" src="https://tyronm.files.wordpress.com/2013/07/serar.png?w=470" style="-webkit-transition: all 0.18s ease-out; border: 0px; clear: both; display: block; height: auto; margin: 0px auto 1.75em !important; max-width: 100%; transition: all 0.18s ease-out; vertical-align: middle;" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;i&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Server architecture&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="border: 0px; font-style: inherit; font-weight: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;A timer gets initiated when the first player resister for a game server.Client has to send a request to the sever saying&amp;nbsp;&lt;/span&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;JOIN#&amp;nbsp;&lt;/strong&gt;&lt;span style="border: 0px; font-style: inherit; font-weight: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;in order to connect to the server. Then the server replies following replies.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="border: 0px; font-style: inherit; font-weight: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;S:P&amp;lt;num&amp;gt;: &amp;lt; player location&amp;nbsp; x&amp;gt;,&amp;lt; player location&amp;nbsp; y&amp;gt;:&amp;lt;Direction&amp;gt;#&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style="border: 0px; font-style: inherit; font-weight: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span style="border: 0px; font-style: inherit; font-weight: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Join accept message where directions are 0-North, 1-East, 2-South, 3-West.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&#151;PLAYERS_FULL#&lt;/strong&gt;&lt;span style="font-style: inherit; font-weight: inherit; line-height: 1.625;"&gt;&amp;nbsp;– The maximum number of players are already connected to the server.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;ALREADY_ADDED#&lt;/strong&gt;&lt;span style="font-style: inherit; font-weight: inherit; line-height: 1.625;"&gt;&amp;nbsp;– The player is already connected to the game server.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;GAME_ALREADY_STARTED#&lt;/strong&gt;&lt;span style="font-style: inherit; font-weight: inherit; line-height: 1.625;"&gt;&amp;nbsp;– The player tries to join an already started game&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;At the game initiation all other map details are sent in the following format.&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;&lt;strong style="background-color: white; border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;strong style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;I:P1; &amp;lt; player location&amp;nbsp; x&amp;gt;,&amp;lt; player location&amp;nbsp; y&amp;gt;;: …: P5&amp;lt; player location&amp;nbsp; x&amp;gt;,&amp;lt; player location&amp;nbsp; y&amp;gt;;: &amp;lt; x&amp;gt;,;&amp;lt; x&amp;gt;,;&amp;lt; x&amp;gt;,….. &amp;nbsp; &amp;lt; x&amp;gt;,: &amp;lt; x&amp;gt;,;&amp;lt; x&amp;gt;,;&amp;lt; x&amp;gt;,…..&amp;lt; x&amp;gt;,: &amp;lt; x&amp;gt;,;&amp;lt; x&amp;gt;,;&amp;lt; x&amp;gt;, …..&amp;lt; x&amp;gt;,#&amp;nbsp;&lt;/strong&gt;&lt;span style="font-style: inherit; font-weight: inherit; line-height: 2.1em;"&gt;where players details:Brick details:Ston&lt;/span&gt;&lt;span style="font-style: inherit; font-weight: inherit; line-height: 2.1em;"&gt;e coordinates:Water coordinates.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/strong&gt;&lt;/ul&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;strong style="background-color: white; border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/strong&gt;&lt;span style="background-color: white; font-style: inherit; font-weight: inherit; line-height: 22.3125px;"&gt;&#151;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;span style="background-color: white; font-style: inherit; font-weight: inherit; line-height: 22.3125px;"&gt;When the client want to move or rotate its tank or shoot, client must issue the relevant command from&amp;nbsp;&#151;&lt;/span&gt;&lt;strong style="background-color: white; border: 0px; font-style: inherit; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;UP#,&amp;nbsp;&lt;/strong&gt;&lt;span style="background-color: white; font-style: inherit; font-weight: inherit; line-height: 22.3125px;"&gt;&#151;&lt;/span&gt;&lt;strong style="background-color: white; border: 0px; font-style: inherit; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;DOWN#,&amp;nbsp;&#151;RIGHT#,&amp;nbsp;&lt;/strong&gt;&lt;span style="background-color: white; font-style: inherit; font-weight: inherit; line-height: 22.3125px;"&gt;&#151;&lt;/span&gt;&lt;strong style="background-color: white; border: 0px; font-style: inherit; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;LEFT#&amp;nbsp;&lt;/strong&gt;&lt;span style="background-color: white; font-style: inherit; font-weight: inherit; line-height: 22.3125px;"&gt;or&amp;nbsp;&lt;/span&gt;&lt;strong style="background-color: white; border: 0px; font-style: inherit; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&#151;SHOOT#&lt;/strong&gt;&lt;span style="background-color: white; font-style: inherit; font-weight: inherit; line-height: 22.3125px;"&gt;.&amp;nbsp;If the request of the client cannot be honoured server will be immediately communicated following messages.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;OBSTACLE#&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;CELL_OCCUPIED#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;DEAD#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;TOO_QUICK#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;INVALID_CELL#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;GAME_HAS_FINISHED#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;GAME_NOT_STARTED_YET#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&#151;NOT_A_VALID_CONTESTANT#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-style: inherit; font-weight: inherit;"&gt;Once per second the server broadcasts a global update to all the clients documenting its internal variables about the clients in following format.&lt;/span&gt;&lt;br /&gt;
&lt;div style="border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong style="border: 0px; font-style: inherit; line-height: 2.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;G:P1;&amp;lt; player location&amp;nbsp; x&amp;gt;,&amp;lt; player location&amp;nbsp; y&amp;gt;;;&amp;lt; whether shot&amp;gt;;;&amp;lt; coins&amp;gt;;&amp;lt; points&amp;gt;: …. P5;&amp;lt; player location&amp;nbsp; x&amp;gt;,&amp;lt; player location&amp;nbsp; y&amp;gt;;;&amp;lt; whether shot&amp;gt;;;&amp;lt; coins&amp;gt;;&amp;lt; points&amp;gt;: &amp;lt; x&amp;gt;,,;&amp;lt; x&amp;gt;,,;&amp;lt; x&amp;gt;,,;&amp;lt; x&amp;gt;,,…..&amp;lt; x&amp;gt;,,#&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="font-style: inherit; font-weight: inherit;"&gt;The server sends&amp;nbsp;&lt;/span&gt;&lt;strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;C:&amp;lt;x&amp;gt;,&amp;lt;y&amp;gt;:&amp;lt;Life Time in milliseconds&amp;gt;:&amp;lt;Value&amp;gt;#&lt;/strong&gt;&lt;span style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;message to signal the appearing event of a pile of coins and sends&lt;/span&gt;&lt;strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;span style="border: 0px; font-style: inherit; font-weight: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;L:&amp;lt;x&amp;gt;,&amp;lt;y&amp;gt;:&amp;lt;LT&amp;gt;#&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style="border: 0px; font-style: inherit; font-weight: inherit; line-height: 1.625; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;message to signal the event of a life pack.&amp;nbsp;&lt;/span&gt;&lt;span style="font-style: inherit; font-weight: inherit;"&gt;&#151;When the game ends, the player with most points will be declared the winner and the message&amp;nbsp;&lt;/span&gt;&lt;strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;GAME_FINISHED#&lt;/strong&gt;&lt;span style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;broadcasts to all the clients.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; font-size: 12.75px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://tyronm.files.wordpress.com/2013/06/capture1.jpg" style="border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.18s ease-out; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;img alt="Capture1" class="aligncenter size-full wp-image-14" src="https://tyronm.files.wordpress.com/2013/06/capture1.jpg?w=470" style="-webkit-transition: all 0.18s ease-out; border: 0px; clear: both; display: block; height: auto; margin: 0px auto 1.75em !important; max-width: 100%; transition: all 0.18s ease-out; vertical-align: middle;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://tyronm.files.wordpress.com/2013/06/capture.png" style="border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.18s ease-out; vertical-align: baseline;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;img alt="Capture" class="aligncenter size-full wp-image-15" src="https://tyronm.files.wordpress.com/2013/06/capture.png?w=470" style="-webkit-transition: all 0.18s ease-out; border: 0px; clear: both; display: block; height: auto; margin: 0px auto 1.75em !important; max-width: 100%; transition: all 0.18s ease-out; vertical-align: middle;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;span style="color: #444444;"&gt;Download server&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.mediafire.com/download/is8xcbry8qkuwlz/Server_v3.2.0.1.zip" style="border: 0px; color: #0da4d3; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.18s ease-out; vertical-align: baseline;"&gt;here&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="background-color: white; border: 0px; color: #444444; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12.75px; line-height: 22.3125px; margin: 0px 0px 1.75em 3.1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/ol&gt;
</description><link>http://tyronmadushanka.blogspot.com/2015/02/2d-game-development-using-java.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9MSk-Eu-ztLYvX2NX_U9jT-8RJW9WNthM0-FCT5KrF3tU13Gy6BKG_DD53mtM5WwoiZvzG7NxtVQb_n2f6bmEjMIgLnm3derV5CNd6P4nUFt5SW38K9NaUYzY93r0oFM1We_wSYcKW2w/s72-c/Java-Persistence-API.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-8005285370103750246</guid><pubDate>Tue, 14 May 2013 03:36:00 +0000</pubDate><atom:updated>2016-12-19T20:36:58.867-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Game Development</category><category domain="http://www.blogger.com/atom/ns#">JAVA</category><title>2D Game Development Using Java - Design Graphical User Interface For The Client Application</title><description>&lt;div style="background-color: white; border: 0px; color: #444444; font-size: 12.75px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; box-sizing: border-box; font-size: 30px; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
Approach&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;Client side application was implemented using java and java classes were used for each object (Tanks,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Bricks,Stones and Water).In this application Actor java class is handled the collisions and extends it in every child classes and the graphic abstract class repaints the map after that the application is received a broadcast message from the server.&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-size: 12.75px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href="https://tyronm.files.wordpress.com/2013/05/capture22.jpg" style="border: 0px; color: #0da4d3; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.18s ease-out; vertical-align: baseline;"&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;img alt="Capture22" class="aligncenter size-full wp-image-57" src="https://tyronm.files.wordpress.com/2013/05/capture22.jpg?w=470" style="-webkit-transition: all 0.18s ease-out; border: 0px; clear: both; display: block; height: auto; margin: 0px auto 1.75em !important; max-width: 100%; transition: all 0.18s ease-out; vertical-align: middle;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style="background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; box-sizing: border-box; font-size: 30px; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;
Code&lt;/span&gt;&lt;/h2&gt;
&lt;script src="https://gist.github.com/Tiroshan/514677d13f3e10dd530d19d4887ca88e.js"&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div style="background-color: white; border: 0px; font-size: 12.75px; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  java" id="highlighter_297839" style="border: 0px; font-size: 1em; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div style="color: #444444;"&gt;
&lt;div style="font-size: 12.75px;"&gt;
&lt;div style="color: #444444;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif;"&gt;Sample&lt;/span&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 12.75px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif;"&gt;child&lt;/span&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 12.75px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif;"&gt;class&lt;/span&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 12.75px;"&gt;&amp;nbsp;–&amp;nbsp;&lt;/span&gt;&lt;strong style="border: 0px; font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Player&lt;/strong&gt;&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 12.75px;"&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-size: 12.75px;"&gt;
&lt;script src="https://gist.github.com/Tiroshan/a8114c0115cd6b20319d085785c4bbd5.js"&gt;&lt;/script&gt;

&lt;/div&gt;
&lt;div style="color: #444444;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;&lt;strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;GameBoard&lt;span style="font-size: 12.75px;"&gt; &lt;/span&gt;was&lt;span style="font-size: 12.75px;"&gt; &lt;/span&gt;implemented&lt;span style="font-size: 12.75px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: xx-small;"&gt;by&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: xx-small;"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: xx-small;"&gt;extending&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: xx-small;"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: xx-small;"&gt;a Jpanel&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: xx-small;"&gt;for display map details.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 12.75px;"&gt;
&lt;script src="https://gist.github.com/Tiroshan/1764c013abbc540750ef99dcadf8ab6e.js"&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2013/05/2d-game-development-using-java-design.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4014902805338213291.post-9043918468189684373</guid><pubDate>Fri, 23 Mar 2012 06:29:00 +0000</pubDate><atom:updated>2016-12-19T20:42:20.256-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Assembly</category><category domain="http://www.blogger.com/atom/ns#">Operating Systems</category><title>Tyron Josh- Development Assignment Of Josh Operating System</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div style="-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2 style="-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3; margin: 1em 0px 0.25em; orphans: 2; overflow: hidden; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;What is TYRON JOSH OS ?&lt;/span&gt;&lt;/h2&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihVebkRBZUJ3QoIVsMsPJy2TZlaLVURvLQt2L-FokVp3Rqa1TcgFAwt4D7ptZscHnLjFt_3UdcnCTbI-2twI78-Mq928jMSTJSyHZC7SYn8RhdBZWpItfBEL5T9UmA5XespcI7LqGCvjo/s1600/fat.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihVebkRBZUJ3QoIVsMsPJy2TZlaLVURvLQt2L-FokVp3Rqa1TcgFAwt4D7ptZscHnLjFt_3UdcnCTbI-2twI78-Mq928jMSTJSyHZC7SYn8RhdBZWpItfBEL5T9UmA5XespcI7LqGCvjo/s1600/fat.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.75px; line-height: 22.3125px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;TYRON JOSH is a modified version of JOSH operating system in order to display the hardware information of the machine and it was implemented as an assignment for the module CS 2042-OPERATING SYSTEM.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;"&gt;&lt;span style="line-height: 22.3125px;"&gt;The main issue in JOSH operating system is that it was implemented in order to boot from a floppy disk (FAT12 file format). But for this &amp;nbsp;I followed following instructions to boot JOSH OS using a USB pen drive.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;"&gt;&lt;span style="line-height: 22.3125px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;Linux Environment uses ordinary files format to represent various I/O devices and these files are in&amp;nbsp;&lt;/span&gt;&lt;i style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px;"&gt;/dev&amp;nbsp;&lt;/i&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;directory and w&lt;/span&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;hen an USB pen is plugged in, &lt;/span&gt;&lt;b style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px;"&gt;ansdb&lt;/b&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;&amp;nbsp;file and&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px;"&gt;sdb1&lt;/b&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;&amp;nbsp;file is created in /&lt;/span&gt;&lt;i style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px;"&gt;dev&amp;nbsp;&lt;/i&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;directory.&lt;/span&gt;&lt;br /&gt;
&lt;b style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px;"&gt;sdb&lt;/b&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;&amp;nbsp;-represents the device itself&lt;/span&gt;&lt;br /&gt;
&lt;b style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px;"&gt;sdb1 -&lt;/b&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; line-height: 22.3125px;"&gt;primary partition on that device.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;h2 style="-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3; margin: 1em 0px 0.25em; orphans: 2; overflow: hidden; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Procedure&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Step 1-&lt;/b&gt;&lt;br /&gt;
Format the pen to FAT32 file system using following command.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_799395" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="-webkit-box-shadow: none !important; background: none !important; border-radius: 0px !important; border-spacing: 0px; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; max-width: 100%; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; table-layout: auto !important; top: auto !important; vertical-align: baseline !important; width: 470px;"&gt;&lt;tbody style="-webkit-box-shadow: none !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;
&lt;tr style="-webkit-box-shadow: none !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;&lt;td class="gutter" style="-webkit-box-shadow: none !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;&lt;div class="line number1 index0 alt2" style="-webkit-box-shadow: none !important; background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;"&gt;
1&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;span style="font-size: small;"&gt;sudo /sbin/mkdosfs -F 32 -I /dev/sdb&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;i&gt;–F 32&lt;/i&gt;flag – causes the device to be formatted in FAT32 file system format&lt;br /&gt;
&lt;i&gt;-I&lt;/i&gt;flag -required to force direct formatting of the device file&lt;br /&gt;
FAT12 file format can handle disks minimum than 32MB. Because of that I failed to directly use the following command&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12.75px; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_71829" style="border: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin: 1em 0px !important; outline: 0px; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="-webkit-box-shadow: none !important; background: none !important; border-radius: 0px !important; border-spacing: 0px; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; max-width: 100%; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; table-layout: auto !important; top: auto !important; vertical-align: baseline !important; width: 470px;"&gt;&lt;tbody style="-webkit-box-shadow: none !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;
&lt;tr style="-webkit-box-shadow: none !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;span style="font-size: small;"&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;span style="font-size: small;"&gt;sudo/sbin/mkdosfs -F 12 -I /dev/sdb&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;b&gt;Step 2-&lt;/b&gt;&lt;br /&gt;
Create a floppy disk image,&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_190793" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;sudo dd if=/dev/zero bs=512 count=2880 of=./floppy.img&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Format the floppy image,&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_794699" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;sudo /sbin/mkdosfs –F 12 ./floppy.img&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Override thefloppy image to the USB pen,&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_367148" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;sudo dd if=./floppy.img of=/dev/sdc&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Put the boot binary file into the boot sector of the disk.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_783915" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;sudo dd if=./boot.bin of=/dev/sdc&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Then I successfully booted the JOSH operating system using my USB drive.&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style="-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3; margin: 1em 0px 0.25em; orphans: 2; overflow: hidden; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;span style="font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;"&gt;Approach&lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
There are two basic methods are using in assembly language to get the hardware information.&lt;br /&gt;
1. Use BIOS Service interrupts&lt;br /&gt;
2. Use special commands&lt;br /&gt;
In this implementation both two approaches are used and handling BIOS service interrupts is quite complex with comparing to the use special processor commands.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;h4&gt;
&lt;b&gt;&lt;i&gt;1. Use BIOS Service interrupts&lt;/i&gt;&lt;/b&gt;&lt;/h4&gt;
By using the BIOS interrupts we can get the hardware information which are stored in BIOS data area. Basically when we call an interrupt it will return the AX register with corresponding data.&lt;br /&gt;
&lt;b&gt;Ex:&lt;/b&gt;&amp;nbsp;Print a word to the screen using BIOS interrupt 0x21, the following x86 assembly language instructions would be executed:&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_908689" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
2&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
3&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strproserial&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
There are two kinds of interrupts.&lt;br /&gt;
&lt;b&gt;a. Processor interrupts&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;Interrupts 00h to 07h are called by the processor directly, but can also be called from software using the INT (int) instruction.&lt;/i&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0RPuZiYtc0zO_Mfj39yKH_6hSsKF23PpJFjSd6zqUqKCICliqX9njh0QPm0YbmJ6PWLU2mV1y91IeyEweB371aGKWwm9dtKRSn57ZRZauEFeog6If5kY1x_hgRjizxP5lhbNuSCflklQ/s1600/intr.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0RPuZiYtc0zO_Mfj39yKH_6hSsKF23PpJFjSd6zqUqKCICliqX9njh0QPm0YbmJ6PWLU2mV1y91IeyEweB371aGKWwm9dtKRSn57ZRZauEFeog6If5kY1x_hgRjizxP5lhbNuSCflklQ/s1600/intr.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;b&gt;b&lt;i&gt;.&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;Hardware interrupts&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;The hardware interrupts differ from all the software interrupts. They have a direct channel to the processor thorough an Interrupt Request Line. The 8259 Programmable Interrupt Controller or PIC on the motherboard manages all the hardware interrupts.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;b&gt;&lt;i&gt;2. Use special commands&lt;/i&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
We can use a special command to view processor details. These special commands are provided by the processor manufacturers. The CPUID&amp;nbsp;&lt;b&gt;(cpuid)&lt;/b&gt;command requires without any operand, but it takes an argument from the EAX register. Therefore we should store a value in EAX register before calling the CPUID command&lt;i&gt;.&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;Ex:&lt;/b&gt;&amp;nbsp;CPUID functions that return the basic processor information, the program should set the EAX register parameter value to “0”and then execute the CPUID instruction as follows:&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_646601" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
2&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;MOV EAX, 00h&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;CPUID&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;br /&gt;
&lt;b&gt;Methods that are implemented-&lt;/b&gt;&lt;br /&gt;
&lt;em style="border: 0px; font-family: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Display the hardware details separately&lt;/em&gt;.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_289091" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
2&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
3&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
4&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
5&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
6&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
7&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
8&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
9&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
10&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
11&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 433px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;_cmd_displayHardwareInfo:&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strCPUID&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _cmd_cpuVendorID&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _cmd_ProcessorType&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _cmd_ProcessorSerialNo&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;call _cmd_ProcessorFeature&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;call _cmd_MouseStatus&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;ret&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;em style="border: 0px; font-family: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;display the vendor ID of the processor&lt;/em&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_249893" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
2&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
3&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
4&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
5&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
6&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
7&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
8&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
9&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
10&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
11&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 433px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;_cmd_cpuVendorID:&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov eax,0&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;cpuid; call cpuid command&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcpuid],ebx; load last string&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcpuid+4],edx; load middle string&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcpuid+8],ecx; load first string&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strcpuid;print CPU vender ID&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;ret&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
This method is implemented using the special commands.&lt;br /&gt;
&lt;a href="https://tyronm.files.wordpress.com/2013/07/2.png" style="-webkit-transition: all 0.18s ease-out; border: 0px; color: #0da4d3; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.18s ease-out; vertical-align: baseline;"&gt;&lt;img alt="2" class="aligncenter size-full wp-image-81" height="172" src="https://tyronm.files.wordpress.com/2013/07/2.png?w=470&amp;amp;h=172" style="-webkit-transition: all 0.18s ease-out; border: 0px; clear: both; display: block; height: auto; margin: 0px auto 1.75em !important; max-width: 100%; transition: all 0.18s ease-out; vertical-align: middle;" width="470" /&gt;&lt;/a&gt;&lt;br /&gt;
When we call&amp;nbsp;&lt;b&gt;cpuid&lt;/b&gt;&amp;nbsp;method with value of 0 to the register EAX ,it returns vendor ID and return it as 12 bytes value and this values stores in EBX, EDX, ECX registers because these registers each is 32 bit. So first I declare a memory location by the reference strcpuid name with the size of 12 bytes.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_378604" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 533px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 503px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;strcpuidresb12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;12 bytes for store vendor ID string&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Display &amp;nbsp;the processor type, speed of the processor.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_246110" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
2&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
3&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
4&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
5&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
6&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
7&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
8&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
9&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
10&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
11&lt;/div&gt;
&lt;div class="line number12 index11 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
12&lt;/div&gt;
&lt;div class="line number13 index12 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
13&lt;/div&gt;
&lt;div class="line number14 index13 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
14&lt;/div&gt;
&lt;div class="line number15 index14 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
15&lt;/div&gt;
&lt;div class="line number16 index15 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
16&lt;/div&gt;
&lt;div class="line number17 index16 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
17&lt;/div&gt;
&lt;div class="line number18 index17 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
18&lt;/div&gt;
&lt;div class="line number19 index18 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
19&lt;/div&gt;
&lt;div class="line number20 index19 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
20&lt;/div&gt;
&lt;div class="line number21 index20 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
21&lt;/div&gt;
&lt;div class="line number22 index21 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
22&lt;/div&gt;
&lt;div class="line number23 index22 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
23&lt;/div&gt;
&lt;div class="line number24 index23 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
24&lt;/div&gt;
&lt;div class="line number25 index24 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
25&lt;/div&gt;
&lt;div class="line number26 index25 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
26&lt;/div&gt;
&lt;div class="line number27 index26 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
27&lt;/div&gt;
&lt;div class="line number28 index27 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
28&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 433px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;_cmd_ProcessorType:&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov eax,0x80000002&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;cupid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; call cpuid command&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype]&amp;nbsp;&amp;nbsp; ,eax&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+4] ,ebx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+8] ,ecx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+12],edx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov eax,0x80000003&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;cpuid; call cpuid command&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+16],eax&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+20],ebx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number12 index11 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+24],ecx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number13 index12 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+28],edx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number14 index13 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov eax,0x80000004&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number15 index14 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;cupid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; call cpuid command&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number16 index15 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+32],eax&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number17 index16 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+36],ebx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number18 index17 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+40],ecx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number19 index18 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov [strcputype+44],edx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number20 index19 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number21 index20 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;mov si, strProcessor&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number22 index21 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number23 index22 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number24 index23 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_space&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number25 index24 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strcputype&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;print processor type&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number26 index25 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number27 index26 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number28 index27 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;ret&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Same as the above method when we call&amp;nbsp;&lt;b&gt;cpuid&lt;/b&gt;&amp;nbsp;method with value of 0x80000002,0x80000003, 0x80000004 seperately to the register EAX ,it returns processor type and return it as 12bytesvalueand this values stores in EBX, EBX, ECX, EDX at each time that calls cpuid command. So first I declare a memory location by the reference strcputype name with the size of 48bytes.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_449592" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 505px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 475px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;strcputype resb48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; 48 bytes for store cpu type string&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Prints TRUE if a mouse is connected to the machine, if not it prints FALSE. This method is implemented using interrupt and BIOS data area.&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_84558" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 477px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
2&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
3&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
4&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
5&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
6&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
7&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
8&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
9&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
10&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
11&lt;/div&gt;
&lt;div class="line number12 index11 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
12&lt;/div&gt;
&lt;div class="line number13 index12 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
13&lt;/div&gt;
&lt;div class="line number14 index13 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
14&lt;/div&gt;
&lt;div class="line number15 index14 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
15&lt;/div&gt;
&lt;div class="line number16 index15 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
16&lt;/div&gt;
&lt;div class="line number17 index16 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
17&lt;/div&gt;
&lt;div class="line number18 index17 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
18&lt;/div&gt;
&lt;div class="line number19 index18 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
19&lt;/div&gt;
&lt;div class="line number20 index19 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
20&lt;/div&gt;
&lt;div class="line number21 index20 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
21&lt;/div&gt;
&lt;div class="line number22 index21 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
22&lt;/div&gt;
&lt;div class="line number23 index22 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
23&lt;/div&gt;
&lt;div class="line number24 index23 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
24&lt;/div&gt;
&lt;div class="line number25 index24 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
25&lt;/div&gt;
&lt;div class="line number26 index25 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
26&lt;/div&gt;
&lt;div class="line number27 index26 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
27&lt;/div&gt;
&lt;div class="line number28 index27 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
28&lt;/div&gt;
&lt;div class="line number29 index28 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
29&lt;/div&gt;
&lt;div class="line number30 index29 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
30&lt;/div&gt;
&lt;div class="line number31 index30 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
31&lt;/div&gt;
&lt;div class="line number32 index31 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
32&lt;/div&gt;
&lt;div class="line number33 index32 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
33&lt;/div&gt;
&lt;div class="line number34 index33 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
34&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 440px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;xor ax,ax&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; clean out the AX register&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;mov si, strmouse&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_space&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;push ax&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;push dx&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 33h&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; call interrupt 33h function 0&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;cmp ax,0ffffh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; compare AX and FFFFh (installed)&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;jne _mouseAvailable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; if so Jump to print true&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number12 index11 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;jmp _mouseNotAvailable&amp;nbsp;&amp;nbsp; ; if notDisplay the word "false"&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number13 index12 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;ret&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number14 index13 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;_mouseAvailable:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;print 'true'&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number15 index14 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strmousetrue&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number16 index15 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number17 index16 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number18 index17 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;ret&amp;amp;lt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number19 index18 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;_mouseNotAvailable:&amp;nbsp;&amp;nbsp;&amp;nbsp; ;print ‘false’&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number20 index19 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strmousefalse&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number21 index20 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number22 index21 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number23 index22 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;ret&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number24 index23 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;_cmd_callHelp:&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number25 index24 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number26 index25 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strCmd0&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number27 index26 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov di, cmdHelp&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number28 index27 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov cx, 5&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number29 index28 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;repecmpsb&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number30 index29 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;;jne_cmd_ver&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number31 index30 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;jne_cmd_exit&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number32 index31 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call cmd_displayHelpMenu&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number33 index32 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number34 index33 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;jmp _cmd_done&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Prints the help menu,&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;div class="syntaxhighlighter  plain" id="highlighter_541268" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 1em 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 470px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="background: none; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 100%; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 470px;"&gt;&lt;tbody style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;tr style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;td class="gutter" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;&lt;div class="line number1 index0 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
1&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
2&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
3&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
4&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
5&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
6&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
7&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
8&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
9&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
10&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
11&lt;/div&gt;
&lt;div class="line number12 index11 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
12&lt;/div&gt;
&lt;div class="line number13 index12 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
13&lt;/div&gt;
&lt;div class="line number14 index13 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
14&lt;/div&gt;
&lt;div class="line number15 index14 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
15&lt;/div&gt;
&lt;div class="line number16 index15 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
16&lt;/div&gt;
&lt;div class="line number17 index16 alt2" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
17&lt;/div&gt;
&lt;div class="line number18 index17 alt1" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-radius: 0px; border-right: 3px solid rgb(108, 226, 108); border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
18&lt;/div&gt;
&lt;/td&gt;&lt;td class="code" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #888888; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 433px;"&gt;&lt;div class="container" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;
&lt;div class="line number1 index0 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;cmd_displayHelpMenu:&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number3 index2 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strHelpMsg0;print help message&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number4 index3 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number5 index4 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number6 index5 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number7 index6 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strHelpMsg1&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number8 index7 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number9 index8 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number10 index9 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number11 index10 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strHelpMsg2&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number12 index11 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number13 index12 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number14 index13 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;call _display_endl&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number15 index14 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov si, strHelpMsg3&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number16 index15 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;mov al, 0x01&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number17 index16 alt2" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;int 0x21&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number18 index17 alt1" style="background-image: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;"&gt;
&lt;code class="plain plain" style="background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;"&gt;ret&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #444444; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;"&gt;&lt;span style="line-height: 22.3125px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;


&lt;br /&gt;
&lt;div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; line-height: 22.3125px; margin-bottom: 1.75em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: 0px; color: #444444; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12.75px; line-height: 22.3125px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://tyronmadushanka.blogspot.com/2015/02/tyron-josh-development-assignment-of.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihVebkRBZUJ3QoIVsMsPJy2TZlaLVURvLQt2L-FokVp3Rqa1TcgFAwt4D7ptZscHnLjFt_3UdcnCTbI-2twI78-Mq928jMSTJSyHZC7SYn8RhdBZWpItfBEL5T9UmA5XespcI7LqGCvjo/s72-c/fat.jpg" width="72"/><thr:total>0</thr:total></item></channel></rss>