Go to advanced search

by knute
Wed Jan 13, 2021 12:09 am
Forum: Raspberry Pi OS
Topic: File associations - how to edit/remove?
Replies: 7
Views: 255

Re: File associations - how to edit/remove?

OK, now that you're clear about what you want, I don't think you can do that. The problem you are going to run into is that the java program is going to think any path you have in front of SJ.class is part of the class name and it won't be able to find it. My best suggestion is to write a script to ...
by knute
Tue Jan 12, 2021 3:19 pm
Forum: Raspberry Pi OS
Topic: File associations - how to edit/remove?
Replies: 7
Views: 255

Re: File associations - how to edit/remove?

pi@raspberrypi4B:~/bin $ ls DrawV* 'DrawVolatile$1.class' 'DrawVolatile$3$1.class' DrawVolatile.class 'DrawVolatile$2.class' 'DrawVolatile$3.class' DrawVolatile.java pi@raspberrypi4B:~/Desktop $ cat drawvolatile.desktop [Desktop Entry] Name=DrawVolatile Type=Application Path=/home/pi/bin Exec=java D...
by knute
Mon Jan 11, 2021 8:36 pm
Forum: Raspberry Pi OS
Topic: File associations - how to edit/remove?
Replies: 7
Views: 255

Re: File associations - how to edit/remove?

With a Desktop Entry file: [Desktop Entry] Name=SpeedTest Type=Application Exec=java -jar /home/pi/bin/SpeedTest.jar Terminal=false Hidden=false They don't need to be executable, their magic lies in their name and format. Everything you really wanted to know: https://specifications.freedesktop.org/d...
by knute
Fri Jan 08, 2021 8:14 pm
Forum: Media centres
Topic: General Message all time and a Rules message at the push of a button
Replies: 15
Views: 970

Re: General Message all time and a Rules message at the push of a button

Video or audio message? It would be trivial to write a program to do audio but I'm not much of an expert with video. How long is your audio message? Something short like "mind the gap" played over and over or War and Peace?
by knute
Fri Jan 08, 2021 8:07 pm
Forum: Networking and servers
Topic: Virtual Host - Domain name issue [SOLVED]
Replies: 21
Views: 272

Re: Virtual Host - Domain name issue

Do you have something screwy in your hairpin NAT?
by knute
Fri Jan 08, 2021 3:24 pm
Forum: Networking and servers
Topic: Virtual Host - Domain name issue [SOLVED]
Replies: 21
Views: 272

Re: Virtual Host - Domain name issue

First a question: Do you really have two NICs on your computer, one at 192.168.0.2 and one at 84.10.187.148? Or are you port forwarding 84.10.187.148 through your router to 192.168.0.2? In any case I think I would remove all the IP references from the VirtualHost statement. Mine looks like this: <Vi...
by knute
Thu Jan 07, 2021 10:48 pm
Forum: Java
Topic: Programmatically pressing enter blows up the JVM
Replies: 4
Views: 535

Re: Programmatically pressing enter blows up the JVM

What is the simulated key press used for? Are you actually going to catch a key press in your code? It is difficult to catch a single key press in Linux programatically. You can use the Console to get a line terminated with the <ENTER> key. If you just need notice to trigger some other action with t...
by knute
Thu Jan 07, 2021 4:59 pm
Forum: Networking and servers
Topic: Can't move files to Apache HTML folder
Replies: 5
Views: 291

Re: Can't move files to Apache HTML folder

The problem is the default ownership of /var/www/html where the files go is root:root with permissions 755 (rwx r x r x). The GUI file manager is running as pi so it can't write files to that directory. You (pi) need to be able to read and write the files and apache needs to be able to read the file...
by knute
Thu Dec 31, 2020 11:46 pm
Forum: Beginners
Topic: Panel
Replies: 1
Views: 64

Re: Panel

Right click on one of the panel items next to the raspberry but not the raspberry and select Application Launch Bar Settings. Be very careful NOT to select Remove "Application Launch Bar From Panel"!
by knute
Thu Dec 31, 2020 11:37 pm
Forum: Troubleshooting
Topic: Pulseaudio and VLC?
Replies: 17
Views: 854

Re: Pulseaudio and VLC?

It's really nice not to have the audio skipping on start. Thanks again for that!
by knute
Thu Dec 31, 2020 8:01 pm
Forum: C/C++
Topic: c library modification
Replies: 8
Views: 475

Re: c library modification

I tried it downloading the .zip and cloning it and it failed to get past the cmake step in both cases. There is something missing or the directions are not current. Sorry I can't help more than that.
by knute
Wed Dec 30, 2020 4:14 pm
Forum: C/C++
Topic: [SOLVED] Loop Optimization for image buffer?
Replies: 17
Views: 1154

Re: Loop Optimization for image buffer?

A lot of this depends on how much data you are handling? Or if your code is quicker, parallel it. // pseudo code unsigned char *d = data; #define DATA_LENGTH = 1000000; // you don't say int half = DATA_LENGTH / 2; void process_data(unsigned char *data, int len) { for (register l=1; l<len; i+=3) { //...
by knute
Wed Dec 30, 2020 2:30 am
Forum: Troubleshooting
Topic: Pulseaudio and VLC?
Replies: 17
Views: 854

Re: Pulseaudio and VLC?

Works like a charm for me, thanks for finding that! That video still doesn't have any audio on Firefox_esr but does on Chromium.
by knute
Wed Dec 30, 2020 1:55 am
Forum: C/C++
Topic: [SOLVED] Loop Optimization for image buffer?
Replies: 17
Views: 1154

Re: Loop Optimization for image buffer?

I think there might be a simpler way to fix your data. It looks to me that of the 3 bytes, the latter two just need to be rotated 4 bits. #include <stdio.h> #include <stdint.h> int main() { char buf[] = { 0x01,0x23,0x45 }; printf("%02x %02x %02x\n",buf[0],buf[1],buf[2]); uint16_t *b = (uin...
by knute
Thu Dec 24, 2020 6:12 pm
Forum: Troubleshooting
Topic: pigpio?
Replies: 2
Views: 142

Re: pigpio?

Version 78 listens on all the addresses. There is a very subtle difference in the netstat output from version 71 to 78. pi@raspberrypi4B:~ $ netstat -lntu | grep 8888 tcp6 0 0 ::1:8888 :::* LISTEN pi@raspberrypi4B:~ $ netstat -lntu | grep 8888 tcp6 0 0 :::8888 :::* LISTEN With version 78 all of thes...
by knute
Thu Dec 24, 2020 4:04 am
Forum: Troubleshooting
Topic: pigpio?
Replies: 2
Views: 142

pigpio?

I have a Pi 4 with up to date RPi OS. pigpio version 71 running the pigpiod daemon from systemd with only the -l option. The only address that I can connect to the pigpiod socket on is ::1. localhost, 127.0.0.1 and 0.0.0.0 give a connection refused error. I haven't changed anything in the networking...
by knute
Tue Dec 22, 2020 1:13 am
Forum: C/C++
Topic: pigpio problem?
Replies: 2
Views: 162

Re: pigpio problem?

The command consists of the cmdCmd_t plus the extension. Both have to be sent before the command is echoed back. Is it just misleading wording? "The cmdCmd_t is echoed back with the result, if any, in p3/res, and an extension immediately afterwards for a few commands" is referring to any ...
by knute
Mon Dec 21, 2020 10:10 pm
Forum: C/C++
Topic: pigpio problem?
Replies: 2
Views: 162

pigpio problem?

I'm working on a Java front end that uses pigpio to access the GPIO so I don't have to write any JNI code. I decided to use the socket interface to pigpio because it is easily accomplished in Java. I've been testing several of the commands and I think I may have found something I don't understand. T...
by knute
Fri Dec 11, 2020 3:35 am
Forum: C/C++
Topic: gcc 10+?
Replies: 6
Views: 530

Re: gcc 10+?

You flipped the script on me :-). I ran the original script from ~/bin. It created a directory gcc-10.2.0. There was no Makefile in ~/bin so I went to ~/bin/gcc-10.2.0/obj and entered sudo make install. I think it is working like it is supposed to. It needed a restart of the terminal. Thanks again.
by knute
Fri Dec 11, 2020 12:24 am
Forum: C/C++
Topic: gcc 10+?
Replies: 6
Views: 530

Re: gcc 10+?

jahboater wrote:
Thu Dec 10, 2020 4:32 pm
knute wrote:
Thu Dec 10, 2020 4:11 pm
Is there any advantage of recompiling 10 with 10?
That's what happens anyway as the final part of the normal build (one of the reasons it takes so long).
Thanks.

One more question, I've compiled it but how do I install it somewhere?
by knute
Thu Dec 10, 2020 4:11 pm
Forum: C/C++
Topic: gcc 10+?
Replies: 6
Views: 530

Re: gcc 10+?

Thanks for that!

One other question. Is there any advantage of recompiling 10 with 10?
by knute
Thu Dec 10, 2020 3:52 am
Forum: C/C++
Topic: gcc 10+?
Replies: 6
Views: 530

gcc 10+?

A while back there was a thread with a script for downloading and compiling gcc 10 (I think it was 10 anyway). I can't seem to find it again. I have need for gcc 10. Anybody remember who posted the script or what the title was?
by knute
Wed Dec 09, 2020 8:54 pm
Forum: Java
Topic: Dissapointed with java.nio
Replies: 4
Views: 623

Re: Dissapointed with java.nio

Hello I have coded a program (server and client) in two versions: one with java.io and the other one with java.nio. The program simulates a chat server a many clients, that send messages to server and the server resend to all of the clients. The test I made was with 100 clients. With java.io the se...
by knute
Mon Dec 07, 2020 3:51 pm
Forum: Troubleshooting
Topic: Pulseaudio and VLC?
Replies: 17
Views: 854

Re: Pulseaudio and VLC?

There was an update this morning with some pulseaudio libraries. After the update I got no sound at all until I discovered that the update had changed the selection to AV Jack instead of HDMI. VLC still has the stutter when it starts playing though.
by knute
Sun Dec 06, 2020 10:10 pm
Forum: Troubleshooting
Topic: Pulseaudio and VLC?
Replies: 17
Views: 854

Re: Pulseaudio and VLC?

BTW, if you have firefox-esr installed, please ,can you try to play this video from YouTube... https://www.youtube.com/watch?v=4Wrc4fHSCpw there are very few videos that plays without sound, but only in firefox-esr. this became an issue after the upgrade with PulseAudio. maybe this issue is kind of...

Go to advanced search