- ✅ Reduction in speed
- ✅ Greatest alertness
- ✅ Readiness to brake
- ✅ Distraction
- ✅ Inattention
- ✅ Tiredness
Drivers often leave the road due to inattention or lack of concentration. Distractions, such as using a mobile phone, can also lead to such driving errors. A third reason for leaving the road is fatigue combined with microsleep.
- ✅ Frequent yawning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sampleCallBack = (callback) => { | |
setTimeout(() => { | |
callback('This is an error', undefined) | |
}, 2000) | |
} | |
sampleCallBack((error, result) => { | |
if (error) { | |
return console.log(error) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### java -jar | |
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=y -jar target/cxf-boot-simple-0.0.1-SNAPSHOT.jar | |
### Maven | |
Debug Spring Boot app with Maven: | |
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 - Go to /utils/uninstall/uninstall | |
2 - Run uninstall.sh ou uninstall.exe | |
3 - Select the resources to be removed | |
4 - Finish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.naves.configuration.db; | |
import org.hsqldb.util.DatabaseManagerSwing; | |
import org.springframework.context.annotation.Profile; | |
import org.springframework.jmx.export.annotation.ManagedOperation; | |
import org.springframework.jmx.export.annotation.ManagedResource; | |
import org.springframework.stereotype.Component; | |
@Component | |
@ManagedResource(objectName="br.com.naves.configuration.db:name=DevelopmentDatabaseManager", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package banco; | |
import java.io.File; | |
public class Deadlock { | |
public static File arquivo1 = new File("arquivo1.txt"); | |
public static File arquivo2 = new File("arquivo2.txt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import org.powermock.api.mockito.PowerMockito; | |
import org.powermock.reflect.Whitebox; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.sql.Connection; | |
import java.sql.SQLException; | |
import javax.naming.Context; | |
import javax.naming.InitialContext; | |
import javax.naming.NamingException; | |
import javax.sql.DataSource; | |
public class DSConn { | |
public static Connection getConnection() throws SQLException, ClassNotFoundException, NamingException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 1) Add "Resource" entry in conf/context.xml --> | |
<Resource auth="Container" | |
driverClassName="oracle.jdbc.driver.OracleDriver" | |
maxActive="100" maxIdle="30" maxWait="-1" | |
name="jdbc/OracleDS" type="javax.sql.DataSource" | |
url="jdbc:oracle:thin:@host:1521:SIDNAME" | |
username="user" password="123" /> | |
<!-- 2) Add "resource-ref" entry in conf/web.xml --> | |
<resource-ref> |
NewerOlder