Battery Alarm VBS Script

Simple VBS script (save it as .vbs file and run) to get once the laptop battery is charged up to given (90 in this case) percentage.

set oLocator = CreateObject("WbemScripting.SWbemLocator")
 set oServices = oLocator.ConnectServer(".","root\wmi")
 set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity")
 for each oResult in oResults
 iFull = oResult.FullChargedCapacity
while (1)
 set oResults = oServices.ExecQuery("select * from batterystatus")
 for each oResult in oResults
 iRemaining = oResult.RemainingCapacity
 bCharging = oResult.Charging
 iPercent = ((iRemaining / iFull) * 100) mod 100
 if bCharging and (iPercent > 90) Then msgbox "Battery is at " & iPercent & "%",vbInformation, "Battery monitor"
 wscript.sleep 30000 ' 5 minutes

Marketplace Day Hyderabad – Event Report

I am feeling proud to write about the first event regional marketplace community building event ‘Marketplace Day’ organized by us in Hyderabad. Unlike its name, it was actually an over night event 😉 and 25 enthusiastic participants and volunteers (who were curated based on their application form) woke up whole night to work on marketplace bugs. You can read full report about the event flow and report at my post on Mozilla India blog. Here I would like to put the summary and special mentions about the event.

As a summary, the event was all about –

  • 25 Hackers with open eyes whole night
  • 15 Night Hours of Fun
  • 15 Bugs targeted
  • 11 Pull Requests
  • 5 New Bugs filed

Undoubtedly everyone did an amazing job to make this event a super success, I would like to mention few participants here for their special contributions to the event –

  • Ravi Teja took a quick session to introduce Git during the event, fixed bugs and provided lot of help to fellow participants.
  • Sukhwinder Singh Sehgal helped fellow participants in setting up the fireplace.
  • Saahiljeet Singh not only worked on fixing bugs, but also submitted 5 new bugs.
  • Manoj Kumar, Jaipal Singh Goud, Bharath submitted most number of Pull Requests.

Friend of Mozilla :

Thanks a lot Amy for giving updates about this event at last week’s project meeting and getting me the shout-outs. I loved to see my name mentioned as the newest Friend of Mozilla on the meeting notes at

Few more event related links

Learn how to get started with the code base contribution to the open source

Ever wondered how volunteers contribute to code base of open source ? Do you want to be one. Here is the opportunity – Marketplace Day (Hyderabad), an event completely dedicated to Mozilla’s Firefox Marketplace Code Contribution. If you are in and around Hyderabad India, please join us for the event.

We will learn

We will learn things necessary for getting started with code-base contribution

Registration are open now !

Other useful links :

Contributing to Firefox Codebase

Useful Links:

  1. Contributing to the Mozilla codebase :
  2. Simple Firefox build :
  3. Finding Bugs :
  4. Tracking Bugs :


Steps to build Firefox on Linux:

1. One-Line Bootstrapping
You can attempt running our system bootstrapping script to install all system dependencies:
” wget && python ”

2. Get source code
” git clone

* You may get error saying – The program ‘hg’ is currently not installed.
Simply install hg using sudo apt-get install mercurial

3. After successfully building Firefox, follow