Go to advanced search

by scruss
Wed Jun 19, 2019 10:09 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1126
Views: 27869

Re: ScriptBasic

Hey, How come there is no Fortran million digit fibo contender? I started one, but got sidetracked with Pari/GP. There are a couple of bignum libraries for Fortran, but they're not very advanced. And that's Fortran ? Doesn't look like any Fortran I remember. I would have to guess it is descended fr...
by scruss
Sun Jun 16, 2019 11:06 pm
Forum: Troubleshooting
Topic: Matplotlib not installing Python 3.6.3
Replies: 9
Views: 255

Re: Matplotlib not installing Python 3.6.3

matplotlib can't affect the desktop. Something else has gone wrong.

Maybe restore the boot to desktop option from sudo raspi-config
by scruss
Sun Jun 16, 2019 4:20 pm
Forum: Troubleshooting
Topic: Matplotlib not installing Python 3.6.3
Replies: 9
Views: 255

Re: Matplotlib not installing Python 3.6.3

I don't want to answer for BlueAardvark, but when I first tried to download matplotlib I got a message that said it will no longer work with versions of python less than 3.6. But if you install from a Raspbian package, you get versions that match. Sure, they're not both the most recent versions, bu...
by scruss
Sat Jun 15, 2019 10:29 pm
Forum: Troubleshooting
Topic: Matplotlib not installing Python 3.6.3
Replies: 9
Views: 255

Re: Matplotlib not installing Python 3.6.3

Any reason why you're not happy with the stock Python 3.5.3 and

Code: Select all

sudo apt installpython3-matplotlib
?

Building this takes a very long time on a Raspberry Pi.
by scruss
Mon Jun 10, 2019 9:42 am
Forum: Off topic discussion
Topic: Maker Faire reportedly halts operations
Replies: 3
Views: 599

Re: Maker Faire reportedly halts operations

I read a comment somewhere else that this is all the Raspberry Pi Foundation's fault, as it has the audacity to produce good magazines for free download … The official maker faires had a finance and control problem (only very few cities, seemingly at Dale's discretion could get full Faires, everyone...
by scruss
Mon Jun 10, 2019 8:35 am
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 19
Views: 675

Re: Searching for BASIC

Heater wrote:
Fri Jun 07, 2019 8:51 am
I think what we need here is a good ol'BASIC. The Pi should power up into a full screen terminal like interface.
There's always MMBASIC, but you didn't like it: viewtopic.php?t=212334
by scruss
Mon Jun 10, 2019 8:09 am
Forum: Raspbian
Topic: Enhanced graphics for Raspbian Lite
Replies: 11
Views: 329

Re: Enhanced graphics for Raspbian Lite

Ubuntu also (used to?) use the infinality font tweak package that could get fonts looking better than Mac OS: lots of subpixel rendering and correcting for LCD pixel colours. It may be standard everywhere now.
by scruss
Sat Jun 08, 2019 8:27 pm
Forum: C/C++
Topic: code for UART comm from Pi to Arduino hangs up
Replies: 46
Views: 1541

Re: code for UART comm from Pi to Arduino hangs up

are you sure it's the Raspberry Pi hanging? I see you're using a Due. Some Arduinos (from experience, the Leonardo and the Micro) stop processing if the serial buffer gets too full. Put a watchdog in your code to turn the internal LED on and off every few serial commands. If it stops flashing, your ...
by scruss
Thu Jun 06, 2019 7:14 pm
Forum: General discussion
Topic: Running x86_64 apps on Raspberry Pi
Replies: 5
Views: 264

Re: Running x86_64 apps on Raspberry Pi

You're not able to get useful speed out of any emulation, and the Raspberry Pi has too little RAM to give emulation/virtualization enough useful space.
by scruss
Wed Jun 05, 2019 3:19 pm
Forum: Graphics, sound and multimedia
Topic: Hifiberry dac+adc
Replies: 3
Views: 183

Re: Hifiberry dac+adc

by scruss
Wed Jun 05, 2019 12:56 pm
Forum: General discussion
Topic: Interfacing Raspberry pi with EFB-REV1
Replies: 6
Views: 169

Re: Interfacing Raspberry pi with EFB-REV1

not too much to go on. Dual core Xtensa LX-6 means its based on an ESP-32 microcontroller. Runs FreeRTOS, but https://www.ssla.co.uk website's knowledge base doesn't work. It has serial (UART) and I²C: those could talk to the Raspberry Pi. Wifi and LoRa, too. I suspect it might send MQTT packets ove...
by scruss
Tue Jun 04, 2019 9:14 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 564
Views: 15211

Re: A Final Fibonacci Challenge

python2!!! Why bother ?? You know that python2 will be end of life very soon https://pythonclock.org/ Maybe so, but to use Python 3, your program should start #!/usr/bin/env python3 They're best thought of as two completely separate languages, united by a common fear of HTML text normalization.
by scruss
Tue Jun 04, 2019 12:19 pm
Forum: Off topic discussion
Topic: [FIXED] Ego Search / Own Posts failing
Replies: 54
Views: 4803

Re: [FIXED] Ego Search / Own Posts failing

I don't think it's quite there yet. There's a thread (241970) that I've contributed to (p1476205, p1476182) that's not in my posts.
Not that I particularly want that thread in my history: it makes me reach for the zantac and/or beta blockers …
by scruss
Tue Jun 04, 2019 12:08 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 19
Views: 675

Re: Searching for BASIC

ScriptBasic has 4 ways to run your code. … Doesn't quite meet the OPs requirement of … the 10 ... 20 ... etc. lines cbmbasic, for all its limitations, gets installed on almost every machine I use. I'm glad someone put a video out there, but my installation procedure goes something like: sudo apt in...
by scruss
Tue Jun 04, 2019 3:27 am
Forum: General discussion
Topic: Good News for the Raspberry Pi!
Replies: 32
Views: 1450

Re: Good News for the Raspberry Pi!

This logical fallacy is known as the "false dichotomy". Think it possible you may be mistaken. In this case, there's a much simpler explanation: Google made a deliberate choice to not publicize their MAJOR transition to Debian — and just as they intended, it never made a big splash in the headlines...
by scruss
Tue Jun 04, 2019 2:15 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 564
Views: 15211

Re: A Final Fibonacci Challenge

Wait, hang on - how does using any sort of approximation via a floating point number produce a correct answer to an integer problem? Surely that can't be right? … F(n) ≈ ϕ^n/sqrt(5) … It is possible that this trick only works when n is large enough, but I haven't checked. It works from the get-go: ...
by scruss
Tue Jun 04, 2019 1:31 am
Forum: General discussion
Topic: Good News for the Raspberry Pi!
Replies: 32
Views: 1450

Re: Good News for the Raspberry Pi!

If you had read the articles I linked to more carefully, you would know the announcement was actually made in August 2017 at DebConf17. It was the mainstream computer press that did not pick up on the story until January 2018! If other news sites didn't pick up on it, it's one of two things: not re...
by scruss
Sun Jun 02, 2019 2:14 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 19
Views: 675

Re: Searching for BASIC

Oli4 wrote:
Sun Jun 02, 2019 12:06 pm
I'm searching for a BASIC language that can be run in the terminal like a C64 and also has the 10 ... 20 ... etc. lines.
How about cbmbasic? It is C64 BASIC and runs in a terminal. It's supplied as source, but it's a fairly easy build.

It's also terminal only, no graphics at all.
by scruss
Sat Jun 01, 2019 11:38 pm
Forum: Off topic discussion
Topic: Simplest, smallest way to light a single led with a wind turbine
Replies: 13
Views: 1038

Re: Simplest, smallest way to light a single led with a wind turbine

Nah, just that almost no-one seems to bother with lights on their bike here. Despite the possibility of them getting an $120 fine, I encounter many unlit cyclists here. Some are even riding on the correct side of the road …

I was a vehicular cyclist once, possibly a MAMIL even. I got better :D
by scruss
Sat Jun 01, 2019 11:29 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 198
Views: 9727

Re: Introduction to BBC BASIC

These sensors are slow to react, can be wildly inaccurate and like all humidity sensors, age out of usefulness after a while.

Read 'em every few seconds and do a rolling average of all the valid readings you got in the last minute. They're not accurate enough to do much more.
by scruss
Sat Jun 01, 2019 9:10 pm
Forum: Python
Topic: Emergency Action Required by RPi Foundation
Replies: 31
Views: 1169

Re: Emergency Action Required by RPi Foundation

When SciPy stops having to jump through hoops to support Fortran 77 — a language standard superseded more than a quarter of a century ago — then it might be time to worry about python calling Python 3 vs Python 2.
by scruss
Sat Jun 01, 2019 7:58 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 564
Views: 15211

Re: A Final Fibonacci Challenge

… it doesn't take strong powers of observation for a child to notice it is impossible to create anything resembling even the simplest commercially-produced video game using Scratch. This implies Scratch does not satisfy item 4 in Kurtz and Kemeny's list of requirements, paraphrased here as follows:...
by scruss
Sat Jun 01, 2019 5:22 pm
Forum: Off topic discussion
Topic: Simplest, smallest way to light a single led with a wind turbine
Replies: 13
Views: 1038

Re: Simplest, smallest way to light a single led with a wind turbine

Whats wrong with a bicycle dynamo? They are practically designed for this, cheap and you can get them almost anywhere, the world over. Checks mahjongg's location: Location: South Holland, The Netherlands Aah: located in perhaps peak cycling culture¹ country for the world. I don't think I've ever se...
by scruss
Thu May 30, 2019 9:19 pm
Forum: C/C++
Topic: code for UART comm from Pi to Arduino hangs up
Replies: 46
Views: 1541

Re: code for UART comm from Pi to Arduino hangs up

it might help to cut down your examples to the bare minimum that still shows the problem. It took me too long to find the serial open commands.
by scruss
Wed May 29, 2019 10:48 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 198
Views: 9727

Re: Introduction to BBC BASIC

DHT11s sometimes just refuse to return a reading for no discernible reason. The Python code is likely as good as any other.

They're also really picky about not being read too often.

Go to advanced search