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
 next
while (1)
 set oResults = oServices.ExecQuery("select * from batterystatus")
 for each oResult in oResults
 iRemaining = oResult.RemainingCapacity
 bCharging = oResult.Charging
 next
 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
wend

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 https://wiki.mozilla.org/WeeklyUpdates/2015-05-18#Friends_of_Mozilla_Friends_of_Mozilla.

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 :
    https://developer.mozilla.org/en/docs/Introduction
  2. Simple Firefox build :
    https://developer.mozilla.org/en-US/docs/Simple_Firefox_build
  3. Finding Bugs :
    http://www.joshmatthews.net/bugsahoy/?ff=1&html=1&simple=1
  4. Tracking Bugs :
    https://bugzilla.mozilla.org/

 

Steps to build Firefox on Linux:

1. One-Line Bootstrapping
You can attempt running our system bootstrapping script to install all system dependencies:
” wget https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py ”

2. Get source code
” git clone https://git.mozilla.org/integration/gecko-dev.git

* 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
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/So_you_just_built_Firefox