Tryings and Failings, 10/13

Here are some things that weren’t successful, as well as some that weren’t. In no particular order…


Originally, my website background had some extreme tiling going on. I actually picked a crumpled paper design because I thought it hid the tiling well. With just this little bit of code, I finally solved my problem:

<script type=”text/javascript” src=”"></script>
<script type=”text/javascript” src=”jquery.backstretch.min.js”></script>
<script type=”text/javascript”> $.backstretch(“paper.jpg”, {speed: 150});

And, lo and behold, my landing page’s background fell into line lickety split:

However, some of the other pages were not so thoughtful (despite receiving the exact same code).

A snapshot of the code for my renegade ‘About’ page:

I ran it through Google’s developer tools, finding that that the second line:

<script type=”text/javascript” src=”jquery.backstretch.min.js”></script>

returned a ‘404 File Not Found’ error. It’s immensely confusing because my home page works using the exact same code. Thoughts?

Making my own .kml file:

I figured out fairly early how to make my own .csv files; I was paranoid about our impending airport project so I made sure I would at least figure out how to create data (see my final portfolio for a full description of cleaning airline flight table data). Upon learning that the portfolio would also require web maps with our own data, I shivered a bit. Once upon a time I had used Javascript to embed a Google map on my site, but (like a lot of my classmates) I found it strange and demanding work.

First, I loaded some airport data I had already made: a vector layer showing TWA’s possible flight destinations from Albuquerque in 1935 and 1945. That was when I discovered the awesome power of the ‘Layer’ menu:

Once I clicked ‘Save As…’ the .kml format was auto-selected (this must be one of the handiest features of QGIS: turning one’s own data into a handy format for web mapping). Then, all I needed to do was readjust some of my extant Javascript and out popped a full-fledged web map…with my own data!

Is it sophisticated? No. Does it actually tell the viewer what they’re seeing? Of course not—I don’t give away my secrets that easily.

(wait for laughter)

Okay. I obviously need to style/center/add some functions, but I will do that later. For now, I savor my small triumph of the week.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.