My client asked me to do a website where a user can enter a path on the machine, PHP should scan the path and load all the media files in the directory and subdirectories. The user can enter any path, Desktop, or external drives, whatever, outside the root directory. That’s what the client wants and he’s running on Linux. I
Tag: debian
Why does posh fail to perform pathname expansion when a part of the path is specified within double-quotes?
Consider the following simple shell script: I get the expected output with bash, ksh, zsh and dash, but I don’t get it with posh: I am trying to understand if the behaviour of posh is correct as per the POSIX standard or if it is a bug. The relevant section in the POSIX documents seem to be “2.6 Word Expansion”:
RE: Getting the Adafruit_I2C Import Changed Into Another GPIO Layout
I have some problems with the MotorBridgeCape. I have all my software and I found most of it at GitHub.com at github.com/Seeed-Studio/MotorBridgeCapeforBBG_BBB and at their Wiki at seeedstudio.com/wiki/Motor_Bridge_Cape_v1.0. Here is my issue. I connect my battery, two motors, and I run the .py file for DC Motors from their Wiki page. I get an error. The error reads as follows:
Is it possible to get Debian Lenny running yet? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
How to configure Java 7 OR Java 8 dependency in Debian deb package?
I am building a Debian *.deb package for our proprietary software. The software is Java based, so I thought it would be good if the deb package checks for an installed Java package first. Problems: This fails if an Oracle JDK 7 is installed. It seems as this would only check for the OpenJDK 7 package. How can I check
How do I run a simple Go server as a daemon in Debian?
I recently wrote a simple server in Go: It works perfectly well if compiled and then executed by ./go_http_server &. The problem is that it doesn’t survive reboots. So after some reading, I attempted to daemonize it by placing a script in /etc/init.d: …then running update-rc.d go_http_server defaults, and poof! It runs on boot, as verified by ps -ef |
Matlab text on Linux with Intel graphics
On my laptop with an Intel HD 5500 graphics card, if I run Matlab (locally or on a remote machine) some text in menus and inside figures is unreadable. This is what the Edit menu of an empty figure looks like: The lines that are unreadable seem randomly chosen but they’re not: in every new figure, it’s those menu items.
Stunnel secure wss websocket to unsecure ws socket
I recently changed my site to use SSL. What I have is an old websocket server script listening on port 9300 which is then called by the client’s browser using javascript through ws. Now that my site has changed to https I have to call a wss but it’s not working. So I just want to redirect a secure wss
Security updates pending even with unattended-upgrades on Debian
I installed a few days ago the unattended-upgrades package to install automatically the security updates on my debian 8 system. I notice when I run : That I have a few security updates pending. What’s wrong with my configuration? Answer You need either /etc/apt/apt.conf.d/20auto-upgrades or /etc/apt/apt.conf.d/02periodic and they must contain lines APT::Periodic::Update-Package-Lists “1”; and APT::Periodic::Unattended-Upgrade “1”;. Run (as root) dpkg-reconfigure
In Debian, where in the filesystem would a daemon provide dynamic measurement results?
For a diploma thesis, I am developing a Linux daemon that runs on Debian and is also Debian-packaged for easy administration. It reads various measurement results via I²C. The results shall be shown on a website. In Debian, where in the filesystem would a daemon output such measurement data to be updated regularly and read from other applications or the