Développeur web touche à tout (ou presque)
In: Development
18 juin 2009I’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 [...]
In: Development
14 mai 2009The 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 [...]
In: Development
9 mar 2009If 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 [...]
In: Development
24 fév 2009Zend Framework implements some functions that allows Authentication..
In this article, we’ll see how to implement it on MVC application.
Zend provides an adapter, Zend_Auth_Adapter_Digest, which allows you to check a login and password with a file and do what you wish to do if it’s not correct.
But you still need to show the login form and [...]
In: Development
25 déc 2008This 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 [...]
In: Development
24 nov 2008It’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 ! [...]
In: Development
3 nov 2008You 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 [...]