<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Freeella&#039;s Blog</title>
	<atom:link href="http://freeella.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://freeella.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 05 May 2010 05:31:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='freeella.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Freeella&#039;s Blog</title>
		<link>http://freeella.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://freeella.wordpress.com/osd.xml" title="Freeella&#039;s Blog" />
	<atom:link rel='hub' href='http://freeella.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Twitter Jumpstart</title>
		<link>http://freeella.wordpress.com/2010/04/30/twitter-jumpstart/</link>
		<comments>http://freeella.wordpress.com/2010/04/30/twitter-jumpstart/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 23:48:16 +0000</pubDate>
		<dc:creator>freeella</dc:creator>
				<category><![CDATA[Interfaces]]></category>
		<category><![CDATA[Pidgin]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://freeella.wordpress.com/?p=19</guid>
		<description><![CDATA[I try to us this Blog article for summarizing  the minimum knowledge that I found is necessary for having enough knowledge to follow tweets via Pidgin and what my experiences had been about. 1. I decided to get a Twitter account to follow some people I followed another way before. Because I liked to have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freeella.wordpress.com&amp;blog=13116115&amp;post=19&amp;subd=freeella&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I try to us this Blog article for summarizing  the minimum knowledge that I found is necessary for having enough knowledge to follow tweets via Pidgin and what my experiences had been about.</p>
<p>1. I decided to get a Twitter account to follow some people I followed another way before.</p>
<p>Because I liked to have real time  notification without web interface, I installed the <a title="Pidgin Plugin microblog-purple" href="http://code.google.com/p/microblog-purple/" target="_blank">Pidgin Plugin microblog-purple</a> which runs well on Windows and Linux.</p>
<p>So I can search and follow people using the <a title="twitter.com" href="http://twitter.com" target="_blank">twitter.com</a> web page and get the tweets popping up in my twitter plugin for Pidgin.</p>
<p>2. The RRS feeds Twitter offers is a well working way to be notified as well. But because I&#8217;m checking my RSS reader less often than my Pidgin IM, my opinion is that Tweets must be integrated into an instant messenger. This is because I don&#8217;t like to have yet another third party program open or  I don&#8217;t like to have yet another web page open that I manually need to check. I like to be notified using an IM window. This is because my IM is well integrated at my daily work and at home. So I&#8217;m just using the RSS reader as an backup option.</p>
<p>3. After a while I liked to subscribe to #hashtags as well and found out that this is no functionality I can do at the Twitter web page. Two links helped me getting the information about Twitter I have not been able to figure out myself before:</p>
<ul>
<li><a href="http://www.suisse-emex.ch/de/live/twitter/" target="_blank">http://www.suisse-emex.ch/de/live/twitter/</a></li>
<li><a href="http://www.contentious.com/2009/03/08/hashtags-on-twitter-how-do-you-follow-them/" target="_blank">http://www.contentious.com/2009/03/08/hashtags-on-twitter-how-do-you-follow-them/</a></li>
</ul>
<p>4. Because microblog-purple and the Twitter web interface does not support #hashtags and I now know more about Twitter, I figured out that I can subscribe to #hashtags the following way:</p>
<ul>
<li>Save searches for the #hashtag I like to monitor.</li>
<li>Install the Pidgin plugin prpltwtr.<br />
<a href="http://code.google.com/p/prpltwtr/">http://code.google.com/p/prpltwtr/</a></li>
</ul>
<p>Mostly, this new plugin works and is updating but does not open a new chat window to notify me.  The Pidgin symbol in the status try is not updated as well. So I have to keep the chat window open.  To see updates automatically. But an advantage is that I have direct access to my saved searches and can execute them from inside Pidgin directly as if they would be a chat room.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freeella.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freeella.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freeella.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freeella.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freeella.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freeella.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freeella.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freeella.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freeella.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freeella.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freeella.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freeella.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freeella.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freeella.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freeella.wordpress.com&amp;blog=13116115&amp;post=19&amp;subd=freeella&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freeella.wordpress.com/2010/04/30/twitter-jumpstart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c495f5e74fff8ea2e1f2f18e0f1924f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">freeella</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use flags in Java?</title>
		<link>http://freeella.wordpress.com/2010/04/13/how-to-use-flags-in-java/</link>
		<comments>http://freeella.wordpress.com/2010/04/13/how-to-use-flags-in-java/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 15:56:19 +0000</pubDate>
		<dc:creator>freeella</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bit arithmetic]]></category>
		<category><![CDATA[flags]]></category>

		<guid isPermaLink="false">http://freeella.wordpress.com/?p=3</guid>
		<description><![CDATA[I learned to like flags in C/C++ because a single long number can hold 32 boolean values in one variable &#8211; in Java even more. This very often allows avoiding multiple collections of variables or containers storing such variables. So I liked to do the same in Java. This is a short summary about how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freeella.wordpress.com&amp;blog=13116115&amp;post=3&amp;subd=freeella&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I learned to like flags in C/C++ because a single long number can hold 32 boolean values in one variable &#8211; in Java even more. This very often allows avoiding multiple collections of variables or containers storing such variables. So I liked to do the same in Java.</p>
<p>This is a short summary about how it works in Java.</p>
<p>1. This is just a small example how it works to set flags in Java:</p>
<blockquote><p>public class MyClass {<br />
// Set debug log level:<br />
private boolean DEBUG = false; // is set via constructor<br />
private final long DEBUGtoNULL = 0&#215;00; // no file<br />
private final long DEBUGtoSTDOUT = 0&#215;01; // STDOUT<br />
private final long DEBUGtoLOGFILE = 0&#215;02; // LOG<br />
// which log files to write to?<br />
private long DEBUGlevel = DEBUGtoNULL;<br />
//private long DEBUGlevel = DEBUGtoLOGFILE;<br />
//private long DEBUGlevel = DEBUGtoSTDOUT;<br />
//private long DEBUGlevel = DEBUGtoLOGFILE | DEBUGtoSTDOUT;</p>
<p>MyClass()<br />
{<br />
if(DEBUGlevel != DEBUGtoNULL) DEBUG = true;<br />
else DEBUG = false;<br />
}</p>
<p>// only log if any debug output media is selected<br />
private void logIncludingTimeStamp(String line) {<br />
if(!DEBUG) return;<br />
&#8230;</p>
<p>// If STDOUT debug is requested<br />
if( (DEBUGlevel &amp; DEBUGtoSTDOUT) != 0) System.out.println(timeStamp + line);<br />
// If LOG debug is requested<br />
if( (DEBUGlevel &amp; DEBUGtoLOGFILE) != 0) log(timeStamp + line);<br />
}</p></blockquote>
<p>2. Why to always use flags in HEX notation?</p>
<p>Because it is the easiest way to set them without remembering strange decimal numbers. For the HEX notation 1,2,4,8 and 0 are moving and filled up by 0 if the bits become higher. This makes it very easy to read as well. Octal numbers would also be an option but than the resulting numbers are longer.</p>
<blockquote><p>BIT1 = 0&#215;0001 // decimal 1 &#8212; octal 1<br />
BIT2 = 0&#215;0002 // decimal 2 &#8212; octal 2<br />
BIT3 = 0&#215;0004 // decimal 4 &#8212; octal 4<br />
BIT4 = 0&#215;0008 // decimal 8 &#8212; octal 10<br />
BIT5 = 0&#215;0010 // decimal 16 &#8212; octal 20<br />
BIT6 = 0&#215;0020 // decimal 32 &#8212; octal 40<br />
BIT7 = 0&#215;0040 // decimal 64 &#8212; octal 100<br />
BIT8 = 0&#215;0080 // decimal 128 &#8212; octal 200<br />
BIT9 = 0&#215;0100 // decimal 256 &#8212; octal 400<br />
BIT10 = 0&#215;0200 // decimal 512 &#8212; octal 1000<br />
BIT11 = 0&#215;0400 // decimal 1024 &#8212; octal 2000<br />
BIT12 = 0&#215;0800 // decimal 2048 &#8212; octal 4000<br />
BIT13 = 0&#215;1000 // decimal 4096 &#8212; octal 10000<br />
BIT14 = 0&#215;2000 // decimal 8192 &#8212; octal 20000<br />
BIT15 = 0&#215;4000 // decimal 16384 &#8212; octal 40000<br />
BIT16 = 0&#215;8000 // decimal 32768 &#8212; octal 100000</p></blockquote>
<p>2. How to set multiple bits?</p>
<blockquote><p>long MYBITCONTAINER = 0&#215;0 // cleans all bits<br />
long MYBITCONTAINER = BIT11 // sets bit 11<br />
long MYBITCONTAINER |= BIT6 | BIT14 // now bit 6, 11 and 14 are set</p></blockquote>
<p>3. How to check whether a bit is set?</p>
<blockquote><p>if( (MYBITCONTAINER &amp; BIT6) != 0) { System.out.println(&#8220;BIT6 was set!&#8221;); }<br />
else { System.out.println(&#8220;BIT6 was not set!&#8221;); }</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freeella.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freeella.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freeella.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freeella.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freeella.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freeella.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freeella.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freeella.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freeella.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freeella.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freeella.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freeella.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freeella.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freeella.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freeella.wordpress.com&amp;blog=13116115&amp;post=3&amp;subd=freeella&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freeella.wordpress.com/2010/04/13/how-to-use-flags-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c495f5e74fff8ea2e1f2f18e0f1924f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">freeella</media:title>
		</media:content>
	</item>
	</channel>
</rss>
