ColdFusion is used by 0.9% of all the websites whose server-side programming language we know.

How is this ok? Come on ADOBE!!!!! Get out there hit the streets. You own the most amazing server-side platform and you fail to hold even 1% of the install base.

http://w3techs.com/technologies/details/pl-coldfusion/all/all

 

Advertisements

View Leadboltads.net source code on an Android device.

Leadbolt does everything humanly possible to hide their code from you. But not today my friends. I made it my mission to hack it so that I could enforce my own styles against the content.

If you are developing an android HTML5 app, simply place the JavaScript code I am about to give you below as the last thing before the closing body tag, and the Leadbolt ad code will be expose.

<script>
    alert(document.getElementsByTagName('html')[0].innerHTML);
</script>

Run your code directly in any android browser. This will launch a JavaScript popup within your android application that reveals the rendered HTML tag source code.

Have fun, I’m sure this might work with all types of JavaScript based ad services for android devices.

Escape an iFrame after a session logs out

Here is an example of how I escape an iFrame when my log in page is loaded.

So let me set the stage first.

I have an app that uses iFrames (very old app that I didn’t build). In my ColdFusion Application.cfc I tell the app to force the log in screen once a session has expired. So to avoid the iFrame from loading the log in screen my task is to tell the log in screen to check if it’s within an iFrame. If the page is within an iFrame I want the parent page to reload. By default my iFrames will be gone and the parent page will fail the session check. Hence forcing the parent page to display the log in as anticipated.

Place the following code on your log in screen or whatever screen you wish to have escape the iFrame.

<script>
    var iFramed= (window.location != window.parent.location) ? true : false;
    if(iFramed == true){
        alert('Your Session has expired. Please log in again.');
        window.parent.location.href = "index.cfm";
    }
 </script>

The target file to load into the parent window is in my case index.cfm. Your can of course point to any target you wish. Perhaps login.cfm or what ever suits.

Email vs. In person

Today I found myself writing an email to a co-worker and realized that my email could have been improperly interpreted. At times trying to help someone can come across as putting your nose where it doesn’t belong. No one knows this better than me. I hate when people inject their opinions into my work, but that’s a character flaw in me (a topic better saved for a therapist). Anyway. I immediately got out of my chair and walked over to talk to my co-worker. My co-worker turned to me and I could sense the negative vibe instantly, but guess what! By walking over and explaining myself and assuring them that I meant only to help, they reevaluated the scenario and thanked me.

So there is a lesson to learn here. Email is dangerous!

If you need to offer criticism, advise or talk out a fact checking or debugging scenario, then it really is better done in person. People are sensitive and emails definitely don’t cater to the sensitive people of the world, and it certainly doesn’t assist those who are not sensitive in their delivery techniques.

The other solution is to put an emoticon after every word, so that there is no misinterpretation…Probably not the best idea or is it? Maybe emails should have an emoticon attached as a primary overtone to a subject. That way when you get an email you can send the ones labeled with a frown as spam and the ones with an angry face as trash.

Today we are witness to the birth of emotomail!!! Who’s in?