Go to advanced search

by scruss
Wed Apr 24, 2019 6:44 pm
Forum: General discussion
Topic: 3D printer and Raspberry Pi power control
Replies: 1
Views: 36

Re: 3D printer and Raspberry Pi power control

I'd just leave the Raspberry Pi on, and switch the printer via X10 (like I currently do) or a GPIO-controlled power outlet (like I probably should). There are nice programmable power switches that have one always-on outlet for running the server from.
by scruss
Wed Apr 24, 2019 6:34 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

I've given a working implementation and results and timings for a real Smalltalk running on a Pi … Tim, I've been sorely troubled trying to get Squeak (x86_64, updated, not running headless, Ubuntu) to do anything with your .cs file. Run from a terminal I get no error messages, but also no output: ...
by scruss
Wed Apr 24, 2019 6:26 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

Heater wrote:
Wed Apr 17, 2019 7:26 am
Hmm... how about a new challenge: Create an expression parser and evaluate the expression in the language of your choice?
BBC BASIC's EVAL and Sinclair BASIC's VAL both do that, but only evaluate a result rather than (AFAIR) run arbitrary code.
by scruss
Wed Apr 24, 2019 1:52 pm
Forum: Troubleshooting
Topic: RP3B+ ttypUSB0 Dies
Replies: 1
Views: 28

Re: RP3B+ ttypUSB0 Dies

I wouldn't do sudo rpi-update basically ever. Running a simple gcode sender over serial (which is all OctoPrint is, at heart) doesn't require a custom kernel, and this may be causing more problems than it fixes. I'd check the hardware of your printer. Is the cable okay? Is the power connection solid...
by scruss
Wed Apr 24, 2019 1:35 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

Your sfibo(92) on my old laptop running 64 bit ScriptBasic. … The iterative side isn't interesting to me. Of course it runs fast. You're basically measuring stdio speed there. I'd be much more interested in seeing how fast recursive code runs. This thread has come a long way. DavidS seemed to be as...
by scruss
Wed Apr 24, 2019 12:59 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

With that and the other nice properties of 12 I often wonder why we ever went decimal. Every time I think that, a brief visit to The Dozenal Society of Great Britain fixes my thinking. My recently late uncle was one of the last to be taught the old Scots school times tables in the early 1940s. They...
by scruss
Wed Apr 24, 2019 4:36 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

QBasic's nothing if not steady, ejolson. It's nice to see Phi showing up here. One of my other jams is geometric patterns, and the pentagon rule-and-compass construction allows you to make a perfect Golden Ratio representation. Seems that the Pythagoreans were so impressed by this method's power tha...
by scruss
Wed Apr 24, 2019 4:18 am
Forum: General discussion
Topic: I Installed QB64 on a RaspberryPi 3 B
Replies: 2
Views: 922

Re: I Installed QB64 on a RaspberryPi 3 B

I started with installing the library's from the setup_lnx.sh for Debian. Thanks for that - got QB64 1.3 working on my Raspberry Pi 3B+ in similar time. All I did was edit qb64-1.3/internal/c/common.h and add this at the top: #define QB64_NOT_X86 Then I ran ./setup_lnx.sh and it built the compiler ...
by scruss
Tue Apr 23, 2019 1:17 pm
Forum: General discussion
Topic: Running an Arduino from the raspberry pi.....
Replies: 7
Views: 207

Re: Running an Arduino from the raspberry pi.....

Andyroo forgot the 'J' option to extract xz files:

Code: Select all

tar xvJf arduino-1.8.9-linuxarm.tar.xz
I still think these instructions are better, but then again, I would 'cos I wrote 'em.
by scruss
Tue Apr 23, 2019 12:37 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

I just realized your sfibo method beats @hippy's ScriptBasic version. (all test run on the RPi 3 B+) lawks! Who knew that developing on very slow interpreters helped make efficient code? Qbasic running on an i7 core at ~ 4GHz eventually finished a recursive calculation of fibo(46) — the largest num...
by scruss
Mon Apr 22, 2019 7:12 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

Why would anyone want to run this in a DOSBox in QB is beyond me. Familiarity. Documentation. Runs anywhere. Rapid development cycle (no-one can press F5 faster than me …). Compatibility. Does what I expect. A tiny bit of because-I-can. No installation required (beyond dosbox). Really nice, simple ...
by scruss
Mon Apr 22, 2019 6:08 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2020
Views: 75051

Re: Why Avoid BASIC on RPi?

I've been mucking about with QBasic running under dosbox for the last couple of days. It's pretty easy to set up, has a development environment I know well and is extensively documented. It has the interesting quirk of running at almost exactly the same speed on any computer, from Raspberry Pi Zero ...
by scruss
Fri Apr 19, 2019 4:39 pm
Forum: General discussion
Topic: How to implement Precision Time Protocol (PTP) on Rpi3 p2p network?
Replies: 5
Views: 5152

Re: How to implement Precision Time Protocol (PTP) on Rpi3 p2p network?

I think you're asking about a different thing. PTP is a high-precision network implementation that won't work with existing Raspberry Pi hardware. You're looking for an NTP server synchronized to a GPS PPS pulse.
by scruss
Fri Apr 19, 2019 3:42 pm
Forum: Device Tree
Topic: USB to serial adapter: ttyUSBx identification?
Replies: 2
Views: 67

Re: USB to serial adapter: ttyUSBx identification?

pl2303s don't have serial numbers, as PhilE said. As long as you're not unplugging the cables and moving them around, /dev/serial/by-id/ or /dev/serial/by-path/ should stay the same over system restarts. If you are unplugging the cables and moving them around on the Raspberry Pi, you really need to ...
by scruss
Thu Apr 18, 2019 3:30 pm
Forum: Troubleshooting
Topic: Xerox Phaser 6000B drivers
Replies: 8
Views: 235

Re: Xerox Phaser 6000B drivers

There are lots of HP printers that don't work with Linux, too. Take a look at all the HP Paperweight s at the bottom of this list. This 6000B seems to be a special HBPL version. They're almost unusable on any kind of Linux. Other printers in the Phaser 6000 range can use Postscript-Xerox , but I don...
by scruss
Tue Apr 16, 2019 7:32 pm
Forum: Camera board
Topic: Case for a pinhole camera on the side
Replies: 21
Views: 453

Re: Case for a pinhole camera on the side

Scruss - you forgot chocolate :lol: Since I'm allergic to chocolate, I wouldn't have mentioned it under “generally considered safe”. Also the last chocolate printer I saw (a failed local startup) used laser sintering and ended up making inedible (even by your standards) burnt things. I did see a co...
by scruss
Tue Apr 16, 2019 1:56 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 165
Views: 3007

Re: ScriptBasic

My default debugger once the script passes syntax validation is ... PRINT "Got Here\n" Oh dear — shotgun debugging is pretty much a last resort. While I'm not really a fan of Python's fulsome error verbiage, it never leaves you in any doubt what went wrong and (roughly) where. The ScriptBasic User ...
by scruss
Tue Apr 16, 2019 1:35 pm
Forum: Troubleshooting
Topic: Arduino to Pi connection
Replies: 2
Views: 71

Re: Arduino to Pi connection

You forgot the timeout when reading the serial port in Python. Without it, your program will happily sit at the s_in=ser.readline() and wait forever until the Arduino sends something.
by scruss
Tue Apr 16, 2019 1:28 pm
Forum: Camera board
Topic: Case for a pinhole camera on the side
Replies: 21
Views: 453

Re: Case for a pinhole camera on the side

About the 3D printers: I have no experience in that area. And I do not know if there could be health issues. Pretty much every filament comes with an MSDS data sheet. While there are some with concerns that FDM printers produce ultra-fine particulates, the strongest proponents of this theory also s...
by scruss
Mon Apr 15, 2019 2:53 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 76
Views: 1176

Re: Introduction to BBC BASIC

ScriptBasic wrote:
Sun Apr 14, 2019 5:31 pm
I'm using Brandy's SDL BBC BASIC graphic library module with ScriptBasic which seems to work okay.
But your BASIC isn't BBC BASIC
by scruss
Sun Apr 14, 2019 1:14 pm
Forum: Advanced users
Topic: How to get QGIS3.x?
Replies: 10
Views: 414

Re: How to get QGIS3.x?

There aren't many alternatives to QGIS: it's become pretty much everything that is not-Arc. ISTR QGIS being painfully slow on a Raspberry Pi, but I hope it has improved.
by scruss
Sun Apr 14, 2019 1:12 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 76
Views: 1176

Re: Introduction to BBC BASIC

… we've had quite a few posts on basic recently, we don't need this as well. In a “People keep asking for it, but there's no demand” kind of a way? I really like what Richard has done with BBC BASIC, from being on the committee that defined it to producing the definitive open-source version. Matrix...
by scruss
Sat Apr 13, 2019 3:35 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 165
Views: 3007

Re: ScriptBasic

hippy wrote:
Sat Apr 13, 2019 1:44 am
I'm still after the holy grail of a 'boot to Python' Pi clone of the micro:bit, …
here y'go, Arthur: boochow/micropython-raspberrypi: bare metal Raspberry Pi Zero / Zero W port of MicroPython
by scruss
Sat Apr 13, 2019 12:08 am
Forum: Raspbian
Topic: Raspian and running Arduino IDE
Replies: 7
Views: 198

Re: Raspian and running Arduino IDE

Below is the output of "Board Info" BN: Unknown Board VID: 1A86 PID:7523 SN: Upload any sketch to obtain it. Does his look OK to you? Yup. Most Arduinos come flashed with Blink out the box, so it's probably blinking from the start, then there's a mess of other LEDs blinking while the programs uploa...
by scruss
Fri Apr 12, 2019 6:29 pm
Forum: Camera board
Topic: Case for a pinhole camera on the side
Replies: 21
Views: 453

Re: Case for a pinhole camera on the side

Gavinmc42 wrote:
Fri Apr 12, 2019 6:34 am
Brass shim I have , 0.03mm drill not so much ;)
A needle and a scanner to measure it with will do just fine.

Go to advanced search