<?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>Dave Amenta .com &#187; Twitter</title>
	<atom:link href="http://www.daveamenta.com/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveamenta.com</link>
	<description>(dot (at dave daveamenta) com)</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:22:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Update Digsby Status automatically when on Twitter update!</title>
		<link>http://www.daveamenta.com/2008-07/update-digsby-status-automatically-when-on-twitter-update/</link>
		<comments>http://www.daveamenta.com/2008-07/update-digsby-status-automatically-when-on-twitter-update/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 03:55:20 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Digsby]]></category>
		<category><![CDATA[DigsbyStatus]]></category>
		<category><![CDATA[DigsbyTwitter]]></category>
		<category><![CDATA[DigTweet]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.daveamenta.com/?p=77</guid>
		<description><![CDATA[As I mentioned in my previous post, I was working on a solution to sync the twitter update status (one-way), with Digsby&#8217;s status.  This works great for those that update twitter throughout the day with contact information and such important things.  This is a simple console application that makes use of the DigsbyStatus.exe to update [...]]]></description>
			<content:encoded><![CDATA[<p>As I mentioned in my previous post, I was working on a solution to sync the twitter update status (one-way), with Digsby&#8217;s status.  This works great for those that update twitter throughout the day with contact information and such important things.  This is a simple console application that makes use of the DigsbyStatus.exe to update the status.</p>
<p>It isn&#8217;t a full XML parser and could probably be broken pretty easily by other RSS feeds, so I wouldn&#8217;t recommend trying that.</p>
<p>Using the utility is easy, just make sure the DigTweet.exe and DigsbyStatus.exe are in the same folder, and pull up a command prompt.</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">DigTweet.<span style="color: #202020;">exe</span> RssLink</pre></div></div>

<p>So for example, to sync to my feed, I would enter:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">DigTweet.<span style="color: #202020;">exe</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//twitter.com/statuses/user_timeline/14261383.rss</span></pre></div></div>

<p>You can find your Twitter RSS feed at the bottom of your personal page (<strong>not</strong> your homepage, that link will go to a feed of everyone&#8217;s status).</p>
<p>If you like, you can make a single-click batch file.  Just open notepad and enter the following:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">DigTweet.<span style="color: #202020;">exe</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//twitter.com/statuses/user_timeline/14261383.rss</span></pre></div></div>

<p>Change the RSS path to your own, and save the file as <strong>StartDigTweet.bat</strong>.  Be careful to not have &#8216;.txt&#8217; appended to the end by notepad.  Click this file and the window will open.  You can largely ignore what it&#8217;s saying, just minimize it and go on with whatever you&#8217;d normally do.  Tweets are only updated ONCE, so if it changes the status, and you switch to something else, it won&#8217;t be overwritten until a) you restart DigTweet, or b) you have something new in the &#8220;top slot&#8221; in your feed.  (Note: deleting a tweet will cause a sync on the previous tweet)</p>
<p>You can grab a copy of <a href="/download/DigTweet_100.zip">DigTweet</a> today.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daveamenta.com/2008-07/update-digsby-status-automatically-when-on-twitter-update/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Set Digsby Status from Command Line</title>
		<link>http://www.daveamenta.com/2008-07/set-digsby-status-from-command-line/</link>
		<comments>http://www.daveamenta.com/2008-07/set-digsby-status-from-command-line/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 03:03:33 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Digsby]]></category>
		<category><![CDATA[DigsbyStatus]]></category>
		<category><![CDATA[DigsbyTwitter]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.daveamenta.com/?p=76</guid>
		<description><![CDATA[There was a request today on the Digsby forums about setting the status based on a twitter feed.  I thought this was a great idea, since this is something I could use.  Normally I don&#8217;t use status message at all &#8211; but I do twitter. I set to work figuring out how to set the [...]]]></description>
			<content:encoded><![CDATA[<p>There was a request today on the <a href="http://www.digsby.com">Digsby</a> forums about setting the status based on a twitter feed.  I thought this was a great idea, since this is something I could use.  Normally I don&#8217;t use status message at all &#8211; but I do twitter.</p>
<p>I set to work figuring out how to set the status from outside the application.  I went with the same approach that I had used before, simulating a local user via Win32 Window messages.  This is a great solution because it doesn&#8217;t interfere with any actions that a user may be performing locally &#8211; you don&#8217;t even know it is happening.</p>
<p>I broke this project up into the two logical components, the part that gets the twitter feed and the part that actually does the work of setting the status.  What I&#8217;ve come up with is a little command line utility to set the status.</p>
<p>It can be used like so:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">DigsbyStatus.<span style="color: #202020;">exe</span> <span style="color: #ff0000;">&quot;This is my new status message&quot;</span></pre></div></div>

<p>Or, to clear the status:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">DigsbyStatus.<span style="color: #202020;">exe</span> <span style="color: #ff0000;">&quot;&quot;</span></pre></div></div>

<p>Quotes are needed as to simulate a &#8220;blank&#8221; argument.  The status classification can&#8217;t be changed, so you will still be available or away based on the protocol and the last state of the computer.  I figure someone else might find this useful to, say, update status based on some unsupported media player.</p>
<p>Download: <a href="/download/DigsbyStatus_100.zip">DigsbyStatus_100.zip</a> [10KB]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daveamenta.com/2008-07/set-digsby-status-from-command-line/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tweet from mIRC &#124; mIRC Twitter</title>
		<link>http://www.daveamenta.com/2008-05/tweet-from-mirc/</link>
		<comments>http://www.daveamenta.com/2008-05/tweet-from-mirc/#comments</comments>
		<pubDate>Sun, 04 May 2008 02:24:30 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[mIRC]]></category>
		<category><![CDATA[Tweet]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.daveamenta.com/?p=13</guid>
		<description><![CDATA[Twitter is great, and it&#8217;s nice that there is more than one way to send a tweet (message) out, you can use Web, SMS or Google Talk (or even Digsby!). But what if you&#8217;re a heavy mIRC user, or if you just like to have more ways to tweet? Clint, on DALnet/#system was working on [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.daveamenta.com/wp-content/uploads/2008/05/mirc.jpg"><img class="alignnone size-full wp-image-14 aligncenter" title="mirc" src="http://www.daveamenta.com/wp-content/uploads/2008/05/mirc.jpg" alt="" width="44" height="45" /></a></p>
<p style="text-align: center;">
<p>Twitter is great, and it&#8217;s nice that there is more than one way to send a tweet (message) out, you can use Web, SMS or Google Talk (or even <a href="http://www.digsby.com/" target="_blank">Digsby</a>!).  But what if you&#8217;re a heavy mIRC user, or if you just like to have more ways to tweet?  Clint, on DALnet/#system was working on this, and I&#8217;ve added a few things that I think are worth sharing.</p>
<p><strong>How can I use twitter through mIRC?</strong></p>
<p>This would be entered into the <strong>Remote</strong> script section in mIRC:</p>

<div class="wp_syntax"><div class="code"><pre class="mirc" style="font-family:monospace;"><span style="color: #994444;">alias</span> tweet <span style="color: #FF0000;">&#123;</span>
<span style="color: #808080; font-style: italic;">; use /tweet</span>
set <span style="color: #990000;">%tw</span>.<span style="color: #008000;">username</span> twitter_username_here
set <span style="color: #990000;">%tw</span>.<span style="color: #008000;">password</span> twitter_password_here
<span style="color: #808080; font-style: italic;">; exit if the message is too long for twitter to take.</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$len</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$1</span>-<span style="color: #FF0000;">&#41;</span> &gt; 140<span style="color: #FF0000;">&#41;</span> <span style="color: #FF0000;">&#123;</span>
<span style="color: #990000; font-weight: bold;">echo</span> <span style="color: #888800;">-a</span> Sorry, that was <span style="color: #000099;">$calc</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$len</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$1</span>-<span style="color: #FF0000;">&#41;</span><span style="color: #888800;">-140</span><span style="color: #FF0000;">&#41;</span> characters too long!
halt
<span style="color: #FF0000;">&#125;</span>
<span style="color: #808080; font-style: italic;">; connect to twitter on HTTP port 80</span>
set <span style="color: #990000;">%authentication</span> <span style="color: #000099;">$encode</span><span style="color: #FF0000;">&#40;</span>$+<span style="color: #FF0000;">&#40;</span><span style="color: #990000;">%tw</span>.<span style="color: #008000;">username</span>,:,<span style="color: #990000;">%tw</span>.<span style="color: #008000;">password</span><span style="color: #FF0000;">&#41;</span>,m<span style="color: #FF0000;">&#41;</span>
sockclose twitter
sockopen twitter twitter.<span style="color: #008000;">com</span> 80
<span style="color: #808080; font-style: italic;">; set a 2-second timeout in case there is a problem</span>
<span style="color: #808080; font-style: italic;">; this could be changed to 5 or 10</span>
.<span style="color: #008000;">timertwitter</span> 1 2 twitter_timeout
set <span style="color: #990000;">%tweet</span> $<span style="color: #000099;">$1</span>-
<span style="color: #808080; font-style: italic;">; store the text</span>
<span style="color: #FF0000;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">; encoding is important for sending data to a web server</span>
<span style="color: #808080; font-style: italic;">; the decode function is not used, but is here for the sake of</span>
<span style="color: #808080; font-style: italic;">; completeness</span>
<span style="color: #994444;">alias</span> urlencode <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000099;">$regsubex</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$1</span>-,<span style="color: #FF0000;">/</span>\G<span style="color: #FF0000;">&#40;</span>.<span style="color: #FF0000;">&#41;</span><span style="color: #990000; font-weight: bold;">/g</span>,<span style="color: #000099;">$iif</span><span style="color: #FF0000;">&#40;</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$prop</span> <span style="color: #990000;">&amp;amp</span><span style="color: #808080; font-style: italic;">;&amp;amp; \1 !isalnum) || !$prop,$chr(37) $+ $base($asc(\1),10,16),\1))</span>
<span style="color: #994444;">alias</span> urldecode <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000099;">$replace</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$regsubex</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$1</span>-,<span style="color: #FF0000;">/</span>%<span style="color: #FF0000;">&#40;</span>\w\w<span style="color: #FF0000;">&#41;</span><span style="color: #990000; font-weight: bold;">/g</span>,<span style="color: #000099;">$chr</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$iif</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$base</span><span style="color: #FF0000;">&#40;</span>\t,16,10<span style="color: #FF0000;">&#41;</span> != 32,<span style="color: #000099;">$v1</span>,1<span style="color: #FF0000;">&#41;</span><span style="color: #FF0000;">&#41;</span><span style="color: #FF0000;">&#41;</span>,<span style="color: #000099;">$chr</span><span style="color: #FF0000;">&#40;</span>1<span style="color: #FF0000;">&#41;</span>,<span style="color: #000099;">$chr</span><span style="color: #FF0000;">&#40;</span>32<span style="color: #FF0000;">&#41;</span><span style="color: #FF0000;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">; when the socket accepts our connection</span>
<span style="color: #000099;">on *:sockopen:</span>twitter:<span style="color: #FF0000;">&#123;</span>
sockwrite <span style="color: #888800;">-n</span> twitter POST <span style="color: #990000; font-weight: bold;">/statuses</span><span style="color: #FF0000;">/</span>update.<span style="color: #008000;">json</span> HTTP<span style="color: #FF0000;">/</span>1.1
sockwrite <span style="color: #888800;">-n</span> twitter Host: twitter.<span style="color: #008000;">com</span>
sockwrite <span style="color: #888800;">-n</span> twitter User-Agent: Mozilla<span style="color: #FF0000;">/</span>5.0 <span style="color: #FF0000;">&#40;</span>Windows<span style="color: #808080; font-style: italic;">; U; Windows NT 6.0; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5</span>
sockwrite <span style="color: #888800;">-n</span> twitter Content-Length: <span style="color: #000099;">$calc</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$len</span><span style="color: #FF0000;">&#40;</span><span style="color: #000099;">$urlencode</span><span style="color: #FF0000;">&#40;</span><span style="color: #990000;">%tweet</span><span style="color: #FF0000;">&#41;</span><span style="color: #FF0000;">&#41;</span> + 9<span style="color: #FF0000;">&#41;</span>
sockwrite <span style="color: #888800;">-n</span> twitter Authorization: Basic <span style="color: #990000;">%authentication</span>
sockwrite <span style="color: #888800;">-n</span> twitter <span style="color: #000099;">$crlf</span>
sockwrite twitter status=
sockwrite <span style="color: #888800;">-n</span> twitter <span style="color: #000099;">$urlencode</span><span style="color: #FF0000;">&#40;</span><span style="color: #990000;">%tweet</span><span style="color: #FF0000;">&#41;</span>
sockwrite twitter <span style="color: #000099;">$crlf</span>
sockwrite twitter <span style="color: #000099;">$crlf</span>
<span style="color: #808080; font-style: italic;">; send the postdata</span>
<span style="color: #FF0000;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">; the data wasn't returned, kill the socket</span>
<span style="color: #808080; font-style: italic;">; and tell the user.</span>
<span style="color: #994444;">alias</span> twitter_timeout <span style="color: #FF0000;">&#123;</span>
<span style="color: #990000; font-weight: bold;">echo</span> <span style="color: #888800;">-a</span> Message Failed to Send - Socket Timeout
sockclose twitter
<span style="color: #FF0000;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">; we have data back</span>
<span style="color: #000099;">on *:sockread:</span>twitter: <span style="color: #FF0000;">&#123;</span>
.<span style="color: #008000;">timertwitter</span> off
sockread <span style="color: #888800;">-f</span> <span style="color: #990000;">%string</span>
<span style="color: #990000; font-weight: bold;">echo</span> <span style="color: #888800;">-a</span> Message Returned <span style="color: #FF0000;">&#40;</span> $+ <span style="color: #990000;">%string</span> $+ <span style="color: #FF0000;">&#41;</span>
sockclose twitter
<span style="color: #FF0000;">&#125;</span></pre></div></div>

<p>Hopefully this is useful to someone else, I often find myself updating twitter this way, because I always have mIRC open, albeit in the background.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daveamenta.com/2008-05/tweet-from-mirc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

