Posted on 20-02-2012
Filed Under (Technology) by bigbang

My Bugzilla meets a strange problem. I used my IP as my Bugzilla urlbase setting. So I can login into my Bugzilla by following style address:


http://192.168.1.146:9090/

But right now the IP of the server has been changed, but Bugzilla will still jump to the old address once I login.

Because it is using old address to let me login, so I can’t login into administrator page to change the urlbase to the new IP.

My question is: where does Bugzilla save the urlbase string? I want to change it manually, so I can relogin my Bugzilla again.

The solution is very simple. Just need to change following line :

'urlbase' => 'http://192.168.1.146:9090/',

in file

/data/params

under Bugzilla installation path.

BTW: I have started a thread in StackOverflow about this question and you can vote you ideas to the thread.

(0) Comments    Read More   

I have used Mercurial to maintain my code editions. My company’s server is using SVN and I want to maintain my local repository, so I commit into my Hg when I have a little change to my code. After testing my code carefully, then I can push back my code into SVN server.

I installed TortoiseHg and I can clone other open source projects to my computer. And I have HgSubversion plugin installed correctly.

Right now I can do the clone operation using following commands:

$ hg clone svn+https://XXXX:8443 test

But after the clone is finished, there is just a folder .hg under test folder.

Why this happen? How can I fix it?

It might have some files which stored with non-ascii file name in repository. Mercurial can’t treat non-ascii file name correctly so far. Have you tried to check out the log? You can do it with command “hg log” to make sure all files had been imported into Mercurial. Then download and install the extention fixutf8. That can fix the problem. After you install fixutf8 you can update current working folder to tip reversion again.

Thanks StackOverflow for providing a platform to let me ask Edison Chuang for help.

(0) Comments    Read More   
Posted on 20-09-2010
Filed Under (Technology) by bigbang

I want to change the text colors in my Org files. I tried to use

M-x customize-group RET org-faces RET

to adjust text color settings.

By using this way, I can adjust colors of headlines leve 1 & 2 &3 and something else. But I just don’t know how to change plain text in my notes. The plain text means the body of my ordinary text entries.

I want to change it into yellow or something else. So I can protect my eyes.

By searching the result on the Internet, I think I can use this command:

M-x customize-face RET default RET

If you want to find the fonts of current text line in Emacs, just put your cursor on the text that you are interested in and say

M-x describe-face

That’s the face which you’ll need to customize.

Ordinary text is in the default face: Org does not define a face for it. So if you change it, you’ll change the appearance of text all through Emacs.

(0) Comments    Read More   
Posted on 19-09-2010
Filed Under (Technology) by bigbang

A lot of companys are using Trac to track their daily work, and there are also a lot of small companys which are using Google Apps to build their Email systems and etc..

Here shows an example about how to set Trac for using Google Apps Gmail to send Email notifications. Modify trac.ini file with following part:

[notification]
admit_domains =
always_notify_owner = false
always_notify_reporter = false
always_notify_updater = true
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc = example@yourcompany.com
smtp_default_domain =
smtp_enabled = true
smtp_from = trac@yourcompany.com
smtp_from_name = Trac
smtp_password = your_password
smtp_port = 587
smtp_replyto = trac@yourcompany.com
smtp_server = smtp.gmail.com
smtp_subject_prefix = __default__
smtp_user = trac@yourcompany.com
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = false
use_short_addr = false
use_tls = true

Just replace the trac@yourcompany.com with your own Email address. Please check The Trac Configuration File for the detail explanation of the settings.

Then enjoy the Email notifications.

(0) Comments    Read More   
Posted on 19-09-2010
Filed Under (Technology) by bigbang

I am building an application which can snapshot a screen shot and show the darker picture of this bitmap in my application.

We can also call this darker picture as semi transparent picture. It is just something like we put a gray transparent overlay on the top of this bitmap.

I try to do this job using MFC function CDC::BitBlt. Here is my example:

CRect rect;

GetClientRect(&rect);

CDC* pDC;

//
          get the value of pDC here

pDC->BitBlt( 0, 0, rect.Width(), rect.Height(),

             &dcCompatible, 0, 0, MERGECOPY);

This way can make the bitmap darker, but the result is not perfect. If you want to make it perfect, you can use AlphaBlend function. I will write a blog article to descripbe how to use it.

(0) Comments    Read More   
Posted on 23-07-2010
Filed Under (Technology) by bigbang

The reason I don’t use Yahoo Mail for daily life is that I can’t check Yahoo Mail by POP and SMTP protocol. Yahoo Mail just provides this service for plus users.

But when I am trying to use GMX as my Email, I found that I can add Yahoo Mail account into my GMX Mail Collector. GMX Mail Colletor is using POP and SMTP to check Yahoo Mail.

Why can I check Yahoo Mail in GMX using POP and SMTP? Is Yahoo Mail providing POP and SMTP services for free users?

(0) Comments    Read More   
Posted on 17-07-2010
Filed Under (Technology) by bigbang

I like Remember The Milk ( call RTM for short ) and I use it for my daily life.

But I find that it is diffcult to find it within too many web tabs in Firefox or Google Chrome.

After searching for a while, I think there are two ways to pin RTM on your desktop.

  1. Using Prism

    Prism is an interesting application which can create a shortcut for you favorite website on the desktop, toolbar of your system.

    Here is the URL: https://mozillalabs.com/prism

  2. Hack your system

    Here is the other way to do the same job. Please check following URL for details:

    http://www.thirderror.com/your-remember-the-milk-to-do-list-on-the-desktop/

I prefer the first method.

(0) Comments    Read More