Wednesday, December 19, 2012

AnkhSVN doesn't work in VS2010

I'm a long time user of AnkhSVN, but suddenly it was gone in Visual Studio 2010, in VS2008 it stilled worked, bummer!
I tried to Repair the installation, remove and reinstall it but no sign of AnkhSVN in VS2010.

After a bit of searching, I found the answer.
Somehow the default 'Current source control plug-in' had been set to 'Visual Studio Team Foundation Server' instead of AnkhSVN.


Thursday, December 06, 2012

XML Special Characters

I always fail to keep track of what you can and cannot type in XML.
So here is a short list:

" replace with " or 
& replace with & or 
' replace with ' or 
<  replace with &lt; or &#003C;
> replace with &gt; or &#003E;

See more at http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

Example
<dummy comment="my 'special' char " >
You then convert it to
<dummy comment="my &apos;special&apos; char " >

Here is a code example converting:
    Private Function encodeXMLEntry(ByVal inData As String) As String
        Dim x As String = inData

        ' Replace special characters, start with & for obvious reasons.
        x = x.Replace("&", "&amp;")
        x = x.Replace("""", "&quot;")
        x = x.Replace("'", "&apos;")
        x = x.Replace("<", "&lt;")
        x = x.Replace(">", "&gt;")

        ' return the escaped string
        Return x
    End Function

MySQL to MariaDB

 Here is a good description how to migrate to MariaDb MySQL to MariaDb Example of how to dump data from MySQL port=3307: mysqldump --user=ro...