<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Saving Database Space through Bit-masking</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Thu, 02 Oct 2008 14:32:03 -0000</lastBuildDate><item><title>Re: Saving Database Space through Bit-masking</title><link>http://buildingbrowsergames.com/2008/09/04/saving-database-space-through-bit-masking/#comment-3089179</link><description>I am using the same logic on a project, a very quick way to get around using reference tables. Good article, great ammunition in the tech group for my idea!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jorge</dc:creator><pubDate>Thu, 02 Oct 2008 14:32:03 -0000</pubDate></item><item><title>Re: Saving Database Space through Bit-masking</title><link>http://buildingbrowsergames.com/2008/09/04/saving-database-space-through-bit-masking/#comment-3089178</link><description>Good point Mattias.  Just to explain a bit further what the operator notation is, the '&amp;' will do a bit comparison where both members in the comparison need to have that bit set to 1.  Because you are doing the AND operator all the bit places you don't care about need to be set to 1 so they maintain their value.  The '~' operator inverts all the bits in the value so where a variable might look like 00010000, the inverse of that would look like 11101111.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gostyloj</dc:creator><pubDate>Sat, 13 Sep 2008 19:55:22 -0000</pubDate></item><item><title>Re: Saving Database Space through Bit-masking</title><link>http://buildingbrowsergames.com/2008/09/04/saving-database-space-through-bit-masking/#comment-3089177</link><description>Might want to note that in order to take off one of the researches (for some unknown reason) you need to AND with the complement of the bit.&lt;br&gt;For example, if you had picked the g_shield_research and want to degrade it or something you use:&lt;br&gt;&lt;br&gt;$newPlayerResearch = $element-&amp;gt;research &amp;amp;~$g_shield_research;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mattias</dc:creator><pubDate>Sat, 13 Sep 2008 13:33:45 -0000</pubDate></item><item><title>Re: Saving Database Space through Bit-masking</title><link>http://buildingbrowsergames.com/2008/09/04/saving-database-space-through-bit-masking/#comment-3089176</link><description>These tutorials are simply amazing! Thank you do much for writing them!  You definately have a new fan.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Blair Beckwith</dc:creator><pubDate>Fri, 05 Sep 2008 07:58:38 -0000</pubDate></item></channel></rss>