Archive for September, 2010

I’ve been trying to suss this one for a while! Getting the watermark on the image was simple but getting it to position in the bottom right hand corner regardless of the image dimensions was a nightmare to crack!

1) Prepare your watermark
2) Open a sample image (we will apply the watermark to this image in order to record our action)
3) From the actions window select “New Action” (recording should begin automatically). Now do the following:
3.1) File -> Place: Select your watermark image and click Place
3.2) Set the new layers blending options (i chose blend mode: Linear Dodge, and opacity 70% – this seemed to work pretty well on dark and light images)
3.3a) Select -> All
3.3b) Layer -> Align Layers to Selection -> Bottom Edges
3.3c) Layer -> Align Layers to Selection -> Right Edges
4) Layer -> Flatten Image
5) Stop recording

That’s it! You can now apply your action to a single image or a batch from Bridge or File ->  Automate -> Batch within Photoshop.


FreeNAS / ZFS “Up & Running”

My “new fileserver” project had been on hold for a bit what with moving house etc but now i’m moved i thought i’d give it another go!

The “brick wall” i’d previously hit was my supermicro sata expansion cards (AOC-SAT2-MV8) were being picked up by the highpoint rocket raid driver (hptrr) when in fact they should be handled by a different driver. After some searching i found information suggesting a full FreeNAS install would allow me to tweak the /boot/defaults/loader.conf (adding hptrr_load=”NO”) to get around this problem.

Unfortunately- that didn’t work! Some more research suggested i needed to recompile the FreeNAS kernel without the hptrr driver, but this is really a bit beyond my expertise! So i kept searching!

Finally, i found another /boot/defaults/loader.conf suggestion (adding hw.hptrr.attach_generic=0) and voila- i was up and running!

So i added my disks (Disks|Management) and created my virtual device (Disks|ZFS|Pools|Virtual device), but when i add a pool and click apply i get an error: The changes could not be applied (error code 1). And in the log: cannot create zpool permission denied.

A final bit of googling reveals a command: sysctl -w kern.geom.debugflags=17 – finally i’m able to create my zpool :)

That’s all for now- i need to migrate some more of my network equipment before i can begin benchmarking etc.


Moving/Publishing Silverlight/WCF App

I’ve been moving house so not many updates recently but i’ll try and get back into the swing again! Today i spent far too much time trying to fix:

Uncaught Error: Unhandled Error in Silverlight Application [Async_ExceptionOccurred] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at adDEPOT_Invoice_Emailer.aIE.getInvoiceListCompletedEventArgs.get_Result() at adDEPOT_Invoice_Emailer.MainPage.adDEPOT_IE_getInvoiceListCompleted(Object sender, getInvoiceListCompletedEventArgs e) at adDEPOT_Invoice_Emailer.aIE.adDEPOT_IEClient.OngetInvoiceListCompleted(Object state)

I had this error a while back when i first tried to publish my silverlight / wcf app (see but this time I was sure i’d deployed the correct files!

1) I tested the wcf service using wcfStorm and found it to be working AOK- so figured it must be a problem with communication between the Silverlight App and the WCF service.
2) I tried accessing the Silverlight App from the browser on the server console (i.e. http://localhost) and everything worked AOK- so figured it must be the WCF service reference needing to be pointed to the server name instead of localhost. But how do we fix this without a recompile?!

It took me some time but i cracked it… The .xap file is actually a .zip archive! I renamed the file, opened it up and revealed my ServiceReferences.ClientConfig – here i changed the localhost references to the servername and voila- everything works!


%d bloggers like this: