What makes you think the RAM usage of this line of code is so high? What have you measured?
I discovered that you can open the "Wine Control Panel" by simply using ShellExecute from the Winapi.ShellAPI unit and opening control.exe:
ShellExecute(0, 'open', 'control.exe', nil, nil, SW_SHOWNORMAL);
And then it'll open on Wine or Steam Proton:
^^ can you explain how you handled any HTTP connection errors when running this?
@Sergey A Kryukov thank you for the help, it's a male-only family tree, no wifes. It's a popular topic in the Arabic world and a historical science there, thanks again.
import type { BetterAuthOptions, InferSession, InferUser } from "better-auth";
import { betterAuth } from "better-auth/minimal";
const authConfig = { ... } satisfies BetterAuthOptions;
export const auth = betterAuth(authConfig);
export type Auth = typeof auth;
export type Session = InferSession<Auth>;
export type User = InferUser<Auth>;
export type AuthData = {
session: Session;
user: User;
} | null;
Best thing to do would be to just get the .className at runtime. Crappy fix, but it'll work. Personally I have issues trying to programmatically apply animations because it transforms the css name but not any other reference to it in the file. The keyframes become s-VSwDfhj2prWB-opacityvisibleanimation but my code is element.style.animation = "1s forwards opacityvisibleanimation", which fails.
Even including it in the HTML segment fails, such as
style="animation: {expanded ? "1s forwards opacityvisibleanimation" : "1s forwards opacityinvisibleanimation"}".
I'm not sure how Rich intended us to reference animation names?
You'll need to do this at runtime.
in your .svelte:
element.className.match(/s-[\s\S]{12}/g)[0]
element being anything...
Now I can properly reference animation names:
element.style.animation = "1s forwards " + element.className.match(/s-[\s\S]{12}/g)[0] + "-opacityvisibleanimation"
try/execpt is the best practice for data type errors like this
For the lazy version I use this
(.|\r|\n)+
Yes, you must make a custom implementation.
Only the primary (left) mouse button can be used with SwiftUI's built-in gestures (TapGesture, DragGesture, LongPressGesture, etc.). They do not support right or middle mouse input.
The answer seems to be a resounding "No, not in modern FF" - thanks to @nanigashi for clarifying.
The best way to ergonomically toggle/access a setting that I've found was to pin an about:config tab and/or find a short identifying substring of the setting name to enter in the about:config search (i.i in the case of full-screen-api.ignore-widgets)
This appears to be a warning message basically stating that there was a tag within the SVG file itself that was not handled by the Svg Loader. I've found you can either simply ignore the message or remove the tag from the SVG.
Just to understand the question. You are using these two input elements (default is that they are text fields) as buttons, and you need the value of "action" (the name of the inputs) so that you can see if it was "Enter" or "Cancel" that was clicked when submitting the form? And then you need a localized display text for each button?
StackOverflow really isn't a job site - it's a Q&A for programming-related question only ....
cd scoop-master.zip Set-executionPolicy RemoteSigned-Scope CurrentUser
def apply_twice(func, arg):
return (func(arg)) # argument is 10 ,that added to to value 5
def add_five(x): # func when called once add_five inside becomes 10+5=15
return x + 5
print(apply_twice(add_five, 10))
def apply_twice(func, arg):
return func(func(arg)) # argument is 10 ,that added to to value 5 now called twice
def add_five(x):# func when called twice add_five inside becomes 10+5+5=20
return x + 5
print(apply_twice(add_five, 10))
def apply_twice(func, arg):
return func(func(arg))+ func(func(arg))# argument is 10 ,that added to to value 5 now called twice
def add_five(x): # two time repeated func , when called twice add_five inside becomes 10+5+5=20 +20=40
return x + 5
print(apply_twice(add_five, 10))
For those having issues even with tabIndex removed and all other normal solutions exhausted this is something to consider as it was an intermittent issue and hard to diagnose.
I use Yii2 and Kartik Select2 widget in a bootstrap modal which makes it hard to override the dedropdownParent setting. The widget worked perfectly in most situations anyways so I think he sets it correctly.
If the modal content container does not have a max-height and overflow-y:scroll style settings the select2 was not allowing search functionality when the modal content grew beyond the original modal size. After doing many tests and then some research on the symptoms its clear that there is a scroll detector function in the select2 initialization that breaks if it "thinks" the content should have a scroll even if it doesn't.
To fix this issue I set the modal-content max-height to 75vh and overflow-y:scroll. This way the select2 scroll detection will actually work and the search function will initialize.
Les espaces de noms permettent de regrouper des variables, des fonctions, des classes, etc. sans polluer les identifiants des autres librairies.
Créer les espaces de noms suivants: terre, mars et jupiter;
Ajouter dans chacun de ces espaces les constantes rayon et nom contenant respectivement le rayon de la planète et son nom;
Ajouter dans chacun de ces espaces une fonction double surface() qui calcule la surface des planètes à partir de leur rayon.
Thank you for posting the result of your investigation, this was useful!
I'm coming from https://github.com/ocornut/imgui/pull/9099 (I am maintainer of that software) and things have been rather confusing but your latest comment helped connect some pieces of the puzzle.
I'd be ideally trying to solve this, aka allow MBCS-compiled apps using RegisterClassA(), DefWindowProcA() etc to work on all setups. I've been hoping I can avoid calling ImmGetCompositionString() (suggested by https://github.com/ocornut/imgui/pull/3653/files and implied by WM_IME_COMPOSITION ) in order to avoid requiring user to link my library with imm32.
So I am looking at:
\> To let your program work regardless of how the “language for non-Unicode programs” is set, you should handle WM_IME_COMPOSITION message properly. The simplest way to handle the message is to pass it to the DefWindowProcW() function.
However if i do this:
case WM_IME_COMPOSITION:
{
// Handling WM_IME_COMPOSITION ensure that WM_IME_CHAR value is correct even for MBCS apps.
// (see #9099, #3653 and https://stackoverflow.com/questions/77450354 topics)
IMGUI_DEBUG_LOG("WM_IME_COMPOSITION wParam %08X, lParam %08X\n", wParam, lParam);
return ::DefWindowProcW(hwnd, msg, wParam, lParam);
}
case WM_IME_CHAR:
if (::IsWindowUnicode(hwnd) == FALSE)
{
unsigned short ch = (unsigned short)wParam;
if (::IsDBCSLeadByte(HIBYTE(wParam)))
ch = MAKEWORD(HIBYTE(wParam), LOBYTE(wParam));
wchar_t wch = 0;
::MultiByteToWideChar(bd->KeyboardCodePage, MB_PRECOMPOSED, (char*)&ch, sizeof(ch), &wch, 1);
IMGUI_DEBUG_LOG("WM_IME_CHAR %08X -> %08X -> %08X\n", wParam, ch, wch);
io.AddInputCharacterUTF16(wch);
return 1;
}
return 0;
Then I get the correct char in WM_IME_CHAR, followed by a ? :
[07650] WM_IME_COMPOSITION wParam 00008882, lParam 000001B9
[07681] WM_IME_COMPOSITION wParam 0000D982, lParam 000001B9
[07686] WM_IME_COMPOSITION wParam 0000D982, lParam 000001B9
[07696] WM_IME_COMPOSITION wParam 0000D982, lParam 000001B9
[07707] WM_IME_COMPOSITION wParam 00007B96, lParam 000001B9
[07769] WM_IME_COMPOSITION wParam 00007B96, lParam 00001E00
[07769] WM_IME_CHAR 00007B96 -> 00007B96 -> 0000672C
[07769] WM_IME_CHAR 0000003F -> 0000003F -> 0000003F
[07770] [io] Processed: Text: '本' (U+0000672C)
[07770] [io] Processed: Text: '?' (U+0000003F)
[07858] [io] Processed: MouseButton 0 Down (Mouse)
[07865] [io] Processed: MouseButton 0 Up (Mouse)
If I change WM_IME_COMPOSITION handle to always return 1 or to always return 1 when (lParam & GCS_RESULTSTR) then I get the correct WM_IME_CHAR only.
I am curious if you have an idea about this? Thank you greatly!
When you get a divison by zero error/ exception it boils down to a rounding issue and how numbers are technically handled (machine representation of numbers). It depends how you calculate the number e (i.e. a by an approximation function) and it depends how you exponentiate. For exponentiation and calculating roots (nth root) there exists approximation functions that contain divisions. So rounding is the main culprit here.
That's the difference between theory and concrete implementation.
No, you can’t truly recover the original .py file from a .exe made with PyInstaller.
When you instantiate an express adapter, you can pass a series of options defined by this interface:
export interface ExpressHttpAdapterOptions extends HttpAdapterOptions {
useCookies?: boolean;
useJson?: boolean;
useText?: boolean;
useUrlEncoded?: boolean;
}
How can I add body-parser when using the new built-in way?
If useJson is set to true (this is the default value as well), a json parser is added to your express app.
If you are interested in manually setting up your express app, you can do so by passing the app to the adapter constructor:
const expressAdapter = new InversifyExpressHttpAdapter(
container,
{
useCookies: false,
useJson: false,
useText: false,
useUrlEncoded: false,
},
myCustomizedExpressApp,
);
I was trying to solve the wrong problem. Just in case anyone else has the same misconception as me: body-parser is not needed. Inversify handles the parsing.
Yeah, the adapter adds a json body parser by default. It can be disabled by passing useJson option flag to false.
My issue ended up being a typical frontend issue when the form was submitted (I was trying to submit JSON using a plain HTML form).
If you were sending a application/x-www-form-urlencoded Content-Type request, yeah, that's tricky, for express silently ignores the body unless you set a parser for it. If you are interested in supporting urlencoded bodies in the future, useUrlEncoded flag can be handy.
Not really. You can, but you'll end up secretly Church-encoding lists or something. You are asking how to equip the type of rose trees with the eliminator for lists; conceptually, the "only" way to do this is to factor through lists.
Just moving the partials SCSS files into a subfolder worked. This was solved thanks to this answer. Check it for more information. This could be marked as duplicated.
Life saver mate! Thx a whole bunch!
I spent a bit of time figuring out how to do a mix of spaces and wild cards (*) for file names.
An example of what I found works is:
robocopy ".\Icons" "C:\Users\Public\Desktop" "Wwise "*.* /e /mt:4
The bit in Bold is the interesting bit, in that "Wwise<space>"wildcard.wildcard allows me to copy only the files starting with Wwise<space> to the location desktop. I am sure there are more ways of messing wit this, but I stopped after getting it to do what I wanted.
One reason this stopped working is that wgy/clear channel/wnyt stopped being part of the school closings network. Try this one: https://www.schoolclosingsnetwork.com/output/townsquare/wgna.asp
where to enter this code? I am having a very big trobule. Please Help...
Jandel("verified-badge")
If you're talking about getting syntax highlighting in your markdown file, this has to do with how you're rendering it. The renderer will interpret that language, and some renderer's have more languages implemented than others.
Your thought process and explanation seem logical to me. What exactly is the issue or concern you have here? What kind of answer or suggestion or advice are you looking for... specifically?
Yes, edit .py files in VSCode and run them on Google servers via the Google Colab extension, like Jupyter notebooks.
Setup Steps:
Install Jupyter and Google Colab extensions in VSCode.
Open .py or .ipynb file, select Colab kernel, and sign in with Google.
Connect to Colab runtime (CPU/GPU/TPU) for remote execution.
Limitations: No direct Google Drive mount or userdata access in VSCode.
This issue happens when KVM modules keep using VT-x even when you'r not using QEMU
Generally this is enough to make your virtualbox work
sudo modprobe -r kvm_intel kvm_amd kvm
But in some cases, you have to restart the virtualbox kernel modules like this:
sudo modprobe -r vboxnetadp vboxnetflt vboxdrv
sudo modprobe vboxdrv
sudo modprobe vboxnetflt
sudo modprobe vboxnetadp
This temporary frees the VT-x so VirtualBox can run VMs again.
Note: If you want to persist this, then create a small systemd service that runs these commands automatically at startup
Related Blog
If anyone else comes across this
Here's the fix
DoublePointer maxVal = new DoublePointer(1); DoublePointer minVal = new DoublePointer(1);All you had to do was set the size in the constructor.
It turns out that it was possible this way:
numberofdoors=1&numberofdoors=2
:)
Can someone explain why
std::vector<double>is considered "standard layout"
This is explained since C++11 in the "standard layout class rules", see https://en.cppreference.com/w/cpp/language/classes.html#Standard-layout_class:
A standard-layout class is a class that
has no non-static data members of type non-standard-layout class (or array of such types) or reference,
has no virtual functions and no virtual base classes,
has the same access control for all non-static data members,
has no non-standard-layout base classes, only one class in the hierarchy has non-static data members, and
So depending on how std::vector is implemented, all of those may very well be true. But it has nothing to do really with being PoD.
Different combinations of other traits may be used to check for PoD-like classes, lik the is_trivially_xyz family (ie. is_trivially_copyable).
Yet, from my work on an ASM-compiler, that needed to interopt with ASM/classes generated by MSVC, I think I remember there is no true trait to give you a true "pod" definition of a type, in a way that the compiler sees it - my example being the definition of "return values" in the x64 calling convention - here, a combination of is_trivially will not necessary align with what the compiler sees as pod, and I did not found a reliable way to detect it (even after asking stackoverflow).
Regardless, this might be a very specific example. In most cases, checks for trivially may be more than enough. For a lot of cases, it will be enough (and more correct/expressive) to just check for a specific property, instead of making your own "trivial" combined trait (for example, in template code that does copy of a value, just checking for trivially_copyable would be the most appropriate trait.
I'm facing the same issue at the moment and i have done the same as you did, but still Google Play rejecting my app. If you came up with a solution for this matter would u please share it with me !
Thanks in advance
Chrome recently introduced a restriction (Chrome 104+) that caps the maximum cookie lifetime to 400 days.
So even if you set a longer expiry (like 3 years or 2038), Chrome will silently shorten it.
This limit applies to both expires and max-age directives.
Older cookies created before v104 may still keep their original dates, but any new cookies are forced under the 400-day rule.
I've just ended up here with a similar issue. Not sure if it's the same problem that the OP had or a new one but I thought it might be helpful to record it here anyway. My issue was related to this: https://github.com/rstudio/rstudio/issues/16454
Running Sys.unsetenv("PKG_CPPFLAGS") and then installing rbibutils worked fine. Ubuntu 24.04.3 & RStudio 2025.09.2
<html>
<head>
<title> FORMULA </title>
</head>
<body>
(a<sub>1</sub>+b<sub>1</sub>)<sup>2</sup>=a<sup>2</sup>+2ab+b<sup>2</sup>
</body>
</html>
You need to configure the WSO2 default model provider for this case.
Please follow the guide in https://bi.docs.wso2.com/integration-guides/ai/direct-llm-call/direct-llm-invocation-with-ballerina-model-providers/#step-5-configure-default-wso2-model-provider
It depends on the stack used for a product. A frontend can be rendered in the browser using React/Angular/Vue.js/etc or server-side using frameworks like Wicket/Velocity etc.
Depending on the frameworks used it can be quite useful to know a little about back-end tech. I've done projects where the front-end developers had no back-end experience which made in depth discussions very difficult.
IMO a developer should at least have minimal knowledge of tech used in a project no matter what their work area is. This makes discussions easier and gives everyone the ability to chip in when needed.
I have the same issue, have you been able to fix it?
Or maybe front-end workers w/ back-end experience are more desired than those without that experience?
This should be closed as a duplicate of this question, but alas, Stackoverflow now wants to encourage duplicates.
@Valnik You can remove the UNIQUE (col1, col2) constraint. Just the index is enough; it handles all combinations. The only thing to check is how to handle NULLs, should they be unique or not?
(For those of us away from a computer, can you include both error messages for comparison?)
I am writing a scraper in Python and ran into a CAPTCHA on the login form. The site sometimes returns a regular reCAPTCHA v2 and sometimes hCaptcha. I tried to bypass this through Selenium, but CAPTCHA keeps blocking the automation.
My purpose is to automatically obtain the CAPTCHA solution token and insert it into the form so that the script can continue running without manual involvement.
What I have already tried: headless Chrome, different user agents; waiting for the iframe to appear; tried recognizing the CAPTCHA image through third-party libraries, but reCAPTCHA/hCaptcha do not work this way; found mentions of external services, but I do not understand how exactly to integrate them with Python via API.
What I need:
A step-by-step recommendation on how to technically organize CAPTCHA solving in Python: which API to use; how to create a task, obtain the token; how to pass it back into Selenium or the request; whether a universal method exists for different CAPTCHA types.
I would appreciate an example of working code or a proven architecture.
I just got the solution in Vivaldi forum with this desktop launcher:
[Desktop Entry]
Name=Vivaldi-mod
Exec=sh -c "konsole -e ~/vivaldi-modding/vivaldi.sh; gtk-launch vivaldi-stable"
Icon=vivaldi
Terminal=false
The first task is executed in konsole, the second not (Terminal=false).
As already mentioned by @VLAZ, That is actually not a runtime error. that is a transpile time error. you declared:
type TParser = (str: string, errStr: string) => number;
which is actually wrong. since there is a default parameter, we need to make errStr optional.
type TParser = (str: string, errStr?: string) => number;
notice the added ? before : string,that is used to indicate the parameter is optional, you can give a value to it, or you may not, typescript will allow you.
here are some helpful links:
When setting cookies with strict mode, cookies are not set on redirecting. So, in order for the cookies to be set, the page needs to be viewed to the end-user in the browser allowing the cookies to be set.
An approach to this is to redirect using a form post instead of 302 redirect. By rendering an actual page at the end of the authentication process, you're breaking out of the redirect sequence allowing the browser to set the cookie:
<body onload="document.forms[0].submit()">
<form method="post" action="https://that.other.domain">
<input type="_hidden" name="nonce" value="@Server.SomeVariable" />
<input type="_hidden" name="state" value="@Server.SomeOtherVariable" />
<input type="_hidden" name="whatever" value="@Server.Foo" />
</form>
</body>
Hope this helps?
Browser compatibility is good (https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/zoom, https://caniuse.com/css-zoom), and the property is standardized, https://drafts.csswg.org/css-viewport/#zoom-property
while True:
user_input = input("Enter an integer: ")
try:
value = int(user_input)
break # input is valid → exit loop
except ValueError:
print("Invalid input. Please enter a valid integer.")
Here, this is what I use on a daily basis when I try to avoid online services such as Github, Gitlab... Of course when I don't need the CI/CD and the bells and whistles such as actions, accounts, etc.
This answer is for future reference regarding how to achieve a full Git workflow without relying on a remote Git hosting service (like GitHub, GitLab, etc.), by using a local bare repository as your "remote."
You can replicate the standard Git workflow (clone, commit, push, pull, etc.) entirely on your local machine by setting up a bare repository to serve as your central, shared history.
First, create a bare Git repository in a designated, central location on your machine. This directory will not contain a working tree (i.e., no files, just the Git history).
Pick a directory for your bare repo (e.g., in your home directory).
Bash
mkdir ~/my-project-bare.git
cd ~/my-project-bare.git
git init --bare
Now, treat that bare repository path as the "remote URL" and clone it into your actual working directory.
Move to a different location where you want your project files to reside.
Bash
cd /path/to/my/development/area
Clone the local bare repository using its file path.
Bash
git clone ~/my-project-bare.git my-project-working
cd my-project-working
From this point on, all Git operations are exactly the same as if you were using an external remote.
Configure your identity (optional, but good practice):
Bash
git config user.name "Your Name"
git config user.email "[email protected]"
Add, commit, and push changes:
Bash
# Make changes to files...
git add .
git commit -m "Initial commit of the project setup"
git push origin master # or main
The ~/my-project-bare.git directory now acts as your central source of truth. If you want to simulate multiple developers or different machines, you can simply clone the bare repo again into a different folder (e.g., my-project-testing), and use git pull and git push between the working clones and the bare repo.
@abaci Thanks...I think the Chiclet Slicer is a glorified slicer, isn't it? Couldn't find any 'HTML Content Custom Visual' but I did look at 'get more visuals' for HTML-related visuals. Not sure why HTML would be useful here?
Am I wrong to imagine that a Power BI report would be a useful (better) substitute for SharePoint gallery view?
Reading documentation is the best way to learn a tool in my experience, however I often struggle to focus on reading, and when I do I find YouTube videos explaining the tools to be invaluable. Combining both, and doing a bit of experimentation on your own I think is the most productive way to learn things. AI is great for specific niche questions that you haven't been able to solve, but make sure not to get dragged into the vibe-coding pit.
Getting started on a project using a new technology can be very daunting. I find the best way to start is by watching a tutorial, following along initially, and once the tutorial is done, do it again without help. You'll learn what you don't understand, and then you can go back and read the documentation or rewatch the video to better understand the parts you don't get.
It's a slower process that AI, but it means you'll actually learn and understand what you're doing, which is far more important than speed.
Good luck.
You can use the Mobius Inversion FORMULA
The issue is resolved as a part of fix https://github.com/reactor/reactor-netty/issues/4014
It's available in 1.2.13 - snapshot
Thanks
This appears to already be asked and answered here: How can I check if string input is a number?
create a text file in your user location with lower context length or check the root cause in server logs.
FROM arctic-text2sql-r1 (model name)
PARAMETER num_ctx 4096
Then create the new model in command prompt
ollama create arctic-sql-lite -f Modelfile
You are right. It works fine. Many Thanks
You need to tell pytest-django to keep the data loaded in initial_db for the duration of the session, or ensure it's committed in a way that survives the test rollback.
Here is the correct way to implement Session-scoped Data Fixtures with pytest-django.
You can use Qwen/Qwen-Image-Edit or Flux models such as Flux 2 which are open source and you can get higher accurate images as like chatgpt.
You probably need to paste a snippet of your controller; that would help to better understand that what could be wrong
I was missing this interactive rendering as I am using server side rendering
@rendermode InteractiveServer
That's a very specific and challenging requirement for iOS automation!
Unfortunately, due to the tight security sandbox Apple enforces, there is no direct, public, or officially supported way for Appium/WebdriverIO (or any other standard automation framework) to programmatically toggle Airplane Mode or Mobile Data settings on a non-jailbroken physical iOS device or even a standard iOS Simulator.
To help you, please provide the following:
The list of key documents you are referring to.
The specific problem or situation you are trying to address. Knowing the context (e.g., applying for a loan, filing taxes, submitting a project proposal) will help determine if any documents are missing or if the current ones are sufficient.
You read the documentation of whatever you use
I sure do love reading “Microservices: The Docs” or “How to Build an Extremely Niche Feature That You Can Barely Describe: The Wiki.”
All jokes aside, I prefer to look for trends and see what people actually use for what problems.
Docs can explain how to do things and sometimes why, but they rarely offer the kind of wisdom that matters in real problem solving, which what engineering is imo, for example, why people building low latency, high throughput services choose X language and Y framework.
I use ClickHouse because of a very specific requirement, and I didn’t discover it by reading its docs. I found it by reading the experiences of people who use it. Blogs and forums are good; rabbit holes are even better.
If you previously ran:
export GOOGLE_GENAI_USE_VERTEXAI=true
in your current terminal session, you do need to unset this environment variable when switching to Google AI Studio’s API (non-Vertex AI). Otherwise, the SDK will keep working in Vertex AI mode.
Use the instruction-tuned model as your base:
base_model = "google/gemma-3-270m-it"
it_model = "google/gemma-3-270m-it"
Once training + inference use the same chat template, the repetition stops.
I was working in a personal Spring Boot based Starter that I think would fits with your scenario.
i have issue with telegram connecting to google GAS. I get infinite loop of good reply from GAS into my telegram group. Debugging looks good with no issues. GAS deployed as webapp. Passing single parameter from telegram:
https://api.telegram.org/bot1234567890......./setWebhook?url=https://script.google.com/macros/s/1234567890................/exec?community=PARM12345
https://api.telegram.org/bot123456...../getWebhookInfo shows:
{
"ok": true,
"result": {
"url": "https://script.google.com/macros/s/123456......./exec?community=GINDI",
"has_custom_certificate": false,
"pending_update_count": 1,
"last_error_date": 1764588546,
"last_error_message": "Wrong response from the webhook: 302 Moved Temporarily",
"max_connections": 40,
"ip_address": "100.200.700.500"
}
}
Did not configure any google APIs, ot the configuration.
function doPost(e) {
const finalResponse = ContentService.createTextOutput('{}').setMimeType(ContentService.MimeType.JSON);
if (!e || !e.postData || !e.postData.contents) {
// ❗ prevents Telegram from retrying
return finalResponse;
}
// Initialize services
let update = null;
try {
update = JSON.parse(e.postData.contents);
} catch (err) {
//Logger.log("Invalid JSON update, ignored.");
return finalResponse;
}
if (update.message?.from?.is_bot) {
//Logger.log("Ignored bot-originated message to prevent loop.");
return finalResponse;
}
const messageText = update.message?.text;
if (!messageText || typeof messageText !== "string") {
//Logger.log("Ignored non-text message.");
return finalResponse;
}
const trimmed = messageText.trim();
if (!trimmed.startsWith("#")) {
//Logger.log(`Skipping: Not a command or text missing. Exiting.`);
return finalResponse;
}
const cache = CacheService.getScriptCache();
const updateId = update.update_id?.toString();
if (updateId) {
if (cache.get(updateId)) {
Logger.log("Duplicate update detected → ignored.");
return finalResponse;
}
cache.put(updateId, "1", 30);
}
const lock = LockService.getScriptLock();
if (!lock.tryLock(500)) {
Logger.log("Lock busy → ignored safely.");
return finalResponse;
}
try {
let config = getScriptPropsFallback(); // Load service default config
// --- CORE BUSINESS LOGIC STARTS HERE ---
config.communityName = e.parameter?.community || "";
config.chatId = update.message?.chat?.id;
config.userId = update.message?.from?.id;
config.message_id = update.message?.message_id;
config.messageText =trimmed;
// MAIN COMMAND DISPATCH
config = Fun1(config);
Func2(config);
} catch (err) {
Logger.log(`doPost (Webhook Entry) CRASHED on update ${updateId}:`, err);
try {
sendReply(update.message.chat.id, update.message.message_id, "❌ System error. Admin notified.", getScriptPropsFallback());
} catch (e2) {}
} finally {
try { lock.releaseLock(); } catch (e) {}
}
return finalResponse;
}
any help is welcomed. please reply to [email protected]
You probably forgot to add dagger as a dependency to the gradle file of your module.
If you are using the latest Flutter version, then there is one major issue currently open related to resizeToAvoidBottomInset broken on Android. Keyboard breaks layout. So, you can track and get the workaround for the issue.
https://github.com/flutter/flutter/issues/175074#issuecomment-3571987010
@jcalz Yeah, I hand wrote the code, so it's wrong, but you got the right point. And also the issue you posted is also what answers my question. Thanks!
You may need to change it.
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0-milestone-1-bin.zip
in
gradle-wrapper.properties
You could use a label tag and show text in Spanish. When the text in the label tag is clicked, it refers to a hidden button whose value is in English. The submit button is hidden using CSS. Below is a simple example:
There is a parameter called scrollAlignment in the Showcase widget that controls where the widget should be positioned after scrolling.
The default value is 0.5, which means the showcased widget will scroll to the center of the screen.
If you want the widget to scroll closer to the top, you can set the value to around 0.2.
owoce kolaboracii metafizycznej kopulacii a kontrola totalitarna swiatowej populacii gdzie do zbrodni sabotarzy zamachow i zdrad stanu jest multum wygodnych politycznych oraz medialnych narracii jak agenci gru i kgb zmieniajacy nazwiska ktorzy umkneli dekady temu lustracii a teraz sa panami sukesow premii oraz krolowymi deprawacii i dekapitacii sieci szpiegoskie o randze miendzy narodowej korporacii od swiadomosci iluminacii od przeczkola indoktrynacii az do opola dywersyfikacii oslabianie suwerennosci i nie podleglosci POLSKI w randze ultra tajnych zapomnianych specjalnych jak nocna zmiana operacii czlowieczenstwo ktore okazywane jest na pokaz a i tak ulegajace jak wrzelkie wartosci denominacii od zjebanych drzew genealogicznych nie pomoze procedura dekontaminacii bo uklad czerwonych spolek zaplanowal i zrealizowal miljony gospodarczo spolecznych prezentow do hermetycznych gron na pozycje nominacii
-----BEGIN PDF BASE64-----
JVBERi0xLjQKJaqrrK0KNCAwIG9iago8PAovVHlwZSAvUGFnZQovUGFyZW50IDMg
MCBSCi9NZWRpYUJveCBbMCAwIDU5NSA4NDJdCi9Db250ZW50cyA1IDAgUgo+Pgpl
bmRvYmoKNSAwIG9iago8PAovTGVuZ3RoIDEyNTAKPj4Kc3RyZWFtCkJUCi9GMSAx
MiBUZgowIDUwIFRkIChBVkFMSUFDTyBURUNITklDQSBJTUlCQUxJQVJJQSkgVGoK
RVQKL0YxIDEyIFRmCjAgMzAgVGQgKFByb3ByaWV0w6FyaW86IE1haWNvbiBMYW5h
KSBUagpFVAovRjEgMTIgVGYKMC05MCBUZCAoTG9jYWxpesOnw6NvOiBSdWEgRXN0
cmFkYSBHZXJhbCBkbyBNb3VyYSwgQmFpcnJvIE1vdXJhLCBDYW5lbGluaGEtIFND
LCBDRVA4ODIzMC0wMDApIFRqCkVUCi9GMSAxMiBUZgowLTEyMCBUZCAoQXZhbGlh
ZG9yOiBHZW92YW5pIENlcnJ1dHRpIFBpbnRvIOKGkiBDUkVDSSA1NDM1M0YpIFRq
CkVUC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GoKRVQKCi9GMSAxMiBUZgowIC01OTAgVGQgKEF0ZW5jaW9zYW1l
bnRlLCBHZW92YW5pIENlcnJ1dHRpIFBpbnRvIC0gQ1JFQ0kgNTQzNTNGKSBUagpF
VAplbmRzdHJlYW0KZW5kb2JqCjMgMCBvYmoKPDwKL1R5cGUgL1BhZ2VzCi9NZWRp
YUJveCBbMCAwIDU5NSA4NDJdCi9Db3VudCAxCi9LaWRzIFsgNCAwIFIgXQovUmVz
b3VyY2VzIDwgPj4KPj4KZW5kb2JqCjIgMCBvYmoKPDwKL1R5cGUgL1BhZ2VDb250
ZW50Ci9MZW5ndGggMAo+PgplbmRvYmoKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxv
ZwovUGFnZXMgMyAwIFIKPj4KZW5kb2JqCnhyZWYKMCA3CjAwMDAwMDAwMDAgNjU1
MzUgZiAKMDAwMDAwMDA5MCAwMDAwMCBuIAowMDAwMDAwMTY1IDAwMDAwIG4gCjAw
MDAwMDAzMTQgMDAwMDAgbiAKMDAwMDAwMDQ0MyAwMDAwMCBuIAowMDAwMDAxNzE0
IDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgNwovUm9vdCAxIDAgUgo+PgpzdGFy
dHhyZWYKMTg1NQolJUVPRgo=
-----END PDF BASE64-----
You could simplly use docker to run each instance separatly on different ports
ChatGPT isn't a programming language. Are you sure this is an on-topic question?
Thanks guys , both of you were correct but Akhil George got the answer more accurate. Thanks again
The problem was between the Tomcat server and the client. TomCat has a property called maxConnections which is 8192. Creating more will make it wait until there is room again for new connections. This caused the weird waiting behavior, it also affected the HttpClient in a way that it stops making requests to the second server even when running asynchronous.
This doesn’t work anymore this makes me sad as I was trying to hack Blooket
From my understanding, XCTesting is the traditional way of testing, Swift testing is newer framework (with nicer syntax) + XCTesting. Swift Testing runs on top of XCTest.
i have similar issue with telegram connecting to google GAS. I get infinite loop of good reply from GAS into my telegram group. Debugging looks good with no issues. GAS deployed as webapp. Passing single parameter from telegram:
https://api.telegram.org/bot1234567890......./setWebhook?url=https://script.google.com/macros/s/1234567890................/exec?community=PARM12345
https://api.telegram.org/bot123456...../getWebhookInfo shows:
{
"ok": true,
"result": {
"url": "https://script.google.com/macros/s/123456......./exec?community=GINDI",
"has_custom_certificate": false,
"pending_update_count": 1,
"last_error_date": 1764588546,
"last_error_message": "Wrong response from the webhook: 302 Moved Temporarily",
"max_connections": 40,
"ip_address": "100.200.700.500"
}
}
Did not configure any google APIs, ot the configuration.
function doPost(e) {
const finalResponse = ContentService.createTextOutput('{}').setMimeType(ContentService.MimeType.JSON);
if (!e || !e.postData || !e.postData.contents) {
// ❗ prevents Telegram from retrying
return finalResponse;
}
// Initialize services
let update = null;
try {
update = JSON.parse(e.postData.contents);
} catch (err) {
//Logger.log("Invalid JSON update, ignored.");
return finalResponse;
}
if (update.message?.from?.is_bot) {
//Logger.log("Ignored bot-originated message to prevent loop.");
return finalResponse;
}
const messageText = update.message?.text;
if (!messageText || typeof messageText !== "string") {
//Logger.log("Ignored non-text message.");
return finalResponse;
}
const trimmed = messageText.trim();
if (!trimmed.startsWith("#")) {
//Logger.log(`Skipping: Not a command or text missing. Exiting.`);
return finalResponse;
}
const cache = CacheService.getScriptCache();
const updateId = update.update_id?.toString();
if (updateId) {
if (cache.get(updateId)) {
Logger.log("Duplicate update detected → ignored.");
return finalResponse;
}
cache.put(updateId, "1", 30);
}
const lock = LockService.getScriptLock();
if (!lock.tryLock(500)) {
Logger.log("Lock busy → ignored safely.");
return finalResponse;
}
try {
let config = getScriptPropsFallback(); // Load service default config
// --- CORE BUSINESS LOGIC STARTS HERE ---
config.communityName = e.parameter?.community || "";
config.chatId = update.message?.chat?.id;
config.userId = update.message?.from?.id;
config.message_id = update.message?.message_id;
config.messageText =trimmed;
// MAIN COMMAND DISPATCH
config = Fun1(config);
Func2(config);
} catch (err) {
Logger.log(`doPost (Webhook Entry) CRASHED on update ${updateId}:`, err);
try {
sendReply(update.message.chat.id, update.message.message_id, "❌ System error. Admin notified.", getScriptPropsFallback());
} catch (e2) {}
} finally {
try { lock.releaseLock(); } catch (e) {}
}
return finalResponse;
}
any help is welcomed. please reply to [email protected]
My fault, thank you very much for providing me with the crucial clue: I wasn't aware that the outline in the left column of the MS web page doesn't contain all headers.
For anybody wondering. This works.
Use the GIT terminal -> open in terminal
Then clone your repository using git clone, this will pop up the credentials manager asking for password.
After that your repository will be authenticated in Sourcetree.
I hope you are well.
You might need an error check in there to find the last non empty row. Code snippet below on how I would approach this. Your code would also most likely throw an error if there is only 1 row of data hence another check for lrow < 2.
Thanks!
Sub SortByCol5()
Dim ws As Worksheet
Dim lrow As Long
Dim sortRange As Range
Set ws = ThisWorkbook.Worksheets("Sheet2")
'Find last used row in sheet'
lrow = ws.Cells(ws.Rows.Count, "E").End(xlUp).Row
'Error check for only 1 row'
If lrow < 2 Then Exit Sub
Set sortRange = ws.Range("A2:E" & lrow)
sortRange.Sort _
Key1:=ws.Range("E2:E" & lrow), _
Order1:=xlAscending, _
Header:=xlNo
End Sub
This will work if you want to check the status of a certain tasks with in the same dag
def dag_state_check_callback(context):
dag_run = context['dag_run']
task_instance = dag_run.get_task_instance(task_id')
current_state = task_instance.state
print(f"Task state: {current_state}")
Just learned this modifier from swiftUI:
safeAreaInset(edge: .bottom, spacing: 0) {
bottomSearchBar
.padding(.bottom, isSearchFocused ? 20 : 0)
.padding(.horizontal, isSearchFocused ? 16 : 24)
.offset(y: 12)
}
From this SO question, give it a try!
How do I remove the square white background behind the rounded corners of the keyboard in Xcode 26?
I’m using Gradle’s Spring Boot bootBuildImage task (./gradlew bootBuildImage), which builds the container image using Cloud Native Buildpacks.
You need to confirm AVPlayerViewControllerDelegate in your ViewController
@Cerberus this seems to be working now after some changes to the code. So what happened was that it was erroring but I had written it wrongly. Thanks!
Old stuff but some of us are still using Tortoise SVN. So I've had enough of registry modification and created a simple Windows tray app to modify priority in 2 clicks.
https://kainoto.com/marketing-services/app-development/file-explorer-icons-prioritize.aspx
In case anyone else will need it again since even in 2025 Windows has 15 icons limit. Wow.
List<int> l = [];
Type g = l.GetType();
Console.WriteLine(g.Name);
Console.WriteLine(g.FullName);
Thanks you both for your answers! My current implementation is very similar to what @moonwave99 provided (thank you for the detailed example) so it seems to me that I'm following the correct approach on managing the state for this example :)
I've never used like visual this before. Could you take a look at the "Chiclet Slicer" or "HTML Content Custom Visual" (requires CSS/HTML knowledge) visuals?
@Randommm I didn't get your point. If a user installs an antivirus and/or DLP system, they trust that software and its certificate. I don't understand why Google Chrome should handle these things for me.