passenger rails apps as subdirectory of non-rails main page

I have a non-rails main page running on Apache in CentOS that I want to deploy a couple rails apps from using the same domain with subdirectories. I’ve found all kinds of tutorials on how to deploy multiple Phusion Passenger rails apps but they all show the first app as the main domain. Something like this which is an example straight from phusion passenger’s documentation library

<VirtualHost *:80> ServerName DocumentRoot /websites/phusion/public <Directory /websites/phusion>     Allow from all     Options -MultiViews     # Uncomment this if you're on Apache >= 2.4:     #Require all granted </Directory>  # These have been added: Alias /subapp /websites/secondapp/public <Location /subapp>     PassengerBaseURI /subapp     PassengerAppRoot /websites/secondapp  </Location> <Directory /websites/secondapp/public>     Allow from all     Options -MultiViews     # Uncomment this if you're on Apache >= 2.4:     #Require all granted </Directory> 

  1. Can I just use multiple alias location and directory sections, one for each app?
  2. Would mixing non-rails sites with rails apps on same vhost be detrimental to server performance?
  3. If I can’t use the same vhost for my rails apps and my main site how would I go about setting up so that I can just use when the main page isn’t a rails app?

Can’t access main camera (stuck in wide angle)

My Zenfone 4 Max camera app is stuck on the wide angle camera. The icon on the picture below says it’s the main camera, but it’s possible to see by the curve on my wall that it’s indeed in wide angle. When I click on the wide angle icon, system says it’s now on wide angle, but the image doesn’t change.

I have tried restarting in safe mode, clearing app’s cache, restarting normally and tried using 3rd party camera apps. No success so far.

Any way to fix this without having to take it to Asus tech support (they take forever to answer) and/or restoring factory settings?

enter image description here

gthumb stutter when showing video on main window, but does not stutter when fullscreen

Gthumb stutter when showing the video on its main window with the widgets, but does not stutter when fullscreen. All other video programs I tested (Totem, VLC) work fine. It seams that hardware acceleration is not taking place when videos are shown on the main window. Any clue what is going on?

Gthumb 3.6.1

GNOME Shell 3.28.3 (ubuntu mode) GTK+ 3.22.30

Ubuntu 18.04.2 LTS (Bionic Beaver; fully up to date as of 2019-05-18).

Is it possible to extract data from api response from main domain?

I found an XSS on, is it possible to use that xss to extract the response of an api request from the main domain

The xss is on and I’d like to extract the whole response of Is it possible to do it via XSS?

If possible, which javascript code could I use?

Como resolver o erro de Exception in thread “main” java.lang.NullPointerException no meu programa?

public class ClassMain {

public static void main(String[] args) {     CPessoa[] Pessoas = new CPessoa[10];      int cont=0, j=0;     for(int i=0; i<10; i++){         Pessoas[i] = new CPessoa(Pessoas[j].nome, cont);     }     cont++;      for(int i=0; i<10; i++) {         Pessoas[i] = new CPessoa(Pessoas[j].nome, cont);     }  } 


import java.util.Random;

public class CPessoa {

String nome; String[] amigos = new String[10]; int contamigo = 0;  public CPessoa(String nomeamigo, int cont) {     if(cont==0) {     GeraNome();     }else     if(cont!=0) {     AddAmigo(nomeamigo);     MostrarAmigos();     } }  public void AddAmigo(String nomeamigo) {     amigos[contamigo] = nomeamigo;     contamigo++; }  public void MostrarAmigos(){     System.out.printf("Amigos de %s:\n", nome);     for(int i=0; i<10; i++) {         System.out.printf("%s\n", amigos[i]);     }     }   public void GeraNome(){     String[] consoante = new String[] {"b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"};     String[] vogal = new String[] {"a","e","i","o","u"};     String[] consoanteM = new String[] {"B","C","D","F","G","H","J","K","L","M","N","P","Q","R","S","T","V","W","X","Y","Z"};      for(int i=0; i<6; i++) {         int gerarcns = new Random().nextInt(21);         int gerarvg = new Random().nextInt(5);          if(i==0) {             this.nome+=consoanteM[gerarcns];         }else {             if(i%2==1) {                 this.nome+=vogal[gerarvg];             }else {                 this.nome+=consoante[gerarcns];             }                    }         gerarcns=0;         gerarvg=0;     } } 


What color to choose as “danger” if the main color of my app is red

I’m having this question wrapped around my head for quite some time. The thing is that my main application has a red color theme. And for just cancel buttons I used to use just gray colors but now that I need a “danger” color… What should I use? Purple? Orange? Using the red again is awkward, maybe a darker red?

PD: I cannot use blue because it’s our competitors color.

enter image description here