OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

5 Pages V  « < 2 3 4 5 >  
Reply to this topicStart new topic
> Fix The Attachments
InSearchOf
post Apr 27 2007, 04:18 AM
Post #46





Group: Admin
Posts: 1,210
Joined: 20-January 06
From: York, Pennsylvania
Member No.: 8,961



QUOTE(Meanie @ Apr 27 2007, 01:06 AM)
QUOTE(Drake01 @ Apr 27 2007, 11:14 AM)
QUOTE(InSearchOf @ Apr 26 2007, 07:18 PM)
.bmp  image/x-MS-bmp   
.gif  image/gif 
.gz  application/x-gzip 
.hqx  application/mac-binhex40 
.htm  application/octet-stream 
.html  application/octet-stream 
.ico  image/ico 
.ipk  application/x-tar 
.jpeg  image/jpeg 
.jpg  image/jpeg

Above is an example of some of the mime types listed which is the same pre and post PHP update.
*

I just clicked on a .jpg attachment and the Page Info window tells me the type is text/html. Somehow these mime types are not being passed to my browser (Firefox).
*



CODE
.htm application/octet-stream
.html application/octet-stream


shouldn't these be html/text ?
*



Yes... but thats beside the point! :-)

Late
Go to the top of the page
 
+Quote Post
Meanie
post Apr 27 2007, 04:40 AM
Post #47





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(InSearchOf @ Apr 27 2007, 10:18 PM)
QUOTE(Meanie @ Apr 27 2007, 01:06 AM)
QUOTE(Drake01 @ Apr 27 2007, 11:14 AM)
QUOTE(InSearchOf @ Apr 26 2007, 07:18 PM)
.bmp  image/x-MS-bmp   
.gif  image/gif 
.gz  application/x-gzip 
.hqx  application/mac-binhex40 
.htm  application/octet-stream 
.html  application/octet-stream 
.ico  image/ico 
.ipk  application/x-tar 
.jpeg  image/jpeg 
.jpg  image/jpeg

Above is an example of some of the mime types listed which is the same pre and post PHP update.
*

I just clicked on a .jpg attachment and the Page Info window tells me the type is text/html. Somehow these mime types are not being passed to my browser (Firefox).
*



CODE
.htm application/octet-stream
.html application/octet-stream


shouldn't these be html/text ?
*



Yes... but thats beside the point! :-)

Late
*



and why not? currently when clicking on an attachment, the server sends the content back correctly as an octet-stream, but the accompanying header is wrongly being sent back as html/text which is clearly a mismatch and the browser obediently displays the octet-string as text as instructed by the header...
Go to the top of the page
 
+Quote Post
InSearchOf
post Apr 27 2007, 05:10 AM
Post #48





Group: Admin
Posts: 1,210
Joined: 20-January 06
From: York, Pennsylvania
Member No.: 8,961



QUOTE(Meanie @ Apr 27 2007, 08:40 AM)
QUOTE(InSearchOf @ Apr 27 2007, 10:18 PM)
QUOTE(Meanie @ Apr 27 2007, 01:06 AM)
QUOTE(Drake01 @ Apr 27 2007, 11:14 AM)
QUOTE(InSearchOf @ Apr 26 2007, 07:18 PM)
.bmp  image/x-MS-bmp   
.gif  image/gif 
.gz  application/x-gzip 
.hqx  application/mac-binhex40 
.htm  application/octet-stream 
.html  application/octet-stream 
.ico  image/ico 
.ipk  application/x-tar 
.jpeg  image/jpeg 
.jpg  image/jpeg

Above is an example of some of the mime types listed which is the same pre and post PHP update.
*

I just clicked on a .jpg attachment and the Page Info window tells me the type is text/html. Somehow these mime types are not being passed to my browser (Firefox).
*



CODE
.htm application/octet-stream
.html application/octet-stream


shouldn't these be html/text ?
*



Yes... but thats beside the point! :-)

Late
*



and why not? currently when clicking on an attachment, the server sends the content back correctly as an octet-stream, but the accompanying header is wrongly being sent back as html/text which is clearly a mismatch and the browser obediently displays the octet-string as text as instructed by the header...
*



I was joking... but htm and html has been changed to text/html...

Still looking for a fix

Late
Go to the top of the page
 
+Quote Post
sdjf
post Apr 27 2007, 07:01 AM
Post #49





Group: Members
Posts: 454
Joined: 17-November 05
Member No.: 8,551



Appreciate what you are doing. Getting the examples also explains why I always had trouble with some downloads before the upgrade as well.

Late, maybe it needs a reboot or something similar to notice your changes? (cringing...another brief downage??)

My mime.types file also shows:

application/x-gtar gtar tgz

But it sounds more like that list isn't getting read by something...to point out what is probably already obvious to you.

sdjf
Go to the top of the page
 
+Quote Post
Drake01
post Apr 27 2007, 02:58 PM
Post #50





Group: Members
Posts: 226
Joined: 29-March 06
Member No.: 9,483



QUOTE(sdjf @ Apr 27 2007, 10:01 AM)
Appreciate what you are doing. 
*

Yeah, I'd like to emphasize that I definitely appreciate the time ISO is spending on this. I didn't mean to sound terse in my last response and I hope it didn't come across that way.
Go to the top of the page
 
+Quote Post
sdjf
post Apr 29 2007, 12:30 AM
Post #51





Group: Members
Posts: 454
Joined: 17-November 05
Member No.: 8,551



QUOTE(Drake01 @ Apr 27 2007, 03:58 PM)
QUOTE(sdjf @ Apr 27 2007, 10:01 AM)
Appreciate what you are doing. 
*

Yeah, I'd like to emphasize that I definitely appreciate the time ISO is spending on this. I didn't mean to sound terse in my last response and I hope it didn't come across that way.
*



No, I didn't think that. You were helping out with more data. I have just had a horrible time because of the attachment problem, and wanted ISO and Meanie also to know how much I appreciate their taking the problem seriously and working on it instead of telling me to install a fourth browser on my Z.

I am wondering, though, what, if anything can be done about attachments that have no extension. Sometimes they are binaries, and sometimes they are text. There are times when I need to send something to someone who may not be able to unzip a file.

What are files without extensions are destined to be considered?

sdjf
Go to the top of the page
 
+Quote Post
desertrat
post Apr 29 2007, 03:56 AM
Post #52





Group: Members
Posts: 742
Joined: 15-October 05
From: Gulag, Siberia
Member No.: 8,322



QUOTE(sdjf @ Apr 29 2007, 08:30 AM)
What are files without extensions are destined to be considered?
Apart from the common image files (jpeg, png etc), all other files should be sent as "application/octet-stream" then the user will have the choice of "save file as ..." or "open with ..." (the latter if the browser allows).
Go to the top of the page
 
+Quote Post
Ling
post May 4 2007, 04:29 PM
Post #53





Group: Members
Posts: 352
Joined: 3-June 04
From: Virginia, US
Member No.: 3,563



Image files still produce a screen full of characters. Just tried it. crap
Go to the top of the page
 
+Quote Post
tux
post May 17 2007, 12:49 AM
Post #54





Group: Members
Posts: 450
Joined: 12-August 03
From: Leeds, UK
Member No.: 346



QUOTE(Ling @ May 5 2007, 12:29 AM)
Image files still produce a screen full of characters. Just tried it. crap
*

cool.gif

I just clicked on an image in a post.... same symptoms. I presume this means that attached files and images in posts work in the same way.. or not! sad.gif

Are this issue and the non working ZUG downloads issue connected? rolleyes.gif

Oh well, somebody is working on it because some things have been restored. Thank you to whichever admin(s) have been working on this. biggrin.gif

Please keep up the good work.
Go to the top of the page
 
+Quote Post
sdjf
post May 17 2007, 08:05 AM
Post #55





Group: Members
Posts: 454
Joined: 17-November 05
Member No.: 8,551



QUOTE(tux)
Are this issue and the non working
  ZUG downloads issue connected?


You do know that in the meantime some, if not all, of the ZUG downloads can be obtained using wget, didn't you? At least it's worked for me on the little testing I did.

sdjf
Go to the top of the page
 
+Quote Post
tux
post May 17 2007, 08:43 AM
Post #56





Group: Members
Posts: 450
Joined: 12-August 03
From: Leeds, UK
Member No.: 346



QUOTE(sdjf @ May 17 2007, 04:05 PM)
QUOTE(tux)
Are this issue and the non working
  ZUG downloads issue connected?


You do know that in the meantime some, if not all, of the ZUG downloads can be obtained using wget, didn't you? At least it's worked for me on the little testing I did.

sdjf
*


cool.gif Thanks for the tip biggrin.gif

Feel like posting an example?

My wgetting success has been in using the script for downloading feeds without hurting the bandwith too much. You know, the one that downloads the newer packages only. It appears somewhere in the posts about the cacko feed at stupkid's site. I was able to alter it to do the same for other feeds but I'm a bit unsure about how to get at the ZUG downloads. After all it would be counter productive to download the lot wouldn't it?

It might be handy to post a howto for the new users that keep asking for things that were/are in the downloads so that they could download specific targets. Any volunteers??


Cheers wink.gif

PS I'm not very clever with wget myself but I'll report back with any successful results.
Go to the top of the page
 
+Quote Post
sdjf
post May 17 2007, 10:23 AM
Post #57





Group: Members
Posts: 454
Joined: 17-November 05
Member No.: 8,551



Here's a no frills basic wget command. The url for the feed index is:
http://www.zaurususergroup.org/feed

That shows you all the packages. You pick the name of what you want, and tack it on to the end of the above url. So, if I want hancompresenter_1.6-lite-1_arm.ipk, I would enter (all one one line):

wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk Do not use wildcards...use the full url and package name.. Note the BBS software has screwed up my urls but they must be written out in full without any dots]

And away we go... There are lots of complicated options, like how to put the file in a different location. If I want something to go on my SD card, I would enter:

wget -P /mnt/card/ http://blablabla.ipk

No time to explain all the options but this should get you started. Here's proof it works:
# wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
--11:19:12-- http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
=> `hancompresenter_1.6-lite-1_arm.ipk'
Connecting to www.zaurususergroup.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 118,393 [text/plain]

0K .......... .......... .... [I ran out of room for this post but that's how a download looks to start with] sdjf
Go to the top of the page
 
+Quote Post
tux
post May 17 2007, 01:01 PM
Post #58





Group: Members
Posts: 450
Joined: 12-August 03
From: Leeds, UK
Member No.: 346



QUOTE(sdjf @ May 17 2007, 06:23 PM)
Here's a no frills basic wget command.  The url for the feed index is:
    http://www.zaurususergroup.org/feed

That shows you all the packages.  You pick the name of what you want, and tack it on to the end of the above url.  So, if I want hancompresenter_1.6-lite-1_arm.ipk, I would enter (all one one line):

wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk  Do not use wildcards...use the full url and package name.. Note the BBS software has screwed up my urls but they must be written out in full without any dots]

And away we go...  There are lots of complicated options, like how to put the file in a different location.  If I want something to go on my SD card, I would enter:

wget -P /mnt/card/  http://blablabla.ipk

No time to explain all the options but this should get you started.  Here's proof it works:
# wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
--11:19:12--  http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
          => `hancompresenter_1.6-lite-1_arm.ipk'
Connecting to www.zaurususergroup.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 118,393 [text/plain]

    0K .......... .......... .... [I ran out of room for this post but that's how a download looks to start with]  sdjf
*

cool.gif Sorry SDJF, I'm feeling disappointed now! I must have misled you. sad.gif

I was talking about the ZUG Downloads not the feed. The feed is now back up in operation from the link on the ZUG main page, thanks again admin(s). Even when it wasn't, it was possible to do as you explain and wget individual files. I suppose you might be interested in this script for downloading the whole feed and for then keeping it updated by simply downloading the changes? I take no credit for it I grabbed it from one of the Cacko threads and edited it to use on the ZUG feed.

Thanks for your examples, they'll help me make more sense of wget. smile.gif

What I'd like for Christmas is for the admins to restore the downloads, a collection of all sorts of roms, packages, scripts and generally interesting and useful stuff for the Zs!

Actually my birthday is in August so I'd rather have the downloads back before then for a present!! biggrin.gif

cheers
Go to the top of the page
 
+Quote Post
tux
post May 17 2007, 01:06 PM
Post #59





Group: Members
Posts: 450
Joined: 12-August 03
From: Leeds, UK
Member No.: 346



cool.gif I tried to attach the script. It failed. I'm renaming the file to have a zip extension. That should let me attach it. Don't be fooled it is a .sh file. If you download it just replace the extension zip with the extension sh. biggrin.gif

You will of course have to right click on the attachment and rename it to getzugfeed.sh

The broken bits on this site really frustrate me! dry.gif
Attached File(s)
Attached File  getzugfeed.zip ( 237bytes ) Number of downloads: 16
 
Go to the top of the page
 
+Quote Post
sdjf
post May 17 2007, 05:40 PM
Post #60





Group: Members
Posts: 454
Joined: 17-November 05
Member No.: 8,551



So where the heck is (or was) the ZUG downloads? And what's the difference? 8^/

if it isn't too dumb a question smile.gif

sdjf
Go to the top of the page
 
+Quote Post

5 Pages V  « < 2 3 4 5 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th September 2014 - 05:36 PM