mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Cooper <jason@lakedaemon.net>
To: "Teodora Băluţă" <teobaluta@gmail.com>
Cc: Levente Kurusa <levex@linux.com>, Dave Jones <davej@redhat.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@intel.com>
Subject: Re: [RFC] QR encoding for Oops messages
Date: Sun, 23 Mar 2014 15:38:39 -0400	[thread overview]
Message-ID: <20140323193839.GY15608@titan.lakedaemon.net> (raw)
In-Reply-To: <CACV2jQBfRdQOyXF80WLoqm08-3VpWZno6UphKKPWmQD2f_yitA@mail.gmail.com>

All,

On Sat, Mar 22, 2014 at 08:20:01PM +0200, Teodora Băluţă wrote:
> On Sat, Mar 22, 2014 at 7:09 PM, Levente Kurusa <levex@linux.com> wrote:
> > On 03/21/2014 02:28 PM, Jason Cooper wrote:
...
> >> I would definitely like to see the QR output incorporated into a
> >> kernel.org url.  That would remove the need for installing another app,
> >> and would ease bug reporting.
> >
> > I still struggle to understand how could that be done. We can encode the
> > QR code as ASCII. Okay, that's fine, however it is very long. Encoding
> > 'Unable to handle kernel paging request at 0000000f' gave a 449 character
> > long sequence with very strange characters [0]. We should try to shorten
> > it, imho. Not sure how to do that though.

The man page for qrencode says you can have up to 4000 characters in a
qrcode.  However, I've seen readers have trouble with a 2048bit ascii
armored PGP public key (3929 characters).

I grabbed a random oops from oops.kernel.org, it weighed in at 1544
bytes, not too bad.  I then did:

$ echo "https://oops.kernel.org/?qr=`cat oops.txt | gzip -9 | base64 -wrap=0`" | wc -c
993

The benefit of a url is that any QR reader can automagically report an
oops.  While a specific app could parse the URL/oops locally if the
user desires.

> it misses the point of having a QR code in the first place. The way I
> see it, having a QR decoder app installed that can do an offline
> decoding is a less greater effort than popping out a browser on the
> machine you're working on.

I think you're selling the advantage of the QR code short.  Automated
reporting (via the url) is a _huge_ plus.  The app you conceive of could
still parse it in place if the user desires.

My point for the URL isn't to use the internet/server to automate oops
parsing for the user.  Rather it's to make it easy to report oopses to
developers.  While still preserving the ability of your app to parse it
for the user.

thx,

Jason.

  parent reply	other threads:[~2014-03-23 19:41 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-17 21:59 Teodora Baluta
2014-03-18 21:49 ` Matthew Garrett
2014-03-19 20:09   ` Teodora Băluţă
2014-03-19 18:03 ` Borislav Petkov
2014-03-19 20:18   ` Teodora Băluţă
2014-03-19 20:18 ` Dave Jones
2014-03-19 20:28   ` Levente Kurusa
2014-03-19 20:50     ` Teodora Băluţă
2014-03-19 20:51       ` Teodora Băluţă
2014-03-19 21:17       ` Levente Kurusa
2014-03-19 20:38   ` Teodora Băluţă
2014-03-21 13:28     ` Jason Cooper
2014-03-22 17:09       ` Levente Kurusa
2014-03-22 18:20         ` Teodora Băluţă
2014-03-22 18:29           ` Levente Kurusa
2014-03-23 11:51             ` Levente Kurusa
2014-03-23 19:38           ` Jason Cooper [this message]
2014-03-30 10:17             ` Levente Kurusa
2014-04-01 14:20               ` Jason Cooper
2014-04-01 21:07                 ` Teodora Băluţă
2014-04-03 20:21                   ` Levente Kurusa
2014-04-04 15:12                     ` Jason Cooper
2014-04-04 15:42                       ` Levente Kurusa
2014-04-03 20:57                 ` David Lang
2014-04-04 15:15                   ` Jason Cooper
2014-04-04 16:17                     ` Levente Kurusa
2014-04-04 21:42                       ` Teodora Băluţă
2014-04-05  9:11                         ` Levente Kurusa
2014-04-07 15:20                           ` Jason Cooper
2014-04-08 15:42                             ` Levente Kurusa
2014-04-08 17:20                               ` Jason Cooper
2014-04-08 17:29                                 ` Levente Kurusa
2014-04-13 20:43                                   ` Levente Kurusa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140323193839.GY15608@titan.lakedaemon.net \
    --to=jason@lakedaemon.net \
    --cc=davej@redhat.com \
    --cc=levex@linux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.p.waskiewicz.jr@intel.com \
    --cc=teobaluta@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®