Serving Images from Blob type in DB

So today I needed to get into NNEREN to get images of properties for sale.  I have never used the blob field before and certainly never tried recovering images stored in a db like this.  Thanks to a combination of a 5 year old article from Good Ole Ben Forta and a forum post on just skins – I came up with the following  code… Read the rest of this entry »

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Buzz

No Comments

CurrentRow just doesn’t stick…

Can anyone answer me this…  I am trying to loop through a set of records and create form fields to edit each one – using a mass update.  However inside the form I need to put a select box of states.

Here is the code -

<cffunction name="showState" hint="I show the state select box" returntype="string" output="yes">
<cfargument name="sState" hint="selected state" default="">
<cfargument name="name" hint="select field name" default="caucus_State">
 <cfset var out = ''>
 <cfsavecontent variable="out">
 <select name="#arguments.name#">
 <cfloop query="rsGetStates">
 <option value="#state_Name#" <cfif arguments.sState EQ state_Name>selected</cfif>>#state_Name#</option>
 </cfloop>
 </select>
 </cfsavecontent>
 <cfreturn out >
</cffunction>

<cfoutput query="rsCaucusList">
  <td>#CurrentRow#. <input type="hidden" name="caucus_id#CurrentRow#" value="#rsCaucusList.caucus_ID#">
<cfinput name="caucus_name#CurrentRow#" required="yes" message="A caucus name is required for member #CurrentRow#" type="text" value="#rsCaucusList.caucus_Name#"></td>
<td align="center">#showState(rsCaucusList.caucus_state,'caucus_State#CurrentRow#')#</td>
</cfoutput>
asd

here is what is WRONG…

When the form is rendered – the currentRow variable  seems to merge .  I get the following dump..

CAUCUSCOUNT 3
CAUCUS_ID0 2,4
CAUCUS_ID1 3
CAUCUS_LINK0 http://www.senate.gov/~xyz/,http://www.senate.gov/~abc/,http://www.senate.gov/~qwe/
CAUCUS_NAME0 Senator xyz,Senator abc
CAUCUS_NAME1 Senatorqwe
CAUCUS_SORTORDER0 0,0,0
CAUCUS_STATE0 Alabama,Alaska
CAUCUS_STATE1 Alabama

You will note there are only two causus IDs, and caucus names – 0 and 1.  Then there is only 1 link, 1 sortorder, and 2 states.  Does

Does anyone get it?  I am STUMPED!!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Buzz

2 Comments

Paypal Buy Now Button Hidden Trick!

Did you know that you can add up to 7 custom fields and their values to a buy now button?  Using the merchant interface – you can only have 1 custom field.  It is named on0 (Oh N Zero) and it’s value is on1 (Oh N One).

However a little bit of digging into the docs tells us this :  ( Paypal Integration center – Developer – How To – HTML – Website Payments Standard – Standard Variable Reference)

on1:
Second option field name and label. The os1 variable contains the corresponding value for this option field. For example, if on1 is color then os1 could be blue.
You can specify a maximum of 7 option field names (6 with Subscribe buttons) by incrementing the option name index (on0 through on6).

Did you catch that?   Let me repeat it for you -

You can specify a maximum of 7 option field names (6 with Subscribe buttons) by incrementing the option name index (on0 through on6).

All well and good but how do you use it right?  Simple – add some new fields to your submit form like this…

<input type=”hidden” name=”on0″ value=”How Cool is this option?”>
<input type=”hidden” name=”on1″ value=”Do you really feel that way?”>
<input type=”hidden” name=”on2″ value=”YourName”>
<input type=”text” name=”os0″ maxlength=”60″ size=”5″>
<input type=”text” name=”os1″ maxlength=”60″ size=”5″>
<input type=”text” name=”os2″ maxlength=”60″ size=”5″>

So what does it do for you?  Simple really – it allows you to collect a few more items in the actual paypal transaction instead of processing those items separately.

Check out all the coold code for simple payments here : https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables

Be Blessed All!!!

Chris

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Buzz

No Comments

Remove Icons from Notification Area

If you have items in Past Items that are have long ago been removed from the system and want to remove them from the list, use the following procedure.

Notifications Area

Click Start > Run > Regedit

Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify

Delete the IconStreams and PastIconsStream values.

Open Task Manager (ctrl-alt-del), click Processes tab, click Explorer.exe, then click End Process.

While in Task Manager, goto File > New Task > type explorer, then click OK

This will reset your icons and populate the bar with your currently running apps that make use of the tollbar area.

Be Blessed!
Chris

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Buzz

No Comments

Free Subscription to EContent Magazine

EContent magazine is a print magazine that focuses exclusively on content, in particular, digital content.
Here are some of the topics that they cover:

- News and analysis of what’s happening in the content industry (product announcements, technology trends, metrics, etc.)
- Feature articles covering the latest trends and issues
- Content creation, acquisition, organization, and distribution

Right now, you can get one years’ subscription for free – normally costs $119 a year.

But you need to submit a request and they’ll tell you right away if you will be receiving a subscription. Also, they are opening this to US residents only .

If you fall within the criteria this could be a great magazine to get your hands on – and not to mention, lets you stay off the computer at least for a while.

Request your subscription directly from this page:   http://bit.ly/ewsEContent *

Enjoy!

Chris

*Note: This post contains affiliate links.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Buzz

No Comments