youtube is smrt

Last night I was browsing youtube and attempted to use my favorite feature “Sort By: Number of Views.” I sat there confused for at least 30 seconds wondering what was wrong. Turns out they ninja’d my sorting feature and replaced it with “Uploaded: Today | This week | This month | All time” The problem is that clicking on those only groups them by upload time, it doesn’t sort anything.

To make sure I wasn’t crazy I emailed them and got this in response.

Hi there,
Thanks for your email. Users can no longer sort by the View Count, Rating, and Most Recent categories. The search filters are now by upload time (today | this week | this month | all time) and the default sort is by relevancy.

However please note that user feedback is very important to us, and your comments and ideas will be used to improve the YouTube community.
Regards,
Iti
The YouTube Team

Thanks youtube, you got rid of the ONLY feature I used and totally removed that functionality. GIVE BACK SORT!

Time Management

While working today I listened to a lecture by Randy Pausch about Time Management, he also did The Last Lecture. Randy is a great speaker and I hope a few more of these pop up on the web soon.

All my coworkers, or all workers, should watch this video, so many of the things that frustrate me on a daily bases are covered in the video. The spot on the “right” way to empower people, part of delegating, was especially relevant.

Hilarity brought to you by hippies

Snagged this link from IRC earlier: http://www.msnbc.msn.com/id/23258714/

Mark Vargas shows the solar panels on his home that get blocked by his neighbors trees in Santa Clara, Calif., on Friday. Vargas asked prosecutors to press charges against his neighbors because their redwoods blocked sunlight to his backyard solar panels.

Hopefully he tried talking to his neighbors first, but seriously what a douche bag.

Coworking in Lacey Olympia

WFB is opening a Coworking facility downstairs: location. It’s been a fun project which I’ve watched from initial design to near completion. I didn’t have much input in the beginning of the project but I get to help decide what kind of neat stuff goes in afterwards. Rolling LCD TVs to replace Projectors, white boards, comfy chairs, and the most fun part for me, our wireless networking equipment. As per usual I don’t have a budget and so I try to accomplish the amazing with no money.

I was considering using m0n0wall but it’s more suited as firewall/router. ZoneCD from PublicIP looks pretty simple and hopefully effective. Time/download limits, content filtering based on mime types, traffic shaping, sounds too good to be true. We’ll see how cool it really is.

Lacey Olympia Coworking

Drupal 6.0 Release

I’ve been using Drupal extensively for the past 9 months. The speed at which these guys crank out updates is amazing. Their security mailing list is also top notch, there’s usually a constant stream of alerts but I only remember 1 or 2 core (Drupal default) exploits since I signed up. Now I wait and hope that the majority of the modules running wsfb.com get updated quickly.

http://drupal.org/drupal-6.0

Complete and total lack of art skills

Trying to stay interested in themeing is hard when you have no eye for design or colors.

Drupal file size upload problems

Last month I asked our host to increase “upload_max_filesize” and “post_max_size” to 10MB. They updated the settings which I confirmed in phpinfo() but I continued to see this error:

drupal_upload_error.JPG

So I played with .htaccess files for a while, and gave up for about a week till I had some extra time today to spend with Drupal.
After some serious searching I find “file upload size silently cut in half”.

drupal/inclues/file.inc

/**
* Determine the maximum file upload size by querying the PHP settings.
*
* @return
* A file size limit in bytes based on the PHP upload_max_filesize and post_max_size
*/
function file_upload_max_size() {
static $max_size = -1;
if ($max_size < 0) {
$upload_max = parse_size(ini_get(‘upload_max_filesize’));

// sanity check- a single upload should not be more than 50% the size limit of the total post
$post_max = parse_size(ini_get(‘post_max_size’)) / 2;

$max_size = ($upload_max < $post_max) ? $upload_max : $post_max;
}
return $max_size;
}

WHAT?! Remove the ” / 2″ and all is fixed.

Drupal https login redirect

I launched the WFB Drupal site without a secure certificate on it so all our staff have the non secure “user/login” page bookmarked. Here’s a quick fix to get the login page redirected to https.

  • Site Building > Blocks > Add Block
  • Give it a meaningful description, and change the Input Format to “PHP Code” then paste the following:

<?
if ($_SERVER["SERVER_PORT"] != 443)
{
header(‘Location: https://www.yoursite.com/user/login’);
}
?>

  • Select “Users cannot control whether or not they see this block.”
  • Select “Show on only the listed pages.” and put in “user/login” (without the quotes) in the Pages: section.

This approach also works for creating custom text on any Drupal generated pages, all you need to do is create a new block and paste in your HTML following the directions above.

Changing drupal content type

I was optimistic about the amount of news that was going to be posted on the WFB website so I setup an extra content type specifically for news that was important enough to go on the site but not front-page worthy. Turned out that for the most part this content was overlapping with the front page posts so I decided to delete it.

Instead of recreating all the stories I checked out the DB to see if I could do it manually without too much going wrong.

UPDATE `node`
SET `type` = “story”
WHERE `type` = “latestnews”

Run that script and all thats left is to delete the Content Type and then remove any Vocabulary associated with it.

Christmas Vacation

Shane came up from San Diego for a week (12-20 to 12-27), he was cold a lot but didn’t complain. We hit up Pikes Place Market, Seattle Museum of Modern Art, and the Imax for a late showing of “I am Legend” all in one day. Saturday we did the nerd thing and I bought myself a new LCD TV.
New LCD
Sunday we made the trip to Forks, we stopped at Queets for about an hour to get a look at the river and hopefully stretch our legs a little, after getting about 1/2 way to the end of the road I decided to turn around, my Focus isn’t much for dirt/gravel roads. It rained almost the whole way then stopped just when we decided to check out Ruby beach. It was overcast but we hit it at the perfect time, tide was way out and we still had about 1 hour of daylight.

Then 3 days of unsuccessful fishing, the rivers were hosed and most of the guys we saw were plunking while they sat in their trucks with the heaters on full blast fighting off sleep. We hit every river except the Bogachiel, I wish we had one more day so we could of given it a shot, it’s always the last to clear up.

Finally we left Forks about 10PM Wednesday night which was a good thing cause it snowed for ~70% of our trip back to Olympia. Most of the drive between Forks and Aberdeen was done at 40 MPH with multiple inches of untouched snow on the ground. The front wheel drive Focus finally showed it’s strength and we made the trip with minimal sliding. Shane had a good time since it was snowing super hard and at times was difficult to see, he said he’d never been in a snowstorm like that before. By the time I hit Olympia and I5 my mind was dragging and my eyes were droopy, took an extra hour to make the trip.

Overall it was a good time, just wish I’d been able to hook up Shane with a nice steelhead.