Category: Geekdom

Geekdom Reading Material

Facebook Privacy Made Easy

To manage your privacy on Facebook, you’ll need to navigate through 50 settings with more than 170 options. It’s a mess of options. There’s a bookmarklet you can run on your profile that will lock down a bunch of this for you.

After you adjust your Facebook settings, just make sure you don’t Facebook and drive.

Reading Material

Mother’s Day Reading Material

OK, there is nothing here related to Mother’s Day (except for maybe this Calvin and Hobbes classic or these psycho movie moms), but here’s wishing all you moms out there a great day of well-deserved spoiling.

Reading Material

Bend’s A Thriving iPad Market, Apparently

Quoting Fortune/CNN: According to Net Application’s May 1 report, the five U.S. market areas with the largest concentration of iPads — measured by its clients’ browser data — are as follows:

  1. San Francisco, Calif. (0.25% Internet share)
  2. Grand Junction, Colo. (0.23%)
  3. Santa Barbara, Calif. (0.19%)
  4. Honolulu, Hawaii (0.19%)
  5. Bend, Ore. (0.19%)

The author obviously knows nothing about the area and apparently forgot that you could get the iPad at places other than an Apple Store. They have the Internet over here in the sticks.

As Robert points out, however, the margin of error on the ±0.9%, which is nearly half of our percentage which is nearly five times our percentage (I mis-read the decimal point), so I wouldn’t take those numbers too seriously.

However, the best part of reading it is the comments. Many folks from the area have obviously found the story and are commenting on it (I saw it when it was posted, thanks to Barney, but didn’t have a chance to post/comment), and smacking the author around a bit for thinking we’re completely isolated morons out here. Robert and I share a favorite:

One came down on an ox cart from the Cascades with the Indian traders. i defrosted it by the campfire. i use it to kill rock chucks so there is food for dinner.

Let’s Party Like It’s 1996

The Geocities-izer will make any site “look like It was made by a 13 year-old In 1996.” I’m thinking about redesigning this site based on its suggestions (be sure to turn up the volume for full effect).

Steve Job Rips Up Flash

Rarely does the Apple founder come out and write something like this, but his open letter against Flash is well worth a read, and he makes a lot of valid points. I’d like to see Adobe’s response to this.

Personally, I see both sides of the argument, and while I typically don’t agree much with Jobs, I kind of have to on this. Flash is a resource hog in many cases, and holes in it (along with Acrobat Reader) have been the cause of many malware infections I’ve had to deal with. I can see why Apple doesn’t want it running on their phone.

More on the Gizmodo Stolen iPhone Police Raid

Facebook Like Buttons with Dynamic URLs in PHP and JavaScript

Facebook Like buttons are popping up all over the Web as a way for people to integrate a little bit of Facebook into their site. I thought it’d be a fun experiment to try on my site here, but I wanted a dynamic URL to pass. There are a ton of blogs out there for putting a Facebook “Like” button your pages using a dynamic URL with a bit of PHP trickery. Here’s the code I ended up using for this site:

<iframe src="https://www.facebook.com/plugins/like.php?href=<?php echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];?>&layout=button_count&show_faces=false&width=80&action=like&font=verdana&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:22px" allowTransparency="true"></iframe>

However, on another site I’m working on getting this implemented on, I don’t have access to the raw code, and can’t use server-side scripting or variables. So I came up with a JavaScript solution that I’m sharing here as I couldn’t find an equivalent version online:

<SCRIPT LANGUAGE="JavaScript">

document.write("<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href="+document.URL+"&layout=button_count&show_faces=false&width=80&action=like&font=verdana&colorscheme=light\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:80px; height:22px\" allowTransparency=\"true\"><\/iframe>");

</SCRIPT>

It’s probably not the cleanest/best code in the world (I would never consider myself a programmer) and there are probably 100 different ways of doing this, but this worked for me and hopefully that will help somebody out there on the InterWebs (and feel free to “Like” this post — the button’s on the permalinked URL — just to see if it works). You also might want to adjust the width of the frame and the code a bit. I personally just wanted a small button with just the number of likes (and am considering even getting rid of that, tightening it up a bit).

And for my future reference, these two tools were very useful in doing this — escaping the code for posting here, and creating that document.write statement.

Note: I’m now using the add-this.com service for this, as it provides me better tracking and features than my code above does, but I’m leaving this here for reference.