[ale] MP3s in Linux

Danny Cox danscox at mindspring.com
Fri May 31 07:39:49 EDT 2002


Adrin,

On Thu, 2002-05-30 at 21:19, Adrin wrote:
> I am not responsible for this but I thought it was funny.
> Plus I would like to know what is happening to do this.
> 
> I saw it as Unix command for the day.
> echo
> '[q]sa[ln0=aln256%Pln256/snlbx]sb313507179010176854228757843
> 9snlbxq'|dc

	Cute.

	dc is a reverse polish "desk calculator" that handles arbitrarily long
numbers.  It has registers a-z wherein you may store things, either
numbers or strings to be executed later.  Commands are also single
chars, which makes the "language" rather dense.  See man dc(1).  My
favorite dc "wow/underwhlem" is (demoed/discovered by Brent Laminack):

	Start dc:
99k			# sets # decimals to 99 (right of the .)
2			# pushes '2' onto the stack
v			# perform square root of top-of-stack
d			# duplicate top-of-stack
f			# print the stack (wow ;-)
*p			# multiply top two vals on stack & print result
q			# quit

Also note that you can string these together on one line:
99k2vdf*pq

	Darn close!

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list