Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

How to link in pictures without stealing bandwidth!

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » Archives » General Discussion (01/01/06 through 01/22/2007) Donate to DU
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:07 PM
Original message
How to link in pictures without stealing bandwidth!
This works for most pictures. 

Say you have a picture you want to use in a posting; 

http://foobar.com/JulieNewmar.jpg 

Now, if you just link it to your LJ posting, you immediately
start stealing bandwidth from foobar.com.

This is simply not a nice thing to do as some websites pay for
every byte they transfer. 

If you change that URL a little; 

http://foobar.com.nyud.net:8090/JulieNewmar.jpg 

It then uses a free public caching service. It gets fetched
ONCE from foobar.com, and they are not made bankrupt as each
of LJ's horny guys look at your Catwoman picture. 

It helps to preview the posting before you hit post as this
gets the caching service to do the initial fetch of the
picture, which can be slow, before your posting appears to the
public. Sometimes you need to wait a few minutes and
re-preview it before everything will appear as it should, and
some web servers will not play ball with the cache, and this
is how you weed those out. 

ENJOY!
Printer Friendly | Permalink |  | Top
derby378 Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:09 PM
Response to Original message
1. So, do you use that same tag on each image?
If so, I'll be sure to keep it in mind.
Printer Friendly | Permalink |  | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:11 PM
Response to Reply #1
2. Yes.
Just add .nyud.net:8090 to the end of address part of the URL
Printer Friendly | Permalink |  | Top
 
SoCalDem Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:33 PM
Response to Reply #2
8. testing...(on preview, it did not work.)
http://socaldem.smugmug.com/photos/54727462-L.jpg.nyud.net:8090
Printer Friendly | Permalink |  | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:36 PM
Response to Reply #8
9. This thread seems to be frozen in plain text mode.
Uncheck the little "Message Format" box  above the
Subject bar in the message editor and re-post this.

Correct syntax is

http://socaldem.smugmug.com.nyud.net:8090/photos/54727462-L.jpg
Printer Friendly | Permalink |  | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:36 PM
Response to Reply #9
10. Thus...
Printer Friendly | Permalink |  | Top
 
SoCalDem Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:45 PM
Response to Reply #10
13. I took you literally when you said "at the end of the url"
Edited on Mon Feb-06-06 06:46 PM by SoCalDem
:)

and deliberately checked the box :)
Printer Friendly | Permalink |  | Top
 
hootinholler Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 07:25 PM
Response to Reply #13
19. Ah, there's the rub, he said address part...
A URL (which is very similar to a URI) consists of these bits: <protocol>://<address>/<path to resource>?<query> of which, the protocol and address are mandatory. Refer to the nice example in your address bar above ;)

<protocol>: How the 2 computers will 'negotiate' the return of the thingie to be fetched. (ex: http: ftp: {there should be a BitTorrent protocol})

<address>: the FQDN (fully qualified domain name) of the host providing the resource and the port number that protocol is answered on. HTTP by default is port 80

<path>: where on the hard drives the resource lives.

<query>: additional parameres that the server may need to identify the resource, often name:value pairs used by programs, like this forum. (?az=view_all&...)

So, now that your eyes are good and glazed, what's happening here is that the machine named nyud.net is running an HTTP server on port 8090. When it gets a request for something, it strips out its own name and port from the URI and then it checks to see if it got it already, and if not, it goes and gets one copy that it keeps hanging around for a while to send back to anyone else that wants it.

I haven't looked at it yet. Theoretically it should be able to handle requests for any http server thingie served, meaning entire web pages. Crafting URLs to pass through several of these services would make it a real PITA to track someone down for looking at say a dissenting website.

The results for dynamic pages like DU, would be dissapointing at best, but possibly could be used to store a snapshot of a thread if something interesting happens.

-Hoot
Printer Friendly | Permalink |  | Top
 
KarenS Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:15 PM
Response to Original message
3. ThankYou for this information =) N/T
Printer Friendly | Permalink |  | Top
 
Steve A Play Donating Member (638 posts) Send PM | Profile | Ignore Mon Feb-06-06 06:25 PM
Response to Original message
4. The Coral Content Distribution Network
Only fair to give credit where credit is due!

http://www.coralcdn.org/

What is Coral?

Coral is peer-to-peer content distribution network, comprised
of a world-wide network of web proxies and nameservers. It
allows a user to run a web site that offers high performance
and meets huge demand, all for the price of a $50/month cable
modem.

Publishing through Coral is as simple as appending a short
string to the hostname of objects' URLs; a peer-to-peer DNS
layer transparently redirects browsers to participating
caching proxies, which in turn cooperate to minimize load on
the source web server. Sites that run Coral automatically
replicate content as a side effect of users accessing it,
improving its availability. Using modern peer-to-peer indexing
techniques, Coral will efficiently find a cached object if it
exists anywhere in the network, requiring that it use the
origin server only to initially fetch the object once.

One of Coral's key goals is to avoid ever creating hot spots
in its infrastructure. It achieves this through a novel
indexing abstraction we introduce called a distributed sloppy
hash table (DSHT), and it creates self-organizing clusters of
nodes that fetch information from each other to avoid
communicating with more distant or heavily-loaded servers.

A preliminary deployment of CoralCDN has been online since
March 2004, running on the PlanetLab testbed. As of November
2005, it receives almost 20 million requests per day from over
1 million unique clients.

Steven P. :kick:
Printer Friendly | Permalink |  | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:28 PM
Response to Reply #4
5. Thanks!
I was trying to keep the information simple to digest and
remember, but when I repost it in the future I will include
the URL.
Printer Friendly | Permalink |  | Top
 
hootinholler Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:49 PM
Response to Reply #4
16. I hate it when my hash table is sloppy
I tend to loose hash that way :evilgrin:

Seriously, I need to have a look at this, thanks for the
pointer.

-Hoot

Hmmm. did we loose smilies?
Printer Friendly | Permalink |  | Top
 
Steve A Play Donating Member (638 posts) Send PM | Profile | Ignore Mon Feb-06-06 08:13 PM
Response to Reply #16
21. Looks like the new server still has a few bugs
It appears that it's holding the option choice checked in the
OP and forcing it on the rest of the thread. Fascist software!


Steven P.
Printer Friendly | Permalink |  | Top
 
emulatorloo Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:29 PM
Response to Original message
6. kick and nominating n/t
Printer Friendly | Permalink |  | Top
 
ET Awful Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:32 PM
Response to Original message
7. One thing to keep in mind though . . . the :8090 is a port number and it
Edited on Mon Feb-06-06 06:33 PM by ET Awful
may be blocked by many firewalls.  8080 is default for HTTP if
I'm not mistaken, 8090 is not a common port, so many firewalls
may block it by default.  So, those viewing from work may be
SOL.

It's still better than stealing other folks bandwidth :)
Printer Friendly | Permalink |  | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:37 PM
Response to Reply #7
11. Right... But the coral cache is becoming well-known.
And I expect more and more rule sets to have it enabled for
that address only.
Printer Friendly | Permalink |  | Top
 
Jose Diablo Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:42 PM
Response to Reply #7
12. Gonzales told us today it's ok to steal
just as long as it's for a good cause. So, don't feel so
guilty about stealing bandwidth. Everyone is doing it:
advertisers, the government, everyone. Go ahead.
Printer Friendly | Permalink |  | Top
 
Renew Deal Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:48 PM
Response to Reply #7
15. 80 is the default port.
Edited on Mon Feb-06-06 06:49 PM by Bleachers7
Not 8080.

http://www.iana.org/assignments/port-numbers

http-alt 8080/tcp HTTP Alternate (see port 80)
http-alt 8080/udp HTTP Alternate (see port 80)
Printer Friendly | Permalink |  | Top
 
ET Awful Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 07:12 PM
Response to Reply #15
18. 8080 is the alternate HTTP port it would appear.
That's why I put the "if I'm not mistaken" disclaimer in :P
Printer Friendly | Permalink |  | Top
 
hootinholler Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 07:30 PM
Response to Reply #7
20. Http default is port 80..
80xx are common ports used for application servers. 

-Hoot
Printer Friendly | Permalink |  | Top
 
Renew Deal Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 06:47 PM
Response to Original message
14. Thanks
But you realize that people behind firewalls will probably not
be able to see them.  Either way, this is much needed. 
Thanks!  :yourock:
Printer Friendly | Permalink |  | Top
 
EFerrari Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 07:00 PM
Response to Original message
17. Thanks from the clueless, Ben!
:)
Printer Friendly | Permalink |  | Top
 
bud E. holly Donating Member (82 posts) Send PM | Profile | Ignore Mon Feb-06-06 08:41 PM
Response to Original message
22. Is there any way to
paste an image from your own hard drive into a post?
Printer Friendly | Permalink |  | Top
 
chat_noir Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-06-06 08:56 PM
Response to Reply #22
23. Image Shack - great photo resource
http://www.imageshack.us/

You can upload from your hard drive or an URL.  The post the
image here - choice of full size or thumbnail.


Another option is signing up for a free Photobucket account:

http://www.photobucket.com/
Printer Friendly | Permalink |  | Top
 
bud E. holly Donating Member (82 posts) Send PM | Profile | Ignore Mon Feb-06-06 09:06 PM
Response to Reply #23
24. Thank-you!
I knew there had to be a way, since I've seen a lot images
around here that had to be personal photos.
Many thanks:) 
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Fri Apr 26th 2024, 01:48 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » Archives » General Discussion (01/01/06 through 01/22/2007) Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC