Entries tagged with “Programming”.


These are exciting times. I would love to live long enough to see a practical application of some life-based computer project. I think that my first computer was a $1000 machine I bought in 1976 which used a television as a monitor and cassette tape player as a hard disk and I am astounded that I may miss a bacteria based computer. I’m not spoiled. No sir!
A team of US scientists have engineered bacteria that could solve complex mathematical problems faster than anything made from silicon.
Bacterial computers can crack mathematical problems | Science | guardian.co.uk
John Kolbert wrote a function to to get a list (array) of users by their role name. For example, he shows how to get a list of editors. I would only change the function slightly to accommodate my own programming style (and because I can't leave well enough alone).
PHP:
  1. function get_users_with_role ($role) {
  2.  
  3.     // gets all users with specified role
  4.     $wp_user_search = new WP_User_Search( '', '', $role);
  5.  
  6.     return $wp_user_search->get_results();
  7.  
  8. }

As John notes, remember this is for use in the admin panels. Thanks, John.
I have a old client who wants to add a link directory to his web pages. I have been suggesting WordPress as his basic web site CMS and I found the following WordPress Link Directory Which should make administering his web site a lot easier. The Plugin author seems very responsive to adding features and fixing bugs. I may be able to squeak by without having to hack my own version. I'll post a comment here with the url of the new directory and my success (or failure) with the Plugin.