Archive for the ‘Development’ Category

I’m a bit obsessed by my applications statistics.
So on many of them, I build tools allowing me to generate graphics with several evolution indicators of theirs datas over time.
On RefStats for example, this graphic shows the evolution of the number of positions; the number of users; of websites and the average execution time for the [...]

The Django’s automatic administration generator is nice. With three lines, you have an interface to add, update and delete datas.
However with textareas, it might be useful to have a more advanced editor.
So we’re going to see here, how to implement TinyMCE to the textareas in a specific administration page.
But this technic can also work with [...]

If you’ve already been using Active Record. And as you’re reading this blog and this article, I suppose you have, even though you may not know you have, you know how it is powerful.
In case your memory fails you, active record is the list of methods used to access databases in Ruby on Rails.
It is [...]

This is the first article of a serie of comparisons between PHP and Ruby.
Count the number of words in a text is much more complex than what you should think first.
Because a space doesn’t  mean a new word everytime. There can be interrogation points with spaces before and after for example. And an interrogation point [...]

It’s very easy, in Ruby, to count the number of days between two dates.
date1 = 1.month.ago
date2 = Date.today
puts date2-date1
However, you might need to calculate, not all the days between dates. But all the week days. For example if you’re working on an extranet and you want to count all the working days
Vamos ! [...]

You probably already know (otherwise, I highly invite you to read the Ruby on Rails bases) how easy it is to validate datas with our favorite framework
if myDatas.save
#The datas have been saved
else
#There’s an error. The myDatas.errors contains it.
end
After that, you only need to add some validation parameters for the datas in the model.
But [...]


Photostream

    FlorentPhilou vs 5DMadagascarHélèneLucienPhilou vs langueMug DesignRails TeaPHP vs. Django
  • thoas: Pour avoir pratiqué un peu des deux (mercurial et git), je les trouve très similaire dans leur app [...]
  • Damien: Non, je n'ai jamais testé et encore moins pratiqué mercurial. Je suis plus proche de la communautà [...]
  • Florent V.: Pour l’instant je n’ai utilisé git que pour récupérer les sources de deux ou trois projets, d [...]
  • Sebastian: In your Auth Class is a Bug: return parent::__construct($file, $realm, @$_SERVER['PHP_AUTH_USER'] [...]
  • Damien: Si je suis méchant on me le reproche et pareil quand j'essaye de remonter les notes. On peut pas p [...]

Rss Feeds

En Français :


In English :