Link to current comic?

Things that don't belong anywhere else. (Check first).

Moderators: Moderators General, Magistrates, Prelates

Link to current comic?

Postby lynkyn » Fri Mar 16, 2012 3:46 pm UTC

Is there any link to the newest comic? Something like "http://www.xkcd.com/newest.png"? I'm working on a page to use for my homepage, and I want to have the newest one on it, but it'd be pointless if I had to manually reset it. Anyone know of this?
User avatar
lynkyn
 
Posts: 12
Joined: Thu Dec 01, 2011 11:04 pm UTC

Re: Link to current comic?

Postby Menacing Spike » Fri Mar 16, 2012 4:31 pm UTC

Don't hotlink to the comic, that's being a dick.

Just make a script to imgur the frontpage comic now and then. ("if previous http://imgs.xkcd.com/comics/*.png is not found on the page then search for a new png, host it, update link").
User avatar
Menacing Spike
 
Posts: 2767
Joined: Wed Jan 06, 2010 8:25 pm UTC
Location: Fighting the Zombie.

Re: Link to current comic?

Postby lynkyn » Fri Mar 16, 2012 5:00 pm UTC

Menacing Spike wrote:Don't hotlink to the comic, that's being a dick.

Just make a script to imgur the frontpage comic now and then. ("if previous http://imgs.xkcd.com/comics/*.png is not found on the page then search for a new png, host it, update link").


What's wrong with direct linking? I'm the only one who will load it, it's not like it will bring down the server.
User avatar
lynkyn
 
Posts: 12
Joined: Thu Dec 01, 2011 11:04 pm UTC

Re: Link to current comic?

Postby K-R » Fri Mar 16, 2012 5:09 pm UTC

Is there a reason you can't just go to the actual XKCD site?
K-R
 
Posts: 1013
Joined: Thu Mar 15, 2012 6:42 pm UTC
Location: Perth, Australia

Re: Link to current comic?

Postby Jacque » Fri Mar 16, 2012 5:11 pm UTC

lynkyn wrote:
Menacing Spike wrote:Don't hotlink to the comic, that's being a dick.

Just make a script to imgur the frontpage comic now and then. ("if previous http://imgs.xkcd.com/comics/*.png is not found on the page then search for a new png, host it, update link").


What's wrong with direct linking? I'm the only one who will load it, it's not like it will bring down the server.

Etiquette?

Now, by 'homepage' do you mean your website homepage, or do you mean a custom page that you're using as the first page your browser loads on new window/tab?
User avatar
Jacque
a member of shro's band
 
Posts: 855
Joined: Thu Apr 19, 2007 11:28 pm UTC
Location: Ann Arbor, MI

Re: Link to current comic?

Postby lynkyn » Fri Mar 16, 2012 7:24 pm UTC

Jacque wrote:
lynkyn wrote:
Menacing Spike wrote:Don't hotlink to the comic, that's being a dick.

Just make a script to imgur the frontpage comic now and then. ("if previous http://imgs.xkcd.com/comics/*.png is not found on the page then search for a new png, host it, update link").


What's wrong with direct linking? I'm the only one who will load it, it's not like it will bring down the server.

Etiquette?

Now, by 'homepage' do you mean your website homepage, or do you mean a custom page that you're using as the first page your browser loads on new window/tab?


First page my browser loads :P. Between the following, I see nothing wrong with this:
1. He makes all comics direct-linkable specifically so people can hotlink them, it'd just be more convenient to see the newest one, rather than one in specific.
2. If I could set xkcd.com as my homepage either way, a hotlink to the image would use equal or less bandwidth.
User avatar
lynkyn
 
Posts: 12
Joined: Thu Dec 01, 2011 11:04 pm UTC

Re: Link to current comic?

Postby SecondTalon » Fri Mar 16, 2012 7:30 pm UTC

lynkyn wrote:Is there any link to the newest comic? Something like "http://www.xkcd.com/newest.png"? I'm working on a page to use for my homepage, and I want to have the newest one on it, but it'd be pointless if I had to manually reset it. Anyone know of this?


Can you not just push the rss feed on to your homepage?
"When Archie is too progressive for you, that's how science identifies you as an earlier species" - Luke McKinney, Cracked.com

Honestly, if you're talking BBQ and 'a guy in a parking lot' isn't part of the conversation, something's wrong."
User avatar
SecondTalon
SexyTalon
 
Posts: 21557
Joined: Sat May 05, 2007 2:10 pm UTC
Location: Louisville, Kentucky, USA, Mars. HA!

Re: Link to current comic?

Postby lynkyn » Fri Mar 16, 2012 7:31 pm UTC

SexyTalon wrote:
lynkyn wrote:Is there any link to the newest comic? Something like "http://www.xkcd.com/newest.png"? I'm working on a page to use for my homepage, and I want to have the newest one on it, but it'd be pointless if I had to manually reset it. Anyone know of this?


Can you not just push the rss feed on to your homepage?


Didn't think of that :D
User avatar
lynkyn
 
Posts: 12
Joined: Thu Dec 01, 2011 11:04 pm UTC

Re: Link to current comic?

Postby PM 2Ring » Sat Mar 17, 2012 5:38 am UTC

Also see Getting the most recent comic in the Coding forum.
User avatar
PM 2Ring
 
Posts: 2591
Joined: Mon Jan 26, 2009 3:19 pm UTC
Location: Mid north coast, NSW, Australia


Return to General

Who is online

Users browsing this forum: Bakstoola, Farpappestals, Fekeenuisance, gametaku, INsessentenof, MobTeeseboose, sarjairee, shealtket, Slageammalymn, SlefBalia, spanceapoke, Tebychacy and 10 guests