<?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>Serge&#039;s Technology View &#187; wordpress</title>
	<atom:link href="http://blog.dragonsoft.us/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dragonsoft.us</link>
	<description>Talk about Technologies, Software Architecture and Management</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:43:34 +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>Put a code in your post &#8211; code highlighting</title>
		<link>http://blog.dragonsoft.us/2008/09/22/put-a-code-in-your-post-code-highlighting/</link>
		<comments>http://blog.dragonsoft.us/2008/09/22/put-a-code-in-your-post-code-highlighting/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 19:16:31 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Web-design]]></category>
		<category><![CDATA[syntax highlight]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/?p=459</guid>
		<description><![CDATA[As a programmer you often want to share some piece of nice code by placing it in your post on the blog. You can just wrap it in &#60;code&#62; or &#60;pre&#62; tags and play with CSS to make it more &#8230; <a href="http://blog.dragonsoft.us/2008/09/22/put-a-code-in-your-post-code-highlighting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As a programmer you often want to share some piece of nice code by placing it in your post on the blog.</p>
<p>You can just wrap it in &lt;code&gt; or &lt;pre&gt; tags and play with CSS to make it more readable. But it is not enough usually. Many of us are accustomed to have code highlighting for better readability.</p>
<p>I have seen and tried a dosen of solutions myself: simple &#8220;code-to-html&#8221; like <a href="http://www.ewanmellor.org.uk/chip.html" target="_blank">CHIP</a>, some simple JavaScript solutions like <a href="http://google-code-prettify.googlecode.com/svn/trunk/README.html" target="_blank">Code Prettifier</a> or mature like <a href="http://qbnz.com/highlighter/" target="_blank">GeSHi</a>.</p>
<p>There are server and client side solutions, ASP, PHP or JS based. You can choose one best for you.</p>
<p>As a WordPress user, you may also be interested in easy integration via <a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP plug-in</a> (GoSHi wrapper).</p>
<p>I have used the following criteria in my search:</p>
<ul>
<li>it should support many modern languages (SQL, C++, C#, HTML, JavaScript, Delphi, &#8230;)</li>
<li>it should be easy to integrate in WordPress, do not use tags and structures which will violate XHTML compliance requirements (I prefer to have my pages to pass W3C XHTML validation).</li>
<li>it should be easy to use within BBcode-like WYSIWYG editor</li>
<li>have some basic Copy/Paste/Print support</li>
</ul>
<p>I did not much care about server or client side implementation.</p>
<p>My choice was a <a href="http://code.google.com/p/syntaxhighlighter/" target="_blank">SyntaxHighlighter</a> by Alex Gorbatchev. Few things with original code were:</p>
<ul>
<li>no out of the box support for WordPress</li>
<li>tag syntax used by default was breaking W3C validation</li>
</ul>
<p>Ok, choice was to find someone already adopted it or create my own plug-in. Lucky for me there was <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/installation/" target="_blank">one already</a>. It was using BBCode to wrap the snippet but it did not address an issue of the invalid tags.</p>
<p>But it was easy to address also &#8211; in original code &#8220;name&#8221; is used to specify that &lt;pre&gt; does represent the code snippet.</p>
<p>Since I am not using this tag for anything else simple replacement in the source code would do the trick:</p>
<ol>
<li>download and install plug-in</li>
<li>locate shCore.js and look for the following line <strong>FindTagsByName(elements, name, &#8216;pre&#8217;);</strong></li>
<li>replace it with <strong>FindTagsByName(elements, null, &#8216;pre&#8217;);</strong></li>
<li>save, upload</li>
<li>Update (01/05/2009): With release of latest plug-in version, one more adjustment is required in the WP plugin itself:
<ul>
<li>Locate and Open <strong>syntaxhighlighter.php</strong></li>
<li>Locate line &#8220;$content = str_replace( $match[0], &#8216;&lt;pre <span style="color: #ff0000;"><strong>name=&#8221;code&#8221;</strong></span> class= &#8230; &#8220;</li>
<li>If you are using any WP cache plugins, clear your cache</li>
</ul>
</li>
<li>add code into your blog (this is how it is seen in the editor)<br />
<blockquote><p>&#91;sourcecode language=&#8217;delphi&#8217;]var<br />
  MyImageList: TImageList;<br />
  MyImage: TImage;[/sourcecode]</p></blockquote>
<p>and you will get it displayed nicely like <a href="http://blog.dragonsoft.us/2008/08/28/tips-draw-image-from-timagelist/" target="_blank">shown here</a>.</li>
</ol>
<p>PS. what you also would get is an ability to print/copy/view the code in easy and convinient way.</p>
<p>Enjoy.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/09/22/put-a-code-in-your-post-code-highlighting/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Blog and new browsers &#8211; IE 8 beta 2, Google Chrome</title>
		<link>http://blog.dragonsoft.us/2008/09/03/blog-and-new-browsers-ie-8-beta-2-google-chrome/</link>
		<comments>http://blog.dragonsoft.us/2008/09/03/blog-and-new-browsers-ie-8-beta-2-google-chrome/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 22:34:28 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web-design]]></category>
		<category><![CDATA[google chrome]]></category>
		<category><![CDATA[internet explorer 8]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/?p=415</guid>
		<description><![CDATA[Fun! IE now acts as it is not an IE we all know. I have installed beta 2 of Internet Explorer 8 and I have to adjust my CSS settings to work as if I would use Mozilla browser. Finally &#8230; <a href="http://blog.dragonsoft.us/2008/09/03/blog-and-new-browsers-ie-8-beta-2-google-chrome/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Fun! IE now acts as it is not an IE we all know.</p>
<p>I have installed beta 2 of Internet Explorer 8 and I have to adjust my CSS settings to work as if I would use Mozilla browser. Finally IE is closer to standards then ever.</p>
<p>Other then that everything appears to be working fine. But if you notice anything, please let me know.</p>
<p>Another thing was a test against Google Chrome. Overall everything is working.</p>
<p>I have also tested my main web-site and it appears not requiring any adjustments.</p>
<p>I noticed a funny thing. If you are using just one tab then <strong>combined </strong>size of the application is smaller then IE (57Mb versus 30.5Mb). Yes, both are still in pre-release stage and some size optimization could be done still, but it is just an observation.<br />
I am saying combined because if you check your WTM you would notice 3 <strong>chrome.exe</strong> accompanied by 3 <strong>iexplore.exe</strong>. When you start opening more tabs, then more instances will appear. Would Google sue Microsoft over it, or would it be Microsoft for &#8220;similar&#8221; behaviour. Mozilla is yet to take the same approach so it may be late for the party of virtualization. Even though Chrome may considered to be <a href="http://www.betanews.com/article/Google_Chrome_takes_more_than_just_inspiration_from_Mozilla/1220370944" target="_blank">an alternative to IE or Mozilla</a>, it acts similar.</p>
<p>By the way, internally WordPress admin console does require adjustments to work properly in IE 8. But I think it would be addressed soon.</p>
<p>At this point first stage of testing is concluded.</p>
<p>PS. It is worth to mention that IE 8 actually breaks admin panel, at least with latest version of WP. And the reason is that IE now acts more like FF and special ie.css which is included for admin page is no longer required. Hopefully this will be resolved soon.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/09/03/blog-and-new-browsers-ie-8-beta-2-google-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog improvements</title>
		<link>http://blog.dragonsoft.us/2008/04/11/blog-improvements/</link>
		<comments>http://blog.dragonsoft.us/2008/04/11/blog-improvements/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 04:43:03 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/?p=165</guid>
		<description><![CDATA[WordPress 2.5 has been released and I have updated my blog engine to use this version. Migration is now finalized: styles, theme, features are now in sync. From what I can see, everything is running fine and it appears to be &#8230; <a href="http://blog.dragonsoft.us/2008/04/11/blog-improvements/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.5 has been released and I have updated my blog engine to use this version.<br />
Migration is now finalized: styles, theme, features are now in sync.</p>
<p>From what I can see, everything is running fine and it appears to be faster, but if you encounter any problems, please let me know.</p>
<p>You now can associate <a href="http://gravatar.com/" target="_blank">Gravatar</a> with your email address and it will appear next to all your comments. Gravatar is a free service which is now incorporated into WordPress, you can create association by visiting web-site above.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/04/11/blog-improvements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create your first Widget for WordPress &#8211; Gallery 2 ImageBlock</title>
		<link>http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/</link>
		<comments>http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 15:43:02 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Web-design]]></category>
		<category><![CDATA[imageblock]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/2008/01/11/create-your-first-widget-for-wordpress-gallery-2-imageblock/</guid>
		<description><![CDATA[Now I am going further with my experiment and modify PHP Text Widget to allow embedding Menalto Gallery 2 ImageBlock into your blog. As a result here is for you to try is an actual widget which you can see used to &#8230; <a href="http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now I am going further with my experiment and modify <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/">PHP Text Widget</a> to allow embedding <a target="_blank" href="http://gallery.menalto.com/">Menalto Gallery 2</a> ImageBlock into your blog.</p>
<p>As a result here is for you to try is an actual widget which you can see used to show some of my gallery photos.<br />
You can download widget here &#8211; <a href="http://blog.dragonsoft.us/wp-content/uploads/2008/01/wp-gallery2.zip" title="Gallery 2 Widget">Gallery 2 Widget</a>.</p>
<p>Bellow are steps to follow in order to start using it.</p>
<ul>
<li>Download a ZIP file from location above</li>
<li>Unpack it and upload folder into your WordPress plugin folder</li>
<li>Visit your WordPress Admin concole and enable Plugin under &#8220;Plugins&#8221; section</li>
<li>Now go to Presentation/Widgets. You will see a new widget available &#8211; &#8220;Gallery.2&#8243;. If you need more then 1 widget to be used in your blog, change a number of available Gallery.2 widgets to desired.</li>
<li>Drag &#8220;Gallery.2 widget from available list onto your sidebar and go into options by clicking a small button on the widget bar</li>
<li>You could specify SideBar widget name, location of your gallery and choose appearance of the ImageBlock in your blog. Description for items is self-explanatory otherwise go to your Gallery.ImageBlock configuration page to find more details about the options.</li>
</ul>
<p>Enjoy.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create your first Widget for WordPress &#8211; PHPText</title>
		<link>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/</link>
		<comments>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 05:22:51 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Web-design]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/</guid>
		<description><![CDATA[There is my first WordPress Widget &#8211; PHP Text &#8211; Text Box which accepts arbitrary PHP code and can execute it inside sidebar block. Another requirement is that it is only be allowed to be entered by Admin User. I &#8230; <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is my first WordPress Widget &#8211; PHP Text &#8211; Text Box which accepts arbitrary PHP code and can execute it inside sidebar block.<br />
Another requirement is that it is only be allowed to be entered by Admin User.</p>
<p>I have started with the original code for Text Widget and adjusted it to include such restriction.</p>
<p>It has superseded my IFrame solution discussed in prior post and works well except that CSS is not yet applied.</p>
<p>What has been demonstrated by this little project:</p>
<ul>
<li>how to register your own sidebar widget</li>
<li>how to support multiple instances of the same widget in the sidebar</li>
<li>how to manage widget options from popup options window in Widget  Manager section of your Blog Admin Panel</li>
<li>how to store/read widget options</li>
<li>how to make your widget properly appear at the sidebar</li>
<li>implement some basic user rights manager</li>
</ul>
<p>If you&#8217;d like to use it in your blog, source code is available here &#8211; <a href="http://blog.dragonsoft.us/wp-content/uploads/2008/01/wp-phptext.zip" title="WordPress PHP Text Widget">WordPress PHP Text Widget</a>.</p>
<p>I hope this little example would help you started with Plug-in development for your WordPress Blog.</p>
<p><font color="#ff0000"><strong>WARNING: </strong>Any code injections allowed by dynamic content comes with possible security risk. Please be cautious about what you allow to be executed by the PHP code specified in the widget. I would strongly suggest avoiding use of external sources you have no control over.</font></p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create your first Widget for WordPress &#8211; Intro</title>
		<link>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/</link>
		<comments>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 04:15:38 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Web-design]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/</guid>
		<description><![CDATA[As you can see this blog is hosted using WordPress 2.3 engine. Aside from being free and all, it provides you with easy way to extend it using Widgets. There is a long list of widgets created by different people &#8230; <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you can see this blog is hosted using <a target="_blank" href="http://wordpress.org/">WordPress</a> 2.3 engine.<br />
Aside from being free and all, it provides you with easy way to extend it using Widgets.<br />
There is a long list of widgets created by different people over the time and you can find almost anything.<br />
Well&#8230; almost&#8230; when it comes to personal preference especially a programmer, we might became very picky and I am not an exclusion from this.</p>
<p>I was looking for the widget which will allow me to integrate an ImageBlock from my Photo Gallery into a side bar and I have not find something which will satisfy me all the way.</p>
<p>If you are familiar with <a target="_blank" href="http://gallery.menalto.com/">Menalto Gallery 2 Engine</a>, then you might know what <a target="_blank" href="http://codex.gallery2.org/Gallery2:Modules:imageblock">ImageBlock</a> is a simple preformatted PHP code snippet which you can put in your site&#8217;s PHP code to inject HTML showing random (or other kind) of item from your photo collection. In addition you need to include reference to the stylesheet file into the header.<br />
All configuration options are translated into query parameters which are then used by the snippet.<br />
Good, nice, easy&#8230; except that WordPress does not allow to use PHP inside your Text Widget, neither there is some very simple widget available around which will allow you do such thing easy way. I am sure there is one but I have not found one up to this moment.</p>
<p>As a result I end up using IFrame for some time with external page embedded. Not very nice solution since IFrame is not to XHTML validator friendly when it comes to transparency and is not auto-sizable without dancing with JavaScript&#8230;</p>
<p>After finishing some design work with my blog layout I have decided it is time to create my first Side Bar Widget for WordPress and it happened to be a <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/">PHPText</a>.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

