how-to

Introducing Jekyll

In the last few months, I’ve been working with Jekyll, a light-weight, Ruby-based, and Markdown-friendly framework for creating static blogs and sites right in your favorite text editor, so I wrote a guest post, “Introducing Jekyll” on the new UW-Madison Devblog. Check it out!

Be Sociable, Share!

    How to create page breadcrumbs in WordPress

    Someone at the WordPress StackExchange site was wondering how you could display a list of a page’s ancestors. Pretty much that is the idea of breadcrumbs, so I answered his question using the handy get_ancestors() function.

    Be Sociable, Share!

      Hadoop, MapReduce and processing large Twitter datasets for fun and profit

      I’m back in school for my PhD, and getting ready to conduct research on a HUGE Twitter dataset on the US 2012 presidential election collected by the Social Media and Democracy research team at UW-Madison. We’ve been brushing up on Python, Hadoop and MapReduce. As part of our training, Alex Hanna, a sociology PhD student at UW-Madison, put together an excellent series of workshops on Twitter (or, as he’s aptly named them, “Tworkshops”) to get us started. Check them out!

      Be Sociable, Share!

        WordPress: How to display posts within a page

        We have all been there: for some reason, you really need to display a list of posts within a page in WordPress (and the list needs to be paginated, of course). Fortunately, there’s an easy way to do it.

        Be Sociable, Share!

          WordPress: how to automatically convert custom fields to post tags

          Convert your post’s custom fields into tags automatically in WordPress with this nifty script!!!

          Be Sociable, Share!

            How to add the excerpt box for pages in WordPress

            Here’s how to enable the “excerpt” box for your WordPress pages.

            Be Sociable, Share!

              My response to Stackoverflow’s ““invalid label” Firebug error with jQuery getJSON” question

              “Invalid label” Firebug error with jQuery getJSON Be Sociable, Share! Tweet

              Be Sociable, Share!

                WordPress: How to display all posts in one page

                Although displaying all your latest posts in Wordpress may seem like a no-brainer (after all, the default home page already displays your “Latest Posts”), doing so is kind of tricky if you are trying to do it in on a custom page.

                Here’s a little code that can help you accomplish that.

                Be Sociable, Share!

                  How to automatically add tags to WordPress posts

                  In WordPress, if you need to automatically add tags to a post via a PHP script, the best way to do it is via the wp_set_object_terms() function. There is no handy “wp_insert_tag()” function, or something like that, so look no further.

                  Be Sociable, Share!

                    How to center divs within a page with CSS

                    Sometimes you may want to center a div element within a page, whether vertically, horizontally, or both (dead center). Here’s how you can accomplish all of that using CSS.

                    Be Sociable, Share!

                      How to load CSS stylesheets dynamically with jQuery

                      Sometimes you may want to load a CSS stylesheet dynamically after your HTML page has loaded and certain conditions are met (for example, if an element with a specific class exists in the DOM). jQuery can help you accomplish that with a few lines of code, helping you save some bandwidth and make your page load faster.

                      Be Sociable, Share!