Go to advanced search

by Heater
Fri Jul 20, 2018 8:59 am
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

ejolson, It is a little unfair, however, to compare the speed of a compiler which emits C code to a tool chain which creates linked optimized executables. For a fairer comparison, note that Raspbian already comes with a really fast C compiler that emits C code for its output. It is called cat. Ah! Y...
by Heater
Fri Jul 20, 2018 7:59 am
Forum: General discussion
Topic: A new level of seasickness
Replies: 41
Views: 1011

Re: A new level of seasickness

I've restrained myself from commenting on the layout, aesthetics, content of the thing.

But really, a 3.5MB download and a load time of 30 seconds over a mobile connection is not good for a home page no matter what you think of it's looks.
by Heater
Fri Jul 20, 2018 4:14 am
Forum: General discussion
Topic: New homepage - nice job!
Replies: 9
Views: 347

Re: New homepage - nice job!

Imperf3kt,

I'm curious, what is that preferred browser of yours?

Is it something anyone else uses?
by Heater
Thu Jul 19, 2018 9:38 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

hippy, Feels a bit like the ivory tower attitudes in computing of old; you either know and are in or you can stay outside. Wow, that is totally the opposite view of what Per Vognsen is doing in his Bitwise project than the one I take away from it. He is really practical in his approach. He is not in...
by Heater
Thu Jul 19, 2018 7:58 pm
Forum: General discussion
Topic: A new level of seasickness
Replies: 41
Views: 1011

Re: A new level of seasickness

Was it designed by that cool dude that keeps advertising to me on Youtube: "I created this really dope website using Wix, let me show you how"

Good grief.
by Heater
Thu Jul 19, 2018 7:52 pm
Forum: General discussion
Topic: New homepage - nice job!
Replies: 9
Views: 347

Re: New homepage - nice job!

Oh, we have commented already: viewtopic.php?f=63&t=218497

Mostly negatively.
by Heater
Thu Jul 19, 2018 7:48 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

hippy, All the Bitwise source code and documentation (such as it is) is in github: https://github.com/pervognsen/bitwise/ There is also a Bitwise forum: https://bitwise.handmade.network/forums In github you will find links to twitter and whever other media Per Vognsen is using. Never mind the hour l...
by Heater
Thu Jul 19, 2018 7:07 pm
Forum: General discussion
Topic: A new level of seasickness
Replies: 41
Views: 1011

Re: A new level of seasickness

Dougie, I would not worry about the JS when it comes to load times. That page is 3.5MB the JS is only 100KB of that or so. That is far to much JS of course most of it is not needed. But there is much other bloat to worry about first. I do worry about all the tracking info about us that gets sent off...
by Heater
Thu Jul 19, 2018 2:35 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

Excellent. Because I was just thinking about all this... The whole stack of technology we are talking about is enormously deep and wide. From the physics of the transistors at the bottom to the application software at the top. Passing through logic gates, digital circuits, processor design, compiler...
by Heater
Thu Jul 19, 2018 11:18 am
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

Z80 Refugee, ...hardware engineers can manage without software engineers, but software engineers need the product of hardware engineers before they can even begin... Well, yes, in some simple minded basic way that is true. If I write a program it is pretty much useless if I don't have a computer to ...
by Heater
Thu Jul 19, 2018 5:57 am
Forum: General discussion
Topic: system for controlling and monitoring device
Replies: 11
Views: 251

Re: system for controlling and monitoring device

Fan174,
please let me know in which condition do you use both server web server and database server.
See my previous post: viewtopic.php?f=63&t=218418#p1342373
It would be batter if you take one example
Example: This forum.
by Heater
Thu Jul 19, 2018 12:15 am
Forum: General discussion
Topic: system for controlling and monitoring device
Replies: 11
Views: 251

Re: system for controlling and monitoring device

No. You do not need a database for such a simple control task.
by Heater
Wed Jul 18, 2018 10:27 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

Z80 Refugee, What I see is loads of software "engineers" (if you can call programming by trial and error engineering), but nobody who knows how to make anything. I'm not sure I understand what you are complaining about. There are 7.3 billion people on the planet at this moment. Many of them have acc...
by Heater
Wed Jul 18, 2018 5:47 pm
Forum: General discussion
Topic: system for controlling and monitoring device
Replies: 11
Views: 251

Re: system for controlling and monitoring device

Yes and no. All depends on what it is you actually want to do. 1) Something to read sensors is required if you want to measure temperature. 2) Something to command actuators is required if you want to control temperature. ("actuator" could be just a heater but may also include fans etc) 3) A web ser...
by Heater
Wed Jul 18, 2018 3:54 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

hipppy, That, and promoting Python which relies heavily on libraries, feels to me to be somewhat at odds with the constrained Pi. As an old timer sometimes my jaw does drop when I see the size of some programs in the modern world. But I'm curious, after you bit the bullet and just imported PyGame ho...
by Heater
Wed Jul 18, 2018 3:41 pm
Forum: General discussion
Topic: system for controlling and monitoring device
Replies: 11
Views: 251

Re: system for controlling and monitoring device

Fan174, I am not really going to make this system but I am taking one example for easy understanding. In which case I will not really tell you how to do this, just offer some clues... Suppose I want to make smart system that would be monitor...[temperature] So just read temperatures from whatever te...
by Heater
Wed Jul 18, 2018 11:26 am
Forum: C/C++
Topic: Serial USB communication over XBee
Replies: 2
Views: 110

Re: Serial USB communication over XBee

A quick google search for "serial port programming c raspberry pi" finds a tone of examples and discussion: http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uart https://stackoverflow.com/questions/17254923/raspberry-pi-uart-program-in-c-using-termios-receives-garbage...
by Heater
Wed Jul 18, 2018 8:17 am
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

Z80 Refugee, Ok, memory mapping and address translation complicates things, but that aside: what makes the RPi I/O any worse than any other memory mapped hardware accessed with a bit of bitblitting? Many things... Writing to an I/O port could be as simple as : li r1, 0x01 // Get immediate value 1 in...
by Heater
Tue Jul 17, 2018 7:26 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 60
Views: 1256

Re: What Does Hiding the Details of I/O in Library Calls Teach?

Z80 Refugee, The software department fixed the problem by swapping out the defective unit. That is ambiguous. Did they swap out your defective hardware or the defective software engineer? As soon as it's not, you end up with the situation I was faced with: somebody who thinks they're a whizz kid pro...
by Heater
Tue Jul 17, 2018 6:56 pm
Forum: General discussion
Topic: Free Fall detection through Accelerometer using raspberry pi
Replies: 11
Views: 316

Re: Free Fall detection through Accelerometer using raspberry pi

bensimmo,
Many of these sensors have in built free fall detection.
That is cheating :)
by Heater
Tue Jul 17, 2018 6:55 pm
Forum: General discussion
Topic: Free Fall detection through Accelerometer using raspberry pi
Replies: 11
Views: 316

Re: Free Fall detection through Accelerometer using raspberry pi

W. H. Heydt, Centripetal force, actually. I was certain someone would pick up on that when I wrote it. They always do. It's some silly thing kids get taught in school. You know, if you tie a rock to a rope and get it spinning around and around over your head, that rope does not know or care if it's ...
by Heater
Tue Jul 17, 2018 6:26 pm
Forum: General discussion
Topic: How to automatically run a program in Raspberry Pi?
Replies: 15
Views: 345

Re: How to automatically run a program in Raspberry Pi?

Please try to answer the questions people have asked here. They are trying to help you but you are not helping them to help you. If you see what I mean. You have said "c file and I have compiled the file" which implies that you now have an executable that runs on Raspbian. Does that executable run w...
by Heater
Tue Jul 17, 2018 6:14 pm
Forum: General discussion
Topic: Free Fall detection through Accelerometer using raspberry pi
Replies: 11
Views: 316

Re: Free Fall detection through Accelerometer using raspberry pi

Yeah, that as well.

Also if your object is spinning whilst free falling and the accelerometer is not exactly at the center of mass of the object it will read some acceleration due to centrifugal force.

But hey, let's start from basics.
by Heater
Tue Jul 17, 2018 4:49 pm
Forum: General discussion
Topic: How to automatically run a program in Raspberry Pi?
Replies: 15
Views: 345

Re: How to automatically run a program in Raspberry Pi?

Oh wait: $ sudo systemctl enable propanel Our OP is working from an example of using systemd to start a node.js process that I posted here years ago. "propanel" is the name of my project that was just given as an example in my old post. Thought I made that clear in the old post. The command: $ sudo ...
by Heater
Tue Jul 17, 2018 4:41 pm
Forum: General discussion
Topic: How to automatically run a program in Raspberry Pi?
Replies: 15
Views: 345

Re: How to automatically run a program in Raspberry Pi?

ExecStart=node /home/pi/server/server.c I suggest that you do not name your javascript programs for node.js with a ".c" suffix. Better to use ".js". Else you will confuse yourself and everybody else. Also suggest you specify the full path to node in that systemd config line. E.g. ExecStart=/usr/bin...

Go to advanced search