Production-Now.com Media Production Mentoring

Free online film school designed with beginning filmmakers in mind.

6.18.2008

What You Copy, You Paste

I was working on a website today and built an image to use as a repeating background. I uploaded it to the web and copied the url to be included in my code. Then I went to another website of mine where I already had a viable bit of code for what I wanted to do and pasted it into my site.

Cool, it was working.

But something was wrong. I knew I had changed the color of the background image, but it wasn't updating. So, I closed out of the program and restarted it to try to get it to "flush" the cache. Nope, still the wrong image.

I called a web-guru friend of mine over and asked him if he had any ideas. We looked at the image (the color should be #CDCDCD), but the one on the website was different (#FFFFFF). After tabbing between the two a few times, he looked at me and said, "I don't know what's wrong, but those are not the same image. They're just not the same."

Light bulb!

They weren't the same image. I had pasted the code from the other site and had forgotten to include the new image url. Updating that line of code put everything back to normal.

Moral of the lesson: Just because you copied once in the past, does not mean that it ended up in the program... especially if you copied something else before pasting.

I feel like I should know better.

~Luke Holzmann
Your Media Production Mentor

No comments :