<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1728126273430750137</id><updated>2024-09-24T17:38:05.447-07:00</updated><category term="math"/><category term="image"/><category term="haskell"/><category term="fractal"/><category term="data mining"/><category term="rebol"/><category term="text mining"/><category term="javascript"/><category term="python"/><category term="ruby"/><category term="scala"/><category term="vedic math"/><category term="ANIMATION"/><category term="ART"/><category term="Il Cammino di Sant&#39;Agostino"/><category term="Italy"/><category term="MUSIC"/><category term="The Path of St. Augustine"/><category term="chaos"/><category term="context-free"/><category term="eu"/><category term="european parliament"/><category term="european union"/><category term="game"/><category term="jquery"/><category term="lombardia"/><category term="matplotlib"/><category term="mep"/><category term="numbers"/><category term="pdf"/><category term="phaser.js"/><category term="script"/><title type='text'>snakelemma blog</title><subtitle type='html'>yuki programming - Rem tene, verba sequentur</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-7394714620733574673</id><published>2016-04-15T12:17:00.000-07:00</published><updated>2016-04-15T12:17:39.098-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eu"/><category scheme="http://www.blogger.com/atom/ns#" term="european parliament"/><category scheme="http://www.blogger.com/atom/ns#" term="european union"/><category scheme="http://www.blogger.com/atom/ns#" term="game"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="mep"/><category scheme="http://www.blogger.com/atom/ns#" term="phaser.js"/><title type='text'></title><content type='html'>Can you match the MEPs with their Member States?

&lt;a href=&quot;http://www.thinkingabout.eu/match&quot;&gt;http://www.thinkingabout.eu/match&lt;/a&gt;
</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/7394714620733574673/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/7394714620733574673' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7394714620733574673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7394714620733574673'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2016/04/can-you-match-meps-with-their-member.html' title=''/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-5253852057456397439</id><published>2011-05-24T10:19:00.000-07:00</published><updated>2011-05-25T04:11:50.178-07:00</updated><title type='text'>A method to exchange keys and values in a python dictionary</title><content type='html'>Around the web i&#39;ve found this method to exchange keys and values in a python dictionary:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: lime;&quot;&gt;the_dict = { &#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3 }
inverted_dict = dict(zip(*zip(*the_dict.items())[::-1]))&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
output:&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: lime;&quot;&gt;{ 1:&#39;a&#39;, 2:&#39;b&#39;, 3:&#39;c&#39; }&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
it is nice isn&#39;t it?&lt;br /&gt;
but how does it work? &lt;br /&gt;
The main idea is to split keys and values in a list of two n-tuples $$[ (k_1,...,k_n) , (v_1,...,v_n)]&amp;nbsp;,$$&lt;br /&gt;
switch the tuples and re-create a dictionary.&lt;br /&gt;
&lt;br /&gt;
ingredients are:&lt;br /&gt;
1 - operator * (also known as &#39;splat&#39; operator) that is able to unpack a list&lt;br /&gt;
2 - zip function that returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterable&lt;br /&gt;
3 - a_list[::-1] to revert a_list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can unpack the algorithm&amp;nbsp;in those 5 nested steps:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;a&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt; - the_dict.items()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;b&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt; - zip(*the_dict.items())
&lt;/span&gt;c&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt; - zip(*the_dict.items())[::-1]
&lt;/span&gt;d&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt; - zip(*zip(*the_dict.items())[::-1])
&lt;/span&gt;e&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt; - dict(zip(*zip(*the_dict.items())[::-1]))&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
a - with the_dict.items() we obtain:&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt; [(&#39;a&#39;, 1), (&#39;b&#39;, 2), (&#39;c&#39;, 3)]&lt;/span&gt;
&lt;/pre&gt;b - then, using * operator in the zip function:&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt;zip(*the_dict.items())&lt;/span&gt;
 we are doing:
 &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt;zip((&#39;a&#39;, 1), (&#39;b&#39;, 2), (&#39;c&#39;, 3) )&lt;/span&gt;
 obtaining:
 &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt;[(&#39;a&#39;, &#39;b&#39;, &#39;c&#39;), (1, 2, 3)]&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
c - with [::-1] we actually switch key and values &lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt;zip(*the_dict.items())[::-1] = [(&#39;a&#39;, &#39;b&#39;, &#39;c&#39;), (1, 2, 3)][::-1] 
 = 
 [(&#39;a&#39;, &#39;b&#39;, &#39;c&#39;), (1, 2, 3)]&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
d - with the second zip * pair we re-unpack the list to recreate the 3 pairs:&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt;zip(*zip(*the_dict.items())[::-1]) =
 zip(*[(&#39;a&#39;, &#39;b&#39;, &#39;c&#39;), (1, 2, 3)]) =zip((&#39;a&#39;, &#39;b&#39;, &#39;c&#39;), (1, 2, 3) ) 
 =
 [(&#39;a&#39;, 1), (&#39;b&#39;, 2), (&#39;c&#39;, 3)]&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
e - now our new dict is almost cooked, we use dict() function to complete the opera:&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt;dict(zip(*zip(*the_dict.items())[::-1])) 
 = 
 dict ([(&#39;a&#39;, 1), (&#39;b&#39;, 2), (&#39;c&#39;, 3)])&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; white-space: normal;&quot;&gt;the output:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; white-space: normal;&quot;&gt;&lt;pre style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #9fc5e8;&quot;&gt;{ 1:&#39;a&#39;, 2:&#39;b&#39;, 3:&#39;c&#39; }&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;all this stuff in 1 row.&lt;/pre&gt;&lt;/span&gt;

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/5253852057456397439/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/5253852057456397439' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/5253852057456397439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/5253852057456397439'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2011/05/method-to-exchange-keys-and-values-in.html' title='A method to exchange keys and values in a python dictionary'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-7972580959404877628</id><published>2011-05-23T04:01:00.000-07:00</published><updated>2011-05-23T04:01:04.461-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Happy numbers in python</title><content type='html'>I&#39;ll show you a method in python to check if a number is happy.&lt;br /&gt;
When a number is happy? Well, you have to follow this algorithm:&lt;br /&gt;
&lt;br /&gt;
1. Take a number n.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;n = 23&lt;br /&gt;
2. Dissect it into digits.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 and 3&lt;br /&gt;
3. Square them all and add them up&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2^ 2 + 3 ^ 2  = 4 + 9 = 13&lt;br /&gt;
4. You get a new number m.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;m = 13&lt;br /&gt;
5. If m = 1, n is happy; otherwise set n = m and repeat at 1.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1^2 + 3^2 = 1 + 9 = 10&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;n = 10&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 ^ 2 + 0 ^ 2 = 1 &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23 is happy!&lt;br /&gt;
6. If you run into a loop, n is not a happy number (is sad).&lt;br /&gt;
&lt;br /&gt;
I&#39;ve used recursion because it is fun (talking about happy numbers).&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;def &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #741b47;&quot;&gt;happy&lt;/span&gt;(n, past = set()):
    m = sum(int(i)**2 &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;for &lt;/span&gt;i &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;in &lt;/span&gt;str(n))
    &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;if &lt;/span&gt;m == 1:
  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;return &lt;/span&gt;True
    &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;if &lt;/span&gt;m &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;in &lt;/span&gt;past:
  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;return &lt;/span&gt;False
    past.add(m)
    &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;return &lt;/span&gt;happy(m,past)
 
print [ x &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;for &lt;/span&gt;x &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;in &lt;/span&gt;range(1,100) &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;if &lt;/span&gt;happy(x, set())]
&lt;/pre&gt;&lt;br /&gt;
Here &#39;past&#39; is a set, needed to check if we are in a loop.&lt;br /&gt;
The output shows the set of happy numbers below 100.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;[1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97]
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/7972580959404877628/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/7972580959404877628' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7972580959404877628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7972580959404877628'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2011/05/happy-numbers-in-python.html' title='Happy numbers in python'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-6798579238722689642</id><published>2011-05-19T04:34:00.000-07:00</published><updated>2011-05-22T08:43:21.865-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chaos"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="matplotlib"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>logistic map in python</title><content type='html'>Simple logistic map using python and &lt;a href=&quot;http://matplotlib.sourceforge.net/index.html&quot;&gt;matplotlib&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;import math
import matplotlib.pyplot as plt

def logistic(xa =2.9 , xb=4.0 , imgx = 240 , imgy = 500, 
    maxit = 200, f=lambda x,r: r * x * (1 - x) ):
 xs = []
 ys = []
 for i in range(imgx):
  r = xa + (xb - xa) * float(i)/(imgx - 1)
  x = 0.5
  for j in range(maxit):   
   x = f(x,r)   
   if j &amp;gt; maxit / 2:
    xs.append( i ) 
    ys.append(int(x * imgy))
 return [xs,ys]
 
 
myfunction = lambda x,r: r * (math.sin(x)**2) 
points = logistic( xa = 2.1 ,xb = 3.1, imgy=200 , f=myfunction)
ax = plt.subplot(121)
ax.scatter(points[0], points[1], s= 1)

points = logistic()
bx = plt.subplot(122)
bx.scatter(points[0], points[1], s= 1)
plt.show()


&lt;/pre&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggq2GngJPC9EciJbeJVQ6a7-6I-_As0TbItUaO_gpyuhXm6xt5dA_tUHMWoJaiMxZNm1tbLGAKziKgOPf4dNnL8UOHq3tUJXcYiV6X5JaNklxrJpIvRKQUc7MPHqMaNGn4poF7YR6p0qw/s1600/logistic_map.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;logistic map in python&quot; border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggq2GngJPC9EciJbeJVQ6a7-6I-_As0TbItUaO_gpyuhXm6xt5dA_tUHMWoJaiMxZNm1tbLGAKziKgOPf4dNnL8UOHq3tUJXcYiV6X5JaNklxrJpIvRKQUc7MPHqMaNGn4poF7YR6p0qw/s320/logistic_map.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/6798579238722689642/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/6798579238722689642' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6798579238722689642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6798579238722689642'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2011/05/simple-logistic-map-using-python.html' title='logistic map in python'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggq2GngJPC9EciJbeJVQ6a7-6I-_As0TbItUaO_gpyuhXm6xt5dA_tUHMWoJaiMxZNm1tbLGAKziKgOPf4dNnL8UOHq3tUJXcYiV6X5JaNklxrJpIvRKQUc7MPHqMaNGn4poF7YR6p0qw/s72-c/logistic_map.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-6883341885710460857</id><published>2011-04-04T11:19:00.000-07:00</published><updated>2011-04-04T11:23:34.361-07:00</updated><title type='text'>Caostabile is Online</title><content type='html'>A little bit of Math and Physics curiosities and amenities&amp;nbsp;( in italian )&amp;nbsp;.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://caostabile.altervista.org/&quot;&gt;http://caostabile.altervista.org/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/6883341885710460857/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/6883341885710460857' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6883341885710460857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6883341885710460857'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2011/04/caostabile-is-online.html' title='Caostabile is Online'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-27923251208573675</id><published>2010-08-03T01:27:00.000-07:00</published><updated>2010-08-03T01:27:45.895-07:00</updated><title type='text'>My drupal site</title><content type='html'>&lt;a href=&quot;http://snakelemma.altervista.org/portale&quot;&gt;my drupal site&lt;/a&gt;&amp;nbsp;hosted by altervista</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/27923251208573675/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/27923251208573675' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/27923251208573675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/27923251208573675'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2010/08/my-drupal-site.html' title='My drupal site'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-7863408692841464018</id><published>2010-03-26T07:00:00.001-07:00</published><updated>2011-05-25T04:28:33.056-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="data mining"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="text mining"/><title type='text'>Similarity Matrix in Text Mining</title><content type='html'>&lt;div id=&quot;s2f.&quot; style=&quot;text-align: left;&quot;&gt;( in this post i&#39;m testing&amp;nbsp;&lt;a href=&quot;http://www.mathjax.org/&quot;&gt;http://www.mathjax.org&lt;/a&gt;&amp;nbsp;for latex math formulas )&lt;br /&gt;
What is a similarity matrix ( in text mining ) and why is important? &lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #99ffff;&quot;&gt;CORPUS&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We have to start from a corpus composed by k documents: &lt;br /&gt;
&lt;div id=&quot;s13l&quot; style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;$$ \left\{ D_i \right\}_{i=1}^k $$&lt;/div&gt;&amp;nbsp;( A corpus is merely collection of documents )&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #99ffff;&quot;&gt;SIMILARITY MATRIX&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A way to find semantic structures in the corpus is to study the occurrence and the&lt;br /&gt;
co-occurrence for every pair of words in the corpus.&lt;br /&gt;
A good tool to find something interesting is a &lt;u&gt;similarity matrix&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #99ffff;&quot;&gt;DEFINITION&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To define a similarity matrix we must define the similarity between two objects ( words )&lt;br /&gt;
&lt;div id=&quot;cytc&quot; style=&quot;text-align: left;&quot;&gt;$$ s(w_i, w_j ) $$&lt;/div&gt;a similarity matrix becomes simply a matrix that contains the ratio of similarity between&lt;br /&gt;
the objects of index i and j for the generic position {i,j}&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://docs.google.com/File?id=dfstq5tf_42f6n9pcfc_b&quot; style=&quot;background: gray; height: auto; width: 304px;&quot; /&gt;&lt;br /&gt;
&lt;div id=&quot;bu6q&quot; style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;a good similarity matrix can follow from this definition:&amp;nbsp;$$ s(w_i,w_j) = \dfrac {c(w_i,w_j) } { f(w_i) \cdot f(w_j) }$$&amp;nbsp;where: &amp;nbsp;$$ c(w_i,w_j) $$&amp;nbsp;is the co-occurrence between two words ( the number of documents containing both&lt;br /&gt;
words )&lt;br /&gt;
&lt;div id=&quot;vr.n&quot; style=&quot;text-align: left;&quot;&gt;and: &amp;nbsp;$$f(w_i) $$&lt;/div&gt;is the occurrence of the word.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #99ffff;&quot;&gt;MATRIX REPRESENTATIONS&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #99ffff;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #99ffff;&quot;&gt;- &lt;b&gt;GRAPH&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The created matrix is symmetric and could be visualized using a undirected weighted graph.&lt;br /&gt;
The nodes represents the words and the similarity between the two words is given by the&lt;br /&gt;
weight between two nodes.&lt;br /&gt;
&lt;img src=&quot;http://docs.google.com/File?id=dfstq5tf_51gdrdb2hj_b&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: grey; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; height: auto; width: 395px;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
this visualization is nearly useless (easily more than 10000 nodes!!!) .&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #99ffff;&quot;&gt;- &lt;b&gt;METRIC SPACE&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
A way to handle this info is to position k points in an n-dimensional space so that the mutual&lt;br /&gt;
distance between a couple of elements previously defined could reflect the weight between&lt;br /&gt;
the related pair of words.$$w_i \mapsto p_i | s(w_i,w_j) = \dfrac{1}{||p_i - p_j||} &amp;nbsp;\forall i,j \leq k$$&lt;br /&gt;
( higher weight - closer distance )&lt;br /&gt;
&lt;br /&gt;
a problem related with this approach is that is not always operable (matrix could not be&lt;br /&gt;
compatible with metrics constraints ) and the requested dimension of the target space&lt;br /&gt;
is a&amp;nbsp;$$O(k^2).$$&lt;br /&gt;
so we need to use a technique to reduce the dimension preserving the significant information&lt;br /&gt;
( reducing the dimension brings a certain loss of information).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #99ffff;&quot;&gt;SEMANTIC STRUCTURES&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Using the representation in an n-dimensional space is important to analyze clusters of points.&lt;br /&gt;
A cluster could be defined as a subset of points whose mutual distances are much smaller&lt;br /&gt;
than the average distance of the complete set.&lt;br /&gt;
&lt;br /&gt;
A cluster is a reflection of some kind of statistical structure of the corpus.&lt;br /&gt;
&lt;br /&gt;
Structures able to create a cluster can either be:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;language related rules ( eg: syntactic structures ) or &lt;/li&gt;
&lt;li&gt;semantic meanings ( eg: topics )&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/7863408692841464018/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/7863408692841464018' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7863408692841464018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7863408692841464018'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2010/03/similarity-matrix-in-text-mining.html' title='Similarity Matrix in Text Mining'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-7815924602236892481</id><published>2009-12-29T03:03:00.000-08:00</published><updated>2009-12-29T03:13:45.555-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>Verlet integration in Haskell</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 25px; font-family:Arial, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;Verlet integration algorithm written in 3 minutes&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#CCCCCC;&quot;&gt;-- Verlet integration&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;projOneTwo  &lt;/span&gt;( a, b, c , d ,e ) =  ( a, b) &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;nextStepInt &lt;/span&gt;(_ ,_ , 0 ,_ ,_ )  = []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;nextStepInt &lt;/span&gt;( xt ,vt , n , &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;acc &lt;/span&gt;, h )  = &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF6600;&quot;&gt;let&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;atph&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;= &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;acc &lt;/span&gt;. ( xt + )  $ h &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;vtph &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;=  &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;vt +  atph * h * 0.5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;xtph  &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;=   xt + h * vt  + 0.5 * &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;acc &lt;/span&gt;xt * h^2 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF6600;&quot;&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;( xtph, vtph , n-1 , &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;acc &lt;/span&gt;, h ) : &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;nextStepInt &lt;/span&gt;( xtph, vtph , n-1 , &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;acc &lt;/span&gt;, h ) &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;timeInt &lt;/span&gt;( xt ,vt , n , &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;acc &lt;/span&gt;, h ) = &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;map &lt;/span&gt;( &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;projOneTwo &lt;/span&gt;) $ &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;nextStepInt &lt;/span&gt;( xt ,vt , n , &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#33FF33;&quot;&gt;acc &lt;/span&gt;, h )&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;example ( spring ) : &lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; timeInt (0 , 1 , 10000 , (\x -&gt; 0.1 * ( - x ) ) , 0.2 )&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/7815924602236892481/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/7815924602236892481' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7815924602236892481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7815924602236892481'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/12/verlet-integration-algorithm-written-in.html' title='Verlet integration in Haskell'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-7009213750384836696</id><published>2009-12-24T03:49:00.000-08:00</published><updated>2009-12-24T03:50:41.256-08:00</updated><title type='text'>my delicious</title><content type='html'>&lt;div&gt;now i&#39;m in delicious: &lt;a href=&quot;http://delicious.com/koteth&quot;&gt;http://delicious.com/koteth&lt;/a&gt;&lt;/div&gt;&lt;div&gt;A lot of Haskell links.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/7009213750384836696/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/7009213750384836696' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7009213750384836696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7009213750384836696'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/12/my-delicious.html' title='my delicious'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-6622941734636455735</id><published>2009-12-08T07:41:00.000-08:00</published><updated>2011-05-22T08:30:10.268-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fractal"/><category scheme="http://www.blogger.com/atom/ns#" term="haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>Cairo-Chaos Haskell</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIt2Q6x5y4pu6a2G4Rf7ZVn5Rm6KccEFY6e_qhvlTKDlXU-RUpQBChN0kwR5KUVoG_R4DriG4YXYjADR4a9WPItX3LIZB42yv0V-_sxox39XvKVaGJSPdAl3iYHce9fIHvC5xEznp26h4/s1600-h/logis.png&quot;&gt;&lt;img style=&quot;margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 273px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIt2Q6x5y4pu6a2G4Rf7ZVn5Rm6KccEFY6e_qhvlTKDlXU-RUpQBChN0kwR5KUVoG_R4DriG4YXYjADR4a9WPItX3LIZB42yv0V-_sxox39XvKVaGJSPdAl3iYHce9fIHvC5xEznp26h4/s320/logis.png&quot; alt=&quot;logistic map in haskell&quot; id=&quot;BLOGGER_PHOTO_ID_5412891760095326098&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Haskell chaos and lib-cairo.&lt;br /&gt;
&lt;br /&gt;
Is only a fixed-point iteration over this function:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;lgs x r  =  r  * x * exp(- x  )&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/6622941734636455735/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/6622941734636455735' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6622941734636455735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6622941734636455735'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/12/cairo-chaos-haskell.html' title='Cairo-Chaos Haskell'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIt2Q6x5y4pu6a2G4Rf7ZVn5Rm6KccEFY6e_qhvlTKDlXU-RUpQBChN0kwR5KUVoG_R4DriG4YXYjADR4a9WPItX3LIZB42yv0V-_sxox39XvKVaGJSPdAl3iYHce9fIHvC5xEznp26h4/s72-c/logis.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-8002568816272684263</id><published>2009-12-08T03:32:00.000-08:00</published><updated>2009-12-08T03:52:15.606-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>Dollar $ operator in Haskell</title><content type='html'>Do you know what is $ operator in Haskell?&lt;br /&gt;$ means simply , &#39;apply the left function at the right value&#39;.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;f $ x := f x &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;it seems really trivial, isn&#39;t it ?&lt;br /&gt;But, for example in this kind of situation, is really usefull:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;zipWith ( $ ) ( cycle [ \x -&gt; div (x + 1) 2 , \x -&gt; div x 2 ] ) [1..]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;here you have a infinite list of function:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;a =  cycle [ \x -&gt; div (x + 1) 2 , \x -&gt; div x 2 ]&lt;/span&gt;&lt;br /&gt;( ie:&lt;span style=&quot;font-style: italic;&quot;&gt; [\x -&gt; div (x + 1) 2 , \x -&gt; div x 2 , \x -&gt; div (x + 1) 2 , \x -&gt; div x 2, ... ] &lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;and you want to apply every element of the list at the element&lt;br /&gt;at the same index in the second list:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;b =  [1..]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;zipWith, for every index &lt;span style=&quot;font-style: italic;&quot;&gt;i&lt;/span&gt; takes the element&lt;span style=&quot;font-style: italic;&quot;&gt; a(i) &lt;/span&gt;of the left list&lt;br /&gt;and &lt;span style=&quot;font-style: italic;&quot;&gt;b(i) &lt;/span&gt;of the right list and execute what is requested inside the parentheses.&lt;br /&gt;In this situation is specified $ so:&lt;br /&gt;&lt;br /&gt;a(i) $ b(i )  := a(i) (  b(i) )&lt;br /&gt;&lt;br /&gt;the result must be the following:&lt;br /&gt;&lt;br /&gt;[ 1 ,1 , 2, 2 , 3 ,3 ... and so on.</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/8002568816272684263/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/8002568816272684263' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/8002568816272684263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/8002568816272684263'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/12/dollar-operator-in-haskell.html' title='Dollar $ operator in Haskell'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-1125179443689069330</id><published>2009-12-08T02:45:00.000-08:00</published><updated>2009-12-08T03:55:47.132-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>Prime Numbers in haskell</title><content type='html'>well, do you want to know how to find &#39;prime numbers&#39; in a quick and dirty&lt;br /&gt;way using Haskell ?&lt;br /&gt;try this!&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;import Data.List&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;nubBy ( \x y -&gt; mod y x == 0 ) [2..]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Haskell is so easy and charming...&lt;br /&gt;&lt;br /&gt;( ps: if you want to speed up a little bit:&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;nubBy ( \x y -&gt; ( x*x-1 &lt;= y ) &amp;amp;&amp;amp; ( mod y x == 0 ) ) [2..]  &lt;/span&gt;&lt;br /&gt;)</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/1125179443689069330/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/1125179443689069330' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/1125179443689069330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/1125179443689069330'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/12/prime-numbers-in-haskell.html' title='Prime Numbers in haskell'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-6310133730516359503</id><published>2009-08-20T08:05:00.000-07:00</published><updated>2011-05-22T08:33:04.092-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fractal"/><category scheme="http://www.blogger.com/atom/ns#" term="haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>re: Mandelbrot Set in Haskell</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;import Data.Complex&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;conv p=(\n-&amp;gt;&quot;.,:;|!([$O0*%#@?&quot;!!(n-1))(ceiling (p*8)::Int)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;gr=map(\y-&amp;gt;[(x:+y)|x&amp;lt;-[-2,-1.97..0.7]])[-1.2,-1.13..1.2]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;--px w=magnitude(foldl1(\z c -&amp;gt;z^2 +c)(replicate 10 w))&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;px w=(magnitude.last.take 10.takeWhile(\r-&amp;gt;(magnitude r )&amp;lt;6).iterate(\z-&amp;gt;z^2+w))w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;image=map((map(\el-&amp;gt;case(px el&amp;lt;2)of{true-&amp;gt;conv(px el);_-&amp;gt;&#39; &#39;})))gr&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;main=mapM_ putStrLn image&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;img border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5372062996771023922&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5IDWrIHQOqjgm3aHDRfUaXJr9GZZmi6d5JsI9mE2WfZhuL9wMhenmRPeuaqr_YQTY7hqDThDgjLkrCVkPFnWyw13ERzscZWmZ9fMwoUPHmKegsUHOdWa3kWBFPP62eRA4LSkd7MRKDiQ/s320/Mandelbrot_Haskell_new.png&quot; style=&quot;cursor: hand; cursor: pointer; float: left; height: 216px; margin: 0 10px 10px 0; width: 320px;&quot; alt=&quot;mandelbrot haskell ascii-art&quot;  /&gt;&lt;br /&gt;
&lt;div&gt;better...&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/6310133730516359503/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/6310133730516359503' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6310133730516359503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6310133730516359503'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/08/re-mandelbrot-set-in-haskell.html' title='re: Mandelbrot Set in Haskell'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5IDWrIHQOqjgm3aHDRfUaXJr9GZZmi6d5JsI9mE2WfZhuL9wMhenmRPeuaqr_YQTY7hqDThDgjLkrCVkPFnWyw13ERzscZWmZ9fMwoUPHmKegsUHOdWa3kWBFPP62eRA4LSkd7MRKDiQ/s72-c/Mandelbrot_Haskell_new.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-7785608918314360455</id><published>2009-08-20T03:43:00.000-07:00</published><updated>2009-08-20T04:00:02.191-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fractal"/><category scheme="http://www.blogger.com/atom/ns#" term="haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>Mandelbrot set in Haskell</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;import Data.Complex&lt;br /&gt;gr = map(\y-&gt; [( x:+y )|x&lt;-[-3,-2.95..1]])[-2,-1.9..2]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;px (a:+b) = magnitude(foldl (\z c -&gt;z^2+c) 0 (take 10([((a*x):+b)|x&lt;-[1,1..]])))&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;image = map((map(\el-&gt;case(px el&lt;2)of{true-&gt;&#39;*&#39;;_ -&gt;&#39;-&#39;})))gr&lt;br /&gt;main = mapM_ putStrLn ( (map(\el-&gt;show el) )image )&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJERANJwdWYqCqUckdlBMwNhbsgdydELj-VlTVUa1gpqPp9yJya3yvFH3lu6lYF86s3tu7YXg9llSR2wrzNFLbD0M9dVdXN5F87G1ZD4XaJMy6mUKmPu_FS5kh7P4inuobu_sHgHo1nPk/s320/Mandelbrot_Haskell.png&quot; style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 270px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5371998365531220626&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;A first interpretation ( a little bit unsatisfactory ) of the Mandelbrot set in Haskell&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/7785608918314360455/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/7785608918314360455' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7785608918314360455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/7785608918314360455'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/08/mandelbrot-set-in-haskell.html' title='Mandelbrot set in Haskell'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJERANJwdWYqCqUckdlBMwNhbsgdydELj-VlTVUa1gpqPp9yJya3yvFH3lu6lYF86s3tu7YXg9llSR2wrzNFLbD0M9dVdXN5F87G1ZD4XaJMy6mUKmPu_FS5kh7P4inuobu_sHgHo1nPk/s72-c/Mandelbrot_Haskell.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-6256339241792861222</id><published>2009-08-18T09:02:00.000-07:00</published><updated>2009-08-20T03:58:31.805-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>Numbers in Haskell</title><content type='html'>The core of &lt;a href=&quot;http://snakelemma.blogspot.com/2009/07/my-first-time-in-rebol-and-numbers.html&quot;&gt;numbers post&lt;/a&gt; in Haskell:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;idens p q x   =  case ( rem  ( x ^ 2  ) p ) of { 1  -&gt; 1 ; _ -&gt; 0 }&lt;br /&gt;numList p x = map ( idens p x ) ( map ( x * ) [ 1..( p-1 ) ] )&lt;br /&gt;matIde p =  map ( numList p ) [ 1..(p-1) ]&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/6256339241792861222/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/6256339241792861222' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6256339241792861222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6256339241792861222'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/08/core-of-numbers-post-in-haskell-0.html' title='Numbers in Haskell'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-8770410075919717062</id><published>2009-08-16T08:44:00.001-07:00</published><updated>2009-08-17T07:23:58.038-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Il Cammino di Sant&#39;Agostino"/><category scheme="http://www.blogger.com/atom/ns#" term="Italy"/><category scheme="http://www.blogger.com/atom/ns#" term="lombardia"/><category scheme="http://www.blogger.com/atom/ns#" term="The Path of St. Augustine"/><title type='text'>The Path of St. Augustine</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://files.splinder.com/d78d65c47045df1846f435ad3ea50d6d.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 282px; height: 857px;&quot; src=&quot;http://files.splinder.com/d78d65c47045df1846f435ad3ea50d6d.jpg&quot; border=&quot;0&quot; alt=&quot;The Path of St. Augustine&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.camminodiagostino.splinder.com/&quot;&gt;Here &lt;/a&gt;you can find info about &quot;&lt;a href=&quot;http://www.camminodiagostino.splinder.com/&quot;&gt;Il Cammino di Sant&#39;Agostino&lt;/a&gt; ( The Path of  St. Augustine )&quot; in Italy.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/8770410075919717062/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/8770410075919717062' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/8770410075919717062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/8770410075919717062'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/08/here-you-can-find-info-about-il-cammino.html' title='The Path of St. Augustine'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-3303892659662732601</id><published>2009-08-16T08:26:00.000-07:00</published><updated>2009-08-17T07:24:55.831-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="image"/><title type='text'>Dungeon ( Quinta da Regaleira - Portugal )</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFX5YzcISFn9v2PTtqPHq4loe69wj0TrqlYBE2rfKOcjZk04LB4mMUTa0Ft5YwzSZwfSQ2NfqEnLZrgtj7d0lHRxv5KAvcU3Gd89B7J1nn1GcAIrXLgl58K21b-bq1K08xlz0XymFRU9A/s1600-h/Dungeon-Quinta-da-Regaleira.JPG&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 240px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFX5YzcISFn9v2PTtqPHq4loe69wj0TrqlYBE2rfKOcjZk04LB4mMUTa0Ft5YwzSZwfSQ2NfqEnLZrgtj7d0lHRxv5KAvcU3Gd89B7J1nn1GcAIrXLgl58K21b-bq1K08xlz0XymFRU9A/s320/Dungeon-Quinta-da-Regaleira.JPG&quot; border=&quot;0&quot; alt=&quot;Quinta da Regaleira&quot; id=&quot;BLOGGER_PHOTO_ID_5370587172301204066&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family:Verdana;font-size:10px;&quot;&gt;&lt;h3&gt;&lt;span class=&quot;arial14&quot;   style=&quot;background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; color: rgb(0, 0, 0);   text-decoration: none; background-position: initial initial; font-family:Arial;font-size:16px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Quinta_da_Regaleira&quot;&gt;Quinta da Regaleira&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt; ( Mystic Cristina )</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/3303892659662732601/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/3303892659662732601' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/3303892659662732601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/3303892659662732601'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/08/dungeon-quinta-da-regaleira-portugal.html' title='Dungeon ( Quinta da Regaleira - Portugal )'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFX5YzcISFn9v2PTtqPHq4loe69wj0TrqlYBE2rfKOcjZk04LB4mMUTa0Ft5YwzSZwfSQ2NfqEnLZrgtj7d0lHRxv5KAvcU3Gd89B7J1nn1GcAIrXLgl58K21b-bq1K08xlz0XymFRU9A/s72-c/Dungeon-Quinta-da-Regaleira.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-5276456455146470436</id><published>2009-07-19T10:25:00.000-07:00</published><updated>2011-05-22T08:34:53.793-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fractal"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="rebol"/><title type='text'>Mandelbrot in Rebol</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnTGE4Qo50jOlscCVxSVv6j9KJnPOcVJpZ-8hmWiByZoDeFh7iMIBU051AfYY5Bc6zVBPMz7dfOD_iSKMJ-QXiXrIyEtLQZ1mSUZ4_alrO0bYGm71k5TosbBIZ9lJPji-scgcnWcSuN6k/s1600-h/mandelbrRebol.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 218px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnTGE4Qo50jOlscCVxSVv6j9KJnPOcVJpZ-8hmWiByZoDeFh7iMIBU051AfYY5Bc6zVBPMz7dfOD_iSKMJ-QXiXrIyEtLQZ1mSUZ4_alrO0bYGm71k5TosbBIZ9lJPji-scgcnWcSuN6k/s320/mandelbrRebol.png&quot; border=&quot;0&quot; alt=&quot;mandelbrot in rebol&quot; id=&quot;BLOGGER_PHOTO_ID_5360224324860547618&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
And this is my interpretation of Mandelbrot fractal using Rebol:&lt;div&gt;&lt;a href=&quot;http://sites.google.com/site/snakelemma/documents/mandelb.r?attredirects=0&quot;&gt;mandelb.r&lt;/a&gt; &lt;/div&gt;&lt;div&gt;This language allow to write a gui using few rows of code.&lt;/div&gt;&lt;div&gt;There is still a problem with zoom functionality ( I hope to fix it soon ).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;You can see also my &lt;a href=&quot;http://snakelemma.blogspot.com/2008/10/esoteric-ruby-mandelbrot.html&quot;&gt;ruby mandelbrot&lt;/a&gt; .&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/5276456455146470436/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/5276456455146470436' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/5276456455146470436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/5276456455146470436'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/mandelbrot-in-rebol.html' title='Mandelbrot in Rebol'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnTGE4Qo50jOlscCVxSVv6j9KJnPOcVJpZ-8hmWiByZoDeFh7iMIBU051AfYY5Bc6zVBPMz7dfOD_iSKMJ-QXiXrIyEtLQZ1mSUZ4_alrO0bYGm71k5TosbBIZ9lJPji-scgcnWcSuN6k/s72-c/mandelbrRebol.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-6525766252794856943</id><published>2009-07-12T03:25:00.000-07:00</published><updated>2009-07-12T03:52:07.195-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="data mining"/><category scheme="http://www.blogger.com/atom/ns#" term="text mining"/><title type='text'>Latent Semantic Indexing ( LSI )</title><content type='html'>&lt;div&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Latent_semantic_indexing&quot;&gt;LSI &lt;/a&gt;is  a simple but powerful   indexing and retrieval method that is able to identify patterns in the relationships between the terms and concepts contained in a  text corpus.&lt;/div&gt;&lt;div&gt;The mathematics of LSI easy to understand cause is based entirely on vector and matrix algebra.&lt;/div&gt;&lt;div&gt;I&#39;ll post soon some code ( if someone needs code, my mail is always open ).&lt;/div&gt;&lt;div&gt;&lt;div&gt;A good link to start your journey is:  &lt;a href=&quot;http://lsi.research.telcordia.com/lsi/LSIpapers.html&quot;&gt;lsi.research.telcordia.com/lsi/LSIpapers.html&lt;/a&gt; .&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/6525766252794856943/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/6525766252794856943' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6525766252794856943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6525766252794856943'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/latent-semantic-indexing-lsi.html' title='Latent Semantic Indexing ( LSI )'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-5075282433093413171</id><published>2009-07-11T12:01:00.000-07:00</published><updated>2011-05-22T08:35:33.007-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Peano in Js</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKpZ-TEib_3oxF0MWkwhfGPcmx0v47U66SWRyGBtpL-gFiXpGa0PPVzgDIb1WrS6lDeEDjqlrNdMMNQwXHyKItSezZaHoGos0IDv5VSQ75SkiFZynYS7pnfnphM5Faz3ys4hdGNkTeePI/s1600-h/peanoJs.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 220px; height: 220px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKpZ-TEib_3oxF0MWkwhfGPcmx0v47U66SWRyGBtpL-gFiXpGa0PPVzgDIb1WrS6lDeEDjqlrNdMMNQwXHyKItSezZaHoGos0IDv5VSQ75SkiFZynYS7pnfnphM5Faz3ys4hdGNkTeePI/s320/peanoJs.png&quot; border=&quot;0&quot; alt=&quot;peano javascript&quot; id=&quot;BLOGGER_PHOTO_ID_5357281058096380082&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;You Can find Here &#39;&lt;a href=&quot;http://sites.google.com/site/snakelemma/documents/peano.RenameIn-H.t.m.l?attredirects=0&quot;&gt;peano&lt;/a&gt;&#39;, my interpretation of &lt;a href=&quot;http://en.wikipedia.org/wiki/Space-filling_curve&quot;&gt;Peano Curve&lt;/a&gt; in&lt;a href=&quot;http://jquery.com/&quot;&gt; jQuery&lt;/a&gt; ( javascript ) using canvas ( if you insist to use iexplorer you must download also &lt;a href=&quot;http://excanvas.sourceforge.net/&quot;&gt;exCanvas.pack.js&lt;/a&gt;  to see something ).&lt;/div&gt;&lt;div&gt;To see this image  you need only the last &lt;a href=&quot;http://jquery.com/&quot;&gt;jQuery&lt;/a&gt; js library and a browser...&lt;/div&gt;&lt;div&gt;Ah, you also need to rename the file with &#39;HTML&#39; as extension.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/5075282433093413171/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/5075282433093413171' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/5075282433093413171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/5075282433093413171'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/peano-my-interpretation-of-peano-curve.html' title='Peano in Js'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKpZ-TEib_3oxF0MWkwhfGPcmx0v47U66SWRyGBtpL-gFiXpGa0PPVzgDIb1WrS6lDeEDjqlrNdMMNQwXHyKItSezZaHoGos0IDv5VSQ75SkiFZynYS7pnfnphM5Faz3ys4hdGNkTeePI/s72-c/peanoJs.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-6519919671887288896</id><published>2009-07-11T10:12:00.000-07:00</published><updated>2009-07-11T10:18:52.526-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANIMATION"/><category scheme="http://www.blogger.com/atom/ns#" term="ART"/><category scheme="http://www.blogger.com/atom/ns#" term="MUSIC"/><title type='text'>Metamorphosis ( Music animation )</title><content type='html'>&lt;div&gt;Follow this link...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;http://vimeo.com/1747316?pg=embed&amp;amp;sec=1747316&quot;&gt;http://vimeo.com/1747316?pg=embed&amp;amp;sec=1747316&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/6519919671887288896/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/6519919671887288896' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6519919671887288896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/6519919671887288896'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/metamorphosis-music-animation.html' title='Metamorphosis ( Music animation )'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-4876899151929716605</id><published>2009-07-06T09:09:00.000-07:00</published><updated>2011-05-22T08:35:48.956-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="context-free"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><title type='text'>context-free art</title><content type='html'>A little piece of &lt;a href=&quot;http://www.contextfreeart.org/&quot;&gt;context-free art&lt;/a&gt;:&lt;br /&gt;
&lt;pre&gt;&lt;a href=&quot;http://sites.google.com/site/snakelemma/documents/circles.cfdg?attredirects=0&quot;&gt;circles.cfdg&lt;/a&gt;&lt;/pre&gt;&lt;pre&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTfHf9Yh7BTETPOakiLlcEBnYVUh8u2jvFo7bhjxUoNlU60CrjQST_xVmFbneA4ZpVQHVSazOmrqXNg5GNw2ruakgIBAurIR1Wv8O_RvJPIuGUzmPNJVXyE_fEtnPmx42jBUwXpKL8WFA/s320/circles.png&quot; id=&quot;BLOGGER_PHOTO_ID_5355380644643403698&quot; style=&quot;FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 319px; CURSOR: hand; HEIGHT: 349px&quot; alt=&quot;context-free art&quot; border=&quot;0&quot; /&gt;startshape trails
background {b -1}
rule trail {
trail{
sat 0.001
a -0.001
r 0.4
y 0.5
s 0.999y 0.5
}
SQUARE{s 1}
}
rule trail 0.001 {
trail{flip 90} ring{x 5}
}
rule trails {
140*{r 120}trail{b 1 sat 0 h 100}
}
rule ring {
120*{r 5}SQUARE{s 4 0.5 y 6 h 100}
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/4876899151929716605/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/4876899151929716605' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/4876899151929716605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/4876899151929716605'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/little-piece-of-context-free-art.html' title='context-free art'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTfHf9Yh7BTETPOakiLlcEBnYVUh8u2jvFo7bhjxUoNlU60CrjQST_xVmFbneA4ZpVQHVSazOmrqXNg5GNw2ruakgIBAurIR1Wv8O_RvJPIuGUzmPNJVXyE_fEtnPmx42jBUwXpKL8WFA/s72-c/circles.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-8332950062929990011</id><published>2009-07-06T05:40:00.001-07:00</published><updated>2009-07-06T12:35:05.852-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rebol"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><title type='text'>Rebol Search File</title><content type='html'>Another little Rebol program:&lt;div&gt;&lt;a href=&quot;http://sites.google.com/site/snakelemma/documents/rebTest.r?attredirects=0&quot;&gt;rebTest.r&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia;font-size:130%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; white-space: normal;font-size:16px;&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Crawzeu32Y81UiMyF9olzOszE67hxKpT4f6ffdHt6tu7z_3iu2U39AKKAscm5Y-CeCWNLWCexre-QG1pUNR7LDt-IenxiuiGq8T5Vyng7OPdMCJ5L_WuB3agafVREZFIY9jZp3Tdh04/s320/rebTest.png&quot; style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 225px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5355432794854321202&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;REBOL [Title: &quot;Ricerca&quot;]&lt;br /&gt;mainWin: layout [&lt;br /&gt;banner green &quot;Ricerca Parola&quot; box brick 580x2&lt;br /&gt;text &quot;Parola da cercare&quot;&lt;br /&gt;infi1: field infi2: field &quot;&quot;&lt;br /&gt;text &quot;nome file&quot;&lt;br /&gt;selFile: text-list data read %. [&lt;br /&gt;infi2/data: value&lt;br /&gt;infi2/text: value&lt;br /&gt;show infi2&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt; button &quot;Ricerca&quot;  [&lt;br /&gt;fil1: to-file infi2/data&lt;br /&gt;text: read fil1&lt;br /&gt;outOne: copy &quot;&quot;&lt;br /&gt;while [ text: find text infi1/data ] [&lt;br /&gt;   formattedStuff:  reduce [ &quot; ( &quot; index?  text  &quot; ) &quot; copy/part text  10  ]&lt;br /&gt;append outOne &quot;^/ ( indice ) riga:   &quot;&lt;br /&gt;append outOne form formattedStuff&lt;br /&gt;text: next text&lt;br /&gt;]&lt;br /&gt;tuno/text: form outOne show tuno&lt;br /&gt;]&lt;br /&gt;at 260x70&lt;br /&gt;tuno: area 340x300 across&lt;br /&gt;text &quot;Risultato&quot;&lt;br /&gt;]&lt;br /&gt;windowHelp: layout [&lt;br /&gt;backcolor linen&lt;br /&gt;h2 &quot;Help Window&quot;&lt;br /&gt;text 300 { Inserisci la parola da ricercare e il nome del file...&lt;br /&gt;}&lt;br /&gt;button &quot;Chiudimi&quot; [ unview/only windowHelp ]&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;windowHelp/offset: mainWin/offset + (mainWin/size * 1x0) + 10x0&lt;br /&gt;view/new mainWin&lt;br /&gt;view/new windowHelp&lt;br /&gt;do-events&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/8332950062929990011/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/8332950062929990011' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/8332950062929990011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/8332950062929990011'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/another-little-rebol-program-rebol.html' title='Rebol Search File'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Crawzeu32Y81UiMyF9olzOszE67hxKpT4f6ffdHt6tu7z_3iu2U39AKKAscm5Y-CeCWNLWCexre-QG1pUNR7LDt-IenxiuiGq8T5Vyng7OPdMCJ5L_WuB3agafVREZFIY9jZp3Tdh04/s72-c/rebTest.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-1695137869549842181</id><published>2009-07-06T05:24:00.000-07:00</published><updated>2009-07-06T08:33:51.628-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="data mining"/><category scheme="http://www.blogger.com/atom/ns#" term="pdf"/><category scheme="http://www.blogger.com/atom/ns#" term="text mining"/><title type='text'>&#39;Text Categorization with SVM</title><content type='html'>A really nice pdf about &#39;Text Categorization with Support Vector Machines&#39; ( from University of Dortmund ) :&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.cs.cornell.edu/People/tj/publications/joachims_97b.pdf&quot;&gt;http://www.cs.cornell.edu/People/tj/publications/joachims_97b.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I&#39;ll try to post soon some code in Python about this problem...</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/1695137869549842181/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/1695137869549842181' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/1695137869549842181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/1695137869549842181'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/really-nice-pdf-about-text.html' title='&#39;Text Categorization with SVM'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1728126273430750137.post-3858901224963428633</id><published>2009-07-06T01:32:00.000-07:00</published><updated>2009-07-12T04:24:30.927-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="rebol"/><title type='text'>My first time in Rebol and numbers</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAeXCOieWTAA4iYyRjkcvKxQBhYyso-hW4CNHGhyphenhyphenfd9KsgjUitEHkPbZtr6eINoV5iYU59LowSI4qGomRvJZyzi7fGfRXjCuswFbxSCMwkYMdi39rRbivulkW3TiI54_Le1_V_HAfg85Y/s1600-h/numbers.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 265px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAeXCOieWTAA4iYyRjkcvKxQBhYyso-hW4CNHGhyphenhyphenfd9KsgjUitEHkPbZtr6eINoV5iYU59LowSI4qGomRvJZyzi7fGfRXjCuswFbxSCMwkYMdi39rRbivulkW3TiI54_Le1_V_HAfg85Y/s320/numbers.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5355433729062843042&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Rebol is a fantastic language!&lt;br /&gt;You can try this code in the Rebol/view Console:&lt;br /&gt;&lt;a href=&quot;http://sites.google.com/site/snakelemma/documents/numbers.r?attredirects=0&quot;&gt;numbers.r&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;REBOL [Title: &quot;Numbers Test&quot;]&lt;br /&gt;ena: 121&lt;br /&gt;positions: []&lt;br /&gt;dimPal: 3&lt;br /&gt;&lt;br /&gt;unitar: func [ ele enne ][ either (( (ele // enne) == 1 ) or (( ele // enne) == (enne - 1)))[ 1  ] [&quot;-&quot;] ]&lt;br /&gt;&lt;br /&gt;evaluateUni: func [ en ] [&lt;br /&gt;for j 1 en 1[ st: copy &quot;&quot;&lt;br /&gt;for i 1 en 1[&lt;br /&gt;append st unitar i * j en&lt;br /&gt;sr: square-root en&lt;br /&gt;if ( unitar i * j en ) == 1  [ append positions ( as-pair i j  ) * 350 / en + 23x23 ]&lt;br /&gt;]&lt;br /&gt;]&lt;br /&gt;positions&lt;br /&gt;]&lt;br /&gt;evaluateUni ena&lt;br /&gt;&lt;br /&gt;refre: does[&lt;br /&gt;positions: copy []&lt;br /&gt;evaluateUni ena&lt;br /&gt;pis: copy []&lt;br /&gt;posi: copy positions&lt;br /&gt;foreach p posi[ insert tail pis  reduce[ &#39;fill-pen 160.209.215.100 &#39;circle p dimPal ]  ]&lt;br /&gt;out: form ( length? positions ) / 2 == ( ena - 1 )&lt;br /&gt;insert tail pis reduce [  &#39;text 230x5 join &quot;numero primo: &quot;   out ]&lt;br /&gt;scrn/effect/draw: copy []&lt;br /&gt;append scrn/effect/draw pis&lt;br /&gt;show scrn&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;refreNoEval: does[&lt;br /&gt;pis: copy []&lt;br /&gt;posi: copy positions&lt;br /&gt;foreach p posi[ insert tail pis  reduce[ &#39;fill-pen 160.209.215.100 &#39;circle p dimPal ]  ]&lt;br /&gt;out: form ( length? positions ) / 2 == ( ena - 1 )&lt;br /&gt;insert tail pis reduce [  &#39;text 230x5 join &quot;numero primo: &quot;   out ]&lt;br /&gt;scrn/effect/draw: copy []&lt;br /&gt;append scrn/effect/draw pis&lt;br /&gt;show scrn&lt;br /&gt;]&lt;br /&gt;lay: layout [&lt;br /&gt;&lt;br /&gt;scrn: box 400x400 black effect [&lt;br /&gt;draw [ text &quot;unit&quot; ]&lt;br /&gt;rotate 50&lt;br /&gt;gradmul 180.180.210 180.60.255&lt;br /&gt;]&lt;br /&gt;slider 200x16 ena / 300 [&lt;br /&gt;ena: to-integer value * 300&lt;br /&gt;inpNum/data: form ena&lt;br /&gt;inpNum/text: form ena&lt;br /&gt;show inpNum&lt;br /&gt;refre&lt;br /&gt;]&lt;br /&gt;inpNum: field form ena [&lt;br /&gt;print to-integer inpNum/text&lt;br /&gt;ena: to-integer inpNum/text &lt;br /&gt;]&lt;br /&gt;at 330x460&lt;br /&gt;btn &quot;Change&quot;  [&lt;br /&gt;refre&lt;br /&gt;]&lt;br /&gt;slider 100x15 dimPal / 10 [&lt;br /&gt;dimPal: to-integer  value    * 10&lt;br /&gt;refreNoEval&lt;br /&gt;]&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;view lay&lt;/span&gt; &lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://snakelemma.blogspot.com/feeds/3858901224963428633/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1728126273430750137/3858901224963428633' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/3858901224963428633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1728126273430750137/posts/default/3858901224963428633'/><link rel='alternate' type='text/html' href='http://snakelemma.blogspot.com/2009/07/my-first-time-in-rebol-and-numbers.html' title='My first time in Rebol and numbers'/><author><name>koteth</name><uri>http://www.blogger.com/profile/03602371957681742281</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAeXCOieWTAA4iYyRjkcvKxQBhYyso-hW4CNHGhyphenhyphenfd9KsgjUitEHkPbZtr6eINoV5iYU59LowSI4qGomRvJZyzi7fGfRXjCuswFbxSCMwkYMdi39rRbivulkW3TiI54_Le1_V_HAfg85Y/s72-c/numbers.png" height="72" width="72"/><thr:total>2</thr:total></entry></feed>