<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SysBlog &#187; Coldfusion</title>
	<atom:link href="http://blog.interakt.hr/?cat=6&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://blog.interakt.hr</link>
	<description>...mic po mic...</description>
	<lastBuildDate>Tue, 24 Mar 2026 11:53:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>ColdFusion/MSSQL &#8211; new line and LIKE</title>
		<link>https://blog.interakt.hr/?p=971</link>
		<comments>https://blog.interakt.hr/?p=971#comments</comments>
		<pubDate>Tue, 24 Mar 2026 11:52:41 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[MSSQL Database Development]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=971</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

SELECT id, ownership
					FROM tbl_test
					WHERE 

				lang = &lt;cfqueryparam cfsqltype=&quot;cf_sql_char&quot; maxlength=&quot;2&quot; value=&quot;en&quot;&gt;
				and 

				(
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') like &lt;cfqueryparam value=&quot;%#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#%&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;
					OR
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') like &lt;cfqueryparam value=&quot;#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#%&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;
					OR
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') like &lt;cfqueryparam value=&quot;%#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;
					OR
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') = &lt;cfqueryparam value=&quot;#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;

					)
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=971</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion &#8211; remove duplicates from array using struct</title>
		<link>https://blog.interakt.hr/?p=946</link>
		<comments>https://blog.interakt.hr/?p=946#comments</comments>
		<pubDate>Thu, 28 Nov 2024 10:18:50 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=946</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">&lt;cfset myArray = [&quot;apple&quot;, &quot;banana&quot;, &quot;apple&quot;, &quot;orange&quot;, &quot;banana&quot;]&gt;

&lt;!-- Use a struct to remove duplicates --&gt;
&lt;cfset uniqueStruct = {}&gt;

&lt;cfloop array=&quot;#myArray#&quot; index=&quot;item&quot;&gt;
    &lt;cfset uniqueStruct[item] = true&gt;
&lt;/cfloop&gt;

&lt;!-- Convert struct keys back to array --&gt;
&lt;cfset uniqueArray = StructKeyArray(uniqueStruct)&gt;

&lt;cfdump var=&quot;#uniqueArray#&quot;&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=946</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion &#8211; inline if else</title>
		<link>https://blog.interakt.hr/?p=943</link>
		<comments>https://blog.interakt.hr/?p=943#comments</comments>
		<pubDate>Wed, 05 Jun 2024 12:22:05 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=943</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">&lt;!--- Syntax: ((condition) ? trueStatement : falseStatement) ---&gt;
&lt;cfset width = ((ThumbnailWidth EQ 0) ? 75 : ThumbnailWidth) /&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=943</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; send email using cfscript</title>
		<link>https://blog.interakt.hr/?p=940</link>
		<comments>https://blog.interakt.hr/?p=940#comments</comments>
		<pubDate>Sat, 01 Jun 2024 07:46:09 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=940</guid>
		<description><![CDATA[source: https://stackoverflow.com/questions/8423276/how-do-you-send-an-email-with-an-attachment-using-cfscript-in-cf9]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

// Create an instance of the mail object
mail=new mail();

// Set it's properties
mail.setSubject( &quot;Sample Email&quot; );
mail.setTo( &quot;to@example.com&quot; );
mail.setFrom( &quot;from@example.com&quot; );
mail.setCC( &quot;cc@example.com&quot; );
mail.setBCC( &quot;bcc@example.com&quot; );

// Add an attachment
mail.addParam( file=&quot;C:\foo.txt&quot; );

// Add email body content in text and HTML formats
mail.addPart( type=&quot;text&quot;, charset=&quot;utf-8&quot;, wraptext=&quot;72&quot;, body=&quot;This is a test message.&quot; );
mail.addPart( type=&quot;html&quot;, charset=&quot;utf-8&quot;, body=&quot;&lt;p&gt;This is a test message.&lt;/p&gt;&quot; );

// Send the email
mail.send();
</pre>
<p>source: https://stackoverflow.com/questions/8423276/how-do-you-send-an-email-with-an-attachment-using-cfscript-in-cf9</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=940</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; OutOfMemoryError &#8211; GC overhead limit exceeded</title>
		<link>https://blog.interakt.hr/?p=925</link>
		<comments>https://blog.interakt.hr/?p=925#comments</comments>
		<pubDate>Sun, 28 Jan 2024 10:03:52 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=925</guid>
		<description><![CDATA[&#8220;This error essentially means that you need to add more memory, or reconfigure your garbage collection arguments. You can suppress this error by adding -XX:-UseGCOverheadLimit to your JVM startup arguments&#8221; Note to self &#8211; don&#8217;t do it! It will block your entire windows virtual machine! Already seen and done!!! source: https://www.petefreitag.com/blog/outofmemoryerror-gc-overhead/]]></description>
			<content:encoded><![CDATA[<p><em>&#8220;This error essentially means that you need to add more memory, or reconfigure your garbage collection arguments. You can suppress this error by adding -XX:-UseGCOverheadLimit to your JVM startup arguments&#8221;</em></p>
<p><span style="color:red"><strong>Note to self &#8211; don&#8217;t do it! It will block your entire windows virtual machine! Already seen and done!!!</strong></span></p>
<p>source: </p>
<p>https://www.petefreitag.com/blog/outofmemoryerror-gc-overhead/</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=925</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; csv file BOM Header problem CF2023</title>
		<link>https://blog.interakt.hr/?p=921</link>
		<comments>https://blog.interakt.hr/?p=921#comments</comments>
		<pubDate>Thu, 04 Jan 2024 15:15:50 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=921</guid>
		<description><![CDATA[I&#8217;m running cf2023 on windows and I&#8217;m having a weird problem with basic functionality that was working normally on the cf2016 version I was using earlier. Every attempt to generate a csv file in which the Croatian characters will be displayed correctly has so far been unsuccessful. I tried changing the JVM arguments and adding [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running cf2023 on windows and I&#8217;m having a weird problem with basic functionality that was working normally on the cf2016 version I was using earlier.<br />
Every attempt to generate a csv file in which the Croatian characters will be displayed correctly has so far been unsuccessful.</p>
<p>I tried changing the JVM arguments and adding -Dfile.encoding=UTF8 but it didn&#8217;t help.</p>
<p>BOM header problem &#8211; adding #CHR(65279)# to the beginning of the csv content helped. </p>
<pre class="brush: plain; title: ; notranslate">

&lt;cfprocessingdirective pageencoding=&quot;utf-8&quot;&gt;

&lt;cfset content = '#CHR(65279)#priča;požarevac;PRIŠTINA;ČAKOVEC;ŽUPANJA;ĐAKOVO;rođak'&gt;

&lt;cffile action=&quot;write&quot;
	file=&quot;#expandPath('temp')#/test.csv&quot;
	output=&quot;#content#&quot;
	addnewline=&quot;yes&quot; charset=&quot;utf-8&quot;&gt;
</pre>
<p>source: https://community.adobe.com/t5/coldfusion-discussions/adding-utf-8-bom-byte-order-mark-to-file-output/m-p/11745053</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=921</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion &#8211; queryOfQueries union &#8211; not elegant but effective :)</title>
		<link>https://blog.interakt.hr/?p=846</link>
		<comments>https://blog.interakt.hr/?p=846#comments</comments>
		<pubDate>Fri, 09 Apr 2021 10:52:39 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=846</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

&lt;cfset Local.currencies = arrayNew(1)&gt;
 &lt;cfset arrayAppend(Local.currencies, 'EUR')&gt;
 &lt;cfset arrayAppend(Local.currencies, 'HRK')&gt;
 &lt;cfset arrayAppend(Local.currencies, 'BGN')&gt;
 &lt;cfset arrayAppend(Local.currencies, 'RON')&gt;

 &lt;cfset currencyList = structNew()&gt;

 &lt;cfloop from=&quot;1&quot; to=&quot;#arrayLen(Local.currencies)#&quot; index=&quot;a&quot;&gt;

 &lt;cfset local.currency = structNew()&gt;

 &lt;cfset local.currency.currency = Local.currencies[a]&gt;

 &lt;cfset arguments.currency = Local.currencies[a]&gt;

 &lt;cfset local.currency.query = get_paiment_report_Query(argumentCollection = arguments)&gt;

 &lt;cfset currencyList[local.currency.currency] =  local.currency&gt;

 &lt;/cfloop&gt;

 &lt;cfquery name=&quot;q_payments&quot; dbtype=&quot;query&quot; result=&quot;queryResult&quot;&gt;

 &lt;cfset var count = 0&gt;

 &lt;cfloop collection=&quot;#currencyList#&quot; item=&quot;key&quot;  &gt;

 &lt;cfif currencyList[key].query.recordcount neq 0&gt;

 &lt;cfset count = count+1&gt;

 &lt;cfif count gt 1 &gt;

 UNION

 &lt;/cfif&gt;

 SELECT * FROM currencyList.#key#.query

 &lt;/cfif&gt;

 &lt;/cfloop&gt;

 &lt;/cfquery&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=846</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; queryOfqueries union &#8211; elegant</title>
		<link>https://blog.interakt.hr/?p=842</link>
		<comments>https://blog.interakt.hr/?p=842#comments</comments>
		<pubDate>Fri, 09 Apr 2021 10:50:53 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=842</guid>
		<description><![CDATA[source: https://coldfusion.adobe.com/2017/10/unioning-queries-using-query-of-query/]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">private any function combineQuery(qA, qB) {
 var qry1Result = arguments.qA;
 var qry2Result = arguments.qB;
 var qoqResult = '';

// create new query object
 var qoq = new Query();

// set attribute of new query object to be a query result with arbortrary name

qoq.setAttributes(QoQsrcTableA = qry1Result);
 qoq.setAttributes(QoQsrcTableB = qry2Result);

// use previously set attribute as table name for QoQ andset dbtype = query
 qoqResult = qoq.execute(sql=&quot;select * from QoQsrcTableA union select * from QoQsrcTableB&quot;, dbtype=&quot;query&quot;);

// return result
 return qoqResult.getResult();

}</pre>
<p>source: https://coldfusion.adobe.com/2017/10/unioning-queries-using-query-of-query/</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=842</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; get file name before cffile upload</title>
		<link>https://blog.interakt.hr/?p=832</link>
		<comments>https://blog.interakt.hr/?p=832#comments</comments>
		<pubDate>Wed, 17 Feb 2021 17:22:52 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=832</guid>
		<description><![CDATA[source: http://www.stillnetstudios.com/get-filename-before-calling-cffile/]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
&lt;cffunction name=&quot;getClientFileName&quot; returntype=&quot;string&quot; output=&quot;false&quot; hint=&quot;&quot;&gt;
	&lt;cfargument name=&quot;fieldName&quot; required=&quot;true&quot; type=&quot;string&quot; hint=&quot;Name of the Form field&quot; /&gt;

	&lt;cfset var tmpPartsArray = Form.getPartsArray() /&gt;

	&lt;cfif IsDefined(&quot;tmpPartsArray&quot;)&gt;
		&lt;cfloop array=&quot;#tmpPartsArray#&quot; index=&quot;local.tmpPart&quot;&gt;
			&lt;cfif local.tmpPart.isFile() AND local.tmpPart.getName() EQ arguments.fieldName&gt;
				&lt;cfreturn local.tmpPart.getFileName() /&gt;
			&lt;/cfif&gt;
		&lt;/cfloop&gt;
	&lt;/cfif&gt;

	&lt;cfreturn &quot;&quot; /&gt;
&lt;/cffunction&gt;
</pre>
<p>source: http://www.stillnetstudios.com/get-filename-before-calling-cffile/</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=832</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion &#8211; get PDF page count</title>
		<link>https://blog.interakt.hr/?p=820</link>
		<comments>https://blog.interakt.hr/?p=820#comments</comments>
		<pubDate>Tue, 19 May 2020 09:23:04 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=820</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

&lt;cfpdf action=&quot;getInfo&quot; source =&quot;test.pdf&quot; name=&quot;PDFInfo&quot;&gt;
&lt;cfset pageCount = &quot;#PDFInfo.TotalPages#&quot; &gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=820</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
