Since, I needed something working relatively fast, and because I wanted a more natural interface into editing JSON, I decided to create my own utility. So, I am releasing the initial working version of Riak Webmin. It uses the same interface as Riaktive, but I added an integrated JSON editor. Unfortunately, RIak Webmin does not yet support all of Riak’s features including links. I will be improving the functionality of Riak Webmin as I can and will make sure to eventually support all of Riak’s REST API.
Posted in Development
at November 28th, 2010. No Comments
Need help installing PHP extensions for OS X 10.6 (Snow Leopard) using MAMP and the included pecl binary? Well, you have come to the right place. If you have tried this on its own, you will notice that none of the extensions pecl builds will work with MAMP. This is because MAMP is compiled as a 32-bit binary whereas pecl tries to build 64-bit PHP extensions.
[Update Feb. 1, 2011]
A much easier way to install PECL packages:
CFLAGS="-arch i386" ./pecl install
To get pecl working properly, make sure you have Xcode installed on you machine. Next, you will need to get a copy of MAMP’s source and prepare it using 32-bit compile flags. You can download the MAMP source from the MAMP download page. Running the .dmg should extract the source. After extracting the source run the following:
Posted in Computing
, OS X
at May 19th, 2010. 8 Comments
I recently ran into a java.lang.OutOfMemoryError exception after moving a Tomcat Web Application from a 32-bit system to a 64-bit system. Not being able to give the JVM more memory, I decided to install a 32-bit JDK on the machine. Getting a 32-bit Tomcat install working on a 64-bit system gave me a bit of trouble, so I decided to write this article.
Installing a 32-bit JDK is very easy. First, download the right package from the sun download site: http://java.sun.com/javase/downloads/index.jsp and extract it. To extract the .bin file, you need need to make sure to make the .bin file executable. After that, you can run the file and it should extract itself to the current directory. You can now use the JDK by referencing it directly or by setting it as an alternative using the appropriate instructions. For the purpose of this article however, we don’t need to get into that. Next, you will need to update your start/stop scripts to take advantage of the new JDK.
As a weekend project I decided to set up a LAML, (Linux, Apache, MySQL, Lua) stack on my computer. I never worked with Lua before, but I figured it wouldn’t be too hard to get it working with my MAMP setup. Getting started, I spent some time reading any articles I could find on the web that talked about setting up or using using Lua for web development. I quickly ran into the Kepler Project which as their website points out:
is an open source platform that brings the power of Lua to web development
While this was my goal, I wanted to start from scratch since I haven’t had any experience with the language and didn’t want to learn it on a specific platform just yet. So, I went on to figure out how to install and configure Lua with MAMP. To accomplish this yourself, you will need: Xcode, MAMP, Lua, LuaRocks, MAMP source, and mod_fcgid.
Posted in Development
, OS X
at February 4th, 2010. No Comments
Edit: I originally started working on this article several months ago, however, as I was editing it, the Zend Framework team released a revamped reference guide that goes through much of what I discuss. Hopefully though, this still ends up being useful and informative for someone out there.
Edit #2: I don’t mean for this article to be followed verbatim, but rather, used as a guide to understanding Zend Framework’s routing process.
Now that I am using ZF for current projects at work, I have taken the opportunity to promote ZF with my colleagues. One colleague in particular, who has been using Code Igniter(CI), was somewhat perplexed by ZF’s seeming complexity, even after reading through the first few sections of the Reference Guide. In particular, he didn’t understand how ZF handled URIs as it is quite different from CI. So, I have put together the following, hopefully simple overview, explaining a bit about ZF’s routing and using it in conjunction with Zend_Config.
Ever try to get subversion working between multiple Macs over a home network without WEB Dav or public key authentication over ssh? Well, that was what I was trying to accomplish over this weekend and it apparently isn’t as straightforward as I thought. There seems to be an issue with subversion (SVN) and apple’s AFP protocol, something to do with not being able to obtain exclusive locks? Well, that is all I could find on the problem. So, if anyone knows how to fix this, I would like to know. However, I did find another solution on my own, that was just as useful to me as using an AFP mounted drive, but much more versatile. Intoducing… MacFUSE!
Posted in OS X
at May 4th, 2008. 7 Comments
I recently published an article trying to shed some light on the Zend_Form component, in particular, when using it with Zend_Config_Ini. In the article I presented a config I developed while trying to learn Zend_Form myself, but unfortunately realized that using generic elementDecorators comes with a price.
In my previous post Zend Framework, A First Look, I discussed the lacking nature of ZF’s documentation, in particular, with regards to Zend_Form. I have since then learned that this is partly due to the fact that Zend_Form is a relatively new component. However, I still wanted to make use of Zend_Form in my current project and decided to trudge through the learning curve of creating a simple custom login form in conjunction with Zend_Config; the end result being an easy to maintain, custom form and this guide. Hopefully, this guide will make it easier for anyone else looking to take advantage of this very cool feature.
Having used Code Igniter for some small projects at work, I recently decided to take the time to acquaint myself with the Zend Framework(ZF) so that I could build my own comparison between two of the most, in my opinion, developed and used PHP frameworks. While I love the flexibility and functionality offered by ZF, I have become very frustrated and annoyed with some of their documentation. Even though it is detailed and expansive, it is no where near complete and somewhat frustrating to use.
I am not sure if it wasn’t publicized or if I just missed it, but the Starcraft 2, Terran gameplay trailer has arrived (officially on Sept. 13th). Even though my favorite race is Zerg, I was still excited to view this video. I mean, after watching the first gameplay trailer highlighting the Protoss, who wouldn’t be excited.
Since I don’t play the game as much as I did when it first game out, I have no business trying to analyze the flaws of the original compared to what Blizzard has done and is doing with the sequel. Therefore, I will stick to enumerating the new additions found in this latest gameplay trailer.
Posted in Gaming
at October 14th, 2007. 1 Comment