CFIDE with multiple instance

Today I got the problem that I cannot use following sentence in one of my instance.

view plain print about
1<cftextarea skin="silver" toolbar="Basic" richtext="true" name="body" required="true">

And hit JS error and don't know why. That's why I just go viewsource and found that CFIDE is missing for one of my CF instances. I cannot convince why Adobe cannot include CFIDE for multiple instances installation. That's why I know there is two ways to solve this bug of Coldfusion multiple instance installation.

[More]

Your Ad Here

Get IPv6 address

Today, I've found how to get IP address of IPv6. Because we're using IPv6 address in our office and normally so far to use for IPv4 in Window7. That's why I gotta retrieve address of IPv6. On the other hand, CGI variable can retrieve IPv4 address of client machine.

How to get IPv6 is as follow. First of all, we need to create Java object first which called "java.net.InetAddress". Then, write as follow.

[More]

IncrementValue in Coldfusion is useful

Today, I've oddly found IncrementValue in Coldfusion. In my previous time, when I need to increase count in Coldfusion, I always use as follow.

view plain print about
1<cfset mycount = mycount + 1>
2
3<!--- CFScript version --->
4<cfscript>
5    mycount++;
6
</cfscript>

[More]

Coldfusion 9 exam preparation

I'm now planning to take Coldfusion 9 exam for my career enhancement. Because I'm Adobe Certified Expert in Coldfusion 8 and I feel like myself to take Coldfusion 9 either. Some people will argue that certificates are not needed if you really know of it but for new career, it's needed. When I want to apply for new job, I'm not sure whether the new employer know I really know Coldfusion or not without having certificate. 

Coldfusion 9 Exam Structure

  • Programming fundamentals
  • Working with the Application framework
  • Interacting with databases
  • Working with components
  • Interacting with persistent components
  • Working with XML
  • Reusing code
  • Interacting with remote systems
  • Managing files
  • Tuning application performance
  • Building advanced user interfaces
  • Reporting

[More]

ListToArray and Looping in Array

Today I need to fetch data from *.csv (which has nearly 15,000 records) file and insert such data into our database. At that time, I need to consider how to retrieve data from this file and how to insert into our database. So, I need to consider which method I need to use between "looping in array" and "ListToArray". That's why I've wrote with "looping in array" first.

Here is simple list data including in CSV file.

view plain print about
1007|PPSHEIN|MALE|COLDFUSION DEVELOPER
2008|MIKE|MALE|ANDROID DEVELOPER
3009|RAYMON|MALE|APPLE DEVELOPER

[More]

Merge Area Chart and Bar Chart in Coldfusion

These days I'm about to develop growth chart module for my current project enhancement. In this growth chart, I need to merge two chart series called area chart and bar chart to display patient percentile. In Coldfusion Chart, if we're trying to merge two chartseries, x-axis of both must be same records. If not, our chart might be displayed wrong data.

Here is my sample coding of CFChart.

view plain print about
1<cfchart
2 format="png"
3    xaxistitle="Age (mth)"
4    yaxistitle="HEAD"
5    chartwidth="500"
6    chartheight="500"
7 gridlines="6"
8 showborder="no">

9        <cfchartseries
10            type="bar"
11            paintstyle = "light"
12            seriescolor="000000"
13            seriesLabel="Patient's Information">
14            <cfchartdata item="
3" value="10">
15        </cfchartseries>                
16        <cfoutput query="
Getgrowth" group="PERCENTILE">
17            <cfset i = i + 1>

18            <cfset serColor = ListGetAt(ListCOLOR, i)>

19            <cfchartseries
20                type="
area"
21                markerStyle="
diamond"
22                seriescolor="
#serColor#"
23                seriesLabel="
#convertOrdinal(PERCENTILE)#">
24                <cfoutput><cfchartdata item="
#AGE#" value="#GETDATA#"></cfoutput>
25            </cfchartseries>
26        </cfoutput>
27</cfchart>

[More]

cfprocessingdirective between Adobe and Railo

Yesterday, I got problem about rendering Unicode font for my first Android project. At that time, I need to fetch unicode data from the other Coldfusion server. By that time, I need to retrieve data and display such unicode data at laptop. In my laptop, I've installed Adobe Coldfusion 9 developer edition. At that time, I've wrote the following coding to display unicode data.

view plain print about
1<cfhttp url="[URL]/test.cfm" charset="UTF-8">
2<cfoutput>#cfhttp.filecontent#</cfoutput>

[More]

Backwards counting in CFLoop with Step attribute

Oddly, I've found that how to do backwards counting in CFLoop. It's using Step attribute of CFLoop. Before I've used Step attribute for skipping count in CFLoop just like retrieving Odd value from List or something else.

For example to get Odd value

view plain print about
1<cfloop from="1" to="10" index="i" step="2">
2    <cfoutput>#i#</cfoutput>
3</cfloop>
4
5<!--- output --->
61 3 5 7 9

[More]

Playing with CFThrow

Today, I found that cfthrow is very useful to me for error handling in my project. Because prior programmer of my current wrote some funny code for error handling without using cfthrow. I'm not sure whether they don't know cfthrow or not. Honestly, I didn't know most of Coldfusion Tags and functions before I took CF8 exam. When preparing for CF8 exam, I know most of tags and functions of CF8. Thanks, CF8 exam.

Ok, let's continue. Here is funny coding our prior programmer wrote.

[More]

Query of query problem between Coldfusion 9 and Coldfusion MX 7

Today I've found the weird error in my project. It's because of "query of query" problem between Coldfusion 9 and Coldfusion MX 7. As Coldfusion developers know, one of the coolest features in CF is query of query and know how to use this one, either. But, being CF developer, we must know which features, functions, tags, issues, etc are fixed or missed in the every version of Coldfusion. For me, I can only know and approach which new features, functions and tags are available and being enhanced in the every version of Coldfusion except issues.

[More]

More Entries

Top of Page