December 6th, 2008
Another UCSB iCTF is over, and I'm once again wishing that the earth was flat. It is a fun competition, but entering from Australia is a pain when the competition starts at 2:00AM AEST.
Thanks to the guys at UCSB for a very different image, and competition again. The imagination and effort that goes into creating the images is always great. The delivery of a PCDos image to start the competition off was a nice touch. It was somewhat frustrating that the preparation work put in by our network infrastructure team went to nothing, but the idea of each team having an independant network to work on was good.
My biggest lesson for the night was that google is a great tool for looking up the sources for md5 hashes. google: md5hashstring will often return the source string for the md5 hash.
My other discovery was the power of nc, and just how bad allowing shell code to be executed is (php exec combined with system and nc allows really nasty attacks — especially when the server is configured to allow them).
A combination of firefox plugins, and Java with HTTP Client were my primary attack tools this year. I was pretty happy with the setup, missing one or two plugins that some others on my team had, but overall it worked pretty well for me.
Overall it was a good night out. I'm shattered now, and off to bed. I might either update this or post a followup after getting some sleep.
Posted in Miscellaneous | 3 Comments »
November 26th, 2008
After spending a considerable amount of time looking at WebLogic and Vignette groups and sides on the net, I finally worked out the cause of a recent “No backend servers available” error message which was occuring when trying to access the vcm 7.5 AppConsole on a recently installed version of Vignette. In the end google didn’t know the answer to my question. It’s time to teach google a lesson.
So after getting quite frustrated with what was happening, being unable to find documentation, and finding that a reinstall wasn’t helping much, I pulled out a developers true friend, and started poking around with the runtime services console.
After playing around with the runtime services, I was able to work out that the default install of Vignette was setting up a cluster, containing the single server. The combination of suspending and restarting my vmware virtual machine was leading to the Weblogic server to not be started correctly, resulting in the “No backend servers available” error when trying to visit the AppConsole.
This problem was resolved by following two simple steps:
- being patient after a restart, allowing the system to do all its checks, (waiting about 5 minutes worked for me) and then
- simply starting the server using the runtime services console. clusters->[cluster name]-> control -> start/stop -> startup.
So if you end up in a situation where you are seeing “No backend servers available” with Vignette and WebLogic, don’t despair, it can be resolved by simply starting the servers in your cluster (even if it’s a cluster of 1) after patiently waiting (about 5 minutes) for the server to get into a stable state.
Thankfully google knows this too now.
Posted in Development, Java, Vignette, Weblogic | 2 Comments »
November 10th, 2008
I was recently reading Rands in Repose Article Saving Seconds, and took the challenge to how many keystrokes would it take for me to start writing an e-mail message.
My first go was a little bit variable.
It consisted of:
- a variable number of CMD-tabs to get to Mail.App
- CMD-N to create the message.
After reading the true statement that creating e-mail is a common enough task that it should deserve optimisation, I figured that I'd put in the effort to write the AppleScript to optimise it. So, with the combination of AppleScript, and Butler, I have ended up with:
- a single CMD-OPT-CTRL-M to start up Mail.App (I like using CMD-OPT-CTRL for all my Butler shortcuts).
The AppleScript is simply:
1
| application "Mail" |
1
| activate set newMessage to make new outgoing message with properties {visible:true} |
Posted in OS X Tools, Tips and Tricks | No Comments »
October 29th, 2008
Unblocking security to remove the annoying Open File – Security Warning dialog on Windows Vista is harder (much harder) than it should be. Especially when you have the file sitting in a secure location such as Program Files. There are so many different solutions out there when you ask Google. Let me add one more, because
If you are getting the dialog titled "Open File – Security Warning" with the bold text: "The publisher could not be verified. Are you sure you want to run this software?", it may be a bit convulted to get rid of the problem.
First you should try going to the executable file, right click on it to bring up the properties dialog, and click the unblock button.
If this doesn't work (say if the .exe is in a secure folder such as program files), don't give up. Try moving the file to a location that isn't secure, and then unblock it.
If that doesn't work, then run screaming, and buy a mac.
Posted in Windows | 1 Comment »
October 16th, 2008
Like many developers I spend a decent amount of time stopping and starting VMWare servers. Many of these are running Windows Server 2003. Win 2K3 has been designed as a server, and therefore has things like automatic tracking of reasons why the server was shutdown, which requires you to enter reasons into the dialog. As a server it also has pretty tight security around the Internet Explorer,making it even less usable than usual.
Fortunately (like always) the internet has the answers to these problems. The Microsoft Software Forum Network has a good series of articles titled “How to convert your Windows Server 2003… to a Workstation!“. These talk about a whole heap of different options on what to do, the most useful for making W2k3 run as a development server are:
- Disabling Internet Explorer Enhanced Security, and
- Disabling the Shutdown Event Tracker.
Following the simple steps in these articles will help save time when working with a Development Win 2k3 server.
Posted in Development | No Comments »
October 9th, 2008
After seeing Kristin’s blog make it to planet Ephox (welcome to the team Kristin), and her post on some great pictures from Houston, I had to share some of the ones I came across…
First of all The Boston Globe has some nice pictures, but this one really takes the cake.
Posted in Miscellaneous | No Comments »
September 10th, 2008
After spending too much time today waiting for WebSphere Portal to restart (due to a nasty bug causing Portal to crash when I was working with it) I've been revisiting how to improve the startup time.
The key step in doing this is to uninstall portlets that aren't needed. (see http://www-01.ibm.com/support/docview.wss?rs=899&uid=swg21213982&ca=lsall for a list). For the lazy developers (read me) there are a series of scripts that have been developed that do this. The article Installing and configuring WebSphere Portal V6.0 Servers for development with Rational Application Developer V7.0 and Rational Software Architect V7.0 includes these scripts in a zip file (search for StartupPerformanceConfig.zip in the article). The article also has some good suggestions for memory and jvm settings for your server.
I have known about the existence of this process for a little while, but it took me a little to find them just now (when tuning a development server). Google was have troubles pointing me to the right article, so I thought for my sake I'd try and help google find this in the future. (Even if google did find the right spots, the title of the developerworks article wouldn't have made me think that it had the nugget of information about IBM WebSphere Portal Startup performance).
Posted in Development, Java, WebSphere Portal | 3 Comments »
September 9th, 2008
I've been using ssh tunnels for a while now. I first encountered the technique when setting up my e-mail client when doing research at the ISI. The ISI are understandably quite security conscious, so a ssh tunnel was required to access my mail on my mac. I'll admit that I set this up initially withot really having a clue, simply following the directions of the guys at the ISI that knew what they were doing. I had a couple of ssh commands sitting in an e-mail (and more often than not in my history), which I would simply refer to and reuse.
More recently at Ephox I've been doing a fair bit of ssh tunneling. I've been doing this to access the UK demo server for E2, exposing the Websphere admin and wcm portal urls via the tunnels. This process has worked relatively well for a couple of weeks for me, but in my current stage I'm going through some pain as the transfer of my ear file from the local build to the remote server is taking between 15 and 20 minutes currently. To get around this for some rapid bug fixing work, I've entered the next stage of my ssh tunneling jujitsu
-
ssh to remote server
-
ssh back to local Brisbane office, setting up a tunnel into subversion server
-
then use subversion to check out the codebase.
After having performed this setup work, I can easily do my changes on my local box, update the remote server via svn, then build and deploy from the remote server. The build and deploy are currently too manual, and could use some automation, but I'm currently happy to wear the pain, and drop my deploy process from 20 minutes to under five.
My current next step is to automate the rest of the process. Assuming my recent foray into sysadmin land didn't completely kill the server, this should be done very soon.
Posted in Development, Java | 1 Comment »
September 4th, 2008
The IntelliJ Analyse stack trace is a good tool to add to your bag of tricks.
Simple copy a stack trace to the clipboard, then go to IntelliJ -> Analyze Menu -> Analyze Stack trace
You will see the option to normalize the stacktrace (which is worth choosing), after pressing ok, you will see the output put into the run menu, which will allow you to navigate to classes inside your current project.
This is a nice tool for debugging support stacktraces you may receive, or stack traces originating from a remote server.
Posted in IntelliJ, Java | No Comments »
September 2nd, 2008
As I seem to end up with the odd person dropping by the blog to look at IntelliJ keyboard Short cuts, I figured that it is probably worth pointing people towards the DZone IntelliJ Refcard which has a pretty good introduction to IntelliJ.
Posted in IntelliJ, Java | 3 Comments »