Search Results

Search: Posts Made By: wisecracker
44,645
Posted By wisecracker
Not sure if this is what you re after but fully...
Not sure if this is what you re after but fully POSIX compliant:-
Longhand OSX 10.14.3, default bash terminal calling dash.
Last login: Wed Apr 29 21:46:11 on ttys000
AMIGA:amiga~> dash...
Forum: OS X (Apple) 04-25-2020
38,360
Posted By wisecracker
Fun project calculating PI using integer maths.
Hi all...

As you know I have garnered a great interest in using integer maths to do some fixed point calculations.
Here is my next incarnation, calculating PI to 3 and 12 decimal places using 2...
Forum: OS X (Apple) 03-12-2020
6,294
Posted By wisecracker
A very basic Haar Discrete Wavelet Transform for Python 1.4.0 to 3.8.0...
Hi guys and gals...
(Apologies for any typos, etc...)

Another code snippet mainly for the AMIGA but works from Python 1.4.0 to 3.8.0 on just about any platform, hence the first upload here. I...
2,828
Posted By wisecracker
The usual questions: Which OS are you...
The usual questions:


Which OS are you using?
What are your preferred tools/utilities/shells/languages?


And most of all what have you tried?
Forum: Programming 03-08-2020
6,340
Posted By wisecracker
If you are using one line it HAS to be: ...
If you are using one line it HAS to be:
MYURL=str(pattern.search(script.text).group(0)); MYURL=str.replace(MYURL, '\u002D', '-'); print(MYURL)
Forum: Programming 03-08-2020
6,340
Posted By wisecracker
Hi bob123... Which version of python 3.x.x are...
Hi bob123...
Which version of python 3.x.x are you using, OS, and machine...

--- Post updated at 11:41 PM ---

I hope this does not attach itself to the previous...
It looks like you are using...
Forum: What is on Your Mind? 02-20-2020
5,754
Posted By wisecracker
Toshiba’s Optimization Algorithm Sets Speed Record for Solving Combinatorial Problems.
Enjoy...

'https://spectrum.ieee.org/tech-talk/computing/software/toshiba--optimization-algorithm-speed-record-combinatorial-problems'

Copy and paste URL less single quotes...
Forum: What is on Your Mind? 02-13-2020
7,432
Posted By wisecracker
Hi Scrutinizer... I must have been asleep as...
Hi Scrutinizer...

I must have been asleep as I have only just seen this...

Congrats matey, you helped me on my way to the *NIX shell environment when I first joined and started AudioScope.sh,...
Forum: What is on Your Mind? 02-07-2020
6,403
Posted By wisecracker
The worlds first classical Chinese program language.
WOW, just WOW...

It would be mighty interesting to see shell code translated to this. Kudos to the young guy who succeeded...
...
Forum: Programming 01-31-2020
14,080
Posted By wisecracker
Way cool... Looking at your RSSI values they...
Way cool...

Looking at your RSSI values they are all inside the """blockbusting""", (strong), area.
I am used to working below -120dBm on BWs less the 3KHz wide, often down -130dBm on SSB for...
Forum: Programming 01-31-2020
14,080
Posted By wisecracker
Hi Neo... 25dBm for WIFI? That's around...
Hi Neo...

25dBm for WIFI? That's around 300mW from the PA, (Power Amplifier).
I thought the limit inside the ISM band(s) was 20dBm, 100mW for low powered gear.
However...
That antenna IS...
Forum: OS X (Apple) 01-30-2020
15,263
Posted By wisecracker
My original Python Campimeter code, originall for OSX 10.7.5.
Hi all...


This was the original code I created to expand a terminal on the fly using Python 2.6.x to the now 3.8.0 without modification under OSX 10.7.5.
I had no idea at the time that the MBP...
Forum: Programming 01-30-2020
6,644
Posted By wisecracker
Ha ha, thanks and corrected post #1... Barry...
Ha ha, thanks and corrected post #1...
Barry...
Forum: Programming 01-29-2020
6,644
Posted By wisecracker
Campimeter.sh for macOS
Hi Neo...
This is me too except for the attention span. As soon as I find a solution to something I let others better it.
And as for doing something different I have done some bizarre stuff on...
Forum: Programming 01-28-2020
14,891
Posted By wisecracker
Hi Neo... I was thinking about this type of...
Hi Neo...
I was thinking about this type of event but as I don't have the HW and code then I couldn't comment for certain.
Just one thing though, ensure whichever I/O pin you decide to use, make...
13,134
Posted By wisecracker
Hi Ravinder... A fun approach but fully...
Hi Ravinder...

A fun approach but fully 'dash' compliant:
Last login: Tue Jan 28 14:17:35 on ttys000
AMIGA:amiga~> dash
AMIGA:\u\w> path="/var/talend/nat/cdc"
AMIGA:\u\w>...
Forum: OS X (Apple) 01-18-2020
24,572
Posted By wisecracker
Generate a random number in a fully POSIX compliant shell, 'dash'...
Hi all...
Apologies for any typos, etc...
This took a while but it didn't beat me...

Although there are many methods of generating random numbers in a POSIX shell this uses integer maths and a...
Forum: What is on Your Mind? 12-26-2019
8,243
Posted By wisecracker
Apologies for any typos. No it doesn't make...
Apologies for any typos.

No it doesn't make you dumb, it means you have not found your niche to create an "_app'_" to take on and maybe even excel at compared to your peers.
It also means that...
Forum: What is on Your Mind? 12-25-2019
8,243
Posted By wisecracker
A terrific quote:
Food for thought!

"""
Everybody in this country should learn to program a computer...because it teaches you how to think.
"""
Steve Jobs.

So, SO, true!

Merry XMAS all...
Forum: Programming 12-24-2019
10,760
Posted By wisecracker
More Arduino Stuff...
HI all...
(Apologies for any typos.)

To add to Neo's Arduino subject matter I have decided to upload this in ".zip" format.
Ignore "*.info" files these are AMIGA icons only and also the "HAM"...
Forum: Programming 12-13-2019
25,306
Posted By wisecracker
E**(i*pi)=-1 or e**(j*pi)=-1, something I found out in Python using part of Eulers Identit equation.
Well guys and gals I have discovered after all these years that Python does complex numbers without the 'complex()' function or 'cmath' import.
It is well known that Euler's Identity E**(i*pi)+1=0...
Forum: What is on Your Mind? 12-09-2019
6,470
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...
3,676
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.
19,813
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...
24,669
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...
Showing results 1 to 25 of 435

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