
<?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>Life Of A Jackass &#187; tips</title>
	<atom:link href="http://lifeofajackass.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifeofajackass.com</link>
	<description>Daily tech tips and tricks!</description>
	<lastBuildDate>Tue, 17 Aug 2010 16:53:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>System.Common.dll (New Open Source Project)</title>
		<link>http://lifeofajackass.com/2010/03/system-common-dll-new-open-source-project/</link>
		<comments>http://lifeofajackass.com/2010/03/system-common-dll-new-open-source-project/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 14:17:17 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=541</guid>
		<description><![CDATA[<!-- Easy AdSense V2.92 -->
<!-- Post[count: 2] -->
<div class="ezAdsense adsense adsense-leadin" style="text-align:left;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-1853949779791508";
/* 468x60, created 7/7/10 */
google_ad_slot = "4229997784";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<!-- Easy AdSense V2.92 -->

You can view the project here Project Description A .Net library that provides methods, properties and more that the .Net Framework doesn&#8217;t provide. System.Common is a .Net library that provides commonly used methods, properties, string functions and more that are &#8230; <a href="http://lifeofajackass.com/2010/03/system-common-dll-new-open-source-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Easy AdSense V2.92 -->
<!-- Post[count: 3] -->
<div class="ezAdsense adsense adsense-leadin" style="text-align:left;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-1853949779791508";
/* 468x60, created 7/7/10 */
google_ad_slot = "4229997784";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<!-- Easy AdSense V2.92 -->

<p>You can view the project <a href="http://systemcommon.codeplex.com/documentation">here</a></p>
<p><strong>Project Description</strong><br />
A .Net library that provides methods, properties and more that the .Net Framework doesn&#8217;t provide.</p>
<p>System.Common is a .Net library that provides commonly used methods, properties, string functions and more that are currently unavailable in the current Framework.</p>
<p>Example of classes provided:</p>
<ul>
<li>Strings &#8211; Provide methods like isNumeric, isAlpha and isAlphaNumeric.</li>
<li>Folders &#8211; Provides easy access to the systems special folders, user folders and such</li>
<li>Encryption &#8211; Provides methods of MD5, SHA, SHA1, TripleDES that are commonly used.</li>
<li>DateTime &#8211; Provide extra DateTime methods such as Unix time and date spanning.</li>
</ul>
<p><strong>System.Common</strong></p>
<p>Classes:</p>
<ul>
<li>HardwareInfo</li>
<li>Strings
<ul>
<li>IsNumber (Method)</li>
<li>IsAlpha (Method)</li>
<li>IsAlphaNumeric (Method)</li>
<li>IsNatualNumber (Method)</li>
<li>IsWholeNumber (Method)</li>
<li>IsInteger (Method)</li>
<li>IsPositiveNumber (Method)</li>
</ul>
</li>
<li>Folders
<ul>
<li>UsersProgramsPath (Method)</li>
<li>UsersStartMenuPath (Method)</li>
<li>UsersDesktopPath (Method)</li>
<li>AllUsersProgramsPath (Method)</li>
<li>AllUsersStartMenuPath (Method)</li>
<li>AllUsersDesktopPath (Method)</li>
<li>GetSpecialFolderPath (Method)</li>
<li>GetHIcon (Method)</li>
<li>CSIDL (Enum)</li>
</ul>
</li>
<li>Dates
<ul>
<li>GetCurrentUnixTime (Method)</li>
<li>ConvertFromUnixTimestamp (Method)</li>
<li>ConvertToUnixTimestamp (Method)</li>
</ul>
</li>
<li>Encryption
<ul>
<li>Hash (Class)
<ul>
<li>GetMD5 (Method)</li>
<li>GetSHA1 (Method)</li>
<li>GetSHA256 (Method)</li>
<li>GetSHA384 (Method)</li>
<li>GetSHA512 (Method)</li>
</ul>
</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2010/03/system-common-dll-new-open-source-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dreamhost &#8211; PROMO CODE!</title>
		<link>http://lifeofajackass.com/2009/11/dreamhost-promo-code/</link>
		<comments>http://lifeofajackass.com/2009/11/dreamhost-promo-code/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 15:40:44 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=515</guid>
		<description><![CDATA[I&#8217;ve just recently switched all of my personal sites to Dreamhost. Dreamhost offers unlimited everything at a very low price. I&#8217;ve been with them for one year now and have never had any major complaints. I had trouble importing a 70mb sql file and &#8230; <a href="http://lifeofajackass.com/2009/11/dreamhost-promo-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just recently switched all of my personal sites to Dreamhost. Dreamhost offers unlimited everything at a very low price. I&#8217;ve been with them for one year now and have never had any major complaints. I had trouble importing a 70mb sql file and the support staff responded to my ticket within the hour with helpful and correct steps to import my database using SSH.</p>
<p>Since I switched and think everyone should enjoy unlimited services at an awesome price I&#8217;ve going to give you an AWESOME deal!</p>
<p><a href="http://www.dreamhost.com/r.cgi?493592"><strong>GO HERE</strong></a></p>
<p>Sign up for 1 year (Normally $119!) Enter MY promo code <strong>LIFEOFAJACKASS </strong>and receive a free domain registration for <strong>LIFE </strong>and $40 off the first year! Thats only $79 for 1 year of hosting AND a free domain for <strong>LIFE</strong>!</p>
<p>Why? It&#8217;s <strong>UNLIMITED</strong>! Why not?</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/11/dreamhost-promo-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uStream.tv Status (Java Script)</title>
		<link>http://lifeofajackass.com/2009/08/ustream-tv-status-java-script/</link>
		<comments>http://lifeofajackass.com/2009/08/ustream-tv-status-java-script/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 02:51:11 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=497</guid>
		<description><![CDATA[I was called upon today by a new friend to write a small script to detect the streaming status of a uStream.tv channel. I thought I&#8221;d share the script with everyone. ****OK OK, My CodeBox plugin is not working, please &#8230; <a href="http://lifeofajackass.com/2009/08/ustream-tv-status-java-script/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was called upon today by a new friend to write a small script to detect the streaming status of a uStream.tv channel. I thought I&#8221;d share the script with everyone.</p>
<p>****OK OK, My CodeBox plugin is not working, please be patient.****</p>
<pre class="brush: jscript;">
&lt;!--Place this code where you want the status to appear. --&gt;
&lt;font color='red'&gt;&lt;span id=&quot;status&quot;&gt;status&lt;/span&gt;&lt;/font&gt;

&lt;!--Place this code anywhere in the page. --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function set_status(status)
{
if (status == &quot;offline&quot;)
{	&lt;!-- replace the img html with any html that you need --&gt;
document.getElementById(&quot;status&quot;).innerHTML = &quot;&lt;img src='http://lifeofajackass.com/offline.png'/&gt;&quot;;
}
else if (status == &quot;live&quot;)
{	&lt;!-- replace the img html with any html that you need --&gt;
document.getElementById(&quot;status&quot;).innerHTML = &quot;&lt;img src='http://lifeofajackass.com/online.png'/&gt;&quot;;
}
else
{	&lt;!-- Let's do this just in case the service is down or something. You could show an error image as well --&gt;
document.getElementById(&quot;status&quot;).innerHTML  = &quot;Error getting stream status!&quot;;
}
}
&lt;/script&gt;
&lt;!--Make sure to replace the channel name and API key. --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://api.ustream.tv/json/channel/CHANNELNAME/getValueOf/status?key=YOURAPIKEY&amp;callback=set_status&quot;&gt;
&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/08/ustream-tv-status-java-script/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>C# Access A Form&#8217;s Controls Within A Class</title>
		<link>http://lifeofajackass.com/2009/05/c-access-a-forms-controls-within-a-class/</link>
		<comments>http://lifeofajackass.com/2009/05/c-access-a-forms-controls-within-a-class/#comments</comments>
		<pubDate>Sat, 16 May 2009 17:01:09 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[delegate]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[forms]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=469</guid>
		<description><![CDATA[There are a lot of beginner and even intermediate level developers that have no idea how to access/modify a forms objects/methods from within a different class. I&#8217;ll show you the easiest practice of this. First we have to make a &#8230; <a href="http://lifeofajackass.com/2009/05/c-access-a-forms-controls-within-a-class/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are a lot of beginner and even intermediate level developers that have no idea how to access/modify a forms objects/methods from within a different class. I&#8217;ll show you the easiest practice of this.</p>
<p style="text-align: left; ">First we have to make a reference. We must use the &#8216;protected&#8217; keyword. I use the same name as the windows form that way it is easy to keep track of variables.</p>
<p style="text-align: left; "><a href="http://lifeofajackass.com/wp-content/uploads/2009/05/capture2.png" rel="lightbox[469]"><img class="size-full wp-image-471 alignleft" title="capture2" src="http://lifeofajackass.com/wp-content/uploads/2009/05/capture2.png" alt="capture2 C# Access A Forms Controls Within A Class" width="432" height="59" /></a><a href="http://lifeofajackass.com/wp-content/uploads/2009/05/capture.png" rel="lightbox[469]"></a></p>
<p style="text-align: left; ">
<p style="text-align: left; ">
<p style="text-align: left; ">Once that is done you must set each method and object you want to access to public. You do this from the Forms Designer Class.</p>
<p style="text-align: left; "><a href="http://lifeofajackass.com/wp-content/uploads/2009/05/capture.png" rel="lightbox[469]"><img class="size-full wp-image-470 alignleft" title="capture" src="http://lifeofajackass.com/wp-content/uploads/2009/05/capture.png" alt="capture C# Access A Forms Controls Within A Class" width="451" height="86" /></a></p>
<p style="text-align: left; ">
<p style="text-align: left; ">
<p style="text-align: left; ">
<p style="text-align: left; ">And that&#8217;s it. With just 2 lines of code you can now access you forms controls and methods.</p>
<p style="text-align: left; ">
<p style="text-align: left; ">[Sorry for the images of the code, my code-box plugin is broken]</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/05/c-access-a-forms-controls-within-a-class/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>What&#8217;s Going On?</title>
		<link>http://lifeofajackass.com/2009/05/whats-going-on-2/</link>
		<comments>http://lifeofajackass.com/2009/05/whats-going-on-2/#comments</comments>
		<pubDate>Mon, 11 May 2009 15:21:34 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[obfuscation]]></category>
		<category><![CDATA[secure string]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=466</guid>
		<description><![CDATA[Got some emails asking what&#8217;s been going on. I know I haven&#8217;t posted in a while. Some people miss my daily code snippets and short tutorials. I&#8217;ve been working hard on an anti-cheat system for BHD with http://cheatsense.com I haven&#8217;t &#8230; <a href="http://lifeofajackass.com/2009/05/whats-going-on-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Got some emails asking what&#8217;s been going on. I know I haven&#8217;t posted in a while. Some people miss my daily code snippets and short tutorials. I&#8217;ve been working hard on an anti-cheat system for BHD with http://cheatsense.com</p>
<p>I haven&#8217;t completly neglected the site. I&#8217;ll post some code tutorials tonight on a few more hashing techniques and string encryption. I will also be posting soon a tutorial on how to control a forms events and controls from within a different class. Unlike VB.NET, C# does not automatically inherit the forms methods and control methods.</p>
<p>I&#8217;ll also talk about obfuscation and .Net application security, secure string and anti-debugging methods.</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/05/whats-going-on-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>.NET Gravatar Library</title>
		<link>http://lifeofajackass.com/2009/04/net-gravatar-library/</link>
		<comments>http://lifeofajackass.com/2009/04/net-gravatar-library/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 18:17:21 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[gravatar]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=459</guid>
		<description><![CDATA[I&#8217;ve updated my Gravatar source. I am no longer working on the control version. I have focused my attention to a library model. With the library you are able to manipulate the image more then you could with the control. &#8230; <a href="http://lifeofajackass.com/2009/04/net-gravatar-library/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated my Gravatar source. I am no longer working on the control version. I have focused my attention to a library model. With the library you are able to manipulate the image more then you could with the control. The image is stored in memory as passed as an image. I am working on arrays that will allow you to pass an overload containing a list of emails and return the Gravatar in the given order.</p>
<p>You can find out more <a href="http://lifeofajackass.com/gravatarget/">here</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/04/net-gravatar-library/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FBI: Cool People.</title>
		<link>http://lifeofajackass.com/2009/04/fbi-cool-people/</link>
		<comments>http://lifeofajackass.com/2009/04/fbi-cool-people/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 12:46:51 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=434</guid>
		<description><![CDATA[Did you guys know that you can go to your local field office with emails, chats, websites; etc? Why? To have them tracked to the source. Maybe you&#8217;ve been getting threatening, bullying or disrespectful emails. This is a CRIME now. &#8230; <a href="http://lifeofajackass.com/2009/04/fbi-cool-people/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Did you guys know that you can go to your local field office with emails, chats, websites; etc? Why? To have them tracked to the source. Maybe you&#8217;ve been getting threatening, bullying or disrespectful emails. This is a CRIME now. Ever since that little girl in Saint Louis killed herself over MySpace, it is now a FELONY to do this! This is not a matter to be taking lightly. Bullying can lead to depression, suicide, altered behavior, paranoia, poor grades and can ruin families/friends lives! </p>
<p>If you have ANY emails, chats or IM&#8217;s like this I urge you to report it to your local field office or county office. Portraying to be someone else to bully is not only a felony for cyber bullying, it&#8217;s also a felony for cyber terrorism, wire fraud and identity theft.</p>
<p> </p>
<p>Check back later for a more detailed report.</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/04/fbi-cool-people/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>GravatarGet: Source Code</title>
		<link>http://lifeofajackass.com/2009/03/gravatarget-source-code/</link>
		<comments>http://lifeofajackass.com/2009/03/gravatarget-source-code/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 14:01:29 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[gravatar]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[visual c#]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=420</guid>
		<description><![CDATA[I&#8217;ve updates the GravatarGet page. I&#8217;ll be explaining the source code and releasing a major portion of the code. There&#8217;s already been over 5,000 downloads and the number is growing everyday. There are reports of bugs and what not, I &#8230; <a href="http://lifeofajackass.com/2009/03/gravatarget-source-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updates the GravatarGet page. I&#8217;ll be explaining the source code and releasing a major portion of the code. There&#8217;s already been over 5,000 downloads and the number is growing everyday. There are reports of bugs and what not, I will address them here.</p>
<p>Default Icon Struct:<br />
I did this so we wouldn&#8217;t have to remember the names of the 3 fallback icon sets Gravatar offers.</p>
<p>Rating Struct:<br />
Sure, there are only 4 ratings(G, PG, R, X) but maybe someone don&#8217;t know that. So I created a struct for this as well.</p>
<p>Some people are having trouble returning an image into memory. I recommend using MemoryStream for this. You can also attach the Gravatar to a listbox, combobox,textbox and almost any other control applicable.</p>
<p>So check out the Gravatar page and enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/03/gravatarget-source-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rcon &amp; C#</title>
		<link>http://lifeofajackass.com/2009/03/rcon-c/</link>
		<comments>http://lifeofajackass.com/2009/03/rcon-c/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 13:24:38 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[call of duty]]></category>
		<category><![CDATA[cod4]]></category>
		<category><![CDATA[cod5]]></category>
		<category><![CDATA[modern rcon]]></category>
		<category><![CDATA[rcon]]></category>
		<category><![CDATA[send command]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=407</guid>
		<description><![CDATA[As some of you know, I&#8217;m working on an Rcon Manger for COD4/5. Some of you want to know how I am parsing/prepping the command to be sent. I&#8217;ll share with you my method of parsing the command. I don&#8217;t &#8230; <a href="http://lifeofajackass.com/2009/03/rcon-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As some of you know, I&#8217;m working on an Rcon Manger for COD4/5. Some of you want to know how I am parsing/prepping the command to be sent. I&#8217;ll share with you my method of parsing the command. I don&#8217;t want to divulge too much information as I&#8217;m not done with the project yet.</p>
<pre class="brush: csharp;">
public byte[] prepCommand(string command)

{

byte[] bufferTemp = Encoding.ASCII.GetBytes(command);

byte[] bufferSend = new byte[bufferTemp.Length + 4];

//intial 5 characters as per standard

bufSend[0] = byte.Parse(&quot;255&quot;);

bufSend[1] = byte.Parse(&quot;255&quot;);

bufSend[2] = byte.Parse(&quot;255&quot;);

bufSend[3] = byte.Parse(&quot;255&quot;);

//copying bytes from rcon to send buffer

int j = 4;

for (int i = 0; i &lt; bufferTemp.Length; i++)

{

bufferSend[j++] = bufferTemp[i];

}

return bufferSend;

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/03/rcon-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# Convert Decimal to Integer</title>
		<link>http://lifeofajackass.com/2009/03/c-convert-decimal-to-integer/</link>
		<comments>http://lifeofajackass.com/2009/03/c-convert-decimal-to-integer/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 13:10:50 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[convert decimal]]></category>
		<category><![CDATA[convert integer]]></category>
		<category><![CDATA[decimal]]></category>
		<category><![CDATA[integer]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=401</guid>
		<description><![CDATA[Having trouble converting your decimals into integers? A lot of people are. It&#8217;s actually pretty easy. Bellow is a short example! Here I am using a Numeric Up/Down control and need to convert the value to an integer to pass &#8230; <a href="http://lifeofajackass.com/2009/03/c-convert-decimal-to-integer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Having trouble converting your decimals into integers? A lot of people are. It&#8217;s actually pretty easy. Bellow is a short example!</p>
<p>Here I am using a Numeric Up/Down control and need to convert the value to an integer to pass it to my picturebox control.</p>
<pre class="brush: csharp;">
picturebox1.Width = Convert.ToInt32(Math.Ceiling(numericUpDown1.Value));
</pre>
<p>Using ToInt32.Ceiling() it will return the smallest integer greater then or equal to the decimal passed.</p>
<p>Hope this helps with your decimal to integer problems!</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/03/c-convert-decimal-to-integer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TimesURL &amp; .NET</title>
		<link>http://lifeofajackass.com/2009/03/timesurl-net/</link>
		<comments>http://lifeofajackass.com/2009/03/timesurl-net/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 19:41:51 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[timesurl]]></category>
		<category><![CDATA[tinyurl]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=372</guid>
		<description><![CDATA[I&#8217;ve got a few emails regarding http://timesurl.at. If you want to use this service you can still the use code from [TinyURL &#38; .NET]. All you have to do is change one line of code. Change http://tinyurl.com/api-create.php?url= to http://timesurl.at/api/rest.php?url= And &#8230; <a href="http://lifeofajackass.com/2009/03/timesurl-net/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a few emails regarding <a href="http://timesurl.at">http://timesurl.at</a>. If you want to use this service you can still the use code from [<a href="http://lifeofajackass.com/2009/03/tinyurl-net/">TinyURL &amp; .NET</a>]. All you have to do is change one line of code.</p>
<p>Change</p>
<pre lang="vb">http://tinyurl.com/api-create.php?url=</pre>
<p>to</p>
<pre lang="vb">http://timesurl.at/api/rest.php?url=</pre>
<p>And there you have it. This also works with most other URL shortener sites. If not, just email me and I&#8221;ll write up some code for the site you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/03/timesurl-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TinyURL &amp; .NET</title>
		<link>http://lifeofajackass.com/2009/03/tinyurl-net/</link>
		<comments>http://lifeofajackass.com/2009/03/tinyurl-net/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 13:46:46 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[link short]]></category>
		<category><![CDATA[tinyurl]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=370</guid>
		<description><![CDATA[Ever want to parse a TinyURL in your .NET application? TinyURL has a very simple and easy to use API. I&#8217;ll guide you through the process of returning a TinyURL in VB.NET 2008 and C# .NET 2008 First off you &#8230; <a href="http://lifeofajackass.com/2009/03/tinyurl-net/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever want to parse a TinyURL in your .NET application? TinyURL has a very simple and easy to use API. I&#8217;ll guide you through the process of returning a TinyURL in VB.NET 2008 and C# .NET 2008</p>
<p>First off you want to create a function that returns a string.<br />
Simple enough, this function ask for the parameter of URL and will return a string. </p>
<pre lang="vb">Public Function GetTinyUrl(ByVal URL As String) As String
End Function</pre>
<p>Next you want to make sure you&#8217;re not using the TinyURL service for no reason. The API is designed for links over 30 characters long. So if you have a 20 character URL TinyURL will end up giving you a 20-35 character URL. So let&#8217;s check this first. We&#8217;re going to use the Try/Catch method incase something might go wrong. If so, we&#8217;ll return the users URL back to him.</p>
<pre lang="vb">Try
    If Url.Length &lt;= 30 Then
       Return URL
     End If
Catch
       Return Url
     End Try</pre>
<p>Next we are going to check our link to make sure it starts with &#8220;http&#8221;.</p>
<pre lang="vb">If Not Url.ToLower().StartsWith("http") AndAlso Not Url.ToLower().StartsWith("ftp") Then
  Url = "http://" + Url
End If</pre>
<p>Now that we have that done, lets declare some variables. &#8220;req&#8221; is used to create  our request to use the API, &#8220;rsp&#8221; is used to get the response from our request. Simple enough, right? &#8220;txt&#8221; is used to store our ending result from our Stream Reader.</p>
<pre lang="vb">Dim req As WebRequest = WebRequest.Create("http://tinyurl.com/api-create.php?url=" + Url)
Dim rsp As WebResponse = req.GetResponse()
Dim txt As String</pre>
<p>Now lets actually read our request and store the result in our txt variable. Also, let&#8217;s go ahead and Return our result to the user.</p>
<pre lang="vb">Using rdr As StreamReader = New StreamReader(rsp.GetResponseStream())
          txt = rdr.ReadToEnd()
End Using
Return txt</pre>
<p>Now, let&#8217;s put it all together and we have this. Pass the URL parameter and recieve the TinyURL in return.</p>
<pre lang="vb">    Public Function GetTinyUrl(ByVal URL As String) As String
        Try
            If Url.Length &lt;= 30 Then
                Return URL
            End If
            If Not Url.ToLower().StartsWith("http") AndAlso Not Url.ToLower().StartsWith("ftp") Then
                Url = "http://" + Url
            End If
            Dim req As WebRequest = WebRequest.Create("http://tinyurl.com/api-create.php?url=" + Url)
            Dim rsp As WebResponse = req.GetResponse()
            Dim txt As String
            Using rdr As StreamReader = New StreamReader(rsp.GetResponseStream())
                txt = rdr.ReadToEnd()
            End Using
            Return txt
        Catch
            Return Url
        End Try
    End Function</pre>
<p>I hope this helps you out, and don&#8217;t forget to comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/03/tinyurl-net/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Rapidshare Trick and Hacks</title>
		<link>http://lifeofajackass.com/2009/03/rapidshare-trick-and-hacks/</link>
		<comments>http://lifeofajackass.com/2009/03/rapidshare-trick-and-hacks/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 17:52:37 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[rapidshare]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=346</guid>
		<description><![CDATA[Rapidshare is the most popular site in File sharing but it restrict the free user by applyingdownload limit on daily bassis. Therefore I decided to find a trick or two to bypass the Rapidshare download limit and waiting time. I have gathered some Best Rapidshare &#8230; <a href="http://lifeofajackass.com/2009/03/rapidshare-trick-and-hacks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div><span><strong><span><span>R</span></span>apidshare</strong> is the most popular site in <strong>File sharing</strong> but it restrict the free user by applying<strong>download limit</strong> on daily bassis. Therefore I decided to find a trick or two to bypass the Rapidshare download limit and waiting time.</span></div>
<p><span>I have gathered some <strong>Best Rapidshare tricks and Hack</strong> from various sources and compiled at one place</span></p>
<p><span><strong>Trick No 1</strong>:</span><br />
<span>Request a new IP address from your ISP Server.<br />
1. Click Start </span><br />
<span>2. Click run </span><br />
<span>3. In the run box type cmd and click OK </span><br />
<span>4. When the command prompt opens type the following and hit enter after every new line. </span><br />
<span>ipconfig /flushdns </span><br />
<span>ipconfig /release </span><br />
<span>ipconfig /renew </span><br />
<span>exit</span></p>
<p><span><strong>Trick No 2</strong>:</span><br />
<span>Use Javascript Method</span><br />
<span>1. Goto the page you want to download </span><br />
<span>2.Choose FREE button </span><br />
<span>3. In the address bar put the following: javascript:alert(c=0) </span><br />
<span>4.Hit OK </span><br />
<span>5. Hit OK to the pop-up box </span><br />
<span>6. Enter the captcha Code shown on the Page</span><br />
<span>7. Download Your File</span></p>
<p><span><strong>Trick No 3</strong>:</span><br />
<span>Erase your cookies and cache in browser you are using and try again to download the Rapidshare file again.</span></p>
<p><span><strong>Trick No 4</strong>:</span><br />
<span>Use a bookmarklet to stop your wait times (Only in Internet Explorer):<br />
1. Open IE </span><br />
<span>2. Save “javascript:var%20c=0;” without quotes to Favorites </span><br />
<span>3. Select Yes to the warning that the bookmark may be unsafe. </span><br />
<span>4. Name it “RapidShare No Wait” </span><br />
<span>5. Click on the Links folder (if you want to display it in your IE toolbar) </span><br />
<span>6. Click OK </span><br />
<span>7. You may need to close and reopen IE to see it </span><br />
<span>8. Go to rapidshare and click the bookmarklet when you are forced to wait<br />
</span><br />
<strong><span>Trick No: 5</span></strong></p>
<p><span>Use a proxy with SwitchProxy and Firefox:<br />
</span><span>1.</span> <a class="postlink" href="http://www.mozilla.org/products/firefox/" target="_blank"><span>Download and install Firefox</span></a><br />
<span>2.</span> <a class="postlink" href="http://mozmonkey.com/switchproxy/" target="_blank"><span>Download and install SwitchProxy</span></a><br />
<span>3. When you reach your download limit, clean your cookies and change your proxy.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/03/rapidshare-trick-and-hacks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bypass MegaUpload Limits</title>
		<link>http://lifeofajackass.com/2009/03/bypass-megaupload-limits/</link>
		<comments>http://lifeofajackass.com/2009/03/bypass-megaupload-limits/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 17:35:33 +0000</pubDate>
		<dc:creator>Dremation</dc:creator>
				<category><![CDATA[Tech News]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[bypass limits]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[limits]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mega upload]]></category>
		<category><![CDATA[megaupload]]></category>
		<category><![CDATA[regedit]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://lifeofajackass.com/?p=343</guid>
		<description><![CDATA[For Firefox: First go to http://addons.mozilla.org/firefox/59/ Click Install Now to install addon. Restart FF. Tool–&#62;User Agent Switcher–&#62;Options–&#62;Options Click User Agents–&#62;Add Type this: + Description: MEGAUPLOAD + User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar) Click OK twice &#8230; <a href="http://lifeofajackass.com/2009/03/bypass-megaupload-limits/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>For Firefox:</h3>
<p>First go to <a href="http://addons.mozilla.org/firefox/59/">http://addons.mozilla.org/firefox/59/</a><br />
Click Install Now to install addon.<br />
Restart FF. Tool–&gt;User Agent Switcher–&gt;Options–&gt;Options<br />
Click User Agents–&gt;Add</p>
<p><strong>Type this:</strong></p>
<blockquote><p>+ Description: MEGAUPLOAD<br />
+ User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar)</p></blockquote>
<p>Click OK twice to finish adding User Agent.<br />
From now, before downloading any file from MegaUpload, just go Tools–&gt;User Agent Switcher–&gt;MEGAUPLOAD.</p>
<p> </p>
<h3>For Internet Explorer, Maxthon, Anvant Browser:</h3>
<p>Start–&gt;Run–&gt;Regedit–&gt;OK</p>
<p>In Registry Editor window:</p>
<p><strong>[HKEY_LOCAL_MACHINE\SOFTWARE\Mcft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform]</strong></p>
<blockquote><p>Right click Post Platform–&gt;New–&gt;String Value–&gt; Type “Alexa Toolbar”<br />
Restart PC. Done!</p></blockquote>
<p><strong>Note:</strong> For IE 7.0 the “Post Platform” will located at:</p>
<p><strong>[HKEY_LOCAL_MACHINE\SOFTWARE\Mcft\Windows\CurrentVersion\Internet Settings\User Agent\Post Platform]</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lifeofajackass.com/2009/03/bypass-megaupload-limits/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
