This commit is contained in:
parent
921a32711e
commit
a299cd9ed7
|
@ -1,14 +1,12 @@
|
|||
---
|
||||
date: 2007-03-25T16:30:29+01:00
|
||||
title: Playing with ctypes and libcaca
|
||||
aliases:
|
||||
- /blog/2007/03/25/Playing-with-ctypes-and-libcaca/
|
||||
tags:
|
||||
- ctypes
|
||||
- libcaca
|
||||
- python
|
||||
- snake
|
||||
---
|
||||
+++
|
||||
date = 2007-03-25T16:30:29+01:00
|
||||
title = "Playing with ctypes and libcaca"
|
||||
aliases = [
|
||||
"blog/2007/03/25/Playing-with-ctypes-and-libcaca"
|
||||
]
|
||||
[taxonomies]
|
||||
tags = ["ctypes", "libcaca", "python", "snake"]
|
||||
+++
|
||||
|
||||
[ctypes](http://docs.python.org/dev/lib/module-ctypes.html) is a foreign
|
||||
function interface for Python. It allows to call functions in dlls/shared
|
||||
|
@ -27,7 +25,7 @@ features:
|
|||
* dithering of colour images;
|
||||
* advanced text canvas operations (blitting, rotations).
|
||||
|
||||
{{< figure src="/media/blog/snake.py.png" alt="snake.py screenshot" >}}
|
||||
![snake.py screenshot](/media/blog/snake.py.png)
|
||||
|
||||
**Update 2009/10/11:** libcaca API changed so this entry in now obsolete but
|
||||
snake.py example works: you can read the source to get in touch with the new
|
||||
|
@ -191,7 +189,8 @@ while True:
|
|||
time.sleep(0.1)
|
||||
```
|
||||
|
||||
The complete example is here: [snake.py](http://hg.mornie.org/misc/file/tip/snake.py).
|
||||
The complete example is here:
|
||||
[snake.py](https://noa.mornie.org/eriol/misc/src/branch/main/snake.py).
|
||||
|
||||
**Update 2007/10/20:** [Sam Hocevar](http://sam.zoy.org/) pointed me about
|
||||
importance of checking caca_get_event's return value, otherwise from time to
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
date: 2007-05-19T17:46:58+01:00
|
||||
title: PyCon It
|
||||
---
|
||||
+++
|
||||
date = "2007-05-19T17:46:58+01:00"
|
||||
title = "PyCon It"
|
||||
aliases = ["blog/2007/05/19/pycon-it"]
|
||||
+++
|
||||
|
||||
The first [Python Conference](http://www.pycon.it/) in Italy will be held in
|
||||
The first [Python Conference](https://pycon.it/) in Italy will be held in
|
||||
**Florence** on **June**, the **9th** and **10th**.
|
||||
|
||||
If you ***love*** Python, you can't miss it! :)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
date: 2010-10-21T13:24:38+01:00
|
||||
title: pyth in Debian NEW Queue
|
||||
tags:
|
||||
- debian
|
||||
- python
|
||||
---
|
||||
+++
|
||||
date = 2010-10-21T13:24:38+01:00
|
||||
title = "pyth in Debian NEW Queue"
|
||||
aliases = ["blog/2010/10/21/pyth-debian-new-queue"]
|
||||
[taxonomies]
|
||||
tags = ["debian", "python"]
|
||||
+++
|
||||
|
||||
Thanks to [Piotr Ożarowski](http://www.ozarowski.pl/) my first Debian package
|
||||
is in the [NEW Queue](http://ftp-master.debian.org/new/pyth_0.5.6-1.html)! :)
|
||||
Thanks to [Piotr Ożarowski](https://qa.debian.org/developer.php?login=piotr) my first Debian package
|
||||
is in the [NEW Queue](https://ftp-master.debian.org/new/)! :)
|
||||
|
||||
**Update 2010-11-08:** [It's in](https://packages.qa.debian.org/p/pyth/news/20101108T220249Z.html)! :)
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
date: 2007-09-01T00:12:03+01:00
|
||||
title: Python 3.0a1 Released!
|
||||
tags:
|
||||
- python
|
||||
---
|
||||
+++
|
||||
date = 2007-09-01T00:12:03+01:00
|
||||
title = "Python 3.0a1 Released!"
|
||||
aliases = ["blog/2007/09/01/python-30a1-released"]
|
||||
[taxonomies]
|
||||
tags = ["python"]
|
||||
+++
|
||||
|
||||
Yes, the first alpha release is [out](http://python.org/download/releases/3.0/)! :D
|
||||
Yes, the first alpha release is [out](https://python.org/download/releases/3.0/)! :D
|
||||
|
||||
Congratulations to all python developers for this release!!!
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
date: 2007-12-08T03:10:16+01:00
|
||||
title: Python 3.0a2 Released!
|
||||
tags:
|
||||
- python
|
||||
---
|
||||
+++
|
||||
date = 2007-12-08T03:10:16+01:00
|
||||
title = "Python 3.0a2 Released!"
|
||||
aliases = ["blog/2007/12/08/python-30a2-released"]
|
||||
[taxonomies]
|
||||
tags = ["python"]
|
||||
+++
|
||||
|
||||
The [second alpha](http://python.org/download/releases/3.0/) release is out!
|
||||
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
+++
|
||||
date = "2006-12-19T00:33:59+01:00"
|
||||
title = "Python in a Nutshell"
|
||||
aliases = ["blog/2006/12/19/python-nutshell"]
|
||||
[taxonomies]
|
||||
tags = ["python"]
|
||||
+++
|
||||
|
||||
Today, when I arrived at home I saw a package on the table in the living room:
|
||||
|
||||
{{< figure src="/media/python_in_a_nutshell_2edition.jpg" alt="Python in a Nutshell" >}}
|
||||
![Python in a Nutshell cover](/media/python_in_a_nutshell_2edition.jpg)
|
||||
|
||||
My first purchase on Amazon! :)
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
---
|
||||
date: 2007-04-26T00:34:12+01:00
|
||||
title: A reminder using GTK shaped window
|
||||
---
|
||||
+++
|
||||
date = 2007-04-26T00:34:12+01:00
|
||||
title = "A reminder using GTK shaped window"
|
||||
aliases = ["blog/2007/04/26/reminder-using-gtk-shaped-window"]
|
||||
[taxonomies]
|
||||
tags = ["python"]
|
||||
+++
|
||||
|
||||
The [GNU/Linux User Group Catania](http://catania.linux.it/) meets the last
|
||||
The [GNU/Linux User Group Catania](https://catania.linux.it/) meets the last
|
||||
thursday of every month. Usually a reminder is sent to mailing list by someone,
|
||||
but the other day a friend of mine started a «reminder contest».
|
||||
|
||||
|
@ -35,7 +38,7 @@ It's time to write the GUI part!
|
|||
|
||||
An image is worth a thousand words.
|
||||
|
||||
{{< figure src="/media/blog/preminder.png" alt="preminder 100% screenshot" >}}
|
||||
![preminder 100% screenshot](/media/blog/preminder.png)
|
||||
|
||||
Yes, the **pizza** is our window :)
|
||||
|
||||
|
@ -69,7 +72,7 @@ To masks out everything except for the image we have to use
|
|||
self.window.shape_combine_mask(self.mask, 0, 0)
|
||||
```
|
||||
|
||||
{{< figure src="/media/blog/preminder2.png" alt="preminder 60% screenshot" >}}
|
||||
![preminder 60% screenshot](/media/blog/preminder2.png)
|
||||
|
||||
Changing the window itself as the time for the appointment approaches, can be
|
||||
useful.
|
||||
|
@ -106,7 +109,7 @@ useful.
|
|||
|
||||
We have to change only the mask to obtain the desired effect.
|
||||
|
||||
{{< figure src="/media/blog/preminder3.png" alt="preminder 30% screenshot" >}}
|
||||
![preminder 30% screenshot](/media/blog/preminder3.png)
|
||||
|
||||
Checking for last thursday of every month can be done in few line of code using
|
||||
[dateutil](http://labix.org/python-dateutil):
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
date: 2007-05-06T08:36:25+01:00
|
||||
title: RSS Feeds a Go-Go!
|
||||
---
|
||||
+++
|
||||
date = 2007-05-06T08:36:25+01:00
|
||||
title = "RSS Feeds a Go-Go!"
|
||||
aliases = ["blog/2007/05/06/rss-feeds-go-go"]
|
||||
+++
|
||||
|
||||
Finally I had the time to add [RSS feeds](https://en.wikipedia.org/wiki/RSS)! I
|
||||
hope you enjoy them. :)
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
date: 2009-11-11T02:52:16+01:00
|
||||
title: Still alive :D
|
||||
---
|
||||
+++
|
||||
date = 2009-11-11T02:52:16+01:00
|
||||
title = "Still alive :D"
|
||||
aliases = ["blog/2009/11/11/still-alive"]
|
||||
+++
|
||||
|
||||
Yes, I'm still alive. I worked hard and life was too much busy to write
|
||||
something in the meanwhile. :(
|
||||
|
@ -10,7 +11,7 @@ Fast news:
|
|||
|
||||
* I wrote again my blog engine during upgrade of this site to django 1.1.1:
|
||||
now is more comfortable!
|
||||
* I have just update my old entry about [python and libcaca](/blog/2007/03/25/playing-with-ctypes-and-libcaca/);
|
||||
* I have just update my old entry about [python and libcaca](@/blog/playing-with-ctypes-and-libcaca.md);
|
||||
* I will return to work on [netsukuku](http://www.netsukuku.org/) soon!
|
||||
* I joined the [DMI Eurobot](http://eurobot.dmi.unict.it/) team. :)
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
---
|
||||
date: 2007-01-10T16:06:10+01:00
|
||||
title: "Storing binary data in SQLite"
|
||||
aliases:
|
||||
- /blog/2007/01/10/Storing-binary-data-in-SQLite/
|
||||
---
|
||||
+++
|
||||
date = 2007-01-10T16:06:10+01:00
|
||||
title = "Storing binary data in SQLite"
|
||||
aliases = [
|
||||
"blog/2007/01/10/Storing-binary-data-in-SQLite",
|
||||
"blog/2007/01/10/storing-binary-data-in-sqlite"
|
||||
]
|
||||
[taxonomies]
|
||||
tags = ["python"]
|
||||
+++
|
||||
|
||||
Storing images into a database is not common, usually you store only the file
|
||||
name, but sometimes it can be useful. Think you must log the position of several
|
||||
|
|
Loading…
Reference in a new issue