Skip to main content

Posts

Showing posts from 2010

Keep getting "Enter your password to perform administrative task" in Ubuntu Maverick Meerkat custom install

I have a custom Ubuntu Maverick Meerkat install using alternate install. Part of the minimal install was a lean GNOME configuration with only the bare minimum applications installed. I have added synaptic and update-manager to keep the system up to date using GUI application. The issue was that when I open up Synaptic, I keep getting: Enter your password to perform administrative task To fix this, add desktop-base, thus say: sudo aptitude install desktop-base Enjoy! ~ts

Load langs.xml failed! in Notepad++

I got Notepad++ 5.7 installed in Windows 7 Professional, used to work nicely but lately I am getting the following error: Load langs.xml failed! One reason could be that lang.xml got corrupted. This is not unexpected as Windows 7 I am using tends to hang-up and I need to force a hard reboot. One way to fix this is to: 1) Navigate to C:\Program Files\Notepad++. 2) Rename lang.xml to lang.xml.1. 3) Copy lang.model.xml to lang.xml Enjoy! References: http://superuser.com/questions/67128/notepad-load-langs-xml-failed ~ts

How to provide MSAA Name for MFC edit controls

Microsoft Active Accessibility (MSAA) can be used in GUI test automation or for accessibility. For test automation purposes, IAccessible::get_accName can be used to retrieve name of an edit box. To make this to work for MFC based applications, the tab order sequence should be modified such that the static label at the left of the edit box is one number lower. For example, if the edit box's tab order number is 5, the static label on the left should have tab order of 4. For MFC based application created using VS2010, menu Format | Tab Order (Ctrl + D) should show the order sequence graphically. Note that this is applicable to the following test automation tools/frameworks: - Test Partner - Rational Robot - UI Automation Just to stress this out again, you need to have a static label to the left of the edit box for this work. Enjoy! References: http://msdn.microsoft.com/en-us/library/dd373597(v=VS.85).aspx http://msdn.microsoft.com/en-us/library/dd318483(VS.85).aspx ~ts

Ubuntu 10.10 Maverick Meerkat in VirtualBox

Ubuntu 10.10 was released 10/10/10 (October 10, 2010) what an amazing date. The new version was praised with the latest packages (kernel 2.6.35, gcc 4.4.5, Firefox 3.6.12, GNOME 2.32.0 and many more). The fanfare was heavily geared towards the new Ununtu font that was purported to be crisp and clear. Since everyone is busy and I have time to mock around with the new distro, I made a series of screen captures that shows the installation sequence and a peek at how the desktop looks like. I have done this using Virtualbox 3.2.10, see below for my configuration: General Name: ubu1010 OS Type: Ubuntu System Base Memory: 1024 MB Processor(s): 1 Boot Order: CD/DVD-ROM, Hard Disk VT-x/AMD-V: Enabled Nested Paging: Enabled Display Video Memory: 12 MB 3D Acceleration: Disabled 2D Video Acceleration: Disabled Remote Display Server: Disabled Storage IDE Controller IDE Secondary Master (CD/DVD): Empty SATA Controller SATA Port 0: ubu1010.vdi (Normal, 120.00 GB) Audio Host Driver:

QNX Momentics TFTP server is not running

I have QNX Momentics 4.6.0 running in Cent OS 5.4 and I was trying to load QNX board support package using TFTP server but I couldn't make it to work. Looking at the Momentics TFTP server view shows: Cannot start server: error: Unable to bind to server port. This go me thinking about xinetd super service deamon but it was not running. Then I came to realize that of course the IDE was not running as root. So, to upload data to the tftp client, Momentics should be run as root user. ~ts

Loading Freescale P1020 board support package via tftp in Momentics

Relevant information :   Development System: Windows XP Sp3 with QNX SDP 6.5.0 (this is only to demonstrate loading via tftp. BSP for P1020 in QNX foundry was documented as targeted for QNX 6.4.1)   Target: P1020RDB Host machine preparation : Step 1. Download Freescale P1020 board support package, see this link . As of this writing, we only have support for QNX 6.4.1. I have it saved in D:\tmp\bsp-nto641-freescale-p1020-rdb-trunk-201009282107.zip. Take note that they continually update this package so the name may change. Step 2. Extract the zip file, it should look like this: D:\tmp\bsp-nto641-freescale-p1020-rdb-trunk-201009282107. Step 3. Open QNX Momentics (assuming you have this installed already). Step 4. Open Resource Perspective ( Window -> Open Perspective -> Other... , then select Resource ). Step 5. In Resource Perspective, create new project, i.e.:   a) File -> New -> Project...   b) Select General -> Project   c) For project name type data ,

Enjoy Linux tools in Windows via Cygwin

Many of us don't have a choice but a Windows environment, be it XP, 2k3, W2k8, W7. If you are working for a company that is a Windows shop, you have few options and probably not supported by IT. One can install Linux/OpenSolaris/QNX/BSD on a virtual machine to enjoy the fun offered by this operating systems. Another option would be to use Cygwin. Cygwin is a Linux-like environment for Windows, for more information please visit their website. I normally configure my Cygwin installation with the following packages installed: - Base package (default selection) - Emacs - MinTTY - Python This selection makes me comfortable [happy :)] in any Windows enviroment (ease of use and power of Windows + power of Linux/Unix tools). ~ts

Installing a light-weight svn server in Windows

For those who are not familiar with SVN, it is a revision/version control system. This is much the same as CVS or Microsoft SourceSafe. The good thing with SVN is that it is designed to be a better CVS, so most features of CVS can also be expected of SVN. Directories, renames and file meta-data are versioned as well. Commits are truly atomic, meaning no part of a commit takes effect until the entire commit has succeeded. SVN can also use HTTP-based WebDAV/DeltaV protocol for network communications and the Apache web server to provide repository-side network service. It also has a standalone server option which is what we are going to discuss here how to setup in Windows XP OS. And a lot more. Visit http://subversion.tigris.org/ for more information. Outlined below is one of the means to install/setup a standalone svn server. 1) Goto http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 2) Download http://subversion.tigris.org/files/documents/15/36797/svn-1.4.3-set

Embed Javascript in blog post

This shows a simple example of embedding Javascript in blogger. Not sure if this is supported as it messes up the anchor tag when post is edited using "Compose" instead of "Edit HTML". Click on "Hello world" below to see Javascript in action. Hello world The key to embed the script is the CDATA tag. Hello world Reference(s): Adding javascript to Blogger posts ( link )

Screen capture tour of OpenSUSE 11.3 installation

This is a screen capture tour of installing OpenSUSE 11.3 in VirtualBox guest machine. I have been trying to do a screen capture documentation of the top 5 linux distributions from www.distrowatch.com . So far, this is the first distribution that suggests to have 1GB of RAM during LiveCD installation. Though the 1GB requirement is unusual, the installation is straightforward. As can be expected from the top linux distributions nowadays, all of the activities are being done through GUI. Below is my guest configuration: General Name: opensuse113 OS Type: openSUSE System Base Memory: 1024 MB Processor(s): 1 Boot Order: CD/DVD-ROM, Hard Disk VT-x/AMD-V: Enabled Nested Paging: Enabled Display Video Memory: 12 MB 3D Acceleration: Disabled 2D Video Acceleration: Disabled Remote Display Server: Disabled Storage IDE Controller IDE Secondary Master (CD/DVD): Empty SATA Controller SATA Port 0: opensuse113.vdi (Normal, 120.00 GB) Audio Host Driver: Windows DirectSound Controller:

Installing VirtualBox guest additions in Mandriva 2010 Spring

In this blog post, I have documented via screen capture how to install Mandriva 2010 Spring. I haven't explicitly mentioned that it was being done in VirtualBox guest machine as it does not really matter much, at least for the most part not unless you have a hardware that is not supported by the distribution out of the box. Mandriva installed VirtualBox guest additions by default but using OSE. [timus@localhost bin]$ /usr/bin/VBoxControl -v 3.1.8_OSEr61349 What's nice with VirtualBox is that it is progressing at a very quick pace, releasing an update almost on a monthly basis. Majority of the changes since 3.1.8 are small enhancements and bug fixes. You have two options in keeping current, using OSE version or PUEL version. In this post, I will document updating guest additions based on PUEL. Online repositories are not setup by default in Mandriva, I believe this is a conscious decision to detect the best connection where the user is located. To setup the software online

Screen capture tour of Mandriva 2010 Spring installation

Mandriva 2010 Spring was released July 8, 2010. It comes with kernel 2.6.33 (2.6.33.5-desktop586-2mnb), KDE 4.4.3 and Firefox 3.6.6. It actually comes with tons of applications. Its a pretty good distribution, I particular like the functionality where it removes any unnecessary packages during the installation. I haven't seen this in Ubuntu, Fedora, Debian, PCLinuxOS, Mint, OpenSUSE nor CentOS. What follows is a series of screen captures installing this distribution. Figure 1. Boot menu Figure 2. Language, this will be the language that will be used by the system. Figure 3. License agreement, of course click Accept to continue if you are happy with the agreement. Figure 4. Timezone, this will be used to show correct local time. Figure 5. Allows you to select the correct time, on some machines the BIOS can be set to localtime or UTC. Figure 6. Select appropriate keyboard for your system. Figure 7. Start of the Wizard for installing the rest of the system. Figure 8. Part

Disabling the beep sound in Windows machine

Some PCs have internal speaker that can be used by Windows to produce beep sound. This was inherited from old systems when sound cards were not common place. Windows produces beep sound on many cases. One being when user presses enter key on a treeview control or an enter key on a textbox control. This is used to alert the user that the input is not acceptable for the control with the focus. But when you are using "SendKeys{System.Windows.Forms.Sendkeys}" to simulate keystrokes, this can get annoying. To disable this beep sound in Windows XP (should be applicable to Windows 7), open Device Manager (devmgmt.msc if you are cli buff). From the View menu, select Show hidden devices. See figure below. Figure 1. Show hidden devivces. Then drill down to Non-Plug and Play Driver/Beep, then open properties dialog. Figure 2. Traverse to the Beep device. From the dialog window, goto Drivers tab then click on "Stop" button. This should immediately disable the device

Google Chrome cannot be installed in PCLinuxOS 2010.07

I have documented in another post that Google Chrome cannot be installed in CentOS 5.5 due to Linux Standard Base library is outdated. I would expect differently with PCLinux OS as it is trying to get as updated as possible to the extent that the distro is releasing new version quarterly. Here is the version of Chrome that I am trying to install: [root@localhost Downloads]# rpm -i google-chrome-stable_current_i386.rpm warning: google-chrome-stable_current_i386.rpm: Header V3 DSA signature: NOKEY, key ID 7fac5991 error: Failed dependencies: lsb >= 3.2 is needed by google-chrome-stable-5.0.375.127-55887.i386 As you can see, it complains that lsb needed by the package is 3.2 but what is installed is 2.0.x. [root@localhost Downloads]# apt-cache show lsb-release Package: lsb-release Section: System/Base Installed Size: 19233 Packager: Texstar Version: 2.0-5pclos2007 Depends: bash Provides: lsb-release = 2.0-5pclos2007 Architecture: i586 Size: 1 MD5Sum: Filename: Summary: Lin

Installing minimal Ubuntu 10.04 (Lucid Lynx) in VirtualBox

I have been using Ubuntu for a while and I pretty much like it most of the time. It has the latest and the greatest and it looks nice too, at least that's the way I perceived it. In fact, back in Ubuntu Intreprid I played around installing a minimal Ubuntu . This time around, I would like to install a pretty much stripped down version of Ubuntu Lucid Lynx, it is kind of a minimal install that still looks like Ubuntu. Install method has not changed much since Intreprid actually. Without further ado, let us get our hands dirty. Okay, download the latest minimal iso from Ubuntu . You can always download it from the mirrors, I find USC  mirror to be quite fast. While download is busy, let us configure our guest Ubuntu machine in VirtualBox. Here is what I have: General Name: ubu1004mini OS Type: Ubuntu System Base Memory: 512 MB Processor(s): 1 Boot Order: CD/DVD-ROM, Hard Disk VT-x/AMD-V: Enabled Nested Paging: Enabled Display Video Memory: 12 MB 3D Acceleration: Disabled 2D