<?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>Vizible's Blog</title>
	<atom:link href="http://vizible.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vizible.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 08 Nov 2011 18:57:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vizible.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Vizible's Blog</title>
		<link>http://vizible.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vizible.wordpress.com/osd.xml" title="Vizible&#039;s Blog" />
	<atom:link rel='hub' href='http://vizible.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Xbmc on linux crash with my script</title>
		<link>http://vizible.wordpress.com/2009/10/01/xbmc-on-linux-crash-with-my-script/</link>
		<comments>http://vizible.wordpress.com/2009/10/01/xbmc-on-linux-crash-with-my-script/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 10:58:03 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Logs]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/?p=585</guid>
		<description><![CDATA[X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 136 (XFree86-DRI) Minor opcode of failed request: 9 () Resource id in failed request: 0x5200002 Serial number of failed request: 29677 Current serial number in output stream: 29677 X Error of failed request: BadWindow (invalid Window parameter) Major opcode [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=585&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  136 (XFree86-DRI)
  Minor opcode of failed request:  9 ()
  Resource id in failed request:  0x5200002
  Serial number of failed request:  29677
  Current serial number in output stream:  29677
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x4a00015
  Serial number of failed request:  19544
  Current serial number in output stream:  19546
X Error of failed request:  BadColor (invalid Colormap parameter)
  Major opcode of failed request:  79 (X_FreeColormap)
  Resource id in failed request:  0x4a00014
  Serial number of failed request:  19545
  Current serial number in output stream:  19548
CRITSEC[0x8beb5e4]: Trying to enter destroyed section.
CRITSEC[0x8beb5e4]: Trying to enter destroyed section.
CRITSEC[0x8beb5e4]: Trying to enter destroyed section.
CRITSEC[0x8beb670]: Trying to enter destroyed section.
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  136 (XFree86-DRI)
  Minor opcode of failed request:  9 ()
  Resource id in failed request:  0x5200002
  Serial number of failed request:  29678
  Current serial number in output stream:  29678
CRITSEC[0x8bed0e0]: Trying to enter destroyed section.
CRITSEC[0x8bed0e0]: Trying to leave destroyed section.
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/585/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=585&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/10/01/xbmc-on-linux-crash-with-my-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>cython cause install skype4py failed</title>
		<link>http://vizible.wordpress.com/2009/09/18/cython-cause-install-skype4py-failed/</link>
		<comments>http://vizible.wordpress.com/2009/09/18/cython-cause-install-skype4py-failed/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 11:21:30 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[cython]]></category>
		<category><![CDATA[skype4py]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/?p=583</guid>
		<description><![CDATA[$ sudo python setup.py install running install running build running build_py running build_ext cythoning Skype4Py/utils.py to Skype4Py/utils.c Error converting Pyrex file to C: ------------------------------------------------------------ ... self._EventHandlerObj = Obj @staticmethod def __AddEvents_make_event(Event): # TODO: rework to make compatible with cython return property(lambda self: self._GetDefaultEventHandler(Event), ^ ------------------------------------------------------------ /dos/library/Skype4Py/tar/Skype4Py-1.0.31.0/Skype4Py/utils.py:462:24: Expected an identifier or literal building 'Skype4Py.utils' extension gcc [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=583&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
$ sudo python setup.py install
running install
running build
running build_py
running build_ext
cythoning Skype4Py/utils.py to Skype4Py/utils.c

Error converting Pyrex file to C:
------------------------------------------------------------
...
        self._EventHandlerObj = Obj

    @staticmethod
    def __AddEvents_make_event(Event):
        # TODO: rework to make compatible with cython
        return property(lambda self: self._GetDefaultEventHandler(Event),
                       ^
------------------------------------------------------------

/dos/library/Skype4Py/tar/Skype4Py-1.0.31.0/Skype4Py/utils.py:462:24: Expected an identifier or literal
building 'Skype4Py.utils' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I. -I/usr/include/python2.6 -c Skype4Py/utils.c -o build/temp.linux-i686-2.6/Skype4Py/utils.o -O3
gcc: Skype4Py/utils.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
$
</pre>
<p>~<br />
Then </p>
<pre>
$ sudo apt-get remove cython
$ sudo python setup.py install
running install
running build
running build_py
copying Skype4Py/API/windows.py -&gt; build/lib.linux-i686-2.6/Skype4Py/API
copying Skype4Py/API/faked_dbus.py -&gt; build/lib.linux-i686-2.6/Skype4Py/API
copying Skype4Py/API/darwin.py -&gt; build/lib.linux-i686-2.6/Skype4Py/API
running install_lib
...
byte-compiling /usr/local/lib/python2.6/dist-packages/Skype4Py/Languages/bg.py to bg.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/Skype4Py/Languages/lt.py to lt.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/Skype4Py/Languages/sv.py to sv.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/Skype4Py/Languages/ro.py to ro.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/Skype4Py/conversion.py to conversion.pyc
running install_egg_info
Writing /usr/local/lib/python2.6/dist-packages/Skype4Py-1.0.31.0.egg-info
$
</pre>
<p>~</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/583/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=583&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/09/18/cython-cause-install-skype4py-failed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; Find Prime Number</title>
		<link>http://vizible.wordpress.com/2009/08/30/python-find-prime-number/</link>
		<comments>http://vizible.wordpress.com/2009/08/30/python-find-prime-number/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 17:59:43 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/?p=571</guid>
		<description><![CDATA[def get_prime_list(n): n = int(n) maked_list = [False] * (n + 1) prime_list = [] for i in range(2,n+1): if not maked_list[i] : prime_list.append(i) for j in range(i**2, n+1,i): maked_list[j] = True return prime_list print get_prime_list(10001) ~<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=571&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>def get_prime_list(n):
        n  = int(n)
        maked_list = [False] * (n + 1)
        prime_list = []

        for i in range(2,n+1):
                if not maked_list[i] :
                        prime_list.append(i)
                        for j in range(i**2, n+1,i):
                                maked_list[j] = True
        return prime_list
print get_prime_list(10001)
~</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/571/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=571&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/30/python-find-prime-number/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; Find Factors of Number</title>
		<link>http://vizible.wordpress.com/2009/08/30/python-find-factors-of-number/</link>
		<comments>http://vizible.wordpress.com/2009/08/30/python-find-factors-of-number/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 17:44:04 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/?p=569</guid>
		<description><![CDATA[Code : ======================================== from math import sqrt import sys input = int(sys.argv[1]) factors = [] min_fac = 2 while input &#62; min_fac - 1 : if (input % min_fac) == 0 : factors.append(min_fac) input = input / min_fac else : min_fac += 1 print factors ~ Example : ======================================== $ python prime.py 600851475143 [71, 839, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=569&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Code :<br />
========================================</p>
<pre>
from math import sqrt
import sys

input = int(sys.argv[1])
factors = []
min_fac = 2

while input &gt; min_fac - 1 :
        if (input % min_fac) == 0 :
                factors.append(min_fac)
                input = input / min_fac
        else :
                min_fac += 1
print factors
</pre>
<p>~<br />
Example :<br />
========================================</p>
<pre>
$ python prime.py 600851475143
[71, 839, 1471, 6857]
</pre>
<p>~</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/569/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=569&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/30/python-find-factors-of-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>Perl &#8211; Example Data Types</title>
		<link>http://vizible.wordpress.com/2009/08/26/perl-example-data-types/</link>
		<comments>http://vizible.wordpress.com/2009/08/26/perl-example-data-types/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 16:25:46 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/?p=563</guid>
		<description><![CDATA[1. Scalar ============================= $first_name = "Wearetherock"; $last_name= "Ok"; $salary = 20; print $first_name, $last_name, $salary; ~ 2. Array ============================= @names = ("Java", "C", "Python", "Perl"); print "@names"; print "$names[0] and $names[2]"; print "$names[-1]\n"; $names[4] = "Lisp"; function : pop, push, shift, unshift, splice, sort ~ 3. Hash ============================= %employee = ( "Name" =&#62; "Wearetherock", "Phone" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=563&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Scalar<br />
=============================</p>
<pre>$first_name = "Wearetherock";
$last_name= "Ok";
$salary = 20;
print $first_name, $last_name, $salary;</pre>
<p>~<br />
2. Array<br />
=============================</p>
<pre>@names = ("Java", "C", "Python", "Perl");
print "@names";
print "$names[0] and $names[2]";
print "$names[-1]\n";
$names[4] = "Lisp";

function : pop, push, shift, unshift, splice, sort</pre>
<p>~<br />
3. Hash<br />
=============================</p>
<pre>%employee = (
	"Name" =&gt; "Wearetherock",
	"Phone" =&gt; "119",
	"Position" =&gt; "ZEO"
);
print $employee{"Name"};
$employee{"SSN"} = "9999-0000-5555";

function : keys, values, each, delete</pre>
<p>~</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/563/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=563&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/26/perl-example-data-types/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; SflPhone Dbus</title>
		<link>http://vizible.wordpress.com/2009/08/26/python-sflphone-dbus/</link>
		<comments>http://vizible.wordpress.com/2009/08/26/python-sflphone-dbus/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 12:26:31 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/?p=561</guid>
		<description><![CDATA[import dbus from dbus.mainloop.glib import DBusGMainLoop import gobject from gobject import GObject from SimpleXMLRPCServer import SimpleXMLRPCServer import thread class SlfPhoneConnector : def __init__(self) : self.activeCalls = {} account = { "username" : "1111", "Account.type" : "SIP", "hostname" : "192.168.1.109", "Account.alias" : "1111", "password":"1111", "Account.enable" : "TRUE" } session = dbus.SessionBus() conf_obj = session.get_object("org.sflphone.SFLphone", "/org/sflphone/SFLphone/ConfigurationManager") self.conf_mgr [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=561&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>

import dbus
from dbus.mainloop.glib import DBusGMainLoop
import gobject
from gobject import GObject
from SimpleXMLRPCServer import SimpleXMLRPCServer
import thread

class SlfPhoneConnector :

	def __init__(self) :
		self.activeCalls = {}

		account = {
			"username" : "1111",
			"Account.type" : "SIP",
			"hostname" : "192.168.1.109",
			"Account.alias" : "1111",
			"password":"1111",
			"Account.enable" : "TRUE"
		}
		session = dbus.SessionBus()

		conf_obj = session.get_object("org.sflphone.SFLphone", "/org/sflphone/SFLphone/ConfigurationManager")
		self.conf_mgr = dbus.Interface(conf_obj ,"org.sflphone.SFLphone.ConfigurationManager")

		call_obj = session.get_object("org.sflphone.SFLphone", "/org/sflphone/SFLphone/CallManager")
		self.call_mgr = dbus.Interface(call_obj ,"org.sflphone.SFLphone.CallManager")

		'''
		i= session.get_object("org.sflphone.SFLphone", "/org/sflphone/SFLphone/ConfigurationManager")
		instance = dbus.Interface(object,"org.sfphone.SFLphone.Instance")
		'''

		self.call_mgr.connect_to_signal('incomingCall', self.on_incoming_call)
		self.call_mgr.connect_to_signal('callStateChanged', self.on_call_state_changed)

		self.account_id = self.conf_mgr.addAccount(account)

		self.conf_mgr.sendRegister(self.account_id, 1)			 

		#self.call_mgr.placeCall(self.account_id, self.account_id, "2222" )	 

	def on_incoming_call(self, account, callid, to):
		print "Incoming call: " + account + ", " + callid + ", " + to
		self.activeCalls[callid] = {'Account': account, 'To': to, 'State': '' }   

		self.call_mgr.accept(str(callid))

	# On call state changed event, set the values for new calls,
	# or delete the call from the list of active calls
	def on_call_state_changed(self, callid, state):
		print "Call state changed: " + callid + ", " + state
		if state == "HUNGUP":
			try:
				del self.activeCalls[callid]
			except KeyError:
				print "Call " + callid + " didn't exist. Cannot delete."

		elif state in [ "RINGING", "CURRENT", "INCOMING", "HOLD" ]:
			try:
				self.activeCalls[callid]['State'] = state
			except KeyError, e:
				print "This call didn't exist!: " + callid + ". Adding it to the list."
				callDetails = self.getCallDetails(callid)
				self.activeCalls[callid] = {'Account': callDetails['ACCOUNTID'], 'To': callDetails['PEER_NUMBER'], 'State': state }
		elif state in [ "BUSY", "FAILURE" ]:
			try:
				del self.activeCalls[callid]
			except KeyError, e:
				print "This call didn't exist!: " + callid   

	def getCallDetails(self, callid):
		"""Return informations on this call if exists"""
		return self.call_mgr.getCallDetails(callid)

	def place_call(self, callid):
		self.call_mgr.placeCall(self.account_id, self.account_id, callid)

	def hangup(self) :
		call0 = self.activeCalls.keys()[0]
		self.call_mgr.hangUp(call0)

def start_server(obj):
	server = SimpleXMLRPCServer( ("localhost", 9988), allow_none= True)
	server.register_instance(obj)

	print "server start @localhost 9988 forever ..."
	server.serve_forever()

if __name__ == "__main__" :

	DBusGMainLoop(set_as_default=True)
	s  = SlfPhoneConnector()

	thread.start_new_thread(start_server(s,))

	loop = gobject.MainLoop()
	loop.run()
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/561/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=561&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/26/python-sflphone-dbus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>C &#8211; Create share library</title>
		<link>http://vizible.wordpress.com/2009/08/21/c-create-share-library/</link>
		<comments>http://vizible.wordpress.com/2009/08/21/c-create-share-library/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 17:31:37 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/?p=559</guid>
		<description><![CDATA[1. Code ================================== // test.c #include static char *name; void printName(){ printf("name = %s\n", name); } void setName(char *n){ name = n; } ~ 2. Compile ================================== &#62; gcc -c test.c -o test.o &#62; gcc -shared -o libfoo.so test.o ~ 3. Test ================================== &#62;&#62;&#62; from ctypes import cdll &#62;&#62;&#62; lib = cdll.LoadLibrary('libfoo.so') &#62;&#62;&#62; lib.setName('java') 27090740 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=559&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1. Code</strong><br />
==================================</p>
<pre>
// test.c
#include
static char *name;
void printName(){
	printf("name = %s\n", name);
}
void setName(char *n){
	name = n;
}
</pre>
<p>~<br />
<strong>2. Compile</strong><br />
==================================</p>
<pre>
&gt; gcc -c test.c -o test.o
&gt; gcc -shared -o libfoo.so test.o
</pre>
<p>~<br />
<strong>3. Test</strong><br />
==================================</p>
<pre>
&gt;&gt;&gt; from ctypes import cdll
&gt;&gt;&gt; lib = cdll.LoadLibrary('libfoo.so')
&gt;&gt;&gt; lib.setName('java')
27090740
&gt;&gt;&gt; lib.printName()
name = java
12
&gt;&gt;&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/559/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=559&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/21/c-create-share-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; Simulate mouse click</title>
		<link>http://vizible.wordpress.com/2009/08/20/python-simulate-mouse-click/</link>
		<comments>http://vizible.wordpress.com/2009/08/20/python-simulate-mouse-click/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 12:09:18 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/2009/08/20/python-simulate-mouse-click/</guid>
		<description><![CDATA[import time import win32api import win32con time.sleep(1) win32api.SetCursorPos((100,100)) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0) time.sleep(0.05) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0) ~<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=558&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>import time
import win32api
import win32con

time.sleep(1)
win32api.SetCursorPos((100,100))
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
time.sleep(0.05)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)</pre>
<p>~</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/558/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=558&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/20/python-simulate-mouse-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux &#8211; How to simulate key press</title>
		<link>http://vizible.wordpress.com/2009/08/15/linux-how-to-simulate-key-press/</link>
		<comments>http://vizible.wordpress.com/2009/08/15/linux-how-to-simulate-key-press/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 17:28:36 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[keypress]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[simulate]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/2009/08/15/linux-how-to-simulate-key-press/</guid>
		<description><![CDATA[C code from http://stackoverflow.com/questions/1262310/simulate-keypress-linux-c-console-application // test.c #include &#60;X11/Xlib.h&#62; #include &#60;X11/keysym.h&#62; #include &#60;X11/extensions/XTest.h&#62; int main(){ Display *display; unsigned int keycode; display = XOpenDisplay(NULL); keycode = XKeysymToKeycode(display, XK_A); XTestFakeKeyEvent(display, keycode, True, 0); keycode = XKeysymToKeycode(display, XK_B); XTestFakeKeyEvent(display, keycode, True, 0); keycode = XKeysymToKeycode(display, XK_C); XTestFakeKeyEvent(display, keycode, True, 0); keycode = XKeysymToKeycode(display, XK_D); XTestFakeKeyEvent(display, keycode, True, 0); XTestFakeKeyEvent(display, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=555&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>C code from <a href="http://stackoverflow.com/questions/1262310/simulate-keypress-linux-c-console-application">http://stackoverflow.com/questions/1262310/simulate-keypress-linux-c-console-application</a></strong></p>
<pre>// test.c
#include &lt;X11/Xlib.h&gt;
#include &lt;X11/keysym.h&gt;
#include &lt;X11/extensions/XTest.h&gt;

int main(){
 Display *display;
 unsigned int keycode;
 display = XOpenDisplay(NULL);
 keycode = XKeysymToKeycode(display, XK_A);
 XTestFakeKeyEvent(display, keycode, True, 0);
 keycode = XKeysymToKeycode(display, XK_B);
 XTestFakeKeyEvent(display, keycode, True, 0);
 keycode = XKeysymToKeycode(display, XK_C);
 XTestFakeKeyEvent(display, keycode, True, 0);
 keycode = XKeysymToKeycode(display, XK_D);
 XTestFakeKeyEvent(display, keycode, True, 0);
 XTestFakeKeyEvent(display, keycode, False, 0);
 XFlush(display);
}</pre>
<p><strong>Compile</strong></p>
<pre># gcc -lX11 -lXtst test.c</pre>
<p><strong>Output </strong></p>
<pre># ./a.out
# abcd
~</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/555/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/555/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/555/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/555/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/555/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/555/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/555/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/555/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/555/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/555/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/555/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/555/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/555/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/555/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=555&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/15/linux-how-to-simulate-key-press/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
		<item>
		<title>You but me</title>
		<link>http://vizible.wordpress.com/2009/08/13/you-but-me/</link>
		<comments>http://vizible.wordpress.com/2009/08/13/you-but-me/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 10:48:11 +0000</pubDate>
		<dc:creator>wearetherock</dc:creator>
				<category><![CDATA[Logs]]></category>

		<guid isPermaLink="false">http://vizible.wordpress.com/2009/08/13/you-but-me/</guid>
		<description><![CDATA[Code ====================================== import re match = re.compile(r&#8217;^b([ajk]+$)+&#8217;) isRight = match.findall(&#8216;bajkajkajkajk&#8217;) print isRight print bool(isRight) isRight = match.findall(&#8216;baaajjjkkk&#8217;) print isRight print bool(isRight) isRight = match.findall(&#8216;bajkb&#8217;) print isRight print bool(isRight) isRight = match.findall(&#8216;bkkkjjjjaaaabbbb&#8217;) print isRight print bool(isRight) isRight = match.findall(&#8216;bbbajk&#8217;) print isRight print bool(isRight) ~ Result ====================================== ['ajkajkajkajk'] True ['aaajjjkkk'] True [] False [] False [] False [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=554&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Code</strong><br />
======================================<br />
import re<br />
match = re.compile(r&#8217;^b([ajk]+$)+&#8217;)</p>
<p>isRight = match.findall(&#8216;bajkajkajkajk&#8217;)<br />
print isRight<br />
print bool(isRight)</p>
<p>isRight = match.findall(&#8216;baaajjjkkk&#8217;)<br />
print isRight<br />
print bool(isRight)</p>
<p>isRight = match.findall(&#8216;bajkb&#8217;)<br />
print isRight<br />
print bool(isRight)</p>
<p>isRight = match.findall(&#8216;bkkkjjjjaaaabbbb&#8217;)<br />
print isRight<br />
print bool(isRight)</p>
<p>isRight = match.findall(&#8216;bbbajk&#8217;)<br />
print isRight<br />
print bool(isRight)</p>
<p><strong>~<br />
Result</strong><br />
======================================<br />
['ajkajkajkajk']<br />
True<br />
['aaajjjkkk']<br />
True<br />
[]<br />
False<br />
[]<br />
False<br />
[]<br />
False<br />
~</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vizible.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vizible.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vizible.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vizible.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vizible.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vizible.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vizible.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vizible.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vizible.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vizible.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vizible.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vizible.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vizible.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vizible.wordpress.com/554/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vizible.wordpress.com&amp;blog=6302849&amp;post=554&amp;subd=vizible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vizible.wordpress.com/2009/08/13/you-but-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7fba9d01302ec2c3893ab46cbfad533a?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">wearetherock</media:title>
		</media:content>
	</item>
	</channel>
</rss>
