<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>Random Web Tools</title>
	<link>http://www.randomtools.net</link>
	<description>Advice and tools from a young web developer</description>
	<lastBuildDate>Fri, 05 Mar 2010 19:50:07 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>How to Properly Test if jQuery is Loaded</title>
		<description><![CDATA[I saw many people claiming you can test for the existence of jQuery like this:

1
2
3
4
5
if &#40;jQuery&#41; &#123;
	// jQuery exists, put code here
&#125; else &#123;
	// jQuery not loaded, put code here
&#125;

This is incorrect. It will work fine if jQuery is loaded, but if it&#39;s not loaded, javascript will throw an error and the code to execute [...]]]></description>
		<link>http://www.randomtools.net/how-to-properly-test-if-jquery-is-loaded-144.html</link>
			</item>
	<item>
		<title>How to Hide Android WebView Highlight Border (or change it&#8217;s color)</title>
		<description><![CDATA[Here&#39;s one that had me at a loss for a long time that I just figured out. You can easily remove the highlight border (the border that comes up when an element is focused) or change it&#39;s color in a WebView with CSS! The WebKit-specific property &#34;-webkit-tap-highlight-color&#34; is what you&#39;re looking for.
The following line will [...]]]></description>
		<link>http://www.randomtools.net/how-to-hide-android-webview-highlight-border-or-change-its-color-142.html</link>
			</item>
	<item>
		<title>Windows 7 Icons Download</title>
		<description><![CDATA[Looking to use Windows 7 icons in your applications or extensions? Download the following file to conveniently access them.
Download Windows 7 Icons Zip File (8.91 MB)


]]></description>
		<link>http://www.randomtools.net/windows-7-icons-download-138.html</link>
			</item>
	<item>
		<title>PHP RSS Parser &#8211; RSS Reader Class for PHP</title>
		<description><![CDATA[Just had to create a quick RSS parser for PHP and thought I&#8217;d post my solution. The implementation and class follows.

1
2
3
4
5
&#60;?php
$rss = new RSSReader&#40;'http://news.google.com/?output=rss'&#41;;
while &#40;$rss -&#62; hasNext&#40;&#41;&#41;
	print_r&#40;$rss -&#62; next&#40;&#41;&#41;;
?&#62;



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
&#60;?php
class RSSReader &#123;
	var $xml = null;
	var $pos = 0;
	var $count = 0;
&#160;
	function __construct&#40;$feed_url&#41; &#123;
		$this -&#62; load_url&#40;$feed_url&#41;;
	&#125;
&#160;
	function load_url&#40;$feed_url&#41; &#123;
		$this -&#62; load_string&#40;file_get_contents&#40;$feed_url&#41;&#41;;
	&#125;
&#160;
	function load_string&#40;$feed_string&#41; &#123;
		$this -&#62; xml = simplexml_load_string&#40;str_replace&#40;'content:encoded', 'content_encoded', [...]]]></description>
		<link>http://www.randomtools.net/php-rss-parser-rss-reader-class-for-php-133.html</link>
			</item>
	<item>
		<title>Chrome Extensions: History Button, Extensions Button, Downloads Button</title>
		<description><![CDATA[I just created some very simple extensions for Chrome shortly after I taught myself how to create extensions.
As I said, they&#39;re VERY simple, but I find them useful, so I figured it wouldn&#39;t hurt to share them.
Each extension is a simple lightweight extension that adds a shortcut button to your browser for quick access to [...]]]></description>
		<link>http://www.randomtools.net/chrome-extensions-history-button-extensions-button-downloads-button-131.html</link>
			</item>
	<item>
		<title>MySQL Select Count Distinct &#8211; Counting and Identifying Duplicate Records</title>
		<description><![CDATA[
Looking for a [relatively] quick way to identify duplicate records in a table and list how many records there are for each duplicate? Look no further.
In my case, I&#8217;ve got a table named Searches which tracks queries on one of my sites. I wanted to check the top queries, so I used this SQL statement:


1
2
3
4
5
SELECT [...]]]></description>
		<link>http://www.randomtools.net/mysql-select-count-distinct-counting-and-identifying-duplicate-records-125.html</link>
			</item>
	<item>
		<title>30 Google Wave Invites</title>
		<description><![CDATA[







I&#39;ve got 30 more Google Wave invites to give away. Leave a comment with your email and I&#39;ll send them. First come, first serve.
This is actually a nomination and it may take a little while before you get your actual invite.
&#160;
From now on, you must retweet the bitly URL (http://bit.ly/2rwYsG) on twitter and reply to [...]]]></description>
		<link>http://www.randomtools.net/30-google-wave-invites-118.html</link>
			</item>
	<item>
		<title>How to retrive Yahoo Backlinks count with PHP</title>
		<description><![CDATA[Here&#39;s a simple script to retrieve the approximate number of backlinks Yahoo has for a site. The function and how to call it follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function get_yahoo_backlinks_count&#40;$url&#41; &#123;
	$appid = ''; // get this from https://developer.apps.yahoo.com/wsregapp/
	$url = &#34;http://search.yahooapis.com/WebSearchService/V1/webSearch?appid=$appid&#38;query=site:$url&#38;results=1&#34;;
&#160;
	$ch = curl_init&#40;&#41;;
	curl_setopt&#40;$ch, CURLOPT_URL, $url&#41;;
	curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, 1&#41;;
	curl_setopt&#40;$ch, CURLOPT_REFERER, 'http://www.yoursite.com/'&#41;;
	$response = curl_exec&#40;$ch&#41;;
	curl_close&#40;$ch&#41;;
&#160;
	$xml = simplexml_load_string&#40;$response&#41;;
	return $xml -&#62; attributes&#40;&#41; -&#62; totalResultsAvailable;
&#125;
&#160;
echo get_yahoo_backlinks_count&#40;'google.com'&#41;;


]]></description>
		<link>http://www.randomtools.net/how-to-retrive-yahoo-backlinks-count-with-php-113.html</link>
			</item>
	<item>
		<title>How to retrieve Google Backlinks count with PHP</title>
		<description><![CDATA[Here&#8217;s a simple script to retrieve the approximate number of backlinks Google has for a site. The function and how to call it follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function get_google_backlinks_count&#40;$url&#41; &#123;
	$url = &#34;http://ajax.googleapis.com/ajax/services/search/web?v=1.0&#38;amp;q=site:$url&#34;;
&#160;
	$ch = curl_init&#40;&#41;;
	curl_setopt&#40;$ch, CURLOPT_URL, $url&#41;;
	curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, 1&#41;;
	curl_setopt&#40;$ch, CURLOPT_REFERER, 'http://www.yoursite.com/'&#41;;
	$response = curl_exec&#40;$ch&#41;;
	curl_close&#40;$ch&#41;;
&#160;
	$json = json_decode&#40;$response&#41;;
	return $json -&#62; responseData -&#62; cursor -&#62; estimatedResultCount;
&#125;
&#160;
echo get_google_backlinks_count&#40;'yahoo.com'&#41;;


]]></description>
		<link>http://www.randomtools.net/how-to-retrieve-google-backlinks-count-with-php-109.html</link>
			</item>
	<item>
		<title>How to fix linux not sending mail problem: Sendmail stat=Deferred: Connection refused by [127.0.0.1]</title>
		<description><![CDATA[
	I recently experienced a problem where my server was not sending mail from the PHP mail() function or the command line &#34;mail&#34; function. After looking through /var/log/maillog, I was able to see that the local 127.0.0.1 mail server was refusing the connection. Some Google searching landed me at the following thread, where the third post [...]]]></description>
		<link>http://www.randomtools.net/how-to-fix-linux-not-sending-mail-problem-sendmail-statdeferred-connection-refused-by-127-0-0-1-106.html</link>
			</item>
</channel>
</rss>
