JS

Monday, August 1, 2011

Test autocomplete function with Selenium

Command "type" doesn't trigger the autocomplete box.

Solution:
To trigger the autocomplete box, use "typeKeys" after "type" command.

type           id=txtTicker SS
typeKeys   id=txtTicker I

Saturday, July 16, 2011

Config bugzilla to send mails with gmail account in windows

1. Download Glob's sendmail program for windows at http://glob.com.au/sendmail/, and unzip it.
2. Copy all items in unzip folder to \usr\lib on the drive where Bugzilla is installed. So if Bugzilla is installed at C:\Bugzilla or any folder on C: drive, create a 'usr' folder at the root level of the C: drive, with a 'lib' folder within that.
3. Open sendmail.ini to edit these values in this file.
    If you are using google apps

    smtp_server=smtp.gmail.com
    smtp_port=587
    smtp_ssl=tls
    default_domain=yourdomain.com
    auth_username=email@yourdomain.com
    auth_password=yourpassword
    force_sender=email@yourdomain.com


    If you are using gmail

    smtp_server=smtp.gmail.com
    smtp_port=587
    smtp_ssl=tls
    auth_username=youremail without @gmail.com
    auth_password=yourpassword
    force_sender=youremail@gmail.com

4. Go to the Administration tab in Bugzilla, and select Parameters link.
5. Choose Email link at the sidebar on the left.
6. At mail_delivery_method combo box, select Sendmail.
7. And you can send mail using gmail account.

Saturday, May 7, 2011

Beautiful - Bosson




I do believe in fate cause that's how we met
It was raining and we were soaking wet
You took the last of cabs on an empty street
Then you smiled at me and said "take a seat..."
I said "Do you believe in love at first sight?"
You said "If you give me a reason I might..."
Ok, well your hair is wet and your clothes are a mess
And your makeup is all over your face...
And still you're so...

[Chorus]

Beautiful, so, sweet and just adorable
You are a miracle, simply irresistable
You are so beautiful, so, sweet and just adorable
You are the finest thing that I've seen in my life
You're everything that I've ever dreamed of

Now it's been seven years 1 month and a day
Since we met and I'm so happy to say
Today we'll be man and wife and dedicate
Our lives to the precious thing we have called Love
So now I'm standing here well dressed and prepared
In a black suit that you told me to wear
And when you're walking in, you amazing thing,
You take my breath away...
Cause you are so.....

[Chorus]

Beautiful, so, sweet and just adorable
You are a miracle, simply irresistable
You are so beautiful, so, sweet and just adorable
You are the finest thing that I've seen in my life
You're everything that I've ever dreamed of

***For richer and poorer till death do us part
In sickness, in health you are always in my heart
Till the day when we're old and grey
I will cherish and love you in every kind of way
Cause you are so....
Beautiful, so, sweet and just adorable
You are a miracle, simply irresistable
You are so beautiful, so, sweet and just adorable
You are the finest thing that I've seen in my life
You're everything that I've ever dreamed of

Monday, January 24, 2011

Config Bugzilla to send mail to gmail

This guidelines is for Bugzilla and James on the same server. (I have not tested with different servers yet.)
1.       Install Bugzilla.
2.       Download Apache James Server 3.0-M2 and unzip to your server.
3.      Config James Server
    Open file mailetcontainer.xml in conf folder.
    Add these lines before <mailet match="All" class="RemoteDelivery">
    <mailet match="HostIs=gmail.com" class="RemoteDelivery">
          <outgoingQueue>outgoing</outgoingQueue>
          <delayTime>5 minutes</delayTime>
          <debug>true</debug>
          <maxRetries>25</maxRetries>
          <maxDnsProblemRetries>0</maxDnsProblemRetries>
          <deliveryThreads>10</deliveryThreads>
          <sendpartial>true</sendpartial>
          <bounceProcessor>bounces</bounceProcessor>
         <gateway>smtp.gmail.com</gateway>
          <gatewayPort>587</gatewayPort>
         <gatewayusername>your gmail</gatewayusername>
          <gatewayPassword>your password</gatewayPassword>
          <!-- enable starttls -->
          <mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>
     </mailet>
4.      Start James Server
5.      Config Bugzilla
    Log in Bugzilla with administrator account.
    Click Parameters -> Email
    Update smtpserver to IP address of your James Server
     Save changes.

Sunday, January 9, 2011

The global template information is out of date

If on one beautiful day, you open a project in your Visual Studio, add a New Item and see this.
(No template information found. See the application log in Event Viewer for more details. To open Event Viewer, click Start, click Control Panel, double-click Administrative Tools, and then double-click Event Viewer)


You are thinking of uninstalling Visual Studio. Don't do it. Try this first:
- Open Event Viewer and find the line like picture. It says that "The global template information is out of date. Regenerate the templates by running 'devenv.exe /installvstemplates' or reinstalling the application."

- Close Visual Studio. Open a Visual Studio Command Prompt with administrator right and run this command "devenv.exe /installvstemplates" without quotes.
- Open Visual Studio and check if the error is solved. If it is not solved, maybe thinking of reinstalling Visual Studio is a good idea. : )

No name

It is only difficult if you don't know it.

Error (ESLint) i.CLIEngine is not a constructor in Visual Studio 2019

To correct the ESLint error 'i.CLIEngine is not a constructor' in Visual Studio 2019 with ESLint version 8.57.0, you can follow thes...