Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Unknown Newsgroups: comp.os.linux.misc,comp.sys.raspberry-pi Subject: Re: Keeping 'order' without RTC. Date: Sun, 12 Apr 2015 17:17:47 +0000 (UTC) Organization: A noiseless patient Spider Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 12 Apr 2015 17:17:47 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="336af04eafeb8553e04c014733f8d0c8"; logging-data="2101"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8gMhziTZ2WEwHiiOtwNJXZ9vI3k30LHo=" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:MoshIkyOfLDnOaK8DiImhR3zv9A= Xref: csiph.com comp.os.linux.misc:14509 On Wed, 11 Mar 2015 13:20:06 +0000, Joe Beanfish wrote: > On Wed, 11 Mar 2015 04:53:11 +0000, Unknown wrote: >> So, back to the algorithm: >> the mathematical concept 'order' [as emphasised in the "Subject:"] is >> key. When Newton was called away from his desk of paper-work, he >> needed the papers to be 'stacked' in the same ORDER when he returned. >> Even if the cleaning-lady, had 'been there' during his absence, and >> , provided the 'order' was maintained, the >> real-time attributes were not needed. > > One option, forget the idea of timestamps entirely. Name the files with > sequential numbers. Be sure to zero pad so ls works as expected. You > could even do the Basic programming trick of skipping numbers (e.g. by > 10s) so you could insert items higher in the queue without renumbering. > > 000000010-playme.mp3 > 000000020-thesis.mp3 > 000000030-soothing.mp3 > 000000040-jamz.mp3 > > uh-oh, breaking news, add > 000000000-sungoingnova.mp3 That's the kind if original good idea which we need !! With the 'thread overflow' I nearly missed this 1 month old post. I'll try to implement your idea, when I've cleared the chaos. Thanks.