How to make embedded Google maps with hotlink clickable markers

Mostly you have to follow the Tutorial here
but I modified the code slightly

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
      html { height: 100% }
      body { height: 100%; margin: 0; padding: 0 }
      #map-canvas { height: 100% }
    </style>
    <script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key=REPLACE_THIS_WITH_YOUR_KEY&sensor=false">
    </script>
    <script type="text/javascript">
	
	function setUrl(url) {
		top.location.href= url;
	  }
      function initialize() {
        var mapOptions = {
          center: new google.maps.LatLng(32.841231,-117.122551),
          zoom: 10,
          mapTypeId: google.maps.MapTypeId.HYBRID
        };
        var map = new google.maps.Map(document.getElementById("map-canvas"),
            mapOptions);
			
		var marker_clickable = new google.maps.Marker({
			position: new google.maps.LatLng(32.807618,-117.266817),
			map: map,
			title:"If you click me, you'll follow the link to google.com"
		});
		google.maps.event.addListener(marker_clickable, 'click', function() {
			 setUrl('http://google.com');
		})
      }
      google.maps.event.addDomListener(window, 'load', initialize);
    </script>
  </head>
  <body>
    <div id="map-canvas" style="width:250px; height:400px"></div>
  </body>
</html>

First note the above code won't work until you replace REPLACE_THIS_WITH_YOUR_KEY with your actual key.

Also see that I added another function, setUrl() that is called by the listener of the marker:marker_clickable I added to the custom map. now you can click that marker and it will redirect you to google.com, but you could change it anything. I'm using this code to make a custom Google map in a sidebar.

El Patron Mira Mesa

El Patron off Mira Mesa Blvd is a nice place to eat tacos

El Patron is a super Mexican restaurant with ridiculously cheap prices, a full menu, and friendly service. The quality isn’t exactly fine dining but you can hardly complain when you can order 2 meals worth of food for around $5. I’ve mostly enjoyed everything I’ve ordered here. The “grande” burritos are huge, twice as big as any burrito I’ve seen anywhere else. you’d really have to either split it among people or eat it across several meals.

I especially like their vegetarian options: Potato tacos ($.99 every day), cheese quesadilla, bean tostadas. And the hashbrown burrito is real good too. Breakfast burritos are served all day!

Be sure to pick up their menu. Although I noticed most of their deals aren’t listed in it. You have to find their specials organized haphazardly on the walls. Parking is tough now that H-Mart is open and very popular during the day, so I usually come here after dark.

If you want to learn more about what I think about local San Diego locations you can visit my other website: thesandiegoexplorer.com which has panoramas, videos, and pictures of places around San Diego I think are worth exploring.

Doritos India

Indian people love Doritos
It’s well known that Indian People love Doritos even though they don’t know it because you generally can’t buy Doritos in India. Whenever my numerous Indian co-workers are curious about American Culture, or if i’m just feeling bored, I direct them to the vending machine to buy some Doritos and pick up a Mountain Dew. There actually was once an “Indian flavored” Doritos called Tandoori Sizzler which was unusually only available in Canada.

Unfortunately you can no longer buy Tandoori Sizzler in Canada or anywhere else for that matter. But there’s still plenty of other flavorful varieties to try! If you’re actually in India where for some reason your local store doesn’t provide Doritos you can still buy them on ebay for a worthwhile amount of money. Personally, I prefer the Nacho Paneer flavor!

The IRS has rejected your federal return :-(

Oops

The XML data has failed schema validation.
Additional Information:
/efile:Return[1]/efile:ReturnData[1]/efile:IRS1040[1]/efile:SelfEmploymentTaxAmt[1]


Solution is to go back to line 56 on my 1040 form, and remove that ’0′ I put in that grayed out area on “Self-employment tax” line. Seems like a good idea not to write in any of the grayed out spots!

Otherwise it’s pretty easy to fill out your federal taxes online!
https://www.freefilefillableforms.com/fff/html/FED.htm

I love paying my taxes.

Google maps panoramas

I recently bought a Google Nexus 4 and one of my favorite features of the phone is the quality panoramas it can generate! Here’s a guide on how to transforms those panoramas(or any large pictures) to look like google street view so you can impress your friends.

  1. First download GMap Image Cutter. (mirror)
    Unzip it somewhere and try to run “GMapImageCutter.bat”. Chances are you got this error message:

    Windows cannot find javaw. Make sure you typed the name correctly, and then try again.

    Windows cannot find javaw. Make sure you typed the name correctly, and then try again.

    If you didn’t get this message you can skip on ahead, everyone else: Let’s figure out what this means.

  2. Make sure you’ve installed Java, but if you’ve used the internet for, well, anything the past 10 years you probably already have it but it’s not in your path.
    Search your computer for javaw.exe. I found mine in C:\windows\SysWOW64, which just happened to not be in my PATH for some reason. Put that in! Go to your control panel and system and then follow this helpful image on the steps to add another directory to your path:

    How to add Java to your PATH

    How to add Java to your PATH

  3. In Image Cutter Open your panorama file. My Nexus 4 photos like to hide on the phone in this directory Computer\Nexus 4\Internal storage\DCIM\Camera The default Max Zoom Level is probably fine for our purposes but you can tweak it if you want. If you’re feeling good about it mash the “Create..” button.
  4. You should now have a folder with a bunch of tiny pictures in it and an html file. Put it all on your webserver that you want people to have access too. To add the panorama to your own site you just have to add this bit of html:
    <iframe width="720" height="600" frameborder="0"
            scrolling="no" marginheight="0" marginwidth="0"
            src="your_panorma_file.html">
    </iframe>
    
  5. Just leaving it like this is OK but It’s just a giant picture, why doesn’t it behave like google street view? Well, I’ll help you fix that. Open up the html file generated by Image Cutter and let’s modify a couple variables.
    First you should set var imageWraps=false; to be equal to true if you want the image to loop back around at the edges. I’d also set the initialZoom to something else. I used 4! Lastly, there are two variable further down: minZoom and maxZoom you’ll want to tweak thease to be more reasonable for the size of your image. I used 3 and 5 respectively to keep it simple.

  6. And that’s it! take a look at what the final product should look like: