Go to advanced search

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: 109

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: 151
Views: 2461

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: 7552

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: 2747

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: 216

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...
by PeterO
Thu May 16, 2019 7:21 am
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2461

Re: General language discussion.

PeterO, That is quite a trophy you have there. Tony Hoare has been in my personal hall of fame since I discovered he originated Communicating Sequential Processes (CSP) whilst I was getting to grips with Occam. Ideas implemented in languages in recent times with Go and XC from Xmos. The whole manua...
by PeterO
Thu May 16, 2019 7:16 am
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2461

Re: General language discussion.

ScriptBasic, How do Python users know an extension is available for what they just wrote natively? Same like everyone else, stackoverflow :) But really, when one wants to do something non-trivial one goes to google for a quick search to see if a solution for that as already been created by someone ...
by PeterO
Thu May 16, 2019 7:01 am
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2461

Re: General language discussion.

Because it's fascinating and educational. Does that mean this is going to become a tutorial thread about obscure languages? I think it would be more interesting if people would share what they dislike about popular languages. It could save others going through the same frustration. Why are you so i...
by PeterO
Thu May 16, 2019 6:58 am
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2461

Re: General language discussion.

ScriptBasic wrote:
Thu May 16, 2019 1:52 am
I'm trying to find the sweet spot for ScriptBasic so I know where to spend my time.
Just take a few minutes off from pushing your pet project at every opportunity and have a look around in some of the other parts of these forums to see what the rest of us are doing.

PeterO
by PeterO
Wed May 15, 2019 6:53 pm
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2461

Re: General language discussion.

It's worth noting that most of the manuals for the 803 software library that was supplied by Elliotts contain credits for the authors, unlike today where manuals tend to be anonymous. Consequently I have the manual for the "shell sort" library function that was also written by Tony Hoare before he c...
by PeterO
Wed May 15, 2019 5:36 pm
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2461

Re: General language discussion.

That's only easy to read if you know what "dcl" means and "result = ^(any(matrix(i, *)) | any(matrix(*, j)) | any(box(numbox(i, j), *, *)));" is pretty much gobblygook to a non-PL/1 programmer :lol:

PeterO
by PeterO
Wed May 15, 2019 3:56 pm
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2461

Re: General language discussion.

I may have posted this before :-)
My copy of the 803 ALGOL 60 manual is autographed :-)
PeterO
by PeterO
Wed May 15, 2019 3:12 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 682
Views: 13962

Re: ScriptBasic

With the C BASIC gcc pre-processor, I make C look like BASIC. All modern languages are a descendent of BASIC program flow including C. Err, no. Algol58, CPL, Cobol, FORTRAN etc all came before BASIC. CPL was a forerunner of C. https://en.wikipedia.org/wiki/History_of_programming_languages There is ...
by PeterO
Mon May 13, 2019 7:12 pm
Forum: Troubleshooting
Topic: Annoying high pitched noise
Replies: 10
Views: 229

Re: Annoying high pitched noise

Try listening down a length of tube (even a cardboard kitchen roll tube will do) . That should help you localise the source of the sound. PeterO I think the issue is solved now. It turns out it was the power supply of the network switch (to which multiple devices were attached, including the RPi bo...
by PeterO
Mon May 13, 2019 6:18 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 682
Views: 13962

Re: ScriptBasic

hippy's BASIC example or my C version actually terminate. The C one runs forever counting up the "i". Clearly that "i" as used as the loop counter is not where one might think... Try gcc -fverbose-asm -S loopjump.c then you'll see why it does what it does ! PeterO PS: I did that on a X86-64 machine...
by PeterO
Mon May 13, 2019 3:25 pm
Forum: General programming discussion
Topic: Bootstrapping Languages
Replies: 10
Views: 368

Bootstrapping Languages

Somewhere in the last few days there was a discussion about bootstrapping languages, but I can't find it now.... It might have been deleted as such things are considered "off topic" by some people :roll: Anyway, over the weekend I was reminded of the comments made by Tony Hoare in this speech called...
by PeterO
Sun May 12, 2019 8:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 2 RX/TX accesoires
Replies: 2
Views: 88

Re: 2 RX/TX accesoires

If they are not logic level signals (3.3v or 5v) the using a couple of USB-RS232 dongles would be one way to do it.
PeterO
by PeterO
Sun May 12, 2019 6:56 pm
Forum: Troubleshooting
Topic: Annoying high pitched noise
Replies: 10
Views: 229

Re: Annoying high pitched noise

drgeoff wrote:
Sun May 12, 2019 6:53 pm
Possibly an inductor in one of the onboard switch mode dc-dc converters. Active ethernet means higher load on the supply, more current in the inductor, more magnetostrictive sound. https://en.wikipedia.org/wiki/Magnetostriction
I would say that's probably the cause.

PeterO
by PeterO
Sun May 12, 2019 6:45 pm
Forum: Troubleshooting
Topic: Annoying high pitched noise
Replies: 10
Views: 229

Re: Annoying high pitched noise

Try listening down a length of tube (even a cardboard kitchen roll tube will do) . That should help you localise the source of the sound.
PeterO
by PeterO
Sat May 11, 2019 6:37 pm
Forum: Troubleshooting
Topic: Annoying high pitched noise
Replies: 10
Views: 229

Re: Annoying high pitched noise

To prove if it is related to the on board Ethernet interface (*), have you got a USB Ethernet interface you could try in place of the on board interface ? PeterO (*) The only thing I can think of is that there is something physically loose in the magnetic materials used in the isolation transformers...
by PeterO
Sat May 11, 2019 5:04 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 682
Views: 13962

Re: ScriptBasic

Hi PeterO, The paper tape topic is pushing the limit of OFF TOPIC in this thread. Please start a PAPER TAPE thread. I can't even guess what board it would be appropriate on. Maybe the RPi forum needs a TROLL specific board for folks like you. You know, if you are going to insult people, you really ...
by PeterO
Sat May 11, 2019 2:47 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 682
Views: 13962

Re: ScriptBasic

PeterO, Why don't you do the maths ! That's a bit presumptuous. Why do you assume I did not? You presumed that since you have not seen a high speed punch they don't exist ? Since you brought up the subject I assumed you knew something about paper tape equipment (which it seems you do not). Rather o...
by PeterO
Sat May 11, 2019 2:07 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 682
Views: 13962

Re: ScriptBasic

What's all this talk of floppies and minutes? Just punch it to paper tape. A million digits is only a bit more than 8 thousand feet of tape (8334). Should only take a day to punch it all. Why don't you do the maths ! 100 character/second punch, 10000 seconds, 2hr 47min + time to change tape reel se...
by PeterO
Sat May 11, 2019 1:15 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 682
Views: 13962

Re: ScriptBasic

I now have the correct million digits in fibo.dat. Excellent! Which would not have fitted onto most BBC floppies ! PeterO I wonder how long a tape (or rather how many C90s) would be needed. 1200 baud with 1 start bit and 1 stop bit (= 10 bits/byte) gives 120 bytes/second, so 1,000,000 bytes takes 1...

Go to advanced search