<?xml version="1.0" encoding="utf-8"?>
<!-- generator="open[qoob]" -->
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>the website of xero harrison</title>
    <subtitle type="text">xero, xero harrison, harrison, nu, x-e.ro, whois.x-e.ro, blog.x-e.ro, code.x-e.ro, lab.x-e.ro, img.x-e.ro, etc.x-e.ro, feeds.x-e.ro, fontvir.us, fontvirus, font, fonts, git, portfolio, program, programming, code, coding, codes, codez, dev, develop, developer, qoob, open qoob, openqoob, framework, code, api, lab, laboratory, experiment, experiments, demo, netart, net art, unixporn, unix porn, unixp0rn, unixpr0n, images, photos, etc, random</subtitle>
    <link>https://blog.x-e.ro</link>
    <updated>Sat, 30 May 2026 14:13:38 -0400</updated>
    <id>https://blog.x-e.ro</id>
    <link rel="self" href="https://feeds.x-e.ro" />
    <generator uri="http://qoob.xero.nu/">open[qoob]</generator>
    <entry>
        <title>RFC822 compliant dates for rss feeds</title>
        <id>https://blog.x-e.ro/rfc822_compliant_dates_for_rss_feeds</id>
        <link rel="alternate">https://blog.x-e.ro/rfc822_compliant_dates_for_rss_feeds</link>
        <summary type="html">&lt;p&gt;with the advent of web-syndication, a few different feed protocols have evolved (&lt;a href=&quot;http://en.wikipedia.org/wiki/RSS_(file_format)&quot; target=&quot;_blank&quot;&gt;rss&lt;/a&gt; and &lt;a href=&quot;http://www.atomenabled.org/&quot; target=&quot;_blank&quot;&gt;atom&lt;/a&gt; being the most popular). because of their growth in popularity the protocol to create a feed has become more stringent. luckily we have validators who help us keep our feeds on the right track. one of these guidelines is RFC822 compliant dates. these dates look like &lt;strong&gt;Sat, 14 Jul 2007 18:40:26 -0400&lt;/strong&gt;. formatting your data to be compliant with this standard can be challenging, so i have written some code to help you along... &lt;/p&gt;
&lt;p&gt;Creating a RFC822 compliant date in php is a snap...&lt;/p&gt;
&lt;pre class=&quot;brush: php&quot;&gt;$rssDate = date(&quot;r&quot;);
&lt;/pre&gt;
&lt;p&gt;in asp.net this is a bit more tricky. microsoft doesn't have a native RFC822 date format, so we are going to have to convert our dateTime.now() into that format...&lt;/p&gt;</summary>
        <author>
            <name>xero harrison</name>
        </author>
        <updated>2007-12-05T16:20:00-05:00</updated>
    </entry>
    <entry>
        <title>asp.net random number generator</title>
        <id>https://blog.x-e.ro/asp_net_random_number_generator</id>
        <link rel="alternate">https://blog.x-e.ro/asp_net_random_number_generator</link>
        <summary type="html">&lt;p&gt;here is my asp.net randomizer class based on the c R250/512 shift-register sequence random number generator, by kirkpatrick and stoll and published (j. computational physics, vol 40, pp. 517-526) with an added a pseudo-random class redefinition and buffer overflow protection.&lt;br/&gt;&lt;br/&gt;example usage:
&lt;pre class=&quot;brush: csharp&quot;&gt;randomizer x = new randomizer();
int num = x.random();
&lt;/pre&gt;&lt;/p&gt;</summary>
        <author>
            <name>xero harrison</name>
        </author>
        <updated>2007-10-18T17:55:00-04:00</updated>
    </entry>
    <entry>
        <title>dotnet sendmail</title>
        <id>https://blog.x-e.ro/dotnet_sendmail</id>
        <link rel="alternate">https://blog.x-e.ro/dotnet_sendmail</link>
        <summary type="html">&lt;p&gt;sending email is a snap with asp.net 2.0, this simple function sends an email to the specified name and email you pass to the function. with a little database integration this can be recalled in almost infinite recursion, and will not be tagged as spam because it sends individual emails, not a bulk message to many users. for fastest delivery times specify the direct path to your mail server (see line #18), &lt;span style=&quot;text-decoration: line-through;&quot;&gt;and setup your mail server to not scan outgoing  webserver mail for spam&lt;/span&gt;. &lt;strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;*edit*&lt;/span&gt;&lt;/strong&gt; i now recant that statement. true, pure execution times will be faster but at the sake of ignorance. i would rather have the slightly increased send time and the knowledge that my code has not be hijacked and sending spam. &lt;/p&gt;
&lt;p&gt;example usage:&lt;/p&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;sendmsg(&quot;xero&quot;, &quot;x@xero.owns.us&quot;);
&lt;/pre&gt;</summary>
        <author>
            <name>xero harrison</name>
        </author>
        <updated>2007-09-15T17:35:00-04:00</updated>
    </entry>
    <entry>
        <title>asp.net pure code database connection</title>
        <id>https://blog.x-e.ro/asp_net_pure_code_database_connection</id>
        <link rel="alternate">https://blog.x-e.ro/asp_net_pure_code_database_connection</link>
        <summary type="html">&lt;p&gt;visual studio 2005 has a tool for connecting to a database called a &quot;sqlDataSource&quot;. while this tool works, i find myself wanting to create the connection and build or execute stored procedures within my own C# code. this tutorial will show you how to connect to a sql database 3 different ways in asp.net&lt;/p&gt;
&lt;p&gt;the first thing is creating a connection with your database. if you understand how connection strings are built, write your own other wise will can use the visual studio database tool to do that for us.&lt;/p&gt;
&lt;p&gt;&lt;img title=&quot;configure database&quot; src=&quot;http://blog.x-e.ro/ui/img/blog/uploads/db-config.gif&quot; alt=&quot;configure database&quot; width=&quot;525&quot; height=&quot;71&quot; /&gt;&lt;/p&gt;</summary>
        <author>
            <name>xero harrison</name>
        </author>
        <updated>2007-08-22T09:26:00-04:00</updated>
    </entry>
    <entry>
        <title>post and querystring vars in dotnet</title>
        <id>https://blog.x-e.ro/post_and_querystring_vars_in_dotnet</id>
        <link rel="alternate">https://blog.x-e.ro/post_and_querystring_vars_in_dotnet</link>
        <summary type="html">&lt;p&gt;here's a nice little snip of c# code. this is meant to be used in an asp.net web application. the following code will return either a querystring variable or a post variable, it tries both and finds the valid one.&lt;/p&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;public string RequestParam(string paramname)
{
    string result = string.Empty;
    if (Context.Request.Form.Count != 0)
    {
        result = Convert.ToString(Context.Request.Form[paramname]);
    }
    else if (Context.Request.QueryString.Count != 0)
    {
        result = Convert.ToString(Context.Request.QueryString[paramname]);
    }
    return (result == null) ? string.Empty : result.Trim();
}
&lt;/pre&gt;</summary>
        <author>
            <name>xero harrison</name>
        </author>
        <updated>2005-09-07T15:16:00-04:00</updated>
    </entry>
</feed>
