tag:blogger.com,1999:blog-88980254433957010422024-03-14T13:43:51.863+05:30Coding is fun..."Programmers are a device for turning caffeine into code."Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.comBlogger186125tag:blogger.com,1999:blog-8898025443395701042.post-48501080879315968812018-10-11T17:58:00.001+05:302018-10-11T18:32:54.677+05:30Loading PDF using AJAX in an IFRAME<script src="https://gist.github.com/spranav/219af97821a64dc44a0a7b1e24849348.js"></script>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-62106908992002753302013-12-12T20:10:00.000+05:302013-12-12T20:10:33.476+05:30Mobile data sync solution in SQL and NoSQL space<span style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;">I was working on mobile data sync from last two years but could not find a reliable solution, but finally I found these interesting solutions in both SQL and NoSQL Space-</span><br style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;" /><br style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;">One in the SQL space called Zumero and other in the NoSQL space called CouchBase lite.</span><br style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;" /><br style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;">Zumero provides support for SQL lite at the mobile endpoint and SQL Server / SQL lite at the server endpoint.</span><span class="text_exposed_show" style="background-color: white; color: #333333; display: inline; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px;"><br /><br />CouchBase lite supports a NoSQL document based and key-value based databases at both the ends.<br /><br />Both seems interesting & I am going to experiment further with both of these..<br /><br /><a href="http://www.couchbase.com/communities/couchbase-lite" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.couchbase.com/communities/couchbase-lite</a><br /><a href="http://www.facebook.com/l.php?u=http%3A%2F%2Fzumero.com%2F&h=TAQFt_aJ5&enc=AZMqvz20lp6z8HTGB7fMhN9oGkBKoi4fNaSmzeqOdcIeYP0N8sAuCnIB6kn0Xx3reJX9r0QUyQAM8U4BNRuRGmxF&s=1" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://zumero.com/</a></span>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-88292586941676927372013-09-12T13:08:00.001+05:302013-09-12T13:08:30.641+05:30BBC Global Dimming Documentary about Global Warming<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #333333; font-family: arial, sans-serif; font-size: 13px; line-height: 17px; text-align: start;">A BBC documentary about how unintentional increased reflectance due to manmade pollution has actually hidden the affects of increased carbon dioxide in the atmosphere.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #333333; font-family: arial, sans-serif; font-size: 13px; line-height: 17px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/p8RyNSzQDaU?feature=player_embedded' frameborder='0'></iframe></div>
<br />Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-83709107130890372242013-08-20T19:12:00.000+05:302013-08-20T19:12:41.078+05:30Search is not a solved problem<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/jVMWT7I3ATM" width="560"></iframe>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-21421398623714720762013-08-20T19:03:00.004+05:302013-08-20T19:03:53.529+05:3010 Top Big Data Startups to Watch <div style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px; margin-bottom: 10px; margin-top: 10px;">
After more than 4,000 votes were cast, the final Big Data startup rankings are in. Keep in mind that while voting was weighted heavily, it was not the be-all-and-end-all consideration. Other criteria included big-name end users, VC funding, the pedigree of the management team and market positioning.</div>
<div style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px; margin-bottom: 10px; margin-top: 10px;">
Here are the final rankings, along with why they finished where they did:</div>
<div class="inline_img_medium_left" style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px;">
<img alt="ParStream" src="http://www.cio.com/images/content/articles/body/2013/06/ParStream.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 24px; max-width: 100%; width: 100px;" />1. <strong style="box-sizing: border-box;"><a href="http://www.parstream.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">ParStream</a></strong> actually finished second in the voting, but customers turned out to <a href="http://startup50.com/BigData-42" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">comment on Startup50</a>, expressing support, and there was even an end user who emailed us directly with a lengthy explanation of why ParStream is the top Big Data startup today. Fanatical end user support and unique positioning as a "Fast Data" company pushes ParStream to No. 1.</div>
<div class="inline_img_medium_right" style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px;">
<img alt="MapR Technologies" src="http://www.cio.com/images/content/articles/body/2013/06/MapR-Technologies.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 25px; max-width: 100%; width: 100px;" />2. <strong style="box-sizing: border-box;"><a href="http://www.mapr.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">MapR Technologies</a></strong> finished third in voting, has raised $59 million in VC funding and has a strong management team. Customers include Ancestry.com, Rubicon and comScore.</div>
<div class="inline_img_medium_left" style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px;">
<img alt="Cloudera" src="http://www.cio.com/images/content/articles/body/2013/06/cloudera-logo.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 32px; max-width: 100%; width: 100px;" />3. <strong style="box-sizing: border-box;"><a href="http://www.cloudera.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">Cloudera</a></strong> actually finished sixth in voting, but with $140 million in funding and an impressive customer list, it's hard not to push them up a few slots. Customers include CBS Interactive, eBay, Expedia, Monsanto and Samsung.</div>
<div class="inline_img_medium_right" style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px;">
<img alt="ScaleArc" src="http://www.cio.com/images/content/articles/body/2013/06/ScaleArc.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 24px; max-width: 100%; width: 100px;" />4. <strong style="box-sizing: border-box;"><a href="http://www.scalearc.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">ScaleArc</a></strong> finished fifth in voting, has raised $18 million in funding and has a Big Data solution that focuses on optimizing SQL query traffic, whereas most Big Data companies have set their sights on NoSQL, Hadoop, etc. Existing customers include Demand Media and Disney UTV.</div>
<div class="inline_img_medium_left" style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px;">
<img alt="LucidWorks" src="http://www.cio.com/images/content/articles/body/2013/06/LucidWorks.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 23px; max-width: 100%; width: 100px;" />5. <strong style="box-sizing: border-box;"><a href="http://www.lucidworks.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">LucidWorks</a></strong> did well in the voting, has solid funding ($16 million) and is uniquely positioned in this roundup with their focus on Big Data search. However, they'll need to get more on-the-record customers on the books to climb higher than this.</div>
<div class="inline_img_medium_left" style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px;">
<div style="box-sizing: border-box; margin-bottom: 10px; margin-top: 10px;">
6. <strong style="box-sizing: border-box;"><a href="http://www.sisense.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">SiSense</a></strong> actually finished lower than 6 in voting, but they offer a fast, flexible, coding-free Big Data solution that even smaller companies on tight budgets can take advantage of. At the same time, major enterprises have bought into SiSense's approach, as well. SiSense has attracted an impressive list of top-tier customers, including NASA, ESPN and eBay. The company is also backed by $14 million in funding.</div>
<div class="inline_img_medium_left" style="box-sizing: border-box;">
<img alt="Cloudant" src="http://www.cio.com/images/content/articles/body/2013/06/cloudant.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 34px; max-width: 100%; width: 100px;" />7. <strong style="box-sizing: border-box;"><a href="https://cloudant.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">Cloudant's</a></strong> Database-as-a-Service has attracted more than 12,000 multi-tenant customers, including Samsung, DHL, Monsanto, Salesforce.com (Heroku), SourceFire, Hot Head Games, Flurry, AppAdvice, and LiveMocha. The company closed a $12 million second round of funding in May, bringing total funding to $16 million.</div>
<div class="inline_img_medium_right" style="box-sizing: border-box;">
<img alt="Skytree" src="http://www.cio.com/images/content/articles/body/2013/06/Skytree.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 24px; max-width: 100%; width: 100px;" />8. If we didn't take voting into account, <strong style="box-sizing: border-box;"><a href="http://www.skytree.net/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">Skytree</a></strong> would probably rank in the top 5. We like their machine-learning approach to Big Data analytics, and they raked in $18 million in their Series A funding round (closed in April 2013). Despite being such a newcomer to this space (founded in 2012), they can already claim eHarmony, SETI, USGA and Adconion Media as customers.</div>
<div class="inline_img_medium_left" style="box-sizing: border-box;">
<img alt="SumAll" src="http://www.cio.com/images/content/articles/body/2013/06/SumAll.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 40px; max-width: 100%; width: 100px;" />9. <strong style="box-sizing: border-box;"><a href="https://sumall.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">SumAll</a></strong> is positioned in one of the more competitive Big Data sub-sectors: social media, sales and marketing analytics. They're backed by $7.5 million in two rounds from Battery Ventures, Wellington Partners, Matrix and General Catalyst. Customers include Siemens, Diamond Candles and Urbio.</div>
<div class="inline_img_medium_right" style="box-sizing: border-box;">
<img alt="Xplenty" src="http://www.cio.com/images/content/articles/body/2013/06/Xplenty.jpg" style="border: 0px; box-sizing: border-box; float: right; height: 83px; max-width: 100%; width: 100px;" />10. Somebody had to finish tenth, and <strong style="box-sizing: border-box;"><a href="http://www.xplenty.com/" style="box-sizing: border-box; color: #c75c1a; outline: none; text-decoration: none;" target="_blank">Xplenty</a></strong> is probably disappointed by that. They shouldn't be. This list of 10 Big Data Startups to Watch was culled from more than 100 recommendations. Then, after posting a list of 42 nominees on Startup50, they had to beat out not just the 32 startups that didn't make the final cut, but also the numerous Big Data startups that we overlooked and had to consider when putting the final list together.</div>
<div style="box-sizing: border-box; margin-bottom: 10px; margin-top: 10px;">
Xplenty should be proud. Now, they should probably set their sights on fundraising and getting customers on the record.</div>
<div style="box-sizing: border-box; margin-bottom: 10px; margin-top: 10px;">
<em style="box-sizing: border-box;">Jeff Vance is a Los Angeles-based freelance writer who focuses on next-generation technology trends. Follow him on Twitter @ JWVance</em></div>
<div style="box-sizing: border-box; margin-bottom: 10px; margin-top: 10px;">
<em style="box-sizing: border-box;"><a href="http://www.cio.com/article/736377/10_Top_Big_Data_Startups_to_Watch_Final_Rankings?page=1&taxonomyId=600010">http://www.cio.com/article/736377/10_Top_Big_Data_Startups_to_Watch_Final_Rankings?page=1&taxonomyId=600010</a></em></div>
</div>
Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-69109975613786394372012-08-22T18:35:00.001+05:302012-08-22T18:35:26.336+05:30VS extension for SQL Lite<br />
Found this excellent VS extension for SQL Lite.<br />
<br />
Features:<br />
•<span class="Apple-tab-span" style="white-space: pre;"> </span>Visual database designer and editor<br />
•<span class="Apple-tab-span" style="white-space: pre;"> </span>Create / Manage Tables in VS Server Explorer<br />
•<span class="Apple-tab-span" style="white-space: pre;"> </span>EF Connecter for dot net 4<br />
<br />
Download here for VS 2010/ Dot Net FW 4/x86:<br />
http://system.data.sqlite.org/downloads/1.0.81.0/sqlite-netFx40-static-binary-bundle-Win32-2010-1.0.81.0.zip<br />
<br />
For other versions/ editions:<br />
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki<br />
<br />
thanks!<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-kwg5LuIedP4/UDTZBPZ658I/AAAAAAAAGc0/XxKDTMI7rYc/s1600/SQLite_Logo-3e5453f0a4c3e6f5.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-kwg5LuIedP4/UDTZBPZ658I/AAAAAAAAGc0/XxKDTMI7rYc/s1600/SQLite_Logo-3e5453f0a4c3e6f5.gif" /></a></div>
<br />
<br />
~ Sumit Pranav<br />
<div>
<br /></div>
Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-81670989808428811582012-07-27T14:25:00.002+05:302012-07-27T14:25:22.535+05:30My experience with MonoTouch that allows development of iOS apps with C# and .NET<br />
<div class="MsoNormal">
<span style="color: #1f497d; font-family: "Calibri","sans-serif"; font-size: 11.0pt;">I have tried my hands on <a href="http://xamarin.com/monotouch/">monotouch</a> that allows iPhone and iPad
apps with C# and .NET.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d; font-family: "Calibri","sans-serif"; font-size: 11.0pt;">My experience had not been good, few of the reasons below:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<ul>
<li><span style="background-color: white; color: #1f497d; font-family: Symbol; font-size: 11pt; text-indent: -0.25in;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt; text-indent: -0.25in;">It has own IDE which is slow and crashes at times</span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Symbol; font-size: 11pt; text-indent: -0.25in;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt; text-indent: -0.25in;">It’s SDK does not support all the native functionalities</span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Symbol; font-size: 11pt; text-indent: -0.25in;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt; text-indent: -0.25in;">Code, once written for iPad needs rewrite of many components
(specially UI) to port it on Android.</span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;">(The advantage of sharing code between
Mono for Android and MonoTouch applications is greatly diluted because the UI
definitions, proprietary SDK function calls, and even resource assets are
mostly specific to each target platform.)</span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Symbol; font-size: 11pt; text-indent: -0.25in;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt; text-indent: -0.25in;">The bulky Mono runtime that has to be either compiled into the
application's resource bundle or installed as a separate runtime adds
considerable overhead and start-up time, especially for small applications.</span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Symbol; font-size: 11pt; text-indent: -0.25in;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt; text-indent: -0.25in;">Learning - development on monotouch for android and iOS is not
straight forward, it needs the developer to be familiar to native development
concepts of both of these platforms (like, Activities, Intents, UIControllers,
View, Sub-view, NavigationControllers, …)</span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;"> </span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;">But, monotoch for iOS and Android generates nearly true native
code that’s a plus.</span></li>
<li><span style="background-color: white; color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;">Monotouch suits a use
case where we want a native app and we don’t have objective c developers.</span></li>
</ul>
<!--[if !supportLists]--><br />
<div style="margin-left: 1em; margin-right: 1em; text-align: center; text-indent: -24px;">
<a href="http://2.bp.blogspot.com/-ysCX_SiZlxI/UBJXQlxAk1I/AAAAAAAAGYE/GJZEwZm94Hw/s1600/monotouch-200.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-ysCX_SiZlxI/UBJXQlxAk1I/AAAAAAAAGYE/GJZEwZm94Hw/s1600/monotouch-200.png" /></a></div>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-68617013797487654482012-07-27T14:15:00.004+05:302012-07-27T14:16:31.212+05:30Modernize Your Dev<span style="text-align: left;"><span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;"><span style="font-size: 12.727272033691406px; line-height: 15.454545021057129px;">Modernize Your Dev</span></span><span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: x-small;"><span style="line-height: 15px;"><br /></span></span></span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">• ASP.NET MVC</span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">- Maturation of your .NET Roots</span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">• Client-side Development</span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">- Do more in the browser</span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">• Abandon Post-back and ViewState</span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">- Client-side network calls are here to stay</span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">• Separate Concerns</span><br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;">- Don’t Comingle Markup, Design and Code</span>
<br />
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;"><br /></span><br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-dxlDf9dcveU/UBJVAdZ-6UI/AAAAAAAAGX8/WPBSiDrs18A/s1600/application-development.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="266" src="http://2.bp.blogspot.com/-dxlDf9dcveU/UBJVAdZ-6UI/AAAAAAAAGX8/WPBSiDrs18A/s400/application-development.jpg" width="400" /></a></div>
<span style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12.727272033691406px; line-height: 15.454545021057129px; text-align: left;"><br /></span>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-76460341672175344772012-06-26T11:30:00.000+05:302012-06-26T11:30:04.786+05:30DNS Changer Malware- its effects and how to secure your computer from this<br />
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;">DNSChanger
Malware has been infecting computers from November last year.<o:p></o:p></span></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;">The
roughly half a million devices are still infected with DNSChanger</span>.<o:p></o:p></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<br /></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="background-color: white; color: #3b3b3c; font-family: Georgia, serif;">Infected machines had their Domain Name System settings
altered so websites would redirect to servers controlled by the criminals. The
scammers reportedly earned millions in affiliate and referral fees by diverting
users through those sites.</span><o:p></o:p></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<br /></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;">Computers
affected with this Trojan will not be able to access Internet after 9th July.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;">If
infected machines are not fixed by then, their Internet connections will go dark.<o:p></o:p></span></div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; line-height: 17.25pt; margin: 0in 0in 0.0001pt; outline: 0px; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;">On Google, infected computers will see a warning atop their
screen when completing a search (see below).</span><span class="apple-converted-space"><span style="color: #3b3b3c; font-family: Georgia, serif;"> </span></span><span class="apple-converted-space"><span style="color: #3b3b3c; font-family: Georgia, serif;"><br />
<br />
</span></span><span style="color: #3b3b3c; font-family: Georgia, serif;"><o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www1.pcmag.com/media/images/346119-dnschanger-google-warning.jpg?thumb=y" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www1.pcmag.com/media/images/346119-dnschanger-google-warning.jpg?thumb=y" /></a></div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; line-height: 17.25pt; margin: 0in 0in 0.0001pt; outline: 0px; vertical-align: baseline;">
<span class="apple-converted-space"><span style="color: #3b3b3c; font-family: Georgia, serif;"><br /></span></span></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;">Read
more about this Malware and how to check whether your computer has been
infected by this here in FBI’s Publication<o:p></o:p></span></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;"><br /></span></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<span style="color: #3b3b3c; font-family: Georgia, serif;"><a href="http://www.fbi.gov/news/stories/2011/november/malware_110911/DNS-changer-malware.pdf">http://www.fbi.gov/news/stories/2011/november/malware_110911/DNS-changer-malware.pdf<o:p></o:p></a></span></div>
<div style="background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;">
<br /></div>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-73112173683683852792012-06-26T11:28:00.003+05:302012-06-26T11:28:56.732+05:30Canvas vs. SVG<br />
<div class="MsoNormal" style="background: white; line-height: 15.0pt; margin-bottom: 12.0pt; margin-left: 0in; margin-right: 0in; margin-top: 2.25pt;">
<b><span style="color: #260859; font-family: "Segoe UI Semibold","sans-serif"; font-size: 12.0pt;">Canvas vs. SVG<o:p></o:p></span></b></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt;">
<span style="background: white; color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">With the advent of Canvas and SVG (scalable vector graphics),
developers now have better choices for doing graphics on the Web than in the
past.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt;">
<span style="background: white; color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Before Canvas, plug-ins such as Flash or Silverlight were the
standard way to create animations on the Web. The alternative was to create a
collection of good old-fashioned HTML, JavaScript and images, and bundle them
into a collection of moving parts—a tedious task at best.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt; margin-bottom: 9.0pt;">
<span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Two primary types of graphics are used on the Web:<o:p></o:p></span></div>
<div class="MsoListParagraph" style="background: white; line-height: 12.0pt; margin-bottom: 9.0pt; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Raster graphics are arrays of pixels arranged on a grid,
also known as a bitmap. Common raster file extensions are .jpg, .bmp, .png,
.tiff and .psd. Because Canvas uses pixels, it is raster based.<o:p></o:p></span></div>
<div class="MsoListParagraph" style="background: white; line-height: 12.0pt; margin-bottom: 9.0pt; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Vector graphics use mathematical metadata contained in a
file to describe the graphic. The V in SVG stands for vector.
Common vector file types are .svg, .eps and .xps.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt; margin-bottom: 12.0pt;">
<span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Canvas and SVG have a few features in common. Both Canvas and
SVG have an Open Source library ecosystem, and you never need plug-ins for
either technology.<br />
<br />
Side-by-side comparison of common Canvas and SVG characteristics.<o:p></o:p></span></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-collapse: collapse; width: 619px;">
<tbody>
<tr>
<td style="border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="border: none windowtext 1.0pt; color: #984807; font-size: 10.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">Canvas</span></b><b><span style="color: #984807; font-size: 10.0pt;"><o:p></o:p></span></b></div>
</td>
<td style="border-left: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="border: none windowtext 1.0pt; color: #984807; font-size: 10.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">SVG</span></b><b><span style="color: #984807; font-size: 10.0pt;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Single DOM element<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Multiple DOM elements<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Script language<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Markup language<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Raster graphics<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Vector graphics<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">No file format<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">.svg file format<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Must reset canvas to change drawn shape<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Can edit shapes after drawing<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Not accessible<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Accessible<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Doesn’t support event handlers<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Supports event handlers<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Non-searchable, can’t index<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Searchable, can index<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Non-compressible<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Compressible<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid silver 1.0pt; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">Can use hardware acceleration<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; padding: 2.25pt 2.25pt 2.25pt 2.25pt;" valign="top">
<div class="MsoNormal" style="line-height: 12.0pt;">
<b><span style="color: #333333; font-size: 10.0pt;">No hardware acceleration<o:p></o:p></span></b></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background: white; line-height: 12.0pt; margin-bottom: 9.0pt;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt; margin-bottom: 9.0pt;">
<b><span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Canvas tends to be well suited for highly interactive games,
especially when combined with Internet Explorer 9 GPU offloading. <br />
</span></b><span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Canvas is a great choice for image editing, and although you
can’t edit <canvas>, you can save the context state to allow the user to
undo actions, essentially to do real-time editing.<o:p></o:p></canvas></span></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt; margin-bottom: 9.0pt;">
<b><span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">SVG is great for graphic basics such as displaying a
resolution-independent company logo that scales to any screen size without
pixel distortion</span></b><span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">. <br />
Fractals and Mandelbrot sets are just two types of complex data visualizations
that are well suited for SVG.</span></div>
<div class="MsoNormal" style="background: white; line-height: 12.0pt; margin-bottom: 9.0pt;">
<span style="color: #333333; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><br /></span></div>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-17573299984311688202012-05-16T12:22:00.000+05:302012-05-16T12:22:17.889+05:30HTML boilerplate code to start your mobile supported HTML projectCheck out this HTML boilerplate code to start your mobile supported HTML project <a href="http://html5boilerplate.com/">http://html5boilerplate.com/</a>Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-16234303641998302842012-05-16T12:14:00.002+05:302012-05-16T12:14:25.318+05:30Paper.js an excellent HTML5 vector drawing scripting libraryI came across this excellent HTML5 vector drawing scripting library called paper.js.<br />
<br />
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; font-size: 13px; line-height: 20px;">Paper.js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas. It offers a clean Scene Graph / Document Object Model and a lot of powerful functionality to create and work with vector graphics and bezier curves, all neatly wrapped up in a well designed, consistent and clean programming interface.</span>
<br />
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br />
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; font-size: 13px; line-height: 20px;">See some wonderful examples here:</span><br />
<a href="http://paperjs.org/examples/">http://paperjs.org/examples/</a>
<br />
<br />
Download source from here at github<br />
<a href="https://github.com/paperjs/paper.js">https://github.com/paperjs/paper.js</a>
<br />
<br />Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-51891393077414612762012-05-08T13:20:00.001+05:302012-05-08T13:20:08.104+05:30Excellent JS playground to test your Java Script code with third party libraries<br />
Found this excellent JS playground to test your Java Script code with
different third party libraries
<br />
<a href="http://jsfiddle.net/">http://jsfiddle.net/</a>
<br />
You can also save your code and share with the world, like this Knowckoutjs
sample code:
<br />
<a href="http://jsfiddle.net/jimrhoskins/GCscS/2/">http://jsfiddle.net/jimrhoskins/GCscS/2/</a>
<br />
thanks!
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-5iVfgXJPOF8/T6jQILxnwtI/AAAAAAAAF3Q/wR34kfz784c/s1600/WikiBookTitel_JavaScript.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-5iVfgXJPOF8/T6jQILxnwtI/AAAAAAAAF3Q/wR34kfz784c/s320/WikiBookTitel_JavaScript.jpg" width="320" /></a></div>
<br />
-Sumit Pranav<br />Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-33666376899468381742012-03-22T18:45:00.000+05:302012-03-22T18:45:54.802+05:30Generating Tag Cloud in ASP.net /C#Tag Cloud or Word Cloud is used to show frequency of words or phrases on your website or in some content.<br />
Here is what this Tag Cloud will look like:<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-c9VPToloTNc/T2sU14k8azI/AAAAAAAAFJ4/YHFk_uQJW5Y/s1600/TagCloud.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="148" src="http://3.bp.blogspot.com/-c9VPToloTNc/T2sU14k8azI/AAAAAAAAFJ4/YHFk_uQJW5Y/s320/TagCloud.png" width="320" /></a></div><div class="separator" style="clear: both; text-align: left;">//Add this code in your solution:</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"></div><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"><span style="color: blue;">public</span> <span style="color: blue;">class</span> <span style="color: #2b91af;">TagCloudGenerator</span>
{
<span style="color: blue;">public</span> <span style="color: blue;">string</span> GetTagCloudHTML(<span style="color: #2b91af;">Dictionary</span><<span style="color: blue;">string</span>, <span style="color: blue;">int</span>> tagNameWithFrequesncies)
{
<span style="color: #2b91af;">StringBuilder</span> tagCloudString = <span style="color: blue;">new</span> <span style="color: #2b91af;">StringBuilder</span>(<span style="color: #a31515;">"<div class='tagcloud'>"</div class='tagcloud'></span>);
<span style="color: blue;">int</span> highestFrequency = tagNameWithFrequesncies.Values.Max();
<span style="color: blue;">int</span> counter =1;
<span style="color: blue;">foreach</span> (<span style="color: blue;">string</span> tag <span style="color: blue;">in</span> tagNameWithFrequesncies.Keys)
{
<span style="color: blue;">string</span> tagClass = GetTagClass(tagNameWithFrequesncies[tag], highestFrequency);
<span style="color: green;">//TODO: need to set proper URL where links should redirect to</span>
<span style="color: blue;">string</span> targetUrl = <span style="color: #a31515;">"http://abc.com/filter="</span> + tag;
<span style="color: blue;">string</span> tagItem = <span style="color: #a31515;">"<span id='"< span=""> + counter + <span style="color: #a31515;">"' class='"</span> + tagClass + <span style="color: #a31515;">"'><a href='"< span=""> + targetUrl + <span style="color: #a31515;">"'>"</span> + tag + <span style="color: #a31515;">"</span>"</a href='"<></span>;
tagCloudString.Append(tagItem);
}
tagCloudString.Append(<span style="color: #a31515;">""</span>);
<span style="color: blue;">return</span> tagCloudString.ToString();
}
<span style="color: blue;">public</span> <span style="color: blue;">string</span> GetTagClass(<span style="color: blue;">int</span> tagFrequency, <span style="color: blue;">int</span> highestFrequency)
{
<span style="color: blue;">if</span>(tagFrequency == 0 || highestFrequency ==0)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag0"</span>;
<span style="color: blue;">var</span> percentageFrequency = (tagFrequency * 100) / highestFrequency;
<span style="color: blue;">if</span> (percentageFrequency >= 90)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag90"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 80)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag80"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 70 )
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag70"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 60)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag60"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 50)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag50"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 40)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag40"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 30)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag30"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 20)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag20"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 10)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag10"</span>;
<span style="color: blue;">if</span> (percentageFrequency >= 1)
<span style="color: blue;">return</span> <span style="color: #a31515;">"tag1"</span>;
</span id='"<></span></pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;">// This is the required code to be placed in the Page where you want to generate Tag cloud </pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"></pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"><span style="color: blue;">protected</span> <span style="color: blue;">void</span> Page_Load(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)
{
<span style="color: #2b91af;">Dictionary</span><<span style="color: blue;">string</span>, <span style="color: blue;">int</span>> categoryTags = <span style="color: blue;">new</span> <span style="color: #2b91af;">Dictionary</span><<span style="color: blue;">string</span>,<span style="color: blue;">int</span>>();
categoryTags.Add(<span style="color: #a31515;">"Science"</span>, 100);
categoryTags.Add(<span style="color: #a31515;">"Maths"</span>, 80);
categoryTags.Add(<span style="color: #a31515;">"Biology"</span>, 190);
categoryTags.Add(<span style="color: #a31515;">"Physics"</span>, 70);
categoryTags.Add(<span style="color: #a31515;">"Commerce"</span>, 60);
categoryTags.Add(<span style="color: #a31515;">"Behavioral Science"</span>, 90);
categoryTags.Add(<span style="color: #a31515;">"Psychology"</span>, 40);
categoryTags.Add(<span style="color: #a31515;">"Numismatics"</span>, 43);
categoryTags.Add(<span style="color: #a31515;">"Philately"</span>, 45);
categoryTags.Add(<span style="color: #a31515;">"English"</span>, 28);
categoryTags.Add(<span style="color: #a31515;">"Hindi"</span>, 145);
categoryTags.Add(<span style="color: #a31515;">"Oriya"</span>, 40);
categoryTags.Add(<span style="color: #a31515;">"French"</span>, 10);
categoryTags.Add(<span style="color: #a31515;">"German"</span>, 9);
categoryTags.Add(<span style="color: #a31515;">"Sanskrit"</span>, 8);
categoryTags.Add(<span style="color: #a31515;">"Telugu"</span>, 20);
categoryTags.Add(<span style="color: #a31515;">"Kannara"</span>, 2);
categoryTags.Add(<span style="color: #a31515;">"Malyalam"</span>, 1);
categoryTags.Add(<span style="color: #a31515;">"Pongal"</span>, 0);
categoryTags.Add(<span style="color: #a31515;">"Earth Sciences"</span>, 90);
tag.InnerHtml = <span style="color: blue;">new</span> <span style="color: #2b91af;">TagCloudGenerator</span>().GetTagCloudHTML(categoryTags);
}</pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"></pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;">// This is the CSS Style you need for rendering Tag Cloud</pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;">// Put this is the head section of your ASPX /HTML page </pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"></pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"><span style="color: blue;"><</span><span style="color: maroon;">style</span> <span style="color: red;">type</span><span style="color: blue;">=</span><span style="color: blue;">"text/css"</span><span style="color: blue;">></span>
<span style="color: maroon;">.tagCloud</span>
{
<span style="color: red;">width</span>:<span style="color: blue;">400px</span>;
<span style="color: red;">height</span>:<span style="color: blue;">auto</span>;
<span style="color: red;">border</span>:<span style="color: blue;">1px</span> <span style="color: blue;">solid</span> <span style="color: blue;">black</span>;
<span style="color: red;">font-family</span>:<span style="color: blue;">Arial</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">10px</span>;
}
</pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"> <span style="color: maroon;">.tagCloud</span> <span style="color: maroon;">span</span>
{
<span style="color: red;">display</span>:<span style="color: blue;">inline-block</span>;
<span style="color: red;">vertical-align</span>:<span style="color: blue;">middle</span>
}
<span style="color: maroon;">.tagCloud</span> <span style="color: maroon;">a</span>
{
<span style="color: red;">text-decoration</span>:<span style="color: blue;">none</span>;
}
<span style="color: maroon;">.tagCloud</span> <span style="color: maroon;">a:hover</span>
{
<span style="color: red;">text-decoration</span>:<span style="color: blue;">underline</span>;
<span style="color: red;">background-color</span>:<span style="color: blue;">Blue</span>;
<span style="color: red;">color</span>:<span style="color: blue;">White</span>;
}
<span style="color: maroon;">.tag0</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">0pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag1</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">8pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag10</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">10pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag20</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">12pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag30</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">14pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag40</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">16pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag50</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">18pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag60</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">20pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag70</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">22pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag80</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">24pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
<span style="color: maroon;">.tag90</span>
{
<span style="color: red;">font-size</span>:<span style="color: blue;">30pt</span>;
<span style="color: red;">padding</span>:<span style="color: blue;">5px</span>;
}
</pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"><span style="background-color: white;"> </span><span style="background-color: white; color: blue;"><span style="background-color: white; color: maroon;">style</span><span style="background-color: white; color: blue;">></span> </span></pre><span style="color: blue;">return</span> <span style="color: #a31515;">"tag0"</span>;
}
}</pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"></pre><pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;"></pre><br />
<br />
Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-22693988216102707532011-11-29T11:49:00.001+05:302011-11-29T11:49:18.965+05:30unigo.com–One of the the Top ten Information website for colleges<p>I found a very interesting website that has authoritative information about most of the US colleges and universities - <a href="http://www.unigo.com/">http://www.unigo.com/</a></p> <p>Students and teachers have published voluminous content about the college and college life on this website. So this gives an insider story of the academic institutions.</p> <p>USA Today says about Unigo- </p> <blockquote> <p><strong>"Millions of students have used Unigo to assist in their college search."</strong></p></blockquote> <p>The NY Times says-</p> <blockquote> <p><strong>"One measure of an idea's greatness is how obvious it seems in retrospect... Unigo's college advice and reviews are vivid in a way no guidebook can match."</strong></p></blockquote> <p>The Wall street Journal says-</p> <blockquote> <p><strong>"Unigo is a college resource built for the age of YouTube and Facebook."</strong></p></blockquote> <p>Unigo has 50 times the college content of any book or website that already exists.</p> <p>“An improved future for college planning ... offers fascinating slices of college life."</p> <p>"One of the top ten college websites."</p> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-84854478146551581332011-11-28T12:59:00.001+05:302011-11-28T12:59:46.380+05:30Tech Buzzwords that's selected as Words of the year - 2011 by Oxford Dictionary<ul> <li><strong>Arab Spring</strong>: A series of anti-government uprisings in various countries in North Africa and the Middle East, beginning in Tunisia in December 2010. <li><strong>Bunga bunga</strong>: Used in reference to parties hosted by the former Italian prime minister Silvio Berlusconi, at which various illicit sexual activities were alleged to have taken place. <li><strong>Clicktivism</strong>: The use of social media and other online methods to promote a cause. <li><strong>Crowdfunding</strong>: The practice of funding a project or venture by raising many small amounts of money from a large number of people, typically via the Internet. <li><strong>Fracking</strong>: The forcing open of fissures in subterranean rocks by introducing liquid at high pressure, especially to extract oil or gas. <li><strong>Gamification</strong>: The application of concepts and techniques from games to other areas of activity, for instance as an online marketing technique. <li><strong>Occupy</strong>: The name given to an international movement protesting against perceived economic injustice by occupying buildings or public places and staying there for an extended period of time. <li><strong>The 99%</strong>: The bottom 99% of income earners, regarded collectively. <li><strong>Tiger mother</strong>: A demanding mother who pushes her children to high achievement using methods regarded as typical of Asian childrearing. <li><strong>Sifi</strong>: A bank or other financial institution regarded as so vital to the functioning of the overall economy that it cannot be allowed to fail, a.k.a. “systemically important financial institution.”</li></ul> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-18408359859457406842011-11-18T13:32:00.001+05:302011-11-18T13:32:36.427+05:30SysInternal tools for Windows- Power Users<p><a href="http://technet.microsoft.com/en-us/sysinternals">http://technet.microsoft.com/en-us/sysinternals</a></p> <p>The Sysinternals web site was created in 1996 by <a href="http://blogs.technet.com/markrussinovich/about.aspx">Mark Russinovich</a> and Bryce Cogswell to host their advanced system utilities and technical information. Whether you’re an IT Pro or a developer, you’ll find Sysinternals utilities to help you manage, troubleshoot and diagnose your Windows systems and applications.</p> <p>These system tools are very productive and informative about the system. I personally use them and recommend every techy user to use them.</p> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-43541027527498474932011-11-16T12:44:00.001+05:302011-11-16T12:44:07.281+05:30Does your copy paste stops working with remote desktop? Hers is the solution...<p>A very annoying occurrence that I sometimes suffer is when all of a sudden the copy and paste function stops working when I am connected to a remote machine. <p>Turns out the problem is coming from a little process called <b>rdpclip</b>. <p>Rdpclip (remote desktop clipboard) is responsible for managing a shared clipboard between your local host and the remote desktop (the process runs on the remote machine not your local host). <p><u>So here is the solution:</u> <p>On the remote machine- <ul> <li>Use Task Manager to kill the <b>rdpclip.exe</b> process</li> <li>Run <b>rdpclip.exe</b> to restart it</li></ul> <p>Or alternatively, Create a batch file with the following command and run it when this happens: <p>Taskkill.exe /im rdpclip.exe <br>Rdpclip.exe </p> <p>Hope this helps! <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh3.ggpht.com/-fWW41SMQozE/TsNivEgfFQI/AAAAAAAAEyY/xu_iIUkFp3U/wlEmoticon-smile%25255B2%25255D.png?imgmax=800"></p> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-54223079784399475042011-11-15T15:39:00.001+05:302011-11-15T15:39:56.436+05:30List of virtual communities with more than 100 million users<p>List of virtual communities with more than 100 million users <p>This is a list of all <a href="http://en.wikipedia.org/wiki/Virtual_community">virtual communities</a> with more than 100 million active users.</p> <p> <table border="1" cellspacing="0" cellpadding="0"> <tbody> <tr> <td> <p><b>Name</b></p></td> <td> <p><b>Active user accounts</b></p></td> <td> <p><b>Date</b></p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Tencent_QQ">Tencent QQ</a></p></td> <td> <p>674 million </p></td> <td> <p>August 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Facebook">Facebook</a></p></td> <td> <p>800+ million</p></td> <td> <p>September 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Qzone">Qzone</a></p></td> <td> <p>480 million</p></td> <td> <p>March 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Netease">Netease</a></p></td> <td> <p>360 million</p></td> <td> <p>May 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Windows_Live_Messenger">Windows Live Messenger</a></p></td> <td> <p>330+ million</p></td> <td> <p>June 2009</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Tencent_Weibo">Tencent Weibo</a></p></td> <td> <p>233 million</p></td> <td> <p>August 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Habbo">Habbo</a></p></td> <td> <p>230 million</p></td> <td> <p>September 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Twitter">Twitter</a></p></td> <td> <p>360+ million</p></td> <td> <p>August 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Skype">Skype</a></p></td> <td> <p>145 million</p></td> <td> <p>March 2010</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Vkontakte">Vkontakte</a></p></td> <td> <p>140+ million </p></td> <td> <p>October 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Badoo">Badoo</a></p></td> <td> <p>121+ million</p></td> <td> <p>July 2011</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Orkut">Orkut</a></p></td> <td> <p>120+ million </p></td> <td> <p>August 2010</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/Bebo">Bebo</a></p></td> <td> <p>117 million</p></td> <td> <p>July 2010</p></td></tr> <tr> <td> <p><a href="http://en.wikipedia.org/wiki/LinkedIn">LinkedIn</a></p></td> <td> <p>100+ million</p></td> <td> <p>March 2011</p></td></tr></tbody></table></p> <p>Ref. – <a href="http://en.wikipedia.org/wiki/List_of_virtual_communities_with_more_than_100_million_users">Wikipedia</a></p> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-46235477856658257142011-11-10T11:53:00.001+05:302011-11-10T11:53:27.232+05:30Author complete Mobile Applications for Android and I Phone in Java Script!<p>Did you know that you can author <b>complete Mobile Applications for Android, IPhone and other mobile platforms in Java Script</b>? <p>There are two major Application Development frameworks available today that let you author mobile applications in Java Script: <ol> <li><a href="http://www.phonegap.com">PhoneGap</a></li> <li><a href="http://www.appcelerator.com/">appcelerator</a></li></ol> <p><strong>PhoneGap</strong> is an HTML5 app platform that allows you to author native mobile applications with web technologies and get access to APIs and app stores. PhoneGap leverages web technologies developers already know best... HTML and JavaScript. <p><a href="http://www.appcelerator.com/">appcelerator.com</a> has released a Java Script SDK and a small IDE in which you write code in pure HTML/CSS/JS and it compiles mobile apps for you out of it. <p>The compiled code is nothing but native mobile code that you could write in Java (for Android) or Objective C (for I phone/I pad) <p>The Same code can also be compiled in to a Desktop Application. <p>The extend JS library of this supports full File System access and other all sorts of features that’s available in a standard desktop app. <p>If you are expert in JS libraries like JQuery, DOJO, YUI etc. you are with an advantage!! <p>I gave it a trial and results are quite exciting, although the IDE is in its infancy. <p>Give it a try!!</p> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-35698987517787625272011-10-28T14:49:00.001+05:302011-10-28T14:49:43.547+05:3020 Best Practices for Speeding up Your Website<p>1. Make fewer HTTP requests<br>• Use CSS Image Sprites & Image Maps<br>• Combine multiple script/css files into one<br>• Use inline embedded images in the HTML</p> <p>2. Use a CDN<br>3. Add an Expires or a Cache-Control Header<br>4. Gzip components<br>5. Put stylesheets at the top & scripts at the bottom<br>6. Make JavaScript and CSS external<br>7. Reduce DNS lookups<br>8. Minify JavaScript, CSS and HTML<br>9. Avoid Redirects<br>10. Make Ajax cacheable<br>11. Remove duplicate scripts<br>12. Configure ETags<br>13. Use GET for AJAX Requests<br>14. Post-load Components<br>15. Preload Components<br>16. Reduce the Number of DOM Elements and events<br>17. Split Components Across Domains<br>18. Minimize the Number of iframes<br>19. Optimize Images<br>20. Keep Components under 25K</p> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-83349770006803194492011-10-28T12:57:00.001+05:302011-10-28T12:57:59.646+05:30Spectrum of Modern Web Applications<p>I am more fascinated these days with the new approaches developers are discovering to author modern web aps. Java Script and JQuery is the center of the attraction in all the approaches. Sharing here, the summary of what I read in the documentation of a Microsoft initiative called <a href="http://www.microsoft.com/download/en/details.aspx?id=27290">Project Silk</a> to author modern web aps..</p> <p><a href="mk:@MSITStore:C:%5CProgram%20Files%5CSilk%20RTM%5CSilk.chm::/html/#" name="Spectrum"></a> <h3>Spectrum of Web Applications</h3> <p>There is a spectrum of web applications being built today that can be grouped into four application types. These types of web applications are categorized by their full-page reload behavior and the amount of client-side interactivity they provide. Each application type provides a richer experience than the one listed before it. <ul> <li><b>Static</b> <b>sites</b>. These consist of static HTML pages, CSS, and images. They are static in that as each page is navigated to, the browser performs a full-page reload and there is no interaction with portions of the page. In addition, the page does not change no matter who requests it or when. <li><b>Server rendered</b>. In this model, the server dynamically assembles the pages from one or more source files and can incorporate data from another source during the rendering. The client-side script in these applications might perform some data validation, simple hover effects, or Ajax calls. As each page is navigated to, the browser performs a full-page reload. ASP.NET applications that don't make heavy use of client-side JavaScript are examples of server-rendered web applications. <li><b>Hybrid design</b>. This model is similar to the server-rendered web application, except that it relies heavily on client-side JavaScript to deliver an engaging experience. This type of application has islands of interactivity within the site that do not require full-page reloads to change the UI as well as some pages that do require a full-page reload. Mileage Stats is an example of a hybrid design. <li><b>Single-page interface</b>. In this model, a full-page load happens only once. From that point on, all page changes and data loading is performed without a full-page reload. Hotmail, Office Live, and Twitter are examples of single-page-interface web applications. </li></ul><a href="mk:@MSITStore:C:%5CProgram%20Files%5CSilk%20RTM%5CSilk.chm::/html/#" name="CharacteristicsWeb"></a> <h3>Characteristics of Modern Web Applications</h3> <p>While there are many types of modern web applications, addressing many different needs, they all have some characteristics in common. <ul> <li><b>They are standards-focused</b>. To have the broadest reach across multiple platforms and devices, applications attempt to implement the current and evolving standards and adopt future standards once ratified. <li><b>They are interactive</b>. Modern web applications keep the user engaged by providing constant feedback on their actions. This feedback can come in the form of messages, animations to hide or show elements, mouse-over effects, drag and drop feedback, the automatic refreshing of screen data, animation of various elements, or the implementation of fade-in or fade-out effects. Interactive applications leverage the fast JavaScript engines in modern browsers to perform their client-side tasks. <li><b>They limit full-page reloads</b>. Modern web applications seek to limit the number of full-page reloads. Reloads are much slower than a localized Ajax call to update a portion of the UI. Full-page reloads also limit the ability to animate state or page changes. By not performing a full-page reload, users can be kept in context, providing a fluid experience as they navigate from one task to another. <li><b>They are asynchronous</b>. Modern web applications use Ajax to dynamically load data, page fragments, or other assets instead of performing a full-page reload to acquire data or HTML content. Because the loading of data is asynchronous, the UI is able to stay responsive and keep the user informed while the data request is being fulfilled. This asynchronous on-demand loading also reduces application response time because requests can be tuned to return only the data and other content that needs to change. <li><b>They manage data.</b> When applicable, modern web applications provide client-side data caching and prefetching to boost client-side performance. This enables the UI to immediately respond to user input gestures because it does not have to make a call to the server for data. Data caching also serves to minimize the impact on server resources, increasing application scalability because fewer calls to the server are required. </li></ul> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-81248389396145337852011-10-18T12:42:00.001+05:302011-10-18T12:42:34.354+05:30Top 10 New Features in SQL Server Denali<p>I will be writing on SQL Server 12 or Code name Denali in the coming few posts.<br><br>The next release of Microsoft SQL Server 12 or code-named Denali, is the buzz now a days. Microsoft has just released Denali CTP3, and the final release is expected by the end of the year. Denali continues SQL Server's efforts into the enterprise with a number of important features. Here are the top 10 most significant new features in the SQL Server Denali release.</p> <p><strong>10. SQL Server Developer Tools—</strong>One of the most obvious improvements in SQL Server Denali is the new development environment, SQL Server Developer Tools, coded-named Juneau. Juneau uses the Windows Presentation Foundation (WPF)–based Visual Studio 2010 shell, and it unifies development for Business Intelligence Development Studio (BIDS) and Visual Studio. One goal for Juneau is to make the development environment consistent for both SQL Azure and the on-premises version of SQL Server.</p> <p><strong>9. Contained databases—</strong>Contained databases make it easy to move databases between different instances of SQL Server. With Denali, login credentials are included with contained databases. Users don't need logins for the SQL Server instance because all authentications are handled by the contained database. Contained databases have no configuration dependencies on the instance of SQL Server that they're hosted on and can be moved between on-premises SQL Server instances and SQL Azure.<br><br><strong>8. Project "Crescent"—</strong>The new data visualization tool, code-named Project "Crescent," is Closely integrated with SharePoint 2010 and Silverlight. Microsoft has called the Crescent feature "PowerPoint for your data." Crescent makes it easy for users to create great-looking data pages and dashboards by using data models that are built using PowerPivot or from tabular data from SQL Server Analysis Services.<br><br><strong>7. Data Quality Services—</strong>Valid data is critical for making effective business intelligence (BI) decisions. Data Quality Services lets you set up a knowledge base that defines your metadata rules. You can then run Data Quality Services projects to apply those rules to data stored in a SQL Server data source. The Data Quality Services projects cleanse the data and allow viewing of good, invalid, and corrected rows.<br><br><strong>6. User-defined server roles—</strong>An important security-related feature in Denali is the addition of user-defined severs roles. Earlier releases had fixed server roles that were predefined by Microsoft. These roles covered most situations, but they weren't as flexible or granular as some organizations wanted. The new user-defined server roles give organizations more control and customization ability over SQL Server's server roles.<br><strong><br>5. Change data capture (CDC) for Oracle—</strong>CDC lets you keep large tables in sync by initially moving a snapshot to a target server, then moving just the captured changes between the databases. With the SQL Server 2008 release, CDC was limited to SQL Server, but many organizations also have other database platforms they want to use CDC with. A big improvement in the Denali release is the addition of CDC for Oracle.<br><br><strong>4. T-SQL enhancements—</strong>Two of the most important T-SQL enhancements in Denali are the addition of the Sequence object and the window functions. Unlike the similar Identity column, Sequence lets you tie unique row identifiers across multiple tables. The new window functions apply to sets of rows using the new OVER clause. You can read more about window functions in <a href="http://www.sqlmag.com/blog/puzzled-by-t-sql-blog-15/tsql/window-functions-over-clause--help-make-a-difference-136840">"Window Functions (OVER Clause)—Help Make a Difference."</a><br><br><strong>3. Columnar store index—</strong>The columnar store index or, as it is sometimes called, the column-based query accelerator, uses the same high performance/high compression technology that Microsoft uses in PowerPivot, and it brings that technology into the database engine. Indexed data is stored according to the data of each column rather than by the rows, and only necessary columns are returned as query results for columnar indexes. Microsoft states this technology can provide up to 100 times improvement in query performance in some cases.<br><br><strong>2. Support for Windows Server Core—</strong>The ability to run SQL Server on Windows Server Core has been missing from previous releases of SQL Server. Server Core is designed for infrastructure applications such as SQL Server that provide back-end services but don't really need a GUI on the same server. Denali's support for Server Core enables leaner and more efficient SQL Server installations and at the same time reduces potential attack vectors and the need for patching.<br><br><strong>1. AlwaysOn—</strong>Without a doubt, the most important new feature in SQL Server Denali is the new SQL Server AlwaysOn feature. AlwaysOn is essentially the next evolution of database mirroring. AlwaysOn supports up to four replicas, the data in the replicas can be queried, and backups can be performed from the replicas. Although it's still early, AlwaysOn seems more complicated to set up than database mirroring because it requires Windows Failover Clustering, but the advantages appear to make it well worth the extra effort.</p> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-60981585315323901002011-10-09T21:07:00.001+05:302011-10-09T21:07:11.027+05:30Log Shipping vs. Mirroring vs. Snapshot vs. Replication in Databases<p>Recently, I have been taking more interests and started learning in Databases. I will keep sharing my deep dive learning outcomes in my blog. Keep following..</p> <table border="1" cellspacing="0" cellpadding="0"> <tbody> <tr> <td valign="top" width="109"> <p><b>Log Shipping</b></p></td> <td valign="top" width="529"> <p>Log Shipping is an old technique available since SQL SERVER 2000. Here the transactional log (ldf) is transferred periodically to the standby server. If the active server goes down, the stand by server can be brought up by restoring all shipped logs. <p>Usage Scenario: You can cope up with a longer down tim <p> <p>e. You have limited investments in terms of shared storage, switches, etc. <p>Log shipping is based on SQL Server Agent jobs that periodically take log backups of the primary database, copy the backup files to one or more secondary server instances, and restore the backups into the secondary database(s). <p>Log shipping supports an unlimited number of secondaries for each primary database. <p>Database mirroring is preferable to log shipping in most cases, although log shipping does have the following advantages: <p>1. it provides backup files as part of the process<br>2. multiple secondaries are supported<br>3. it is possible to introduce a fixed delay when applying logs to allow the secondary to be used for recovering from user error</p></td></tr> <tr> <td valign="top" width="109"> <p><b>Database Mirroring </b></p></td> <td valign="top" width="529"> <p>Database mirroring is functionality in the SQL Server engine that reads from the transaction log and copies transactions from the principal server instance to the mirror server instance. <p>Database mirroring can operate synchronously or asynchronously <p>If configured to operate synchronously, the transaction on the principal will not be committed until it is hardened to disk on the mirror. <p>Database mirroring also supports automatic failover if the principal database becomes unavailable. <p>The mirror database is always offline in a recovering state, but you can create snapshots of the mirror database to provide read access for reporting <p>which was introduced with 2005 edition, works on top of Log Shipping. Main difference is the uptime for the standby server is quite less in mirroring. Standby server automatically becomes active in this case (through help of a broker server which is called as Witness in SQL SERVER parlance), without having to restore logs (actually logs are continuously merged in this scenario – no wonder it’s called Mirror <a href="http://lh5.ggpht.com/-XQoJYPtzqes/TpG_odg-_TI/AAAAAAAAEgM/GQ83IritgTY/s1600-h/clip_image001%25255B3%25255D.gif"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://lh3.ggpht.com/-4t64dfH1Xpc/TpG_penM21I/AAAAAAAAEgQ/vU1s05Nkjkk/clip_image001_thumb.gif?imgmax=800" width="15" height="15"></a> ).</p></td></tr> <tr> <td valign="top" width="109"> <p><b>Snapshot</b></p></td> <td valign="top" width="529"> <p>Snapshot is a static read only picture of database at a given point of time. Snapshot is implemented by copying a Page (8KB for SQL SERVER) at a time. For e.g. assume you have a table in your DB, & you want to take a snapshot of it. You specify the physical coordinates for storing snapshot & when ever original table changes the affected rows are pushed first to the the snapshot & then changes happen to the DB. <p>Usage Scenario: You have a separate DB for report generation, and want to ensure that latest data for that is available. You can periodically take snapshot of your transactional database.</p></td></tr> <tr> <td valign="top" width="109"> <p><strong>Replication </strong></p></td> <td valign="top" width="529"> <p>Replication is used mainly when data centers are distributed geographically. It is used to replicate data from local servers to the main server in the central data center. Important thing to note here is, there are no standby servers. The publisher & subscriber both are active. <p>Usage Scenario: A typical scenario involves syncing local / regional lookup servers for better performance with the main server in data center periodically, or sync with a remote site for disaster recovery.</p></td></tr> <tr> <td valign="top" width="109"> <p><strong>Failover Clustering</strong></p></td> <td valign="top" width="529"> <p>Failover Clustering is a high availability option only (unlike others above which can be used for disaster recovery as well) used with clustering technology provided by hardware + OS. Here the data / databases don’t belong to either of servers, and in fact reside on shared external storage like SAN. Advantages of a SAN storage is large efficient hot pluggable disk storage. You might see DR options like Mirroring used quite frequently with failover clustering. Here’s a good <a href="http://www.sqlskills.com/BLOGS/PAUL/post/Adding-geo-redundancy-to-failover-clustering.aspx">article</a> on adding geo redundancy to a failover cluster setup.</p> <p><strong></strong></p></td></tr> <tr> <td valign="top" width="109"> <p><strong>Few links for further </strong><strong>Reference </strong></p></td> <td valign="top" width="529"> <p><a href="http://blogs.msdn.com/b/mikewat/archive/2007/07/28/database-mirroring-and-log-shipping-which-is-better.aspx">http://blogs.msdn.com/b/mikewat/archive/2007/07/28/database-mirroring-and-log-shipping-which-is-better.aspx</a> <p><a href="http://stackoverflow.com/questions/525637/what-are-the-scenarios-for-using-mirroring-log-shipping-replication-and-cluster">http://stackoverflow.com/questions/525637/what-are-the-scenarios-for-using-mirroring-log-shipping-replication-and-cluster</a> <p><a href="http://sqldbpool.com/2010/02/15/database-mirroring-vs-log-shipping/">http://sqldbpool.com/2010/02/15/database-mirroring-vs-log-shipping/</a> <p><a href="http://msdn.microsoft.com/en-us/library/ms187016.aspx">http://msdn.microsoft.com/en-us/library/ms187016.aspx</a> <p><a href="http://social.msdn.microsoft.com/Forums/en-US/sqldatabasemirroring/thread/ee05954e-0934-4305-8936-b9226e231d06/">http://social.msdn.microsoft.com/Forums/en-US/sqldatabasemirroring/thread/ee05954e-0934-4305-8936-b9226e231d06/</a> <p> </p></td></tr></tbody></table> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0tag:blogger.com,1999:blog-8898025443395701042.post-29372406004376949622011-05-25T11:58:00.001+05:302011-05-25T11:58:31.309+05:30How to handle missing Images in HTML<p>Try this simple code. Handle OnError event of Image-</p> <p><img src="<a href="http://www.satya-weblog.com/">http://www.satya-weblog.com/</a>image.png" height="100px" width="100px" onerror="this.src = '/image/item-no-image.png'" /></p> <p>Or-</p> <p><img src="<a href="http://www.satya-weblog.com/">http://www.satya-weblog.com/</a>image.png" height="100px" width="100px" onerror="handleMissingImg(this);" /></p> <ol style="padding-bottom: 10px; background-color: rgb(255,255,255); list-style-type: none !important; margin: 0px 0px 1px; padding-left: 0px; width: auto; padding-right: 0px; color: ; padding-top: 0px" class="dp-c"> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><span style="color: " class="keyword"><font color="#006699"><strong><font style="font-size: 9pt">function</font></strong></font></span><span style="color: "><font style="font-size: 9pt" color="#000000"> handleMissingImg(ele) </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font style="font-size: 9pt" color="#000000">{ </font></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> ele.src = </font></font><font style="font-size: 9pt"><span style="color: " class="string"><font color="#0000ff">'/image/item-no-image.png'</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000">; </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font style="font-size: 9pt" color="#000000">} </font></font></span></li></ol> <p>Or, you can also use this-</p> <ol style="padding-bottom: 10px; background-color: rgb(255,255,255); list-style-type: none !important; margin: 0px 0px 1px; padding-left: 0px; width: auto; padding-right: 0px; color: ; padding-top: 0px" class="dp-c"> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><span style="color: " class="keyword"><font color="#006699"><strong><font style="font-size: 9pt">function</font></strong></font></span><span style="color: "><font style="font-size: 9pt" color="#000000"> IsImageOk(img) { </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="comment"><font color="#008200">// During the onload event, IE correctly identifies any images that</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="comment"><font color="#008200">// weren't downloaded as not complete. Others should too. Gecko-based</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="comment"><font color="#008200">// browsers act like NS4 in that they report this incorrectly.</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="keyword"><font color="#006699"><strong>if</strong></font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> (!img.complete) { </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="keyword"><font color="#006699"><strong>return</strong></font></span><span style="color: "><font color="#000000"> </font></span><span style="color: " class="keyword"><font color="#006699"><strong>false</strong></font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000">; </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font style="font-size: 9pt" color="#000000"> } </font></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font style="font-size: 9pt" color="#000000"> </font></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="comment"><font color="#008200">// However, they do have two very useful properties: naturalWidth and</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="comment"><font color="#008200">// naturalHeight. These give the true size of the image. If it failed</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="comment"><font color="#008200">// to load, either of these should be zero.</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="keyword"><font color="#006699"><strong>if</strong></font></span><span style="color: "><font color="#000000"> (</font></span><span style="color: " class="keyword"><font color="#006699"><strong>typeof</strong></font></span><span style="color: "><font color="#000000"> img.naturalWidth != </font></span><span style="color: " class="string"><font color="#0000ff">"undefined"</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> && img.naturalWidth == 0) { </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="keyword"><font color="#006699"><strong>return</strong></font></span><span style="color: "><font color="#000000"> </font></span><span style="color: " class="keyword"><font color="#006699"><strong>false</strong></font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000">; </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font style="font-size: 9pt" color="#000000"> } </font></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="comment"><font color="#008200">// No other way of checking: assume it's ok.</font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000"> </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px"><span style="color: "><font face="Consolas"><font color="#000000"><font style="font-size: 9pt"> </font></font><font style="font-size: 9pt"><span style="color: " class="keyword"><font color="#006699"><strong>return</strong></font></span><span style="color: "><font color="#000000"> </font></span><span style="color: " class="keyword"><font color="#006699"><strong>true</strong></font></span></font><span style="color: "><font style="font-size: 9pt" color="#000000">; </font></span></font></span></li> <li style="list-style-position: inside; border-left: rgb(108,226,108) 0px solid; padding-bottom: 0px; line-height: 14px; border-right-width: 0px; background-color: rgb(255,255,255); margin: 0px 0px 8px; padding-left: 20px; padding-right: 0px; white-space: nowrap; border-top-width: 0px; border-bottom-width: 0px; padding-top: 0px" class="alt"><span style="color: "><font face="Consolas"><font style="font-size: 9pt" color="#000000">} </font></font></span></li></ol> Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.com0