Posted by member 3861 on 2004-06-18 22:19:20 link
I've gotten to the point of writing perl scripts to display answers to calculations I need for some reason simply because it is much faster than typing it onto my calculator(a TI89 is sitting next to my keyboard though)
A recent example that comes to mind:
I had a repeating 31 pixel wide background that I was putting into an html table that was 1600 pixels wide and I wanted to know how much space I needed on each of the side borders after it had repeated as many times as it needed to, the obvious(simple to someone who knows any C based language) answer was 1600%31 (19) but that isn't what I would type if I had to use my calculator.
on the calculator:
1600-(ipart(1600/31)*31)
or on a more basic calculator:
1600/31 =
1600-(51*31) =
whereas on my computer(mabye it takes 3 seconds, never been timed):
ctrl+shift+e (notepad file c:\cpe.pl)
ctrl+a
bksp
print 1600%31
alt+F4 enter
ctrl+alt+e (!execute[perl c:\cpe.pl] or something like this, I haven't changed it in quite a while)
I for one would gladly get rid of all the extra hotkeys that I press when I want to know something like this.
Ideal:
ctrl+`
1600%31 enter
thanks Cerbie! I am running out of hotkey combos to use, this one didn't even cross my mind
A recent example that comes to mind:
I had a repeating 31 pixel wide background that I was putting into an html table that was 1600 pixels wide and I wanted to know how much space I needed on each of the side borders after it had repeated as many times as it needed to, the obvious(simple to someone who knows any C based language) answer was 1600%31 (19) but that isn't what I would type if I had to use my calculator.
on the calculator:
1600-(ipart(1600/31)*31)
or on a more basic calculator:
1600/31 =
1600-(51*31) =
whereas on my computer(mabye it takes 3 seconds, never been timed):
ctrl+shift+e (notepad file c:\cpe.pl)
ctrl+a
bksp
print 1600%31
alt+F4 enter
ctrl+alt+e (!execute[perl c:\cpe.pl] or something like this, I haven't changed it in quite a while)
I for one would gladly get rid of all the extra hotkeys that I press when I want to know something like this.
Ideal:
ctrl+`
1600%31 enter
thanks Cerbie! I am running out of hotkey combos to use, this one didn't even cross my mind