I have rewritten Sifar, a gem that validates and generates strong passwords. The last version was based on one of my old PHP libraries, and it felt clumsy when simply ported to ruby.
Sifar gives you a lot of control over the parameters that make a password weak or strong. You can check for passwords that sound or spell similar to a given word (like user name), apart from the usual checks for length, dictionary words, etc.
Currently the only way for Zend_Tool to pick up your custom providers is to add the provider directory to the php include path. This is especially problematic if you have multiple applications in one server.
One workaround I use is to create a script wrapping zf.sh in [APP_ROOT]/script:
ZF_CONFIG_FILE = $(pwd)’/application/configs/zf.ini’
ZEND_TOOL_INCLUDE_PATH_PREPEND = $(pwd)’/providers’
`which zf` $@
If you have integrated the Zend library in your application, you can add the zf scripts in the same folder as the script. The last line then becomes:
Now you can use script/zfc instead of zf and all of your custom providers should get loaded correctly.
CCAvenue is an Indian payment gateway; they claim to be the biggest in South Asia. Last week I was looking for an Active Merchant plugin to integrate CCAvenue in a Rails application, but apparently none has been made public so far. So here it is.
At NDTV, we tend to stick to LTS releases of Ubuntu in our servers. Due to the update restrictions, we usually end up building rubygems from source as the default package is outdated. I don’t like this solution as it messes up package dependencies. Turns out there is a PPA for rubygems that seems to be more frequently updated.
On releases older than 9.10, you have add the following lines to your sources.list
deb http://ppa.launchpad.net/ubuntu-on-rails/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-on-rails/ppa/ubuntu jaunty main
Replace jaunty with your Ubuntu release name
You will have to import the repository key as well
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 81C0BE11
On 9.10 and newer, adding the repository is as simple as:
sudo add-apt-repository ppa:ubuntu-on-rails/ppa
At this point, you can install/update rubygems like before
sudo aptitude update
sudo aptitude install rubygems
From Manuel Lemos of PHPClasses:
The number of Indian PHP developers has been growing at a large pace in the last few years, when compared to other countries. A few years ago, India was just one of the top ten countries with more PHP developers. Now India is number 2 and is almost surpassing United States, which is still number 1.
While it is difficult to take such broad conclusions seriously based on member statistics of a single community, PHPClasses does have a large user base and can arguably be considered representative. Any article tagged India and software these days attract the usual crap about how Indian developers are the worst and how everybody who outsources to India never does it again. So I was surprised when some of the usually ‘silent’ majority of the client base who continue outsourcing development to India came out to defend their decision.
I did come away with a very interesting statistic; Indian developers have won most awards this year for their contribution against sizable competition. Most Indian developers I meet have difficulty understanding the concept of giving back to the community, so it’s always refreshing to see a number of people doing exactly that.
Very few would relate the Sun MySQL deal with the recent final release of PHP4. With the ‘M’ of LAMP under the control of a traditional rival and death of the technology that almost single handedly popularized the LAMP stack, what does the future of the PHP and LAMP in general look like?
PHP is different now from the time when I started working with it. It was almost impossible to sell PHP to the so called ‘enterprise’. In sharp contrast, recently I was in a meeting with a major software services company who has big teams for Java and .Net but was desperate for a partner who would help them build PHP capabilities.
Companies like Zend deserve major credit for this shift. Over the last few years they have been trying to be more acceptable to the enterprise market. The results are apparent; Windows/IIS is trying to play nice with PHP, IBM/Oracle has made significant contributions to improve PHP’s integration with their products. No wonder, Zend increasingly looks like another prime candidate for acquisition by one of the big boys.
Perhaps this move was necessary to ensure the long term survival of PHP. The ‘P’ of LAMP no longer means only PHP; it has grown to encompass technologies like Python and Ruby. Frameworks like Rails have a low enough entry barrier for the bulk of PHP developers to consider them as alternatives. PHP benefited a lot from its early adoption by shared hosting providers. Now, hosts offer other technologies as well and VPS hosting has become affordable enough to be an alternative.
What about MySQL and Sun? For MySQL this deal is hard to top, they finally got the global sales, support and delivery potential to compete with the likes of Oracle and SQL Server. For Sun, this is great for multiple reasons. It has been steadily losing new developers and mindshare to LAMP technologies. This acquisition, among other developments allows them to fuzzy the distinction a bit … sounds similar to what Microsoft is trying to do with Linux, isn’t it? It does not hurt that they finally have a strong database offering. I suspect Sun will shortly develop an alternative to InnoDB as well.
Perhaps technologies like JRuby and Groovy point towards the future, where scripting languages and frameworks exist inside the Java ecosystem rather than with an alternative stack. How much these developments would affect an internet increasingly accessed via devices and rich internet applications, remains to be seen.
Back when I was actively involved with TYPO3 projects, one item in my wish list was a login box for front end users which would allow granular control over pages where the user is redirected after successful login. Naturally, when Chetan and me got together recently to contribute a suite of plug-ins related to the front end user, this functionality was on the top of my mind.
The login box has some standard features like storage folder for user records, etc. However the redirection options allow much more control than other plug-ins. You can have a global redirection page just like you are used to. However, using Typoscript blocks you can have a different configuration for every individual user if you want. But I suppose the group level controls would be much more used in practice. You only have to add blocks when you want something different since the other settings act as fallbacks if there is nothing set for the current user or group, in that order.
Unlike many other contributions to the TER, this extension is not derived from some commercial work. We wanted to contribute something we wanted for ourselves when we were working with TYPO3. The current release as of the time of writing contains only the login box since we have also tried to create a robust framework for future developments (Chetan was responsible for all the framework related work). In the coming weeks, we have plans to add some very interesting features and plug-ins to the suite.
Extension download and documentation
FE User Suite