// author archive

garywaddell

garywaddell has written 60 posts for garywaddell.com

Addressing Emails

So I noticed a trend with emails that I thought would be interesting to discuss, and that is how you address someone in an email.  Consider 2 simple, non-confrontational emails below and notice the main difference between them: Gary, We are in need of getting the website done by end of day Friday.  Can you [...]

Planning your Vacation – The Top 10 Reminder List

This is completely unrelated to technology but seemed a great place to put together a reminder list of things you may want to consider and plan when you are going away on vacation. Don’t Forget your Passports Bring your Wallet, make sure you have the correct currency as well Call Visa or Mastercard etc to [...]

Understanding Simple Positioning with CSS

While learning CSS, the one thing I kept (and keep) messing up was the ability to position elements correctly.  I found I had a hard time getting the correct way to use position absolute and relative.  The trick that I was taught was when you use position: absolute to define your specific co-ordinates (ie top: [...]

Centering with CSS

If you have a container (ie a fixed size frame) and you want to center that container in the page, the traditional, old fashioned way was to use a table or the < center > tag.  With CSS, you simple use this in your container class: margin: 0px auto; You can always use a top [...]

width:auto width:100%

Great article that explains something I know I have had issues with for CSS in the past wondering the difference between width:auto and width: 100%, but not anymore http://www.456bereastreet.com/archive/201112/the_difference_between_widthauto_and_width100/

CKEditor – Change the background color using JavaScript

I found a great article on how to change the background color of CKEditor on the fly.  This became a great approach when performing form validation: Link is here, but for a quick reference, here’s how you reference it: this.document.$.childNodes[1].childNodes[1].style.backgroundColor = ‘Blue’; this refers to your CKEditor Instance (CKEDITOR.instances['instanceName'] or CKEDITOR.instances.formFieldIdName)

Some useful Mac keyboard tips

http://www.usingmac.com/2007/11/21/mac-os-x-leopard-200-productivity-booster-hotkeys

WSWS3740E: Error: No SSL configuration is available for endpoint

You may get this error when you try and run a Java client to a SSL based web service. If you do experience this problem, you need to point to the WAS ssl.client.props file and add the cert to the chain.  You will probably be prompted, and when you do, you’ll need to answer Y [...]

Java Decompiler

Found this Java Decompiler from a colleague.  Very impressive, especially if you use Eclipse http://java.decompiler.free.fr/?q=jdgui

Getting Query String from a JSP

public String getQueryString(HttpServletRequest req) { Object reqUrlObj = req.getAttribute(“javax.servlet.forward.query_string”); StringBuffer result = new StringBuffer(“”); if (reqUrlObj != null) { result.append((String)reqUrlObj); } return result.toString(); }

Categories

  • No categories

Categories