Which version of Google Analytics to use?

 If you are interested to know which version of Google Analytics you should use, here is a good post to get you started.

http://www.cardinalpath.com/which-version-of-google-analytics-is-right-for-you-determine-whether-you-should-upgrade-to-universal-analytics/

How to solve "Can't locate Net/Telnet.pm in @INC" in cygwin

 Net:Telnet from Perl is such a useful little program, however, it is not by defualt installed by cgywin. The following is the steps on how to install it yourself.

It is assuming that you have make installed on your system. If it is not, please run the setup.exe again, and expand the "Devel" section to find the make package. 

The next step is to download the Net:Telnet form CPAN

The rest is pretty straightfoward. The instructions are coming with the download. Here is the output from my installation:

 

 

$ perl Makefile.PL
Writing Makefile for Net::Telnet
Writing MYMETA.yml

$ make
Skip blib/lib/Net/Telnet.pm (unchanged)
Manifying blib/man3/Net.Telnet.3pm

$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/select.t .. ok
All tests successful.
Files=1, Tests=3,  0 wallclock secs ( 0.03 usr  0.22 sys +  0.11 cusr  0.09 csys =  0.45 CPU)
Result: PASS

$ make install
Installing /usr/lib/perl5/site_perl/5.14/Net/Telnet.pm
Appending installation info to /usr/lib/perl5/5.14/i686-cygwin-threads-64int/perllocal.pod



Happy Telneting!!!

How to use Google Drive as your public image repository?

 If you want to publish images publicly on the internet, for example, using it in your Blog. You can use Google Drive to host your images, then set it to be Public

It turns out that is the easier part, now what is the public URL of that image? I have been searching around and finally find it.

You would need to select the image where you want to find our the URL, then click on "More", then "Details", you can then find our the public URL under "HOSTING" as shown below:

 

In-Page Analytics

 Suppose you want to know which part of your webpage is getting most clicks, how do you go about and get those information?

Google Analytics has a built-in report for this. Just login to your Google Analytics account, select the Profile, then click on Behavior | In-Page Analytics, then you get your report, easy?

What does AC1900 mean in the router specification?

When shopping for a new router, I often saw specifications like AC1900, AC1750, AC1600, etc.  I am very curious to find out what it means. So I did everyone smart person would go: google it!

However, Google failed me this time. No matter what is the search term I use, I just can't find the defination for any of those numbers like AC1900. I have tried "what is ac1900", "ac1900 wiki". There are lots of results but no one explains what it means. It might be the whole world knows what is means, am I the only one left?

So I dig a bit deeper and find this arctile. I think it solved the mystery. 

http://www.smallnetbuilder.com/wireless/wireless-basics/31883-how-to-buy-a-wireless-router-2012-edition

 

"AC" number Find in Best case client speed
1750 AC routers

 450(2.4G)

1300(5G)

It turns out that it is the sum of the maxium speed of the dual band, no wonder I can't find it!

Hope you can sleep well tonight since the mystery is solved.  

 

 

How to move Tridion CMS between environments

 It is a common task to move Tridion CMS to different envrionments, for example, moving between DEV/TEST/STAGE/PRD. It is actually not that time consuming to move if you know what you are doing. 

There are two pieces of the puzzle: the content and code stored in the CMS database and those which are not. Some of examples of contens/code which are not in the database:

  • Sever specific configuration files
  • Third party librares
  • Hand-writen htmls which are not manged by Tridion

Apparently the stuff not in the database needs to be moved over manually. There is no magic over there. 

For the content/code stored within the database. What needed is to use the complete backup of one envrionment and then restore it to another. There are some adjustment needed after the restore, then your Tridion application is running in a new envrionment. 

Here are the steps:

  • Do a full CMS database backup of one envionrment.
  • Restore the CMS database to a new envrionment. (You don't need the Broker database since it is envrioment specific, you can just create a new broker database for the new envrionment). 

Then you are done, it is so simple!

Actually ...

How to delete component used by old version of some pages

 Tridion does a very good job of keep each and single version of your content. It actually present a challange when trying to delete anything. 

Normally, you just need to use "Where Used" to find out which page is using the component you are trying to delete, unpublish the page, you will be then free to delete the component.

However, if the component is used by some older version of the page. It is become alost impossible to delete. You will see a comment on "Only old versions" when the component is only used by old version of the page.

I have tried to delete all the old version of the page and make sure the current page is not using the component,  but the system still doesn't allow the component to be deleted.

Finally, I found a work around. The trick is to copy the existing page to create a new page, then you can unpublish original page. You can then delete the original page and the component you want to delte. The last step is to rename the new page to the original name and your job is done.

It is a long process just to get ...

How to Install Microsoft Web Application Stress Tool in Windows 7

 For simple stress testing, my favoriate tools are JMeter and Microsoft Web Application Stress Tool. JMeter is more comprehensive but requires a little bit of setup. Microsoft Web Application Stress Tool is a old tool from Microsoft and is not actively mantinaed, but it is super simple to use. 

You can still download the tool form here. I am trying to intall it in Windows 7, but I run into some problems. It is complaining that MSVCP50.dll is missing. I managed to find the DLL from here. It even comes with the steps for installation. 

To be safe, I didn't add it to the windows system folder. I just added the dll to the installation folder and run the registration of the dll:

regsvr32 MSVCP50.dll

It shows some warnning message, but just ignore it.

Re-install Microsoft Web Application Stress Tool again and you are ready for your stress test!

mst

 

setup JIRA subversion plugin with svn+ssh

I want to setup JIRA subversion plugin to integrate with our version control system, which is subversion. However, our company is using svn+ssh protocal for our subversion server. The standard JIRA subversion plugin doesn't work because it is not supported. 

  • Supports file, http, https and svn protocols. Please note, the plugin currently does not support svn+ssh protocol (public/private key authentication)

However, I found a fork  https://marketplace.atlassian.com/plugins/pbeltranl.subversion.jira.pbeltranl-jira-subversion-plugin which supports this, I am having a lot of difficulty in getting it to work. 

Eventaully, I am able to make it work so I want to share with others. 

Here is the screen for configuring the subversion repository. I want to highlight a few things:

  • Make sure that you have the proper repository root, with svn+ssh in front.
  • The protocol key file should be your private key file.
  • The most critical one: make sure you key in the username under the Basic Authentication, although SSH is the one being used. It took me half a day to figure this out and I keep wondering why.

 

 

Perform A/B testing

Just learnt that you can perform A/B testing using Google Analytics. The original name is "Google Website Optmizer". It is now part of Google Analytics. You can view it under Content | Experiments tab. 

This is a great tool which no so many people know about, hope you can make use of it for your company.