<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>CoryMathews.com</title>
	
	<link>http://corymathews.com</link>
	<description>Random Crap From a Web Developer</description>
	<lastBuildDate>Wed, 28 Oct 2009 22:48:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/CoryMathews" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Bug Reporting</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/4mkm2G7je_Y/</link>
		<comments>http://corymathews.com/497/bug-reporting/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 12:32:52 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=497</guid>
		<description><![CDATA[Well it took it long enough for someone to officially report iSearchNotes.com&#8217;s first bug. By officially I mean not calling/texting/emailing me directly to tell me there was a bug but finding some way within the site.
After I realized what the bug was, I am sure that many users have come across it before, but for [...]]]></description>
			<content:encoded><![CDATA[<p>Well it took it long enough for someone to officially report <a title="Search College Student Notes" href="http://www.isearchnotes.com/">iSearchNotes.com</a>&#8217;s first bug. By officially I mean not calling/texting/emailing me directly to tell me there was a bug but finding some way within the site.</p>
<p>After I realized what the bug was, I am sure that many users have come across it before, but for whatever reason none of them submit the bug to me.  <strong></strong></p>
<p><strong>Why did it take so long?</strong></p>
<p>I would say on a normal business day i spend 10 hours a day developing (4 10&#8217;s is the way to go!). I probably run into 1-2 software bugs, not counting any in my own apps. That number goes way up if the day consists of heavy adobe product usage (fucking flash), up to about 6-10 in a single day. Regardless, I run into lots of bugs and may only report  one every 2-3 months.</p>
<p>Doing the math that means that there is 90-270 bugs I run into before I report 1 of them. Yes some of those are duplicate bugs but still thats a lot of missed reports.  <strong></strong></p>
<p><strong>So why do I not report more bugs?</strong></p>
<p>I would consider myself to be part of the target audience who <em>should</em> report software bugs, but I don&#8217;t.</p>
<ul>
<li><strong>Reporting bugs takes to long</strong></li>
</ul>
<p style="padding-left: 60px">Taking the time to put in enough information for a fellow developer to debug some error takes way to long. I would guess that on average it takes about 10-20 minutes. I personally do not care enough to spend 20 minutes to have point number 2 happen.</p>
<ul>
<li><strong>They normally mark it as unreproducible</strong> (Microsoft you are terrible at this!)</li>
</ul>
<p style="padding-left: 60px">Over time I have submitted 4-6 bugs to Microsoft, all about visual studio, with as much information as I can, and every single one has been marked unreproducible, then resolved (I don&#8217;t know how the fuck they consider it resolved?), then closed. <strong>It feels as if I am wasting my time</strong>, and because of it I stop submitting any more bugs.</p>
<p style="padding-left: 60px">On the other hand, when not dealing with Microsoft, I normally do not receive any kind of notice saying the company received the bug. So again I stop sending them in.</p>
<p style="padding-left: 60px"><strong>Make sure you respond to your users who are sending you bugs!</strong> Otherwise they will end up like myself and stop submitting ANY kind of feedback.</p>
<ul>
<li><strong>I have no clue where to report a bug</strong> (Adobe)</li>
</ul>
<p style="padding-left: 60px">Personally I hate adobe. Everyday it grows closer to my hate for apple, regardless with the exception of Facebook they seem to be the only major software company to have such buggy software. I cannot use an adobe product for more then a couple hours without it crashing. Flash, and Flash player are the worst!</p>
<ul>
<li><strong>I have no desire to report the bug</strong></li>
</ul>
<p style="padding-left: 60px">Sometimes we just have no desire to submit the bug. We couldn&#8217;t care less about the software and really don&#8217;t want to waste my time submitting the bug.</p>
<p style="padding-left: 60px"><strong>When you get a bug the user is telling the company that they care about their product, and that want them to fix it!</strong></p>
<p style="padding-left: 60px">So don&#8217;t get mad about bugs, be glad that users are submitting them.<strong> </strong></p>
<p><strong>How can we create a better way to report software bugs?</strong></p>
<p>I have not come across a site that does a better job then <a title="Free Internet Music" href="http://www.grooveshark.com/">grooveshark</a>. On their site they have a feedback button clearly located on every page.</p>
<p><img title="feedback" src="http://corymathews.com/wp-content/uploads/2009/10/feedback-300x222.png" alt="feedback" width="300" height="222" /></p>
<p>Once you click on this feedback button a very friendly message pops up and asks how you feel about the message and then asks for the message itself. Its a very simple way to get feedback and works great for submitting bugs, feedback, and any other form of general contact to them.</p>
<p><a href="http://corymathews.com/wp-content/uploads/2009/10/feedback2.png"><img class="size-medium wp-image-500  alignnone" title="feedback2" src="http://corymathews.com/wp-content/uploads/2009/10/feedback2-300x222.png" alt="feedback2" width="300" height="222" /></a><strong></strong></p>
<p><strong>What did this user go through to submit a bug on my site?</strong></p>
<p>This is a valid question that all site owners need to look into. Currently this site (corymathews.com) has a very prominent contact button.</p>
<p><a href="http://corymathews.com/wp-content/uploads/2009/10/feedback6.png"><img class="size-medium wp-image-506  alignnone" title="feedback6" src="http://corymathews.com/wp-content/uploads/2009/10/feedback6-300x77.png" alt="feedback6" width="300" height="77" /></a></p>
<p>How long did it take you to find it? Odds are, not to long.  However when I take a look at the <a href="http://www.isearchnotes.com">iSearchNotes.com</a> site its not so clear. Take a look at the image bellow.</p>
<p><a href="http://corymathews.com/wp-content/uploads/2009/10/feedback3.png"><img class="size-medium wp-image-501  alignnone" title="feedback3" src="http://corymathews.com/wp-content/uploads/2009/10/feedback3-300x247.png" alt="feedback3" width="300" height="247" /></a><strong></strong></p>
<p><strong>Do you quickly see a way to submit bugs?</strong></p>
<p>Well if you really looked you would find 2 ways to contact me. You probably semi quickly saw the feedback link in the right, but it may have taken you a while to notice the contact link in the footer.</p>
<p>While this is by no means the best solution I would say that it is sufficient for such a small site as <a title="Search College Student Notes" href="http://www.isearchnotes.com/">iSearchNotes.com</a>. However as the site grows I will need a more clear way to submit feedback.  <strong></strong></p>
<p><strong>How about we take a look at a larger site such as Facebook.</strong></p>
<p><strong></strong> <a href="http://corymathews.com/wp-content/uploads/2009/10/feedback4.png"><img class="size-medium wp-image-502  alignnone" title="feedback4" src="http://corymathews.com/wp-content/uploads/2009/10/feedback4-300x13.png" alt="feedback4" width="300" height="13" /></a><strong></strong></p>
<p>Did you notice that tiny help button in the bottom right corner? I did not think that you would click help to submit a bug. This is like hitting start to shutdown&#8230; confusing.</p>
<p>Even after you click on the help button you will come to a screen where you must click suggestions from a large listing of other random crap in order to submit a bug.</p>
<p><a href="http://corymathews.com/wp-content/uploads/2009/10/feedback5.png"><img class="size-medium wp-image-503    alignnone" title="feedback5" src="http://corymathews.com/wp-content/uploads/2009/10/feedback5-300x217.png" alt="feedback5" width="300" height="217" /></a></p>
<p>Needless to say its way to hard to submit bugs to facebook and facebook is HUGE! There is no excuse for such a large site to be so difficult.</p>
<p>So how hard is it to submit a bug about your site/application? Could you making it simpler?</p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/4mkm2G7je_Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/497/bug-reporting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://corymathews.com/497/bug-reporting/</feedburner:origLink></item>
		<item>
		<title>Importing a Blender Model into OpenGL</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/vkAaU8FtFic/</link>
		<comments>http://corymathews.com/204/importing-a-blender-model-into-opengl/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:10:53 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[Misc Programming]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=204</guid>
		<description><![CDATA[Recently I was looking for a simple way to export a basic model from blender to use in my opengl code written with c++. After a few searches I came up with nothing and decided to look at all the different ways I could export a blender file. The first that was easy enough to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was looking for a simple way to export a basic model from blender to use in my opengl code written with c++. After a few searches I came up with nothing and decided to look at all the different ways I could export a blender file. The first that was easy enough to recognize the pattern right away was the the Raw Faces (.raw) format.</p>
<p>I quickly created a very basic (and very bad) model of a cup to see how it looked when I exported the cup in the .raw format. You can export a blender model using this format by first selecting the object you want to export (For whatever reason only the selected object(s) will be exported.) Then go to File -&gt; Export -&gt; Raw Faces(.raw). This is what I got after exporting. There shouldn&#8217;t be line wraps, however depending on your monitor you may see them. You can download the file in .raw format <a href="http://corymathews.com/wp-content/uploads/2009/01/cup.raw">here</a>.</p>
<blockquote><p>0.011633 -0.011633 0.011633 -0.001836 -0.016245 0.011633 -0.001512 -0.011633 -0.011633 0.008956 -0.008956 -0.011633<br />
-0.001836 -0.016245 0.011633 -0.011633 -0.011633 0.011633 -0.008956 -0.008956 -0.011633 -0.001512 -0.011633 -0.011633<br />
0.008956 0.008956 -0.011633 -0.001512 0.011633 -0.011633 -0.001836 0.016993 0.011633 0.011633 0.011633 0.011633<br />
-0.001512 0.011633 -0.011633 -0.008956 0.008956 -0.011633 -0.011633 0.011633 0.011633 -0.001836 0.016993 0.011633<br />
0.011633 -0.001745 -0.011633 0.008956 0.008956 -0.011633 0.011633 0.011633 0.011633 0.016943 -0.002119 0.011633<br />
0.016943 -0.002119 0.011633 0.011633 -0.011633 0.011633 0.008956 -0.008956 -0.011633 0.011633 -0.001745 -0.011633<br />
-0.011633 -0.011633 0.011633 -0.016295 -0.002119 0.011633 -0.011633 -0.001745 -0.011633 -0.008956 -0.008956 -0.011633<br />
-0.016295 -0.002119 0.011633 -0.011633 0.011633 0.011633 -0.008956 0.008956 -0.011633 -0.011633 -0.001745 -0.011633<br />
-0.001512 -0.011633 -0.011633 -0.001512 -0.001745 -0.011633 0.011633 -0.001745 -0.011633 0.008956 -0.008956 -0.011633<br />
0.008956 0.008956 -0.011633 0.011633 -0.001745 -0.011633 -0.001512 -0.001745 -0.011633 -0.001512 0.011633 -0.011633<br />
-0.008956 -0.008956 -0.011633 -0.011633 -0.001745 -0.011633 -0.001512 -0.001745 -0.011633 -0.001512 -0.011633 -0.011633<br />
-0.011633 -0.001745 -0.011633 -0.008956 0.008956 -0.011633 -0.001512 0.011633 -0.011633 -0.001512 -0.001745 -0.011633<br />
-0.011633 0.011633 0.011633 -0.016295 -0.002119 0.011633 -0.013645 -0.001861 0.011633 -0.009766 0.009583 0.011633<br />
-0.016295 -0.002119 0.011633 -0.011633 -0.011633 0.011633 -0.009766 -0.009779 0.011633 -0.013645 -0.001861 0.011633<br />
0.011633 -0.011633 0.011633 0.016943 -0.002119 0.011633 0.014015 -0.001861 0.011633 0.009596 -0.009779 0.011633<br />
0.016943 -0.002119 0.011633 0.011633 0.011633 0.011633 0.009596 0.009583 0.011633 0.014015 -0.001861 0.011633<br />
-0.011633 -0.011633 0.011633 -0.001836 -0.016245 0.011633 -0.001613 -0.013616 0.011633 -0.009766 -0.009779 0.011633<br />
-0.001836 -0.016245 0.011633 0.011633 -0.011633 0.011633 0.009596 -0.009779 0.011633 -0.001613 -0.013616 0.011633<br />
-0.001836 0.016993 0.011633 -0.011633 0.011633 0.011633 -0.009766 0.009583 0.011633 -0.001613 0.014044 0.011633<br />
0.011633 0.011633 0.011633 -0.001836 0.016993 0.011633 -0.001613 0.014044 0.011633 0.009596 0.009583 0.011633<br />
0.009596 0.009583 0.011633 -0.001613 0.014044 0.011633 -0.001311 0.010066 -0.007815 0.006850 0.006819 -0.007815<br />
-0.001613 0.014044 0.011633 -0.009766 0.009583 0.011633 -0.007247 0.006819 -0.007815 -0.001311 0.010066 -0.007815<br />
-0.001613 -0.013616 0.011633 0.009596 -0.009779 0.011633 0.006850 -0.007278 -0.007815 -0.001311 -0.010072 -0.007815<br />
-0.009766 -0.009779 0.011633 -0.001613 -0.013616 0.011633 -0.001311 -0.010072 -0.007815 -0.007247 -0.007278 -0.007815<br />
0.014015 -0.001861 0.011633 0.009596 0.009583 0.011633 0.006850 0.006819 -0.007815 0.010067 -0.001513 -0.007815<br />
0.009596 -0.009779 0.011633 0.014015 -0.001861 0.011633 0.010067 -0.001513 -0.007815 0.006850 -0.007278 -0.007815<br />
-0.013645 -0.001861 0.011633 -0.009766 -0.009779 0.011633 -0.007247 -0.007278 -0.007815 -0.010071 -0.001513 -0.007815<br />
-0.009766 0.009583 0.011633 -0.013645 -0.001861 0.011633 -0.010071 -0.001513 -0.007815 -0.007247 0.006819 -0.007815<br />
-0.001311 0.010066 -0.007815 -0.001115 -0.001287 -0.007815 0.010067 -0.001513 -0.007815 0.006850 0.006819 -0.007815<br />
-0.001115 -0.001287 -0.007815 -0.001311 -0.010072 -0.007815 0.006850 -0.007278 -0.007815 0.010067 -0.001513 -0.007815<br />
-0.007247 0.006819 -0.007815 -0.010071 -0.001513 -0.007815 -0.001115 -0.001287 -0.007815 -0.001311 0.010066 -0.007815<br />
-0.010071 -0.001513 -0.007815 -0.007247 -0.007278 -0.007815 -0.001311 -0.010072 -0.007815 -0.001115 -0.001287 -0.007815</p></blockquote>
<p>Basically, if you haven&#8217;t already noticed, it is 4 sets of x,y,z points. You will not get any of the materials when you export the object only the polygons.</p>
<p>Now that we have our object we will need to be able to display it using opengl. First we must read in and store the points. </p>
<blockquote><p>CupVectors[3][4][33];</p>
<p>ifstream cupFile;<br />
cupFile.open(&#8221;cup.raw&#8221;);</p>
<p>for(int z=0;z&lt;=32;z++)<br />
for(int y=0;y&lt;=3;y++)<br />
for(int x=0;x&lt;=2;x++)<br />
cupFile &gt;&gt; CupVectors[x][y][z];</p>
<p>cupFile.close();</p></blockquote>
<p>Pretty simple code. Store the points, open the file, loop through the points, store the points, close the file.</p>
<p>Now that the cup vertex points are stored we are able to easily display them in opengl with another small loop that will create the triangles and save them in our display list.</p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/vkAaU8FtFic" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/204/importing-a-blender-model-into-opengl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://corymathews.com/204/importing-a-blender-model-into-opengl/</feedburner:origLink></item>
		<item>
		<title>12 Slick jQuery Plugins</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/2FPFBO2Q7yU/</link>
		<comments>http://corymathews.com/412/12-slick-jquery-plugins/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 12:38:07 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=412</guid>
		<description><![CDATA[As I have been updating the jQuery links on my @jQueryLinks twitter account there were a couple that really stood out as a way to make just about any site feel slick. So here they are. Enjoy.
1. Gritter &#8211; By:@jboesch
Plugin Page
Demo

2. jQuery Link Nudging &#8211; By: @davidwalshblog
Plugin Page
Demo

3. Create The Fanciest Dropdown Menu You Ever [...]]]></description>
			<content:encoded><![CDATA[<p>As I have been updating the jQuery links on my <a href="http://twitter.com/jQueryLinks">@jQueryLinks</a> twitter account there were a couple that really stood out as a way to make just about any site feel slick. So here they are. Enjoy.</p>
<h2>1. Gritter &#8211; By:<a href="http://twitter.com/jboesch">@jboesch</a></h2>
<div id="attachment_413" class="wp-caption aligncenter" style="width: 560px"><a href="http://boedesign.com/2009/07/11/growl-for-jquery-gritter/"><img src="http://corymathews.com/wp-content/uploads/2009/08/Gritter.jpg" alt="jQuery Grown look-a-like plugin" title="Gritter jQuery Plugin" width="550" height="250" class="size-full wp-image-413" /></a><p class="wp-caption-text">jQuery Grown look-a-like plugin</p></div>
<p><a href="http://boedesign.com/2009/07/11/growl-for-jquery-gritter/">Plugin Page</a></p>
<p><a href="http://boedesign.com/demos/gritter/">Demo</a></p>
<hr />
<h2>2. jQuery Link Nudging &#8211; By: <a href="http://twitter.com/davidwalshblog">@davidwalshblog</a></h2>
<div id="attachment_420" class="wp-caption aligncenter" style="width: 560px"><a href="http://davidwalsh.name/jquery-link-nudging"><img class="size-full wp-image-420" title="jQuery Link Nudging Plugin" src="http://corymathews.com/wp-content/uploads/2009/08/LinkNudging.jpg" alt="Link Nudging" width="550" height="250" /></a><p class="wp-caption-text">A jQuery Link Nudging Plugin which is essentially a classy, subtle link animation </p></div>
<p><a href="http://davidwalsh.name/jquery-link-nudging">Plugin Page</a></p>
<p><a href="http://davidwalsh.name/dw-content/jquery-link-nudging.php">Demo</a></p>
<hr />
<h2>3. Create The Fanciest Dropdown Menu You Ever Saw</h2>
<p><div id="attachment_423" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.webdesigndev.com/web-development/create-the-fanciest-dropdown-menu-you-ever-saw"><img src="http://corymathews.com/wp-content/uploads/2009/08/FancyDropdown.jpg" alt="Create The Fanciest Dropdown Menu You Ever Saw" title="Fancy Dropdown" width="550" height="250" class="size-full wp-image-423" /></a><p class="wp-caption-text">Create The Fanciest Dropdown Menu You Ever Saw</p></div><br />
<a href="http://www.webdesigndev.com/web-development/create-the-fanciest-dropdown-menu-you-ever-saw">Plugin Page</a></p>
<p><a href="http://www.webdesigndev.com/wp-content/uploads/2009/07/fancydropdown.html">Demo</a></p>
<hr />
<h2>4. ColorBox &#8211; By: <a href="http://twitter.com/jacklmoore">@jacklmoore</a></h2>
<p><div id="attachment_425" class="wp-caption aligncenter" style="width: 560px"><a href="http://colorpowered.com/colorbox/"><img src="http://corymathews.com/wp-content/uploads/2009/08/ColorBox.jpg" alt="A light-weight, customizable lightbox plugin for jQuery 1.3" title="ColorBox" width="550" height="250" class="size-full wp-image-425" /></a><p class="wp-caption-text">A light-weight, customizable lightbox plugin for jQuery 1.3</p></div><br />
<a href="http://colorpowered.com/colorbox/">Plugin Page</a></p>
<p><a href="http://colorpowered.com/colorbox/core/example5/index.html">Demo</a></p>
<hr />
<h2>5. Interactive, Filterable Portfolio &#8211; By: <a href="http://twitter.com/JoelSutherland">@JoelSutherland<a/></h2>
<p><div id="attachment_427" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.newmediacampaigns.com/page/a-jquery-plugin-to-create-an-interactive-filterable-portfolio-like-ours"><img src="http://corymathews.com/wp-content/uploads/2009/08/FilterablePortfolio.jpg" alt="A jQuery Plugin to Create an Interactive, Filterable Portfolio" title="FilterablePortfolio" width="550" height="250" class="size-full wp-image-427" /></a><p class="wp-caption-text">A jQuery Plugin to Create an Interactive, Filterable Portfolio</p></div><br />
<a href="http://www.newmediacampaigns.com/page/a-jquery-plugin-to-create-an-interactive-filterable-portfolio-like-ours">Plugin Page</a></p>
<p><a href="http://www.newmediacampaigns.com/section/portfolio">Demo</a></p>
<hr />
<h2>6. Animated Menu Using jQuery</h2>
<p><div id="attachment_434" class="wp-caption aligncenter" style="width: 560px"><a href="http://jqueryglobe.com/article/animated-menu"><img src="http://corymathews.com/wp-content/uploads/2009/08/FancyMenus.jpg" alt="Nice animated menu using jQuery and CSS" title="FancyMenus" width="550" height="250" class="size-full wp-image-434" /></a><p class="wp-caption-text">Nice animated menu using jQuery and CSS</p></div><br />
<a href="http://jqueryglobe.com/article/animated-menu">Plugin Page</a></p>
<p><a href="http://jqueryglobe.com/labs/animated_menu/">Demo</a></p>
<hr />
<h2>7. jQuery Ajax delete</h2>
<p><div id="attachment_432" class="wp-caption aligncenter" style="width: 560px"><a href="http://papermashup.com/jquery-ajax-delete/"><img src="http://corymathews.com/wp-content/uploads/2009/08/DeleteComment.jpg" alt="jQuery Ajax delete" title="DeleteComment" width="550" height="250" class="size-full wp-image-432" /></a><p class="wp-caption-text">jQuery Ajax delete</p></div><br />
<a href="http://papermashup.com/jquery-ajax-delete/">Plugin Page</a></p>
<p><a href="http://papermashup.com/demos/jquery-delete/">Demo</a></p>
<hr />
<h2>8. Galleria</h2>
<p><div id="attachment_439" class="wp-caption aligncenter" style="width: 560px"><a href="http://devkick.com/lab/galleria/"><img src="http://corymathews.com/wp-content/uploads/2009/08/Galleria.jpg" alt="Galleria is a javascript image gallery" title="Galleria" width="550" height="250" class="size-full wp-image-439" /></a><p class="wp-caption-text">Galleria is a javascript image gallery</p></div><br />
<a href="http://devkick.com/lab/galleria/">Plugin Page</a></p>
<p><a href="http://devkick.com/lab/galleria/demo_01.htm#img/grass-blades.jpg">Demo</a></p>
<hr />
<h2>9. Easy Slider By: <a href="http://twitter.com/cssglobe">@cssglobe</a></h2>
<p><div id="attachment_441" class="wp-caption aligncenter" style="width: 560px"><a href="http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider"><img src="http://corymathews.com/wp-content/uploads/2009/08/EasySlider1.jpg" alt="Easy Slider 1.7 - Numeric Navigation jQuery Slider" title="EasySlider" width="550" height="250" class="size-full wp-image-441" /></a><p class="wp-caption-text">Easy Slider 1.7 - Numeric Navigation jQuery Slider</p></div><br />
<a href="http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider">Plugin Page</a></p>
<p><a href="http://cssglobe.com/lab/easyslider1.7/03.html">Demo</a></p>
<hr />
<h2>10. Cycle Lite</h2>
<p><div id="attachment_431" class="wp-caption aligncenter" style="width: 560px"><a href="http://malsup.com/jquery/cycle/lite/"><img src="http://corymathews.com/wp-content/uploads/2009/08/cycleLite.jpg" alt="lightweight slideshow plugin" title="cycleLite" width="550" height="250" class="size-full wp-image-431" /></a><p class="wp-caption-text">lightweight slideshow plugin</p></div><br />
<a href="http://malsup.com/jquery/cycle/lite/">Plugin Page</a></p>
<p><a href="http://malsup.com/jquery/cycle/lite/">Demo</a></p>
<hr />
<h2>11. Notify Bar By: <a href="http://twitter.com/DmitriSmirnov">@DmitriSmirnov</a></h2>
<p><div id="attachment_440" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.dmitri.me/blog/notify-bar/"><img src="http://corymathews.com/wp-content/uploads/2009/08/NotifyBar.jpg" alt="shows a notify bar (like on Twitter&#039;s webpage)" title="NotifyBar" width="550" height="250" class="size-full wp-image-440" /></a><p class="wp-caption-text">shows a notify bar (like on Twitter's webpage)</p></div><br />
<a href="http://www.dmitri.me/blog/notify-bar/">Plugin Page</a></p>
<p><a href="http://www.dmitri.me/misc/notify/">Demo</a></p>
<hr />
<h2>12. Animated Tabbed Content &#8211; By: <a href="http://twitter.com/gayadesign">@gayadesign</a></h2>
<p><div id="attachment_443" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/"><img src="http://corymathews.com/wp-content/uploads/2009/08/AnimatedTabs.jpg" alt="Animated Tabbed Content" title="AnimatedTabs" width="550" height="250" class="size-full wp-image-443" /></a><p class="wp-caption-text">Animated Tabbed Content</p></div><br />
<a href="http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/">Plugin Page</a></p>
<p><a href="http://www.gayadesign.com/scripts/tabbed/">Demo</a></p>
<hr />
<p>To Stay up to date with more great jQuery Links follow <a href="http://twitter.com/jQueryLinks">@jQueryLinks</a> on twitter.</p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/2FPFBO2Q7yU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/412/12-slick-jquery-plugins/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://corymathews.com/412/12-slick-jquery-plugins/</feedburner:origLink></item>
		<item>
		<title>ASP.NET/C# Prompt a Save Dialog Box to Download a File</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/BuXKOoWdD_U/</link>
		<comments>http://corymathews.com/397/aspnetc-prompt-a-save-dialog-box-to-download-a-file/#comments</comments>
		<pubDate>Sat, 16 May 2009 01:04:26 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[File]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=397</guid>
		<description><![CDATA[To save you all (as well as my future self) the trouble of searching all over the place just to find terrible answers on almost every form post out there. Here is a small ASP.NET/C# code snippet that will prompt the user with the save/open dialog box to download a file.

String FileName = "FileName.txt";
String FilePath [...]]]></description>
			<content:encoded><![CDATA[<p>To save you all (as well as my future self) the trouble of searching all over the place just to find terrible answers on almost every form post out there. Here is a small ASP.NET/C# code snippet that will prompt the user with the save/open dialog box to download a file.</p>
<pre name="code" class="c++">
String FileName = "FileName.txt";
String FilePath = "C:/...."; //Replace this
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearContent();
response.Clear();
response.ContentType = "text/plain";
response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";");
response.TransmitFile(FilePath);
response.Flush();
response.End();
</pre>
<p>For more content types check our <a href="http://en.wikipedia.org/wiki/MIME_type#List_of_common_media_types" title="MIME Types">http://en.wikipedia.org/wiki/MIME_type#List_of_common_media_types</a></p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/BuXKOoWdD_U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/397/aspnetc-prompt-a-save-dialog-box-to-download-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://corymathews.com/397/aspnetc-prompt-a-save-dialog-box-to-download-a-file/</feedburner:origLink></item>
		<item>
		<title>Rounded Corners using jQuery</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/OglexBtaObg/</link>
		<comments>http://corymathews.com/348/rounded-corners-using-jquery/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 03:37:36 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=348</guid>
		<description><![CDATA[jQuery is slowly changing the way web designers and developers create web sites. Here is an extremely easy way to achieve rounded corners using jQuery.
You can view live demos on iSearchNotes.com or at the plug-in webpage.
In order to create our rounded corners you will of course first need jQuery. If you do not already have jQuery [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery is slowly changing the way web designers and developers create web sites. Here is an extremely easy way to achieve rounded corners using jQuery.</p>
<p>You can view live demos on <a href="http://www.isearchnotes.com/" target="_blank">iSearchNotes.com</a> or at the <a href="http://www.malsup.com/jquery/corner/" target="_blank">plug-in webpage</a>.</p>
<p>In order to create our rounded corners you will of course first need jQuery. If you do not already have jQuery hurry up and go download it at <a href="http://www.jquery.com" target="_blank">jquery.com</a>. I will wait.</p>
<p>Waiting&#8230;</p>
<p>Ok so now you will also need to download the rounded corners plug-in. This small jQuery script can be downloaded by saving this file <a href="http://www.malsup.com/jquery/corner/jquery.corner.js" target="_blank">jquery.corner.js</a></p>
<p>Now we have all that will will need to round those corners. On the page you wish to have the rounded corners on you must add includes to both javascript files.</p>
<pre name="code" class="html">&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.corner.js"&gt;&lt;/script&gt;</pre>
<p>Now we must tell jQuery which areas of the layout to round.</p>
<pre name="code" class="javascript">&lt;script type="text/javascript"&gt;
$(function(){
$("#content").corner()
});
&lt;/script&gt;</pre>
<pre name="code" class="html">&lt;div id="content"&gt;Hello this would have rounded corners&lt;/div&gt;</pre>
<p>This simply uses <a title="jQuery Selectors" href="http://docs.jquery.com/Selectors">jQuery&#8217;s selectors</a> to select the id content and rounds all 4 of that divs corners by the default amount.</p>
<p>This plug-in can do so much more then this example. You can pick which corners to round, how much to round by, how to round, and much, much, more. Instead of listing them all check out the <a href="http://www.malsup.com/jquery/corner/">plug-in page</a> to see more uses of it. (there are some pretty cool ones near the bottom of the page)</p>
<p>There are many different ways to use it but some of the more common uses would be:</p>
<pre name="code" class="javascript">
	$("#content").corner()
	$("#content").corner("bottom");
	$("#content").corner("top");
</pre>
<p>You could always avoid javascript altogether and do it the <a href="http://www.osguide.net/Tutorials/tutorial.php?p=4">hard way using css</a>.</p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/OglexBtaObg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/348/rounded-corners-using-jquery/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://corymathews.com/348/rounded-corners-using-jquery/</feedburner:origLink></item>
		<item>
		<title>Saving a PHP File as a Word Document</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/rtzXwc_20c0/</link>
		<comments>http://corymathews.com/287/saving-a-php-file-as-a-word-document/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 12:43:27 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=287</guid>
		<description><![CDATA[So you are looking for a way to save a PHP page as a word doc programatically? Then you have come to the right place.
When I had to overcome this problem my main requirement was that I could not open word on the server.
Searching around the net produced countless pages with the same responses of [...]]]></description>
			<content:encoded><![CDATA[<p>So you are looking for a way to save a PHP page as a word doc programatically? Then you have come to the right place.</p>
<p>When I had to overcome this problem my main requirement was that I could <strong>not open word on the server</strong>.</p>
<p>Searching around the net produced countless pages with the same responses of using <a href="http://www.php.net/manual/en/class.com.php">COM</a> or using some third party library&#8217;s and software. However as with any project if it is possible I, as well as many other developers, try to avoid third party <a href="http://www.codinghorror.com/blog/archives/000497.html">products</a>.</p>
<p>I eventually came up with this solution:</p>
<pre name="code" class="html">&lt;?php
	header("Content-type: application/vnd.ms-word");
	header("Content-Disposition: attachment; Filename=SaveAsWordDoc.doc");
?&gt;</pre>
<p>Then along with your meta tags add the following</p>
<pre name="code" class="html">&lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\"&gt;</pre>
<p>Placing this meta tag on a page will cause the browser to think it is a html word document. Thus prompting you to open/save the document instead of rendering it like a normal webpage.</p>
<p>The only downside to this is that when you open the file in word it will open in the web layout mode of word instead of print layout.</p>
<h3>Example Usage:</h3>
<p><a href="http://www.isearchnotes.com/single.php?id=136">You can view a demo of this in use over at iSearchNotes.com</a></p>
<p><strong>Word Page</strong>: (<a href="http://corymathews.com/src/SaveAsWordDoc.php">SaveAsWordDoc.php</a>)</p>
<pre name="code" class="html">&lt;?php
	header("Content-type: application/vnd.ms-word");
	header("Content-Disposition: attachment; Filename=SaveAsWordDoc.doc");
?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\"&gt;
&lt;title&gt;Saves as a Word Doc&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Header&lt;/h1&gt;
  This text can be seen in word
&lt;ul&gt;
&lt;li&gt;List 1&lt;/li&gt;
&lt;li&gt;List 2&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><strong>Calling Page:</strong><br />
Just your normal html <a> link.</p>
<pre name="code" class="html"><a href="SaveAsWordDoc.php">link</a></pre>
<p></a></p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/rtzXwc_20c0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/287/saving-a-php-file-as-a-word-document/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://corymathews.com/287/saving-a-php-file-as-a-word-document/</feedburner:origLink></item>
		<item>
		<title>Safari 4 == A Load of Marketing Crap</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/_aNl4R7Y6Yk/</link>
		<comments>http://corymathews.com/260/safari-4-load-of-marketing-crap/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 14:24:55 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=260</guid>
		<description><![CDATA[As most of you already know Apple Released Safari 4 beta. It is advertised to be &#8220;The world’s fastest browser&#8221; and have 150 new features as it is &#8220;Leading the way with innovation.&#8221;.
The first thing I thought when I opened it up was that I clicked the wrong quick launch icon. I thought I pulled [...]]]></description>
			<content:encoded><![CDATA[<p>As most of you already know Apple Released Safari 4 beta. It is advertised to be &#8220;The world’s fastest browser&#8221; and have 150 new features as it is &#8220;Leading the way with innovation.&#8221;.</p>
<p>The first thing I thought when I opened it up was that I clicked the wrong quick launch icon. I thought I pulled up Chrome, and that they had upgraded Cromes most visited page. But nope, It was in fact the new safari with a new interface which was <span style="text-decoration: line-through;">copied</span> highly inspired from Chome&#8217;s interface. Next I was thinking the top sites looked pretty good. Then I moused over them for a moment and the fan on my laptop kicked on, and my cpu usage went clean over 30%. Not a good first impression. </p>
<p>After that little kink it seemed that overall it was pretty slick until I opened up more than 10 tabs and realized, o shit, I cannot get to any other tabs unless I click on this stupid little &#8230; button. I tried the scroll wheel thinking they stole that from Firefox, nope, so next I tried the ctrl+tab/ctrl+shft+tab, and bingo. Still really annoying, I tried to drag some of the tabs around just to find out I have to drag them by that little icon in the corner, again not good.</p>
<p>Apple, I had to call you out on this one. Yes the new safari is better than version 3 but version 3 completely sucked on windows so it did not take much to do better, even Firefox 1.5 was better then Safari version 3.</p>
<p><a href="http://corymathews.com/wp-content/uploads/2009/02/safari4reviewtabs.png"><img src="http://corymathews.com/wp-content/uploads/2009/02/safari4reviewtabs-300x49.png" alt="UI Similarities" title="UI Similarities" width="300" height="49" class="alignnone size-medium wp-image-272" /></a><br />
I see a couple similarities&#8230;</p>
<p>You know its completely ok for apple to patent touch screen devises because they would never copy other peoples technologies.</p>
<p><strong>Stolen Ideas:</strong></p>
<ol>
<li>Top Sites &#8211; Originally From Opera and also in Chrome (However at least they added that little star)</li>
<li>Full History Search &#8211; It&#8217;s about damn time&#8230;</li>
<li>Tabs on Top &#8211; When I grow up I want to be just like chrome</li>
<li>Full Page Zoom &#8211; Yup you were last.</li>
<li>Smart Address Field &#8211; Yup last again</li>
<li>Smart Search Field &#8211; And last again</li>
<li>Phishing and Malware Protection &#8211; Even IE8 has this</li>
</ol>
<p><strong>Now the things they deserve respect for.</strong></p>
<ol>
<li>Some CSS 3 Support</li>
<li>CSS Effects</li>
<li>CSS Canvas</li>
<li>Acid 3 Compliance</li>
<li>HTML 5</li>
<li>Development Tools</li>
<li>Windows Font Rendering</li>
</ol>
<p><strong>Why its a Load of Marketing Crap</strong></p>
<p><strong>&#8220;The world’s fastest browser&#8221;</strong><br />
JavaScript yes, but that&#8217;s only 1 part of a browser.  Apple claims that safari 4 has its new Nitro JavaScript Engine which is &#8220;6 times faster than Internet Explorer 8 and up to 4 times faster than Firefox 3.1.&#8221;. I won&#8217;t argue that at all because the benchmarks prove it&#8217;s the fastest. However load this thing up on Windows Vista x64 and watch that free memory and CPU just disappear. </p>
<p>I did a &#8220;real world&#8221; test and opened up the same 12 tabs in Safari 4b, Opera 10a, and Firefox 3.1b2 and Chrome 1.0.154.48. (No I did not do IE, it&#8217;s almost never a real comparison.) I opened up the 12 websites that the new safari shows on its slow imitation of Opera&#8217;s Speed Dial, as well as 1 blank tab/speed dial/most visited/top site. I let them all just sit there for about 2-3 minutes and then took a look at the numbers and heres how they stacked up. (No its not scientific)</p>
<p><strong>CPU Percent</strong> &#8211; 2.5Ghz dual<br />
Chrome &#8211; 15%<br />
Safari &#8211; 10%<br />
Opera &#8211; 0%<br />
Firefox &#8211; 0%</p>
<p><strong>Memory</strong> &#8211; 3g total<br />
Safari 4 &#8211; 394,824K<br />
Chrome &#8211; 260,048K<br />
Opera 10a &#8211; 152,784K<br />
Firefox 3.1b2 &#8211; 132,184K</p>
<p>You can see from these results that &#8220;The world’s fastest browser&#8221; takes up 2.98 times more resources then Firefox and 2.5 times more than Opera. Safari also uses anywhere from 8-30% of my CPU time even when its minimized and not being touched. Opera and Firefox both use 0 CPU time when idle. </p>
<p>&#8220;The world’s fastest browser&#8221;, My Ass it is, maybe the world&#8217;s most bloated browser would fit the description better.</p>
<p><a href="http://corymathews.com/wp-content/uploads/2009/02/safari4reviewusage.png"><img src="http://corymathews.com/wp-content/uploads/2009/02/safari4reviewusage-150x150.png" alt="Task Manager Results" title="Task Manager Results" width="150" height="150" class="alignnone size-thumbnail wp-image-262" /></a></p>
<p>You really can see how badly chrome spams the process list when you look at it. Also the blanks are other programs that I have just removed from the list to make it easier to read.</p>
<p><strong> &#8220;Safari is the first &#8211; and only &#8211; web browser to pass Acid 3&#8243;.</strong><br />
Uhh&#8230; I don&#8217;t even know what to say to this. Opera beat Safari to this way back in March 2008. <a href="http://labs.opera.com/news/2008/03/28/">Opera Passes Acid Test 3</a></p>
<p><strong>Coverflow</strong><br />
Pretty cool but basically useless&#8230;</p>
<p><strong>150 Features</strong><br />
Yea 150 Features only 28 new ones. I could get 150 Features out of a basic calculator, more marketing crap. </p>
<p>Overall Safari 4 is a great improvement over Safari 3 however on windows that&#8217;s not saying much Safari 3 was crap. Hopefully safari runs a lot faster on a Mac then on Windows and that huge memory and CPU consumption are not a problem for any of safari&#8217;s &#8220;real users&#8221;, however I cannot say, since I have not tried it. </p>
<p>This release of Safari was just a load of marketing crap, they took almost all their features from other browsers. Then Apple called these &#8220;highly inspired&#8221; changes &#8220;Leading the way with innovation&#8221;.</p>
<p>On a side note Safari you will not grow up and be chrome. Stop trying to look like them and come up with some of your own features in the next release or don&#8217;t call it safari 4, call it safari 3.x.</p>
<p>To end it on a good note, Thank you to apple for helping push JavaScript speed, and browser standards. Without these things the web will never be where it could be and for this I say, Thank You.</p>
<p>What are your experiences with the new Safari 4 beta so far? Are they the same as mine or better? Also to someone on a Mac, how is the performace of safari 4 on your system? I am curious as to how much faster it is.</p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/_aNl4R7Y6Yk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/260/safari-4-load-of-marketing-crap/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://corymathews.com/260/safari-4-load-of-marketing-crap/</feedburner:origLink></item>
		<item>
		<title>MSSQL Escape Character</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/FqpAuam1nQA/</link>
		<comments>http://corymathews.com/255/mssql-escape-character/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 21:08:53 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[MsSQL]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=255</guid>
		<description><![CDATA[Here is something that got me for a while today, escaping characters in MsSQL. I went through and tried the normal \ then thought  I was losing it and tried the other slash /. However for some odd reason Microsoft went with the single tick &#8216;.
So for example a mssql query using the escape [...]]]></description>
			<content:encoded><![CDATA[<p>Here is something that got me for a while today, escaping characters in MsSQL. I went through and tried the normal \ then thought  I was losing it and tried the other slash /. However for some odd reason Microsoft went with the single tick &#8216;.</p>
<p>So for example a mssql query using the escape character might look like</p>
<pre name="code" class="sql">SELECT a FROM b WHERE a = 'cory''s'</pre>
<p>Notice the double tick to escape the apostrophe. Really quite simple but still really weird.</p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/FqpAuam1nQA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/255/mssql-escape-character/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://corymathews.com/255/mssql-escape-character/</feedburner:origLink></item>
		<item>
		<title>Using C to Append text to a File using the Linux Command Line</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/aXKab2XkGvE/</link>
		<comments>http://corymathews.com/248/using-c-to-append-text-to-a-file-using-the-linux-command-line/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 04:59:54 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=248</guid>
		<description><![CDATA[Damn I think the title is almost as long as the entire post&#8230;
Any way, here is a quick tip that will allow your c program to easily add text to the end of a file without ever having to deal with the file in your code. This is accomplished by a simple system call, take [...]]]></description>
			<content:encoded><![CDATA[<p>Damn I think the title is almost as long as the entire post&#8230;</p>
<p>Any way, here is a quick tip that will allow your c program to easily add text to the end of a file without ever having to deal with the file in your code. This is accomplished by a simple system call, take a look at the following example.</p>
<pre name="code" class="sql">#include
int main() {
  system("ls &gt;&gt; 1.txt");
}</pre>
<p>This simple code will perform the ls command and redirect its output to the file 1.txt. If 1.txt does not exist it will create the file. If the file exists it will append the output from ls to the file.</p>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/aXKab2XkGvE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/248/using-c-to-append-text-to-a-file-using-the-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://corymathews.com/248/using-c-to-append-text-to-a-file-using-the-linux-command-line/</feedburner:origLink></item>
		<item>
		<title>Input Data to Display Newlines in ASP.NET</title>
		<link>http://feedproxy.google.com/~r/CoryMathews/~3/5-xdqOhkITI/</link>
		<comments>http://corymathews.com/229/input-data-to-display-newlines-in-aspnet/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 16:13:49 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C Sharp]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=229</guid>
		<description><![CDATA[In asp.net input taken from a plain text box will not display newline characters (Hitting the enter key) when outputting to the browser.
So for example you have a text box that users can input text into, they put a couple paragraphs in it and submit that data to the database. If you just strait output [...]]]></description>
			<content:encoded><![CDATA[<p>In asp.net input taken from a plain text box will not display newline characters (Hitting the enter key) when outputting to the browser.</p>
<p>So for example you have a text box that users can input text into, they put a couple paragraphs in it and submit that data to the database. If you just strait output the content to the browser you will see one giant blob of text. So how can you fix this?</p>
<p>By converting the newline to a html<br />
tag we can fix the problem. So with a little c# function we have the trick done.</p>
<pre class="c#">public String FixLabelOutput(String val) {
    return val.Replace(Environment.NewLine, "&lt;br /&gt;");
}</pre>
<p>As you see our function simple returns all newlines as &lt;br /&gt; which will fix the way it is outputted.</p>
<p>In the aspx page you need to have this to display the corrected text. This of course can be placed in a label or just strait printed.</p>
<pre class="vb">&lt;%# FormatHtml(Eval("TextInfo").ToString()) %&gt;</pre>
<img src="http://feeds.feedburner.com/~r/CoryMathews/~4/5-xdqOhkITI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/229/input-data-to-display-newlines-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://corymathews.com/229/input-data-to-display-newlines-in-aspnet/</feedburner:origLink></item>
	</channel>
</rss>
