Makina-Corpus.org

Syndiquer le contenu
Updated: il y a 6h 53 min

KeyEditableTable: Mixing DataTables, KeyTables and jEditable all together

jeu, 11/03/2010 - 16:01
Vote0 Linked projects:  Documentations publiques Problem description

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.

minitage, python and UCS

dim, 28/02/2010 - 22:39
Vote1

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 :

minitage & ohloh gives us minitage.ohloh

sam, 27/02/2010 - 20:33
Vote0

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.

Python and oldies or ValueError: year=1876 is before 1900; the datetime strftime() methods require year >= 1900

ven, 26/02/2010 - 17:40
Vote0

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 >= 1900

Quite annoying heh ?

There is a bug related on the python bugtracker here : http://bugs.python.org/issue1777412

 

little minitage.core improvments

dim, 21/02/2010 - 20:30
Vote0

 

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.4

 

BUILD 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..

 

Snowleopard revival

dim, 21/02/2010 - 20:17
Vote0

Just a little post to say that snowleopard let run minitage.

As a note, you must have all SDK installed, specially the 10.4!

Webservers flooding minitage

dim, 21/02/2010 - 20:14
Vote0

Now, nginx and apache are packaged inside minitage.

 

You have :

  • two templates initiating instance of both webservers in minitage.paste.extras
  • the related packages to be build via minitage (nginx-0.8, apache-2.2)

 

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)

hudson deployment made easy

dim, 21/02/2010 - 20:10
Vote0

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 myproject

And if you are not inside a minitage environment, to deploy in a myproject subdirectory

A more simple editorial process in Plone: Classic CMS + InPlace Topic view

mer, 17/02/2010 - 21:36
Vote0

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 [...]

A more simple editorial process in Plone: Classic CMS + InPlace Topic view

mer, 17/02/2010 - 21:36
Vote0

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 [...]

Personal reminder about Drupal's settings.php

lun, 15/02/2010 - 14:15
Vote1

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 :

Tuning a bit Eclipse

lun, 15/02/2010 - 13:28
Vote1

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.

WTF is that!? - PHP will drive me crazy; Drupal FAPI too!

mar, 02/02/2010 - 18:47
Vote2

What do you think this code will output:

<?php
  $foo = '7rray';
  echo (int) $foo;
?>

If 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.

Playing with Python, D-Bus and Pidgin

dim, 31/01/2010 - 22:16
Vote0

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.

MDrush, a Drush python wrapper

sam, 30/01/2010 - 13:11
Vote1

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.

coreutils en français

jeu, 21/01/2010 - 03:36
Vote0

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 » ?

Functional doctest snippet of the day

mer, 06/01/2010 - 14:29
Vote0

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)
... [...]

Functional doctest snippet of the day

mer, 06/01/2010 - 14:29
Vote0

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)
... [...]

Fedora user again

jeu, 31/12/2009 - 12:38
Vote0

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).

collective.dewplayer: display video content in Plone

mar, 22/12/2009 - 15:18
Vote0

I have release a simple package using Dewplayer for video content in Plone.