Archive

Archive for the ‘Uncategorized’ Category

Ten Commandments for Good Teaching

November 23rd, 2010 Comments off

By Yale Patt. Good for future instructors as well as good students.

My Ten Commandments for Good Teaching – Know the material – Want to teach – Genuinely respect your students and show it – Set the bar high; students will measure up – Emphasize understanding; de-emphasize memorization – Take responsibility for what is covered – Dont even try to cover the material – Encourage interruptions; dont be afraid to digress – Dont forget those three little words – Reserved for future use

via Ten Commandments for Good Teaching.

Categories: Uncategorized Tags:

Feds Plot Near Human Robot Docs, Farmers, Troops | News | Communications of the ACM

October 25th, 2010 Comments off

Feds Plot Near Human Robot Docs, Farmers, Troops

Maybe robot is the next big thing after five decades of IT revolution?

via Feds Plot Near Human Robot Docs, Farmers, Troops | News | Communications of the ACM (summary).

via WIRED (original post)

Categories: Uncategorized Tags:

20 Linux Server Hardening Security Tips

September 28th, 2010 Comments off

Recommended for SysAdmins:

20 Linux Server Hardening Security Tips.

Why recommend?  i) New & valuable information (nothing obvious), ii) Detailed instructions (mostly) for those who may not be familiar, iii) Written well (writing style does not appear to be a personal blog, but an article of some magazine).

Categories: Uncategorized Tags:

Inspiring Quote – Nothing is done

September 19th, 2010 Comments off

Nothings is done. Everything in the world remains to be done or done over.

The greatest picture is not yet painted, the greatest play isn’t written, the greatest poem is unsung. There isn’t in all the world a perfect railroad, nor a good government, nor a sound law. Physics, mathematics, and especially the most advanced and exact of the sciences, are being fundamentally revised. Chemistry is just becoming a science; psychology, economics, and sociology are awaiting a Darwin, whose work in turn awaiting an Einstein.

If the rah-rah boys in our colleges could be told this, they might not all be specialists in football, parties, and unearned degrees. They are not told it, however; they are told to learn what is known. This is nothing.

(Lincoln Steffens, 1931)
(quoted from How to Get Ideas by Jack Foster)

This was said about 80 years ago! Yet, it is still relevant today. This quote was something that I have wanted to tell my students if I ever get a chance to…

Categories: Uncategorized Tags:

Create a menu for private pages and posts in WordPress | ActiveCodeline

September 14th, 2010 Comments off

A feature to implement. We want to have member-only items in the top menu line. I think this is a fantastic idea. We’ll do this later..

—————————–

Create a menu for private pages and posts in WordPress

Posted by branko in General | 14 Comments

Recently I was working on a project that required a members menu on sidebar. Idea was to mark some pages and posts in WordPress as a private ones. All those marked as private are not to be accessible to all others, unregistered users, or even some registered that do not belong to some assigned role. WordPress default behavior for posts and pages is not to show up on menu if you are not registered user, which is good. However, another WordPress default behavior is to show only private posts on sidebar menu while logged in. Meaning that pages marked as private do not show up on the menu when logged in. This is not so good. I needed a solution that will list private pages on my menu as well. After few minutes of unsuccessful Google search, i decided to write my own solution. It really wasn’t that difficult. It all came down to two existing WordPress functions, current_user_can(‘some_role’) and $wpdb->get_results($some_query).

/*show pages and post mixed on menu
$menu_type = post ->show posts only
$menu_type = page ->show pages only

*/

if(current_user_can($user_role)) {

global $wpdb;
$html = null;

if($menu_type != 'all') {
$menu_query = "post_status='private' AND post_type='". $menu_type ."'";
}

else if($menu_type == 'all') {
$menu_query = "post_status='private'";
}

$query = "SELECT * FROM $wpdb->posts WHERE ". $menu_query;
$pages = $wpdb->get_results($query);

$html .= '

';

return $html;

}

else {

$html = '

We are sorry, but only '. $user_role .' role user can access this area

';
# return $html;
return false;
}
}
?>

via Create a menu for private pages and posts in WordPress | ActiveCodeline.

Categories: Uncategorized Tags:

Lab homepage open!

September 13th, 2010 1 comment

Thanks to many people who have contributed to this homepage, with ideas/suggestion or actual work.
Also feel free to give any new suggestions you may have about this homepage. 🙂

Categories: Uncategorized Tags:

Have you figured out how this WordPress works?

August 20th, 2010 Comments off

Honestly i’m a little confused. So I’m trying things out. My questions:

  • What is Category. Is it really different from tag?
  • Is there category view, which is different from menu view.
  • Is there any way to post static html page directly (not through a link)
Categories: Uncategorized Tags:

WordPress Installed!

August 19th, 2010 Comments off

Done it at last.

Contributors: Youngmoon Um (right) and Mooyoung Lee (left), both are majoring in ECE at UNIST.

Categories: Uncategorized Tags: