Go to advanced search

by plugwash
Mon Oct 21, 2019 12:18 am
Forum: Raspbian
Topic: experimental support for multiarch with Raspbian and Debian arm64
Replies: 11
Views: 871

Re: experimental support for multiarch with Raspbian and Debian arm64

I understand there has been some abuse of the keyserver network in recent times which has made key propagation slow and/or unreliable. Something seems to be up with "the.earth.li", so I just pushed the multiarch key to "keys2.kfwebs.net" and have edited the original post to reflect that. (keys.gnupg...
by plugwash
Sat Oct 19, 2019 10:57 pm
Forum: Raspbian
Topic: experimental support for multiarch with Raspbian and Debian arm64
Replies: 11
Views: 871

Re: experimental support for multiarch with Raspbian and Debian arm64

sorry that was a typo, while translating the sources.list files from my systems to a series of commands people can run on their system, it was meant to be plugwash.raspbian.org.
by plugwash
Mon Oct 14, 2019 11:35 pm
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 57
Views: 2353

Re: Where can I begin learning C/C++?

I'm pretty sure you will find that C++ smart pointers do not do any extra allocations on the heap. That depends on what type of smart pointer you are talking about and how you create it. unique_ptr and the deprecated auto_ptr do just exist on the stack. shared_ptr on the other hand needs a "control...
by plugwash
Sun Oct 13, 2019 11:03 pm
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 57
Views: 2353

Re: Where can I begin learning C/C++?

What is needed is beginners books that are reasonably up to date with the way one is expected to use C++ today. Expected by who though? that is the question. Afacit C++ projects run the gamut from programs that are mostly C but with a minimal smattering of C++ features to those that go all in with ...
by plugwash
Sun Oct 13, 2019 4:50 am
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 57
Views: 2353

Re: Where can I begin learning C/C++?

C++ * Provides object orientated programming features * Builds to Native code * Is designed with an attitude of "you only pay for what you use". * Is ported to nearly as many platforms as C is * Has multiple implementations and a proper standard (admittedly compliance is sometimes imperfect) * Allow...
by plugwash
Sun Oct 13, 2019 4:22 am
Forum: Off topic discussion
Topic: Silly question, but is it fine to use PI4 PSU to charge phone?
Replies: 4
Views: 1283

Re: Silly question, but is it fine to use PI4 PSU to charge phone?

It's almost certainly safe, how functional it is is another matter. I know my phone charges very slowly when I use one of the raspberry pi micro USB bricks to charge it.

Is there any documentation on how the USB C connector on the official PSU is connected up?
by plugwash
Fri Oct 11, 2019 10:20 pm
Forum: Raspbian
Topic: experimental support for multiarch with Raspbian and Debian arm64
Replies: 11
Views: 871

Re: experimental support for multiarch with Raspbian and Debian arm64

A multiarch system has a "native" architecture and one of more "foreign" architectures. I am aware of two differences between "native" and "foreign" but there may be others i'm not aware of. 1. The native architecture doesn't have to be specified in the UI of tools like apt. 2. Arch all packages are...
by plugwash
Fri Oct 11, 2019 12:20 am
Forum: Raspbian
Topic: experimental support for multiarch with Raspbian and Debian arm64
Replies: 11
Views: 871

experimental support for multiarch with Raspbian and Debian arm64

As some people here are probably aware Debian has a feature called "multiarch" that allows packages for multiple architectures to be installed on one system. Unfortunately one of the rules of multiarch is that if a package is installed for multiple architectures (this is only possible for multi-arch...
by plugwash
Thu Oct 10, 2019 7:45 pm
Forum: General discussion
Topic: What type of USB-C cable do I need for Raspberry Pi 4?
Replies: 4
Views: 229

Re: What type of USB-C cable do I need for Raspberry Pi 4?

You need a basic cable that is *NOT* "electrically marked". As I understand it any cable that supports more than 3A or supports USB 3 will be electrically marked, so you need to avoid cables with those features. I have personally used https://www.amazon.co.uk/gp/product/B01GGKZ0V6/ref=ppx_yo_dt_b_se...
by plugwash
Tue Oct 08, 2019 2:18 pm
Forum: Advanced users
Topic: Which USB M2 Adapter for Raspberry Pi?
Replies: 10
Views: 822

Re: Which USB M2 Adapter for Raspberry Pi?

Note that both of the chips mentioned in the original post are for SATA SSDs, if you have a NVME SSD you will need a different (and rarer/more expensive) chip.
by plugwash
Thu Oct 03, 2019 11:49 pm
Forum: Raspbian
Topic: Question for Raspbian devs on updated packages
Replies: 5
Views: 244

Re: Question for Raspbian devs on updated packages

Debian doesn't precisely lock down release cycle length like some projects do, but the typical cycle length over the last few releases has been two years plus or minus a couple of months. Buster was released in July this year, some I would estimate that bullseye will be released sometime between May...
by plugwash
Thu Oct 03, 2019 3:27 pm
Forum: Graphics, sound and multimedia
Topic: VGA adaptor question
Replies: 3
Views: 217

Re: VGA adaptor question

HDMI to VGA conversion requires active circuitry, there are apparently some dodgy Chinese sellers out there selling straight cables with a HDMI plug on one end and a VGA plug on the other, these will not work with the vast majority of devices (if any at all). Some active converters are also apparent...
by plugwash
Thu Oct 03, 2019 3:06 pm
Forum: Other programming languages
Topic: The Rust debate.
Replies: 151
Views: 4480

Re: The Rust debate.

jahboater wrote:
Thu Oct 03, 2019 2:52 pm
I thought all unsigned arithmetic was defined.
The problem is if int is larger than 16 bits then the code snippet isn't unsigned arithmetic, it's conversion to int, followed by signed arithmetic, followed by conversion back to uint16_t .
by plugwash
Thu Oct 03, 2019 2:55 pm
Forum: Networking and servers
Topic: RPi tunnel some TCP ports to a public IP, but not VPN. How?
Replies: 5
Views: 197

Re: RPi tunnel some TCP ports to a public IP, but not VPN. How?

I don't want VPN, a VPN means that all the traffic, all ports, everything will be tunneled to the server with public IP address, No it doesn't, openvpn at least won't redirect the default gateway unless you tell it to. What you need to do is. 1. Set up a VPN (without redirecting default gateway) be...
by plugwash
Thu Oct 03, 2019 12:00 pm
Forum: Other programming languages
Topic: The Rust debate.
Replies: 151
Views: 4480

Re: The Rust debate.

C99 introduced exact width types and others such as int_fast and int_least. Forget about what they may map onto, it is of no interest to the programmer. Unfortunately the C99 typedefs don't fully solve the problem because of C's boneheaded promotion and overflow rules, consider for example. uint16_...
by plugwash
Tue Sep 24, 2019 11:16 am
Forum: General discussion
Topic: Connecting raspberry pi to phone line
Replies: 28
Views: 6918

Re: Connecting raspberry pi to phone line

I don't know whereabouts in the world you live, but here in the UK openreach POTs lines (not sure about virgin ones) are still delivered from the telephone exchange. If the customer has FTTC/VDSL then the line is diverted to a FTTC cabinet where the VDSL is terminated, but the POTs still continues b...
by plugwash
Tue Sep 24, 2019 10:15 am
Forum: Other projects
Topic: Raspberry pi 3B+ board DXF file
Replies: 5
Views: 311

Re: Raspberry pi 3B+ board DXF file

It won't be quite as precise as one exported directly from the PCB software would be, but it is possible to create a DXF from a PDF using inkscape. The following in the procedure I used when I last needed to do this. Import the pdf page into inkscape. Use object-ungroup and path->split path to break...
by plugwash
Sat Sep 14, 2019 8:23 am
Forum: Raspbian
Topic: sonic-pi 3.10 for buster available for testing.
Replies: 9
Views: 2843

Re: sonic-pi 3.10 for buster available for testing.

ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode control open "hw:0" (No such file or directory) control open "hw:0" (No such file or directory) Cannot initialize driver JackServer::Open failed with -1 Failed to open server Seems like jack is failing to open the...
by plugwash
Tue Sep 10, 2019 4:02 pm
Forum: General discussion
Topic: Good reasons to buy the latest Rpi 4 with 4G RAM?
Replies: 39
Views: 2413

Re: Good reasons to buy the latest Rpi 4 with 4G RAM?

ejolson wrote:
Tue Sep 10, 2019 3:56 pm
Are you sure gigabit Ethernet on the 4B uses PCI Express?
It doesn't, it uses a gigabit MAC on the SoC with an external PHY chip.
by plugwash
Sat Aug 31, 2019 1:21 am
Forum: Raspbian
Topic: sonic-pi 3.10 for buster available for testing.
Replies: 9
Views: 2843

Re: sonic-pi 3.10 for buster available for testing.

I'd guess it needs a build-dependency on libqt5opengl5-dev
by plugwash
Sat Aug 24, 2019 8:23 am
Forum: General discussion
Topic: Zero: What is the purpose of the unpopulated connector
Replies: 7
Views: 414

Re: Zero: What is the purpose of the unpopulated connector

It's the videocore JTAG connector, used for development and test of the firmware and possiblly (not sure on this) for factory programming purposes. Afaict it's of no real use without access to internal broadcom documentation. Pretty sure the same connector has been used on all Pi models since the B+...
by plugwash
Tue Aug 20, 2019 8:48 pm
Forum: Python
Topic: STICKY: [announcement] python 2 end of life
Replies: 19
Views: 2426

STICKY: [announcement] python 2 end of life

As many (but not all) of you are probably aware python 2 reaches upstream end of life at the start of next year. Debian has begun the process of phasing out python 2. In buster there is still a wide selection of python 2 packages, though some have been dropped. Since the release of buster the phaseo...
by plugwash
Tue Aug 20, 2019 4:22 pm
Forum: Raspbian
Topic: Buster bug report thread
Replies: 232
Views: 32448

Re: Buster bug report thread

by plugwash
Mon Aug 19, 2019 12:50 am
Forum: General discussion
Topic: DELL USB-C charger 45 watt
Replies: 11
Views: 1300

Re: DELL USB-C charger 45 watt

That PSU probablly doesn't offer more than 3A. To get the full 45W out of it would require switching up the voltage to 15V which the Pi can't do. So while it may work with the Pi it probablly won't offer any advantages over the official 5V 3A brick. Furthermore the Pi4 has a design flaw which causes...
by plugwash
Sun Aug 18, 2019 7:24 pm
Forum: Troubleshooting
Topic: My raspberry pi "exploded"
Replies: 6
Views: 516

Re: My raspberry pi "exploded"

A short in the DC power cable would not have caused the power section on the Pi to blow up like that. This looks very much like a fault in the power supply allowing mains onto it's output and that mains finding a path via the cable, the pi and the TV destroying stuff along the way. I know you say "T...

Go to advanced search