Search Results

Search: Posts Made By: wisecracker
Forum: What is on Your Mind? 1 Hour Ago
26
Posted By wisecracker
The poorest of computer users are programmers...
Hi guys and gals...
A mildly humourous blog from 2013, but I come into this category... ;oDD

Languager: The Poorest Computer Users are Programmers...
Forum: What is on Your Mind? 1 Week Ago
482
Posted By wisecracker
Hi Chubler_XL... WOW! Terrific stuff....
Hi Chubler_XL...

WOW! Terrific stuff. Congrats, you have earned it...
517
Posted By wisecracker
Hi Chubler_XL... I have never seen that...
Hi Chubler_XL...

I have never seen that before, thanks a lot.
Just shows how much I don't know. Once seen never forgotten...
(But sadly, it won't work in dash.)
517
Posted By wisecracker
Nice and I thanked the post but... Be aware,...
Nice and I thanked the post but...
Be aware, this only works in ksh93 and zsh on Apple gear.
'bash 3.2.x which is all we have with Apple, and POSIX' is a non-starter.
517
Posted By wisecracker
You could use XOR but here is a solution that is...
You could use XOR but here is a solution that is fully POSIX complaint:
#!/usr/local/bin/dash
# decimal2binary.sh <integer_-128_to_127>
#
# USAGE: [/full/path/to/][./]decimal2binary.sh...
587
Posted By wisecracker
A quicky demo for 0 to 127 only using OSX...
A quicky demo for 0 to 127 only using OSX 10.14.6, default 'bash' version 3.2.x...
Called as [./]decimal2binary.sh <integer_from_0_to_127> ...
#!/bin/bash
# decimal2binary.sh <integer_0_to_127>...
Forum: Programming 2 Weeks Ago
810
Posted By wisecracker
Hi Neo... Much like my pocket Oscilloscope....
Hi Neo...
Much like my pocket Oscilloscope. That is not backlit either, and has a blue trace that is difficult to see...
That Data Logger idea and Python reminded me of this I tried to upload the...
Forum: Programming 2 Weeks Ago
810
Posted By wisecracker
Hi Neo... The one in post #3 is way, way...
Hi Neo...
The one in post #3 is way, way cool...
I did notice with all its capability though that it has not got Double Factorial capability, not that it really matters though.
Nevertheless an...
Forum: Shell Programming and Scripting 3 Weeks Ago
482
Posted By wisecracker
Apologies for any typos... There is no better...
Apologies for any typos...
There is no better use than a working example...
Longhand using OSX 10.14.6, default bash terminal:
Last login: Mon Nov 18 09:29:24 on ttys000
AMIGA:amiga~> # My maths...
806
Posted By wisecracker
Hi nezabudka... Remember! Only on bash version...
Hi nezabudka...
Remember! Only on bash version 4.0.x and above.
We Apple users and probably others only have version 3.2.x so associative arrays are a none starter.
As the OP has not quoted his...
630
Posted By wisecracker
Assuming your formula is correct, checked...
Assuming your formula is correct, checked longhand in Python 3.8.0 using the math library:
Last login: Fri Nov 15 17:16:16 on ttys000
AMIGA:amiga~> python3.8
Python 3.8.0rc1 (v3.8.0rc1:34214de6ab,...
Forum: Shell Programming and Scripting 3 Weeks Ago
482
Posted By wisecracker
Hi Neo... No. Direct absolute paths do not...
Hi Neo...
No.
Direct absolute paths do not work from import, however there is a similar effect using execfile(...) as the OP is using Python 2.6.x...
(... exec(open(...).read()) for 3.x.x to...
Forum: What is on Your Mind? 4 Weeks Ago
1,052
Posted By wisecracker
Hi stomp... I do feel very competent now as I...
Hi stomp...
I do feel very competent now as I have set some, (possibly seriously), difficult challenges and overcome them in the shell scripting world. ;o)
However back to your OP, I find it...
Forum: What is on Your Mind? 4 Weeks Ago
945
Posted By wisecracker
Well the square root thread showed up again this...
Well the square root thread showed up again this morning on here and it read 1006 views but 1 day ago it was at 996 views.
Nothing is that good surely?
But I am certainly pleased that people are...
Forum: Linux 4 Weeks Ago
492
Posted By wisecracker
Hi MonilGome... I will add to vbe's post and...
Hi MonilGome...

I will add to vbe's post and say if you want any of your code, whether it be a shell script, a dedicated compiled executable or a separately interpreted script, to be portable then...
Forum: What is on Your Mind? 4 Weeks Ago
945
Posted By wisecracker
The square root code I coded on this site...
Hi all, (mainly Neo)...

I keep noticing that the SQRT code I wrote recently for a POSIX shell keeps appearing, (the green colour sticks out like a sore thumb).
So I decided to take a look on...
778
Posted By wisecracker
Hi JSKOBS... Not quite exactly what you are...
Hi JSKOBS...

Not quite exactly what you are looking for but a little bit of lateral thinking creates this.
#!/bin/sh
# awk_shell.sh

: > /tmp/myfunc
chmod 755 /tmp/myfunc

cat << "EOF" >...
Forum: Programming 4 Weeks Ago
4,413
Posted By wisecracker
Quote stomp: This is precisely the reason I...
Quote stomp:
This is precisely the reason I use, (occasionally now), Python. It is useful enough with its builtin libraries. I try to steer clear of those libraries that could be dependencies for...
Forum: What is on Your Mind? 11-04-2019
2,350
Posted By wisecracker
Mainly for Corona688, but for interest to others...
Mainly for Corona688, but for interest to others too.

Well sometime in the last 24 hours, 4th November 2019, this code uploaded to AMINET......

Aminet - dev/gcc/DFT-FFT.awk.txt...
1,919
Posted By wisecracker
Hi umen... "swap usage side" means the file...
Hi umen...

"swap usage side" means the file and/or partition of a disk or disks used to swap data out of and into memory. Nearly ALWAYS data nowadays but could be overlays of active code in...
Forum: What is on Your Mind? 11-02-2019
1,030
Posted By wisecracker
LUNIX on a Commodore 64, yup UNIX on one of the most famous home computers of all time...
Enjoy guys and gals...
LUnix on a Commodore 64...

YouTube (https://www.youtube.com/watch?v=iLJXFFzERA8&fbclid=IwAR0TE-4ZhBuw8TfUs7jXALprefRCXCH4WbfFLksG0GEKyLwgHjc4ptEupqY)

Bazza...
Forum: Programming 10-26-2019
4,413
Posted By wisecracker
Hi DracoSentien... I assume you mean me, I jump...
Hi DracoSentien...
I assume you mean me, I jump in at the deep end with something like Oscillo[scopes/graphs] as I know far more about measuring gear than programming so I know what I want from the...
Forum: OS X (Apple) 10-25-2019
1,282
Posted By wisecracker
I am not sure if I am "hard core" but in general...
I am not sure if I am "hard core" but in general it does not matter to me so long as bash is not removed from the '/bin' drawer|folder|directory at all.
Reason: AudioScope.sh does not run in the zsh...
1,850
Posted By wisecracker
Works as expected now! <thumbs_up> Last...
Works as expected now! <thumbs_up>

Last login: Wed Oct 23 21:29:52 on ttys000
AMIGA:amiga~> num1=1.2345
AMIGA:amiga~> num2=0.9876
AMIGA:amiga~> if awk "BEGIN{exit ! ($num1 > $num2)}"; then echo...
Forum: What is on Your Mind? 10-23-2019
1,241
Posted By wisecracker
American Py, (sung to American Pie).
This is clever and humourous too.

https://www.reddit.com/r/Python/comments/dfm2zv/american_py/
Showing results 1 to 25 of 500

 

Featured Tech Videos

All times are GMT -4. The time now is 09:17 AM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy