I’ve been doing some work recently with C# querying AD for locked out users. One of the requirements for this was to only show users that can be altered by the user running the program.
Fortunately there is a computed AD attribute available for this to do the job, called allowedAttributesEffective. Here is some sample code to check a user for attributes you can write to:
I’m making more of an effort to post useful snippets of PowerShell and other stuff, like custom ADMX templates to either my GitHub Gists, or to a GitHub repository I’ve set up for miscellaneous bits and bobs.
As I’ve improved with PowerShell, it’s become easier to write generalised scripts, rather than highly targeted ones, so that I can solve similar problems, or share pieces of scripts around more easily.
If you’d like to learn more about Windows PowerShell check out PowerShell.org and the PowerScripting Podcast, they are nice friendly places that are easy to navigate and full to the brim with good content.
I haven’t been doing much on here in the way of computing lately, so to get back to it, here’s a WordPress plugin I wrote to get a better idea of how the plugin settings API works.
It’s very basic, all it does is change the ‘Howdy’ text in the toolbar (front and backend) to whatever you want by altering the toolbar by injecting the new greeting.
It was good fun to write, so here it is!
A few changes, some big (header images), some small (loads of small CSS positioning changes).
I expect changes will continue, as always, these things are works in progress for the most part as I see things that could be better.
Everything else has been pretty much left as it was, for the moment. I will be doing some recording this Sunday for the ‘Metal project’ and I’ll be getting back into the Rails development with a vengeance, ill probably work on some ideas I’ve had for some build up projects to get me used to various aspects of rails development.
I’ve made some more progress with Ruby on Rails and have also got some of my ideas down to flesh out the project I want to create with it. It should be a fairly easy project that I can build up over time and mould into something pretty cool.
In related news: Git is awesome. I prefer it over the alternatives. I never really used it until I started this RoR thing, but now I wouldn’t use anything else.
I’ve been learning some Ruby on Rails recently, it’s been pretty good fun. If you are looking to get started with some RoR, here’s some of the recources i used:
I’ve also got two books on the way to use as a reference and help me along:
It’s going pretty well and I’m enjoying it. I’ve got some ideas that prompted me to learn this, as I wanted to use something other than my normal web development process, which involved stacks of PHP. I do like PHP, but I do occasionally feel the need to learn some new stuff on occasion. I like the way Rails provides a nice framework for everything, this foray into new territory might improve my web design too!
I read this post the other day, it really resonated with me, as I’m starting to feel some of those symptoms (eyes, back, vitamin d). It’s a great post and definitely gave me some things to think about, especially with posture.
If you use a computer a lot, check it out. If you play guitar/bass an instrument a lot, check it out. If you sit down a lot… Check it out, I think you get the idea.