Page 3 of 4

Re: Famous equations

Posted: Sat Apr 28, 2018 8:07 pm
by rprosperi
Thomas Okken wrote:
Sat Apr 28, 2018 4:29 pm
So far Bob is the only one who said he can't see them. Tom L and I both can, so assuming the problem is network-related, it's pretty localized, since neither Tom L nor I are very far from where Bob is.
I see them OK in Chrome, but they don't show up in IE11, which is strange.

Embedded images are still viewable in other posts, e.g. viewtopic.php?f=14&t=166, however those are hosted on amazon, so maybe it's an issue with how drobox generates images (after manually changing the url, as was done here). I'll try do some testing to see; it's been ages since I've put stuff on dropbox, I usually use OneDrive.

Re: Famous equations

Posted: Sat Apr 28, 2018 10:20 pm
by Thomas Okken
rprosperi wrote:
Sat Apr 28, 2018 8:07 pm
I see them OK in Chrome, but they don't show up in IE11, which is strange.
The URLs return a redirect, which apparently IE doesn't like. (They do work in Edge.)

Code: Select all

/Users/thomas $ wget --server-response 'https://www.dropbox.com/s/2q6cjy2ekw6gnif/Emc2.bmp?raw=1'
--2018-04-28 16:03:16--  https://www.dropbox.com/s/2q6cjy2ekw6gnif/Emc2.bmp?raw=1
Resolving www.dropbox.com... 162.125.4.1
Connecting to www.dropbox.com|162.125.4.1|:443... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 302 Found
  Server: nginx
  Date: Sat, 28 Apr 2018 20:03:16 GMT
  Content-Type: text/html; charset=utf-8
  Content-Length: 0
  Connection: keep-alive
  Cache-Control: no-cache
  Content-Security-Policy: sandbox
  Location: https://dl.dropboxusercontent.com/content_link/cfSxVF4kNeawyZkSFbiLkj3MIpuxTS8T2H0peryRysBb1f9jml2KvNpd38gxjTIu/file
  Pragma: no-cache
  Referrer-Policy: origin-when-cross-origin
  Set-Cookie: locale=en; Domain=dropbox.com; expires=Thu, 27 Apr 2023 20:03:16 GMT; Path=/; secure
  Set-Cookie: gvc=MTI5MTQxNDUzMDk3NjU0OTQzOTczMTU4NjcyMjEwMzIwNjA5ODgz; expires=Thu, 27 Apr 2023 20:03:16 GMT; httponly; Path=/; secure
  Set-Cookie: flash=; Domain=dropbox.com; expires=Sat, 28 Apr 2018 20:03:16 GMT; Path=/; secure
  Set-Cookie: puc=; expires=Sat, 28 Apr 2018 20:03:16 GMT; httponly; Path=/; secure
  Set-Cookie: bang=; Domain=dropbox.com; expires=Sat, 28 Apr 2018 20:03:16 GMT; Path=/; secure
  Set-Cookie: t=jC-K-F2NK9D8lmeAaafaSuKt; Domain=dropbox.com; expires=Tue, 27 Apr 2021 20:03:16 GMT; httponly; Path=/; secure
  Set-Cookie: __Host-js_csrf=jC-K-F2NK9D8lmeAaafaSuKt; expires=Tue, 27 Apr 2021 20:03:16 GMT; Path=/; secure
  X-Content-Type-Options: nosniff
  X-Dropbox-Request-Id: defc18d3d2fc26117db7a37ad52f2741
  X-Frame-Options: DENY
  X-Robots-Tag: noindex, nofollow, noimageindex
  X-Xss-Protection: 1; mode=block
  Strict-Transport-Security: max-age=15552000; includeSubDomains
Location: https://dl.dropboxusercontent.com/content_link/cfSxVF4kNeawyZkSFbiLkj3MIpuxTS8T2H0peryRysBb1f9jml2KvNpd38gxjTIu/file [following]
--2018-04-28 16:03:16--  https://dl.dropboxusercontent.com/content_link/cfSxVF4kNeawyZkSFbiLkj3MIpuxTS8T2H0peryRysBb1f9jml2KvNpd38gxjTIu/file
Resolving dl.dropboxusercontent.com... 162.125.4.6
Connecting to dl.dropboxusercontent.com|162.125.4.6|:443... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Server: nginx
  Date: Sat, 28 Apr 2018 20:03:17 GMT
  Content-Type: image/x-ms-bmp
  Content-Length: 12610
  Connection: keep-alive
  referrer-policy: no-referrer
  content-disposition: inline; filename="Emc2.bmp"; filename*=UTF-8''Emc2.bmp
  x-content-type-options: nosniff
  set-cookie: uc_session=Jd5u1tSn1xXq1J8BQ0X0lg75GxHqAwOdyOcPrI75yMBny2RIWqAjvJDmTf6rEfHS; Domain=dropboxusercontent.com; httponly; Path=/; secure
  accept-ranges: bytes
  content-security-policy: referrer no-referrer
  etag: 1919n
  x-dropbox-request-id: 45862f17be01326267ea5b727e647beb
  pragma: public
  cache-control: max-age=60
  x-content-security-policy: referrer no-referrer
  x-webkit-csp: referrer no-referrer
  x-robots-tag: noindex, nofollow, noimageindex
  X-Server-Response-Time: 349
  Strict-Transport-Security: max-age=15552000; includeSubDomains
Length: 12610 (12K) [image/x-ms-bmp]
Saving to: ‘Emc2.bmp?raw=1’

100%[==========================================================================================>] 12,610      --.-K/s   in 0s      

2018-04-28 16:03:17 (96.2 MB/s) - ‘Emc2.bmp?raw=1’ saved [12610/12610]

/Users/thomas $ 
I don't know if it's the redirect itself that's causing the problem, or the fact that the second URL only works once. IE does have a habit of fetching stuff multiple times, at least I've seen it do this with <audio> tags, and if it does that for <img> tags as well, that would break here.

Re: Famous equations

Posted: Sun Apr 29, 2018 8:53 am
by pica
If I may ask, why don't you (whoever the admin is) like these images on your server? They are not very big.

Re: Famous equations

Posted: Sun Apr 29, 2018 3:04 pm
by rprosperi
pica wrote:
Sun Apr 29, 2018 8:53 am
If I may ask, why don't you (whoever the admin is) like these images on your server? They are not very big.
When the OFFIMG forum was added after a suggestion, it was explained that there is somewhat limited server space available, however folks could upload image links hosted elsewhere, as it was not clear how many images would be shared. Looking back, it's not too large after all, and it would ease a few minor problems like discussed above, but it's hard to judge if worthwhile without knowing the actual space available.

Re: Famous equations

Posted: Sun Apr 29, 2018 3:09 pm
by grsbanks
pica wrote:
Sun Apr 29, 2018 8:53 am
If I may ask, why don't you (whoever the admin is) like these images on your server? They are not very big.
It's not so much to do with the size of the attachments as it is to do with their potential number.

Each file on a Linux server uses one inode regardless of the size of the file. The forum is not the only "site" served up by the SwissMicros server and, although the number of inodes available on the filesystem is going to be pretty big, it is finite and I don't want to get anywhere near exhausting it. Also, the chances are (I admit I've not looked at this closely) that all the attachments are dumped into the same directory and the performance of any filesystem (even ext2 and its descendants) suffers when there are large numbers of files in the same directory.

Depending on how things go I might reverse this decision later on but please don't assume that I definitely will.

Re: Famous equations

Posted: Sun Apr 29, 2018 3:52 pm
by Thomas Okken
grsbanks wrote:
Sun Apr 29, 2018 3:09 pm
pica wrote:
Sun Apr 29, 2018 8:53 am
If I may ask, why don't you (whoever the admin is) like these images on your server? They are not very big.
It's not so much to do with the size of the attachments as it is to do with their potential number.

Each file on a Linux server uses one inode regardless of the size of the file. The forum is not the only "site" served up by the SwissMicros server and, although the number of inodes available on the filesystem is going to be pretty big, it is finite and I don't want to get anywhere near exhausting it. Also, the chances are (I admit I've not looked at this closely) that all the attachments are dumped into the same directory and the performance of any filesystem (even ext2 and its descendants) suffers when there are large numbers of files in the same directory.

Depending on how things go I might reverse this decision later on but please don't assume that I definitely will.
Maybe 200 images so far. That's 2.4 megabytes.
What limit do you think you need to worry about?

Yes, the filesystem is limited, and so is the number of inodes, but both of those numbers are massively larger than what's needed for hundreds, even thousands or tens of thousands, of skins to be stored on the forum server.

Re: Famous equations

Posted: Sun Apr 29, 2018 4:18 pm
by Thomas Okken
rprosperi wrote:
Sun Apr 29, 2018 3:04 pm
pica wrote:
Sun Apr 29, 2018 8:53 am
If I may ask, why don't you (whoever the admin is) like these images on your server? They are not very big.
When the OFFIMG forum was added after a suggestion, it was explained that there is somewhat limited server space available, however folks could upload image links hosted elsewhere, as it was not clear how many images would be shared. Looking back, it's not too large after all, and it would ease a few minor problems like discussed above, but it's hard to judge if worthwhile without knowing the actual space available.
The tiny amount of space consumed by offimg images, and their small number, isn't the only reason to store them on the forum server instead of elsewhere. There's also the issue of link rot. When an image is hosted on the forum server, it will remain as long as the forum remains; images hosted on dropbox or imgur or wherever will disappear whenever whoever posted them cancels their account or moves things around.

We've been here before...

Re: Famous equations

Posted: Sun Apr 29, 2018 4:49 pm
by rprosperi
Thomas Okken wrote:
Sun Apr 29, 2018 4:18 pm
The tiny amount of space consumed by offimg images, and their small number, isn't the only reason to store them on the forum server instead of elsewhere. There's also the issue of link rot. When an image is hosted on the forum server, it will remain as long as the forum remains; images hosted on dropbox or imgur or wherever will disappear whenever whoever posted them cancels their account or moves things around.

We've been here before...
Yeah, it would seem that if there were enough files posted to threaten any kind of real-world limits, that would mean the SM traffic was so busy that it would be a very good problem to have, but since it is on a shared server with no insights into what else happens there, it's impossible to say how much is too much.

A little exploring with IE11, Chrome, Edge, etc. have confirmed the issue viewing links shared from dropbox is indeed simply limited to IE11. It may be an issue unique to the synergy of the forum software and the redirect Thomas described, but bottom line is they just aren't viewable inline.

Re: Famous equations

Posted: Sun Apr 29, 2018 5:03 pm
by Walter
Works very well with Firefox -- IE11 isn't recommended anyway. ;)

Re: Famous equations

Posted: Sun Apr 29, 2018 11:48 pm
by rprosperi
Walter wrote:
Sun Apr 29, 2018 5:03 pm
...IE11 isn't recommended anyway.
Not recommended by whom?

It's still supported/updated by MS and is the 2nd or 3rd most-used browser in the world, despite it's age. It will not remain so for too much longer (a year max?) but at the moment it's hanging in there. I'll be bummed when it's displaced as it's my favorite browser to use in terms of features, even if not for performance or compatibility.