Comment by Chris on Flutter read/write to external storage with Android SDK 30+
I ended up implementing MethodChannel calls in native Kotlin as I wasn't able to get it working in Dart
View ArticleComment by Chris on How to write large volumes of unique data to Postgres...
While this will reduce the memory consumption of each chunk, it still won't scale as eventually hashCodesOfSavedImages will consume more memory than allocated to the JVM
View ArticleComment by Chris on How to write large volumes of unique data to Postgres...
@jjanes read it again and check the try/catch block.
View ArticleComment by Chris on Trying to record computer audio (not Microphone)
I'd argue allowing access to the microphone would be a much larger risk than simply the audio stream being sent to the output... anyway; I've seen a bunch about being able to use the Mixer class and...
View ArticleComment by Chris on Unable to use Spring cloud to connect with AWS SES
A good thing you don't need the link to solve the problem.
View ArticleComment by Chris on Can't get sub directories of a ACTION_OPEN_DOCUMENT_TREE...
No, but new to android and kotlin so made a bunch of assumptions :D
View ArticleComment by Chris on Android snackbar looks to be attached to a nested scrollview
I tried that, but as per my question then the CollapsingToolbarLayout breaks and no longer collapse, as well as clips through the content.
View ArticleComment by Chris on Spring reactive OAuth2 resource-server: include both...
Yeah I'm aware of this 'feature' of Cognito, I guess my question is more focused on around how do I go about converting the JWT I get into a more feature rich user object, using the oauth2/userInfo...
View ArticleComment by Chris on Spring reactive OAuth2 resource-server: include both...
7/7 answer. Exactly what I was looking for.
View ArticleComment by Chris on Webflux with reactive redis cache
I've updated the question, if I understood you correctly. I'm just doing a standard @Cacheable on the service class
View ArticleComment by Chris on Firebase Authentication and Crashlytics Issues in Android...
Unfortunately it does not.
View ArticleAnswer by Chris for Jackson deserialise JSON with many dynamic nodes
Yeah was clearly overthinking it. As @chrylis suggested a Map was the right direction to go in.Simple as:final TypeReference<HashMap<String, Language>> typeRef = new TypeReference<>()...
View ArticleJackson deserialise JSON with many dynamic nodes
I'm trying to deserialize a JSON file with the format of{"English": {"hex": "FF0000" },"Spanish": {"hex": "0000FF" },"Japanese": {"hex": "FFFF00" }}But I don't want to create a class for each language...
View ArticleAnswer by Chris for AngularFire Missing or insufficient permissions on login,...
I was able to solve the error by replacing the standard subscription with a switchMapconstructor( private angularFireAuth: AngularFireAuth, private firestore: AngularFirestore,) {...
View ArticleAngularFire Missing or insufficient permissions on login, works after refresh
I have a very standard Angular 12 application where a user logs in with Firestore and can then perform CRUD operations over their own documents.As soon as you login to the application it...
View ArticleAnswer by Chris for Jackson YAML Serialization Object Arrays Format
In today's environment using at least version 2.12.x of jackson-dataformat-yaml thanks to the introduction of YAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATOR, you can simply just do:public...
View ArticleAnswer by Chris for Firestore listener subscription triggers random number of...
Well I've solved my actual problem by setting a timestamp on the object via another firestore listener, then comparing the current and previous to only trigger once.I'll post this code if anyone comes...
View ArticleFirestore listener subscription triggers random number of times
I have a Firestore listener that seems to trigger a random number of times. On the first page load, it might trigger 5 times, refreshing the page and it fires 13 times.@Injectable({ providedIn:...
View ArticleFirestore rule split a custom token and see if it matches
I have custom claims set on users, the claims look likeorganizations [ 933219123_Project-name, 311239123_Different-Project-name]The first part is the DocumentId in Firestore. is it possible to split or...
View ArticleAnswer by Chris for How to Delete all documents in collection in Firestore...
Really surprised nobody has recommended to batch these delete requests yet.A batch of writes completes atomically and can write to multiple documents. Batched Writes are completely atomic and unlike...
View ArticleAnswer by Chris for Flutter read/write to external storage with Android SDK 30+
This is going to be a long answer and a lot of the code is specific to my use case so if someone wants to reuse it, you might need to tweak things.Basically with the changes in Android 30+ I wasn't...
View ArticleAnswer by Chris for How do I get xjc?
If you're just looking to parse XML as a one off, and you don't want to deal with downloading random binaries, or messing about with your PATH, you can easily get access to xjc by installing any JDK...
View ArticleAmazon S3 java sdk - download progress
Trying to find how to output a clean count of 0 - 100% while downloading a file from amazon. There are plenty of examples of how to do this for uploading but they don't seem to directly translate to...
View ArticleAnswer by Chris for Spark Cannot detect ES version - AWS OpenSearch
You need to configure your OpenSearch to be running in compatibility mode. There is a flag during setup/creation which will enable this.This can also be done via an API call:PUT...
View ArticleAnswer by Chris for How to return validation error messages with Springboot...
I was able to solve this by deleting the ErrorController and going back to what I had previously tried which was writing a custom implementation of WebExceptionHandlerThe important thing to note here...
View ArticleHow to load ESB Volume by ID via .ebextensions
I'm trying to mount the same volume for a Beanstalk build but can't figure out how to make it work with the volume-id. I can attach a new volume, and I can attach one based on a snapshot ID but neither...
View ArticleAnswer by Chris for Firebase Authentication and Crashlytics Issues in Android...
The problem was with Proguard/R8 and how it handles minifying the Firebase SDK. This was resolved in an update a week or so ago (Issue had been open since 2020)Fixed an issue with Proguard rules when...
View ArticleColima, PyCharm, and AWS SAM - cannot find pydevd.py
Running a Mac M1 trying to start AWS SAM inside a Docker container through PyCharm fails withSTART RequestId: 35db17a5-d684-4ffa-b3ad-d50e253561b7 Version: $LATEST/var/lang/bin/python3.9: can't open...
View ArticleHow to return validation error messages with Springboot WebFlux
How do I return the custom validation errors for Springboot 3.0 with WebFlux?I have wired up the following controllerimport...
View ArticleDynamic tables via DMS -> Kinesis -> Iceberg (Transactional data lake)
Using a Glue Streaming job, receiving events from DMS via Kinesis how do I take those events and push them into a Iceberg table in S3?The problems I'm running into is when I get the event from the...
View ArticleSSLHandshakeException when connecting to OpenSearch (AWS) via Spark
I'm trying to write data into a OpenSearch managed service in AWS when running my code locally via IntelliJ. However everything I've tried and I can't seem to get past:24/05/08 15:38:00 ERROR...
View ArticleAWS CDK Setup cognito + lambda - Forbidden
I'm attempting to set a simple "Hello Word" example where a user can access a lambda endpoint only after authenticating with Cognito via social login.I have all the code which deploys succesfully and I...
View ArticleReactor core, take 30 then wait before taking another 30
Using reactor.core.publisher.Flux, how can I take n number of values from a Flux and then wait for a duration before taking the next batch?onboardService .loadRepositories(user) // Flux of values...
View Article