May 20
Conferences , ColdFusion , Frameworks
|
09:05
|
Permalink
|
Posted by Oğuz Demirkapı
I have a surprise this morning that I need to present another topic at WebManiacs and today and just ~2 hours later. :)
Confrence
team requested from speakers to fill out some presentations and I had
replied that I can present this topic. But there was no confirmation.
While checking the topics this morning I saw my name on the list. :)
I
think this is probably because of a small disorganization and I had to
check all topics in advance. But anyway I have to prepare my slides
now. :)
See you ...
Read more...
Share this:
May 15
i18N , ColdFusion , Database
|
12:05
|
Permalink
|
Posted by Oğuz Demirkapı
If you are using Microsoft Access with Unicode drivers which is defined in ColdFusion administrator, you may have problems with boolean parameters.
Following query is a simple filter for active records but because of problems on the default drivers for MS Access it will return null.
Read more...
Share this:
May 15
ColdFusion
|
11:05
|
Permalink
|
Posted by Oğuz Demirkapı
Sometimes we may change the default JVM for ColdFusion depending on our needs. This would be useful to get some new features etc. When we need to detect current JVM that we are using in ColdFusion server, we can check the ColdFusion Administrator settings page. But there is also another way of detecting via following code and it would be useful when you do not have any CF admin access on a shared platform etc.
Read more...
Share this:
May 14
ColdFusion
|
19:05
|
Permalink
|
Posted by Oğuz Demirkapı
As we know whenever we need to have some unique IDs in our applications, we are using "CreateUUID()" function to generate unique results.
I have plan to use getTickCount() function to generate IDs in my applications but I really would like to be sure whether it generates unique results or not. If we should have unique results I think it would be an alternative to the UUID especially when we compare as table keys in integer format.
When I check the ColdFusion 8 documentation page "Creating a CAPTCHA image", it is mentioned as "Use the GetTickCount function to generate unique names for the CAPTCHA files." and I understand from here that it generates unique results.
What would be your idea? :)
Read more...
Share this:
May 9
ColdFusion
|
15:05
|
Permalink
|
Posted by Oğuz Demirkapı
If you need to put some images into your e-mails the common way is referring them via their full path on the internet. This is a basic and easy way but most of the e-mail clients do not allow to show these kind of images in the mail as default.
Instead of referring an online image, you can also embed them into your e-mail via following method in ColdFusion.
<!--- Generating a random/unique ID for our image --->
<cfset imageID = GetTickCount()>
<cfset request.sender = "Oğuz Demirkapı <blog@mydomain.net>">
<cfset request.receiver = "Oğuz Demirkapı <blog@mydomain.net>">
<cfset currentDir = GetDirectoryFromPath(ExpandPath("*.*"))>
<cfset imageFile = currentDir & "odfoto.jpg">
<cfmail
to="#request.receiver#"
from="#request.sender#"
subject="Test: Sending Embedded Images in E-Mails"
charset="utf-8"
type="html">
<!--- Adding image file --->
<cfmailparam
file="#imageFile#"
disposition="inline"
contentID="#imageID#"
type="image/gif">
<h1>Sending Embedded Images in E-Mails</h1>
<br />
<!--- Referring image file with its ID --->
<img src="cid:#imageID#" alt="My Photo" name="myPhoto" border="0" />
</cfmail>
Be carefull that you are delivering the image files with e-mail by using this method and you should be carefull about the mail size. If this is a bulk mail you need to be aware also about the traffic that your mail size generates. I would suggest to put inline CSSs for most of the design and use images just for branding etc. stuff such as logos etc.
If you have other methods to deliver nice looking e-mails please share with us.
Read more...
Share this:
6-4-2008
5-20-2008
5-19-2008
5-19-2008
5-18-2008