Server move successful

Feb
4th
2010
Servers designed for Linux
Image via Wikipedia

On February 2, 2010 I finally completed the server move to the new co-location facility. I had, in the prior weeks, backup all data and files, did a clean install of the operating system and restored all functionality to the server. The new facility will not only help achieve faster load times, but a much better environment for the server than sitting at my house under my desk. With this move you all should notice faster page load, better usability and the RSS feeds hopefully will load and refresh across the Net faster.

Reblog this post [with Zemanta]

Server Going Offline For A Few Hours

Jan
21st
2010
Ubuntu 7.
Image via Wikipedia

Sometime within the next week I will be taking this server offline so I may perform some system maintenance and upgrades. At that time, I will also be locating it in a new data center so the actual speed will be what it should be and the performance should be increased dramatically.

There will be many system updates taking place at that time – some of them will include a complete Linux upgrade, Wordpress upgrades, database upgrades and more. Most of these items will be performed in multitude to lessen the down time.

Once all the upgrades are done, within a day or two after I will be moving the server to a new data center. This will allow the server to operate at a fast connection, with much more ability to serve the growing needs of several blogs and other sites hosted on it.

Reblog this post [with Zemanta]

Quick Coldfusion AJAX – Part 2

Jan
9th
2010
A graphical despiction of a very simple html d...
Image via Wikipedia

Where we left off

If the first part of this short Coldfusion AJAX series, we discussed using the CFDIV tag, along with the CFAJAXIMPORT tag to enable us to dynamically load content into a div (cfdiv) layout container on the fly.  The only custom javascript we made was to create a function that our href called to key the Coldfusion.navigate feature.

This time we will be discussing submitting forms asynchronously using Coldfusion, the CFDIV and CFFORM tags.  This nifty feature allows web developers to submit their form within a containing div, and have the results of that form appear directly back to the user without reloading the entire page.  In part three, the final installment, we will discuss how to build a search suggestion form control that dynamically populates a search text box as the user is typing.

CFDIV and CFFORM tags

We’ve already discussed the CFDIV tag, but now we discuss the CFFORM tag.  The CFFORM tag is specific to Coldfusion and inserts forms into the page with server and client side processing, including built in validation for the tags contained within the form.  Speaking of the tags within the form, they take on special characteristics and names, rather than using the input tag, we will be using the CFINPUT tag.

To ensure the form submits via AJAX we will simply enclose our form within a CFDIV container, keeping in mind that we need to include the proper tags via CFAJAXIMPORT.  The other thing to note is on the CFDIV we are including the the page that contains our form as the bind parameter this time. The listing below is the complete listing for the form, note I have omitted the rest of the standard page elements (head, title, body etc.) for brevity. Provided you have your form handler script setup properly, in this case I called it formprocess.cfm in the example, the form will submit within the div.

Quick Code


<cfajaximport tags="cfform, cfdiv">
<cfdiv id="fomSub" name="formSub" bind="url:form.cfm">
</cfdiv></cfajaximport>


In the form.cfm file we would have the following:

Quick Code


<cfform action="formprocess.cfm" method="post&gt;
&lt;cfinput type=" text="" name="form1" id="form1" maxlength="45" size="20">
<cfinput type="submit" name="submit" id="submit" value="Submit">
</cfinput>
</cfform>
Reblog this post [with Zemanta]

Quick Coldfusion AJAX

Jan
8th
2010
A graphical despiction of a very simple html d...
Image via Wikipedia

External Library?

With Coldfusion 8 and 9, there are a full host of tools that you can use to enahnce user interactions and interfaces in your web apps.  One of those is the built in AJAX features.  While you can program your own, or even use an external javascript libarary, Coldfusion has it’s own, and it is very simple to use, cross-browser friendly and can be implemented in short order.

While you follow the rest of the post, do keep in mind that using the Coldfusion solution present, it does load files from your Coldfusion installation libraries.  These javascript files are sent to the browser just as any other javascript file.  Also remember that this is just one tag in the Coldfusion AJAX library – there are many others that support asynchronous form postings and much more.

Using CFDIV

The first thing you will want to do is import the necessary tag to use the cfdiv layout control.  You can do this by including Quick Code

<cfajaximport tags="cfdiv">

The second thing is to ensure you have a .cfm file with the content you are loading into the cfdiv.  Say for this example we will call it content.cfm.

In your page, you simple call the cfdiv like you would a normal div layout container, with one exception – the bind parameter which tells it which .cfm page to load. Keep in mind, if you need to pass in url parameters, that is fully supported, making it that much more dynamic.

Quick Code

<cfdiv id="myDiv" name="myDiv" bind="url:content.cfm">
</cfdiv>

Putting it together

To really make it work well, let’s show a sample page, complete with a simple javascript function that calls another Coldfusion ajax control, Coldfusion.navigate.  The Coldfusion.navigate function let’s us dynamically load the content into the cfdiv – so we could build a navigation menu and use that to dynamically load the content into our div.

Quick Code


<html>
<head>
<title>Test Coldfusion Divs</title>
<script>
function loadContent()
{
Coldfusion.navigate("content.cfm", "myDiv");
}
</script>
</head>
<body>
<ul><li><a href="javascript: loadContent();">Change Content</a></li></ul>
<cfdiv id="myDiv" name="myDiv" bind="url:somestartercontent.cfm">
</cfdiv>
</body>
</html>

Now, we have a basic page that will load somestartercontent.cfm when the page loads, and when the visitor clicks on the change content link, it will run the javascript function that calls the Coldfusion.navigate function.  This will load the content.cfm page into the myDiv div.  Note the Coldfusion.navigate function takes two parameters in this scenario – the page to load and the div to load it in.

Reblog this post [with Zemanta]

Overly Complicated?

Jan
6th
2010
It's Complicated
Image by Or Hiltch via Flickr

Is it really as complicated as you think?

Sometimes we see things from the wrong perspective.  We think they are complex, complicated and wicked to learn, use to do.  We see them as something unattainable, something that will always be either just out of reach, or a million miles away.  Sometimes we stop and think to ourselves, “That will never happen…”, or “I could never do that…”  Is it really that complex, that complicated or that wicked?  Many times they are not, and we all need to learn that about ourselves, the things we do, the thing we would like to accomplish, use or do.

I think we all sometimes just need to step back and re-evaluate how we are peering into our path.  How we perceive the obstacles on that path, and where we ultimately want that path to take us (whether it involves a turn, a new path or more).  Sometimes, we have to brave where the is no visible path – and with the right support behind us – our group of people, whether online or offline, that are our backing, the pushers pushing us to excel – we can build a path.  Our own path.

Does it need to be complicated?

Sometimes, and being a web programmer by trade I see this alot (and have even been guilty of it myself), we over complicate things.  We make them harder than it should be.  It’s nothing with our perspective or outlook, but in our natural habits.  We add steps, layers and side trails – not out of the fear of failure or other things pertaining to our paths and such, but out of a necessity to be thorough to the point of complications.

Why?  We all have off moments, and sometimes that is all it is.  A moment of clouded clarity, or no clarity at all.  Other times it’s the best we know at the time, and we just haven’t honed out skills to work, create and be lean, mean machines at what we are doing.  Finally, sometimes we just do it to see if we can – which can work against us, or for us, depending on what the outcome should be and what the outcome ends up being.

How about we make things uncomplicated?

Let’s face our fears, let’s build that new path, let’s learn about who we are, what we can do, should do and want to do.  Then, let’s get out there and do it.  No more complications from us not pushing forward, okay.  How about we try to maintain clarity – yes sometimes we just need to slow down or stop to gain that clarity – and that’s okay.  Your competitors (if your applying to a business mentality) aren’t going to get that far ahead of you if you stop or slow down to renew the clarity.  Think about it, they won’t get any farther ahead than you staying in a cloudy state for a longer period of time, now will they.  And that clarity may give your business just the edge it needs.

In our personal lives – let’s slow down and find that clarity – to interact well, live well and take more moments to cherish those around us.  Those who are helping us on our paths deserve nothing but our best in return for what they do for us.  Let’s give them that, shall we?

Why not.

Reblog this post [with Zemanta]