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

<channel>
	<title>Robert Sicoie &#187; dev</title>
	<atom:link href="http://www.sicoie.ro/robert/category/it/dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sicoie.ro/robert</link>
	<description></description>
	<lastBuildDate>Sun, 15 May 2011 08:47:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Find the name of the table an index is in a MSSQL database</title>
		<link>http://www.sicoie.ro/robert/2011/04/08/find-the-name-of-the-table-an-index-is-in-a-mssql-database/</link>
		<comments>http://www.sicoie.ro/robert/2011/04/08/find-the-name-of-the-table-an-index-is-in-a-mssql-database/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 10:35:09 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://www.sicoie.ro/robert/?p=86</guid>
		<description><![CDATA[I was looking for a way to find out in which table an index is in a MSSQL database. Finally, running this query in Microsoft SQL Server Management Studio did the trick: /* Select table that has the index given by name */ SELECT t.name FROM sys.indexes o INNER JOIN sys.TABLES t ON o.object_id=t.object_id WHERE <a href='http://www.sicoie.ro/robert/2011/04/08/find-the-name-of-the-table-an-index-is-in-a-mssql-database/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sicoie.ro/robert/wp-content/uploads/2011/04/mssql.jpg"><img class="alignright size-full wp-image-90" title="mssql logo" src="http://www.sicoie.ro/robert/wp-content/uploads/2011/04/mssql.jpg" alt="" width="162" height="101" /></a>I was looking for a way to find out in which table an index is in a MSSQL database. Finally, running this query in Microsoft SQL Server Management Studio did the trick:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Select table that has the index given by name */</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> t<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">FROM</span> sys<span style="color: #66cc66;">.</span>indexes o <span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> sys<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">TABLES</span> t
<span style="color: #993333; font-weight: bold;">ON</span> o<span style="color: #66cc66;">.</span>object_id<span style="color: #66cc66;">=</span>t<span style="color: #66cc66;">.</span>object_id
<span style="color: #993333; font-weight: bold;">WHERE</span> o<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'my_index'</span></pre></div></div>

<p>&nbsp;</p>

<div class="like">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.sicoie.ro%2Frobert%2F2011%2F04%2F08%2Ffind-the-name-of-the-table-an-index-is-in-a-mssql-database%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:62px; "></iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sicoie.ro/robert/2011/04/08/find-the-name-of-the-table-an-index-is-in-a-mssql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patched jQuery ContextMenu Plugin to get it working inside iframe</title>
		<link>http://www.sicoie.ro/robert/2011/03/20/jquery-contextmenu-plugin-patch/</link>
		<comments>http://www.sicoie.ro/robert/2011/03/20/jquery-contextmenu-plugin-patch/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 13:10:56 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[contextmenu]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.sicoie.ro/robert/?p=75</guid>
		<description><![CDATA[These days I needed a context menu jQuery plugin and I used this one. But I had to activate the plugin for elements inside an iframe and the plugin unfortunately does not support this. If you run into the same problem with version 1.01 don&#8217;t worry, here is the patch: jquery.contextMenu-1.01.patch]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-78" title="contextMenu" src="http://www.sicoie.ro/robert/wp-content/uploads/2011/03/contextMenu.png" alt="" width="121" height="137" />These days I needed a context menu jQuery plugin and I used <a href="http://abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin/">this one</a>. But I had to activate the plugin for elements inside an iframe and the plugin unfortunately does not support this. If you run into the same problem with version 1.01 don&#8217;t worry, here is the patch: <a href="http://www.sicoie.ro/robert/wp-content/uploads/2011/03/jquery.contextMenu-1.01.patch.zip">jquery.contextMenu-1.01.patch</a></p>

<div class="like">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.sicoie.ro%2Frobert%2F2011%2F03%2F20%2Fjquery-contextmenu-plugin-patch%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:62px; "></iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sicoie.ro/robert/2011/03/20/jquery-contextmenu-plugin-patch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RIPEMD with Bouncy Castle Cryptography Library</title>
		<link>http://www.sicoie.ro/robert/2009/06/24/ripemd-with-bouncy-castle-cryptography-library/</link>
		<comments>http://www.sicoie.ro/robert/2009/06/24/ripemd-with-bouncy-castle-cryptography-library/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 22:48:06 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[Free software]]></category>

		<guid isPermaLink="false">http://www.sicoie.ro/robert/2009/06/24/ripemd-with-bouncy-castle-cryptography-library/</guid>
		<description><![CDATA[If someone asks you to make simple tool that creates a RIPEMD-160 message digest and output it in Base64 encoding what will you do? This is how I started: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 <a href='http://www.sicoie.ro/robert/2009/06/24/ripemd-with-bouncy-castle-cryptography-library/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>If someone asks you to make simple tool that creates a RIPEMD-160 message digest and output it in Base64 encoding what will you do?</p>
<p>This is how I started:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.bouncycastle.jce.provider.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.bouncycastle.util.encoders.Base64</span><span style="color: #339933;">;</span>
<span style="color: #008000; font-style: italic; font-weight: bold;">/**
 * Calculates RIPEMD-160 for an input message and output it in Base64 encoding
 * @author robert sicoie
 *
 */</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> RipeMD <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> usage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">err</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">&quot;RipeMD &amp;lt;message&amp;gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">&quot;Calculates RIPEMD-160 for a given message and outputs it in Base64 encoding&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * @param args message The message we want to calculate RIMEMD-160 for.
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>args.<span style="color: #006633;">length</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			usage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #003399;">System</span>.<span style="color: #006633;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #003399;">String</span> inputMessage <span style="color: #339933;">=</span> args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Get the message digest generator</span>
		JDKMessageDigest ripeDigest <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JDKMessageDigest.<span style="color: #006633;">RIPEMD160</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">byte</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> input <span style="color: #339933;">=</span> inputMessage.<span style="color: #006633;">getBytes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">byte</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> output <span style="color: #339933;">=</span> ripeDigest.<span style="color: #006633;">digest</span><span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">String</span> outputMessage <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#40;</span>Base64.<span style="color: #006633;">encode</span><span style="color: #009900;">&#40;</span>output<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>outputMessage<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.bouncycastle.org/" target="_blank">Bouncy Castle</a> library makes it really easy!</p>

<div class="like">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.sicoie.ro%2Frobert%2F2009%2F06%2F24%2Fripemd-with-bouncy-castle-cryptography-library%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:62px; "></iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sicoie.ro/robert/2009/06/24/ripemd-with-bouncy-castle-cryptography-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails on Dreamhost</title>
		<link>http://www.sicoie.ro/robert/2008/06/21/rails-on-dreamhost/</link>
		<comments>http://www.sicoie.ro/robert/2008/06/21/rails-on-dreamhost/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 18:03:34 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.sicoie.ro/robert/2008/06/21/rails-on-dreamhost/</guid>
		<description><![CDATA[These days, while testing my personal Ruby on Rails project I&#8217;m currently working on, I realized how slow Dreamhost&#8217;s FCGI Rails support is.  So after intensive search for answers I had to contact Dreamhost support team. I wrote them about the problem and today they replayed to my email:  I apologize for the slowness with <a href='http://www.sicoie.ro/robert/2008/06/21/rails-on-dreamhost/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>These days, while testing my personal Ruby on Rails project I&#8217;m currently working on, I realized how slow Dreamhost&#8217;s FCGI Rails support is.  So after intensive search for answers I had to contact Dreamhost support team. I wrote them about the problem and today they replayed to my email:</p>
<address> I apologize for the slowness with our FCGI and rails. This is actually one of the reasons we worked with the Phusion to get passenge (mod_rails) working on our servers, passenger is faster, better and stronger than FCGI rails implementation.</address>
<address> </address>
<address>I would highly recommend you try your application with passenger (mod_rails) instead of fastCGI, this should substantially increase the speed of your site.<br />
</address>
<p>And they were right.</p>
<p>To enable passanger, just access <a href="https://panel.dreamhost.com/index.cgi?tree=domain.manage&amp;current_step=Index&amp;next_step=ShowEdithttp" title="dreamhost panel">dreamhost panel</a> and check &#8220;Ruby on Rails Passenger (mod_rails)?&#8221;. This way your Ruby on Rails app. should get more speed.</p>

<div class="like">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.sicoie.ro%2Frobert%2F2008%2F06%2F21%2Frails-on-dreamhost%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:62px; "></iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sicoie.ro/robert/2008/06/21/rails-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new Photos page</title>
		<link>http://www.sicoie.ro/robert/2008/02/19/new-photos-page/</link>
		<comments>http://www.sicoie.ro/robert/2008/02/19/new-photos-page/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 23:37:38 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[dev]]></category>

		<guid isPermaLink="false">http://robert.softwareliber.ro/2008/02/19/new-photos-page/</guid>
		<description><![CDATA[I just have changed the &#8220;Photos&#8221; page. It load albums from google&#8217;s picasaweb through atom feeds. This page allows photo navigation, so I would call it a photo gallery. I plan to put the code behind into a wordpress plugin, so it&#8217;s not ready. Please report any issue&#8230;It helps me a lot.]]></description>
			<content:encoded><![CDATA[<p>I just have changed the &#8220;Photos&#8221; page. It load albums from google&#8217;s picasaweb through atom feeds. This page allows photo navigation, so I would call it a photo gallery. I plan to put the code behind into a wordpress plugin, so it&#8217;s not ready. Please report any issue&#8230;It helps me a lot.</p>

<div class="like">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.sicoie.ro%2Frobert%2F2008%2F02%2F19%2Fnew-photos-page%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:62px; "></iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sicoie.ro/robert/2008/02/19/new-photos-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android [ part 1 ]</title>
		<link>http://www.sicoie.ro/robert/2007/11/24/android-1/</link>
		<comments>http://www.sicoie.ro/robert/2007/11/24/android-1/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 17:02:27 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[Free software]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://robert.softwareliber.ro/?p=11</guid>
		<description><![CDATA[Google has recently released Android &#8211; the new open source operating system and software platform. This has been developed by Google and others as part of the Open Handset Alliance, which has over 30 partners supporting it. The goal of this ambitious initiative is to spur innovation in the mobile space and accelerate improvements in <a href='http://www.sicoie.ro/robert/2007/11/24/android-1/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Google has recently released Android &#8211; the new open source operating system and software platform. This has been developed by Google and  <a href="http://www.openhandsetalliance.com/oha_members.html">others</a> as part of the <a href="http://www.openhandsetalliance.com">Open Handset Alliance</a>, which has over 30 partners supporting it. The goal of this ambitious initiative is to spur innovation in the mobile space and accelerate improvements in how people use the Web via cell phones.</p>
<p>But there is no mobile device on the market able to support this technology. The first Android-based phones should hit the market in the second half of 2008. The platform will be made available under Apache 2 license giving a lot of flexibility to those who adopt it to modify its components and design services and products.</p>
<p>To motivate developers to adopt Android platform, Google has launched the <a href="http://code.google.com/android/adc.html">Android Developer Challenge</a>, which will provide $10 million in awards for great mobile applications built on this platform. As submissions start on January 2, 2008 and last until on March 3, 2008 (for the first challenge) I thing I&#8217;ll start learning something more about this platform and maybe participate. There seams to be nothing to loose&#8230;</p>

<div class="like">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.sicoie.ro%2Frobert%2F2007%2F11%2F24%2Fandroid-1%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:62px; "></iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sicoie.ro/robert/2007/11/24/android-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

