<?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>Different stuff</title>
	<atom:link href="http://mellit.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mellit.wordpress.com</link>
	<description>ideas, projects, etc</description>
	<lastBuildDate>Mon, 26 Mar 2012 11:18:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mellit.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Different stuff</title>
		<link>http://mellit.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mellit.wordpress.com/osd.xml" title="Different stuff" />
	<atom:link rel='hub' href='http://mellit.wordpress.com/?pushpress=hub'/>
		<item>
		<title>GEdit plugin: smart indentation for C/C++/Java</title>
		<link>http://mellit.wordpress.com/2009/02/28/gedit-plugin-smart-indentation-for-ccjava/</link>
		<comments>http://mellit.wordpress.com/2009/02/28/gedit-plugin-smart-indentation-for-ccjava/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 23:01:08 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/?p=36</guid>
		<description><![CDATA[Indents on &#8216;{&#8216; Unindents on &#8216;}&#8217; I put it here: Download<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=36&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Indents on &#8216;{&#8216;</p>
<p>Unindents on &#8216;}&#8217;</p>
<p>I put it here: <a href="https://sites.google.com/a/mellit.org/www/homepage/plugin-for-gedit/csmartindent.tar.gz?attredirects=0&amp;d=1">Download</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=36&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2009/02/28/gedit-plugin-smart-indentation-for-ccjava/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>
	</item>
		<item>
		<title>gmail-notify for linux with proxy</title>
		<link>http://mellit.wordpress.com/2008/03/28/gmail-notify-for-linux-with-proxy/</link>
		<comments>http://mellit.wordpress.com/2008/03/28/gmail-notify-for-linux-with-proxy/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 23:59:29 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/?p=35</guid>
		<description><![CDATA[Thanks to the instructions here I modified the package gmail-notify to make it work with proxy. It is known that python library urllib2 does not support SSL over proxy. That was the problem. I post here two files. One is sslproxy.py which is a straightforward excerpt from the source mentioned above and another is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=35&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Thanks to the instructions <a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/456195">here</a> I modified the package gmail-notify to make it work with proxy.</p>
<p><span id="more-35"></span>It is known that python library urllib2 does not support SSL over proxy. That was the problem. I post here two files. One is sslproxy.py which is a straightforward excerpt from the source mentioned above and another is the appropriate modification of gmailatom.py from gmail-notify. Both files should be copied to /usr/lib/gmail-notify directory (on my installation, which is Ubuntu gutsy) after successful installation of gmail-notify package (mine was version 1.6.1). Thanks to Alessandro Budai and Norm Petterson for the sslproxy.py code. Just Right Click-&gt;Save Link As on the links below.</p>
<p><a href="http://www.imath.kiev.ua/~mellit/python/sslproxy.py">Download sslproxy.py</a></p>
<p><a href="http://www.imath.kiev.ua/~mellit/python/gmailatom.py">Download gmailatom.py</a></p>
<p>Note: username must be of the form  &lt;login&gt;@gmail.com and proxy must be of the form host:port (without the &#8216;<a href="http://&#038;#8217" rel="nofollow">http://&#038;#8217</a>; part)</p>
<p>enjoy!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=35&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2008/03/28/gmail-notify-for-linux-with-proxy/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>
	</item>
		<item>
		<title>Hard drive</title>
		<link>http://mellit.wordpress.com/2008/03/27/hard-drive/</link>
		<comments>http://mellit.wordpress.com/2008/03/27/hard-drive/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 22:45:36 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/?p=29</guid>
		<description><![CDATA[Hard drives are extremely fragile devices. I dropped my external 500GB hdd from about 20 cm height while it was turned on and it stopped working completely. The problem was that the motor could not spin the shaft. So I opened the drive, disassembled it and tried to rotate the shaft with pliers. After some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=29&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Hard drives are extremely fragile devices. I dropped my external 500GB hdd from about 20 cm height while it was turned on and it stopped working completely. The problem was that the motor could not spin the shaft. So I opened the drive, disassembled it and tried to rotate the shaft with pliers.</p>
<p><span id="more-29"></span> After some work I managed to fix it. Of course meanwhile I damaged everything else &#8211; heads, some scratches on the plates&#8230; Still I fixed the motor!</p>
<p><a href="http://mellit.files.wordpress.com/2008/03/img_3386-mod.jpg" title="hard drive uncovered"><img src="http://mellit.files.wordpress.com/2008/03/img_3386-mod.jpg?w=406&#038;h=306" alt="hard drive uncovered" height="306" width="406" /></a></p>
<p>You can also see it in action:</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/WITey-GNaEE?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=29&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2008/03/27/hard-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>

		<media:content url="http://mellit.files.wordpress.com/2008/03/img_3386-mod.jpg" medium="image">
			<media:title type="html">hard drive uncovered</media:title>
		</media:content>
	</item>
		<item>
		<title>Pari-Python update</title>
		<link>http://mellit.wordpress.com/2007/12/14/pari-python-update/</link>
		<comments>http://mellit.wordpress.com/2007/12/14/pari-python-update/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 17:30:23 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/2007/12/14/pari-python-update/</guid>
		<description><![CDATA[I have uploaded my current state of the project to sourceforge: http://sourceforge.net/projects/pari-python/ Sorry, it is only available through CVS. I don&#8217;t have much time to make a binary distribution. I started to use it myself, here I post some example module with computations of some mock theta functions: from pari import * ser_prec(300) q = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=28&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have uploaded my current state of the project to sourceforge:</p>
<p><a href="http://sourceforge.net/projects/pari-python/" target="_blank">http://sourceforge.net/projects/pari-python/</a></p>
<p>Sorry, it is only available through CVS. I don&#8217;t have much time to make a binary distribution. I started to use it myself, here I post some example module with computations of some mock theta functions:</p>
<p><span id="more-28"></span></p>
<pre><code></code><code>from pari import *
ser_prec(300)
q = var('q')
# q is in fact q^(1/8)
theta1 = eta(-q^4,0)^2/eta(q^8,0)
theta2 = eta(q^4,0)^2/eta(q^8,0)
theta3 = 2*q*eta(q^16,0)^2/eta(q^8,0)
eta3 = q*eta(q^8,0)^3
</code> <code>def th1(x):
    return exp(-Pi*I/12)*eta((x+1)/2,1)^2/eta(x,1)
def th2(x):
    return eta(x/2,1)^2/eta(x,1)
def th3(x):
    return 2*eta(2*x,1)^2/eta(x,1)
def modprecision():
    return ser_prec()
def modG(k):
    res = -bernfrac(k)/2/k
    for i in range(1, ser_prec()-1):
        res += sigma(i,k-1)*q^i
    res += O(q^ser_prec())
    return res
def modE(k):
    return modG(k)*2*k/-bernfrac(k)

S = var('x')
# exp(Pi*I*s) in terms of 2*Pi*I*s
Es=exp(S/2)+O(S^5)
# qz = exp(Pi*I*z)

def th(qz):
    bound = int(float(sqrt(ser_prec())))
    res = O(q^ser_prec())
    for n in range(-bound, bound):
        res += cast(-1)^n*q^(4*(n^2+n))*qz^(2*n)
    res *= q*I*qz
    return res

def mu(qu, qv):
    bound = int(float(sqrt(ser_prec())))
    res = O(q^ser_prec())
    for n in range(-bound, bound):
        res += cast(-1)^n*q^(4*(n^2+n))*qv^(2*n)/(1-q^(8*n)*qu^2)
    res*=qu/th(qv)
    return res

mu1 = polcoeff(mu(I,q^2*Es),1)
mu2 = polcoeff(mu(I,I*q^2*Es),1)
mu3 = polcoeff(mu(q^2,I*q^2*Es),1)

mu12 = O(q^ser_prec())+sum(-10,10,lambda n: cast(-1)^n*(n^2/2-n/2+1/8)*q^(4*(n^2+n))/(1+q^(8*n-4)))
mu22 = O(q^ser_prec())+sum(-10,10,lambda n: cast(-1)^n*(n^2/2-n/2+1/8)*q^(4*(n^2+n))/(1-q^(8*n-4)))
mu32 = O(q^ser_prec())+sum(-10,10,lambda n: cast(-1)^n*(n^2)/2*q^(4*(n^2+n))/(1+q^(8*n)))

E2 = modE(2)

tau0 = I*1.231241+2.234235 # random point
print 'Verifying transformation rules of theta functions...'
print abs(th1(tau0+1) - th2(tau0))
print abs(th2(tau0+1) - th1(tau0))
print abs(th3(tau0+1) - exp(I*Pi/4)*th3(tau0))
print abs(th1(-1/tau0) - exp(-I*Pi/4)*sqrt(tau0)*th1(tau0))
print abs(th2(-1/tau0) - exp(-I*Pi/4)*sqrt(tau0)*th3(tau0))
print abs(th3(-1/tau0) - exp(-I*Pi/4)*sqrt(tau0)*th2(tau0))

def modeval(f,x,ord):
    return subst(Pol(f,q),q,exp(2*Pi*I*x/ord))

h1=mu12/q^3/eta3
h2=-mu22/q^3/eta3
h3=-mu32/eta3

def H1(x):
    return modeval(h1,x,8)
def H2(x):
    return modeval(h2,x,8)
def H3(x):
    return modeval(h3,x,8)

def EE(x):
    return 2*intnum(0,x,lambda t: exp(-Pi*t^2))

def beta(x):
    return erfc(sqrt(Pi*x))

def RR(u,x):
    y = imag(x)
    a = imag(u)/imag(x)
    res = 0
    for n in range(-20,20):
        nu=n+1/2
        s1=sign(nu)
        s2=sign(nu+a)
        k = s1-EE((nu+a)*sqrt(2*y))
        if s1==s2:
            k = s1*beta((nu+a)^2*2*y)
        res += cast(-1)^n*exp(-Pi*I*nu^2*x-2*Pi*I*nu*u)*k
    return res

def RRd(x):
    u=1/2-x/2
    y = imag(x)
    a = -1/2
    res = 0
    for n in range(-20,20):
        nu=n+1/2
        s1=sign(n)
        k = s1*beta(n^2*2*y)
        res += I*exp(-Pi*I*n^2*x)*(-k*n-sqrt(2*y)/2/I/y*2*exp(-Pi*2*y*(nu+a)^2)/2/Pi/I)
    return res

def R1(x):
    y = imag(x)
    res = -1/2/Pi/sqrt(y*2)*conj(th1(x))
    for n in range(-20,20):
        res += abs(n)*beta(2*y*n^2)*exp(-Pi*I*n^2*x)/2
    return res

def R2(x):
    y = imag(x)
    res = -1/2/Pi/sqrt(y*2)*conj(th2(x))
    for n in range(-20,20):
        res += cast(-1)^n*abs(n)*beta(2*y*n^2)*exp(-Pi*I*n^2*x)/2
    return res

def R3(x):
    y = imag(x)
    res = 1/2/Pi/sqrt(y*2)*conj(th3(x))
    for n in range(-20,20):
        res -= abs(n+1/2)*beta(2*y*(n+1/2)^2)*exp(-Pi*I*(n+1/2)^2*x)/2
    return res

def M1(x):
    return H1(x)+R1(x)
def M2(x):
    return H2(x)+R2(x)
def M3(x):
    return H3(x)+R3(x)
def M(x):
    return M1(x)*th1(x)+M2(x)*th2(x)-M3(x)*th3(x)

print 'Verifying transformation rules of M functions...'
print abs(M1(tau0+1) - M2(tau0))
print abs(M2(tau0+1) - M1(tau0))
print abs(M3(tau0+1) - exp(-I*Pi/4)*M3(tau0))
print abs(M1(-1/tau0) - exp(I*Pi/4)*sqrt(tau0)^3*M1(tau0))
print abs(M2(-1/tau0) + exp(I*Pi/4)*sqrt(tau0)^3*M3(tau0))
print abs(M3(-1/tau0) + exp(I*Pi/4)*sqrt(tau0)^3*M2(tau0))

 </code></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=28&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2007/12/14/pari-python-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>
	</item>
		<item>
		<title>Launchy</title>
		<link>http://mellit.wordpress.com/2007/11/07/launchy/</link>
		<comments>http://mellit.wordpress.com/2007/11/07/launchy/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 18:13:53 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/2007/11/07/launchy/</guid>
		<description><![CDATA[http://www.launchy.net/ This is the software I like most. I&#8217;ve just installed it a few days ago and I am very excited about it. I was missing such a thing for a long time, I tried various launchers and no one kept on my drive more than a 2-3 days, this one is really great. It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=27&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.launchy.net/" target="_blank">http://www.launchy.net/</a></p>
<p>This is the software I like most. I&#8217;ve just installed it a few days ago and I am very excited about it. I was missing such a thing for a long time, I tried various launchers and no one kept on my drive more than a 2-3 days, this one is really great. It gives exactly what you need, no more no less.</p>
<p><span id="more-27"></span>Example: you want to open an explorer window with folder &#8220;&#8230;/Projects&#8221; which is somewhere on your drive. Normally I would open My computer, then select a drive, then some subfolder, etc. With launchy I simply press Alt+Space and begin typing P, r, o, g,.. on a small window that pops up right in the middle of screen you see suggestions. When you see the right one press Enter. When you use something more often it appears first, so say for starting Skype &#8216;sk&#8217; is enough.</p>
<p>This is, I think, the way software should be. Light and simple, doing exactly its function.</p>
<p>Good bye Start Menu!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=27&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2007/11/07/launchy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>
	</item>
		<item>
		<title>SciTE Latex lexer</title>
		<link>http://mellit.wordpress.com/2007/11/01/scite-latex-lexer/</link>
		<comments>http://mellit.wordpress.com/2007/11/01/scite-latex-lexer/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 18:07:28 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[scite]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/2007/11/01/scite-latex-lexer/</guid>
		<description><![CDATA[I&#8217;ve just created a page devoted to the topic.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=26&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve just created a <a href="http://mellit.wordpress.com/latex-with-scite/">page</a> devoted to the topic.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=26&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2007/11/01/scite-latex-lexer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>
	</item>
		<item>
		<title>Pari &#8211; Python</title>
		<link>http://mellit.wordpress.com/2007/10/28/pari-python/</link>
		<comments>http://mellit.wordpress.com/2007/10/28/pari-python/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 17:17:21 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gp]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[pari]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/2007/10/28/pari-python/</guid>
		<description><![CDATA[I finished some working version of the pari-python module. I tried to make it is close as possible to the standard PARI shell, at the same time using the standard python syntax. Here I put some screenshots. I didn&#8217;t make a proper package distribution for python (the code still looks ugly and I still don&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=22&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I finished some working version of the pari-python module. I tried to make it is close as possible to the standard PARI shell, at the same time using the standard python syntax. Here I put some screenshots. I didn&#8217;t make a proper package distribution for python (the code still looks ugly and I still don&#8217;t know how to make proper distributions), but if someone is interested to test it send me an email. This is in early alpha stage. A lot of things are not working. I imported almost all functions of gp by an automated perl script but I don&#8217;t know which of them actually work and which not.</p>
<p><span id="more-22"></span><br />
There are two special difficulties you may notice about python. The first one is the power operation. In python it is &#8216;**&#8217;, whereas &#8216;^&#8217; is reserved for the bitwise xor. I made some little changes to the python source so that &#8216;^&#8217; and &#8216;^=&#8217; now work as power, and &#8216;^^&#8217; and &#8216;^^=&#8217; work as xor if you still want to use it. This is done by modifying about 30 lines of source code in several files: Include/token.h, Modules/parsermodule.c, Parser/tokenizer.c,  Python/ast.c, Grammar/Grammar.</p>
<p>The second difficulty is that expressions like &#8217;1/2&#8242; produce 0 in python. For this my module installes my own handler for the operation &#8216;divide&#8217; for integers and longs. That&#8217;s it. In other respects it is a normal python module.</p>
<p>Please, any comments are welcome. Here are the screenshots. This is an example session:<a href="http://mellit.files.wordpress.com/2007/10/pari-python1.jpg" title="pari-python1.jpg"><img src="http://mellit.files.wordpress.com/2007/10/pari-python1.thumbnail.jpg" alt="pari-python1.jpg" /></a></p>
<p>This is an example of using the &#8216;help(pari)&#8217; command:</p>
<p><a href="http://mellit.files.wordpress.com/2007/10/pari-python2.jpg" title="pari-python2.jpg"><img src="http://mellit.files.wordpress.com/2007/10/pari-python2.thumbnail.jpg" alt="pari-python2.jpg" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=22&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2007/10/28/pari-python/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>

		<media:content url="http://mellit.files.wordpress.com/2007/10/pari-python1.thumbnail.jpg" medium="image">
			<media:title type="html">pari-python1.jpg</media:title>
		</media:content>

		<media:content url="http://mellit.files.wordpress.com/2007/10/pari-python2.thumbnail.jpg" medium="image">
			<media:title type="html">pari-python2.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>SciTE lexer</title>
		<link>http://mellit.wordpress.com/2007/10/22/scite-lexer/</link>
		<comments>http://mellit.wordpress.com/2007/10/22/scite-lexer/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 13:53:04 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[scite]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/2007/10/22/scite-lexer/</guid>
		<description><![CDATA[I rewrote the LaTEX lexer for the Scintilla text editor. Now it is more customizable, distinguishes math mode (both inline and environments like align, multline), supports folding, section headings, highlights environment names, etc.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=19&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I rewrote the LaTEX lexer for the <a href="http://www.scintilla.org/" title="Scintilla" target="_blank">Scintilla text editor.</a></p>
<p>Now it is more customizable, distinguishes math mode (both inline and environments like align, multline), supports folding, section headings, highlights environment names, etc.</p>
<p><a href="http://mellit.files.wordpress.com/2007/10/scite1.jpg" title="Latex lexer"><img src="http://mellit.files.wordpress.com/2007/10/scite1.thumbnail.jpg" alt="Latex lexer" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=19&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2007/10/22/scite-lexer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>

		<media:content url="http://mellit.files.wordpress.com/2007/10/scite1.thumbnail.jpg" medium="image">
			<media:title type="html">Latex lexer</media:title>
		</media:content>
	</item>
		<item>
		<title>PARI-Python intnum</title>
		<link>http://mellit.wordpress.com/2007/10/22/pari-python-intnum/</link>
		<comments>http://mellit.wordpress.com/2007/10/22/pari-python-intnum/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 10:26:37 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/2007/10/22/pari-python-intnum/</guid>
		<description><![CDATA[This is how intnum works with my module: &#62;&#62;&#62; import pari &#62;&#62;&#62; def f(x): ... return x^2 ... &#62;&#62;&#62; pari.intnum(0,1,f) 0.3333333333333333333333333333 Actually it works faster than in the standard PARI shell. The reason, I think, is that every time PARI wants to compute the value of the function we integrate it parses the string defining [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=18&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is how intnum works with my module:</p>
<pre>&gt;&gt;&gt; import pari
&gt;&gt;&gt; def f(x):
...     return x^2
...
&gt;&gt;&gt; pari.intnum(0,1,f)
0.3333333333333333333333333333</pre>
<p>Actually it works faster than in the standard PARI shell. The reason, I think, is that every time PARI wants to compute the value of the function we integrate it parses the string defining the function. In my case I simply do a function call which is faster.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=18&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2007/10/22/pari-python-intnum/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>
	</item>
		<item>
		<title>My Desktop</title>
		<link>http://mellit.wordpress.com/2007/10/20/my-desktop/</link>
		<comments>http://mellit.wordpress.com/2007/10/20/my-desktop/#comments</comments>
		<pubDate>Sat, 20 Oct 2007 11:43:58 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mellit.wordpress.com/2007/10/20/my-desktop/</guid>
		<description><![CDATA[I took a screenshot of my laptop&#8217;s screen. On top you see the &#8220;Stardock&#8221; bar which is similar to the Mac&#8217;s bar, the front window is &#8220;Kile&#8221; which is a KDE program for linux (running under cygwin), but the operating system is Windows XP! Click to view the original size image.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=16&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I took a screenshot of my laptop&#8217;s screen. On top you see the &#8220;Stardock&#8221; bar which is similar to the Mac&#8217;s bar, the front window is &#8220;Kile&#8221; which is a KDE program for linux (running under cygwin), but the operating system is Windows XP! Click to view the original size image.</p>
<p><a href="http://mellit.files.wordpress.com/2007/10/my-desktop.jpg" title="My Desktop"><img src="http://mellit.files.wordpress.com/2007/10/my-desktop.jpg?w=365&#038;h=276" alt="My Desktop" height="276" width="365" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mellit.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mellit.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mellit.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mellit.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mellit.wordpress.com&#038;blog=1340791&#038;post=16&#038;subd=mellit&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mellit.wordpress.com/2007/10/20/my-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2b30ccefffb41cf228d8d5e0ab45ed58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anton Mellit</media:title>
		</media:content>

		<media:content url="http://mellit.files.wordpress.com/2007/10/my-desktop.jpg" medium="image">
			<media:title type="html">My Desktop</media:title>
		</media:content>
	</item>
	</channel>
</rss>
