Archive

Author Archive

How to Add or Insert Pictures in Outlook Web Access?

January 12th, 2011 14 comments

My employer started rolling out Outlook Web Access to all employees and it was a much welcomed change from the old and aging Lotus Notes email system. All went well, except for the missing functionality of inserting a picture or screen print in an email. I believe in the saying that “a picture is worth more than a thousand words” and I tend to use screenshots and snagit on a regular basis.

I kept using the Outlook client anytime I want to copy and paste a picture, until a friend showed me how to enable Multipurpose Internet Mail Extensions (MIME) in Outlook Web Mail. Listed below are the steps I followed in Outlook Web Access to enable copy and paste. (version 2003 and above)

1) Access Outlook Web Access Email and click on “options” (top-right corner)
2) Click on Email Security. If you a see a screen like the one below, that means you are missing the MIME control that will enable you to insert pictures.

Outlook web access email security page showing MIME control not installed

Outlook web access email security page showing MIME control not installed


3) Click “Download the Outlook Web Access S/MIME control” and install the client.
4) After installing the MIME control, check the Email Security page to ensure that the components were installed correctly.
Outlook web access email security page showing MIME control installed

Outlook web access email security page showing MIME control installed

Now start writing a new email and “copy paste pictures” at will….

Outlook web access new email with picture inserted

Outlook web access new email with picture inserted

If you know a better way to enable copy and paste option for Outlook Web Access, feel free to make an entry in the comments.


Share
Categories: Tech Tips Tags:

Enable boxing errors in Eclipse

September 16th, 2010 No comments

Java 1.5 (5.0) and above support autoboxing conversions for primitives and wrapper objects. This will unclutter the code and give more flexibility to programmers, however this can have a negative impact on performance and can cause some unexpected behaviors. (Use boxing with care).

Eclipse by default will throw a warning if there are boxing and unboxing conversions in the code. If you want eclipse to throw an error during these conversions, follow the steps below –

Eclipse –> Window –> Preferences –> Java –> Compiler –> Errors/Warnings

scrn_enable_eclipse_autoboxing_error

If you want to learn more autoboxing in Java click here


Share
Categories: Tech Tips Tags: ,

How to find ports that are used in a windows machine?

September 10th, 2010 No comments

From time to time you might need to find all the ports that are used by other applications in your machine. Recently, I was installing a web server and I saw that the default port was already taken by some other application. There are many tools in market that will allow you to monitor and scan ports, but if you are simply looking to find available ports in a windows desktop or laptop you can can take advantage of the “netstat” tool provided with the windows OS.

Open command prompt and type
netstat -an
This will display all connections and listening ports in numerical form. If you have many ports open this will be a rather long list.



If you looking for a specific port, you can search inside the results provided by netstat. In the example below I am looking for all ports starting with port 80.
netstat -an | find “80”
scrn_netstat_findport_techthinking



If you want to be a little more specific, you can search search inside the results provided by the previous command. In the example below I am looking for all ports starting with port 80 and in listening status.
netstat -an |find /i “listening” | find “80”
scrn_netstat_findport_listening_techthinking

Share
Categories: Tech Tips Tags: ,

How to get Gmail Groups in iPhone Contacts?

August 25th, 2010 1 comment



I am glad that I can access gmail in my iPhone, however I miss the group contacts that I have in my gmail account. Groups are a big help when I email pictures to my family and friends, and I do not want to run the risk of missing anyone while sending pictures.

I saw many solutions online. Link below is the one that worked. This is not an ideal solution, but better than nothing.


http://red66.com/2009/07/how-to-send-group-emails-from-your-iphone/

I hope soon there will be a better solution from apple.

Share
Categories: Tech Tips Tags: ,

Download JDK 1.5 (direct link)

August 25th, 2010 1 comment


Here is a direct link to download Java 1.5.0.22 or Java 5.0 update 22. Going directly to this link will save time registering at oracle.com and waiting for an email with download link.


http://java.sun.com/javase/downloads/5u22/jdk

Alternate option is to download from CNET.

Share
Categories: Tech Tips Tags:

How to add websites to Google Custom Search Engine?

April 30th, 2010 No comments

Have you ever wondered how to add sites to Google custom search engine or CSE. Answer is to use Google Marker… a javascript which you can add to your browser tool bar or favorites.

Using the Google Marker (from the Marker documentation)
The Google Marker allows you to add and label sites in your Custom Search Engine. Please note that you must already have created or signed up to collaborate on a Custom Search Engine to use the Google Marker with a Custom Search Engine.

Once you are ready, simply add the Google Marker link below to your browser toolbar.

  • Firefox users: Drag the marker into the Bookmarks Toolbar.
  • Chrome users: Drag the marker into the Bookmarks Toolbar.
  • Internet Explorer users: Right-click on the marker, then select “Add to Favorites” > “Links.”


  • http://www.google.com/coop/cse/marker

    Share

    How to Sort Two Dimensional Data based on Multiple Parameters?

    April 26th, 2010 2 comments

    This is a follow up to my previous post How to Sort a Two Dimensional String Array using JAVA

    Here I am trying to sort an address table by Street Name, Street Number and City using java comparator. First I sort the table by Street Name (column A), then keeping street name as constant sort by Street Number (column B) and finally keeping street name and number as constant sort by City (column C)

    If you want to sort my more columns, you can easily add the rules to ORDER_BY_RULES – shown below.

    Address Table:

    Street Name Street Number City State Zip Code
    univ dr 101 Sunshine FL 33324
    break rd 102 Sunrise FL 33224
    univ dr 103 Cleveland OH 24785
    dykes rd 104 San Antonio TX 24785
    dykes rd 104 Boston MA 24785
    dykes rd 104 Orlando FL 24783
    import java.util.Arrays;
    import java.util.Comparator;
    
    public class Sort {
    
    static final Comparator<Address> ORDER_BY_STREETNAME = new Comparator<Address>() {
    	public int compare(Address a1, Address a2) {
    		return a1.streetName.compareTo(a2.streetName);
    	}
    };
    static final Comparator<Address> ORDER_BY_STREETNUMBER = new Comparator<Address>() {
    	public int compare(Address a1, Address a2) {
    		return a1.streetNumber.compareTo(a2.streetNumber);
    	}
    };
    static final Comparator<Address> ORDER_BY_CITY = new Comparator<Address>() {
    	public int compare(Address a1, Address a2) {
    		return a1.city.compareTo(a2.city);
    	}
    };
    
    static final Comparator<Address> ORDER_BY_RULES = new Comparator<Address>() {
    	public int compare(Address a1, Address a2) {
    		int i = ORDER_BY_STREETNAME.compare(a1,a2);
    		if(i == 0){
    			i = ORDER_BY_STREETNUMBER.compare(a1,a2);
    			if(i == 0){
    				i = ORDER_BY_CITY.compare(a1,a2);
    			}
    		}
    		return i;
    	}
    };
    
    public static void main(String args[]){
    	//Array with address to sort
    	Address[] addressArray = new Address[]{
    		new Address("univ dr","101", "Sunshine", "FL", "33324"),
    		new Address("break rd","102", "Sunrise", "FL", "33224"),
    		new Address("univ dr","103", "Cleveland", "OH", "24785"),
    		new Address("dykes rd","104", "San Antonio", "TX", "24785"),
    		new Address("dykes rd","104", "Boston", "MA", "24785"),
    		new Address("dykes rd","104", "Orlando", "FL", "24783"),
    	};
    	Arrays.sort(addressArray, ORDER_BY_RULES);
    	//Print the sorted array
    	for(int i=0; i<addressArray.length; i++){
    		System.out.println(addressArray[i].toString());
    	}
    	System.out.println();
    }
    }
    
    //Address Class
    class Address {
    	String streetName;
    	String streetNumber;
    	String city;
    	String state;
    	String zipCode;
    	@Override
    	public String toString() {
    		return "Address [" + streetName + " | " + streetNumber + " | " +
    			city + " | " + state + " | " + zipCode + "]";
    	}
    	public Address(String streetName, String streetNumber,
    				String city, String state, String zipCode) {
    		super();
    		this.streetName = streetName;
    		this.streetNumber = streetNumber;
    		this.city = city;
    		this.state = state;
    		this.zipCode = zipCode;
    	}
    }

    Results – sorted by street name, street number and city

    Address [break rd | 102 | Sunrise | FL | 33224]
    Address [dykes rd | 104 | Boston | MA | 24785]
    Address [dykes rd | 104 | Orlando | FL | 24783]
    Address [dykes rd | 104 | San Antonio | TX | 24785
    Address [univ dr | 101 | Sunshine | FL | 33324]
    Address [univ dr | 103 | Cleveland | OH | 24785]
    Share
    Categories: Tech Tips Tags:

    Compare financials of Two or More Stocks

    March 16th, 2010 No comments

    If you are looking to compare technical information or key metrics like Market Value, Revenue, Net Earnings, P/E, Profit Margin, Dividend etc of two or more stocks, then check the sites listed below. All the popular sites like finance.yahoo.com, finance.google.com and others will allow you to compare stock charts, but not the detailed financial information.

    Smarty Money – Stock Compare
    SmartMoney will allow you to compare and analyze any number stocks at a time. They also have an applet version of the analyzer will only allow you to compare three stocks. Included below is a screen print of the smartmoney website.

    SmartMoney_CompareStocks

    Nasdaq – Stock Comparison
    Nasdaq will allow you to compare up to a maximum of five stocks. The will even allow you to compare stocks that are not traded in their exchange.
    Included below is a screen print of the Nasdaq stock comparison website.
    Nasdaq_CompareStocks


    If you know any better websites for comparing technical information of stocks, feel free to comment.

    Share
    Categories: Cool Sites Tags:

    How to Sort a Two Dimensional String Array using JAVA

    February 15th, 2010 No comments

    Recently I had to write a program to sort data (String) in a table and was looking for an efficient and easiest way to do sorting in java. I found two options – one was to write my own sorting program, and the other was to use the Comparator class in the Util package. I found that using Comparator or Comparable interface was very easy compared to writing my own sorting algorithm.

    If you are new to using “Comparator”, I highly recommend reading this one page tutorial.
    http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html

    Here is a working example for sorting a two dimensional string array:

    import java.util.Arrays;
    import java.util.Comparator;
    
    public class Sort {	
    	public static void main(String args[]){
    		//Array with address to sort
    		String[][] addressArray = new String[][]{
    				{"E","abc st","Sunshine", "FL"},
    				{"S","abc st","Sunrise", "FL"},
    				{"E","abd st","Cleveland", "OH"},
    				{"N","aab st","Dallas", "TX"},
    				{"W","xyz st","San Antonio", "TX"}};
    				
    		//Sort the array by city name or column 3
    		Arrays.sort(addressArray, new ColumnComparator(2));
    		
    		//Print the sorted array
    		for(int i=0; i<addressArray.length; i++){
    			String[] row = addressArray[i];
    			for(int j=0; j<row.length; j++) {
    				System.out.print(row[j] + " | ");
    			}
    			System.out.print("\n");
    		}
    	}
    }
    //Class that extends Comparator
    class ColumnComparator implements Comparator {
    	int columnToSort;
    	ColumnComparator(int columnToSort) {
    		this.columnToSort = columnToSort;
    	}
    	//overriding compare method
    	public int compare(Object o1, Object o2) {
    		String[] row1 = (String[]) o1;
    		String[] row2 = (String[]) o2;
    		//compare the columns to sort
    		return row1[columnToSort].compareTo(row2[columnToSort]);
    	}
    }

    Results – sorted by city name

    E | abd st | Cleveland | OH | 
    N | aab st | Dallas | TX | 
    W | xyz st | San Antonio | TX | 
    S | abc st | Sunrise | FL | 
    E | abc st | Sunshine | FL | 
    Share
    Categories: Tech Tips Tags: , ,

    How to match AdSense colors with the WordPress theme?

    February 9th, 2010 1 comment

    Ever wondered how to display ads from Google Adsense that will blend in with your wordpress theme and colors, rather than having the standard white and blue that will shadow everything else you have on your site. I read articles from different bloggers, which suggested that a site with AdSense in matching theme would have a better click-rate compared to ones with the standard colors. I thought of trying this, and listed below are the steps I followed.

    In order to change the colors, you have to generate the adsense ad units with colors that match your site. Go to Adsense Setup > Get Ads > Adsense for Content > Ad Unit > Colors
    adsense_color_palette

    Google will allow you to edit each of the fields in this default color palette, but the trouble is to identify matching colors by looking at your stylesheet. All the colors and styles will be defined in “syle.css”, and you will be able to access this file by going to Dashboard > Appearance > Editor or download the theme and look for the style.css.  In the example below, I am trying to match adsense colors to the sidebar of wordpress theme “iNova”.

    Background
    In syle.css search for “background:” look for the block were you want your ads to appear.
    sidebar { background:#F7F7F7 url(img/sidebar_shadow.gif) top repeat-x;
    }
    This is just an example. Different themes will have different way of defining background colors.

    Border
    Keep the color same as background so that border will be invisible.

    URL
    Look for the style definition for anchor tags
    a { color:#2970A6;
    }

    Text
    For the side panel, keep it the same color as the URL (varies for theme).

    Title
    Look for the color definition for anchor tags
    title a { color:#FFFFFF;
    }

    Font
    Look for font definitions like – “font-family:”
    body {
    font-family:Verdana,”BitStream vera Sans”,Tahoma,Helvetica,Sans-serif;
    font-size:12px;
    }

    Here is the final color palette that match WordPress iNove theme sidebar.
    adsense_color_palette_iNove




    If you know of any better ways to match colors please feel free to comment.

    Share