<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Mattias</title><link>http://disqus.com/people/5308b3691e554aece941c52d34effe6c/</link><description></description><language>en</language><lastBuildDate>Wed, 17 Jun 2009 04:55:18 -0000</lastBuildDate><item><title>Re: Building Browsergames: Creating the bank (PHP)</title><link>http://bbgames.disqus.com/building_browsergames_creating_the_bank_php/#comment-3089121</link><description>Hi, I just noticed something about your code. If the user is to enter a negative amount and deposit it, they would get more gold than they had in their hand and get a negative bank value.&lt;br&gt;&lt;br&gt;Just thought I'd point it out.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mattias</dc:creator><pubDate>Sat, 13 Sep 2008 08:17:22 -0000</pubDate></item><item><title>Re: Saving Database Space through Bit-masking</title><link>http://bbgames.disqus.com/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: Building Browsergames: Creating the bank (PHP)</title><link>http://bbgames.disqus.com/building_browsergames_creating_the_bank_php/#comment-3089124</link><description>An easy way to fix it is to use PHP's abs() function to force the number to be positive :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mattias</dc:creator><pubDate>Sat, 13 Sep 2008 15:32:41 -0000</pubDate></item><item><title>Re: Stop Using MD5</title><link>http://bbgames.disqus.com/stop_using_md5/#comment-11036221</link><description>"If you want to migrate people over to the new hash, then just create a new column in the DB which will hold it and set it to null. Then on login, if this value is null redirect them to a change your password page. *Require it*. Then after some months, drop the MD5 column, clean up the logic and have the remain inactive users use the forgot your password feature if they want to play again."&lt;br&gt;&lt;br&gt;Instead of having each player change their passwords, wouldn't it be easier to catch the posted password at login and perform the change automatically from md5 to whatever new algorithm you choose? Of course you'd also have to remove the md5 hash after changing it, or it would be sort of pointless.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mattias</dc:creator><pubDate>Wed, 17 Jun 2009 04:55:18 -0000</pubDate></item></channel></rss>