Random snippets of all sorts of code, mixed with a selection of help and advice.
iOS App Store build Failed due to react-native-fbsdk-next pacakge
24 January 2026 @ 8:49 am
I am facing the issue in EAS build for iOS App Store build (Production), this is created due to Pacakge "react-native-fbsdk-next": "^13.4.1". My Environment is "expo": "^54.0.12", "react": "19.1.0", "react-native": "0.81.4",How to convert the "\t" string to '\t' character in c
24 January 2026 @ 8:42 am
I want to convert the string "\t" to the real value of character '\t' in c.
Here is the test program:
int main()
{
char *read_tab_from_file="\\t";
printf("read_tab_from_file: [%s]\n", read_tab_from_file);
char *real_tab = "\t";
printf("real_tab: [%s]\n", real_tab);
int x = strcmp(read_tab_from_file, real_tab);
printf("x: %d\n", x);
char *converted = "<how to convert the 'read_tab_from_file' to the 'real_tab' here>";
int y = strcmp(converted, real_tab);
printf("y: %d\n", y);
return 0;
}
Here is the output:
read_tab_from_file: [\t]
real_tab: [ ]
x: 83
y: 51
Here is the code for converting the string "\t" to the real value of character '\t':
char *converted = "<how to convert the 'read_tab_from_file'
How To Avoid Circular Dependency Without Container Query?
24 January 2026 @ 8:41 am
I'm trying to make a responsive layout that maximizes the size of "top panel" while satisfying the following criteria.
Card's height is equal to that of the viewport
Card's width is equal to that of the top panel
Top panel always has an aspect ratio of 3 / 2
Bottom panel's height is at least 40% of the card's height
This is proving surprisingly difficult and I'm not entirely satisfied with the solution I found.
It involves the use of a container query on an element devised for solely this purpose, which seems unnecessary.
<style>
:root {
--desired-aspect-ratio: 3 / 2;
--bottom-panel-min-height: 40%;
}
body {
margin: 0;
width: 100vw;
height: 100vh;
}
#sizer {
aspect-ratio: var(--desired-aspect-ratio);
max-height: calc(100% - var(--bottom-panel-min-height));
container-type: inline-size;
}
#
Date subtraction error in Apache IoTDB when dates cross year boundary
24 January 2026 @ 8:37 am
I am using the Table Model in Apache IoTDB 2.0.5 and need to calculate the number of days between two dates. My approach is to first convert the DATE type to an int64 format (like 20251226), then perform a simple subtraction.
I found that when the two dates are within the same calendar year, the query result is perfectly correct. However, when the dates cross a year boundary, the calculation produces a very large and incorrect value, which does not match the expected result.
Here are my table and query statements:
Calculation within the same year (Correct Result):
select CAST(CAST('2025-12-26' as DATE) AS int64) as endDate,CAST(CAST('2025-12-25' as DATE) AS int64) as startDate,CAST(CAST('2025-12-26' as DATE) AS int64)-CAST(CAST('2025-12-25' as DATE) AS int64) from ht_boar
Returned Result (Correct):
+-----------+-------------+--------+
| endDate| startDate| _col2|
+------
Cannot open jqt in Mac
24 January 2026 @ 8:37 am
I installed J according to MacOS instructions in this page: https://code.jsoftware.com/wiki/System/Installation/J9.6/Zips
I moved the j9.7 folder to Applications and I was able to open jconsole in bin.
jqt is in the j9.7 folder but clicking on it does open the IDE. I see the J icon on the Dock but nothing opens.
I have two questions. How can I open jqt and if it is possible to install J on a M1 MacBook Pro?
This is the machine I tried to install it:
Macbook Air (Intel) running Sequoia 15.7.3
"preferred_username" and Email are present in token, but show null in claims .NET 4.8
24 January 2026 @ 8:34 am
I am using a .NET 4.8 application with Angular v22. When I try to login via a controller method, it always throws an exception that the email claim is missing. But it is present in the JWT token.
Here is my code:
Tokenvalidation
var identity = (ClaimsIdentity)User.Identity;
foreach (var claim in identity.Claims)
{
Console.WriteLine($"{claim.Type} = {claim.Value}");
}
var email =
identity.FindFirst("preferred_username")?.Value ??
identity.FindFirst("upn")?.Value ??
identity.FindFirst(ClaimTypes.Email)?.Value ??
identity.FindFirst(ClaimTypes.Name)?.Value;
here email is always missing.
public void ConfigureAzureJwtBearer(IAppBuilder app)
{
var tenantId = ConfigurationManager.AppSettings["ida:TenantId"];
var audience = ConfigurationManager.AppSettings["ida:Audience"];
app.UseJwtBearerAuthentic
UTF-8 Unicode characters that contain high data
24 January 2026 @ 7:48 am
Is there a single character or set of characters that have the highest data per character for text using UTF-8 encoding. I've tried to look across forums such as reddit but find mixed, confusing, or contradicting answers.
Is instruction-level pattern compression with SIGILL-based runtime expansion viable on modern ELF systems? [closed]
24 January 2026 @ 7:48 am
When working with very small or size-constrained ELF binaries (static or mostly-static),
I am exploring whether it is technically viable to compress repeated instruction
sequences post-link, rather than compressing the binary as data.
The idea is roughly:
1. Perform static analysis on a fully linked ELF binary.
2. Detect frequently repeated instruction sequences (e.g. function prologues/epilogues,
common ADRP+LDR+ADD sequences on AArch64, error handling blocks, etc.).
3. Replace each occurrence of such a sequence with a single-byte illegal instruction
(chosen to reliably trigger SIGILL).
4. Embed a small dictionary mapping these opcodes to the original instruction sequences.
5. At runtime, install a SIGILL handler that:
identifies the opcode,
executes or emulates the original instruction sequence,
resumes execution after the replaced site.
This i
Update MS Access db with SQL that includes selects [closed]
24 January 2026 @ 7:27 am
I'm using NodeJS and node-adodb to try to run an update on a MS Access database that includes selects. I tried this:
UPDATE [Objects]
SELECT DISTINCT
1 AS [object],
(SELECT id FROM Oracle WHERE name = 'mycard') AS [cardid],
NULL AS [cardid2],
1034 AS [setid],
1 AS [langid],
'a' AS [version],
'mycard' AS [name]
FROM objects AS t
WHERE
id = 502561
But I get:
unexpected end of statement: required: SET
I'm not sure what it's looking for.
Most practical data structure for successive levels of filtering
24 January 2026 @ 7:25 am
I'm writing a program to find substitution ciphers of a test_phrase that themselves are valid English phrases.
Example: test_phrase = 'x marks the spot' → ['a whole sky ends', 'I stage our echo', ...]
My approach
I filter a wordlist to get candidates (correct structure) for each word in the phrase.
Example: candidates['x'] = {'a', 'i'}, candidates['marks'] = {'adopt', 'angle', 'begin', ...}
But the candidates for a word depend on which candidate we use for another word.
Example: For 'x marks the spot', if we sub 'x' with 'a', the remaining words can't have 'a' in them.
So I store rules for each word saying which position each of its letters must first appear in each other word.