import Svg, { Image } from 'react-native-svg';
<Marker
coordinate={coordinates}
title="Title"
>
<Svg width={60} height={60} style={styles.image}>>
<Image
href={imageUrl ?? undefined}
width={60}
height={60}
/>
</Svg>
</Marker>
getExternalStoragePublicDirectory() was deprecated in Android 10 but was undeprecated in API level 32, Android 12. That's why it's working fine on later versions and doesn't show a deprecation warning.
https://developer.android.com/sdk/api_diff/32/changes/android.os.Environment
i'm facing the same problem. Have you solved it ?
What helped me:
Close VS Code
Delete the content inside the workspaceStorage.
~/Library/Application Support/Code/User/workspaceStorage
For Windows it is:
C:\Users\username\AppData\Roaming\Code\User\workspaceStorage
And it should be faster / normal again
At least that was my final step and its smoothly running again 🙏
The latest security update of git, on at least Ubuntu 22.04 LTS (jammy), is buggy and breaks both gitk and git gui, And it seems the same bug affects Ubuntu 18.04.
The bug on Ubuntu launchpad: https://bugs.launchpad.net/ubuntu/+source/git/+bug/2116253
Git vulnerabilities that are fixed in the (partially broken) security update: https://ubuntu.com/security/notices/USN-7626-1
Since it's a security vulnerability it may not be wise to revert to an older version, unless you only use the affected commands on trusted repositories.
This is a simplistic example, but imagine if you needed 100 nodes of some application to serve traffic. If you wanted to have 100 still running after one AZ out of two went down, you would need to run 200 nodes, 100 per AZ. If you spread your application over 3 AZs, you would only need to run 50 in each AZ for a total of 150 to still have 100 when one AZ went down.
As you add more AZs to this architecture, you still benefit, but with diminishing returns.
This article explains the idea in more detail, and references Chapter 2 of Architecting for Scale, 2nd Edition by Lee Atchison:
picker.subviews[1].backgroundColor = UIColor.clear
this is how i remove color of selected item but do it after UIPickerView is loaded perfectly other wise it's going to crash
for current version of openblas/lapack (v0.3.30):
#define LAPACK_COMPLEX_CPP
#include <complex>
#include <lapacke.h>
I was facing a similar issue while working with Magento 2 and the Hyva theme.
After some investigation, I found that Tailwind CSS v4 is currently not supported by Hyvä.
I downgraded to Tailwind CSS v3, and everything started working as expected.
You can install it using:
npm install tailwindcss@3
Is this code used in pocket android app as well? BTW while running I got below error:
java.security.NoSuchAlgorithmException: PBEWithSHA256And256BitAES-CBC-BC SecretKeyFactory not available
Thanks,
You need a different type of auth token than what you are using.
This article talks about using a PowerShell library to get it using AADInternals
$teamsToken = Get-AADIntAccessTokenForTeams
Source:
https://medium.com/@mozzeph/automate-setting-work-location-in-teams-outlook-poc-deb7b05de08d
You’re definitely not alone — GitHub Advanced Security and Azure DevOps don’t offer the same level of features, even though they’re both Microsoft tools. GitHub’s security tooling, especially secret scanning and SAST, is more mature at this point. That “scan for generic passwords” option you mentioned is one of many features that just don’t exist in Azure DevOps yet.
We tested this ourselves — same repo in both platforms, and GitHub consistently flagged more secrets and potential issues. Azure DevOps, while functional, feels a bit behind and lacks the configurability GitHub has. From what I’ve seen, Microsoft isn’t aiming for full feature parity — they seem to treat the two as separate ecosystems.
The real challenge is maintaining consistency when your codebases live in both platforms. Right now, we’re handling it by adding an extra layer of scanning into our CI/CD pipelines, separate from what the platforms provide. That way, we get uniform results no matter where the repo lives.
So yeah — it’s not just a delay or a settings issue. The platforms are genuinely different. If consistent security checks matter, it’s worth building a layer of abstraction yourself, or using tools that don’t depend on the platform's native features.
Same here, it has stopped working, probably the error is related to git instead of gitk, I can see the following in the package management history:
Upgrade: gitk:amd64 (1:2.34.1-1ubuntu1.12, 1:2.34.1-1ubuntu1.13)
Upgrade: git:amd64 (1:2.34.1-1ubuntu1.12, 1:2.34.1-1ubuntu1.13)
Upgrade: git-man:amd64 (1:2.34.1-1ubuntu1.12, 1:2.34.1-1ubuntu1.13)
Yes I forgot to return the function value
The Server must be configured to trust the Client certificate as well. Have you set that up?
Another possibility is that the Server is using a CA signed certificate instead of a self-signed, in which case you must ensure the CA certificate is trusted on your side.
Closing the loop on this for anyone encountering this problem, in the app's MassTransit config (the first code block), you must specify the queue name here:
cfg.ReceiveEndpoint(<QUEUE NAME GOES HERE>, e =>
{
e.ConfigureConsumer<RequestConsumer_MyConsumer>(context);
(Unable to add a comment right now due to low rep)
But have you tried loading within a custom scope?
custom_objects = {"CustomLayer": CustomLayer, "custom_fn": custom_fn}
with keras.saving.custom_object_scope(custom_objects):
reconstructed_model = keras.models.load_model("custom_model.keras")
@adam-nagy - thank you for your response!
The error you get (the 'undefined' TypeError) is the same error I get if I try loading through the console directly in B360's viewer. But there I can also see the DiffTool source code being present when inspecting 'Sources' through the browser's dev tools. That is not the case in our own app - here the DiffTool source code is fx not present at all. I have also tried the snippet that you use in your test project (so loading with a config), but it doesn't seem to work for me (see image) - I still get the same error.
Screenshot of loading with config
Seeing as the DiffTool seem to not be present at all, I wonder if there's something wrong in our base setup?
I changed my "Auto Save" option to "onFocuschange" without turning off my "format on save" option and it worked.
In VSCODE search in the settings the word prune.
then enable the checkbox "Prune when fetching" for Git extension.
This is the only solution which worked with me. Restarting WinNAT will cause Windows to release ports that it's locking from use.
net stop winnat
net start winnat
Use the External Lib Folding plugin. It organizes External Libraries into a hierarchical tree structure, solving the auto-expansion issue with "Autoscroll from Source"
Günümüz şehir hayatında yarışmak kaçınılmaz hale geldi. Özellikle İstanbul gibi trafiği yoğun bir şehir de yaşıyorsanız, gönderilerinizin zamanında ulaşması her zamankinden daha zor bir hâl almaktadır. Tam da bu gibi durumlarda, acil kurye hizmetinizde. Beklemek istemediğiniz gönderiler, son dakikada çıkması gereken evraklar veya hızlı ulaşması gereken paketler için hızlı ve güvenli bir çözüme ihtiyaç duyarsınız. Firmamız, İstanbul’un tüm ilçelerine hızlı teslimat yapmaktadır. Kurye hizmeti almadan önce en çok sorulan sorulardan bir tanesi de fiyat konusudur. Her gönderi farklı özelliklerde olduğu için hepsinin ayrı fiyatlandırma yapılmaktadır. Bu nedenle firmamızın web sitesinde yer alan kurye fiyat hesaplama aracı, bu süreci sizler için kolaylaştırır.
Resubmit Your Sitemap in Google Search Console
– This helps notify Google of changes faster.
Use the URL Inspection Tool
– Submit specific pages (especially ones you edited) to “Request Indexing.”
Wait Patiently
– Google typically takes a few days to a few weeks to re-crawl and reflect changes. For low-authority or new sites, it may take longer.
Track Changes in Google Search Console & Analytics
– Monitor impressions, clicks, and rankings over the next 2–4 weeks.
Since you’ve just started and are experimenting with meta tags and body content, don’t expect overnight results. Normally:
Minor changes may take 1–2 weeks to reflect.
Bigger SEO improvements (rankings/traffic) can take 1–3 months depending on competition and keyword difficulty.
If you’re unsure what’s working and what’s not, SEO audits and content optimization services can help you grow faster without the guesswork. At BubbleWorld, we help websites like yours improve indexing, visibility, and Google rankings through strategic content updates and technical SEO.
That was very useful. It fixed my problem
Thanks !
I think that in JSON, you cannot have duplicate keys at the same level of an object. that each key in a JSON object must be unique.
# Create the data frame
data <- data.frame(
Weight = c(20, 25, 30, 35, 40, 45, 50, 55, 60, 65),
Thorax_L_Con = c(15.4, 15.9, 16.3, 16.8, 17.0, 17.5, 17.9, 18.1, 18.4, 18.7),
Thorax_L_Hei = c(15.9, 16.5, 16.9, 17.2, 17.7, 18.4, 18.8, 19.6, 19.9, 20.1)
)
# Set margins: bottom=2in, left=2in, top=1in, right=1in
# Convert inches to lines (approximate: 1 inch ≈ 4.8 lines)
par(mar = c(4.8, 9.6, 4.8, 9.6))
# Plot the first line
plot(
data$Weight, data$Thorax_L_Con,
type = "b",
pch = 16, # solid circle
lty = 1, # solid line
col = "blue",
xlab = "Weight (cg)",
ylab = "Thorax Measurements (mm)",
ylim = range(c(data$Thorax_L_Con, data$Thorax_L_Hei))
)
# Add the second line
lines(
data$Weight, data$Thorax_L_Hei,
type = "b",
pch = 17, # triangle
lty = 2, # dashed line
col = "red"
)
# Add a legend
legend(
"topleft",
legend = c("Thorax_L_Con", "Thorax_L_Hei"),
pch = c(16, 17),
lty = c(1, 2),
col = c("blue", "red")
)
Okay creating ViewModel at Top Level in Component and then passing it down to the lower Composable Components is One of the solution u can use it for your project but one of the best solution i encounter at my project is using "ViewModelStoreOwner"
here is the one by one step and other solution u can use in you project according to your need
Be Aware in this i use Koin for DI insted of Dagger Hilt
Problem Summary
Currently, I am facing an issue in handling ViewModel across two different Composables.
Scenario
I use the same ViewModel in two different Composables: Composable A and Composable B.
I create the ViewModel instance using: val viewModel: MyViewModel = koinViewModel()
Issue Observed
When I navigate from Composable A to Composable B using:
navController.navigate("${NavigationConfig.SWITCH_TEAMS_SCREEN}/${data_one }/${data_two}/${data_three}")
the ViewModel in Composable B acts as a new instance, resulting in: Loss of all data created or retrieved in Composable A.
Root Cause
Koin creates a new ViewModel instance per destination because by default: Each navigation destination recomposes independently and requests its own ViewModel and The ViewModel is scoped to the current navigation back stack entry.
Impact
Data loss between composables using the same ViewModel.
Redundant API calls or data recreation, leading to performance issues and inconsistent user experience.
Solution one : Share the data which is required to the composable B through Navigation
Solution Two : share the create the ViewModel at top level and share it to the lower components .
Solution Three: By default:
A ViewModel's scope is tied to either:
The Composable lifecycle (recreated on recomposition or navigation), or
The Activity/Fragment lifecycle if created in them.
What changes with viewModelStoreOwner? When you use:
val parentEntry = remember { navController.getBackStackEntry(NavigationConfig.MATCH_GRAPH) }
val viewModel: MatchScreenViewModel = koinViewModel(viewModelStoreOwner = parentEntry)
and use this view model in that composable .
Also remember , to access this same view model object in another screen evern after navController.navigate(). you need to use val parentEntry = remember { navController.getBackStackEntry(NavigationConfig.MATCH_GRAPH) }
val viewModel: MatchScreenViewModel = koinViewModel(viewModelStoreOwner = parentEntry)
for creating view model object in new compose. : it will work fine in all those screen which come under the defined NavGraph .
You are specifying that:
The NavGraph itself acts as the ViewModelStoreOwner.
The ViewModel instance is now scoped to the MATCH_GRAPH NavGraph route.
✅ Why is this beneficial?
Shared instance across multiple destinations within the NavGraph.
Both Composable A and Composable B will use the same ViewModel instance.
Data fetched or modified in one composable will be instantly available in the other.
Lifecycle-safe.
The ViewModel will remain alive as long as the MATCH_GRAPH NavGraph is in the back stack.
Once the NavGraph is popped from the back stack, the ViewModel is automatically destroyed, ensuring no memory leaks.
Optimized architecture.
Avoids redundant data fetching.
Prevents unnecessary ViewModel recreations, improving performance and user experience.
🔍 How it works internally?
navController.getBackStackEntry(NavigationConfig.MATCH_GRAPH) retrieves the NavBackStackEntry for MATCH_GRAPH.
Passing it as viewModelStoreOwner tells Koin:
“Use this NavGraph’s lifecycle to manage the ViewModel instance.
Compose will now reuse the same ViewModel across all composables under that NavGraph, unless the NavGraph is popped.
Solution Four : use scope ViewModel but it is applicable for Activity or fragments
(according to https://insert-koin.io/docs/reference/koin-android/viewmodel)
THIS IS KIND OF MAIN ISSUE SNIPPIT
@jesvin-palatty and @yoduh (thank you), I've tried to expand on these answers using defineAsyncComponent
, the following does indeed work, but I wonder whether my approach would be considered good practice?
<script>
import IconError from '@/components/icons/IconError.vue';
import {defineAsyncComponent} from "vue";
function getIcon(key) {
return defineAsyncComponent({
loader: () => import(`@/components/icons/Icon${key}.vue`),
errorComponent: IconError,
timeout: 3000
})
};
</script>
<template>
<IconBase><component :is="getIcon(item.icon)"></component></IconBase>
</template>
I just needed to reinstall the packages I have. Since I am using bun, I had to do the following commands:
> rm bun.lockb
> rm -rf node_modules
> bun i
The problem came from a corrupt and conflicting bun.lockb, and to ensure it's not corrupt, I had to remove it and the node_modules associated to it, and then reinstall the packages.
from moviepy.editor import VideoFileClip, AudioFileClip, concatenate_videoclips
# Load audio and clips
audio = AudioFileClip("your_song.mp3")
clip1 = VideoFileClip("clip1.mp4").subclip(0, 5)
clip2 = VideoFileClip("clip2.mp4").subclip(0, 5)
# Combine clips and add music
final = concatenate_videoclips([clip1, clip2])
final = final.set_audio(audio)
final.write_videofile("music_video.mp4", fps=24)
Run
In my case it was VPN that were blocking connection both to the rabbit mq server itself as well as to the management web-interface.
I also encountered this issue today; I am running Pop!_OS 22.04 and could reproduce it with git 2.34.1 (latest).
After updating to the latest stable Git using:
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt upgrade
# ...
Setting up git (1:2.49.0-2~ppa1~ubuntu22.04.1) ...
Setting up gitk (1:2.49.0-2~ppa1~ubuntu22.04.1) ...
# ...
and git --version
reporting git version 2.49.0
I can confirm that this no longer reproduces.
The safe_open_command_redirect
seems to only have been introduced since Git 2.43.7 (https://github.com/git/git/commit/67a128b91e25978a15f9f7e194d81b441d603652), so I have no idea why gitk
executed that in both our cases.
Maybe there was a mismatch when package maintainers updated the git
/gitk
packages?
In any case, updating the Git to latest stable seems to side-step this issue for now (but I'm sure that the package maintainers will fix this in the meantime).
The solution for me was to upgrade protobuf and use absl::string_view
instead of std::string
in my proto messages.
// message.proto
edition = "2023";
import "google/protobuf/cpp_features.proto";
option features.(pb.cpp).string_type=VIEW;
// Now each string field will be string_view in generated code.
I had the same problem that started today. I don't know how to fix it but you can downgrade an older version of both git-gui and gitk which seems to fix this for me
# show available versions:
apt-cache showpkg gitk
# remove installed version
sudo apt-get remove gitk
# install one version from the apt-cache. For me it was:
sudo apt-get install gitk=1:2.34.1-1ubuntu1
# do the same for git-gui:
sudo apt-get install git-gui=1:2.34.1-1ubuntu1
You can access the sidebar state with alpine like this, and then show your component only when it's open
x-data="{ get isOpen() { return $store.sidebar.isOpen } }" x-show="isOpen"
Can you explain a little bit more on what you did?
If you have 100k apartments, querying MapBox’s Tiles Query API for each one directly from the client would be way too much – you’ll quickly hit rate limits and your app will become unresponsive.
What I would do instead:
Set up a backend with a database (PostgreSQL + PostGIS) to act as a cache.
When your app needs to highlight buildings:
Send the apartment coordinates to your backend.
The backend checks if it already has the building geometry cached for that apartment.
If yes, it returns it immediately.
If not, it calls the MapBox Tiles Query API for that coordinate, stores the building feature in the database, and returns it to the app.
This way, each apartment only triggers one external API call ever, and future requests are served from your cache. You can also preload buildings in advance if you know which areas users will use.
Then in your Flutter app, load these building geometries as a GeoJSON source and style them however you like (e.g. with fill or extrusion layers).
I’ve used a similar approach for projects with large datasets. Directly querying MapBox for 100k points from the app is not scalable, but using a backend cache makes it feasible and performant.
Once you start doing it, pylint will enforce it for you in that it will inform you if you access an instance variable from another class beginning with underscore. It drives me mad because in the PyDev debugger in eclipse, all such underscore-variables in the Variables view are under a twistie called "protected variables" and if you have to go down several layers in a complicated object containing references to other objects, you have to click through all these twisties, twice as many clicks.
Add this lines in gradle.properties:
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
Try adjusting connection pool settings or increasing timeout, helped in my case with HANA CDS.
easiest method
.xxxx {
overflow: hidden auto; /*(left/right no bounce/scroll) */
overflow: auto hidden; /*(top/down no bounce/scroll) */
overflow: hidden; /*(no bounce/scroll)*/
}
you could use the "linkToFilteredSearchResultsAPI" from the original json to do an HTTP-Request from that logic app to that link. That will give you the needed results.
Best is to activated the managed identity of your logic app and assign it the needed rights on the app insights/log analytics workspace. Then you don't need credentials to obtain the alerts.
The below expression works
"".join(traceback.format_exception(exception_obj))
Just to add on this answer: https://stackoverflow.com/a/73597297/18322745 by @LuckyLooke
You can put the getADPs() function outside the store (e.g. in a separate file called 'ADPService.ts') and the you can fetch them in the store during state initialization as shown below:
import getADPs from '@/services/ADPService.ts';
export const listadoADPs = defineStore("listado", {
state: () => ({
adps: getADPs(),
}),
getters: {
...
},
});
Then the getADP function can be like:
export default function getADPs() {
const api = "your API URL";
return fetch(api)
.then((response) => response.json())
.then(({ data }) => (return data))
.catch((error) => console.log(error));
}
let use
nuitka --onefile --standalone --enable-plugin=pyqt5 ^
--include-data-dir="C:\Users\TranSon\AppData\Local\Programs\Python\Python310\Lib\site-packages\PyQt5\Qt5\translations\qtwebengine_locales=qtwebengine_locales" ^
--include-data-files="C:\Users\TranSon\AppData\Local\Programs\Python\Python310\Lib\site-packages\PyQt5\Qt5\resources\icudtl.dat=icudtl.dat" ^
--include-data-files="C:\Users\TranSon\AppData\Local\Programs\Python\Python310\Lib\site-packages\PyQt5\Qt5\resources\qtwebengine_resources.pak=qtwebengine_resources.pak" ^
--include-data-files="C:\Users\TranSon\AppData\Local\Programs\Python\Python310\Lib\site-packages\PyQt5\Qt5\resources\qtwebengine_devtools_resources.pak=qtwebengine_devtools_resources.pak" ^
--include-data-files="C:\Users\TranSon\AppData\Local\Programs\Python\Python310\Lib\site-packages\PyQt5\Qt5\resources\qtwebengine_resources_100p.pak=qtwebengine_resources_100p.pak" ^
--include-data-files="C:\Users\TranSon\AppData\Local\Programs\Python\Python310\Lib\site-packages\PyQt5\Qt5\resources\qtwebengine_resources_200p.pak=qtwebengine_resources_200p.pak" ^
main.py
I am getting compilation issue with -std=c++17 or c++20 , why so ?
root@94275cd4851f:/workspace/*************# cat test.cpp
#include <iostream>
#define JOURNAL_METHOD_VOID(...) myprint("tt", ##__VA_ARGS__)
void myprint(const char* str, ...) {
}
int main() {
// JOURNAL_METHOD_VOID("1", "2", "3");
JOURNAL_METHOD_VOID();
return 0;
}
root@94275cd4851f:/workspace/*************# g++ -std=c++17 -c test.cpp -o test_cpp17.o 2>&1
test.cpp: In function 'int main()':
test.cpp:2:61: error: expected primary-expression before ')' token
2 | #define JOURNAL_METHOD_VOID(...) myprint("tt", ##__VA_ARGS__)
| ^
test.cpp:9:5: note: in expansion of macro 'JOURNAL_METHOD_VOID'
9 | JOURNAL_METHOD_VOID();
| ^~~~~~~~~~~~~~~~~~~
I am getting compilation issue with -std=c++17 or c++20 , why so ?
useActionData in Remixjs works when you submit a form.
Webhooks in general are server to server communication so what you use as webhook you need to handle it otherwise.
I asked one of my friends, and he said that not using Turbopack might resolve the issue, and it did. Therefore, I just removed --turbopack
from the dev
script, and the issue was gone.
One flaky behavior that some people may encounter is that alternating letter-digit strings used as column headers can cause problems with the "Import Flat File" task in SSMS (SQL Server Management Studio V21).
I was trying to import a census data file with data headers of the form "B07013_M018". The "Import Flat File" would recognize that the first row was headers (and so would not include it as a row), but would nonetheless not use the headers, substituting "column1", . . . -- not useable with a large number of columns.
With some experimentation I found that column headers that begin with letters and end with numbers import OK, but not if trailing letters are added. So, for example: The task will accept "R9" as a column header, but not "R9D". This is true whether or not the strings are quoted in the import file. Both of these are, of course, perfectly valid field names in T-SQL. The behavior persists even when only a single column file is imported.
In our case the first build fails and succeeds on the second subsequent try (without clearing cache in between).
I am wondering now, how to work around this on CI, where the build just fails once and so the stage fails as well.
Any ideas? Beta 3?
Use patch-package to update the Kotlin version here node_modules/@react-native/gradle-plugin/gradle/libs.versions.toml, change kotlin = "1.9.24" to kotlin = "1.9.25"
[versions]
agp = "8.5.0"
gson = "2.8.9"
guava = "31.0.1-jre"
javapoet = "1.13.0"
junit = "4.13.2"
kotlin = "1.9.25"
assertj = "3.25.1"
Add the following to analysis_options.yaml
in the Flutter project.
formatter:
trailing_commas: preserve
You currently have:
setState(() {
futureWait = "$fifteen second wait for both futures completed";
});
futureWaitBool = true;
You’re asking:
You call setState(fn).
Flutter:
After the current Dart event loop completes (i.e. after your function returns), Flutter’s scheduler triggers a rebuild for all dirty widgets before the next frame is rendered.
setState
completes, before the next frame is rendered.setState(() {
futureWait = "...";
});
futureWaitBool = true;
No race condition (because both statements run sequentially on the main isolate).
However, you updated futureWaitBool
outside of setState
, so:
futureWaitBool
changed.setState
is called later.Wrap all state changes that affect your UI within the same setState()
call:
setState(() {
futureWait = "$fifteen second wait for both futures completed";
futureWaitBool = true;
});
This ensures:
Official docs state:
“Calling setState notifies the framework that the internal state of this object has changed ... which causes the framework to schedule a build for this State object.”
Summary:
setState
completes.setState
implementation.No race conditions here. setState:
Always update all UI-affecting state inside setState() for predictable behavior.
A complete alternative to regular expressions would be Scripal. It's fast and has a very intuitive syntax with short keywords. Scripal can interpret numbers and ranges directly!, uses templates, look for files, knows comments, compare phrases for similarity and much more. Please look at https://github.com/scripal-git/scripal
it runs fine in IDEA. What compiler are you using?
I had same problem.. I just refreshed the page and worked fine 😄
Thank you for your help, this worked for me !
Found this while trying to figure out why my view was "Flat".
Turns out that only option 1 and 3 are supported in Excel. Option 2 is displayed as "Flat" instead of a tree view like in Azure DevOps.
Azure Devops Query Type Dropdown (Seems like I cannot embed images yet)
I have developed a very efficient and accurate method to find n-th prime number which is given in https://www.researchgate.net/publication/392595891_A_code_to_find_large_prime_numbers_using_Prime_number-Jump_number_Equation_PJE
It is based on a new method (Prime number-Jump number Equation, my invention). It is very fast, reliable, and accurate method without memory restriction.
For Angular 19 try replacing browserTarget with buildTarget.
Instead of @Test
you can use @RepeatedTest(value = 123)
to repeat a test x number of times.
CURLOPT_REFERER у вас указан верно, но Вы пытаетесь вернуть в Location $data, а вам туда надо вернуть ссылку.
Например как получить 301 Location по прямой ссылке на которой настроен 301 редирект:
<?php
function getLocation($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if (in_array($http_code, [301, 302])) {
if (preg_match('~Location: (.*)~i', $data, $match)) {
return trim($match[1]);
}
}
return $url;
}
It sounds like you may have authenticated with the offline_access scope included in the authorisation link at some stage and so you have got a refresh token.
At a later stage when reconnecting you didn't include offline_access and so the latest connection only lasts 30 minutes and does not have a refresh token associated with it.
I've tried using contentEditable
. Here is the solution
If your MCU is NXP S32K144,you can use the commands as follows to enable security.
JLink.exe -device "S32K144 (allow security)" ...
A complete alternative to regular expressions would be Scripal. It's fast and has a very intuitive syntax with short keywords. Scripal can interpret numbers directly, uses templates, look for files, knows comments, compare phrases for similarity and much more. It has a linear complexity, so it's ideal for large strings.
Please look at https://github.com/scripal-git/scripal
I just find the answer for this qeustion.
Sorry for the duplicated question.
Below post asked exactly same thing with mine.
Thank you for answer Gavin Simpson!
The "invalid nonce" error occurs because you're using two different nonce values one from the JSR223 PreProcessor and another from the response header. Amazon Cognito requires the same nonce to be used consistently throughout the authentication flow. To fix this, generate the nonce once using your PreProcessor and use that same value in the authorization request. Avoid using or overwriting it with the response header value.
the code can work.
tip: If millis - now
is negative, the task will be executed immediately. Make sure to handle this according to your business logic.
You could use this repo
https://github.com/aws/karpenter
and this path:
charts/karpenter
Can you please share full code with error.
My guess is you need to upload blob data and you are sending some wrong type of data. And without looking into code can't help
This workaround worked for me (VSCode version 1.99.3):
Create a new profile (Preferences -> Profiles -> New Profile -> Create)
In the Default profile, in the list of Folders & Workspaces, move any items you want to get rid of to the newly created profile using the pencil button (Change Profile)
In the new profile, remove the items using the x button (Delete Path)
Since today, return parameter works again. So, it seems that PayPal fixed this issue on their side.
A slightly cursed "improvement" to attila's answer would be
@lambda f: lambda *args: dict(f(*args))
def optional_oranges(apple, orange = None):
yield "apple", apple
if orange is not None:
yield "orange", orange
optional_oranges(1) #{'apple': 1}
optional_oranges(1,2) #{'apple': 1, 'orange': 2}
do you have Crashlytics set up? If you do, try checking the logs they might give you some clues. Without any context, it's tough for anyone here to help out.
If you are in shell/bash, and want to search for all PRs created after say 4 weeks ago, and not a specific date, you can try a variant of what @artur replied, using the excellent gnu date
utility, e g:
AGODATE="$(date -d "-4 weeks" '+%Y-%m-%d')"
echo $AGODATE
gh pr list --state all --search "created:\>$AGODATE"
Or as a oneliner:
gh pr list --state all --search "created:\>$(date -d "-4 weeks" '+%Y-%m-%d')"
This works fine in git-bash on windows also.
Have not tested macos, since it is bsd lineage, it might not have gnu date and the date it has might not have this.
Note: I am including all PRs, open /closed/merged by setting the --state
switch explicitly. If not, it will just show all open PRs.
execute '!echo ' . '"' . escape(line, '#') . '"'
I don't understand what you mean by a race condition. A race condition typically occurs when different parallel threads try to access/modify the same shared resource at once. But Dart is a single threaded system.
The only kind of conflicts you may get are perhaps from the various async
events running in the event loop. Only one event runs at a time. Another event will only run if you yield away your control using await
(or other equivalent syntaxes).
Each of the read and write statement is always "atomic" in Dart in the sense that only one event is running at a time. If at all you need to enforce logical transactions that involve blocks of code, just make sure you don't yield away control using await
when you don't want to.
The provided callback is immediately called synchronously. It must not return a future (the callback cannot be async), since then it would be unclear when the state was actually being set.
Calling setState notifies the framework that the internal state of this object has changed in a way that might impact the user interface in this subtree, which causes the framework to schedule a build for this State object. [1]
Flutter's SchedulerBinding has four major phases, one of which is idle
and the rest are related to building and rendering a "frame". [2]
New events from the event loop are only popped and executed in the idle
phase. [2]
Flutter uses the event loop to schedule frame callbacks. When Flutter determines that a new frame is needed — due to user interactions, animations, or state changes — it calls methods like scheduleFrame on the WidgetsBinding. This schedules a callback that gets added to Dart’s event loop. [3]
If you follow the Flutter framework internal code [4], you can see that setState
ultimately only does the work of setting some flags that say to the framwork: "if you are trying to schedule a frame, please do it, cause there are some widgets whose states have changed".
The importance of this is that, unless these flags show that there is a dirty widget (or some other reason like this), Flutter will not schedule a new frame even if it can. [2]
The original version of this API was a method called markNeedsBuild, for consistency with RenderObject.markNeedsLayout, RenderObject.markNeedsPaint, et al.
However, early user testing of the Flutter framework revealed that people would call markNeedsBuild() much more often than necessary. Essentially, people used it like a good luck charm, any time they weren't sure if they needed to call it, they would call it, just in case.
Naturally, this led to performance issues in applications.
When the API was changed to take a callback instead, this practice was greatly reduced. One hypothesis is that prompting developers to actually update their state in a callback caused developers to think more carefully about what exactly was being updated, and thus improved their understanding of the appropriate times to call the method.
In practice, the setState method's implementation is trivial: it calls the provided callback synchronously, then calls Element.markNeedsBuild. [1]
So it does NOT matter how many times you call it, where in the function you call it, or the callback that you pass to it, setState
only does the job of setting the widget as dirty.
So all of these codes are equivalent (among several other variations):
setState(() {
futureWait = "$fifteen second wait for both futures completed";
});
futureWaitBool = true;
setState(() {
futureWait = "$fifteen second wait for both futures completed";
futureWaitBool = true;
});
futureWait = "$fifteen second wait for both futures completed";
setState(() {
futureWaitBool = true;
});
futureWait = "$fifteen second wait for both futures completed";
futureWaitBool = true;
setState(() {});
I tried to find an exact answer to when exactly does the rebuild occurs, but I haven't yet found it.
But I can tell, based on my understanding, that setState
will not interrupt/stop an ongoing event (such as an onclick
callback). The frame will be properly scheduled for later through the event loop.
1. https://api.flutter.dev/flutter/widgets/State/setState.html
2. https://youtu.be/_gIbneld-bw?si=P0YQfBiciReW3OKb
3. https://medium.com/@pomis172/understanding-flutter-rendering-pipeline-build-phase-cf7e05aa12f1#:~:text=When%20Flutter%20determines%20that%20a%20new%20frame%20is%20needed%20%E2%80%94%20due%20to%20user%20interactions%2C%20animations%2C%20or%20state%20changes%20%E2%80%94%20it%20calls%20methods%20like%20scheduleFrame%20on%20the%20WidgetsBinding.%20This%20schedules%20a%20callback%20that%20gets%20added%20to%20Dart%E2%80%99s%20event%20loop.
4. https://github.com/flutter/flutter
If you use intellij, try the AEM Repository Tools plugin
https://plugins.jetbrains.com/plugin/27802-aem-repository-tools
2025 update: I got
Searching for inspections failed: undefined method map for nil:NilClass
report.issues = results['items'].map { |item| Issue.new(item) }
and was able to fix it by replacing PBXFileSystemSynchronizedRootGroup with PBXGroup in ios/Runner.xcodeproj/project.pbxproj
You can use vlookup with 1.
Make 1 table
A | B | |
---|---|---|
1 | 30 | $15 |
2 | 51 | $13.75 |
3 | 101 | $13 |
4 | 301 | $12.50 |
Now if you have data like this
C | D | |
---|---|---|
1 | Quantity of Shirts | Cost |
2 | 40 | =vlookup(c2,$a$1:$b$4,2,1) |
3 | 103 | =vlookup(c3,$a$1:$b$4,2,1) |
You will get the result.
Once the flag is enabled on the yb-master process and a new YCQL table is created, the metrics table should get created automatically (confirmed by looking at source code).
Please create a test table in YCQL and the metrics
table will be created automatically.
Thanks for you answer.
That's great help to me.
It seems that the above can be achieved using MERGE sql function as outlined in the documentation:
https://docs.databricks.com/aws/en/sql/language-manual/delta-merge-into
IMHO
*(const char*)pattern + index)
does not work correct, something like
if (((const char*)mem)[idx++] == ((const char*)pattern)[index])
might compare the bytes
nltk.download('averaged_perceptron_tagger_eng')
use this to download the missing package
or use nltk.download( )
this will show an intractive package downloader, seach and download whatever you are missing.
Hello,
The code for /r is '%0D'
Get in the zone and take over the court in Basketball Bros, where timing and fast moves are the keys to every sweet victory.
I'll mainly defer to the other answer, but in simple terms, I would default to Microsoft Entra External ID because that is the new B2C auth product going forward. Azure AD B2C is no longer available for new customers and is only open to existing customers going forward. Entra External ID is Microsoft's new product for this going forward.
No, Item(isLoading: true)
is not a constructor call — it is a pattern match using Dart's record/class pattern matching syntax (available since Dart 3).
example:
var rec = (25, "name", isAdult: false, weight: 60.09);
we can declare a record like this.
You're on the right track. To build a video streaming app, it’s important to break things down: capture → encode → package → deliver → playback. Start by defining your use case: Is it low-latency live video like conferencing? Or a one-to-many broadcast stream?
Instead of reinventing the wheel, explore existing protocols like WebRTC for real-time and HLS/DASH for traditional streaming. Tools like FFmpeg are a must-know for encoding and muxing. Also, understanding basic networking (TCP/UDP) helps, but you won’t need to build protocols from scratch.
If you're looking for a real-world approach, platforms like VPlayed or Muvi can handle encoding, delivery, and multi-device support—all while letting you retain full control over infrastructure and monetization. That can save you from building everything from the ground up while still giving you room to customize.
Once you understand the layers—media capture, codecs, containers, delivery—you’ll be fully equipped to create a video streaming app: https://www.vplayed.com/build-video-streaming-app.php
a = 1324343032.324325235 * 1000 / 1000
print(f"{a:.3f}")
output -> 1324343032.324
I have one query if I use Whatsapp cloud API to build whatsapp like custom chat app what I use Webhook or websockets.
Simply Install the pm2 globally using this command sudo npm install -g pm2
this will resolve the issue
For my case.
I am faced the same problem In Angular Material Version 19.
Just add below line your css:
:host ::ng-deep .mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{
border: 1px solid transparent !important;
}
This will remove the black border
GANs are not the best choice for text-to-image generation. Theyre unstable and outdated for this task. Instead, consider lightweight diffusion models like Kandinsky, which offer better quality, are easier to fine-tune, and require less computer.
* Sorry for my English. I’m still learning, so there might be some grammar or syntax mistakes.
We can add couple more to the list.
Apache Kafka
Apache Camel
Hibernate
gRPC (Google Remote Procedure Call)
RMI (Remote method Invocation)
JEB (or EJB as it was known before, albeit it's being widely abandoned)