Go to advanced search

by buja
Sun Jan 12, 2020 12:46 pm
Forum: Troubleshooting
Topic: Rescue files from a dying Pi
Replies: 6
Views: 517

Re: Rescue files from a dying Pi

Good news!

Just one more word: backup :!:
by buja
Sun Jan 12, 2020 11:24 am
Forum: Troubleshooting
Topic: Can't update/upgrade old raspi. :(
Replies: 10
Views: 362

Re: Can't update/upgrade old raspi. :(

Yes, Raspbian Buster runs very well on a 2B, no problem at all.
by buja
Sun Jan 12, 2020 10:47 am
Forum: Troubleshooting
Topic: Can't update/upgrade old raspi. :(
Replies: 10
Views: 362

Re: Can't update/upgrade old raspi. :(

Nothing wrong with a 2B, but Raspbian Wheezy is too old and I guess the links are not active anymore. Time for a fresh installation of Raspbian Buster. Backup your important files to a USB stick or something and put a fresh install of Raspbian Buster on the SD card. It might be a good time for a fre...
by buja
Sun Jan 12, 2020 8:00 am
Forum: Advanced users
Topic: How to Differentiate RPI4 - 1 vs. 2 vs. 4 GB ?
Replies: 49
Views: 2561

Re: How to Differentiate RPI4 - 1 vs. 2 vs. 4 GB ?

A bit stupid really that RAM size is not printed on the board, it's useful information and there is plenty of space for it.
The markings on the memory chip are hard to read and just a code, no indication of the size (unless you look up the type of course).
by buja
Sat Jan 11, 2020 4:42 pm
Forum: Troubleshooting
Topic: Rescue files from a dying Pi
Replies: 6
Views: 517

Re: Rescue files from a dying Pi

If you have another computer (Pi or PC) running Linux and a SD reader you can try to read the SD card and copy the important files.
(a Windows computer won't be able to read the file system)
by buja
Thu Jan 09, 2020 2:43 pm
Forum: C/C++
Topic: Programming Language of the Year 2019 - according to TIOBE
Replies: 50
Views: 2740

Re: Programming Language of the Year 2019 - according to TIOBE

ejolson, C is no longer self hosting. If you want a C compiler written in C I'm sure there are many. Tiny C for example: https://bellard.org/tcc/ Quote from the Tiny C website: "I am no longer working on TCC." This seems to be the situation for many C (only) compilers. Pelles C for the Windows plat...
by buja
Wed Jan 08, 2020 12:07 pm
Forum: C/C++
Topic: Programming Language of the Year 2019 - according to TIOBE
Replies: 50
Views: 2740

Re: Programming Language of the Year 2019 - according to TIOBE

Pi & Python is another combination?
Never heard of WASM before, but after looking it up I think it could be interesting (in combination with C).
by buja
Sat Jan 04, 2020 11:48 am
Forum: General discussion
Topic: Nexdock 2 - another shot
Replies: 10
Views: 1945

Re: Nexdock 2 - another shot

My new Pi year started with the delivery of the new Nexdock 2. I backed the Kickstarter campaign for it in March 2019, and on Thursday I collected the Nexdock at the pick-up point. :D Most important thing: it works! In fact, I am using it right now to write this post on a Pi 3B. It worked right out ...
by buja
Sun Dec 22, 2019 6:30 pm
Forum: C/C++
Topic: C++ FTP library or tools or... ? Need to automate getting and unzipping....
Replies: 2
Views: 330

Re: C++ FTP library or tools or... ? Need to automate getting and unzipping....

A combination of cron for the timing, wget for the downloading and an unzip program (not sure which one) would do the trick quite nicely. No need to use C, C++ or whatever programming language, just simple Linux tools.
by buja
Sat Nov 30, 2019 7:01 am
Forum: C/C++
Topic: gpio_fsel() won't set to output
Replies: 1
Views: 249

Re: gpio_fsel() won't set to output

Yes, I am afraid something is wrong with your BCM pin 18. This slightly modified version of your program works on my Pi. #include <stdio.h> #include <bcm2835.h> #define LED 18 int main(int argc, char **argv) { printf("hello, just starting the main loop\n"); if(!bcm2835_init()) return 1; bcm2835_gpio...
by buja
Sun Nov 17, 2019 5:40 pm
Forum: Beginners
Topic: Cant start Sonic Pi
Replies: 11
Views: 500

Re: Cant start Sonic Pi

Yes, I could hear the music playing through a set of PC speakers, connected to the Pi with a jack plug.
by buja
Sun Nov 17, 2019 1:06 pm
Forum: Beginners
Topic: Cant start Sonic Pi
Replies: 11
Views: 500

Re: Cant start Sonic Pi

The screenshot shows Sonic Pi version 2.10, it looks like you are trying to run some old stuff.

Raspbian Buster has version 3.1.0 in the repository and installed by default.
And it runs, as I am typing this Monday Blues is playing (it's one of the examples).
by buja
Tue Nov 05, 2019 6:35 pm
Forum: General programming discussion
Topic: git and merging branches
Replies: 7
Views: 950

Re: git and merging branches

I am not a git guru, but it seems to me that after merging your bugfix branch (I will call this bugfix1) with the master branch, the master branch is your new baseline. So any new bugfixes should be made on a new branch, say bugfix2, tested, and merged with the master branch again. There is no need ...
by buja
Fri Nov 01, 2019 10:52 am
Forum: HATs and other add-ons
Topic: LTE Hats which comply with CE
Replies: 1
Views: 413

Re: LTE Hats which comply with CE

The Waveshare one comes in different versions, one of which has CE.
Just below the prices you can choose the version you want.
by buja
Fri Nov 01, 2019 6:51 am
Forum: C/C++
Topic: How do I program a Sensor with C and no TP libraries
Replies: 17
Views: 1512

Re: How do I program a Sensor with C and no TP libraries

This question can be divided in two questions: 1. How to program with the GPIO's (reading and writing them)? 2. How to program a sensor? For question 1 the link mentioned above by Heater gives 5 possibilities, but if you don't want to use a third party library you can use only 2 of them. For questio...
by buja
Mon Oct 28, 2019 10:40 am
Forum: Beginners
Topic: BricsCAD on RPi4B 4GB
Replies: 4
Views: 499

Re: BricsCAD on RPi4B 4GB

I am afraid fruitoftheloom is right that BricsCAD is not going to run on a Pi, and even the next Ubuntu version will not solve that problem. LibreCAD could be a solution, however LibreCAD does not work with the DWG format but with the DXF format, so this would involve conversion. Replacing your old ...
by buja
Sat Oct 26, 2019 5:40 pm
Forum: Python
Topic: How to transform ADS1115 values to percent
Replies: 3
Views: 578

Re: How to transform ADS1115 values to percent

wet% = -0.00779 * reading + 176.74 (a simple matter of 2 linear equations with 2 unknowns, totally solvable)

That is, if the linear relationship applies and wet% in air is really 0%.
by buja
Sat Oct 26, 2019 10:15 am
Forum: C/C++
Topic: how to compile a c program on a pi 3b running raspbian buster
Replies: 5
Views: 1226

Re: how to compile a c program on a pi 3b running raspbian buster

Strange, this should have worked right out of the box. What happens if you remove the #include line from the source? gcc will complain about a missing printf prototype of course, but produce an executable anyway. I found the missing headerfile on my system in: /usr/include/arm-linux-gnueabihf/bits I...
by buja
Mon Aug 19, 2019 8:07 pm
Forum: General discussion
Topic: Modding 1gig PI4B, with 8gb or 16gig ram chip
Replies: 17
Views: 1577

Re: Modding 1gig PI4B, with 8gb or 16gig ram chip

So, what's the problem :lol:
by buja
Wed Jul 24, 2019 6:58 am
Forum: Raspbian
Topic: How to keep Raspbian Buster Lite small?
Replies: 5
Views: 590

Re: How to keep Raspbian Buster Lite small?

That won't happen, the update/upgrade procedure only updates and upgrades the packages that are already installed.
It will not install for example all GUI stuff.
by buja
Wed Jun 05, 2019 5:43 pm
Forum: C/C++
Topic: How to control the GPIO pins using c++
Replies: 14
Views: 63150

Re: How to control the GPIO pins using c++

This is what I have: $ ls -l /usr/bin/gpio* -rwsr-xr-x 1 root root 33348 Mar 13 14:41 /usr/bin/gpio -rwxr-xr-x 1 root root 9728 Jun 29 2018 /usr/bin/gpiodetect -rwxr-xr-x 1 root root 9728 Jun 29 2018 /usr/bin/gpiofind -rwxr-xr-x 1 root root 9728 Jun 29 2018 /usr/bin/gpioget -rwxr-xr-x 1 root root 97...
by buja
Tue Jun 04, 2019 7:45 pm
Forum: C/C++
Topic: How to control the GPIO pins using c++
Replies: 14
Views: 63150

Re: How to control the GPIO pins using c++

The new recommended interface is 'gpio-cdev' which uses "/dev/gpiochip*", with 'libgpiod' to provide userland utilities. The latest Raspbian seems to support those but there's not been any discussion on here which I have seen and 'libgpiod' and userland utilities don't seem included by defult or av...
by buja
Sun May 05, 2019 2:01 pm
Forum: C/C++
Topic: i am trying to make a small window appear, with nothing in it, but it just isn't working.
Replies: 17
Views: 2273

Re: Is this wrong?

Just a guess: wrong spelling: gkt => should be gtk, try: #include <gtk/gtk.h> Edit: now that I try it myself I see that you made the same typo everywhere :lol: Edit 2: it might be a good idea to download the PDF of the book and copy & paste the example programs instead of typing them, saves a few er...
by buja
Sun Apr 21, 2019 8:07 am
Forum: General discussion
Topic: Nexdock 2 - another shot
Replies: 10
Views: 1945

Re: Nexdock 2 - another shot

Nexdock 2 is going to happen. 2166 backers raised $496,689 on Kickstarter in 30 days. In fact the minimum goal of $50,000 was reached within one day, so it was never really a question. The $500,000 stretch limit was not reached, however Nexdock 2 will come with a backlit keyboard anyway. So the fund...
by buja
Mon Apr 15, 2019 7:49 pm
Forum: General discussion
Topic: Nexdock 2 - another shot
Replies: 10
Views: 1945

Re: Nexdock 2 - another shot

scotty101 wrote:
Mon Apr 15, 2019 12:40 pm
buja wrote:
Sun Apr 14, 2019 11:34 am
Just hope the manufacturing campaign will go equally well.
And that their factory doesn't have a fire.. and that they actually test them before they are sent out...
Indeed.

Go to advanced search