Go to advanced search

by buja
Mon Sep 21, 2020 8:30 am
Forum: Troubleshooting
Topic: Fried two different RPi 4 - why?
Replies: 28
Views: 787

Re: Bricked two different RPi 4 - why?

Wikipedia https://en.wikipedia.org/wiki/Brick_(electronics) makes a distinction between hard bricked and soft bricked. Hard bricked is the same as fried: completely dead and only useful as paperweight (as an actual brick). If something is soft bricked it may be restored by installing new software (o...
by buja
Sun Sep 13, 2020 4:17 pm
Forum: Raspberry Pi OS
Topic: cmd line mail tool for sending multiple attachments?
Replies: 8
Views: 228

Re: cmd line mail tool for sending multiple attachments?

In any event, all I did was "apt install mutt" and then followed your example. But the mail does not get to the destination. You have to do a bit more: do the actual configuration. In the link I posted you can see the contents of the muttrc file (to modify with your own mail account data of course)...
by buja
Sun Sep 13, 2020 3:56 pm
Forum: Raspberry Pi OS
Topic: cmd line mail tool for sending multiple attachments?
Replies: 8
Views: 228

Re: cmd line mail tool for sending multiple attachments?

Yes I tested it. Because I use Mutt on all my Pi's I did not have to do anything special, it was already set up, I only had to find out how to work with it from the command line without activating the interactive part and the message editor. body.txt contains only the text of the mail message, no he...
by buja
Sun Sep 13, 2020 2:40 pm
Forum: Raspberry Pi OS
Topic: cmd line mail tool for sending multiple attachments?
Replies: 8
Views: 228

Re: cmd line mail tool for sending multiple attachments?

It was easier than I thought: mutt -s "Attachment test" -a file1 file2 -- receiver@otherside.xyz < body.txt Where -s "Attachment test" specifies the subject, files file1 and file2 are the attachments, -- is necessary to signal the end of the list of attachments, and < body.txt attaches the message t...
by buja
Sun Sep 13, 2020 2:30 pm
Forum: Raspberry Pi OS
Topic: cmd line mail tool for sending multiple attachments?
Replies: 8
Views: 228

Re: cmd line mail tool for sending multiple attachments?

I thought Mutt might be interesting.
Problem is it keeps opening the interactive environment for the mail text, but maybe it's just a matter of a command line argument or configuration setting. I did manage to attach multiple files on the command line.
by buja
Sun Sep 13, 2020 11:18 am
Forum: Off topic discussion
Topic: Happy 1.6 Gigaseconds Day!
Replies: 36
Views: 1410

Re: Happy 1.6 Gigaseconds Day!

Ah yes, I calculated the dates on my PC with Linux Mint 64 bits, which seems to march on happily after 32-bit doomsday. :) (standard C-type time_t is 64 bits on this system, probably signed). On my Pi with 32-bits RaspiOS e-day ends up in 1920, Pi-day in 1933, clearly wrong and illustrating the Year...
by buja
Sun Sep 13, 2020 10:35 am
Forum: Off topic discussion
Topic: Happy 1.6 Gigaseconds Day!
Replies: 36
Views: 1410

Re: Happy 1.6 Gigaseconds Day!

It seems we passed sqrt(2) time silently in 2014.
But seven months after golden ratio day we will have sqrt(3) day.

Other interesting days could be e day (as in exp(1) = 2.72.....) in 2056 and Pi day in 2069. I think I will stick with March 14th for now.

Any thoughts on imaginary day (i^2 = -1)?
by buja
Thu Sep 03, 2020 6:03 pm
Forum: General discussion
Topic: Has anyone installed Writemonkey 3?
Replies: 6
Views: 226

Re: Has anyone installed Writemonkey 3?

An alternative could be Focuswriter, which is in the Raspbian Raspberry Pi OS repositories.
So a simple sudo apt install focuswriter is all you need to do.
Files are in Open Document Format, so you can easily switch to and from LibreOffice Writer if you want.
by buja
Wed Aug 05, 2020 1:59 pm
Forum: General discussion
Topic: "Reboot required" notification needed
Replies: 60
Views: 2489

Re: "Reboot required" notification needed

I think the Linux Mint Update Manager nailed it: warnings, but no automatic actions/changes, leaving control to the user. It gives a signal when updates are available, but you have to initiate the actual upgrade yourself. The reboot warning seems to be very simple mechanism: if kernel update, then g...
by buja
Tue Aug 04, 2020 5:19 pm
Forum: General discussion
Topic: "Reboot required" notification needed
Replies: 60
Views: 2489

Re: "Reboot required" notification needed

... One way to check if one is needed due to a kernel update is [ -d /lib/modules/$(uname -r) ] || echo "Reboot required" on the command line. A reboot warning seems a very helpful feature to me. On Linux Mint (on a x86 system) the Update Manager warns me to reboot after a kernel update. I have nev...
by buja
Sun Aug 02, 2020 7:48 am
Forum: General discussion
Topic: EasyGUI without X?
Replies: 6
Views: 360

Re: EasyGUI without X?

Hmm, where to begin? Let's start with Minibian. That is a minimal version of Raspbian. Looking at its website https://minibianpi.wordpress.com/ it hasn't been updated since 2016, so it's at least two major versions behind and the developer is no longer maintaining it. So I would advice you to drop M...
by buja
Tue Jul 14, 2020 8:35 am
Forum: Off topic discussion
Topic: Forum registration has wrong UTC
Replies: 12
Views: 1012

Re: Forum registration has wrong UTC

"UTC" (Universal Coordinated Time, in French) It isn't. The English speaking folks wanted to call it "Co-ordinated Universal Time". The French wanted to call it "Temps Universel, Coordonné". The Time Standards Committee chose "UTC" for "Universal Time, Co-ordinated" and "Universel Temps, Coordonné"...
by buja
Sun Jul 12, 2020 9:36 am
Forum: Off topic discussion
Topic: Forum registration has wrong UTC
Replies: 12
Views: 1012

Re: Forum registration has wrong UTC

So a more complete answer is: Berlin is in time zone CET (with actual time UTC + 1), or in CEST (with actual time UTC + 2) when Daylight Saving Time (DST) is in effect, depending on the time of year. UTC is universal time, which happens to coincide with local time in Greenwich, London without any DS...
by buja
Sun Jul 12, 2020 7:28 am
Forum: Off topic discussion
Topic: Forum registration has wrong UTC
Replies: 12
Views: 1012

Re: Forum registration has wrong UTC

Welcome.
It's UTC+2 because Daylight Saving Time is in effect in Berlin and (most of) Europe.
Try again after returning to winter time (in 2020 on 25th of October).
by buja
Thu Jul 09, 2020 5:16 pm
Forum: C/C++
Topic: Using libunistring library on RPi?
Replies: 5
Views: 399

Re: Using libunistring library on RPi?

You can install the development files you need with:

Code: Select all

sudo apt install libunistring-dev
To compile a program with Unicode functions you need to do something like this:

Code: Select all

gcc -o test test.c -lunistring
by buja
Tue Jul 07, 2020 5:10 pm
Forum: C/C++
Topic: code::blocks - passing compile arguments
Replies: 4
Views: 492

Re: code::blocks - passing compile arguments

Settings / Compiler / Linker settings / Link libraries / Add => fill in the (simple) name of the library you need, like ncurses . (the Add button is not shown in this screenshot, it's in the lower half of the window) Screenshot at 2020-07-07 18-59-29.png This was all I needed to do to compile and ru...
by buja
Mon Jul 06, 2020 4:28 am
Forum: C/C++
Topic: code::blocks - passing compile arguments
Replies: 4
Views: 492

Re: code::blocks - passing compile arguments

Try Settings / Compiler.
by buja
Wed May 27, 2020 5:19 pm
Forum: C/C++
Topic: New major release of GCC
Replies: 119
Views: 8537

Re: New major release of GCC

I received my aluminium case with cooling fans and decided to give GCC 10 a retry on my Pi 4B-4GB. Somehow I destroyed the SD card cover, so that Pi is bricked. A retry with a new Pi 4B-2GB resulted in these error messages after almost 23 minutes: /usr/bin/ld: failed to set dynamic section sizes: me...
by buja
Wed May 27, 2020 1:26 pm
Forum: Off topic discussion
Topic: Raspberry pi issues that were never fixed even for the new Pi 4
Replies: 44
Views: 4312

Re: Raspberry pi issues that were never fixed even for the new Pi 4

This topic is an incredible waist of time (and energy, data band with and whatever).
by buja
Wed May 27, 2020 8:28 am
Forum: Troubleshooting
Topic: RPi4 Rev 1.1. SoC Temperature readings...
Replies: 9
Views: 498

Re: RPi4 Rev 1.1. SoC Temperature readings...

I think there might be something wrong with vcgencmd as when you retrieve SoC temperature by cat /sys/devices/virtual/thermal/thermal_zone0/temp | awk '{print $1/1000}' | awk '{printf "%.2f\n", $1}' it shows more accurate readings... How do you know which method is more accurate? The number of deci...
by buja
Wed May 20, 2020 11:27 am
Forum: C/C++
Topic: my code those not give me output
Replies: 5
Views: 435

Re: my code those not give me output

I would use another name for your write function because write is also a Linux system call:

Code: Select all

void write(unsigned int ch)
Maybe something like this:

Code: Select all

void writelcd(unsigned int ch)
by buja
Sat May 09, 2020 6:22 pm
Forum: C/C++
Topic: New major release of GCC
Replies: 119
Views: 8537

Re: New major release of GCC

Confirmed: official case.
A full aluminium case is on its way. I might try again when it arrives.
Or try again without the official case lid on it.
by buja
Sat May 09, 2020 8:59 am
Forum: C/C++
Topic: New major release of GCC
Replies: 119
Views: 8537

Re: New major release of GCC

It took my Pi 4B-4GB over 7 hours to compile. I went to the supermarket and when I came back the installation script was waiting for me to tell if I wanted to install or not, so I should subtract 15 minutes or so. I left out the Fortran part and I did not install, for me it's just a sort of burn-in ...
by buja
Fri May 08, 2020 10:57 am
Forum: C/C++
Topic: New major release of GCC
Replies: 119
Views: 8537

Re: New major release of GCC

I am compiling GCC 10.1 on a Pi 4B-4GB. Right now it has been running for half an hour, all 4 cores are busy with it and the maximum CPU temperature so far is 68 degrees.
by buja
Wed May 06, 2020 9:53 am
Forum: Off topic discussion
Topic: 60 years ago...
Replies: 48
Views: 4352

Re: 60 years ago...

... The problem we've got in the commercial world is the systems that just plod along doing their stuff and have done for 30 years (largely unattended)... Still on the same old hardware? I heard that at a bank people were afraid to pull the plug on a certain system because they were not sure they c...

Go to advanced search