<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3236115278583407914</id><updated>2011-11-27T17:33:21.519-08:00</updated><category term='ssh'/><category term='tunneling'/><category term='World'/><category term='Wine'/><category term='mysql'/><category term='most popular'/><category term='Luxury'/><title type='text'>Development GuRu</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gurudevel.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gurudevel.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>devguru</name><uri>http://www.blogger.com/profile/02579028558044207556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3236115278583407914.post-2953358065352870848</id><published>2009-07-18T03:40:00.000-07:00</published><updated>2009-07-18T03:42:39.820-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='most popular'/><category scheme='http://www.blogger.com/atom/ns#' term='World'/><title type='text'>Do you know the Most Popular Car Color in America?</title><content type='html'>&lt;p&gt;You may be wondering, what is the &lt;span style="font-weight: bold;"&gt;most popular car color&lt;/span&gt;? For seven years, silver was the most popular car color. It was seen as both a high-tech color and one that was safe for resell—not as many people would be turned off by a silver car as would be turned off by, say, a green car.&lt;/p&gt; &lt;p&gt;Buyers in 2007, however, broke the mold by buying more white cars than cars in any other color. Why? Well, it’s been said that a high-tech color like silver isn’t popular anymore. I disagree. I don’t think silver is a high-tech color anymore. Looking at the popularity of iPods, iPhones and other Apple products, I’d say white is going to be the color of technology for some time.&lt;/p&gt; &lt;p&gt;In 2007, nineteen percent of cars manufactured were &lt;span style="font-weight: bold;"&gt;white&lt;/span&gt;. Twenty-two percent of luxury cars were white. Eighteen percent of all cars were silver and sixteen percent were black.&lt;/p&gt; &lt;p&gt;Of course, given years of popularity, silver cars will still outnumber autos of other colors for awhile.&lt;/p&gt; &lt;p&gt;&lt;img src="http://most-popular.net/wp-content/uploads/2008/08/popular-car-colors.jpg" alt="2007 Most Popular Car Colors" width="495" height="228" /&gt;&lt;br /&gt;&lt;em&gt;&lt;small&gt;Source: DuPont 2007 Global Automotive Color Popularity Report&lt;/small&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;small&gt;Source: most-popular.net&lt;br /&gt;&lt;/small&gt;&lt;/em&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3236115278583407914-2953358065352870848?l=gurudevel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gurudevel.blogspot.com/feeds/2953358065352870848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3236115278583407914&amp;postID=2953358065352870848&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/2953358065352870848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/2953358065352870848'/><link rel='alternate' type='text/html' href='http://gurudevel.blogspot.com/2009/07/do-you-know-most-popular-car-color-in.html' title='Do you know the Most Popular Car Color in America?'/><author><name>devguru</name><uri>http://www.blogger.com/profile/02579028558044207556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3236115278583407914.post-3335996570880076802</id><published>2009-07-18T03:13:00.000-07:00</published><updated>2009-07-18T03:16:12.620-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wine'/><category scheme='http://www.blogger.com/atom/ns#' term='Luxury'/><category scheme='http://www.blogger.com/atom/ns#' term='World'/><title type='text'>Most Expensive Wines</title><content type='html'>&lt;p&gt;The word wine has its root from the ancient Greek word for vines, &lt;em&gt;vinos&lt;/em&gt;. Grapevines produces lush grapes which are then fermented to create the popular yet sophisticated alcoholic drink we know as wine. In many areas, the English word wine and its synonyms in different languages are protected by law, as other beverages similar to wine can be produced from fruits, rice, flowers and honey.&lt;/p&gt; &lt;p&gt;At the highest end, rare, super-expensive wines are often the costliest item on the menu, and exceptional vintages from the best vineyards may sell for thousands of dollars per bottle. Expensive red wines with their complex subtleties are traditionally more costly than other expensive wines.&lt;/p&gt; &lt;p&gt;Here are the most expensive wines in the world.&lt;/p&gt; &lt;p style="display: block; float: right; margin-left: 10px;"&gt;&lt;img src="http://most-expensive.net/wp-content/uploads/2008/10/expensive-wines-screaming-eagle.jpg" alt="World's Most Expensive Wines - Screaming Eagle" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;1992 Screaming Eagle&lt;br /&gt;around $80,000&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;At Auction Napa Valley 2008, a charity event, a lot of six magnums of Screaming Eagle were sold for $500,000. In addition to the wine, the lot included a dinner at the winery. The lucky purchaser was Chase Bailey, an executive at Cisco Systems.&lt;/p&gt; &lt;p style="display: block; float: left; margin-right: 10px;"&gt;&lt;img src="http://most-expensive.net/wp-content/uploads/2008/10/expensive-wines-chateau-mouton-rothschild.jpg" alt="World's Most Expensive Wines - Chateau Mouton-Rothschild" height="100" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;1945 Chateau Mouton-Rothschild Jeroboam&lt;br /&gt;$114,614&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Sold to an anonymous buyer at a Christie’s auction in 1997, this bottle comes from what is considered by wine enthusiasts to be one of the finest vintages of the 20th century.&lt;/p&gt; &lt;p style="display: block; float: right; margin-left: 10px;"&gt;&lt;img src="http://most-expensive.net/wp-content/uploads/2008/10/expensive-wine-thj-chateau-lafitte.jpg" alt="World's Most Expensive Wines - Th.J 1787 Chateau Lafitte" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;“Th.J” 1787 Chateau Lafitte&lt;br /&gt;$160,000&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;A bottle of 1787 Chateau Lafitte which sold at Christie’s London in December of 1985, this wine was originally reported to be from the cellar of Thomas Jefferson, the former US President, and this most expensive bottle of wine had the initials Th.J etched into the glass bottle. It made its way into the hands of American tycoon Bill Koch, who became suspicious of the origins of the four bottles he had purchased. Eventually, he instigated the investigation that debunked the supposed origin of what was, at the time of purchase, the most expensive wine in the world.&lt;/p&gt; &lt;p style="display: block; float: left; margin-right: 10px;"&gt;&lt;img src="http://most-expensive.net/wp-content/uploads/2008/09/expensive-champagne-heidsieck.jpg" alt="World's Most Expensive Wines - Shipwrecked 1907 Heidsieck" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Shipwrecked 1907 Heidsieck&lt;br /&gt;$275,000&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;These hundred year old bottles of Champagne from the Heidsieck vineyard in Champagne took over eighty years to reach their destination. Shipped to the Russian Imperial family in 1916, a shipwreck off the coast of Finland caused this champagne to be lost at sea until divers discovered over 200 bottles in 1997. Now they’re finally being sold—to wealthy guests at the Ritz-Carlton hotel in Moscow, at least. Of course, the wine’s extraordinary tale and incredible age are what makes it the world’s most expensive wine.&lt;/p&gt;&lt;p&gt;&lt;span style="font-style: italic;"&gt;Source: most-expensive.net&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3236115278583407914-3335996570880076802?l=gurudevel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gurudevel.blogspot.com/feeds/3335996570880076802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3236115278583407914&amp;postID=3335996570880076802&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/3335996570880076802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/3335996570880076802'/><link rel='alternate' type='text/html' href='http://gurudevel.blogspot.com/2009/07/most-expensive-wines.html' title='Most Expensive Wines'/><author><name>devguru</name><uri>http://www.blogger.com/profile/02579028558044207556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3236115278583407914.post-3856581888010981706</id><published>2009-07-18T02:07:00.000-07:00</published><updated>2009-07-18T02:08:57.931-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tunneling'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><title type='text'>MySQL ssh tunnel Quickstart</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial;font-size:100%;"&gt;Scenario: You're at home, and you want to connect to a mysql server on the other side of a firewall. There is a machine with ssh open on it that you can use as a gateway. &lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;span style="font-family:Arial;font-size:100%;"&gt;&lt;li&gt;On your home machine:  &lt;pre&gt;ssh -L 3307:domain.name.of.mysqlserver:3306 username@domain.name.of.gatewayserver&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="font-size:78%;"&gt;See the Unix man pages for ssh &lt;a href="http://whoopis.com/howtos/man.php?query=ssh&amp;amp;apropos=0&amp;amp;section=0&amp;amp;type=2" target="new"&gt;here.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;This will open a tunnel, listening on localhost:3307 and forwarding everything to mysqlserver:3306, and doing it all via the ssh service on the gateway machine. &lt;/p&gt;&lt;p&gt;This example shows us specifying port 3307 on the local end of the tunnel; I did this because I run a MySQL server on my home machine, so I can't re-use the default MySQL port. &lt;/p&gt;&lt;p&gt;You'll now have a terminal open on the gateway machine, but you don't need it for this procedure, so set it aside.  &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Now, on your local machine, execute a mysql connection like so:  &lt;pre&gt;mysql -u username -p -h 127.0.0.1 -P 3307 databasename&lt;br /&gt;&lt;/pre&gt; In other words, mysql thinks it's connecting to localhost, but on a different port. In fact, the connection is being made securely to the remote mysql server, via the gateway machine and the local "mouth" of the ssh tunnel on your own machine.&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;See the Unix man pages for mysql &lt;a href="http://whoopis.com/howtos/man.php?query=mysql&amp;amp;apropos=0&amp;amp;section=0&amp;amp;type=2" target="new"&gt;here.&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;When you're finished with your mysql session, log out of the session on the gateway machine. That will properly close the tunnel. &lt;/li&gt;&lt;/span&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3236115278583407914-3856581888010981706?l=gurudevel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gurudevel.blogspot.com/feeds/3856581888010981706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3236115278583407914&amp;postID=3856581888010981706&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/3856581888010981706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/3856581888010981706'/><link rel='alternate' type='text/html' href='http://gurudevel.blogspot.com/2009/07/mysql-ssh-tunnel-quickstart.html' title='MySQL ssh tunnel Quickstart'/><author><name>devguru</name><uri>http://www.blogger.com/profile/02579028558044207556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3236115278583407914.post-1604696990460887852</id><published>2009-07-17T08:00:00.000-07:00</published><updated>2009-07-17T08:01:42.931-07:00</updated><title type='text'>The MySQL Optimize Table Command</title><content type='html'>The &lt;span style="font-weight: bold;"&gt;MySQL Optimize&lt;/span&gt; Table command will effectively de-fragment a mysql table and is very useful for tables which are frequently updated and/or deleted. &lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;We have a table called articles which has many thousands of rows which are often inserted, updated and deleted. We can see from the table description below that the table contains variable length column data types:&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:78%;"&gt;mysql&gt; desc articles;&lt;br /&gt;+----------------+--------------+------+-----+---------+----------------+&lt;br /&gt;| Field          | Type         | Null | Key | Default | Extra          |&lt;br /&gt;+----------------+--------------+------+-----+---------+----------------+&lt;br /&gt;| id             | int(11)      | NO   | PRI | NULL    | auto_increment |&lt;br /&gt;| content        | text         | NO   |     | NULL    |                |&lt;br /&gt;| author_id      | int(11)      | YES  |     | NULL    |                |&lt;br /&gt;| article_title  | varchar(120) | YES  |     | NULL    |                |&lt;br /&gt;| article_hash   | int(11)      | YES  |     | NULL    |                |&lt;br /&gt;+----------------+--------------+------+-----+---------+----------------+&lt;br /&gt;6 rows in set (0.00 sec)&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:85%;"&gt;If we look at the size of the table on disk we can see that it around 190MB. If we query the table on a column which is indexes we can see the average query response time:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;e.g.&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:78%;"&gt;mysql&gt; select count(*) from articles where article_title like 'The%';&lt;br /&gt;+----------+&lt;br /&gt;| count(*) |&lt;br /&gt;+----------+&lt;br /&gt;|    15830 |&lt;br /&gt;+----------+&lt;br /&gt;1 row in set (0.63 sec)&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;If we now optimize the table with the following command:&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:78%;"&gt;mysql&gt; optimize table articles;&lt;br /&gt;+-----------------------+----------+----------+----------+&lt;br /&gt;| Table                 | Op       | Msg_type | Msg_text |&lt;br /&gt;+-----------------------+----------+----------+----------+&lt;br /&gt;| books.articles        | optimize | status   | OK       |&lt;br /&gt;+-----------------------+----------+----------+----------+&lt;br /&gt;1 row in set (6.27 sec)&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;"&gt;This has the effect of defragmenting the table and reducing the size of the table on disk down to 105MB. It also has a very positive affect on query performance, reducing the select query response time from 0.63 to 0.39 seconds. N.B. the mysql query cache was turned off to demonstrate.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:78%;"&gt;mysql&gt; select count(*) from articles where article_title like 'The%';&lt;br /&gt;+----------+&lt;br /&gt;| count(*) |&lt;br /&gt;+----------+&lt;br /&gt;|    15830 |&lt;br /&gt;+----------+&lt;br /&gt;1 row in set (0.39 sec)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:78%;"&gt;&lt;span style="font-style: italic;"&gt;Source: dbtuna.com&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3236115278583407914-1604696990460887852?l=gurudevel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gurudevel.blogspot.com/feeds/1604696990460887852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3236115278583407914&amp;postID=1604696990460887852&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/1604696990460887852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3236115278583407914/posts/default/1604696990460887852'/><link rel='alternate' type='text/html' href='http://gurudevel.blogspot.com/2009/07/mysql-optimize-table-command.html' title='The MySQL Optimize Table Command'/><author><name>devguru</name><uri>http://www.blogger.com/profile/02579028558044207556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
