Fix Windows 10 Windows Media Player

Album Info Search fails with Website not found

Start regedit.exe
Navigate to “Computer\HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\TunerConfig”
Look for PREFERREDMETADATAPROVIDER – it should have a value “pmpMusicMatch”
Edit the setting PREFERREDMETADATAPROVIDER, and clear the value so you have a blank value
Save / exit regedit.exe
Restart Windows Media Player, you should be restored back to fai.music.metaservices.microsoft.com

LdapDTO Helper

$ucattribute = $entry[$attribute][0];
} else {
for ($j = 0; $j < $entry[$attribute][‘count’]; $j++) { $retEntry[$attribute][] = $entry[$attribute][$j]; } $this->$ucattribute = $retEntry[$attribute];
}
}
}
// undefined attributes are requested here
public function __get($name) {
return null;
}
}

Posted in IT

Build oci for PHP

mount DVD iso

vi /etc/yum.repos.d/CentOS-Media.repo

 add file:///media/xxx   corresponding to the DVD media

download php source

yum –enablerepo=c6-media install libxml-devel

yum –enablerepo=c6-media install httpd-devel

extract php sources

./confgure

make
make test
make install

Download Oracle Client & SDK

vi /etc/ld.so.conf.d/oracle-11g-64.conf
/opt/app/oracle/product/11.2.0

export ORACLE_HOME=/opt/app/oracle/product/11.2.0
ln -s libclntsh.so.11.1 libclntsh.so

/usr/sbin/setenforce 0     ??

export CFLAGS=-m64
export CPPFLAGS=-m64
export CCASFLAGS=-m64

cd php sources
cd ext
cd oci8
phpize
./configure –with-oci8=instantclient,/opt/app/oracle/product/11.2.0,11.2.0.3.0
make
ls modules

cd php sources
cd ext
cd pdo_oci
phpize
./configure –with-pdo-oci=shared,instantclient,/opt/app/oracle/product/11.2.0,11.2.0.3.0
make
ls modules

Posted in IT

Siedler 3 Gold Edition 1.60 Windows 10

Siedler 3 liess sich eigentlich ohne Probleme installieren (mit Kompatibilitätsmodus für  Windows 95 und Admin-Rechten für die Setup und Installer…
Allerdings zeigte sich beim Hauptfenster oben ein dicker weisser oder schwarzer Rand. Habe die S3.exe mal analysiert und die Stelle gefunden, wo der Fenster-Stil abgelegt ist.

Um den schwarzen Rand in Windows 10 wegzubekommen, kann man die Hex Zeichen 00 00 C8 90 ersetzen mit 00 00 00 94.

Gepatchte s3.exe als ZIP

Posted in IT

Praktische queryString Funktionen


else {
// nothing to remove, carry on.
urlParams = (null == queryString) ? “” : “?” + queryString;
}
urlParams+= urlParams.length()==0 ? “?” : “&”; urlParams+= “sso=false”;

Posted in IT

d3: keep first option in select

html:

<select id=”userMenu”><option value=””>– Please select –</option></select>

js:

d3.select(“select#userMenu”)
.on(‘change’, function() {
updateCheckboxes();
})
.selectAll(“option:not(:first-child)”)
.data(data)
.enter()
.append(“option”)
.attr(“value”, function(d) {return d.id; } )
.html( function(d) {return d.firstName + ‘ ‘ + d.lastName + ‘(‘ + d.id + ‘)’; } );

Posted in IT

Oracle 11g on localhost for dev

In case you cannot access console due to ssl_error_weak_server_cert_key,
you could switch it to unsecure:

set ORACLE_UNQNAME=orcl
set ORACLE_HOSTNAME=localhost
emctl unsecure dbconsole

 

Posted in IT