Archive for August, 2006
Attention Mac users…
I’m seeking a little help here. I use a dual monitor setup with my MacBook Pro when I’m at work (the laptop screen is one of the two screens). Anyway, when I unhook the DVI cable, sometimes application windows don’t rearrange themselves on the main laptop screen. Instead, they’re somewhere, way the hell out of the visible area.
I can see the windows if I use Exposé, but I can’t move them back to where they’d be visible once leaving Exposé. Anybody have any suggestions on how to get those windows moved back, at least somewhere so I can grab hold of them with the mouse cursor?
1 comment August 31, 2006
Zend Developer Zone interviews Andrei
The Zend Developer Zone recently interviewed Andrei Zmievski. It’s a good interview discussing some of the Unicode work Andrei is doing for PHP 6. I’m really looking forward to seeing Unicode built right into the language. After writing Java webapps for more than 5 years, Unicode was something I took for granted. When you leave Java and move to other languages and toolkits, Unicode (in most cases) isn’t something that’s provided for free.
Unicode becomes especially important for applications like webmail. Even if you don’t want to localize for users in other countries, you have to be able to display an email message written in Japanese sent to a user in the United States. That sounds like it should be easy, but it isn’t always. Even more crucial, what happens when you have a long running conversation with your Japanese friend, your Russian friend and your Chinese friend? Now you’ve got three languages to support. That’s something you just don’t pull off without Unicode (well, you can, but not without pain and suffering).
Andrei also discusses the PHP hivemind employed by Yahoo!. Seriously, if you need help with PHP at Yahoo! and you can’t find someone who can help…then you haven’t looked very hard. There’s a link to Michael Radwin’s presentation on why Yahoo! settled on PHP for building webapps.
August 30, 2006
Remote Desktop on an Intel Mac
If you’re like me, you sometimes need to return to your Windows PC to do something. In my case, I prefer not having to monkey around with a KVM switch, so I like using remote redisplay whenever possible. When I was still using a PC, I’d use the built-in Microsoft Remote Desktop client to access my other machines. Now that I’m on a Mac, I’ve been trying to find something similar.
So, doing a search, I found out that Microsoft actually builds an RDP client for MacOS. Unfortunately for Intel Mac users, it’s not a Universal Binary. I gave it a try under Rosetta and it was just awful. It was so slow, I’d click on the “Start” button and wait for upwards of 10 seconds before seeing any response. It was so awful I decided to give VNC a try. VNC was equally bad. I’m not sure if I was using a bad client, a bad server or both. But it was just as slow and unresponsive as the PowerPC RDP binary.
As a last resort, I turned to rdesktop. I’ve used it once or twice before from my BSD machine, but I’d never seriously given it a chance. I noticed that Fink happens to have distributions of rdesktop, so I downloaded Fink and fired away. You’ll have to add the test branch to your Fink setup. It doesn’t appear that rdesktop has made it into stable yet. There also doesn’t appear to be a binary distribution available for it yet, so you’re going to have to install from source instead. If you haven’t already installed software using Fink, that could take a while as you build all of the dependencies as well (anybody know if there’s a way to tell Fink, “install binaries for whatever you have, otherwise install from source”?).
I initially ran using the Xorg X11 distribution available through Fink. I was thoroughly unimpressed with it’s window management, so I’ve since removed that and installed the Apple X11 that comes with the OS installation CDs. It just feels better. Using Xorg felt like I was grinding gears all the time.
Using rdesktop over a tunneled SSH connection is great. Feels just as responsive as any time I’ve used the Windows client on a PC. My only difficulty with it is making sure I remember which keys on the Mac keyboard map to which keys on a PC keyboard.
As an aside, while Fink isn’t perfect, it is nice being able to use common UNIX utilities on my Mac (ones that aren’t already provided by MacOS, I should say). Recently I’ve also gotten ethereal and kcachegrind from Fink, both of which work like a charm.
Update: According to, well, everybody in my comments…it’s just me. Lots of people are reporting that the MS client runs great on their dual core MacBook Pros. I wonder why it sucked so much for me. Maybe I caught the corporate wireless on a bad day. Or maybe I caught the SSH servers on a bad day. Who knows. Regardless, rdesktop is working great for me.
40 comments August 28, 2006
Just how open is Yahoo!?
We’re so open, we’re going to share Hack Day with the masses. I’m signing up to help out with the event and maybe I’ll see if I can squeeze in a hack while I’m at it (we’ll have to see how my creative juices are doing after the internal Hack Day). If you’re at all technically inclined, then you should totally sign up and come. It’s going to be a ton of fun.
Camping on the lawn, live entertainment and dorks as far as the eye can see. Seriously, what else could you want? The only way it would be better is if they waited until October and called it Dorktoberfest. Although, I guess there’s really no reason Dorktoberfest can’t be in September.
August 25, 2006
Another quarter, another Yahoo! Hack Day
I just got a note on one of the Yahoo! internal mailing lists that the next Hack Day is fast approaching (September 14-15). I really enjoyed the last Hack Day, staying up for 24 hours getting something thrown together. Last time I thought I had a winner but didn’t end up taking home a trophy. I think my hack lacked the certain…flair, that would get it noticed. So this time I’m all about the flair.
Of course, the hack I have in mind I can’t get done completely in the 24 hours allotted, so I’m going to be doing some early fabrication of some of the base tools and skills I’ll be needing. I’ll save the meat of the hack for Hack Day itself.
2 comments August 23, 2006
Monkey Potter?
I was checking out Guba tonight. I was curious to see how up to date the movie selection was, so I did a movie search for “Harry Potter”. All I know is, the first result is for Funky Monkey. What’s even better is, Any Which Way You Can also shows up in the search results. Why does searching for “Harry Potter” bring up so many monkey-related results? I’m not complaining, everybody knows I’m down with monkeys. It just seems a little odd.
On a related note, I just noticed that Matthew Modine is in Funky Monkey. He can’t seriously be that hard up for work…can he?
August 22, 2006
Never trust a computer you can't lift
Seems like good advice to me. Check out some 1984 video of Steve Jobs.
1 comment August 22, 2006
Detachable Yahoo!?
I’m glad I work at a company with a sense of humor. Otherwise I couldn’t share this with you.
August 18, 2006
Oh yes…we've been busy Yahoo!s
As many people have now noticed, we’ve been hard at work on some new stuff in Yahoo! Mail Beta. I know many people come here for details of the updates, here’s what I can tell you:
- There’s no change log available yet. Sorry.
- The release isn’t out to all users yet. Read this Yahoo! Mail Update post if you want to understand why.
- The crazy users (I mean that endearingly) over at the Y-Mail Yahoo! Group have screenshots of some the updates.
Yeah, okay…nothing juicy. I know. But we only just pushed the update.
8 comments August 13, 2006
SimplePie is neither simple, nor pie
As I mentioned before, Bloglines sucks. So tonight I was trying to build my own aggregator in an attempt to free myself. As it turns out, freedom can be quite painful. My first stop was to get the basics working. I whipped up a quick OPML parser so I could import my feeds from Bloglines. Once I had that done, I needed a way to fetch the feeds so I could display them. I didn’t care so much about read/unread state (I’ll handle that later), I just wanted to get the very basic guts of a feed reader put together.
So now that I’ve got my list of feeds, I need something to fetch the RSS/ATOM and parse it. I’ve looked at a couple of PHP feed parsers in the past, but decided to give SimplePie a shot. As it turns out, not such a great idea. SimplePie touts their software as “So easy, even your grandmother could.” Sounded awesome, so I installed it. Seemed pretty simple, really. Download the tarball, unzip it, get out a single PHP file, include that in your PHP script and then call their library. It was easy…a little too easy.
I first noticed something was up when I output feed items that had embedded images. None of them were showing up. I figured it must be some anti-hotlinking stuff in action, so I browsed over to my feed (which has no hotlink protection). Same, images still didn’t show up. I viewed the HTML source and noticed all of my image URLs had been URL encoded and prefixed by “?i=”. This seemed really odd, so I double checked to make sure that wasn’t showing up in the feed XML. It wasn’t. For some reason, SimplePie was doing it. So I did some searches on their site. After a bit of stumbling about, I found this page. Interesting…they built in a mechanism to work around hotlink blocking. As I dug further, it turned out I had to create a whole other page to handle all image requests. That page would backpost requests to fetch the images and then serve them back to my feed reader.
So I created my image serving page and made the necessary tweaks to the SimplePie configuration to let it know about this new page. Now I ought to be seeing “images.php?i=” instead of “?i=”. I saved my changes and reloaded my browser. Nothing, the images were still broken. So I once again viewed the source. When I looked at the image tags there was still only “?i=”. No reference at all to images.php. What the hell? So I went back to my source and double checked everything, making sure it looked exactly as it did in the SimplePie documentation. Looked fine. Hmm…maybe my browser cache still has the old version of the page. So I did a Shift-reload to clear the cache. Still nothing. Hmm…cache, oh yeah…SimplePie has a cache. But…they wouldn’t dare cache the content transformations would they? So I opened up the cache file and sure enough, they were caching the image tag transformations. I removed the cache file, reloaded my browser and voila! The images popped up perfectly. So as it turns out, the SimplePie installation documents are missing this all important step for anybody who wants to look at something other than broken image icons.
As I thought about it, I realized I really didn’t want hotlink protection. If people were so uptight about hotlinking that they added protection to their images to prevent it, who was I to ignore their wishes? Additionally, serving the images through images.php meant that it was counting against my bandwidth. I wasn’t really crazy about that notion either. So I searched through the SimplePie documentation trying to find anything that would let me disable the hotlink juju. Nada, evidently you get the hotlink stuff whether you want it or not.
So, in conclusion:
- simple = good
- pie = good
- SimplePie = not good
Up next I’ll check out Magpie. What’s up with using “pie” to name everything? Now I can’t stop thinking about pie.
8 comments August 5, 2006