// archives

General

This category contains 39 posts

iFrames and WordPress

Unfortunately, WordPress does not allow you to insert iframes into an Article or Page.  You’ll need to install an embed iframe plugin into WordPress (http://de77.com/other/wordpress-iframe-embedder). Working Example using [ iframe http://www.onmiddleground.ca/index.html 640px 350], remember to remove the space before the word iframe:

sed – replace text in multiple files

To replace foo with foo_bar in all PHP files, use this command: sed -i ‘s/foo/foo_bar/g’  *.php

Excellent Lightbox Alternative – PiroBox

I found this URL giving a full list of the available Lightbox alternatives as they are growing in interest everyday. http://planetozh.com/projects/lightbox-clones/ I’ve used a number of these plugins, but the one I was very impressed with is PiroBox as it offers a draggable image http://www.pirolab.it/pirobox/

Websphere SOAPElement ClassCastExceptions

Well if you’ve spent hours trying to figure out why your code generates anything to do with SOAPElement ClassCastExceptions, you probably have a classloader issue with conflicting JARs in your WAS classpath.  Take a look thru your JAR files being loaded in the Server JVM, WEB-INF/lib and the Shared Libraries for any classes that are [...]

mailto: Adding Line Breaks in the Body

Found this great article that helped me figure out how to add a line break (aka Cr/Lf or Carriage Return/Line Feed) in the Body of an email using the mailto protocol.  The article can be summarized as: The answer can be found in RFC 2368 whereas line breaks in the body of a message must [...]

Useful Mac Terminal Commands

Tar Up a list of files so you can FTP to a server tar czvf backup.tgz files-to-backup And to extract those files: tar xzvf backup.tgz files-to-backup List files in a zipped tar archive without extracing tar tzf backup.tgz To SSH to a remote machine, use: ssh [hostname] -l loginid To kill a hung process (example: [...]

Tar and Compress Files in Linux

This command should do it: tar -cjvf yourfile.tbz yourfolder/

Creating Java Websphere Web Service Clients

There will be at least one time in your life where you need to create a Java Client that communicates to a web service.  Web Services Runtimes are specific to the application (i.e. Websphere), so chances are each application will include the required WSDL2Java / Java2WSDL utilities to generate Java code from a WSDL.  This [...]

Using Dynamic Stylesheets for IE

We all know Internet Explorer is a pita when it comes to standardizing CSS.  You find you are spending a number of hours testing your website between different IE versions only to find some very cool CSS techniques you used end up looking miserable in IE.  I guess it’s what we have to expect from [...]

Ant Missing in PDT Eclipse for Mac

So you want to run some build Ant scripts using your PDT Eclipse installation on your new Mac computer, but where is the view?  In fact, where is Ant?  It appears PDT is not part of the Eclipse PDT bundle, so you need to activate it in the Help |  Software Updates section.  You’ll find [...]

Categories

  • No categories

Categories