Archive for April, 2008

Testing Google Analytics code in Dev environment before Live

April 21, 2008

Here is a typical scenario…

Every site will have a Dev and Stage environment to test the code before taking the build live.

These environments would typically not be accessible from outside world…

How can we test google analytics code in such a case? Any pointers?

I know I am supposed to put answers here, not questions… :)

May be I’ll post a follow-up to this question…once I get something…

I tried to Google this, but so far haven’t found anything significant exceptthis, and even that doesn’t have exactly what I am talking about…

Ideally, I would want to track the Dev environment in a totally separated section…Would I need to create  2 accounts?  Even if  I do create  2 accounts, How do I make my Dev server accessible to Google Analytics?

That’s why I don’t love linux… :(

April 2, 2008

I have never been a great Linux fan…Yes, there is fun in doing all the work on command line…remembering complex commands, and combining them in interesting ways to create powerful combinations…

But this distracts you from your actual work…

Look at this sample…

I wanted to debug and step through my symfony project…There is no plug-n-play system for this…as far as I know…

So I wanted to setup XDebug with PDT on our Ubuntu dev server. Now just look at the hurdles in the road…

XDebug must be compiled from source…there are no binaries for *ux. So I downloaded the code and untarred it…

Now to install this, you need to have some script called PHPize…seemed it is not present on my machine…so next mission was finding PHPize…

After scouting at a some forums…I found that PHPize is present in “php-devel”…may be developer version of PHP…

After getting errors on several FTP servers, I found one server that had the RPM.

The next problem in queue was that RPM’s are not recognized by Ubuntu. :’( You need some package called Alien…

Now I am just too tired to pursue this further today!!! :)

And this is just the first step of running XDebug…integrating it with PDT might be another arduous task…especially because I want to set it up on the Dev server remotely…

I know I am a new bee in LAMP…and this should not be so hard for a habitual linux user…

But why…oh god why we can’t have a clean development system that has everything inbuilt…I always wish I had been a .NET developer after working on J2EE and now on LAMP… :|

The fundamental problem is that there is no single vendor for any system that you want to use…you always have to look for useful pieces in the jungle…and create a contraption…and scout for people who have tried similar contraptions…Symfony has surely been a great exception so far…it is working smoothly without glitches so far…

Of course…when the system owner doesn’t have to pay a single penny for licenses of his software development…that’s a great value add from his perspective…