Simply put, the keyboard’s polling rate is at what frequency the computer checks for input from the keyboard. Since this keyboard is meant for gaming, it of course comes with the ability to change it from 125hz to 1000hz.
Today, I was working on a script at work where I ultimately needed to export a 2MB file and although this isn’t a large file, I know I will forget about getting rid of it so while searching around, I came across tempfile.
Tempfile simply will be garbage collected at some time because the file is stored in /tmp and you can make your own copy if you need it. Here’s an example from the ruby docs:
file = Tempfile.new('foo')
file.path # => A unique filename in the OS's temp directory,
# e.g.: "/tmp/foo.24722.0"
# This filename contains 'foo' in its basename.
file.read # => "hello world"
file.unlink # deletes the temp file
Make sure to run file.unlink if you want it to be deleted right away.
I’ve used the Calculator app on the iPhone for as long as I’ve had a smartphone and I think on the computer, it’s a weird thing that’s been missing for a long time. Recently, Apple brought the Calculator app to Mac but I don’t think it’s as useful as I want it to be so I recently discovered an app called Numi.