They say you learn something new every day.

Archive for April, 2012

Exchanging Ideas (30/04/2012)

I wrote a while back about the Exchange System Manager, and while it was useful, it turns out that access rights to mailboxes are defined in the msExchMailboxSecurityDescriptor attribute in the AD. The problem is, rather than listing usernames, it lists ObjectIDs.

I’ve found a nifty way of pulling them out though:

DistinguishedName  = “DN of Object” 

set ObjUser = GetObject(“LDAP://” & DistinguishedName)
Set objsd = objUser.Get(“msExchMailboxSecurityDescriptor”)
Set dacl = objsd.DiscretionaryAcl

For Each ace In dacl

  wscript.echo ace.Trustee 

NEXT 

I’ve put this together in a script to report the access rights for lists of mail accounts. It’s one of those things I’ve been thinking about for a while, but finally got the chance to put it all together today.

How to Move Mountains (29/04/2012)

I’ve been reading How Would you Move Mount Fiji, not because I want to work at Microsoft or have any job interviews coming up, but just because I find it quite interesting, and like the puzzles there.

I find the concept behind puzzle questions quite interesting. On one level, of course, they’re stupid. A lot of them depend on whether you’ve heard them before. They’re so hard, and you’re asked so few of them that your responses aren’t representative of your intelligence.

Of course, intelligence and “IQ” are difficult concepts. I don’t think your IQ really tells you much – beyond saying, “this is a clever person” or “this is a stupid person”. And you can probably tell that from talking to them. It’s not really clear what intelligence is either.

However, there are some things to be learnt from puzzles, such as challenging assumptions, ways of thinking and putting in effort. And really, these are skills that you need in your every day life. 

Fixing stuff (28/04/2012)

I had to go home this weekend to fix my parents computer. (First line technical support you see). As it turned out the graphics card had blown.

I’m always a bit more nervous of hardware but I took it out and used the onboard graphics card until I can get a new one. I had a real faff finding the drivers and sorting it all and it reminded me again how difficult computers are. They really are. They’re basically too difficult for humans to use.

Simplicity and ease of use is really something to strive for above all else.

Thinking past (27/04/2012)

I’m reading a book about the puzzle questions they ask in Microsoft interviews.

Interestingly one of the ways of tackling them and of solving problems is by “thinking past” unknowns and working through the possibilities. It’s a good tip I think.

Updating live (26/04/2012)

I’ve struggled in the past with having hta files or documents that update in real time.

The way to do it is using the setTimeOut function.

id = setTimeout(“RunFunction()”,1000) 

This runs “RunFunction()” every second, so if you nest this you can make something keep updating.

Vertical Scroll Bars (25/04/2012)

I had to build a little app today for a ridiculous waste of time… I mean, a business fair that we’re hosting.  Let’s not go into the details.

For quick application development, it’s very easy to use javascript, HTML, CSS or VBscript and run it in Internet Explorer. I opted for vbscript because I needed to contact an external access database and I can’t find a way of doing that with javascript.

It works fine, but when displayed fullscreen (pressing F11 in Internet Explorer – which I had to use because of the VBscript), there’s a pesky vertical scroll bar.

It turns out you can get rid of that with one simple line of code:

  <body style=”overflow:auto”> 

One to remember.

Reliability Monitor (24/04/2012)

Courtesy of Raymond.cc I discovered the Windows 7 Reliability Monitor today.

It’s a really great program and makes spotting problems so easy:

 

Tag Cloud