Go to advanced search

by pidd
Sun Sep 19, 2021 2:50 am
Forum: Networking and servers
Topic: 404 Error Page
Replies: 3
Views: 198

Re: 404 Error Page

You shouldn't edit in the sites-enabled folder, you should edit the /etc/apache2/sites-available/xxx.conf files Apache2 will only look at .conf files. After editing you need to reload apache, I normally use sudo systemctl restart apache2 Which is a bit over-the-top but ensures everything is cleaned ...
by pidd
Sat Sep 18, 2021 4:44 pm
Forum: Off topic discussion
Topic: R.I.P Sir Clive
Replies: 21
Views: 664

Re: R.I.P Sir Clive

I always got the impression the C5 was produced to push the Government into sorting out legislation for electric vehicles, he didn't want to design and build anything bigger to then fall foul of changes in legislation eg insurance, tax, mot, construction & use regs etc But of course he was thwar...
by pidd
Sat Sep 18, 2021 4:22 pm
Forum: SDK
Topic: Troubles getting started with Pi4 and Pico
Replies: 2
Views: 73

Re: Troubles getting started with Pi4 and Pico

I suggest you open a separate projects folder in your home directory, outside of the sdk tree For the examples projects you have to pick off the from the various CmakeLists.txt in the pico-examples tree for your own project's CMakeLists.txt - or you can just be a genius that understands CMake and th...
by pidd
Sat Sep 18, 2021 3:23 am
Forum: Automation, sensing and robotics
Topic: AC speed control and tachometer
Replies: 5
Views: 229

Re: AC speed control and tachometer

Perhaps a linear stepper would be better. It gets a little complicated that steppers don't know their position when initially switched on so you need at least one switch/sensor to calibrate its position. Sometimes this is done with an endstop that stalls the stepper when you tell it to step many tim...
by pidd
Fri Sep 17, 2021 8:08 pm
Forum: General discussion
Topic: Feature request for the RPi 5 - Browser that uses hw well to play YouTube! :)
Replies: 8
Views: 301

Re: Feature request for the RPi 5 - Browser that uses hw well to play YouTube! :)

Problem isn't so much RPi as Chromium-browser (v88/89), however Chromium 90 in the repository works very well with hardware acceleration switched on.
by pidd
Fri Sep 17, 2021 9:02 am
Forum: Troubleshooting
Topic: Put too much voltage into my pi, now it won't turn on.
Replies: 4
Views: 195

Re: Put too much voltage into my pi, now it won't turn on.

The polyfuse might have protected it, don't apply any power at all for three days and see if the polyfuse recovers.

EDIT: removed trash
by pidd
Fri Sep 17, 2021 8:53 am
Forum: Off topic discussion
Topic: Detecting microwaves
Replies: 13
Views: 630

Re: Detecting microwaves

Repair men that check your microwave for leakage are generally conning you, it takes a very obvious physical fault to the casing/door before a microwave leaks anything more than the extremely small amount of radiation that is normal. To quote one of my friends who runs a domestic electrical repair s...
by pidd
Thu Sep 16, 2021 1:20 am
Forum: Beginners
Topic: Wiring more than 150 inputs/outputs
Replies: 14
Views: 365

Re: Wiring more than 150 inputs/outputs

I've been trying to figure out the pros and cons of using I2C expansions and using picos to break out work. I think for my project, the I2C route might be the way to go. What spurred you to use micro-controllers instead of the I2C method? Years of making things with discrete IC's and finding minor ...
by pidd
Thu Sep 16, 2021 1:07 am
Forum: Beginners
Topic: Wiring more than 150 inputs/outputs
Replies: 14
Views: 365

Re: Wiring more than 150 inputs/outputs

I'm slowly working on something very similar, I guess its still a synth but is biased more towards piano/jazz organ/pipe organ with added functionality. Instead of bus expanders on the inputs I am going to use a number of Raspberry Pico's, at £3.60 a pop its a no brainer for me. Having programmable...
by pidd
Thu Sep 16, 2021 12:58 am
Forum: Beginners
Topic: Wiring more than 150 inputs/outputs
Replies: 14
Views: 365

Re: Wiring more than 150 inputs/outputs

That sounds very neat and interesting! Would you mind if I PM you and pick your brain a bit? Two problems, you can't PM on this forum and secondly, if you find my brain can you send it back to me, its not very well behaved these days. Its been an ongoing project for a few decades, I have a lot of p...
by pidd
Wed Sep 15, 2021 11:45 pm
Forum: Automation, sensing and robotics
Topic: AC speed control and tachometer
Replies: 5
Views: 229

Re: AC speed control and tachometer

I'm guessing its the early L75 with variable speed control, I have what I think is an an L70 that I greatly modified many years ago. The later L75/200 had electronic speed control but it might have been a combination of mechanical and electronic. Instead of doing this electronically have you conside...
by pidd
Wed Sep 15, 2021 11:20 pm
Forum: Beginners
Topic: Wiring more than 150 inputs/outputs
Replies: 14
Views: 365

Re: Wiring more than 150 inputs/outputs

I'm slowly working on something very similar, I guess its still a synth but is biased more towards piano/jazz organ/pipe organ with added functionality. Instead of bus expanders on the inputs I am going to use a number of Raspberry Pico's, at £3.60 a pop its a no brainer for me. Having programmable ...
by pidd
Wed Sep 15, 2021 4:07 am
Forum: General
Topic: Double base palindromes
Replies: 89
Views: 2065

Re: Double base palindromes

If you generate the palindromes such that the first level is always the outside digits then that loop can simply step in twos and starts at two to ensure it remains even - no odd check required. In fact, lose the loop, just do it four times with i=2, i=4, i=6 and i=8. That should speed it up. Curre...
by pidd
Tue Sep 14, 2021 5:56 pm
Forum: General
Topic: Double base palindromes
Replies: 89
Views: 2065

Re: Double base palindromes

If you generate the palindromes such that the first level is always the outside digits then that loop can simply step in twos and starts at two to ensure it remains even - no odd check required.

In fact, lose the loop, just do it four times with i=2, i=4, i=6 and i=8. That should speed it up.
by pidd
Tue Sep 14, 2021 3:35 pm
Forum: General
Topic: Double base palindromes
Replies: 89
Views: 2065

Re: Double base palindromes

@pidd Would you like to try this? It reduces the number of for loops. I'm a bit nervous suggesting it, because I'm not set up to test on a Pico, so I haven't tried the code which may contain typos or other errors, and my C is very rusty. // double-base-palindromes.c // Euler Project Problem 36 // T...
by pidd
Tue Sep 14, 2021 11:16 am
Forum: General
Topic: Double base palindromes
Replies: 89
Views: 2065

Re: Double base palindromes

Yes, but you are performing 999999 decimal tests plus 1998 binary tests. If you generate the decimal palindromes you have no decimal tests and only 1998 binary tests. I suspect the overhead for generation is considerably less than the palindrome test. I see... How about // double-base-palindromes.c...
by pidd
Tue Sep 14, 2021 6:13 am
Forum: General
Topic: Double base palindromes
Replies: 89
Views: 2065

Re: Double base palindromes

I suspect it would considerably faster if you generate all the decimal palindromic integers with loops and test only for base2 palindromacy? There are only 1998 decimal palidromic integers less than 1 million if my sums are right. 9 of length 1 9 of length 2 90 of length 3 90 of length 4 900 of len...
by pidd
Tue Sep 14, 2021 6:01 am
Forum: Networking and servers
Topic: 404 Error Page
Replies: 3
Views: 198

Re: 404 Error Page

Perhaps a link to what you have tried would help.

The error page is often specified in the .htaccess file using something like

ErrorDocument 404 /404.html

But it can be specified in the virtual host config instead, you probably need to restart or reload apache to pick this up.
by pidd
Tue Sep 14, 2021 5:39 am
Forum: Troubleshooting
Topic: SDRAM failures with Pi4
Replies: 11
Views: 544

Re: SDRAM failures with Pi4

cleverca22 wrote:
Tue Sep 14, 2021 3:23 am
i notice a bit of a black line on the capacitor just above the dram chip
is it a crack? its hard to tell from the photo
Certainly some issue with the solder. The capacitor to the left of the dram looks poorly soldered and solder maybe lifted/cracked as well.
by pidd
Tue Sep 14, 2021 5:27 am
Forum: General
Topic: Double base palindromes
Replies: 89
Views: 2065

Re: Double base palindromes

I suspect it would considerably faster if you generate all the decimal palindromic integers with loops and test only for base2 palindromacy? There are only 1998 decimal palidromic integers less than 1 million if my sums are right. 9 of length 1 9 of length 2 90 of length 3 90 of length 4 900 of leng...
by pidd
Tue Sep 14, 2021 5:05 am
Forum: Graphics, sound and multimedia
Topic: RPI 300 ohm capable Tube Amps and/or Dac, possible?
Replies: 3
Views: 172

Re: RPI 300 ohm capable Tube Amps and/or Dac, possible?

I presume you are talking about relatively low power for headphones, in which case valves will be significantly dearer than semiconductor. If you using a Pi with semiconductor outputs you can tailor the response to emulate valve outputs. What are you after, an overdrive for a guitar or hifi, or do y...
by pidd
Tue Sep 14, 2021 4:34 am
Forum: Compute Module
Topic: opinions on cm4 heatsink design/requirements
Replies: 8
Views: 273

Re: opinions on cm4 heatsink design/requirements

In the example graph, it is cooling rather than acting as a reservoir for the majority of the time. If it were acting as a reservoir there would be a continual upwards slope in either or both of the PWM and temperature whereas it is showing a horizontal graph for both the majority of time indicating...
by pidd
Mon Sep 13, 2021 1:59 am
Forum: Troubleshooting
Topic: DNS troubleshoot help please?
Replies: 11
Views: 260

Re: DNS troubleshoot help please?

Have a look at the status, which might show any errors systemctl dhcpcd If there aren't any errors, try sudo systemctl enable dhcpcd sudo systemctl restart dhcpcd I tried all commands you said and the following results are this With systemctl dhcpcd it says Unknown operation dhcpcd. And with sudo s...
by pidd
Sun Sep 12, 2021 10:21 pm
Forum: Troubleshooting
Topic: DNS troubleshoot help please?
Replies: 11
Views: 260

Re: DNS troubleshoot help please?

Have a look at the status, which might show any errors

Code: Select all

systemctl status dhcpcd
If there aren't any errors, try

Code: Select all

sudo systemctl enable dhcpcd
sudo systemctl restart dhcpcd

EDIT: corrected first command
by pidd
Sun Sep 12, 2021 10:13 pm
Forum: Graphics, sound and multimedia
Topic: Sound too low
Replies: 5
Views: 215

Re: Sound too low

Run alsamixer, press F6, select headphones and check the volume is up to 95%. Sometimes it defaults to a lot lower.

But saying that, my Philips monitor is a deaf as a bat and just won't work with headphone type levels. I use PC type speakers powered from mains.

Go to advanced search