Berkeley CSUA MOTD:Entry 46218
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2007/4/6-8 [Computer/SW/WWW/Browsers, Computer/SW/Languages/Misc] UID:46218 Activity:moderate
4/6     I got a url that looks like
        http://www.whatever.com/祢.mp3
        How should I encode this link so that every browser (including lynx)
        can understand it?
        \_ If your file really is named 祢, you should encode it as
           http://www.whatever.com/%26%2331074%3B.mp3 (replace each weird
           character with a percent sign and the character's ASCII value in
           hex).  If your file is actually named with a Chinese character,
           it's more complicated.  With a modern server and browser, you can
           just put a Chinese character right into the URL.  If you have a
           modern server but you want to support old or non-Chinese browsers,
           convert the characters to UTF-8, break them into bytes, and
           percent-encode each byte -- for your example, that would become
           http://www.whatever.com/%E7%A5%A2.mp3  If you have an old server,
           do the same thing, but instead of UTF-8, use whatever encoding
           the server uses for filenames (probably Big5 or GB).  --mconst
           \_ Yes, that's what I am looking for.
           \_ Yes, that's what I am looking for.  Can you show me code example
              of your conversion?
        \_ Is the 祢 literal?  That is, is that the file name on disk,
           or is that already an HTML entity?  If it's an HTML entity,
           every browser should recognize it, although if you try to type
           it in on the command line, the shell will freak out.  That's
           not a lynx issue and there's nothing you can do about it.  -tom
           \- er why should the shell "freak out" if you quote it properly?
             lynx -dump http://www.whatever.com/\&\#31074\;.mp3 > /dev/null
              \_ Obviously you can quote it in the shell, but it can't be
                 both quoted for the shell and a valid URL at the same
                 time.  -tom
                 \_ single quotes are your friend.
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2009/10/1-21 [Computer/SW/WWW/Browsers] UID:53417 Activity:moderate
10/1    I am thinking of installing firefox on soda under my home directory.
        Will this make me a hozer?
        \_ Possibly. I wonder if we should have another VM for that...btw,
           I remember someone saying they're glad we're not on FreeBSD
           anymore, but last I checked, a bunch of our stuff is on FreeBSD,
           but our login server is not.
	...
2009/7/4-16 [Computer/SW/WWW/Browsers] UID:53111 Activity:low
7/4     Is there a web browser available on soda?  My employer has a firewall
        blocking some web sites.
        \_ How about setting up a web proxy on Soda?
          \_ Use links :)
                \_ lynx?
        \_ Best text only web browser is elinks, it even supports some
	...
2007/7/31-8/3 [Computer/SW/WWW/Browsers, Uncategorized/Profanity, Academia/Berkeley/CSUA/Troll] UID:47483 Activity:nil 80%like:47481
7/31    wow. NSFW
        http://www.solosuck.com
        \_ oops. sorry.  NOT SAFE FOR WORK.
           \_ heh, I "lynx -dump"ed it to find that out
	...
2007/4/11 [Computer/SW/WWW/Browsers] UID:46256 Activity:nil
4/11    Anybody know what's up with youtube?   lynx -head -dump http://www.youtube.com
        HTTP/1.1 404 Not Found
	...
2006/6/26-28 [Computer/SW/WWW/Browsers] UID:43503 Activity:nil
6/26    anyone have problem using lynx w/in pine? I can't see the error
        but it looks like it is looking in /usr/share/bin.
	...
2006/4/22-25 [Computer/SW/WWW/Browsers] UID:42801 Activity:nil
4/21    worst thing ever
        http://youtube.com/watch?v=2FRMntm1Uec
        \_ Oh. My. God. Big. Fat. Belly. Disturbed am I? Yes.
        \_ I love lynx/w3c.  Anything worth seeing can still be seen on them
           and any danh url can not..  mmm =)
           \_ You can compile javascript and crazy pnm-to-ascii support
	...
2006/1/14-17 [Computer/SW/Unix] UID:41375 Activity:low
1/13    Does anyone know a free server side HTTP parser? (In C/C++)
        \_ http://www.google.com/search?q=HTTP+parser
           \_ Yeah, none of those seem to do what I need.
        \_ speaking of which, does anyone know of commandline unix util that
           will strip all html from a text file?
           \_ lynx
	...
2006/1/3-5 [Computer/SW/Unix] UID:41211 Activity:moderate
1/3     what's the best terminal program (I just want to ssh from my laptop
        to soda) for macosx?
        \_ don't like terminal?
        \_ What's wrong with /Applications/Utilities/Terminal.app?
        \_ iTerm looks/works well for me.  -scottyg
           \_ second.
	...
2006/1/3-5 [Computer/SW/OS/Windows] UID:41214 Activity:nil
1/3     Regarding the WMF vulnerability, is it true that if you're using
        Firefox 1.5, you'll always be prompted when there's a WMF image on a
        web page?  I know those using IE are SOL unless they install the 0-day
        patch from Ilfak Guilfanov mentioned here:
        http://www.grc.com/sn/notes-020.htm
        This part is funny:
	...
2005/4/15 [Computer/SW/Unix] UID:37200 Activity:very high
4/15    Unix Wizards, how would I sort a list like this in numerical order?
        I can't figure our the sort syntax.  I am not a programmer!
        +0.04gb
        +0.11gb
        +1.98gb
        +10.94gb
	...
2013/4/9-5/18 [Computer/SW/Mail, Academia/Berkeley/CSUA] UID:54647 Activity:nil
4/8     What's a good free e-mail provider? I don't want to use Gmail,
        Yahoo, Outlook, or any of those sites with features I never use that
        track my personal info and keep changing their interface. I want just
        simple e-mail without privacy issues or all the baggage these large,
        for-profit companies are adding. I might even be willing to pay.
        Recommendations?
	...