<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments for Aviran's Place</title>
	<link>http://www.aviransplace.com</link>
	<description>The Technology Hangout</description>
	<pubDate>Fri, 19 Mar 2010 03:50:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>Comment on Pirate Bay legal action dropped in Norway by cenk oyun</title>
		<link>http://www.aviransplace.com/2010/03/17/pirate-bay-legal-action-dropped-in-norway/#comment-12408</link>
		<dc:creator>cenk oyun</dc:creator>
		<pubDate>Wed, 17 Mar 2010 18:22:27 +0000</pubDate>
		<guid>http://www.aviransplace.com/2010/03/17/pirate-bay-legal-action-dropped-in-norway/#comment-12408</guid>
		<description>güzel site</description>
		<content:encoded><![CDATA[<p>güzel site</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit This - Wordpress Plugin by cam filmi</title>
		<link>http://www.aviransplace.com/reddit-this-wordpress-plugin/#comment-12407</link>
		<dc:creator>cam filmi</dc:creator>
		<pubDate>Wed, 17 Mar 2010 15:18:16 +0000</pubDate>
		<guid>http://www.aviransplace.com/reddit-this-wordpress-plugin/#comment-12407</guid>
		<description>a very good</description>
		<content:encoded><![CDATA[<p>a very good</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit This - Wordpress Plugin by radyo dinle</title>
		<link>http://www.aviransplace.com/reddit-this-wordpress-plugin/#comment-12406</link>
		<dc:creator>radyo dinle</dc:creator>
		<pubDate>Wed, 17 Mar 2010 11:44:20 +0000</pubDate>
		<guid>http://www.aviransplace.com/reddit-this-wordpress-plugin/#comment-12406</guid>
		<description>thanks for you admin bey</description>
		<content:encoded><![CDATA[<p>thanks for you admin bey</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using RSA encryption with Java by Saty</title>
		<link>http://www.aviransplace.com/2004/10/12/using-rsa-encryption-with-java/#comment-12402</link>
		<dc:creator>Saty</dc:creator>
		<pubDate>Thu, 11 Mar 2010 13:57:41 +0000</pubDate>
		<guid>http://www.aviransplace.com/2004/10/12/using-rsa-encryption-with-java/#comment-12402</guid>
		<description>import java.sql.*;
import java.math.*;
import java.io.*;
import java.util.*;
import java.lang.*;
import java.lang.String.*;
    

public class ppdm2
{
public int p,q,n,e,d,phi;
int num[]=new int[200];
                 
int enc[]=new int[200];
int i,j,nof;
static String val;
	int dec[] = new int[200];

	public ppdm2()
	{	p=17;
		q=11;
		n=0;
		e=7;
		d=23;
		phi=0;
		
		
                 
		i=0;
		j = 0; 
		nof = 0; 

	}

	public String RSA(String val)
	{
		
		//System.out.println("enter value of p and q\n"); 
		n=p*q; 
		phi=(p-1)*(q-1); 
		for(i=2;i&#60;phi;i++) 
		{ 
			if(gcd(i,phi)!=1) 
			break; 
		} 
		e=i; 
		for(i=2;i&#60;phi;i++) 
		{
			if((e*i-1)%phi==1) 
				break; 
		}
			d=i;
 
		for(i=0;i&#60;val.length();i++) 
		{
			num[i]=val.charAt(i); 
			nof=val.length(); 
		}
		for(i=0;i&#60;nof;i++) 
		{ 
			enc[i]=1; 
			for(j=0;j&#60;e;j++) 
			enc[i]=(enc[i]*num[i])%n;
		} 

	for(i=0;i&#60;nof;i++) 
	{ 
		dec[i]=1; 
		for(j=0;j&#60;d;j++) 
			dec[i]=(dec[i]*val.charAt(i))%n; 
	}

		char temp[]=new char[enc.length];
		for (int x = 0; x &#60; enc.length; x++) temp[x] =(char)enc[x];

			return new String(temp); 
}


public	int gcd(int m,int n) 
	{ 
		int r; 
		while(n!=0) 
		{ 
			r=m%n; 
			m=n; 
			n=r; 
		} 
	return m; 

	}
 


public static void main(String args[]) throws IOException
 
{ 

String msg[]; 


String url = "jdbc:odbc:ppdm";
Connection con = null;
try {
	String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
	Class.forName(driver);
	}
	catch( Exception e ) 
	{
	System.out.println("Failed to load mSQL driver.");
	return;
	}

		
/*
try {
fin = new FileInputStream(args[0]);
} catch(FileNotFoundException e) {
System.out.println("File Not Found");
return;
} catch(ArrayIndexOutOfBoundsException e) {
System.out.println("Usage: ShowFile File");
return;
}
// read characters until EOF is encountered
do {
i = fin.read();
if(i != -1) System.out.print((char) i);
} while(i != -1);
}
*/
	ppdm2 pp=new ppdm2();
	try 
	{
		con = DriverManager.getConnection(url);
		PreparedStatement select = con.prepareStatement("SELECT * FROM pdb",ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
		ResultSet result = select.executeQuery();
		System.out.println("Got results:");
	while(result.next( ))
	 { // process results one row at a time
		int key;
		//String val;
		key = result.getInt(1);
		if( result.wasNull( ) ) 
		{
			key = -1;
		}
		val = result.getString(2);
		if( result.wasNull( ) )
	 	{
			val = null;
		}
result.updateString(2,pp.RSA(val));
	result.updateRow();

	System.out.println("key = " + key);
	System.out.println("val = " + val);
	//result.Commit();
	}
       }
	catch( Exception e ) 	
	{
		e.printStackTrace( );
	}
	finally 
	{
	if( con != null ) 
	{
		try 
			{ con.close( ); }
	catch( Exception e ) 
		{ e.printStackTrace( ); }
		}
	}
	}

}

   

hey this wht i've written.. but iam not able 2 recover the original data in DB once i encrypt.. plz help.. its urgent</description>
		<content:encoded><![CDATA[<p>import java.sql.*;<br />
import java.math.*;<br />
import java.io.*;<br />
import java.util.*;<br />
import java.lang.*;<br />
import java.lang.String.*;</p>
<p>public class ppdm2<br />
{<br />
public int p,q,n,e,d,phi;<br />
int num[]=new int[200];</p>
<p>int enc[]=new int[200];<br />
int i,j,nof;<br />
static String val;<br />
	int dec[] = new int[200];</p>
<p>	public ppdm2()<br />
	{	p=17;<br />
		q=11;<br />
		n=0;<br />
		e=7;<br />
		d=23;<br />
		phi=0;</p>
<p>		i=0;<br />
		j = 0;<br />
		nof = 0; </p>
<p>	}</p>
<p>	public String RSA(String val)<br />
	{</p>
<p>		//System.out.println(&#8221;enter value of p and q\n&#8221;);<br />
		n=p*q;<br />
		phi=(p-1)*(q-1);<br />
		for(i=2;i&lt;phi;i++)<br />
		{<br />
			if(gcd(i,phi)!=1)<br />
			break;<br />
		}<br />
		e=i;<br />
		for(i=2;i&lt;phi;i++)<br />
		{<br />
			if((e*i-1)%phi==1)<br />
				break;<br />
		}<br />
			d=i;</p>
<p>		for(i=0;i&lt;val.length();i++)<br />
		{<br />
			num[i]=val.charAt(i);<br />
			nof=val.length();<br />
		}<br />
		for(i=0;i&lt;nof;i++)<br />
		{<br />
			enc[i]=1;<br />
			for(j=0;j&lt;e;j++)<br />
			enc[i]=(enc[i]*num[i])%n;<br />
		} </p>
<p>	for(i=0;i&lt;nof;i++)<br />
	{<br />
		dec[i]=1;<br />
		for(j=0;j&lt;d;j++)<br />
			dec[i]=(dec[i]*val.charAt(i))%n;<br />
	}</p>
<p>		char temp[]=new char[enc.length];<br />
		for (int x = 0; x &lt; enc.length; x++) temp[x] =(char)enc[x];</p>
<p>			return new String(temp);<br />
}</p>
<p>public	int gcd(int m,int n)<br />
	{<br />
		int r;<br />
		while(n!=0)<br />
		{<br />
			r=m%n;<br />
			m=n;<br />
			n=r;<br />
		}<br />
	return m; </p>
<p>	}</p>
<p>public static void main(String args[]) throws IOException</p>
<p>{ </p>
<p>String msg[]; </p>
<p>String url = &#8220;jdbc:odbc:ppdm&#8221;;<br />
Connection con = null;<br />
try {<br />
	String driver = &#8220;sun.jdbc.odbc.JdbcOdbcDriver&#8221;;<br />
	Class.forName(driver);<br />
	}<br />
	catch( Exception e )<br />
	{<br />
	System.out.println(&#8221;Failed to load mSQL driver.&#8221;);<br />
	return;<br />
	}</p>
<p>/*<br />
try {<br />
fin = new FileInputStream(args[0]);<br />
} catch(FileNotFoundException e) {<br />
System.out.println(&#8221;File Not Found&#8221;);<br />
return;<br />
} catch(ArrayIndexOutOfBoundsException e) {<br />
System.out.println(&#8221;Usage: ShowFile File&#8221;);<br />
return;<br />
}<br />
// read characters until EOF is encountered<br />
do {<br />
i = fin.read();<br />
if(i != -1) System.out.print((char) i);<br />
} while(i != -1);<br />
}<br />
*/<br />
	ppdm2 pp=new ppdm2();<br />
	try<br />
	{<br />
		con = DriverManager.getConnection(url);<br />
		PreparedStatement select = con.prepareStatement(&#8221;SELECT * FROM pdb&#8221;,ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);<br />
		ResultSet result = select.executeQuery();<br />
		System.out.println(&#8221;Got results:&#8221;);<br />
	while(result.next( ))<br />
	 { // process results one row at a time<br />
		int key;<br />
		//String val;<br />
		key = result.getInt(1);<br />
		if( result.wasNull( ) )<br />
		{<br />
			key = -1;<br />
		}<br />
		val = result.getString(2);<br />
		if( result.wasNull( ) )<br />
	 	{<br />
			val = null;<br />
		}<br />
result.updateString(2,pp.RSA(val));<br />
	result.updateRow();</p>
<p>	System.out.println(&#8221;key = &#8221; + key);<br />
	System.out.println(&#8221;val = &#8221; + val);<br />
	//result.Commit();<br />
	}<br />
       }<br />
	catch( Exception e )<br />
	{<br />
		e.printStackTrace( );<br />
	}<br />
	finally<br />
	{<br />
	if( con != null )<br />
	{<br />
		try<br />
			{ con.close( ); }<br />
	catch( Exception e )<br />
		{ e.printStackTrace( ); }<br />
		}<br />
	}<br />
	}</p>
<p>}</p>
<p>hey this wht i&#8217;ve written.. but iam not able 2 recover the original data in DB once i encrypt.. plz help.. its urgent</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How To Log On To Windows If You Forget Your Password by Zach</title>
		<link>http://www.aviransplace.com/2005/12/25/how-to-log-on-to-windows-if-you-forget-your-password/#comment-12400</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Wed, 10 Mar 2010 07:49:25 +0000</pubDate>
		<guid>http://www.aviransplace.com/2005/12/25/how-to-log-on-to-windows-if-you-forget-your-password/#comment-12400</guid>
		<description>I think the best method to recover windows password is using &lt;a href="http://www.windowsloginrecovery.com" rel="nofollow"&gt;windows password recovery software&lt;/a&gt;. Burn the .iso file to a blank CD or a USB flash drive or a floppy disk, insert the CD(USB/floppy disk) into the problem computer and your password will be reset to "Blank" without losing any data and you needn't reinstall windows OS.</description>
		<content:encoded><![CDATA[<p>I think the best method to recover windows password is using <a href="http://www.windowsloginrecovery.com" rel="nofollow">windows password recovery software</a>. Burn the .iso file to a blank CD or a USB flash drive or a floppy disk, insert the CD(USB/floppy disk) into the problem computer and your password will be reset to &#8220;Blank&#8221; without losing any data and you needn&#8217;t reinstall windows OS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google leaps language barrier with translator phone by Guna</title>
		<link>http://www.aviransplace.com/2010/02/08/google-leaps-language-barrier-with-translator-phone/#comment-12399</link>
		<dc:creator>Guna</dc:creator>
		<pubDate>Tue, 09 Mar 2010 06:31:20 +0000</pubDate>
		<guid>http://www.aviransplace.com/2010/02/08/google-leaps-language-barrier-with-translator-phone/#comment-12399</guid>
		<description>Well, We are going much deeper into the cyber world. 
If this is a success we will be forced to use the translation service for our personal and official contacts and who knows governments may also recongize it in future. 

Did Google see the amount of risk here?

If hacked, someone can change the course of the talk and may led to very undesirable responses, forged wars to the max.

Remember IROBOT?</description>
		<content:encoded><![CDATA[<p>Well, We are going much deeper into the cyber world.<br />
If this is a success we will be forced to use the translation service for our personal and official contacts and who knows governments may also recongize it in future. </p>
<p>Did Google see the amount of risk here?</p>
<p>If hacked, someone can change the course of the talk and may led to very undesirable responses, forged wars to the max.</p>
<p>Remember IROBOT?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tip: Disable Auto Restart in Windows Update by guitar</title>
		<link>http://www.aviransplace.com/2004/12/18/tip-disable-auto-restart-in-windows-update/#comment-12398</link>
		<dc:creator>guitar</dc:creator>
		<pubDate>Sun, 07 Mar 2010 15:57:41 +0000</pubDate>
		<guid>http://www.aviransplace.com/2004/12/18/tip-disable-auto-restart-in-windows-update/#comment-12398</guid>
		<description>thanks for this tips..</description>
		<content:encoded><![CDATA[<p>thanks for this tips..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How To Safely Execute Process From Java by Adam</title>
		<link>http://www.aviransplace.com/2008/04/17/how-to-safely-execute-process-from-java/#comment-12397</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sun, 07 Mar 2010 00:51:39 +0000</pubDate>
		<guid>http://www.aviransplace.com/2008/04/17/how-to-safely-execute-process-from-java/#comment-12397</guid>
		<description>Awesome bit of code, this was *exactly* what I was looking for.

Only gotcha I've run into is that if you try doing multiple execute()'s in a single execution all that come after the first that times out will fail with the same error.

The problem is that the thread's interrupted status is not reset.  If you change the finally block in execute to be:

		finally
		{
			// Stop the timer
			timer.cancel();
			// clear interrupted status
			Thread.interrupted();
		}

this will clear the interrupted flag for the thread, and allow you to execute a new process again.</description>
		<content:encoded><![CDATA[<p>Awesome bit of code, this was *exactly* what I was looking for.</p>
<p>Only gotcha I&#8217;ve run into is that if you try doing multiple execute()&#8217;s in a single execution all that come after the first that times out will fail with the same error.</p>
<p>The problem is that the thread&#8217;s interrupted status is not reset.  If you change the finally block in execute to be:</p>
<p>		finally<br />
		{<br />
			// Stop the timer<br />
			timer.cancel();<br />
			// clear interrupted status<br />
			Thread.interrupted();<br />
		}</p>
<p>this will clear the interrupted flag for the thread, and allow you to execute a new process again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Launches User-Generated Street View by wholesale usb flash drives</title>
		<link>http://www.aviransplace.com/2010/03/02/google-launches-user-generated-street-view/#comment-12396</link>
		<dc:creator>wholesale usb flash drives</dc:creator>
		<pubDate>Thu, 04 Mar 2010 03:49:43 +0000</pubDate>
		<guid>http://www.aviransplace.com/2010/03/02/google-launches-user-generated-street-view/#comment-12396</guid>
		<description>google will use street view where we can't find</description>
		<content:encoded><![CDATA[<p>google will use street view where we can&#8217;t find</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Launches User-Generated Street View by imprinted usb flash drives</title>
		<link>http://www.aviransplace.com/2010/03/02/google-launches-user-generated-street-view/#comment-12395</link>
		<dc:creator>imprinted usb flash drives</dc:creator>
		<pubDate>Thu, 04 Mar 2010 03:48:34 +0000</pubDate>
		<guid>http://www.aviransplace.com/2010/03/02/google-launches-user-generated-street-view/#comment-12395</guid>
		<description>street view should be fobidden</description>
		<content:encoded><![CDATA[<p>street view should be fobidden</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Samsung joins the Skype-TV crowd by cheap mobile phones</title>
		<link>http://www.aviransplace.com/2010/02/28/samsung-joins-the-skype-tv-crowd/#comment-12393</link>
		<dc:creator>cheap mobile phones</dc:creator>
		<pubDate>Thu, 04 Mar 2010 03:46:53 +0000</pubDate>
		<guid>http://www.aviransplace.com/2010/02/28/samsung-joins-the-skype-tv-crowd/#comment-12393</guid>
		<description>Skype is usefull</description>
		<content:encoded><![CDATA[<p>Skype is usefull</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mozilla Is Working On A New Javascript Engine by JavascriptBank.com</title>
		<link>http://www.aviransplace.com/2010/03/02/mozilla-is-working-on-a-new-javascript-engine/#comment-12392</link>
		<dc:creator>JavascriptBank.com</dc:creator>
		<pubDate>Wed, 03 Mar 2010 10:38:14 +0000</pubDate>
		<guid>http://www.aviransplace.com/2010/03/02/mozilla-is-working-on-a-new-javascript-engine/#comment-12392</guid>
		<description>oh, it's so good when hear this hot news

thank</description>
		<content:encoded><![CDATA[<p>oh, it&#8217;s so good when hear this hot news</p>
<p>thank</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tip: Installing Maven 2 Behind A Proxy by Noel</title>
		<link>http://www.aviransplace.com/2006/08/20/tip-installing-maven-2-behind-a-proxy/#comment-12388</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Thu, 25 Feb 2010 12:48:42 +0000</pubDate>
		<guid>http://www.aviransplace.com/2006/08/20/tip-installing-maven-2-behind-a-proxy/#comment-12388</guid>
		<description>Well guys can i do that for 2 proxies?i mean can i put to block of 



    .......


code? lets say that one is for http and the other one for https. I am trying it but it doesnt seem to work

thanx in advance
Noel</description>
		<content:encoded><![CDATA[<p>Well guys can i do that for 2 proxies?i mean can i put to block of </p>
<p>    &#8230;&#8230;.</p>
<p>code? lets say that one is for http and the other one for https. I am trying it but it doesnt seem to work</p>
<p>thanx in advance<br />
Noel</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using RSA encryption with Java by khalifa</title>
		<link>http://www.aviransplace.com/2004/10/12/using-rsa-encryption-with-java/#comment-12387</link>
		<dc:creator>khalifa</dc:creator>
		<pubDate>Tue, 23 Feb 2010 14:08:36 +0000</pubDate>
		<guid>http://www.aviransplace.com/2004/10/12/using-rsa-encryption-with-java/#comment-12387</guid>
		<description>i encrypted and decrpted txt file and it worked just fine but when i tried to encrypt and decrypt word or PDF file the decrypted file in case of the file was currapted 
and in case of pdf the pages were white altough the size of the file was equal the size of the original file 
can anyone help me please

thx</description>
		<content:encoded><![CDATA[<p>i encrypted and decrpted txt file and it worked just fine but when i tried to encrypt and decrypt word or PDF file the decrypted file in case of the file was currapted<br />
and in case of pdf the pages were white altough the size of the file was equal the size of the original file<br />
can anyone help me please</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Change Screen Resolution For Ubuntu Running Under VirtualBox by Mottramdo.com</title>
		<link>http://www.aviransplace.com/2008/07/01/change-screen-resolution-for-ubuntu-804-running-under-virtualbox/#comment-12382</link>
		<dc:creator>Mottramdo.com</dc:creator>
		<pubDate>Thu, 18 Feb 2010 00:27:35 +0000</pubDate>
		<guid>http://www.aviransplace.com/2008/07/01/change-screen-resolution-for-ubuntu-804-running-under-virtualbox/#comment-12382</guid>
		<description>awesome, thanks for the great guide</description>
		<content:encoded><![CDATA[<p>awesome, thanks for the great guide</p>
]]></content:encoded>
	</item>
</channel>
</rss>
