Go to advanced search

by PeterO
Sun Oct 20, 2019 9:03 pm
Forum: Beginners
Topic: GPU & CPU Temp in Fahrenheit
Replies: 24
Views: 7809

Re: GPU & CPU Temp in Fahrenheit

a "metric pint". :lol: a metric pint, that's a new concept to confuse. At the time we went metric my late Father owned a Joinery business. Sometimes I used to go to work with him during my school holidays. I can remember the timber merchants would sell "metric yards" of wood (which were 39 inches i...
by PeterO
Sun Oct 20, 2019 1:26 pm
Forum: Off topic discussion
Topic: Auto locking threads
Replies: 26
Views: 522

Re: Auto locking threads

hippy wrote:
Sun Oct 20, 2019 1:02 pm
Not always true. My own "How to install Visual Studio Code" has been kept updated over a number of years, often with more than six months between updates -

https://www.raspberrypi.org/forums/view ... p?t=191342
The exception that proves the rule !
PeterO
by PeterO
Sun Oct 20, 2019 11:42 am
Forum: Off topic discussion
Topic: Auto locking threads
Replies: 26
Views: 522

Re: Auto locking threads

The locking would be triggered on six months of inactivity. A long running thread would be left untouched. It's got to be based on last posting date not when the thread was created. This has my vote as well... How would a " long running thread would be left untouched" be specified? They don't need ...
by PeterO
Sat Oct 19, 2019 8:45 pm
Forum: General discussion
Topic: Why is compositor not enabled by default?
Replies: 1
Views: 161

Re: Why is compositor not installed by default?

Not sure what you are using, but on latest Raspbian it IS installed by default and can be enabled via the "Advanced Options" menu in raspi-config.

I would guess it's not enabled by default because because either
most people don't need it
or
the same job is done by something else in the GPU.

PeterO
by PeterO
Sat Oct 19, 2019 8:39 pm
Forum: Off topic discussion
Topic: Auto locking threads
Replies: 26
Views: 522

Re: Auto locking threads

When someone opens a thread with a question here, that is a communication channel between that someone and the rest of the world. For a very small value of "rest of the world".... :lol: Lock threads after 3-6 months of inactivity sounds sensible to me. New threads can easily be started if the issue...
by PeterO
Sat Oct 19, 2019 9:06 am
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 343

Re: Continue *after* executing statements within a code block?

If you look at the examples shown in your link, along with every other example on Google, DogPile, DuckDuckGo, ad nauseum , you will notice that all of them, every single one , show the "continue" or "break" coming directly after the line that makes the test. But none of them say there can't be sta...
by PeterO
Fri Oct 18, 2019 6:33 pm
Forum: C/C++
Topic: C's 'printf'
Replies: 27
Views: 488

Re: C's 'printf'

Heater wrote:
Fri Oct 18, 2019 6:14 pm
Yes of course with a new different language. I did not suggest "fixing" C. I don't believe sal55 meant that either.
I think he did, that's why he keeps on about his compiler that did just that, but of course it would mean any code using his not-printf would be unusable by anyone else !
PeterO
by PeterO
Fri Oct 18, 2019 5:58 pm
Forum: C/C++
Topic: C's 'printf'
Replies: 27
Views: 488

Re: C's 'printf'

Heater wrote:
Fri Oct 18, 2019 5:49 pm
So we see that what sal55 is saying is not unreasonable or beyond the bounds of possibility, it's been done.
By creating a whole new language... Which is not what sal55 thinks is the solution to his "problem"
PeterO
by PeterO
Fri Oct 18, 2019 4:04 pm
Forum: C/C++
Topic: C's 'printf'
Replies: 27
Views: 488

Re: C's 'printf'

I'm at a loss to understand what is stopping you from writing your own functions ? You can't write functions that work better than printf, because it needs language support. For example, consider a function that is called as: print(a, b, c); which prints an arbitrary sequence of expressions of arbi...
by PeterO
Fri Oct 18, 2019 12:13 pm
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 343

Re: Continue *after* executing statements within a code block?

Dupe caused by Forum Servers having a lie down for a few minutes :-)
PeterO
by PeterO
Fri Oct 18, 2019 12:07 pm
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 343

Re: Continue *after* executing statements within a code block?

Python 3 for i in range(1,10): if(i>=5 and i<7): print("======") continue print(i) Prints: 1 2 3 4 ====== ====== 8 9 There is somethign seriously wrong with your Python3 installation ! Python 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license"...
by PeterO
Fri Oct 18, 2019 12:00 pm
Forum: C/C++
Topic: C's 'printf'
Replies: 27
Views: 488

Re: C's 'printf'

It's a library function, if it doesn't do what you want write something else..... Not true. I'm at a loss to understand what is stopping you from writing your own functions ? You can make it do what you want by modifying its inputs. But doing that directly in C is fiddly and error prone. What are y...
by PeterO
Fri Oct 18, 2019 11:12 am
Forum: C/C++
Topic: C's 'printf'
Replies: 27
Views: 488

Re: C's 'printf'

It's a library function, if it doesn't do what you want write something else.....
I suggest you take your thread to JTC1/SC22/WG14 - C .
PeterO
by PeterO
Fri Oct 18, 2019 11:02 am
Forum: Beginners
Topic: what does cd $cwd do?
Replies: 5
Views: 131

Re: what does cd $cwd do?

Is cwd a shell built-in variable? I know PWD is, but don't think cwd is. Perhaps cwd has been set elsewhere? I will admit to having to check as my first thoughts were that $cwd existed though I was suspicious about $cwd vs $CWD, $PWD does exist (at least on login shells running bash, but neither $c...
by PeterO
Fri Oct 18, 2019 9:21 am
Forum: Python
Topic: Determine version of Python within running code?
Replies: 9
Views: 211

Re: Determine version of Python within running code?

DougieLawson wrote:
Fri Oct 18, 2019 9:01 am
PeterO wrote:
Fri Oct 18, 2019 7:17 am
You could have gotten the same answer in about 15 seconds using google and searching for "python find running version".
PeterO
Guess how I got my answer.
My point exactly ! :lol:
PeterO
by PeterO
Fri Oct 18, 2019 7:23 am
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 343

Re: Continue *after* executing statements within a code block?

Update: As far as I can tell, the "continue" statement has two restrictions: 1. It must be on a line of it's own (properly indented, of course) 2. It must be the only statement after the conditional that triggers it. (Dumb, but I didn't write the language. . .) https://www.tutorialspoint.com/python...
by PeterO
Fri Oct 18, 2019 7:17 am
Forum: Python
Topic: Determine version of Python within running code?
Replies: 9
Views: 211

Re: Determine version of Python within running code?

You really ought tyo be using Google to find the answers ... These issues may be new to you, but you're several years behind the rest of us who have been dealing with this for a while now :roll: That assumes that Google has a relevant answer for the Pi and the ancient version of Python we use. Why ...
by PeterO
Fri Oct 18, 2019 7:05 am
Forum: Beginners
Topic: [SOLVED] How Do Dual Monitors On The RPi4B Function?
Replies: 5
Views: 153

Re: How Do Dual Monitors On The RPi4B Function?

With the RPi4B set up using dual monitors, can I have one monitor say playing a video while I simultaneously use the other monitor for word processing? The two monitors are combined into a single logical desktop, so you can move application windows between the two. You can adjust the logical layout...
by PeterO
Thu Oct 17, 2019 7:40 pm
Forum: Python
Topic: Determine version of Python within running code?
Replies: 9
Views: 211

Re: Determine version of Python within running code?

jharris1993 wrote:
Thu Oct 17, 2019 7:27 pm
Ref: My posting at https://www.raspberrypi.org/forums/view ... 2&t=254607
You really ought tyo be using Google to find the answers ... These issues may be new to you, but you're several years behind the rest of us who have been dealing with this for a while now :roll:

PeterO
by PeterO
Tue Oct 15, 2019 5:08 pm
Forum: General discussion
Topic: Current State of Raspberry Pi 4 Software and Hardware Support
Replies: 53
Views: 2742

Re: Current State of Raspberry Pi 4 Software and Hardware Support

. The main open one is over 1366x768 resolutions because the horizontal sync width and back porches are an odd number of pixels. The new pipeline runs at two pixels/clock, therefore it has needed some tweaking to make it behave sensibly under those conditions. AH, that explains why my Motorola Lapd...
by PeterO
Tue Oct 15, 2019 6:55 am
Forum: Advanced users
Topic: OpenGL
Replies: 4
Views: 237

Re: OpenGL

healingeye wrote:
Tue Oct 15, 2019 6:53 am
Anybody know how to update the raspberry pi 4 opengl version?
thanks so much. :)
From what to what ?
PeterO
by PeterO
Mon Oct 14, 2019 8:24 pm
Forum: Troubleshooting
Topic: Raspberry pi 4 won't boot start*.elf not found
Replies: 6
Views: 239

Re: Raspberry pi 4 won't boot start_x.elf not found

What has this got to do with start_x.elf ?
PeterO
by PeterO
Mon Oct 14, 2019 5:39 pm
Forum: General discussion
Topic: Current State of Raspberry Pi 4 Software and Hardware Support
Replies: 53
Views: 2742

Re: Current State of Raspberry Pi 4 Software and Hardware Support

hippy wrote:
Mon Oct 14, 2019 5:34 pm
andrum99 wrote:
Mon Oct 14, 2019 5:19 pm
probably pre-DRM.
I keep seeing references to "DRM". It may be, but presume isn't, "Digital Rights Management". Would anyone care to clarify what it is / means ?
https://en.wikipedia.org/wiki/Direct_Rendering_Manager
by PeterO
Sun Oct 13, 2019 7:38 am
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 57
Views: 2318

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

I have the feeling what the C++ world needs now is books and tutorials to present modern C++ to beginners, leaving out tons of historical baggage that no longer recommended and is only confusing. Perhaps a task for the Raspberry Pi Foundation? :) When you've written it, send it to The MagPi, they'l...
by PeterO
Sat Oct 12, 2019 10:48 am
Forum: General programming discussion
Topic: Programming languages support
Replies: 37
Views: 1619

Re: Programming languages support

I suggest rather than we debate that further here it would be more useful for you guys hop over to this thread: https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=254054#p1550213 and help DanielLazar with his problem regarding a serial port blocking whilst he wants to do other things in his pr...

Go to advanced search