<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matt Bernier&#187; A Denver entrepreneur, trying to get a project to stick, and talking about people</title>
	<atom:link href="http://www.mkbernier.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mkbernier.com</link>
	<description>A Denver entrepreneur, trying to get a project to stick, and talking about people</description>
	<lastBuildDate>Sun, 20 Jun 2010 03:32:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Trim, I love your service, but please sanitize your inputs!!</title>
		<link>http://www.mkbernier.com/2009/02/05/trim-i-love-your-service-but-please-sanitize-your-inputs/</link>
		<comments>http://www.mkbernier.com/2009/02/05/trim-i-love-your-service-but-please-sanitize-your-inputs/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 05:25:19 +0000</pubDate>
		<dc:creator>Matt Bernier</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[192]]></category>
		<category><![CDATA[basic Google]]></category>
		<category><![CDATA[basic html]]></category>
		<category><![CDATA[continuation]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[dissapear]]></category>
		<category><![CDATA[document body]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[Matt Bernier]]></category>
		<category><![CDATA[s]]></category>
		<category><![CDATA[second thought]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[thougt]]></category>
		<category><![CDATA[tinyurl]]></category>
		<category><![CDATA[tr.im]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[twenty minutes]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[urge]]></category>

		<guid isPermaLink="false">http://www.mkbernier.com/?p=189</guid>
		<description><![CDATA[I was replying to a friend on Twitter using trim, and I had a &#60;script&#62; tag in the post.  I realized when I submitted that the tag made everything after it in my tweet dissapear.  If you want to see the actual tweets, you can find them in my twitter feed here: Matt Bernier&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>I was replying to a friend on Twitter using trim, and I had a &lt;script&gt; tag in the post.  I realized when I submitted that the tag made everything after it in my tweet dissapear.  If you want to see the actual tweets, you can find them in my twitter feed here: <a href="http://twitter.com/mbernier">Matt Bernier&#8217;s Twitter Feed</a></p>
<p>First thougt was, &#8220;No Way!&#8221;.  Second thought was, &#8220;What Else Can I do?&#8221;.</p>
<p>So, I tried basic HTML with this tweet:</p>
<div class="geshi no html">
<ol>
<li class="li1">
<div class="de1">&lt;h2&gt;Testing whether HTML breaks tr.im&lt;/h2&gt; B/c my
</div>
</li>
<li class="li1">
<div class="de1">&lt;script&gt; tag did earlier&lt;/script&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;span style=&quot;color:blue;&quot;&gt; ScreenShot coming&lt;/script&gt;</div>
</li>
</ol>
</div>
<p>This got me this result:</p>
<div id="attachment_192" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mkbernier.com/wp-content/uploads/2009/02/trim.jpg"><img class="size-medium wp-image-192" title="trim" src="http://www.mkbernier.com/wp-content/uploads/2009/02/trim-300x144.jpg" alt="Just HTML in the Tweet" width="300" height="144" /></a><p class="wp-caption-text">Just HTML in the Tweet</p></div>
<p>Then I tried an alert:</p>
<div class="geshi no html">
<ol>
<li class="li1">
<div class="de1">&lt;script type=&quot;text/javascript&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1">alert(&#39;does this work?&#39;);
</div>
</li>
<li class="li1">
<div class="de1">&lt;/script&gt;</div>
</li>
</ol>
</div>
<p>That got me this result:</p>
<div id="attachment_190" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mkbernier.com/wp-content/uploads/2009/02/alert.jpg"><img class="size-medium wp-image-190" title="alert" src="http://www.mkbernier.com/wp-content/uploads/2009/02/alert-300x127.jpg" alt="Javascript Alert in a tweet" width="300" height="127" /></a><p class="wp-caption-text">Javascript Alert in a tweet</p></div>
<p>Then lastly, I tried a little more JS, pay attention though. To make it fit, I used a tr.im URL!!</p>
<div class="geshi no html">
<ol>
<li class="li1">
<div class="de1">&lt;script type=&quot;text/javascript&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1">document.body.select(&#39;img&#39;).each(function(e){e.src=&quot;http://tr.im/evmz&quot;});
</div>
</li>
<li class="li1">
<div class="de1">alert(&#39;check the images&#39;)
</div>
</li>
<li class="li1">
<div class="de1">&lt;/script&gt;</div>
</li>
</ol>
</div>
<p>Which got me this result:</p>
<div id="attachment_191" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mkbernier.com/wp-content/uploads/2009/02/images.jpg"><img class="size-medium wp-image-191" title="images" src="http://www.mkbernier.com/wp-content/uploads/2009/02/images-300x179.jpg" alt="Replaced Tr.im's images with Google's!" width="300" height="179" /></a><p class="wp-caption-text">Replaced Tr.im&#39;s images with Google&#39;s!</p></div>
<p>I have submitted this information to tr.im.  I did very mundane, topical things to the page I was looking at, and did not even attempt anything more dangerous.  <del datetime="2009-02-06T06:39:09+00:00">My hope is that you will see the humor in this, urge tr.im to fix this issue and to continue the amazing job that they do.</del></p>
<p><b>UPDATE:</b> The Tr.im developers are quick to read their emails, respond, and fix issues.  It took all of twenty minutes from when I sent the email to them, for a response saying that this issue was fixed.</p>
<!-- sphereit end --><span style="margin-bottom:40px; border-bottom:none;"><a class="iconsphere" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://www.mkbernier.com/2009/02/05/trim-i-love-your-service-but-please-sanitize-your-inputs/')" href="http://www.sphere.com/search?q=sphereit:http://www.mkbernier.com/2009/02/05/trim-i-love-your-service-but-please-sanitize-your-inputs/">Sphere: Related Content</a></span><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.mkbernier.com/2009/02/05/trim-i-love-your-service-but-please-sanitize-your-inputs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying out Commission Junction</title>
		<link>http://www.mkbernier.com/2009/01/22/trying-out-commission-junction/</link>
		<comments>http://www.mkbernier.com/2009/01/22/trying-out-commission-junction/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 19:00:30 +0000</pubDate>
		<dc:creator>Matt Bernier</dc:creator>
				<category><![CDATA[advertising]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[advertising website]]></category>
		<category><![CDATA[affiliate]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Inc.]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[WP-ADS]]></category>

		<guid isPermaLink="false">http://www.mkbernier.com/?p=23</guid>
		<description><![CDATA[I have had a Commission Junction account for years, but never really had a good place to try it out.  I have something like 2000 advertisers who accepted my sites, mostly because I had grand aspirations to create the single greatest affiliate advertising website on the internet.  Reality hit me upside the head, and I [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>I have had a Commission Junction account for years, but never really had a good place to try it out.  I have something like 2000 advertisers who accepted my sites, mostly because I had grand aspirations to create the single greatest affiliate advertising website on the internet.  Reality hit me upside the head, and I gave up those aspirations of grandeur. Plus, it was a freaking horrible idea.</p>
<p>Anyways, I still have an account with Commission Junction (CJ), so I figured I would try to put some ads up on Failed Proposals.  The site is all about videos and stories of failed wedding proposals. So, it fits that I would want to put wedding related ads on the site.</p>
<p>I found some of my current advertisers who I have approved my sites and I, and I picked a couple for a &#8220;Smart Zone&#8221;.  A Smart Zone is a feature from CJ, which allows you to group some links together and then use a single piece of JS to display the ads on your site.  I installed this JS and waited, as they say it could take at least 24 hours for the ads to show.</p>
<p>When I came back to the site 2 days later, there were no advertisements showing on the site.  It looked to me like the JS was not working correctly.  I am not sure what the problem was/is really, so I looked for another way to skin this cat.</p>
<p>I remembered the WP-ADS plugin for wordpress, installed it, and inserted the html from CJ in as banners with the location of &#8220;header&#8221;.  Now, I have to wait again, for a day or a couple of hours (so says CJ) for the ads to show up on the site.</p>
<p>I am hoping that this works, because it would be great to have the ads actually pulling income from the site.</p>
<p>As an added bonus, I also used WP-ADS to place Google Adsense ads into the header and sidebar.</p>
<!-- sphereit end --><span style="margin-bottom:40px; border-bottom:none;"><a class="iconsphere" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://www.mkbernier.com/2009/01/22/trying-out-commission-junction/')" href="http://www.sphere.com/search?q=sphereit:http://www.mkbernier.com/2009/01/22/trying-out-commission-junction/">Sphere: Related Content</a></span><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.mkbernier.com/2009/01/22/trying-out-commission-junction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Services</title>
		<link>http://www.mkbernier.com/2009/01/18/services/</link>
		<comments>http://www.mkbernier.com/2009/01/18/services/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 16:20:56 +0000</pubDate>
		<dc:creator>Matt Bernier</dc:creator>
				<category><![CDATA[Consulting]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[development process]]></category>
		<category><![CDATA[free software packages]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Inc.]]></category>
		<category><![CDATA[installation of web services]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[Matt Bernier]]></category>
		<category><![CDATA[mkbernier@gmail.com]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Proposal Consulting]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[search engine listings]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Search Engine Optimization Consulting]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SEO Consulting]]></category>
		<category><![CDATA[web consulting]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[web development world]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[Yahoo! Inc.]]></category>

		<guid isPermaLink="false">http://www.mkbernier.com/?p=10</guid>
		<description><![CDATA[Matt Bernier provides a list of services for your web-based needs including proposal consulting, website consulting, search engine optimization consulting, and website development.  If you are interested in any of these services please contact me ASAP.]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>I currently provide a range of services in the area of web development and business consulting. If you are interested in these services, please visit my &#8220;Services&#8221; page.</p>
<p>My current services include:</p>
<ul>
<li>Web Development</li>
<li>Proposal Consulting</li>
<li>Website Consulting</li>
<li>SEO Consulting</li>
</ul>
<p>Contact me if you would like to talk to me about the services I can provide your company.</p>
<!-- sphereit end --><span style="margin-bottom:40px; border-bottom:none;"><a class="iconsphere" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://www.mkbernier.com/2009/01/18/services/')" href="http://www.sphere.com/search?q=sphereit:http://www.mkbernier.com/2009/01/18/services/">Sphere: Related Content</a></span><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.mkbernier.com/2009/01/18/services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
