Search Results

Search: Posts Made By: wisecracker
Forum: What is on Your Mind? 3 Days Ago
359
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? 5 Days Ago
255
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 5 Days Ago
116
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? 6 Days Ago
255
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...
331
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 1 Week Ago
3,163
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? 1 Week Ago
1,492
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...
839
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? 1 Week Ago
350
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 2 Weeks Ago
3,163
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) 2 Weeks Ago
734
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...
Forum: Shell Programming and Scripting 2 Weeks Ago
771
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? 2 Weeks Ago
500
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/
Forum: Shell Programming and Scripting 2 Weeks Ago
771
Posted By wisecracker
Perhaps because the OP might mistake '1' as being...
Perhaps because the OP might mistake '1' as being a result or a '$?' as opposed to a 'true'.
(Also it does not work in POSIX but that is my reason not the OP's.)
Forum: Shell Programming and Scripting 3 Weeks Ago
771
Posted By wisecracker
Hi Chubler_XL... This is the result,...
Hi Chubler_XL...

This is the result, (including the missing 'if'):
Last login: Wed Oct 23 09:21:10 on ttys000
AMIGA:amiga~> num1=1.2345
AMIGA:amiga~> num2=0.9876
AMIGA:amiga~> if awk...
Forum: Shell Programming and Scripting 3 Weeks Ago
771
Posted By wisecracker
As Python doesn't lend itself to one liners at...
As Python doesn't lend itself to one liners at all here is a Python version for Python Versions 2.7.x to 3.8.0.
if python -c 'if '"$num1"' > '"$num2"':exit(1)'; then :; else echo "OK."; fiOSX...
Forum: Shell Programming and Scripting 3 Weeks Ago
771
Posted By wisecracker
Hi Chubler_XL... Modified to suit OSX 10.14.6,...
Hi Chubler_XL...
Modified to suit OSX 10.14.6, default bash terminal:
Last login: Tue Oct 22 22:05:17 on ttys000
AMIGA:amiga~> bash --version
GNU bash, version 3.2.57(1)-release...
Forum: Shell Programming and Scripting 3 Weeks Ago
818
Posted By wisecracker
I am assuming you are using bash or perhaps a...
I am assuming you are using bash or perhaps a POSIX shell like dash.
Your error is telling you that it is not possible to do such a task as these shells have INTEGER arithmetic only.

If you need...
442
Posted By wisecracker
You can shorten the cutting like this: ...
You can shorten the cutting like this:
(Longhand using Python 2.7.x, OSX 10.14.6, default bash terminal.)
Last login: Mon Oct 14 15:15:55 on ttys000
AMIGA:amiga~> python
Python 2.7.10 (default,...
Forum: Shell Programming and Scripting 4 Weeks Ago
898
Posted By wisecracker
Hi Neo... No. It is the WWW and the...
Hi Neo...


No.
It is the WWW and the number of times people ask why 'x/y' gives an integer result instead of floating/fixed point result.

After exhaustive searching it looks like this site...
Forum: Shell Programming and Scripting 4 Weeks Ago
1,057
Posted By wisecracker
Assuming StealthCoind IS a transient command...
Assuming StealthCoind IS a transient command then WHERE is it?

If it is NOT in $PATH then you have basically 2 choices:
./StealthCoind ...... if it is in the current directory.
OR...
...
Forum: What is on Your Mind? 4 Weeks Ago
977
Posted By wisecracker
Hi Neo... Used it for the first time today,...
Hi Neo...

Used it for the first time today, Sunday October 13th 2019.
It does catch the eye and the viewing numbers seem to accelerate over a short period.

Thanks for the changing of some of...
442
Posted By wisecracker
Because I quoted that you remove the zeros at...
Because I quoted that you remove the zeros at your own risk and did NOT put [:-4] at the end.
Again you remove those trailing zeros at YOUR OWN RISK, and that the middle one of your five results...
442
Posted By wisecracker
Try: hx = hex(r)[2:][:-1]To remove the 'L'. You...
Try:
hx = hex(r)[2:][:-1]To remove the 'L'. You remove the zeros at your own risk...
442
Posted By wisecracker
I edited my previous post to show you, and you do...
I edited my previous post to show you, and you do not need to remove the 'L' as conversion to either format is unaffected by the letter.

It also looks as though the zeros ARE required so if it...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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