Shewbox.org

sub specie aeternitatis

Archive for 2009

Snow

I got tired of seeing the previous post messing up my frontpage in Chrome.  Looked fine in Firefox and even IE, wonder why Chrome was messing it up.

So here it is, a brand new post for December right after the first snow of the year.  I could lose the cold weather but I still love the snow.

Comments are off for this post

How to Print a Giant Google Map

goog_small

 

I love maps, especially really huge maps that you see in public places like a metro station or museum.  I wanted one for my place and after some work, printed out a giant map of Tokyo that covers the entirety of one of my walls.  Luckily I have access to the laser printers at IU (and a large enough print quota to print this with plenty left over) since this was 17 pages wide and 10 1/2 pages tall.  This is the view of the entire wall:

full_small

It didn’t work out exactly as I wanted.  Tokyo proper is actually on the bottom 1/3 of the wall, where I wanted it to be center in my planning.  But after printing, cutting and taping the first 2/3 on the wall I figured I’d just live with it vs. starting all over.  My method was a bit of a pain to piece together and there very well may be a much better way to do it (if you know, let me know please!).  So how did I do it? 

First, what area did I want to print?  I thought of a few major metropolitan areas like NYC, but as my wife is from the Tokyo area and I’ve been there several times it seemed the most fun.  Then I had to decide between a street map or a satellite image.  I actually had an even bigger satellite map of Saitama when I was living in Miami and found that having the more traditional map was more fun to look at.  You could always do a hybrid if you wanted the best of both worlds as we’ll see in a minute.

Now I needed a way to view a really large portion of a Google map at a time.  I suppose you could take a screen grab of tiny little squares and piece those together in Photoshop (after all, I had to chop the big image up into smaller ones in the end anyways) but there is an easy way to view a REALLY large chunk of Google maps at a time.  I went to Google maps, went to Tokyo, then clicked on the Link option on the top right corner of the map.  Inside here is some Embed code for directly embedding the Google map into any website. 

embed

Next I opened up notepad and created an html file with the embed code in it.  Since it reads the information directly from Google I didn’t have to put it up on my website, although I certainly could have.  I just loaded it from my hard drive and it worked.  When you first do this, the map is still very small, and that is because within the embed code there are settings for how big the window into Google maps is.  It’s at the very beginning of the code and it’s very self explanatory:  width=”425” height=”350”.  This allows you to tell Google how big of a window, in pixels, you want to display of Google maps on your site.  I wanted about an 8ft x 10ft image so I went into Photoshop and, at least according to Photoshop, I wanted a frame 6912 pixels tall and 8640 pixels wide.  So my new HTML file looked like this:

<html>
<body>

<iframe width="8640" height="6912" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=tokyo+japan&amp;sll=42.044143,-87.686904&amp;sspn=0.007872,0.019805&amp;ie=UTF8&amp;hq=&amp;hnear=T%C5%8Dky%C5%8D+Metropolis,+Japan&amp;ll=35.689488,139.691706&amp;spn=0.017219,0.039611&amp;z=15&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=tokyo+japan&amp;sll=42.044143,-87.686904&amp;sspn=0.007872,0.019805&amp;ie=UTF8&amp;hq=&amp;hnear=T%C5%8Dky%C5%8D+Metropolis,+Japan&amp;ll=35.689488,139.691706&amp;spn=0.017219,0.039611&amp;z=15" style="color:#0000FF;text-align:left">View Larger Map</a></small>
</body>

</html>

At this point if you don’t have a decently fast computer and especially one with plenty of memory, things are going to get really really slow or crash.  Google will happily comply and send you the image data for all the tiles you are requesting and your browser will then display all of those on screen so if your computer is low on memory you can probably forget about it.  Things slowed down on my computer but they didn’t crash, so next I had to adjust the zoom and placement of the image, which works just like the smaller version of Google maps, except that it has to refresh the ENTIRE page if you move the screen even one pixel.  Once I decided on what looked like a good placement and zoom I wanted to save the entire thing.  You can save the entire page if you go to File –> Save Page, but it will save an HTML file with all the little image tiles Google sent your way.  You could, if you were wanting to print hundreds and hundreds of pages, print all these little tiles, cut out the little squares, and piece everything together on your wall.  I wanted full page images both to save paper and my sanity and so I turned to a Firefox addon:

screengrab

There very well may be other screengrab plugins, but my googling found this one first and it worked fine for me.  Once I had the entire image where I wanted it and the screengrab plugin was installed I clicked on the Screengrab icon on the lower right corner of Firefox and selected to Save the entire frame as an image.  Once again, if you are short on memory at this step, Firefox will crash.  The ram usage for Firefox while the plugin was saving the entire frame as an image shot up to well over a gigabyte.  The bigger the image you want, the more ram it requires. 

At this point I went searching for programs that would auto splice and print this giant file.  I first thought I had a match with a program called the Rasterbator.  But it doesn’t allow really fine detail like my map had.  It is better for taking a smaller image and blowing it up the size of your wall, where you don’t need really fine details.  I found another program called Posterizer, but it crashed every time I tried to use it.  So I had to use Photoshop to splice it into all the little pieces.  Luckily Photoshop, being the powerful program it is, has a way to automate this using the Slice Select Tool (btw, I have to add I love that IU has a volume license agreement with Adobe and I get the entire CS4 creative suite free). 

Finally I had 200 separate images (I created an image bigger than I thought I would need, just in case), each sized to fit my paper nicely.  I headed over to campus and printed out all 200 pages and then spent another 30 minutes at the paper cutter slicing the extra borders off the images. 

The final step was to put the giant puzzle together and paste it on the wall.  This was the longest step and actually harder than I thought.  It was surprisingly difficult to make sure everything lined up correctly as I taped all the pieces together.  Get a little off in one direction and then the next layer down you might find that the bottom of the one doesn’t match the top of the next.  I tried taping together larger sections on the floor and then taping those to the wall to be a bit easier although I was still off in a few places. 

Overall, though, I’m really happy with it.  I just wish Tokyo proper was centered like I wanted.  Shibuya is down by my wall socket

shib_small

Tokyo station and the Imperial palace is also near the bottom of the wall

chioyda_small

Oh well.  Next time I’ll get it just right :)

But you know what I really want?  I want the entire wall to display a live version of Google maps.  One that I can grab and zoom in/out, drag around, switch from satellite to map to street view.  A giant wall sized multi-touch screen in other words.   Now THAT would be really cool. 

Comments are off for this post

No More TV for Me

My wife and I decided to get rid of our cable.  Actually it was more of my wife’s decision than mine.  Looking for ways to spend less money every month, our $35 we were giving to Comcast for a bucket of programming we almost never watched seemed a good candidate for the ax.  I haven’t watched regular tv in ages and the few shows that interest me (like Mythbusters, Nova, Family Guy) I either download or watch online.  When I started downloading her programs like Project Runway and she even watched less and less on the actual television, she said go ahead, cancel it.

Comcast technicians cut the television signal yesterday and I removed the tv from the living room this morning.  I love it.  I wish we would have done this sooner.  On the rare occasions I sat in front of the tv it seemed I would either be flipping through dozens of channels not finding anything of value or watching commercials waiting for something halfway decent to appear.  Shows downloaded or even on Hulu or so much better as you watch on your time and avoid (at least on downloaded versions) commercials which saves you time.  And money in this case since we no longer pay for cable.  Even with digital cable and “on-demand”, it was terrible compared to what I can already get on my computer and the internet.  In fact, Comcast’s on-demand was all in all worthless.  There was always a small smattering of free movies or shows (although always older releases and usually not worth watching) and their premium movies were crazy expensive.  We already pay for a Netflix subscription and their Watch-It-Now selection is far superior to Comcast and if there is a premium movie we want it goes in the queue and comes to our door in a few days.  And since we don’t watch live sports, there really isn’t anything cable offers us that we can’t already get from our Netflix and Internet subscriptions.

Comments are off for this post

Dream 9/30/09

From what I remember:

Wife and I are on a vacation to Mexico.  We meet another couple we know.  We say hello, pleasantries and all that, then go different ways.  The city we are in has a very carnival atmosphere, only a Mexican carnival (whatever that means).  We meet the same couple again, decide to hang out together.  It starts getting late we try to find a hotel.  We find a place, but when we ask for rooms, we are told there is only one big room with lots of beds.  The manager shows us around.  All the beds are king sized beds, put next to each other, but separated by curtains.  He pulls back all the curtains one by one to introduce us to the people staying in the beds.  Somehow this seems important to him.  But we decide to go elsewhere.

Fast forward.   We find some person’s house to stay.   We spend the night.  But the next morning the owner of the house comes and says that one of us tried to hit on his teenage daughter and so he will punish us.  Flash forward and wife and I and the other couple are tied to a giant slingshot, where the crazy man is going to shoot us far into the sky to kill us.

The Beatles Hey Jude starts playing.  I wake up, realizing that wife is really playing the song downstairs while eating breakfast.  Hey Jude keeps going through my head all morning.

Comments are off for this post

You Know You Job Sucks When. .

If you clock out early, and by early I mean anywhere from 45 to 2 seconds early, and your boss not only cares but sends you an email and gives you a "personal development issue", then you know your job sucks.  Observe:

 

Hi Ben,

It looks like you clocked out early (but within the last minute of shift) 3 times in the last pay period.  Please be sure to use the PIE time as reference when clocking out, and be sure it has clicked over to the top of the hour before doing so.  The professional development issue below has been entered into your performance record as a friendly reminder.  Just let me know if you have any questions.

Thanks,
Ms. Manager

Ben checked out of three shifts early this past pay period. All of these checkouts were in the last minute of shift and he was never pointed for an early checkout. This is a friendly reminder that consultants are expected to observe PIE time and check out after their shift has ended. The shifts were:

· 12:00-16:00 on 9\8 in Ashton; checked out at 15:59:14

·  12:00-16:00 on 9\15 in Ashton; checked out at 15:59:58

·  12:00-16:00 on 9\19 in IC2; checked out at 15:59:58

 

Yes, that’s right ladies and gentlemen.  My manager decided it was prudent to spend the time emailing me and assigning me a "personal development issue" for clocking out 2 seconds early twice and 46 seconds another time.  2 seconds early.  Good grief.

Comments are off for this post

Next Page »