Good afternoon!
I recently automated a dynamic website like universal assistance, where interacting with fields like destination and date pickers was challenging due to JavaScript. Using Selenium, I handled this by employing explicit waits and JavaScript execution.
For example, to select a destination:
python Copy code wait = WebDriverWait(driver, 10) destination = wait.until(EC.element_to_be_clickable((By.CLASS_NAME, 'item-opener'))) destination.click()
europe_option = wait.until(EC.element_to_be_clickable((By.XPATH, "//li[contains(text(), 'Europa')]"))) europe_option.click() And for setting a date directly:
python Copy code driver.execute_script("document.getElementById('start-date-id').value = '2024-12-01';") This approach helped me overcome the dynamic elements effectively. For similar projects, you can check out examples on nandomenus.co.uk.
I can confirm that for a Dev/test instance the plugin works.
So it seems like ADX version 1.0.9070.26640 is the root cause of the problem.
I would state that calling the poll(timeout) has the downside that it reads and waits for messages to be produced, until the poll limits are reached.
Example: Read the offset of the last message in the partition, seek to that position, then call poll(30s).
If the partition has 1000 more records meanwhile, the poll will return quickly. If the partition does not get any new messages, the poll will wait for 30 seconds for new data.
Setting max.poll.records=1 does not help.
The maximum number of records returned in a single call to poll(). Note, that max.poll.records does not impact the underlying fetching behavior.
The setting fetch.max.bytes=0 should do the trick, however.
what about:
def module_is_available(the_path,module_folder_name):
return module_folder_name in os.listdir(the_path)
or if you want to check all paths currently in sys.path:
def module_is_available_in_sys_path(module_folder_name):
for p in sys.path:
if module_is_available(p,module_folder_name)
return True
return False
I ran into the same problem myself on the Chainway C66 device with DeviceApi 2019.8.19.
I found that if you open the Chainway App Center app and open the UHF option it will initialize it for you and then it should be open for the SDK in my own app.
Anyone found a proper fix for this?
select emp_id,AsofDate,Comment FROM ( SELECT emp_id,AsofDate,Comment, lag(AsofDate) over(partition by emp_id order by AsofDate)prev_date, lag(AsofDate,2) over(partition by emp_id order by AsofDate)prev_pre_date from Employees_data where Comment = 'Absent') WHERE prev_date=AsofDate-1 and prev_pre_date = AsofDate-2;
Remove .Date from DateTime.Now.Date and try this, it should work.
var todayChanges = kbEntities.Changelogs.Where(c => EntityFunctions.TruncateTime(c.creationdate) == EntityFunctions.TruncateTime(DateTime.Now) && (c.name == ChangelogBL.ChangeLogName.ChangedKB.ToString() || c.name == ChangelogBL.ChangeLogName.Imported.ToString())).ToList();
Any update? inform me please..
You can simply create a colorset in the Assets.xcassets
and use it like this.
Button {
} label: {
Image(systemName: "play.fill")
.resizable()
.aspectRatio(contentMode: .fit)
.foregroundStyle(Color("imageColor"))
.frame(width: 60, height: 60)
}
This was caused by docker compose trying to load a .env file in my path. The env file had variables not supported by docker due to format issues. Example, variables with '-' in their names.
Please try with this command
npx react-native start --experimental-debugger
Ok, this is what fixed it for me: remove the project folder, and clone the repo again. Why it works, I do not know.
We tested it with no react projects, and it seemed to work, but something was off in the TSX files and this is where Intellisense was bogged down. Cloning the repo fixed it after trying: clean install, cleaning all VS code folders from the Mac, and running the project in a VS without any plugins failed.
how was this sorted out? We are approaching the same journey now.
I got the exact same problem, the "aW-" technic did not work for me π₯ I'm still stuck in "still running" on my conversions. When I try it, I get a response saying that my ID must be a number or zero.
I faced the same error. To resolve it, I first ran βnpm uninstall openaiβ , followed by βnpm install [email protected]"
All these dependencies part of jcenter which are not supported anymore. find alternate dependencies or download these and use as a module.
Whenever i do this (my model is Offer, slug is availableWeight and id is weight), it gives me an error P3006 saying this migration failed to apply cleanly to the shadow database.
Did you have to change your model to ensure this thing was working ? Bc rn my model Offer just had 'availableWeight int', no default no nothing written after
wget http://ftp.de.debian.org/debian/pool/main/g/gtkglext/libgtkglext1_1.2.0-11_amd64.deb
sudo dpkg -i libgtkglext1_1.2.0β11_amd64.deb
Then install anydesk: sudo dpkg -i anydesk_6.3.0β1_amd64.deb
then reboot
in build.gradle(app level:
implementation 'com.github.CanHub:Android-Image-Cropper:4.5.0'
is now:
implementation("com.vanniktech:android-image-cropper:4.6.0")
Refer to the documentation at:
The answer is so dumb. I had this issue and finally decided to solve it...
Got to your font settings and make your font size for text editor small like 10 or so.
Now hold ctr and scroll your text up and viola.. problem solved
Β΄Thank you very much for this!
What you can do is ensure the following:
Correct Mock Path: Make sure that the path in patch() matches where create_memcache_item is used in your code.
Patch Scope: The patch() context should wrap the entire interaction with the endpoint to ensure the mock is used instead of the actual function.
Consistent Return Value: Mock create_memcache_item to return a consistent value (e.g., milliseconds).
Response Format: Also, verify the return value matches the expected format in your assertions.
First create folder
helloblog/index.html myfirstblog/index.html
And upload it to any static hosting solution like statichost.host
This seems like a CORS issue. In this case, you should use a backend as a proxy to execute the network requests.
Did anyone get the solution, how to stop this rerendering?
You are right on your assumption, the bottom sheet is capturing the gestures and does not allow the map to take over them.
Did you try to use a GestureDetector to resolve it? Something like this:
void showLocationSelection(
BuildContext context,
ThemeData theme,
CommonColorsExt? commonColors,
MerchantQuestionsViewModel viewModel,
) {
showModalBottomSheet(
context: context,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(
top: Radius.circular(16.0),
),
),
isScrollControlled: true,
builder: (BuildContext context) {
return GestureDetector(
onTap: () {
FocusScope.of(context).unfocus(); // Dismiss keyboard
},
child: Container(
constraints: BoxConstraints(
maxHeight: MediaQuery.of(context).size.height * 0.9,
),
child: Column(
children: [
Expanded(
child: GestureDetector(
onVerticalDragUpdate: (_) {}, // Prevents bottom sheet gestures
child: GoogleMap(
initialCameraPosition: CameraPosition(
target: LatLng(6.91177, 79.85043),
zoom: 15.0,
),
onTap: (LatLng position) {
viewModel.setGeoLocation(position);
},
markers: viewModel.markers,
mapType: MapType.normal,
gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{
Factory<ScaleGestureRecognizer>(
() => ScaleGestureRecognizer(),
),
Factory<PanGestureRecognizer>(
() => PanGestureRecognizer(),
),
Factory<TapGestureRecognizer>(
() => TapGestureRecognizer(),
),
},
zoomGesturesEnabled: true,
scrollGesturesEnabled: true,
myLocationButtonEnabled: false,
myLocationEnabled: false,
),
),
),
],
),
),
);
},
);
}
$full_path = Storage::disk("uploads")->put("/my_image.jpg", $file);
$full_path = Storage::disk("uploads")->put("images/my_image.jpg", $file);
Although not efficient, I found two solutions: one is to generate the files separately and merge them via a user control, another is to generate them separately as "temporary files", receive the length of the document as an output parameter (the &Page variable) and use this parameter as a total for the corresponding section. Then I delete the temporary file.
Pretty crude, but it worked
Been having a similar problem while activating relays using ESP32's, tried a couple of different dev boards and was getting the same issue on them all, board sends gibberish to the serial port indefinitely and refuses to continue normal operation until reset.
I've managed to get a partial solution with the ESP32-WROOM-32 dev module by reducing the CPU frequency. It now reboots by itself instead of getting stuck. I tested with two of these boards and it appears consistent.
Unfortunately, with a supermini dev board using the ESP-C3 chip, lowering the frequency didn't help.
I am also encountering this same issue! The differences between the OP and I are that I am using a virtual environment and I am importing from Translate v2. I am unsure of the OS that the OP is using, but I am using Win 10 Python 3.10.10. I wondering if variable is supposed to go in between the parenthesis? Anyway, can someone please shed light on this question? Thank you! Be Blessed
Just delete send empty title. Then it will share.
await navigator.share({ title: "", text: "Captured using the app.", files: [file], // Pass only one file });
One convenient way to do it is to hash the password using a fixed length hashing algorithm, such as sha256. I will add exact code later.
You're right to be cautious about using Celery with Redis on Windows. Historically, Celery on Windows has had some compatibility issues, especially with its default prefork concurrency model, which doesn't play well with Windows due to how multiprocessing works on that platform. This is especially relevant if you're using Celery 4.x, which relies heavily on multiprocessing and may cause synchronization problems or poor performance on Windows.
If you need something simpler than Celery for small tasks like CSV uploads: multiprocessing or Django Q would be good choices, especially if you're looking for something that doesnβt require as much setup or infrastructure.
I know this is quite and old thread but maybe it helps for some who have the same issue.
I had the problem that Sentry got flooded with thousands of null ref exceptions in my Unity project within one session and that could eat up any quota pretty quickly.
Here's what I did for Unity:
using UnityEngine;
using Sentry.Unity;
using System.Collections.Generic;
[CreateAssetMenu(fileName = "Assets/Resources/Sentry/SentryRuntimeConfiguration.asset", menuName = "Sentry/SentryRuntimeConfiguration", order = 999)]
public class SentryRuntimeConfiguration : Sentry.Unity.SentryRuntimeOptionsConfiguration
{
private bool _userIdLogged = false;
private HashSet<string> _loggedMessages = new HashSet<string>();
/// Called at the player startup by SentryInitialization.
/// You can alter configuration for the C# error handling and also
/// native error handling in platforms **other** than iOS, macOS and Android.
/// Learn more at https://docs.sentry.io/platforms/unity/configuration/options/#programmatic-configuration
public override void Configure(SentryUnityOptions options)
{
// this option will filter the sending of data to Sentry in case the user did not give consent
options.SetBeforeSend((sentryEvent, hint) =>
{
bool sendAnalytics = PlayerPrefs.GetInt("SendAnalytics") == 1;
if (!sendAnalytics)
{
return null; // Don't send this event to Sentry
}
if (!_userIdLogged)
{
var userID = sentryEvent.User?.Id;
if (userID != null)
{
// I'm logging the user ID here
}
_userIdLogged = true;
}
var stackTrace = sentryEvent.Exception?.StackTrace;
if (stackTrace != null)
{
if (_loggedMessages.Contains(stackTrace))
{
// we already had this issue tracked, don't track the same exception over and over again
return null;
}
// this one is new, but remember it for this session
_loggedMessages.Add(stackTrace);
}
return sentryEvent;
});
}
}
I did some research and with the help of @CZoellner. This is how I've updated the onhand quantity in model stock.quant
env['stock.quant']._update_available_quantity(record.x_studio_tools,record.x_studio_stock_location,1).
Thank you @CZoellner
I had a similar issue (syntax error at or near "force").
I then realized that the parenthesis around force are mandatory.
This question is still relevant, since now the api Key is passed to the header, and now you can't just copy the url and paste it into newman Update: The issue has been resolved, now you need to add a new parameter to the newman command --postman-api-key [api-key]
In version 7.X you need to add swipeEnabled: false, inside the screenOptions like in below.
screenOptions={{
headerShown: false,
drawerType: 'front',
swipeEnabled: false,
drawerStyle: {
width: deviceWidth - 50,
},
}}
Alan Fahrner reply works fine. From that stage you need to drill down into your company domain to find what you are looking for.
How to find "yourdomain"
Open Command Line and type in: net user %username% /domain
Tomcat is a special case: via tomcat-native it can use openssl; in my case Java5+Tomcat6 merrily works with tomcat-native-1.3.1/openssl-3.4.0
Change the owner to administrator. Here are the steps I took to solve this issue:
Right-Click on the SSISDB database and select properties
Click on Files under the Select a page
Under the Owner, but just below the Database Name on the right-hand pane, select [pc name]/Administrator as the owner.
I want to thank everyone for your responses. Very helpful.
After doing I18nManager.allowRTL(false) and then I18nManager.forceRTL(false) you need to restart the app (with React Native Restart for example)
No, deleting the OpenSearch index after shrinking is not required, but it depends on your use case and the specific context. Let's break down the scenario:
What is Index Shrinking in OpenSearch? Index shrinking is a process that allows you to reduce the number of primary shards in an index to make it more efficient. This is typically done when:
An index has grown large with many shards, and you want to optimize storage or improve query performance. You no longer need to keep the original number of primary shards because the index is no longer actively growing or being written to, but you still want to keep it for historical data. The shrinking process in OpenSearch involves:
Creating a new index with fewer primary shards. Reindexing data from the old index into the new one. Deleting the old index (optional, depending on whether you want to save space or not). Should You Delete the Index After Shrinking? After you shrink an index, you don't have to delete the original index immediately unless:
You no longer need the original index: If youβve reindexed the data into a smaller, more efficient index and you no longer require the old index, you can delete it to free up storage space. You want to optimize disk usage: Deleting the old index after shrinking will save storage if the original index had many unused or fragmented shards. However, if you still need the original index for reference, backup, or other purposes, you can retain it. Just keep in mind that it may occupy significant storage depending on how much data was reindexed and how many shards are in the original index.
Considerations: Backup: Before deleting the original index, ensure you have a backup if it contains important data or if the shrinking process was part of a migration. Cluster Performance: After shrinking, if you no longer need the original index, deleting it can help improve cluster performance by freeing up resources. Snapshot: Itβs a good practice to take a snapshot of the index before deleting it, especially if it contains important or historical data
I have the same issue but answers did not work. My configuration is Bumblebee 2021.1.1 with Pepper SDK 1.5.3, QiSDK 1.7.5. I followed this tutorial: https://github.com/Karageorgiou/GaioPepper . Emulator works and everything else seems fine. I can also connect to the robot viewer and move joints.
Fortunately, there was a fix made last year in version 21.0.1 of the play-services-location library. To leverage this fix, I added the following line in my android > build.gradle:
buildscript { ext { .... playServicesLocationVersion = "21.0.1". <----- ADD THIS LINE }
this is fixed in V28.3.2
https://github.com/VerifyTests/Verify/pull/1352
And here is some extra text since stackoverflow is a PITA
For simple formulas you can add a number value as first list entry and add your formula after:
0, =x21*c24, =y25-10
But since the list entries are separated by comma, when adding a formula with a comma the formula will be split at the comma and seen as a new list entry ...
unfortunately I have not found out how to get around that
Some library might have been downgraded or upgraded.
pip update the related library.
You can integrate CodeBeamer with GitLab using GitLab webhooks to validate commit messages. Set up a webhook in GitLab to trigger a script or API that checks commit message guidelines in CodeBeamer before allowing the push.
It is a gdb bug. I have filed on gcc (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117647), and they asked me to move to sourceware.org. Meanwhile they mentioned two related issues https://sourceware.org/PR28999 and https://sourceware.org/PR26325, but as of today 2024/11/18 gdb 15.2 still hasn't fixed the issue.
The issue you're experiencing is likely due to mismatches or conflicts between the event handler declaration and how the event is referenced in your XAML. Hereβs a breakdown of the possible causes and solutions:
1. Check the Namespace Ensure that the namespace in your MainWindow.xaml and MainWindow.xaml.cs files matches the namespace of your project. In your example: namespace C__experiments_WPF_
If thereβs a typo or discrepancy, the event handler might not be found.
2. Event Handler Definition The error suggests that the ToggleB1_Click event handler is not being found during compilation. Verify that:
The method ToggleB1_Click is exactly spelled the same in both the XAML and the code-behind. The method signature in MainWindow.xaml.cs matches the required signature:
private void ToggleB1_Click(object sender, RoutedEventArgs e)
3. XAML Definition The Click attribute in your XAML references the method by its name. Ensure it's correctly written:
4. Avoid Redundant Attachments Since you're specifying Click="ToggleB1_Click" in XAML, the line in your constructor:
ToggleB1.Click += ToggleB1_Click;
5. Rebuild and Clean the Project
What worked for me so far was to store element and attribute names of .xsd in Dictionaries and check them in .xml-file.
In my case, I placed the repository under Onedrive Cloud thus causing permission issue. After Moving the repository under C: the issue has been resolved.
This happens when large amount of data shared b/w application and service. To fix this you can truncate your data length.
You are using too much threading. try avoid withContext(Dispatchers.IO).
Dispatchers.IO is correct for network calls but reissueToken function is in runblocking, which may not properly switch to the IO thread due to the context mismatch in runBlocking.
Add new option in service.Configure => options.UseSecurityTokenValidators = true;
read more: https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/8.0/securitytoken-events
this issue sometimes occur due to the space in any of the folder name in which the project is installed
Answer related to Powershell.
In case <esc> does not move from insert to normal mode, remap the following to something your shell/terminal won't complain about;
<C-\><C-n>
<C-w>N
(taken from here)
The solution is so simple
device managernetwork adaptor related with VPN (EVEN THE DISABLED ADAPTERS)Good luck!
Indeed it's a bug with the copy_on_write mode. Confirmed here:
You can use free, native Excel add-in for it e.g. https://text2data.com/ChatGPT-in-Excel
Thank you for your interest in GPBoost.
Here is an example have on how to do Bayesian optimization in R using the 'mlrMBO' R package. I hope this helps.
class PersonSerializer(serializers.ModelSerializer):
children = serializers.SerializerMethodField()
class Meta:
model = Person
fields = ['id', 'first_name', 'last_name', 'mother', 'father', 'children']
def get_children(self, obj):
# Get all children of the demo
children_as_father = obj.children_as_father.values_list('id', flat=True)
children_as_mother = obj.children_as_mother.values_list('id', flat=True)
return list(children_as_father) + list(children_as_mother)
https://www.django-rest-framework.org/api-guide/fields/#serializermethodfield
For a faster way to check the availability of these usernames across various social platforms, you can use Social Checker Tool. This tool helps you check if the suggested usernames are available not only on Instagram but also on other social media platforms. It can speed up the process and makes sure that you aren't suggesting already taken usernames.
In my case, my project was stored on my WSL (Linux subsystem), and VSC had just stopped opening the project "with WSL". Once I opened it with VSC's WSL extension, it worked fine again.
I needed this with CMake. while ABI was a little confusing. Based on Boost/CMake docs 1, I was able to get a Universal (x86_64 arm64) on macOS/Xcode by defining the following:
BOOST_CONTEXT_ABI=sysv
BOOST_CONTEXT_ARCHITECTURE=combined
Internally 2 it seems to include the AAPCS for arm64 and the sysv for x86_64.
More details can be found here: https://news.ycombinator.com/item?id=40918052
Basically it's an old google extension, enabled by default on google chrome, edge and brave and only available on *.google.com urls.
Extension's source code can be found here: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/resources/hangout_services/thunk.js
Ok, as chtz said the problem was actually in the way I was checking if the eigenvector is right. When calculating vct2(i)/vct(i) I was sometimes getting right answer, sometimes not. When using vct2-lambda*vct it showed that vector was always correct. Poking around a bit showed, that all the places where division was giving wrong answers, had coefficient of order 1e-17, so basicaly zeroes.
I was dividing zeroes by zeroes. The vectors themself were good.
Check your next config file is correctly set up.
const nextConfig = { reactStrictMode: true, }
module.exports = nextConfig
Remove package-lock.json, node_modules, .next folder and files and reinstall.
If the issue persists, try clearing your npm cache and rebuilding. Thanks
Does anyone have a solution for Mac?
Assuming you have made a textbox named textBox1 in the designer, simply make a static link to it, like this:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
textBox1lnk = textBox1;
}
}
static TextBox textBox1lnk = new TextBox();
Hook into walker_nav_menu_start_el and use str_replace:
// Add to menu item when CSS Classes (in Appearance > Menus) include "new"
function ona_walker_nav_menu_start_el( $item_output, $menu_item, $depth, $args ) {
if ( ! empty( $args->theme_location ) && in_array( 'new', $menu_item->classes ) ) {
$title = $menu_item->title;
$item_output = str_replace( $title, $title . '<span class="new">NEW</span>', $item_output );
}
return $item_output;
}
add_filter( 'walker_nav_menu_start_el', 'ona_walker_nav_menu_start_el', 10, 4 );
See https://developer.wordpress.org/reference/classes/walker_nav_menu/start_el/
I would test the 2 modules separately:
Then there should be 100% test code coverage.
Solution that worked for me:
<p suppressHydrationWarning>Current time: {time?.toLocaleTimeString()}</p>
you should be able to mitigate this with a project specific global.json file. the example should help to lock your project down to any 7.0.xxx SDK version.
{
"sdk": {
"version": "7.0.xxx",
"rollForward": "latestFeature"
}
}
I hope that following basics will help beginners to understand oAuth purpose.
Access Token:
A short-lived token that grants a user or third-party applications access to specific user resources on a server. It typically contains user information and permissions (scopes) and is used to authenticate requests.
(You will store it in the database and use it on the frontend to include in request headers by retrieving it from the backend, or in some cases, use it on the backend to call third-party APIs.)
Refresh Token:
A long-lived token used to obtain a new access token when the current one expires. Itβs only exchanged with the server, not sent with each request to protected resources.
(You will store it in the DB and only retrieve it from the database when the backend server needs a new access token. Once you get a new token, you can immediately update the access token in the database. If a new refresh token is also issued, it is a good practice to update the refresh token in the database as well.)
In the OAuth strategy, there are multiple steps of authorization and authentication to obtain an access token. Once the access token is issued, it means all steps have been completed. However, access tokens have an expiry limit for security purposes. The expiry duration varies for each app depending on its requirements and security concerns.
Without a refresh token, users would need to repeat the entire authentication process whenever the access token expires. This can be cumbersome, especially if the access token has a short expiry. With a refresh token, obtaining a new access token requires only a single request. This approach simplifies the process, as you only need to use the refresh token when the access token has expired, ensuring a seamless user experience.
Limited Exposure:
Access tokens expire quickly, minimizing the risk of misuse if compromised.
Refresh Token Storage:
Refresh tokens are typically stored securely in the database, ensuring that they are not accessible to attackers.
(Already mentioned in the first section in brackets.) Additionally, if you need them on the front-end, then:
Access Token:
Refresh Token:
Using both tokens provides a balance between security (short-lived access tokens) and user experience (long-lived refresh tokens). Store tokens properly to avoid vulnerabilities like XSS and CSRF.
Just use the wildcard. Say I want the PFN for Microsoft Teams but I don't know the full name to look it up. I narrow it down by placing asterisk before the t and after the s in "teams":
PS C:\Windows\System32> get-appxpackage "teams"
Name : MSTeams Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 24295.605.3225.8804 PackageFullName : MSTeams_24295.605.3225.8804_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\MSTeams_24295.605.3225.8804_x64__8wekyb3d8bbwe IsFramework : False PackageFamilyName : MSTeams_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Developer Status : Ok
There is no way to click on the element directly from the jshandle object, if you have "lazy-list", you either have to scroll your dropdown by locators and wait until desired element appears or use search input to truncate the list of options
FlutterError.onError is for Flutter-specific errors (e.g., widget rendering errors, state management issues, etc.).
PlatformDispatcher.instance.onError is for errors originating from the platform side, including Dart VM errors and native code crashes.
import { CustomDatePicker } from '[Organization-folder]/oneems-react-components'; => this is wrong.
You have exported CustomDatePicker as default in other file so use as per below statement.
import CustomDatePicker from '[Organization-folder]/oneems-react-components'
I have different use case.
is it possible to disable connection in "Read-only" replica? because my recovery is getting delayed due to active connections. I want to disable all connection until it reaches 0 Lag except superuser connections.
Using version 13.
Have you addedd localizationsDelegates inside your MaterialApp ?
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
Nordic Semiconductor provides some Android apps for developers to test their devices. The most flexible one is nRF Connect for Mobile, but this one is not open source. Instead, I can recommend the nRF Toolbox app or the nRF Device Manager app, both of which have open source code on git that you can download, change and build yourself.
Since march no one has answered it? A lots of people are facing this issue now. I send notifiction to my iOS device and suddenly it occurs then the token gets unregisterd. Now app has to open again and get notification token and send notification to new token.
Someone in other threads suggested that you build the app with Biuld Settings > Lagacy Build. But i have not tried it and dont know how will that ipact it.
This is a really old question, but if someone still having the same issue. I'm using:
try await Transaction.beginRefundRequest(for: transactionId, in: scene)
The only thing you will need is the transaction id.
The playground always evaluates the entire package you've put into it's Rego panel. Your SDK Decision call evaluates a certain path:
Path: decisionReq.Policy
If that path is not the path of the package, but, say, the path to your allow rule, you'd only see true/false.
spring boot 3.3.6 should be released at 21.11 (Release calendar can be found here https://spring.io/projects#release-calendar) and it will use spring framework 6.1.15
One approach is just to open a service on my-domain.com on port 443, solely for the sake of hosting the /.well-known/assetlinks.json file.
It doesn't need to do any other stuffs, any other service can stay on your port-specific endpoints. It should work beacuse the deeplink urls will actually be handled by your app, and your app is free to point to any other endpoints (with the specific ports). The only time you need to go through the port 443 is when you need to retrieve the /.well-known/assetlinks.json file. This way, you don't even need subdomains.
If you have dedicated package name for every development environment, you can list all of them in single assetlinks.json
Okay, I changed my code but unfortunately I now got the same problem - the state is not created for the second Widget-Instance :(
This is how the code nowlooks:
Call of the first instance:
@override
SearchTermInput get searchTermInput => SearchTermInputOneString(
// key: Key("ApiEndpointName"), // UniqueKey(),
apiEndpointSearchTermInputContentProvider:
apiEndpointSearchTermInputContentProvider,
captionList: ["Name"],
textInputFormatter: [
FilteringTextInputFormatter.deny(RegExp(r"[0-9]"))
],
onSubmit: onSubmit,
onLostFocus: onLostFocus,
);
Call of the second instance:
@override
SearchTermInput get searchTermInput => SearchTermInputOneString(
// key: Key("ApiEndpointUniversal"), // UniqueKey(),
apiEndpointSearchTermInputContentProvider:
apiEndpointSearchTermInputContentProvider,
captionList: ["Statement"],
textInputFormatter: [FilteringTextInputFormatter.allow(RegExp(r".*"))],
onSubmit: onSubmit,
onLostFocus: onLostFocus,
);
StatefulWidget:
class SearchTermInputOneString extends SearchTermInput {
@override
final NotifierProvider apiEndpointSearchTermInputContentProvider;
@override
final List<String> captionList;
@override
final List<TextInputFormatter>? textInputFormatter;
@override
final void Function(BuildContext, WidgetRef, List<String>) onSubmit;
@override
final void Function(BuildContext, WidgetRef, List<String>) onLostFocus;
const SearchTermInputOneString({
super.key,
required this.apiEndpointSearchTermInputContentProvider,
required this.captionList,
required this.textInputFormatter,
required this.onSubmit,
required this.onLostFocus,
});
@override
// ignore: no_logic_in_create_state
ConsumerState<ConsumerStatefulWidget> createState() {
final log = getLogger();
log.t("createState");
return _SearchTermInputOneStringState();
}
}
class _SearchTermInputOneStringState
extends ConsumerState<SearchTermInputOneString> {
late TextEditingController textEditingController;
late List<String> currentContent;
@override
void initState() {
super.initState();
final log = getLogger();
log.t("initstate");
textEditingController = TextEditingController();
}
@override
void didChangeDependencies() {
_runsAfterInit(context, ref);
final log = getLogger();
log.t("didChangeDependencies");
// read apiEndpoint content
currentContent = ref
.read(widget.apiEndpointSearchTermInputContentProvider)
.cast<String>();
textEditingController.text =
currentContent.isNotEmpty ? currentContent[0] : "";
super.didChangeDependencies();
}
@override
void dispose() {
textEditingController.dispose();
final log = getLogger();
log.t("dispose");
super.dispose();
}
Future<void> _runsAfterInit(BuildContext context, WidgetRef ref) async {
await Future.delayed(Duration.zero); // <-- Add a 0 dummy waiting time
final log = getLogger();
log.t("_runsAfterInit");
// set current content
ref
.read(currentSearchTermInputContentProvider.notifier)
.setValue(currentContent);
}
@override
Widget build(BuildContext context) {
return Focus(
child: TextFormField(
controller: textEditingController,
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: widget.captionList.isNotEmpty ? widget.captionList[0] : "",
suffixIcon: IconButton(
onPressed: () {
textEditingController.text = "";
},
icon: Icon(Icons.clear),
),
),
inputFormatters: widget.textInputFormatter,
onFieldSubmitted: (_) {
widget.onSubmit(context, ref, [textEditingController.text]);
},
),
onFocusChange: (hasFocus) {
if (!hasFocus) {
widget.onLostFocus(context, ref, [textEditingController.text]);
}
},
);
}
}
Logoutput after the first instance has been created:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#0 SearchTermInputOneString.createState (package:obituary_viewer/features/obituaries/presentation/widgets/search_term_inputs/search_term_input_one_string.dart:39:9)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2024-11-18 08:26:03.262
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
createState
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#0 _SearchTermInputOneStringState.initState (package:obituary_viewer/features/obituaries/presentation/widgets/search_term_inputs/search_term_input_one_string.dart:53:9)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2024-11-18 08:26:03.269
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
initstate
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#0 _SearchTermInputOneStringState.didChangeDependencies (package:obituary_viewer/features/obituaries/presentation/widgets/search_term_inputs/search_term_input_one_string.dart:61:9)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2024-11-18 08:26:03.272
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
didChangeDependencies
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#0 ApiEndpointNameSearchTermInputContent.build (package:obituary_viewer/features/obituaries/presentation/provider/search_term_input_content_provider.dart:26:9)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2024-11-18 08:26:03.275
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ApiEndpointNameSearchTermInputContent provider build
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#0 DoSearchFunction.build (package:obituary_viewer/features/obituaries/presentation/provider/search_screen_provider.dart:13:9)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2024-11-18 08:26:03.402
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
DoSearchFunction provider build
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#0 DoSearchFunction.setValue (package:obituary_viewer/features/obituaries/presentation/provider/search_screen_provider.dart:19:9)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2024-11-18 08:26:03.404
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
DoSearchFunction set to Closure: (BuildContext, WidgetRef) => void from Function 'doSearch':.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#0 _SearchTermInputOneStringState._runsAfterInit (package:obituary_viewer/features/obituaries/presentation/widgets/search_term_inputs/search_term_input_one_string.dart:85:9)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2024-11-18 08:26:03.405
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
_runsAfterInit
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Logoutput after the second instance:
> flutter:
> ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
> flutter: β #0 CurrentApiEndpoint.setValue
> (package:obituary_viewer/features/obituaries/presentation/provider/api_endpoint_provider.dart:30:9)
> flutter:
> ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
> flutter: β 2024-11-18 08:27:41.773 flutter:
> ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
> flutter: β CurrentApiEndpoints set to Instance of
> 'ApiEndpointUniversal' flutter:
> ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
That's it - and the text of the texteditingcontroller is still the one of the first instance :(
Chrome 130 introduced a new scroll badge in the elements panel of the devtools to locate scrollable elements https://developer.chrome.com/blog/swe-devtools-scroll-badge
You can try this, testWidgets like this: Url
This is easy way for testing logic inside project flutter.
Use <com.google.android.material.button.MaterialButton button for rounded button with border. and also use
app:strokeColor="@color/color_E0E6F9"
app:strokeWidth="0.5dp"
app:cornerRadius="8dp"
these properties for round corner and border of button.
For me I found that the problem is when you have MORE THAN ONE GOOGLE ACCOUNT OPEN.
So a workarround is to open a private page or to use another browser, where you will only log in with one user account... In my case, I use firefox, so I do use it in Chromium where I just log with one of my google user accounts...
I also have issues when oppening app scripts from the menu when having more than one account open, so that is the root of the problem... google is not managing correctly having multiple google accounts open..
It says "Script could not be found" but internally it looks it is trying to execute it with the wrong account and then it is a permissions issue, so best is to have only one google account open and it does work as a charm..
Hope this helps everyone ;)
Pere - increiblesostenible.org
Did you ever managed to resolve this? I am stuck with it right now with MacOS on Sequioa, debugging for 2 days, and it seems that it happens even with VS code not having any plugins whatsoever. I also did all of the steps you wrote about, and every clean install of VS code eventually results with the intellisense being stuck in loading.
input[type=range][orient=vertical] {
writing-mode: vertical-lr;
direction: rtl;
appearance: slider-vertical;
width: 16px;
vertical-align: bottom;
}
<input type="range" orient="vertical" />
you can use jsonfy return statements as well
I found it
exchange.getAttributes().put(ServerWebExchangeUtils.GATEWAY_PREDICATE_MATCHED_PATH_ATTR, newServiceName);
exchange.getAttributes().put(ServerWebExchangeUtils.GATEWAY_PREDICATE_PATH_CONTAINER_ATTR, newServicePath);
exchange.getAttributes().put(ServerWebExchangeUtils.GATEWAY_REQUEST_URL_ATTR, newUri);
As deceze mentioned in the comments, you can't access cookies from different domains. You can update the authentication endpoint to return the accessToken in the response body. Then you can store it using useUserStore.
But be aware that if you want to store the auth data in the local storage, it can be vulnerable to cross-site scripting (XSS) attacks.
See this question for more information: Where to store a JWT token properly and safely in a web based application?