<?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>NRGsoft</title>
	<atom:link href="http://nrgs.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://nrgs.org</link>
	<description>No Regrets Gaming Software</description>
	<lastBuildDate>Sun, 20 May 2012 07:08:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>ADD or ADHD and Binaural Beats</title>
		<link>http://nrgs.org/938/add-or-adhd-and-binaural-beats/</link>
		<comments>http://nrgs.org/938/add-or-adhd-and-binaural-beats/#comments</comments>
		<pubDate>Thu, 17 May 2012 17:23:37 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[ADD]]></category>
		<category><![CDATA[ADHD]]></category>
		<category><![CDATA[Alpha]]></category>
		<category><![CDATA[Beats]]></category>
		<category><![CDATA[Binaural]]></category>
		<category><![CDATA[Cheese]]></category>
		<category><![CDATA[Dancing]]></category>
		<category><![CDATA[Frequency]]></category>
		<category><![CDATA[Gamma]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[Hypnosis]]></category>
		<category><![CDATA[Meditation]]></category>
		<category><![CDATA[Pancakes]]></category>
		<category><![CDATA[Pulses]]></category>
		<category><![CDATA[REM]]></category>
		<category><![CDATA[Theta]]></category>
		<category><![CDATA[Wave]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=938</guid>
		<description><![CDATA[Some time ago I had looked into a science known as binaural beats. It&#8217;s only now that I&#8217;ve come back around to looking into it because of my ADD (aka ADHD-I). Back then I had been learning about it because it had a lot to do with my studies on [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I had looked into a science known as binaural beats. It&#8217;s only now that I&#8217;ve come back around to looking into it because of my ADD (aka ADHD-I).  Back then I had been learning about it because it had a lot to do with my studies on meditation and hypnosis. I had tested it&#8217;s affects before with alpha waves, which are typically associated with a state of REM, and theta waves, which are typically associated with sleeping without dreams or REM. That&#8217;s where people&#8217;s brain waves are during meditation and self-hypnosis typically. I believe it&#8217;s the same for normal hypnosis, though I can&#8217;t remember and so won&#8217;t say that it&#8217;s true. I used to try meditation and at one point had learned how to successfully meditate. Then I had learned how to successfully send myself into hypnosis. At that time I remember that both had sent me into the same sort of feeling, i.e. lower theta to higher alpha brain waves. Though I have to say that self-hypnosis typically sent my eyes into an amazingly fast flutter in comparison to meditation.</p>
<p>It was about this time that I discovered binaural beats, a way of combining two different noise frequency pulses, that when put on with headphones, would become one sound that &#8220;speaks&#8221; to the brain directly. In more accurate words, it influences the brain waves; you can think of it as your brain wanting to match with the frequency it hears around it. Of course hearing this I was highly skeptical and wondered that, &#8220;if this really worked, then why is it not being used?&#8221; Looking into binaural beat generators, I found a handful on the web (I&#8217;m not linking). I had decided to go into a meditative position and then just listened to the binaural beats on an alpha wave (8-12Hz). It was less than 5-minutes in when my eyes started fluttering and they didn&#8217;t just start fluttering, it also seemed like I was in a much deeper state of REM than any other time before. This stunned me.</p>
<p>Now, while I was still skeptical, because I&#8217;d reached a state of REM before with meditation; I figured I needed to test it elsewhere. Not explaining what it was, I set the generator to theta waves and put it on my, now ADHD diagnosed, nephew who, at the time, was 6-years-old, for 10-minutes. He sat on a chair next to me and 7-minutes in was completely asleep. I next set my brother up, who was 23-years-old at the time, with theta waves. 8-minutes in he was completely zoned out. Once he realized how zoned out he was, he removed his headphones and stood up very quickly. I assume to attempt to wake up, though he was drowsy for at least another half-hour afterwards. It was soon after that I stopped researching these things because I became busy.</p>
<p>Over a year later, after reading up to try and fully understand my ADD (ADHD-I), I came across a lot of reading that <a href="http://www.drugfreeadd.com/add_evidence.html">explained the typical brain activity of someone with ADD</a>. What&#8217;s most interesting about it is how the ADD brain will go through the different brain waves like anyone else, but it&#8217;s just always on the high end, which means that it&#8217;s like it&#8217;s typically on the wrong &#8220;mode&#8221; of the correct wave at the right time. This is caused by lack of brain producing substances that help control activity. That said, where do binaural beats come in? Well, I got interested in trying binaural beats again, but this time with focus on, well, getting myself focused. So I decided to start playing with binaural beats at times where I&#8217;m doing a certain activity. In the morning, after waking up, I play beats that are in the high alpha range. Soon after I will play 10-minutes of a lower beta (aka beta 1) range of 13-16Hz, with the intention that I will be more focused and alert. When I come to a situation where I&#8217;m having problems thinking, I will play gamma waves with the intention that my problem solving and mental activity will increase. When going to sleep at night I play 10-minutes of low alpha waves, which I have automatically followed by 10-minutes of high theta waves.</p>
<p>Where did all of this get me? I wonder that myself. I&#8217;ve been waking up and sleeping much more consistently than usual for the last two weeks. As far as my work is concerned, I seem to have a much stronger ability to focus on it and I haven&#8217;t stopped working on one of my projects for, well, two weeks now. Which is like a world record. I question if it&#8217;s truly a cure or if I&#8217;ve tricked my brain with little less than a placebo. All-in-all, I can&#8217;t say with certainty as to how it will help me, my future, and the future of all of those suffering from ADD. One thing is for sure though, I just focused on writing this article over the last hour with lower beta binaural beats playing in the background of my earbuds.</p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/938/add-or-adhd-and-binaural-beats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript, I think I get you now&#8230;sort of</title>
		<link>http://nrgs.org/926/javascript-i-think-i-get-you-now-sort-of/</link>
		<comments>http://nrgs.org/926/javascript-i-think-i-get-you-now-sort-of/#comments</comments>
		<pubDate>Wed, 02 May 2012 11:31:44 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=926</guid>
		<description><![CDATA[I don&#8217;t have much to say other than that JavaScript&#8217;s closures are magical. I don&#8217;t care if anyone tells you otherwise, they are magical. &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;JS Closures!&#60;/title&#62; &#60;script type=&#34;text/javascript&#34; language=&#34;javascript&#34;&#62; var Test = function( id [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t have much to say other than that JavaScript&#8217;s closures are magical. I don&#8217;t care if anyone tells you otherwise, they are magical.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html5"><pre class="de1"><span class="sc0">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span class="sc2">&lt;<span class="kw2">html</span> xmlns<span class="sy0">=</span><span class="st0">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span class="sc2">&lt;<span class="kw2">head</span>&gt;</span>
<span class="sc2">&lt;<span class="kw2">meta</span> <span class="kw3">http-equiv</span><span class="sy0">=</span><span class="st0">&quot;Content-Type&quot;</span> <span class="kw3">content</span><span class="sy0">=</span><span class="st0">&quot;text/html; charset=utf-8&quot;</span> <span class="sy0">/</span>&gt;</span>
<span class="sc2">&lt;<span class="kw2">title</span>&gt;</span>JS Closures!<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">title</span>&gt;</span>
<span class="sc2">&lt;<span class="kw2">script</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">language</span><span class="sy0">=</span><span class="st0">&quot;javascript&quot;</span>&gt;</span>
var Test = function( id )
{
	var wat =
	{
		ID : id,
		ChangeCaption : function( caption )
		{
			document.getElementById(this.ID).innerHTML = caption;
			return this;
		},
		ShowMessage : function( msg )
		{
			alert(msg);
			return this;
		}
	}
	return wat;
}
<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">script</span>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">head</span>&gt;</span>
<span class="sc2">&lt;<span class="kw2">body</span>&gt;</span>
<span class="sc2">&lt;<span class="kw2">button</span> <span class="kw3">onclick</span><span class="sy0">=</span><span class="st0">&quot;Test(this.id).ChangeCaption('NOOO!').ShowMessage('YESS!!');&quot;</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;btn1&quot;</span> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;BTN 1&quot;</span>&gt;</span>Button 1<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">button</span>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">body</span>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">html</span>&gt;</span></pre></div></div></div></div></div></div></div>


]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/926/javascript-i-think-i-get-you-now-sort-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The template is broken&#8230;</title>
		<link>http://nrgs.org/921/the-template-is-broken/</link>
		<comments>http://nrgs.org/921/the-template-is-broken/#comments</comments>
		<pubDate>Tue, 01 May 2012 01:46:05 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=921</guid>
		<description><![CDATA[Edit: It&#8217;s fixed! I&#8217;m still going to go ahead and replace WordPress though. I&#8217;m not really sure what caused the template to suddenly break, but I&#8217;m just going to go ahead of remove WordPress. My ADD is telling me that I&#8217;ve procrastinated long enough.]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> It&#8217;s fixed! I&#8217;m still going to go ahead and replace WordPress though.</p>
<p>I&#8217;m not really sure what caused the template to suddenly break, but I&#8217;m just going to go ahead of remove WordPress. My ADD is telling me that I&#8217;ve procrastinated long enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/921/the-template-is-broken/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Jungle IDE Color Schemes</title>
		<link>http://nrgs.org/916/jungle-ide-color-schemes/</link>
		<comments>http://nrgs.org/916/jungle-ide-color-schemes/#comments</comments>
		<pubDate>Tue, 01 May 2012 00:49:20 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=916</guid>
		<description><![CDATA[Depending on how I&#8217;m feeling I will switch up themes in Jungle IDE (the IDE I use for writing in Monkey). I figured I would share some I&#8217;ve used with accompanying pictures. Clean and Simple 2 Dark Essence Smooth Dark 3 v3]]></description>
			<content:encoded><![CDATA[<p>Depending on how I&#8217;m feeling I will switch up themes in Jungle IDE (the IDE I use for writing in Monkey). I figured I would share some I&#8217;ve used with accompanying pictures.</p>
<p><a href="http://nrgs.org/dev/color_schemes/Clean%20and%20Simple%202.Monkey%20source%20code.JCS">Clean and Simple 2</a><br />
<a href="http://nrgs.org/wp-content/uploads/2012/04/Clean-and-Simple-2.png"><img src="http://nrgs.org/wp-content/uploads/2012/04/Clean-and-Simple-2.png" alt="" title="Clean and Simple 2" width="615" height="536" class="alignnone size-full wp-image-917" /></a></p>
<p><a href="http://nrgs.org/dev/color_schemes/Dark%20Essence.Monkey%20source%20code.JCS">Dark Essence</a><br />
<a href="http://nrgs.org/wp-content/uploads/2012/04/Dark-Essence.png"><img src="http://nrgs.org/wp-content/uploads/2012/04/Dark-Essence.png" alt="" title="Dark Essence" width="608" height="538" class="alignnone size-full wp-image-918" /></a></p>
<p><a href="http://nrgs.org/dev/color_schemes/Smooth%20Dark%203%20v3.Monkey%20source%20code.JCS">Smooth Dark 3 v3</a><br />
<a href="http://nrgs.org/wp-content/uploads/2012/04/Smooth-Dark-3-v3.png"><img src="http://nrgs.org/wp-content/uploads/2012/04/Smooth-Dark-3-v3.png" alt="" title="Smooth Dark 3 v3" width="617" height="540" class="alignnone size-full wp-image-919" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/916/jungle-ide-color-schemes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monkey Ai</title>
		<link>http://nrgs.org/912/monkey-ai/</link>
		<comments>http://nrgs.org/912/monkey-ai/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 07:29:32 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=912</guid>
		<description><![CDATA[I&#8217;m publicly announcing that I&#8217;m going to be making the Monkey Ai (Monkey Love) game framework, for the monkey programming language, open source. It will be available from Google Code when I upload it for the first time. Link: http://code.google.com/p/monkeyai/ I&#8217;m attempting to supersede Monkey Ai v1, which was closed [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m publicly announcing that I&#8217;m going to be making the Monkey Ai (Monkey Love) game framework, for the monkey programming language, open source. It will be available from Google Code when I upload it for the first time. Link: <a href="http://code.google.com/p/monkeyai/">http://code.google.com/p/monkeyai/</a></p>
<p>I&#8217;m attempting to supersede Monkey Ai v1, which was closed source. This will also be the framework that T-ACT Engine is going to use. Mind you T-ACT is still closed source.</p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/912/monkey-ai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ludum Dare 23</title>
		<link>http://nrgs.org/906/ludum-dare-23/</link>
		<comments>http://nrgs.org/906/ludum-dare-23/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 11:58:39 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=906</guid>
		<description><![CDATA[We are in! You can read my, &#8220;I&#8217;m in,&#8221; message if you want from here: http://www.ludumdare.com/compo/2012/04/16/plunging-in-for-the-second-time/ Update: We failed thanks to a bug in Monkey Flixel that was so incredibly out there that we still haven&#8217;t figured it out. 10 hours and we just sat at the same place in [...]]]></description>
			<content:encoded><![CDATA[<p>We are in! You can read my, &#8220;I&#8217;m in,&#8221; message if you want from here: <a href="http://www.ludumdare.com/compo/2012/04/16/plunging-in-for-the-second-time/">http://www.ludumdare.com/compo/2012/04/16/plunging-in-for-the-second-time/</a></p>
<p><strong>Update:</strong> We failed thanks to a bug in Monkey Flixel that was so incredibly out there that we still haven&#8217;t figured it out. 10 hours and we just sat at the same place in time. Debugging it to hell and no difference was made.</p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/906/ludum-dare-23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So I&#8217;m testing streaming</title>
		<link>http://nrgs.org/899/so-im-testing-streaming/</link>
		<comments>http://nrgs.org/899/so-im-testing-streaming/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 08:51:04 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=899</guid>
		<description><![CDATA[I&#8217;m testing out streaming my computer while I&#8217;m working. The lag from my computer to Justin.tv is about a second and a half at 1680&#215;1050 resolution. If it was this Mac I&#8217;m writing this message on, it&#8217;d be 2560&#215;1440, which is insanely huge and bandwidth consuming. Anyways, here&#8217;s my programming [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m testing out streaming my computer while I&#8217;m working. The lag from my computer to Justin.tv is about a second and a half at 1680&#215;1050 resolution. If it was this Mac I&#8217;m writing this message on, it&#8217;d be 2560&#215;1440, which is insanely huge and bandwidth consuming.</p>
<p>Anyways, here&#8217;s my programming stream: <a href="http://www.justin.tv/nrgsoft#/w/2887360112">http://www.justin.tv/nrgsoft#/w/2887360112</a></p>
<p>I will be on when I&#8217;m working and it will also be used for Ludum Dare 23 on April 20th-23rd.</p>
<p><strong>NOTE: I am generally on between Thursday-Sunday GMT-8. I also am on late, so, if you think Japan time minus a day you&#8217;ll find me on during the &#8220;day.&#8221;</strong></p>
<p><object type="application/x-shockwave-flash" height="300" width="400" id="live_embed_player_flash" data="http://www.justin.tv/widgets/live_embed_player.swf?channel=nrgsoft" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="movie" value="http://www.justin.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="hostname=www.justin.tv&#038;channel=nrgsoft&#038;auto_play=false&#038;start_volume=25" /></object><a href="http://www.justin.tv/nrgsoft#r=-rid-&amp;s=em" class="trk" style="padding:2px 0px 4px; display:block; width:345px; font-weight:normal; font-size:10px; text-decoration:underline; text-align:center;">Watch live video from nrgsoft on www.justin.tv</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/899/so-im-testing-streaming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New site is on the way, but</title>
		<link>http://nrgs.org/895/new-site-is-on-the-way-but/</link>
		<comments>http://nrgs.org/895/new-site-is-on-the-way-but/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 02:44:26 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=895</guid>
		<description><![CDATA[So the new site is on the way, but, it won&#8217;t be changed until this game that&#8217;s being worked on is semi-completed. The aim for the new site design is to simplify the layout, while making it more accessible and more like what you&#8217;d expect from a game making team. [...]]]></description>
			<content:encoded><![CDATA[<p>So the new site is on the way, but, it won&#8217;t be changed until this game that&#8217;s being worked on is semi-completed. The aim for the new site design is to simplify the layout, while making it more accessible and more like what you&#8217;d expect from a game making team. That is, simple front page, game page, custom forum, custom blog, and several misc information that is linked at the bottom (you know, that stuff no one <i>really</i> cares about).</p>
<p>That said, we may need the fine people at KickStarter&#8217;s help to finish the game engine running inside the game that&#8217;s making the game, itself (very confusing sounding when I write it like that&#8230;). Cause if it&#8217;s not what people really want, then there&#8217;s no point to making it. The game in question I cannot talk about yet. Only that it is running using the ACT Engine, which is an engine that is written into the game to make the game, itself, in live time. After that project is completed T-ACT Engine will be taking a portion of the ACT Engine code and sticking it into the T-ACT Engine to make tactical games. As long as people also support this, which I hope they do, I&#8217;ll be very happy. Cause I&#8217;ve wanted to work on it, but had no money to actually make this project get off the ground to make it worthwhile. Can&#8217;t live off of air, you know?</p>
<p>Back onto the topic though, I&#8217;m open to suggestions for site layout. I&#8217;ve got one in mind, but I don&#8217;t trust my site ideas most of the time. I&#8217;d like to note that I can write any site, I&#8217;m just bad at coming up with layouts.</p>
<p>- Pancakes</p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/895/new-site-is-on-the-way-but/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quad Trees!</title>
		<link>http://nrgs.org/887/quad-trees/</link>
		<comments>http://nrgs.org/887/quad-trees/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 13:00:14 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=887</guid>
		<description><![CDATA[I&#8217;m surprised that I&#8217;ve just learned of these. Regardless, I had fun making a quick example of them. http://skyknitters.com/gdemos/quad_trees/ I&#8217;m sure there&#8217;s going to be one or more people coming in wondering if I&#8217;m going to go deeper into explaining what I did. I&#8217;m not. Quad trees are fairly simple. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m surprised that I&#8217;ve just learned of these. Regardless, I had fun making a quick example of them.</p>
<p><a href="http://skyknitters.com/gdemos/quad_trees/">http://skyknitters.com/gdemos/quad_trees/</a></p>
<p>I&#8217;m sure there&#8217;s going to be one or more people coming in wondering if I&#8217;m going to go deeper into explaining what I did. I&#8217;m not. Quad trees are fairly simple. My math level is algebra and I more than understood how to make quad trees. Theoretically, if you have a moderate amount of programming experience, you should have no issue coming up with your own implementation of a quad tree. I just put this up because I spent a couple of hours working on it so I felt like showing off.</p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/887/quad-trees/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php, you confuse me sometimes</title>
		<link>http://nrgs.org/876/php-you-confuse-me-sometimes/</link>
		<comments>http://nrgs.org/876/php-you-confuse-me-sometimes/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 03:15:12 +0000</pubDate>
		<dc:creator>Goodlookinguy</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nrgs.org/?p=876</guid>
		<description><![CDATA[Note: All code posted here is valid, 100% working, php code. Sometimes I feel like you want to love me, but then go ahead and throw a curve ball that I never thought was possible. In this latest series of tests I discovered that the creators of php like to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note:</strong> All code posted here is valid, 100% working, php code.</p>
<p>Sometimes I feel like you want to love me, but then go ahead and throw a curve ball that I never thought was possible. In this latest series of tests I discovered that the creators of php like to allow very strange things I didn&#8217;t know about. If you didn&#8217;t know you could put a function name or class name in a string and call it, you might want to take a look at these code examples.</p>
<p>First, let&#8217;s start off with the first test. String function calling.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="php"><pre class="de1"><span class="re0">$funccall</span> <span class="sy0">=</span> <span class="st0">&quot;test&quot;</span><span class="sy0">;</span>
&nbsp;
<span class="kw2">function</span> test<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
	<span class="kw1">echo</span> <span class="st0">&quot;Hello World&lt;br /&gt;&quot;</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw2">function</span> test2<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
	<span class="kw1">echo</span> <span class="st0">&quot;Wut?&lt;br /&gt;&quot;</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="re0">$funccall</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
<span class="co1">// $funccall . &quot;2&quot;(); // Doesn't work</span>
<span class="co1">// &quot;test2&quot;(); // Doesn't work</span>
<span class="re0">$funccall</span> <span class="sy0">.=</span> <span class="st0">&quot;2&quot;</span><span class="sy0">;</span>
&nbsp;
<span class="re0">$funccall</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div></div></div></div></div></div>


<p>Okay, so what it boils down to is that php will allow you to store a function name in a string an call it from the variable. However, you cannot just use a string to directly call a function. Okay, if you want it that way php.</p>
<p>Then it gets stranger. As you can then use a similar method to get static methods from a class.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="php"><pre class="de1"><span class="kw2">class</span> Program
<span class="br0">&#123;</span>
	<span class="kw2">public</span> static <span class="kw2">function</span> Execute<span class="br0">&#40;</span><span class="br0">&#41;</span>
	<span class="br0">&#123;</span>
		<span class="kw1">echo</span> <span class="st0">&quot;Execute!&lt;br /&gt;&quot;</span><span class="sy0">;</span>
	<span class="br0">&#125;</span>
&nbsp;
	<span class="kw2">public</span> static <span class="kw2">function</span> Param<span class="br0">&#40;</span> <span class="re0">$pancakes</span> <span class="br0">&#41;</span>
	<span class="br0">&#123;</span>
		<span class="kw1">echo</span> <span class="re0">$pancakes</span> <span class="sy0">.</span> <span class="st0">&quot;&lt;br /&gt;&quot;</span><span class="sy0">;</span>
	<span class="br0">&#125;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="re0">$classmethod</span> <span class="sy0">=</span> <span class="st0">&quot;Program::Execute&quot;</span><span class="sy0">;</span>
<span class="co1">// $classmethod(); // Doesn't work</span>
&nbsp;
<span class="re0">$classname</span> <span class="sy0">=</span> <span class="st0">&quot;Program&quot;</span><span class="sy0">;</span>
<span class="re0">$staticmethod</span> <span class="sy0">=</span> <span class="st0">&quot;Execute&quot;</span><span class="sy0">;</span>
&nbsp;
<span class="re0">$classname</span><span class="sy0">::</span><span class="re0">$staticmethod</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
<span class="re0">$staticmethod</span> <span class="sy0">=</span> <span class="st0">&quot;Param&quot;</span><span class="sy0">;</span>
&nbsp;
<span class="re0">$classname</span><span class="sy0">::</span><span class="re0">$staticmethod</span><span class="br0">&#40;</span><span class="st0">&quot;No way&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div></div></div></div></div></div>


<p>Okay, so with this one you have to separate the class and static method into their own variables. If you try to combine the two it won&#8217;t work saying something like &#8220;Function not found.&#8221; Then just like you&#8217;d regularly call a static method, do it with the variables and it works.</p>
<p>Now, I&#8217;m not sure what to say after doing these experiments other than php is a very strange language at times. On that note I&#8217;ll leave this here.</p>
<p><strong>Edit:</strong> I should mention, this is not the limit to what can be done. I&#8217;m fairly sure I&#8217;ve done tests in the past that go something like this. &#8216;$className = new Name(); $publicMethod = &#8220;Display&#8221;; $className->$publicMethod(); $publicVariable = &#8220;Name&#8221;; $className->$publicVariable = &#8220;My New Name&#8221;;&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://nrgs.org/876/php-you-confuse-me-sometimes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

