Go to advanced search

by scruss
Mon Jun 21, 2021 8:52 pm
Forum: Python
Topic: How to print an HTML file on a USB printer?
Replies: 6
Views: 211

Re: How to print an HTML file on a USB printer?

weasyprint is about as good as you'll get if you've got no control of the input HTML. Printing arbitrary HTML effectively is hard, and weasyprint makes mostly good decisions
by scruss
Sun Jun 20, 2021 9:04 pm
Forum: Other projects
Topic: Print server (CUPS) is very slow with pdf files
Replies: 7
Views: 356

Re: Print server (CUPS) is very slow with pdf files

There are two types of drivers: postscript and non-postscript If you use a non-postscript driver, PDF files print slower. End of discussion. That might have been the case some time ago, but it's not true now. CUPS hasn't used PostScript as its transport format internally since at least late 2011 . ...
by scruss
Sun Jun 20, 2021 7:28 pm
Forum: The MagPi
Topic: Software used for stripboard/perfboard diagrams
Replies: 2
Views: 162

Re: Software used for stripboard/perfboard diagrams

Mike's on here sometimes as GrumpyMike. Given how long he's been doing this, it's almost definitely not any of the usual suspects.
by scruss
Sat Jun 19, 2021 8:08 pm
Forum: Advanced users
Topic: 8-bit character console?
Replies: 6
Views: 241

Re: 8-bit character console?

It may be better to set a system locale that uses an eight bit encoding such as ISO-8859-15. Yeah, that would be the way I'd do it: sudo dpkg-reconfigure locales and make an ISO-8859-15 one the default. Another way would be to use minicom's various 8 bit/ISO Latin options. Yet another option might ...
by scruss
Sat Jun 19, 2021 8:37 am
Forum: Other projects
Topic: Print server (CUPS) is very slow with pdf files
Replies: 7
Views: 356

Re: Print server (CUPS) is very slow with pdf files

... For example 10 pages pdf takes more than 5 minutes to get them printed. If i attach the printer via usb to the Laptop (Win10) takes around 30 secs to print the same file. Some PDFs are really slow to process, and this is where the extra processing power and memory of the laptop win out over the...
by scruss
Sat Jun 19, 2021 8:23 am
Forum: Other RP2040 boards
Topic: Maker Pico SD card unreliable
Replies: 4
Views: 427

Re: Maker Pico SD card unreliable

If I start the board and press the GP22 button to test the card, it responds "no sd card". However, if I start the board and press GP20, wait for it to finish, and then press GP22, then it responds "sd card test: pass". That sounds like it's software supplied with the Maker Pico...
by scruss
Fri Jun 18, 2021 5:20 pm
Forum: Off topic discussion
Topic: Tips on a Good FFF/FDM 3D Printer [SOLVED]
Replies: 9
Views: 354

Re: Tips on a Good FFF/FDM 3D Printer

In that price range, you've pretty much got the Prusa Mini (made in and ships from Czechia) or perhaps the Creality CR6. Both have some assembly, though perhaps Prusa offer an assembled option. The Prusa's the better printer, but has quite a small print bed. Prusa's tech support is amazing. Creality...
by scruss
Thu Jun 17, 2021 10:20 pm
Forum: Java
Topic: Create a program in Java wherein if a year is a leap year will return true otherwise false
Replies: 13
Views: 726

Re: Create a program in Java wherein if a year is a leap year will return true otherwise false

import java.time.LocalDate; public class isleap { public static boolean isLeapYear(int year) { return (LocalDate.of(year, 3, 1).getDayOfYear() > 60); } public static void main(String[] args) { System.out.println("2021:"); System.out.println(isLeapYear(2021)); System.out.println("2020...
by scruss
Thu Jun 17, 2021 9:33 pm
Forum: General discussion
Topic: How can i speed up boot times on the raspberry pi 4
Replies: 20
Views: 505

Re: How can i speed up boot times on the raspberry pi 4

You're not going to get much SD card activity if your Raspberry Pi is idling. The filesystem is mounted with noatime set, which cuts down on card writes.
by scruss
Thu Jun 17, 2021 9:27 pm
Forum: MicroPython
Topic: How to use tkinter with MicroPython
Replies: 14
Views: 448

Re: How to use tkinter with MicroPython

joao linked with http://abyz.me.uk/picod/ picod is very neat, but it's not compatible with Firmata. Firmata has been around for ages — it was mature, possible even elderly, when I wrote about it in The MagPi in 2012 — and there's quite a bit of creative technology/interaction design software that a...
by scruss
Thu Jun 17, 2021 9:16 pm
Forum: General discussion
Topic: taskbar missing for root
Replies: 14
Views: 750

Re: taskbar missing for root

To clarify, the default setup of RPiOS with Desktop (using LXDE) is not setup to run with with root logging in and starting the windowing system … It's really the desktop itself — comprising X11 and all the stuff under it that's not set up to be run as root. I'll defer to Emmanuele Bassi, one of th...
by scruss
Thu Jun 17, 2021 8:56 pm
Forum: MicroPython
Topic: Import “Machine” Question?
Replies: 5
Views: 182

Re: Import “Machine” Question?

… so basically, if you get the ImportError: no module named 'machine' error, you're running on CircuitPython.

I'd stick to one or the other, since the language differences that CircuitPython introduced make it incompatible. CircuitPython has better support for add-on hardware, though.
by scruss
Wed Jun 16, 2021 10:32 pm
Forum: Ubuntu
Topic: Desktop Sharing in 21.04
Replies: 1
Views: 168

Re: Desktop Sharing in 21.04

I'm having the same problem on 21.04 on Intel. I think it's the change over to Wayland from X
by scruss
Wed Jun 16, 2021 2:44 pm
Forum: Raspberry Pi OS
Topic: cannot install Xorg / xinit via cmd line on Pi4
Replies: 7
Views: 507

Re: cannot install Xorg / xinit via cmd line on Pi4

Your network's down - it can't resolve the repo's address.
by scruss
Wed Jun 16, 2021 2:42 pm
Forum: MicroPython
Topic: How to use tkinter with MicroPython
Replies: 14
Views: 448

Re: How to use tkinter with MicroPython

hippy wrote:
Wed Jun 16, 2021 2:36 pm
Something which allows a Pico to easily interact with graphics or a GUI on a host would be very useful IMO. Tkinter might just be a layer on that.
Like Firmata, perhaps. Though it would be a waste of the Pico's processing power for it just to act as a simple I/O handler.
by scruss
Mon Jun 14, 2021 8:32 pm
Forum: MicroPython
Topic: Connect Nodemcu to Raspberry Pico
Replies: 2
Views: 281

Re: Connect Nodemcu to Raspberry Pico

Yup, user hermannSW is on this: Re: PICO with wifi
by scruss
Mon Jun 14, 2021 8:29 pm
Forum: MicroPython
Topic: Trouble downloading micropython on pico
Replies: 10
Views: 464

Re: Trouble downloading micropython on pico

If a main.py script is running, you need to hit Stop in Thonny to get access to the REPL and filesystem. It's the same as hitting Ctrl-C in a terminal to get back to the REPL.
by scruss
Mon Jun 14, 2021 2:25 am
Forum: Raspberry Pi 400
Topic: Workspace switcher
Replies: 18
Views: 566

Re: Workspace switcher

If you install an alternative desktop, there's a fair chance that the regular raspberrypi-uimods (or some similar name) updates will revert it.
by scruss
Sun Jun 13, 2021 11:53 pm
Forum: MicroPython
Topic: Support added for on-chip RTC
Replies: 5
Views: 329

Re: Support added for on-chip RTC

The main gain is in allowing existing MicroPython code which utilises "machine.RTC" to work without change as it brings MicroPython for Pico more in line with how it is on other boards. This is a good thing: the RTC API's a bit basic, but it works well on other boards, especially if you h...
by scruss
Sat Jun 12, 2021 5:18 pm
Forum: Beginners
Topic: [SOLVED] Log viewer software and how to perform boolean searches in package manager?
Replies: 4
Views: 196

Re: Log viewer software and how to perform boolean searches in package manager?

Another way to do it is: apt-cache search log | grep viewer | grep log auth2db - Powerful and eye-candy IDS logger, log viewer and alert generator belvu - multiple sequence alignment viewer and phylogenetic tool bidiv - BiDi viewer - command-line tool displaying logical Hebrew/Arabic figtree - graph...
by scruss
Fri Jun 11, 2021 5:36 pm
Forum: General discussion
Topic: Porting old Pi3 distribution to pi4.
Replies: 27
Views: 828

Re: Porting old Pi3 distribution to pi4.

So why doesn't the older system work on pi4? There has to be an explanation other than "it is not supported". That's a manager-statement. I am a technical guy, I need technical reasons. Firmware binaries (for sure) and configuration files (possibly) in /boot need to be copied across for t...
by scruss
Fri Jun 11, 2021 5:02 pm
Forum: Raspberry Pi OS
Topic: fonts not visible
Replies: 8
Views: 418

Re: fonts not visible

it was simpler than I thought ... always following the guide I posted it was enough for me to type: fc-list | grep -i awesome and the fonts have appeared! If fc-list can find them, it means they were installed and working. fc-list can't fix anything, it just reports on status. Fontconfig works as q...
by scruss
Fri Jun 11, 2021 4:59 pm
Forum: Ubuntu
Topic: X11 vs Wayland - Wow!
Replies: 15
Views: 717

Re: X11 vs Wayland - Wow!

Wayland handles the clipboard differently from X11, so some programs might not copy and paste as expected. Firefox is particularly bad for this.

Wayland also removes X11's client-server concept (usually for the better), but you might find that remote desktops don't work the way you're used to.
by scruss
Fri Jun 11, 2021 12:01 am
Forum: General
Topic: Need LEDs and capacitive touch contacts on Pico
Replies: 6
Views: 300

Re: Need LEDs and capacitive touch contacts on Pico

Can confirm that cheap TTP223 sensors work really well. All they have is power, ground and output connections, and the output goes high on a touch event. This is trivial code that lights the onboard LED when the sensor is touched: import machine touch = machine.Pin(16, machine.Pin.IN) led = machine....
by scruss
Thu Jun 10, 2021 7:09 pm
Forum: Graphics, sound and multimedia
Topic: Connecting to RealVNC on Any Network
Replies: 3
Views: 225

Re: Connecting to RealVNC on Any Network

There really isn't much more to be specific about. When you add a Raspberry Pi to your team on Cloud Connect, it doesn't matter what IP address it's on. As long as RealVNC Server is running on it (and also registered with Cloud Connect), the remote computer will find it.

Go to advanced search