<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Development on Ivan Villareal</title><link>https://ivanvillareal.com/tags/development/</link><description>Recent content in Development on Ivan Villareal</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 01 Nov 2011 22:57:54 +0000</lastBuildDate><atom:link href="https://ivanvillareal.com/tags/development/index.xml" rel="self" type="application/rss+xml"/><item><title>Create a multiuser git repository with gitolite</title><link>https://ivanvillareal.com/create-a-multiuser-git-repository-with-gitolite/</link><pubDate>Tue, 01 Nov 2011 22:57:54 +0000</pubDate><guid>https://ivanvillareal.com/create-a-multiuser-git-repository-with-gitolite/</guid><description>I use git for almost all my dev work, is fast, it works locally, and I can even use it as a quick deployment tool, by adding hooks, but when it comes to sharing a repository to other developers, I dont like the idea of creating a user account in the system for each developer, so the easiest and fastest way to solve this issue for me is using gitolite.</description></item><item><title>Mysql unique keys and collations</title><link>https://ivanvillareal.com/mysql-unique-keys-and-collations/</link><pubDate>Thu, 08 Oct 2009 01:10:59 +0000</pubDate><guid>https://ivanvillareal.com/mysql-unique-keys-and-collations/</guid><description>I&amp;rsquo;m working on an application that stores unique values on a field, so I used the unique index for this column, everything was ok, until I started inserting multi byte characters in it.
The characters inserted fine, the problem was that I&amp;rsquo;m using INSERT &amp;hellip; ON DUPLICATE KEY UPDATE syntax to avoid looking if the field exists, so after debugging where the application was breaking I got this:
Query failed: Cannot add or update a child row: a foreign key constraint fails (`trubaseek/mapKeywordName`, CONSTRAINT `fkDomainMapNameId` FOREIGN KEY (`NameId`) REFERENCES `names` (`nameId`) ON DELETE NO ACTION ON UPDATE NO ACTION)&amp;lt;br&amp;gt; SQL: INSERT INTO `mapKeywordName` (`keywordId`, `nameId`) VALUES (&amp;#39;1&amp;#39;, &amp;#39;326&amp;#39;); so I&amp;rsquo;ve spent about an hour changing the encodings without success, but after some testing I discovered that hôteles was the same as hotelës, I did several testing from the linux console, the mysql browser, and from a php script, and all revealed the same.</description></item><item><title>Parsing HTML documents with Simple Html DOM</title><link>https://ivanvillareal.com/parsing-html-documents-with-simple-html-dom/</link><pubDate>Wed, 30 Sep 2009 23:02:34 +0000</pubDate><guid>https://ivanvillareal.com/parsing-html-documents-with-simple-html-dom/</guid><description>I had to get some information from an HTML page, the information required was on nested tables, so I&amp;rsquo;ve started working on it and my first approach was to get the info needed using regular expressions.
After 2 hours I&amp;rsquo;ve created a set of regex that worked pretty well, but when I received a new document, the layout was a bit different, and my regex didn&amp;rsquo;t worked as expected, the content was on the same table but this time it had nested tables, which were a really big problem.</description></item></channel></rss>