Currently browsing category

Tips and Tricks

MacBook: Disable Chrome from auto starting

I recently purchased a MacBook Air and had to install Google Chrome to use Webex and Hangout calls. Post installation, each time I started/restarted my MacBook, I was greeted with a blank Google Chrome window. This functionality is great if Chrome is your primary browser but irritating if you primarily use Firefox like me and use Chrome for specific activities as needed.

After going through various forums, I finally arrived at the below steps which are simple and straight forward:
1. Goto System Preferences >> Users & Groups.
2. Click on the Login Items tab for your user name.
3. You will see an entry got Google Chrome, remove the entry by first selecting Google Chrome and then clicking on the – (hyphen/minus sign) at the bottom. Do not make the mistake which I did of clicking on the checkbox and expecting it to be removed, you need to click on the minus symbol at the bottom to stop it.

After more than a month of struggling with it, I was relieved to finally get rid of Chrome from popping up each time I started the MacBook Air. Yay!


Start Oracle using Windows Batch Script

Command LineIf you are a developer like me then there would generally be a stack which you would be working on, for me it is Oracle, Apache and Tomcat. Considering how heavy they are on the system and how badly they can slow down the system, I prefer to not have them startup with windows and instead start them up manually as required using windows batch scripts. Here is what I did to get the things setup:

  • Firstly, I disabled the following from starting up on each windows startup by going to ‘Run’ and entering ‘services.msc’
    • OracleMTSRecoveryService
    • OracleServiceTUXORCL (TUXORCL is my local DB)
    • OracleOraDb11g_home1TNSListener
    • TuxApache (Apache service)
    • TuxTomcatService (Tomcat service)
  • Next step is to create a window’s batch script, I created two (one for starting and the other for stopping) and the scripts looked something like below:
  • Startup Script (start_oracle_apache_tomcat.bat):
    net start OracleMTSRecoveryService
    net start OracleServiceTUXORCL
    net start OracleOraDb11g_home1TNSListener
    net start TuxApache
    net start TuxTomcatService
  • Shutdown Script (stop_oracle_apache_tomcat.bat):
    net stop TuxApache
    net stop TuxTomcatService
    net stop OracleMTSRecoveryService
    net stop OracleServiceTUXORCL
    net stop OracleOraDb11g_home1TNSListener

Note: You may need admin privileges to be able to run the scripts.