Scoped Values | Java 22 Feature
9:21
Java 22 New Features
50:35
8 ай бұрын
Пікірлер
@lewisliu1296
@lewisliu1296 7 күн бұрын
Good video, however the compiling does not work with error at my machine. [ERROR] /d:/home/vector/chat-engine-rag-main/chat-engine-rag-server/src/main/java/com/codewiz/chatenginerag/advisor/CustomChatMemoryAdvisor.java:[3,42] cannot find symbol [ERROR] symbol: class AdvisedRequest [ERROR] location: package org.springframework.ai.chat.client.
@sharanballundagi5592
@sharanballundagi5592 19 күн бұрын
nice course to start
@Maximus98245
@Maximus98245 Ай бұрын
Seems like a very good presentation but I miss about 50% of the words due to accent. Can you please put subtitles? That will help me appreciate the explanations a lot. Thanks
@Code.Wizzard
@Code.Wizzard Ай бұрын
Thanks for the feedback. Will plan that
@sengottaiyanperiyasamy5459
@sengottaiyanperiyasamy5459 Ай бұрын
Insightful, looking for more AI video's
@HfGf-ss2gm
@HfGf-ss2gm Ай бұрын
❤❤❤
@omkar.at.office
@omkar.at.office 2 ай бұрын
Awesome explanation. Thanks!
@Code.Wizzard
@Code.Wizzard 2 ай бұрын
Thanks a lot for the feedback
@ravi1341975
@ravi1341975 2 ай бұрын
wow,this is cool to understand and implementation.thank you Code Wiz.
@ravi1341975
@ravi1341975 2 ай бұрын
Hi,this project really excited me and also interesting.I am getting this exeception: software.amazon.awssdk.services.s3.model.S3Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. I tried to fix it but i couldn't and i am passing the aws.s3.accesskey and aws.s3.secretKey as VM arguments. Can you guide me in this.
@Code.Wizzard
@Code.Wizzard 2 ай бұрын
Thanks for the feedback Ravi. That error looks like auth issue. May be first debug/log to see if the access key and secret key are getting set while initialising S3Client. Also you can test the credentials through AWS CLI. First install AWS CLI, then run `aws configure` and enter the credentials. Then run command `aws s3 ls` and see if bucket is getting listed.
@TomStephen-lz3jh
@TomStephen-lz3jh 3 ай бұрын
Can you do a video with redis and using similarity search with filter expression?
@Code.Wizzard
@Code.Wizzard 3 ай бұрын
Sure, will plan that. Thanks for the recommendation
@rsKayiira
@rsKayiira 3 ай бұрын
Excited for part 2 thank you
@Code.Wizzard
@Code.Wizzard 3 ай бұрын
Part2 is already there - kzbin.info/www/bejne/bGSzo62ci9aho9k We are working on the last one (UI) 😀
@nadetdevfullstack7041
@nadetdevfullstack7041 3 ай бұрын
Excellent
@ShouryaRaj-zz6jv
@ShouryaRaj-zz6jv 4 ай бұрын
How many videos (approx idea) will this project have? Or total duration??
@Code.Wizzard
@Code.Wizzard 4 ай бұрын
Two more videos to go, one for user authentication and second one for UI. Both should be around 60-90 minutes. Planning to do that in next 2-3 weeks. Thanks for checking.
@ShouryaRaj-zz6jv
@ShouryaRaj-zz6jv 4 ай бұрын
@@Code.Wizzard thanks 🙏🏼
@Unknown_V7
@Unknown_V7 4 ай бұрын
How do you use env file I am not able to do that
@Code.Wizzard
@Code.Wizzard 4 ай бұрын
For this video I had set it up as an environment variable in my OS I think. Since I am using mac I added something like `export places.api.key="testkey"` in .zshrc file. In windows this can be done in environment variables. Another way is to pass this as environment variable while starting the app. If you are doing it from intellij go to `Run->Edit Configuration` and then add `places.api.key=testkey` in Environment Variables section.
@Unknown_V7
@Unknown_V7 4 ай бұрын
@@Code.Wizzard thank you
@OleksandrProkopenko_ua
@OleksandrProkopenko_ua 5 ай бұрын
but i have a question: so how we can test 2nd version of your example with postman? Is it absolutly impossible? or is it just hard and inconveniently?
@Code.Wizzard
@Code.Wizzard 5 ай бұрын
Since the second one uses STOMP protocol on top of Websocket, I think it might not work since there are no options in postman to enable that. Will try to explore more.
@OleksandrProkopenko_ua
@OleksandrProkopenko_ua 5 ай бұрын
@@Code.Wizzard so it is a case to create simple html page to test your backend app, right? Or maybe is there an ability to write integration tests for this purpose?
@Code.Wizzard
@Code.Wizzard 5 ай бұрын
@@OleksandrProkopenko_ua correct, either can test it from a UI or write integration test using WebSocketStompClient
@OleksandrProkopenko_ua
@OleksandrProkopenko_ua 5 ай бұрын
its just a very good video. Thanks
@Code.Wizzard
@Code.Wizzard 5 ай бұрын
Thanks for your kind feedback
@UninspiredFilm5
@UninspiredFilm5 5 ай бұрын
Thank you :)
@liqwis9598
@liqwis9598 5 ай бұрын
Create for a full stack app bro
@Code.Wizzard
@Code.Wizzard 5 ай бұрын
Sure, thanks for the feedback. Will plan something
@liqwis9598
@liqwis9598 5 ай бұрын
Hello bro Can you do this with offline ai model using ollma
@Code.Wizzard
@Code.Wizzard 5 ай бұрын
Sure, I'll plan a video for that. Thanks for the feedback! Meanwhile, if you want to try it out, it's really easy to swap OpenAI with Ollama. Simply change the dependency from spring-ai-openai-spring-boot-starter to spring-ai-ollama-spring-boot-starter. This video has instructions on how to set up Ollama locally: kzbin.info/www/bejne/d5-ymWN5ariXfLs
@liqwis9598
@liqwis9598 5 ай бұрын
@@Code.Wizzard i have tried it out but not rag feature, so thought of asking you
@Code.Wizzard
@Code.Wizzard 5 ай бұрын
That's great! Just switching the dependency in codebase of this video should do the trick then. However, while running Ollama locally, keep in mind that we usually use 7B or 13B models. This might lead to some reduction in accuracy compared to OpenAI's paid models, which use a much larger model, around 1.7 trillion parameters or so.
@liqwis9598
@liqwis9598 5 ай бұрын
​@@Code.Wizzard let me try this 👍,, and bro please explain some more use. Cases with. Ai
@PrashantPujari-q9e
@PrashantPujari-q9e 6 ай бұрын
Thankyou for this. Best video on spring websocket so far.
@PrashantPujari-q9e
@PrashantPujari-q9e 6 ай бұрын
Can you please tell me on how to switch to wss from ws using SSL. (I am using spring websocket without stomp & sockjs)
@Code.Wizzard
@Code.Wizzard 6 ай бұрын
Thanks for your kind comments. Switching to SSL is straight forward For dev environment you can first create a self signed certificate using the below command. For production, it's recommended to obtain a certificate from a trusted CA. keytool -genkeypair -alias websocket -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore websocket.p12 -validity 3650 Add the below to application.properties server.ssl.key-store=file:<Path>/websocket.p12 server.ssl.key-store-password=<password> server.ssl.keyStoreType=PKCS12 server.ssl.keyAlias=websocket server.ssl.enabled=true After that you can access the websocket using url starting with wss://
@willywooca
@willywooca 6 ай бұрын
If I already have a SQL Script for the tables creation, can this tool generates the diagram from the script?
@Code.Wizzard
@Code.Wizzard 6 ай бұрын
That would be a nice feature to have. But it looks like this plugin doesn't support that. There are other tools like dbdiagram.io/d available, dbeaver.io/ which can be used for that. But I haven't used those.
@syringan2.015
@syringan2.015 5 ай бұрын
Yes, prepare the .sql file Right click on the blank erd.json file & choose import If the erd.json has content, it will overwrite/replace with the imported .sql
@gnsc
@gnsc 6 ай бұрын
Nice
@vijayarajan-bt5fk
@vijayarajan-bt5fk 6 ай бұрын
Nice concept thanks 🎉🎉🎉
@Code.Wizzard
@Code.Wizzard 6 ай бұрын
Thanks, Vijayarajan
@onkarkatkar2582
@onkarkatkar2582 6 ай бұрын
What if we have to fetch the data from db
@Code.Wizzard
@Code.Wizzard 6 ай бұрын
Usually, for real-time use cases, messages are pushed to your app via queue/topic or by calling your API by a client/external app. But if you want to push data from a DB over SSE, you can poll the DB at regular intervals for new data and push this data incrementally to the client using an SseEmitter. Hope that answers your question.
@soenghakkchoeurn
@soenghakkchoeurn 6 ай бұрын
Thank brother
@soenghakkchoeurn
@soenghakkchoeurn 7 ай бұрын
Please sir. Topic about nestjs graphql Prisma with notification graphql-ws(authentication over socket)
@Code.Wizzard
@Code.Wizzard 6 ай бұрын
We have a video on Graph QL Subscriptions over Websockets - kzbin.info/www/bejne/r4O7aKiKhbSChKc Will definitely plan other topics in future. Thanks for the feedback.
@alexandrodisla6285
@alexandrodisla6285 7 ай бұрын
graphql is an overkill. just a fb solution for fb problem
@hba6018
@hba6018 7 ай бұрын
Why not List.of(...) to create a List? you are working with streams
@Code.Wizzard
@Code.Wizzard 7 ай бұрын
Good point. List.of() is more optimised for this scenario since it provides an immutable list. Thanks for the feedback. Although Arrays.asList() provides a fixed size list, you can still replace an element in an existing index with another one using set operation
@nayrban2187
@nayrban2187 7 ай бұрын
Why use generic T instead of String?
@PatrickUdochukwu
@PatrickUdochukwu 7 ай бұрын
To make it generic, so you can use an type of list in future
@Code.Wizzard
@Code.Wizzard 7 ай бұрын
Thanks Patrick for answering. Building Gatherers with generics will allow us to use the same gatherer for other types. For example we can use the same fixed window gatherer for list of Person objects instead of String.
@yassineraddaoui5467
@yassineraddaoui5467 7 ай бұрын
thank you so much , can you give me some tips how to learn spring boot and spring flux
@Code.Wizzard
@Code.Wizzard 7 ай бұрын
Thanks for the comment. I would suggest to first get an in depth understanding of Spring Web before starting with web flux. We have one video on Spring Web which is a short one - kzbin.info/www/bejne/n4PMe6R_aNR0p6M. Planning to do a detailed crash course sometime soon. There are some nice courses in Spring Academy which are good for beginners like spring.academy/courses/building-a-rest-api-with-spring-boot. Also check some popular crash courses in KZbin. Along with the courses start building some projects. That is the best way to learn.
@patilrohan
@patilrohan 7 ай бұрын
Is it possible to send push notifications for PWA using this ??
@Code.Wizzard
@Code.Wizzard 7 ай бұрын
Nice question @patilrohan. Haven't tried this in PWA. But I think you can get this working by bypassing the service worker for SSE requests and using EventSource API directly in the main thread. I think service worker is inherently designed to handle offline scenarios, so it won't support persistent connection. Also, you might need to handle offline scenarios in the onError handler of EventSource API depending on the use case and avoid too many retries. Also, you might need to persist the last received event ID and pass it in the header while reconnecting.
@mraja6654
@mraja6654 7 ай бұрын
Nice one❤
@PriyaMenon000
@PriyaMenon000 8 ай бұрын
Fantastic breakdown! Your explanation really clarified some of the finer points of Java 22. Looking forward to more content like this!
@Code.Wizzard
@Code.Wizzard 8 ай бұрын
Thank you !
@Code.Wizzard
@Code.Wizzard 8 ай бұрын
Videos in the Core JAVA Quiz Series: Top JAVA Interview Questions Series - Core Java - Part1 - Quiz Format kzbin.info/www/bejne/gKXFhGyeltGer8ksi=oaqToJsKdqkxEx_U Top JAVA Interview Questions Series - Core Java - Part2 - Quiz Format kzbin.info/www/bejne/aYraaKp3fbyWqc0si=bL94lu2JaMCOsSR Top JAVA Interview Questions Series - Core Java - Part3 - Quiz Format kzbin.info/www/bejne/Z2rHf2mqepagidksi=NHDeHVmmAMc6EVms
@Code.Wizzard
@Code.Wizzard 8 ай бұрын
Videos in the SQL Quiz Series: Top SQL/Database Interview Questions Series - Part1 - Quiz Format kzbin.info/www/bejne/m2iUdoNvpaZmm8U Top SQL/Database Interview Questions Series - Part2 - Quiz Format kzbin.info/www/bejne/pGqkeplrbtxorZYsi=-eJ1J9hYCm6c3AaK Top SQL/Database Interview Questions Series - Part3 - Quiz Format kzbin.info/www/bejne/nnaud5t-apV1gcksi=1UMYxRsB2EcJ7rk7
@Code.Wizzard
@Code.Wizzard 8 ай бұрын
Videos in this Series: Top JAVA Interview Questions Series - Core Java - Part1 - Quiz Format kzbin.info/www/bejne/gKXFhGyeltGer8ksi=oaqToJsKdqkxEx_U Top JAVA Interview Questions Series - Core Java - Part2 - Quiz Format kzbin.info/www/bejne/aYraaKp3fbyWqc0si=bL94lu2JaMCOsSR Top JAVA Interview Questions Series - Core Java - Part3 - Quiz Format kzbin.info/www/bejne/Z2rHf2mqepagidksi=NHDeHVmmAMc6EVms
@Code.Wizzard
@Code.Wizzard 8 ай бұрын
Videos in the SQL Quiz Series: Top SQL/Database Interview Questions Series - Part1 - Quiz Format kzbin.info/www/bejne/m2iUdoNvpaZmm8U Top SQL/Database Interview Questions Series - Part2 - Quiz Format kzbin.info/www/bejne/pGqkeplrbtxorZYsi=-eJ1J9hYCm6c3AaK Top SQL/Database Interview Questions Series - Part3 - Quiz Format kzbin.info/www/bejne/nnaud5t-apV1gcksi=1UMYxRsB2EcJ7rk7
@Code.Wizzard
@Code.Wizzard 8 ай бұрын
Top C# DotNet Interview Questions Series - Part1 - Quiz Format kzbin.info/www/bejne/jZrOc4OjabOhr8k