I may well have a reputation for being security-conscious to the point of paranoia. I say that you can't be too paranoid; nobody writes articles extolling the virtues of web sites that haven't been hacked. Check out these articles about the devious and clever Cross-Site Request Forgery technique.
Plenty to worry about, huh, web devs? Remember: just because you're paranoid, doesn't mean they aren't out to get you.
For most regular web-surfers, I think that here's little to worry about here. Users can protect themselves by logging into accounts only when needed, and logging out when done.
var theScript = document.createElement('script');
theScript.src = "da_script.js";
First, we prepare a new object using createElement(). Then, we append the new object to the end of the first (and, hopefully, only) head element in the document.
I was washing dishes, when my timer went off to pull some cookies out of the oven. I slapped on my oven mitt, pulled out the cookie sheet, and got one heck of a burn on the tip of my thumb. The water from my fingers had absorbed into the cloth of the mitt, and created a lovely new path for heat to escape from the hot baking tray right into my thumb. From now on, I'm resolved to thoroughly dry my hands before putting on the oven mitts.
I consider lots of things a scam: travel insurance, disc insurance, most credit reports, check cashing services, loan modification services and payday loans.
I had fingered change counting machinesfor scams too; they want to keep roughly 10% of your precious stash of coins. But there is a loophole - you can trade your counted coins for gift certificates with no "penalty". I checked it out and got a lovely Amazon gift certificate - practically as good as gold. (Note that you get only a paper receipt with a code; not a gift card.)
On the topic of scams, read about getting whatever kind of fix you need. That, my friends, is a despicable scam.
There are a few "natural laws" of riding public transit that I have noticed over several years of bus ridership.
- Slightly early buses tend to become very early buses as they progress along their route. As passengers miss the slightly early bus, the bus saves time and becomes even earlier. The same is also true for a very slightly late bus; it will have to pick up more passengers, and become even later.
- If one bus is early, the next one will probably be late. That second bus must to pick up the passengers who missed the first bus.
- If one bus is late, the next one will probably be early. The first bus has picked up some passengers who otherwise would have had to wait for that second bus.
- Buses tend to be more crowded, and hence later, during inclement weather. Some walkers will ride the bus if it's raining, and many drivers will ride during snow or ice.
- Most of the time, a bus will be at the front of a line of traffic. Stops along its route will cause the bus to be the slowest traveler in its traffic lane.
- Buses will tend to run earlier on federal and school holidays. There is less street traffic, and it only takes a bit less traffic to make a big difference. There are also fewer passengers, which means fewer stops and less load time.
I used my own photograph of Dale Chihuly's glass installation at ceiling of the Bellagio as the base for this seamless background. The number of objects and variety of color in this photograph made it quite an ambitious choice, but the transparency inherent in the glass artwork mitigated some of the odder blends.
I created this background in Photoshop. Here is a summary of the steps I used:
- Leaving a wide margin, copy a new image from original. This margin will give you extra source data for the blending the seams, so make it a little wider than the objects in the original photograph.
- Use the Offset Filter (Filter> Other> Offset) to shift the image 50% of its total dimensions both horizontally and vertically.
- Save your .PSD.
- Create a new layer.
- Use the clone tool to paint a large area into the new layer from the original layer.
- Align the new layer directly on top of the original layer. Set the layer blending mode to "difference" and nudging with the arrow keys will help.
- Add a layer mask to the new layer.
- With a soft brush, edit the new layer to blend nicely into the original layer. Paint black to "erase" the new layer and white to paint it back in.
- Go back to step 3 and repeat until the seams are gone.
- To check your work, first Save your .PSD, then flatten flatten all the layers and repeat the offset filter.
- If you'll be shrinking the image to a smaller pixel size in it's final form, work on the full-size image first, then re-size to the smaller size.
Here's a more thorough tutorial of turning photographs into seamless backgrounds.
I read Stephenie Meyer's Twilight a couple of months ago. Twilight has a certain reputation, but so many of my friends had enjoyed it that I felt obligated to give it a try. I didn't like it.
Here's the thing. I like books where stuff happens. The first third of Twilight was moony high school melodrama and wistful thinking. Nothing happened. In the second act, the drama was interspersed with vampire exposition. In the third act, "bad" vampires were murdered, to protect the "good" vampire family unit.
There are also several messages in Twilight that I find quite uncomfortable. For instance, after saving the protagonist from a group of would-be rapist / murders, the love interest announces "You would have devastated their crime rate statistics for a decade." Yup, he blamed the would-be victim for the crime. Classy. Though Meyer uses subtle language in the novel, the vampire "hero" is a Spencer Pratt-class tool. The attraction between the protagonist and the love interest is based solely on physical properties - Edward's very handsome, and Bella smells nice. The protagonist's highest aspiration appears to be to get married, so she can go from taking care of her father to taking care of her husband.
For a similar view of the Twilight movie, check out this hilarious alternate script.
I've been using Dropbox, a free online file storage system, for a couple of months now and I'm quite pleased with the service. For me, this service solves the problem of managing files between my laptop and desktop computers. I've ditched my flash drive, and I won't have to email myself updated files anymore.
I have 3 different computers - a home desktop (WinXP), a work desktop (Windows 7), and a personal laptop (MacOSX). I use my Dropbox to keep a variety of files synced between all of the computers - such as .PDFs with bookmarks, web pages I'm coding, half-written blogs, or even web links I want to check out later when I'm home. I don't have to worry about losing any of the Dropbox files; they're stored on 3 different computers, and on the Drobox servers.
Each computer that I've authorized for the Dropbox stores all of the files on its hard drive. When one of the computers is online, it checks for updates to the Drobox files, and if so, updates the local copy. Because the files are stored locally first, I never have to wait to open a really large file, but the Dropbox service keeps all the files nicely synchronized.
Dropbox offers a Pulic folder for file collaboration, and I've used the Dropbox photo album sharing without a hitch. There's even an free iPhone app for Dropbox. The Dropbox iPhone app lets you access your files from your iPhone (or iPod Touch) and can read a sizable number of file types. This could be quite handy for accessing all your recipes while shopping for dinner.
Bear in mind that, even though Drobbox has all kinds of security, there's always the chance they could get hacked. Don't store sensitive financial, legal, or business information in a Dropbox. Also, don't install this sort of thing on a public computer (such as those at the library or a cafe); stick with just accessing your files through the Dropbox web interface in those cases.
If you need more than 3 gigs of space, Dropbox offers 50 or 100 GB for monthly service fees. (Though it can't offer off-site storage unless you keep it in another building, an external hard drive may be cheaper in the long run.)
Dropbox is fast, reliable and works without any effort on my part. If you do sign up, be sure to use my link. Both you and I will get some extra free space.
This year's Turkey day was as much of a success as last year. The in-laws made for delightful and very helpful company this year. It is always good to have a chance to show off in the kitchen.
Here, for posterity, was our menu:
- Alton Brown's (Brined and) Roasted Turkey: This is our go-to recipe every year, and is reliably delicious. Note that you want the full-sodium stock in this recipe; remember that you're brining the turkey.
- Beard / Brown Rolls: I rewrote the recipe for Parker House Rolls from Beard on Bread to be more specific, and to take advantage of modern conveniences such as instant yeast and stand mixers. These should be prepared the night before serving, and baked in the morning.
- Mushroom Gravy: The husband prepared just the "Gravy" part of this recipe. Last year he made it with vegetable stock instead of turkey stock for the vegetarians. We always forget to add the parsley and mint, so they're optional.
- Sourdough Stuffing: This is a great stuffing, and easily adapted to be vegetarian. This year we added some carrots to fill out the flavor a bit.
- Endive Salad: This salad is very pretty, but the flavors only come together when you cut everything up together. You could probably could go with hearts of Romain instead of the endives.
- Mashed potatoes: We used a simple mashed potato recipe from a book, so no recipe here.
- "The Cock and Jack Apple Pie": This is a mash-up of the husband's devising, and is widely hailed as the best apple pie in the world. He uses Caprial's Apple Pie filling from Caprial's Desserts, Alton Brown's recipe for crust, and Alton's pie construction methods: drain the apples and use a pie bird to prevent a collapsing crust.
- Green beans w/ bacon and shallots: I'm a little unsure of the ingredients, and don't have the recipe, because our guests brought this dish.
- Fresh Cranberry Relish: This will make a huge amount of relish, but we quickly use it all up. It works well inside dinner rolls or scones, for instance.
I was very pleased that I managed to make rolls this year. I did forget the salt, but I rewrote the recipe to (hopefully) avoid that next time. Also, the chicken stock that I made a couple of months ago was used as an ingredient in many of our Thanksgiving dishes, so that's another feather in my cap. The husband should be very proud of all he made. In fact, now that I think about it, it's time for some left-over apple pie.
The chill in air in Seattle recently has me thinking about summer's heat wave. Relatively few buildings in Seattle have air conditioning, because it so rarely gets so hot. The downtown Central Library does have air conditioning, and when it opened on the morning of the hottest day, a goodly portion of the city's homeless rushed inside the library to cool off. That's right folks; it was a literal bum rush.