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
CkVUCi9GMSAxMiBUZgowLTE1MCBUZCAoRGF0YTogMDEvMTIvMjAyNSkgVGoKRVQK
Ci9GMSAxMiBUZgowIC0yMDAgVGQgKDEuIElkZW50aWZpY2HDp8OjbyBkbyBJbW92
ZWwpIFRqCkVUCi9GMSAxMiBUZgowIC0yMzAgVGQgKChPByByZWxhdG9yaW8gcmVm
ZXJlLXNlIMOgIGF2YWxpYcOnw6NvIHRlY25pY2EgZGUgdW0gdGVycmVubyBsb2Nh
bGl6YWRvIG5hIFJ1YSBFc3RyYWRhIEdlcmFsIGRvIE1vdXJhLCBubyBCYWlycm8g
TW91cmEsIG5vIG11bmXDp2lwaW8gZGUgQ2FuZWxpbmhhL1NDLikgVGoKRVQKCi9G
MSAxMiBUZgowIC0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IKPj4KZW5kb2JqCnhyZWYKMCA3CjAwMDAwMDAwMDAgNjU1
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.
If you have 1–100 images "user-1.jpg", "user-2.jpg", etc., use jQuery code:
$("#numberOne").attr("src", "user-" + (Math.floor(Math.random()*100)+1) + ".jpg");
Wrap it with:
safeArea(
top: false,
bottom:true,
// balance your code
)
This worked for me
Why not use <button> elements for buttons?
But who says these applications would just make up a root certificate, which would could not be verified? They just need to obtain a roof from a company who's certificate is verifiable and they can continue the chain to make the certificate for swap
I came across this post and thought to share how the benchmarks were done by linking to those:
For JDK 24, this is their location https://github.com/openjdk/leyden/blob/634547513c2a2b707ae43a735dc24fd1977da2ae/README.md#5-benchmarking
For JDK 25, this is their location https://github.com/openjdk/leyden/blob/premain/README.md#5-benchmarking.
Hope this helps you 😊 !
✅ What is swift_flutter
swift_flutter is a state-management library for Flutter (i.e. an alternative to setState, Provider, Bloc, etc.). Dart packages
It calls itself a reactive state management library — meaning you declare reactive variables, and the UI automatically rebuilds when those reactive values change (somewhat similar to reactive frameworks in other ecosystems). Dart packages
It offers two different usage patterns:
Direct state management: You declare reactive state directly in the widget. Dart packages
Controller pattern: You define a controller class (kind of like a ViewModel) that owns your state, and views only read from it (separation of concerns). Dart packages
✨ Key Features of swift_flutter
swift_flutter advertises a lot of features — beyond just basic reactive variables. Some of the main ones:
Reactive state with automatic dependency tracking — you wrap a value with swift(...) and it becomes reactive. Dart packages
Computed / derived values — like if you have price and quantity, you can define total = Computed(() => price * quantity), which auto-updates when its dependencies change. Dart packages
Async state support — via something like SwiftFuture, which helps manage loading / error / success states declaratively. Dart packages
Form validation — via SwiftField, useful for reactive forms with built-in validation support. Dart packages
Persistence support — reactive state that can be persisted (and auto-loaded/saved). Dart packages
Global store / dependency injection support — so you can have shared state/services across the app. Dart packages
Redux-style reducers and stores — for more predictable state updates if you like that pattern. Dart packages
Animtions support — “SwiftUI-like declarative animations” without writing boilerplate AnimationController, mixins etc. Dart packages
So the idea is to bring a “reactive + flexible + feature-rich” state management + utility toolkit to Flutter — with inspiration borrowed from reactive frameworks (e.g. reactive data tracking, computed, reactive animations).
✅ When & Why You Might Use It
Given your background (you know Flutter fairly well, working on somewhat complex apps — chat apps, so on), swift_flutter might appeal because:
You dislike a lot of boilerplate (you’ve asked before about managing state without too much overhead). swift_flutter is designed to reduce boilerplate.
You need reactive updates (for chat UI, realtime data etc.), and swift_flutter’s reactive variables + auto-rebuild can help.
You may appreciate features like async state (for network calls), form validation, state persistence, and perhaps global store or controller-based architecture when you build bigger modules.
When you execute docker run, a new container is created and started based on a specified Docker image. By default, these containers are designed to be stateless.
So No persistent data. Any data written inside the container's filesystem will be lost when the container is stopped and removed.Each run is isolated. Every time you docker run an image, you get a fresh instance of image.
So that your data is losing.To keep this you must persist the data outside the container.For that you need to explicitly manage data using:-
Volumes: Docker volumes are the preferred mechanism for persisting data generated by and used by Docker containers. They are managed by Docker and exist independently of the container's lifecycle.
file or directory from the host machine into a container: This provides link to host data
For this you can either create a docker volume or explicit path
A named Docker volume is a mechanism for persisting data generated by containers.The data will kept inside the volume and persist
https://docs.docker.com/engine/storage/#tips-for-using-bind-mounts-or-volumes
I'm using Eclipse IDE with Windows 11 and I'd like to use cmd.exe instead of internal console but no way to make it work. Does anyone have another idea?
I am using tools such as ChatGPT
Don’t stuff 500+ tables into the model prompt. Prefer a retrieval-augmented approach: index table/column metadata and small samples (embeddings), retrieve only relevant tables/columns per query, build a compact schema snippet, then call sqlcoder (or phi3) to generate SQL. Fine-tune (LoRA/QLoRA/adapter) only if you need persistent model behavior changes (naming conventions, edge-case transforms) or you can’t achieve accuracy with RAG + runtime grounding.
Didn't know if I could assign ICMP rights only to groups or also to users as the corresponding sysctl is called ping_group_range. I set it via the sysctl: section of the docker-compose.yaml.
so the main issue is CompositedTransformFollower.
CompositedTransformFollower basically separates the widget from its actual place in the render tree and visually only shows it on the screen, but:
If its parent doesn't have enough space, or the Stack doesn't allow for a full height, or the menu is placed in an area outside the bounds of the parent,
the height won't reach that area at all and that makes the buttons "apparent" but not working tho.
best way in my oponion to solve this is to use OverlayEntry:
OverlayEntry? _overlayEntry;
void _toggleMenu() {
if (_overlayEntry != null) {
_overlayEntry!.remove();
_overlayEntry = null;
return;
}
final overlay = Overlay.of(context);
final renderBox = context.findRenderObject() as RenderBox;
final size = renderBox.size;
final offset = renderBox.localToGlobal(Offset.zero);
_overlayEntry = OverlayEntry(
builder: (context) => Positioned(
left: offset.dx - 40,
top: offset.dy + size.height + 5,
child: Material(
color: Colors.transparent,
child: EditMenu(delete: widget.delete),
),
),
);
overlay.insert(_overlayEntry!);
}
@override
Widget build(BuildContext context) {
return IconButton(
icon: Icon(Icons.more_vert),
onPressed: _toggleMenu,
);
}
What language are you writing this in? What have you tried so far, and what didn't work?
thanks for your Replies!
The background of this question is, that I have code which has a semaphoreslim which should be released after the specific code runs.
And then it occurred to me, what happens if, for example, you return an integer. But yes, that's something else. Thank you very much for clarifying that! :)
Here is a snippet of my code.
public virtual VcsStatus GetStatus(string path)
{
_semaphore.Wait();
try
{
path = _resolvePath(path);
Collection<SvnStatusEventArgs> statusItems;
if (!_svnClient.GetStatus(path, out statusItems))
throw new SvnException($"SVN status failed for path: {path}");
List<VcsFileChange> changes = [];
foreach (SvnStatusEventArgs item in statusItems)
{
if (item.LocalContentStatus == SvnStatus.Normal && item.LocalPropertyStatus == SvnStatus.Normal)
continue;
changes.Add(new VcsFileChange(
path: item.Path,
oldPath: item.MovedFrom,
changeType: _mapChangeType(item.LocalContentStatus)
));
}
return new VcsStatus { FileChanges = changes };
}
finally
{
_ = _semaphore.Release();
}
}
Thank you Zivkan, I hadn't thought about using Central Package Management but I'll look into it, having so many projects to keep in sync should be a lot easier with that.
In the end after speaking with my manager we realised that neither of knew when and why treat warnings as errors had been turned on, none of our other solutions are set up in this way. So we turned it off.
in my case, i need to change my theme from dark to light, then restart the android studio. after that i can change it back to dark theme
This would be much better off as a classic question with a compileable MRE that demonstrates the scipy.optimise.root default method going AWOL with a well behaved target function. Are your absolutely sure that your function cannot reach inf anywhere when working in IEEE754 FP format?
@SzilardD, on the other hand, I see highcharts all over the code
I had similar issue in appery.io (it is online editor cordova app) and solve this issue by uploading ttf files on App settings screen
Try to import the css in the frontmatter like this instead of using link tag.
---
import "../styles/style.css";
---
<link rel="stylesheet" href="../styles/style.css" />
@pmf, Thanks, and I think this sd works in the way I want, but it doesn't come with system, and actually I wonder why there isn't such thing in Linux for this basic requirement...
being purchase? how? what are you using some pluging for creaing a shop with wordpress?
Besides immutability, lists and tuples differ in that tuples are more memory-efficient, faster to access and iterate over, have fewer methods, and can be used as dictionary keys or set elements when their contents are immutable; lists consume more memory, support many mutating operations, and are better suited for dynamic, homogeneous collections, while tuples semantically represent fixed, heterogeneous data like records.
It does not support:
Right-to-left (RTL) direction
Arabic glyph shaping (letters change form depending on position)
So even though your string is correct in Python, FPDF draws characters as isolated shapes from left to right.
To correctly render Arabic in FPDF, you must reshape + reorder the text manually before passing it to FPDF.
You need two Python packages:
pip install arabic-reshaper python-bidi
from fpdf import FPDF
import arabic_reshaper
from bidi.algorithm import get_display
# your Arabic text
text = "هذا نص تجريبي باللغة العربية."
# 1. reshape letters
reshaped_text = arabic_reshaper.reshape(text)
# 2. reorder text for RTL
bidi_text = get_display(reshaped_text)
pdf = FPDF()
pdf.add_page()
# Add an Arabic TTF font
pdf.add_font('Arial', '', 'arial.ttf', uni=True)
pdf.set_font('Arial', size=16)
pdf.write(10, bidi_text)
pdf.output("arabic_test.pdf")
Actually I would consider pgr_connectedComponents() a solution. It is not what I was initially looking for and introduces a dependency, but it is really short.
Considering the solution I was looking for it came to my mind that might that it might not require a recursive CTE. Walking all points and flood filling from each should do.
Actually I would consider pgr_connectedComponents() a solution. It is not what I was initially looking for and introduces a dependency, but it is really short.
It is important to account for error handling: sometimes the CAPTCHA-solving task returns “processing” for 20–30 seconds. Do not rush — implement a waiting loop. Both 2Captcha and SolveCaptcha use the same mechanism: while the status is “processing,” you just wait. This does not affect Chrome — the browser can stay on the page as long as needed.
Thank you! I didn't notice that emms is for Pentium MMX. I used rep movsd as you advised. I removed fild. Thank again for the prompt replies.
This information from Apple Developer Forums helped me:
https://developer.apple.com/forums/thread/806658
Xcode is so buggy everywhere these days...
I found the cause of the issue. If play-services-maps is included under the Maps SDK dependencies and the version is 18.0.2, it triggers the error. There are two ways to fix it:
Update the play-services-maps dependency version to 19.0.2 in the app/build.gradle file.
Remove the dependency line entirely from the dependencies block.
Both solutions resolve the problem.