Our Online Blog

We have put together this blog to help, inform and inlight users regarding the internet, development and design. We also post all our network updates here to make sure you keep up to date with whats going on around you.

Search Blog

Posts Tagged ‘coldfusion’

ColdFusion 9 Hosting Status Update

Tuesday, August 31st, 2010

After many days of testing, installing the latest systems we can confirm the features and server software on our ColdFusion services:

  • CentOS 5 32Bit
  • LxAdmin/Kloxo Control Panel (Same as our Railo hosting)
  • ColdFusion 9 Enterprise
  • MySQL 5
  • PHP 5
  • PHP Ming Enabled
  • FFmpeg

Why 32Bit operating system, the main reason is due to the control panel we want to use. LxAdmin/Kloxo is supported mainly for 32bit and as we want to provide the most stable solutions possible.

Once we have tested each area is working fine and we are happy with these systems we will release the beta stage of our services to a select group of users to test and play. This will be done this week hopefully, if you would like to register your interest for the beta testing please contact us.

Please note some tags will be restricted such as “cfexecute”, “cfregister”, “cfobject” etc for security reasons.

UPDATE: 31/August/2010 : 13:58 UK TIME

We have had a few questions about ColdFusion datasource names (DSN) and how the process will be in creating them, as unlike Railo users will not able to have access to the Admin area of ColdFusion. Well the answer from our tech team is nice and simple, we will be creating an online form which all users that have ordered ColdFusion hosting will be able to access to create DSN’s within the client area of Host Media UK. We will later look into developing a Kloxo control panel addon to manage datasource names.

This will be released soon after the public release of the hosting and for the mean time anyone who requires a DSN created will be able to open a support ticket with the database details so our team can manually create one for you.

ColdFusion 9 Hosting on Host Media UK

Thursday, August 26th, 2010

After our successful survey for ColdFusion 9 services on Linux we have now decided to go ahead with ColdFusion and have placed a new server in our racks to start offering this services within 2 weeks time.

Our timeline:

  1. Install best OS for ColdFusion
  2. Install ColdFusion 9 Enterprise with the latest patches for the new security fixes
  3. Install Control Panel (LxAdmin / Kloxo)
  4. Test connections and server resource usage
  5. Install media features such as PHP Ming and FFmpeg
  6. Run dedicated tests on the service from our internal team
  7. Meet to discuss results and server usage and if required upgrade servers features
  8. Start our beta tests for a select group of users with free accounts to use ColdFusion 9 hosting
  9. If all is well in 2 weeks time we will release the service to the public. If any issues and requires more time a notice will be made to everyone.

Thank you to those who gave us their feedback on the ColdFusion on Linux survey, we are still happy to hear peoples comments & views on this and you can still access the survey here: http://smurl.be/?0e12d

If you would like to see the ColdFusion packages and prices that are set at the moment (may change) please visit: http://www.hostmediauk.com/coldfusion-hosting/

Thank you from all of the Host Media UK team!

Sport Datum service is launched

Wednesday, August 11th, 2010

Today the Sport Datum service is launched to provide XML based data feeds to be used on desktop, mobile and of course web based applications. XML can be read by a huge number of coding languages including: ColdFusion, Railo, PHP, ASP.NET, X-Code and many more.

You can sign for FREE to the services and get the English Premier League Top 3 and Formula One Standings Top 3 results for free and you can upgrade at any time or just keep using the free service.

The data feeds are located in the US and the UK which allows you to pick which will fit with your users requirements best, or use both!

Why not try out the service and start showing sports data on your website!

Register a free account: http://www.sportdatum.com/register/

Visit the website: http://www.sportdatum.com/

ColdFusion on Linux with cPanel! Interested? Have your say.

Thursday, August 5th, 2010

ColdFusion 9

Have your say!

We wanted to put the question regarding ColdFusion’s future on Host Media UK to the public to try and help us see the demand for the service. We know ColdFusion is in demand and people love using ColdFusion, we have seen this in Railo which has been more than successful.

Q: Would you like to see ColdFusion 9 Enterprise on Linux hosting?

Check out the online survey with a simple 1 question to answer at: http://www.surveymonkey.com/s/33W9BPY

ColdFusion 9 hosting on hold!

Thursday, August 5th, 2010

We regret to inform our customers that we have placed our Windows ColdFusion 9 services on hold for the time being due to issues with Windows supporting the control panel we wanted to use. We maybe going for Linux with CF9 in a few weeks time but we must look at our approach to this services in a new light.

We will update everyone as soon as we have news on this matter, a blog post will be published to see peoples interest in CF9 on Linux within the next hour.

We are sorry for any inconvenience this may have caused.

Best regards

Host Media UK Team

Tip: Preview your Railo/CF site without changing the main DNS for your domain.

Tuesday, July 27th, 2010

We have been getting many emails saying what’s the best way to preview their website before changing the main sites DNS / A:Records over… Well we have found a simple but easy way to preview websites, its as simple as creating a sub domain. Just like a full domain name a sub domain can be pointed to our Railo servers in the US and we can then add it to the service. (Example below)

What we see:

<Host name=”#domain.com#” appBase=”webapps”
unpackWARs=”true” autoDeploy=”true”
xmlValidation=”false” xmlNamespaceAware=”false”>
<Context path=”" docBase=”/home/#username#/#domain.com#/” />
<Alias>#www.domain.com#</Alias>
<Alias>#subdomain.com#</Alias>
</Host>

Key:
Grey: Standard host text we add when we get a new order
Black: What we add for your sub domain to work on the main domain

So in conclusion with your current domain owner or hosting provider you will need to create a sub domain name, anything you would like (Example: railo.yourdomain.com) and point it to own Railo IP which is in your ‘Welcome Account Information’.

If you have any questions or would like to get more information please contact our support team via the support ticket.

Railo Server Upgrade

Tuesday, May 18th, 2010

Over the past few days we have been testing our new upgrades to our Railo servers in Washington and preparing for even more upgrades to the servers within the next 2 months.

The main update to the servers have been the CPU power to allow for better handling of Railo, with this increase in performance power more powerful ColdFusion & Railo scripts can be run without decrease in server speed.

Many of our customers have already notices an increase in script speeds and with the future upgrades planned we hope to have the very best Railo hosting servers out today.

ColdFusion pagination with next, previous and numbers

Friday, March 12th, 2010

One of the main things all developers come to in applications is pagination and the best way we found to do this is by Raymond Camden which covers how to create next and previous buttons for your content using the URL variable.

As we have extended what Raymond Camden has done we will go through all the code again to make sure you get the full picture.

First part is to get our data, which most of the time will be a database or as the second data example shows a queryNew which is a way of creating data in a query format without the need of a database query.

<cfquery name=”data” datasource=”data_dsn”>
SELECT *
FROM data
</cfquery>

OR

<cfset data = queryNew(“id,name,age,active”,”integer,varchar,integer,bit”)>

<cfloop index=”x” from=”1″ to=”22″>
<cfset queryAddRow(data)>
<cfset querySetCell(data,”id”,x)>
<cfset querySetCell(data,”name”,”User #x#”)>
<cfset querySetCell(data,”age”,randRange(20,90))>
<cfset querySetCell(data,”active”,false)>
</cfloop>

Next we want to set the number of records per page we would like to show, for this example code we are using 10:

<cfset perpage = 10>

Now we create the code for the URL variables which counts the records in the data we have got from our database / query. We also set the default of the variable URL.start to 1 as we want to start from the first record and not 0.

<cfparam name=”url.start” default=”1″>

<cfif not isNumeric(url.start) or url.start lt 1 or url.start gt data.recordCount or round(url.start) neq url.start>
<cfset url.start = 1>
</cfif>

The output of the data, you will notice on our <cfoutput> tag we have startrow & maxrows which sets what records are displayed.

<cfoutput query=”data” startrow=”#url.start#” maxrows=”#perpage#”>
#currentrow#) #name#<br />
</cfoutput>

And now this is when the code that Raymond Camden created changes a little to add in a new feature, page numbering. We first have a previous link which has an if statement around it to see if its a link or not and enable the <a> tag or have no link on it. This can be done different ways but to keep with Raymond Camden’s code we will leave it as it is. Now the new part you can see within the commented area (<!— Start Page Number —> CODE <!— End Page Number —>) we set 2 variables one for a page count as we need to have a number of pages that will be listed. The next one is page link, this is to fit in with the rest of the code and add the number that will need to be added within the link to view the numbered page. Next is a loop to go through the number of pages with the link and a small bit of VERY simple maths to add up the next page through the loop.

<p align=”center”>

[

<cfif url.start gt 1>

<cfset link = cgi.script_name & "?start=" & (url.start - perpage)>

<cfoutput><a href="#link#">Previous Page</a></cfoutput>

<cfelse>

Previous Page

</cfif>

/

<!--- Start Page Number --->

<cfset pageCount = 1>

<cfset pageLink = 1>

<cfset totalPages = Ceiling(rs_getReports.recordCount / perpage)>

<cfloop index="c" from="1" to="#totalPages#">

<cfoutput>

<a href="?start=#pageLink#">#pageCount#</a>

</cfoutput>

<cfset pageCount = pageCount + 1>

<cfset pageLink = pageLink + perpage>

</cfloop>

<!--- End Page Number --->

/

<cfif (url.start + perpage - 1) lt rs_getReports.recordCount>

<cfset link = cgi.script_name & "?start=" & (url.start + perpage)>

<cfoutput><a href="#link#">Next Page</a></cfoutput>

<cfelse>

Next Page

</cfif>

]

</p>

Thats it, you will now have something that looks like this:

Paging

Base code taken from Raymond Camden’s coldfusionjedi.com :

http://www.coldfusionjedi.com/index.cfm/2006/4/24/ColdFusion-and-Pagination

Polar CMS in alpha testing

Wednesday, March 10th, 2010

After 3 months of development first staging of the Polar CMS script has been released to our testers / designers to start playing with.

Process of our testing

  • Running the install program to setup the databases and user accounts
  • Use the basic functions of the CMS:
    - Add pages
    - Add page elements to change
    - Use the WYSIWYG editor
    - Apply code to front end site to test speeds
  • Consult with development team to see how things can be improved

Next steps

  • Design second simple admin template / style sheet for simple viewing (Less images / design factor)
  • Develop modules system ready for alpha testing as this is still in development as one of the main features of the systems
  • Speed & load testing to make sure the script uses the smallest amount of CPU

We will be updating the Polar CMS website soon with some of this information. Also a new website will be released soon.

Visit polarcms.com

Using ColdFusion Custom Tags (cf_)

Thursday, January 7th, 2010

A new part of ColdFusion our development team has been looking into more is the custom tags (cf_). Soon to be used with the Polar CMS (Visit official site), custom tags allow you to have scripts and coding within a tag that can be called from a cfm page as shown below:

<!— CFM Page (cfcustomtag_caller.cfm)—>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
<title>Call Tag</title>
</head>

<body>
<cf_cfcustomtag customVar=”test”>
<p>SOME HTML</p>
<cf_cfcustomtag form=”testFormCode”>
</body>
</html>

As you can see we are using a new tag <cf_cfcustomtag> with custom variables (customVar=”test”). These variables can be picked up within our custom tag cfm file we are about to create.

<!— CFM Page (cfcustomtag.cfm)—>
<cfoutput>
<cfif isDefined(“ATTRIBUTES.customVar”)>
<h1>#Now()#</h1>
<p>#ATTRIBUTES.customVar#</p>
</cfif>
<cfif isDefined(“ATTRIBUTES.form”)>
<p>#ATTRIBUTES.form#</p>
</cfif>
</cfoutput>

The above is a simple CFM file which has HTML and ColdFusion code. As you will notice we have named the file ‘cfcustomtag.cfm’ which is the same name as the tag: <cf_cfcustomtag> just without the cf_ at the start. Coldfusion will look for any files with the same naming tag.

You may ask why not use a <cfinclude> tag, but with cfincludes they can be slower and you are not able to reuse the cfinclude as easy as a cf_ custom tag. With custom tags you can lower the amount of code you need by using the extra variables (ATTRIBUTES).

Hope you enjoy using custom cf_ tags. Feel free to comment and add your code to show better ways of using cf_ tags. You may also want to research <cfmodule> tags.