Search found 664 matches
- Sun Dec 06, 2020 2:18 am
- Forum: Troubleshooting
- Topic: Pulseaudio and VLC?
- Replies: 17
- Views: 866
Re: Pulseaudio and VLC?
I tried your tone file and it skips in the first couple of seconds of playback. I have noticed that once in a while it doesn't do that but no repeatable and only very rarely.
- Sat Dec 05, 2020 8:09 pm
- Forum: Troubleshooting
- Topic: Pulseaudio and VLC?
- Replies: 17
- Views: 866
Pulseaudio and VLC?
When vlc starts now it skips audio in the first few seconds of playing. The only thing new is the updates to use pulseaudio. This only happens when I use vlc, if I play sounds with Java it never skips. Any body know how to fix it?
- Mon Nov 30, 2020 2:50 am
- Forum: C/C++
- Topic: multi threading in c
- Replies: 7
- Views: 737
Re: multi threading in c
Threads are pretty simple in C++. The compiler command line is in the code. #include <iostream> #include <unistd.h> #include <thread> // g++ mt.c -o mt -lpthread using namespace std; void a() { for (int i=0; i<25; i++) { cout << "a"; cout.flush(); sleep(1); } } void b() { for (int i=0; i<1...
- Mon Nov 30, 2020 2:20 am
- Forum: Advanced users
- Topic: VPN Client?
- Replies: 5
- Views: 241
Re: VPN Client?
Have you looked at pptp-linux (pptp client) and/or pptpd (pptp server)? Yes, they're rudimentary, but better than /dev/null Yes, that's all I found. I got to believe there is something simpler available for the Pi. On Xubuntu it is super simple to set up. The little network widget on the taskbar ha...
- Mon Nov 30, 2020 12:27 am
- Forum: Advanced users
- Topic: VPN Client?
- Replies: 5
- Views: 241
- Sun Nov 29, 2020 4:07 pm
- Forum: Advanced users
- Topic: VPN Client?
- Replies: 5
- Views: 241
VPN Client?
I need to set up a client to use with several PPTP VPN servers at remote locations. I looked around for information on RaspberryPi PPTP VPN clients and found nothing. There is some data out there on setting up a PPTP VPN client under Debian. On Xubuntu there is a widget that does network connections...
- Thu Nov 26, 2020 4:02 pm
- Forum: Java
- Topic: Display JPG images on JAVAFX does'nt work
- Replies: 7
- Views: 849
Re: Display JPG images on JAVAFX does'nt work
I tried to use openjdk11 without success that's why I use Bellsoft. If you have any time to help me it would be great ! It can be a bit daunting to figure out what's actually going on (not that I really have a good handle on it) and make it work. So I'm going to assume that you installed openjdk-11...
- Fri Nov 20, 2020 5:01 pm
- Forum: Java
- Topic: Display JPG images on JAVAFX does'nt work
- Replies: 7
- Views: 849
Re: Display JPG images on JAVAFX does'nt work
I'm pretty sure it is a BellSoft bug. Loading a JPEG image works fine if you use the OpenJDK11 and OpenJFX11 from the repository. Using it is a little more complicated than using Liberica because you have to list the module path and added modules on the command line. Let me know if you want any help...
- Thu Nov 19, 2020 4:46 pm
- Forum: Java
- Topic: Display JPG images on JAVAFX does'nt work
- Replies: 7
- Views: 849
Re: Display JPG images on JAVAFX does'nt work
I found the same thing with Bellsoft JDK 15 on my Pi. I'm not sure what's causing it but it looks like a bug. I'm really surprised this hasn't shown up some where before. I'll look into it some more.
- Tue Nov 17, 2020 9:56 pm
- Forum: Graphics, sound and multimedia
- Topic: Small monitor - big clock!
- Replies: 5
- Views: 410
Re: Small monitor - big clock!
How about an analog clock? With Java 11 or later run it with: java AnalogClock.java import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.time.*; import javax.swing.*; /** * AnalogClock is a resizable Swing component that draws an analog clock. * * @author Knute Johnson * @...
- Mon Nov 16, 2020 4:24 pm
- Forum: Troubleshooting
- Topic: Unable to properly install java
- Replies: 13
- Views: 593
Re: Unable to properly install java
In your first attempt I thought that apt was supposed to check processor against the install and bomb out before trying to install the wrong version? Perhaps it was just that one file jks-keystore that slipped through the net? Strange! I haven't tried to install it from the repository to a Pi 1 in ...
- Mon Nov 16, 2020 4:07 am
- Forum: Troubleshooting
- Topic: Unable to properly install java
- Replies: 13
- Views: 593
Re: Unable to properly install java
Ok, maybe im just stupid and overread something but I followed the installation guide and well [pi@raspberrypi:/usr/lib/jvm $ java -bash: java: command not found If the java program is in /usr/lib/jvm and it appears you are too then you need to use the command: ./java Where did you unzip the Zulu J...
- Fri Oct 23, 2020 8:29 pm
- Forum: Troubleshooting
- Topic: gpio-shutdown not working?
- Replies: 3
- Views: 148
Re: gpio-shutdown not working?
Do you have I2C enabled? Enabling I2C 1 on the default pins blocks the gpio-shutdown overlay from functioning on GPIO 3. It has no impact on using GPIO 3 for restart. Not too sure why I2C was enabled but it was. Disabled it works again. Thanks very much. What is set for HandlePowerKey in /etc/syste...
- Fri Oct 23, 2020 4:43 pm
- Forum: Troubleshooting
- Topic: gpio-shutdown not working?
- Replies: 3
- Views: 148
gpio-shutdown not working?
For some reason gpio-shutdown is not working on my Pi4. I have the dtoverlay=gpio-shutdown in my /boot/config.txt file under [all]. I have a push button switch between pins 5 and 6. The button works if the Pi is halted to restart it so the GPIO is probably not bad.
Any ideas?
Any ideas?
- Thu Oct 22, 2020 1:40 am
- Forum: C/C++
- Topic: Interpreting command line arguments passed to main()
- Replies: 11
- Views: 803
Re: Interpreting command line arguments passed to main()
To add to what DEA said: From man strcmp: DESCRIPTION The strcmp() function compares the two strings s1 and s2. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2. So a match returns 0. This is a template tha...
- Wed Oct 07, 2020 9:07 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: Serial port versus USB?
- Replies: 1
- Views: 198
Serial port versus USB?
I don't know much about the serial port on the Pi (read that as nothing). I've got a sensor I've been communicating with via /dev/ttyUSB0. I'm using a C++ SDK to write code for this sensor. The plan is to change from the USB port to using the serial port on the Pi and stop using the USB to serial co...
- Wed Oct 07, 2020 8:12 pm
- Forum: Networking and servers
- Topic: iptables reverse resolving ufw IPs?
- Replies: 17
- Views: 554
Re: iptables reverse resolving ufw IPs?
Google hit a badly configured rate limit on day-one so has slowed its crawl rate ever since - it seems to be going on forever. Since then I've tuned my DOS limit to 600 hits a minute with a 200 second ban time but you can't tune Googles crawl speed so I'm stuck on slow crawl. Does the Google crawle...
- Wed Oct 07, 2020 1:53 pm
- Forum: Networking and servers
- Topic: iptables reverse resolving ufw IPs?
- Replies: 17
- Views: 554
Re: iptables reverse resolving ufw IPs?
My router firewall has a huge collection of IPs from China, Russia and a few other places. What are you going to do. Looks like I can't alter the apache timings without getting performance hits. I don't trust my router so I have started putting some perm-bans in ufw, I have a cron that logs all IPs...
- Wed Oct 07, 2020 2:01 am
- Forum: Networking and servers
- Topic: iptables reverse resolving ufw IPs?
- Replies: 17
- Views: 554
Re: iptables reverse resolving ufw IPs?
My router firewall has a huge collection of IPs from China, Russia and a few other places. What are you going to do.
- Wed Oct 07, 2020 1:59 am
- Forum: General discussion
- Topic: Running Rasberry Pi in background without Gui
- Replies: 14
- Views: 556
Re: Running Rasberry Pi in background without Gui
I wish people would quit saying that Java is slow. Java has some startup time but then it runs really fast. I will grant that Java's virtual machine is impressively quick for a byte code interpreter. JIT compilers are amazing. But it is demonstrably slower than compiled to native languages: https:/...
- Wed Oct 07, 2020 1:26 am
- Forum: Beginners
- Topic: GUI programming outside the RPi Desktop...?
- Replies: 11
- Views: 524
Re: GUI programming outside the RPi Desktop...?
Have it boot to the desktop and start your program with systemd. Wait for the graphical target. Here is an example of a systemd service file that runs a Java program. This boots, starts the program after the desktop is up, and restarts it if it stops for any reason. If you need specific instructions...
- Mon Oct 05, 2020 11:14 pm
- Forum: Networking and servers
- Topic: iptables reverse resolving ufw IPs?
- Replies: 17
- Views: 554
Re: iptables reverse resolving ufw IPs?
It is UFW that places all the entries into Iptables. I'm suspecting something is wrong because some ufw/iptable reject IPs still get through to apache over a minute after they are set to reject. Any connections that were established before the new rules were enabled will probably still be connected...
- Mon Oct 05, 2020 10:58 pm
- Forum: General discussion
- Topic: Running Rasberry Pi in background without Gui
- Replies: 14
- Views: 556
Re: Running Rasberry Pi in background without Gui
How could I fix the heat issue or is this just normal (my program uses Javas Timer at fixed rate every 12 hours)? The other, way bigger problem right now is, that I don’t get the program to the Pi. My USB - Stick doesn’t get shown in the media folder and I couldn’t figure the connection via WIFI ou...
- Mon Oct 05, 2020 10:15 pm
- Forum: Beginners
- Topic: GUI programming outside the RPi Desktop...?
- Replies: 11
- Views: 524
Re: GUI programming outside the RPi Desktop...?
- Sun Oct 04, 2020 7:10 pm
- Forum: Beginners
- Topic: GUI programming outside the RPi Desktop...?
- Replies: 11
- Views: 524
Re: GUI programming outside the RPi Desktop...?
Hi all, I'm now planning a new project that will combine a couple of rotary encoders and a touch screen, to give a 'digital finder scope' for a telescope. To this end, I will need to build a GUI, but I don't want to build a Desktop application, as the desktop sucks up far too much system performanc...