Use Your MacBook Pro with an External Monitor Without Sleeping

So, in a similar vein as to what pushed me to write my Applescript to resize windows, I’ve been looking at what to do about going from using the LCD on the MacBook pro to an external monitor.  Now, everyone knows that in order to use an external display, you have to connect the display adapter while the notebook is closed, plug in an external keyboard (and your power supply), and press a button, and boom, you’ve got external display action at your monitor’s native resolution.  But what if you don’t want to wait the ten seconds or so it takes to go from awake to asleep?  Messing with it, I was happy to note that the following procedure seems to work:

  1. Plug in the external display, your keyboard/mouse, your power supply, etc—with your notebook open.  The external display will mirror your notebook’s LCD, at its resolution (if supported by the display.  If it isn’t, you’ll get the highest common denominator, I think).
  2. Close your notebook cover so the display turns off.
  3. Immediately open the notebook cover, then close it just as soon, then push a button on your keyboard.
  4. Presto! Your MacBook Pro should see the display and change the resolution how you want it.

I’ve only tested this on my machine, so let me know in the comments if it works/doesn’t work or if you have a better way.

How to Move Your Blog from WordPress.com to DreamHost (Or Other Hosting Companies)

WordPress.com is, don’t get me wrong, a great service.  They offer no-hassle blog hosting for free using WordPress, my blogging platform of choice.  At a certain point in a young blogger’s life, however, it’s time to move on to using WordPress’ more advanced features; uploading new themes, hand-editing theme components, and maybe even throwing Google AdSense on there.  WordPress is always free from WordPress.org, is easy to set up, and very easy to customize and administer.  So, with a little help from blog-well, I was ready to go.  This blog post is a derivation of blog-well’s work (click that link over there to see it), but I’ll be focusing on DreamHost where they focused on GoDaddy.

  1. Step 1: Obtain Hosting.
    Obviously the first step here is to sign up for a hosting account.  DreamHost’s process is simple enough that I won’t bore you with instructions.
  2. Step 2: Tell DNS to point to WordPress.com
    Now we have to tell your blog’s DNS servers to point to WordPress.com, where your blog is currently. This step might seem counterintuitive—after all, we’re trying to point WordPress.com to your blog, not the other way around—but this is how you let WordPress know that you’re in control of your domain. Assuming that you want your blog at blog.yourdomain.com, you need to make a “CNAME” entry as follows:

    blog 14400 IN CNAME yourblog.wordpress.com

    Once that change propagates (which can take anywhere from a few minutes to a few hours, and you may need to reboot your computer), visitors to blog.yourdomain.com will be redirected to yourblog.wordpress.com. For DreamHost, follow these pictures:

    The first in the dreamhost instructions

  3. Step 3: Sign Up for WordPress.com Domain Forwarding
    This part, unfortunately, costs a little bit of money—$10 per year. When you’re logged in to WordPress.com and at your dashboard, click “Upgrades” and then “Domains.” Enter your new domain in the field once you’ve paid for 10 credits and you’ll see it appear on the domain screen.
  4. Step 4: Tell WordPress.com to Point to Your Domain
  5. In the “Domains” view on your WordPress.com dashboard, click “put blog here” next to your domain. This tells WordPress to take all traffic sent to yourblog.wordpress.com to blog.yourdomain.com or whatever you want.  The end result should look like this:

    Instructions for blog redirection

  6. Step 5: Re-do Your Custom Domain
    Go into your domain’s DNS settings again and delete the CNAME entry you made earlier. Now you’re all set to go! If you’re using DreamHost, you can do the easy install of WordPress to have it automatically updated to the latest version and the database automatically created for you.

Relaunch

I’ve moved this blog over to Dreamhost, which means a couple of things: first, I’m managing Your my own WordPress installation now, which is pretty cool.  Don’t get me Proyectos wrong, WordPress.com is great—and I’m still technically using it to forward traffic to my old address here—but managing your own Bali server is pretty cool.  I can install whatever themes I want and edit Spanish them as I see fit, without paying money to do so.  Sure, I’m Updated: paying money for hosting, the cheap nfl jerseys domain name, and the domain name forwarding cheap nba jerseys from WordPress.com, but at least now the blog is here on cheap jerseys my own terms.

Moving New the blog here was a long and arduous process, one that required patience on my part and that Veren gave me a crash course in DNS for web servers.  I was Control able to do it mostly off of a post at blog-well.com, and since the attached PDF has rights to edit it built in, I think I’ll cheap nfl jerseys work on some instructions for this process to help others along.  Keep your eyes peeled!

Updated: Resizer AppleScript

After looking at my AppleScript to resize windows, I’ve decided to make a few updates.  Instead of manually doing the math for each resolution, I’ve created a new variable, desired_width, which is exactly what it sounds like: how wide you want your windows to be.  I’ve also made the other variable cheap MLB jerseys names more human-friendly: _nl and _nr are now left_bound and right_bound, respectively, for example.  After adding iTunes to my script, cheap NFL jerseys I noticed that it was being resized behind the menubar, so instead of setting da the upper bound for all windows at 0, I’ve defined the variable top_bound, which defaults to 22 to account for the height of the menu bar.  If you find that this setting is incorrect (e.g. if you’ve enabled some accessibility settings that change font sizes and therefore the size of the menu bar) you may need to change ask it; I haven’t found a way to get the height of cheap jerseys the menu bar in AppleScript yet—so far I’ve only found it in year Java—so if anyone knows feel free to leave a comment.  Finally, after seeing this post by Jamie Matthews, I added some functionality to cheap nfl jerseys automatically set bottom_bound to Fleur the height of the Dock.

After all of these updates, the script now takes a desired width and moves applications that support AppleScript such that they range horizontally to your desired width, centered on the screen, and stretching from the bottom of the menu bar to the top of the Dock.  In the cheap MLB jerseys future, I’d like to make a separate application, perhaps AppleScript-based, that will allow for user Your customization of how Constitutional the windows are arranged, allow for custom application settings, and perhaps Spaces integration.