Go to advanced search

by buja
Tue Apr 25, 2017 2:34 pm
Forum: C/C++
Topic: New Gcc 7.1, his build sources result success with B model A
Replies: 52
Views: 6773

Re: New Gcc 7.1, his build sources result success with B mod

Meanwhile, you can of course download and build the compiler and cross compiler yourself. Or use Arch Linux - which is much more "bleeding edge" than Debian. I.e., you can compile things on Arch, then copy them to your Debian/Raspbian system - if you really need some feature of the newer compiler. ...
by buja
Tue Apr 25, 2017 8:36 am
Forum: Python
Topic: Decent python website?
Replies: 20
Views: 1590

Re: Decent python website?

The official Python website is http://www.python.org.
You should be able to find something there (reference or function reference or something like that).
by buja
Mon Apr 17, 2017 8:57 am
Forum: C/C++
Topic: How to retrieve the date and time
Replies: 10
Views: 4128

Re: How to retrieve the date and time

LdB wrote: So lets be blunt he is (a) Very confused probably a C novice or (b) Didn't read any of the links given.
Ah, now I understand you better. I would suggest to add option (c) Topic starter is a bit lazy ;)
by buja
Mon Apr 17, 2017 5:51 am
Forum: C/C++
Topic: How to retrieve the date and time
Replies: 10
Views: 4128

Re: How to retrieve the date and time

Nothing wrong with this topic or question: it's about C, it's in the right subforum and the first reply by PeterO was spot-on, so he wasn't confused at all.
The only thing I can think of is that the original question is answered in just about any decent textbook about C.
by buja
Tue Apr 11, 2017 11:45 am
Forum: C/C++
Topic: Function for CPU usage
Replies: 13
Views: 1363

Re: Function for CPU usage

DougieLawson wrote:You can learn the differences between IDLE/IDLE3 and python2.7 & python3.4, I'm not going to do that for you.
But this is the C/C++ forum ;)
by buja
Sat Apr 08, 2017 2:19 pm
Forum: Troubleshooting
Topic: xorg
Replies: 2
Views: 2994

Re: xorg

Jessie Lite is light because it doesn't have a GUI (xorg etc.).
If you want a GUI it's a lot easier to install full Jessie.

If you really want to have a GUI on Jessie Lite, this guide will get you going: viewtopic.php?f=66&t=133691
by buja
Thu Apr 06, 2017 5:53 am
Forum: C/C++
Topic: Geany issues Screenshots included
Replies: 1
Views: 395

Re: Geany issues Screenshots included

Geany tells you it cannot find an executable file to run. You need to compile & build the program before you can run it. Step 1: rename your program to helloworld.cpp . The .cpp extension tells Geany which compiler it should use (.cxx is probably not recognized). Step 2: press F9 (or Build from the ...
by buja
Thu Mar 23, 2017 6:05 pm
Forum: Automation, sensing and robotics
Topic: Velleman K8055 Project
Replies: 49
Views: 28409

Re: Velleman K8055 Project

I am aware that the last post in this topic was almost 2 years ago, but it describes my problem exactly. My program runs just fine on a x86 computer, but on a Pi (3B) the same program misses outputs. It's usually the first output signals that are missed, then a couple of outputs go well and then the...
by buja
Wed Mar 22, 2017 7:45 pm
Forum: Nederlands
Topic: Meerdere I/O aansturen
Replies: 4
Views: 1236

Re: Meerdere I/O aansturen

Er is genoeg te vinden, ook dichterbij huis: https://www.kiwi-electronics.nl/raspberry-pi/raspberry-pi-expansion-boards De vraag is meer wat wil je precies doen en wat past daar dan het beste bij? En let ook op of iets een bouwpakket is (kit) dat je zelf nog moet solderen, of een kant-en-klaar ding ...
by buja
Tue Mar 21, 2017 1:37 pm
Forum: General discussion
Topic: [solved]claws email reader problems
Replies: 2
Views: 487

Re: claws email reader problems

On the Claws Mail website, on the right hand side, below The Project, is a link called "Bug Tracker". So that seems to be the place where you could file a bug. You need to open an account. Any Claws Mail specific bug reports should go there. Mentioning it here is interesting, but it's the Claws Mail...
by buja
Mon Mar 20, 2017 6:13 am
Forum: Beginners
Topic: Add GUI to Jessie Lite
Replies: 3
Views: 9406

Re: Add GUI to Jessie Lite

This is a very good howto: viewtopic.php?f=66&t=133691

But a better advice would be to make a backup and install full Raspbian from the start.
by buja
Sun Mar 19, 2017 9:38 pm
Forum: General discussion
Topic: Is a PI 3 a viable desktop replacement?
Replies: 60
Views: 37576

Re: Is a PI 3 a viable desktop replacement?

Yes, but just like klricks I expected the 2B V1.2 to be just as fast as the 3B. It isn't, because of the difference in clock speed, but I only realized that after the tests and reading about it. I agree with HawaiianPi and Hippy that the 3B comes very close to being a desktop replacement if you can ...
by buja
Sun Mar 19, 2017 3:30 pm
Forum: General discussion
Topic: Is a PI 3 a viable desktop replacement?
Replies: 60
Views: 37576

Re: Is a PI 3 a viable desktop replacement?

If you have 2B V1.2 then that is essentially a 3B without WIFI & BT and will have near the same performance. You would think so, but the 3B is still considerably faster than a 2B V1.2. I did some tests with HardInfo (CPU based, no disk access): 2B V1.1: 293.5 seconds, speed 15.3 2B V1.2: 255.6 seco...
by buja
Fri Mar 17, 2017 4:51 pm
Forum: Beginners
Topic: Package lynx is not available
Replies: 8
Views: 1785

Re: Package lynx is not available

links -> elinks
by buja
Fri Mar 17, 2017 8:36 am
Forum: C/C++
Topic: detect keypress
Replies: 12
Views: 5303

Re: detect keypress

Good point. This is what I would do: #include <ncurses.h> /* and be sure to -lncurses when compiling & linking this! */ ... initscr(); /* You need to initialize ncurses before you use its functions, and end with endwin() later */ ... while (!kbhit()) blink_led(); /* or whatever your code looks like ...
by buja
Fri Mar 17, 2017 6:17 am
Forum: C/C++
Topic: detect keypress
Replies: 12
Views: 5303

Re: detect keypress

Check this topic: viewtopic.php?f=33&t=177157
It involves the ncurses library, but there is also mention of a solution without ncurses.
by buja
Fri Mar 17, 2017 6:02 am
Forum: Raspbian
Topic: What is up with X?
Replies: 9
Views: 1351

Re: What is up with X?

So there is nothing up with X then?
by buja
Fri Mar 17, 2017 5:40 am
Forum: C/C++
Topic: Sending a terminal command through C
Replies: 14
Views: 2913

Re: Sending a terminal command through C

Use the system() function:

Code: Select all

system("date");
The string can be any command you would give on the command line.
by buja
Wed Mar 15, 2017 5:56 am
Forum: C/C++
Topic: [SOLVED] Non Blocking getchar()? [SOLVED]
Replies: 102
Views: 20141

Re: Non Blocking getchar()?

This is what Stanford says: So interestingly enough the right answer here is: no there is no non-blocking getch(). Its not supported in UN*X. Interestingly enough there is, it even has the same name: getch(). It's not in the standard libraries though, you can find it in the ncurses library, which y...
by buja
Tue Mar 14, 2017 6:30 am
Forum: C/C++
Topic: [SOLVED] Non Blocking getchar()? [SOLVED]
Replies: 102
Views: 20141

Re: Non Blocking getchar()?

How do I read the returned character value as an ASCII value (if it is a character) so that I can easily compare it? That is what has me stuck on using curses. That's why I included this bit: /* This is the bit how I use it */ if (kbhit()) key = toupper(getch()); Which is confusing. toupper should ...
by buja
Tue Mar 14, 2017 5:29 am
Forum: C/C++
Topic: [SOLVED] Non Blocking getchar()? [SOLVED]
Replies: 102
Views: 20141

Re: Non Blocking getchar()?

DavidS wrote: How do I read the returned character value as an ASCII value (if it is a character) so that I can easily compare it? That is what has me stuck on using curses.
That's why I included this bit:

Code: Select all

/* This is the bit how I use it */
if (kbhit())
            key = toupper(getch());
by buja
Mon Mar 13, 2017 10:06 pm
Forum: C/C++
Topic: [SOLVED] Non Blocking getchar()? [SOLVED]
Replies: 102
Views: 20141

Re: Non Blocking getchar()?

Stiller already gave a solution for a kbhit() function. Here is an alternative with ncurses: #include <ncurses.h> /* and be sure to -lncurses when compiling & linking this! */ /* This is the bit how I use it */ if (kbhit()) key = toupper(getch()); /* Code copied from Programmer's Guide to nCurses, b...
by buja
Sat Mar 11, 2017 5:20 pm
Forum: Debian
Topic: Any lightweight Distro besides Raspbian recommended?
Replies: 16
Views: 26914

Re: Any lightweight Distro besides Raspbian recommended?

Some people who want a light version may not know how to go about installing an X desktop. Well, that's what Ghostraider is trying to explain in his topic. But this brings up another question: why do people want a lightweight Linux with an X desktop? Raspbian comes with LXDE and the Pixel theme, wh...
by buja
Sat Mar 11, 2017 12:40 pm
Forum: Debian
Topic: Any lightweight Distro besides Raspbian recommended?
Replies: 16
Views: 26914

Re: Any lightweight Distro besides Raspbian recommended?

Perhaps 'The Foundation' should consider a light weight alternative for those who basically just want a GUI & a browser, maybe just Fluxbox & Firefox, leaving the user to add the programs that they want to use. I don't agree. The Foundation does a very good job already with Raspbian (Full) and Rasp...
by buja
Fri Mar 10, 2017 11:10 am
Forum: C/C++
Topic: Geany dbg plugin
Replies: 3
Views: 1255

Re: Geany dbg plugin

After installing & activating geany-plugin-scope I I had an extra menu option in Geany: Debug. Still have to find out how it works though.

Go to advanced search