How to install NodeJS and NPM on a different route in ubuntu 18.08

I install NodeJS in a different ubuntu location, as if I had another location / home / jay / dev /

It is usually installed in the default location, which always creates the permissions problem.

It is better to install this in a separate location, how can we do this?

angularjs – bower ENOGIT git is not installed or not on the ROUTE, how to solve it?

I am developing my first application in which I intend to use the AngularJS framework. To download the front-end dependencies that I am using Bower, however, when I write the command in CMD to install:

bower install angularjs --save

This message is returning:

bower ENOGIT git is not installed or not in the PATH

Could someone explain to me why this is? Remembering that I installed GIT on my machine, do you need to do some kind of configuration? I will thank you if you can help me!

php – How to access the POST oauth / token route with Laravel Passport?

I am developing an API, and I am using the Laravel Passport package, right now I am following this tutorial to be able to include the auth through social media APIs. Passport in my project is already working correctly, the problem is that I want to try to access the path that default passport, which is / oauth / token and throws me a 404 in Postman.

enter image description here

Image of how you test the EndPoint in the tutorial

enter image description here

Trying to test the endpoint

enter image description here

My Routes

How do I try to test this endpoint? Thank you in advance and I hope I have been clear in the question. Greetings.

java – Flight route execution failed

I am creating a java-web application.
I use Spring Boot together with some dependencies to create the database.
Create the base, but by placing the problem columns in the flight path

Here is my application.properties:

spring.jpa.database=MYSQL
spring.datasource.url=jdbc:mysql://localhost/comercial?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=

My V01_nova -table-oportunity.sql:

create table oportunidade (
    id bigint auto_increment not null,
    nome_prospecto varchar(80) not null,
    descricao varchar(200) not null,
    valor decimal(10,2),

    primary key (id)
);

And the record I am receiving:

  .   ____          _            __ _ _
 /\ / ___'_ __ _ _(_)_ __  __ _    
( ( )___ | '_ | '_| | '_ / _` |    
 \/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |___, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.4.RELEASE)

2020-01-24 13:39:45.505  INFO 9716 --- (  restartedMain) c.a.comercial.ComercialApiApplication    : Starting ComercialApiApplication on Johnliveira with PID 9716 (C:sk-javaWORKSPACE-SPRINGcomercial-apitargetclasses started by jonhj in C:sk-javaWORKSPACE-SPRINGcomercial-api)
2020-01-24 13:39:45.507  INFO 9716 --- (  restartedMain) c.a.comercial.ComercialApiApplication    : No active profile set, falling back to default profiles: default
2020-01-24 13:39:45.544  INFO 9716 --- (  restartedMain) o.s.b.devtools.restart.ChangeableUrls    : The Class-Path manifest attribute in C:Usersjonhj.m2repositoryorgglassfishjaxbjaxb-runtime2.3.2jaxb-runtime-2.3.2.jar referenced one or more files that do not exist: file:/C:/Users/jonhj/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jakarta.xml.bind-api-2.3.2.jar,file:/C:/Users/jonhj/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/txw2-2.3.2.jar,file:/C:/Users/jonhj/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/istack-commons-runtime-3.0.8.jar,file:/C:/Users/jonhj/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/stax-ex-1.8.1.jar,file:/C:/Users/jonhj/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/FastInfoset-1.2.16.jar,file:/C:/Users/jonhj/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jakarta.activation-api-1.2.1.jar
2020-01-24 13:39:45.544  INFO 9716 --- (  restartedMain) .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2020-01-24 13:39:45.544  INFO 9716 --- (  restartedMain) .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2020-01-24 13:39:46.043  INFO 9716 --- (  restartedMain) .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-01-24 13:39:46.064  INFO 9716 --- (  restartedMain) .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 13ms. Found 0 JPA repository interfaces.
2020-01-24 13:39:46.282  INFO 9716 --- (  restartedMain) trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type (org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration) is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-01-24 13:39:46.513  INFO 9716 --- (  restartedMain) o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2020-01-24 13:39:46.520  INFO 9716 --- (  restartedMain) o.apache.catalina.core.StandardService   : Starting service (Tomcat)
2020-01-24 13:39:46.520  INFO 9716 --- (  restartedMain) org.apache.catalina.core.StandardEngine  : Starting Servlet engine: (Apache Tomcat/9.0.30)
2020-01-24 13:39:46.583  INFO 9716 --- (  restartedMain) o.a.c.c.C.(Tomcat).(localhost).(/)       : Initializing Spring embedded WebApplicationContext
2020-01-24 13:39:46.583  INFO 9716 --- (  restartedMain) o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1039 ms
2020-01-24 13:39:46.669  INFO 9716 --- (  restartedMain) o.f.c.internal.license.VersionPrinter    : Flyway Community Edition 6.0.8 by Redgate
2020-01-24 13:39:46.674  INFO 9716 --- (  restartedMain) com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2020-01-24 13:39:46.768  INFO 9716 --- (  restartedMain) com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2020-01-24 13:39:46.775  INFO 9716 --- (  restartedMain) o.f.c.internal.database.DatabaseFactory  : Database: jdbc:mysql://localhost/comercial (MySQL 5.5)
2020-01-24 13:39:46.818  WARN 9716 --- (  restartedMain) ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource (org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class): Invocation of init method failed; nested exception is org.flywaydb.core.internal.license.FlywayEditionUpgradeRequiredException: Flyway Pro Edition or MariaDB upgrade required: MariaDB 10.1 is no longer supported by Flyway Community Edition, but still supported by Flyway Pro Edition.
2020-01-24 13:39:46.819  INFO 9716 --- (  restartedMain) com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2020-01-24 13:39:46.823  INFO 9716 --- (  restartedMain) com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
2020-01-24 13:39:46.825  INFO 9716 --- (  restartedMain) o.apache.catalina.core.StandardService   : Stopping service (Tomcat)
2020-01-24 13:39:46.833  INFO 9716 --- (  restartedMain) ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-01-24 13:39:46.842 ERROR 9716 --- (  restartedMain) o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource (org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class): Invocation of init method failed; nested exception is org.flywaydb.core.internal.license.FlywayEditionUpgradeRequiredException: Flyway Pro Edition or MariaDB upgrade required: MariaDB 10.1 is no longer supported by Flyway Community Edition, but still supported by Flyway Pro Edition.
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1108) ~(spring-context-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868) ~(spring-context-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~(spring-context-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~(spring-boot-2.2.4.RELEASE.jar:2.2.4.RELEASE)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) (spring-boot-2.2.4.RELEASE.jar:2.2.4.RELEASE)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) (spring-boot-2.2.4.RELEASE.jar:2.2.4.RELEASE)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) (spring-boot-2.2.4.RELEASE.jar:2.2.4.RELEASE)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) (spring-boot-2.2.4.RELEASE.jar:2.2.4.RELEASE)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) (spring-boot-2.2.4.RELEASE.jar:2.2.4.RELEASE)
    at com.algaworks.comercial.ComercialApiApplication.main(ComercialApiApplication.java:10) (classes/:na)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~(na:1.8.0_211)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~(na:1.8.0_211)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~(na:1.8.0_211)
    at java.lang.reflect.Method.invoke(Unknown Source) ~(na:1.8.0_211)
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) (spring-boot-devtools-2.2.4.RELEASE.jar:2.2.4.RELEASE)
Caused by: org.flywaydb.core.internal.license.FlywayEditionUpgradeRequiredException: Flyway Pro Edition or MariaDB upgrade required: MariaDB 10.1 is no longer supported by Flyway Community Edition, but still supported by Flyway Pro Edition.
    at org.flywaydb.core.internal.database.base.Database.ensureDatabaseNotOlderThanOtherwiseRecommendUpgradeToFlywayEdition(Database.java:169) ~(flyway-core-6.0.8.jar:na)
    at org.flywaydb.core.internal.database.mysql.MySQLDatabase.ensureSupported(MySQLDatabase.java:248) ~(flyway-core-6.0.8.jar:na)
    at org.flywaydb.core.Flyway.execute(Flyway.java:495) ~(flyway-core-6.0.8.jar:na)
    at org.flywaydb.core.Flyway.migrate(Flyway.java:149) ~(flyway-core-6.0.8.jar:na)
    at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:65) ~(spring-boot-autoconfigure-2.2.4.RELEASE.jar:2.2.4.RELEASE)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792) ~(spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE)
    ... 23 common frames omitted

If anyone knows how to solve this, help me quickly, the course I will take ends Sunday

How are the Length and Pointer fields filled in the Record route option?

I have trouble understanding two things about RFC791:

  • First, could the base value 10 of the length be greater than 40? (the header without options is 20 bytes and HLEN is 15 maximum)? What does "length-3" mean in the following sentence?

The second octet is the length of the option that includes the option type code and the length octet, the pointer octet and length-3 octets of route data.

  • Second, is the data space allocated to this option from the datagram payload or from the header? If it's from the header, does that mean the Record route option could record a maximum of 9 addresses (36 bytes + 4 bytes, the option itself)? I've also seen some sources that say the length is 8 bits, which means a maximum length of 256 bytes, isn't it too much? Of course, it is not mentioned in the RFC.

Apache: allows connections from unknown IPs only on a specific route

Using Apache2.4, I want some route to be available for all IPs, and that all others are available only for allowed IPs, using a proxy pass:


    ProxyPass http://127.0.0.1:8080/path/
    ProxyPassReverse http://127.0.0.1:8080/path/
    Order allow,deny
    Satisfy any



    Order deny,allow
    deny from all
    Allow from XX.XX.XX.XX/24
    Allow from YY.YY.YY.YY/24
    Allow from WW.WW.WW.WW/24

    ProxyPreserveHost On
    ProxyPass http://127.0.0.1:8080/#/
    ProxyPassReverse http://127.0.0.1:8080/#/


This configuration does not work, since everyone gets a 403. How should I configure this Vhost?

network: cannot route specific site traffic to connect WiFi directly, to avoid VPN

Mac OS Catalina 10.15.2
WiFi in en0 (MAC xx: xx: xx: xx: 85: 80)

VPN – Wireguard CLI (utun2)

I have a permanent VPN connection and all traffic goes through it. But I need to route the traffic of music.yandex.ru (213.180.204.186) through a direct WiFi connection.

I used the command route add -host music.yandex.ru -interface en0 to do it. The routing table of results (netstat -nr) Is under

Destination        Gateway            Flags        Netif Expire
0/1                utun2              USc          utun2
default            192.168.43.63      UGSc           en0
10.217.47.164      10.217.47.164      UH           utun2
127                127.0.0.1          UCS            lo0
127.0.0.1          127.0.0.1          UH             lo0
128.0/1            utun2              USc          utun2
169.254            link#5             UCS            en0      !
190.2.141.162      192.168.43.63      UGHS           en0
192.168.43         link#5             UCS            en0      !
192.168.43.42/32   link#5             UCS            en0      !
192.168.43.63/32   link#5             UCS            en0      !
192.168.43.63      0:a:f5:12:f9:98    UHLWIir        en0   1197
213.180.204.186    xx:xx:xx:xx:85:80  UHLS           en0
224.0.0/4          link#5             UmCS           en0      !
224.0.0.251        1:0:5e:0:0:fb      UHmLWI         en0
255.255.255.255/32 link#5             UCS            en0      !

But after music.yandex.ru becomes unreachable, there is no ping response.

Then, I used direct forwarding to my IP gateway route add -host music.yandex.ru 192.168.43.63

Internet:
Destination        Gateway            Flags        Netif Expire
0/1                utun2              USc          utun2
default            192.168.43.63      UGSc           en0
10.217.47.164      10.217.47.164      UH           utun2
127                127.0.0.1          UCS            lo0
127.0.0.1          127.0.0.1          UH             lo0
128.0/1            utun2              USc          utun2
169.254            link#5             UCS            en0      !
190.2.141.162      192.168.43.63      UGHS           en0
192.168.43         link#5             UCS            en0      !
192.168.43.42/32   link#5             UCS            en0      !
192.168.43.63/32   link#5             UCS            en0      !
192.168.43.63      0:a:f5:12:f9:98    UHLWIir        en0   1200
213.180.204.186    192.168.43.63      UGHS           en0
224.0.0/4          link#5             UmCS           en0      !
224.0.0.251        1:0:5e:0:0:fb      UHmLWI         en0
255.255.255.255/32 link#5             UCS            en0      !

And everything works as I want. But I need to use the network interface instead of the IP gateway, because it usually changes from time to time.

How can I configure the appropriate redirection?
Thanks in advance.

linux: unable to connect to the server through SSH: ssh: connect to host 193. **. *** 118 port 22: there is no route to the host

I keep getting the following error:

ssh: connect to host 193.**.***.118 port 22: No route to host

Ping output:

PING 193.**.***.118 (193.**.***.118) 56(84) bytes of data.
From 193.**.***.65 icmp_seq=1 Destination Host Unreachable
From 193.**.***.65 icmp_seq=2 Destination Host Unreachable
From 193.**.***.65 icmp_seq=3 Destination Host Unreachable
From 193.**.***.65 icmp_seq=4 Destination Host Unreachable

graphics: find the minimum route from S to T that visits all vertices

So I have a complete and directed chart with weights.
I want to find the shortest path from S to T that visits all the other vertices in the graph at least once.
Other important information that could have negative weights but I don't have negative cycles.

I found this problem very close to the seller's problem, but I soon discovered that it would be of no help. This is because the seller's problem does not define the target vertex.

Any ideas will be greatly appreciated.

How can I generate a system that guides a character to the best route through obstacles in python?

I am using pygame for a map with obstacles where I can rotate my character to any degree I like, I want to automate it to reach a goal that is in the best possible route.