Skip to main content

Posts

Problems with CakePHP - follow-up

Some people have responded including the Datepicker fame Marc Grabanski . So, this follow-up... First of all, I was not ranting nor complaining; I've just blogged/documented my experience. The common problem most of the people pointed out are that it scales for addons.mozilla.com. Those who have accessed their source code can understand that they've done lot of things and also the site is not database-intensive. You should really create a real database-intensive website to understand what I mean. The other point that been pointed out is about open source and community. Lot of people may not be knowing that it's 2 people pushing it and don't want others to be credited . The generic model or dynamic model idea was originally been from grigri and Marcel . It's hard to be called as open source as only few and sycophants are driving it's direction (I'm not talking about svn access) So, here are my humble checklist before you start shouting at me Did you read a...

Open source PHP frameworks and problems

I was using CakePHP for sometime and proposed CakePlus , another UIMS toolkit on the top of CakePHP but also altering some problematic core of it. The thread should explain the outcome of the post. And, then I noted Akelos framework has most of the things built in. Issues with frameworks esp. CakePHP Scalability not a priority - Developers aren't aware that we can't throw more and more hardware Excessive use of regular expressions Evangelist isn't aware that the framework throws many queries unnecessarily More memory consumption - 100M would never be enough for a simple project Poor coding standards and practices - Prolong use of extract() often leads to more memory consumption Can't use the native approaches or baked codes. The override approach always lead to hard to debug codes Poor architected codes and no clear defined approaches. People belong to the cult drives the direction and often throws unprofiled codes. No native provision to share codes between M-V-C and...

Working with Jeremy Zawodny, Alan Knowles, Cal Henderson

My life and career are full of surprise... I wanted to work in film direction Wanted to work in AT&T Bell Labs with Dr. Dennis M. Ritchie (creator of C) Wanted to work in Borland with the great developers of Delphi But, none of these dreams came true. And, after 6 years of my career into Web Application Development, I informed the company about my humble desire to work with the great minds I came to know through internet--to see if the company can offer employment for them: Jeremy Zawodny , Alan Knowles , Cal Henderson . Peter (who is actually from UK), who approached them updated me that Jeremy cannot join the company due to his marriage and Alan feels that the company may not offer the international salary. And, my dreams are just dreams! If anyone wants to work with me, ping me through LinkedIn

Track previous link of a site in PHP

I just spotted through Google that Raj Shekhar has quoted my post to comp.lang.php in his Blog Ideas page: mr_burns wrote: > Is it possible to get the previous url. For example, if I am on page > page01.php - and I then click to - page02.php - from page02.php, can > use script to determine that I have come from page01.php? It doesnt > have to be the entire url, even just the file name. Cheers Add this line in the beginning of every script or possibly using a global-common include file say config.php output_add_rewrite_var('referer', htmlspecialchars($_SERVER['PHP_SELF']));

www.php.net online manual user notes contributions

Sometime ago I had lot of interest in contributing to the www.php.net online manual's notes. Thought lot of them are deleted now and not even relevant now, I'd thought of archiving them for my own reference: http://www.php.net/ref.pdf#32797 Date: 7 Jun 2003 06:42:11 -0000 If you want to create PDF without using PDFlib library, you may try FPDF ( http://www.fpdf.org ). If you want to know, how to use FPDF in PHP scripts, you can look at the source code of phpMyAdmin as phyMyAdmin uses this FPDF. ( http://www.phpmyadmin.net ) http://www.php.net/ref.array#32969 Date: 12 Jun 2003 11:32:58 -0000 If you want to remove a particular element from the array without loosing the keys, you can use the following function: function RemoveArrayElement($arr, $element) { if (($key=array_search($element, $arr))!==false) unset($arr[$key]); return( $arr ); }/*---------RemoveArrayElement()----------*/ Example: $arr = array("a","b","c","f","x...

"A to Z of C" book turns 5

A to Z of C , the DOS/Turbo C programming book written by K. Joseph Wesley and myself turned 5 on August 1. Initially, we felt bad for spending our time in writing a book that were rejected and deceived by publishers. Now we get quite reasonable appreciations from people around the world--even though it's having technical and grammatical errors. Long live the internet publishing! Probably a time for "A to Z of PHP" ?

I'm Zend (PHP 5) Certified Engineer:-)

As of January 13, 2007, I'm ZCE/ Zend Certified Engineer (PHP 5)

Bookmarklet: Mozilla/Firefox unicode rendering bug

Bug #270012 is long time opening in Firefox and got bunch of duplicates. Tamil and other Indian texts are getting broken on "text-align: justify;" Fix #270012 The above bookmarklet can be used on such broken pages to fix rendering and I've been using it for a long time. Though there is a Greasemonkey script available, I still prefer my bookmarklet as it is tidy.

BehaviorS.js - An alternative to Behaviour.js, event:Selectors and Low Pro libs for unobtrusive JavaScript programming

BehaviorS.js yet another unobtrusive JavaScript library similar to Behaviour.js and event:Selectors but in implementation uses hash based lookup without extending elements; so presumably it should be faster than the rest. The original script and idea was by JLof ; I extended it for DOMContentLoaded support, optimized a bit to avoid scanning of more depths, and added new rules support. I wanted to document the plug a long time and just got time to do it. For the time being BehaviorS.js is available here Update (2006-09-11) : Coralized the link to BehaviorS.js so as to save the load on free brinkster.com webpage Update (2006-09-27) : If the coralized link to BehaviorS.js doesn't work, use http://www21.brinkster.com/guideme/BehaviorS/ Update (2025-06-07) : Now available in https://github.com/rrjanbiah/behaviorsjs

Why Google PR is quirky -- Google PR bug

Recently I have been informed that the PageRank provided by pagerankstatus , a Firefox extension is different from official Google Toolbar. Since, I have been slightly involved with the development of this extension, I have studied the reason behind it. Example Target site: http://benmccann.com/ Pagerankstatus's PR: 4 Official Google Toolbar's PR: 0 Reason: Google's bug Analysis Pagerankstatus What pagerankstatus requests: ...features=Rank:FVN... What Google returns: Rank_1:1: 4 Official Google Toolbar (IE) What Google Toolbar requests: ...features=Rank:... What Google returns: Rank_1:1: 0 Official Google Toolbar (FF) What Google Toolbar requests: ...features=Rank... What Google returns: Rank_1:1: 0 Google info XML file : ...info:... PR inside XML file: 4 ( This might be the right PR. Same as of pagerankstatus. ) Conclusion (Google bug) Official Google Toolbar has downgraded the category/directory option; that's why now not sending "FVN" as "FVN"...

How to pronounce Opera

To my knowledge, most of the people here in India pronounce Opera as Oh-pe-raah. Some software professionals just started a new version of pronunciation: Oh-pey-raah. Because of the confusion, I decided to ask the Opera developers. To my surprise, they told me the right pronunciation of Opera is the first one in http://www.answers.com/opera That is, the right pronunciation is AH-per-ah Links News:1120107680.833631.5510@g44g2000cwa.googlegroups.com How to pronounce Opera? Opera pronunciation (first audio file) Opera Web Browser

Google implemented my suggested features!

It's quite ironic. But, once I had shown enormous interest in Google and did post my suggestions at news:google.public.support.general What I suggested Currency converter news:abc4d8b8.0312200204.63fed215@posting.google.com They did implement it. Great:) Sitemap -- a sitemap of a given site. news:abc4d8b8.0312192324.baecb0b@posting.google.com They rather implemented different feature named sitemap protocol (pinging spider) Skins news:abc4d8b8.0312192327.2c5772a9@posting.google.com They did implement it differently Search old sites news:abc4d8b8.0312192325.f857435@posting.google.com Not yet implemented Advanced interface for Google Groups news:abc4d8b8.0312080007.1d62345c@posting.google.com Unfortunately, they implemented GG2 (broken) :( But, sadly they didn't fix many bugs that I have reported. Here is one such bug list on broken GG2 ( news:1092037200444279@googlegroups.com )

Getting Deer Park Alpha 1 extensions

I've finally decided to test Mozilla Deer Park Alpha 1 (Firefox 1.1a1). The browser is really cool. They've changed the icon/logo --this is sometimes confusing. Apart from that, the major problem is incompatibility with existing extensions--which can mostly be solved by bumping targetApplication's maxVersion . I did bumping for few extensions, but finally decided to search for a bit. Interestingly I found few wonderful resources; the best among is ' Unarmed ' of mozillaZine forum's PHP script and his online service . The online bumping service is really great; it gets the URL of the extension and the version to be applied in the GET and gives you the bumped/hacked extension. Many extensions worked well--including the popular Web Developer / Webdeveloper extension ; sadly the HTML Validator extension didn't work even after bumping. Having heavily inspired by the online bumping service, I have written a bookmarklet to access the service. I think the PHP s...

PHP 10 miles

It's glad to know PHP is been alive for 10 years. PHP originally written by 27-year-old Rasmus Lerdorf and released in June 8, 1995 is now in PHP 5.0.4. I think, I hadn't seen any computers when PHP 1.0 was released (in 1995). My memory says I picked PHP around late 2000 or early 2001. One important thing I have noticed at this time is: PHP 1.0 wasn't a bunch of Perl scripts as many often quote; it was " set of small tight cgi binaries written in C " Links news: 3r7pgp$aa1@ionews.io.org Announcing the Personal Home Page Tools (PHP Tools) version 1.0. Long Live PHP! - Ilia Alshanetsky Photo of Rasmus Lerdorf with his wife Christine

"PHP 5 Power Programming" Free in PDF

The book PHP 5 Power Programming is now available free of cost in downloadable PDF format at Bruce Perens' Open Source Series promotion site. Along with this book, a lot of other books are also available there for free! Details ISBN: 0-13-147149-X 2005. Pages: 720 Authors: Andi Gutmans , Stig Sæther Bakken , and Derick Rethans Download location: Perens Series Page (PDF) License: Open Publication License File size: 9.6MB Original price: $39.99 Edition: 2005

Update[1]: Zend PHP Certification – Economic Indian Price

As I blogged earlier , the Zend PHP Certification price is too high to afford in India and I contacted Daniel Kushner, Director of Education Zend Technologies Ltd. Recently Daniel Kushner and Idan Zuckerman (Zend) informed me that they're working with Pearson to fix the Indian price. In the meantime they said that they could offer me a voucher for 120 USD (original price is 200 USD). Though now I can afford to 120 USD, it is still high (MCP costs only 50 USD) for any Indian PHP guys. Anyway, I think it's a great improvement and I really applaud their efforts. I have planned to get the voucher after 1-month time though it has 6-month validity—as I have to prepare for the exam first. I have also been asked to refer friends and colleagues for this 120 USD offer. If you want to avail this offer, please buzz me (only India based PHP guys).

Tim Van Wassenhove's (PHP) Blogmarks

Tim Van Wassenhove , a c.l.php regular maintains wonderful blogmarks . Most of the blogs are PHP related and it is faster to access than my Sage, RSS reader . It is interesting to see that Tim has blogmarked my—this simple blog too:) IMHO, it would be better to display timestamps along with the links and to have a TOC of blogs in the top.

Zend PHP Certification – Economic Indian Price

I wanted to take the Zend PHP Certification Exam when it was launched itself, but couldn't afford to its price. It costs 200 USD—about 8,724 INR as per Yahoo!'s currency converter . This is too costly. There will always an economic price for books and exams in India. The price is too costly to afford. Especially vast majority of PHP Programmers in India are underpaid. (Unfortunately, other domain guys earn about 5-10 times more than PHP guys. But, the price is still costly for anyone.) Microsoft's economic pricing for MCP in India is 50 USD, which originally costs 125 USD in US. Though the price is still costly, it seems to be ok. Again some testing centers provide up to 40% discounts on that amount (the discount is seasonal and depends upon the business model of the center) SUN's exams cost 90 USD to 150 USD. Though, there is no economic pricing available now, the testing centers provide up to 40% discounts. One should note that the earning power of these...