Tech Sharing

Tech Sharing


Posts Tagged ‘ adobe ’

Adobe has finally announced that it will end its support for Flash in 2020.

An Adobe spokesperson said, “We will stop updating and distributing the Flash Player at the end of 2020 and encourage content creators to migrate any existing Flash content to these new open formats.”

Although a handful of websites still use Flash, this move should not affect users too much. Most of the major websites have already moved away from Flash. In addition, Apple’s iOS devices has never supported Flash, and it has disabled Flash by default on macOS Sierra and Safari 10. 

Not to be left out, Google has said that its Chrome browser will slowly phase out Flash over the next few years, while Microsoft has said that it plans to disable Flash by default on its Edge and Internet Explorer browsers, beginning from mid 2019 to late 2019.

Flash has come under heavy scrutiny and criticism, especially over the past couple of years, for being laden with bugs and security risks. As a result, vendors like Apple, Google, and Microsoft, had to work diligently to keep up with security fixes.


In the past few years, numerous computer security experts have called for Flash to be culled from existence. Now it’s finally happening. Thank goodness.

Using web service is one of the good solution when you try to consume 3th party or integrate your system with other system without knowing how their internal logic.

When you try to call the web service for the first time, CF actually will chace the web service by using the web service description (WSDL) that response from the target server to create a java proxy/stub based on that, than it will be reused for the following call from CF to the same web service again.

CF doing that is actually try to improve the performance for the web service calling, but it come with some disadvantage when the target web service being changed by adding a new require parameter or return an extra parameter, your script will trigger an error message, this is because your CF have no knowledge about the new changing make on the target site. It will continue to use the older cached proxy/stub.

To resolved this problem, you may need to manually refresh the cache that created by the CF in the early call to inform CF to refresh it’s cache of that proxy stub.

There are more than 1 way that you can doing that, the following are the sample 4 difference way to achieve the same result:

I. ColdFusion Administrator



II. Programatically:

In ColdFusion 8, you have two options:

i. Cfinvoke’s refreshWSDL attribute:

<cfinvoke webservice="#wsdl#" method="method" returnvariable="rv"<br />refreshWSDL="yes"><br />	<cfinvokeargument name="arg" value="1"/><br /></cfinvoke>


ii. Cfobject’s arguments structure

<br /><cfscript><br />    wsargs = structnew();<br />    wsargs.refreshwsdl="yes";<br />    somevar = createobject("webservice","http://[server]/webserviceurl]",wsargs);<br />    ...<br /></cfscript><br />

In ColdFusion 7, however, you can use the following solution:

<cfset wsAddress = "http://your.web/service/url.cfc?wsdl"><br /><!--- CF7 ---><br /><cfset createObject("java", "coldfusion.server.ServiceFactory").<br />XmlRpcService.refreshWebService(wsAddress) />



Merging Two Structs in ColdFusion

By on November 26, 2012

The following script showing how to merge 2 ColdFusion structure into one. The following sample showing 2 difference structure which each has two keys

<!--- Struct1 have 2 key: FirstName and Last time --->
<cfset struct1={firstname="Adam" ,lastname="Presley" }>

<!--- Struct 2 have 2 key: FirstName and age --->
<cfset struct2={ firstname="Michael" ,age="33" }>

<!--- Using a nifty ColdFusion method we can mash the two together in a single line of code. --->

<cfset structAppend(struct1, struct2) /> <!--- <cfset struct1.putAll(struct2) /> --->

<cfdump var="#struct1#">
Notice the commented out version. That is the underlying method to do the same thing as StructAppend.

The structure result after merge

Mobile Flash is being killed off. Adobe will no longer be developed for mobile browsers, the company said in a note that will accompany a financial briefing to analysts.


Instead the company will focus on development around HTML5 technologies, which enable modern browsers to do essentially the same functions as Flash did but without relying on Adobe’s proprietary technologies, and which can be implemented across platforms.



The existing plugins for the Android and BlackBerry platforms will be given bug fixes and security updates, the company said in a statement first revealed by ZDNet. But further development will end.


Flash being excluded by the latest Google Android OS 4.1 Jeally Bean and Microsoft also said that the default browser in its forthcoming Window 8 system, expected at the end of 2012, will not include Flash plugin by default.


With the decision by Adobe to drop the Flash in the mobile devices, Adobe plans to cut 750 staff, principally in North America and Europe. But the company spoke person decline to give the correct figure yet.


Adobe will turn their company focus to the latest open standard in the mobile era, such as HTML5 and perhaps they will creating a great HTML5 tools in the future to gain back the market share that they lost after the drop of mobile Flash.

Just came back from long valentine holiday and get the complaint from my colleague that they never received the schedule task report for few days. But when I check in our system, all the data and report successfully run as per scheduled.

After Google for a while, found some blogger discuss about this issue where the problem come from the CFMail spooling. Basically this is because of ColdFusion server loses it’s connection to the mail server momentarily or the mail server authentication fail due to some small problem, you can easily find out this problem from the CFIDE mail.log.

I also Google the solution to resolve this issue as the step is pretty simple but you may need to take down ColdFusion services for a moment so that the file lock is deleted. Here are the few simple step that help you to spool our your stuck email.

1. Cut and paste all .cfmail files from the spool folder into a temporary folder at any where of your server.

2. Restart the Coldfusion services.

3. Drag the .cfmail files from your temporary folder back into spool folder at about 200 message at a time, waiting for the email to be process and moving in another batch for process again.

Normally as the adminitrator or developer, you will not notice this issue until your client complaint that they never received certain email for sometime, or you may need to check your mail.log regulary to see is any issue exists for your cfmail tag to deliver the email.

Hope this help.

Pausing scheduled tasks in CF8

By on January 14, 2011

This is a pretty good function for CF8 administrator where you can pause your schedule task whenever you like to. Not like the previous version of Coldfusion where the administrator only can only edit or delete the scheduled task.

With this function exists, you can pause it wihtout editing anything like what you did last time by changing the url to something else or change to date to expire the scheduled task.

Currently on running schedule task display

Currently pause scheduled task display

CFMX 6.1 scheduled task display without the pause and resume button