public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Renat Golubchyk <ragermany@gmx.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  Re: Kernel setting for frame buffer (2.6.23-r5)
Date: Wed, 9 Jan 2008 23:57:38 +0100	[thread overview]
Message-ID: <20080109235738.6c20ecaa@mating-tux> (raw)
In-Reply-To: <200801092217.37172.shrdlu@unlimitedmail.org>

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]

On Wed, 9 Jan 2008 22:17:37 +0100 Etaoin Shrdlu
<shrdlu@unlimitedmail.org> wrote:
> On Wednesday 9 January 2008, reader@newsguy.com wrote:
> 
> > reader@newsguy.com writes:
> > > do you know of a chart that shows the decimal notation like you
> > > posted? (Its not in `man vga')
> > >
> > > And I don't recall where I got that from... where ever it was, it
> > > probably also has the decimal equivalents.
> >
> > You can ignore this request... I found a nifty hex to decimal
> > converter for vim here:
> >    http://vim.wikia.com/wiki/VimTip27

If you only want to convert one number (or an arithmetic expression) you
can write, e.g. ":echo 0x31a" in vim and be done with it. :-)

> 
> A perhaps simpler way is to use the bc program (which needs to be 
> installed for this to work, of course):
> 
> $ echo 'obase=10; ibase=16; 31A' | bc
> 794

Or an even simpler way would be

$ echo $((0x31a))
794

Bash is really cool. It can understand numbers up to base 64. ;-)


Cheers,
Renat

-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
                                              (Einstein)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-01-09 23:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 18:18 [gentoo-user] Kernel setting for frame buffer (2.6.23-r5) reader
2008-01-09 19:43 ` Etaoin Shrdlu
2008-01-09 19:50   ` Etaoin Shrdlu
2008-01-09 20:33   ` [gentoo-user] " reader
2008-01-09 20:49     ` reader
2008-01-09 21:17       ` Etaoin Shrdlu
2008-01-09 22:57         ` Renat Golubchyk [this message]
2008-01-10  9:18           ` Etaoin Shrdlu
2008-01-11 10:16             ` Roy Wright
2008-01-09 20:50     ` Tony Stohne
2008-01-09 20:59       ` Tony Stohne
2008-01-09 21:32         ` Alan McKinnon
2008-01-09 21:13     ` Etaoin Shrdlu
2008-01-09 21:30       ` Etaoin Shrdlu

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=20080109235738.6c20ecaa@mating-tux \
    --to=ragermany@gmx.net \
    --cc=gentoo-user@lists.gentoo.org \
    /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