http://coldfusion.com logo
Join Slack
Powered by
# cfml-general
  • v

    Viral

    05/09/2022, 3:08 PM
    Working on moving out of Apache and hosting (all Coldfusion 2016) sites on IIS. is there any script available to do so Or is it pure manual effort doing it for each site individually ? Any Documentation / Prior information will be helpful.
    m
    d
    +3
    • 6
    • 8
  • g

    gsr

    05/09/2022, 8:34 PM
    did anyone used it and does it work if we use external jar files to have a java code code
    c
    • 2
    • 5
  • m

    mauzer

    05/10/2022, 8:54 AM
    I am getting the following error "Root Cause Message: M is an invalid date or time string." However when I run the exact same script using same database on CF2018 its fine. But the client has CF9 and running this exact same script on there brings up that error. Desperate for some help.
    t
    a
    • 3
    • 23
  • d

    deactivateduser

    05/10/2022, 4:49 PM
    Anyone integrated with Auth0? Looking minimum I need to compile to use the sdk
    m
    • 2
    • 9
  • d

    danmurphy

    05/10/2022, 4:57 PM
    Whatโ€™s everyone using to create PDFs these days? Our setup is generally a Lucee back-end using Coldbox, React front-end, all using one codebase via cbelixir. Besides react, we use Highcharts as a charting engine too. Generally, we have some views that weโ€™d like to just create printable/PDF versions of. We have less of a requirement to create crazy specific PDFs where there is no related webpage/view, if that makes sense. Because of all that, cfdocument doesnโ€™t seem like a great way to go. Thoughts? Is wkhtmltopdf the best route? If so, anyone using it with React/Lucee?
    s
    a
    +3
    • 6
    • 15
  • j

    Jason Ryan

    05/10/2022, 8:25 PM
    Does anyone pull SQL files into their
    queryExecute
    functions? We have some stored procedure that I'd like to maintain some version control on, and it's much cleaner to do so in a separate SQL file but I'm not really sure if it's a good idea. I'm guessing the
    FileRead
    would be a good candidate for pulling the file. Does this make sense to do?
    d
    a
    +3
    • 6
    • 9
  • s

    seancorfield

    05/10/2022, 11:20 PM
    In response to requests here about enabling a publicly searchable archive of conversations, and the specific suggestion by @carehart to look at linen.dev, I met with their SEO and talked about how their system worked and how/why they would support free Slack communities like ours. The Admins discussed the pros and cons of connecting up a publicly searchable archive, privacy issues, sensitive data, and so on, and decided that it was probably worth at least moving forward with a trial. Accordingly, https://cfml.linen.dev/ now exists as a publicly browsable/searchable archive of all public channel discussions here moving forward. ALL public channel conversations from this point on -- and going back to the current limit of search history here (about 1 month) -- will be web searchable so bear that in mind when posting things here that you might not want the whole world to see! If you post something here and have second thoughts, you can delete your message here and the deletion should affect the Linen archive (there's a caching window of maybe 5-15 minutes where deletions will be honored). Linen works best when you use threads in Slack -- which we already encourage anyway. I'll post more details in a ๐Ÿงต
    ๐Ÿ‘๐Ÿพ 1
    ๐ŸŽ‰ 2
    ๐Ÿš€ 4
    ๐Ÿ”ฅ 2
    c
    d
    +2
    • 5
    • 26
  • s

    seancorfield

    05/11/2022, 12:01 AM
    I've added a bookmark to this channel, which links to the Linen archive. Feel free to do the same in other channels if you wish. You can link to a specific channel's archive, e.g., https://cfml.linen.dev/c/lucee/1
    • 1
    • 1
  • d

    Dirk

    05/11/2022, 12:33 PM
    Hi, I have trouble with toBase64() and an image object. I create an image with ImageNew() or imageCreateCaptcha(). I want to convert them into a base64 string. In my local ACF2018/Java11 dev env: toBase64(img) returns an empty string. Now I tried that on trycf.com - ACF2018: null pointer exception - Lucee: expected string https://trycf.com/gist/3db1910021fb61459fb255556893acdc/acf2018?theme=monokai Any ideas?
    w
    w
    +3
    • 6
    • 20
  • s

    seancorfield

    05/11/2022, 5:34 PM
    Continuing on the subject of publicly accessible Slack content, since the phrase "closed social network" has been come up, it's important to note that Slack's ToS is different from Facebook's (and Twitter's and LinkedIn's et al): when you post content to Facebook et al, you still own it -- Facebook et al just has a license to use it (a pretty extensive license); when you post content to Slack, you do not own it -- the company, organization, or individual who runs the workspace owns it. See https://slack.com/terms-of-service/user for more details.
  • s

    Scott Steinbeck

    05/11/2022, 5:59 PM
    is there an equivalent function in CF for
    array_key_exists
    ?
    b
    m
    • 3
    • 16
  • s

    Scott Steinbeck

    05/11/2022, 6:26 PM
    does lucee have a way to turn an array of structs into a query? ( i could see how that would be potentially problematic with non-common keys), but worth a shot
    b
    m
    +2
    • 5
    • 18
  • j

    Jodi

    05/12/2022, 4:17 AM
    Hi
    ๐Ÿ‘‹ 2
    ๐Ÿ‘‹๐Ÿพ 1
  • j

    Jodi

    05/12/2022, 4:45 AM
    I want to find out how to run a coldbox application as a server process instead of a web application. I have posted a question in ortussolutions forum. Not sure if it is a good idea to post a duplicate question here ?๐Ÿ™‚
    z
    b
    • 3
    • 9
  • s

    sthornton1978

    05/12/2022, 8:17 AM
    Copy code
    Has anyone used google.visualization.LineChart recently? 
    I am looking to have a query result returned by a CFC, and I can't quite grasp how to pass the result ( as JSON? ) to the google API. 
    I was hoping not to re-invent the wheel. 
    What is causing me concern the most, is setting the data types of the columns. An example that better explains it then me ( although php) . The ajax call would call a method of a CFC.
    <https://developers.google.com/chart/interactive/docs/php_example>
    d
    s
    • 3
    • 7
  • i

    Iyob Zenebe

    05/12/2022, 11:12 PM
    How can I read a txt file bottom up using cfloop? The below code reads it top to bottom. <cfloop index="line" file="#myfile#"> <cfoutput> The current line is #line# <br /> </cfoutput> </cfloop>
    s
    d
    • 3
    • 5
  • z

    zackster

    05/13/2022, 11:01 AM
    https://dev.lucee.org/t/lucee-5-3-9-141-rc-released/10162
  • g

    GVJustDOIT

    05/13/2022, 11:31 AM
    Hi Guys, are there any guidelines to improve ColdBox performance? I am using ColdBox 5.3.0
    a
    • 2
    • 4
  • a

    Adam Cameron

    05/15/2022, 11:38 AM
    @abram I think there's a slight misconfig on the Lucee5 server on trycf.com. This works on everything else except Lucee 5:
    Copy code
    <cfhttp method="get" url="<https://example.com>" result="httpResponse">
    
    <cfdump var="#httpResponse#">
    Lucee 5 gives:
    Copy code
    Unknown host: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    ๐Ÿ‘€ 1
    a
    • 2
    • 3
  • j

    Jim Partin

    05/16/2022, 5:24 PM
    Given 3 cfcs, abstractBase.cfc, abstractSpecific.cfc, and childSpecific.cfc. childSpecific extends abstractSpecific, which extends abstractBase. When instantiated, child's init() calls super.init() of abstractSpecific, which calls super.init() of abstractBase. However, this is only seeming to work if abstractSpecific is not an abstract component. Am I wrong in believing that an abstract component's init() should be able to call the super.init() of it's parent abstract component? There is a cf blog post from 2018 that shows that I can... https://coldfusion.adobe.com/2018/07/oop-and-coldfusion/#:~:text=Abstract%20Component%20%26%20Methods%20have%20been,both%20abstract%20and%20concrete%20methods.
    a
    a
    • 3
    • 29
  • d

    Dustin Lennon

    05/16/2022, 5:53 PM
    i need some assistance trying handle some changes i need to make to some posts in a database. In these said posts, there could be an image tag that I need to update the src reference for if that source reference contains
    /siteRepository
    , if it does, update that to now point to an AWS S3 location where the image will be located at. as of right now, I know how to get the image tags, and I'm able to get the file name from the src because I'll need that. I just don't know how to go about handling the updating of all matches that get returned and then have the post updated with these changes. As of right now, this is all I've been able to come up with.
    Copy code
    regexp = "<img\s[^>]*?src\s*=\s*['\""](\/siteRepository\/[^'\""]*?)['\""][^>]*?>";
        fileRegexp = "\/userfiles\/(.+)";
    
        contentPagePosts.each(
            function(struct row, numeric rowNumber, query query) {
                <!--- Take the body of the post and replace the img src to point to S3 bucket location --->
                currentPostBody = row.body;
                currentSchoolId = row.schoolid;
    
                <!--- Find all image references in the post body --->
                <!--- images is an array that has length (len), match, and position (pos) --->
                images = reFindNoCase(regexp, currentPostBody, 1, true, "all");
    
                <!--- Loop through images arrays --->
                images.each(function(element, index) {
                    if (element.match[1] NEQ "") {
                        fileName = "";
    
                        <!--- Retrieve the file name --->
                        element.match[2].each(function(e, i) {
                            findFileName = reFindNoCase(fileRegexp, e, 1, true, "all");
                            fileName = findFileName[1].match[2];
    
                            writeDump(e);
                            writeDump(fileName);
                        });
    
                        writeDump(element);
                    }
                });
    
                <!--- Update the body value with the updated data --->
    
                //writeDump(images);
    
                //newPostBody = reReplaceNoCase(currentPostBody, regexp, "#s3LinkBase##currentSchoolId#/userfiles/", "ALL");
            },
            false,
            500
        );
    An example post would be something like
    Copy code
    <p style="text-align: center;"><img alt="" src="/siteRepository/203/userfiles/Hoodie.jpg" style="width: 100px; height: 133px;" /></p>
    
    <p style="text-align: center;">Woodgrove Hoodie (Blue)<br />
    $40<br />
    S, M, XL</p>
    
    <hr />
    <p style="text-align: center;"><img alt="" src="/siteRepository/203/userfiles/hat.jpg" style="width: 100px; height: 133px;" /></p>
    
    <p style="text-align: center;">Woodgrove Hats<br />
    Adjustable (Blue)<br />
    $20<br />
    MD, XL</p>
    
    <hr />
    <p style="text-align: center;"><img alt="" src="/siteRepository/203/userfiles/greenhat.jpg" style="width: 100px; height: 133px;" /></p>
    
    <p style="text-align: center;">Woodgrove Hats (Green)<br />
    $20<br />
    LG, XL</p>
    
    <p>&nbsp;</p>
    d
    • 2
    • 1
  • d

    dbinott

    05/16/2022, 5:55 PM
    For those with an active site (we are doing about 330 rpm), with ACF 2018 running on Ubuntu, how much physical RAM do you have? How much do you give the JVM?
    j
    b
    • 3
    • 9
  • a

    Adam Cameron

    05/17/2022, 7:46 AM
    https://blog.adamcameron.me/2022/05/if-yer-cfml-dev-you-should-consider.html
    ๐Ÿ‘ 6
    ๐Ÿ–– 1
  • s

    seancorfield

    05/18/2022, 6:28 AM
    If you want to give some love to the cfml.linen.dev archives: https://twitter.com/SeanCorfield/status/1526811716390006784
    ๐Ÿ‘ 1
  • s

    Sebastiaan Naafs - van Dijk

    05/18/2022, 7:42 AM
    There is some strange thing going on at this URL. If I just click on the link I get this (see screenshot). But when I then click on a channel the #jobs magically disappears and never resurfaces.
    a
    b
    s
    • 4
    • 6
  • d

    Daniel Mejia

    05/18/2022, 9:00 PM
    Is the sessionid a cryptographically secure value? These are generated by ACF server session.
    b
    a
    • 3
    • 30
  • e

    Evil Ware

    05/19/2022, 2:49 PM
    Has anyone had any luck installing FarcryCMs lately? Not getting a warm and fuzzy feeling watching it tank installing on Lucee's latest Stable, or AFC 2021.
  • b

    bdw429s

    05/19/2022, 2:52 PM
    I think the Daemon guys have always used it, but I've not seen it used outside of them.
  • w

    websolete

    05/19/2022, 2:53 PM
    must be super mature by now if it's been maintained all this time, or not
  • w

    websolete

    05/19/2022, 2:53 PM
    sure don't hear about it much in the coldbox/fw1 times
1...789...38Latest