Entries written in July 2008

Written July 6, 2008 in blog, miscellaneous

I’m a software engineer from China. I’m now working for Motorola on LJ platform. I’m very interested in agile and design patterns, but you know Moto (maybe only MD, oh, maybe only LJ…) is not so agile:( Are you agile?
I like to share my experience on this blog. I also have a blog which is [...]

Continue Reading »

Written July 28, 2008 in blog, wordpress

In the description of wordpress plugin Category Icons, it says: don’t forget to active the category icons. At first, I don’t know what it means, and what should I do. Later I see the category icons widget plugin in the deactivated plugin list. Active it, and I see the icons in the category list.
[-] Category [...]

Continue Reading »

I have two views, call ViewA(BranchA) and ViewB(BranchB). I have finished fixing on ViewA, and added a new file call SomeFolder/SomeFile. Then I checked out SomeFolder and merged it from BranchA. And I added branches for SomeFile:
element …/SomeFolder/ …/branch_type_name_on_branchA/LATEST

When I tried to select SomeFile in BranchB, with
clt ls SomeFile

I got:
SomeFile[no version selected]

I don’t know why.
Then [...]

Continue Reading »

#

image-thumb2 Add Open Command Window Here to XP Folder with PowerToy“Open Command Prompt Here” or “Open Command Window Here” provides an easy way to directly open command prompt window at the browsed location without having to using command line to change directory, especially to deep nested folder. Windows Vista has “Open Command Prompt Here” built-in but hidden, which will reveal when key sequence is pressed.
In Windows XP, to get Open Command Prompt Here on folder’s right click contextual menu, download and install Open Command Window Here PowerToy (CmdHerePowertoySetup.exe).

Open Command Prompt Here PowerToy adds an “Open Command Window Here” context menu option on file system folders in Windows XP, giving users a quick way to open a command window (cmd.exe) pointing directly at the selected folder. Unlike Windows Vista, the “Open Command Window Here” option will permanently display on right click menu in XP.

From: MyDigitallife

( 840 )

Written July 18, 2008 in Google, Test, Visual Studio

Google announced its unit test framework for cpp, called google test. This blog records the steps to create a project and unit test it with google test.
0. If you’re using Visual Studio 2008, you need to covert the google test soluntion first.
1. Create new project named Test-Google-Test. Choose Empty Project template:

2. Add gtest as an [...]

Continue Reading »

#

When using visual studio 2008, I want to highlight all references of a variable, but I didn’t find that command. I’m not sure if Visual studio 2008 has this feature. When I installed ViEmu, I realized that I can make it with ViEmu.

Move your cursor to the variable (it’s definition or any reference), press gd to move to its definition and highlight all references. The result looks like this:

STDMETHODIMP CShellExt::GetOverlayInfo(LPWSTR pwszIconFile, int cchMax, int *pIndex, DWORD *pdwFlags)
{
    int nInstalledOverlays = GetInstalledOverlays();
    
    if ((m_State == FileStateAdded)&&(nInstalledOverlays > 12))
        return S_FALSE;        // don't use the 'added' overlay
    if ((m_State == FileStateLocked)&&(nInstalledOverlays > 13))
        return S_FALSE;        // don't show the 'locked' overlay
    if ((m_State == FileStateIgnored)&&(nInstalledOverlays > 12))
        return S_FALSE;        // don't use the 'ignored' overlay
    if ((m_State == FileStateUnversioned)&&(nInstalledOverlays  > 13))
        return S_FALSE;        // don't show the 'unversioned' overlay

( 0 )

#

My site is hosted in dreamhost, and I can’t access it in my office, because port 22 is banded with our policy. And now I find a very good tool, that can resolve my problem - WebSSH. It’s a java serverlet, I think it uses only port 80, but I’m not sure. I use it to manage my site. It works very like a putty.You can install it from http://webssh.decf.berkeley.edu/full/.

If you want to ftp to your site with port 80, net2ftp is a good try. You can find it at: https://webftp.dreamhost.com/index.php.

( 0 )

Written July 9, 2008 in blog

Let’s wait and see what’s happening…
Reference: http://blogging-madeeasy.blogspot.com/2008/07/submit-your-blogs-to-web-directories.html

Continue Reading »

#

While it’s a great software with great ideas. It really slow down my computer and outlook. In fact, I used it very little, though it did a good job as its role. I said it’s even better than google desktop, but google desktop consume less resource than it.

I will try Xobni later, I think. And I hope it works only when I need it, and stop working when I don’t need it.

( 0 )

Written July 8, 2008 in life, meditation

Each time we made mistakes, we can always find excuses, such as "I’m not careful", "I should have notice that …", "Somebody else should …". But you should be aware that, you’ll never make mistake on giving the result of "1+1". In fact, if you make mistakes on it, it just means that it is [...]

Continue Reading »