<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Nubaria Blog</title>
	<atom:link href="http://www.nubaria.com/en/blog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.nubaria.com/en/blog</link>
	<description>Binary ramblings</description>
	<lastBuildDate>Thu, 13 Jun 2013 23:31:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Embedding WordPress into an existing website by Adding WordPress Into Existing Webpage &#124; Christopher Mack Blog</title>
		<link>http://www.nubaria.com/en/blog/?p=14#comment-4171</link>
		<dc:creator>Adding WordPress Into Existing Webpage &#124; Christopher Mack Blog</dc:creator>
		<pubDate>Thu, 13 Jun 2013 23:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=14#comment-4171</guid>
		<description><![CDATA[[...] want to point out that I used Embedding WordPress into an existing website post to guide me through the process.  I got tripped up a little near the end but I eventually [...]]]></description>
		<content:encoded><![CDATA[<p>[...] want to point out that I used Embedding WordPress into an existing website post to guide me through the process.  I got tripped up a little near the end but I eventually [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting up a central Git repository on a Windows server by Duc Tran</title>
		<link>http://www.nubaria.com/en/blog/?p=633#comment-4111</link>
		<dc:creator>Duc Tran</dc:creator>
		<pubDate>Wed, 12 Jun 2013 10:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.nubaria.com/en/blog/?p=633#comment-4111</guid>
		<description><![CDATA[Hello Jose,
you did a great job, I followed your tutorial and it work except one important thing, I think you may be forget, it is a small step &quot;Config CopSSH with Git path&quot; in CopSSH etc/password. the edited PATH must be 
export PATH=&quot;/bin:$syspath:$winpath:/cygdrive/c/git/bin:/cygdrive/c/git/libexec/git-core&quot;  
I found on this site http://www.codeproject.com/Articles/296398/Step-by-Step-Setup-Git-Server-on-Windows-with-CopS

thanks to your great effort]]></description>
		<content:encoded><![CDATA[<p>Hello Jose,<br />
you did a great job, I followed your tutorial and it work except one important thing, I think you may be forget, it is a small step &#8220;Config CopSSH with Git path&#8221; in CopSSH etc/password. the edited PATH must be<br />
export PATH=&#8221;/bin:$syspath:$winpath:/cygdrive/c/git/bin:/cygdrive/c/git/libexec/git-core&#8221;<br />
I found on this site <a href="http://www.codeproject.com/Articles/296398/Step-by-Step-Setup-Git-Server-on-Windows-with-CopS" rel="nofollow">http://www.codeproject.com/Articles/296398/Step-by-Step-Setup-Git-Server-on-Windows-with-CopS</a></p>
<p>thanks to your great effort</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Embedding WordPress into an existing website by Alvaro Ramirez</title>
		<link>http://www.nubaria.com/en/blog/?p=14#comment-4083</link>
		<dc:creator>Alvaro Ramirez</dc:creator>
		<pubDate>Tue, 11 Jun 2013 20:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=14#comment-4083</guid>
		<description><![CDATA[Hi Angel,

Thank you for this article. It is really great. It helped me a lot to setup my site. Now I have a question. My site works in two languages, English and Spanish. How can I switch between two different header/footer files depending on the current language? My sites are www.9ilc.co and www.9ib.co. They are developed in html5 and CSS3.

Thanks again!]]></description>
		<content:encoded><![CDATA[<p>Hi Angel,</p>
<p>Thank you for this article. It is really great. It helped me a lot to setup my site. Now I have a question. My site works in two languages, English and Spanish. How can I switch between two different header/footer files depending on the current language? My sites are <a href="http://www.9ilc.co" rel="nofollow">http://www.9ilc.co</a> and <a href="http://www.9ib.co" rel="nofollow">http://www.9ib.co</a>. They are developed in html5 and CSS3.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Embedding WordPress into an existing website by Ángel José Riesgo</title>
		<link>http://www.nubaria.com/en/blog/?p=14#comment-3984</link>
		<dc:creator>Ángel José Riesgo</dc:creator>
		<pubDate>Sat, 08 Jun 2013 15:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=14#comment-3984</guid>
		<description><![CDATA[Hi, mikki. You can get rid of the WordPress header by removing the whole &lt;div id=&quot;header&quot;&gt; element in header.php. Similarly, the footer.php file contains a &lt;div id=&quot;footer&quot;&gt; element which accounts for the default theme footer. If you remove that, the name of the blog and the &quot;Proudly powered by WordPress&quot; link at the bottom will go away.]]></description>
		<content:encoded><![CDATA[<p>Hi, mikki. You can get rid of the WordPress header by removing the whole &lt;div id=&#8221;header&#8221;&gt; element in header.php. Similarly, the footer.php file contains a &lt;div id=&#8221;footer&#8221;&gt; element which accounts for the default theme footer. If you remove that, the name of the blog and the &#8220;Proudly powered by WordPress&#8221; link at the bottom will go away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Embedding WordPress into an existing website by mikki</title>
		<link>http://www.nubaria.com/en/blog/?p=14#comment-3895</link>
		<dc:creator>mikki</dc:creator>
		<pubDate>Tue, 04 Jun 2013 18:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=14#comment-3895</guid>
		<description><![CDATA[how to did you remove the Header and Footer? I already have a Header and Footer in my existing website. Thanks for the article. Pretty informative.]]></description>
		<content:encoded><![CDATA[<p>how to did you remove the Header and Footer? I already have a Header and Footer in my existing website. Thanks for the article. Pretty informative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Gittin&#8217; the job done: the choice of a version control system by Setting up a central Git repository on a Windows server &#124; Nubaria Blog</title>
		<link>http://www.nubaria.com/en/blog/?p=89#comment-3768</link>
		<dc:creator>Setting up a central Git repository on a Windows server &#124; Nubaria Blog</dc:creator>
		<pubDate>Mon, 27 May 2013 10:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=89#comment-3768</guid>
		<description><![CDATA[[...] one of the first posts I wrote when I started this blog I tried to give a general overview of Git, which has quickly become probably the most successful version control system in current use, [...]]]></description>
		<content:encoded><![CDATA[<p>[...] one of the first posts I wrote when I started this blog I tried to give a general overview of Git, which has quickly become probably the most successful version control system in current use, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using UTF-8 as the internal representation for strings in C and C++ with Visual Studio by Ángel José Riesgo</title>
		<link>http://www.nubaria.com/en/blog/?p=289#comment-731</link>
		<dc:creator>Ángel José Riesgo</dc:creator>
		<pubDate>Fri, 30 Mar 2012 18:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=289#comment-731</guid>
		<description><![CDATA[I&#039;ve corrected the template declarations in your message. It seems that you need to type &lt; and &gt; to get &lt; and &gt;. I&#039;ve also used such templates in the past, but I&#039;m not very keen on the TCHAR type (I mention that in the article) these days, since I don&#039;t expect to have to compile an &quot;ANSI&quot; version of the application. That&#039;s why I prefer to use straight wchar_t and std::wstring for wide characters.

Anyway, we both agree that the internal representation of strings should be consistent. If you choose an internal UTF-16-encoded std::wstring representation, then you would need conversions when interacting with those parts of the outside world (like third-party libraries or network protocols) that require UTF-8, and in the approach I describe, it is the other way around. I think the difference in approach hinges on what we regard as &quot;the outside world&quot;. In multi-platform projects, it makes sense to think about Windows and Linux (or Mac or whatever) as different kinds of &quot;outside world&quot; that the core modules can be plugged into. This was the situation at the company where I was working before (GeoVirtual, in Barcelona, which closed down a couple of years ago), where our code consisted of a large number of modules that was mostly mathematical and graphical stuff (for geographic data, with an OpenGL viewport for rendering) and mostly platform independent. We basically wanted our core code to build under both Windows and Linux. We were using quite a lot of third-party libraries and had some facade classes for platform-dependent things. In that way, calls to Windows were mostly isolated through those facade classes. We actually had several different applications with different styles of GUI built on the same core of libraries. For a long time, the code was not able to handle Unicode because of the use of many char-based functions where the local code page was assumed. We tried to turn all the std::strings into std::wstrings, but didn&#039;t manage to adapt a lot of the code using file streams. Eventually, I decided to revert the std::wstring changes and use std::strings and assume UTF-8 internally. We had to send data through the network and we interacted with the input data through the network and through configuration XML files that were UTF-8-encoded. In such a scenario, complicating the facade classes to interact with Windows (and with the wxWidgets GUI part, if I remember correctly) with the additional character conversions turned out to be simpler and more effective. All the parts reading data form the XML files and from the network were based on essentially the same code in Windows and Linux, and the code interacting with the mathematical and graphical third-party libraries didn&#039;t require many changes (just adding the UTF-8 wrappers for file streams and fopen, which you would also need if you were using UTF-16 internally). I wrote this post with my experience during that time in mind. I agree that in a project where everything is Windows it may make more sense to use std::wstrings, but don&#039;t underestimate the benefits of aiming at portability, even when it is not an immediate goal.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve corrected the template declarations in your message. It seems that you need to type &amp;lt; and &amp;gt; to get &lt; and &gt;. I&#8217;ve also used such templates in the past, but I&#8217;m not very keen on the TCHAR type (I mention that in the article) these days, since I don&#8217;t expect to have to compile an &#8220;ANSI&#8221; version of the application. That&#8217;s why I prefer to use straight wchar_t and std::wstring for wide characters.</p>
<p>Anyway, we both agree that the internal representation of strings should be consistent. If you choose an internal UTF-16-encoded std::wstring representation, then you would need conversions when interacting with those parts of the outside world (like third-party libraries or network protocols) that require UTF-8, and in the approach I describe, it is the other way around. I think the difference in approach hinges on what we regard as &#8220;the outside world&#8221;. In multi-platform projects, it makes sense to think about Windows and Linux (or Mac or whatever) as different kinds of &#8220;outside world&#8221; that the core modules can be plugged into. This was the situation at the company where I was working before (GeoVirtual, in Barcelona, which closed down a couple of years ago), where our code consisted of a large number of modules that was mostly mathematical and graphical stuff (for geographic data, with an OpenGL viewport for rendering) and mostly platform independent. We basically wanted our core code to build under both Windows and Linux. We were using quite a lot of third-party libraries and had some facade classes for platform-dependent things. In that way, calls to Windows were mostly isolated through those facade classes. We actually had several different applications with different styles of GUI built on the same core of libraries. For a long time, the code was not able to handle Unicode because of the use of many char-based functions where the local code page was assumed. We tried to turn all the std::strings into std::wstrings, but didn&#8217;t manage to adapt a lot of the code using file streams. Eventually, I decided to revert the std::wstring changes and use std::strings and assume UTF-8 internally. We had to send data through the network and we interacted with the input data through the network and through configuration XML files that were UTF-8-encoded. In such a scenario, complicating the facade classes to interact with Windows (and with the wxWidgets GUI part, if I remember correctly) with the additional character conversions turned out to be simpler and more effective. All the parts reading data form the XML files and from the network were based on essentially the same code in Windows and Linux, and the code interacting with the mathematical and graphical third-party libraries didn&#8217;t require many changes (just adding the UTF-8 wrappers for file streams and fopen, which you would also need if you were using UTF-16 internally). I wrote this post with my experience during that time in mind. I agree that in a project where everything is Windows it may make more sense to use std::wstrings, but don&#8217;t underestimate the benefits of aiming at portability, even when it is not an immediate goal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using UTF-8 as the internal representation for strings in C and C++ with Visual Studio by John</title>
		<link>http://www.nubaria.com/en/blog/?p=289#comment-730</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 30 Mar 2012 14:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=289#comment-730</guid>
		<description><![CDATA[Hmmm, your blog is stripping out the template arguments I posted in the above typedefs  (template argument TCHAR).]]></description>
		<content:encoded><![CDATA[<p>Hmmm, your blog is stripping out the template arguments I posted in the above typedefs  (template argument TCHAR).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using UTF-8 as the internal representation for strings in C and C++ with Visual Studio by John</title>
		<link>http://www.nubaria.com/en/blog/?p=289#comment-729</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 30 Mar 2012 14:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=289#comment-729</guid>
		<description><![CDATA[Sorry, above should be:

typedef std::basic_string&lt;TCHAR&gt; tstring;

And others as required:

typedef std::basic_istringstream&lt;TCHAR&gt; tistringstream;
typedef std::basic_ostringstream&lt;TCHAR&gt; tostringstream;
typedef std::basic_stringstream&lt;TCHAR&gt; tstringstream;

etc.]]></description>
		<content:encoded><![CDATA[<p>Sorry, above should be:</p>
<p>typedef std::basic_string&lt;TCHAR&gt; tstring;</p>
<p>And others as required:</p>
<p>typedef std::basic_istringstream&lt;TCHAR&gt; tistringstream;<br />
typedef std::basic_ostringstream&lt;TCHAR&gt; tostringstream;<br />
typedef std::basic_stringstream&lt;TCHAR&gt; tstringstream;</p>
<p>etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using UTF-8 as the internal representation for strings in C and C++ with Visual Studio by John</title>
		<link>http://www.nubaria.com/en/blog/?p=289#comment-728</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 30 Mar 2012 14:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.retibus.com/en/blog/?p=289#comment-728</guid>
		<description><![CDATA[I don&#039;t know the requirements of your specific app so I&#039;m only talking generally about most Windows apps. If your app is in fact typical (it may not be) , then you&#039;ve simply cited a few specific instances where you may require UTF-8, but haven&#039;t justified why an entire application needs to move data around this way. In my (very long) experience, it would usually be a big mistake. There are usually very few occassions where any type of character conversion is required, and when you do need it, you simply handle it on a case-by-case basis. Normally (usually), that&#039;s only required when connecting to the outside world, or in some cases, when working with the few WinAPI functions that aren&#039;t TCHAR-based (so you may have to convert from &quot;char&quot; to &quot;wchar_t&quot; or vice versa ). How many points of contact are there with the outide world in most applications? Usually very few. If you need to write to a file, and it has to be UTF-8 for whatever reason, then write your data out that way but only when required (it may not always be). If you need to send data across a network, and UTF-8 better meets your needs, then stream it out that way (but again, only if it needs to be). In all cases however, you simply need to call &quot;WideCharToMultiByte()&quot; or &quot;MultiByteToWideChar()&quot; at the time this occurs, and of course there are a whole variety of techniques for wrapping these calls (including the ATL string conversion classes). You can also write some nice UTF-8 based classes/functions if you want. They should only be called however when they *are* needed, and there are normally very few instances of this. It serves no purpose for instance to handle all strings in your application as UTF-8 if they&#039;re only required under limited circumstances. Why would you create a &quot;SetWindowTextUtf8()&quot; for instance. Where is the string for this function coming from. In most applications it originates from the app&#039;s resources, where UTF-16 is the norm, assuming another source like a DB isn&#039;t used (not usually). Where is the UTF-8 string coming from in your case. If you&#039;ve explicitly converted your UTF-16 strings to UTF-8 only to later convert them back to UTF-16, then this is a huge waste of time and energy. You wouldn&#039;t need to do this at all if UTF-16 was your native type. Working with this is normally much easier - just convert to UTF-8 when needed:

typedef std::basic_string tstring;

Please understand, that I do admire your goal, which is to make UTF-8 your native type and only work with UTF-16 when interacting with Windows functions (cleanly separating the two), but for most Windows applications that approach is backwards. Everything should normally be native UTF-16 and then convert to UTF-8 only when needed. It eliminates all the extra work you&#039;ve created for yourself, and all the problems that come with it. You seem to be playing those problems down but I know from vast experience that it would be a serious problem in most shops.

BTW, the situation with the native exception classes is another story altogether, but only because they work natively with &quot;char&quot; as you pointed out. Some might consider this a &quot;mistake&quot; in the standard itself (why not make them template-based) but I&#039;ve seen arguments to the contrary (long story). In any case, the topic of exception encoding is another story (since it gets into deeper issues not worth discussing here).]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t know the requirements of your specific app so I&#8217;m only talking generally about most Windows apps. If your app is in fact typical (it may not be) , then you&#8217;ve simply cited a few specific instances where you may require UTF-8, but haven&#8217;t justified why an entire application needs to move data around this way. In my (very long) experience, it would usually be a big mistake. There are usually very few occassions where any type of character conversion is required, and when you do need it, you simply handle it on a case-by-case basis. Normally (usually), that&#8217;s only required when connecting to the outside world, or in some cases, when working with the few WinAPI functions that aren&#8217;t TCHAR-based (so you may have to convert from &#8220;char&#8221; to &#8220;wchar_t&#8221; or vice versa ). How many points of contact are there with the outide world in most applications? Usually very few. If you need to write to a file, and it has to be UTF-8 for whatever reason, then write your data out that way but only when required (it may not always be). If you need to send data across a network, and UTF-8 better meets your needs, then stream it out that way (but again, only if it needs to be). In all cases however, you simply need to call &#8220;WideCharToMultiByte()&#8221; or &#8220;MultiByteToWideChar()&#8221; at the time this occurs, and of course there are a whole variety of techniques for wrapping these calls (including the ATL string conversion classes). You can also write some nice UTF-8 based classes/functions if you want. They should only be called however when they *are* needed, and there are normally very few instances of this. It serves no purpose for instance to handle all strings in your application as UTF-8 if they&#8217;re only required under limited circumstances. Why would you create a &#8220;SetWindowTextUtf8()&#8221; for instance. Where is the string for this function coming from. In most applications it originates from the app&#8217;s resources, where UTF-16 is the norm, assuming another source like a DB isn&#8217;t used (not usually). Where is the UTF-8 string coming from in your case. If you&#8217;ve explicitly converted your UTF-16 strings to UTF-8 only to later convert them back to UTF-16, then this is a huge waste of time and energy. You wouldn&#8217;t need to do this at all if UTF-16 was your native type. Working with this is normally much easier &#8211; just convert to UTF-8 when needed:</p>
<p>typedef std::basic_string tstring;</p>
<p>Please understand, that I do admire your goal, which is to make UTF-8 your native type and only work with UTF-16 when interacting with Windows functions (cleanly separating the two), but for most Windows applications that approach is backwards. Everything should normally be native UTF-16 and then convert to UTF-8 only when needed. It eliminates all the extra work you&#8217;ve created for yourself, and all the problems that come with it. You seem to be playing those problems down but I know from vast experience that it would be a serious problem in most shops.</p>
<p>BTW, the situation with the native exception classes is another story altogether, but only because they work natively with &#8220;char&#8221; as you pointed out. Some might consider this a &#8220;mistake&#8221; in the standard itself (why not make them template-based) but I&#8217;ve seen arguments to the contrary (long story). In any case, the topic of exception encoding is another story (since it gets into deeper issues not worth discussing here).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
