Working on a NetUtils plugin if still interested!
https://github.com/macchie/capacitor-net-utils
Here is another example to illustrate the lifetime of mutable references:
struct Interface<'a> {
manager: &'a mut Manager<'a>
}
impl<'a> Interface<'a> {
pub fn noop(self) {
println!("interface consumed");
}
}
struct Manager<'a> {
text: &'a str
}
struct List<'a> {
manager: Manager<'a>,
}
impl<'a> List<'a> {
pub fn get_interface(&'a mut self) -> Interface {
Interface {
manager: &mut self.manager
}
}
}
fn main() {
let mut list = List {
manager: Manager {
text: "hello"
}
};
list.get_interface().noop();
println!("Interface should be dropped here and the borrow released");
// this fails because inmutable/mutable borrow
// but Interface should be already dropped here and the borrow released
use_list(&list);
}
fn use_list(list: &List) {
println!("{}", list.manager.text);
}
Let's understand what we're constraining here. I recommend reading the official Rust book in its original English version. A lifetime represents the valid interval of a variable from creation to destruction.
In function parameter and return value constraints, variables x, y, z with the same lifetime 'a means there exists an interval 'a where x, y, z are all valid. This interval starts at the latest creation point of all variables and ends at the earliest destruction point.
Lifetime annotations in struct definitions indicate reference lifetimes, showing that the struct's lifetime must be within the referenced data's lifetime, also determined by finding this interval.
struct ImportantExcerpt<'a,'b,'c,'d,'e> {
part1: &'a str,
part2: &'b str,
part3: &'c str,
part4: &'d Me<'e>
}
struct Me<'a>{
part5: &'a mut Me<>,
}
According to the rules, the struct's lifetime is within the intersection of 'a through 'e. The potential lifetime 'd should also be within 'e, due to the constraints of the Me struct. There are no constraints between 'a, 'b, and 'c.
Lifetimes also have 3 elision rules. Note the terms input lifetimes and output lifetimes, referring to parameters and return values:
Each reference parameter in a function gets a lifetime parameter.
If there's only one input lifetime parameter, it's assigned to all output lifetime parameters.
The first parameter of a method, unless it's a new method, is generally &self
, &mut self
, self
, Box<self>
, Rc<self>
, etc. If it's &self
or &mut self
, its lifetime is assigned to all parameters.
Circular References https://course.rs/compiler/fight-with-compiler/lifetime/too-long1.html
The most unique aspect of this example is that we typically explain lifetimes in functions, structs, and methods separately. But here it's complicated with various constraints. Consider combined approaches like:
impl<'a> List<'a> {
pub fn get_interface(&'a mut self) -> Interface<'a> {
// ...
}
}
In the method &'a mut self
, the parameter is actually &'a mut List<'a>
. Because methods can be written as functions:
pub fn get_interface(&'a mut List<'a> input) -> Interface<'a> {
// ...
}
This approach combines struct lifetime constraints with function parameter lifetime constraints. It's called "lifetime binding" or "lifetime entanglement", where the compiler thinks this borrow never ends. It means:
The mutable borrow of self
will last until 'a
ends, not just until the method call ends. After the method ends, self is still borrowed. So throughout the entire lifetime 'a
, you cannot borrow this struct instance again.
The lifetime of the returned value is bound to self's lifetime, meaning they are valid and invalid simultaneously, even if the Interface
object is dropped.
When writing code, follow this principle: avoid reference cycles like &'a mut SomeType<'a>
. Change it to:
struct Interface<'b,'a> {
manager: &'b mut Manager<'a>
}
impl<'a> List<'a> {
pub fn get_interface(&mut self) -> Interface {
// ...
}
}
But according to rule 3, the lifetime of &mut self
is assigned to Interface
. The compiler's inferred annotation would be:
impl<'a> List<'a> {
pub fn get_interface<'b>(&'b mut self) -> Interface<'b,'b> {
Interface {
manager: &mut self.manager
}
}
}
However, since the created Interface uses &mut self.manager<'a>
with lifetime 'a
, the compiler thinks the return value is Interface<'_,'a>
. This means the compiler's inference is incorrect, and we need to manually supplement:
impl<'a> List<'a> {
pub fn get_interface<'b>(&'b mut self) -> Interface<'b,'a> {
Interface {
manager: &mut self.manager
}
}
}
Final Recommendations
I emphasize again, avoid mutable reference cycles like &mut'a SomeType<'a>
, because of how Rust types behave with lifetime parameters (variance):
Immutable references are covariant with respect to lifetimes: meaning longer lifetime references can be "shrunk" to shorter lifetime references.
Mutable references are invariant with respect to lifetimes: meaning no lifetime conversions are allowed, they must match exactly.
Immutable circular references are acceptable. For example, modify struct Interface:
struct Interface<'a> {
manager: &'a Manager<'a>
}
// ... rest of the code with immutable references
Also avoid mutable reference propagation like & SomeType<'a>->AnotherType<'a,'a'>
, because you need to manually match lifetimes. Use Rc instead of struggling with this; the performance cost isn't significant.
A third example of mutable circular references: m1's type is &'_ mut S<'a>
, but later m1 creates a self-reference, making m1's type &'a mut S<'a>
, which violates our rule about avoiding such patterns:
struct S<'a> {
i: i32,
r: &'a i32,
}
let mut s = S { i: 0, r: &0 };
let m1 = &mut s;
m1.r = &m1.i; // s.r now references s.i, creating a self-reference
References: https://stackoverflow.com/a/66253247/18309513 and the answers it mentions.
I was having the similar issue, getting the same error code. So, I tried to research the documentation and it didn't say much.
Then I tried the following -
{
"json": {
"code": "hahhaa",
"site_id": "6249"
}
}
This was the body I sent if the request is of post type (mutation). Else, If you want to send the values in query parameters for "GET" request (query), then you can do the following -
?input={"json":{"code":"hahhaa","site_id":"4548652"}}
Add the above in the url at the last, obviously replacing the values inside and you are good to go.
Pre-Requisites -
Your trpc.procedure.input code looks something like this -
You installed pyserial in your Python39 environment. It's not there in your Python311 environment. So either you need to run your program in the Python39 environment or install pyserial in the Python311 environment.
As far as I understand, you want to go to a new page when the FamilyFetchingLoadingState state is triggered.
Is it possible that you created a ProfileBloc more than once? If you are done with a ProfileBloc, you need to close it. If you create another one without closing it, this may happen. If you are going to use it continuously, you need to share the same block object.
I can see that you posted this question on the Matillion forums yesterday as well. I believe that the outcome there was advising you to speak with your Azure admin at this point.
I wrote a function based on Nizam Mohamed's answer. Please find the code here: https://github.com/ilario/replicate_object_python.
An usage example is reported here: https://stackoverflow.com/a/79539546/5033401 or in the readme of the repository.
I think for DND in react DND Kit: https://dndkit.com/ is a great option to use.
Based on an answer that was given here, with the above file structure, it turns out the correct way to reference the font (from inside _typography.scss) is the following:
@font-face {
src: url('~../assets/FuturaCyrillicExtraBold.ttf');
font-family: 'FuturaCyrillicExtraBold';
}
I only got Override/replace jsdoc properties, when I used newProps & import(...) | newProps
other variations always persisted the JSDocs attributes of what was imported
I came to a conclusion that Facebook documentation is inaccurate and there is no such API. Learn to live with the fact that if you pass parameters with App Events, you can not see them anywhere, but just know what they are and use it as needed, e.g. for ads, target audience etc.
In my case, I installed the package that I'm trying to install with pip install .
. It turns out I have to make it editable using pip install -e .
so that the package that is run is in the src
not in the pip's directory
Why is using a dictionary slower than sorting a list to generate frequency array?
Apparently because one input is specially crafted to hack Python's dict implementation, so that building your dict doesn't take the expected linear time. It can take up to quadratic time, and likely they did that. See Python's TimeComplexity page (showing O(n) worst case time for each dict access) and Tutorial: How to hack hash table in Python 3 on CodeForces itself.
One way to defeat it is to simply add 1 to all the numbers, i.e., change
for num in arr:
to this:
for num in arr:
num += 1
Then the solution doesn't get stopped and rejected at the 1 second time limit but gets accepted with around 0.18 seconds. Despite doing more work, and without really changing the data like randomizing or sorting would. The effect is simply that Python's collision resolution takes different paths then, which is enough to thwart the brittle attack.
Another way, also accepted in around 0.18 seconds, is to simply not convert to ints, instead counting the strings. I.e., change
arr = map(int, input().split())
to this:
arr = input().split()
Wrap your entire element in an tag (if you want a link) or a (if you want to trigger a JavaScript function). To make the entire SVG clickable regardless of its shape, set pointer-events: all; on the element itself (or on a container element around it). This will ensure clicks register even in the transparent areas within the SVG's bounding box.
React Example (Link):
import React from 'react';
function ClickableSVG() {
return (
<a href="https://www.stackoverflow.com" style={{ display: 'block' }}>
<svg style={{ pointerEvents: 'all', width: '200px', height: '200px' }}
viewBox="0 0 100 100">
{/* Your SVG path here */}
<path d="M50,10 L90,90 L10,90 Z" fill="blue" /> {/* Example shape */}
</svg>
</a>
);
}
export default ClickableSVG;
React Example (Button):
import React from 'react';
function ClickableSVG() {
const handleClick = () => {
alert('SVG Clicked!');
};
return (
<button onClick={handleClick} style={{ display: 'block', padding: 0,
border: 'none', background: 'none' }}>
<svg style={{ pointerEvents: 'all', width: '200px', height: '200px' }}
viewBox="0 0 100 100">
{/* Your SVG path data here */}
<path d="M50,10 L90,90 L10,90 Z" fill="blue" /> {/* Example shape */}
</svg>
</button>
);
}
export default ClickableSVG;
I don't think (click) works on div elements.
Also, try removing the ; symbol from: <button (click)="updateCount();" type="button">Button so use this: <button (click)="updateCount()" type="button">Button
The solution involves adjusting the heartBeatToConnectionTtlModifier parameter in your STOMP acceptor configuration in broker.xml. This parameter controls how the broker interprets client heartbeats in relation to connection timeouts.
Implementation
Modify your STOMP acceptor configuration in broker.xml as follows:
<!-- STOMP Acceptor -->
<acceptor name="stomp">tcp://0.0.0.0:61613?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=STOMP;useEpoll=true;heartBeatToConnectionTtlModifier=10.0</acceptor>
Explanation
heartBeatToConnectionTtlModifier: This parameter determines how the broker calculates the connection timeout based on the client's heartbeat settings.
Default value is typically 2.0
Increasing it to 10.0 makes the broker more lenient with heartbeat timing
The formula is: connectionTTL = heartBeatToConnectionTtlModifier * max(clientHeartBeatSendFrequency, clientHeartBeatReceiveFrequency)
I think the best approach is to create a Configure event callback which rejects sizes that are smaller than you want.
e.g.
'f' ⎕wc 'form' ('event' 'configure' 'onconfig')
⎕cr 'onconfig'
r←onconfig W
⎕←W
:If W[5]<10
:OrIf W[6]<20
r←0
:Else
r←1
:EndIf
This onconfig callback will reject the Configure event by returning 0 if W[5] < 10 or W[6] < 20.
W[5] is Height and W[6] is Width
⎕IO is 1
Regards,
Vince
I've somewhat resolved the issue by removing the PostgreSQL driver from DBeaver, and then installing an older one manually.
The DBeaver project was exported from an instance with 42.5.2 driver installed, and imported into DBeaver with driver v42.7.4. This may have caused the issue.
Now connections are working again, although the error still pops up once in a while, for a few seconds.
Just to add.
xample extension ID in manifest.json for Manifest Version 3
"browser_specific_settings": {
"gecko": {
"id": "My chosen ID for this extension"
}
}
The extension ID is an email probably used for your dev account.
INT3
NOP
Write the two lines above in your code and CTRL+ F9 run
or F4 run to highlight bar, will run to INT3 and stop. F7 to continue and it skips a byte of code which is why I put in the NOP code.
good luck to ya.....
Thank you for your comment and link, Timothy Rylatt. I couldn't get it to work with the link that you sent, but through it and some other searching I got to a solution that seems to work.
This is the new onLoad. It saves variable connected to the document. The delete is necessary for opening multiple times (based this on this page: MS guide for document varialbles)
Sub OnLoad(ribbon As IRibbonUI)
Set myRibbon = ribbon
Logic.OnLoad
Dim lngRibPtr As Long
lngRibPtr = ObjPtr(ribbon)
ThisDocument.Variables("RibbonRef").Delete
ThisDocument.Variables.Add Name:="RibbonRef", Value:=lngRibPtr
MsgBox ThisDocument.Variables("RibbonRef").Value
End Sub
This is the refresh-function, I just call it when I want to invalidate anywhere.
Public Sub RefreshRibbon()
If myRibbon Is Nothing Then
If Not ThisDocument.Variables("RibbonRef") Is Nothing Then
Set myRibbon = GetRibbon(ThisDocument.Variables("RibbonRef"))
myRibbon.Invalidate
End If
Else
myRibbon.Invalidate
End If
End Sub
It calls on a special GetRibbon function that transforms the Long back to a IRibbonUI reference.
Public Function GetRibbon(ByVal lRibbonPointer As Long) As Object
Dim objRibbon As Object
CopyMemory objRibbon, lRibbonPointer, LenB(lRibbonPointer)
Set GetRibbon = objRibbon
Set objRibbon = Nothing
End Function
I based my solution mostly on this article: Lost state handling, Excel
It is however made for Word so I based my modifications on the comments in that article. It did not work since the "CopyMemory" that was used is not something inbuilt in VBA (at least my VBA was completely ignorant of it). So therefore I had to add a declaration of it at the top of my module. I found that here: CopyMemory-Function
Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
(lpDest As Any, lpSource As Any, ByVal cbCopy As Long)
Further sources that helped me along that could be of interest for someone still struggling:
https://learn.microsoft.com/en-us/office/vba/api/office.documentproperties.add
What happens to the Word session ribbon after closing and reopening a document with a custom ribbon?
There is still an issue however in that every time I refresh, the "invalidate" line(s) generate the message "Argument not optional" (but since the ribbon gets invalidated and correctly updated, it clearly is optional... whatever it is). All examples that I have seen so far just use it on its own like I do here, so I have not been able to figure out what argument I am supposed to use.
Cannot upvote, {PH1} SPACE is the solution, thank youuu
In my case it was not working because the profile configuration was in a module pom.xml while the project just imported that module, apparently enabling the maven profile in the IntelliJ maven window doesn't enable for all modules, but only the main one,
it may work as expected if using maven reactor, instead of multiple poms that work independently but are interconnected adding them as dependency
If your config.json
contains "credsStore": "desktop"
and you are on a Mac then your credentials are stored in the Mac Keychain app.
Open the app and look for a password called "Docker Credentials", it contains the address and the password for the registry.
We can use across(everything()) in reframe.
my_data |>
rowwise() |>
reframe(across(everything()))
# A tibble: 4 × 3
C1 C2 C3
<dbl> <dbl> <dbl>
1 1 5 9
2 2 6 10
3 3 7 11
4 4 8 12
C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\apksigner.bat sign ^
--ks "C:\Users\user\Documents\pro\jks\123456.jks" ^
--ks-pass pass:123456 ^
--ks-key-alias 123456 ^
--key-pass pass:123456 ^
--out signed_app.apk ^
final.apk
A short note for VS Code. (As an equivalent for solving from Osman Hal)
Put in your .csproj this
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
I'm a newer for the autodesk forge,and also meet this problem. Have you solved it? I have update the endpoint to the latest number, but stillnot working.
did you find a way to list all pages by ID from a Notion workspace?
Yes , it did crash opencv for a few months but the latest version of windows has no issues but if u still face any crashes then install python 3.7.6 or 3.9.6
get 1 solid answer from gmpy2 maintainer.
One last comment: the values of precision
, emax
and emin
are slight different between the IEEE standards and the MPFR library. If e
is the exponent size and p
is the precision (in IEEE terms), then precision
should be p+1
,emax
should be 2**(e-1)
and emin
should be 4-emax-precision
. This doesn't impact your question since it only changes emax
.
but in which document can i find this? i take a glance and do search in official gmpy document https://gmpy2.readthedocs.io/en/latest/mpfr.html, find nothing regarding this. why emin/emax/precision set that value? why not directly as emax=15, emin as -14, precison as 11 directly?
Helo based on the docs here https://developers.mekari.com/docs/kb/hmac-authentication/node#creating-hmac-signature
you may need to add header 'Date' also with Format must follow RFC7231. Example: Wed, 10 Nov 2021 07:24:29 GMT
shouldbe like this
curl --request POST 'https://api.mekari.com/qontak/chat/v1/broadcasts/whatsapp/direct' \
--header 'Authorization: hmac username="{{Username}}", algorithm="hmac-sha256", headers="date request-line", signature="{{Signature}}"' \
--header 'Date: Fri, 28 Mar 2025 10:04:47 GMT' \
--header 'Content-Type: application/json' \
--data-raw '{
"to_name": "Test User",
"to_number": "6281234567890",
"message_template_id": "60cccaa0-ccd9-4efd-bdfb-875859c4b50a",
"channel_integration_id": "56b60c3c-0123-46af-958b-32f3ad12ee37",
"language": {
"code": "id"
},
"parameters": {
"buttons": [
{
"index": "0",
"type": "url",
"value": "123456"
}
],
"body": [
{
"key": "1",
"value_text": "123454321",
"value": "otp"
}
]
}
}' | jq
voila!
After long digging into parameters and comparing explain (which were very different), I found out that "semijoin=on" in optimizer_switch was the issue. After turning "semijoin=off" queries were executed in less than sec.
It seems that, in my case, the semijoin was pushing the IN clause at the beginning of the execution list before all other where/join.... comes after and pushing the large output results to a materialized temporary table which was slowing down.
So it's more my experience than a real question, as I didn't find the answer on internet, but I hope that semijoin did get smarter in newest Mariadb versions.
Are you certain that there is no issue on the DB side, usually this occurs when there is connection reset happen with DB. Check the db logs as well for any connection failures.
Veeery late reply but I had same issue, for me it was solved by using frontslash in path instead of backslash.
See also Qt Project: WIP: Add jemalloc support https://codereview.qt-project.org/c/qt/qtbase/+/620056 .
first try this--> npx expo start -c
if not works
do this --> npx expo start --clear
this will work
look for config.xml and change from yes to no the value of <GUIConfig name="RememberLastSession">no</GUIConfig>
I solved similar problem by running following commands on terminal:
1- "flutter clean"
2- "rm pubspec.lock"
3- "flutter pub get"
(
[cmd]$ git checkout fix_4077
branch 'fix_4077' set up to track 'origin/fix_4077'.
Switched to a new branch 'fix_4077'
[cmd]$ git branch
dev
* fix_4077
[cmd]$ git merge cq
merge: cq - not something we can merge
Did you mean this?
origin/cq
[cmd]$ git merge origin/cq
cy.get('a[href="/admin/contents/109"]').contains('Content 6').click();
Please check with this solution you have click the specific link in the page.
2025: set FastAPI constructor debug input argument to True
(default value is of course False
):
app = FastAPI(debug=True)
According to this official example,
If our size is dynamic, we have to make sure our frame is visible before calling SDK.resize() with no arguments. In that case, we would instead do something like this:
SDK.notifyLoadSucceeded().then(() => {
// we are visible in this callback.
SDK.resize();
});
Other than resize()
, I haven't found any other suggestions yet.
If your data isn't governed by an underlying law involving regularities (which seems to be the case in your example), Knn is indeed what makes the most sense, and linear methods (Gaussian modeling, regression, etc.) won't help you.
The best is to use nonlinear methods. You could try using a random forest method. Decision trees create a tree structure that delineates areas and identifies clusters. You just need to limit the number of parameters to avoid overfitting (like max depth or min samples per leaf), especially on ambiguous data like the one you've shown.
Solved thanks to @Topaco's comments. Here is the updated code with padding disabled for intermediate chunks and previous block IV usage.
public static int ServeVideoChunk(Stream encryptedStream, Stream outputStream, long offset, int chunk)
{
using var aes = Aes.Create();
aes.Mode = CipherMode.CBC;
aes.Padding = PaddingMode.PKCS7;
aes.Key = Key; // Predefined key (128 bits)
var blockSize = aes.BlockSize / 8; // 16 bytes
// Seek one block before the offset if possible to get the IV
var seekPosition = Math.Max(0, offset - blockSize);
encryptedStream.Seek(seekPosition, SeekOrigin.Begin);
if (seekPosition <= 0)
{
aes.IV = Iv; // Predefined initialization vector (128 bits)
}
else
{
var iv = new byte[blockSize];
encryptedStream.Read(iv, 0, blockSize);
aes.IV = iv;
}
// Remaining ciphertext to decrypt
var delta = encryptedStream.Length - offset;
// EOF
if (chunk > delta)
{
// The delta is supposed to already be block aligned
chunk = (int)delta;
}
else
{
// Disable padding for intermediate chunks
aes.Padding = PaddingMode.None;
}
using var cryptoStream = new CryptoStream(encryptedStream, aes.CreateDecryptor(), CryptoStreamMode.Read);
var buffer = new byte[chunk];
cryptoStream.Read(buffer, 0, chunk);
outputStream.Write(buffer, 0, chunk);
return chunk;
}
Why is hello from provider printed last?
Order of Hook Execution:
When the Game
component is rendered, it first executes the custom hook useHoo
, which runs any useEffect
inside it.
Provider's useEffect: The useEffect in GameProvider
will fire after the component has rendered and React has finished processing all the hooks in game.jsx
.
Effect Execution Order: React schedules effects
to run after the render phase, so the order of execution you’re observing is because React first runs
the useEffect
in useHoo
, then runs the one in Game
, and finally the one in GameProvider
.
This may not be much of an answer, but rather a comment with a picture.
The absence of an "auto refresh" may be a good thing (Source: https://think-like-a-git.net/):
I just stumbled over this question and face the same challenge in our API.
My current idea for implementing this is to respond with a 201 - CREATED which semantically would mean, that a login request was created, but is not yet completed and the user has to do something with it.
With this response I also generate and return a challenge token that must be provided in combination with the two-factor code to another endpoint handling pending two-factor requests. The challenge token must be short lived, about 5 minutes or so.
I know this is an old question but 2000 people have come this way (as did I) and the answer didn't help me. I now figured out why I was getting the type mismatch when tying to Set a declared shape variable to a known Powerpoint shape object..... I had dimensioned a shape variable in my vba code . . . but that vba code was MS Project not Powerpoint, Project code was populating a powerpoint presentation. So
Dim shp as shape
(within the MSP Code) dimensioned a shape from the MSP object library. The required correction was:
Dim shp as Powerpoint.shp (or if not bound, "Dim shp as object" would work).
Here's a correctly formatted URL:
https://your.swarm.instance/api/v11/reviews/NNNNNN
he project aims to provide metadata for Win32 APIs.
Most developers will not consume the metadata directly and will instead use language projections that themselves consume the metadata and project the APIs into the idiomatic patterns of the languages.
I suggest you could refer to the link: https://github.com/microsoft/win32metadata/blob/main/docs/faq.md
If you want to get Win32 headers, I suggest you should use `Windows SDK` instead of `win32metadata`.
Please Below code using barcode multiple lines
^XA
^FO6,20
^BX,3,200
^FH_^FDFirst_0D_0ASecond_0D_0AThird^FS
^XZ
A bit late to the party, but one reason why this might not be working is that your shell may be stripping the quotes so that sqlplus
never sees them. Though if that were the case, I would have thought using '"..."'
would have worked...
Even still, have you tried escaping the quotes with \
? i.e.,
sqlplus -S -L USER/\"+oS0pocWEpvaX++CN3]8nM‘2eX\"@host @script.sql
Using DataFrameWriterV2, this is possible:
spark.range(10).withColumn("tmp", lit("hi")).writeTo("test.sample").using("iceberg").tableProperty("write.spark.accept-any-schema", "true").createOrReplace()
i have same issue!! 2 year and problem still there...
it is helpful for me ,thanks.
However, the official also has its own method, but I can not follow the official implementation, because the link is invalid, I can not find the right tool to make font.png
My answer is the same as the in above
docker container rm <container-name> & docker-compose up
is better than '&&' as it also works if you haven't yet built the container of have removed it by some other means.
The culprit was the pageable
variable which has sorted with start,desc
. By changing the sorting to other field like practitionerId
the error went away.
They can be set in config.py
by ROW_LIMIT
and SAMPLES_ROW_LIMIT
I recently came across the same issue and found a solution.
Using the authV2 extension for az cli the following command works:
az webapp auth update --resource-group RESOURCE --name APP --set 'identityProviders.azureStaticWebApps.registration={}'
Extract the common logic into a separate shared library (e.g., a .ClassLib
project).
Both Project A and Project B reference this library.
If a shared library isn’t possible, use conditional dependency injection:
In Project A, inject the direct implementation (no HTTP).
In Project B, inject the Typed HTTP Client (calls Project A’s API).
Ensures the same logic is executed in both cases.
Unnecessary overhead (network, serialization).
Risk of inconsistency if logic diverges.
Try reinstalling node, and clear cache
Navigate to Tools>Install Hyper CLI command in PATH
Yes, the application message size should be considered for better performance. If the message size exceeds the MTU (typically 1500 bytes), TCP will fragment the message, adding overhead with extra headers per fragment. A message size of 1400 bytes avoids fragmentation and is more efficient, while 3000 bytes will likely be fragmented, causing higher overhead and potentially worse performance. Aim for a size that fits within the MTU to avoid fragmentation.
Resolved by:
But cannot be sure if that was exactly what helped, maybe just the second reboot itself
Hi Barbara have you solved the problem ? I have same one too.
This bug has now been fixed and released. It is included in Neo4j version 2025.03.0, which is available for download from the deployment center (https://neo4j.com/deployment-center/), and it is also the current version on Aura (https://console.neo4j.io/).
I fixed it by change location of derive data Default => Relative
I did submit a bug report, and had the following kind statement from the developers
"Thanks for reporting. This problem is caused by a bug in the update process of our installers.
I'm afraid the only solution is for you to uninstall Spyder and manually install 6.0.5. That way Spyder will work again without any issues. You can download that version from:
https://github.com/spyder-ide/spyder/releases/tag/v6.0.5
We're really sorry for the inconvenience."
I followed this advice, and this worked well.
Adding to @Philipp's response if you want also Hot Reload to work you need change 5th step target dependencies to:
BeforeTargets="ResolveStaticWebAssets" AfterTargets="BundleScopedCssFiles"
Tools/Options.../Editor/Language/(Language Delphi)/Block Indent --> 4, Save;
Select a piece of code (the finished fragment), press Ctrl+D;
If the formatter didn't work, transfer the piece of code to another page of the editor and repeat formatting there.
PS: Additional formatting options:
Tools/Options.../Language/Formatter/Delphi
I think Trino does not support operations on most external databases
First stop all the processes that PGADMIN4 launched. Then delete these folders (using the example of Linux Mint 21): ~/.pgadmin4
, ~/.config/pgadmin4
. After that, start the application and everything works.
P. S. At the moment (March, 28, 2025) PGADMIN4 is already supported in the Python 3.11 version.
Maybe this answer will come to late, however I am currently on something similar.
When you want to utilize the BFF pattern. You are mostly on the right track. But you have to use the same client in keycloak for the frontend and backend and make it confidential and have the client secrets in the backend.
Making the client confidential does not mean it wont be reachable without the secrets. Only the token endpoints of the client for this example are not reachable without the clients secrets. (Resulting in a 401 without the secrets)
So the user still can authenticate itself against the client which then passes the authentication codes to your BFF which then exchanges them with the client secrets for tokens on the token endpoint.
A great article demonstrates a pixel-perfect approach using a single-color layer on a canvas. When the user clicks on the canvas, the script retrieves the click position and checks the color of the corresponding pixel in the image data. By matching this color to predefined values, you can accurately determine which image was clicked.
I'm not super confidant with UE5, but I have had this happen to me and I can't remember what I did to fix it.
Are you always using
UCLASS(BlueprintType)
As the class type? All mine use UCLASS()
Using my IT support hat, what about a fresh project? Where are you generating the new class? Same result inside an already working class?
HACCP Certification in Uganda ensures food safety by identifying and controlling hazards in the production process. Our expert HACCP Consultants in Uganda provide comprehensive guidance for seamless implementation, compliance, and risk management. Achieve global food safety standards, protect consumers, and enhance market credibility with our professional HACCP certification services.
Contact Us:
Phone: +91 8618629303
Email: [email protected]
Website: https://b2bcert.com/
Address : 383, 2nd floor, 9th Main Rd, 7th Sector, HSR Layout, Bengaluru, Karnataka 560102.
"types": [
"bingmaps"
]
worked - thank you 'Med Karim Garali'.
According https://bugs.eclipse.org/bugs/show_bug.cgi?id=393594#c9 , going into :
WORKSPACE\.metadata\.plugins\org.eclipse.cdt.core
and remove *.pdom files fix the problem. For my case, it have fix the problem.
CREATE TABLE People (
first_name VARCHAR(15) NOT NULL,
last_name VARCHAR(15) NOT NULL,
registration_date DATE DEFAULT (CURRENT_DATE) NOT NULL
);
Is it true, that reader, when reading from a field states gets a valid value of states, that existed at one point of the time (linearizability is present)? Can reader thread read some nonsense when reading value of states due to compiler reordering?
In your example each read of states
has no happens-before ordering with writes to states
.
According to the JMM that means every read is allowed to return any of the writes to states
that happen anytime during the program execution.
This includes writes to states
that happen later (in wall-clock time) in the same execution.
This also includes null
- the default initialization value for states
.
Here's the quote from the JLS:
Informally, a read r is allowed to see the result of a write w if there is no happens-before ordering to prevent that read.
To sum up:
In your docker-compose try to use the attribute 'port':3000 instead of expose 3000. You are already exposing the port in the dockerfile. What is missing is not the port for the container nextjs but the port of the container on the app-network.
Use relative import
In test1.py
, modify the import statement like this:
from .test import give_date
However, this will only work if you run the script from outside the naming package using python -m betacode.naming.test1
. If you directly run test1.py
, relative imports will fail.
in Angular v18 work:
constructor( @Optional() @Host() private el: ElementRef) {}
ngAfterViewInit(): void{
const cmp = (window as any).ng.getComponent(this.el.nativeElement)
console.log('instance', cmp)
cmp.disabled = true;
}
I've found the answer in the package documentation. This solves the problem I had, where the computer initialising the tracker was in a different timezone (London), to the participant using the tracker (Nairobi). The resulting output using the code below showed the correct hours of waking/sleeping in the summary CSV
Overwrite = TRUE was required to reprocess the input files.
Please remember that stating the different times zones (as in the code below) will change the config file, which will keep these settings until you reset or change them. It's probably easiest to move to a different output folder for trackers in different time zones. This should revert to default settings.
GGIR(datadir="/my/path/input",
outputdir="/my/path/output",
studyname = "My Study",
overwrite = TRUE,
desiredtz = "Africa/Nairobi",
configtz = "Europe/London")
You must upgrade the compose comiler version or downgrade the kotlin version to make one compatible. If you decide to downgrade the kotlin version, you must choose one compatible with the compose compiler version you are using.
For the kotlin version you are using(1.9.24), the recommended compose compiler version is 1.5.14, and for the compose compiler version (1.3.2), you must use 1.7.2 kotlin version
For more understandings check out this link :
https://developer.android.com/jetpack/androidx/releases/compose-kotlin?hl=fr
It works for me:
type NoArray<T> = T extends Array<any> ? never : T;
const obj: NoArray<{length: number}> = {length: 123}; // works fine
const arr: NoArray<[{length: number}]> = [{length: 123}]; // TypeError
Try to enable debbugging mode on your phone On Newer android phone Enable USB Debugging:
Go to Developer Options:
Try casting fake_A1
to complex64 with tf.cast(fake_A1,tf.complex64)
or with tf.dtypes.complex(fake_A1,0.0)
I think what you might be facing is due to the API changes in Android 12. According to this article on xda-developers
Google says Android 12 will always open such non-verified links in the default browser instead of showing you the app selection dialogue.
To fix this, you'll need to verify the ownership of the domain by adding assetsLink.json
to your domain.
https://developer.android.com/training/app-links/verify-android-applinks
I decided to go with combination of 1. and 5., plus file size check suggested by @Osyotr. User can select between "quick" and "strict" mode, plus command to invalidate cache.
original.filesize + '-' + encode(original.fullname)
, where encode
escapes any non-alphanumeric characters to ensure valid filename. Storing this info in filename allows quick mode to determine cache validity without reading either file.With the example program, here are some test cases and how they are handled in the two modes:
echo a > test.txt
- new file, no cache, both workecho b > test.txt
- modifies last write time, both workecho abc > test2.txt && mv test2.txt test.txt
- last write time unmodified but changes size, both workecho xyz > test2.txt && mv test2.txt test.txt
- last write time and size unmodified, quick mode fails but strict mode worksYou might want to use a class derivative of ActionFilterAttribute class. Just look for that derivative here at stack overflow. I use this for my REST methods and they are a good way of removing self referencing loops. The magic here is that you can assign interface\contracts that are allowed to get JSONed.
The only weakness here (or maybe someone has a solution) is to solve the employee/manager relationship.
To those having this problem. I had two issues producing the error:
Different variable type than specified in mysql. (I had varchar specified in mysql, however in my code I pasted int.)
Type in mysql smaller than required variable size. (I had varchar(4) specified in mysql, however in my code I pasted str of len 5+.)
Hope helps.
Agreed to @Ian Finlay.. My main file had special chars such as '()'. So it couldn't see the path probably because of it. I changed the folder name to normal chars and corrected the paths in Environment Variables. Then it worked!
Basically try not to use special characters in folder names :)
https://stackoverflow.com/a/67659159/30072585
isn't this working?
.next/
folder.I was testing a lot of approaches and by this moment this code deletes correct entries:
public function upsertGroupedSteps($recipeId): void
{
$groupedSteps = collect($this->steps)->map(function ($step, $index) use ($recipeId){
return [
'recipe_id' => $recipeId,
'step_number' => $index + 1,
'step_text' => trim($step['text']),
'step_image' => $step['image']
? $step['image']->store('guides-images', 'public')
: 'recipes-images/default/default_photo.png',
'created_at' => now(),
'updated_at' => now(),
];
})->toArray();
if ($this->recipeId != 0){
$newStepsNumbers = collect($groupedSteps)->pluck('step_number')->toArray();
// new piece of code 1
$newStepNumbersWithoutReshuffle[0] = 1;
foreach ($newStepsNumbers as $index => $newStepsNumber){
if ($newStepsNumber > 1){
$newStepNumbersWithoutReshuffle[$index] = $newStepsNumber + 1;
}
}
GuideStep::where('recipe_id', $recipeId)
->whereNotIn('step_number', $newStepNumbersWithoutReshuffle)
->delete();
// new piece of code 2
foreach ($groupedSteps as $index => $step){
if ($step['step_number'] != 1){
$groupedSteps[$index]['step_number'] = $step['step_number'] + 1;
}
}
}
GuideStep::upsert(
$groupedSteps,
['recipe_id', 'step_number'],
['step_text', 'step_image']
);
}
Now I have new issue: the step_number
are offset, that is, when deleting step number 2, steps with numbers 1 and 3 remain, now I need to somehow avoid this shift
https://developer.android.com/tools/logcat
You can use logcat to get logs of devices from all apps
I've encountered the same problem, have you solved it?
For anyone still clueless, binding.value()
call is something that calls your handleScroll
. As you may noticed, handleScroll
returns bulean and corresponds to "unbind scroll event or not"