Go to advanced search

by scruss
Sat Jul 24, 2021 8:24 pm
Forum: MicroPython
Topic: MicroPython Asteroids
Replies: 1
Views: 118

Re: MicroPython Asteroids

Very nice!

Nice little display, too
by scruss
Sat Jul 24, 2021 8:21 pm
Forum: Beginners
Topic: How do I combine several components to GPIO
Replies: 4
Views: 147

Re: How do I combine several components to GPIO

So you want to attach: the Raspberry Pi Touch Display a 7“ LCD Display - Joy-IT HDMI display a Raspberry Pi - Real-Time Clock Module (RTC), DS3231SN FREI a 16x2 LCD module - Joy-IT 1602 I²C LCD display (It would've been useful to give links rather than EANs — we can't click on EANs) If the RTC modul...
by scruss
Thu Jul 22, 2021 10:37 pm
Forum: Troubleshooting
Topic: Could use help trying to run an old windows program
Replies: 11
Views: 379

Re: Could use help trying to run an old windows program

… isn't qemu the same idea and that can run on the pi? No, VirtualBox is x86 virtualization; qemu is processor emulation. A Raspberry Pi can't do x86 virtualization because it's not an x86 processor. There was a thing about running Windows 98 in Dosbox-X in The MagPi a while back. Did that not work...
by scruss
Thu Jul 22, 2021 4:27 pm
Forum: Troubleshooting
Topic: Could use help trying to run an old windows program
Replies: 11
Views: 379

Re: Could use help trying to run an old windows program

This might be a thankless task on a Raspberry Pi. This is what VirtualBox on an x86 machine does really well. Set up a small VM, install Win98SE, create an ISO of the CD-ROM, insert it and play. Anything on dosbox is always so dependent on what exact version you're using and whether it matches the v...
by scruss
Thu Jul 22, 2021 2:38 am
Forum: General discussion
Topic: multithreaded zip
Replies: 25
Views: 718

Re: multithreaded zip

Come on, this is not my fault Sorry, that was a bit harsh of me. It seems that the Raspberry Pi gets I/O bound when running tar/pigz. Compressing a roughly 3 GB Documents (du -h says "3.0 GB") folder on a Raspberry Pi 4B 4GB running 32-bit Raspberry Pi OS with and attached USB3 SSD gives ...
by scruss
Mon Jul 19, 2021 9:27 pm
Forum: General discussion
Topic: multithreaded zip
Replies: 25
Views: 718

Re: multithreaded zip

kcajminer2312 wrote:
Mon Jul 19, 2021 11:40 am
getting socket ignored errors
That's something you're doing wrong. Tar is subtle and basically hates everybody. It does completely different things running as a regular user than as root
by scruss
Mon Jul 19, 2021 9:22 pm
Forum: Camera board
Topic: Converted analog camera
Replies: 1
Views: 130

Re: Converted analog camera

It's like the eFilm thing from 20 years ago, but might actually work and not be a scam

It's going to have a wicked sensor crop though
by scruss
Mon Jul 19, 2021 9:18 pm
Forum: Other programming languages
Topic: Cobol in schools
Replies: 86
Views: 2110

Re: Cobol in schools

The problem seems to have arisen because of an influx of 362,000 unemployment benefit claims. More detailed article suggested that most of the problem was caused by a contractor doing something out-of-spec with a storage array, which crashed and delayed everything. Had the correct procedure been fo...
by scruss
Mon Jul 19, 2021 7:45 pm
Forum: Python
Topic: How to Make Counter with Percentage Using Carriage Return? [SOLVED]
Replies: 9
Views: 258

Re: How to Make Counter with Percentage Using Carriage Return? [SOLVED]

Well, what hard is trying going to do? Write little test scripts to see what works. Something like: #!/usr/bin/python3 # -*- coding: utf-8 -*- from progress.bar import ChargingBar from time import sleep bar = ChargingBar('Images captured:', suffix='%(index)4d of %(max)4d - %(percent)f%%', max=100) f...
by scruss
Mon Jul 19, 2021 12:30 am
Forum: General discussion
Topic: multithreaded zip
Replies: 25
Views: 718

Re: multithreaded zip

Try pigz. I think it was already installed on my Raspberry Pi Desktop system. It will use all the cores, so something like this:

Code: Select all

tar --use-compress-program=pigz -cf yourfile.tar.gz folder1 folder2
should be pretty quick. The archives are compatible with plain old gzip.
by scruss
Sat Jul 17, 2021 10:32 pm
Forum: Automation, sensing and robotics
Topic: Need Help: Simple Home Power Status Detector
Replies: 13
Views: 486

Re: Need Help: Simple Home Power Status Detector

its a bit on the expensive side, … understatement! They also need 3-phase power, which most domestic connections don't have. Used to have kit like that in every wind and solar control room that I worked on. Solar plants copy the incoming power waveform and use it to synthesize their own inverters' ...
by scruss
Sat Jul 17, 2021 8:36 pm
Forum: MicroPython
Topic: Trivial code sometimes takes 5ms and interrupts are missed
Replies: 10
Views: 379

Re: Trivial code sometimes takes 5ms and interrupts are missed

As joan suggested - if it's printing via USB cable, then USB CDC timing might be the issue. I don't think MicroPython was ever supposed to provide deterministic loop timing. If you want accurate timing, use a periodic hardware interrupt, which I'm not sure the Pico can do with its stock MicroPython....
by scruss
Sat Jul 17, 2021 7:57 pm
Forum: Automation, sensing and robotics
Topic: Need Help: Simple Home Power Status Detector
Replies: 13
Views: 486

Re: Need Help: Simple Home Power Status Detector

I have an APC Back-UPS BX1300G, and getting much useful out of the apcupsd.events log and/or the apcaccess tool is not easy. I usually get a power outage on a Sunday morning (thanks, Toronto Hydro!) so I'll see if it reports anything fun this week. I'm a former utility guy. I'm surprised your utilit...
by scruss
Sat Jul 17, 2021 12:22 am
Forum: MicroPython
Topic: Yay! Basic running under MicroPython
Replies: 16
Views: 477

Re: Yay! Basic running under MicroPython

The original Dartmouth Basic was a JIT compiler. My impression is the language itself was designed to make that easy. It wasn't quite JIT as we know it, and looking back was a pretty bizarre way of doing things. Traditional time-sharing BASIC required two machines: a small terminal server that poll...
by scruss
Thu Jul 15, 2021 4:46 pm
Forum: Troubleshooting
Topic: Can't scroll up/down on terminal
Replies: 6
Views: 1727

Re: Can't scroll up/down on terminal

It was removed because the code was unmaintained and appeared to have problems in need of a fix. So far, no-one's stepped up to put fixed code back in.

I think rather most people use ssh rather than an xterm kinda thing. Haven't seen anyone use the console since my Web 1.0 startup days
by scruss
Thu Jul 15, 2021 4:39 pm
Forum: General discussion
Topic: Scanner runs as Root only
Replies: 13
Views: 513

Re: Scanner runs as Root only

Lite with xserver, raspberrypi-ui-mods and lightdm is pretty much all of the Desktop install, plus a lot more faff to set up. You're likely missing all the handy You might be able to run this with a 1B, but it won't be fun running xsane on it. One of the SaneOverNetwork - Debian Wiki ideas might be ...
by scruss
Thu Jul 15, 2021 4:23 pm
Forum: Beginners
Topic: Closing Serial Port at Program End
Replies: 9
Views: 339

Re: Closing Serial Port at Program End

OP confirmed in other thread that it's " very similar to the Arduino XY-V17B " but never actually said what it actually is. OP, it would be really, really helpful if you could give model number and possibly even a link where you bought it from. There are hundreds of variants on these board...
by scruss
Thu Jul 15, 2021 4:15 pm
Forum: Beginners
Topic: Problems with ROOT/Sudo premissions
Replies: 5
Views: 175

Re: Problems with ROOT/Sudo premissions

Is it this tutorial? Raspberry Pi Secure Personal server

It's kind of old, and monkeying with the permissions of /bin/su is something you may have had to do years back but is likely a terrible idea now. Like you, I hadn't seen the wheel group applied for years
by scruss
Tue Jul 13, 2021 9:47 pm
Forum: Troubleshooting
Topic: about file time between different OS
Replies: 5
Views: 171

Re: about file time between different OS

That tool is stat : stat /usr/share/raspberrypi-artwork/raspberry-pi-logo.png File: /usr/share/raspberrypi-artwork/raspberry-pi-logo.png Size: 48162 Blocks: 96 IO Block: 4096 regular file Device: b302h/45826d Inode: 429430 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 20...
by scruss
Tue Jul 13, 2021 9:43 pm
Forum: General discussion
Topic: Scanner runs as Root only
Replies: 13
Views: 513

Re: Scanner runs as Root only

I'm going mad here, sane-find-scanner finds nothing but if I prefix SUDO for some reason it lists two. Okay, so it's permissions. I followed the advice you gave re adding details in the /etc/sane.d/epson2.conf file - not sure of difference between that and the epson.conf file but when former didn't...
by scruss
Tue Jul 13, 2021 9:18 pm
Forum: General
Topic: Pi Pico - the most user un-friendly MCU?
Replies: 232
Views: 6632

Re: Pi Pico - the most user un-friendly MCU?

If you want to see user un-friendly, try PIC using free tools under Linux. Every few years I revisit them to see if they'll work at all, but no, they're still almost entirely unsupported. The RP2040 has been out for roughly six months. Unlike the Espressif chips, they haven't been dropped by the mil...
by scruss
Tue Jul 13, 2021 12:53 am
Forum: General
Topic: Replace Z80 or 8088 with Pico
Replies: 132
Views: 3995

Re: Replace Z80 or 8088 with Pico

Why not use a regular Raspberry Pi? They can all easily do HDMI. If Linux is the hurdle, then would native CircuitPython on the Cortex-A RPis be enough? Your guess is as good as mine. The O/P seems to add "yes, and what about «whole 'nother different thing»?” to every query. They seem to enjoy...
by scruss
Tue Jul 13, 2021 12:47 am
Forum: Troubleshooting
Topic: CUPS printing - delay between Ready to Print and Idle
Replies: 5
Views: 133

Re: CUPS printing - delay between Ready to Print and Idle

nope, it processes them as fast as it can. There is a lot going on in the background with CUPS: typically, conversion of your file into PDF, conversion of that PDF into a bitmap your printer can understand, spooling that bitmap (which may be large) to your printer, waiting for your printer to say it...
by scruss
Mon Jul 12, 2021 9:34 pm
Forum: Troubleshooting
Topic: CUPS printing - delay between Ready to Print and Idle
Replies: 5
Views: 133

Re: CUPS printing - delay between Ready to Print and Idle

CUPS uses a queue system. It's quite happy to prepare a print job while the printer is busy and add it on to the queue. If it's a thermal receipt type printer, they don't usually have very fast interfaces and CUPS always prints as a bitmap. So it can take a while to send a print job

Go to advanced search