I found the solution, just try deleting your locally generated wallet folders e.g. "org1-wallet" or anything you have
I faced the same issue. In my case, I had done all the code integrations according to the documentation but was still facing the issue.
Then I ended the metro server and started it again clearing the cache
npm start -- --reset-cache
It worked for me. I deleted an image file and then attempted to replace it with another of the same name. Xcode kept saying the file already existed. I searched via Finder and the file was still there - I deleted it and was then able to add the new file via Xcode.
If you have the folder id you can use the Data Management, GET folder contents API: https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-contents-GET/ to access the files
on my VPS Ubuntu server, after trying all the solutions given on this page the problem still occurs, I only need to reboot my VPS server, and the error has gone
I hope someone who maybe has the same problem as me found this useful
Can you please provide the solution if we are using Java 17?
Fo anyone still interested, to avoid this effect you might use display: column
rather than column-reverse
on the parent and set the order
property on every child to set it in the right place.
These errors are caused by white spaces in the folder name, such as React Native
.
Problem solved after changing the name to ReactNative
.
Actually, load_from_file
and create_from_image
are not procedures but functions and return Image
and ImageTexture
, so solution was just
var img = Image.new().load_from_file(lang_path + "logo.png")
var texture = ImageTexture.new().create_from_image(img)
It's possible now using Databricks Apps.
when you go to a new page by the following command
onTap: (() => context.go("/secondPage"))
the router removes the previous destination and overlays the requested destination. that is why when you pop this destination. You are receiving an error. However when you go to new page using the following command.
onTap: (() => context.push("/secondPage"))
the previous page is still left on the stack and popping the new page exposes the previous page.
You could do something like this until a cleaner option is available.
customer = toSignal(
toObservable(this.id).pipe(
switchMap((id) => this.myService.getCustomer(id))
)
);
use local functions and call them in the cases.
In case this error occurs in the context of Azure Devops on a self-hosted runner, it is most likely due to the runner being run in a Powershell Core command line.
Using the suggested workarounds or running it in a Windows Powershell instead should fix the issue.
As I am not yet allowed to make comments, I want to react to David Browne's question: Why do you need them?
The answer to that is simple, a piece of software that I need to install depends on those tools (for the time being) and I therefore require them to be available.
If I could do without them, I would, but in this case I think there is not other option than to revert back to SQL Server 2019, as these tools are still included in that installation medium.
I found on another forum that it was an option to install them via the SQL server 2019 Installation Medium, but I am not sure that is a good idea. [how to install Components (client tools connectivity and Client tools backwords Compatibility) in sql server 2022][1]
Any advice/comments to that?
[1]: https://learn.microsoft.com/en-us/answers/questions/1499897/how-to-install-components-(client-tools-connectivi
I would recommend to give EventGrid a shot.
There is a quite good example on the docs already explaining exactly your case https://learn.microsoft.com/en-us/azure/azure-functions/functions-event-grid-blob-trigger?pivots=programming-language-csharp
Create an Event Subscription for the Blob Created event and then create a new EventGridTrigger Function.
Event based trigger are btw the recommended way for blob storage, as it has lower latency and calls on the storage account
I have same problem but when i start docker in local it work and in other machine it doesn't i have added hostname port in docker entrypoint
Using Google Colab, I had same issue*
*i.e.: ParseError: XML or text declaration not at start of entity: line 2, column 0
And, kind of counterintuitively, resolved as follows: Two indents on the import statement. And of course all else after that will need to extra-indent along.
Is the last variant also possible with structured table types? Inculding the definition of the line type inside the definition of ty_itab?
Types: BEGIN OF myTableLine,
field1 type string,
field2 type string,
END OF myTableLine.
TYPES: BEGIN OF ty_itab,
pruefer type qase-pruefer,
zeiterstl type qase-zeiterstl,
myTable type TABLE OF myTableLine WITH NON-UNIQUE DEFAULT KEY
ty_qase2 type t_qase2.
INCLUDE STRUCTURE s_f800komp.
TYPES: END OF ty_itab.
May be if your replace command.Parameters.AddWithValue("@paramDate", MyDate); by command.Parameters.Add("@paramDate", System.Data.SqlDbType.DateTime2).Value = MyDate;
it will work with MyDate = '0001/01/01 00:00:00" !!!
I was having same issue while connecting with Django. Later after following with few answers, able to solve by deleting the "Volume" created by the images. It was picking the old username and password from the volume, that is why it was not working even after rebuilding the image.
Changes to the internal load balancer are managed through Container Apps. If you want to modify the load balancer you need to update container apps. Though you do not have the full options exposed through Container Apps.
However, it sounds like you want to disable session affinity. Did you tried setting it over the ingress configuration? https://learn.microsoft.com/en-us/azure/container-apps/sticky-sessions?pivots=azure-portal#configure-session-affinity
Владимир, приветствую! Сейчас Vosk на GPU можно запустить только под управлением Linux. Базово, разработчик предлагает это делать в контейнере. Т.е. можно его запустить и под WSL. (у меня не получилось). Я рекомендую воспользоваться готовым решением на гите здесь . Там же можно найти как скомпилировать библиотеку Vosk для использования без Docker.
Обратите внимание, что для запуска на GPU нужно изменить модель - Удалить "min-active" из файла model/conf/model.conf или закомментить его. и вставить файл ivector.conf из большой EN модели.
function removeDayNameFromFormattedDate(formattedDate) { const dayOfWeekPattern = /^[A-Za-z]+,\s*/ formattedDate.replace(dayOfWeekPattern, '')
const monthNamePattern = /([A-Za-z]+)\s/; formattedDate.replace(monthNamePattern, (match, monthName) => monthName.substr(0, 3) + ' '); return formattedDate } removeDayNameFromFormattedDate(Wednesday,30 NOV 2024)
Open code cleanup settings in VS by going to Analyze=>Code Cleanup=>Configure Code Cleanup..
Include fixer Fix analyzer warnings and errors set in EditorConfig
Now run on a file using the broom icon or use key combination Ctrl+K, Ctrl+E (on windows)
If you are looking to set a default value activ, it seems like my code is working :
elif field_type.startswith("picklist"):
empty_space_before = MDBoxLayout(size_hint_y=None, height=3)
if settings["column"] == "left":
self.sub_column_1.add_widget(empty_space_before)
else:
self.sub_column_2.add_widget(empty_space_before)
options = field_type.split("(")[1].strip(")").split(",")
default_value = settings.get("default", options[0]) # Use the first option if no default specified
column_value = MDSegmentedButton(size_hint=(1, None), height="30dp", pos_hint={'center_x': 0.5})
default_segment = None
for option in options:
segment = MDSegmentedButtonItem(MDSegmentButtonLabel(text=option.strip()))
if option.strip() == default_value:
segment.active = True
print(f"Default value for {column_name}: {option.strip()}")
column_value.add_widget(segment)
# Ajouter la picklist à gauche et le texte explicatif à droite
row_layout.add_widget(column_value)
if settings["column"] == "left":
self.sub_column_1.add_widget(column_label)
empty_space_after = MDBoxLayout(size_hint_y=None, height=5)
self.sub_column_1.add_widget(empty_space_after)
else:
self.sub_column_2.add_widget(column_label)
empty_space_after = MDBoxLayout(size_hint_y=None, height=5)
self.sub_column_2.add_widget(empty_space_after)
# Ajouter la ligne au bloc de saisie en fonction de la colonne définie
if settings["column"] == "left":
self.sub_column_1.add_widget(row_layout)
else:
self.sub_column_2.add_widget(row_layout)
# Stocker les champs de saisie pour les récupérer plus tard
self.input_fields[column_name] = column_value
I tried workarounds first since segment.state didn't seem to do what I wanted but a simple segment.active = True seemed to fix the problem ?
echo $(blueutil --connected)
return is null, then used res=$(blueutil --connected); echo $res
or used full path (for example /usr/bin/blueutil).Download the compatible version from
https://origin.softwaredownloads.sap.com/public/site/index.html
Download the developer edition for visual studio as mentioned at:
https://www.tektutorialshub.com/crystal-reports/install-crystal-reports-visual-studio/
Although the solution provided by Brian Ngure is not working, because wrong offsets trigger crashes. I used his idea to create a working one (at least for me :D).
VisualTransformation { text ->
TransformedText(buildAnnotatedString {
if (maxSymbols < 3) {
append(text)
} else {
append(text.take(maxSymbols - 3))
append("...")
}
}, object : OffsetMapping {
override fun originalToTransformed(offset: Int): Int {
return if (maxSymbols < 3) text.length else maxSymbols
}
override fun transformedToOriginal(offset: Int): Int {
return text.length
}
})
Where 3 == "...".length
In order for that to work you have to get maxSymbols that can be drawn on the screen.
You can do that in the onTextLayout
callback of the TextField
There are ready to use variables didOverflowWidth, didOverflowHeight, hasVisualOverflow
onTextLayout = { result ->
isTextOverflow = result.didOverflowWidth
},
If that's not working, you can get information about current text field width result.size.width
and by comparing that with the screen width from LocalContext.current.resources.displayMetrics.widthPixels
you can understand when there is an overflow. For some reason the dedicated variables are not working for me.
When the overflow happens, just use another variable to remember maxSymbols
and apply this transformation to the TextField and a decoration box, if you use one.
var isTextOverflow by remember { mutableStateOf(false) }
var maxSymbols: Int = remember(isTextOverflow) { if (isTextOverflow) text.text.length else 0 }
And also you might need to recreate the transformation as different symbols have different width and for different texts width might be different, but recreating transformation too often can be bad for performance.
Though the suggested answer by Krishnan works fine, there's a way to do it using just the TestNG xml file and @Parameter annotation without using DataProvider at all. It may be bulky, especially for bigger projects but it does exactly what arctic_monkey asked about, maybe someone will find it useful.
You can create multiple test tags with different parameter values but the same tests executed in each tag:
<suite name="Parameterized tests">
<test name="Login Tests one">
<parameter name="one"/>
<classes>
<class name="test.java.Login"/>
</classes>
</test>
<test name="Login Tests two">
<parameter name="two"/>
<classes>
<class name="test.java.Login"/>
</classes>
</test>
</suite>
You can also indicate particular methods in each class tag not to run the entire suite multiple times, but just the parameterized methods:
<suite name="Parameterized tests">
<test name="Login Tests one">
<parameter name="one"/>
<classes>
<class name="test.java.Login">
<methods>
<include name="loginTest"/>
</methods>
</class>
</classes>
</test>
<test name="Login Tests two">
<parameter name="two"/>
<classes>
<class name="test.java.Login">
<methods>
<include name="loginTest"/>
</methods>
</class>
</classes>
</test>
</suite>
i solution this question by install redisJoson module in windows.https://blog.csdn.net/Bilal_0/article/details/130231084
You can take a look at this: https://github.com/javiertuya/dashgit. It displays all your open issues/PRs/... as well as all repos/branches with their GitHub Actions status. Supports multiple GitHub/GitLab users/organizations
There's documentation that covers what you have to declare here.
Use a SingleChildScrollView around your widget, keep resizeToAvoidBottomInset: true
SingleChildScrollView(
// Make sure the SingleChildScrollView has a padding at the bottom equal to the keyboard height
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom)
child: ...
It sounds like you’re trying to get your Spring Boot Admin server to properly handle the /actuator/threaddump endpoint for your services, but you're hitting a deserialization issue. The key problem is that Spring Boot Admin uses WebFlux and its WebClient to call your services, while your services are using standard Spring MVC (Servlet) stack. Since Spring Boot Admin's WebClient stack is reactive and has its own ObjectMapper configuration, it doesn't pick up your custom ObjectMapper settings, leading to the deserialization error when it tries to process the thread dump response.
Here’s how you can fix it:
Solution Overview: You need to ensure that Spring Boot Admin's WebClient uses the same ObjectMapper configuration that you've applied to your service, particularly the ACCEPT_SINGLE_VALUE_AS_ARRAY feature.
Steps to Fix It: Create a Custom WebClient Configuration for Spring Boot Admin Since Spring Boot Admin internally uses a reactive WebClient (through WebFlux), you can customize that WebClient so it uses your ObjectMapper with the correct deserialization feature.
Never mind. I found that although the system contains .so of tinfo/gmp, but not .a files. I added .a for both libs, and the problem is solved.
Found a slightly easier solution suggested here
<Box sx={{ backgroundColor : { xs:'primary.main', md:'secondary:main'}, }}>
// Children come here
</Box>
you can go firebase consolse, in firestore databse, config the rule, i guess that
If you don't find an answer you like you could do it a silly way like this:
Make the main snippet only do half of the snippet you have now, up to the choices.
Then create different snippets based on all the choices you have.
For example create a separate 'chair' snippet with the prefix chairbf.
Now when you choose 'chair' in the main snippet you can type 'bf' after to get the completion for the chair choice snippet. This separate snippet will have the chair submenu options plus the ending of the main snippet you have now.
You'll have to create the other choice snippets, for 'nothing' and 'all', as well.
Please remove the white space from your folder name 'RN Test' and try again.
"commandA": "npm index.js",
"commandB": "npm server.js",
"comandName": "npm-run-all --parallel commandA commandB",
Note --parallel
is important else only commandA
will run and not commandB
On Version 16.1 (16B40) they are back, we didn't change any code and now they appear again in the inspector area.
The downside is that when in 16.x these custom field weren't displayed the editor was smooth and less laggy, now the problem is back again and we face "spinning wheel" animation quite ofter (as it was before the release of 16.x).
You could try the following two commands to paste from the clipboard. Both of them should work.
Ctrl+Shift+v
Shift+Insert
The Ctrl+U command only allows pasting text that was copied or cut from within nano itself, hence the reason the command is not working.
See: https://superuser.com/questions/1262153/how-to-paste-into-nano-from-clipboard
You can't assign _handleStateChange
to onStateChange
, their types are different, how about just call _handleStateChange
like this
_listener = AppLifecycleListener(
onStateChange: (state) {
_handleStateChange(context);
},
);
Call/cc,display emphasized text
Centerin your number##. Call tha display. Moubail In your phoune.
I found work project from a Chris Wellons. Read his article:https://nullprogram.com/blog/2023/03/23/ and show his a Source. I compiler his source and it is a work ( gcc src.c -static -nostdlib -fno-stack-protector -o run). Hope you are not writing a virus :). Good lack!
I have another question on this topic. The SQL query first returns the correct data for a machine. How do I have to change the query if I now add a column with e.g. MachineID to the table? This way I have all machine states in one table.
Many thanks for your support!
Oh Damn, it seems to be a hard challange.
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens |
ForEach-Object { '{0} x {1}' -f $_.Bounds.Width, $_.Bounds.Height }
Show:
PS C:\WINDOWS\System32> Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens | ForEach-Object { '{0} x {1}' -f $.Bounds.Width, $.Bounds.Height }
2560 x 1600 2880 x 1620
And
$height = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')[2]
$width = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')[0]
echo $width, $height
Show:
$height = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')1 $width = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')[0] echo $width, $height 1920 1200
in that order:
@mkelement I'll try the third Party later.
Thanks for help till now. Other ideas?
Adding to @Ray Burns' original guidance: "If you don't need Names on your objects, don't name them."
There are cases where naming elements is unavoidable, but in many cases, you can avoid it. There are several ways of doing that. My examples below briefly touch on that.
Suppose you have a UserControl with a Grid containing two rows. Row 0 contains a TextBlock with some text and Row 1 contains An Ellipse. Say you want to animate both elements so that when the user hovers over the control, the text and ellipse are highlighted in orange. Now do you need to assign names to the elements? In this case, no. You can simply use binding to achieve the effect, as shown below:
<UserControl x:Class="test.Components.AnimatedTextEllipseControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="White">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- TextBlock with Foreground bound to the UserControl's Foreground -->
<TextBlock Text="Sample Text"
Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}"
HorizontalAlignment="Center" VerticalAlignment="Center" />
<!-- Ellipse with Fill bound to the UserControl's Foreground -->
<Ellipse Grid.Row="1"
Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}"
Width="50" Height="50"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
<UserControl.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<!-- Color animation from Blue to Orange -->
<ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
To="Orange" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard>
<Storyboard>
<!-- Color animation from Orange back to Blue -->
<ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
To="Blue" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</UserControl.Triggers>
</UserControl>
Notice how no names were assigned to elements, but animations will still work due to binding.
Suppose you now want to animate the ellipse’s size on MouseEnter. How will you achieve that without telling the Storyboard which element to target? Naming here becomes essential to target the ellipse specifically. Here’s how the code would change:
<UserControl x:Class="test.Components.AnimatedTextEllipseControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="White">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Text="Sample Text"
Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}"
HorizontalAlignment="Center" VerticalAlignment="Center" />
<!-- Named Ellipse required for targeted size animations -->
<Ellipse Name="EllipseElem" Grid.Row="1"
Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}"
Width="50" Height="50"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
<UserControl.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
To="Orange" Duration="0:0:0.3"/>
<!-- Targeting the Ellipse using its name (EllipseElem) to increase its size on mouse enter -->
<DoubleAnimation Storyboard.TargetName="EllipseElem"
Storyboard.TargetProperty="Width" To="100" Duration="0:0:0.3"/>
<DoubleAnimation Storyboard.TargetName="EllipseElem"
Storyboard.TargetProperty="Height" To="100" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
To="Blue" Duration="0:0:0.3"/>
<!-- Targeting the Ellipse using its name (EllipseElem) to decrease its size on mouse enter -->
<DoubleAnimation Storyboard.TargetName="EllipseElem"
Storyboard.TargetProperty="Width" To="50" Duration="0:0:0.3"/>
<DoubleAnimation Storyboard.TargetName="EllipseElem"
Storyboard.TargetProperty="Height" To="50" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</UserControl.Triggers>
</UserControl>
The example above reiterates that while naming elements is sometimes unavoidable (e.g., targeted animations), avoid over-naming. In my example, only the ellipse needed a name for animation targeting, while the TextBlock did not. Overuse of names can increase memory usage and complexity, especially in larger applications, as Ray mentioned. The examples above are also meant to emphasize on having the proper knowledge of a language and its features.
Also note that the Name property itself cannot be animated due to WPF's restrictions. As noted in the FrameworkElement documentation:
Name is one of the very few dependency properties that cannot be animated...because the name is vital for targeting an animation.
If you are using shared values from Reanimated, you should use them only within useWindowDimensions
.
const { width } = useWindowDimensions();
// ... rest of the code
more in docs
{ "Countries":[{ "CountryName":"Indonesia", "States":[{ "StateName":"Bali", "Cities":["Denpasar", "Kuta", "Tuban" ]}, { "StateName":"Jakarta", "Cities":[ "Bandung", "Tanggerang" ] } ] }]}
exact same problem here with HP Elitebook 860 G11, W10 Enterprise 22H2 + HP Essential Dock G5 I'm running out of ideas right now..
This blog is truly outstanding, offering essential information in a thorough and thoughtful manner. I have great admiration for the effort the author has invested in creating such valuable content. Thank you for sharing this insightful and practical information with us. For an even richer experience and to gain further insights, I highly recommend visiting our website. Keep up the excellent work—I look forward to seeing more of your well-crafted posts in the future. Your commitment to delivering high-quality resources is truly appreciated! Raipur Escorts
Container cannot find mounting file in docker-compose.yml because container cannot create folder in container, which will contains mounting files.
Link to automatically creating folders in containers and mounting files When you want the container to automatically create folders or mount files:
If the container needs to have access to an SELinux-protected directory, using :z or :Z is necessary to ensure SELinux does not block it.
enter image description here import turtle from turtle import Turtle, Screen import random
tim = turtle
tim.colormode(255)
def random_colors():
r = random.randint(0, 255)
g = random.randint(0, 255)
b = random.randint(0, 255)
colors = (r, g, b)
return colors
tim.speed(1000)
def draw_spirograph(size_of_gap):
for i in range(int(360 / size_of_gap)):
tim.color(random_colors())
tim.circle(100)
tim.setheading(tim.heading() + size_of_gap)
draw_spirograph(5)
screen = Screen()
screen.exitonclick()
In my initial implementation, I returned result.href
directly, which caused unexpected behavior. To fix this, I needed to return the entire response object from the getFilePreview
method and then access the URL. By returning the full response, I was able to correctly retrieve the image preview URL.
So instead of return result.href
, simply return the full response object and then access the URL where needed.
async getFilePreview(fileId) {
if (!fileId) {
throw new Error("File ID is required.");
}
try {
const result = await this.bucket.getFilePreview(
conf.appwriteListingImagesBucketId,
fileId,
1800, // width
0, // height (ignored when 0)
"center", // crop center
"90", // compression
5, // border width
"CDCA30", // border color
15, // border radius
1, // full opacity
0, // no rotation
"FFFFFF", // background color
"jpg" // output format
);
return result; // Return the entire response object instead of just result.href
} catch (error) {
console.error("Error fetching file preview:", error);
throw new Error("Failed to fetch file preview.");
}
}
You can check this: https://github.com/javiertuya/dashgit. It displays in a single view all your open issues/PRs/... as well as branches and their statuses. It is hosted in GitHub Pages.
Add this capability to use 2.X Appium version
"browserstack.appiumVersion" : "2.6.0"
You can use this capability generator to get the caps as per your language.
The error is somehow related to the new Android Studio update. Checkout this issue: https://github.com/flutter/flutter/issues/156304
This answer can fix your problem: https://stackoverflow.com/a/79095064/7369590
This example excludes 75 and 80.
n1=input('Enter first number ')
n2=input('Enter second number ')
print sum(range(min(n1,n2)+1,max(n1,n2)))
With this way, it works for me!
(new ExampleJob($data))->delay($delay);
According to the Doc:How to: Convert between .NET Framework and Windows Runtime streams
.NET Framework streams don't support cloning, even after conversion. If you convert a .NET Framework stream to a Windows Runtime stream and call GetInputStreamAt or GetOutputStreamAt, which call CloneStream, or if you call CloneStream directly, an exception occurs.
You need to convert a System.IO.Stream to a Windows.Storage.Streams.IRandomAccessStream. You could refer to the thread: https://stackoverflow.com/a/48152204
Ok, at the end of my work day I let it run and eventually it actually completed!
BUILD SUCCESSFUL in 6h 7m 51s
It seems I just had to be very patient.
@Gakio's solution did not work in werf yaml template (got the error "range can't iterate over ..."). The following improvement helped:
apiVersion: v1
kind: Service
metadata:
labels:
app: some-app
name: some-service
namespace: some-namespace
spec:
ports:
{{ range untilStep 40000 42000 1 }} # start stop step
- port: {{ . }}
targetPort: {{ . }}
name: exposed-port-{{ . }}
{{ end }}
selector:
app: some-app
sessionAffinity: None
type: ClusterIP
We can do Streaming and Batch ingestion both on a single datasource. firstly, do batch ingestion. Next, do streaming ingestion by giving batch ingestion datasource name and vice versa. This senario will overcome the usecase.
Thanks Christoph:
nano /usr/local/bin/rtsp.sh
#!/bin/bash
ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp://localhost:8554/mystream" \
-vf scale=1280:720 -vcodec libx264 -preset:v ultrafast -tune zerolatency -crf 33 -an -rtsp_transport tcp \
-c:a copy -f rtsp "rtsp://localhost:8554/mystream720p" &
ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp://localhost:8554/mystream" \
-vf scale=854:480 -vcodec libx264 -preset:v ultrafast -tune zerolatency -crf 33 -an -rtsp_transport tcp \
-c:a copy -f rtsp "rtsp://localhost:8554/mystream480p" &
ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp://localhost:8554/mystream" \
-vf scale=640:360 -vcodec libx264 -preset:v ultrafast -tune zerolatency -crf 33 -an -rtsp_transport tcp \
-c:a copy -f rtsp "rtsp://localhost:8554/mystream360p"
in mediamtx.yaml
paths:
mystream:
runOnReady: /usr/local/bin/rtsp.sh
runOnReadyRestart: yes
The mpl-token-metadata package requires you to use umi.
First you need to set up the umi framework: https://developers.metaplex.com/umi/getting-started#connecting-to-an-rpc
Metaplex has the docs on how to update tokens here:
https://developers.metaplex.com/token-metadata/update
In general, if this is a one time thing there are websites out there that you can use so that no code is required. One of those would be https://sol-tools.io/token-tools/token-management
it must package main
does effect, other package
You need a privacy manifest in your app and in the included libs, see https://www.freecodecamp.org/news/how-to-make-your-flutter-package-privacy-manifest-compatible/
Perhaps the most universal yet easy-to-maintan approach is this:
Make your top-level visible UI element a Grid
, it should be arranged by rows. Define <Grid.RowDefinitions>
for it. All rows should have Height="Auto"
except one, that one needs to have Height="*"
.
Your variable-height element should be placed in this *
row. This way, it will occupy all the remaining vertical space. This space will be controlled by the size of your entire window.
You can have more than one row with Height="*"
, but then you should better place a <GridSplitter<
between other UI elements to be vertically resized, such as borders. The approach can be easily generalized for the combination of rows and columns at different levels of nesting, and some of them can also be of variable height or width.
Please try out and let us know if you face any problems with that.
Thank you.
There is a workaround available: Git Hub Issue
In a nutshell they create a new temporary VPC and associate both Cloudmap NS and Route53 Hosted Zone with it. And then simply change the Hosted Zone association from temp VPC to shared VPC by using some AWS CLI commands. That worked in my case
Surprisingly all claims are parsed when i make request with token to API, just OpenIddictClientService authentication request dont return claims. Maybe claims in authentication response exist in other flows.
SELECT * FROM (SELECT id, ShipAddress, ShipZIPPostal, ROW_NUMBER() OVER (PARTITION BY shipaddress,shipzippostal ORDER BY id) ROWNUM1, ROW_NUMBER() OVER (PARTITION BY shipaddress,shipzippostal ORDER BY id DESC) ROWNUM2 FROM orders WHERE CONVERT(DATE,orderdate) = CONVERT(DATE,GETDATE()) ) x WHERE ROWNUM1 <> ROWNUM2
As nicely explained in thia post, I would recommend the followings:
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
RepeatMasker -pa 2
Then, you will get 8 cores. Your RepeatMasker will spawn two engine. Each engin would use 4 cores.
Excellent article. Currently we cannot create items in workspace using postman. I have one more request like, Can we invoke or trigger the fabric pipeline from postman using access tokens. Please suggest me.
If an app has a new feature that is to be released after internal testing, canary method decreases the risk of impact of unpredicted behaviour (hidden bug or misconfiguration). When the new feature is confirmed to work well, the feature may give different performance depending on parameters of that feature. To find out which set of parameters gives better performance we use A/B testing.
A typicall example in e-commerce is releasing new web page with new campaign of a product (canary deployment), then rearanging images, links or even modifying the contents of an advertisement on that web page to find out how viewers respond to the campaign (A/B testing).
Won't a continuous external counter solve your problem?
# ...
db_pos = -1
for ip in client_ips:
for _ in dbs:
db_pos += 1
db_pos %= len(dbs)
db = dbs[db_pos]
# ...
break
I have submitted my app for production but today no hope it has been 2 month..still it is in review state ..could any one help me to ressolve on it..Im not able to reach the customer support also even..
Please refer to the same issue on GitHub: No module named 'PyPDF2' .
pypdf2 is deprecated, replaced by pypdf.
https://github.com/py-pdf/pypdf/issues/456#issuecomment-2071363332
sudo dnf install python-pip pip --version ( this will point you to default python which is py3.9 in AL2023)
Facing the same problem version 0.2.2 also didnt work Unhandled Exception: Exception: videoQuality cannot be empty any solutions?
In the end, I put this line of code unset DOCKER_HOST
in my bashrc.
But I do not think it's the right solution, thus I'm not going to accept this answer as the correct one.
I was trying to upload pic on my cms but after some attempts I receive maximum request length exceeded. I am requesting you please solve my problem
Close your app and run again. I think its work
I'm the creator of Skifta a tool that might suit your needs. It’s a CLI tool that makes it simple to apply transformations directly to fields in SQL files before you share the dump. You can keep the same field lengths too, so no issues with overflow. Just configure the fields you want obfuscated, and Skifta handles the rest. Makes it pretty easy to mask things up without breaking the data structure.
Check it out here.
Follow this link: https://github.com/prettier/eslint-plugin-prettier, to get to the eslint-plugin-prettier GitHub repository and you'll find the solution and the reason why this is happening in the README file. Best of luck 🤞
I have added an extra option rust-analyzer.rustfmt.extraArgs
to my settings.json
file:
{
"[rust]": {
"editor.inlayHints.enabled": "offUnlessPressed",
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
},
"rust-analyzer.rustfmt.extraArgs": ["+nightly"]
}
Now it works as I expect it - file saving applies formatting according with style_edition
, imports_granularity
, group_imports
and other nightly options from a rustfmt.toml
.
What is important is what structure the backend returns the error to you, what you need to do is to first understand the structure of the error and log it, and after seeing the log field, save it in a signal (or variable) and Use it. for example:
.subscribe({
next: () => {
//When backend is happy!
},
error: (error : HttpErrorResponse) => {
console.log(error.error)
this.errorMessage.set(error.error.message)
}
})
Issues Resolved API required a query parameter of client id.
anyone is working on aws managed service flink kerberos authentication using pyflink in python i am getting this error log in the dashboard 2024-11-12 11:57:36 org.apache.flink.runtime.JobException: Recovery is suppressed by NoRestartBackoffTimeStrategy at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.handleFailure(ExecutionFailureHandler.java:138) at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.getFailureHandlingResult(ExecutionFailureHandler.java:82) at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:309) at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeHandleTaskFailure(DefaultScheduler.java:299) at org.apache.flink.runtime.scheduler.DefaultScheduler.updateTaskExecutionStateInternal(DefaultScheduler.java:290) at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:792) at org.apache.flink.runtime.scheduler.SchedulerNG.updateTaskExecutionState(SchedulerNG.java:79) at org.apache.flink.runtime.jobmaster.JobMaster.updateTaskExecutionState(JobMaster.java:452) at jdk.internal.reflect.GeneratedMethodAccessor143.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.lambda$handleRpcInvocation$1(AkkaRpcActor.java:304) at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:83) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcInvocation(AkkaRpcActor.java:302) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:217) at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:78) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:163) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20) at scala.PartialFunction.applyOrElse(PartialFunction.scala:123) at scala.PartialFunction.applyOrElse$(PartialFunction.scala:122) at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:580) at akka.actor.ActorCell.invoke(ActorCell.scala:548) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) Caused by: org.apache.kafka.common.KafkaException: Failed to construct kafka consumer at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:823) at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:665) at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:646) at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:626) at org.apache.flink.streaming.connectors.kafka.internals.KafkaPartitionDiscoverer.initializeConnections(KafkaPartitionDiscoverer.java:55) at org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscoverer.open(AbstractPartitionDiscoverer.java:94) at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.open(FlinkKafkaConsumerBase.java:574) at org.apache.flink.api.common.functions.util.FunctionUtils.openFunction(FunctionUtils.java:34) at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.open(AbstractUdfStreamOperator.java:100) at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOpenOperators(RegularOperatorChain.java:107) at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:700) at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$SynchronizedStreamTaskActionExecutor.call(StreamTaskActionExecutor.java:100) at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:676) at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:643) at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:953) at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:922) at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:746) at org.apache.flink.runtime.taskmanager.Task.run(Task.java:568) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.apache.kafka.common.KafkaException: javax.security.auth.login.LoginException: Unable to obtain password from user
at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:184)
at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:192)
at org.apache.kafka.common.network.ChannelBuilders.clientChannelBuilder(ChannelBuilders.java:81)
at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:105)
at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:737)
... 18 more
Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user
at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:877)
at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:740)
at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:592)
at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:747)
at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:672)
at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:670)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:670)
at java.base/javax.security.auth.login.LoginContext.login(LoginContext.java:581)
at org.apache.kafka.common.security.authenticator.AbstractLogin.login(AbstractLogin.java:60)
at org.apache.kafka.common.security.kerberos.KerberosLogin.login(KerberosLogin.java:103)
at org.apache.kafka.common.security.authenticator.LoginManager.<init>(LoginManager.java:62)
at org.apache.kafka.common.security.authenticator.LoginManager.acquireLoginManager(LoginManager.java:105)
at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:170)
... 22 more
main causing issue is Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user
I also have the same problem, have you solved it ?
Use in build function like
date_format($eachNotification->created_at,'d-M-Y');
May I ask where you called this method? Did I write it the same as you or did it encounter an error
hi im facing this issue where it seems stucks somehow, do u have any idea ? it shows : Prepared 2862 of 2873 files for committing to GitHub.
and stucks few hours already
R is imported with the following structure. {namespace}.R
you can find the namespace in the gradle module app.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Chatbot in JavaScript | CodingNepal</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Google Fonts Link For Icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@48,400,1,0" />
<script src="script.js" defer></script>
</head>
<body>
<button class="chatbot-toggler">
<span class="material-symbols-rounded">mode_comment</span>
<span class="material-symbols-outlined">close</span>
</button>
<div class="chatbot">
<header>
<h2>Chatbot</h2>
<span class="close-btn material-symbols-outlined">close</span>
</header>
<ul class="chatbox">
<li class="chat incoming">
<span class="material-symbols-outlined">smart_toy</span>
<p>Hi there <br>How can I help you today?</p>
</li>
</ul>
<div class="chat-input">
<textarea placeholder="Enter a message..." spellcheck="false" required></textarea>
<span id="send-btn" class="material-symbols-rounded">send</span>
</div>
</div>
</body>
</html>
<style>
/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #E3F2FD;
}
.chatbot-toggler {
position: fixed;
bottom: 30px;
right: 35px;
outline: none;
border: none;
height: 50px;
width: 50px;
display: flex;
cursor: pointer;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #724ae8;
transition: all 0.2s ease;
}
body.show-chatbot .chatbot-toggler {
transform: rotate(90deg);
}
.chatbot-toggler span {
color: #fff;
position: absolute;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
opacity: 1;
}
.chatbot {
position: fixed;
right: 35px;
bottom: 90px;
width: 420px;
background: #fff;
border-radius: 15px;
overflow: hidden;
opacity: 0;
pointer-events: none;
transform: scale(0.5);
transform-origin: bottom right;
box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
0 32px 64px -48px rgba(0,0,0,0.5);
transition: all 0.1s ease;
}
body.show-chatbot .chatbot {
opacity: 1;
pointer-events: auto;
transform: scale(1);
}
.chatbot header {
padding: 16px 0;
position: relative;
text-align: center;
color: #fff;
background: #724ae8;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
position: absolute;
right: 15px;
top: 50%;
display: none;
cursor: pointer;
transform: translateY(-50%);
}
header h2 {
font-size: 1.4rem;
}
.chatbot .chatbox {
overflow-y: auto;
height: 510px;
padding: 30px 20px 100px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
background: #fff;
border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 25px;
}
.chatbox .chat {
display: flex;
list-style: none;
}
.chatbox .outgoing {
margin: 20px 0;
justify-content: flex-end;
}
.chatbox .incoming span {
width: 32px;
height: 32px;
color: #fff;
cursor: default;
text-align: center;
line-height: 32px;
align-self: flex-end;
background: #724ae8;
border-radius: 4px;
margin: 0 10px 7px 0;
}
.chatbox .chat p {
white-space: pre-wrap;
padding: 12px 16px;
border-radius: 10px 10px 0 10px;
max-width: 75%;
color: #fff;
font-size: 0.95rem;
background: #724ae8;
}
.chatbox .incoming p {
border-radius: 10px 10px 10px 0;
}
.chatbox .chat p.error {
color: #721c24;
background: #f8d7da;
}
.chatbox .incoming p {
color: #000;
background: #f2f2f2;
}
.chatbot .chat-input {
display: flex;
gap: 5px;
position: absolute;
bottom: 0;
width: 100%;
background: #fff;
padding: 3px 20px;
border-top: 1px solid #ddd;
}
.chat-input textarea {
height: 55px;
width: 100%;
border: none;
outline: none;
resize: none;
max-height: 180px;
padding: 15px 15px 15px 0;
font-size: 0.95rem;
}
.chat-input span {
align-self: flex-end;
color: #724ae8;
cursor: pointer;
height: 55px;
display: flex;
align-items: center;
visibility: hidden;
font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
visibility: visible;
}
@media (max-width: 490px) {
.chatbot-toggler {
right: 20px;
bottom: 20px;
}
.chatbot {
right: 0;
bottom: 0;
height: 100%;
border-radius: 0;
width: 100%;
}
.chatbot .chatbox {
height: 90%;
padding: 25px 15px 100px;
}
.chatbot .chat-input {
padding: 5px 15px;
}
.chatbot header span {
display: block;
}
}
</style>
<script>
const chatbotToggler = document.querySelector(".chatbot-toggler");
const closeBtn = document.querySelector(".close-btn");
const chatbox = document.querySelector(".chatbox");
const chatInput = document.querySelector(".chat-input textarea");
const sendChatBtn = document.querySelector(".chat-input span");
let userMessage = null; // Variable to store user's message
const inputInitHeight = chatInput.scrollHeight;
// API configuration
const API_KEY = "PASTE-YOUR-API-KEY"; // Your API key here
const API_URL = `https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=${API_KEY}`;
const createChatLi = (message, className) => {
// Create a chat <li> element with passed message and className
const chatLi = document.createElement("li");
chatLi.classList.add("chat", `${className}`);
let chatContent = className === "outgoing" ? `<p></p>` : `<span class="material-symbols-outlined">smart_toy</span><p></p>`;
chatLi.innerHTML = chatContent;
chatLi.querySelector("p").textContent = message;
return chatLi; // return chat <li> element
}
const generateResponse = async (chatElement) => {
const messageElement = chatElement.querySelector("p");
// Define the properties and message for the API request
const requestOptions = {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
contents: [{
role: "user",
parts: [{ text: userMessage }]
}]
}),
}
// Send POST request to API, get response and set the reponse as paragraph text
try {
const response = await fetch(API_URL, requestOptions);
const data = await response.json();
if (!response.ok) throw new Error(data.error.message);
// Get the API response text and update the message element
messageElement.textContent = data.candidates[0].content.parts[0].text.replace(/\*\*(.*?)\*\*/g, '$1');
} catch (error) {
// Handle error
messageElement.classList.add("error");
messageElement.textContent = error.message;
} finally {
chatbox.scrollTo(0, chatbox.scrollHeight);
}
}
const handleChat = () => {
userMessage = chatInput.value.trim(); // Get user entered message and remove extra whitespace
if (!userMessage) return;
// Clear the input textarea and set its height to default
chatInput.value = "";
chatInput.style.height = `${inputInitHeight}px`;
// Append the user's message to the chatbox
chatbox.appendChild(createChatLi(userMessage, "outgoing"));
chatbox.scrollTo(0, chatbox.scrollHeight);
setTimeout(() => {
// Display "Thinking..." message while waiting for the response
const incomingChatLi = createChatLi("Thinking...", "incoming");
chatbox.appendChild(incomingChatLi);
chatbox.scrollTo(0, chatbox.scrollHeight);
generateResponse(incomingChatLi);
}, 600);
}
chatInput.addEventListener("input", () => {
// Adjust the height of the input textarea based on its content
chatInput.style.height = `${inputInitHeight}px`;
chatInput.style.height = `${chatInput.scrollHeight}px`;
});
chatInput.addEventListener("keydown", (e) => {
// If Enter key is pressed without Shift key and the window
// width is greater than 800px, handle the chat
if (e.key === "Enter" && !e.shiftKey && window.innerWidth > 800) {
e.preventDefault();
handleChat();
}
});
sendChatBtn.addEventListener("click", handleChat);
closeBtn.addEventListener("click", () => document.body.classList.remove("show-chatbot"));
chatbotToggler.addEventListener("click", () => document.body.classList.toggle("show-chatbot"));
</script>
1.TempData in Partial Views: TempData is typically used to store data for the next request, but it might not work seamlessly with partial views because partial views don't trigger a full request cycle. In this case, the TempData values are not getting carried over to the partial view as expected.
2.Toastr.js Message Not Displaying: Since the animation is showing but no message is being rendered, it likely indicates that the JavaScript code is not properly handling or displaying the message content.
3.Unable to Edit Data in Index.cshtml with TempData: TempData is not persisting the ID properly for your edits in Index.cshtml, which may point to an issue with how data is passed or how the page lifecycle works with partial views.
def url_validator(url: str) -> bool: """ use this func to filter out the urls to follow only valid urls :param: url :type: str :return: True if the passed url is valid otherwise return false :rtype: bool """
#the following regex is copied from Django source code
# to validate a url using regax
regex = re.compile(
r"^(?:http|ftp)s?://" # http:// or https://
r"(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|" # domain...
r"localhost|" # localhost...
r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" # ...or ip
r"(?::\d+)?" # optional port
r"(?:/?|[/?]\S+)$",
re.IGNORECASE,
)
blocked_sites: list[str] = []
for site in blocked_sites:
if site in url or site == url:
return False
# if none of the above then ensure that the url is valid and then return True otherwise return False
if re.match(regex, url):
return True
return False
In Xcode 15: Product > Test Plan > Edit Test Plan. Then update Localization section with the parameters you need.
This sample which uses Syncfusion DocIO library's mailmerge functionality, helps to achieve your requirement https://github.com/SyncfusionExamples/Mail-Merge-Examples/tree/master/Generate-order-details-of-customer.