I have a single consumer group
All consumers are already subscribed
I call
consumer.subscribe()again on each consumer with the same list of topics
Why?
Why would one do this?
What you're trying to achieve?
what is the reason that it's causing this rebalance
The reason is simple: topic's partition can be consumed by only one consumer from a given consumer group at any time.
Again: topic-partition-consumer group relation to consumer is 1:1
All that also make your move not making any sense.
using the pandas:
json = {
"India":"IN",
"Sri Lanka":"SL"
}
then convert it to JSon array like:
result = [{"name": k, "code": v} for k, v in json.items()]
good luck
Hi there finally I have it working, first of all there were several errors in my code the event objects were using the same name (In my working code example only one event object was necessary). also I had to make several other changes as well.
#include <Windows.h>
#include <stdio.h>
#include <stdlib.h> // For malloc, realloc, free
#include <string.h>
#include <wchar.h> // For wcslen and wcscpy
HANDLE g_NewFileItemEvent;
HANDLE g_NoMoreWorkEvent;
WCHAR* filePath;
WIN32_FIND_DATAW fd;
WCHAR subPath[MAX_PATH];
const WCHAR* rootPath = L"D:\\search";
CRITICAL_SECTION g_queueCS;
typedef struct {
WCHAR** data; // Pointer to an array of string pointers
int size; // Current number of strings in the array
int capacity; // Allocated capacity of the array
} StringDynamicArray;
StringDynamicArray myFolders;
StringDynamicArray myFiles;
void initStringDynamicArray(StringDynamicArray* arr, int initialCapacity) {
arr->data = (WCHAR**)malloc(sizeof(WCHAR*) * initialCapacity);
if (arr->data == NULL) {
perror("Failed to allocate initial memory for string array");
exit(EXIT_FAILURE);
}
arr->size = 0;
arr->capacity = initialCapacity;
}
void pushString(StringDynamicArray* arr, const WCHAR* str) {
if (arr->size == arr->capacity) {
arr->capacity *= 2;
arr->data = (WCHAR**)realloc(arr->data, sizeof(WCHAR*) * arr->capacity);
if (arr->data == NULL) {
perror("Failed to reallocate memory for string array");
exit(EXIT_FAILURE);
}
}
size_t strLen = wcslen(str);
arr->data[arr->size] = (WCHAR*)malloc((strLen + 1) * sizeof(wchar_t)); // +1 for null terminator
if (arr->data[arr->size] == NULL) {
perror("Failed to allocate memory for string");
exit(EXIT_FAILURE);
}
// Use wcscpy_s with the correct buffer size (strLen + 1)
errno_t err = wcscpy_s(arr->data[arr->size], strLen + 1, str);
if (err == 0) {
//wprintf(L"Successfully copied: %ls\n", arr->data[arr->size]);
arr->size++;
}
else {
wprintf(L"Error copying string. Error code: %d\n", err);
}
}
WCHAR* popString(StringDynamicArray* arr) {
if (arr->size == 0) {
fprintf(stderr, "Error: Cannot pop from an empty array.\n");
return NULL;
}
arr->size--;
WCHAR* poppedStr = arr->data[arr->size];
return poppedStr; // Caller is responsible for freeing this memory
}
void freeStringDynamicArray(StringDynamicArray* arr) {
for (int i = 0; i < arr->size; i++) {
free(arr->data[i]); // Free individual strings
}
free(arr->data); // Free the array of pointers
arr->data = NULL;
arr->size = 0;
arr->capacity = 0;
}
void searchDirectories(const WCHAR* path) {
WIN32_FIND_DATAW findData;
HANDLE hFind = INVALID_HANDLE_VALUE;
WCHAR searchPath[MAX_PATH];
WCHAR subPath[MAX_PATH];
//::EnterCriticalSection(&g_queueCS);
//pushString(&myFolders, (LPCWSTR)path);
// Construct the search pattern (e.g., "D:\\search\\*")
swprintf_s(searchPath, MAX_PATH, L"%s\\*", path);
// Start the search with FindFirstFileW
hFind = FindFirstFileW(searchPath, &findData);
if (hFind == INVALID_HANDLE_VALUE) {
wprintf(L"Error opening directory %s: %d\n", path, GetLastError());
return;
}
// Iterate through all files and directories
do {
// Skip the current (".") and parent ("..") directories
if (wcscmp(findData.cFileName, L".") == 0 || wcscmp(findData.cFileName, L"..") == 0) {
continue;
}
// Construct the full path of the current file or directory
swprintf_s(subPath, MAX_PATH, L"%s\\%s", path, findData.cFileName);
// Print the full path
//wprintf(L"%s\n", subPath);
// If it's a directory, recursively search it
if (findData.dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY) {
wprintf(L"[DIR]: %ws\n", subPath);
pushString(&myFolders, (LPCWSTR)subPath);
searchDirectories(subPath);
}
} while (FindNextFileW(hFind, &findData) != 0);
//::LeaveCriticalSection(&g_queueCS);
// Check if the loop ended due to an error
DWORD error = GetLastError();
if (error != ERROR_NO_MORE_FILES) {
wprintf(L"Error during directory search: %d\n", error);
}
// Close the search handle
FindClose(hFind);
}
//IN each directory provided as an argument search for all files in it
void searchFiles(const WCHAR* path) {
WIN32_FIND_DATAW findData;
HANDLE hFind = INVALID_HANDLE_VALUE;
WCHAR searchPath[MAX_PATH];
WCHAR subPath[MAX_PATH];
swprintf_s(searchPath, MAX_PATH, L"%s\\*", path);
// Start the search with FindFirstFileW
hFind = FindFirstFileW(searchPath, &findData);
if (hFind == INVALID_HANDLE_VALUE) {
wprintf(L"Error opening directory %s: %d\n", path, GetLastError());
return;
}
// Iterate through all files and directories
while (FindNextFileW(hFind, &findData) != 0) {
// Skip the current (".") and parent ("..") directories
if (wcscmp(findData.cFileName, L".") == 0 || wcscmp(findData.cFileName, L"..") == 0) {
continue;
}
// Construct the full path of the current file or directory
swprintf_s(subPath, MAX_PATH, L"%s\\%s", path, findData.cFileName);
// Print the full path
//wprintf(L"%s\n", subPath);
// If it's NOT a directory, write it to the myFiles Struct
if (findData.dwFileAttributes != FILE_ATTRIBUTE_DIRECTORY) {
//wprintf(L"[FILE]: %s\n", subPath);
::EnterCriticalSection(&g_queueCS);
//printf("Size: %d\n", myFiles.size);
pushString(&myFiles, (LPCWSTR)subPath);
::LeaveCriticalSection(&g_queueCS);
}
}
printf("File thread: Finished producing items.\n");
// Check if the loop ended due to an error
DWORD error = GetLastError();
if (error != ERROR_NO_MORE_FILES) {
wprintf(L"Error during directory search: %d\n", error);
}
// Close the search handle
FindClose(hFind);
}
BOOL FileMatchesSearch(WCHAR fullPath[], WCHAR targetString[]) {
size_t fullPathLen = wcslen(fullPath);
size_t targetStringLen = wcslen(targetString);
// Check if the full path is long enough to contain the target string
if (fullPathLen >= targetStringLen) {
// Get a pointer to the potential start of the target string in fullPath
WCHAR* endOfPath = fullPath + (fullPathLen - targetStringLen);
// Compare the substring with the target string
if (wcscmp(endOfPath, targetString) == 0) {
//printf("'%ws' exists at the end of the path.\n", targetString);
printf("File path found: %ws\n", fullPath);
return TRUE;
}
else {
printf("'%ws' does NOT exist at the end of the path.\n", targetString);
return FALSE;
}
}
else {
printf("The path is too short to contain '%ws'.\n", targetString);
return FALSE;
}
}
DWORD WINAPI FolderThread(PVOID) {
searchDirectories(rootPath);
::Sleep(20000);
::SetEvent(g_NewFileItemEvent);
return 42;
}
DWORD WINAPI FileThread(LPVOID lpParam) {
printf("File thread: waiting for Start signal.\n");
::WaitForSingleObject(g_NewFileItemEvent, INFINITE);
const WCHAR* folderPath = (WCHAR*)lpParam;
wprintf(L"Processing string: %s\n", folderPath);
printf("File thread: Starting.\n");
searchFiles(folderPath);
printf("File thread: Exiting.\n");
return 42;
}
DWORD WINAPI SearchThread(PVOID) {
printf("Search thread started. Waiting for manual reset event...\n");
// Wait for the manual reset event
WaitForSingleObject(g_NewFileItemEvent, INFINITE);
printf("Search thread: Event received! Starting to consume items...\n");
while (myFiles.size !=0) {
::EnterCriticalSection(&g_queueCS);
WCHAR* filePath = NULL;
if (myFiles.size != 0)
{
filePath = popString(&myFiles);
WCHAR searchPattern[] = L"My_search_item.txt";
// Allocate a WCHAR array on the stack, including space for the null terminator
const int MAX_LENGTH = 256; // Or a suitable maximum length
WCHAR destinationArray[MAX_LENGTH];
// Copy the string
wcscpy_s(destinationArray, MAX_LENGTH, filePath);
if (FileMatchesSearch(destinationArray, searchPattern)) {
printf("File Found...!!!\n");
}
}
::LeaveCriticalSection(&g_queueCS);
}
printf("Search thread: Thread exiting.\n");
return 42;
}
int main(){
::InitializeCriticalSection(&g_queueCS);
initStringDynamicArray(&myFolders, 5);
initStringDynamicArray(&myFiles, 5);
pushString(&myFolders, rootPath);//Without this Line it won't search in the current folder
// Create a manual-reset event in a non-signaled state
g_NewFileItemEvent = ::CreateEvent(
NULL, // Default security attributes
TRUE, // Manual-reset event
FALSE, // Initial state is non-signaled
L"NewFileItemEvent" // Name of the event (optional)
);
//************************Folder thread
HANDLE hThreadFolder = ::CreateThread(NULL,0, FolderThread, NULL, 0 ,NULL);
::WaitForSingleObject(hThreadFolder, INFINITE);
// Array to store thread handles
HANDLE* threads = (HANDLE*)malloc(myFolders.size * sizeof(HANDLE));
if (!threads) {
wprintf(L"Failed to allocate memory for thread handles\n");
return 1;
}
//**************MULtiple threads to look for files in each folder discovered (One thread per folder)
// Loop through the data array and create a thread for each index
for (int i = 0; i < myFolders.size; i++) {
threads[i] = CreateThread(
NULL, // Default security attributes
0, // Default stack size
FileThread, // Thread function
myFolders.data[i], // Pass the string at index i
0, // Default creation flags
NULL // No thread ID needed
);
if (threads[i] == NULL) {
wprintf(L"Failed to create thread for index %d\n", i);
// Handle error (e.g., clean up and exit)
}
}
// Wait for all threads to complete
WaitForMultipleObjects(myFolders.size, threads, TRUE, INFINITE);
// ****************************Singe thread to Search for the File by file name
HANDLE hThreadSearch = ::CreateThread(NULL, 0, SearchThread, NULL, 0, NULL);
::WaitForSingleObject(hThreadSearch, INFINITE);
// Clean up thread handles
for (int i = 0; i < myFolders.size; i++) {
if (threads[i]) {
CloseHandle(threads[i]);
}
}
free(threads); // Free thread handles array
::CloseHandle(hThreadFolder);
::CloseHandle(hThreadSearch);
::DeleteCriticalSection(&g_queueCS);
freeStringDynamicArray(&myFolders);
freeStringDynamicArray(&myFiles);
return 0;
}
Try on actual mobile phone, it will work. As the final intention of testing with mobile simulator is to make it work on actual mobile device, we can ignore this bug if it works fine on actual device.
I am trying to build a yocto image using kirkstone branch. I am not able to run the QT 6 application as it ask for Qmake version in the QT kit. I have given the cmake tool chain file as in the SDK path , inspite error keep saying missing required feature in kit. Please guide.
This is not complex. Convert the XL date output to DT_DBDate and it will map to the SQL Server Date without a problem.
solved this issue simply by using cloud flare 1.1.1.1 vpn đ
Based on your given observations, you're most likely having CPU throttling in your containers, causing the performance regression. Locally, there's no quota enforcement, so your app can freely use 100% of the available vCPUs across all cores without interruption, as what you can see in your htop monitoring. Meanwhile, Kubernetes uses Linux Completely Fair Scheduler (CFS) that restricts your containerâs cgroup CPU usage (that you set at 95% of your node's vCPUs) within short periods of time (default is at 100ms).
Even though the limit you set is high, your multi-threaded workload can exceed the allocated CPU time in these brief intervals, triggering throttling even when the node has spare capacity. This causes threads to pause, increase context switching, and reduce effective CPU utilization, which explains the 3-4x slowdown in Kubernetes compared to your local or EC2 deployments.
Also refer to this article that might be useful to you.
Thank you folks for your answers. But, I finally found a solution :D The problem was in how Maps work. "results.first" is read-only, so I have to make copy of it to make it mutable.
I did this: Map<String, dynamic> userMapMutable = Map.of( results.first);
This works now when I want to write true/false in userMapMutable['isAdmin'].
Hope this helps someone in future :D
From AWS documentation:
An Amazon SQS message has three basic states:
Enqueued (Stored): A message is considered "stored" or "enqueued" after it is sent to a queue by a producer, but not yet received from the queue by a consumer. This is the initial state when a message first arrives in the queue and is waiting to be processed. There is no limit to the number of stored messages.
Pending (In Flight): A message is considered "in flight" or "pending" after it is received from a queue by a consumer, but not yet deleted from the queue. During this state, the message becomes temporarily invisible to other consumers due to the visibility timeout mechanism. This prevents multiple consumers from processing the same message simultaneously. There is a limit to the number of in-flight messages (120,000 for standard queues and FIFO queues).
Dequeued (Deleted): A message is "dequeued" when it is deleted from the queue after successful processing. This is the final state where the message is permanently removed from the queue.
Key Points:
Message Locking: When a message is received (becomes pending/in-flight), it becomes "locked" while being processed, preventing other consumers from processing it simultaneously.
Visibility Timeout: If message processing fails, the lock expires after the visibility timeout period, and the message becomes available again (returns to stored state).
Automatic Deletion: Messages are automatically deleted if they remain in the queue longer than the maximum message retention period (default is 4 days, configurable up to 14 days).
I have a step-by-step guide documented in this article with examples: https://abdullaev.dev/elasticsearch-how-to-update-mapping-for-existing-fields/
thanks @jdweng for pointing me in the right direction. Finally resolved it, issue was related to how requests were being intercepted by loadBootResource
// Create new headers object and explicitly copy all headers
const newHeaders = new Headers();
for (let [key, value] of response.headers.entries()) {
newHeaders.set(key, value);
}
// Ensure WASM files have correct content-type
if (type === 'dotnetwasm' || defaultUri.includes('.wasm')) {
newHeaders.set('Content-Type', 'application/wasm');
debugMode ? console.log(`Ensured WASM content-type for: ${name}`) : console.log();
}
That's the BrowserRouter's default behavior. If you want different behavior, consider using a different router: https://reactrouter.com/6.30.1/routers/picking-a-router
For Windows users, installing codecs via K-Lite_Codec_Pack_1915_Basic.exe might help
downgraded the hapi client to 6.6.0 and now it works.
I got the same error Error in UseMethod("posterior") : no applicable method for 'posterior' applied to an object of class "c('LDA_Gibbs', 'LDA', 'Gibbs', 'TopicModel')"
Restarting the R session fixed the problem.
Thanks my apk file has run sccessfully after change something in my code
actually, I used clerk authentions
When wrap ourapp with <ClerkProvider>, it needs to know which Clerk project to connect to.
Thatâs what the publishable key does â it tells Clerkâs SDK:
âThis is Suryaâs Clerk project, authenticate users here.â
my app file (_layout.jsx),
when I use <ClerkProvider> without passing the publishableKey.
import { Slot, Stack } from "expo-router";
import SafeScreen from "@/components/SafeScreen";
import { ClerkProvider } from "@clerk/clerk-expo";
import { tokenCache } from "@clerk/clerk-expo/token-cache";
import { StatusBar } from "expo-status-bar";
export default function RootLayout() {
console.log(process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY);
return (
<ClerkProvider
tokenCache={tokenCache}
publishableKey={process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY}>
<SafeScreen>
<Slot />
</SafeScreen>
<StatusBar style="dark" />
</ClerkProvider>
);
}
after that I have made changes in my eas.json file
{
"cli": {
"version": ">= 16.18.0",
"appVersionSource": "remote"
},
"build": {
"development": {
"android": {
"buildType": "apk"
},
"developmentClient": true
},
"preview": {
"android": {
"buildType": "apk"
},
"distribution": "internal"
},
"production": {}
}
}
I given below my apk file
https://expo.dev/accounts/surya_04/projects/Expense-tracker/builds/3c08a69e-ae7d-440e-a3a7-7e66b0c8f241
Try this package for socket.io https://github.com/doquangtan/socket.io-golang
Knowing como se calcula el IVA en MĂŠxico is essential for both businesses and consumers. By applying the correct rate, understanding exemptions, and keeping track of deductible IVA, companies can ensure compliance and maintain financial health. Although the process may seem technical at first, following a step-by-step approach makes it easy to manage. Staying informed about changes in tax laws will also help businesses operate smoothly in Mexicoâs evolving economy.
Using Xcode 16.4, there is no "Platforms" anymore. Simply open Settings -> Components and use the '+' button on the bottom left to add additional platforms.
Using git cherry-pick keeps the original author of the commit that's cherry-picked.
Example:
git cherry-pick <commit-hash-to-be-reapplied>
For example, you can display the nvidia-smi tool in a new terminal window so you can monitor the GPU power draw. Either command will spawn the new terminal window and the original shell will continue running uninterrupted.
$ xterm -wf -T "[nvidia-smi] GPU power consumption" -e "watch -n 1 nvidia-smi" &
or
$ gnome-terminal --command="watch -n 1 nvidia-smi"
This is fake security. Even if it was good security, the fact that it doesn't work with the simulator and that I can't programaticly disconnect the app and sign in with apple on account deletion are major flaws.
delete /node_modules and package-lock.json
rm -rf node_modules
rm package-lock.json
Is it polling other registers? Try with other register addresses. Maybe you entered the wrong register addresses and/or register definitions (length) etc.
Thanks to the commenters (especially Ted Lyngmo, Ali Nazzal, and jabaa) for their diagnostic help. Their suggestions helped me isolate the problem and find the final solution.
The core issue was that the MinGW compiler's directory (C:\msys64\mingw64\bin) was not added to the Windows PATH environment variable.
This created a confusing situation with the following symptoms:
The g++ command worked perfectly in the VS Code integrated terminal (which likely adds the compiler to its own PATH for the session).
The command failed with missing DLL errors when run in a standalone Windows Command Prompt (which uses the system's global PATH).
The command failed silently with exit code 1 when run by the VS Code task runner, as the task runner was also using the system's global PATH and couldn't find the necessary DLLs for g++.exe.
The problem was solved permanently by adding the MinGW bin directory to the Windows system PATH variable:
Searched for and opened "Edit the system environment variables" in the Windows Start Menu.
Clicked on the "Environment Variables..." button.
Under "System variables", selected the Path variable and clicked "Edit...".
Clicked "New" and added the following path:
C:\msys64\mingw64\bin
Clicked "OK" on all windows to save the changes and rebooted the computer.
After rebooting, the VS Code build task now works correctly.
can we make some configuration in the routes or the parser
No, you usually donât need to reinstallâConda envs are built for linux-64, not a specific distro.
But if system libraries (glibc, libstdc++, CUDA/MPI) are incompatible, you might hit errors and then need to recreate the env. Test it first; only rebuild if imports fail.
Problem solved today, Meta should have fix the bug.
This isnât a bug, itâs just how LangGraph works. It runs nodes in supersteps (bulk-synchronous style). Since b and c are started in the same step, the engine waits for both to finish before moving on, which is why b2 doesnât run until after c completes.
If you want b â b2 to continue right away (without waiting on c), youâve got two options:
Put b and b2 in a subgraph and run that in parallel with c. Inside the subgraph, b â b2 will run sequentially on its own.
Or use the Command API (Command(goto="b_2")) so b explicitly triggers b2.
Both approaches avoid the global step barrier thatâs currently holding things up.
You can clone the source repo, remove all the files from the icons folder that you don't need. Then npm i then npm run icons from repo root and voila.
Okay - I found the issue. On the UE script, I needed to update the context filter and include WORKFLOW. This seems to have resolved my issue.
It's been a while here,
But adding my 2 cents for anyone encountering this issue still.
I've been using ACK to create an Aurora-Postgresql DBCluster and attach a DBInstance to it, and I've been getting a very similar error, but for the port setting ("Set database endpoint port number for the DB Cluster."). This led me to think the issue is in the DBCluster spec, but it is actually an issue with the DBInstance spec.
If you have specifications that need to be defined on a cluster level, defining them at the instance level as well will cause this error. So you need to remove the VPC setting (in my case, the port) and other parameters from the DBInstance applied configurations. That's what resolved the issue for me.
Problem ocurred because my layout.tsx was in path folder that is in brackets (client) and I placed my error.tsx in the same folder expecting that error page would be shown inside layout.
If I properly understood, because my error.tsx was in path folder in (client), Nextjs. When I moved it one layout higher, it started working. And then i understood that in my situation error.tsx needs it's own layout not inherit it from (client) folder's layout, so i left error.tsx there.
I get this issue today.. this happened because we need to register our package and sha1
I do this on development it's worked but in release mode failed
What happened?
That because we need to use different sha1 for debug and releas
So first
use web client id not android id
Even we use web client id we still required to register our app package to oauth client id for type android
Register two type sha1 for release and development are different
So actually u need to create 3 times
Web client id
Android id (release)
Android id (build) this step is optional if you in release mode this no needed
go to vs code > flask icon to see the tests > it will show info like your project file is disabled, click on it and enable then at bottom right corner a pop up will show asking you to confirm. confirm that and your vs code will now recognize those tests.
This worked fro me in firefox
Open the history in the firefox
right client on the website where you want remove the HST
Select forget , Now the site will be accessible
Yes, nothing should stop you of doing so. You can create singleton instance so that you may avoid instantiating the client over and over (which could be expensive: allocating new resources, sockets and so on).
@Aytac No need to downgrade version. As manipulateAsync() function is deprecated now but we can apply SaveOptions with the help of saveAsync(options: SaveOptions) function using ImageManipulatorContext in expo-image-manipulator version ~13.1.7 (latest as of today).
As per official documentation We can do something like this -
const imageRef = await ImageManipulator.manipulate(imageUri)
.resize({
width: 640,
height: 480,
})
.renderAsync();
const manipResult = await imageRef.saveAsync({
compress: 0.8,
format: ImageManipulator.SaveFormat.JPEG,
});
setManipulatedUri(manipResult.uri);
Explanation:
We have to get ImageRef provided by renderAsync() function which will return Promise<ImageRef>.
const imageRef = await ImageManipulator.manipulate(uri).renderAsync();
Now on ImageRef we can apply SaveOptions with the help of saveAsync(options: SaveOptions) function.
const manipulationResult = await imageRef.saveAsync(options: SaveOptions);
Quarkus native builds can take time and likely time out if it takes longer than timeout set. You should give it a look to the builder pod log, which is the one in charge to build the Integration (the maven build). There you will see the real status, if it is progressing or if it's stuck in a given phase. You may find more detailed info in the Camel K troubleshooting guide.
Thanks a lot you Guys, this helped me.
so the issue is that Pub/Sub is super strict about schema compatibility, more than plain protobufs. Adding a new enum value breaks forward compatibility because old subscribers might choke on the new integer (like 5) since they don't know what it means.
In protobuf alone, it's fine (just info loss), but Pub/Sub demands both backward and forward compat, so it rejects the change as incompatible.
Yeah, it's a pain if your enums change often, it does make schemas tricky for evolving messages.
Best fix: Switch those enums to strings for now. That way, you can add new "values" without breaking anything, since strings are flexible.
Just define the possible strings in your app code or docs for validation.
If enums are a must, add a new field with the updated enum and deprecate the old one gradually.
Or create a whole new schema (like v2) and migrate topics/subscribers over time.
Avro schemas might be better for this if you can switch, as they handle enum additions with defaults.
Reserved numbers in enums can help plan ahead, but won't fix existing issues.
Check Pub/Sub docs for updates on this, it's a known limitation.
Solution Overview:
I needed a way to close the GLFW window from any part of my application. Initially, I tried calling glfwSetWindowShouldClose(window, GLFW_TRUE), but I wasn't sure how to get the correct window pointer into the other screen modules.
What I tried & why it fell short:
What changed:
static and public. This allowed global access without passing it around.Result:
Now, I can simply call App::window from any screen and close the window cleanly, improving both readability and maintainability.
Đ´ĐžĐşĐ°ĐśĐľŃ ŃĐž Ńи паŃŃĐľŃ Ńи ŃĐž ниŃоК
This is not possible through action/filter, you will have to use react for this.
This is very well explained here https://medium.com/@ManBearPigCode/how-to-reverse-a-number-mathematically-97c556626ec6
BTW my extended answer which also includes a reverse geo-location lookup is in this public repository:
https://github.com/MarsFlyer/GPXtools
It uses the the geocoder library and the OpenStreetMap's Nomanatim service. As this is a public facility with throttling, I've also used the ratelimit library.
from geopy.geocoders import Nominatim
from ratelimit import limits, sleep_and_retry
The location address has lots of sub-parts, so the getLocation function tries to reduce duplicated place names. You may want to adjust that to cope with how your local place names are handled.
How can I achieve with an ARRAYFORMULA that also the range is increasing as in a drag-downed references? All should increase if there is no "$" sign before them like this:
=COUNTIF(T$2:T2;T2)
=COUNTIF(T$2:T3;T3)
=COUNTIF(T$2:T4;T4)
This
=ARRAYFORMULA(COUNTIF(T$2:T2;T2:T))
Counts as this equivalent drag-down formula:
=COUNTIF(T$2:T2;T2)
=COUNTIF(T$2:T2;T3)
=COUNTIF(T$2:T2;T4)
This one
=ARRAYFORMULA(COUNTIF(T$2:T;T2:T))
Counts as this equivalent drag-down formula:
=COUNTIF(T$2:T;T2)
=COUNTIF(T$2:T;T3)
=COUNTIF(T$2:T;T4)
Any hint is welcome how to increase also the range and achieve the first pattern with ARRAYFORMEL.
For everyone would like to use connect to FastMCP server but face the same issue on Postman:
You can disconnect the connection and try to reconnect again. This will instantiate a session with valid ID and you can start calling tool from it.
Try Adding your domain in it. Like this.
res.set_cookie(
key="SOME_KEY",
value=cookie_value,
httponly=True,
samesite="none",
path="/",
max_age=1000,
expires=COOKIE_EXPIRY_DATE_TIME,
secure=True,
domain="example.com", # <-- Add this line
)
Flutter version 3.35.1 added 'scrollable' field in NavigationRail.
$primary : #121212;
$link: $primary;
// Override global Sass variables from the /utilities folder
@use "bulma/sass/utilities" with (
$primary: $primary,
$link: $primary,
);
It is possible now with modular approach.
I realized https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes#common-file-system-operations doesn't say This section applies only to virtualized apps. so I guess this is an intended behavior for mediumIL apps and I'm actually asking an XY question. I'll post a new one.
Sample React Native App which integrate Native Modules(Turbo Modules)
the error not found means is not detected,
have u clearly define in your route?
go to public_html>routes>web.php
I made a package for this :)
You can block users, emails, ip addresses, domain names, cities, states, countries, continents, and regions from using your application, logging in, or registering.
https://github.com/jeremykenedy/laravel-blocker
It is IP-based, not throttling-based.
This extension's developent has been paused, a simpler approach has been created to accomplish WinFormsZOrderViewer VS Extension's functionality in a much simpler NuGet
This question and the Issue on the Github page will be closed, the repos will be archived as well.
The issue stems from Excel's clipboard behavior, which includes hidden intervening columns when copying non-adjacent selections. A simple workaround is to use Excel's "Go To Special" dialog: press F5, click "Special", select "Visible cells only", and then copy. This will ensure only your selected columns are placed on the clipboard for pd.read_clipboard() to read correctly.
i tried this macro to not use range select. Instead of clicking cells in table, macro clicks below active cell vertically
Sub RefreshAll_LinkClickable_v2()
Application.ScreenUpdating = False
ActiveWorkbook.RefreshAll
Dim ws As Worksheet
Dim rRng As Range
Set ws = ActiveSheet
Set rRng = ws.Range("ControlTable[Borrower]:ControlTable[Agreement], ControlTable[Date of Balance Confirmation], ControlTable[The last related Document]")
Dim rCell As Range
For Each rCell In rRng
Application.SendKeys "{F2}"
Application.SendKeys "{ENTER}"
Next rCell
Application.ScreenUpdating = True
End Sub
I found a method that sender.get_commandArgument() can get the stored value in e.commandArguement. Then use split to get the targeted message.
function UnlockConfirm(sender, args) {
var commandArgument = sender.get_commandArgument();
var parts = commandArgument.split('|');
var recordNo = parts[2];
if (No != "") {
args.set_cancel(!confirm('Confirm to delete record' + No + '?'));
} else {
args.set_cancel(!confirm('Confirm to delete?'));
}
}
did you find the answer even i am getting similar issue can you help me ERROR - APIUtil Error when getting the list of roles
org.wso2.carbon.user.core.UserStoreException: Invalid Domain Name
Using this example Excel-File and copying it's content by strg + c:
this python code creates a dataframe out of the clipboard-content:
import pandas as pd
df = pd.read_clipboard(sep=r'\s\s+')
Resulting df:
a b c
0 12 1 4
1 13 1 5
2 14 1 6
3 15 1 7
4 16 1 8
5 17 1 9
You can see how to find native libraries in Android Studio by using APK Analyzer over this link. You can also check your libs.versions.toml, as Android Studio warns you about libraries that are not aligned to 16KB.
In my case, I first needed to install and configure the "AWS Toolkit with Amazon Q" extension for Visual Studio.
I tried this :
ax = sns.swarmplot(data=df, x="value", y="letter", log_scale=2, hue="type", palette=my_palette, size=6)
collection = ax.collections[0]
offsets = collection.get_offsets()
xy_stars = []
# Select first 15 offset (stars)
i = 0
for (x, y) in offsets:
if i < 15:
xy_stars.append([x,y])
ax.scatter(x - 0.000001, y, s=40, color='#944dff', marker=(5, 1), zorder=100)
i += 1
x_stars = [xs[0] for xs in xy_stars]
for collection in ax.collections:
offsets = collection.get_offsets()
# Removes 'star' scatters
new_offsets = [offset for offset in offsets if offset[0] not in x_stars]
# Update offsets collection
collection.set_offsets(new_offsets)
Sample React Native App which integrate Native Modules(Turbo Modules)
execute dotnet new packagesprops in the root dir of your solution.
edit Directory.Builds.props and set use central stuff to false.
Did you finally get any directive on this
this's the solution
how to update assetlinks for two apps
you just need to update the asstlinks.json with your sha256_cert_fingerprints for debug, release, and store, and it'll work well No need to verify from app settings "App info" -> "Open by default" and add verified links It'll be verified automatically with installing the app Android will open the target app according to the prefix in your link
If you are using Security/Service Principals (and not SAS or Shared Access Key) to connect to the container then you can do it by using ACLs:
Use the Azure portal to manage ACLs in Azure Data Lake Storage (11/26/2024)
Extract :


Access control lists (ACLs) in Azure Data Lake Storage (12/03/2024)
What youâre seeing means PHP isnât being executed at all.
Browsers never run PHP. A web server must process your .php file and return plain HTML. If you âopenâ a .php file directly from disk (e.g., file:///C:/.../index.php) or use a static dev server (like VS Codeâs Live Server), the raw PHP is sent to the browser and appears as if itâs âcommented out.â
The âQuirks Modeâ warning is a separate HTML issue (missing/incorrect doctype). It doesnât make PHP run or not run.
Run with PHP's built-in server:
cd project
php -S localhost:8000
then you can open your project at http://localhost:8000/index.php
Add <!doctype html> at the top of your HTML to stop the Quirks Mode warning.
Use <?php ... ?> (not short tags like <? ... ?> ).
Apna dil kya bara main, bas ghamon ka sahara hu,
Muskurata sab ke saamne, andar se to ashk ka dariya hu.
Jo khwab sajaaye the, unhi mein kahin bichhra hu,
Meer-e-Wafa kehta hai, main khud se bhi hara hu."**
Ya pata haina ies ko Krna
hai
This is a common issue with manufacturers implementing aggressive power-saving methods on their devices. The HCI snoop log can help identify why a specific connection was disconnected. In some cases, changing the default settings may resolve this issue.
This behavior may be caused by the design of Windows Installer service. All custom action binaries (i.e. the .dll file) are extracted in the user's %temp% location at the very beginning of the installation.
So, during an upgrade the installation process first extracts the new version of your custom action DLL, then it continues with the uninstall of your old product version and during this stage the old version of your custom action DLL binary is extracted again and thus it will overwrite the existing DLL. Afterwards when the new version of your custom action DLL is called it will actually use the old version of the binary.
I think the best solution to avoid this behavior/issue, as @Joshua Okorie suggested too, will be to make sure you rename the binary of your custom action DLL each time you rebuild it. For instance you can try to use a template that include the file version in its name.
If you had plain nested loops in your code both loop variables would be locals in the same method body. This doesn't work and will result in a CS0136 compiler error.
However in your case you have a foreach loop and a second one which is in a closure. This means that the someItem variable of the outer loop is compiled into a closure field while the inner someItem loop-variable is compiled into a local variable. Since they are different kinds of symbols there is no conflict.
i'm getting this error 'Property assignment expected.javascript' in my code
data: [{
type: "area",
indexLabelFontSize: 16,
dataPoints: {{chart_data|safe},}
}]
});
how to resolve it?
Have you already read this document
https://developer.atlassian.com/cloud/confluence/oauth-2-3lo-apps/#3--make-calls-to-the-api-using-the-access-token
I think the problem occurs because you wrote on memory that you don't own sizeof return how many bits does the datatype takes in memory and since your are given it an int it probably return 4 or 8 according to your system
So I think a fix for your problem will be (Char*)malloc(sizeof(char) * Length + 1)
Looks like youâve hit one of those spots where Hamcrest gives you a nice matcher out-of-the-box, but AssertJ doesnât try to cover it. Thatâs why Co-Pilot spit out that huge reflection-based helper â technically correct, but way too much boilerplate for what you actually want.
If your goal is just âmake sure getters and setters workâ, youâve got a couple of simpler options:
Use a small bean testing library (e.g. OpenPojo or Pojo Tester).
They integrate fine with JUnit 5 and keep your test short:
import com.openpojo.validation.ValidatorBuilder;
import com.openpojo.validation.test.impl.GetterTester;
import com.openpojo.validation.test.impl.SetterTester;
import org.junit.jupiter.api.Test;
class GetServiceModelsByDistributionStatusResponseTest {
@Test
void shouldHaveValidGettersAndSetters() {
var validator = ValidatorBuilder.create()
.with(new GetterTester())
.with(new SetterTester())
.build();
validator.validate(GetServiceModelsByDistributionStatusResponse.class);
}
}
If itâs just one or two beans, donât overthink it â write a tiny manual test:
@Test
void shouldSetAndGetStatus() {
var bean = new GetServiceModelsByDistributionStatusResponse();
bean.setStatus("OK");
assertThat(bean.getStatus()).isEqualTo("OK");
}
So in short:
If youâve got lots of beans â bring in OpenPojo or Pojo Tester.
If itâs only a few â just test the properties you care about with AssertJ directly.
Would you like me to show you a super minimal reflection-based AssertJ helper (like 20 lines) that you can reuse across all your beans, instead of the giant sample Co-Pilot gave you?
This is because you can only Instantiate a GameObject on unity's main thread and the message you receive calls your handler code on an async thread.
I would recommend looking at the UnityMainThreadDispatcher package to help with this.
A simple but less efficient method to fix this would be to have a bool that is set true in your handler. Then in update function if that bool is true, Instantiate your GameObject.
void Start()
{
EventHandler<MsgHandlerEventArgs> handler = (sender, args) =>
{
messageReceived = true;
};
// Update is called once per frame
void Update()
{
if(messageReceived)
// create object
}
Sample React Native App which integrate Native Modules(Turbo Modules)
Please try to change the procedure name. It will definitely work.
What is the value of innodb_buffer_pool_size? (It should be about 70% of RAM.) How much RAM? What is the typical size of metadata ?
Please provide `SHOW TABLE STATUS LIKE 'invoice';`
` SELECT COUNT(*)
FROM invoice
WHERE issue_date BETWEEN '2025-01-01' AND '2025-07-30'
AND customer_id = 20
AND status BETWEEN 1 AND 7
AND workflow = 1
Together with
INDEX(customer_id, workflow, status, issue_date)
INDEX(customer_id, workflow, issue_date, status)
LLMs are built mainly for natural language, not for directly understanding spreadsheets. When you pass a table as text (CSV, Excel copy-paste, etc.), the model just sees a stream of tokens â it doesnât âknowâ rows and columns. This often breaks the structure and leads to wrong (or hallucinated) answers.
Better approaches:
Clean and normalize tables before sending (consistent headers, no merged cells).
Convert to JSON or key-value pairs so relationships are explicit.
Split large tables into smaller, labeled chunks.
For complex data, query it with SQL/Pandas first, then give the summarized result to the LLM.
General Principle:
Think of it this way:
LLMs = language + reasoning layer
Databases/spreadsheets = structured data layer
Best practice is to let each system do what itâs best at, and connect them.
Get some testnet ETH on a faucet eg https://faucet.chainstack.com
For example, on Sepolia Ethereum.
i try all of the method avove to solve the auto import issue. But none of them work for me soo don't waste your time.
Maybe try use View > Appearance > Zoom IDE with the screen splited. It will zoom in the same level for both of them though.
Here are the steps Iâve already tried (from a commonly suggested solution):
Stopped all XAMPP services and exited the application.
Went to C:\xampp\mysql directory.
Renamed the data folder to data_old.
Created a new data folder and copied the entire content of the backup folder into it (except ibdata1).
Copied all folders/files from data_old into the new data folder, making sure not to replace any existing files (skipped replacements).
form {
width: 600px;
background: #ccc;
margin: 0 auto;
padding: 20px;
border: 1px solid black;
}
<form method="post" enctype="multipart/form-data">
<div>
<label for="file">With jpeg</label>
<input type="file" id="file" name="file" accept=".jpg, .jpeg, .png" multiple>
</div>
</form>
<form method="post" enctype="multipart/form-data">
<div>
<label for="file">Without jpeg</label>
<input type="file" id="file" name="file" accept=".jpg, .png" multiple>
</div>
</form>
When you do:
Decimal(1.2)
Python first has to take the binary floating-point approximation of 1.2 (1.2000000000000001776...) and then convert that into a Decimal. That conversion step is slower, and it gives you the full imprecise binary expansion:
>>> Decimal(1.2)
Decimal('1.20000000000000017763568394002504646778106689453125')
On the other hand:
Decimal("1.2")
parses the string directly into an exact decimal representation. This avoids the intermediate float conversion, so itâs faster and more accurate:
>>> Decimal("1.2")
Decimal('1.2')
Buy Aged Discord Accounts:
https://accsgg.com/product-category/discord/
https://accsgg.com/product-category/discord/
https://accsgg.com/product-category/discord/
Buy Instagram Accounts :
https://accsgg.com/product/2020-2012-aged-account-1k-followers-full-acces-account/
Standard Tennis Court Dimensions and Layout
If you're wondering about the size of a tennis court, the official measurements are set by the International Tennis Federation (ITF).
Tennis court length: 78 feet (23.77 meters)
Tennis court width: 27 feet (8.23 meters) for singles and 36 feet (10.97 meters) for doubles
Tennis court dimensions in feet (including run-off space): Usually 120 ft x 60 ft
Area of a tennis court: Approximately 2,808 sq. ft. for playing area and up to 7,200 sq. ft. including buffer zones
Knowing the tennis court size in feet is crucial when planning construction or selecting a site.
For more info - https://topflooring.in/
Experiencing the same issue after upgrading my kali.
This is due height and width passed to displayDialogAsync were NaN (invalid), and newer Excel builds no longer auto-fallback to defaults and expects width & height to be passed
Since you enabled 'teams' => true in config/permission.php, the package expects a team_id value whenever you assign a role/permission.
To assign team
$teamId = 1; // or fetch/create your default team
$superAdmin->assignRole($superAdminRole, $teamId);
Add a ternary operator to your sortIcons.sorted prop.
Like this:
sortIcons={{
sorted: sortStatus.direction === 'asc' ? <>â</> : <>â</>,
unsorted: <>â</>,
}}
I've added simple Unicode characters in the example, but you can replace them with what ever icons, or ReactNode you like.
Hope I got you correct.
if this wouldn't help please let me know.
import 'package:clock/clock.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
//prepare a clock in setup and use it inside each test via withClock.
// Note: code under test should read time from clock.now() not DateTime.now().
late Clock fixedClock;
setUp(() {
fixedClock = Clock.fixed(DateTime(2000, 1, 1));
});
test('uses fixed year 2000 inside withClock', () {
withClock(fixedClock, () {
expect(clock.now().year, equals(2000));
});
});
test('outside withClock, time falls back to system clock', () {
//clock.now() defaults to the system clock when not overridden.
expect(clock.now().year, equals(DateTime.now().year));
});
}
Almost all answers in this post are not working for me, they seem to be deprecated.
path.join(__dirname, '/logsmain.log');
The above code will produce a path inside app.asar, and this does not work because electron-log writes logs inside app.asar
import { app } from 'electron';
import log from 'electron-log/main';
import path from 'path';
const executablePath = app.getPath('exe');
const executableDirectory = path.dirname(executablePath);
log.transports.file.resolvePathFn = () => path.join(executableDirectory, 'logs/main.log');
log.transports.file.level = 'debug';
log.transports.file.level = "info"
export { log as logger };
The above code works for me.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
import jakarta.validation.constraints.NotBlank;