<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<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/"
	>

<channel>
	<title>mystic coders</title>
	<link>http://www.mysticcoders.com</link>
	<description>coding magic</description>
	<pubDate>Sun, 19 Aug 2007 13:47:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>Internet Explorer cannot open the Internet site. Operation aborted.</title>
		<link>http://www.mysticcoders.com/blog/2007/03/20/internet-explorer-cannot-open-the-internet-site-operation-aborted/</link>
		<comments>http://www.mysticcoders.com/blog/2007/03/20/internet-explorer-cannot-open-the-internet-site-operation-aborted/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 08:37:55 +0000</pubDate>
		<dc:creator>kinabalu</dc:creator>
		
	<category>Java</category>
	<category>Technology</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/blog/2007/03/20/internet-explorer-cannot-open-the-internet-site-operation-aborted/</guid>
		<description><![CDATA[Just got hit with this error:

And regrettably I spent a lot of time searching through Javascript in mootools javascript, and the small 2 lines of javascript Wicket adds to the page.  Finally, I decided to actually google the error (which I should have done immediately).
Low and behold, because I was inlining some Javascript for [...]]]></description>
			<content:encoded><![CDATA[<p>Just got hit with this error:</p>
<p><a href="http://www.mysticcoders.com/wp-content/uploads/2007/03/Picture%201-1.png"><img src="http://www.mysticcoders.com/wp-content/uploads/2007/03/Picture%201-1-tm.jpg" height="100" width="373" border="1" hspace="4" vspace="4" alt="Picture 1-1" /></a></p>
<p>And regrettably I spent a lot of time searching through Javascript in <a href="http://www.mootools.net">mootools</a> javascript, and the small 2 lines of javascript <a href="http://www.wicketframework.org">Wicket</a> adds to the page.  Finally, I decided to actually google the error (which I should have done immediately).</p>
<p>Low and behold, because I was inlining some Javascript for the <a href="http://www.mootools.net">mootools</a> Tip plugin, Internet Explorer 6 and 7 were upset because I hadn&#8217;t given them the chance to render the entire HTML yet.  Easy enough to fix, and actually cleans up the code real nice, was to either add it to the body onload, or use javascript.  In my case I used <a href="http://www.mootools.net">mootools</a> goodness:</p>
<p><em>window.addEvent(&#8217;domready&#8217;, Site.start);<br />
</em><br />
Gotta love Google.  You can also <a href="http://www.ryangrant.net/archives/internet-explorer-cannot-open-the-internet-site-operation-aborted-google-map-api">check this site</a> for some tips on avoiding the problem in the future (especially with GMaps).
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2007/03/20/internet-explorer-cannot-open-the-internet-site-operation-aborted/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>The Rise of the XML backlash</title>
		<link>http://www.mysticcoders.com/blog/2007/03/13/the-rise-of-the-xml-backlash/</link>
		<comments>http://www.mysticcoders.com/blog/2007/03/13/the-rise-of-the-xml-backlash/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 22:20:38 +0000</pubDate>
		<dc:creator>kinabalu</dc:creator>
		
	<category>Java</category>
	<category>Technology</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/blog/2007/03/13/the-rise-of-the-xml-backlash/</guid>
		<description><![CDATA[The writing has definitely been on the wall for some time now.  All the &#8220;agile&#8221; frameworks out there picking on Java and its love affair with XML had an effect.  More and more projects have sprung up that tout one of their prized features, no XML required.
Wicket (currently undergoing incubation with Apache) is [...]]]></description>
			<content:encoded><![CDATA[<p>The writing has definitely been on the wall for some time now.  All the &#8220;agile&#8221; frameworks out there picking on Java and its love affair with XML had an effect.  More and more projects have sprung up that tout one of their prized features, no XML required.</p>
<p><a href="http://wicket.sourceforge.net/">Wicket</a> (currently undergoing incubation with Apache) is a good example of a web framework which throws caution to the wind, and has absolutely no XML needed.  We here at Mystic have a lot of love for <a href="http://wicket.sourceforge.net/">Wicket</a> and are actively developing several projects with it currently.  For another example of a no-XML web framework, check out <a href="http://mc4j.org/confluence/display/stripes/Home">Stripes</a>.</p>
<p><a href="http://www.springframework.org/">Spring</a> is a panacea of functionality for the Java Web developer.  The biggest complaint we&#8217;ve heard, and made ourselves, is the bloated XML required.  Just this week, &#8220;Crazy&#8221; Bob Lee at Google announced <a href="http://code.google.com/p/google-guice/">GUICE</a>, looking to replace the IoC portions of <a href="http://www.springframework.org/">Spring</a> with an annotation-based approach.  Again, the sans-xml approach in action.</p>
<p><a href="http://ant.apache.org">Ant</a> has been the build tool of choice for Java developers for many years now.  <a href="http://maven.apache.org/">Maven</a> with the release of version 2 has gained traction as a viable replacement of the beloved Java build tools for web developers.  Our own experience with it has dictated that once you get your pom.xml file in place, leave it alone, the XML is a bit odd to even deal with.  Looking to move into the &#8220;no-xml&#8221; space is <a href="http://gosling.dev.java.net">Gosling</a>, which is still in its infancy, but already has several very nice features available.</p>
<p>With all the options available, its good to see teams thinking outside the box and pulling together some interesting new ways to solve problems in web space. </p>
<p>Happy Coding!
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2007/03/13/the-rise-of-the-xml-backlash/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Apple simplicity and iTunes</title>
		<link>http://www.mysticcoders.com/blog/2006/09/03/apple-simplicity-and-itunes/</link>
		<comments>http://www.mysticcoders.com/blog/2006/09/03/apple-simplicity-and-itunes/#comments</comments>
		<pubDate>Mon, 04 Sep 2006 03:30:14 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
		
	<category>Apple</category>
	<category>Technology</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/blog/2006/09/03/apple-simplicity-and-itunes/</guid>
		<description><![CDATA[I&#8217;m sure this has already been heavily blogged, but I just noticed a new option in my &#8220;speakers&#8221; pull down available on the bottom right of iTunes if you have an Airport Express.

So effectively, probably according to bandwidth restrictions, you can have the song playing at your computer in one room, and in any number [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure this has already been heavily blogged, but I just noticed a new option in my &#8220;speakers&#8221; pull down available on the bottom right of iTunes if you have an Airport Express.</p>
<p><img width="128" height="60" alt="Multiple Speakers option in iTunes" id="image47" src="http://www.mysticcoders.com/wp-content/uploads/2006/09/picture-1.thumbnail.png" /></p>
<p>So effectively, probably according to bandwidth restrictions, you can have the song playing at your computer in one room, and in any number of external Airport Express locations.  You get a popup which displays a checkbox list of the speakers currently being broadcast to, and allows you to select more:</p>
<p><img width="128" height="42" alt="iTunes Multiple Speaker Popup" id="image48" src="http://www.mysticcoders.com/wp-content/uploads/2006/09/picture-2.thumbnail.png" /></p>
<p>If more software / hardware companies thought through these seemingly insignificant additions, we&#8217;d have a life with better built software.  Simple is definitely harder, but better in the end.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/09/03/apple-simplicity-and-itunes/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Qwicket - easy boilerplate code for Wicket</title>
		<link>http://www.mysticcoders.com/blog/2006/08/21/qwicket-easy-boilerplate-code-for-wicket/</link>
		<comments>http://www.mysticcoders.com/blog/2006/08/21/qwicket-easy-boilerplate-code-for-wicket/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 23:47:47 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
		
	<category>Java</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/blog/2006/08/21/qwicket-easy-boilerplate-code-for-wicket/</guid>
		<description><![CDATA[Qwicket is an easy and fast solution for creating your next project with Wicket.  Right from the website, you can create an account (if you&#8217;d like to save your work as you go), and add beans to your project directly from the UI.
Qwicket 0.4 was just recently released by Justin Lee, and it features [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" title="qwicket" href="http://qwicket.sf.net">Qwicket</a> is an easy and fast solution for creating your next project with <a target="_blank" title="Wicket" href="http://wicket.sf.net">Wicket</a>.  Right from the website, you can create an account (if you&#8217;d like to save your work as you go), and add beans to your project directly from the UI.</p>
<p><a target="_blank" title="qwicket 0.4" href="http://sourceforge.net/project/showfiles.php?group_id=171925&#038;package_id=196577&#038;release_id=439770">Qwicket 0.4</a> was just recently released by Justin Lee, and it features some patches I sent over to the project for integration with <a target="_blank" title="Jetty" href="http://jetty.mortbay.org/jetty/index.html">Jetty</a> and <a target="_blank" title="HSQLDB" href="http://www.hsqldb.org/">HSQLDB</a>.  So when you&#8217;re looking to start your new project with wicket, your options are:</p>
<ul>
<li>Download the wicket dependencies and write all your own boilerplate code</li>
<li>Use the <a target="_blank" title="qwicket" href="http://qwicket.sf.net">Qwicket</a> website, create your domain model and download the boilerplate code.</li>
</ul>
<p>Now with the <a target="_blank" title="jetty" href="http://jetty.mortbay.org/jetty/index.html">Jetty</a> and <a target="_blank" title="hsqldb" href="http://www.hsqldb.org/">HSQLDB</a> additions, all the dependencies needed are handled by the Ant Maven plugin, so you can get to whats important, writing the next web 2.0 app.</p>
<p>Items that are planned for the future: multiple persistence framework selection (<a target="_blank" title="Java Persistence API" href="http://java.sun.com/javaee/overview/faq/persistence.jsp">JPA</a>, <a target="_blank" title="iBatis" href="http://ibatis.apache.org/">iBatis</a>), portlet support, scaffolding, and maybe someone to help with the UI <img src='http://www.mysticcoders.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/08/21/qwicket-easy-boilerplate-code-for-wicket/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>DateChooser component for Wicket</title>
		<link>http://www.mysticcoders.com/blog/2006/08/21/datechooser-component-for-wicket/</link>
		<comments>http://www.mysticcoders.com/blog/2006/08/21/datechooser-component-for-wicket/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 06:17:17 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
		
	<category>Java</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/blog/2006/08/21/datechooser-component-for-wicket/</guid>
		<description><![CDATA[After much loss of sleep trying to use DatePicker in wicket-extensions, I&#8217;ve instead opted to create a simple component with date selectable dropdowns of month, day, year.  This little pet project was great, in that it helped me really get a better understanding of how Model&#8217;s work with Wicket, and what it takes to [...]]]></description>
			<content:encoded><![CDATA[<p>After much loss of sleep trying to use DatePicker in wicket-extensions, I&#8217;ve instead opted to create a simple component with date selectable dropdowns of month, day, year.  This little pet project was great, in that it helped me really get a better understanding of how Model&#8217;s work with Wicket<a id="more-43"></a>, and what it takes to make a component.  So instead of the javascript date chooser, we have this:</p>
<p><img id="image42" alt="DateChooser Component Screenshot" src="http://www.mysticcoders.com/wp-content/uploads/2006/08/picture-1.png" /></p>
<p>And the only thing you pass it, is a Date in a Model, and it does the rest of the setting up.  So I&#8217;ll give you a quick overview of the source and what it does, and include the code as attachments to this post.</p>
<p>First things first, initialization:</p>
<pre>public class DateChooser extends FormComponent {</pre>
<p>as this is going to be a component, it should extend FormComponent, if we were adding extra functionality onto an existing form element, rather than a collection of them, we could just extend that class, easy.</p>
<pre>public DateChooser(final MarkupContainer parent, final String id, IModel model) {
super(parent, id);</pre>
<p>This is the constructor from DateChooser, as you can see, its not a 1.x constructor, but written against the new changes in 2.0.  It would be fairly simple to convert this to a 1.2 implementation.</p>
<pre>new DropDownChoice(this, &quot;month&quot;, new DateModel(model, Calendar.MONTH), getMonths(), new IChoiceRenderer() { &#46;.. }
new DropDownChoice(this, &quot;day&quot;, new DateModel(model, Calendar.DAY_OF_MONTH), getDays());
new DropDownChoice(this, &quot;year&quot;, new DateModel(model, Calendar.YEAR), getYears());</pre>
<p>And here are the dropdowns, as you can see from the first dropdown, there is an added IChoiceRenderer, which in the implementation basically grabs the numeric value passed in for the choices Collection, and using SimpleDateFormat, gives the text for that month.</p>
<pre>private class DateModel extends AbstractModel {</pre>
<p>&#8230;on to the implementation of the model, making some simple use of generics here.</p>
<pre>public DateModel(IModel dateModel, int calendarField) {</pre>
<p>we create a DateModel instance, and pass it the model that is being passed to this component, and in addition we pass the calendarField value, so we know what to modify in our setObject() method.</p>
<pre>if (dateModel.getObject() == null) return null;
Calendar cal = Calendar.getInstance();
cal.setTime((Date) dateModel.getObject());
return cal.get(calendarField);</pre>
<p>Here we implement the getObject() method, returning the numeric value for the supplied calendarField.</p>
<pre>Date date = (Date)dateModel.getObject();
if(date==null) {
date = new Date();
}
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.set(calendarField, object.intValue());
dateModel.setObject(cal.getTime());</pre>
<p>and here&#8217;s the setObject() method, where during the submission of the form, if a Date hasn&#8217;t been added to the model yet, for us to start setting field values on, it gets created, and then using the value passed in for Object, we set each calendarField in turn as the FormComponent get processed.</p>
<p>There are a few different things that can be done to enhance this:</p>
<ul>
<li>The days dropdown always shows 31 days, whether its got 30, 31, 28, 29, etc.</li>
<li>The ordering of the dropdowns is in M/d/y, which definitely isn&#8217;t the only way to do it.</li>
</ul>
<p>Would love comments on how to improve this, code attached.</p>
<p><a id="p44" title="DateChooser Component" href="http://www.mysticcoders.com/wp-content/uploads/2006/08/datechoosercomponent.zip">DateChooser Component</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/08/21/datechooser-component-for-wicket/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Getting Word Count in Java Resource Bundle .properties files</title>
		<link>http://www.mysticcoders.com/blog/2006/04/20/getting-word-count-in-java-resource-bundle-properties-files/</link>
		<comments>http://www.mysticcoders.com/blog/2006/04/20/getting-word-count-in-java-resource-bundle-properties-files/#comments</comments>
		<pubDate>Fri, 21 Apr 2006 01:57:46 +0000</pubDate>
		<dc:creator>kinabalu</dc:creator>
		
	<category>Java</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/wordpress/2006/04/20/getting-word-count-in-java-resource-bundle-properties-files/</guid>
		<description><![CDATA[With a little help from freenode folks in ##java and #awk .. I&#8217;ve got a one liner which will give you a word count for your resource bundle files:


grep -vE &#8216;^#&#8217; YourResourceBundle.properties &#124; cut -d = -f 2 &#124; wc -w


whew.
]]></description>
			<content:encoded><![CDATA[<p>With a little help from freenode folks in ##java and #awk .. I&#8217;ve got a one liner which will give you a word count for your resource bundle files:</p>
<p>
<em><br />
grep -vE &#8216;^#&#8217; YourResourceBundle.properties | cut -d = -f 2 | wc -w<br />
</em>
</p>
<p>whew.</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/04/20/getting-word-count-in-java-resource-bundle-properties-files/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Using growl with ant for build notifications</title>
		<link>http://www.mysticcoders.com/blog/2006/03/25/using-growl-with-ant-for-build-notifications/</link>
		<comments>http://www.mysticcoders.com/blog/2006/03/25/using-growl-with-ant-for-build-notifications/#comments</comments>
		<pubDate>Sun, 26 Mar 2006 01:20:54 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
		
	<category>Java</category>
	<category>Apple</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/wordpress/2006/03/25/using-growl-with-ant-for-build-notifications/</guid>
		<description><![CDATA[Something that just struck me as handy, was Growl notifications for certain steps in the ant build process.  If you&#8217;re doing something else, its always nice to see &#8220;Build completed&#8221;.  I could go into a long process on how to create an ant plugin, integrate it with Growls&#8217; Java bindings, and have a [...]]]></description>
			<content:encoded><![CDATA[<p>Something that just struck me as handy, was <a href="http://growl.info">Growl</a> notifications for certain steps in the ant build process.  If you&#8217;re doing something else, its always nice to see &#8220;Build completed&#8221;.  I could go into a long process on how to create an ant plugin, integrate it with Growls&#8217; Java bindings, and have a very tightly integrated plugin.  But I won&#8217;t.  Just install growlnotify from the Growl dmg, and use ant&#8217;s exec command with &#8220;Mac OS X&#8221; as an attribute, so the Windows folks won&#8217;t get unhappy error messages.</p>
<p>Here&#8217;s the little snippet of ant code:<br />
<code><br />
&amp;lt;exec executable=&quot;/usr/local/bin/growlnotify&quot; os=&quot;Mac OS X&quot; logError=&quot;true&quot;&amp;gt;<br />
&amp;lt;arg line=&quot;-m &#039;Build has been completed&#039;&quot;/&amp;gt;<br />
&amp;lt;/exec&amp;gt;</code></p>
<p>There seems to be a similar framework out there taking its inspiration from <a href="http://growl.info">Growl</a>, called <a href="http://www.k23productions.com/haiku/snarl.html">Snarl</a>.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/03/25/using-growl-with-ant-for-build-notifications/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Simple Wicket applications</title>
		<link>http://www.mysticcoders.com/blog/2006/02/02/simple-wicket-applications/</link>
		<comments>http://www.mysticcoders.com/blog/2006/02/02/simple-wicket-applications/#comments</comments>
		<pubDate>Fri, 03 Feb 2006 04:13:40 +0000</pubDate>
		<dc:creator>kinabalu</dc:creator>
		
	<category>Java</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/wordpress/2006/02/02/simple-wicket-applications/</guid>
		<description><![CDATA[I will be preparing a full tutorial on building a simple but functional application using Wicket.  Here are two applications which were built in a very short amount of time, with the very simple framework.
Pastebin is homage to the several applications built before it, and was built in a few hours time at most. [...]]]></description>
			<content:encoded><![CDATA[<p>I will be preparing a full tutorial on building a simple but functional application using <a href="http://wicket.sf.net">Wicket</a>.  Here are two applications which were built in a very short amount of time, with the very simple framework.</p>
<blockquote><p><a href="http://www.papernapkin.org/pastebin">Pastebin</a> is homage to the several applications built before it, and was built in a few hours time at most.  It has the distinction of being the pastebin for irc.freenode.net&#8217;s ##java, ##wicket, and ##swing!</p></blockquote>
<blockquote><p><a href="http://www.mysticcoders.com/lounge">Mystic Lounge</a> is a file delivery system!  Ok, its just a form giving you upload capability for larger files that you otherwise wouldn&#8217;t be able to email.</p></blockquote>
<p>We have a lot more projects in the works over here at Mystic, these are just some simple apps that we coded up to learn the internals of <a href="http://wicket.sf.net">Wicket</a>.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/02/02/simple-wicket-applications/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>CGSResolveShmemReference : offset exceeds bounds</title>
		<link>http://www.mysticcoders.com/blog/2006/01/31/cgsresolveshmemreference-offset-exceeds-bounds/</link>
		<comments>http://www.mysticcoders.com/blog/2006/01/31/cgsresolveshmemreference-offset-exceeds-bounds/#comments</comments>
		<pubDate>Tue, 31 Jan 2006 21:10:29 +0000</pubDate>
		<dc:creator>kinabalu</dc:creator>
		
	<category>Apple</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/wordpress/2006/01/31/cgsresolveshmemreference-offset-exceeds-bounds/</guid>
		<description><![CDATA[After working on my machine for quite a bit today, I started getting crashes in certain programs, and I haven&#8217;t seen this pre-10.4.4.  The following was seen in Console.app:
CGSResolveShmemReference : offset exceeds bounds
And it did so for several apps, Firefox, GLterm, iSync (wouldn&#8217;t even run).  A simple logout and login seems to have [...]]]></description>
			<content:encoded><![CDATA[<p>After working on my machine for quite a bit today, I started getting crashes in certain programs, and I haven&#8217;t seen this pre-10.4.4.  The following was seen in Console.app:</p>
<p>CGSResolveShmemReference : offset exceeds bounds</p>
<p>And it did so for several apps, Firefox, GLterm, iSync (wouldn&#8217;t even run).  A simple logout and login seems to have fixed it.  Nothing new as far as fixes from Software Update, so we&#8217;ll just see if this keeps up, grrr.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/01/31/cgsresolveshmemreference-offset-exceeds-bounds/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Find duplicate rows in a database using standard SQL</title>
		<link>http://www.mysticcoders.com/blog/2006/01/31/find-duplicate-rows-in-a-database-using-standard-sql/</link>
		<comments>http://www.mysticcoders.com/blog/2006/01/31/find-duplicate-rows-in-a-database-using-standard-sql/#comments</comments>
		<pubDate>Tue, 31 Jan 2006 07:15:13 +0000</pubDate>
		<dc:creator>kinabalu</dc:creator>
		
	<category>Java</category>
		<guid isPermaLink="false">http://www.mysticcoders.com/wordpress/2006/01/31/find-duplicate-rows-in-a-database-using-standard-sql/</guid>
		<description><![CDATA[
Thanks goes to Xgc in #mysql on freenode for showing me this little one-liner.  We needed to add a unique key to one of our tables, and a duplicate was in our midst.  Enter this handy one-liner:
 SELECT field1, count(*) FROM tbl1 GROUP BY field1 HAVING count(*)&#62;1;
problem solved, a nice simple list of [...]]]></description>
			<content:encoded><![CDATA[<p>
Thanks goes to Xgc in #mysql on freenode for showing me this little one-liner.  We needed to add a unique key to one of our tables, and a duplicate was in our midst.  Enter this handy one-liner:</p>
<p> SELECT field1, count(*) FROM tbl1 GROUP BY field1 HAVING count(*)&gt;1;</p>
<p>problem solved, a nice simple list of the duplicated rows in front of you.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.mysticcoders.com/blog/2006/01/31/find-duplicate-rows-in-a-database-using-standard-sql/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
