By googling around I stumbled upon the web site of geldoot, an artist which creates visual art by using dynamic html animations only.
It's quite surprising what he manages to do and even more interesting the fact that he release the source code of his experiments to the community under a Creative Common License (this).
From the various artworks I found 2 of them especially interesting.
The first one is an animation showing many businesslike men hanging in front of the spectator's eyes and moving around according to the mouse movement. I found them quite disturbing and somewhat recalling me the paint Golconda from René Magritte.
The other artwork is a three column animation of del.icio.us popular tags. The user can actually click any of them and warp to the corresponding del.icio.us bookmark page. Of this one the source code is especially quite interesting to be modified and implemented in one's website.
The gallery of the artworks is huge so I didn't have time to explore/try all the animations contained. If you find something amazing post a comment with the link so that I can have a look as well.
Thursday, December 11, 2008
Fallout 3 Editor released
I am currently preparing my review of Fallout 3. The review will be out soon but I have just discovered on the official Fallout 3 web site that Bethesda Softworks released G.E.C.K. also known as Garden of Eden Creation Kit. Beside being a main element of the game, G.E.C.K.'s the ultimate goodie for the Fallout 3 nerd.
Basically we're speaking of an editor which enables PC gamers to to expand the Fallout3 world with customized content created with this editor.
The tool should be somewhat similar to the Elder Scrolls Construction Set editor for those who're familiar with it.
Guys at Bethesda already created a wiki with detailed instructions, tutorials and videos to walk you though the usage of G.E.C.K. To make feel those who're not used to mods safe at home, the basic tutorial series is called "My First Vault".. ;)
You can download G.E.C.K. from here.
Here below the first youtube video tutorial.
[youtube=http://www.youtube.com/watch?v=Y2xskfNS8HE&eurl=http://bethblog.com/index.php/2008/12/11/the-geck-is-here/]
I have an Xbox360 version of the game so I won't be the pleasure to mod the game... :( But for those having the PC version, have fun folks!
Basically we're speaking of an editor which enables PC gamers to to expand the Fallout3 world with customized content created with this editor.
The tool should be somewhat similar to the Elder Scrolls Construction Set editor for those who're familiar with it.
Guys at Bethesda already created a wiki with detailed instructions, tutorials and videos to walk you though the usage of G.E.C.K. To make feel those who're not used to mods safe at home, the basic tutorial series is called "My First Vault".. ;)
You can download G.E.C.K. from here.
Here below the first youtube video tutorial.
[youtube=http://www.youtube.com/watch?v=Y2xskfNS8HE&eurl=http://bethblog.com/index.php/2008/12/11/the-geck-is-here/]
I have an Xbox360 version of the game so I won't be the pleasure to mod the game... :( But for those having the PC version, have fun folks!
Tuesday, December 9, 2008
How to write raw code in WordPress
As a corollary to one of my previous posts, and after extensive googling to avoid one bloody fastidious problem for one trying to blog about code (the WordPress auto-formatting which will trim your indentation and convert code enclosed between html tags in.. well what's turns out to be in reality), I found this guideline by WordPress support which is definitely godsend.
While WordPress.com doesn’t allow you to use potentially dangerous code on your blog, there is a way to post source code for viewing. We have created a shortcode you can wrap around source code that preserves its formatting and even provides syntax highlighting for certain languages, like so:
Wrap your code in these tags:
[sourcecode language='css']
your code here
[/sourcecode]
Any of the following can be used for the language parameter (using one is required):
Alex Gorbatchev’s syntaxhighligher Google Code project was used to implement this feature.
While WordPress.com doesn’t allow you to use potentially dangerous code on your blog, there is a way to post source code for viewing. We have created a shortcode you can wrap around source code that preserves its formatting and even provides syntax highlighting for certain languages, like so:
Wrap your code in these tags:
[sourcecode language='css']
your code here
[/sourcecode]
Any of the following can be used for the language parameter (using one is required):
- cpp
- csharp
- css
- delphi
- html
- java
- jscript
- php
- python
- ruby
- sql
- vb
- xml
Alex Gorbatchev’s syntaxhighligher Google Code project was used to implement this feature.
Monday, December 8, 2008
Which OS runs on Olivia's laptop (from Fringe 1x09)
I'm not sure enough to say for sure what's running on agent Olivia Dunham's laptop as seen during season 1 episode 09?
I've my own idea but as said I'm not really sure. What's your guess?
I've my own idea but as said I'm not really sure. What's your guess?
Saturday, December 6, 2008
Python 3.0 (a.k.a Pyhon 3000, a.k.a. Py3K) is the new release of the most wonderful (in my biased opinion) language in the coding world.
The fact is that Python 3.0 happens to be incompatible with the 2.x releases. The language of course is the same but there are significant differences that make most of the scripts written say with 2.5 stop running if passed to a python 3.0 interpreter.
On December 4th Guido Van Rossum, the creator of Python, drew up a What's new in Python 3.0 document to be found here.
Since I've no intention to go through every detail of the changelog I'll limit myself to tell just the most relevant change (or those that seems that to me).
- print statement becomes a function (and that's one of the biggest pain in the ass for code written with previous releases).
before we used to write:
>> print "Wiz and Chips rocks!"now we must call the function:
>> print ("Wiz and Chips rocks!")there are however many more and less trivial effects on the print statement (ehm.. function) to impact the new coding style.
- The ordering comparison operators (<, <=, >=, >) raise a TypeError exception when the operands can't be naturally compared one another. Expressions like 1 < "", 0 > None or len <= len are no longer valid. This however doesn't apply to == and != operators.
- long int type disappears. There's just one integer type int which essentially behave like the old long.
- An expression like 75/27 now returns a float. To get truncated value just use 75//27.
- The repr() of a long integer doesn't inlude the L character at the end of the representation. So if you have code that cut off that character by default it will now cut the last digit instead.
- Unicode strings and 8-bits string system is suppressed and changed by Python 3.0 with the concepts of text and binary data. The type used to store text is str and the type used to store data is bytes. Any attempts to mix text and data in Python 3.0 will raise a TypeError. This is a useful rationalisation as the previous system was inelegant and prone to generate flocks of bugs. This new concept however will certainly create lots of incompatibilities with codes out there which include both encoded and unencoded text. As str and bytes types can't be mixed they must explicitly converted (str.encode() --> str to bytes - bytes.decode() --> bytes to str). Bytes is immutable but there's a mutable form called bytearray.
- as and with are reserved words in Python 3.0 (but they were introduced in 2.6)
- List comprehensions no longer support the syntactic form for x in item1, item2, ..., we must use instead for x in (item1, item2, ...).
- The from MODULE import * syntax is only allowed at the module level, no longer inside functions.
- There's a new system for the string formating operations that replaces % operator. Thank God % it's still supported in 3.0 but will be deprecated by 3.1 and removed some time later. If you're interested in the new formatting system here's an extensive documentation about it.
- raw_input() is replaced by input() which also means that 3.0 input() isn't the same as 2.x input()
These are the main points that caught my superficial attention. I don't plan switching to 3.0 in the immediate future. My bet is that Python 3.0 usage path will be that of a flat curve. My concern in this field is about modules and extensions. Python has simply tons of them which enable you to pursue plainly every kind of activity you have in mind. Despite the release builtin modules I can't conceive an app written in python which doesn't rely on third part modules. Well, let alone the enterprise developed and supported libraries (i.e. reportlab which currently doesn't support 3.0 anyway), the scenario of small and often very useful libraries to be converted to Python 3.0 is not so happy in my mind. It will take time and maybe some crucial library will maybe remain relegated to the 2.x version of the language for God knows how many months / years.
The good news with this respect is that a 2to3 source-to-source translator is provided to be run on your source code. This tool should do most of the works to translate your code to be Python 3.0 compliant. The bugs remaining after a run under 3.0 must be however be fixed manually. For more information regarding this tool please read this page.
A last concern regards performance. They say that Python 3.0 runs the pystone benchmark around 10% slower than Python 2.5. They say there's room for improvement, however this is not so encouraging given that python's not known to be a fast language.
Python 3.0 is clearly a milestone release which main aim's that of rationalise and clean the language builtins. We will see if this release will improve the already boosting success of this wonderful language.
The fact is that Python 3.0 happens to be incompatible with the 2.x releases. The language of course is the same but there are significant differences that make most of the scripts written say with 2.5 stop running if passed to a python 3.0 interpreter.
On December 4th Guido Van Rossum, the creator of Python, drew up a What's new in Python 3.0 document to be found here.
Since I've no intention to go through every detail of the changelog I'll limit myself to tell just the most relevant change (or those that seems that to me).
- print statement becomes a function (and that's one of the biggest pain in the ass for code written with previous releases).
before we used to write:
>> print "Wiz and Chips rocks!"now we must call the function:
>> print ("Wiz and Chips rocks!")there are however many more and less trivial effects on the print statement (ehm.. function) to impact the new coding style.
- The ordering comparison operators (<, <=, >=, >) raise a TypeError exception when the operands can't be naturally compared one another. Expressions like 1 < "", 0 > None or len <= len are no longer valid. This however doesn't apply to == and != operators.
- long int type disappears. There's just one integer type int which essentially behave like the old long.
- An expression like 75/27 now returns a float. To get truncated value just use 75//27.
- The repr() of a long integer doesn't inlude the L character at the end of the representation. So if you have code that cut off that character by default it will now cut the last digit instead.
- Unicode strings and 8-bits string system is suppressed and changed by Python 3.0 with the concepts of text and binary data. The type used to store text is str and the type used to store data is bytes. Any attempts to mix text and data in Python 3.0 will raise a TypeError. This is a useful rationalisation as the previous system was inelegant and prone to generate flocks of bugs. This new concept however will certainly create lots of incompatibilities with codes out there which include both encoded and unencoded text. As str and bytes types can't be mixed they must explicitly converted (str.encode() --> str to bytes - bytes.decode() --> bytes to str). Bytes is immutable but there's a mutable form called bytearray.
- as and with are reserved words in Python 3.0 (but they were introduced in 2.6)
- List comprehensions no longer support the syntactic form for x in item1, item2, ..., we must use instead for x in (item1, item2, ...).
- The from MODULE import * syntax is only allowed at the module level, no longer inside functions.
- There's a new system for the string formating operations that replaces % operator. Thank God % it's still supported in 3.0 but will be deprecated by 3.1 and removed some time later. If you're interested in the new formatting system here's an extensive documentation about it.
- raw_input() is replaced by input() which also means that 3.0 input() isn't the same as 2.x input()
These are the main points that caught my superficial attention. I don't plan switching to 3.0 in the immediate future. My bet is that Python 3.0 usage path will be that of a flat curve. My concern in this field is about modules and extensions. Python has simply tons of them which enable you to pursue plainly every kind of activity you have in mind. Despite the release builtin modules I can't conceive an app written in python which doesn't rely on third part modules. Well, let alone the enterprise developed and supported libraries (i.e. reportlab which currently doesn't support 3.0 anyway), the scenario of small and often very useful libraries to be converted to Python 3.0 is not so happy in my mind. It will take time and maybe some crucial library will maybe remain relegated to the 2.x version of the language for God knows how many months / years.
The good news with this respect is that a 2to3 source-to-source translator is provided to be run on your source code. This tool should do most of the works to translate your code to be Python 3.0 compliant. The bugs remaining after a run under 3.0 must be however be fixed manually. For more information regarding this tool please read this page.
A last concern regards performance. They say that Python 3.0 runs the pystone benchmark around 10% slower than Python 2.5. They say there's room for improvement, however this is not so encouraging given that python's not known to be a fast language.
Python 3.0 is clearly a milestone release which main aim's that of rationalise and clean the language builtins. We will see if this release will improve the already boosting success of this wonderful language.
Thursday, December 4, 2008
Sign petition to save Caledon disabled child mini pony
I already blogged about this story.
Anyway for the lazy ones here's the summary. In Caledon, Canada, there's this 3yo child Sam who was born with cerebral palsy. Sam's a wonderful family and has a Emily, his miniature pony friend he's so attached to. Emily's also part of his therapy know as horse therapy or hippotherapy. Sam's doesn't live in a flat but in one acre (4046.8564224 bloody m2) house that borders a cattle farm. Well, some neighbours complaint that the pony smells and the Town Council or Law Enforcement or whatever found the bureaucratic quibble to evict Sam's companion.
Given that Antonia's about to stand in front of the-1000CAN$-worth Caledon Committee Of Adjustments, she's working to rise a sorta mass effect over the web (as well as local and national) to see if humanity, ethics and common sense have still some value for some people. I mean, I know that there are rules and laws but men, to tear a 3 years old disabled child from his beloved pony is something worth starring with the DC or Marvel SuperEvil of the year!
There's a petition online to ask the Caledon Committee Of Adjustments to accept Antonia's request for letting the pony stay in the property as she's not livestock but pet and therapist for Sam.
You can find the petition here and here below the text.
To: Caledon Committee Of Adjustments
We the undersigned implore the Caledon, Ontario Committee Of Adjustments to find in favor of the Spiteri Family in housing "Emily" (their miniature pony) on their property who has been living on the property within the community of Caledon for the last three years. We urge them to show Empathy and Compassion for the family and understand the reasons for Emily residing on said property is solely for the benefit of Sam who resides at the family home (on said property).
Sam is diagnosed with Spastic Quadriplegic Cerebral Palsy and has been using Emily for therapeutic purpose for the last 3 years. The pony is a help animal for a child with a disability. Just as guide dogs are allowed in public places restricted to other dogs, the Spiteri's pony should be allowed to stay on their property. This is not just the beloved pet of a small child - the pony is required for Sam's therapy for cerebral palsy.
The pony has therapeutic use. It is not "livestock" in the true sense of the word. It is not being reared in an agricultural setting to make food or fiber or perform labour for sustenance or material profit. It is a help animal. It is a friend for Sam and a therapy for his disability. The bylaw should not apply.
Sincerely,
The Spiteri Family
Here's the link to Antonia's Save Sam Spiteri Pony group on Facebook where you can find more information about the situation and upcoming Committee of Adjustments meeting.
Here's some links about the value of hippotherapy
http://www.americanhippotherapyassociation.org/
http://www.narha.org/
http://www.frdi.net/
Anyway for the lazy ones here's the summary. In Caledon, Canada, there's this 3yo child Sam who was born with cerebral palsy. Sam's a wonderful family and has a Emily, his miniature pony friend he's so attached to. Emily's also part of his therapy know as horse therapy or hippotherapy. Sam's doesn't live in a flat but in one acre (4046.8564224 bloody m2) house that borders a cattle farm. Well, some neighbours complaint that the pony smells and the Town Council or Law Enforcement or whatever found the bureaucratic quibble to evict Sam's companion.
Given that Antonia's about to stand in front of the-1000CAN$-worth Caledon Committee Of Adjustments, she's working to rise a sorta mass effect over the web (as well as local and national) to see if humanity, ethics and common sense have still some value for some people. I mean, I know that there are rules and laws but men, to tear a 3 years old disabled child from his beloved pony is something worth starring with the DC or Marvel SuperEvil of the year!
There's a petition online to ask the Caledon Committee Of Adjustments to accept Antonia's request for letting the pony stay in the property as she's not livestock but pet and therapist for Sam.
You can find the petition here and here below the text.
To: Caledon Committee Of Adjustments
We the undersigned implore the Caledon, Ontario Committee Of Adjustments to find in favor of the Spiteri Family in housing "Emily" (their miniature pony) on their property who has been living on the property within the community of Caledon for the last three years. We urge them to show Empathy and Compassion for the family and understand the reasons for Emily residing on said property is solely for the benefit of Sam who resides at the family home (on said property).
Sam is diagnosed with Spastic Quadriplegic Cerebral Palsy and has been using Emily for therapeutic purpose for the last 3 years. The pony is a help animal for a child with a disability. Just as guide dogs are allowed in public places restricted to other dogs, the Spiteri's pony should be allowed to stay on their property. This is not just the beloved pet of a small child - the pony is required for Sam's therapy for cerebral palsy.
The pony has therapeutic use. It is not "livestock" in the true sense of the word. It is not being reared in an agricultural setting to make food or fiber or perform labour for sustenance or material profit. It is a help animal. It is a friend for Sam and a therapy for his disability. The bylaw should not apply.
Sincerely,
The Spiteri Family
Here's the link to Antonia's Save Sam Spiteri Pony group on Facebook where you can find more information about the situation and upcoming Committee of Adjustments meeting.
Here's some links about the value of hippotherapy
http://www.americanhippotherapyassociation.org/
http://www.narha.org/
http://www.frdi.net/
Wednesday, December 3, 2008
Wordpress writing tool it's sometimes rather uncomfortable to use as, in my opinion, lacks of the flexibility to be swiftly usable for blogging.
Changing font size and type you must be done hacking around html code. I heard this is related to the design of each template which forces the usage of a standard type. Although this is logic, I still wonder if it wouldn't be possible to implement a way to easily select a custom font (even among a limited bunch) directly from the writing interface. Sometimes I just force the font selection via "MS Word or OO Word Processor" paste tool.
More than this font issue a bigger pain in the ass is when trying to post code excerpt within a blog post. When you save or publish your post, Wordpress just format and "normalize" the text. Special format or characters used can create a messy result. This is especially true when you must insert Python indented code as, among other things, the spaces will be trimmed off.
Anyway here's a trick to work this issue out.
Just enable the HTML interface and enclose the code (or any specially formatted text) between
Python code without
class HelloWorldWindow(QtGui.QMainWindow):
def __init__(self, parent = None):
QtGui.QMainWindow.__init__(self, parent)
self.setWindowTitle("My First Qt Window")
self.setGeometry(300,300,250,150)
self.setWindowIcon(QtGui.QIcon("C:/Python26/PyQt/Icon/gadu.png"))
self.setToolTip("Hello to this Wiz and Chips example!")
app = QtGui.QApplication(sys.argv)
main_window = HelloWorldWindow()
main_window.show()
app.exec_()
Python code with
Changing font size and type you must be done hacking around html code. I heard this is related to the design of each template which forces the usage of a standard type. Although this is logic, I still wonder if it wouldn't be possible to implement a way to easily select a custom font (even among a limited bunch) directly from the writing interface. Sometimes I just force the font selection via "MS Word or OO Word Processor" paste tool.
More than this font issue a bigger pain in the ass is when trying to post code excerpt within a blog post. When you save or publish your post, Wordpress just format and "normalize" the text. Special format or characters used can create a messy result. This is especially true when you must insert Python indented code as, among other things, the spaces will be trimmed off.
Anyway here's a trick to work this issue out.
Just enable the HTML interface and enclose the code (or any specially formatted text) between
andtags and this should do the trick.
Python code without
class HelloWorldWindow(QtGui.QMainWindow):
def __init__(self, parent = None):
QtGui.QMainWindow.__init__(self, parent)
self.setWindowTitle("My First Qt Window")
self.setGeometry(300,300,250,150)
self.setWindowIcon(QtGui.QIcon("C:/Python26/PyQt/Icon/gadu.png"))
self.setToolTip("Hello to this Wiz and Chips example!")
app = QtGui.QApplication(sys.argv)
main_window = HelloWorldWindow()
main_window.show()
app.exec_()
Python code with
class HelloWorldWindow(QtGui.QMainWindow):
def __init__(self, parent = None):
QtGui.QMainWindow.__init__(self, parent)
self.setWindowTitle("My First Qt Window")
self.setGeometry(300,300,250,150)
self.setWindowIcon(QtGui.QIcon("C:/Python26/PyQt/Icon/gadu.png"))
self.setToolTip("Hello to this Wiz and Chips example!")
app = QtGui.QApplication(sys.argv)
main_window = HelloWorldWindow()
main_window.show()
app.exec_()Of course I look forward Wordpress introducing some sort of code auto formatting. You can see something like the used by DaniWeb forum (check this thread of mine for an example).
Subscribe to:
Posts (Atom)



