I recently had a problem with Grails when I started a new project in Eclipse with Grails 2.0.0. I tried adding an external JAR file to my "lib" directory by dragging the JAR file over to the directory. In Grails 1.3.7, the JAR file would then get added to the list of grails dependences (after …
Category: Technology
[UITableViewController loadView] loaded the “some-id” nib but didn’t get a UITableView.
The following error occurred when adding a UIView to the root of a NIB expecting that was loaded by a UITableViewController class. [sourcecode language="objc"] uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "some-id" nib but didn't get a UITableView.' [/sourcecode] If you have a UITableViewController and your root element is not a UITableView, you should …
How to configure “Cross-cell single sign-on” in WebSphere with Jython
To configure "Cross-cell single sign-on" in the WebSphere 6.1 admin console with a Jython script, you can use the script below. This assumes that you've exported the keys from the server you are going to connect to. [sourcecode language="python"] import java.lang.String as jstr import java.util.Properties as jprops import java.io as jio import javax.management as jmgmt …
Continue reading How to configure “Cross-cell single sign-on” in WebSphere with Jython
How to configure a Shared Library in WebSphere with Jython
Here's a script that I used to configure a Shared Library in WebSphere 6.1 using Jython. [sourcecode language="python"] from string import whitespace sharedLibName = "APPLICATION_SHARED_LIB" # See if library already exists. cellId = AdminConfig.list("Cell") sharedLibraryId = AdminConfig.list("Library") if (sharedLibraryId.find(sharedLibName) < 0): # Library does not exist. print "Creating Shared Library" params = []; params.append(["name", sharedLibName]); …
Continue reading How to configure a Shared Library in WebSphere with Jython
How to configure WebSphere Global Security to use LDAP with Jython
Here's a script that I used to configure the WebSphere 6.1 global security setting to use LDAP using Jython. [sourcecode language="python"] # Properties username = "user" password = "pass" ldapServer = "somecompany.com" ldapPort = "389" # Configure the LDAP authentication AdminConfig.save(); # This needs to happen so you can write to the Security file. ltpa …
Continue reading How to configure WebSphere Global Security to use LDAP with Jython
Finding line count in DOS
In Unix, there's this nifty binary called "lc" which gives you the line count of the file. However, in DOS, you have to be a little more creative. Below is a DOS command I use to count the number of lines in a text file. [sourcecode language="text"] FIND /v /c "nonsense" filename.ext [/sourcecode] The "nonsense" …
How to get JAX-WS Web Service Method Name
I'm not sure if this will always work, but here is some sample code that I put into a Handler to log the web service method name that is being called. I wanted to be able to track each method, and see which ones were getting use. This web service was running on IBM WebSphere …
Simple Lego Ship (with Blender mesh files)
This is a 3D model of a Lego ship that we made (over and over) when we were kids. For some reason, the simplicity of the space craft facinated us. We made many other spaceships, but this one stuck with me for some reason. Here's how it fits together. The image below shows the pieces required. …
Lego Astronaut Blender Mesh Files
Here is a Lego man that I did with Blender (v 2.4.9). I've decided I would post this, since when I did a search for one, I couldn't find one. I will try to keep it up to date. The link to the mesh files are below. Download the Blender Files (this contains LegoMan.blend, face.jpg, …
Best CSS trick I’ve ever needed to know
I often have to put CSS hacks in my HTML (thank you IE6), and when I do, I usually refer to this simple set of rules to help me determine what browsers I need the hack to work for. Essentially, it boils down to this: 1) A dot in front of a style will cause …