The Constant Innovator


Getting Microsoft Outlook to have a default location in calendar meetings / appointments
September 19, 2014, 4:13 pm
Filed under: Uncategorized

I’ve had a constant problem with Microsoft Outlook’s Calendar, wherein it prompts me for a location for a meeting if I haven’t specified one. Outlook pops up a dialog box:

 "Outlook has detected the following:
 - The location is not specified.
 Do you want to send the meeting anyway?
 Yes/No"

There are many cases where a meeting’s location is understood, or written in the subject, or I’m simply scheduling some work for myself, so getting prompted every time was a constant headache for several years. I’ve finally been able to solve that problem, by discovering this resource: http://blogs.technet.com/b/ewan/archive/2013/11/08/tip-o-the-week-196-change-outlook-meeting-duration.aspx And adapting the code as follows (Note that it can probably be optimized much further): First code snippet is exactly as mentioned:

Private objMeeting As clsMeeting

Private Sub Application_Quit()
    Set objMeeting = Nothing
End Sub

Private Sub Application_Startup()
     Set objMeeting = New clsMeeting
End Sub

Second code snippet is as follows:

    Private WithEvents olkIns As Outlook.Inspectors, _
            WithEvents olkApt As Outlook.AppointmentItem


    Private Sub Class_Initialize()
        Set olkIns = Application.Inspectors
    End Sub


    Private Sub Class_Terminate()
        Set olkIns = Nothing
    End Sub


    Private Sub olkApt_Unload()
        Set olkApt = Nothing
    End Sub

    Private Sub olkIns_NewInspector(ByVal Inspector As Inspector)
        If Inspector.CurrentItem.Class = olAppointment Then
            Set olkApt = Inspector.CurrentItem
                If Len(olkApt.Location) > 0 Then
                
                Else
                    olkApt.Location = "(default)"
                End If
        End If
    End Sub

Advertisements


Jaipur Literature Festival 2012 Schedule (in xls, xlsx format)
January 4, 2012, 3:05 am
Filed under: Uncategorized

My wife and I were interested in attending the Jaipur Literature Festival 2012 to be held between January 20th and January 24th.

To figure out what we were interested in, we copied the schedule onto an Excel sheet, so we could mark which program we were each interested in, and which both of us were interested in.

Sharing this so other people can find it useful as well. Note that this schedule was taken from http://jaipurliteraturefestival.org/festival_program/ on 3-Jan-2012 @ ~ 10:00 PM IST.

Jaipur_Literature_Festival_2012 (XLS)

Jaipur_Literature_Festival_2012 (XLSX)



Changing IP address and DNS settings programmatically in Windows Vista
May 26, 2009, 2:22 pm
Filed under: Uncategorized

(long post title, but it describes it perfectly)

Background: I’ve run into the situation where I have multiple IP/DNS “profiles” that I want to switch between on my laptop, and find it an enormous pain to go into Network Settings again and again. One of my colleagues had a bigger problem when his office IP settings did not work at all between his home and office.

Solution: This is a Batch file (.bat) meant for Windows Vista that allows you to select from different profiles and set IP and DNS settings accordingly. You will have to click on the User Account Control prompt and select Continue.

Setup

  1. Copy the code below into a file: “IP-DNS-switch.bat”
  2. Change the contents to fit your requirements. Do NOT blindly copy paste this and expect it to work. It will NOT!
  3. Move the bat file into C:\Windows (not required to be there in particular, but it would be the safest location from accidental deletion)
  4. Create a shortcut to this file on your Desktop
  5. Edit the Properties of this shortcut and in Advanced, set “Run as administrator”

Notes

  1. This is meant for Windows Vista. It won’t work anywhere else.
  2. The settings are for your default wireless connection, you’ll need to modify the file appropriately if its anything else.
  3. Again, the IP and DNS settings are meant for MY connection ONLY, you MUST modify these. Don’t even THINK of using them as it is.
  4. To understand more about netsh, open up a Command Prompt in Windows Vista and type the following:
netsh int ipv4 set address /?
netsh int ipv4 set dnsserver /?
netsh int ipv4 add dnsserver /?

References

  1. http://en.kioskea.net/forum/affich-13513-how-to-change-ip-address-from-command-prompt
  2. Various sites on how to use the CHOICE and NETSH command
  3. Windows Vista command prompt with the /? operator

The main code

@echo off
REM IP-DNS-switch.bat
REM Copyright(c) 2009 Siddhant Bhansali
REM VBScript to automatically switch between Home and Work IP and DNS configurations.
REM Pre-configuration:
REM 1. Change the IP and DNS settings to whatever is appropriate to your networks
REM 2. Copy this file to C:\windows so that it is not accidentally deleted
REM 3. Create a shortcut to it on the Desktop
REM 4. Right click and select properties of the shortcut
REM 5. In Advanced, set "Run as administrator"
REM 6. Save these settings and you're done!
REM --------------------------------------
echo.
echo Switch to which configuration?
echo.
echo [H]-Home (All IP and DNS settings set to Automatic)
echo [W]-Work (IP and DNS settings set to Work settings)
echo [E]-Exit (No change)
echo.
CHOICE /C:HWE

IF ERRORLEVEL 3 GOTO END

IF ERRORLEVEL 2 GOTO WORK

netsh int ipv4 set address "Wireless Network Connection" source=dhcp
netsh int ipv4 set dnsserver "Wireless Network Connection" source=dhcp
pause
goto END
:WORK
netsh int ipv4 set address "Wireless Network Connection" static 192.168.1.XX 255.255.255.0 192.168.1.1 1
netsh int ipv4 set dnsserver "Wireless Network Connection" static 203.94.243.70 primary
netsh int ipv4 add dnsserver "Wireless Network Connection" 203.94.227.70
pause
:END


Fixing a Panasonic SDR-H21 with a shake
May 28, 2008, 5:37 am
Filed under: Uncategorized | Tags: , , , , , , , , ,

Had borrowed a family friend’s digital camcorder, a Panasonic SDR-H21 and it recorded fine once or twice and then had a weird error wherein the lens / focus / zoom was completely unresponsive.

It was recording photos and videos, but the picture was at a fixed focus, and moving the thumb-tab to zoom in and out was completely unresponsive.

Tried a lot of things. Discharging the battery, reseting the camcorder, but nothing worked. The Panasonic website was collosally unhelpful (no support section, apparently nobody has any problems with this product, moreover the H21 model is not listed on their site). I talked to the family friend and we ran through the checklist again, but to no avail. Then, just as a joking aside, he suggested that I shake the camera. I did just that – shaking it from one end to another. Unexpectedly, the camcorder powered itself off.

I had to disconnect the battery to reset it, but when it did come back on, it was working fine!

Detailed notes:

  • After the first test run, when it worked fine, the battery was removed and left on the charger. After the green light went off, I plugged it back in and switched on the camera. The lens cover was not taken off and I tried moving the dials through the modes, but it didn’t switch from the video display mode. When it came onto the photo record mode, it still displayed the video display mode.
  • The camcorder was complaining a lot that it needed to reset itself when I was switching modes – which I did, but that didn’t help.


Outsourcing to India: Why, How and What?
May 20, 2008, 9:44 am
Filed under: Written works | Tags: , , , , , , , , , ,

The following is an anonymized version of a set of presentations I created for helping a US based company decide whether to outsource part of its work to India or not. It examines why it makes sense, how the company can go about doing it and what resources are required at both ends (this part is not that comprehensive).

ABC US – Outsourcing to India

  • Overview
  • ABC US – Vision
  • Outsourcing – popular perceptions…
  • Outsourcing – changing perceptions…
  • What is outsourcing?
  • Types of offshoring
  • Outsourcing to India – Present reality
  • Why Outsource Work?
  • Why outsource (statistics)
  • Outsourcing – Clear Advantages
  • Who outsources work to India?
  • Some more…
  • Why should ABC US outsource?
  • What can ABC outsource right away?
  • Why India?
  • Offshore location: India offers the best package
  • Checklist for setting up in India

Link to PPT

ABC US – Setting up ABC India

  • Overview
  • What is the vision for ABC India?
  • Checklist for setting up in India
  • Why Gurgaon?
  • Why Jaipur?
  • Proposed structure of the Indian company
  • Critical assumptions / Financials
  • Comparing US and Indian developers
  • Challenges faced by firms outsourcing to India
  • US Manager responsibilities
  • Short Term Goals
  • Long Term Goals?
  • Information required from ABC US
  • Immediate next steps for a captive unit…
  • What will ABC India look like?

Link to PPT

ABC US – Infrastructure setup

  • Infrastructure setup
  • Server / Hardware requirements in India
  • Communication mechanisms

Link to PPT



Description of Nike’s Cricket in the traffic jam ad
May 20, 2008, 8:19 am
Filed under: Written works | Tags: , , , , , ,

For an assignment in ISB’s “Marketing and Design Ethnography” course, we had to choose an ad to write about. I chose a Nike ad on TV (http://www.youtube.com/watch?v=Mpvuz8gg79Q) which featured ordinary folks playing cricket in a traffic jam. Here is the write-up for it (it is a description along with screen shots of key scenes – it is not the complete report).

Link to PDF



Tambola calling out names for numbers
May 11, 2008, 11:22 am
Filed under: Uncategorized | Tags: , , , , , ,

My sister recently organized a Tambola game (known as Bingo in other countries) for a large gathering of people. We looked online for a collection of names to call out for each number, but weren’t able to find any. So, she talked to one of our family friends and noted the names down in a document.

Link to Word Doc