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

Attribute userAccountControl

Const ADS_UF_ACCOUNT_DISABLE = 2
Const ADS_UF_PASSWD_NOTREQD = 32
Const ADS_UF_DONT_EXPIRE_PASSWD = 65536

'Alle Accounts, die deaktiviert sind:
' => ADS_UF_ACCOUNT_DISABLE = 2
' => 
ldapFilter = "(userAccountControl:1.2.840.113556.1.4.803:=2)"

'Alle Accounts, die nicht deaktiviert sind:
' => ADS_UF_ACCOUNT_DISABLE = 2
' => 
ldapFilter = "(!(userAccountControl:1.2.840.113556.1.4.803:=2))"

'Alle Accounts, die kein Passwort benötigen ODER deren Passwort nie abläuft:
' => ADS_UF_PASSWD_NOTREQD And ADS_UF_DONT_EXPIRE_PASSWD = 32 + 65536 = 65568
' => 
ldapFilter = "(userAccountControl:1.2.840.113556.1.4.804:=65568)"

'Alle Accounts, die deaktiviert sind UND die kein Passwort benötigen:
' => ADS_UF_PASSWD_NOTREQD And ADS_UF_ACCOUNT_DISABLE = 32 + 2 = 34
' => 
ldapFilter = "(userAccountControl:1.2.840.113556.1.4.803:=34)"

mehr: http://www.selfadsi.de/ads-attributes/user-userAccountControl.htm

Posted in IT