Now that Web 2.0 is here, everybody enjoys to metamorphose his web browser into a
rich, very rich, client application, like a real desktop application.
Thats not always a good idea... Web has to be kept simple.
Nevertheless, Google and Yahoo have proved many times that is possible.
Since Google doc has been released, everybody wants to be able to manage HTML
tables as OpenOffice or Excel spreadsheets do.
While upgrading my gentoo based laptop after 8monthes of lazy abandonness in profit of exiting projects, i saw that the gentoo's python was forced to use UCS==4.
What an heck while dealing with the 'minitage env' file which mix the system and project environment resulting in a mixin of the system and project python.
Normally, there are no problem, unless your pythons come with different UCS flavors.
Cool thing is that those errors are not silent, and you see them if you are hitted by this flaw :
I refreshed a little the ohloh minitage's related page to have some marketing analysis around minitage basecode.
For this, i wanted to add all repositories, what a heck for 200 repos...
Time to create minitage.ohloh to create the repositories for me using some fake browser ;-).
This package uses lxml (XPath), zope.testbrowser (fake browser) and urllib (some handmade http requests) to make the work done.
Calling strftime on a date/datetime instance on py24/py26 will raise a value error like this:
>>> from datetime import date >>> date(1800,1,1).strftime('%d%m%Y') Traceback (most recent call last): File "", line 1, in ValueError: year=1800 is before 1900; the datetime strftime() methods require year >= 1900Quite annoying heh ?
There is a bug related on the python bugtracker here : http://bugs.python.org/issue1777412
GIVE ME ONLY DEPENDENCIES
You can know select to build all dependencies but not the package.
For exemple, to build all python-2.4 dependencies but not python-2.4 itself, you can do:
minimerge -v --only-dependencies python-2.4BUILD THIS PYTHON PACKAGE FOR THIS PYTHON
For 'eggs' packages, the default was to make come in dependencies all python avaiable in minitage and to build the 'site-packages-Major.Minor' part if it was a buildout build..
Just a little post to say that snowleopard let run minitage.
As a note, you must have all SDK installed, specially the 10.4!
Now, nginx and apache are packaged inside minitage.
You have :
Enjoy running:
easy_install -U minitage.paste paster create -t minitage.instances.nginx myproject #deploy some nginx instance (init scripts, logrotates, docroot) paster create -t minitage.instances.apacher myproject #deploy some nginx instance (init scripts, logrotates, docroot)I have added recently the support for standalone tomcat instances and running applications in those tomcat instances.
For example, to initiate a great hudson (contineous integration), you can run the following:
If you are not inside a minitage environment:
easy_install -U minitage.paste.extras paster create -t minitage.instances.tomcat myproject # it will ask you for the location of a tomcat extracted tarball paster create -t minitage.instances.hudson myprojectAnd if you are not inside a minitage environment, to deploy in a myproject subdirectory
For a project I have tried to create a more simple editorial process for Plone.To understand this you have first to know the normal editorial process of Plone:
* First you have to go to the folder where you want to add your article.
* Next you click on add an article
* You fill the form (content [...]
For a project I have tried to create a more simple editorial process for Plone.To understand this you have first to know the normal editorial process of Plone:
* First you have to go to the folder where you want to add your article.
* Next you click on add an article
* You fill the form (content [...]
Because I often duplicate a production site on a local machine in order to do some debugging/bugfixes, I like everything to be ready the sooner as possible without having to do a lot of clicks.
Here is how I override values in my custom settings.php file instead of loosing time clicking into the administration pages or even doing configuration alteration with Drush.
Here is a common production site settings.php $conf variable alteration :
I promised to some colleagues that someday, I will make a short post about my Eclipse eclipse.ini file, there it is!
Using Eclipse with some fancy plugins, you may experience a lot of the infamous quite annoying OutOfMemoryException or some incredible slowness sometime.
What do you think this code will output:
<?phpIf you answered NULL, 0 or '7rray', you're absolutely wrong. The magic with PHP is whatever you use (int) or intval() you get absolutely weird results, because it'll try to parse your string as an integer whatever is in it.
Since last week, I finally can use my own domain name as jabber domain Yay! Thanks to http://jabber.apinc.org public free server, I used some DNS SRV records, and with the agreement of server owners let them handle my domain.
Some months ago, I was developing some Drupal modules for my Company, I noticed the time I loose each time I have to run a Drush command (such as clear cache) in order to do basic Drupal developer stuff.
Dorénavant, vous ne lirez plus la question suivante en ligne de commande :
rm: détruire fichier régulier `toto.c’?
mais
rm : supprimer fichier « toto.c » ?
I was looking for an easy way to get the current browser.contents in my real browser to easy debug what is happening in my doctest.
Here is the snippet:
Updated the 01/13/2009
>>> import tempfile as tmp
>>> def contents():
... fd, fn = tmp.mkstemp(suffix=".html", prefix="testbrowser-")
... file = open(fn, 'w')
... file.write(browser.contents)
... [...]
I was looking for an easy way to get the current browser.contents in my real browser to easy debug what is happening in my doctest.
Here is the snippet:
Updated the 01/13/2009
>>> import tempfile as tmp
>>> def contents():
... fd, fn = tmp.mkstemp(suffix=".html", prefix="testbrowser-")
... file = open(fn, 'w')
... file.write(browser.contents)
... [...]
I was a Fedora user until Fedora Core 6 but the second Ubuntu distribution was a really nice experience so I made the jump (fast packaging system, huge repo, etc).
Since 9.04 (or just before) I have been annoyed by the notification system NotifyOSD, I find disturbing to blur (or hide w/o compositing) the message on mouseover and the popup doesn’t provide contextual actions. The Ayatana project get Ubuntu away from the upstream development (many patches to integrate libindicate, etc).
I have release a simple package using Dewplayer for video content in Plone.