Search Results

Search: Posts Made By: wisecracker
Forum: OS X (Apple) 1 Week Ago
406
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? 4 Weeks Ago
720
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? 4 Weeks Ago
720
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
1,101
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"...
6,654
Posted By wisecracker
Use The Terminal To Test Arduino Is Working.
Hi all...

(Apologies for any typos at all.)

This is a step by step _script_ to check if your Arduino is talking to your Linux or Macbook Pro computer using the Terminal...

It works on at...
Forum: OS X (Apple) 08-27-2017
5,326
Posted By wisecracker
Well guys, testing this project gets harder by...
Well guys, testing this project gets harder by the distance in upload periods.
(You could say AudioScope fatigue is setting in.)

Well on testing on numerous Linux flavours there are many that use...
Forum: Programming 12-13-2019
1,522
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
1,023
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,125
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...
945
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.
641
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...
1,308
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...
819
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,...
641
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? 11-07-2019
2,071
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...
924
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: What is on Your Mind? 11-02-2019
2,184
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
6,799
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...
2,972
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.)
2,835
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...
500
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...
2,529
Posted By wisecracker
Calculate the constant e to 14+ decimal places using integer maths.
Hi guys...

I am loving this integer maths thing.
64 bit systems are certainly easier than 32 bit, but hey, I don't intend to leave out my fav' platform.
Using one of the 'Brothers' methods, URL...
Forum: Programming 10-12-2019
918
Posted By wisecracker
Try: print('https://www.meihoski.co.jp/movie/'...
Try:
print('https://www.meihoski.co.jp/movie/' + a['href'])
2,990
Posted By wisecracker
Q: Is SQRT(n) possible in a POSIX compliant shell? A: Yes within limits.
Hi all...
This is just a fun project to see if it is possible to get a square root of a positive integer from 1 to 9200000 to 6 decimal places on a 64 bit architecture machine.
It is coded around ...
2,368
Posted By wisecracker
Python 3.8.0rc1 released.
Python 3.8.0rc1 released today, 1st October 2019...
Just tried it out testing my AMIGA Python 1.4.0 code inside it and all are working, I can now test to the latest Python incarnation now....
Showing results 1 to 25 of 419

 

Featured Tech Videos

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