try this
const { siteUrl } = useParams<{ name: string }>()
or just remove the Promise from params type definition
params: { siteUrl: string }
In my case, Spring was intercepting the request before it reached my controller method, which caused the validation to not work as expected. By default, the @RequestParam annotation has the required attribute set to true, meaning Spring would reject the request if the parameter was missing. To resolve this, I set required = false in the @RequestParam annotation. This allowed the request to reach my controller method, where the validation could be properly applied.
For Cucumber JVM users, you may use the 'unused' plugin. In cucumber.properties
, define
cucumber.execution.dry-run=true
cucumber.plugin=unused:target/unused.log
After running the test suite, there should be a file unused.log
in the target folder that lists all unused step definitions.
For those who are trying to manually setup SSL in docker compose
setup, follow this article.
this example does exactly that: https://echarts.apache.org/examples/en/editor.html?c=bar-stack-borderRadius
while creating the new workspace, scroll down and click on advanced and then select the checkbox for template apps [meant to be shared with external users].when new workspace is created on clicking ok, you will get a link with guid embedded as desired. this way I have resolved the issue for me.
The following curl command can also help:
curl -H "Metadata:true" http://169.254.169.254/metadata/instance/network?api-version=2023-07-01&format=json
No need to add extra software on the developer options there is a feature that allows you to limit the speed of the device called Network download rate limit.
As raaaay said, in Firefox, "Ctrl+S" saves the pdf file directly to the downloads folder. Note that you have to click on the embedded pdf first, otherwise Firefox will save the entire web page.
(P.S: I need 50 reputation to comment, that's why this answer).
This approach worked for me-
Create "PathPrefix" for app link
Verify link with your domain
I found the answer to the problem: opencv "cv.floodFill" function does exactly what I want, and is muche faster than scipy watershed (by a factor of ~100).
Unfortunately with angular 19 it seems the option --env.whatever isnt recogenized. Error: Unknown argument: env.test
JPQL works with entity property names (the fields or getter/setter methods in your Java class) rather than the actual database column names. So if your last_updated_on
is a field in your BaseEntity
class, and your entity uses camelCase for property names, you should use f.lastUpdatedOn
in your query instead of f.last_updated_on
.
For anybody wondering about this, it's probably due to:
@PrepareForTest({ MyClass.class })
When you remove the brackets like this:
@PrepareForTest(MyClass.class)
it should work.
I had a similar problem with two classes, when removing one of the classes and the brackets it got covered.
You need to add key: UniqueKey() to the PlutoGrid if you want it state to change when the datasource changes.
return PlutoGrid( ... row: _buildPlutoRows(data), // Data comes from GetxController. key: UniqueKey() // This does the magic
The easiest way to use pugixml is to add the source code directly between the files in your project. Download pugixml, unzip it, copy the files contained in the src directory (pugixml.hpp, pugixonfig.hpp and pugixml cpp) to your project directory, add the above files to your project and then compile it.
Try replacing "ranking" with "ranking.profile" - per https://docs.vespa.ai/en/reference/query-api-reference.html this is the full name and https://docs.vespa.ai/en/query-profiles.html#using-a-query-profile you cannot use aliases ("ranking" is an alias).
I think this will at least solve the problem with the missing ranking profile data
no meu caso oque estava dando errado era por que eu tava colocando o ponto e virgula no diretório da pasta. Se estiverem com algo parecido tire pois pode da problema.
Please try to run these steps:
npm cache clean --force rm -rf node_modules package-lock.json npm install
Can you elaborate on Why is DQN obsolete?
try this
foreach(object x in listBox.SelectedItems) { string s = x as string; }
I had this problem only when using Firefox, not in other browsers. The solution was to disable state partitioning for DevOps, by setting privacy.restrict3rdpartystorage.skip_list
to String *,https://dev.azure.com
on about:config.
`for spring boot latest version 3.4.2 please follow below instruction dont use @EnableEurekaServer Annotation
in application.properties file do some configuration
spring.application.name=service-registry
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
server.port=8761
open any browser and below url http://localhost:8761/ `
Firebase.initializeApp(); call this in your main function before "runApp"
Here's n quick implementation of a HalfCircleView
using CAShapeLayer and UIBezierPath:
class HalfCircleView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setupHalfCircle()
}
required init?(coder: NSCoder) {
super.init(coder: coder)
setupHalfCircle()
}
private func setupHalfCircle() {
let shapeLayer = CAShapeLayer()
let path = UIBezierPath()
path.move(to: CGPoint(x: 0, y: bounds.maxY))
path.addArc(withCenter: CGPoint(x: bounds.midX, y: bounds.maxY),
radius: bounds.width / 2,
startAngle: CGFloat.pi,
endAngle: 0,
clockwise: true)
shapeLayer.path = path.cgPath
shapeLayer.fillColor = UIColor.blue.cgColor
layer.addSublayer(shapeLayer)
}
override func layoutSubviews() {
super.layoutSubviews()
setupHalfCircle()
}
}
Go to Firebase console and then Authentication -> Settings -> User Actions and uncheck the Email enumaration protection
Also having the same issue - did you guys manage to find a work around?
Hi yes it's possible there is component that allows you to retreive emails and write the content into files.
it's the tPop component, it's configuration should look like this :
The port is usually 110 or 995 (if it works over SSL/TLS)
And in the advanced setting you can filter the mail you want to retreive for example :
This configuration would allow you to retreive mails with the subject "PASSWORD_FTP" from the sender "[email protected]"
I also faced the same problem. How do I solve this? I am using Spring Boot 3.4.2. After updating, I encountered this issue. I have tried changing the application.properties file multiple times, but it didn't work. I am still facing the same issue.
I know it's been a while since this was posted but here's my solution. Windows 10/11 come with curl.exe (cmd or powerShell) installed by default so you don't need to install/develop another app. You can use either IPC as suggested above or any a native SKILL command (e.g. axlRunBatchDBProgram) to launch a HTTP POST. My tested commands (call curl.exe in cmd), for JSON strings values, with all security disabled (safe environment in my case) looks like this:
In your SKILL code, assign the below string to the variable CommandString (sorry for not posting the complete syntax, I am compiling from multiple TCL and SKILL files and I am sure I'll miss some "" on the way)
curl.exe -v --insecure --ssl-no-revoke -H "Content-Type: application/json" -X POST https://www.google.com/ -d "{"var1":"value1","var2":"value2","var3":"value3","var4":"value3"}"
axlRunBatchDBProgram("start cmd /c ", CommandString ?noUnload t ?silent t ?noProgress t ?noLogview t ?warnProgram t ?noExitMsgs t)
When trying to autostart my App after boot, I had the same Syntax errors but it looks like a visual bug because the Code was acctually working fine for me. So I ignored the red underlined things.
The problem was that I didn't activate the "Appear on top" setting for my app.
On Anrdoid, go to your apps App info -> Appear on top and set it to on
You can also program your app to direct the user to that setting, so you don't have to search for it constantly after reinstalling the app.
If you are still facing issues with autostarting the app after boot, let me know, and I can share the code.
has there been a support for handling the CORS right now
I solve it by adding the following:
*:hover {
scrollbar-color: initial;
}
You can decouple the RDS which will not impact the health of the EB environment and then you can do the application change to not use the RDS!
3 + 1 Things to Consider when Optimizing Search with Regex:
I ran some analysis on the pattern that @dawg created. To see what happens. I searched a 1000-line text sample on regex101.com using six (6) different permutations of the (email|date|phone) patterns. Please see the links below. For comparison, I ran each of the 6 permutations in both Python and PCRE2 flavors. PCRE2 is used by Perl & PHP.
Here's what I discovered. I was especially surpised about the impact of the inline flag.
Here is an example of the six (email|phone|date)
permutations:
# 1:inline-flag:
pattern = r'''(?x)
(?P<email>\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b)|
(?P<phone>\b\d{3}-\d{3}-\d{4}\b)|
(?P<date>\b\d{4}-\d{2}-\d{2}\b)
'''
# 1:re.X:
pattern = r'''
(?P<email>\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b)|
(?P<phone>\b\d{3}-\d{3}-\d{4}\b)|
(?P<date>\b\d{4}-\d{2}-\d{2}\b)
'''
Outcome:
Python regex flavor:
Inline flag average steps: 298,866 {min 297,777, max 299,995}
Regular flag average steps: 265,101 {min 264,012, max 266,190}
Difference: 33,765 (exactly the same with every pattern)
PCRE2 regex flavor (used by PHP and Perl):
Inline flag average steps: 214,344 {min 213,255, max 215,433}
Regular flag average steps: 189,495 {min 188,406, max 190,584}
Difference: 24,849 (exactly the same with every pattern)
All permutations completed in < 150ms.
What I discovered:
1) Flavor Matters: PRCE2 regex flavor vs. Python regex flavor
Python flavor, with inline flag ((?x)
), had exactly 84,522, or average of 28.28%, more steps than PCRE2 flavor for each permutation.
With regular flag (re.X
) Python flavor had exactly 75,606, or average of 28.52%, more steps than PCRE2 flavor for each permutation.
The processing speeds cut down in half using PRCE2 flavor vs. python. There were 40% (~77K steps) fewer steps using PRCE2 regex flavor than Python regex flavor.4
For large data sizes regex flavor can make a big difference.
2) Flag Type Matters !: Inline flag (?x)
vs. regular flag re.X
For Python, regex with inline flag had 12.74% more steps than regular flag, exactly 33,765 each.
For PRCE2, regex with inline flag had 13.11% more steps than regular flag, exactly 24,849 each.
This means will have 11.4% fewer steps on average if you remove the inline flag and use regular flag instead. So, to optimize it makes sense to remove the inline flag and replaced it with the regular flag re.X
.
It was interesting to see that it was exactly the same difference in steps between inline flag and regular flag for every permutation! Inline flag is definitely busy doing something.
3) Pattern order matters:
The difference between most and least steps for permutations was within 1.0% for PCRE2 flavor and 0.77% for python flavor.
(email|phone|date)
had least steps and (date|phone|email)
had the most steps regardless of regex flavor or type of flag (inline or regular).
So depending on the size of the data, it may or may not make a real difference.
4) Pattern is matters:
I created this regex to capture simple emails (where extra dots are allowed), phone number xxx-xxx-xxxx
, date xxxx-xx-xx
. It did not have capture groups.
For python this pattern resulted in 91,566 or average 32.5% steps less than the permutations used in the or (|
) pattern.
Use re.X flag:
# 7:re.X:
pattern = r'''\b(
(\d\d\d[\d-] [\d-] \d\d-\d\d(?:\d\d)?\b)|(?=\b\w+(?:\.\w+)*@)(\b\w+(?:\.\w+)*@\w+(?:\.\w+))
)\b
'''
Links to permutations:
NUM | FLAG | PERMUTATION | URL:
1 | re.X | (email|phone|date) | https://regex101.com/r/LCaSTy/2
2 | re.X | (email|date|phone) | https://regex101.com/r/Qwno6l/2
3 | re.X | (phone|date|email) | https://regex101.com/r/vtnLQv/2
4 | re.X | (phone|email|date) | https://regex101.com/r/gWFYzB/2
5 | re.X | (date|phone|email) | https://regex101.com/r/0z9cLt/2
6 | re.X | (date|email|phone) | https://regex101.com/r/lTfvqX/2
7 | re.X | ((phone/date)|email) | https://regex101.com/r/mP8v4Z/4
As @slebetman have mentioned in the comments you've probably ran npm install
with sudo or root privileges, leading to the package-lock.json
file being owned by root.
Since the other answers are based on Docker, I'd thought I'd give the Linux/Unix solution for people who are in my situation running their locally. Run the command:
sudo chown NAME-OF-YOUR-USER package-lock.json
The command will change the owner of the file resolving the permission conflict you're experiencing.
You are using riverpod, thus you should not use setState(). Instead of that, you should refresh the page using riverpod, just make:
ref.refresh(pocketbaseProvider);
And the page will be refreshed reloading all data.
i make mini sale software in visual studio 2010 with ms access database if an other Pc software not run plcese send answers
Huge kudos to @JonathanLauxenRomano's answer.
Here's how I made it work in App Router (same idea, new router):
import { headers } from 'next/headers'
await fetch(`${process.env.NEXT_PUBLIC_BASE_PATH}/api/test`, {
headers: {
Cookie: headers().get('cookie') ?? ''
}
})
I tried using cookies, retrieving the exact cookie from nextauth and manually retrieving the token in the API route... But this way the await getToken({req})
just works as expected!
These look like errors from the SDK linter. AIDL interfaces added in that directory are by default exposed in the built public SDK. You need to exclude it (as done for the other interfaces there) like this:
/**
* {@hide}
*/
interface Test {
Variations in your model's accuracy and loss across runs can result from factors like the Adam optimizer's inherent randomness, data shuffling during training, and hardware differences(very unlikely). To enhance reproducibility, consider using a deterministic optimizer like SGD, control data shuffling by setting random seeds, and ensure consistent hardware environments.
textarea {
width: 100%;
height: 150px;
padding-right: 50px; /* Adjust based on button width */
box-sizing: border-box;
resize: none;
}
.container {
position: relative;
display: inline-block;
}
button {
position: absolute;
top: 5px;
right: 5px;
}
Can you please suggest me how you achieved this I am also planning to do the same way ? Generating Docusign jwt access token using azure functions.
I managed to Figure this one Out:
You ened to make sure C:\Windows\System32 is in the Path Environmentals otherwose WSL2 doesnt Pick up Docker within the distro.
tooki me an age to figure this out
The Obsidian-to-Wikijs plugin enables you to send Obsidian notes to your Wikijs instance.
Am using api url in APIGEE tool getting below error '{"fault":{"faultstring":"Body buffer overflow","detail":{"errorcode":"protocol.http.TooBigBody"}}}'
I still got the warning with tracking unique id.
@for (page of totalRows; track **page.id**; let index = $index; let first = $first, last = $last ) {
<li>
{{ page.pageNum }}
</li>
}
It appeared there is no issue in the provided code. And the behavior of Datadog platform where service.name attribute is not displayed - is just how the platform works, you can see that on the screenshot in the original question.
Got the answer. These rules to follow: Strings can be enclosed only in:
it is hard to know the number of columns which contains Nan value from dataframe which has 3000 or more than that ..use the following command to get the list of columns which contains Nan values
print(df.columns[df.isna().any()])
In my project I was upgraded nodejs version to 20 and after that test cases failed. And I tried with many solution with jest config, but it didn't work unless and until I have created jest.config.json file on root directory. Earlier this config was in package.json file.
I have used transformIgnorePatterns
in jest config file which help us ignore node_modules which not supporting current nodejs version
I had this problem then switched to using Google Collab and the problem was solved.
Linux interpret system (BIOS) time as UTC and add your timezone for current time. So, if your current time is 15:00 and timezone Europe/Paris (+2), system time is 11:00. Windows by default interpret system time as your current time.
If you want to store time in database in your timezone (Paris time), you need to set "USE_TZ = False". This is not an option, if you want to work with clients from other timezones.
If you want to use Windows and Linux on one machine with correct time, you need to set "RealTimeIsUniversal" to 1. Google it for more details on your Windows version.
For css:
button.gm-ui-hover-effect { visibility: hidden;}
Or Props:
<InfoWindow
position={school.locationPoint}
options={{ disableAutoPan: true, headerDisabled: true }}
>
Add the word doc to the project to the solution (drag and drop). Right click on the file in the solution explorer - Select Copy to Output Directory option (copy always) or (copy if newer).
Searching for nested attributes is not supported by default in SAP Commerce (Hybris) when using the Backoffice advanced search. If you are required to implement such a feature, the two options would be:
1) Extend the advanced search logic (see AdvancedSearchController class)
2) Add a productCode attribute to CustomerReview and use a PrepareInterceptor.
Not just POST
but all other methods can send a body with request. You just need to handle such requests carefully (not ignoring the body)
For more detailed explanation: https://stackoverflow.com/a/983458/7771506
Thanks for @Koboo's response. My code worked with his solution. But I found other simpler solution. You need just change java time zone inside bootstrap class's main method:
@SpringBootApplication
public class ApiApplication {
public static void main(String[] args) {
TimeZone.setDefault(TimeZone.getTimeZone(ZoneOffset.UTC));
SpringApplication.run(ReflectBusinessApiApplication.class, args);
}
}
The error "org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed" usually occurs due to Groovy/Gradle script issues or JDK incompatibility. In my case, the problem was caused by Android Studio’s default JDK. Solution: Change JDK to a Locally Installed Version Open Android Studio. Go to File → Settings → Build, Execution, Deployment → Build Tools → Gradle. Under Gradle JDK, change the selection from the default Embedded JDK to your locally installed JDK. Click Apply and OK, then restart Android Studio. Sync Gradle again: File → Sync Project with Gradle Files. Why Does This Happen? The default JDK bundled with Android Studio might not be fully compatible with the Gradle version. Some third-party libraries require a specific JDK version to compile successfully. Gradle might be referencing an older or incompatible JDK, causing Groovy compilation issues. Alternative Fixes: If changing the JDK doesn't work, try:
Upgrading Gradle: Update gradle-wrapper.properties to a newer Gradle version. Deleting .gradle and .idea folders and then syncing again. Running Gradle from the command line for more details:enter image description here ./gradlew clean ./gradlew build --stacktrace Gradle Setting
I do not understand why Item keep a compact format.
Using expand function on an OData endpoint doesn't mean it will return a flat table.
It means that you are requesting related data, that are not by default provided in the response. Expand function can be used for complex types and collections.
How should I proceed to do so?
By the image, I guess, you are working in Power Query which offers JSON and XML parsing functionality. I would suggest following Parse text as JSON or XML (Power Query).
I'm getting an error while building in an Android environment (Termux). Can I fix it the same way in Termux?
use Flexible and SingleChildScrollView both
Flexible(
child: SingleChildScrollView(
child: ListView.builder()
I discovered that Firebase configuration and the service worker have limitations in in-app browsers. To address this, I wrapped the Firebase app initialization in a try-catch block.
let firebaseApp;
let messaging;
try {
firebaseApp = initializeApp(firebaseConfig);
messaging = getMessaging(firebaseApp);
} catch (err) {
console.error("Failed to initialize Firebase Messaging", err);
}
You can add a key rewrite
to avoid changing all routes
server: {
proxy: {
'/api': {
target: 'http://127.0.0.1:5000',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, ""),
}
}
}
Time Of Crash : 2025_02_05-17_44_06 Device Manufacturer: OPPO Device Model : CPH1909 Android Version : 8.1.0 Android SDK : 27 App VersionName : 4.4 App VersionCode : 4
This works with better animation
const flatListRef = useRef<FlatList>(null);
// Scroll to the end after updating messages
setTimeout(() => {
flatListRef.current?.scrollToEnd({animated: true});
}, 100); // Small delay to ensure the list is updated
I would start by looking at Retrieval Augmented Generation to include only the relevant parts of the video for a query instead of sending the transcript fully
in some Chinese boards you need to solder link from ws2812 to 48 pin, so dbl check
(I think)
Yes, you can pull the API Gateway Rules to local using Catalyst CLI. After enabling the APIG in Catalyst console, we can pull the rules as JSON file in local, test and deploy it.
The anti-controlled X gate has the following matrix.
The "reflection" gate defined in this video at 15:10 min does that. Here it is:
circuit.h([0,1])
circuit.z([0,1])
circuit.cz(0,1)
circuit.h([0,1])
This is a classic stream / buffer reading issue. Instead of bulk processing the entire streaming response from Solr, the intention is that the client will read it chunk by chunk and make sense of it as you go.
I have not tried this myself but there are streaming json parsers for the Python ecosystem (https://pypi.org/project/json-stream/) which seems to fit the bill at a glance. I believe you will be able to configure it so that your code consumes each doc at a time while still reading the stream from your streaming request.
Good luck
-- Jan Høydahl - Apache Solr committer
I got it moved to internal, only by exporting and importing again this json as user anonymous, which comes from a clean artifactory install:
{
"username" : "anonymous",
"firstName" : null,
"lastName" : null,
"email" : null,
"realm" : "internal",
"status" : "enabled",
"lastLoginTime" : 0,
"lastLoginIp" : null,
"password" : null,
"allowedIps" : [ "*" ],
"created" : 1738314752329,
"modified" : 1738314752329,
"failedLoginAttempts" : 0,
"statusLastModified" : 1738314752329,
"passwordLastModified" : 0,
"customData" : {
"disabled_password" : {
"value" : "true",
"sensitive" : false,
"clusterLocal" : false
}
},
"groups" : [ ]
}
Ensure CORS is not blocking your requests. Then, clear config & cache.
php artisan config:clear
php artisan cache:clear
OK guys, I got it sorted making a mix of Gerald’s: https://www.youtube.com/watch?v=2dllz4NZC0I
and Pavlos’s solutions: https://pavlodatsiuk.hashnode.dev/implementing-maui-blazor-with-zxing-qr-barcode-scanner
Created a CameraPage.xaml
<?xml version="1.0" encoding="utf-8”?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="FitnessPal.CameraPage"
xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI.Controls">
<ContentPage.Content>
<Grid>
<!-- Dark background to simulate modal effect -->
<BoxView Color="Black" Opacity="0.9" />
<!-- Scanner View in a smaller container -->
<Frame Padding="1" CornerRadius="10" BackgroundColor="DodgerBlue" Opacity="0.9" WidthRequest="350"
HeightRequest="500"
HorizontalOptions="Fill" VerticalOptions="Fill" BorderColor="SkyBlue">
<Grid>
<zxing:CameraBarcodeReaderView
x:Name="CameraBarcodeScannerView"
IsDetecting="True"
BarcodesDetected="BarcodesDetected"
VerticalOptions="Fill"
HorizontalOptions="Fill" />
<!-- Close Button -->
<Button Text="Close" TextColor="DarkOrange" FontSize="24" Clicked="OnCloseClicked"
HorizontalOptions="Center"
VerticalOptions="End"
Margin="5" />
</Grid>
</Frame>
</Grid>
</ContentPage.Content>
</ContentPage>
Then added necessary code behind to the CameraPage.xaml.cs
using System.Diagnostics;
using ZXing.Net.Maui;
namespace FitnessPal;
public partial class CameraPage
{
public CameraPage()
{
InitializeComponent();
CameraBarcodeScannerView.Options = new BarcodeReaderOptions
{
Formats = BarcodeFormats.TwoDimensional,
AutoRotate = true,
Multiple = false
};
}
private TaskCompletionSource<BarcodeResult> _scanTask = new();
public Task<BarcodeResult> WaitForResultAsync()
{
_scanTask = new TaskCompletionSource<BarcodeResult>();
if (CameraBarcodeScannerView != null)
{
CameraBarcodeScannerView.IsDetecting = true;
}
Debug.WriteLine($"Status: {_scanTask.Task.Status}");
return _scanTask.Task;
}
private async void BarcodesDetected(object? sender, BarcodeDetectionEventArgs eventArgs)
{
try
{
if (_scanTask.Task.IsCompleted) return;
CameraBarcodeScannerView.IsDetecting = false;
_scanTask.TrySetResult(eventArgs.Results[0]);
Debug.WriteLine("Scan result: " + eventArgs.Results[0].Value);
await MainThread.InvokeOnMainThreadAsync(async () =>
{
if (Navigation?.ModalStack.Count > 0)
{
await Navigation.PopModalAsync();
Debug.WriteLine("Closed CameraPage modal.");
}
});
}
catch (Exception e)
{
Debug.WriteLine($"Error detecting barcode: {e.Message}");
}
}
private async void OnCloseClicked(object? sender, EventArgs eventArgs)
{
try
{
CameraBarcodeScannerView.IsDetecting = false;
if (Application.Current?.MainPage?.Navigation != null)
{
await Application.Current.MainPage.Navigation.PopModalAsync();
Debug.WriteLine("Camera Page Closed.");
}
else
{
Debug.WriteLine("Go to Main Page.");
}
}
catch (Exception e)
{
Debug.WriteLine($"Error closing modal: {e.Message}");
}
}
}
Then to be totally clear here is the rest of important changes: MainPage.xaml
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:FitnessPal"
x:Class="FitnessPal.MainPage"
BackgroundColor="{DynamicResource PageBackgroundColor}">
<ContentPage.Content>
<Grid>
<!-- Add padding to respect the safe area -->
<Grid.Padding>
<OnPlatform x:TypeArguments="Thickness">
<On Platform="iOS" Value="0" />
<On Platform="Android" Value="0" />
</OnPlatform>
</Grid.Padding>
<BlazorWebView x:Name="BlazorWebView" HostPage="wwwroot/index.html">
<BlazorWebView.RootComponents>
<RootComponent Selector="#app" ComponentType="{x:Type local:Components.Routes}"/>
</BlazorWebView.RootComponents>
</BlazorWebView>
</Grid>
</ContentPage.Content>
</ContentPage>
MainPage.xaml.cs - getting rid of the top navigation
public MainPage()
{
InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
}
App.xaml.cs
public partial class App
{
public App()
{
InitializeComponent();
}
protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new NavigationPage(new MainPage())) {Title="Fitness Pal"};
}
}
Obviously the MauiProgram.cs needs the UseBarcodeReader:
builder.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
}).UseBarcodeReader();
Permissions added to Android manifest and ios plist.
But the last and not least, use of the CameraPage in the Blazor razor page:
<CustomButtonComponent CssClass="btn-outline-fp-info btn-fp-normal" OnClick="ScanQrCodeAsync">
Scan
</CustomButtonComponent>
<div>@_qrCodeResult</div>
</div>
@code {
...
private string _qrCodeResult = "Not scanned";
private async Task ScanQrCodeAsync()
{
var scanResult = await GetScanResultsAsync();
Debug.WriteLine($"Scan result: {scanResult.Format} -> {scanResult.Value}");
_qrCodeResult = $"Type: {scanResult.Format} -> {scanResult.Value}";
}
private async Task<BarcodeResult> GetScanResultsAsync()
{
var cameraPage = new CameraPage();
await Application.Current?.MainPage?.Navigation.PushModalAsync(cameraPage)!;
return await cameraPage.WaitForResultAsync();
}
I did not remove the Debug lines but hey, you know what it was for ;)
For anyone interested, there you go. Now I can use it in my ‘target’ nethod that retrieves the QR code value, appends the rest to make it a valid endpoint adress and finally send the POST request to that API endpoint. Happy Coding !
do you have any info if this error is still occurring? I'm a QlikCloud admin and I'm evaluating a possible migration to MySql of my source database. Thanks
ensure that your __RequestVerificationToken is not disabled
I personally go about it like this:
Honestly to me the new endpoint seems unnecessarily difficult. I don't see how the inbound plans make it better.
You may try to use alternate in annotation. @SerializedName(value = "c", alternate = "name")
I just want to add that after much research, I've come to the conclusion that there is no way currently to write a constexpr offset() in C++ (at least with version 20 and below, no clue about the next version), as crazy as it might sound…
No solutions suggested above actually work because they all use reinterpret_cast which is forbidden in constexpr. Edit : and to be more specific, c style cast (raw cast) equivalent to reinterpret_cast are forbidden too, quite obviously…
implicit conversion from 'number' to 'string' XTORE SOFTWAEA STRATEGY.mq5 50 28 implicit conversion from 'number' to 'string' XTORE SOFTWAEA STRATEGY.mq5 82 28 implicit conversion from 'number' to 'string' XTORE SOFTWAEA STRATEGY.mq5 96 28 implicit conversion from 'number' to 'string' XTORE SOFTWAEA STRATEGY.mq5 106 28
Time Of Crash : 2025_02_05-17_44_06 Device Manufacturer: OPPO Device Model : CPH1909 Android Version : 8.1.0 Android SDK : 27 App VersionName : 4.4 App VersionCode : 4
The problem is with the version code (the number after the + symbol), not the version name (the numbers before it). In Flutter/Android, the version code has to be unique and higher than any previous version you've uploaded to the Play Console.
No matter if it’s a major, minor, or patch update, the build number (version code) always needs to increase. This is because the Play Console relies on it to track releases and make sure updates are installed in the right order.
Could you provide a more detailed example? Thanks in advance!
Taking the comments about a Timer in a stopwatch app into consideration, if you absolutely need to use the Timer in the class, you can mark it as @Transient and SwiftData will not persist it.
@Transient private var timer: Timer?
doing that will make every child component render as a client component unfortunately
[The Legend of Zelda: Echoes of Wisdom][1]
To copy a specific table from the Hive
Export the Table from the Dev Environment: First, you'll need to extract the table data and its metadata from the dev environment. You can use Spark SQL along with Databricks utilities to achieve this.
Thanks, It solved.
I tried to create as below.
So, I changed as
Then, I could create new Instance!
How to create a serverless VPC with paid billing account while the free trial is active?
You can go for some third party services and tools like Sentry, Loggly etc. Most of them have everything you would need. Takes care of performance monitoring, error tracking etc in production.
Use this docker image instead as base for your DockerFile https://github.com/shelfio/libreoffice-lambda-base-image
element.innerHTML = "";
Looks like the issue is with how the dynamic query is being formed in ADF. The error 'The template function 'iem' is not defined or not valid' suggests there might be a syntax issue in your expression. Make sure you're properly escaping the double quotes in your dynamic query. Try using @concat('"', variables('schema'), '"."', variables('table'), '"') to explicitly wrap the schema and table names in double quotes. Also, verify that there are no extra spaces or unexpected characters in the variable values. If you're using @{} syntax, double-check that all functions and variables are correctly referenced.
As someone who works with legacy projects, usually I works with mavenLocal()
which I saved at .m2
cache during development.
here's the example in linux ubuntu
create cache using this path
/home/<user>/.m2/repository/com/google/android/exoplayer/exoplayer-core/<exoplayer_version>/<exoplayer_version>.pom
fixed by annotating with the following
@NoArgsConstructor
@AllArgsConstructor
I think I used loop in loop example
<#list record.item as item>
<tr>
<#list item.item as itemRec>
<td colspan="1" style="text-align: center;">
<img src="${itemRec.custitem_atlas_item_image@url}" style="width: 50px; height: 50px;" />
</td>
</#list>
</tr>
</#list>
Im facing an issue where I’m unable to establish a connection between two peers. We have created a peer connection factory, but whenever I write code for the connection factory, Unreal Editor crashes.
Do you have any insights into what might be causing this issue? Any guidance would be greatly appreciated.
-> Grant usage for schema2 at schema level TO schema1_select_group.
I figured GRANT USAGE should be enough since we didn't want the schema1 user to be able to select from view2 on schema2 directly.
-> Do not grant select privilege at table level in schema2 TO schema1_select_group.
Solution from @Kalind worked for me. If you don`t have firebase project attached, try make one and attach to your project. It would make API key and service account for itself, and consent screen would pass.
As Rob Spoor answered in comments, everything is correct, NotNull works before validator.
first each validation takes place without throwing any errors, then all validation errors are collected and wrapped in a single ConstraintViolationException. That's why it has a set of violations. That's why when implementing a constraint validator, the first step is to return true if the thing to validate is null. If it shouldn't be null then let @NotNull handle that.
I wonder what use are forums anymore if you don't even get a response? With ChatGPT's intervention, is everyone on vacation?
You can also disable inspection for this in PyCharm: File -> Settings -> Inspection -> Type "static" in Python -> Turn off "method is not delared static"