LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

378 solutions found in general-dev

Page 1 of 19
0 votes
1 ans
3 views
Are you trying to mount a directory onto a file (or vice-versa)?

I have a docker with version `17.06.0-ce`. When I trying to install NGINX using docker with command: docker run -p 80:80 -p 8080:8080 --name nginx -v $PW...

general-dev Solved
ST
asked 1 month ago by Steven Luo
0 votes
1 ans
3 views
API gateway vs. reverse proxy

In order to deal with the microservice architecture, it's often used alongside a Reverse Proxy (such as nginx or apache httpd) and for cross cutting concern...

general-dev Solved
US
asked 1 month ago by user1459144
0 votes
1 ans
3 views
duplicate MIME type "text/html"?

I have this in Nginx configuration files gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml appl...

general-dev Solved
ME
asked 1 month ago by Memek Gue Bolong Gan
0 votes
1 ans
3 views
What is the point of uWSGI?

I'm looking at the [WSGI specification][1] and I'm trying to figure out how servers like [uWSGI][2] fit into the picture. I understand the point of the...

general-dev Solved
D5
asked 1 month ago by d512
0 votes
1 ans
3 views
Terminal error: zsh: permission denied: ./startup.sh

I am running a command ./startup.sh nginx:start and I am getting this error message zsh: permission denied: ./startup.sh why could this...

general-dev Solved
RE
asked 1 month ago by Reacting
0 votes
1 ans
3 views
Redirecting EC2 Elastic Load Balancer from HTTP to HTTPS

I want to redirect all the HTTP request to https request on [ELB][1]. I have two EC2 instances. I am using nginx for the server. I have tried a rewriting the ng...

general-dev Solved
AM
asked 1 month ago by Amit Badheka
0 votes
1 ans
3 views
What does "trust proxy" actually do in express.js, and do I need to use it?

I am writing an express app that sits behind an nginx server. I was reading through express's documentation and it mentioned the 'trust proxy' sett...

general-dev Solved
JO
asked 1 month ago by joeycozza
0 votes
1 ans
3 views
Format bytes to kilobytes, megabytes, gigabytes

Scenario: the size of various files are stored in a database as bytes. What's the best way to format this size info to kilobytes, megabytes and gigabytes? F...

general-dev Solved
LE
asked 1 month ago by leepowers
0 votes
1 ans
3 views
How do you implement a good profanity filter?

Many of us need to deal with user input, search queries, and situations where the input text can potentially contain profanity or undesirable language. Oftentim...

general-dev Solved
BE
asked 1 month ago by Ben Throop
0 votes
1 ans
3 views
Create or write/append in text file

I have a website that every time a user logs in or logs out I save it to a text file. My code doesn't work in appending data or creating a text file if i...

general-dev Solved
JE
asked 1 month ago by Jerahmeel Acebuche
0 votes
1 ans
3 views
How to display HTML tags as plain text

I have an input form on my website where HTML is allowed and I'm trying to add instructions about the use of HTML tags. I'd like the text to <...

general-dev Solved
US
asked 1 month ago by user517593
0 votes
1 ans
3 views
Fastest hash for non-cryptographic uses?

I'm essentially preparing phrases to be put into the database, they may be malformed so I want to store a short hash of them instead (I will be simply compa...

general-dev Solved
JO
asked 1 month ago by John
0 votes
1 ans
3 views
Facebook API - How do I get a Facebook user's profile image through the Facebook API (without requiring the user to "Allow" the application)

I'm working on a [CMS][1] that fetches a user's profile image from their Facebook [URL][2] (that is, http://facebook.com/users_unique_url). How can I ac...

general-dev Solved
JO
asked 1 month ago by John Himmelman
0 votes
2 ans
3 views
How can I send a Firebase Cloud Messaging notification without use the Firebase Console?

I'm starting with the new Google service for the notifications, `Firebase Cloud Messaging`. Thanks to this code https://github.com/firebase/quickstart-a...

general-dev Solved
DA
asked 1 month ago by David Corral
0 votes
1 ans
3 views
Remove multiple whitespaces

I'm getting `$row['message']` from a MySQL database and I need to remove all whitespace like `\n` `\t` and so on. $row['message'] = &...

general-dev Solved
CR
asked 1 month ago by creativz
0 votes
1 ans
3 views
What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

I'm currently working on a website, which triggers a ```net::ERR_HTTP2_PROTOCOL_ERROR 200``` error on Google Chrome. I'm not sure exactly what can provo...

general-dev Solved
TR
asked 1 month ago by Tristan G
0 votes
1 ans
3 views
413 Request Entity Too Large - File Upload Issue

I am trying to upload 30MB file on my server and its not working. 1. When I upload 30MB file, the page loads "**Page Not Found**" 2. When I uplo...

general-dev Solved
RA
asked 1 month ago by Raju Vishwas
0 votes
1 ans
3 views
How to get current route in Symfony 2?

How do I get the current route in [Symfony][1] 2? For example, `routing.yml`: somePage: pattern: /page/ defaults: { _controller: &quot...

general-dev Solved
IL
asked 1 month ago by IlyaDoroshin
0 votes
1 ans
3 views
How to prevent form resubmission when page is refreshed (F5 / CTRL+R)

I have a simple form that submits text to my SQL table. The problem is that after the user submits the text, they can refresh the page and the data gets submitt...

general-dev Solved
US
asked 1 month ago by user701510
0 votes
1 ans
3 views
Compare given date with today

I have following $var = "2010-01-21 00:00:00.0" I'd like to compare this date against today's date (i.e. I'd like to know if thi...

general-dev Solved
AL
asked 1 month ago by alexus