Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

CFMAIL and CFMAILPARAM issue on Railo

Today I was seeing "IOException while sending message" in my mail.log file when sending an email with a file attachment.

For me the cause was down to the fact I was deleting the file before the email was sent. Either put a "wait" in or clean up the files later via a scheduled task

Comments Comments (0) | Print Print | Send Send | 683 Views

Railo tag and function documentation

I am putting this in writing more for myself as I keep forgetting but if you run Railo do remember that within the administrators is a complete set of tag and function list.

On the left hand menu at the bottom look for the "Documentation" section. Each reference page gives you a drop down list which then takes you off to the details page about that tag/function. What I find handy is that its good way to quickly refresh yourself with some functionality that you hardly use or even to find ones you didn't know existed like CFForward

Comments Comments (0) | Print Print | Send Send | 794 Views

Fridays Joke: Emergency Call

An Irishman is cleaning his rifle and accidentally shoots his wife. He immediately dials 999.

Irishman: ''It's my wife! I've accidentally shot her, I've killed her!''

Operator: ''Please calm down Sir, can you first make sure she is actually dead!''

*click* *BANG*

Irishman: ''Okay, done that. What next?''

Comments Comments (0) | Print Print | Send Send | 343 Views

Max your CPU

I was at the Apple store yesterday with the need to run both my CPU's at max for some tests. The "Genius" put the following in two separate Terminal windows
Yes > /dev/null

The YES commandsimply sends an endless stream of y’s to standard output until killed. The reason the guy did it twice is to ensure that both CPU's are being used. This should work on any *nix machine but if you only have 1 CPU you only need to do it once

If are even to lazy to open two windows you can just put the following in one:
Yes > /dev/null & Yes > /dev/null

Comments Comments (1) | Print Print | Send Send | 280 Views

Fridays Joke: Colin

A rich man living in Darwin decided that he wanted to throw a party and invited all of his buddies and neighbours. He also invited Colin, the only aborigine in the neighbourhood.

He held the party around the pool in the backyard of his mansion. Everyone was having a good time drinking, dancing, eating prawns, oysters and BBQ and flirting. At the height of the party, the host said, 'I have a 15ft man-eating crocodile in my pool and I'll give a million dollars to anyone who has the balls to jump in.'

The words were barely out of his mouth when there was a loud splash and everyone turned around and saw Colin in the pool fighting the croc, jabbing the croc in the eyes with his thumbs, throwing punches, doing all kinds of stuff like head butts and chokeholds, biting the croc on the tail and flipping the croc through the air like some kind of Judo Instructor.

The water was churning and splashing everywhere. Both Colin and the croc were screaming and raising hell. Finally Colin strangled the croc and let it float to the top like a dead goldfish.

Colin then slowly climbed out of the pool. Everybody was just staring at him in disbelief.

The host says, 'Well, Colin, I reckon I owe you a million dollars.'

'Nah, you all right boss, I don't want it,' said Colin.

The rich man said, 'Man, I have to give you something. You won the bet. How about half a million bucks then?'

'No thanks. I don't want it,' answered Colin...

The host said, 'Come on, I insist on giving you something. That was amazing. How about a new Porsche and a Rolex and some stock options?

Again, Colin said "No."

Confused, the rich man asked, 'Well Colin, then what do you want?

Colin said, 'I want the bastard who pushed me in.'

Comments Comments (0) | Print Print | Send Send | 316 Views

ColdFusion 9 and ColdFusion Builder now on labs

I'm still downloading as I type this but go grab it now while its hot.

http://labs.adobe.com/technologies/coldfusion9/ http://labs.adobe.com/technologies/coldfusionbuilder/

Will put a review together later on

Comments Comments (0) | Print Print | Send Send | 254 Views

SSH Tunneling your web traffic

Recentlty I wanted to bypass a network for a little bit of extra privacy, one of the best ways of doing this is SSH tunneling. If you don't know what this I'll give you the 100,000 ft view. Lets say your are on a restricted network with a firewall that prevents you reading technical blogs as they are classed as "social media" and seen as BAD. With tunneling via SSH you can connect to, say your home computer and use that connection.

You don't have to do this from the terminal, there are tool out there for the Mac like SSH Tunnel Manager but as you'll see this is just quicker and easier. With SSH installed on your machine go to the terminal/command prompt with the following script

view plain print about
1ssh -ND {proxy port} {username}@{ip address of your remote machine}

Small, but powerfull. So if your remote/home machine that has the internet connection you want to use has the IP address of "79.1.2.3" and your account on that machine had the username "bofh" your connection script would be:

view plain print about
1e.g. ssh -ND 9999 bofh@79.1.2.3

The 9999 can be any port number you want. You just need to note it down for the next part, web browsing. For this I'm going to show you how to setup Firefox as its a setting you can do quickly and the same across OS's

  1. Every time you open a tunnel you'll need to set the "Manual proxy configuration" which you can copy from the following screen shot
    Firefox settings for
    The '9999' value is what ever port you set in the terminal script.
  2. The next bit you'll only need to do once. In your Firefox address bar go to about:config and set network.proxy.socks_remote_dns = true

Thats it!

Comments Comments (3) | Print Print | Send Send | 615 Views

Follow Scotch on the Rocks with Twitter

If you're not able to make it to one of the Scotch on the Rocks venues make sure you follow the events via twitter by using http://search.twitter.com/search?q=sotr

Also if you are at the event make sure you add #SotR09 to your tweets!

Comments Comments (1) | Print Print | Send Send | 335 Views

Fridays Joke: 25 rule of life learnt from mothers

Wahey, its looking like a BBQ weekend here in the UK. Have a good one, and I'll see some of you Monday at Scotch on the Road. Enjoy!

1. My mother taught me TO APPRECIATE A JOB WELL DONE . "If you're going to kill each other, do it outside. I just finished cleaning."

2. My mother taught me RELIGION. "You better pray that will come out of the carpet."

3. My mother taught me about TIME TRAVEL . "If you don't straighten up, I'm going to knock you into the middle of next week!"

4. My mother taught me LOGIC. " Because I said so, that's why."

5. My mother taught me MORE LOGIC. "If you fall out of that swing and break your neck, you're not going to the store with me.."

6. My mother taught me FORESIGHT. "Make sure you wear clean underwear, in case you're in an accident."

7. My mother taught me IRONY "Keep crying, and I'll give you something to cry about."

8. My mother taught me about the science of OSMOSIS. "Shut your mouth and eat your supper."

9. My mother taught me about CONTORTIONISM. "Will you look at that dirt on the back of your neck!"

10. My mother taught me about STAMINA.. "You'll sit there until all that spinach is gone."

11. My mother taught me about WEATHER. "This room of yours looks as if a tornado went through it."

12. My mother taught me about HYPOCRISY. "If I told you once, I've told you a million times. Don't exaggerate!"

13.. My mother taught me the CIRCLE OF LIFE. "I brought you into this world, and I can take you out."

14. My mother taught me about BEHAVIOR MODIFICATION. "Stop acting like your father!"

15. My mother taught me about ENVY. "There are millions of less fortunate children in this world who don't have wonderful parents like you do."

16. My mother taught me about ANTICIPATION. "Just wait until we get home."

17. My mother taught me about RECEIVING . "You are going to get it when you get home!"

18. My mother taught me MEDICAL SCIENCE.. "If you don't stop crossing your eyes, they are going to freeze that way."

19. My mother taught me ESP. "Put your sweater on; don't you think I know when you are cold?"

20. My mother taught me HUMOR. "When that lawn mower cuts off your toes, don't come running to me."

21. My mother taught me HOW TO BECOME AN ADULT . "If you don't eat your vegetables, you'll never grow up."

22. My mother taught me GENETICS. "You're just like your father."

23. My mother taught me about my ROOTS. "Shut that door behind you. Do you think you were born in a barn?"

24. My mother taught me WISDOM. "When you get to be my age, you'll understand."

25. And my favourite: My mother taught me about JUSTICE "One day you'll have kids, and I hope they turn out just like you.

Comments Comments (0) | Print Print | Send Send | 250 Views

Panic's three day sale

If you have a Mac then you might of heard of Panic. Their FTP program, Transmit, is brilliant and ever since owning a mac its been my program of choice. Also they offer Coda which is a slick IDE for web work.

Well they are having a 50% three day sale and for $14.50 Transmit is well worth the price.

Check out https://www.panic.com/sale/

Comments Comments (0) | Print Print | Send Send | 286 Views

Scotch on the Rocks competition winner

With a bottle of scotch and a free ticket, sponsored by talkwebsolutions.co.uk, to one of the scotch on the rocks '09 venues, can I have a drum roll please ... The Scotch on the Rocks competition winners are

First Tara McLean {no site given} Look out for an email from me!

Second Pablo Vos http://www.outofsite.eu

Third Azadi Saryev {no site given}

Comments Comments (2) | Print Print | Send Send | 171 Views

Send in a joke and win

Get your jokes in, you have till Wednesday 27th May!!!!

First Prize includes a Free ticket to Scotch on the Road. Nick Tong from TalkWebSolutions.co.uk has sponsored my Fridays Joke: Scotch on the Road competition so get your entries in.
Scotch on the Rock winnings

I'm running a "send in a joke" competition for the Scotch on the Road conference and it's simple, all you have to do is send a joke!

The prizes:

  • 3rd place will get their joke posted on my blog on Monday, June 1st which is the first day, London, conference.
  • 2nd place will get their joke posted on my blog on Wednesday, June 3rd which is the second day, Manchester, conference.
  • 1st place will get 1 Ticket to Scotch on the Road and they will be the Fridays Joke on both my blog and the Scotch blog on the June 5th which coincides with the last day Edinburgh event. Plus there is a bottle of whisky i'm giving away that I was fortunate enough to win at a previous Scotch event
The rules:
  1. Make sure its about Scotch (though any drink will suffice)
  2. Make sure it hasn't been posted on here before. I have a search function.
  3. I'm not worried about it being SFW but keep within sensible taste levels.
  4. No pictures/images
  5. I won't be sending the bottle outside of the UK but if you're happy to just get your joke posted feel free to enter from anywhere in the world and I'll save the bottle for another competition.
  6. The judges will be myself and Kev McCabe a.k.a Big Mad Kev
Make sure you send in your name, valid email address and if you have one a web address. All entries will get their name and website published along with the joke!

For everyone who's trying to be green now, don't panic. To ensure that this is an environmental competition no joke will be wasted. The rest of the jokes that don't make the top three will be recycled and posted at some point in the future here :)

Check out my "contact me" page for ways of sending your joke over.

Comments Comments (2) | Print Print | Send Send | 106 Views

BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .