<?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>Reflection Media</title>
	<atom:link href="http://www.reflectionmedia.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reflectionmedia.ro</link>
	<description>Custom WordPress Solutions</description>
	<lastBuildDate>Tue, 24 Jan 2012 10:34:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Reflection Media on WordPress Publisher Blog!</title>
		<link>http://www.reflectionmedia.ro/2011/09/26/reflection-media-on-wordpress-publisher-blog/</link>
		<comments>http://www.reflectionmedia.ro/2011/09/26/reflection-media-on-wordpress-publisher-blog/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 13:18:36 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=1044</guid>
		<description><![CDATA[I&#8217;m sure you&#8217;re all familiar with the type of news that simply make your day. Well, guess what? Animal Politico, one of our bold projects, made it to the WordPress Publisher Blog. Behind the scenes of this political newspaper are things like: custom user profiles, Facebook connect, custom taxonomies, MailChimp integration and many others. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure you&#8217;re all familiar with the type of news that simply make your day.</p>
<p>Well, guess what? <a href="http://www.animalpolitico.com" target="_blank">Animal Politico</a>, one of our bold projects, made it to the WordPress Publisher Blog.</p>
<p>Behind the scenes of this political newspaper are things like: custom user profiles, Facebook connect, custom taxonomies, MailChimp integration and <a href="http://www.reflectionmedia.ro/projects/animal-politico/">many others</a>.</p>
<p>The detailed article <a href="http://publisherblog.automattic.com/2011/09/16/animal-politico-wordpress-publisher-spotlight/" target="_blank">here</a>.</p>
<p><a href="http://www.reflectionmedia.ro/wp-content/uploads/2011/09/rm-wpb.png"><img src="http://www.reflectionmedia.ro/wp-content/uploads/2011/09/rm-wpb.png" alt="" title="Reflection Media on WordPress Publisher Blog" width="600" height="700" class="alignnone size-full wp-image-1045" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2011/09/26/reflection-media-on-wordpress-publisher-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New year, new look</title>
		<link>http://www.reflectionmedia.ro/2011/01/10/new-year-new-look/</link>
		<comments>http://www.reflectionmedia.ro/2011/01/10/new-year-new-look/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 13:39:01 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=945</guid>
		<description><![CDATA[Happy New Year everybody! I love small teams, hard work, cool projects and people with the sense of humor. I am lucky enough to be a part of a company which turned out to have small pieces of all the above. Yes, I&#8217;m bragging. 2011 is a big year for us, marking our 3rd year [...]]]></description>
			<content:encoded><![CDATA[<p>Happy New Year everybody!</p>
<p>I love small teams, hard work, cool projects and people with the sense of humor. I am lucky enough to be a part of a company which turned out to have small pieces of all the above. Yes, I&#8217;m bragging. </p>
<p>2011 is a big year for us, marking our 3rd year anniversary. It makes us look further, wanting to achieve more and become better. It also makes us analyze the past year, which was pretty exciting. We got to work on some really nice <a href="http://www.reflectionmedia.ro/projects">projects</a> and collaborate with cool people. 2010 also marked the beginning of some personal projects that hopefully you will hear more about this year.</p>
<p>We wanted to start this new year with a new look. This meant rethinking our website design and content structure, in order to highlight our main <a href="http://reflectionmedia.ro/services">services</a> and abilities. Simply put, our <a href="http://reflectionmedia.ro">new website</a> is out and ready to shine. Check it out and tell us what you think about it in the comment section below.</p>
<p>Let&#8217;s hope 2011 will allow us all to run our engines at full power once again. Fingers crossed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2011/01/10/new-year-new-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image resize plugin</title>
		<link>http://www.reflectionmedia.ro/2009/10/13/image-resize-plugin/</link>
		<comments>http://www.reflectionmedia.ro/2009/10/13/image-resize-plugin/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 13:22:16 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[image resize]]></category>
		<category><![CDATA[mce]]></category>
		<category><![CDATA[rich editor]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=610</guid>
		<description><![CDATA[We&#8217;ve just finished a new plugin: one that integrates the image resize script TimThumb with TinyMCE, the WYSIWYG editor that WordPress uses. You can download it here via the official WordPress repository.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve just finished a new plugin: one that integrates the image resize script TimThumb with TinyMCE, the WYSIWYG editor that WordPress uses.</p>
<p>You can download it <a href="http://wordpress.org/extend/plugins/timthumb-meets-tinymce/">here</a> via the official WordPress repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/10/13/image-resize-plugin/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>bbPress în limba română</title>
		<link>http://www.reflectionmedia.ro/2009/09/21/bbpress-in-limba-romana/</link>
		<comments>http://www.reflectionmedia.ro/2009/09/21/bbpress-in-limba-romana/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 10:51:56 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bbpress]]></category>
		<category><![CDATA[limba romana]]></category>
		<category><![CDATA[romanian]]></category>
		<category><![CDATA[ro_RO.mo]]></category>
		<category><![CDATA[ro_RO.po]]></category>
		<category><![CDATA[traducere]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=575</guid>
		<description><![CDATA[Acum câteva zile am constatat că avem nevoie de un bbPress în limba română, şi că traducerea încă nu există, aşa că ne-am apucat să o facem noi, şi cu ocazia asta o punem şi la dispoziţia dumneavoastră. Traducerea e realizată pe baza fişierului POT oficial pentru versiunea 1.0.2. Pentru alte traduceri de bbPress, căutaţi [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/09/bbPress-Logo1-150x150.jpg" alt="bbPress-Logo1-150x150" title="bbPress-Logo1-150x150" width="150" height="150" class="alignright size-full wp-image-584" /></p>
<p>Acum câteva zile am constatat că avem nevoie de un <a href="http://en.wikipedia.org/wiki/bbPress">bbPress</a> în limba română, şi că traducerea încă nu există, aşa că ne-am apucat să o facem noi, şi cu ocazia asta o punem şi la dispoziţia dumneavoastră.</p>
<p>Traducerea e realizată pe baza <a href="http://svn.automattic.com/bbpress-i18n/pot/tags/">fişierului POT oficial</a> pentru versiunea 1.0.2. Pentru alte traduceri de bbPress, căutaţi pe <a href="http://bbpress.org/forums/">forumurile oficiale bbPress</a>.</p>
<h3>Instrucţiuni de instalare a traducerii</h3>
<p>Creaţi un director <em>my-languages</em> în rădăcina instalării bbPress.</p>
<p>Descărcaţi fişierul <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=19">bb102.zip</a>.</p>
<p>Despachetaţi şi încărcaţi fişierul <em>ro_RO.mo</em> în directorul proaspăt creat <em>my-languages</em>.</p>
<p>Deschideţi fişierul <em>bb-config.php</em> din rădăcina instalării bbPress, căutaţi linia:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'BB_LANG'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>şi schimbaţi-o în:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'BB_LANG'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ro_RO'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Pentru aducerea de modificări la traducere</h3>
<p>Dacă se doreşte modificarea traducerii, puteţi folosi fişierul <em>ro_RO.po</em> din arhiva descărcată anterior şi îl puteţi edita cu un editor cum ar fi <a href="http://www.poedit.net/">Poedit</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/09/21/bbpress-in-limba-romana/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Making darkness or brightness transparent</title>
		<link>http://www.reflectionmedia.ro/2009/07/06/making-darkness-or-brightness-transparent/</link>
		<comments>http://www.reflectionmedia.ro/2009/07/06/making-darkness-or-brightness-transparent/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 10:28:08 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[brightness]]></category>
		<category><![CDATA[darkness]]></category>
		<category><![CDATA[transparency]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=428</guid>
		<description><![CDATA[Let&#8217;s say you have the picture of a flame and you want to change the background. In order to do that you first must make the background transparent. But how can you do that? You can do it by hand using a brush but it&#8217;s not quite the effect I was looking for. So I [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have the picture of a flame and you want to change the background. In order to do that you first must make the background transparent. But how can you do that? You can do it by hand using a brush but it&#8217;s not quite the effect I was looking for. So I figured there must be a way to automatically adjust the transparency of each pixel depending on it&#8217;s darkness.</p>
<p>This gave me the chance to play around with <a href="http://www.php.net/gd">PHP GD</a>, and I must say I&#8217;m quite impressed. It seems to be a really powerful image processing tool. <a href="http://www.reflectionmedia.ro/wp-content/uploads/2009/07/transparent.zip">Here</a> is the script I came up with, and <a href="http://www.reflectionmedia.ro/projects/gab/alpha/index.php">here</a> it is in action.</p>
<div id="attachment_471" class="wp-caption alignnone" style="width: 211px"><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/07/before-201x300.jpg" alt="Before" title="before" width="201" height="300" class="size-medium wp-image-471" /><p class="wp-caption-text">Before</p></div>
<div id="attachment_472" class="wp-caption alignnone" style="width: 211px"><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/07/after-201x300.jpg" alt="After" title="after" width="201" height="300" class="size-medium wp-image-472" /><p class="wp-caption-text">After</p></div>
<p>Pretty neat, huh? Here&#8217;s the script so you can see it without having to download the zip file.</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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// $url: the URL of the image you want to be processed. It can also be a local filename.</span>
<span style="color: #666666; font-style: italic;">// $type: 0 for brightness, anything else for darkness.</span>
<span style="color: #666666; font-style: italic;">// $mode: 0 for theoretical mode, anything else for Photoshop mode.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> transparent<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #000088;">$type</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$mode</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// Create the old image</span>
<span style="color: #000088;">$old_image</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecreatefromstring</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Create the new image of the same size as the old one</span>
<span style="color: #990000;">list</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x_size</span><span style="color: #339933;">,</span> <span style="color: #000088;">$y_size</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">getimagesize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$new_image</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecreatetruecolor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x_size</span><span style="color: #339933;">,</span> <span style="color: #000088;">$y_size</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Turn off alpha blending and set alpha flag for our new image</span>
<span style="color: #990000;">imagealphablending</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_image</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagesavealpha</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_image</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Do the following for each pixel</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$y</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$y_size</span><span style="color: #339933;">;</span> <span style="color: #000088;">$y</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$x</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$x_size</span><span style="color: #339933;">;</span> <span style="color: #000088;">$x</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// get it's color</span>
		<span style="color: #000088;">$rgb</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecolorat</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$old_image</span><span style="color: #339933;">,</span> <span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #000088;">$y</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// and get the R, G and B components of the color</span>
		<span style="color: #000088;">$old_color</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecolorsforindex</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$old_image</span><span style="color: #339933;">,</span> <span style="color: #000088;">$rgb</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$r</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$old_color</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'red'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$g</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$old_color</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'green'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$old_color</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'blue'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Define brightness:</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$mode</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$brightness</span> <span style="color: #339933;">=</span> <span style="color: #990000;">max</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #339933;">,</span> <span style="color: #000088;">$g</span><span style="color: #339933;">,</span> <span style="color: #000088;">$b</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// photoshop mode OR</span>
		<span style="color: #b1b100;">else</span> <span style="color: #000088;">$brightness</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">max</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #339933;">,</span> <span style="color: #000088;">$g</span><span style="color: #339933;">,</span> <span style="color: #000088;">$b</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #990000;">min</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #339933;">,</span> <span style="color: #000088;">$g</span><span style="color: #339933;">,</span> <span style="color: #000088;">$b</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// theoretical mode</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Define darkness:</span>
		<span style="color: #000088;">$darkness</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">255</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$brightness</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Generate transparence:</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$alpha</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$darkness</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// for darkness OR</span>
		<span style="color: #b1b100;">else</span> <span style="color: #000088;">$alpha</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$brightness</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// for brightness</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Define the new color, same as the old one, but with alpha transparency</span>
		<span style="color: #000088;">$new_color</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecolorallocatealpha</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_image</span><span style="color: #339933;">,</span> <span style="color: #000088;">$r</span><span style="color: #339933;">,</span> <span style="color: #000088;">$g</span><span style="color: #339933;">,</span> <span style="color: #000088;">$b</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alpha</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Set that color to the pixel in the new image</span>
		<span style="color: #990000;">imagesetpixel</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_image</span><span style="color: #339933;">,</span> <span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #000088;">$y</span><span style="color: #339933;">,</span> <span style="color: #000088;">$new_color</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Output image to browser</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Type: image/png'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagepng</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_image</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Destroy all images in the end</span>
<span style="color: #990000;">imagedestroy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$old_image</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagedestroy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_image</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>Update</strong>: There&#8217;s also a <a href="http://www.powerretouche.com/Transparency_plugin_tutorial.htm">Photoshop plugin</a> for doing something similar, but it costs 27 euros.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/07/06/making-darkness-or-brightness-transparent/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8 în limba română</title>
		<link>http://www.reflectionmedia.ro/2009/07/01/wordpress-28-in-romanian/</link>
		<comments>http://www.reflectionmedia.ro/2009/07/01/wordpress-28-in-romanian/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 13:39:26 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[2.8]]></category>
		<category><![CDATA[limba romana]]></category>
		<category><![CDATA[romanian]]></category>
		<category><![CDATA[ro_RO.mo]]></category>
		<category><![CDATA[ro_RO.po]]></category>
		<category><![CDATA[traducere]]></category>
		<category><![CDATA[translation]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=377</guid>
		<description><![CDATA[Traducerea versiunii 2.8 este cam 50% bazată pe traducerea versiunii 2.7 realizată de Catholica NETwork. În plus am mai adus următoarele modificări faţă de versiunea celor de la Catholica NETwork: Cuvintele theme, template şi style nu mai sunt toate traduse prin şablon, ci theme este acum temă, template a rămas şablon, iar style este stil. [...]]]></description>
			<content:encoded><![CDATA[<p>Traducerea versiunii 2.8 este cam 50% bazată pe traducerea versiunii 2.7 realizată de <a href="http://www.cnet.ro/2008/12/19/wordpress-27-in-limba-romana/">Catholica NETwork</a>. În plus am mai adus următoarele modificări faţă de versiunea celor de la Catholica NETwork:</p>
<ul>
<li>Cuvintele <strong>theme</strong>, <strong>template</strong> şi <strong>style</strong> nu mai sunt toate traduse prin <strong>şablon</strong>, ci <strong>theme</strong> este acum <strong>temă</strong>, <strong>template</strong> a rămas <strong>şablon</strong>, iar <strong>style</strong> este <strong>stil</strong>.</li>
<li><strong>Version</strong> nu mai este tradus ca şi <strong>Traducere realizată de CNET.ro | Versiunea</strong>, ci acum este doar <strong>Versiunea</strong>.</li>
</ul>
<p>Traducerile sunt realizate pe baza <a href="http://svn.automattic.com/wordpress-i18n/pot/tags/">fişierelor POT oficiale</a>. Pentru alte traduceri ale WordPress-ului vizitaţi pagina oficială <a href="http://codex.wordpress.org/WordPress_in_Your_Language">WordPress in Your Language</a>.</p>
<h3>Instrucţiuni de instalare a traducerii</h3>
<p>Descărcaţi fişierul de traducere pentru versiunea dumneavoastră de WordPress:</p>
<ul>
<li>WordPress 2.8 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=9">wp28.zip</a></li>
<li>WordPress 2.8.1 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=10">wp281.zip</a></li>
<li>WordPress 2.8.2 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=12">wp282.zip</a></li>
<li>WordPress 2.8.3 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=13">wp283.zip</a></li>
<li>WordPress 2.8.4 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=14">wp284.zip</a></li>
<li>WordPress 2.8.5 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=21">wp285.zip</a></li>
</ul>
<p>WordPress MU (doar pentru cei care ştiu despre ce e vorba):</p>
<ul>
<li>WordPress MU 2.8.1 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=11">wpmu281.zip</a></li>
<li>WordPress MU 2.8.2 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=15">wpmu282.zip</a></li>
<li>WordPress MU 2.8.3 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=16">wpmu283.zip</a></li>
<li>WordPress MU 2.8.4 &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=17">wpmu284.zip</a></li>
<li>WordPress MU 2.8.4a &#8212; <a href="http://www.reflectionmedia.ro/wp-content/plugins/download-monitor/download.php?id=18">wpmu284a.zip</a></li>
</ul>
<p>Despachetaţi şi încărcaţi fişierul <em>ro_RO.mo</em> în directorul dumneavoastră de WordPress <em>wp-content/languages</em>. Dacă directorul nu există, va trebui să îl creaţi.</p>
<p>Deschideţi fişierul <em>wp-config.php</em>, căutaţi linia:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WPLANG'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>şi schimbaţi-o în:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WPLANG'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ro_RO'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Pentru aducerea de modificări la traduceri</h3>
<p>Dacă se doreşte modificarea traducerilor, puteţi folosi fişierul <em>ro_RO.po</em> din arhiva descărcată anterior şi îl puteţi edita cu un editor cum ar fi <a href="http://www.poedit.net/">Poedit</a>. Mai multe informaţii despre traducerea WordPress-ului se pot găsi pe pagina <a href="http://codex.wordpress.org/Translating_WordPress">Translating WordPress</a> a Codexului.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/07/01/wordpress-28-in-romanian/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>Software for SMEs</title>
		<link>http://www.reflectionmedia.ro/2009/06/10/software-for-smessoftware-for-smes/</link>
		<comments>http://www.reflectionmedia.ro/2009/06/10/software-for-smessoftware-for-smes/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:59:10 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[SMEs]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Timisoara]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=321</guid>
		<description><![CDATA[Last week I had the wonderful opportunity to be invited to participate at a series of conferences, being part of a bigger project called “Software for competitive SMEs”. The project was founded by the Romanian Association for Electronic and Software Industry in collaboration with Timisoara’s Software Business Incubator. The primary purpose of the project was [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I had the wonderful opportunity to be invited to participate at a series of conferences, being part of a bigger project called “Software for competitive SMEs”.</p>
<p>The project was founded by the Romanian Association for Electronic and Software Industry in collaboration with Timisoara’s Software Business Incubator.</p>
<p>The primary purpose of the project was to inform the local small business owners about the ways they could use software and web applications in order to increase productivity and support automation.</p>
<p>The project also facilitated the contact between local software firms and SMEs from towns situated in Caras-Severin and Timis counties, in order to contribute to the economic development of the area.</p>
<p>I had the chance to speak to a lot of wonderful people. I’ve noticed that each community has a bunch of representative individuals, that really understand the problems of their community and that can give you the best inputs in order to build up the best solution.</p>
<p><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/06/conf1.jpg" alt="conf1" title="conf1" width="500" height="332" class="aligncenter size-full wp-image-325" /></p>
<p><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/06/conf2.jpg" alt="conf2" title="conf2" width="500" height="332" class="aligncenter size-full wp-image-327" /></p>
<p>They were really opened to the solutions provided by our company, eager to learn more about online presence, web applications and software that could improve their business. It was a great experience because we could actually talk on real cases, and provide practical solutions.</p>
<p><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/06/conf3.jpg" alt="conf3" title="conf3" width="500" height="332" class="aligncenter size-full wp-image-328" /></p>
<p>After the conference we visited some of the most important touristic attractions, which got us to actually feel the historic pulse of that region.</p>
<p>Among them are: The Old Theatre – “Mihai Eminescu” from Oravita, the oldest Romanian casino (many people say it’s the first European casino) as well as some of the agrotouristic pensions situated on the shore of the Danube River.</p>
<p><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/06/teatru.jpg" alt="teatru" title="teatru" width="500" height="332" class="aligncenter size-full wp-image-329" /></p>
<p><img src="http://www.reflectionmedia.ro/wp-content/uploads/2009/06/casino.jpg" alt="casino" title="casino" width="500" height="332" class="aligncenter size-full wp-image-324" /></p>
<p>Thanks again to all the people involved in this project. It really was an enriching experience!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/06/10/software-for-smessoftware-for-smes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Plugin: Talky WordPress</title>
		<link>http://www.reflectionmedia.ro/2009/06/04/new-plugin-talky-wordpress/</link>
		<comments>http://www.reflectionmedia.ro/2009/06/04/new-plugin-talky-wordpress/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 09:05:24 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[talky]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=305</guid>
		<description><![CDATA[We have a new plugin, one that makes WordPress talk! It adds talky sound events for publishing and deleting posts or pages, plugin activation and deactivation and theme activation. It uses SoundManager 2 for playing sounds using JavaScript, by wrapping and extending Flash 8&#8242;s sound API. You can grab it at the official WordPress plugin [...]]]></description>
			<content:encoded><![CDATA[<p>We have a new plugin, one that makes WordPress talk! It adds talky sound events for publishing and deleting posts or pages, plugin activation and deactivation and theme activation.</p>
<p>It uses <a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager 2</a> for playing sounds using JavaScript, by wrapping and extending Flash 8&#8242;s sound API.</p>
<p>You can grab it at the official<a href="http://wordpress.org/extend/plugins/talky-wordpress/"> WordPress plugin repository</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/06/04/new-plugin-talky-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>404 email alert</title>
		<link>http://www.reflectionmedia.ro/2009/05/29/404-email-alert404-email-alert/</link>
		<comments>http://www.reflectionmedia.ro/2009/05/29/404-email-alert404-email-alert/#comments</comments>
		<pubDate>Fri, 29 May 2009 09:44:26 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/2009/05/404-email-alert404-email-alert/</guid>
		<description><![CDATA[Here is a little PHP code snippet to add to your 404 page, in order to get an email alert with all sorts of useful data, each time a 404 page is accessed. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a little PHP code snippet to add to your 404 page, in order to get an email alert with all sorts of useful data, each time a 404 page is accessed.</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_REFERER'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$ref</span><span style="color: #339933;">=</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_REFERER'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$ref</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'none'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$sitename</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'Reflection Media'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$recipient</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'mail@gmail.com'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'New '</span><span style="color: #339933;">.</span><span style="color: #000088;">$sitename</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' 404 accessed'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail_body</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'
A new 404 page has been accessed:
&nbsp;
The accessed URI was: '</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'
The user'</span>s IP address<span style="color: #339933;">:</span> <span style="color: #0000ff;">'.$_SERVER['</span>REMOTE_ADDR<span style="color: #0000ff;">'].'</span>
The user<span style="color: #0000ff;">'s Internet browser: '</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_USER_AGENT'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'
The URI from where your user came: '</span><span style="color: #339933;">.</span><span style="color: #000088;">$ref</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'
'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$header</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'From: '</span><span style="color: #339933;">.</span><span style="color: #000088;">$sitename</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' 404 page &lt;no-reply@mail.com&gt;rn'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$recipient</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">,</span> <span style="color: #000088;">$mail_body</span><span style="color: #339933;">,</span> <span style="color: #000088;">$header</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/05/29/404-email-alert404-email-alert/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fun with numbers</title>
		<link>http://www.reflectionmedia.ro/2009/03/09/fun-with-numbers/</link>
		<comments>http://www.reflectionmedia.ro/2009/03/09/fun-with-numbers/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 14:48:48 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Conway]]></category>
		<category><![CDATA[look]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[puzzle]]></category>
		<category><![CDATA[say]]></category>
		<category><![CDATA[sequence]]></category>

		<guid isPermaLink="false">http://www.reflectionmedia.ro/?p=231</guid>
		<description><![CDATA[Remember the math puzzle? You have the following sequence of terms: 1 11 21 1211 111221 312211 13112221 What is the algorithm? What is the next term? &#8212; Spoiler warning. Continue at your own risk. &#8212; The next term is 1113213211. And the one after that, 31131211131221. This is called the Look-and-say sequence. Wikipedia says [...]]]></description>
			<content:encoded><![CDATA[<p>Remember the <a href="http://www.reflectionmedia.ro/en/2009/03/math-puzzle/">math puzzle</a>?</p>
<p>You have the following sequence of terms:<br />
1<br />
11<br />
21<br />
1211<br />
111221<br />
312211<br />
13112221</p>
<p>What is the algorithm? What is the next term?</p>
<p><strong>&#8212; Spoiler warning. Continue at your own risk. &#8212;</strong><br />
<span id="more-231"></span></p>
<p>The next term is 1113213211.<br />
And the one after that, 31131211131221.</p>
<p>This is called the <a href="http://en.wikipedia.org/wiki/Look-and-say_sequence">Look-and-say sequence</a>. Wikipedia says that:</p>
<blockquote><p>To generate a member of the sequence from the previous member, read off the digits of the previous member, counting the number of digits in groups of the same digit. For example:</p>
<ul>
<li>1 is read off as &#8220;one 1&#8243; or 11.</li>
<li>11 is read off as &#8220;two 1&#8242;s&#8221; or 21.</li>
<li>21 is read off as &#8220;one 2, then one 1&#8243; or 1211.</li>
<li>1211 is read off as &#8220;one 1, then one 2, then two 1&#8242;s&#8221; or 111221.</li>
<li>111221 is read off as &#8220;three 1, then two 2, then one 1&#8243; or 312211.</li>
</ul>
</blockquote>
<p>Apparently it was extensively studied in the 80&#8242;s by a certain mathematician dude called <a href="http://en.wikipedia.org/wiki/John_Horton_Conway">John Conway</a>. He discovered quite a few interesting properties for this sequence, especially the fact that certain patterns emerge that are somehow similar to chemical elements.</p>
<p>Surprisingly enough, my friend Irina knew about this puzzle from a romanian book called Cireşarii, by Constantin Chiriţă, which was written in the 50&#8242;s.</p>
<p>A bit of Wikipedia research (aka <a href="http://en.wikipedia.org/wiki/Procrastination">procrastination</a>) revealed that this John Conway guy is also responsible for only the most amazing <a href="http://en.wikipedia.org/wiki/Cellular_automaton">cellular automaton</a> (man, I love the sound of it) in the world, <a href="http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">Conway&#8217;s Game of Life</a>.</p>
<p>But let&#8217;s return to our Look and Say Sequence. I think I might have discovered a new property. Let me first define the concept of &#8220;average digit&#8221; for a term. It&#8217;s the sum of digits divided by the number of digits.</p>
<p>The interesting thing about this &#8220;average digit&#8221; is that it converges to a certain value. See <a href="http://www.reflectionmedia.ro/projects/gab/alg/index.php?start=1&#038;displimit=50&#038;rows=40">this table</a>, and <a href="http://www.reflectionmedia.ro/projects/gab/alg/graph.php">this graph</a>.</p>
<p>I&#8217;d really like to know how to get that exact value. Perhaps it&#8217;s the root of a polynomial or something. I asked <a href="http://www.mymathforum.com/viewtopic.php?f=40&#038;t=6500">some math people</a>, but I didn&#8217;t get much help.</p>
<p>In addition to that, Cristian, my friend here at work suggested that I should try and see if there is a pattern in the spectral density, in other words, the percentage of one&#8217;s two&#8217;s and three&#8217;s.</p>
<p>As expected, and as can be seen <a href="http://www.reflectionmedia.ro/projects/gab/alg/index123.php?start=1&#038;displimit=50&#038;rows=40">here</a>, these percentages also converge to certain values (about 50% for one&#8217;s, 30% for two&#8217;s and 20% for three&#8217;s).</p>
<p>Last but not least, I&#8217;d like to show you a great way of representing a Look and Say term, it looks a bit fractal-like. Check it out <a href="http://two-star.livejournal.com/191031.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflectionmedia.ro/2009/03/09/fun-with-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

