Skip to main content

Posts

Using Coded UI library in VS2012 Express Windows Desktop

Pre-requisites: Visual Studio 2012 Express Windows Desktop Agents for Visual Studio 2012 Update 1 ( link ) Steps: Install VS2012 Express Windows Desktop Install Test Agent from "Agents for Visual Studio 2012 Update 1 Download a copy cuitemplate from https://apisamplecode.codeplex.com/. This link goes directly to the source location ( link ) Sample code below uses ApplicationUnderTest class. For it to work, you need to reference the following assemblies: C:\Program Files (x86)\Common Files\Microsoft Shared\VSTT\11.0\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.TestTools.UITest.Framework.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualS

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

When I try to restart Apache using sudo service apache2 restart I am getting the following message: * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName To get rid of it, I have to add the following in my /etc/hosts file: 127.0.1.1 ubu1210minib.com ubu1210minib Where ubun1210minib.com ubun1210minib is an arbitrary name I selected. Of course this is not the proper way to fix it as the above information does not properly resolve.  Also need to modify /etc/apache2/sites-enabled/000-default  to have a line like: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName ubu1210minib.com DocumentRoot /var/www Note the line that contains ServerName , that should match with the name prov

Installing Google Chrome in Ubuntu 12.10 from the command line

Of course you can install Chromium, but hey I wanna use Google Chrome. To install from the command line, do: $: cd ~/Downloads $: wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb $: sudo dpkg -i ~/Downloads/google-chrome-stable_current_i386.deb $: sudo apt-get -f install The last line is needed to install the required dependencies and complete Chrome installation. To install 64bit version of Chrome, you have to change download path to https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb , like: $: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb Note(s): * This applies to Debian 7 Wheezy Reference(s): http://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line