This code is so fascinating
from PIL import Image
max_iteration = 1000
x_center = -1.0
y_center = 0.0
size = 300
im = Image.new(“RGB”, (size,size))
for i in xrange(size):
for j in xrange(size):
x,y = ( x_center + 4.0*float(i-size/2)/size,
[...]
Please take a look at this
This technology is probably the future of entertainment. It needs no batteries, has a nice resolution both for pictures and text, it can be easily bookmarked or annotated (although sometimes there’s not enough space). It can be bought both online and in a shop, brand new or used. It is [...]
Nothing new under the Sun, but the very interesting presentation makes it very cool to see. I just got to this article at BBC about the Top500 supercomputer list, where a very nice Treemap graph presents supercomputers according to their computational power. By selecting the Operating System, the dominance of Linux is staggering, confirming its [...]
I just got to this post by Richard le Guen via the referrals to my blog, and I feel it’s important to clarify my point.
So, let’s describe the problem. In HTML, you describe the layout of your information. How the information will look like is “presentation” and is managed via a so called Cascading Style [...]
One of the most frustrating experiences when learning a new technology is finding useless examples. An example is the most precious thing that comes with a new library, language, or technology. It must be a starting point, a wise and unadulterated explanation on how to achieve a given result. A perfect example must have the [...]
February 2, 2010 – 5:51 pm
I ran out of business cards recently, so I had to make new ones. I took the chance to indulge a bit over the QR-Code, a two-dimensional barcode you can find on everything in Japan. It’s a pretty nice barcode system, very stable with respect to corruption and quite ok in terms of capacity. Among [...]
December 8, 2009 – 4:03 pm
I am currently looking for a good choice of Content Management System/EPortfolio/Social Network tool to start the activity on wavemol.org . I don’t know exactly what kind of information wavemol will provide, although I know the argument: theoretical and computational chemistry. I believe that the main objectives of wavemol should be:
Provide community tools like [...]
November 24, 2009 – 6:17 am
I am playing with rdflib, a fantastic python library to handle RDF data. I had trouble understanding how to use contexts so to partition my ConjunctiveGraph into independent subgraphs. Here is the code
import rdflib
from rdflib.Graph import Graph
conj=rdflib.ConjunctiveGraph()
NS=rdflib.Namespace(“http://example.com/#”)
NS_CTX=rdflib.Namespace(“http://example.com/context/#”)
alice=NS.alice
bob=NS.bob
charlie=NS.charlie
pizza=NS.pizza
meat=NS.meat
chocolate=NS.chocolate
loves=NS.loves
hates=NS.hates
likes=NS.likes
dislikes=NS.dislikes
love_ctx=Graph(conj.store, NS_CTX.love)
food_ctx=Graph(conj.store, NS_CTX.food)
love_ctx.add( (alice, loves, bob) )
love_ctx.add( (alice, loves, charlie) )
love_ctx.add( (bob, hates, charlie) )
love_ctx.add( (charlie, loves, bob) )
food_ctx.add( [...]
November 23, 2009 – 3:06 am
A friend of mine just reported me a very tragic event. His bag with his laptop and his backups hard drive was stolen. I can feel his pain, having experienced the very same situation once, and I am writing here hints for him and the rest of the world to protect yourself from this eventuality.
Buy [...]
November 10, 2009 – 1:02 am
I am writing this post from my iPod touch. I am not enthusiast at all of the device, and I would gladly return it, but I am in a “no choice” situation. The reasons for my disappointment are the all-well-known limitations of the device, in particular the limit to only [...]