Joey Adams Dot Net

Southern Fried Programming


Archive for May, 2008


Zend Studio, Fedora Core 9, and my laptop dv8000

I’ve been dying to have a Linux workstation. I have BackTrack 3 installed in VM on my desktop, but that is not enough. I miss my gentoo installation, and considered it, but it just takes too long and my schedule is more than full.

I cannot change over my desktop OS due to using Media Center for my home pvr, see other posts for details. Also because I game every now and then, and use the CS3 suite, so oh well. Dual booting is not worth it when I can work off a VM.

So my laptop is the choice then, with it’s semi-broken screen and all. I decide to go with Fedora, it’s an easy install, a programmers type of distro, and I am familiar with it from the past.  I download Fedora 9 Sulphur for amd64, install was FLAWLESS, just perfect. Boot up, everything works like supposed to.

Zend Studio Fedora 9

(more…)

LifeLock CEO……. Identity Gets Stolen

Keep knocking on the Devil’s door and someone is bound to answer. And Answer they did when Todd Davis, CEO of LifeLock, had his identity stolen. The exact thing his entire company is responsible for stopping. This has got to be one of the greatest things I have seen in a while. I cannot even think about it without laughing. I have no idea if the ss# he was ‘giving away’ on those commercials was valid or not, but when you put yourself in the public cross-hair like that, you should expect things to happen.

From what I have read, his company is being sued by some individuals for misconception, or deception, or something or another. This may have been one mishap, and not to discredit the entire company, shit happens, but I really like services like these with the number of id thefts going around these days. I am not for, however, deception, and trying to get money on the weakness of good willing people. Robert Hansen, or Rsnake, has done some looking and found some pretty weird wordings on their site .

All in all, a good laugh.

AT&T/Bellsouth Filtering SMTP out vs My postfix, IIS mail servers

If I have ever spoken to you regarding mail servers, it was probably a frustrating conversation. Me and mail servers just do not get along. I have tried numerous times on all sorts of platforms from unix to linux and windows to get sendmail, postfix, even iis to work correctly.

Well, as a developer, I am needing mail functionality in my php applications. I also would like my joeyadams.net and other domains to be able to have unique email addresses. I already have a windows 2k3 server set up for file/print and previously mail with exchange, which actually worked… well some of the time.

 So here is my plan, on my redhat box, ditch sendmail, use postfix. On win2k3 setup simple iis smtp and pop3 services.

(more…)

MYSQL Abstraction Pro + iObject, Powerful Abstraction

I have created a MYSQL abstraction layer that I am pretty proud of.

Here are some of the features:

  • Maintain only one persistent connection to database
  • Can create multiple stored connections at runtime
  • Error Logging
  • Select between 3 return type with each query, including all new iObject
  • iObject (improved Object) has helper methods, and is extensible via Plugin
  • Escape function for variables/array before using them in query
  • Get results in xml or html format, great for reports/test

(more…)

2 Step Views in Zend Framework with Zend_Layout Part 2

In the first part, we looked at the simple way to do 2 step views in Zend Framework prior to 1.5 using a front controller plugin. Now, with the release of 1.5, we have access to Zend_Layout, which is native support for implementing 2 step views.

First off, Visit Akra’s site, there is a lot of information of the Zend Framework there, and a great tutorial on Zend_Layout. You can find the article here, http://akrabat.com/2007/12/11/simple-zend_layout-example/, Also take a look at the official documentation here, http://framework.zend.com/manual/en/zend.layout.html

First off, I’ll assume you have a functioning bootstrap, and working application.

Inside your bootstrap you must start Zend_Layout’s MVC Helper. This can take a number of arguments in array fashion, the most important being the directory that you are going to store the templates in. I suggest views/layouts. See the official documentation for more options.


Zend_Layout::startMvc(array('layoutPath' => '../application/views/layouts'));

Now, before we go further, Here are some methods you can use in the controllers in your application.

(more…)