Re: [Grml] Is accessing striped "dynamic disks" from GRML possible?

* Michael Schierl wrote [02.11.06 22:14]:
Hi Michael,
i resend this to the list, because probably you get some cool and nice suggestions for an console calculator :)
<offtopic> Windows Internal, but it works... </offtopic>
Nice :-)
Try the link above and build it on you're own.
But: What calculator to use in grml for all that hex/decimal conversions (and multiplications and additions)?
Try python. Just enter 0xfa or something and you get the corresponding decimal value.
If you want the hex value of a decimal number, use hex($numer) and it works.
You can calculate with hex values in bc when you set the base. Just do an ibase=16 and it should work.
There is no orpie (great console RPN calculator) and GNU Calculator for Emacs is not there either. Okay, dc/bc is there, but I don't know (and could not figure out by grepping the man page) how they can handle hex numbers...
Hm, i just tried orpie and i think python is much nicer, especially if you use ipython.
libgcc and libstdc++ are too old when "dpkg -i"-ing it from the grml-0.8 CD. Thanks anyway.
Hm, i used grml 0.8.3 or something like that, and it worked out of the box. I can rebuild it, if you really need it.
Michael
Uli

Ulrich Dangel schrieb:
Try python. Just enter 0xfa or something and you get the corresponding decimal value.
If you want the hex value of a decimal number, use hex($numer) and it works.
and (how) can I reference previous outputs? I can name them beforehand but if I do it is lots more to type. Using screen or gdm to copy the value is not better either.
-----
0xAFFE
45054
previous * 2
Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name 'previous' is not defined
-----
There is no orpie (great console RPN calculator) and GNU Calculator for Emacs is not there either. Okay, dc/bc is there, but I don't know (and could not figure out by grepping the man page) how they can handle hex numbers...
Hm, i just tried orpie and i think python is much nicer, especially if you use ipython.
in my experience orpie is nice just because it needs very few key strokes (no parentheses, no return, short forms for most extended functions) like on a real calculator. GNU Emacs Calculator is similar, but a bit larger (and much more powerful). But that does not mean orpie is powerless, it has arbitrary-precision integers and matrices as well (I am missing fractions in orpie, but can live without, since gcd is there; so I can do all fraction calculations "manually").
Hm, i used grml 0.8.3 or something like that, and it worked out of the box. I can rebuild it, if you really need it.
You need not. In the particular case I solved it with BartPE and there will probably be lots of more grml releases before I need it again (using striped volumes on Windows is not very common). Okay, I hope to never need it again, (I would not mind never needing grml again either...) but you never know. ;)
Michael

* Michael Schierl wrote [02.11.06 22:58]: Hi,
and (how) can I reference previous outputs? I can name them beforehand but if I do it is lots more to type. Using screen or gdm to copy the value is not better either.
0xAFFE
45054
previous * 2
Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name 'previous' is not defined
You just can do 0xAFFE*2 or something like variable=0xAFFE variable*2
Btw. ipython is much nicer for such stuff, there you can access the last output with _ and the previous with __ and so on. _i is the last input and __i is the previous ....
So you can easily calculate :)
Uli

* Michael Schierl schierlm-public@gmx.de [20061102 23:06]:
Ulrich Dangel schrieb:
Try python. Just enter 0xfa or something and you get the corresponding decimal value.
If you want the hex value of a decimal number, use hex($numer) and it works.
and (how) can I reference previous outputs? I can name them beforehand but if I do it is lots more to type. Using screen or gdm to copy the value is not better either.
0xAFFE
45054
previous * 2
Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name 'previous' is not defined
I can strongly recommend using ipython for interactive use of python (and irb for interactive ruby).
,---- [ demo ] | % ipython | Python 2.4.4 (#2, Oct 20 2006, 00:23:25) | Type "copyright", "credits" or "license" for more information. | | IPython 0.7.2 -- An enhanced Interactive Python. | ? -> Introduction to IPython's features. | %magic -> Information about IPython's 'magic' % functions. | help -> Python's own help system. | object? -> Details about 'object'. ?object also works, ?? prints more. | | In [1]: 0xAFFE | Out[1]: 45054 | | In [2]: _ * 2 | Out[2]: 90108 `----
There is no orpie (great console RPN calculator) and GNU Calculator for Emacs is not there either. Okay, dc/bc is there, but I don't know (and could not figure out by grepping the man page) how they can handle hex numbers...
Hm, i just tried orpie and i think python is much nicer, especially if you use ipython.
in my experience orpie is nice just because it needs very few key strokes (no parentheses, no return, short forms for most extended functions) like on a real calculator. GNU Emacs Calculator is similar, but a bit larger (and much more powerful). But that does not mean orpie is powerless, it has arbitrary-precision integers and matrices as well (I am missing fractions in orpie, but can live without, since gcd is there; so I can do all fraction calculations "manually").
orpie depends on ocaml-stuff and would require 41.5MB of additional disk space. So it's not an option for inclusion in grml, sorry.
regards, -mika-
Teilnehmer (3)
-
Michael Prokop
-
Michael Schierl
-
Ulrich Dangel