<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5" -->
<rss version="0.92">
<channel>
	<title>A Blue Star</title>
	<link>http://www.abluestar.com/blog</link>
	<description>Rantings from Steven smethurst</description>
	<lastBuildDate>Tue, 22 Jul 2008 20:02:46 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>The procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll</title>
		<description>The procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll
This error is caused by a 3rd party utility or applcation overwriting your msvcrt.dll with a different version.

For example if a windows vista version of this DLL was copied on to a windows XP computer you would ...</description>
		<link>http://www.abluestar.com/blog/the-procedure-entry-point_except_handler4_common-could-not-be-located-in-the-dynamic-link-library-msvcrtdll/</link>
			</item>
	<item>
		<title>Your daily WTF</title>
		<description>I found this today while doing code review.

it was ment to be a sleep timer...
I just about shit a brick when I saw this.

for(int i=0; i&#60;PAUSE_LENGTH; i++)
{
i++;
}
 </description>
		<link>http://www.abluestar.com/blog/your-daily-wtf/</link>
			</item>
	<item>
		<title>Insert new post in to wordpress from php</title>
		<description>This code snippet should let you add a new post to your wordpress database 2.5.1 

require_once('wp-config.php');

//&#160;create&#160;post&#160;object
class&#160;wm_mypost&#160;{
&#160;&#160;&#160;&#160;var&#160;$post_title;
&#160;&#160;&#160;&#160;var&#160;$post_content;
&#160;&#160;&#160;&#160;var&#160;$post_status;&#160;&#160;&#160;&#160;/*&#160;publish,&#160;private&#160;*/
&#160;&#160;&#160;&#160;var&#160;$post_author;&#160;&#160;&#160;&#160;/*&#160;author&#160;user&#160;id&#160;(optional)&#160;*/
&#160;&#160;&#160;&#160;var&#160;$post_name;&#160;&#160;&#160;&#160;&#160;&#160;/*&#160;slug&#160;(optional)&#160;*/
&#160;&#160;&#160;&#160;var&#160;$post_type;&#160;&#160;&#160;&#160;&#160;&#160;/*&#160;'page'&#160;or&#160;'post'&#160;(optional,&#160;defaults&#160;to&#160;'post')&#160;*/
&#160;&#160;&#160;&#160;var&#160;$comment_status;&#160;/*&#160;open&#160;or&#160;closed&#160;for&#160;commenting&#160;(optional)&#160;*/
&#160;&#160;&#160;&#160;var&#160;$post_category&#160;;&#160;
}

//&#160;initialize&#160;post&#160;object
$wm_mypost&#160;=&#160;new&#160;wm_mypost();
$wm_mypost->post_title&#160;&#160;&#160;&#160;=&#160;&#34;Title2&#160;&#34;.&#160;date(&#160;'r'&#160;);
$wm_mypost->post_content&#160;&#160;=&#160;&#34;content3&#34;;
$wm_mypost->post_status&#160;&#160;&#160;=&#160;'publish';&#160;
$wm_mypost->post_author&#160;&#160;&#160;=&#160;1;

//&#160;Catagorys
$post_category&#160;=&#160;split(&#34;,&#34;&#160;,&#160;&#34;one&#34;);
foreach($post_category&#160;as&#160;$key=>$val)&#160;{
&#160;&#160;&#160;&#160;$post_category[$key]&#160;=&#160;get_cat_ID($val);
}
$wm_mypost->post_category&#160;=&#160;&#160;$post_category&#160;;&#160;

//&#160;Optional;&#160;uncomment&#160;as&#160;needed
//&#160;$wm_mypost->post_type&#160;=&#160;'page';
//&#160;$wm_mypost->comment_status&#160;=&#160;'closed';

//&#160;feed&#160;object&#160;to&#160;wp_insert_post
$post_ID&#160;=&#160;wp_insert_post($wm_mypost);
echo&#160;date(&#160;'r'&#160;)&#160;.&#160;&#34;\n&#34;;
echo&#160;&#34;post_ID:&#34;.&#160;$post_ID&#160;.&#160;&#34;\n&#34;;&#160; </description>
		<link>http://www.abluestar.com/blog/insert-new-post-in-to-wordpress-from-php/</link>
			</item>
	<item>
		<title>How to make a CMinMaxAvg class</title>
		<description>I got asked how to create a simple averaging class.
If you where feeling smart you could enhance this class in to a template class for a object that has the =,+,&#62;,&#60; operator. But I'm feeling lazy today.
class CMinMaxAvg
{
private :
int	m_count;
int	m_total;
int	m_min;
int	m_max;
public:

CMinMaxAvg() {
m_count = 0 ;
m_total = 0 ;
m_min   = 0 ...</description>
		<link>http://www.abluestar.com/blog/how-to-make-a-cminmaxavg-class/</link>
			</item>
	<item>
		<title>How to install PHPBB 3.0.1</title>
		<description>This tutorial will walk you thou the steps to install PHPBB3 on your system.

Intro 

PHPBB3 has become one of the more popular bulletin board system (AKA, BBS, or forums) available. It is used for all types of websites, from corporate websites, online stores, online hobby groups, ect.  One of the ...</description>
		<link>http://www.abluestar.com/blog/how-to-install-phpbb-301/</link>
			</item>
	<item>
		<title>Anti-Counterfeiting Trade Agreement = BAD</title>
		<description>Have you heard about the ‘Anti-Counterfeiting Trade Agreement,’
The agreement is being structured much like the North American Free Trade Agreement (NAFTA) except it will create rules and regulations regarding private copying and copyright laws.
Federal trade agreements do not require parliamentary approval.
The deal would create a international regulator that could turn ...</description>
		<link>http://www.abluestar.com/blog/anti-counterfeiting-trade-agreement-bad/</link>
			</item>
	<item>
		<title>How to block spam on a wordpress Blog</title>
		<description>To help stop spam activate the Akismet plugin.

	Login to your wordpress blog
	On the right hand side there is a pugin button, click it
	Activate Akismet plugin (download here if its not all ready installed)
	Get a Wordpress API key http://wordpress.com/api-keys/ (its free)
	Set the Wordpress API key in the Akismet settings page.

99.98 % ...</description>
		<link>http://www.abluestar.com/blog/how-to-block-spam-on-a-wordpress-blog/</link>
			</item>
	<item>
		<title>NSIS - tips and tricks</title>
		<description>I create a lot of windows application to make things easier for my customers. The simple act of coping a file from an email to a certain directory can become the most complicated tasks for a certain type of customer.

I use an Scriptable Install System provided by NullSoft called NSIS ...</description>
		<link>http://www.abluestar.com/blog/nsis-tips-and-tricks/</link>
			</item>
	<item>
		<title>Rule 34: If it exists, there is porn of it. No exceptions.</title>
		<description>

http://xkcd.com/305/

Rule 34: If it exists, there is porn of it. No exceptions. </description>
		<link>http://www.abluestar.com/blog/rule-34-if-it-exists-there-is-porn-of-it-no-exceptions/</link>
			</item>
	<item>
		<title>XKCD - Social-b 99.1</title>
		<description>

http://xkcd.com/330/

Rule Social-b. 99.1
If friends spend more then 60 minutes unable to decide what to do, they must default to sexual experimentation. </description>
		<link>http://www.abluestar.com/blog/xkcd-social-b-991/</link>
			</item>
	<item>
		<title>Rabo Encendido(Cuban Oxtail Stew)</title>
		<description>Ingredients

	 5 lbs oxtail, cut in 2 inch thick rounds
	 1 cup flour
	 1/2 cup cajun seasoning
	 3 tablespoons olive oil
	 1 cup port wine
	 1 large Spanish onion, diced
	 1 large carrot
	 3 stalks celery, diced
	 3 italian frying bell pepper, cut into large pieces
	 1 cup red wine
	 ...</description>
		<link>http://www.abluestar.com/blog/rabo-encendidocuban-oxtail-stew/</link>
			</item>
	<item>
		<title>WHAT IS reCAPTCHA</title>
		<description>
 A CAPTCHA is a program that can tell whether its user is a human or a computer. You've probably seen them — colorful images with distorted text at the bottom of Web registration forms. CAPTCHAs are used by many websites to prevent abuse from "bots," or automated programs usually ...</description>
		<link>http://www.abluestar.com/blog/what-is-recaptcha/</link>
			</item>
	<item>
		<title>Bar Tricks</title>
		<description>

You've been buying your own booze at the local bar like a sucker ever since you turned 21. But with a stiff shot of science, you can hustle the tipsy into picking up your tab. Try this pub magic to score yourself some free rounds. — William Snyder
Wired has a ...</description>
		<link>http://www.abluestar.com/blog/bar-tricks/</link>
			</item>
	<item>
		<title>PHP strip non alphanumeric</title>
		<description>On EveryDayFiction.com, in the titles of the posts our editors insisted on including a non alphanumeric character.
The little dot that separates the title from the author. This causes havoc with a lot of my scripts and is really freaking annoying.

This handy little function strips all the non  alphanumeric character from ...</description>
		<link>http://www.abluestar.com/blog/php-strip-non-alphanumeric/</link>
			</item>
	<item>
		<title>Last windows boot time, Install date</title>
		<description>Do you remember the exact date or time when you last switched on the computer ?
Here’s a simple DOS command to help you out:
systeminfo &#124; find /i “boot time”
This will show the time when you last rebooted the computer.
If you want to know when you stalled windows on your PC
systeminfo ...</description>
		<link>http://www.abluestar.com/blog/last-windows-boot-time-install-date/</link>
			</item>
	<item>
		<title>The quick and dirty way of getting the size of a file up to 4GB.</title>
		<description>I'm often surprised how many times this question has come up by beginner programmers.
How do you tell the size of a file in win32?

This method will fail on files greater then 4GB, and its slower then other methods but it quick and easy as long as you are not dealing ...</description>
		<link>http://www.abluestar.com/blog/the-quick-and-dirty-way-of-getting-the-size-of-a-file-up-to-4gb/</link>
			</item>
	<item>
		<title>403 - An arrogant initiative in defense of the web</title>
		<description>I hate internet explorer, I hate it so much. At lest once a day I curse it to the pits of hell to be torched endlessly by a Richard Simmons kazoo band. My hate for internet explorer mainly comes from my own laziness, I just don't want to spend the ...</description>
		<link>http://www.abluestar.com/blog/403-an-arrogant-initiative-in-defense-of-the-web/</link>
			</item>
	<item>
		<title>Leap Year post!</title>
		<description>February 29 is a date that only occurs once every four years, and is called leap day. This day is added to the calendar in leap years as a corrective measure, because the earth does not orbit around the sun in precisely 365.000 days.
The chance of being born on leap ...</description>
		<link>http://www.abluestar.com/blog/leap-year-post/</link>
			</item>
	<item>
		<title>Open DNS</title>
		<description>OpenDNS is a custom DNS server that you can use instead of using your IPS's DNS server.
It checks any address that you lookup against its own list of bad sites (phishing scams, and other things) and redirects you accordingly. It also provides a simple way of enabling/disabling blocking of adult ...</description>
		<link>http://www.abluestar.com/blog/opendns/</link>
			</item>
	<item>
		<title>How to disable AVG 7 temporarily.</title>
		<description>There are various reasons to disable your anti virus temporarily.
AVG 7 does not make it easy to disable it.

 Instructions 

	Right click on the AVG icon in your system tray (bottom right next to the clock)
	Select "Launch AVG Free Control Center"
	On the Security status page, you should see a list of items ...</description>
		<link>http://www.abluestar.com/blog/how-to-disable-avg-7-temporarily/</link>
			</item>
	<item>
		<title>Tom Kha Gai</title>
		<description>This is a mild but spicy chicken soup (it can also be made with shrimp, pork, beef or mushrooms), flavored with the very unique flavor of galangal ("kha" in Thai) which creates a heavenly taste when combined with hot chile peppers, coconut milk, lime leaves and lemongrass.

Ingredients

	16 fluid ounces soup ...</description>
		<link>http://www.abluestar.com/blog/tom-kha-gai/</link>
			</item>
	<item>
		<title>Links to torrent sites</title>
		<description>This is a list of torrent sites that I use regularly. Ranked by popularity

	http://www.mininova.org/
	http://www.youtorrent.com/
	http://thepiratebay.org/
	http://isohunt.com/

My favorite bit torrent client is http://www.utorrent.com/ </description>
		<link>http://www.abluestar.com/blog/links-to-torrent-sites/</link>
			</item>
	<item>
		<title>VS6 SP6</title>
		<description>For the poor SOB that are still using Visual studios 6, I have uploaded a copy of the service pack 6 to my website for reference.
Feel free to download it, you have my sympathy

http://www.abluestar.com/dev/sdk/vcsetup.exe </description>
		<link>http://www.abluestar.com/blog/vs6-sp6/</link>
			</item>
	<item>
		<title>Twitter vs Tumblr</title>
		<description>Introduction
There has been a lot of talk recently about the micro blogging. Micro blogging is a blogging platform that lets you post very small updates about your life, to help keep you and your friends up to date with each others lives. The services are kept very simple so anyone ...</description>
		<link>http://www.abluestar.com/blog/twitter-vs-tumblr/</link>
			</item>
	<item>
		<title>If you build it they will come mentality&#8230;</title>
		<description>If you build it they will come. That’s the mentality that most people have when building there first website. That’s just not the way the internet works. You have to advertise, you have to tell people that you exist.

Ask your self how you found the last item you purchased from ...</description>
		<link>http://www.abluestar.com/blog/if-you-build-it-they-will-come-mentality/</link>
			</item>
	<item>
		<title>Disable and Enable MFC controls by name</title>
		<description>I use this snippet all the time to disable/enable, hide/show, move MFC controls.


// Enables and disables an MFC control by name
void CCILikeChease::EnableControl( int iControl, bool enable )
{
// Enable Control
     CWnd* wnd_control = (CWnd*)( GetDlgItem( iControl ) );
      if( wnd_control != NULL ) {
           wnd_control-&#62;EnableWindow( enable ) ;
     ...</description>
		<link>http://www.abluestar.com/blog/disable-and-enable-mfc-controls-by-name/</link>
			</item>
	<item>
		<title>How to access Facebook&#8217;s data</title>
		<description>In my last article I talked about how to create a very simple Facebook Application.
We created a simple hello world application that didn't do too much besides login to the Facebook API.

In this article we are going to use the Facebook API to access you and your friends information.
We are ...</description>
		<link>http://www.abluestar.com/blog/how-to-access-facebooks-data/</link>
			</item>
	<item>
		<title>How to make a facebook applcation.</title>
		<description>We are going to build a simple facebook application to demonstrate how to use the Facebook API.

Requirements:

	Basic knowledge of php
	A webserver running php5 that is open to the internet.
	A facebook account (sign up)

Directions

	Add the developers application to your facebook account.
Goto: http://www.facebook.com/developers/ and add the developers application to your account.
After you ...</description>
		<link>http://www.abluestar.com/blog/how-to-make-a-facebook-applcation/</link>
			</item>
	<item>
		<title>Coyote catches the road runner</title>
		<description>

Finely! </description>
		<link>http://www.abluestar.com/blog/coyote-catches-the-road-runner/</link>
			</item>
	<item>
		<title>How to beat 9 grandmasters at once</title>
		<description> </description>
		<link>http://www.abluestar.com/blog/how-to-beat-9-grandmasters-at-once/</link>
			</item>
</channel>
</rss>
