Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #475369

Re: Another Javashit Idiocy

From owl <owl@rooftop.invalid>
Newsgroups comp.os.linux.advocacy
Subject Re: Another Javashit Idiocy
Date 2018-11-05 15:38 +0000
Organization O.W.L.
Message-ID <saz90b803ta.h4@rooftop.invalid> (permalink)
References <prg9e10occ@news4.newsguy.com> <izb00ga.3@rooftop.invalid> <ca5dbd91-e261-4bec-84d1-57688a8c1148@googlegroups.com>

Show all headers | View raw


Steve Carroll <fretwizzer@gmail.com> wrote:
> On Saturday, November 3, 2018 at 11:48:06 AM UTC-6, owl wrote:
>> F. Russell <fr@random.info> wrote:
>> > One of the greatest images of human history is the Hubble Telescope
>> > Ultra Deep Field (HUDF) image:
>> > 
>> > https://www.spacetelescope.org/images/heic0611b
>> > 
>> > This web site provides a direct link to the 110 Mb TIFF
>> > image file of the HUDF, which is good.
>> > 
>> > It also provides a sha256 checksum.  But is this also
>> > a link?  Ha, ha, ha, ha, ha, ha!  Fuck no!  It's a stupid,
>> > asinine, idiotic, imbecilic, and totally retarded
>> > Javashit "balloon."
>> > 
>> > Instead of doing a quick check using
>> > 
>> > wget -O - URL | sha256sum -c -
>> > 
>> > the user has to copy, paste, and save the checksum to
>> > a local file.  What lunacy!
>> > 
>> > It is, admittedly, only a minor annoyance but it serves
>> > to illustrate, yet again, the utter stupidity of web
>> > developers and their favored junk-toy javashit.
>> > 
>> 
>> 1. Right-click the image and choose 'copy image address',
>> 2. Select the hash string and run:
>> 
>> wget $(xsel -b); xsel -o |sha256sum -c
> 
> The xsel (which requires a lib, right?)

Xlib is the lib.  IOW, if you're running X11, you've got it.

> is for grabbing highlighted text but
> what are those flags doing?


When you select, it goes into the primary selection.
When you [menu]->copy, it goes into the clipboard selection.

-o outputs the primary by default (not really needed here, actually).
   This is the same as middle-clicking to paste.
-b outputs the clipboard. 
   This is the same as [menu]->paste

The above command would be better done in a script where vars
are assigned the $(xsel -o) and $(xsel -b) outputs at the start.
That way selecting would be freed up right away while a long download
completes.

Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Another Javashit Idiocy "F. Russell" <fr@random.info> - 2018-11-02 01:31 +0000
  Re: Another Javashit Idiocy Hadron Quark <hadronquark@gmail.com> - 2018-11-03 10:05 +0100
    Re: Another Javashit Idiocy Steve Carroll <frelwizzen@gmail.com> - 2018-11-03 02:45 -0700
    Re: Another Javashit Idiocy Steve Carroll <frelwizzen@gmail.com> - 2018-11-03 05:06 -0700
    Re: Another Javashit Idiocy Steve Carroll <fretwizzer@gmail.com> - 2018-11-03 08:12 -0700
      Re: Another Javashit Idiocy Steve Carroll <frelwizzen@gmail.com> - 2018-11-03 22:31 -0700
  Re: Another Javashit Idiocy Steve Carroll <frelwizzen@gmail.com> - 2018-11-03 03:47 -0700
  Re: Another Javashit Idiocy owl <owl@rooftop.invalid> - 2018-11-03 17:48 +0000
    Re: Another Javashit Idiocy Steve Carroll <frelwizzen@gmail.com> - 2018-11-03 11:17 -0700
    Re: Another Javashit Idiocy Steve Carroll <fretwizzer@gmail.com> - 2018-11-05 07:22 -0800
      Re: Another Javashit Idiocy owl <owl@rooftop.invalid> - 2018-11-05 15:38 +0000
        Re: Another Javashit Idiocy Steve Carroll <frelwizzen@gmail.com> - 2018-11-05 08:08 -0800
    Re: Another Javashit Idiocy fr314159@gmail.com - 2018-11-05 07:35 -0800
      Re: Another Javashit Idiocy Steve Carroll <frelwizzen@gmail.com> - 2018-11-05 07:52 -0800

csiph-web