4 ms·
I have a script in my ~/bin that does some very inefficient calculations on some numbers from /dev/random. It is called heat.py and used to get run in the winte
by sophacles 16y ago
I have a script in my ~/bin that does some very inefficient calculations on some numbers from /dev/random. It is called heat.py and used to get run in the winter, when I lived in a less than ideal place with a barely working heater and poor insulation. Definitely made a difference.
- Naga 16y agoWould you care to post that? I am going to have some problems in my new place.
- sophacles 16y agoCan't right now, as apparently my home internet connection is down. Off the top of my head tho, basically I used python's random module, and got a random int, and a random float, then did a bunch of pow(rfloat, rint) and multiplications in loops and bit shifts and so on. Basically i tried to utilize all the parts of the CPU I could think of, and keep the cpu usage pegged.
- andfarm 16y agoBetter yet: apt-get install cpuburn
- adbge 16y agoAlternatively, you could use Prime95. Run it in stress test mode and it should heat your room just fine. http://www.mersenne.org/freesoft/#newusers http://www.mersenne.org/freesoft/#newusers