- Use cfimage to read in the uploaded file
- Use cfimage to save as PNG. this is the great part! saving as PNG converts the image to 72 dpi and seems to strip the erroneous colour profiles :) and doesnt affect the quality of the image
- Use cfimage to read in the new PNG
- Do what needs doing
- Delete the PNG
- Celebrate your fast and cool utility
Entries Tagged as 'ColdFusion'
It was time to fix this scenario and install SVN server on my home server (which is fine as it has a static internet IP and backup, so it's quite usable).
By far the simplest and most usable option i found for installing SVN server on windows is VisualSVN Server.
It was installed, and with its simple GUI, users created in groups and assigned to new repositories in under 5mins! It even has a secure apache rolled in for websvn that you can easily configure to a non-standard port.
There is really no excuse anymore for not giving yourself all the luxuries that SVN affords you.
Looks aside, it's got some pretty cool functionality such as: free!, can add unlimited sites, has a few monitoring methods (i chose http+keyword), has basic charts, will do email alerts, and even twitter alerts (which translates to free sms alerts via twitter!)
So you could potentially setup a few different pages like ping_apache.htm and ping_coldfusion.cfm both with just a single keyword in the file and then you could easily see if you had an alert on the ping_coldfusion and not the ping_apache that it was a jrun problem and not a server level.
Worth checking out at least, i'll post if i see any negative performance with it
Creating the new coldFusion instance
- login to the main coldfusion administrator (e.g. http://localhost/cfide/administrator)
- go to enterprise manager / instance manager
- select 'add new instance'
- enter a server name (e.g. 'newcfusion')
- leave server directory as default (/Applications/JRun4/servers)
- leave create from EAR/WAR blank
- submit form and wait for everything to finish
- the link you are provided to continue will probably be broken so ignore and click on 'instance manager' again
- open the /Applications/JRun4/ColdFusionLauncher.app and select your instance and click start if it is not running already
- click the button next to your instance name to launch the adminstrator and configure your instance (e.g.http://localhost:8301/cfide/administrator)
Hooking the new instance into a specific apache website
For and apache website to talk to a specific jrun (CF) instance you need to bind an apache virtual host to a jrun proxyport for your coldfusion instance
- make sure the admin jrun instance is started
- browse to http://localhost:8000 and login with admin and the administrator password you gave when installing coldfusion
- click the new instance from the left nav, and click services
- you then need to note down the proxyPort (e.g. 51000) and click the green play button to start the proxyService
- open up the httpd.conf or the apache vhost site config file and inside your <virtualHost> add:
<ifModule mod_jrun22.c>
# override the default bootstrap in the httpd.conf to bind to my new coldfusion instance
JRunConfig Bootstrap 127.0.0.1:51000
</ifModule>
- restart apache after the cfinstance is running and it should now be using the new instance
Autostarting your new instance at system boot
You need to use a program like smultron to edit the file ColdFusion8Multi in /Library/StartupItems/ColdFusion8Multi and add:
su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop newcfusion"
under the line
su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfusion"
in the if block, and also outside the if block:
su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start newcfusion >& $CF_DIR/logs/newcfusion-event.log &"
basically the same lines already present in ColdFusion8Multi but replace cfusion with your instance name, also make sure the log file has write permission!

Recent Comments