Annotated: Creative Coding with C++

Note: I changed this title to what it should be “Creative Coding with C++” but the original source was (and still is) “Creating Coding with C++”

https://channel9.msdn.com/Events/CPP/C-PP-Con-2014/001-Creating-Coding-with-CPP

cppcon the c++ conference: http://www.cppcon.org

Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2014

Cinder site: http://libcinder.org/

Cinder on GitHub: https://github.com/cinder

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com

Mentioned in the presentation:

20150917 Superlogout Page Source

 

How to get the Author Object outside “The Loop” in WordPress

I needed to get the Author Username (or ‘user_login’ parameter in the WordPress code) in the header for a project.  Other times I’ve seen this done is by using the get_author() function, but that requires being in “The Loop“.  I found a post that explained how to do it by first getting the post ID, then from that the post author ID, and finally the user login using the author meta function.

First, we get post_id object because it contains post_author attribute, which contains the author’s ID:

 

Then retrieve the author’s ID:

 

Finally, using the author’s user ID we can get any of the other parameters associated with that author.  In this case the ‘user_login’:

For a full list of Author Meta Parameters click here

H/T: http://markojakic.net/get-author-object-outside-the-loop-in-wordpress