Search Results

Search: Posts Made By: wisecracker
391
Posted By wisecracker
Hi jeo_fb... Assuming you are using...
Hi jeo_fb...

Assuming you are using Longitude and Latitude WRT Earth as a __sphere__ then it is not possible to create a rectangle as Euclidean geometry does not apply.

IF, however you just...
Forum: What is on Your Mind? 6 Days Ago
556
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? 1 Week Ago
431
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...
...
284
Posted By wisecracker
Hi Michele31416... Thanks for updating...
Hi Michele31416...


Thanks for updating your post with the answer...
Forum: Shell Programming and Scripting 2 Weeks Ago
570
Posted By wisecracker
Hi Ralph.. Is this what you are trying to do? ...
Hi Ralph..
Is this what you are trying to do?
#!/bin/bash
# Linux Mint 19, default bash terminal.
clear
echo ""
echo ""
printf "%b" "This is a test line.\033[s\n"
sleep 2
echo ""
echo ""...
Forum: Shell Programming and Scripting 2 Weeks Ago
570
Posted By wisecracker
I did quote early on in this thread that some...
I did quote early on in this thread that some terminals do not respond correctly to some terminal escape codes. Some of those escape codes will not work at all.

So in the first part the outside...
Forum: Shell Programming and Scripting 2 Weeks Ago
570
Posted By wisecracker
Hi Ralph... Take a look at the two command...
Hi Ralph...

Take a look at the two command below.
The first will give you your terminal size in lines, columns.
IF your terminal can do it, (xterm for example), the second will auto adjust it...
Forum: Shell Programming and Scripting 2 Weeks Ago
570
Posted By wisecracker
An example clearing the screen/window: while...
An example clearing the screen/window:
while true
do
printf "\033[2J\033[H\033[12;30fSome prompt: "
read -r text
doneEDIT:

You can omit the \033[H if you wish but some...
Forum: Shell Programming and Scripting 2 Weeks Ago
570
Posted By wisecracker
Hi Ralph... Some terminals don't always...
Hi Ralph...

Some terminals don't always follow terminal escape codes to the _letter_.
You could try and force the line prompt, force the cursor to the correct position and force clearing after...
Forum: Programming 2 Weeks Ago
886
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 2 Weeks Ago
886
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) 2 Weeks Ago
665
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 3 Weeks Ago
630
Posted By wisecracker
Ha ha, thanks and corrected post #1... Barry...
Ha ha, thanks and corrected post #1...
Barry...
Forum: OS X (Apple) 3 Weeks Ago
357
Posted By wisecracker
Thanks for the heads up Neo... Just updated...
Thanks for the heads up Neo...

Just updated my iMac to OSX 10.15.3 but not touched my MBP and left it at the final Mojave state.

Me too...
Forum: Programming 3 Weeks Ago
630
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 3 Weeks Ago
1,110
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...
Forum: Shell Programming and Scripting 3 Weeks Ago
236
Posted By wisecracker
Hi nez... I do not like 'eval' but here goes...
Hi nez...
I do not like 'eval' but here goes and is also '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: Shell Programming and Scripting 3 Weeks Ago
236
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: Shell Programming and Scripting 3 Weeks Ago
641
Posted By wisecracker
Hi sea... As with Chubler_XL the more...
Hi sea...

As with Chubler_XL the more verbose the command the better.
The rest is your personal choice except perhaps that echo should be kept in its POSIX simplest form to make it as portable...
Forum: OS X (Apple) 4 Weeks Ago
788
Posted By wisecracker
Hi MadeInGermany... Although there is a...
Hi MadeInGermany...
Although there is a workaround this is an edge case:
#!/usr/local/bin/dash
# lead_zeros.sh

# This is a gotcha...
# There will always be 6 zeros sooner or later, 000000.
...
Forum: OS X (Apple) 4 Weeks Ago
788
Posted By wisecracker
Well the C source does not compile on a current...
Well the C source does not compile on a current update, 19-01-2020, Linux Mint 19 using gcc 7.4.0 so here is a completely simplified and modified version for gcc 4.2.1 and 7.4.0...
The printf ...
Forum: OS X (Apple) 4 Weeks Ago
788
Posted By wisecracker
As the clock is very quickly cycling inside the...
As the clock is very quickly cycling inside the microsecond part there is always a possibility of these values '00000' to '09999' occurring. These are obviously NOT octal but decimal with leading...
Forum: OS X (Apple) 4 Weeks Ago
788
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...
1,068
Posted By wisecracker
The perfect example to RudiC's post #6... OSX...
The perfect example to RudiC's post #6...
OSX 10.14.6 default bash terminal...

Last login: Fri Jan 3 13:50:35 on console
AMIGA:amiga~> set
...
IFS=$' \t\n'
...
AMIGA:amiga~> _
1,075
Posted By wisecracker
Using Python 2.7.x and 3.7.x... ...
Using Python 2.7.x and 3.7.x...


#!/bin/bash
# inline.sh
echo "It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness..." > /tmp/text
...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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