Go to advanced search

by PeterO
Fri Jun 14, 2019 9:47 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1043
Views: 25501

Re: ScriptBasic

Here's a graphical plot of what I am getting. The most notable features are the occasional capture at 600 MHz clock rather than 1.2 GHz (causing everything to be stretched x2) and the rather variable time to the initial transition. Is that the right way round ? Sampling at the lower rate should com...
by PeterO
Thu Jun 13, 2019 11:10 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 509
Views: 13337

Re: A Final Fibonacci Challenge

I forgot to add the link to the George 3 Emulator if anyone wants to try it... It's quite a challenge to get anything done though :-)

https://www.icl1900.co.uk/preserve/g3ee.html

PeterO
by PeterO
Thu Jun 13, 2019 9:36 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 509
Views: 13337

Re: A Final Fibonacci Challenge

Way back near the start of the "challenge" I posted an Algol-60 version. This was written for the compiler on the Elliott 803 that I look after at The National Museum of Computing (https://www.tnmoc.org/) Another machine we have in our "Large Systems Gallery" is an ICL 2966. This actually operates i...
by PeterO
Wed Jun 12, 2019 8:50 am
Forum: Automation, sensing and robotics
Topic: irritating battery limits
Replies: 19
Views: 502

Re: irritating battery limits

@imperf3kt You'd better stick to areas where you know what you are talking about. Balancing is for rechargeable lithium cells in series. You must be careful when charging cells in parallell as well, if the voltages aren't close you will permanently damage one or more batteries in the parallell setu...
by PeterO
Sun Jun 09, 2019 6:26 pm
Forum: C/C++
Topic: Trouble with GCC compiling
Replies: 9
Views: 230

Re: Trouble with GCC compiling

Sorry, I missed the last post from marcellatwin.
PeterO
by PeterO
Sun Jun 09, 2019 1:44 pm
Forum: Raspbian
Topic: Kernel update uses 10 more process threads?
Replies: 3
Views: 168

Re: Kernel update uses 10 more process threads?

Those are processes, not threads.

PeterO
by PeterO
Thu Jun 06, 2019 10:04 pm
Forum: C/C++
Topic: Trouble with GCC compiling
Replies: 9
Views: 230

Re: Trouble with GCC compiling

Now I'm on a machine which has the can-utils installed on it so I can see how it is supposed to be working. ~/CAN/linux-can-utils$ ls -l lib* -rw-r--r-- 1 petero petero 11770 Mar 15 2015 lib.c -rw-r--r-- 1 petero petero 5800 Mar 15 2015 lib.h -rw-r--r-- 1 petero petero 10400 Mar 15 2015 lib.o So the...
by PeterO
Thu Jun 06, 2019 8:10 pm
Forum: C/C++
Topic: Trouble with GCC compiling
Replies: 9
Views: 230

Re: Trouble with GCC compiling

where has the -llib come from ?

I doubt there is a library called "liblib.so"

PeterO
by PeterO
Thu Jun 06, 2019 7:24 pm
Forum: C/C++
Topic: Trouble with GCC compiling
Replies: 9
Views: 230

Re: Trouble with GCC compiling

Where did you get the compile options from ?
PeterO
by PeterO
Thu Jun 06, 2019 6:43 pm
Forum: C/C++
Topic: Trouble with GCC compiling
Replies: 9
Views: 230

Re: Trouble with GCC compiling

Should that be -Llib (note the first L is a capital)
PeterO
by PeterO
Wed Jun 05, 2019 9:40 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1043
Views: 25501

Re: ScriptBasic

ScriptBasic wrote:
Wed Jun 05, 2019 9:30 pm
If you don't like the syntax or nesting rules in ScriptBasic, use something else. I make no money doing this or care what whiners think.
What I don't like is your deliberately misleading and less then helpful answers to quite straight forward questions!
PeterO
by PeterO
Wed Jun 05, 2019 8:24 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1043
Views: 25501

Re: ScriptBasic

So when you asked Browsing the ScriptBasic docs, which you linked to, I found this: " ScriptBasic optionally allow you to write the variable name after the keyword NEXT but the interpreter does not check if the symbol is a variable of the loop ". Please tell me this isn't true any more! the actual a...
by PeterO
Tue Jun 04, 2019 5:49 pm
Forum: Troubleshooting
Topic: Thony python ide
Replies: 5
Views: 92

Re: Thony python ide

I think it's some sort of race condition. I've seen it when trying to use thonny on older (slower) machines. Thonny runs fine using the same SD card in a 3B+.

PeterO
by PeterO
Tue Jun 04, 2019 12:04 pm
Forum: Troubleshooting
Topic: how to read the data from the XML file in Raspberry Pi 3
Replies: 6
Views: 135

Re: how to read the data from the XML file in Raspberry Pi 3

scotty101 wrote:
Tue Jun 04, 2019 10:43 am
PeterO wrote:
Tue Jun 04, 2019 9:54 am
Maybe read the other replies first ?
I did.. OP clearly didn't so I posted it again.
Your reading of OP's reply is different to mine !

PeterO
by PeterO
Tue Jun 04, 2019 9:54 am
Forum: Troubleshooting
Topic: how to read the data from the XML file in Raspberry Pi 3
Replies: 6
Views: 135

Re: how to read the data from the XML file in Raspberry Pi 3

scotty101 wrote:
Tue Jun 04, 2019 9:35 am
harishreddy wrote:
Tue Jun 04, 2019 7:40 am
Thank you for your reply,

Yes, i want C example
Let me google that for you
http://www.xmlsoft.org/examples/
Maybe read the other replies first ?
PeterO
by PeterO
Tue Jun 04, 2019 7:33 am
Forum: Troubleshooting
Topic: how to read the data from the XML file in Raspberry Pi 3
Replies: 6
Views: 135

Re: how to read the data from the XML file in Raspberry Pi 3

I suggest google as a tool for answering your question.

You mention "header files" so I'm assuming you want "C" examples....

http://www.xmlsoft.org/examples/index.html

PeterO
by PeterO
Mon Jun 03, 2019 1:57 pm
Forum: General discussion
Topic: Why 80 pin IDE cable fried my Pi
Replies: 11
Views: 322

Re: Why 80 pin IDE cable fried my Pi

That cable WAS DESIGNED and INTENDED FOR USE with IDE drives and NOT FOR THE RPi GPIO. It was your fault for using it, that fried your RPi, not the fault of the designer of the cable. saw this in one article: "....somebody put raw eggs in a microwave oven and it exploded upon turning on....causing ...
by PeterO
Wed May 29, 2019 12:25 pm
Forum: Python
Topic: I need an import guru
Replies: 3
Views: 314

Re: I need an import guru

Ok, but am I ending up with three copies of all the Gtk library code ?

PeterO
by PeterO
Wed May 29, 2019 10:16 am
Forum: Python
Topic: I need an import guru
Replies: 3
Views: 314

I need an import guru

I have the current working code (only outline shown) #!/usr/bin/python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, GdkPixbuf, Gdk, GObject, Pango, GLib class CustomEditable(Gtk.EventBox, Gtk.CellEditable): [LOTS OF CODE HERE] class CellRendererTextView(Gtk.CellRenderer...
by PeterO
Wed May 22, 2019 7:05 pm
Forum: Networking and servers
Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 532: invalid start byte
Replies: 5
Views: 336

Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 532: invalid start byte

The error corresponds to the fancy apostrophe (right single quotation mark) in "the system’s owner". That would be 0x92 in legacy single-byte Windows encodings, such as CP1252. In UTF-8 it should be the three byte sequence e2-80-99. Alternatively it could be replaced with a non-fancy ASCII apostrop...
by PeterO
Mon May 20, 2019 8:23 am
Forum: Other programming languages
Topic: General language discussion.
Replies: 176
Views: 5154

Re: General language discussion.

Although Algol gets held up as some sort of "paragon", there was one area in which it suffered from these "dialect issues". If you read the original reports, you will notice there is no mention of ANY input or output functionality. This was deliberate as in those days all the different hardware manu...
by PeterO
Sun May 19, 2019 8:47 pm
Forum: Other programming languages
Topic: FL for RPi2
Replies: 17
Views: 7913

Re: FL for RPi2

Your web site says "Raspberry Pi 2 with Raspbian Wheezy: fl_0.79.47-armv7l-linux.tar.gz"
Wheezy is no longer supported, you should update your development platform, and maybe get a Pi3B+ as well !
PeterO
by PeterO
Fri May 17, 2019 9:10 am
Forum: Off topic discussion
Topic: Should the Pi Forum switch to Discourse?
Replies: 42
Views: 3652

Re: Should the Pi Forum switch to Discourse?

jamesh wrote:
Fri May 17, 2019 8:36 am
We have plans to change the forums right now. A new server was installed a month or two back which has improved performance, but its still stalls occasionally when banning users (ie spammers). On the whole though it's not too bad.
Missing "NO" ?

PeterO
by PeterO
Fri May 17, 2019 8:47 am
Forum: Troubleshooting
Topic: Why Raspberry pi is storing different number of samples different second?
Replies: 13
Views: 336

Re: Why Raspberry pi is storing different number of samples different second?

Welcome to the forums. Sorry, but you've not provided any real information that will help solve your problem. What Pi are you using ? What language is your application written in ? Post your non-working code and the output that shows the problem. What is the accelerometer you are using ? How is it c...

Go to advanced search