<?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"
	>

<channel>
	<title>Dhurba.com</title>
	<atom:link href="http://www.dhurba.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dhurba.com</link>
	<description>Object Oriented Programmer from Nepal</description>
	<pubDate>Mon, 27 Apr 2009 04:48:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Java concurrency with thread gates</title>
		<link>http://www.dhurba.com/2009/03/31/java-concurrency-with-thread-gates/</link>
		<comments>http://www.dhurba.com/2009/03/31/java-concurrency-with-thread-gates/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 03:02:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[thread]]></category>

		<guid isPermaLink="false">http://www.dhurba.com/?p=11</guid>
		<description><![CDATA[The thread gate pattern is an effective tool for controlling thread concurrency, but many developers are unfamiliar with it. Just as a traffic light can regulate the behavior of automobiles at an intersection, thread gates can block or allow thread progress based on given factors. Obi Ezechukwu introduces the concept of thread gates, then shows [...]]]></description>
			<content:encoded><![CDATA[<p class="first">The thread gate pattern is an effective tool for controlling thread concurrency, but many developers are unfamiliar with it. Just as a traffic light can regulate the behavior of automobiles at an intersection, thread gates can block or allow thread progress based on given factors. Obi Ezechukwu introduces the concept of thread gates, then shows you how to implement them in a multithreaded prime-number generator. <em>Level: Intermediate</em></p>
<p><em>Multithreading and code concurrency were once the preserve of elite programmers, but the combination of multicore processing power, complex requirements, and the readily available <code>javax.util.concurrent</code> package has changed that. Today, enterprise application developers are expected to be knowledgeable about the various synchronization mechanisms and constructs available in the Java language. The level of expectation is even higher where the problems being solved require non-textbook and highly innovative concurrency constructs. It isn&#8217;t enough in those situations to understand the Java language&#8217;s concurrency mechanisms and those included in the standard SDK; you also must be able to use these tools as building blocks for custom-made concurrency controls.</p>
<p>In this article, we&#8217;ll explore a concurrency pattern that isn&#8217;t widely discussed, generally called <em>thread gates</em>. Like its real-world counterpart, a gate instance opens or closes, thus allowing or preventing thread progress. It does so based on the truth value of some predicate.</p>
<p>I&#8217;ll start with an overview of thread gates based on the traffic-flow model, then explain how to set up your development environment for the example application, a multithreaded prime-number generator. The remainder of the article will be hands-on, as you learn about the thread gate pattern by implementing it.</p>
<h2>Thread gates: An overview</h2>
<p>A good metaphor for thread gates is the traffic light system that operates on many public roads. When the signal is red, cars have to wait at the stop line until the signal changes. On the other hand, cars are free to run past the signal when it is green. There is no limit to the number of times that the signal can go from green to red, given a statistically significant observation timeframe. Traffic lights are designed to enable crossflow of traffic, and are redundant where crossflow does not exist. In a programmer&#8217;s terms, you can imagine the light as a control that lets bidirectional traffic share a small section of road that might otherwise cause the paths of traffic to intersect in an unsafe manner.</p>
<p>In the same way, thread gates are generally best used for scenarios where one set of threads has to be prevented from proceeding beyond a determined point, whilst another set of threads is active. To put it another way, the competing sets of threads are dependent on the value of some truth predicate, where each distinct value of the predicate strictly triggers one (and only one) set of threads, forcing the others to remain suspended. Note that the emphasis here is on sets or groups of threads rather than individual threads. In essence, the focus is on scenarios where multiple threads share access to an underlying resource, and the threads can be partitioned into sets depending on the actions that they perform in relation to that resource.</p>
<p>Source : Javaworld.com</p>
<p></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dhurba.com/2009/03/31/java-concurrency-with-thread-gates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SQL injection</title>
		<link>http://www.dhurba.com/2009/01/29/sql-injection/</link>
		<comments>http://www.dhurba.com/2009/01/29/sql-injection/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 15:01:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Securities]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[sql]]></category>

		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://www.dhurba.com/?p=8</guid>
		<description><![CDATA[Defination : SQL injection is a type of security exploit in which the attacker adds Structured Query Language (SQL) code to a Web form input box to gain access to resources or make changes to data. An SQL query is a request for some action to be performed on a database. Typically, on a Web [...]]]></description>
			<content:encoded><![CDATA[<p>Defination : SQL injection is a type of security <a class="inline" href="http://searchsecurity.techtarget.com/sDefinition/0,,sid14_gci553536,00.html">exploit</a> in which the attacker adds Structured Query Language (<a class="inline" href="http://searchsqlserver.techtarget.com/sDefinition/0,,sid87_gci214230,00.html">SQL</a>) code to a Web form input box to gain access to resources or make changes to data. An SQL <a class="inline" href="http://searchsqlserver.techtarget.com/sDefinition/0,,sid87_gci214553,00.html">query</a> is a request for some action to be performed on a database. Typically, on a Web form for user authentication, when a user enters their name and password into the text boxes provided for them, those values are inserted into a SELECT query. If the values entered are found as expected, the user is allowed access; if they aren&#8217;t found, access is denied. However, most Web forms have no mechanisms in place to block input other than names and passwords. Unless such precautions are taken, an attacker can use the input boxes to send their own request to the database, which could allow them to download the entire database or interact with it in other illicit ways.</p>
<p>The risk of SQL injection exploits is on the rise because of automated tools. In the past, the danger was somewhat limited because an exploit had to be carried out manually: an attacker had to actually type their SQL statement into a text box. However, automated SQL injection programs are now available, and as a result, both the likelihood and the potential damage of an exploit has increased enormously. In an interview with Security Wire Perspectives, Caleb Sima, CTO of SPI Dynamics spoke of the potential danger: &#8220;This technology being publicly released by some black hat will give script-kiddies the ability to pick up a freeware tool, point it at a Web site and automatically download a database without any knowledge whatsoever. I think that makes things a lot more critical and severe. The automation of SQL injection gives rise to the possibility of a SQL injection worm, which is very possible. In fact, I am surprised this hasn&#8217;t occurred yet.&#8221; Sima estimates that about 60% of Web applications that use dynamic content are vulnerable to SQL injection.</p>
<p>According to security experts, the reason that SQL injection and many other exploits, such as <a class="inline" href="http://searchsoftwarequality.techtarget.com/sDefinition/0,,sid92_gci1003431,00.html">cross-site scripting</a>, are possible is that security is not sufficiently emphasized in development. To protect the integrity of Web sites and applications, experts recommend simple precautions during development such as controlling the types and numbers of characters accepted by input boxes.</p>
<p>Source : whatis.com<!-- Begin Briefcase links --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dhurba.com/2009/01/29/sql-injection/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hide Mysql error</title>
		<link>http://www.dhurba.com/2009/01/28/hide-mysql-error/</link>
		<comments>http://www.dhurba.com/2009/01/28/hide-mysql-error/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 07:50:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Securities]]></category>

		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://www.dhurba.com/?p=7</guid>
		<description><![CDATA[Mysql_error() is useful for programmer to know what is exactly error is. But sometime it is big clue for hackers to know about database structure. We can use mysql_error() in working time but it is good to hide mysql_error in published website. Here I write one simple tricks :
first create function :

function sql_failure_handler($error)
{

 return &#8220;Database Error&#8221;;

}

call [...]]]></description>
			<content:encoded><![CDATA[<div>Mysql_error() is useful for programmer to know what is exactly error is. But sometime it is big clue for hackers to know about database structure. We can use mysql_error() in working time but it is good to hide mysql_error in published website. Here I write one simple tricks :</div>
<p>first create function :</p>
<blockquote style="margin-right: 0px;" dir="ltr">
<div>function sql_failure_handler($error)</div>
<div>{</div>
<blockquote style="margin-right: 0px;" dir="ltr">
<div> return &#8220;Database Error&#8221;;</div>
</blockquote>
<div>}</div>
</blockquote>
<p>call it like :</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p>$result=mysql_query($sql) or die(sql_failure_handler(mysql_error()));</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dhurba.com/2009/01/28/hide-mysql-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>W3C for SEO</title>
		<link>http://www.dhurba.com/2009/01/28/w3c-for-seo/</link>
		<comments>http://www.dhurba.com/2009/01/28/w3c-for-seo/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 07:29:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[SEO]]></category>

		<category><![CDATA[W3C]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.dhurba.com/?p=6</guid>
		<description><![CDATA[Actually World Wide Web Consortium (W3C) is not designed for Search Engine Optimization(SEO) Purpose, but if we follow W3C Standard website can get good place in Search Engine. I have list out some reason here :

1. There is less chance to wrong in HTML tag style when we follow W3C standard.
2. Less use of javascript
3. [...]]]></description>
			<content:encoded><![CDATA[<div>Actually World Wide Web Consortium (W3C) is not designed for Search Engine Optimization(SEO) Purpose, but if we follow W3C Standard website can get good place in Search Engine. I have list out some reason here :</div>
<blockquote style="margin-right: 0px;" dir="ltr">
<div>1. There is less chance to wrong in HTML tag style when we follow W3C standard.</div>
<div>2. Less use of javascript</div>
<div>3. Title in hyperlinks, helps to increase more words for robot.</div>
<div>4. In W3C standard we must need to define tag name in image so crawller can read it and can get position in Image search</div>
<div> </div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dhurba.com/2009/01/28/w3c-for-seo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Desire : Mobile Web 2.0</title>
		<link>http://www.dhurba.com/2009/01/28/desire-mobile-web-20/</link>
		<comments>http://www.dhurba.com/2009/01/28/desire-mobile-web-20/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 06:57:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dhurba.com/?p=5</guid>
		<description><![CDATA[After lunching web 2.0 it is very easy to check email, access social networking sites and see video in youtube. I am also taking its advantage by using in my websites. Thanks for them who participate for this.
When I m developing web application for mobile devices I face lots of problem. Then I Imaging If [...]]]></description>
			<content:encoded><![CDATA[<p>After lunching web 2.0 it is very easy to check email, access social networking sites and see video in youtube. I am also taking its advantage by using in my websites. Thanks for them who participate for this.</p>
<p>When I m developing web application for mobile devices I face lots of problem. Then I Imaging If there is Mobile Web 2.0 &#8230;..  This morning I read one article about Mobile Web 2.0, According to a new report by Juniper Research titled &#8220;Mobile Web 2.0: Leveraging &#8216;Location, IM, Social Web &amp; Search&#8217; 2008-2013,&#8221; the global market for Mobile Web 2.0 (social networking and user generated content) will be worth $22.4bn in 2013, up from $5.5bn currently.</p>
<p>If Mobile Web 2.0 really can happen it will replace Computer to access web and</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dhurba.com/2009/01/28/desire-mobile-web-20/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML and it’s decade</title>
		<link>http://www.dhurba.com/2008/05/12/xml-and-it%e2%80%99s-decade/</link>
		<comments>http://www.dhurba.com/2008/05/12/xml-and-it%e2%80%99s-decade/#comments</comments>
		<pubDate>Tue, 13 May 2008 04:48:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tech Blog]]></category>

		<guid isPermaLink="false">http://www.dhurba.com/?p=4</guid>
		<description><![CDATA[For many programmers XML may be new technology, for my case  it was already in market when I start my programming in 2001 so I never feel it is new technology. I forgot what I was written first other programming language (e.g. visual basic, java, php etc) but I still remember my first XML page [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 10pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;">For many programmers XML may be new technology, for my case <span style="mso-spacerun: yes;"> </span>it was already in market when I start my programming in 2001 so I never feel it is new technology. I forgot what I was written first other programming language (e.g. visual basic, java, php etc) but I still remember my first XML page because I feel XML is <span style="mso-spacerun: yes;"> </span>totally useless in that time. I wrote like &lt;?xml version=&#8221;1.0&#8243; ?&gt;<span style="mso-spacerun: yes;">  </span>in that time and still using version 1.0. I see its charisma after I start to use AJAX.</span></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;">I am planning to do some research about XML and its maximum implementation in real life. I will continue posting articles about XML in future. Please give comments about “How we can exploit XML in practical life”</span></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt;"> </p>
<div><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;"> </span></span></span></div>
<div><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;"><a href="http://www.w3.org/2008/xml10/"><img title="Ten Years of W3C XML" src="http://www.w3.org/2008/xml10/xml-10" alt="W3C XML 10th anniversary" /></a></span></span></span></div>
<div><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;"> </span></span></span></div>
<div><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;"> </span></span></span></div>
<div><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;"> </span></span></span></div>
<p><span style="mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;"><span style="font-family: Calibri;"> </p>
<p> </p>
<p></span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dhurba.com/2008/05/12/xml-and-it%e2%80%99s-decade/feed/</wfw:commentRss>
		</item>
		<item>
		<title>नयाँ बर्ष २०६५ केा हार्दिक मंगलमय शुभकामना !</title>
		<link>http://www.dhurba.com/2008/04/14/hello-world/</link>
		<comments>http://www.dhurba.com/2008/04/14/hello-world/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 07:36:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[happy new year.]]></category>

		<category><![CDATA[start]]></category>

		<guid isPermaLink="false">http://www.dhurba.com/?p=1</guid>
		<description><![CDATA[नयाँ बर्ष २०६५ केा हार्दिक मंगलमय शुभकामना ।
]]></description>
			<content:encoded><![CDATA[<p>नयाँ बर्ष २०६५ केा हार्दिक मंगलमय शुभकामना ।</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dhurba.com/2008/04/14/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
