<?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>BncApps &#187; Twitter</title>
	<atom:link href="http://bncapps.com/category/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://bncapps.com</link>
	<description>Open Source Applications and General Technology Blog</description>
	<lastBuildDate>Sat, 11 Dec 2010 23:48:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Java Twitter Timestamp to Unix Timestamp</title>
		<link>http://bncapps.com/java-twitter-timestamp-to-unix-timestamp/</link>
		<comments>http://bncapps.com/java-twitter-timestamp-to-unix-timestamp/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 23:48:23 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[convert twitter time to unix time]]></category>
		<category><![CDATA[java timestmap]]></category>
		<category><![CDATA[unix timestamp]]></category>

		<guid isPermaLink="false">http://bncapps.com/?p=558</guid>
		<description><![CDATA[The Twitter API is very unorganized, everything is in obscure formats that need to be converted into something that can easily be worked with. The Date stamp returned on all tweets is in a format that is not easily search able through a database, or compared to. Here is a simple method that will convert [...]]]></description>
			<content:encoded><![CDATA[<p>The Twitter API is very unorganized, everything is in obscure formats that need to be converted into something that can easily be worked with.<br />
The Date stamp returned on all tweets is in a format that is not easily search able through a database, or compared to.</p>
<p>Here is a simple method that will convert the Twitter time string to a unix timestamp:</p>
<pre class="java">&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">long</span> twitterStampToTimestamp<span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> twitterStamp<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #993333;">long</span> timestamp = <span style="color: #cc66cc;">0</span>;
    <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span>
      <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADateFormat+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">DateFormat</span></a> formatter ;
      <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADate+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Date</span></a> date;
      formatter = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASimpleDateFormat+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">SimpleDateFormat</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;EEE MMM d kk:mm:ss Z yyyy&quot;</span><span style="color: #66cc66;">&#41;</span>;
      date = <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADate+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Date</span></a><span style="color: #66cc66;">&#41;</span>formatter.<span style="color: #006600;">parse</span><span style="color: #66cc66;">&#40;</span>twitterStamp<span style="color: #66cc66;">&#41;</span>;
      java.<span style="color: #006600;">sql</span>.<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ATimestamp+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Timestamp</span></a> timeStampDate = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ATimestamp+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Timestamp</span></a><span style="color: #66cc66;">&#40;</span>date.<span style="color: #006600;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
      timestamp = date.<span style="color: #006600;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> / <span style="color: #cc66cc;">1000</span>;
    <span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AException+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>e.<span style="color: #006600;">printStackTrace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">return</span> timestamp;
  <span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>That should help anyone who needs to convert the twitter timestamp to a unix timestamp in Java.</p>
<p>Also, this can easily be adapted to other languages, as the main structure is found in the Date format: "EEE MMM d kk:mm:ss Z yyyy"</p>
]]></content:encoded>
			<wfw:commentRss>http://bncapps.com/java-twitter-timestamp-to-unix-timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Parsing Twitter Tweets</title>
		<link>http://bncapps.com/java-parsing-twitter-tweets/</link>
		<comments>http://bncapps.com/java-parsing-twitter-tweets/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 17:45:51 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://bncapps.com/?p=555</guid>
		<description><![CDATA[Another method I needed for my Twitter Client I am developing was a way to parse the tweets. By this, I mean make links, hashtags and usernames clickable. I did this using Regex. To make use of the regex library, you will need to import: &#160; import java.util.regex.*; &#160; Here is the full code, pass [...]]]></description>
			<content:encoded><![CDATA[<p>Another method I needed for my Twitter Client I am developing was a way to parse the tweets. By this, I mean make links, hashtags and usernames clickable.</p>
<p>I did this using Regex.<br />
To make use of the regex library, you will need to import:</p>
<pre class="java">&nbsp;
<span style="color: #a1a100;">import java.util.regex.*;</span>
&nbsp;</pre>
<p>Here is the full code, pass in the tweet, and it will return the tweet with the proper linking.</p>
<pre class="java">&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> parseTweet<span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> inTweet<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> patternStr = <span style="color: #ff0000;">&quot;(?:<span style="color: #000099; font-weight: bold;">\\</span>s|<span style="color: #000099; font-weight: bold;">\\</span>A)[##]+([A-Za-z0-9-_]+)&quot;</span>;
    Pattern pattern = Pattern.<span style="color: #006600;">compile</span><span style="color: #66cc66;">&#40;</span>patternStr<span style="color: #66cc66;">&#41;</span>;
    Matcher matcher = pattern.<span style="color: #006600;">matcher</span><span style="color: #66cc66;">&#40;</span>inTweet<span style="color: #66cc66;">&#41;</span>;
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> foundValue = <span style="color: #ff0000;">&quot;&quot;</span>;
    <span style="color: #808080; font-style: italic;">//hash tags</span>
    <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>matcher.<span style="color: #006600;">find</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
      foundValue = matcher.<span style="color: #006600;">group</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
      foundValue = foundValue.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot; &quot;</span>,<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
      inTweet = inTweet.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span>foundValue, <span style="color: #ff0000;">&quot;&lt;a href='http://search.twitter.com/search?q=&quot;</span> + foundValue + <span style="color: #ff0000;">&quot;'&gt;&quot;</span> + foundValue + <span style="color: #ff0000;">&quot;&lt;/a&gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">//Users</span>
    patternStr = <span style="color: #ff0000;">&quot;(?:<span style="color: #000099; font-weight: bold;">\\</span>s|<span style="color: #000099; font-weight: bold;">\\</span>A)[@]+([A-Za-z0-9-_]+)&quot;</span>;
    pattern = Pattern.<span style="color: #006600;">compile</span><span style="color: #66cc66;">&#40;</span>patternStr<span style="color: #66cc66;">&#41;</span>;
    matcher = pattern.<span style="color: #006600;">matcher</span><span style="color: #66cc66;">&#40;</span>inTweet<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>matcher.<span style="color: #006600;">find</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
      foundValue = matcher.<span style="color: #006600;">group</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
      foundValue = foundValue.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot; &quot;</span>,<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
      <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> rawName = foundValue.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;@&quot;</span>,<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
      inTweet = inTweet.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span>foundValue, <span style="color: #ff0000;">&quot;&lt;a href='http://twitter.com/&quot;</span> + rawName + <span style="color: #ff0000;">&quot;'&gt;&quot;</span> + foundValue + <span style="color: #ff0000;">&quot;&lt;/a&gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">//links</span>
    patternStr = <span style="color: #ff0000;">&quot;(^|[ <span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>])((ftp|http|https|mailto|aim|webcal|skype):(([A-Za-z0-9$_.+!*(),;/?:@&amp;~=-])|%[A-Fa-f0-9]{2}){2,}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*(),;/?:@&amp;~=%-]*))?([A-Za-z0-9$_+!*();/?:~-]))&quot;</span>;
    pattern = Pattern.<span style="color: #006600;">compile</span><span style="color: #66cc66;">&#40;</span>patternStr<span style="color: #66cc66;">&#41;</span>;
    matcher = pattern.<span style="color: #006600;">matcher</span><span style="color: #66cc66;">&#40;</span>inTweet<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>matcher.<span style="color: #006600;">find</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
      foundValue = matcher.<span style="color: #006600;">group</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
      foundValue = foundValue.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot; &quot;</span>,<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
      inTweet = inTweet.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span>foundValue, <span style="color: #ff0000;">&quot;&lt;a href='&quot;</span> + foundValue + <span style="color: #ff0000;">&quot;' target='_blank'&gt;&quot;</span> + foundValue + <span style="color: #ff0000;">&quot;&lt;/a&gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">return</span> inTweet;
  <span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>And thats it! One method to handle everything. </p>
]]></content:encoded>
			<wfw:commentRss>http://bncapps.com/java-parsing-twitter-tweets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Account Validation Script</title>
		<link>http://bncapps.com/twitter-account-validation-script/</link>
		<comments>http://bncapps.com/twitter-account-validation-script/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 03:42:48 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[twitter account validation]]></category>

		<guid isPermaLink="false">http://bncapps.com/?p=491</guid>
		<description><![CDATA[I have many Twitter accounts I need to manage, and recently a few of them have been hacked, or the passwords got changed for a few hours, then changed back. Instead of finding out too late when this happens, I decided to write a script that checks them, and emails me notifying me if the [...]]]></description>
			<content:encoded><![CDATA[<p>I have many Twitter accounts I need to manage, and recently a few of them have been hacked, or the passwords got changed for a few hours, then changed back. Instead of finding out too late when this happens, I decided to write a script that checks them, and emails me notifying me if the passwords are invalid. </p>
<p>I use my function from this post: <a href="http://bncapps.com/php-verifying-twitter-credentials-using-fsock/">Verifying Twitter Credentials using fsock</a></p>
<p>See the full article for more!<br />
<span id="more-491"></span><br />
<center><script type="text/javascript"><!--
google_ad_client = "pub-5038888073735758";
google_ad_slot = "9247579423";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$emailaddress</span> = <span style="color: #ff0000;">'youremail@domain.com'</span>;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> verifyCredentials<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$username</span>, <span style="color: #0000ff;">$password</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
<span style="color: #0000ff;">$out</span>=<span style="color: #ff0000;">&quot;GET http://twitter.com/account/verify_credentials.xml HTTP/1.1<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
  .<span style="color: #ff0000;">&quot;Host: twitter.com<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
  .<span style="color: #ff0000;">&quot;Authorization: Basic &quot;</span>.<a href="http://www.php.net/base64_encode"><span style="color: #000066;">base64_encode</span></a> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$username</span>.<span style="color: #ff0000;">&quot;:&quot;</span>.<span style="color: #0000ff;">$password</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
  .<span style="color: #ff0000;">&quot;Content-type: application/x-www-form-urlencoded<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
  .<span style="color: #ff0000;">&quot;Connection: Close<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
&nbsp;
<span style="color: #0000ff;">$fp</span> = <a href="http://www.php.net/fsockopen"><span style="color: #000066;">fsockopen</span></a> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'twitter.com'</span>, <span style="color: #cc66cc;">80</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/fwrite"><span style="color: #000066;">fwrite</span></a> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span>, <span style="color: #0000ff;">$out</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$buf</span> = <a href="http://www.php.net/fread"><span style="color: #000066;">fread</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span>, <span style="color: #cc66cc;">1024</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/fclose"><span style="color: #000066;">fclose</span></a> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span><span style="color: #66cc66;">&#41;</span>;
 <span style="color: #0000ff;">$pos</span> = <a href="http://www.php.net/strpos"><span style="color: #000066;">strpos</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$buf</span>,<span style="color: #ff0000;">'Could not'</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$pos</span> === <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">1</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">0</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">$u</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'Twitteruser1'</span>;
<span style="color: #0000ff;">$p</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'twitterpass1'</span>;
<span style="color: #0000ff;">$u</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'Twitteruser2'</span>;
<span style="color: #0000ff;">$p</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'twitterpass2'</span><span style="color: #ff0000;">';
$errors = 0;
$total = count($u);
for ($i = 0; $i&lt;$total; $i++){
$TwitterValid = new TwitterValid($u[$i],$p[$i]);
$validation = verifyCredentials($u[$i],$p[$i]);
if ($validation == 0){
$v[$i] = '</span>INVALID<span style="color: #ff0000;">';
$errors = 1;
}else{
$v[$i] = '</span>VALID<span style="color: #ff0000;">';
}
}
if ($errors == 1){
for ($i = 0; $i&lt;$total; $i++){
	$summary = $summary. &quot;$u[$i] - $v[$i]<span style="color: #000099; font-weight: bold;">\n</span>&quot;;
}
$headers .= &quot;MIME-Version: 1.0<span style="color: #000099; font-weight: bold;">\n</span>&quot;;
$headers = '</span>From: Validation@<span style="color: #ff0000;">'.preg_replace('</span><span style="color: #808080; font-style: italic;">#^www\.#', '', strtolower($_SERVER['SERVER_NAME']))  . &quot;\n&quot;;</span>
<span style="color: #0000ff;">$headers</span> .= <span style="color: #ff0000;">&quot;Content-Type: text/plain<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
<span style="color: #0000ff;">$mail_Subject</span> = <span style="color: #ff0000;">&quot;Twitter Accounts - Invalid!&quot;</span>;
<span style="color: #0000ff;">$mail_Body</span> = <span style="color: #ff0000;">&quot;At least one account showed up with an invalid password!
Summary:
$summary
&quot;</span>;
<a href="http://www.php.net/mail"><span style="color: #000066;">mail</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$emailaddress</span>, <span style="color: #0000ff;">$mail_Subject</span>, <span style="color: #0000ff;">$mail_Body</span>,<span style="color: #0000ff;">$headers</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>So basically, you would add an aditional<br />
$u[0] = 'Twitteruser1';<br />
$p[0] = 'twitterpass1';<br />
For each account, obviously incrementing the array size.</p>
<p>I use cronjobs each hour to run this script and it emails me only if any of the accounts appear invalid.</p>
]]></content:encoded>
			<wfw:commentRss>http://bncapps.com/twitter-account-validation-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mass Tweet Lottery</title>
		<link>http://bncapps.com/mass-tweet-lottery/</link>
		<comments>http://bncapps.com/mass-tweet-lottery/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 16:53:06 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://bncapps.com/?p=484</guid>
		<description><![CDATA[This is my new project, launched today. It is called the Mass Tweet Lottery and it is basically a unique style of Twitter Lottery. Once you join, you have the random chance of being chosen daily. If you win, you gain a credit. Credits can be cashed in to Mass Tweet a message through all [...]]]></description>
			<content:encoded><![CDATA[<p>This is my new project, launched today.</p>
<p>It is called the Mass Tweet Lottery and it is basically a unique style of Twitter Lottery. Once you join, you have the random chance of being chosen daily. If you win, you gain a credit. Credits can be cashed in to Mass Tweet a message through all participants accounts. Account information must be stored for this to work, but it is stored securely and is not shared with anybody.</p>
<p>So if you want the chance to win the ability to mass message hundreds (soon to be thousands) of follwers at once, give it a try.</p>
<p><a href="http://MassTweetLottery.com">http://MassTweetLottery.com</a><br />
<a href="http://digg.com/software/Mass_Tweet_Lottery_Twitter_Lottery" rel="nofollow">Digg It</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bncapps.com/mass-tweet-lottery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
