<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>AQUILAX’S DEVELOPMENT BLOG - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-12dc591c" type="application/json"/><link>http://devhoremag.disqus.com/</link><description></description><atom:link href="http://devhoremag.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 16 Mar 2012 17:06:13 -0000</lastBuildDate><item><title>Re: chomp for bash</title><link>http://dev.horemag.net/2008/10/28/chomp-for-bash/#comment-467272466</link><description>&lt;p&gt;echo $variable | tr "\r" " "&lt;br&gt;worked for me &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">roger pack</dc:creator><pubDate>Fri, 16 Mar 2012 17:06:13 -0000</pubDate></item><item><title>Re: Perlin noise generator in PHP</title><link>http://dev.horemag.net/2008/03/02/perlin-noise-generator-in-php/#comment-390971867</link><description>&lt;p&gt;Thank you for clarifying, working great here!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nick Janssen</dc:creator><pubDate>Tue, 20 Dec 2011 17:07:53 -0000</pubDate></item><item><title>Re: Perlin noise generator in PHP</title><link>http://dev.horemag.net/2008/03/02/perlin-noise-generator-in-php/#comment-375320960</link><description>&lt;p&gt;Aquila. I fixed your generator! It had two problems that I addressed.&lt;/p&gt;

&lt;p&gt;1. Negative values, when fractional, were backwards (but only fractions were backwards) - when you get the integer value at the very beginning of the noise, floor it - for both x and y. This way, -.75 doesn't have 0 as its 'integer' nearest it, it instead has -1, so it doesn't become a repeat of .75. &lt;/p&gt;

&lt;p&gt;2. The problem some have been talking about running out of perlin is due to the noise() function - when the combination $x * $y * 57 gets over about an absolute value of 4360 or so (-4360 in the other direction) the noise stops. What I did is send $n back the other direction like this:&lt;/p&gt;

&lt;p&gt;while(abs($n)&amp;gt;4360) $n = $n - (($n-(4360*($n/abs($n))))*2); &lt;/p&gt;

&lt;p&gt;Right after $n is calculated in the noise function. This creates on a large scale a 'reflection'. Perlin himself said that repeating on a large scale is something that the Perlin Noise doesn't care much about, but I'd imagine if you'd want it to be super-solid, you would need 9 sets of random values; Whenever $n is greater than ~4360 (don't know the exact value) depending on your $x and $y values, you choose different sets of r1,r2,r3. This way, you can eliminate the repeat.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">RiverC</dc:creator><pubDate>Tue, 29 Nov 2011 17:55:40 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-369196415</link><description>&lt;p&gt;I'm at work now and don't have much time. You have to implement the other actions. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aquilax</dc:creator><pubDate>Mon, 21 Nov 2011 02:08:33 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-368183133</link><description>&lt;p&gt;Hey Aquilax .. can you tell me in what hours are you available?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Sat, 19 Nov 2011 04:52:45 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367593073</link><description>&lt;p&gt;We need some actions, classes and controler i think to finish this blog.. do you have a time to help me how to do this?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 10:43:16 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367583733</link><description>&lt;p&gt;ReflectionException [ -1 ]: Class controller_user does not exist&lt;br&gt;ReflectionException [ 0 ]: Method action_2 does not exist&lt;br&gt;ReflectionException [ -1 ]: Class controller_submit does not exist&lt;br&gt;ReflectionException [ -1 ]: Class controller_latest does not exist&lt;/p&gt;

&lt;p&gt;I see you didn't finish your tutorial in Kohana on yuor blog. What should we do first now? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 10:30:24 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367582306</link><description>&lt;p&gt;It works&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 10:28:00 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367549847</link><description>&lt;p&gt;No. It should be where your index.php file is: &lt;a href="http://code.google.com/p/kohana-tutorial/source/browse/#svn%2Ftrunk%2Fkohana%2Fknh%2Fassets" rel="nofollow"&gt;http://code.google.com/p/kohan...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aquilax</dc:creator><pubDate>Fri, 18 Nov 2011 09:40:06 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367548619</link><description>&lt;p&gt;where shoul I add this folders and file of .css?&lt;br&gt;/assets/css/style.css&lt;/p&gt;

&lt;p&gt;in views/ ??&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 09:37:46 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367507609</link><description>&lt;p&gt;problem solved my friend... I just added new user with all permission and access .. I don't know why It didn't work on basic root without password :) thanks..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 09:00:50 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367484680</link><description>&lt;p&gt;Did you setup the database properly, I don't see the username in the error. Check this example config: &lt;a href="http://code.google.com/p/kohana-tutorial/source/browse/trunk/kohana/knh/application/config/database.php" rel="nofollow"&gt;http://code.google.com/p/kohan...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aquilax</dc:creator><pubDate>Fri, 18 Nov 2011 08:36:07 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367481214</link><description>&lt;p&gt;There is another problem with: &lt;br&gt;Database_Exception [ 1044 ]: Access denied for user ''@'localhost' to database 'khn'&lt;/p&gt;

&lt;p&gt;I am using WAMPP server &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 08:31:54 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367478464</link><description>&lt;p&gt;ofc... I solved this cuz it shoyulb be Database_Espression.. the underline was needed&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 08:29:28 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367431625</link><description>&lt;p&gt;Did you enable the database module in bootstrap.php? Check this file: &lt;a href="http://code.google.com/p/kohana-tutorial/source/browse/trunk/kohana/knh/application/bootstrap.php" rel="nofollow"&gt;http://code.google.com/p/kohan...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aquilax</dc:creator><pubDate>Fri, 18 Nov 2011 07:21:29 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367428190</link><description>&lt;p&gt;it worked my friend but it's another problem with database expression:&lt;br&gt;ErrorException [ Fatal Error ]: Class 'DatabaseExpression' not found&lt;/p&gt;

&lt;p&gt;I posted on that blog.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 07:14:45 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367415369</link><description>&lt;p&gt;I posted two replies.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aquilax</dc:creator><pubDate>Fri, 18 Nov 2011 06:38:03 -0000</pubDate></item><item><title>Re: Kohana Tutorial</title><link>http://dev.horemag.net/2010/10/16/kohana-tutorial/#comment-367409519</link><description>&lt;p&gt;Friend could you check my comments on:&lt;br&gt;&lt;a href="http://kohana-tutorial.blogspot.com/2010/10/lesson-2-database-and-models.html" rel="nofollow"&gt;http://kohana-tutorial.blogspo...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Fri, 18 Nov 2011 06:21:47 -0000</pubDate></item><item><title>Re: Generating static verison of CodeIgniter website</title><link>http://dev.horemag.net/2011/11/04/generating-static-verison-of-codeigniter-website/#comment-367172914</link><description>&lt;p&gt;Hi Lucas. Unfortunately, I've  abandoned the tutorial a long time ago.  If you have any particular question about the code you can ask it here or on the blog itself. I'll do my best to help.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aquilax</dc:creator><pubDate>Thu, 17 Nov 2011 22:48:21 -0000</pubDate></item><item><title>Re: Generating static verison of CodeIgniter website</title><link>http://dev.horemag.net/2011/11/04/generating-static-verison-of-codeigniter-website/#comment-366936895</link><description>&lt;p&gt;Hello AquilaX! &lt;br&gt;I'm from Poland. I didn't know how to find you but I did. Do you remember your blog &lt;a href="http://kohana-tutorial.blogspot.com/2010/10/lesson-2-database-and-models.html" rel="nofollow"&gt;http://kohana-tutorial.blogspo...&lt;/a&gt; ? &lt;br&gt;I started to make your Kohana Hacker News but I have problem. I don't know where put below this code because you didn't type exactly. "Let's also add a method to get all the news for the home page:  &lt;code&gt; " Do you have maybe FB or ICQ ? I wanted to talk if I have problems.&lt;/code&gt;&lt;/p&gt;&lt;code&gt;

&lt;/code&gt;&lt;p&gt;&lt;code&gt;Regards from Poland&lt;br&gt;Lucas&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Fajger</dc:creator><pubDate>Thu, 17 Nov 2011 15:58:53 -0000</pubDate></item><item><title>Re: Perlin noise generator in PHP</title><link>http://dev.horemag.net/2008/03/02/perlin-noise-generator-in-php/#comment-301639782</link><description>&lt;p&gt;Yep, same here, only the two top rows are getting random data. After that, it evens out to a solid color.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joseph</dc:creator><pubDate>Sun, 17 Jul 2011 08:30:24 -0000</pubDate></item><item><title>Re: MySQL UNION DISTINCT with result priority</title><link>http://dev.horemag.net/2008/07/31/mysql-union-distinct-with-result-priority/#comment-301639802</link><description>&lt;p&gt;wow, great solution. This saved me a lot of time. thanks alot&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rye coder</dc:creator><pubDate>Sun, 09 Jan 2011 11:03:22 -0000</pubDate></item><item><title>Re: MySQL UNION DISTINCT with result priority</title><link>http://dev.horemag.net/2008/07/31/mysql-union-distinct-with-result-priority/#comment-301639801</link><description>&lt;p&gt;Yes there is just enclose everything in one select:&lt;/p&gt;

&lt;p&gt;SELECT(&lt;br&gt;  SELECT... whatever&lt;br&gt;) as outer LIMIT 10;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AquilaX</dc:creator><pubDate>Wed, 17 Nov 2010 08:02:59 -0000</pubDate></item><item><title>Re: MySQL UNION DISTINCT with result priority</title><link>http://dev.horemag.net/2008/07/31/mysql-union-distinct-with-result-priority/#comment-301639798</link><description>&lt;p&gt;Actually, I tested it:&lt;br&gt;By default first query in union has top priority and so on.&lt;/p&gt;

&lt;p&gt;The problem I am facing now is:&lt;br&gt;I want 12 results on every page.&lt;br&gt;So, Is there a method by which I can give Limit to whole query not just in every union query.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sunny</dc:creator><pubDate>Wed, 17 Nov 2010 07:24:14 -0000</pubDate></item><item><title>Re: MySQL UNION DISTINCT with result priority</title><link>http://dev.horemag.net/2008/07/31/mysql-union-distinct-with-result-priority/#comment-301639797</link><description>&lt;p&gt;Not working&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sunny</dc:creator><pubDate>Wed, 17 Nov 2010 07:17:42 -0000</pubDate></item></channel></rss>
