CF and displaying random image adverts?
Hi I am looking to set up via CF a script that displays random image adverts each time the page is refreshed. Which is the best way to achieve this? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326422 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF and displaying random image adverts?
Not sure it it is best but I've got some ad management software: Harlan. http://harlan.riaforge.org On Fri, Sep 18, 2009 at 3:57 AM, Ian Vaughan i.vaug...@neath-porttalbot.gov.uk wrote: Hi I am looking to set up via CF a script that displays random image adverts each time the page is refreshed. Which is the best way to achieve this? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326423 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Implementing Paging within a div
I have a page that has two divs one containing the text description of an Item and the other, pictures relating to the item. My design is such that I want to show the pictures in groups of four within the picture holding div, and so if there are more that four (4) pictures for the item, the user must page through, within the div to see the rest of the pictures. Note, the content in the other div does not change when the picture part does. What is the best way to implement such a functionality. Here is the picture and text code for my current static div: table width=600 border=1 cellpadding=1 tr td width=50%img src=images/consumer/#ExpandedImg1#.jpg /td td width=50%img src=images/consumer/#ExpandedImg2#.jpg /td /tr tr td width=50%#DescriptionforExpandedImg1# /td td width=50%#DescriptionforExpandedImg2# /td /tr tr td width=50%img src=images/consumer/#ExpandedImg3#.jpg /td td width=50%img src=images/consumer/#ExpandedImg4#.jpg /td /tr tr td width=50%#DescriptionforExpandedImg3# /td td width=50%#DescriptionforExpandedImg4# /td /tr tr td width=50%img src=images/consumer/#ExpandedImg5#.jpg /td td width=50%img src=images/consumer/#ExpandedImg6#.jpg /td /tr tr td width=50%#DescriptionforExpandedImg5# /td td width=50%#DescriptionforExpandedImg6# /td /tr tr td width=50%img src=images/consumer/#ExpandedImg7#.jpg /td td width=50%img src=images/consumer/#ExpandedImg8#.jpg /td /tr tr td width=50%#DescriptionforExpandedImg7# /td td width=50%#DescriptionforExpandedImg8# /td /tr !--- temporary output of consumer's details--- tr td width=50%font size=+2a href=adConsumerEmail.cfm?User_id=#URLEncodedFormat(TRIM(User_id))# #user_id# /a/font/td td width=50%#phone# /td /tr tr td width=50%#city# /td td width=50%#region# /td /tr I will appreciate insights on how to do this. TIA ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326424 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
coldfusion barcode
hi our software needs to have the ability to generate a barcode gif and place it on a document. has anyone done this before, and what is the best method? thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326425 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: malware patterns
You may want to make sure you're not hosting any tentacle porn, etc. lmao. That made my day. Thanx. On Thu, Sep 17, 2009 at 5:55 PM, Dave Watts dwa...@figleaf.com wrote: -- Gerald Guido http://www.myinternetisbroken.com To invent, you need a good imagination and a pile of junk. -- Thomas A. Edison ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326426 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: coldfusion barcode
our software needs to have the ability to generate a barcode gif and place it on a document. has anyone done this before, and what is the best method? Not with GIFs and HTML, but PDFs support barcodes nicely. I haven't worked with them from CF, but I suspect it may be possible. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326427 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: coldfusion barcode
I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- == FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION:1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY:pears...@aquinas.vic.edu.au WRITTEN:17/11/2004 DESCRIPTION:Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com === --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTopdefault= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTopdefault=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],2,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],7,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height:
Re: coldfusion barcode
I have used the java lib barbecue http://barbecue.sourceforge.net/index.html in CFML before and it worked out well. On Fri, Sep 18, 2009 at 9:22 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- == FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION:1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY:pears...@aquinas.vic.edu.au WRITTEN:17/11/2004 DESCRIPTION:Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com === --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTopdefault= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTopdefault=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],2,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span
Re: coldfusion barcode
Thanks Phillip, perfect solution, we actually found it on adobe as a free download: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1020465# I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- = = FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION: 1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY: pears...@aquinas.vic.edu.au WRITTEN: 17/11/2004 DESCRIPTION: Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com == = --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTopdefault= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTopdefault=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes. InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes. BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes. MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes. InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes. BarWidth/2))#px solid; border-color: white; height: #Attributes.BarHeight#px;margin-bottom:#Attributes. MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes. InputValue,i,1))],2,1)*(Attributes.BarWidth)+(Attributes. BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.
Re: coldfusion barcode
There are several methods that integrate well with CF. First, what type of barcode are you using? If it is 3 of 8, 7 of 9, or posta or MICR l you can just grab a barcode font (there are some free ones out there) and embed the font into a pdf document cfdocument type=pdf That is the easiest method. Stepping up in difficulty would be to purchase a bar code control. Do a google search, there are many different vendors/products out there. You then would call the dll or ocx using cfmethod. You can set up any of the attributes necessary and there is usually an output method of some kind that you would call to place the bar code in your document. The advantage of using a control is they usually can handle all bar code types including 2D types and international postal codes along with UPC, GS1-128 and all the others. The disadvantage is it is a bit more programming to make it all work. There are third party bar code generation programs out there as well that can generate the code and pass it back to you as an object which you would then embed in your document. These can be costly if you run high volume. Another option to consider though depending on your situation. I do bar codes all the time right now. It really isn't that difficult. --S ^ On Fri, Sep 18, 2009 at 9:02 AM, Richard White rich...@j7is.co.uk wrote: hi our software needs to have the ability to generate a barcode gif and place it on a document. has anyone done this before, and what is the best method? thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326431 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFPDF can not flatten liveCycle Forms - so how do you?
Hi Jochem, Well, I tried working with Adobe Printer driver and never had any success getting this to work. Do you have any other pointers you could give me on this.. I can't afford to fork over 50k for livecycle server for this one purpose. What else does liveCycle Server include that would be useful to a CF developer? Brook -Original Message- From: Jochem van Dieten [mailto:joch...@gmail.com] Sent: September-01-09 2:46 AM To: cf-talk Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you? On Mon, Aug 31, 2009 at 3:46 PM, Brook Davies wrote: I tried this to to the 'Adobe PDF' printer with no luck. I didn't get a result or find a way to specify an output file. Have you got this working? Never tried it with ColdFusion / cfprint, but I got it working with LiveCycle and their equivalent of cfexecute. In essence it is just a command line print with the PDF printer driver configured to never ask questions and always print to the same folder / file protected by a giant lock. First get it working from the command line, then try from CF. And don't worry if the process doesn't exit afterwards, subsequent print commands will just use the same process. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326432 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
This may also help to use Barbecue (although the package may have changed a little since then). http://www.bifrost.com.au/blog/index.cfm/2006/8/24/Generating-Barcodes-with-Barbecue-and-Coldfusion mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/18 Kevin Pepperman chorno...@gmail.com: I have used the java lib barbecue http://barbecue.sourceforge.net/index.html in CFML before and it worked out well. On Fri, Sep 18, 2009 at 9:22 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- == FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION: 1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY: pears...@aquinas.vic.edu.au WRITTEN: 17/11/2004 DESCRIPTION: Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com === --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTop default= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTop default=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height:
RE: coldfusion barcode
Friend and Guru Ryan Stille produced a bar code component for us that uses an inexpensive commercial java class. http://www.stillnetstudios.com/2d-barcodes-coldfusion/ -mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Friday, September 18, 2009 11:01 AM To: cf-talk Subject: Re: coldfusion barcode This may also help to use Barbecue (although the package may have changed a little since then). http://www.bifrost.com.au/blog/index.cfm/2006/8/24/Generating-Barcodes-with- Barbecue-and-Coldfusion mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/18 Kevin Pepperman chorno...@gmail.com: I have used the java lib barbecue http://barbecue.sourceforge.net/index.html in CFML before and it worked out well. On Fri, Sep 18, 2009 at 9:22 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- = = FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION: 1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY: pears...@aquinas.vic.edu.au WRITTEN: 17/11/2004 DESCRIPTION: Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com = == --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTop default= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTop default=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span
RE: CFPDF can not flatten liveCycle Forms - so how do you?
On the same note, does any one know what LiveCycle ES costs? Is it true its 50k + ? Is that the only solution to signing XFA forms? -Original Message- From: Brook Davies [mailto:cft...@logiforms.com] Sent: September-18-09 8:52 AM To: cf-talk Subject: RE: CFPDF can not flatten liveCycle Forms - so how do you? Hi Jochem, Well, I tried working with Adobe Printer driver and never had any success getting this to work. Do you have any other pointers you could give me on this.. I can't afford to fork over 50k for livecycle server for this one purpose. What else does liveCycle Server include that would be useful to a CF developer? Brook -Original Message- From: Jochem van Dieten [mailto:joch...@gmail.com] Sent: September-01-09 2:46 AM To: cf-talk Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you? On Mon, Aug 31, 2009 at 3:46 PM, Brook Davies wrote: I tried this to to the 'Adobe PDF' printer with no luck. I didn't get a result or find a way to specify an output file. Have you got this working? Never tried it with ColdFusion / cfprint, but I got it working with LiveCycle and their equivalent of cfexecute. In essence it is just a command line print with the PDF printer driver configured to never ask questions and always print to the same folder / file protected by a giant lock. First get it working from the command line, then try from CF. And don't worry if the process doesn't exit afterwards, subsequent print commands will just use the same process. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326435 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Verity
Hi, I know this is an old topic, but did you find out if those dump files need to be retained? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326436 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFPDF can not flatten liveCycle Forms - so how do you?
On the same note, does any one know what LiveCycle ES costs? Is it true its 50k + ? Is that the only solution to signing XFA forms? LiveCycle ES is a suite of products. Buying it is kind of like buying a car - you can get package deals, and the price for the individual components or the packages can vary wildly depending on how close it is to the end of the quarter, etc. You really need to talk to an Adobe sales rep to get a price quote. I'm not aware of any other way to programmatically sign XFA forms besides using LiveCycle Digital Signatures ES, which is the module in question. You don't need to get all the other modules if you just need to sign forms. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326437 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
clearing flash cache
Hey all, I have a client who has a Flash movie playing on a page, which reads an xml file (a cfm file returning xml code, that is) and displays a list of files in that customer's image folder. After a customer uploads a new file to the website (through an html form on the side) the page reloads and the flash movie loads the XML code again and displays the list of file, again. In FireFox this works fine. In IE it only displays the new file if the end-user has Tools Internet Options Browsing History [Settings] set to Always. If it's not, then the new files will not list in the Flash app until the browser cache expires, whenever that may be. I already have the following meta tags in the head of the containing CFM file, but this appears to have no effect on the Flash app. META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE META HTTP-EQUIV=Pragma CONTENT=no-cache / I have since also added the following lines to both the CFM file holding the Flash app, as well as the CFM file producing the XML for the Flash app: cfheader name=Expires value=#Now()# cfheader name=Pragma value=no-cache Still no go. So, my question is this. Can a Flash app override IE's current caching sceme and absolutely, positively, load a file off the drive? This is driving me and my client absolutely nuts. Thanks, Mik Michael Muller office (413) 863-6455 cell (413) 320-5336 skype: michaelBmuller http://MontagueWebWorks.com Information is not knowledge Knowlege is not wisdom Eschew Obfuscation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326438 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: clearing flash cache
Just add a dummy timestamp parameter to the url's query string. E.g. change this: fileXml.load(/path/to/your.cfm) to something like this: fileXml.load(/path/to/your.cfm?ts= + new Date().valueOf()) cheers, barneyb On Fri, Sep 18, 2009 at 11:18 AM, Michael Muller mich...@mullertech.com wrote: Hey all, I have a client who has a Flash movie playing on a page, which reads an xml file (a cfm file returning xml code, that is) and displays a list of files in that customer's image folder. After a customer uploads a new file to the website (through an html form on the side) the page reloads and the flash movie loads the XML code again and displays the list of file, again. In FireFox this works fine. In IE it only displays the new file if the end-user has Tools Internet Options Browsing History [Settings] set to Always. If it's not, then the new files will not list in the Flash app until the browser cache expires, whenever that may be. I already have the following meta tags in the head of the containing CFM file, but this appears to have no effect on the Flash app. META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE META HTTP-EQUIV=Pragma CONTENT=no-cache / I have since also added the following lines to both the CFM file holding the Flash app, as well as the CFM file producing the XML for the Flash app: cfheader name=Expires value=#Now()# cfheader name=Pragma value=no-cache Still no go. So, my question is this. Can a Flash app override IE's current caching sceme and absolutely, positively, load a file off the drive? This is driving me and my client absolutely nuts. Thanks, Mik Michael Muller office (413) 863-6455 cell (413) 320-5336 skype: michaelBmuller http://MontagueWebWorks.com Information is not knowledge Knowlege is not wisdom Eschew Obfuscation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326439 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
thanks for all the replies and a few options to think about, this will help us a great deal to make sure we choose the right option hi our software needs to have the ability to generate a barcode gif and place it on a document. has anyone done this before, and what is the best method? thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326440 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
SOT - Online Payment Providers who offer recurring payment options
Hey All, A little off topic, but I usually get good advice here... I need to pick an online payment vendor for a project that will having a recurring payment model (month subscriptions). I've used PayFlowPro in the past, but are there any other good options? Last time I checked Google Checkout they still didn't offer recurring payments. Anyhow, just looking for options and advice =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326441 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: SOT - Online Payment Providers who offer recurring payment options
Authorize.net does recurring payments. I've found their post back system to be kind of iffy and the company, overall, to be really irritating. My next implementation of recurring payments is going to utilize stored credit card profiles at the payment gateway (most gateways support this at this point) and then do all of the calendar recurring logic locally, submitting one time payments with the stored profile information. This will allow you to do some useful things like choose a start date for a payment or change which day the payment occurs on as well as provide different periods, like twice a month as opposed to every week. Authorize.net does have an api for recurring payments however, so I'd take a look. Judah On Fri, Sep 18, 2009 at 2:23 PM, Alan Rother alan.rot...@gmail.com wrote: Hey All, A little off topic, but I usually get good advice here... I need to pick an online payment vendor for a project that will having a recurring payment model (month subscriptions). I've used PayFlowPro in the past, but are there any other good options? Last time I checked Google Checkout they still didn't offer recurring payments. Anyhow, just looking for options and advice =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326442 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: SOT - Online Payment Providers who offer recurring payment options
I currently use the Authorize.net recurring billing API via ColdFusion. I think there's a CFC on RIAForge that you can use, though it's easy enough to write your own if you like. It works fine, though Authorize.net is lacking some features that would be helpful: -- when you cancel a recurring billing subscription, it doesn't give you a receipt to send to your client. -- when a payment fails (credit card expired or whatever), it sends you an email, but doesn't post to an url that you could set up to do some processing (suspend your client's account or whatever). -- they haven't updated their admin area in years, it's hard to navigate. -- Josh -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Friday, September 18, 2009 2:24 PM To: cf-talk Subject: SOT - Online Payment Providers who offer recurring payment options Hey All, A little off topic, but I usually get good advice here... I need to pick an online payment vendor for a project that will having a recurring payment model (month subscriptions). I've used PayFlowPro in the past, but are there any other good options? Last time I checked Google Checkout they still didn't offer recurring payments. Anyhow, just looking for options and advice =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326443 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: malware patterns
I host sites for several customers and had been battling this issue. I think I just recently dealt with this issue, this is what I found: The attacker used a version of FCKeditor embedded in a shopping cart software (cfwebstore) to upload a index.cfm file into the store/customtags directory. This cfm page, from the basic analysis I did, crawls your webroot and finds all .htm, .html, .cfm, .cfml, .js pages and injects the script redirect line, and cleans the logs to erase its tracks. This script was being called every 2 hours from a source in China. Ironically, I discovered this when I shut down CF for a few hours and noticed a POST request to this page: 2009-09-18 23:38:22 W3SVC14314234 111.111.111.111 POST /store/customtags/index.cfm - 80 - 222.245.222.205 - 405 0 1 Note the source IP is in China. The FCKeditor file upload vulnerability has been known for a couple of years now, and Adobe has a hotfix for CF8, but it obviously does not cover third-party apps that packages its own copy! And it's well known that it's possible to use it to upload any file by altering its header to fool FCKeditor's filemanager to think it's a GIF image. This can be used to inject just about anything into your site (in this case, a CFM file) and use CF to run it over the web. I recommend all of you who are impacted shut down CF for a few hours and do the same and find any POST entries to cfm pages and investigate them all. Search for any copies of fckeditor on your server. I have removed the one I found (I'll deal with what that breaks later). I have the attacker's file saved so that I can investigate further to see what else it could have done. Will post any new updates. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326444 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: malware patterns
The attacker used a version of FCKeditor embedded in a shopping cart software (cfwebstore) to upload a index.cfm file into the store/customtags directory. Actually, this isn't quite accurate information (even if it pertained to the attack on HOF which is unlikely). If the attack originates through CFWebstore, it is unlikely to be coming from the FCKEditor installation. Older versions of CFWebstore, or improperly upgraded ones, may have a file in the customtags directory that had a file upload vulnerability that the hackers make use of. Unless it's a really old version, the FCKEditor that is packaged with the software would have had the connectors removed, as we've been taking it out for years due to the known vulnerabilities. If you think the attack originated through CFWebstore, drop by the website blog for full details on fixing the store...an upgrade to the current release which is far more secure against this and other types of attacks is certainly a good idea to start. However, we've also seen a number of attacks where the hackers are using vulnerable FCKeditors on CF8 to infect sites. Since they seem to have knowledge of the file structure of the webstore software, they can use a FCKeditor instance to send files back into the web directory even after it's upgraded and continue to infect the sites, until the server is completely patched. This doesn't seem to be an issue other than on CF8 servers. We've often just removed the connectors completely unless there is any expectation that they will be needed, to be sure they are not gaining access to them. I'm curious to hear any further details that are discovered as to what avenues of attack they continue to exploit. It'd be nice if we could just completely block internet traffic from China, as all these attacks do seem to originate there. --- Mary Jo Sminkey Author, CFWebstore - ColdFusion Ecommerce http://www.cfwebstore.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326445 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4