is ServerAliveInterval
could help me if my ssh connection to the server is also very unstable and I need just to restart my server in anyway, to make it alive again, even when ssh connection will connect for milliseconds.
Do I need set maximum ServerAliveInterval
and some big number of ServerAliveCountMax
?
Thanks for the answer
You're observing different execution orders because of how JavaScript's event loop handles **macrotasks** and **microtasks**.
- `setTimeout(..., 0)` is a **macrotask** (added to the macrotask queue).
- `.then()` from a `fetch` is a **microtask** (added to the microtask queue).
- Microtasks are **always executed before** the next macrotask, after the current execution stack is empty.
---
When you use `setTimeout(..., 0)` and `fetch(...)`, here’s what happens:
1. Synchronous code runs first.
2. Microtasks (like `.then()` from `fetch`) are processed.
3. Then macrotasks (like `setTimeout`) are processed.
That’s why in most browsers:
console.log(“A”); // sync
fetch(…).then(…) // microtask
setTimeout(…, 0) // macrotask
console.log(“B”); // sync
---
Changing to `setTimeout(..., 1)` gives the event loop more time, so the fetch may resolve before the timeout happens — but it's **not guaranteed**. It's a race condition depending on network timing and browser internals.
---
Node uses a slightly different event loop model. The key difference is:
- `setTimeout` goes into the **Timers phase**
- `fetch` is not native to Node and uses the **microtask queue** after a Promise resolves
So in Node, `setTimeout(..., 0)` often logs before `.then()` due to **phase timing differences**.
---
- Microtasks (`Promise.then`, `fetch`) run **before** macrotasks (`setTimeout`).
- Timing differences in browsers vs. Node.js are due to **event loop phase priorities**.
- `setTimeout(..., 0)` does **not mean immediate execution**, just “as soon as possible after current tasks.”
Use setText :
MimeMessage m;
m.setText(body, "UTF-8", "html");
If you look at the source code, in the end you'll get :
m.setContent(body, "text/html; charset=UTF-8");
I had this issue because of timeouts not properly set ON BOTH my backend function and my frontend caller.
We can create EqualityComparer object with the helper method like this now:
var set = new HashSet<MyClass>(comparer: EqualityComparer<MyClass>.Create((a, b) => a.Id == b.Id));
Nowdays, in Reqnroll, you can use External Data Plugin to acomplish just that! It supports various file formats, including JSON and the file structure you have present should work just fine :)
Finally figured out how to drag and drop files from a web app into desktop software—super smooth! If you need a feature like this built, dev technosys can do it. You can also hire software developers from them for custom integration.
Got anyone a solution for this?
According to https://github.com/vercel/next.js/issues/57005#issuecomment-1779807828 the error has been fixed in nodejs 21.1.0. So, instead of downgrading, an upgrade may be also a solution.
Instead of loading the entire 10GB dataset into a single NumPy array and then passing it around, you can create a generator to process the data in a stream. A generator is a special type of Python function that returns an iterator, which yields items one by one instead of all at once. This allows you to process the data as it's read from the file, effectively keeping only one slice of it in memory at any given time.
For venv you have to do it with
deadsnakes
For Ubuntu default repository all python versions and latest ones are not there so get the packages from repository and then install any version using apt
sudo apt install python3.xx
And then while setting up the virtual environment use that Python -
python3.xx -m venv .venv
Thanks!
You can adjust the gradient with the code below
const LinearGradient(
colors: [Colors.blue, Colors.black, Colors.black],
stops: [0.0, 0.5, 1.0], // Adjust stops to control the gradient spread
begin: Alignment.centerLeft, // Start from left
end: Alignment.centerRight, // End at right
),
What you can do as suggested by @usr1234567 is to compile a short code that includes _Float16
.
Here's a minimal working code :
cmake_minimum_required(VERSION 3.12)
project(MyProject C)
include(CheckSourceCompiles)
check_source_compiles(C "
#define __STDC_WANT_IEC_60559_TYPES_EXT__
#include <float.h>
int main() {
_Float16 x = 1.0f16;
return 0;
}
" HAVE_FLOAT16)
if(HAVE_FLOAT16)
message(STATUS "_Float16 is supported by the compiler.")
else()
message(WARNING "_Float16 is not supported by the compiler.")
endif()
I've found __STDC_WANT_IEC_60559_TYPES_EXT__
here : https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
Using VideoCapture the start of the usb camera lasts 1 minute. And the same with OpenCVFrameGrabber. Does anybody know how to make it start inmediatly?
I had the same issue with httpClient, however, changing http version to HTTP version 1.1 helped.
.version(HttpClient.Version.HTTP_1_1)
For anyone still getting such error:
Github Desktop lets you choose which shell to use for the git operations.
Try setting a different shell one via:
File -> Option -> Integrations -> Shell
Thanks d-kleine on Github for the suggestion.
I was looking for that, but for Photoshop. Is it possible? I need to make a text with a shaped with that corners
The current OpenAI TypeScript/JavaScript SDK ( openai
@ 5.12.x, released 8 Aug 2025 ) still vendors a copy of zod-to-json-schema
that depends on Zod 3-only internals. Trying to pair it with Zod 4 (or with the 3.25.68+ branch that began preparing for v4) leads to compiler/runtime failures such as the missing ZodFirstPartyTypeKind
export.
Can you load at least one binary ? then:
I would try to not store them in a dictionary (all of them in one) they probably can be loaded from files named with dictionary keys "....elsewhere in the code"
Can't even load one binary ? then:
chunking it is I dont understand why that would be problem with order ?
or buy more ram use something that is not Python as it will add memory overhead
you can install the jaxlib with cuda support directly on windows.
https://github.com/pymc-devs/pymc/issues/7036
Something that worked for me, after hours looking for an answer was to delete the local Jupyter setting folder.
.jupyter/*
This helped - https://github.com/jupyter/notebook/issues/2359#issuecomment-648380681
When using material3 TextField, you can leverage inputTransformation
:
import androidx.compose.material3.TextField
import androidx.compose.foundation.text.input.InputTransformation
val maxLength = 10
TextField(
state = rememberTextFieldState(),
inputTransformation = InputTransformation.maxLength(maxLength),
)
libunwind relies on DWARF .eh_frame sections to unwind the stack properly
to ensure unwind info is generated compile with: -funwind-tables -fno-omit-frame-pointer
Also ensure .eh_frame
is linked.
To build on @DibsyJr's answer, I've created an attribute that I attach on the controller/method that I want to block, and check it in the OnCheckSlidingExpiration event handler. I find that more flexible than just checking the path property.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class DoNotRenewAuthCookieAttribute : Attribute;
options.Events.OnCheckSlidingExpiration = context =>
{
if (context.HttpContext.GetEndpoint()?.Metadata.Any(e => e is DoNotRenewAuthCookieAttribute) ?? false)
{
context.ShouldRenew = false;
}
return Task.CompletedTask;
};
GTK 3’s Wayland backend doesn’t expose the pointer enter event serials needed for the pointer-warp protocol. The serial values are low-level Wayland details that GTK 3 abstracts away and doesn’t provide in its API.
Your options are:
In short, there’s no straightforward way in GTK 3 to get the pointer enter serial. You would likely need a parallel listener or move to GTK 4 for native support.
The expr function doesn't automatically translate the Python in
operator to its SQL equivalent when working with array types. The standard Spark SQL function for checking if an element exists in an array is array_contains
.
You should be able to fix by using array_contains
within your filter expression.
Pseudocode
from pyspark.sql import functions as F
df = df.withColumn(
'target_events',
F.expr('filter(events, x -> array_contains(target_ids, x.id))')
)
I don't know if this tutorial may be useful, but I'll link it anyway^^:
I'm going to go into some technical details of the explanation of
[why] lookbehind assertion[s] must be fixed length in [PCRE] regex[es],
using the specific case that brought me here to the question. (I came understanding the lack of support for variable lookbehind assertions, just looking for some details of how to write fixed-length assertions.) Note that I'm basically following the answer of @Alan-Moore but giving a specific example. Other answers and comments were all very helpful.
I'll make a toy version of my problem and tweak it a bit to match it to the problem with variable length lookbehind assertions.
I have a group of classifications that are used to mark linguistic and other characteristics of speeches made by politicians, celebrities, scientific researchers, etc. These need to be inserted into the text at the point where they occur. e.g. If the speaker gave a date with the phrase,
This hasn't been done since 1762 and shan't be done ever again if I can help it!
and dates were to be marked with bcde_
(we'll talk about the markers, below), the annotated version would be changed as
This hasn't been done since 1762 bcde_ and shan't be done ever again if I can help it!
To make these different from the actual words in the speeches, these are groups of four letters, either repeated or in-a-row, followed by an underscore. So, a few examples would be
aaaa_
, abcd_
, bbbb_
, bcde_
, ... , hhhh_
, ... , mnop_
, ... wxyz_
, ... zzzz_
.
Note that some combinations without the trailing underscore, such as eeee
, mmmm
, oooo
, zzzz
, are found in some linguistic corpora. That's one reason for the trailing underscore. FYI (and maybe TMI), we don't actually use all the combinations, but I'll pretend that we do for the example. However, the regex engine would need to check these even if it had an intelligent implementation. Note also that these are inserted using a nicely UX-designed GUI and the linking between classification string and meaning is done by some nice software which includes PCRE-compliant regex matching.
I won't go into details why, but whenever there is a zzzz_
or yyyy_
or xxxx_
anywhere in the speech (and there can be only one of those three per speech), it works out that one and only one of the four-contiguous-letters-plus-underscore classifications needs to be part of the annotation of the same speech. If one of zzzz_
or yyyy_
or xxxx_
is there, there can't be zero members of the set, {abcd_
, bcde_
, cdef_
, defg_
, ...
, vwxy_
, wxyz_
} in the annotated speech, and there can't be 2 or 3 or 4 or more members of the set. One-and-only-one if there is a /([x-z])\1\1\1_/
. There can be any number of /([a-w])\1\1\1_/
, i.e. aaaa_
, bbbb_
, cccc_
, ..., if we have one of /([x-z])\1\1\1_/
.
So, to check if this rule is being followed, I write a couple of grep
commands, the second of whose regex has a negative lookahead and a negative lookbehind. I do it naïvely, first, without concern for the grep: length of lookbehind assertion is not limited
error. Note that I won't list all of the (26 - 3 =) twenty-three possible in-a-row classifications, I'll use (abcd_|bcde_| ... |wxyz_)
. This will compile and run, but it's not the code that will give the desired results. The real code uses all 23 possibilities.
And no, I don't type all 23 possibilities each time.
$ grep -P " ([x-z])\1\1\1_" file_with_all_annotated_speeches_one_per_line \
> to_check_speeches_test_05
$ # Down here, on the 2nd line vv is the problem
$ grep -P \
'(?<! (abcd_|bcde_| ... |wxyz_).*)'\
'( (abcd_|bcde_| ... |wxyz_))'\
'(?!.* (abcd_|bcde_| ... |wxyz_))' \
to_check_speeches_test_05 \
> all_acceptable_speeches_as_per_05
$ # `comm -23' will give us those lines (speeches) that are only in the
$ #+ first argument (file), but not those in the second one nor those
$ #+ which are in both file
$ comm -23 <(sort to_check_speeches_test_05) \
<(sort all_accceptable_speeches_as_per_05) \
> not_acceptable_speeches_as_per_05
Okay, let's look at some speeches. Let's say that the Gettysburg Address is now a wrong version, so we need to change it to the right version. I'll just give relevant parts (any parts that have a classifier string).
Wrong Version:
Fourscore and rstu_ seven years jjjj_ ago
...
The world will little note, nor long wwww_ remember zzzz_ what
...
by the people, for the people, shall not perish mnop_ from
the earth. _-lincoln-getty-1863-_
Note that, in the file, this would all be on one line. If not, the grep
would become a lot harder.
We can't have both rstu_
and mnop_
in the same line (speech) as zzzz_
.
Right version:
Fourscore and seven years jjjj_ ago
...
The world will little note, nor long wwww_ remember zzzz_ what
...
by the people, for the people, shall not perish mnop_ from
the earth. _-lincoln-getty-1863-_
I'm not sure how the order of processing the negative lookbehind and the negative lookahead work (perhaps, once the negative lookahead fails, i.e. finds the matching string, the regex exits; perhaps the negative lookbehind starts first; idk), but I'm going to pretend that we'll get a negative lookahead from the rstu_
and a negative lookbehind from the mnop_
. (If the speech has zzzz_
and three of / (abcd_|bcde_| ... |wxyz_)/
, I'm pretty sure both the lookahead and lookbehind would be run.)
The wrong version has a negative lookahead. (I think that's the case; if not, let's pretend.) That means the lookahead regex starts at rstu_
and runs one regex pass on up to 1491 characters. It finds mnop_
after going through 1452 characters. That means it fails, and I don't know if checks would continue. Still, I'm going to make the next assumption. Anyone is welcome to comment about whether I'm "running the regex engine" right. I think I'll keep this version with assumptions, anyway, but I'd like to know (and probably note) what a PCRE-compliant engine actually does.
Now let's assume that we also get a negative lookbehind from mnop_
. (There might be a smarter algorithm, but lets assume that) the engine first moves one character back to the space ('
') then goes through a minimum of 5 characters (looking for 5 characters matching any of the letters-in-a-row_plus_underscore strings) or a maximum of 45 characters (to the end of the line) looking for any of (abcd_|bcde_| ... |wxyz_)
. Then it goes back to the 'h
' in perish
and looks through 5|46 characters for a letters-in-a-row string. Then 's
' with 5|47, 'i
' with 5|48, 'r
' with 5|49, 'e
' with minimum 5 or maybe 6—to the start of mnop_
—or maybe up to 50—to the end of the line, 'p
' with 5|7|51, ... all the way back through 1440 more characters to rstu_
's '_
' which runs through 5|1448|1491, 'u
' which runs through 5|1449|1492, 't
' with 5|1449|1493, 's
' with 5|1450|1494, then finally 'r
', where I think it would only go through 5 characters until the rstu_
matched. Using the minimums, that's 1452 * 5 = 7262
steps, five times as many as the lookahead. (The exact multiple isn't a coincidence.) These thousands of steps are for the Gettysburg Address, which is famous for how short it is! (1487 characters, if you use the transcript of Cornell University's copy (linked above).
I won't do more details (sleep time), but imagine finding a mistake where one xxxx_
has three different (abcd_|bcde_| ... |wxyz_)
instances in John F. Kennedy's We choose to go to the moon speech. Or imagine checking, whether there are errors or not, through the famous-for-its-length 1960 speech of Fidel Castro at the United Nations with its ~200k characters. If there are errors that make you use negative lookbehinds, that could be a lot of computing cycles, especially since we're likely dealing with recursion in the regex engine's details.
So, the way I see it, there are two things I could do.
The first, painful way is to use the oft-repeated answer given here to do as @Dávid-Horváth suggested and
try to branch your lookbehind part to fixed length patterns if possible.
That would involve splitting up the ORs (|
) in the first (?<!(abcd_|bcde_| ... |wxyz_).*)
, a process that would begin something like
'/(?:(?<! abcd_.*)|(?<! bcde_.*)| ... |(?<! wxyz_.*))'\
'( (abcd_|bcde_| ... | wxyz))(?!.* (abcd_|bcde_| ... |wxyz_))'
without metaprogramming (archived Wikipedia site, as I see it), I don't think so.
If the lengths work out for you
My workaround is to make a copy of the file-with-one-speech-per-line, then take all the classification strings to the beginning of each line. Because other combinations will doubtless need regexes, I've figured the longest possible string (I think), with just
(alphabet) (only one of x, y, z)
( 26 - 3 ) +
(alphabet of in-a-row-letters)
26 =
49 possible classification strings
(I didn't note that no classification string may be repeated, but that's the case.)
I think that's the max we'd need, with something like
/(?<! (aaaa_|abcd_|bbbb_|bcde_| ... |wwww_|wxyz_).{0,50})/
for the negative lookbehind part.
I've experimented on my system1 and found that I can go up to .{0,251}
before I get a complaint about grep: branch too long in variable-length lookbehind assertion
. If I went really high (past the 50000
range into the into the .{0,70000}
, I got a complaint about grep: number too big in {} quantifier
.
I'm not really sure why the number, 252
is considered too big for the lookbehind case. Maybe it has to do with the amount of memory needed to carry out such a lookbehind.
I checked and found that my length would not still be okay if I needed to count characters, figuring that a max would be
49 classification strings * 5 letters + 1 space + 49 underscores = 295
which is greater than 251
. However, I figure I could rewrite the pattern as
/(?<! (aaaa|abcd|bbbb|bcde| ... |wwww|wxyz)_.{0,251})/
giving me
49 * 4 + 1 + 1 = 198
, easily within the allowed length. I figured I might as well use the complete 251
, just in case.
Feel free to comment about my misunderstandings of PCRE regexes. I love to learn, and I'd love to make this answer as accurate as possible.
Notes:
[1]
My system:
$ uname -a
CYGWIN_NT-10.0-19045 MY-MACHINE 3.6.3-1.x86_64 2025-06-05 11:45 UTC x86_64 Cygwin
$ bash --version | head -n 1
GNU bash, version 5.2.21(1)-release (x86_64-pc-cygwin)
how to resolve it's bug?
i still generate this bug.
how to resolve it?
In Vscode
Press "ctrl + shift + x" to open extension
search and install Laravel Intelephense
If for any reason, someone is forced to use PHP 5.2 with PHPMailer 5.2.28 and through an office365 account, just set $crypto_method to STREAM_CRYPTO_METHOD_SSLv23_CLIENT.
Works with smtp.office365.com, port 587, SMTPSecure = 'tls'.
Still, you need to have a PHP server which supports TLS v1.2 and (probably) openssl.
You can use this docker image: postgis/postgis
It contains PostGis
Docker image link:
https://hub.docker.com/r/postgis/postgis/
I'm not sure why but it seems that you have disabled (or removed?) NuGet package sources. For the WinUI 3 Gallery, your package sources should look like this:
Also make sure you have internet connection in case the required NuGet packages are not cached and VS needs to download them.
In PHP you can directly access the index like this:
$_FILES['expediente']['name'][1]
$_FILES['expediente']['name'][2]
$_FILES['expediente']['name'][4]
Your IDE thinks @json(...) is a JavaScript decorator (which only works in TS), but in Blade it’s just a server-side shortcut that Laravel turns into real JSON before sending to the browser.
Fixes
Ignore the red squiggles - Blade will compile it correctly.
Tell you editor "*.blade.php = Blade" (or Install a Blade extension).
Or Swap to PHP's json_encode if you prefer
php
roles: {!! json_encode($roles) !!},
In my case, this happened because for some reason my ~/.zcompdump file became corrupt. So I had to delete it with...
rm -f ~/.zcompdump*
And then start a new terminal session
I suggest you to try the firebase-js-sdk, it's very easy to integrate for any js or ts based app:
https://docs.expo.dev/guides/using-firebase/#using-firebase-js-sdk
What put me on the right track was thinkOfaNumber's answer to this question.
What I was having trouble with was that I should have used was
"$HOME\.android\debug.keystore"
NOT %HOMEPATH%\.android\debug.keystore
NOT $env:HOMEPATH\.android\debug.keystore
on PowerShell on Windows. The one with %HOMEPATH%
for some reason still outputted a SHA1 without warning me that the file was not found.
$ErrorActionPreference = 'Stop'
[string]$JdkRoot = Resolve-Path "C:\Program Files\Android\Android Studio\jbr"
[string]$JdkBin = Resolve-Path "$JdkRoot\bin"
[string]$DebugKeystoreFilePath = Resolve-Path "$HOME\.android\debug.keystore"
$ErrorActionPreference = 'Continue'
& "$JdkBin/keytool" -exportcert -alias androiddebugkey -keystore $DebugKeystoreFilePath -storepass android | openssl sha1 -binary | openssl base64 | Set-Clipboard; Write-Host "Copied to clipboard."
See also How to see Gradle signing report
Thank you @Jimi to mention the root of problem. As you said, Handle
of control was not created. DGV has a LoadingScreen
when user wants to assign value as DataSource
but, this screen is a form and must cover entire area of DGV. Meanwhile, this screen is visible in front of other controls and since the actual size and position of hidden DGV is not accessible, finally LoadingScreen
is displayed in wrong size and position.
Solution
Inside code lines where the LoadingScreen
must be shown, IsVisible
method can return actual situation to decide possibility of showing LoadingSreen
. As you can see in the following code, two factor for this purpose is checked: 1) IsHandleCreated
(As you mentioned) 2) DGV is visible on screen.
public static Form Create(
Control control,
bool coverParentContainer = true,
bool coverParentForm = false,
string title = "Loading...",
double opacity = 0.5)
{
var frm = new CesLoadScreen();
frm._title = title;
frm.Opacity = opacity;
if (!IsVisible(control))
return frm;
SetLoadingScreenSize(frm, coverParentContainer, coverParentForm, control);
control.Resize += (s, e)
=> SetLoadingScreenSize(frm, coverParentContainer, coverParentForm, control);
frm.Show(control.FindForm());
Application.DoEvents();
return frm;
}
public static bool IsVisible(Control control)
{
Rectangle screenBounds = Screen.FromControl(control).Bounds;
Rectangle controlBounds = control.RectangleToScreen(control.ClientRectangle);
bool isOnScreen = screenBounds.IntersectsWith(controlBounds);
if (!control.IsHandleCreated || !isOnScreen)
return false;
if (!control.Visible)
return false;
return true;
}
With intellij you can use Exclude classes and packages option in Run configuration -> modify options.
I use a module package working fine. the below step:
for html & core embla, you can get from this URL: https://codesandbox.io/p/sandbox/ffj8m2?file=%2Fsrc%2Fjs%2Findex.ts
npm install embla-carousel --save
import { AfterViewInit, Component } from '@angular/core';
import EmblaCarousel, { EmblaOptionsType } from 'embla-carousel';
import Autoplay from 'embla-carousel-autoplay';
import ClassNames from 'embla-carousel-class-names';
import {
addDotBtnsAndClickHandlers,
addPrevNextBtnsClickHandlers,
setupTweenOpacity,
} from '../../../../core/embla';
export class CarouselComponent implements AfterViewInit {
emblaOptions: Partial<EmblaOptionsType> = {
loop: true,
};
plugins = [Autoplay(), ClassNames()];
ngAfterViewInit(): void {
const emblaNode = <HTMLElement>document.querySelector('.embla');
const viewportNode = <HTMLElement>emblaNode.querySelector('.embla__viewport');
const prevBtn = <HTMLElement>emblaNode.querySelector('.embla__button--prev');
const nextBtn = <HTMLElement>emblaNode.querySelector('.embla__button--next');
const dotsNode = <HTMLElement>document.querySelector('.embla__dots');
const emblaApi = EmblaCarousel(viewportNode, this.emblaOptions);
const removeTweenOpacity = setupTweenOpacity(emblaApi);
const removePrevNextBtnsClickHandlers = addPrevNextBtnsClickHandlers(
emblaApi,
prevBtn,
nextBtn,
);
const removeDotBtnsAndClickHandlers = addDotBtnsAndClickHandlers(emblaApi, dotsNode);
emblaApi
?.on('destroy', removeTweenOpacity)
.on('destroy', removePrevNextBtnsClickHandlers)
.on('destroy', removeDotBtnsAndClickHandlers);
}
}
I am facing the same problem on my website. Somebody please help. https://4indegree.com
context
is present in the request parameters as you can see here in the v19 docs: https://v19.angular.dev/api/common/http/HttpResourceRequest
=cell("filename")
will return circular reference. I upgraded to 365 and it started.
Try it on a brand new file, totally blank sheet. Nothing will show until saved, after which you will get the answer, but if you have a lot of these throughout your spreadsheet, you will will the circular reference popping up more and more.
Yes, you have to buy a real ESP32/Arduino board to run your code. The cause of the error is because you did not connect any board or else if you are trying to work with arduino without having a physical board you can try a simulator like https://www.tinkercad.com/circuits
I my casen this error occure because i have tried to create whe same Index twice...
Another possibility would be:
select user_id, first_name, last_name
from table_name
where user_id between 1 and 3;
To filter oci custom images using --query to filter out Custom "operating-system": "Custom"
oci compute image list --compartment-id ocid1.tenancy.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --all --auth instance_principal --query "data[?\"operating-system\" == 'Custom']" --output table
I wager this is about versions of kotlin and the order in which to have ksp in your project.
This is how I did it:
my current kotlin version is 2.02
Step 1: add this to your to your module build.gradle.kts as a plugin
id("com.google.devtools.ksp") version "2.2.0-2.0.2"
IMPORTANT: then sync your project
Step 2: then add these to your implementation:
implementation("com.google.dagger:dagger-compiler:2.51.1")
ksp("com.google.dagger:dagger-compiler:2.51.1")
update to latest version then sync your project.
DO NOT ADD ALL THE CODE AT ONCE THEN SYNC YOUR BUILD WILL FAIL LIKE THE WAY MINE DID. Am using Android Studio Narwhal 2025.1.2
Cheers
This makes "is_locked" behave like a variable, not a function:
class Lock:
def __init__(self):
self.key_code = "1234"
self._is_locked = True # underscore to mark internal
def lock(self):
self._is_locked = True
def unlock(self, entered_code):
if entered_code == self.key_code:
self._is_locked = False
else:
print("Incorrect key code. Lock remains locked.")
@property
def is_locked(self):
return self._is_locked
def main():
my_lock = Lock()
print("The lock is currently locked.")
while my_lock.is_locked: # no () needed now
entered_code = input("Enter the key code: ")
my_lock.unlock(entered_code)
print("The lock is now unlocked.")
Anser from Raymond Chen
How can I detect that Windows is running in S-Mode?
https://devblogs.microsoft.com/oldnewthing/20250807-00/?p=111444
I've developed a Terraform script intended to execute the three key steps:
resource "azuread_application" "test-app" {
display_name = "test-app"
identifier_uris = ["https://test.onmicrosoft.com"]
sign_in_audience = "AzureADandPersonalMicrosoftAccount"
api {
requested_access_token_version = 2
}
single_page_application {
redirect_uris = ["https://redirect-uri.com/"]
}
required_resource_access {
resource_app_id = data.azuread_application_published_app_ids.well_known.result.MicrosoftGraph
resource_access {
id = data.azuread_service_principal.msgraph.oauth2_permission_scope_ids["offline_access"]
type = "Scope"
}
resource_access {
id = data.azuread_service_principal.msgraph.oauth2_permission_scope_ids["openid"]
type = "Scope"
}
}
}
resource "azuread_service_principal" "test_app_service_principal" {
client_id = azuread_application.test-app.client_id
}
resource "azuread_service_principal_delegated_permission_grant" "test_app_scopes_permission_grant" {
service_principal_object_id = azuread_service_principal.test_app_service_principal.object_id
resource_service_principal_object_id = data.azuread_service_principal.msgraph.object_id
claim_values = ["offline_access", "openid"]
}
However, I'm still encountering the same error during execution.
When I create the app by sending Graph API requests via Postman, everything works as expected. The script runs within a pipeline that uses the same credentials to obtain the token for Postman requests.
Additionally, the Azure Active Directory provider is configured with credentials from Azure B2C and not Azure AD so that aspect should be correctly set up.
provider "azuread" {
client_id = data.azurerm_key_vault_secret.ado_pipeline_sp_client_id.value
client_secret = data.azurerm_key_vault_secret.ado_pipeline_sp_client_secret.value
tenant_id = data.azurerm_key_vault_secret.b2c_tenant_id.value
}
Is this script missing something? Is there any difference between using the Graph API requests or terraform for creating app registrations?
No such file or directory: 'C'
In your error, Python thinks your file path is just "C".
This usually happens when the path you pass to open() is incomplete, incorrectly formatted, or broken up into pieces before open() gets it.
The "..." you’ve put in your code ,is not valid Windows paths can’t have "..." as a directory placeholder.
You must use the full exact path to the file.
Yes, you can run process type -Background and process compatibility - cross-platform on Kubernetes!
http://googleusercontent.com/generated_image_content/0 Create an image A lay practitioner who lives humble and enjoying in accordance without the principle such as "when hungry; he eats when tired, he sleeps" at a hut beside lake surrounded deep mountains in late Goryeo Dynasty.
When I moved to node 20.19.4, problem solved.
I think this should be documented in primeng website.
Thank you,
Zvika
use this> Process an Authorization Reversal
**POST:**https://apitest.cybersource.com/pts/v2/payments/{id}/reversals
No need to use a regex for this at all! They are a solution of "last resort" - certainly they are very powerful, but they are also resource heavy! As a rule of thumb, you're better off using PostgreSQL's built-in functions in preference to regexes.
Sorry about the state of the results parts of my post (see fiddle) but this new SO interface is God awful!
So, I did the following (all of the code below is available on the fiddle here):
SELECT
label,
REVERSE(label),
SPLIT_PART(REVERSE(label), ' ', 1),
RIGHT(SPLIT_PART(REVERSE(label), ' ', 1), 1),
CASE
WHEN RIGHT(SPLIT_PART(REVERSE(label), ' ', 1), 1) IN ('R', 'W')
THEN 'KO'
ELSE 'OK'
END AS result,
should
FROM
t;
Result:
label reversesplit_partrightresultshouldThomas Hawk AQWS456654SWQA kwaH samohT654SWQAAOKOKCecile Star RQWS456654SWQR ratS eliceC654SWQRRKOKOMickey Mouse WQWS456654SWQW esuoM yekciM654SWQWWKOKODonald Duck SQWS456654SWQS kcuD dlanoD654SWQSSOKOK
It's more general than the other code, because it'll pick out the first character of the last string, no matter how many strings precede the final (target) string.
So, to check my assertion that the "ordinary" functions are better than regexes, I wrote the following function (https://stackoverflow.com/a/14328164/470530) (Erwin Brandstetter to the rescue yet again - I also found this thread (<https://stackoverflow.com/questions/24938311/create-a-function-declaring-a-predefined-text-array >) helpful).
CREATE OR REPLACE FUNCTION random_pick(arr TEXT[])
RETURNS TEXT
LANGUAGE sql VOLATILE PARALLEL SAFE AS
$func$
SELECT (arr)[trunc((random() * (CARDINALITY($1)) + 1))::int];
$func$;
It returns a random element from an array.
So, I have to construct a table to test against - you can see the code in the fiddle - the last few lines are:
SELECT
random_pick((SELECT w1 FROM words_1)) || ' ' ||
random_pick((SELECT w1 FROM words_1)) || ' ' ||
random_pick((SELECT w2 FROM words_2)) AS label
FROM
GENERATE_SERIES(1,25)
)
SELECT
*,
CASE
WHEN RIGHT(SPLIT_PART(REVERSE(t.label), ' ', 1), 1) IN ('R', 'W')
THEN 'KO'
ELSE 'OK'
END AS result
FROM
t;
Result (snipped for brevity):
labelresultMouse Mouse WQWS456KOStar Cecile WQWS456KOMickey Star SQWS456OKStar Cecile RQWS456KOStar Hawk AQWS456OK
I also test to see that my records are inserted and that the data looks OK1
Now, down to the nitty-gritty! I'm using PostgreSQL 18 beta because I want to look at the new features in EXPLAIN ANALYZE VERBOSE
. Here's the output of that functionality for my query:
Seq Scan on public.lab (cost=0.00..2369.64 rows=86632 width=64) (actual time=0.013..49.298 rows=100000.00 loops=1) Output: label, CASE WHEN ("right"(split_part(reverse(label), ' '::text, 1), 1) = ANY ('{R,W}'::text[])) THEN 'KO'::text ELSE 'OK'::text END Buffers: shared hit=637Planning Time: 0.027 msExecution Time: 54.068 ms
Note: Planning Time: 0.024 ms Execution Time: 50.476 ms
The output for Guillaume's query are similar (trumpets sound) except for the last 2 lines:
Planning Time: 0.044 ms Execution Time: 150.038 ms
Over a few runs, my query takes approx. 33 - 35% of the time that his does. So, my original assertion holds true - regexes - Caveat Emptor!
You can install it easily like below (I've tried it in Fedora 42),
1. git clone https://github.com/sarim/ibus-avro.git
2. cd ibus-avro
3. sudo dnf install ibus-libs
4. sudo dnf group install development-tools
5. aclocal && autoconf && automake --add-missing
6. ./configure --prefix=/usr
7. sudo make install
Then just Press super (windows) key and search for Inuput method selector, then scroll below and click ... button for other language. Now you can search for avro or just select Bengali and select iavro.
When I moved to node 22.17.1, problem solved. Angular was installed and a new project was created.
Thank you,
Zvika
I tried answering you on mozilla but moderated new user there, so here again:
Currently not possible it seems. https://docs.google.com/document/d/1i3IA3TG00rpQ7MKlpNFYUF6EfLcV01_Cv3IYG_DjF7M/edit?tab=t.0
Problem is that it runs in a whole other process - you can copy buffer content ofc but you cannot access shared buffers from the main thread.
So even if you force enable usage its unlikely you get the same data in the buffer.
1.- u need config of issuer<processors???>
2.-u need certificate rsa from merchant<private key>
final - You need to define currency and brands <no all>
Is the issue just execution_timeout set to a low value? For me it was giving the zombie error but setting a higher value for execution_timeout solved it.
from datetime import timedelta
create_plots_task = PythonOperator(
task_id='create_plots',
python_callable=create_plots,
provide_context=True,
execution_timeout = = timedelta(minutes=120)
dag=dag,
)
Now can this be used to get into someone’s cell phone. I have a hacker who has taken over 4 emails and a bunch of my influencer accts. I believe she connects through my WiFi. Is any of this possible. I get reports daily in my file system and don’t know how to stop this. Someone please help
Thank you
Nancyb
"Regardless of the capacity mode you choose, if your access pattern exceeds 3000 RCU and 1000 WCU for a single partition key value, your requests might be throttled with a ProvisionedThroughputExceededException
error."
Reference: https://aws.amazon.com/blogs/database/choosing-the-right-dynamodb-partition-key/
it isn't working for me either. I'm only using it for a notion template that requires it so im quite confused!
You can first convert it to a matrix and then call avg
, which will calculate for each column. After that, you can aggregate by grouping according to the stock code and use toArray
.
select toArray(avg(matrix(BidPrice)))
from t
where date(DateTime) =2025.08.01
group by SecurityID
In my case, I simply modified the remote SSH path to Git's.
I added "remote.SSH.path": "C:\\Program Files\\Git\\usr\\bin\\ssh.exe"
to my user settings.
Make sure to use the actual path to your ssh.exe
file.
i know this is sucks, but unless someone changed that one goddamn line in the flutter dev teams, we should manually replace that ndkversion everytime we create a new flutter project, ask that gray mackall guyenter image description here
OG tags only work when the shared link points to a public webpage that already has those tags set in its HTML. If you’re just sharing text or a local asset from your app, the platforms won’t generate a preview.
For Twitter/LinkedIn, you’ll need to share a link to your post on your site (with OG tags for title, description, and image) instead of just passing text or an image. The share dialog will then pull the preview from that link.
So the flow is:
Make sure your post’s URL is live and has correct OG tags.
Share that URL (not just text/image) using Share_Plus or URL Launcher.
Test the link in each platform’s preview/debug tool to confirm the image shows up.
If the problem is restated as finding the white input boxes in the pdf (credit to comment from [K J](https://stackoverflow.com/users/10802527/k-j)) it can be solved fairly simply:
import fitz # PyMuPDF
import csv
INPUT_PDF = "input.pdf"
OUTPUT_PDF = "output.pdf"
OUTPUT_CSV = "output.csv"
def colour_match(color, target_color=(1, 1, 1)):
"""Return True if color exactly matches target_color, else False."""
return color == target_color
doc = fitz.open(INPUT_PDF)
# Page numbers are zero based
# pages_to_mark = list(range(len(doc))) # Default filter for all pages
pages_to_mark = [1] # Example: only process page 2
with open(OUTPUT_CSV, mode="w", newline="", encoding="utf-8") as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerow(["page_num", "x0", "y0", "x1", "y1"])
for page_num in pages_to_mark:
page = doc[page_num]
drawings = page.get_drawings()
shape = page.new_shape()
for d in drawings:
rect = d.get("rect")
fill_color = d.get("fill")
if rect and colour_match(fill_color, target_color=(1, 1, 1)):
x0, y0, x1, y1 = rect
cx, cy = x0, y1 # Lower-left corner for circle
# Draw circle on PDF page
shape.draw_circle((cx, cy), 2) # Radius = 2 points
# Write full rect coords and page number to CSV
csvwriter.writerow([page_num, x0, y0, x1, y1])
shape.finish(color=(0, 0, 1), fill=None) # Blue stroke circle, no fill
shape.commit()
doc.save(OUTPUT_PDF)
doc.close()
The following image demonstrates the solution by showing character boxes on page 2 which were not previously returned:
i am on Version 17.14.8 and this issue is still happening. These kind of issues is the reason I dont like working on Visual Studio. But my jobs kind of mandates it.
It's an alignment issue, int/float4 requires different alignment than int/float3. In my example the output pointer is passed as the first argument, therefore the second one starts with an offset of 4 bytes. That works for int3/float3, but a four element vector would be "cut in half", yielding the last two elements and two undefined ones as a result.
Dude, you Literally saved me.
I spent so much time on this. I'm honestly embarrassed to admit how much. But seriously you da man!!!!
You're not setting the position with pos_x and pos_y
The problem is here:
Enemy::Enemy(float pos_x, float pos_y)
{
this->initVariables();
this->initTexture();
this->initSprite();
}
This can also be overridden in the MUI Theme as follows:
const theme: ThemeOptions = {
components: {
MuiAutocomplete: {
styleOverrides: {
groupLabel: ({ theme }) => ({
fontSize: theme.typography.body1.fontSize,
color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.primary.light,
}),
}
}
}
}
https://mui.com/material-ui/customization/theme-components/
https://mui.com/material-ui/api/autocomplete/#autocomplete-classes-MuiAutocomplete-groupLabel
It appears that auto-reload and auto-preview are now turned off by default and turning it on is not something on one of the Preference tabs. It's a checkbox on the [Design] drop-down menu. I'm not privy to developer discussions so I don't know that it will stay there but that's where it is in version 2025.08.07
Something like
=OFFSET([Reference.xlsx]Sheet1!$B$1,COLUMN()-COLUMN($B$1),ROW()-ROW($B$1))
should work for you.
I am habving trouble digning in to my applications as this error is occuring
Server Error in '/' Application.
The model item passed into the dictionary is of type 'System.Web.Mvc.HandleErrorInfo', but this dictionary requires a model item of type 'StudentUploadMvc.ViewModels.PersonQueryViewModel'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Web.Mvc.HandleErrorInfo', but this dictionary requires a model item of type 'StudentUploadMvc.ViewModels.PersonQueryViewModel'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: The model item passed into the dictionary is of type 'System.Web.Mvc.HandleErrorInfo', but this dictionary requires a model item of type 'StudentUploadMvc.ViewModels.PersonQueryViewModel'.]
System.Web.Mvc.ViewDataDictionary`1.SetModel(Object value) +187
System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) +155
System.Web.Mvc.WebViewPage`1.SetViewData(ViewDataDictionary viewData) +78
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +137
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +188
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +26
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +40
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4063.0
Thanks strange error, but this post solved the problem Thanks Lampos
You should consider adding use client
at the top of your component. Read more about it on the official docs
With JPMS you’ll likely need to merge everything into a single module manually kind of like when you download p999 and bundle all assets into one clean package.
Your standard output stream (sys.stdout
) is being redirected or replaced by some startup configuration, site customization, or environment hook that loads before your code runs
Mark! In case you're still wondering how to do this, I just got it working by using [openPanelObj setDirectoryURL: [NSURL fileURLWithPath: NSS(woof)]], where woof is the filename concatenated to the directory path and NSS is a #define that makes an NSString from a C string. It was a problem for me for 13 years until I reread Michael Robinson's answer here: How can I have a default file selected for opening in an NSOpenPanel?
Thanks! I used the 2nd suggestion, by Michal and it worked! I appreciate your help!
I put the following in the first cell of every notebook needing wrapping:
from IPython.display import HTML, display
def set_css(): display(HTML('\n<style>\n pre{\n white-space: pre-wrap;\n}\n</style>\n'))
get_ipython().events.register('pre_run_cell',set_css)
I found that was a problem with the system gesture navigation.
The left back gesture at landscape mode is working strangely, while a right back gesture or three button navigation are working fine.
How did you manage to to convert YUV[] to RGB[]? I am trying to read the IntPtr param in the callback but i always get an Access Violation even if teh documentation states that depending on the type it should contain some data
how did you achieve this in the end? Finding memory regions in TTD recording that is.
Sure, there are several ways to convert images to PDF online. If you don't want to install any software or deal with watermarks, I suggest using a lightweight browser-based tool.
I recently used a free tool at PDFQuickly – Image to PDF and found it really fast and easy. You can upload JPG, PNG, or even WebP images and instantly convert them into a single PDF. There's no sign-up, no watermark, and it works across all devices — including mobile.
It also supports drag-and-drop reordering and bulk uploads, which is great when working with scanned images or screenshots.
Hope this helps someone looking for a quick and free solution.
With help from the other answer
<Box sx={{flex: 1, position: "relative"}}>
<DataGrid
style={{position: "absolute", width: "100%"}}
//...
/>
</Box>
The above code is a flex item. When placed in a flex container with flex-direction: column
, it will fill its remaining vertical space.
I cannot see any code so it is hard to imagine what could be going on exactly.
but in general you should be able to monkey patch about anything in javascript as far as I know.
exactly where is the entry point for mocha I do not know, but for example you should be able to assign your custom implementation to any object on any fuction
like even this should be legal, for how it should work I guess you could go read source. I have no idea precisely.
performance.now=()=>{
//do stuff
}
Telegram: @plugg_drop, How to buy We3d, 3xotics in Dubai, most reliable market .
In United Arab Emirates , most reviewed Coffee Shop, can i buy C0ca in Dubai? yes you can get plugg here. Order Ecst1sy, MDMA and other everyhwere here . We drop safely for turists in trip in Abu Dhabi... order Marihua, Ganja, Apothek, Medcine, … Delivery available 24/7 for Wasl , Al Ain prospects.
We have the biggest network in the Emirates, we can deliver you Has*ish, in Masdar City. Al-Bahiyah we can get as many flavors as you want at any time. How to order ketami in Dubai. Turism is growing fast in Arab countries, and our company have to provide plugg service in Abou Dabi, at Zabeel Park, and also Ibn Battuta Mall. We need adress to drop Flowers, its illegal and we try to provide you an discreet delivery. Some new comer dont know how to buy C0ca in Dubai, but its easy to buy lemmon haze here, also in Ajman. For that purpose you only need to contact the best in Al Dhafra Telegram ID: @plugg_drop. Just Send your order Canadian loud one of our best-seller in Oumm #al_Qaïwaïn.
Where to get vape , Cartridges in Dubai, How many puffs average available in Palm Island, UAE. It’s good place for a trip and you want to smoke Kush in Abu - Dhabi . Its why we have recored some visitor question and we rise the best place to obtains sparkling X3 Filtred in Charjah (Dubai) we have a structured delivery system , its handled for help any one to pay and get delivered Moonrocks in Fujairah, Dubai. No Prescription need
How is safe to buy LSD Bottler in Dubai with you .
We delivery C*cain in Abu Dhabi 24/7 Give us our location the delivery of ketam** or purple Haz* will be in a safe place near of you . The payment process in Dubai is fastly in the Emirates , we use Cryptocurenccies like USDT , TRONX, Ethereum, … you can also use your Visa Card for buy We3d in United Arab Emirates. Don’t worry about buy Fishscale in Jebel Ali Inbox @plugg_drop with telegram app.
While many ask how to buy exotics in Dubai we afford best service delivery of Molly and manies other stuff. We manage to have a good reliable customers plan . You can order Sparkling in Mushrif Park (Dubai) or you can get M0lly at Burj Al (Dubai) all is do in Dubai to like your trip .
Did you like Falkaw race in United Arab Emirates our service permitted that you can be drop your Kus8 directly there . Dubai is not only conservatory place, all the world are present here they need to have their lifestyle in al'iimarat alearabiat almutahidat. Best Camel races are in Dubai , you must see it for real.
While some countries have embraced legalization, buying weed in Dubai remains a serious offense. Tourists and residents must adhere to the local laws, as the authorities conduct stringent checks to maintain compliance.
Our Black Market in Dubai have some code to know who is Best Plugg , you can use Uber to buy Topshelf in Dubai , you can also Use Cyber Truck to buy Marihua in Abu Dabi.
Available In Dubai Market
We3d
C0ca
H1shis
MDM
L5D
Ecst1sy
2CB
Mushr00m
Her01n
Gummies
Puffs
Moonr0cks
Telegram: @plugg_drop
Add custom CSS to your Quarto presentation
Create a CSS file, for example custom.css
, and add this:
.outside-right {
margin-right: -5em;
}
.outside-left {
margin-left: -5em;
}
.outside-both {
margin-left: -5em;
margin-right: -5em;
}
Solved. I added the needed pypi repo. We have a company clone of pypi with approved libraries but also my team has its own where we place things we produce. That's where my plugin resides so my project needed to reference that repo too. Fair enough.
font-display: swap;
in your CSS code tells the browser to use the default font when the desired font is not available immediatly. As soon as it's available, the browser swaps the font.
You can change it to
font-display: block;
There is a library for exactly this usage profile_name_avatar.
Supports network and local image with caching and has placeholder and name as fallback.
import 'package:profile_name_avatar/profile_name_avatar.dart';
ProfileImage(
imageSource: "https://example.com/avatar.jpg",
placeholder: "assets/images/placeholder.png", // Fallback when imagesource fail
fallbackName: "J D", // Used when both above fail
radius: 100, // Optional
textStyle: TextStyle( // Optional
fontSize: 24,
fontWeight: FontWeight.bold,
color: Colors.white,
),
backgroundColor: Colors.orange, // Optional
)
Fallback example
enter image description here
You could put the format string into a query parameter:
sql = "select name, date_format(%s, birthdate) as date from People where name = %"
cursor.execute(sql, ("%Y-%m-%d", "Peter"))