Year: 2011

try this out with my site… grab the corner of the browser and minimize slowly. at a certain point, which should be 800px, you’ll notice a change. that’s the stylesheet being smart and enabling a few rules i put in place to either hide, resize, or re-arrange different elements.

even this image should resize and not cause horizontal sliders to appear:

ideally, the photo slides shouldn’t get cut off by the browser — they should at least resize until they are hidden from view. i need to work on that. that paper-like border i put around it kind of makes things difficult.

like i said, it’s a work in progress…

it’s neat tho — not needing to create an entirely separate template just for mobile browsers. why not just use what everyone sees and make changes to it accordingly! genius!

so I FINALLY got my domain name and hosting transfered over to our gorirra account at hostgator… it’s something I’ve been meaning to do, I just knew it meant I had to create a new theme

so here it is… much like jurassic park, there are a few glitches here and there but all will be ironed out soon enough

I wanted a theme where I could easily showcase my favorite pictures I’ve taken with my brand new sony nex-3. I came up with this sorta hybrid of a photo gallery/blog…

I may write a post of the backend php stuff I wrote in order to get this to work out the way it does

I’m also happy that the site is responsive… err… will be responsive. if you view it thru your phone, you’ll see the gallery frame a little too tall and a few other things… the hulu embed also breaks the container a bit

I’ve been meaning to learn responsive web design and I plan to implement stuff to this site… should be fun

btw, all the old posts are still here.. gotta love wordpress for that… so go and look around at all my ellipses and lazy writing

* mind the spelling and typos… posting from my phone

hello world

image

here are a bunch of frequently used code snippets i’ve used with many of my projects

* i really should know these by now… but what are ya gonna do?

linking to the homepage

    <a href="<?php echo get_option('home'); ?>">...</a>

    image references

      <img src="<?php bloginfo('stylesheet_directory'); ?>/images/FILE_NAME.jpg"
      alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" />

      dynamic widgets

        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('WIDGET_NAME') ) : ?>
        <?php endif; ?>

        then, in functions.php, add this:

        register_sidebar(array('name'=>'WIDGET_NAME',
        'before_widget' => '',
        'after_widget' => '',
        'before_title' => '<h3>',
        'after_title' => '</h3>',
        ));

        custom fields – mentioned before on my site, but just to have ’em all together

          <?php $VARIABLE_NAME=get_post_meta($post->ID, "CUSTOM_FIELD_NAME", true);
          if (get_post_meta($post->ID, "CUSTOM_FIELD_NAME", true)) {
          echo ("<img src=\"FULL_PATH_TO/$VARIABLE_NAME\" />");
          } ?>

          copyright

            &copy; <?php echo date('Y'); ?> - <?php bloginfo('name'); ?>

            i needed to keep a list of the wordpress plugins i use, either on my personal site or on the various other sites i’ve worked on

            required

            • all in one seo pack
            • google analyticator
            • google xml sitemaps
            • db cache reloaded fix
            • hyper cache

            dependent on project

            • anyvar
            • custom post limits
            • shadowbox js
            • wordpress related posts
            • contact form 7 (+really simple CAPTCHA)
            • audio player
            • my page order
            • widget entries

            i need to also put frequently-used code… nice segue, joe…

            this was an exceptionally hilarious episode: asian racism, michael j fox cracks, lord of the rings, and a spot-on street fighter reference!

            Posted in tv

            i’m really lovin’ the google web fonts service. i have a post about to go live on MoG soon… so i won’t gush much about it here.

            i’ve put the pacifico font as the headers and the ubuntu font as the overall body font — pretty sharp

            definitely gotta check out the show portlandia… it’s a sketch comedy show filmed entirely in portland, oregon. they like to make fun of the hipster, artsy type of people that inhabit pdx. plus, i’ve always liked fred armisen

            here are a few clips that made me crack up

            cell phone plans

            put a bird on it

            house sitting rules

            harajuku girls

            outdoor movies

            ordering the chicken


            * this is what it’s like to go to dinner with chaunce (ha!)

            simple technology

            Posted in tv

            this really only applies if you go to starbucks (no matter how often)

            so i’ve been meaning to write this for a while now. i was going to write it on MoG, but i think i’d sound like a prick, telling people what to do… plus i don’t want to care about punctuation and grammar

            anyway, there are several reasons to get a starbucks card account

            • consolidate all your cards into one – this is huge, especially after the holidays or a birthday
            • perks – free drink on your birthday, free syrups, free refills on brewed coffee/tea, free beverage with whole bean purchase, and free drink every 15 stars (gold level)
            • cool guy status – you’ll get a gold card (after 30 stars) OR you can pay for your order with the iPhone or Android app (pay with the app and people will think you’re from the future)

            * there used to be a roundabout way to get free wifi (for 2 hours) at starbucks by reloading a gift card over and over… but they now offer free wifi (no time limit) in their coffeehouses

            as greg always says, “everyone’s going cashless”

            i can’t really see any cons in setting up a starbucks card account… are there any? if there were, the benefits would definitely outweight the negatives