Websphere 6.1, password recovery

With Websphere, you can store passwords in config files in a crypted form. The  encryption algorithm used is XOR, with a secret key. You can use the same java classes Wepshere internally use to manually crypt/decrypt a text string. Those classes are in ws_runtime.jar file, which you can find in Websphere installation path: Move to the folder where ws_runtime.jar…

Powershell, how to get parameters from a file

I wrote the following snippet when a friend asked me some help: he needed to execute a command several times, getting its parameters from a CSV (comma-separated values) file. the parameters.csv file contains the following informations: IP address username password Here’s the script: $file = Get-Content "C:\parameters.csv"   foreach($row in $file) {   $parameters = $row.Split(","); $ipaddress = $parameters[0]; $username…

VMWare, Linux text terminals

In every Linux distro, if you’re using the grapical interface and you need to switch to text terminal, you have to press  CTRL+ALT+Fx  x usually from 1 to 6); while to switch back to the GUI the shortcut sequence is CTRL+ALT+F7. If you installed Linux in a virtual machine with VMWare as hypervisor, you probably noticed that the shortcut…

XenApp 6, disconnected sessions

If you open Sessions tab in XenApp 6, you’ll probably find sessions in disconnected state for long time; this usually happens if users don’t close their applications and logoff from Citrix: Two user policies exists to change disconnected session timers, but those policies apply only to XenDesktop: If you use XenApp, you need to change a windows registry key on all the…

XenApp 6, desktop unavailable

If you installed XenApp 6, you probably noticed that you’re not allowed to connect via remote desktop to farm’s servers with non administrative users. The error message is: the desktop you’re trying to open is currently unavailable The cause is a default policy for all the users. Open Delivery Services Console and choose Policies node. Change to User tab, choose Unfiltered policy and click Edit… Choose All Settings and, with the…

Inkscape, how to color markers

Inkscape is a very good opensource software for vector drawing and a portable version is available too. If you draw a line, you can add markers (arrows…) to it: But when you change line color, markers keep black one; you can’t indeed change their color using stroke and fill commands… Choose the line and, from Extensions menu, click on Modify Path – Color Markers to Match…