mixtape 2011.11.02

Mixtape 2.11.2011 - Strange Invitation by Coffeenap on Mixcloud

mixtape re-release 2009.04.30

Mixtape 30.4.2009 - Letting the days go by by Coffeenap on Mixcloud

oracle fun

We couldn’t connect via the listener to a database with the following error:

ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory

It was not the client environment, but it turned out that something is not ok with the listener.ora. (Although it didn’t report any errors at start-up.) The funny thing is that above 10g you don’t need to have a listener.ora file, so we deleted it, started again the listener, and voilà, clients can connect.

(y)

I am CGI … or what

audacious in ubuntu unity

should be easy as pie, just add this to your audacious.desktop

X-Ayatana-Desktop-Shortcuts=Play/Pause;Prev;Next;Stop;

[Play/Pause Shortcut Group]
Name=Play/Pause
Exec=audtool2 playback-playpause
OnlyShowIn=Unity

[Prev Shortcut Group]
Name=Prev
Exec=audtool2 playlist-reverse
OnlyShowIn=Unity

[Next Shortcut Group]
Name=Next
Exec=audtool2 playlist-advance
OnlyShowIn=Unity

[Stop Shortcut Group]
Name=Stop
Exec=audtool2 playback-stop
OnlyShowIn=Unity

be careful starting your audacious with the audacious2 command from other applications (like the terminal or the run field), if you start it with the audacious command unity will show it as a separate icon

Beginning of a beautiful friendship

My first PowerShell script. It retrieves the details of guest systems from a vSphere server.

$props = @('VMHostId', 'Id', 'MemoryMB', 'Name', 'Notes', 'UsedSpaceGB', 'PowerState')

"vmlist" | Out-File  -encoding utf8 vmlist.txt
 
$containers = Get-Cluster | sort

foreach($container in $containers){
	$hosts = Get-VM -Location $container.name 
	 foreach($hosta in $hosts){
		write-host $hosta.name   "cluster"  $container.name 
		$hosta.name + "  cluster  " +  $container.name  | out-file  -encoding utf8 -append vmlist.txt
		foreach($prop in $props){
				write-host $hosta.name   $prop  $hosta.$prop
				$hosta.name + "  " + $prop + "  " + $hosta.$prop | out-file -encoding utf8 -append vmlist.txt 
			}
		Get-Annotation $hosta.name | out-File  -encoding utf8 -append vmlist.txt
		}
}

Of course you’ll need the vSphere PowerCLI for this.

Cloud management for the poor.

Firefox private browsing window

One of the annoying things in Firefox is that private browsing is implemented as an exclusive option, ie. your running session is to be suspended while browsing private. There’s an extension to overcome this (thus enabling to keep your running session open), but we all know that too many Firefox extensions are evil, so here’s a simple way to accomplish the desired functionality (having your normal Firefox session open while having a private browsing window as well):

1. create an additional Firefox profile beside your default one

    firefox --no-remote -CreateProfile private

2. start Firefox privately with your new private profile

    firefox --no-remote -P private -private

That’s all!