Skip to content

Instantly share code, notes, and snippets.

View kojofosu's full-sized avatar
💭
!taking a </br>

Kojo Fosu Bempa Edue kojofosu

💭
!taking a </br>
View GitHub Profile

In the Hover 2.0.0-alpha10 version, we have all our app's name registered as "App Name" in the accessinility settings and my guess is it's because it's hardcoded in the values.xml file of the hover sdk.

file path \res\values\values.xml Screenshot 2023-02-03 003247

SCREENSHOT

demo

@kojofosu
kojofosu / hover.md
Last active January 18, 2023 16:56
Hover java.io.FileNotFoundException: hover.db
E/AndroidRuntime: FATAL EXCEPTION: arch_disk_io_2
    Process: com.opareta.opareta.beta, PID: 17740
    java.lang.RuntimeException: Exception while computing database live data.
        at androidx.room.RoomTrackingLiveData$1.run(RoomTrackingLiveData.java:92)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.lang.RuntimeException: Unable to copy database file.
        at androidx.room.SQLiteCopyOpenHelper.verifyDatabaseFile(SQLiteCopyOpenHelper.java:144)
@kojofosu
kojofosu / SentryIssue.md
Last active June 7, 2022 10:15
Sentry In Hover SDK v2.0.0-alpha08 maniftest file

Sentry In Hover SDK v2.0.0-alpha08 maniftest file

Screenshot (131)

@kojofosu
kojofosu / exportenvvars.sh
Created December 13, 2021 08:30
Export env variables
export $(cat .env | xargs)
@kojofosu
kojofosu / run_app_cmd.txt
Last active December 12, 2021 14:19
command to run maven spring boot app with cmd
### Template
java -Dlogging.config=path/to/log/properties/file -Dserver.port=<port> -jar /path/tp/jar/file --spring.config.location=path/to/application/properties/file
### AUTOCOMPLETE SERVER
java -Dlogging.config=config/log4j2.properties -jar ServerAutocomplete-1.0-SNAPSHOT.jar --spring.config.location=config/serverautocomplete.properties&
### LOOKUP SERVER
java -Dlogging.config=config/log4j2.properties -jar ServerLookup-1.0-SNAPSHOT.jar --spring.config.location=config/serverlookup.properties&
@kojofosu
kojofosu / copy_files_to_host_ssh
Created November 29, 2021 16:22
copy files to remote host with ssh
scp <path/to/source/file> username@host:<path/to/host/destionation>
ssh username@host
@kojofosu
kojofosu / query_by_field_value.json
Last active November 29, 2021 16:14
Elastic search: Filter search by the value of a field. [JSON]
{
"query": {
"term": {
"<field_name>": {
"value": "<your_value>"
}
}
}
}
@kojofosu
kojofosu / pom.xml
Created January 18, 2021 10:31
[ERROR] Failed to introspect Class [springfox.documentation.swagger.readers.operation.SwaggerResponseMessageReader] from ClassLoader
<!--
java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerMapping means that you are missing a dependency in your pom.xml, to be precise you are missing spring-webmvc dependency.
As you are using Spring Boot, just add this dependency to your pom: -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>