Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-06 Thread null_ptr
D_MAX - ((RAND_MAX+1)%N) (Beware the undefined behaviour in the above line if you try C.) Basically you want one less than the largest by N dividable number in your range. With numbers: rand(): 0 1 2 3 4 5 6 7 8 9 10 11 12 rand()%5 with discarding >12-((12+1)%5)=9: 0 1 2 3 4 0 1 2 3 4 discarded ---

Re: [gentoo-user] PORTAGE_COMPRESS

2014-04-02 Thread null_ptr
On 02/04/14 16:02, Douglas J Hunley wrote: On Wed, Apr 2, 2014 at 2:29 PM, Alan McKinnon wrote: man 5 make.conf What isn't listed in the man page is if you should simply unset it: PORTAGE_COMPRESS="" or set it to something like /bin/true Any thoughts? How about setting PORTAGE_COMPRESS_EX

Re: [gentoo-user] No motherboard beep since kernel upgrade

2014-03-23 Thread null_ptr
On 23/03/14 11:06, Tom Wijsman wrote: On Sat, 22 Mar 2014 12:29:03 +0100 null_ptr wrote: I attached them. Old config/lsmod/dmesg is the first parameter of the diff. Looks okay to me; I see in the other thread that it was clarified that this is a problem through the speakers/headset and thus

Re: [gentoo-user] No motherboard beep since kernel upgrade

2014-03-22 Thread null_ptr
On 22/03/14 23:40, Volker Armin Hemmann wrote: Am 22.03.2014 02:08, schrieb null_ptr: On 21/03/14 14:41, Lee wrote: I can't think of the name of the module, pcspkr IIRC or some such, but it prolly isn't loaded. Modprobe can tell you if it's available & load it. On Mar 21, 20

Re: [gentoo-user] No motherboard beep since kernel upgrade

2014-03-21 Thread null_ptr
n Fri, Mar 21, 2014, at 18:51, null_ptr wrote: Module for my sound card is running and SND_HDA_INPUT_BEEP is activated in kernel config. Am I missing something else? Perhaps you need CONFIG_INPUT_PCSPKR. I tried building with that and it didn't fix it. "modprobe pcspkr" doesn&#

[gentoo-user] No motherboard beep since kernel upgrade

2014-03-21 Thread null_ptr
? null_ptr B: Are you pondering what I'm pondering? P: Well, I think so, Brain, but do I really need two tongues? 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c) Subsystem: Hewlett-Packard Company Compaq 6710b Kernel driver i