Go to advanced search

by scruss
Tue Jul 16, 2019 11:45 pm
Forum: Beginners
Topic: Do I HAVE to use LibreOffice?
Replies: 14
Views: 377

Re: Do I HAVE to use LibreOffice?

There's a really good chance that LibreOffice can read your Wordstar and Quattro Pro files: they have a remit to create filters for old file formats. Managed to get a friend's supposedly-lost PhD thesis back from old Mac floppies using some old hardware plus LibreOffice.
by scruss
Tue Jul 16, 2019 5:38 pm
Forum: Beginners
Topic: Do I HAVE to use LibreOffice?
Replies: 14
Views: 377

Re: Do I HAVE to use LibreOffice?

Even if you could run OpenOffice, you wouldn't want to run it. LibreOffice is the community fork from Oracle's OpenOffice, and actually contains features that users might want. OpenOffice was missing useful functions for years that LibreOffice added quickly.
by scruss
Tue Jul 16, 2019 12:05 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 37
Views: 774

Re: Comparing Interpreted Language Speed.

I posted a modified version for Matrix Brandy Basic here . Well, this is fun. Looks like I've found an inconsistency between Matrix Brandy compiled for Raspberry Pi and Matrix Brandy compiled for x86_64. Running that linked code but with an added line 8605 PRINT " *** F0: "; F0 : Raspberry Pi: [email protected]...
by scruss
Tue Jul 16, 2019 3:21 am
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 37
Views: 774

Re: Comparing Interpreted Language Speed.

I posted a modified version for Matrix Brandy Basic here . Still the same problems though: HIMEM issues and other errors. The version that runs on GW-BASIC won't even run under BASIC64 on RISC OS. I'm stumped. I'll have to ask on Stardot. I am posting this from RISC OS though - even if the edit win...
by scruss
Mon Jul 15, 2019 11:46 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 37
Views: 774

Re: Comparing Interpreted Language Speed.

Wow, thanks for giving that a go. Shame it is being so intransigent. no probs. It's quite a pretty OS when it gets running. Shame it doesn't speak any file formats that the rest of the world uses. The other thing I haven't managed to get it to do is time programs. I suspect it'll need to be somethi...
by scruss
Mon Jul 15, 2019 7:49 pm
Forum: General discussion
Topic: Usefull / good programs to have on your Pi
Replies: 17
Views: 564

Re: Usefull / good programs to have on your Pi

Have they fixed the missing ESP8266/Wemos/ESP12 pieces yet? That one's solely on Espressif Systems. Their toolchain only builds on x86/x86_64. Essentials? BBC BASIC for SDL 2.0 . Matrix Brandy BASIC . Perlbrew. Netpbm (the one from source, not the 20 year old Debian one). Emacs. q . Micro . But mos...
by scruss
Mon Jul 15, 2019 12:19 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 37
Views: 774

Re: Comparing Interpreted Language Speed.

Did BBC BASIC on RISC OS get a result from Fibonacci Challenge code or is it still running? https://github.com/ZiCog/fibo_4784969/blob/master/BASIC/classic_bbc.bas It doesn't even run under BBC BASIC V on RISC OS as supplied. I get the following errors (after going through all the rigmarole of sett...
by scruss
Sun Jul 14, 2019 6:01 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 166

Re: Using feh over ssh connection

Untried - and possibly in the wrong config file - but add the following near the end of your ~/.bashrc file: if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then if [ -n "$DISPLAY" ]; then export DISPLAY=:0 fi fi This should set the display to use the Raspberry Pi's monitor over ssh, but still respect...
by scruss
Sun Jul 14, 2019 2:03 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 158
Views: 2997

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

I did the same, in Python3, using /usr/share/dict/words (2.5M file, 1 second runtime): Though you're not doing half the work that my example did: you include proper nouns and possessives and smash everything to lower case: you need to pick out the words that are just lower case alphanumerics your o...
by scruss
Sun Jul 14, 2019 1:40 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 166

Re: Using feh over ssh connection

If you do it should set up DISPLAY correctly
by scruss
Sat Jul 13, 2019 10:24 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 158
Views: 2997

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

I think I would just mmap the dictionary and keep scanning that ? No need to allocate any memory. You're going to have to do a heck of a lot of scanning to find where the lines start and stop, and then run a regex on each one to see if it matches the definition of a word or not. There is one major ...
by scruss
Sat Jul 13, 2019 8:01 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 158
Views: 2997

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Further to this, here's an example of something I do that would be very annoying to write in C, but Perl does it quickly and efficiently enough. The problem can be stated as: List the English words (no proper nouns, no possessives) from the system word list that are valid anagrams of other words in ...
by scruss
Sat Jul 13, 2019 7:03 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 158
Views: 2997

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

See RAM consumption for each: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ Python/Perl is vs C in worst case like 1:280-300 ! Digging through some of their other files, it seems that they deliberately hamper some of the languages. The Fortran benchmarks turn off vectorization while ...
by scruss
Thu Jul 11, 2019 2:20 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 158
Views: 2997

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

I have yet to figure out how to do indirection (eg pointers) in Python, and indirection simplifies a lot of algorithms. You don't really need pointers in scripting languages. You've got arrays (lists) and hashes (dictionaries). Both can be dynamic and you don't have to worry about allocation and cl...
by scruss
Thu Jul 11, 2019 1:48 pm
Forum: Raspbian
Topic: command-not-found not working
Replies: 2
Views: 87

Re: command-not-found not working

The sudo apt-file update step that command-not-found requires seems to fail under buster too: $ sudo apt-file update Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2 http://archive.raspberrypi.org/debian buster InRelease Get:3 http://raspbian.raspberrypi.org/raspbian buster/main...
by scruss
Tue Jul 09, 2019 1:44 am
Forum: General discussion
Topic: Missing Python 3 Idle in the Programming Menu
Replies: 9
Views: 288

Re: Missing Python 3 Idle in the Programming Menu

I thought it was Thonny they were promoting?
by scruss
Sun Jul 07, 2019 2:01 pm
Forum: RISCOS
Topic: RISC OS Pi?
Replies: 30
Views: 903

Re: RISC OS Pi?

DavidS wrote:
Sat Jul 06, 2019 2:50 pm
[*]Using a WiFi network to connect to the internet.
But not via the onboard wifi, though. Ethernet wifi APs don't count.

You might be able to get an ESP8266 SLIP serial wifi router to work directly from the GPIO pins, though. Wouldn't be very fast, but it would be cheap.
by scruss
Sat Jul 06, 2019 11:39 pm
Forum: Troubleshooting
Topic: Issues with Raspberry Pi 4 trying to run heyu with pl2303 /dev/ttyUSB0 and CM11A
Replies: 4
Views: 140

Re: Issues with Raspberry Pi 4 trying to run heyu with pl2303 /dev/ttyUSB0 and CM11A

yes, the pl2303 has a different driver from the ft232, and it traditionally has received less love that the FTDI driver
by scruss
Fri Jul 05, 2019 9:06 pm
Forum: Raspbian
Topic: Getting IPP network printers to work with Raspbian
Replies: 4
Views: 296

Re: Getting IPP network printers to work with Raspbian

paubley wrote:
Fri Jul 05, 2019 5:59 pm
Just solved this using Brother drivers for DCP-9015 printer (wireless only!)
It's an AirPrint printer, so the simple cups-ipp-utils solution should work too.
by scruss
Wed Jul 03, 2019 12:52 pm
Forum: The MagPi
Topic: Getting individual pages from magazines - remix?
Replies: 21
Views: 2881

Re: Getting individual pages from magazines - remix?

pdfseparate / pdfunite from the poppler-utils package will do the job and keep the links intact. The syntax is a bit limited, only allowing first and last page ranges. I run 'em on both a Raspberry Pi and under WSL on Windows.
by scruss
Mon Jul 01, 2019 3:03 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 3861

Re: Searching for BASIC

ScriptBasic allows changing FOR variables on the fly. It's not BASIC, then. The FOR loop values should be set once and once only on entering the loop. Every BASIC interpreter I've tried (apart from the buggy one) complies. FreeBASIC gets it wrong. References: ANSI X3.113-1987 / FIPS PUB 68.2 sectio...
by scruss
Mon Jul 01, 2019 1:32 am
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 3861

Re: Searching for BASIC

Guys, why are we dithering over what BASIC should and shouldn't be? What does it matter? I think many posters here want a system that had the instantaneous impact of ROM BASIC on a home computer. This may not be realistic this days. There are also - despite the ANSI standard - so many BASIC variant...
by scruss
Mon Jul 01, 2019 1:20 am
Forum: Troubleshooting
Topic: Issues with Raspberry Pi 4 trying to run heyu with pl2303 /dev/ttyUSB0 and CM11A
Replies: 4
Views: 140

Re: Issues with Raspberry Pi 4 trying to run heyu with pl2303 /dev/ttyUSB0 and CM11A

That's almost exactly the problem we had with the very first Raspberry Pis and early kernel USB drivers back in 2012! Unfortunately, I'm pretty sure that the solution in 2012 isn't the same as what you are needing.
by scruss
Sun Jun 30, 2019 10:32 pm
Forum: Advanced users
Topic: Can the pi 4 boot off exfat?
Replies: 18
Views: 800

Re: Can the pi 4 boot off exfat?

binaryhermit wrote:
Sun Jun 30, 2019 9:47 pm
Didn't MS license their patents for free to the open-source community?
Selected ones, yes, but only in software that has a compatible licence. As soon as you put something in hardware, MS typically want a fee. The firmware's a binary blob, so money would have to change hands.
by scruss
Fri Jun 28, 2019 10:32 pm
Forum: Beginners
Topic: Detecting changes in directory...
Replies: 3
Views: 214

Re: Detecting changes in directory...

There's also incron, a cron-like tool that fires off programs based on inotify events

Go to advanced search