Archive for the 'Tech' Category

Bookmarklets

Thursday, January 29th, 2004

Mac link of the day: Ready to leave your Baby Bell? Try Voice over IP.

I prefer to read text in a narrow column - it’s much easier to read that way. I hate websites that fix the page width, preventing the text from wrapping in a smaller browser window. I’ve gotten annoyed lately because I’m always resizing the Safari window: if someone’s text runneth over, it’s easy enough to go for the green button and expand Safari, but going back to my preferred window size is often a more manual operation (although a second click of the green button works in many circumstances).

I’ve never had much success with bookmarklets (bookmarks that do cool JavaScript things), but today’s macosxhint worked so well for me that I decided to make my own, that would push Safari right and make it skinny: w||i.outerHeight>h){s.moveTo(0,0);s.resizeTo(w,h)};if(m){s.moveTo(m==1?0:screen.availWidth-w,0);};s.resizeTo(w,h);};rsz(self,window,600,screen.availHeight,2);”>600xFull, w||i.outerHeight>h){s.moveTo(0,0);s.resizeTo(w,h)};if(m){s.moveTo(m==1?0:screen.availWidth-w,0);};s.resizeTo(w,h);};rsz(self,window,700,screen.availHeight,2);”>700xFull.

Give them a click - they may work in less cool browsers. Safari doesn’t go under my Dock, which is also on the right, when I click - very, very nice. You can also drag a bookmarklet link to the start of your bookmark bar and use command-1 to run it (or click on it, of course, but I keep my bookmark bar hidden most of the time).

Fortune Cookies

Monday, January 5th, 2004

Muppet of the day: Grover is bitter

My favorite Terminal.app, iTerm, now produces those old Unix fortune cookies, thanks to a macosxhint. Since the instructions there aren’t all that clear, here’s how you do it:

  1. Use fink to install the cookies. Type the following at the command line in Terminal.app or iTerm: fink install fortune-mod
  2. Call it from your .login or .profile file. Create the file in a plain text editor - emacs, pico, whatever - or use cat. See the macosxhint if you need instructions on using pico. If you don’t know which file you need (.login is for tcsh, .profile for bash), just make both of them. All the file has to contain is the line /sw/bin/fortune

Now whenever you open a Terminal window or an iTerm tab, you’ll get your fortune cookie. If you don’t have fink, see the macosxhint for a build of the fortune program.

I noticed that Earthlink now has an OSX version of their accelerator (part of Total Access 2004). I’m usually on a dialup, so I considered installing it. But I know how these thing work - mainly by compressing images and aggressive caching - and how they go wrong. I already get enough aggressive caching from Safari. I don’t need it happening on a proxy server at Earthlink’s end.

I think I’m going to go with PithHelmet instead. I figure the real slowdown in browsing is the stuff I don’t want to see - ads. Instead of accelerating the ads on their way to me, PithHelmet will quash any outgoing ad requests before they outgo. I used to use privoxy to block ads, but privoxy didn’t make it onto the new mac. I had the feeling that running a local proxy was too much work for my tired old mac. PithHelmet is the new, Safari-specific, approach - I’m hoping it will be a bit quicker, since it’s a browser-level hack. Proxies, local or not, are a bad idea.

Making Criminals

Monday, December 29th, 2003

FAQ of the day: The Mac DVD Resource FAQ
Kernel hack of the day: PowerBook fan fix

I’m up to Season 4 of Stargate, which, thanks to Veronica, I have on DVD. This is the most action my mac’s built-in DVD player has seen since I borrowed Contact from Dr. Deb. Even though I have no foreign region DVD’s, I’ve begun to wonder about nasty built-in DVD annoyances, like the FBI warning and trailers you can’t fast-forward past - just because I’m a geek. I also wanted to take a couple of screenshots for the Repository, but the OS disables Grab (the mac screen capper) when the DVD player is running.

There are software and firmware hacks out there to nullify or reset the region code on a mac. The best way I discovered to skip the FBI warning or take a screenshot, however, was with VLC. VLC avoids the normal DVD hardware restrictions by reading and decoding the DVD at the software level. Presto, screenshots!

The only trouble is, it may be illegal in the US. I own the Stargate DVD’s and the mac and the mac’s DVD player, and I’m not selling, ripping, or pirating anything, or making any money. And yet, VLC comes with a warning that using the decoding library may be a violation of the DMCA. So without doing a single thing that any reasonable person would consider wrong, immoral or fattening, I could have broken a law by downloading and running VLC, provided I did so. Nothing in this blog entry should be taken as an admission of guilt.

When I took a Peter Pan bus to an undisclosed location in Connecticut, the driver said that smoking was prohibited by federal law and that cell phones should be used only in an emergency. What constituted an emergency - say, the bus going off an overpass - was not specified. When I took the Bonanza bus to and from Fall River to see Mom, the driver firmly declared that smoking, drinking (alcoholic beverages), and cell phoning were absolutely forbidden on the bus. There are only two or three places in all of Massachusetts where it’s legal to smoke, so that law was familiar to the patrons. It was Bonanza, not Greyhound, so the likelihood of people getting drunk on the bus was low to begin with. The likelihood of people cell-phoning despite the absolute cell-phone ban was about the likelihood of people cell-phoning in the absence of cell-phone bans. I overheard a lengthy conversation in Portuguese as well as several other shameless cell calls.

The point being that when you make a law that’s extreme (people need to make cell phone calls from the bus to tell people they’re arriving - you don’t want to spend one extra minute hanging around the bus station in Fall River, believe me), senseless (I could converse with Veronica when she was with me, so why shouldn’t I be able to do it over the cell as well?) and impossible to obey (people have a Pavlovian drive to answer their cell phones), all you do is destroy what respect they may have had for the rule of law. When you make one law to be broken, all laws suffer. Next thing you know, they’ll be drinking beer on the bus, just because the driver forbade it in the same sentence as he did cell phones (and not nearly as emphatically).

There’s no way to rule innocent men. The only power any government has is the power to crack down on criminals. Well, when there aren’t enough criminals one makes them. One declares so many things to be a crime that it becomes impossible for men to live without breaking laws. Who wants a nation of law-abiding citizens? What’s there in that for anyone? But just pass the kind of laws that can neither be observed nor enforced nor objectively interpreted ñ and you create a nation of law-breakers ñ and then you cash in on guilt. –Atlas Shrugged

jemima_blog

Saturday, November 29th, 2003

Word count: 2650
NaNo link of the day: The Internal Cliffhanger

Thanks to RJ, I now have a ghostly, RSS presence on LJ. You can add my blog to your friends list using the instructions on my syndicated account page. I guess it means just adding jemima_blog as a friend. RJ is using RSSify to turn her Blogger blog into a syndicated account as well, but if you just want the plain RSS, here’s RJ’s feed.

RSSify is a good solution to the lack of Blogger RSS feeds; I stumbled across it back when I found myRSS. Unfortunately, you need access to the blog template to use RSSify, so I couldn’t use it to get feeds. But if you’re a Blogger blogger and you want to provide a feed, it looks pretty simple. It only took RJ a couple of minutes to set up, and the result is a full entry feed with just some minor link problems that most users won’t notice.

I must, I must, I must catch up in NaNo.

Widescreen NNW

Tuesday, November 18th, 2003

Word count: 3300

If you have the OS X Developers Tools installed, you can go wide in NetNewsWire or NNW Lite. Just follow the instructions at rentzsch.com. If you’re using NNW Lite, the main window is in the MainMenu.nib file, not the file mentioned there. Also, “open the inspector” means do “Show Info” from the tools menu. I’m already enjoying the non-scrolling action.

Also, here are some short and sweet instructions for making favicons with GraphicConverter. And the iMac has grown.

Big Mac in Big Three

Saturday, November 15th, 2003

Word count: 1800

It’s official: the Big Mac is the world’s third-fastest supercomputer. Just wait until they install Panther!

Some cool Mac facts: You can use the tab key to switch between windows when Exposé is on. You can also use command-` to tab between windows of the current application without Exposé. If you want to read PDF’s within Safari (or, presumably, other Mac browsers - though who uses those anymore?) try the PDF Browser Plugin. You can block ads in Safari with PithHelmet.

Text Shadows

Thursday, November 13th, 2003

Word count: 750

Sometime after I installed Kitty, I noticed a weird grey shadow under the links on my ever-so-cool splash page. Today as I was surfing the mac blogs (through NetNewsWire, of course) I discovered that Safari 1.1 (the version that shipped with Panther) is the only browser that supports the CSS text-shadow property. My shadows were set to silver because silver was the color in the code for the confetti menu my splash page is based on. Since I couldn’t see the shadows when I was designing the page, I didn’t know what color to use instead of silver - I just left it there.

So I tweaked the menu a bit - basically, I took the background color of the page, subtracted #222222 from it to darken it, and fixed some other little problems. Also, Jerie and I went on a Stargate font hunt, so I got my Stargate A font back (it’s available at Shrine of Isis - Fonts). Since chances are you aren’t running Panther, you can click on the thumbnail below to see just how cool the kittified page looks in a real browser.
shadow2tn.jpg

I also saw a couple of cool color generators in my travels: ColorMatch 5k and ColorMatch Remix. Go slide the sliders - they’re addictive.

Feed Me

Monday, November 10th, 2003

Because their link was broken, I was rooting around for the RSS feed at Science Daily. Eventually I found it using the search at Syndic8. I also found myRSS, a great way to make RSS feeds for brain-dead sites (mainly Blogger) that don’t generate their own. They’re just headline feeds, but that’s better than nothing.

So I went on a feed spree. The links are to the summary page at myrss.com.

Here are some other cool RSS feeds I’ve picked up lately. The links are to the actual feeds. You can drag the link itself from Safari to NetNewsWire - very cool!

Soundbites

Thursday, November 6th, 2003

Word count: 3450
NaNoWriMo link of the day: Procrastination from despair.com

I’ve been searching for weeks for a way to get soundbites out of movie files. I vaguely recalled that DivX Tool (or a newer beta) would extract the soundtrack as a mp3, but I didn’t know of an easy way to work with the results. (By the way, DivX Tool will refuse to open a write-protected file, sometimes silently.) It sounded like I might have to use something complicated like mAC3dec with LAME. Instead, all my problems were solved when I stumbled across a little shareware tool called MP3 Trimmer.

My first soundbites are up in the Repository under GDO and Teal’c.

The Orange Arrow

Wednesday, November 5th, 2003

Word count: 1340

I just wanted to blog for a moment to say how stunningly convenient the orange arrow is in Safari. It’s called SnapBack (see the SnapBack movie), and it’s even more useful than shift-command-left/right arrow for switching tabs. Just click the orange arrow and you’ll be returned to the page where you started. This is great for reading a multipage article and then snapping back to the first page to grab the correct link. Since I open new links in new tabs one SnapBack is all I need, but you can also mark more pages to snap back to (using the History menu).

I had heard that the small-caps support was supposed to be added to Panther, but I’m still not seeing them.