Putting a measured path back into Google Earth

I’ve recently updated my blog post about measuring path lengths in Google Earth as the old tool I’d used disappeared.

For some reason, this blog won’t let me add the following information to my previous post about paths in Google Earth so I’ve had to add a continuation here in this new post.

Using that data in Google Earth

Remember that question in my other post which asked if you wanted to update the KML Path file? As I said above, if you click “Yes, update” it updates the path you have stored in the clipboard with your path’s distance. Below explains how to use that in Google Earth

  1. After the distance is shown, you can go back into Google Earth and go to Edit > Paste:

    This pastes in the newly updated path

  2. Once you’ve pasted in the path, it’ll appear under your places in Google Earth (the same area your other paths appear in). It appears under the name “KmlFile”. You’ll likely need to expand it out by pressing the + icon next to the “KmlFile” path. As you’ll see, when you expand the view of the path the distance is now visible:

    The new path under "KmlFile"

Extra bonus info – using KML files

Alternatively using the Google Earth Path Measurer you can save the text you copied into a file using Notepad or another simple text editing program and save it as a .kml file. From there you click the “Calculate Distance from KML Path File” button instead of the “Calculate Distance from clipboard” button and the same process occurs using the file rather than your clipboard.

The measured path that is updated is instead stored in this .kml file rather than the clipboard and you go to File > Open to open the file rather than pasting the path in.


Firefox rendering colours incorrectly

I’m sure i’m not the first to come across this issue but it had me confused for a little while! The background image on my music blog was not fading correctly into the background colour of the site. This issue only seemed to occur on Firefox (and not every Firefox either…).

The explanation is here! According to Firefox’s documentation, it appears there is a “color management” feature which renders these images differently. For some reason this has been set to be the default option from Firefox 3.5. So on Firefox, my background image and the background colour were not matching up.

To change this setting back in Firefox:

  1. Type in about:config into the address bar
  2. Find “gfx.color_management.mode”
  3. Change the value from 2 to 0.
  4. Restart Firefox

Before:

With the gfx.color_management.mode still set to 2 (click to see full image)

After:

With the gfx.color_management.mode set to 0 (click to see full image)

How do I fix images so that they display correctly in Firefox 3.5+?

It looks like it might be a PNG issue in Firefox. After a bit of Googling, I came across the following steps:

  1. Download TweakPNG from here: http://entropymine.com/jason/tweakpng/
  2. Run it and open your image
  3. Delete the lines which start with gAMA, cHRM, iCCP and sRGB (these seem to be the chunks of colour profiles which mess up in Firefox)
  4. Save and replace your image on your site.

Restyling the web your way in Firefox

Ever wanted to change the way your favourite website looked? Sick of Facebook being blue? Sick of the one part of a site you use being so small on the page while all that other stuff you never look at takes up all your window space? Want to play hilarious pranks on your friends by changing the way sites appear to them? If so, read on.

What you’ll need

To change styles on websites using Firefox, you’ll need the following:

  • Firefox (duh.)
  • Stylish – The Firefox extension which makes all of this possible
  • Either a basic knowledge of HTML and CSS
  • A basic knowledge of finding elements on a website (do you know what a div is?). I use the Firebug extension for Firefox to find which styles are on different elements I want to change.

Once you have the above prerequisites you can move onto the steps below. If you don’t know HTML or CSS and can’t be bothered learning, you can always use other people’s ready made styles.

How to restyle a website your way!

In my example, we’re going to be changing the boring blue bar on the top of Facebook.

  1. Go to the website you’d like to change in Firefox.
  2. Get to the page on the site with the element you’d like to change (e.g. if you’re looking to change the blue bar in facebook, login first so that you can see the blue bar).
  3. Find the icon at the bottom right of your Firefox window.
  4. Click on it, go to “Write New Style”, then to “For thesiteyouwanttochange.com”. Click that.
  5. A new window will open which is where you can put your CSS styles. You insert them in the space between @-moz-document domain(“facebook.com”) { and } as i’ve highlighted in the screenshot below:
  6. So basically, you find what you want to change on the site and put those styles in there. You can click the “Preview” button to see the results. If styles aren’t appearing, try using !important after them to ensure they override the website’s styles. The styles I used for my Facebook example will be at the end of this post :)
  7. When you’re done. Click Save.
  8. You might need to make your own images (if you’re that dedicated to your changes), for example I had to create my own Facebook coloured images so that they’d match the new coloured background:
  9. From this point on, as long as you have Stylish enabled on your Firefox, you’ll have your new style in use instead:

    Click for the full image

My sample Facebook bar change code

With my styling changes, I basically went through the elements in Facebook’s top bar and changed the background colours, border colours and link colours. I also had to change the images used in things like the Facebook logo and buttons. The code I used to change the Facebook top bar’s colour was:

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("facebook.com") {
#blueBar {background-color: #ff6600 !important;}
#pageLogo a {background: url('http://www.patrickcatanzariti.com/wp-content/uploads/2010/08/facebookicons.png') no-repeat -21px 0 #ff6600 !important;}
#jewelCase .jewel {border: none !important;}
.jewelToggler {background-image: url('http://www.patrickcatanzariti.com/wp-content/uploads/2010/08/facebookicons.png') !important;}
#jewelRequest:hover, #jewelRequest:focus, #jewelRequest:active, #jewelMail:hover, #jewelMail:focus, #jewelMail:active, #jewelNotif:hover, #jewelNotif:focus, #jewelNotif:active {background-color: #ff6600 !important;}
#headNavOut {background-color: #eeeeee !important; border-color: #b3b3b3 !important;}
#pageNav a {color: #aaaaaa !important;}
.uiSearchInput, #navSearch .uiTypeahead, #navSearch .uiTypeahead .wrap {border-color: #b3b3b3 !important;}
#pageNav a:hover, #pageNav a:focus, #pageNav a:active {background-color: #ccc !important;}
}

Using other people’s styles instead
You don’t need to make your own styles if you don’t want to. You can also go to http://userstyles.org/ and download styles other people have made.

Well then Mr Patrick, have you made any styles for userstyles.org yet?
Funny you should mention that. I’ve made a simplified style for Omegle (the bulky interface annoys me). You can find that here: http://userstyles.org/styles/35854.

My user page on userstyles.org is here – http://userstyles.org/users/59925, if I make any future styles, they’ll appear here :)

Apologies for the slightly lousy quality of my images, I was using Paint Shop Pro for the screenshots and I think the compression settings were a bit lousy…


Softpedia, control your ads?

I was on Softpedia.com, a software download website, to get an ISO image burner so I could burn a Linux (Ubuntu for those interested) DVD. When I went to download this program I was completely amazed by the awful ads surrounding the download pages. They all seemed to decide to also have a big “Download” button within them to fool you into clicking them instead of your actual download.

My question is – why wouldn’t Softpedia control what advertisements appear on these pages? Wouldn’t these ads negatively affect the user experience on the site? I clicked on one at first while not really paying much attention. I didn’t start the download because I saw the filename and knew it wasn’t right but other less careful or less tech savvy users would be totally confused by this.

Nice and confusingly, the advertisement's download button is bigger than Softpedia's actual download button

Even more confusingly, there are now two download buttons which aren't related to Softpedia at all surrounding the text links the user is supposed to click on.

Surely as a download website, you’d ensure these sorts of advertisements aren’t on your site. I just felt like I had to rant about that. Rant finished :)


TV studios – think global

After the recent complaints over Australia’s delayed broadcast of the Lost finale along with my own experience as a follower of Supernatural still behind in the storyline (see my other unhappy blog posts about that), I’ve been left to one conclusion – TV networks need to embrace globalisation rather than fight it for their own gains.

With the internet and social media now allowing the entire world to be connected instantaneously to each other, the delaying of broadcasting television shows overseas seems to have no valid purpose outside of marketing and profit. I can see no difficulties in the digital age involved in sending a new episode of a TV show to networks all around the world in an instant, digital pirates manage it straight after a show has gone to air.

From my understanding, the real reason studios delay each premiere is for marketing purposes. The idea seems to be that while the show can be broadcast globally, the crew behind the show can’t be sent globally to promote it all at once. Understandable but surely unnecessary in the digital age. Promotional campaigns through digital media outlets like Facebook and Twitter can lead to huge success for a show, just look at the amazing success of Glee. Not only does it hit twitter’s trending list quite often but songs from the show appear regularly in iTunes top 10 downloads. Compare this to the negative effects of ignoring social media or working against it – fans of Lost in Australia had to avoid social media and carefully choose what websites they visited to avoid having the ending spoilt before it aired in Australia. Forcing viewers to wait several days just because Channel Seven decided Wednesday would give them the best ratings is disrespectful to all the fans by putting ratings before its loyal viewers.

After the season 4 finale of Dexter in America (which aired before the season had even begun to air in Australia), I almost found out the major twist at the end on Facebook without meaning to. I won’t say how much was revealed but it definitely ruined part of the surprise. After all the work that goes into planning and scripting a series, surely the last thing networks want is to have the ending ruined for international viewers?

It is here which lies a huge part of the problem. Networks want to build buzz, they want people to talk about the show over social media – it builds up a show in amazing ways. However it builds up the show internationally not just locally. They want to do this while at the same time restricting when other viewers around the world can watch the show. It just doesn’t make sense and leads to people getting the shows online rather than through the methods the studio gets paid for. Will there be a need for national copyright restrictions on services like Hulu and American TV network websites if all viewers are seeing your show within about a day or so of its initial broadcast?

Why not open up these restrictive broadcasting borders, allow your shows to be marketed to the world as the internet and social media are already doing and make things easier for everyone?


Measuring path length in Google Earth

Ever wanted to measure the path length in Google Earth but could never find out how? Turns out, within Google Earth the ruler tool and the path tool are totally separate. You can’t measure a path within Google Earth unless you go through with the ruler and mark out your path again. BUT there is another way!

Here’s a step by step guide to marking out a path and then measuring it:

Creating your path

  1. Go to Add > Path

    Adding a path

  2. Enter in a name for your path (you can also add a description)

    Naming a path

  3. Click the “Style, Color” tab and you can also change the colour of your path along with how thick the line is (can be useful when differentiating between paths you’ve created)

    Setting the path colour and width

  4. I like to click OK after this just to make sure those settings are saved.

    Clicking OK!

Marking out your path

  1. To mark out your path, you need to open that path property window again. To do this, go to the list of “My Places” on the left hand side and find your path:

    Finding the path you've created

  2. Right click your path and go to “Properties”:

    Getting back to the properties window

  3. This will bring up the properties window which appeared when you first created your path. Move this window away from the map (so you can see it and mark out spots) but don’t close that properties window. To mark out your path:
    1. Click on areas of the map to plot out your path (the latest bit of the path will appear as a blue dot, earlier parts of your path will appear as a red dot)
    2. To remove part of your path if you make a mistake, make sure the spot you want to remove is appearing as a blue dot (if it isn’t click the red dot to make it blue – this is the currently editable spot). Right click it now it is a blue dot and it will be removed. If you right click on a red dot, it will remove the dot marked blue, so you have to make sure the dot you want to remove is selected and blue (confused the crap out of me for a few moments)!
    3. Once you are done, click OK on the properties menu to save the path.

Measuring your path (updated on 7th September 2010)

Okay, so you’ve marked out your path and have it saved. The fun step now is to measure this path! Google Earth does not seem to measure it on its own but there is a program which can measure it for you.

  1. Right click on your path and choose Copy.

    Copying your path details

  2. Download the “Google Earth Path Measurerhere and install it.
  3. Run the program and first check whether or not the right units are selected (I don’t use miles, so I needed to change it to kilometers):

    Choosing kilometres using the radio button

  4. Click “Calculate distance from clipboard” to take the path you copied earlier and use it in the program:

    Clicking calculate distance from clipboard

  5. The program will ask if you would like to update the KML file. If you say yes, it will update what you have copied so that it contains the distance as well. This is useful for putting back into Google Earth (see my article about how to do that here). Just click “Yes, update” and continue:

    Updates the path you have stored with its distance

  6. The program will then display your path’s distance:

    The distance is shown next to your path's name

I’ve got information on how to put these measured paths back into Google Earth in this new post – http://www.patrickcatanzariti.com/2010/09/putting-a-measured-path-back-into-google-earth/

Hope that helps!


Supermarket computer glitch

Those self serve checkouts appear to have their downside! Took this photo taken outside Coles a short time ago (faces have been blurred for privacy). All self serve registers down!

Computer glitch

A lesson for all - computers hate you. (Click image for full size)

Technology does like to mess up on you at the worst possible time. The lesson here is: be ready to have to live without it at some point!

The Coles here actually was doing quite well with what looked like all actual registers manned by a employee. My wait time was totally non-existent despite it being peak hour. Very good job Coles!

I generally think these self serve machines are a good idea, apart from the fact it seems like everything in the store is still the same price. Why am I paying the same amount of money while having to serve myself? Surely everyone who uses the self serve checkout should get a slight discount.


Digital “stealing”?

One thing I’m often criticised for/questioned about is my reluctance to download pirated movies, music and games. I don’t download movies, music or games illegally. I don’t accept copies of pirated items and avoid watching copies of movies or playing copied games with other people whenever possible. This often frustrates, annoys or even offends some people. So today I thought I’d try and explain myself.

I’ll use movies as an example. Imagine you’ve just bought a new movie. You think it’s a great movie and lend it to your friends. They watch it and give it back when they’re done. Having purchased the movie, you’ve generally got the right to do this. It’s your DVD and you have the right to share it with others. After watching the movie, a few of your friends buy a copy or tell their friends who buy a copy or rent it at a video store. It works out well for all parties.

Isn’t borrowing a movie from a friend the same as downloading it off the internet? I still haven’t paid for it.
Personally, I don’t see it as the same thing at all. It is like saying two brothers who get into a fight is the same as World War 2. Sharing digital media on the internet is free distribution on a global scale. When you download a movie off the internet, you aren’t borrowing it, you are receiving your own copy with no idea of where it came from originally. Lending a movie to a few friends is different to duplicating this movie for anyone who wants it around the world.

What if I delete it straight after I watch it?
Sure it’s slightly better than a collection of pirated movies but it’s not without its issues. How much money did everyone involved in that movie get from the 3000 people who all just watched a copied version of one purchased DVD? Even still, how much money did they recieve when the first person who uploaded the DVD didn’t actually purchase it but stole it from a pre release version of the movie which only producers are supposed to have?

The movie studios make enough money, what does it matter if I download a movie or two? They shouldn’t make it so expensive.
Firstly, how do you know how much money each movie studio makes? Some smaller studios in Australia need to rely on government grants just to produce a TV series. Surely all that money they made from previous series would be plenty to fund the next one right? Well apparently not just as Roy Billing, one of the actors from Underbelly points out here,

“contrary to popular belief, actors are not all earning millions. Some of us do very well, some of us just eke out a living — same as in every job. But, like the life cycle of a movie, our income has many streams, unlike an average job where you get paid one wage for the job done. Those extra income streams from the movie or TV show’s initial release to DVD sales or online distribution, make the difference between working for peanuts or getting a fair whack for what we do.

Similarly the production companies that employ us rely on those income streams to make a profit, which can then be channelled back into other productions.”

So do you decide which movies you download based upon the wealth of the movie studio and/or actors? Or do you use the wealthy studios excuse for all downloaded films? (I would like to point out I don’t agree completely with Mr Billing, he believes ISPs should be held liable for illegal downloads, I don’t believe that but that’s a topic for another blog.)

Sure – some movie/tv/music/game studios charge too much or keep too much of the profits, but why does that make getting their work for free okay? How does that help actors and artists? Punishing the whole team for the wrongdoings of their bosses? What if the actors’ payslips relied on DVD purchases? Would you go into a top range clothing store and steal just because you disagreed with the prices set by management?

I don’t see the morality in taking something for free just because I disagree with how the profits are distributed or because I think they’re earning too much. If a group of people have spent months creating a piece of work for your enjoyment, why not pay them what they ask for and support them continuing their work further?

Is piracy really stealing? I haven’t taken it from anyone really.

I do want to point out that downloading movies isn’t really stealing in the usual sense. Piracy allows you to copy their work while the original is still left in possession of the store/owner. As i’ve pointed out above though, I don’t think this makes it okay.

Imagine you spent months on something, be it building a house, designing a piece of clothing, coming up with a brilliant recipe, inventing something amazing, coming up with a unique marketing strategy for your company, designing and developing a new website… pretty much whatever you can think of which falls into your expertise. Imagine that within days of releasing this piece of work it was copied almost exactly and given out for free to everyone and anyone. How would you feel?

I’m all for free movies, music, games… whatever but only if it is authorised by the artist or creator and if they are happy with what they are recieving in return.

Update: Just came across this article which says that:

“A study into Internet piracy by a Paris-based consultancy published on Wednesday showed that 1.2 million jobs in the European Union could be lost over the next five years if more is not done to clamp down on illegal downloading.”

I don’t know anything about the validity of this study or how it was conducted but it’s just food for thought.

Note: I’ll likely update and refine this post when I find better ways to explain my thinking. Feel free to discuss your thoughts and suggest ways for me to better explain this all :)


Givoogle taken down

Saves Watts logo

Saves Watts logo

Givoogle (for every search they donated money to charity, see my earlier blog post about it here) appears to have been shut down by Google “Don’t Be Evil” Inc. The Givoogle founders have set up a new site which is slightly lame now.

The new site which has been set up, Saves Watts says the following:

“WAIT! What happened to Givoogle? After raising $6,569.89 to fight cancer, Google’s lawyers shut down the site, which, they said, was in violation of Google’s terms of service.

We faced a dilemma – what to do with the more than 1 million monthly Givoogle visitors who want to save the world through searching?

We can’t raise money for charity, but we CAN save energy – SavesWatts has a black background, which uses less energy than white.”

It’s the weirdest replacement site idea I’ve seen for a while. Bit of a stretch. Why not just supply a new theme for Google which switches the colour? Why do you need a new site for that?


New comment system!

I’ve just added a new commenting system on my blog called Disqus – http://disqus.com/. I was looking for a way to thread comment replies correctly and then decided just to add Disqus and get a huge range of new functionality!
So now:

  • People can reply to comments already posted on my blog
  • You can log in using your Facebook, Twitter, Yahoo or OpenID to post comments
  • “Reactions” where you’ve posted a link to one of my blog posts on Twitter will be shown underneath the comments

The one thing it seems you can’t do is post comments using your WordPress login? I could be wrong but it seems like it doesn’t recognise when I’m logged into the site, so I’m guessing it’s not totally integrated… maybe there’s a setting I need to change somewhere…

Anyway, if people could post comments just to let me know if it’s working or not, that’d be great!

UPDATE: I’ve removed Disqus because it wasn’t linking as I’d expected it to with my WordPress site (new comments weren’t appearing in the latest comments sidebar area, they weren’t being put into my WordPress comments at all. They just get saved on Disqus instead). Instead, I’ll just have to implement threaded comments manually in WordPress but will need to adjust my theme for that and don’t really feel like doing that right now…