Author Archives

Using Oracle Driver with Zend Framework

Spent far too much time fiddling around with configuration options to get this to work.
In your application.ini file, you will need something that looks like this.

resources.db.adapter = Oracle

resources.db.params.username = myusername       

resources.db.params.password = mypassword

resources.db.params.dbname = my.host.name.com:portnumber/mydbinstance

notice that you don’t need a “resources.db.paramas.host” line here. The “mydbinstance” part comes from your tnsnames.ora file…

mydbinstance =

  [...]

Configuring vhosts and fixing zf.exe tool with initial setup of Zend Server CE and Zend Framework 1.9.1 on Windows.

I’ve just spent a few hours wading through what should otherwise be simple.
First of all, download Zend Server CE you can get it here:
http://www.zend.com/en/products/server-ce/downloads
I chose the PHP 5.3 version.
Start the install, and choose custom install if you want to also install MySQL Server and PhpMyAdmin.
Once the install is complete, you would think that [...]

Dead Simple as3flickr, Flickr API Example

I’ve finally had a chance to start messing around with the ActionScript 3 Flickr API, as3flickr. One thing I noted right away is that there aren’t too many dead simple examples of how to use the library. Most of the examples out there dive right into authentication, which isn’t a good place for the newbie [...]

using the parent() function in e4x epressions and actionscript to create complex queries.

Let’s say you have the following xml for greeting cards.

<designlist>

<design

 id="123"

title="Happy Hanukkah"

previewImageUrl="assets/demo/images/g0022_4×6h_preview.jpg"

thumbImageUrl=""

   <tags>

  <tag id=‘1231′></tag>

<tag id=‘3242′&gt;Hanukkah&lt;/tag&gt;</code></blockquote>

</tags>

<code> &lt;/design&gt;</code>

<p align="left">&nbsp;</p>

 

<p align="left"><code>&lt;design

</code>

<blockquote><code> id="456"</code>

<code> title="Happy New Year"</code>

<code> previewImageUrl="assets/demo/images/g0412_4×6h_preview.jpg"</code>

<code> thumbImageUrl=""&gt;</code>

<code> &lt;tags&gt;</code>

<blockquote><code> &lt;tag id=’1231′&gt;Holiday&lt;/tag&gt;</code>

<code> &lt;tag id=’2342′&gt;New Year&lt;/tag&gt;</code></blockquote>

<code> &lt;/tags&gt;</code>

<code></code></blockquote>

<p align="left"><code> &lt;/design&gt;</code></p>

<p align="left">&nbsp;</p>

 

<p align="left"><code>&lt;design

</code>

<blockquote><code> id="8284"</code>

<code> title="Merry Xmas"</code>

<code> previewImageUrl="assets/demo/images/g0256_4×6v_preview.jpg"</code>

<code> thumbImageUrl=""&gt;</code>

<code></code></blockquote>

<blockquote><code> &lt;tags&gt;</code>

<blockquote><code> &lt;tag id=’1231′&gt;Holiday&lt;/tag&gt;</code>

<code> &lt;tag id=’3242′&gt;XMas&lt;/tag&gt;</code>

<code> &lt;tag id=’8323′&gt;Christmas&lt;/tag&gt;</code></blockquote>

<code> &lt;/tags&gt;</code>

<code></code></blockquote>

<p align="left"><code> &lt;/design&gt;</code></p>

<p align="left">&nbsp;</p>

 

<p align="left"><code>&lt;design

</code>

<blockquote><code> id="8284"</code>

<code> title="Happy Happy [...]

Changing the default setting for del.icio.us bookmarks app to Do Not Share

When I tag a page using del.icio.us, I always have to click “do not share” if I don’t want the link showing up on facebook and elsewhere. Annoying!
This can be changed.
Open firefox. Type in
about:config
into the address bar. Right click anywhere on the page. From the menu that appears, select New->Interger.
It will ask for a name [...]

Subversion integration with Active Reload’s wonderful Lighthouse Issue Tracking site.

I realize this post is probably not as interesting as integrating Lighthouseapp with GIT but I thought I would jot down a couple of notes.
There is a great script that shows you how to set up subversion with lighthouse here:
http://www.lighthouseapp.com/help/setting-up-subversion-integration
The documentation is sufficient, but too sparse for my tastes.
Here’s some notes that might help [...]

creating control arrays with qcodo

Lately I’ve been playing around with the qcodo framework. There’s a lot of things to love about qcodo, but the 4 or 5 lines of code required to put together a single control is not one of them.
For instance, if I wanted to create a text box on a page. I could something like this.
class [...]

what is this all about?

So I’ve been wanting, for some time now, to put together a blog, the sole purpose of which is to record my geeky finds from around the internet. Others have saved me countless hours by posting their solutions, I just want to give something back.
My plan here is to not waste a lot of time [...]