Random snippets of all sorts of code, mixed with a selection of help and advice.
React Native Maps crashes on render when using Marker – app closes without clear error
26 March 2026 @ 7:21 am
I’m working with react-native-maps in a React Native app, and my app crashes when rendering the map with markers. The app closes immediately without a clear error message.
Environment
React Native version: 0.84
react-native-maps version: 1.27.2
Platform: Android (also happens on iOS)
<View style={styles.container}>
<MapView
style={styles.map}
initialRegion={{
latitude: 21.1702,
longitude: 72.8311,
latitudeDelta: 0.05,
longitudeDelta: 0.05,
}}
>
<Marker
coordinate={{
latitude: 21.1702,
longitude: 72.8311,
}}
title="Marker"
description="Test Marker"
/>
</MapView>
</View>
Pykcs11 - how to create only RSA public key (NOT key pair) from modulus and exponent
26 March 2026 @ 7:18 am
I tried to ctreate a public key (RSA) using template from the sample - link below with additions (added modulus, as tuple, data len and exponent changed).
https://github.com/LudovicRousseau/PyKCS11/blob/master/samples/generate.py
key_id = (0x22,)
pubTemplate = [
(PyKCS11.CKA_CLASS, PyKCS11.CKO_PUBLIC_KEY),
(PyKCS11.CKA_TOKEN, PyKCS11.CK_TRUE),
(PyKCS11.CKA_PRIVATE, PyKCS11.CK_FALSE),
(PyKCS11.CKA_MODULUS_BITS, 0x0800),
(PyKCS11.CKA_MODULUS, modulus_tuple),
(PyKCS11.CKA_PUBLIC_EXPONENT, (0x03,)),
(PyKCS11.CKA_ENCRYPT, PyKCS11.CK_TRUE),
(PyKCS11.CKA_VERIFY, PyKCS11.CK_TRUE),
(PyKCS11.CKA_VERIFY_RECOVER, PyKCS11.CK_TRUE),
(PyKCS11.CKA_WRAP, PyKCS11.CK_TRUE),
(PyKCS11.CKA_LABEL, "My Public Key"),
(PyKCS11.CKA_ID, key_id),
]
session.createObject(pubTemplate) returns CKR_TEMPLATE
Is there any 3rd party connector in Azure Logic Apps to send email from an internal Microsoft address?
26 March 2026 @ 7:16 am
I have an automated workflow in Azure Logic Apps (Consumption) that sends an HTML email newsletter. I am facing issues with the email sender address and looking for alternatives.
What I have tried:
1. Azure Communication Services
Working but sends from [email protected]
Appears as [EXTERNAL] to recipients
Cannot use microsoft.com domain as DNS verification is not accessible to us
2. Office 365 Outlook V2 Connector
Configured Send As with [email protected]
Getting error: You are not authorized to send mail on behalf of the specified sending account
[email protected] is a Mail Enabled Security Group — Send As cannot be granted on it
C++ lower_bound
26 March 2026 @ 7:12 am
As far as I understand lower_bound is just a >= search operation. However, the following code snippet works:
vector<size_t> udata = {5, 4};
vector<size_t>::const_iterator it = lower_bound(udata.begin() + 1, udata.end(), 4);
assert(it != udata.end());
But the following fails the assertion:
udata.clear();
udata = {5, 4, 1, 2};
it = lower_bound(udata.begin() + 1, udata.end(), 4);
assert(it != udata.end());
Why? What do I miss?
Torch c++ binding cordump with torch c++ extension binding
26 March 2026 @ 7:12 am
I found torch-text is archived, and I still want to use it ,because there is a course that uses it. but Since it was archived, I always meet signture missing problem, so I want to fork and fix it for my learning.
Now I am meeting serious cordump problems in https://github.com/Decodetalkers/text/blob/mime/torchtext/csrc/register_torchbindings.cpp#L14-L74.
The class there seems normal, but it always coredumps when inilizating the third class. The library can never be loaded. At first I thought maybe there is some problem with the third structure, but I was wrong, as if I switch the second structure and third structure, it still cordumped at the third structure.
coredump slack like this:
#1 0x00007f4b09a42d4f in tcmalloc::CentralFreeList::ReleaseListToSpans(void*) ()
from /usr/lib/libtcmalloc_minimal.so.4
#2 0
ML modeling and the steps for that
26 March 2026 @ 7:04 am
✅ Step-by-step workflow
Load & understand data
Handle missing values
Encode categorical features
Feature engineering (simple but smart)
Train multiple models quickly
Pick best model
Predict test data
you must use the above steps to get the things work better
com.google.cloud:google-cloud-speech:4.56.0 conflicts with com.unity3d.ads:unity-ads:4.16.5
26 March 2026 @ 7:03 am
background:
1. Integrating `com.google.cloud:google-cloud-speech:4.56.0` and `com.unity3d.ads:unity-ads:4.16.5` into the project results in a successful build, but the application fails to run.
Analysis Process:
1. According to the official Unity website, the following statement is provided: Since the Unity Ads SDK depends on `protobuf-kotlin-lite` or `protobuf-java-lite`, it has a known dependency conflict with the full versions of Protobuf (`protobuf-kotlin` or `protobuf-java`) and is incompatible with these full versions.
Error Log:
Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-java-3.25.5.jar -> jetified-protobuf-java-3.25.5 (com.google.protobuf:protobuf-java:3.25.5) and protobuf-javalite-3.25.6.jar -> jetified-protobuf-javalite-3.25.6 (com.google.protobuf:protobuf-javalite:3.25.6)
Why Java uses PrintStream and InputStream by default for System class?
26 March 2026 @ 6:53 am
import java.lang.System;
import java.util.Scanner;
; we always take user input through this class. but i have a question, why java uses PrintStream and `InputStream` for inputs through the console and not any other alternatives. can you please clarify me about when to use which input output classes whether they are character stream classes or the byte stream classes.
Merging of events not working in SystemVerilog
26 March 2026 @ 6:33 am
I am trying to merging events. Here I should get the output both Thread 1 display and Thread 2 display. But i am only getting thread 1 output.
I tried to do reverse by event_a = event_b also, in that case i am getting thread 2 display.
I also tried to check the tool compatibility using Aldec and VCS but still getting the same result.
module tb;
//event variables
event event_a, event_b;
initial begin
fork
begin
wait(event_a.triggered);
$display ("[%0t] Thread1: Wait for event_a is over", $time);
end
begin
wait(event_b.triggered);
$display ("[%0t] Thread2: Wait for event_b is over", $time);
end
#20 ->event_a;
#20 ->event_b;
begin
#10 event_b = event_a;
end
join
end
endmodule
Here is the result :
# KERNEL: [20] Thread1: Wait for event_a is over
# KERNEL: Simulation has finished. There are
jQuery .addClass not adding the class
26 March 2026 @ 6:28 am
In a WordPress page editor HTML block I have:
<script>
jQuery(document).ready(function() {
jQuery('.wp-block-button__link').addClass('sg-popup-id-2331');
});
</script>
However, on the front end the sq-popup-id-2331 class is not being added to the .wp-block-button__link (red) button:
It doesn't work when wrapping in a setTimeout either:
jQuery(document).ready(function() {
setTimeout(function(){
jQuery('.wp-block-button__link').addClass('sg-popup-id-2331');
}, 200);
});
Help appreciated.
It doesn't work when wrapping in a setTimeout either:
jQuery(document).ready(function() {
setTimeout(function(){
jQuery('.wp-block-button__link').addClass('sg-popup-id-2331');
}, 200);
});
Help appreciated.