Go to advanced search

by jahboater
Fri Feb 10, 2017 10:19 am
Forum: Off topic discussion
Topic: Asus Tinker board
Replies: 155
Views: 20285

Re: Asus Tinker board

jamesh wrote:Raspberry Pi has a great support network, with good reliable software. What's the biggest reason board like this fail?
The Pi has had five years, 12 million sales, and a team of obviously clever engineers. Hard to compete with!
by jahboater
Fri Feb 10, 2017 8:42 am
Forum: Off topic discussion
Topic: Asus Tinker board
Replies: 155
Views: 20285

Re: Asus Tinker board

I was looking at this, I can't believe there's no SATA, that's the thing that is almost never included and is very much needed. But does this really run at 1.8GHz without even a heatsink? If true, that's rather remarkable. If you view the unboxing video linked earlier, they apparently didn't. One f...
by jahboater
Wed Feb 08, 2017 11:03 pm
Forum: C/C++
Topic: Help with learning to compile+link C+SDL+OGLES2 on Linux!
Replies: 10
Views: 2020

Re: Help with learning to compile+link C+SDL+OGLES2 on Linux

4) How? I need you or someone to create a Zip file with all of the files needed to compile a Hello.c along with how to actually compile the Hello.c. This is where tutorials fail, they say WHAT to do, they don't say HOW to do it. You wont learn much if someone else does it all for you. So you only n...
by jahboater
Tue Feb 07, 2017 10:31 am
Forum: Raspberry Pi OS
Topic: Eth static IP [SOLVED]
Replies: 3
Views: 1399

Re: Eth static IP

You need to edit /etc/dhcpcd.conf instead with something like this:-

Code: Select all

interface eth0
static ip_address=192.168.0.100/24
static routers=192.168.0.1
static domain_name_servers=8.8.8.8 192.168.0.1 8.8.4.4
The interfaces file should be restored to its original contents.
by jahboater
Mon Feb 06, 2017 6:44 pm
Forum: C/C++
Topic: cant found sys/ioctl.h
Replies: 2
Views: 1694

Re: cant found sys/ioctl.h

Hi i have problem with raspberry, becausa i cant found sys libraries in include file.does anyone know when i can download sys libraries ?. Thanks Do you mean ? #include <sys/ioctl.h> This header should be there, and I doubt the system would run for very long without libc! I assume your not running ...
by jahboater
Sun Feb 05, 2017 5:04 pm
Forum: General discussion
Topic: line numbers
Replies: 8
Views: 3194

Re: line numbers

I am slowly struggling to get the grip on writing python code... sudo nano mypython.py How do I get displayed line numbers when errors are found in the code telling there is an error line xx? Try geany instead of nano, it will show line numbers. Please please do not use sudo for editing a normal so...
by jahboater
Sat Feb 04, 2017 4:33 pm
Forum: C/C++
Topic: compile
Replies: 11
Views: 2272

Re: compile

curlyc wrote:anyone know a good compiler that works well on pi,
Back on topic!

There is also clang/llvm. Unlike GCC it does need to be installed:

Code: Select all

sudo apt install clang
Both clang and GCC are very good compilers.
by jahboater
Sat Feb 04, 2017 8:19 am
Forum: C/C++
Topic: compile
Replies: 11
Views: 2272

Re: compile

You didn't say what operating system, but the official and recommended OS is Raspbian. https://www.raspberrypi.org/downloads/raspbian/ Both versions of Raspbian (the full one, and the Lite one) include a C/C++ compiler ready installed, which is GCC 4.9. There is no need to install anything, just use...
by jahboater
Fri Feb 03, 2017 11:01 am
Forum: Beginners
Topic: Using ExFAT For Large File
Replies: 22
Views: 5899

Re: Using ExFAT For Large File

You can of course simply copy files on and off the Pi over the network. Samba or scp perhaps.
Adding a USB GiGe adapter should give you around 320 Mbits/sec.
No need then to alter the main filesystem.
by jahboater
Fri Feb 03, 2017 10:31 am
Forum: Beginners
Topic: Using ExFAT For Large File
Replies: 22
Views: 5899

Re: Using ExFAT For Large File

I have a 200gb SDXC i am following the steps to copy and format it, my concern is that i need to put large media files (mov, mp4) on the card, i have already made a small bash script which automatically copies and replaces files when a usb is inserted to update the unit and run as stand alone. Can ...
by jahboater
Tue Jan 31, 2017 6:50 pm
Forum: General discussion
Topic: Will i need to touch it ever again
Replies: 7
Views: 1280

Re: Will i need to touch it ever again

Tomanation wrote:So there isn't like any updates that will kick on automatically
No. Software updates are initiated by the user.
by jahboater
Tue Jan 31, 2017 2:56 pm
Forum: General discussion
Topic: Update GCC in apt-get repository
Replies: 9
Views: 12937

Re: Update GCC in apt-get repository

Now I know I can manually build this version of GCC but it's a time consuming hassle to do this, so it would be nice if GCC was updated in the raspbian repo. Is there anywhere I can officially request this? It does take a few hours to compile, but just leave it overnight! Its only a few minutes of ...
by jahboater
Tue Jan 31, 2017 11:23 am
Forum: C/C++
Topic: Where's my core file?
Replies: 18
Views: 7065

Re: Where's my core file?

You can't have reliable bounds checking in C without making major changes to the platform ABI. Doesnt valgrind do a complete job? It checks every single instruction and memory reference but is of course rather slow. That doesn't mean you can't have any bounds checking at all but you need to treat i...
by jahboater
Mon Jan 30, 2017 1:39 am
Forum: General discussion
Topic: Starting a Rasphberry Pi wihout KV or M
Replies: 8
Views: 1551

Re: Starting a Rasphberry Pi wihout KV or M

Is there no way to install RP onto a SD/Micro SD card and have it pre-loaded with openssh-server and ready for login? It is pre-loaded with openssh server! You just have to enable the server as described in previous answers. I have several Pi's and they rarely, if ever, see a keyboard and screen.
by jahboater
Sun Jan 29, 2017 4:39 pm
Forum: C/C++
Topic: which language better c++ or Python
Replies: 11
Views: 7765

Re: which language better c++ or Python

Huh? Deadline? Are we talking about software development? I think you meant The "Software Life-Cycle". What Salwan meant is that Python is an "interpreted" language vs C++ which is a "compiled" language. You can run Python script right after it's written, whereas C++ needs to be compiled before it ...
by jahboater
Fri Jan 27, 2017 2:45 pm
Forum: General discussion
Topic: 12V pi
Replies: 17
Views: 3677

Re: 12V pi

Heater wrote:
12V @ 1Amp is more energy efficient than 5V @ 2Amp.
No it is not. It's the same. See post above.
Maybe its the I*I*R loss in the cable the OP is thinking of.
by jahboater
Fri Jan 27, 2017 1:34 pm
Forum: Troubleshooting
Topic: Robustness and Stability with Wifi connexion
Replies: 6
Views: 985

Re: Robustness and Stability with Wifi connexion

RDE wrote:I am monitoring the CPU temp as well for it was of course one of the root cause i wanted to exclude. It is often quite hot, but I used a bash script to see how it evolves and it does not go much above 50°C.
50C is not at all hot. The CPU will start to throttle back at 80C.
by jahboater
Thu Jan 26, 2017 4:34 pm
Forum: C/C++
Topic: Where is the bug? C operation with wrong result?
Replies: 7
Views: 1404

Re: Where is the bug? C operation with wrong result?

About my "bug", what really bugs me is that the result of the division of 701580000 by 25000000 is precisely 28,0632. I even did the math on paper just to be sure. :) I cant give you an exact result, but its easy to tell if its not ... feclearexcept( FE_ALL_EXCEPT ); abc = f_10 / f_xtal; if( fetest...
by jahboater
Thu Jan 26, 2017 10:51 am
Forum: C/C++
Topic: Where is the bug? C operation with wrong result?
Replies: 7
Views: 1404

Re: Where is the bug? C operation with wrong result?

also, double abc = f_10 / f_xtal; // 701580000 / 25000000 = 28.0632 double a = floorf(abc); should be: floor(abc) floorf is for 32-bit floats, floor is for 64-bit doubles, floorl is for long double. The gcc options -Wfloat-conversion or -Wconversion would have complained about this loss of precision.
by jahboater
Thu Jan 26, 2017 10:10 am
Forum: C/C++
Topic: Where is the bug? C operation with wrong result?
Replies: 7
Views: 1404

Re: Where is the bug? C operation with wrong result?

I would not mind this "small" difference, but in my further calculus this has an impact in a loop that just can't reach its exit condition. And since math is supposed to be an exact science, I do mind a lot. Floating point math is not always "exact" on digital computers. A trivial example: 0.2 simp...
by jahboater
Wed Jan 25, 2017 10:56 am
Forum: Python
Topic: Trying to import a python program into executable
Replies: 16
Views: 3345

Re: Trying to import a python program into executable

On Linux I think its reasonable to assume that Python is always available. It is probably reasonably fair to assume that, but will it be Python 2, Python 3 or both, and will it be the same tomorrow as it is today ? Good point. On Raspbian Lite, only Python 2 is included. (of course its a trivial "a...
by jahboater
Wed Jan 25, 2017 9:49 am
Forum: Python
Topic: Trying to import a python program into executable
Replies: 16
Views: 3345

Re: Trying to import a python program into executable

On Linux I think its reasonable to assume that Python is always available. I guess these programs include a Python interpreter within the executable. You can run a Python program with "python myprog.py", but if you just want to run it as a normal program, include "#!/usr/bin/env python" as the first...
by jahboater
Wed Jan 25, 2017 9:31 am
Forum: Graphics, sound and multimedia
Topic: /dev/random use in audio-visual art project
Replies: 4
Views: 911

Re: /dev/random use in audio-visual art project

I can not find any examples or tutorials about /dev/random usage, only some hardcore crypto stuff that I cant understand. :D Also what would be best language do this in. I know a little bit of processing, so I would probably need to learn something more serious. The hardware random number generator...
by jahboater
Tue Jan 24, 2017 8:47 pm
Forum: C/C++
Topic: Getting started with C
Replies: 8
Views: 1722

Re: Getting started with C

And last, but not least, make sure it compiles cleanly on both platforms with at least: -Wall -Wextra -Wconversion You could add a few to that for good luck ... ;) -Wall -Wextra -Wconversion -Wcast-align -Wcast-qual -Warray-bounds -Wstrict-aliasing=3 -Wstrict-overflow=1 -Wuninitialized -Wwrite-strin...
by jahboater
Tue Jan 24, 2017 2:47 pm
Forum: C/C++
Topic: Getting started with C
Replies: 8
Views: 1722

Re: Getting started with C

I don't mind having dependencies that are in fact standard parts of a linux system, but not more. Yes. If you have to install a library or a tool on Linux, its an indication that its possibly an unwanted dependency that might, or might not, always be available. Basically, i want to develop on a deb...

Go to advanced search