{"id":255,"date":"2010-02-08T01:45:15","date_gmt":"2010-02-08T09:45:15","guid":{"rendered":"http:\/\/www.onvural.net\/melih\/thoughts\/?p=255"},"modified":"2010-02-08T01:45:15","modified_gmt":"2010-02-08T09:45:15","slug":"another-bug-bites-the-dust","status":"publish","type":"post","link":"https:\/\/www.onvural.net\/melih\/thoughts\/2010\/02\/08\/another-bug-bites-the-dust\/","title":{"rendered":"Another bug bites the dust"},"content":{"rendered":"<p>I&#8217;ve been working on an interesting project lately that I hope to share with everyone soon. I keep running into the oddest of problems trying to get things going. It&#8217;s almost as if just getting the whole thing started is the biggest challenge. After that&#8230; it&#8217;s going to be a lot easier!<\/p>\n<p>I develop on a MacBook Pro. I&#8217;ve had this computer since junior year of college when my iBook died right as I had finished page 18 of a 20 page paper on using Bayesian supported neural networks to predict the <a id=\"aptureLink_HOiKiSCZwu\" href=\"http:\/\/www.youtube.com\/watch?v=kca4Oej7Pz0\">NCAA tournament<\/a> and beat my mom in the annual family competition (more on that in March). I therefore use <a href=\"http:\/\/www.macports.org\/\">MacPorts<\/a> to maintain packages on my system. I just don&#8217;t think compiling by source, keeping up with all of the packages I need, version matching all sorts of dependencies is a good use of my time.<\/p>\n<p>This new project is the product of a lot of thinking and learning. One big piece of learning on my end involves understanding the value of using frameworks to do a lot of the grunt work that comes with web applications. I&#8217;m using CakePHP for this project. Turns out that CakePHP 1.2 and less is not compatible with PHP 5.3. Okay. That&#8217;s easy to fix. I&#8217;ve moved on to CakePHP 1.3, and the next major release of CakePHP will be API compatible with 1.3 per this <a href=\"http:\/\/bakery.cakephp.org\/articles\/view\/clearing-up-some-confusion-on-the-release-versions-of-cakephp\">blog post<\/a>.<\/p>\n<p>Next step is getting the database connection working. This drove me crazy. So it turns out that PHP 5.3 comes with <a id=\"aptureLink_I1oLwFRAvl\" href=\"http:\/\/dev.mysql.com\/downloads\/connector\/php-mysqlnd\/\">MySQL Native Driver<\/a>. I thought this meant there was going to be a problem with CakePHP as a result. Turns out that wasn&#8217;t the case. I was getting all sorts of errors about the extensions not being supported for basic functions like mysql_connect. It just didn&#8217;t make any sense. I tried making sure that the sockets were correctly defined in the php.ini files. I tried re-compiling PHP. <\/p>\n<p>The solution. <em>Before I divulge the solution, I think it&#8217;s fair to say that the source of all knowledge when it comes to PHP comes from either the phpinfo() function or from doing basic command line actions with PHP. It really gives you a good idea of the health of the PHP universe.<\/em> The solution turned out to be that the extensions weren&#8217;t being loaded because the extension directory in the php.ini file was <em>.\/<\/em> where it needed to be <em>\/opt\/local\/lib\/php\/extensions\/no-debug-non-zts-20090626<\/em> because that&#8217;s where the extensions seem to be installed when built by MacPorts.<\/p>\n<p>Now that things are finally setup, it&#8217;s on to building out the project. More on that by the first of March!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on an interesting project lately that I hope to share with everyone soon. I keep running into the oddest of problems trying to get things going. It&#8217;s almost as if just getting the whole thing started is the biggest challenge. After that&#8230; it&#8217;s going to be a lot easier! I develop on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[2,1],"tags":[31,32,33,34],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pQyAq-47","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":85,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2008\/02\/21\/chronicling-my-visualizaton-project-start-with-an-error\/","url_meta":{"origin":255,"position":0},"title":"Chronicling My Visualizaton Project - Start with an error","date":"February 21, 2008","format":false,"excerpt":"It seems that you can't claim that a project has started until there is a bug of some sort that has nothing to do with any code that you have written. In fact, it's a bug in you setting up your system, which often tends to convince folks that the\u2026","rel":"","context":"In &quot;School Year 07-08&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":773,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2014\/01\/14\/finally-42-launches-their-project\/","url_meta":{"origin":255,"position":1},"title":"Finally, 42 launches their project!","date":"January 14, 2014","format":false,"excerpt":"This was Tuesday's blog post, but I didn't publish it in time. 2 in a row is bad. It won't happen again! My favorite (or maybe #1a) manager of all time, Eishay Smith, and his startup, 42, Inc. (inspired by the answer to all things), have launched their first product\u2026","rel":"","context":"In &quot;Entrepreneurism&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":598,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2013\/01\/13\/and-were-back\/","url_meta":{"origin":255,"position":2},"title":"And we're back!","date":"January 13, 2013","format":false,"excerpt":"So I've decided to be much more vigorous in writing on my blog mainly because it's a channel for many things, a practice pad for many more, and a chance to dump my thoughts out of my head and onto the proverbial pad. As a result, Sunday's will become life\u2026","rel":"","context":"In &quot;Life Updates&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":505,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2012\/02\/06\/post-mortem-on-aboutmydive-com\/","url_meta":{"origin":255,"position":3},"title":"Post-mortem on AboutMyDive.com","date":"February 6, 2012","format":false,"excerpt":"Today's post is over on The Rainbow Hat Guy blog. It's about what happened with my first project aboutmydive.com. Check it out, and let me know what you think.","rel":"","context":"In &quot;Entrepreneurism&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1024,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2014\/03\/19\/storytelling-as-a-skill\/","url_meta":{"origin":255,"position":4},"title":"Storytelling as a skill","date":"March 19, 2014","format":false,"excerpt":"I met with a cool cat today for some coffee. We were introduced by Jason (check out this post), and talked about being a PM, what that means, how to represent oneself well on a resume, and the like. I told him about a role we're looking for that involves\u2026","rel":"","context":"In &quot;Becoming a PM&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":563,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2012\/10\/01\/what-happened-to-aboutmydive-com\/","url_meta":{"origin":255,"position":5},"title":"What happened to AboutMyDive.com?","date":"October 1, 2012","format":false,"excerpt":"I wanted to do a post-mortem on aboutmydive.com. This was my first attempt at building something that I hoped would become more than a project. It didn't, and I think it failed for a few simple reasons that I wanted to share here. 1) No audience interest I thought that\u2026","rel":"","context":"In &quot;Rainbow Hat Guy transition&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts\/255"}],"collection":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":0,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}