<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ali Hamdar&#039;s Blog</title>
	<atom:link href="http://alihamdar.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alihamdar.com</link>
	<description>A blog covering the Web, Security, .NET and others</description>
	<lastBuildDate>Thu, 19 Jan 2012 21:15:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alihamdar.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/012ce8dfdccfabffe1677e46233ae705?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Ali Hamdar&#039;s Blog</title>
		<link>http://alihamdar.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alihamdar.com/osd.xml" title="Ali Hamdar&#039;s Blog" />
	<atom:link rel='hub' href='http://alihamdar.com/?pushpress=hub'/>
		<item>
		<title>A New Biometric&#8230; Your Butt!</title>
		<link>http://alihamdar.com/2012/01/19/a-new-biometric-your-butt/</link>
		<comments>http://alihamdar.com/2012/01/19/a-new-biometric-your-butt/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 21:15:10 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=413</guid>
		<description><![CDATA[The car-seat team led by Associate Professor Shigeomi Koshimizu wants to commercialize their work as an anti-theft product in two to three years if automakers agree to collaborate. The Institute began working on the seat idea last year. Continue reading here&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=413&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The car-seat team led by Associate Professor Shigeomi Koshimizu wants to commercialize their work as an anti-theft product in two to three years if automakers agree to collaborate. The Institute began working on the seat idea last year. Continue reading <a href="http://www.physorg.com/news/2011-12-unleash-car-seat-rear.html">here</a>&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/413/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=413&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2012/01/19/a-new-biometric-your-butt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>
	</item>
		<item>
		<title>Very Funny&#8230; CIA and Facebook</title>
		<link>http://alihamdar.com/2012/01/19/very-funny-cia-and-facebook/</link>
		<comments>http://alihamdar.com/2012/01/19/very-funny-cia-and-facebook/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 20:58:55 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[CIA]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[FourSquare]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=410</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=410&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='600' height='368' src='http://www.youtube.com/embed/ZJ380SHZvYU?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/410/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=410&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2012/01/19/very-funny-cia-and-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>
	</item>
		<item>
		<title>What is Hadoop?</title>
		<link>http://alihamdar.com/2011/12/24/what-is-hadoop/</link>
		<comments>http://alihamdar.com/2011/12/24/what-is-hadoop/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 12:53:48 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Database Programming]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Content Management]]></category>
		<category><![CDATA[Distributed Programming]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Hadoop]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=405</guid>
		<description><![CDATA[Hadoop is getting a lot of attention now in  the database and content management circles, but many people in the industry still don&#8217;t really know what it is and or how it can be best applied. The underlying technology was invented by Google back in their earlier days so they could usefully index all the rich textural and structural [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=405&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://alihamdar.files.wordpress.com/2011/12/hadoop.png"><img class="alignleft size-full wp-image-406" title="hadoop" src="http://alihamdar.files.wordpress.com/2011/12/hadoop.png?w=600" alt=""   /></a>Hadoop is getting a lot of attention now in  the database and content management circles, but many people in the industry still don&#8217;t really know what it is and or how it can be best applied.</p>
<p>The underlying technology was invented by Google back in their earlier days so they could usefully index all the rich textural and structural information they were collecting, and then present meaningful and actionable results to users. There was nothing on the market that would let them do that, so they built their own platform. Google&#8217;s innovations were incorporated into<a href="http://en.wikipedia.org/wiki/Nutch">Nutch</a>, an open source project, and Hadoop was later spun-off from that. Yahoo has played a <a href="http://developer.yahoo.com/hadoop/">key role</a> developing Hadoop for enterprise applications.</p>
<p>The Hadoop platform was designed to solve problems where you have a lot of data — perhaps a mixture of complex and structured data — and it doesn&#8217;t fit nicely into tables. It&#8217;s for situations where you want to run analytics that are deep and computationally extensive, like clustering and targeting. That&#8217;s exactly what Google was doing when it was indexing the web and examining user behavior to improve performance algorithms.</p>
<p>Hadoop applies to a bunch of markets. In finance, if you want to do accurate portfolio evaluation and risk analysis, you can build sophisticated models that are hard to jam into a database engine. But Hadoop can handle it. In online retail, if you want to deliver better search answers to your customers so they&#8217;re more likely to buy the thing you show them, that sort of problem is well addressed by the platform Google built. Those are just a few examples.</p>
<p>Hadoop is designed to run on a large number of machines that don&#8217;t share any memory or disks. That means you can buy a whole bunch of commodity servers, slap them in a rack, and run the Hadoop software on each one. When you want to load all of your organization&#8217;s data into Hadoop, what the software does is bust that data into pieces that it then spreads across your different servers. There&#8217;s no one place where you go to talk to all of your data; Hadoop keeps track of where the data resides. And because there are multiple copy stores, data stored on a server that goes offline or dies can be automatically replicated from a known good copy.</p>
<p>In a centralized database system, you&#8217;ve got one big disk connected to four or eight or 16 big processors. But that is as much horsepower as you can bring to bear. In a Hadoop cluster, every one of those servers has two or four or eight CPUs. You can run your indexing job by sending your code to each of the dozens of servers in your cluster, and each server operates on its own little piece of the data. Results are then delivered back to you in a unified whole. That&#8217;s <a href="http://en.wikipedia.org/wiki/MapReduce">MapReduce</a>: you map the operation out to all of those servers and then you reduce the results back into a single result set.</p>
<p>Architecturally, the reason you&#8217;re able to deal with lots of data is because Hadoop spreads it out. And the reason you&#8217;re able to ask complicated computational questions is because you&#8217;ve got all of these processors, working in parallel, harnessed together.</p>
<p>It&#8217;s fair to say that a current Hadoop adopter must be more sophisticated than a relational database adopter. There are not that many &#8220;shrink wrapped&#8221; applications today that you can get right out of the box and run on your Hadoop processor. It&#8217;s similar to the early &#8217;80s when Ingres and IBM were selling their database engines and people often had to write applications locally to operate on the data.</p>
<p>That said, you can develop applications in a lot of different languages that run on the Hadoop framework. The developer tools and interfaces are pretty simple. Some of our partners — <a href="http://www.informatica.com/Pages/index.aspx">Informatica</a> is a good example — have ported their tools so that they&#8217;re able to talk to data stored in a Hadoop cluster using Hadoop APIs. There are specialist vendors that are up and coming, and there are also a couple of general process query tools: a version of SQL that lets you interact with data stored on a Hadoop cluster, and <a href="http://pig.apache.org/">Pig</a>, a language developed by Yahoo that allows for data flow and data transformation operations on a Hadoop cluster.</p>
<p>Hadoop&#8217;s deployment is a bit tricky at this stage, but the vendors are moving quickly to create applications that solve these problems. I expect to see more of the shrink-wrapped apps appearing over the next couple of years.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=405&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/12/24/what-is-hadoop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>

		<media:content url="http://alihamdar.files.wordpress.com/2011/12/hadoop.png" medium="image">
			<media:title type="html">hadoop</media:title>
		</media:content>
	</item>
		<item>
		<title>Still using Stored Procedures&#8230;</title>
		<link>http://alihamdar.com/2011/11/25/wtf-still-using-stored-procedures-walaw/</link>
		<comments>http://alihamdar.com/2011/11/25/wtf-still-using-stored-procedures-walaw/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 09:13:53 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Database Programming]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[stored procedures]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=400</guid>
		<description><![CDATA[I&#8217;m sure we&#8217;ve all heard, over and over, that inline SQL is generally a bad practice, and that we should use Stored Procedures when possible. But let&#8217;s be realistic for a minute. Who wants to write a stupid stored procedure for every stupid little simple query needed. Have you ever worked on a system where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=400&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure we&#8217;ve all heard, over and over, that inline SQL is generally a bad practice, and that we should use Stored Procedures when possible. But let&#8217;s be realistic for a minute. Who wants to write a stupid stored procedure for every stupid little simple query needed.</p>
<p>Have you ever worked on a system where someone decreed* that <strong>all database calls must be Stored Procedures, and SQL is strictly verboten?</strong> I have, and this decision leads to incredible development pain:</p>
<ol>
<li>Stored Procedures are written in big iron database &#8220;languages&#8221; T-SQL (Microsoft). These so-called languages are archaic, and full of the crazy, incoherent design choices that always result from the torturous evolution of ten years of backwards compatibility. You really don&#8217;t want to be writing a lot of code in this stuff. For context, JavaScript is a giant step up from T-SQL.</li>
<li>Stored Procedures typically cannot be debugged in the same IDE you write your UI. Frequently transitioning between two totally different IDEs, with completely different interfaces and languages, is not exactly productive.</li>
<li>Stored Procedures don&#8217;t provide much feedback when things go wrong. Unless the proc is coded interally with weird T-SQL exception handling, we get cryptic &#8216;errors&#8217; returned based on the particular line inside the proc that failed, such as <em>Table has no rows</em>. Uh, ok?</li>
<li>Stored Procedures can&#8217;t pass objects. So, if you&#8217;re not careful, you can end up with a zillion parameters. If you have to populate a table row with 20+ fields using a proc, say hello to 20+ parameters. Worst of all, if I pass a bad parameter&#8211; either too many, not enough, or bad datatypes&#8211; I get a generic &#8220;bad call&#8221; error. SQL can&#8217;t tell me which parameters are in error! So I have to pore over 20 parameters, by hand, to figure out which one is the culprit.</li>
<li>Stored Procedures hide business logic. I have no idea what a proc is doing, or what kind of cursor (DataSet) or values it will return to me. I can&#8217;t view the source code to the proc (at least, without resorting to #2 if I have appropriate access) to verify that it is actually doing what I think it is&#8211; or what the designer intended it to do. Inline SQL may not be pretty, but at least I can see it in context, alongside the other business logic.</li>
</ol>
<p>So why use Stored Procedures at all? Conventional wisdom says we do it because:</p>
<ul>
<li>Stored procedures generally result in improved performance because the database can optimize the data access plan used by the procedure and cache it for subsequent reuse.</li>
<li>Stored procedures can be individually secured within the database. A client can be granted permissions to execute a stored procedure without having any permissions on the underlying tables.</li>
<li>Stored procedures result in easier maintenance because it is generally easier to modify a stored procedure than it is to change a hard-coded SQL statement within a deployed component.</li>
<li>Stored procedures add an extra level of abstraction from the underlying database schema. The client of the stored procedure is isolated from the implementation details of the stored procedure and from the underlying schema.</li>
<li>Stored procedures can reduce network traffic, because SQL statements can be executed in batches rather than sending multiple requests from the client.</li>
</ul>
<p>However, there&#8217;s one small problem: <strong>none of these things are true in practice</strong>. The benefits are marginal, but the pain is substantial. And <a href="http://weblogs.asp.net/fbouma/archive/2003/11/18/38178.aspx">I&#8217;m not the only person that feels this way</a>.</p>
<p><em><em>The new (as of SQL Server 7.0) <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_sa_4azp.asp">cached execution plan optimization</a> in SQL Server looks to me a lot like JIT compilation. If this is, in fact, the case it seems to me that the only overhead that would be associated with dynamic SQL would be:</em></em></p>
<ol>
<li>The amount of bandwidth + time it takes to transmit the dynamic SQL text to the database.</li>
<li>The amount of time it takes to calculate the hash of the dynamic SQL text to look up the cached execution plan.</li>
</ol>
<p><em>I can imagine quite a few scenarios where the above overhead would disappear into the noise of the network roundtrip. What upsets me are the folks who spout forth anecdotal arguments that claim stored procedures have &#8220;much better&#8221; performance than dynamic SQL.</em></p>
<p>For modern databases and real world usage scenarios, I believe a Stored Procedure architecture has serious downsides and little practical benefit. <strong>Stored Procedures should be considered database assembly language: for use in only the most performance critical situations</strong>. There are plenty of ways to design a solid, high performing data access layer without resorting to Stored Procedures; you&#8217;ll realize a lot of benefits if you stick with <a href="http://www.uberasp.net/getarticle.aspx?id=46">parameterized SQL</a> and a single coherent development environment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/400/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=400&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/11/25/wtf-still-using-stored-procedures-walaw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>
	</item>
		<item>
		<title>Will JSON win over XML?</title>
		<link>http://alihamdar.com/2011/11/11/will-json-win-over-xml/</link>
		<comments>http://alihamdar.com/2011/11/11/will-json-win-over-xml/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 00:07:53 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[Serialization]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=396</guid>
		<description><![CDATA[JavaScript Object Notation (JSON), also called the Fat-Free alternative of XML, is a technique for passing structured data across processes in the form of a string. This technique results in the ability to pass JSON data across network protocols that prefer string traffic, such as HTTP. Data can be serialized into a JSON string much [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=396&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JavaScript Object Notation (<a title="JSON" href="http://www.json.org/xml.html">JSON</a>), also called the Fat-Free alternative of XML, is a technique for passing structured data across processes in the form of a string. This technique results in the ability to pass JSON data across network protocols that prefer string traffic, such as HTTP.</p>
<p>Data can be serialized into a JSON string much the same as XML. The key difference is that JSON uses a serialization technique that results in much smaller strings than XML. JSON has also been a popular implementation for using <a href="http://www.ibm.com/developerworks/aix/library/au-aem_rest/index.html?ca=drs-">RESTful applications</a>. It allows easy communication of objects from a client to/from a web server. Using JSON you can cause a web application to perform work or manipulate data. You can also receive results back from a REST application in the form of JSON object notation. Like XML, JSON can also be a complex object. It can contain collections in the form of an array. It can have complex data types consisting of multiple public properties, etc&#8230;</p>
<p>Sample JSON:</p>
<pre>{
    "glossary": {
        "title": "example glossary",
		"GlossDiv": {
            "title": "S",
			"GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
					"SortAs": "SGML",
					"GlossTerm": "Standard Generalized Markup Language",
					"Acronym": "SGML",
					"Abbrev": "ISO 8879:1986",
					"GlossDef": {
                        "para": "A meta-markup language, used to create markup languages such as DocBook.",
						"GlossSeeAlso": ["GML", "XML"]
                    },
					"GlossSee": "markup"
                }
            }
        }
    }
}</pre>
<p>The same text expressed as XML:</p>
<pre>&lt;!DOCTYPE glossary PUBLIC "-//OASIS//DTD DocBook V3.1//EN"&gt;
 &lt;glossary&gt;&lt;title&gt;example glossary&lt;/title&gt;
  &lt;GlossDiv&gt;&lt;title&gt;S&lt;/title&gt;
   &lt;GlossList&gt;
    &lt;GlossEntry ID="SGML" SortAs="SGML"&gt;
     &lt;GlossTerm&gt;Standard Generalized Markup Language&lt;/GlossTerm&gt;
     &lt;Acronym&gt;SGML&lt;/Acronym&gt;
     &lt;Abbrev&gt;ISO 8879:1986&lt;/Abbrev&gt;
     &lt;GlossDef&gt;
      &lt;para&gt;A meta-markup language, used to create markup languages such as DocBook.&lt;/para&gt;
      &lt;GlossSeeAlso OtherTerm="GML"&gt;
      &lt;GlossSeeAlso OtherTerm="XML"&gt;
     &lt;/GlossDef&gt;
     &lt;GlossSee OtherTerm="markup"&gt;
    &lt;/GlossEntry&gt;
   &lt;/GlossList&gt;
  &lt;/GlossDiv&gt;
 &lt;/glossary&gt;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=396&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/11/11/will-json-win-over-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction to Luhn&#8217;s Algorithm</title>
		<link>http://alihamdar.com/2011/11/05/introduction-to-luhns-algorithm/</link>
		<comments>http://alihamdar.com/2011/11/05/introduction-to-luhns-algorithm/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 11:50:33 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[checksum]]></category>
		<category><![CDATA[Luhn]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=393</guid>
		<description><![CDATA[In the past few weeks, we have working on automating the Loyalty Program of a major retailer. We used Luhn&#8217;s Algorithm to validate the card numbers before registration. The Luhn algorithm or Luhn formula, also known as the &#8220;modulus 10&#8243; or &#8220;mod 10&#8243; algorithm, is a simple checksum formula used to validate a identification numbers. Currently it is used for credit card numbers,IMEI [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=393&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the past few weeks, we have working on automating the Loyalty Program of a major retailer. We used Luhn&#8217;s Algorithm to validate the card numbers before registration.</p>
<p>The <strong>Luhn algorithm</strong> or <strong>Luhn formula</strong>, also known as the &#8220;modulus 10&#8243; or &#8220;mod 10&#8243; algorithm, is a simple checksum formula used to validate a identification numbers. Currently it is used for credit card numbers,IMEI numbers, National Provider Identifier numbers in US, Canadian Social Insurance Numbers and others. It was created by IBM scientist <a title="Hans Peter Luhn" href="http://en.wikipedia.org/wiki/Hans_Peter_Luhn">Hans Peter Luhn</a> and described in <a href="http://www.google.com/patents?id=Y7leAAAAEBAJ" rel="nofollow">U.S. Patent No. 2,950,048</a>, filed on January 6, 1954, and granted on August 23, 1960.</p>
<p>The Luhn algorithm will detect any single-digit error, as well as almost all transpositions of adjacent digits. It will not, however, detect transposition of the two-digit sequence <em>09</em> to <em>90</em> (or vice versa). It will detect 7 of the 10 possible twin errors (it will not detect <em>22</em> ↔ <em>55</em>, <em>33</em> ↔ <em>66</em> or <em>44</em> ↔ <em>77</em>).</p>
<p>Other, more complex check-digit algorithms (such as the <a title="Verhoeff algorithm" href="http://en.wikipedia.org/wiki/Verhoeff_algorithm">Verhoeff algorithm</a>) can detect more transcription errors. The <a title="Luhn mod N algorithm" href="http://en.wikipedia.org/wiki/Luhn_mod_N_algorithm">Luhn mod N algorithm</a> is an extension that supports non-numerical strings.</p>
<p>Because the algorithm operates on the digits in a right-to-left manner and zero digits affect the result only if they cause shift in position, zero-padding the beginning of a string of numbers does not affect the calculation. Therefore, systems that pad to a specific number of digits by converting 1234 to 0001234 (for instance) can perform Luhn validation before or after the padding and achieve the same result.</p>
<p>The algorithm appeared in a US Patent for a hand-held, mechanical device for computing the checksum. It was therefore required to be rather simple. The device took the mod 10 sum by mechanical means. The <em>substitution digits</em>, that is, the results of the double and reduce procedure, were not produced mechanically. Rather, the digits were marked in their permuted order on the body of the machine.</p>
<p><strong>Example</strong></p>
<p>The formula verifies a number against its included check digit, which is usually appended to a partial account number to generate the full account number. This account number must pass the following test:</p>
<ol>
<li>Counting from the check digit, which is the rightmost, and moving left, double the value of every second digit.</li>
<li>Sum the digits of the products (e.g., 10 = 1 + 0 = 1, 14 = 1 + 4 = 5) together with the undoubled digits from the original number.</li>
<li>If the total modulo 10 is equal to 0 (if the total ends in zero) then the number is valid according to the Luhn formula; else it is not valid.</li>
</ol>
<p>Assume an example of an account number &#8220;4992739871&#8243; that will have a check digit added, making it of the form 4992739871x:</p>
<p>To make the sum divisible by 10, we set the check digit (x) to 6, making the full account number 49927398716.</p>
<p>The account number 49927398716 can be validated as follows:</p>
<ol>
<li>Double every second digit, from the rightmost: (1×2) = 2, (8×2) = 16, (3×2) = 6, (2×2) = 4, (9×2) = 18</li>
<li>Sum all the <em>individual</em> digits (digits in parentheses are the products from Step 1): 6 + (2) + 7 + (1+6) + 9 + (6) + 7 + (4) + 9 + (1+8) + 4 = 70</li>
<li>Take the sum modulo 10: 70 mod 10 = 0; the account number is probably valid.</li>
</ol>
<div>Source: <a href="http://en.wikipedia.org/wiki/Luhn_algorithm">Wikipedia</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=393&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/11/05/introduction-to-luhns-algorithm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>
	</item>
		<item>
		<title>Boolean Morality</title>
		<link>http://alihamdar.com/2011/10/18/boolean-morality/</link>
		<comments>http://alihamdar.com/2011/10/18/boolean-morality/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 07:32:30 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Boolean]]></category>
		<category><![CDATA[Christmas]]></category>
		<category><![CDATA[Morality]]></category>
		<category><![CDATA[Raw Materials]]></category>
		<category><![CDATA[Santa]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=388</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=388&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://alihamdar.files.wordpress.com/2011/10/4997.png"><img class="alignleft size-full wp-image-389" title="Raw Materials" src="http://alihamdar.files.wordpress.com/2011/10/4997.png?w=600" alt="Raw Materials"   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/388/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=388&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/10/18/boolean-morality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>

		<media:content url="http://alihamdar.files.wordpress.com/2011/10/4997.png" medium="image">
			<media:title type="html">Raw Materials</media:title>
		</media:content>
	</item>
		<item>
		<title>We Are Not Bad People</title>
		<link>http://alihamdar.com/2011/10/05/we-are-not-bad-people/</link>
		<comments>http://alihamdar.com/2011/10/05/we-are-not-bad-people/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 18:36:33 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=383</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=383&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://alihamdar.files.wordpress.com/2011/10/2011-10-01-we-are-not-bad-people.png"><img class="alignleft size-full wp-image-384" title="2011-10-01-we-are-not-bad-people" src="http://alihamdar.files.wordpress.com/2011/10/2011-10-01-we-are-not-bad-people.png?w=600" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=383&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/10/05/we-are-not-bad-people/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>

		<media:content url="http://alihamdar.files.wordpress.com/2011/10/2011-10-01-we-are-not-bad-people.png" medium="image">
			<media:title type="html">2011-10-01-we-are-not-bad-people</media:title>
		</media:content>
	</item>
		<item>
		<title>New Type of Secret Questions!</title>
		<link>http://alihamdar.com/2011/09/08/new-type-of-secret-questions/</link>
		<comments>http://alihamdar.com/2011/09/08/new-type-of-secret-questions/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 18:49:42 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Passwords]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Social Engineering]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=378</guid>
		<description><![CDATA[While setting up an account at the National Archives, in order to request a document, I found this rather original challenge question.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=378&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While setting up an account at the National Archives, in order to request a document, I found this rather original challenge question.</p>
<p><a href="http://alihamdar.files.wordpress.com/2011/09/thumb-preferred-internet-password1.jpg"><img class="alignleft size-full wp-image-380" title="thumb-preferred-internet-password" src="http://alihamdar.files.wordpress.com/2011/09/thumb-preferred-internet-password1.jpg?w=600" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=378&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/09/08/new-type-of-secret-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>

		<media:content url="http://alihamdar.files.wordpress.com/2011/09/thumb-preferred-internet-password1.jpg" medium="image">
			<media:title type="html">thumb-preferred-internet-password</media:title>
		</media:content>
	</item>
		<item>
		<title>Keep Your Soul</title>
		<link>http://alihamdar.com/2011/08/14/keep-your-soul/</link>
		<comments>http://alihamdar.com/2011/08/14/keep-your-soul/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 22:56:29 +0000</pubDate>
		<dc:creator>Ali Hamdar</dc:creator>
				<category><![CDATA[Social]]></category>
		<category><![CDATA[Startups]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://alihamdar.com/?p=375</guid>
		<description><![CDATA[Steve Jones from SQLServerCentral.com Last year I got into a debate, and an argument, with a friend over the growth of Google and their profits. I took the position that while Google has provided a good service to the world with their search engine and their founders have earned money, they will find it harder [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=375&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Steve Jones from <a href="http://www.sqlservercentral.com/links/382907/220147">SQLServerCentral.com</a></p>
<p>Last year I got into a debate, and an argument, with a friend over the growth of Google and their profits. I took the position that while Google has provided a good service to the world with their search engine and their founders have earned money, they will find it harder and harder to continue to follow the mantra of &#8220;do no evil&#8221; if they feel they need to continue to grow their profits. Given the <a href="http://www.sqlservercentral.com/links/382907/220155">recent shutdowns of some of the &#8220;good projects&#8221;</a> they had embarked upon to make the world a better place, that prediction seems to be coming true.</p>
<p>Building a business is hard, and as shown in the numbers, most don&#8217;t succeed. Many do, however, and <a href="http://www.sqlservercentral.com/links/382907/220156">the vast majority of businesses out in the world today are small ones</a>, with less than a 100 people. However those small businesses don&#8217;t account for most of the revenue in the US.  Large businesses do, which isn&#8217;t all the unexpected since those large companies do business in areas that are important to most people (energy, oil, banking, etc.).</p>
<p>In the technology world, it seems that we often hear about &#8220;the next big thing&#8221; disrupting the way the world works and making people rich. The people in these companies are just like you and me; they built a product , caught the eyes of millions, and became a success. That dream has driven so many technology workers to come up with their own idea or go to work on someone else&#8217;s idea in a startup.</p>
<p>However the chances of hitting it big are like the chances of hitting the lottery. Those chances are small, though I wouldn&#8217;t discourage anyone from pursuing that dream. What I do think, however, is that <a href="http://www.sqlservercentral.com/links/382907/220157">it&#8217;s not worth losing your soul</a> over the chance to make money. I truly believe you can succeed, and make money, while making ethical and moral decisions that respect your customers. You might sacrifice some profit to do so, but in the end, I think that&#8217;s a good trade. I would certainly rather make a million dollars ethically than a billion dollars compromising my values.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alihamdar.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alihamdar.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alihamdar.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alihamdar.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alihamdar.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alihamdar.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alihamdar.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alihamdar.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alihamdar.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alihamdar.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alihamdar.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alihamdar.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alihamdar.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alihamdar.wordpress.com/375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alihamdar.com&amp;blog=11888297&amp;post=375&amp;subd=alihamdar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alihamdar.com/2011/08/14/keep-your-soul/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1936ecfd87382ece1526ac1e7cf790b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ahamdar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
