<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5" -->
<rss version="0.92">
<channel>
	<title>Calisto Mind</title>
	<link>http://www.calistomind.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jun 2008 03:54:18 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>ASP.NET Inline Tags</title>
		<description>There are all sorts of different inline tags, and I haven't found a place that explains them all in one place, so here is the quick and dirty...
&#60;% ... %&#62;
The most basic inline tag, basically runs normal code:
&#60;% if (User.IsInRole("admin")) { %&#62;
You can see this
&#60;% } else { %&#62;
You are ...</description>
		<link>http://www.calistomind.com/2008/06/25/aspnet-inline-tags/</link>
			</item>
	<item>
		<title>How to easily parse HTML without RegEx</title>
		<description>I recently discovered an absolutely amazing HTML parsing library for .NET called HtmlAgilityPack. It completely takes away the pain of parsing complicated HTML with regular expressions.

Here's a very simple example of what you could do with it - I'm just extracting inner HTML from any element inside a HTML file ...</description>
		<link>http://www.calistomind.com/2008/05/06/how-to-easily-parse-html-without-regex/</link>
			</item>
	<item>
		<title>How To Create A Random Fact Generator Using XML</title>
		<description>This is a simple little random fact generator which will show a new fact every time the page loads. After the initial load it will store the XML in the cache until the file is changed again.

XML: (Facts.xml)



&#60;?xml version="1.0" encoding="utf-8" ?&#62;
&#60;facts&#62;
  &#60;fact&#62;
    The numbers '172' can ...</description>
		<link>http://www.calistomind.com/2008/04/23/how-to-create-a-random-fact-generator-using-xml/</link>
			</item>
	<item>
		<title>How to manipulate video in .NET using ffmpeg (updated)</title>
		<description>Based on the reader comments on my previous entry on this topic I was able to fix some of the issues that others were experiencing.

I changed how the output is read, instead of reading the entire stream at once, its now read line-by-line as ErrorDataReceived and OutputDataReceived events are raised. ...</description>
		<link>http://www.calistomind.com/2008/04/22/how-to-manipulate-video-in-net-using-ffmpeg-updated/</link>
			</item>
	<item>
		<title>Three quick ways optimize AJAX driven websites in ASP.NET</title>
		<description>Recently I was involved in a project where I had to make heavy use of AJAX. I realized there are a few simple things you could do to improve performance.

1) Combine scripts




&#60;ajaxToolkit:ToolkitScriptManager ID="TSM1" runat="Server"
EnablePartialRendering="true"
CombineScriptsHandlerUrl="~/CombineScriptsHandler.ashx" /&#62;

As the name of the property suggests, it will pretty much combine all the needed JS ...</description>
		<link>http://www.calistomind.com/2008/04/18/three-quick-ways-optimize-ajax-driven-websites-in-aspnet/</link>
			</item>
	<item>
		<title>Request.Browser.Crawler</title>
		<description>In my previous post about exception logging, I show how to log several different parameters related to the exception in the database. Request.Browser.Crawler is one of them and its used to track browser crawlers. It warrants its own separate entry since it requires some extra bit of setup in the ...</description>
		<link>http://www.calistomind.com/2008/04/08/requestbrowsercrawler/</link>
			</item>
	<item>
		<title>Exception Logging Using The Database</title>
		<description>This is a simple technique I use to log exceptions in all my web applications.
First lets start by adding the following to the web.config:


&#60;appSettings&#62;
&#60;add key="LogUnhandledExceptions" value="true"/&#62;
&#60;/appSettings&#62;

Second, we add the following bit inside the Application_Error event of the Global.asax file. This will capture all the unhandled exceptions and log them into ...</description>
		<link>http://www.calistomind.com/2008/04/08/exception-logging-using-the-database/</link>
			</item>
	<item>
		<title>The Mysterious &#8220;Invalid Parameter Used&#8221; Error</title>
		<description>Recently I was trying to write a little C# function for cropping images. I expected it to be a quick 5 minute task but I ended up spending a huge amount of time getting it to work correctly. I kept getting a very stubborn and mysterious error - "Invalid Parameter ...</description>
		<link>http://www.calistomind.com/2008/03/29/the-mysterious-invalid-parameter-used-error/</link>
			</item>
	<item>
		<title>How to unzip files in .NET using SharpZipLib</title>
		<description>SharpZipLib is a great open source library for handeling all kinds of gzip/zip compression/decompression. More Info - http://www.icsharpcode.net/OpenSource/SharpZipLib/
In the following example I'm passing the HtmlInputFile object directly into the ZipInputStream to decompress the PostedFile and save its contents on the server.


.
.
using System.IO;    
using ICSharpCode.SharpZipLib.Zip
.
.
private void UnzipAndSave(HtmlInputFile objFileUpload)
{
    ZipInputStream ...</description>
		<link>http://www.calistomind.com/2008/03/12/how-to-unzip-files-in-net-using-sharpziplib/</link>
			</item>
	<item>
		<title>How to manipulate video in .NET using ffmpeg</title>
		<description>In this case I'm resizing the video and converting it to FLV format. For more ffmpeg commandline options - http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html


private void ConvertVideo(string srcURL, string destURL)
{
    string ffmpegURL = "~/project/tools/ffmpeg.exe";
    DirectoryInfo directoryInfo = new DirectoryInfo(Path.GetDirectoryName(Server.MapPath(ffmpegURL)));

    ProcessStartInfo startInfo = new ProcessStartInfo();
    startInfo.FileName ...</description>
		<link>http://www.calistomind.com/2008/03/12/how-to-manipulate-video-in-net-using-ffmpeg/</link>
			</item>
</channel>
</rss>
