Home | Blog | Twitter @AndyJ | Contact Me | Snippets/Downloads | RSS

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

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

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?''

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

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.'

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

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 plainprintabout
 ssh -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 plainprintabout
 e.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!

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!

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.

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/

More Entries

BlogCFC / created by Raymond Camden / running version 5.9.5.003 / Contact AndyJarrett.com / Pet Rescue SOS www.redgiraffes.co.uk