I often use google to search wikipedia with keywords like “wikipedia little endian.” I discovered on accident this morning that if you just type wikipedia, Google actually supplies a search box for wikipedia within their result set. Pretty cool. Is this new? Is it just for wikipedia? Is there an API for defining this?
Monthly Archives: June 2008
Why You’re not too Smart to Switch to Mac
Somebody over at Gizmodo published an article on why he still uses Windows. He begins by saying that he’s “too smart for Macs” (emphasis his). No, dude. You’re not. Let’s go through your arguments one at a time and see what’s really what.
The first argument, “I’m a monster on Windows” has merit. If you’d expanded on this a little and let that be it, I’d have left you alone. If you’re comfortable and really productive on an OS, there’s really no reason for you to make the switch. You might find that you’re more productive on another OS once you get over the learning curve, but I’ll give you this one.
The next section describes how Macs used to be utter garbage. This is a statement I agree with. Mac OS and even OS X wasn’t always as awesome as it is today. But it is awesome today. Who cares about what it used to be. Windows used to be better. It’s not today. Welcome to the present.
The next section tries to make several points, most of which, are utterly misinformed. PCs are better for games. Agreed. “Windows is an OS that feels structured and it makes sense just because I’m used to them.”(sic) There’s always a period of getting used to something new. This is the same as the first point. Macs feel dumbed down. You can’t tinker or access low level system stuffs. Mac OS X is based on BSD Unix. I would argue that it’s more flexible/tweakable, though, fewer changes are necessary to get acceptable performance. There aren’t as many apps. True. But it’s not like it used to be. There may not be as many, but there are plenty, and they’re usually better. Limited hardware choices. The Mac Pro is very expandable. If you really want to build your own machine, and that’s more important than actually using the machine, I have nothing more to say to you. Nowadays, most people buy laptops, and nobody is really making laptops designed to be taken apart.
Next up, we have a section about the founders of the companies. This is irrelevant. It’s worth mentioning, however, that even Bill Gates thinks Windows sucks. This is followed up by a section about how Macs are too cool. This is another irrational decision that has nothing to do with the actual platform itself.
The last section is a gold mine. “The main reason I still use Windows is this: I’m stubborn and lazy.” Not too smart, too stubborn and too lazy. I believe that. “I don’t want to switch because it will amount to admitting that I’ve been wrong for the last 15 years or so.” First of all, so fucking what. I thought you didn’t care what people thought? What happened to “My computer is not a fashion statement”? Second, you don’t really have to admit anything. Windows used to be better. Now Mac is. You weren’t really wrong. I got razzed a little bit when I made the switch, but I’m still glad I did. There’s some more stuff about not wanting to learn something new. It takes about two weeks to get acclimated to the Mac. Ask your pals over there at Gizmodo for a few app suggestions to replace your Windows tools.
Get yourself a review MacBook Pro and use it for a month or so. You won’t want to give it back.
It doesn’t bother me so much that this guy uses Windows. If he’s comfortable, productive, and happy with it, there’s no reason to switch to something else. The thing that bothers me about this article is how ignorant most of his arguments are. In 2001, I would never have imagined myself using a Mac. The people over there have made some amazing achievements since then. I’m irritated when people compare today’s Windows with 1998 Macs and say they’re better. We should be looking at today’s realities and tomorrow’s prospects.
Smooth Scrolling with ScrollBox.js
Somebody wrote an email asking for a good way to do smooth scrolling with my scrollbox library. If you have some code that will do smooth scrolling on a div, you can use it. The scrollbox will watch what’s going on and automatically update the handle as well as its internal state. If you’re looking for a good solution, here’s a simple one that uses scriptaculous.
Effect.SmoothScroll = Class.create(Effect.Base, {
initialize: function(scrollbox, options){
this.scrollbox = scrollbox;
this.options = Object.extend({
to: scrollbox.scroll_pos,
from: scrollbox.scroll_pos,
duration: 0.5
}, options || {});
this.start(this.options);
},
update: function(position){
this.scrollbox.scrollTo(Math.round(position));
}
});
If you have already created a scrollbox like this, var sb = new ScrollBox($('somebox'), {auto_hide: true});, you could trigger a smooth scroll like this:
//scroll to the top over half a second (the default duration)
new Effect.SmoothScroll(sb, {to: 0});
// or
// scroll from top to bottom over 5 seconds
new Effect.SmoothScroll(sb, {from: 0, to: sb.scroll_max, duration: 5});
You can embellish this with any of the other scriptaculous goodness you see fit. I noticed when testing this that it automatically applied a nice ease in/out effect to the timing of the scroll. Pretty sweet.
Marking Down
Based partially on the fact that I’ve always wanted to build my own blog engine, partially on my WordPress ownage experience, and inspired by Geoffery Grosenbach’s writing about why rails developers should write their own blog engines, I’ve set about doing just that, which is why I haven’t bothered fixing up this site. It’s taken a bit long than I’d hoped, largely because I already have so much content I have to migrate over. The limited feature set I’d mapped out for version one just wasn’t going to support carrying all my old posts forward.
One of the challenges I’ve been dealing with lately is content formatting. WordPress offers, out of the box, some simple formatting help. It’s nothing major, but things like double newlines are appropriately turned converted to paragraphs and such. All of my past posts rely on these features. The problem is that I’m really not sure what exactly the behavior actually is. I spent some time toying with different things and never really got a consistent reproduction of what the posts look like on the current site.
I finally arrived on Markdown. I’d goofed around with it before, but never really gave it much consideration. Being a web developer, HTML is practically a first language for me. I don’t find it particularly cumbersome to just plunk out all the tags I need myself. After reading John Gruber’s philosophy on what such a system should be, I decided it was pretty much in line with what I wanted. The best part is that, after installing BlueCloth – a ruby implementation of Markdown – into my app, I discovered that just about every post looked just as I wanted without any modification.
So, I’m going to go with Markdown in my new engine. Anybody have any words of wisdom or gotchas I should be prepared for?
SproutCore: JavaScript on Rails?
I took a few minutes to read the Hello World tutorial for SproutCore. Looks mighty interesting. The first thing I thought was that it looks like JavaScript on Rails. The framework is installed the same way (rubygems). It uses what looks like rubigen to build out your application skeleton as well as providing other code generators. It even uses erb with rails style tag helpers for the views.
Code wise, it looks like they’ve taken some hints from Cocoa. Views are designed to be localized similar to Cocoa’s nib (or xib) files. Properties are accessed through getters and setters to allow for more hooks. There is support for public and private variables.
I’m not sure I’m ready to jump on this bandwagon completely just yet, but it looks promising. I’ll have to get in there and really mess with it before I can really know what’s what.
Whose Cake can you Eat?
I’ve never much cared for the idiom “You can’t have your cake and eat it (too).” Wikipedia tells us the expression is older, even, than spelling. The original version is actually the reverse of how it’s used today and makes much more sense, since it properly orders events chronologically. Essentially, the lesson is that once you eat your cake, you can’t have it anymore. One could argue that you don’t actually have the cake until you eat it. Personally, I’m just going to do as George Carlin suggested and eat someone else’s cake.
What if you Break It?
As part of the deal around getting the price of the iPhone cut in half, AT&T is mandating that all iPhones be activated in store as part of the purchase process. They do not offer a non-subsidized price at all. What happens if you break your shiny new iPhone. The thing is made, in large part, of glass. Can you get a new one? Do you have to suffer yet another new contract? Credit check? Two more years of lock-in?
MGS4
Over the weekend, my brother brought over the new Metal Gear Solid in the 4th and final (so we’re told) attempt to get me to appreciate the franchise. It worked. I really have not been able to enjoy any of the previous games. Something about sneaking games tends to just frustrate rather than entertain me. After a few rounds of sneak, get caught, fight, reset… I just lose it and start shooting up the place. The problem has been that it was completely impossible to make progress in many sneaking games with this method. In MGS4, you could theoretically blast your way though it all. This freedom actually makes the sneaking components much more compelling to me. So much so, in fact, that I am actually enjoying the sneaking component.
I’m at the beginning of the third act of the game now, and it’s calling to me. I really wish I had another day of weekend to just plant myself in front of the thing and complete the game. The level of polish and the pure breadth of the possibilities is totally compelling.
I can’t give the game a completely positive review, though. The online component, particularly the process involved in getting into a game, is horrid. Let me explain:
- Launch the game
- Select “Metal Gear Online”
- Wait for yet another install process
- Find out I need to install a patch to the system software
- Exit the game
- Launch system updater
- Wait for download
- Click through several pages of crap
- Wait for install process
- Wait for system reboot
- Launch the game
- Select “Metal Gear Online”
- Wait for game to update itself
- Exit the game
- Launch the game
- Select “Metal Gear Online”
- Read through horrible description of the grueling process of creating a user account
- Fill out registration form using an embedded web browser including:
- Two different usernames with different naming rules
- Two different passwords with different rules, each entered twice
- Email address (entered twice)
- Basic name, number, and address info
- Close embedded browser
- Enter username and password (don’t forget which ones)
- Suffer through “tips” on every page of the character setup process (these are necessary because you would otherwise have no fucking clue how to use this interface)
- Create your character. Don’t mess up. You can only create one without paying money.
- Recreate your friends list, as this game doesn’t use the system wide friends lists
- Dig through several menus to find your friends and find the game they’re in on the games list
- Attempt to join the game, and hope it works
- Play, if you’re not too tired
This appears to be basically par for the course on the PS3. I have to say, it’s pretty appalling, especially compared to its competitor. Most of my online play happens on my XBox 360, where the friends list is pervasive across every game and even voice chat works seamlessly across titles. One the XBox, I can accept a game invite from anywhere on the system, including other games or DVDs. The system will actually ask for the correct disc and then, upon insertion, take me directly to the game lobby where my friend is.
The experience of trying to play online severely detracts from my enjoyment of it. Once you’re in a game, it’s fun and seems to suffer little from lag. The surprising lack of polish in the online experience is bafflingly contrasting to the glossy sheen of the single player experience. Based on the merit of the single player content alone I highly recommend anyone who owns a Planet Earth player give this game a test drive. Even if you aren’t a fan of the series, you may find something to like in this game. The online component is interesting if you can get to the meat of it, but you have to really want it.
Shiny or Not Shiny?
Bit of useless trivia for you: Why is one side of aluminum foil shiny while the other is dull?
From wikipedia:
For thicknesses below 0.025 mm (0.001 in), two layers are usually put together for the final pass which produces foil with one bright side and one matte side. The two sides in contact with each other are matte and the exterior sides become bright. This done to reduce tearing, increase production rates and to help control thickness.
First heard this on an episode of Good Eats. Makes sense.
