<?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>Bastian Albers</title>
	<atom:link href="http://www.bastianalbers.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bastianalbers.com</link>
	<description></description>
	<lastBuildDate>Mon, 11 Jan 2010 21:39:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySQL: MAX_JOIN_SIZE resolution</title>
		<link>http://www.bastianalbers.com/2010/01/max_join_size/</link>
		<comments>http://www.bastianalbers.com/2010/01/max_join_size/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 21:37:31 +0000</pubDate>
		<dc:creator>Bastian Albers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[max_join_size]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.bastianalbers.com/?p=45</guid>
		<description><![CDATA[Jus in case you ever get this error message:
1104: The SELECT would examine more rows than MAX_JOIN_SIZE. Check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is ok
Let me spare you a possible long search for a solution and no, you don&#8217;t have to switch to a different webhost: just try [...]]]></description>
			<content:encoded><![CDATA[<p>Jus in case you ever get this error message:</p>
<p><b>1104: The SELECT would examine more rows than MAX_JOIN_SIZE. Check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is ok</b></p>
<p>Let me spare you a possible long search for a solution and no, you don&#8217;t have to switch to a different webhost: just try to index some foreign keys in your tables and see if it works. If you do that MySQL does not search the whole table for the linked row. So let&#8217;s say <em>table1</em> has 100 rows where each one has a linked row of <em>table2</em> through a foreign key <em>foreign_key</em>. So if you do a query like this:</p>
<p>SELECT * FROM table1 LEFT JOIN table2 ON table1.foreign_key = table2.id</p>
<p>mysql does not search <em>all rows</em> of table2 <em>a 100 times</em>. Let me explain again: without an index on foreign_key, if table2 has 1000 rows, mysql searches through 1000 rows 100 times. Put an index into the game and you&#8217;ll have 1000 times 1 index lookup.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bastianalbers.com/2010/01/max_join_size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting radio button values with jQuery</title>
		<link>http://www.bastianalbers.com/2009/12/setting-radio-button-values-with-jquery/</link>
		<comments>http://www.bastianalbers.com/2009/12/setting-radio-button-values-with-jquery/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 14:48:57 +0000</pubDate>
		<dc:creator>Bastian Albers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.bastianalbers.com/?p=36</guid>
		<description><![CDATA[Let&#8217;s say you have a group of radio buttons on your page:

&#60;input type=&#34;radio&#34; checked=&#34;checked&#34; value=&#34;1&#34; name=&#34;rayray&#34;/&#62;
&#60;input type=&#34;radio&#34; value=&#34;2&#34; name=&#34;rayray&#34;/&#62;
&#60;input type=&#34;radio&#34; value=&#34;3&#34; name=&#34;rayray&#34;/&#62;

Now getting the value of the selected radio button is easy with jQuery:

$(&#34;input[name='rayray']:checked&#34;).val();

You have to use the name attribute, as there are several different radio buttons with the same name. Now setting the value [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have a group of radio buttons on your page:</p>
<pre class="brush: xml;">
&lt;input type=&quot;radio&quot; checked=&quot;checked&quot; value=&quot;1&quot; name=&quot;rayray&quot;/&gt;
&lt;input type=&quot;radio&quot; value=&quot;2&quot; name=&quot;rayray&quot;/&gt;
&lt;input type=&quot;radio&quot; value=&quot;3&quot; name=&quot;rayray&quot;/&gt;
</pre>
<p>Now getting the value of the selected radio button is easy with jQuery:</p>
<pre class="brush: jscript;">
$(&quot;input[name='rayray']:checked&quot;).val();
</pre>
<p>You have to use the name attribute, as there are several different radio buttons with the same name. Now setting the value to the third option is a bit tricky, but this works for me:</p>
<pre class="brush: jscript;">
$(&quot;input[name='rayray']&quot;).each(function(i) {
	if(i==2)
		$(this).attr('checked', true);
	else
		$(this).attr('checked', false);
});
</pre>
<p>If anyone has a quicker, more elegant way: feel free to share!</p>
<p>(This is all valid for jquery 1.32)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bastianalbers.com/2009/12/setting-radio-button-values-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
