- 684
- 1 321 985
Mike Møller Nielsen
Denmark
Приєднався 9 лис 2011
This channel contains tutorials and demonstrations within programming and tech in general.
I have worked with programming and technology for the last 30 years and I enjoy spreading the knowledge.
Feel free to leave comments about questions or how to improve this channel.
Thank you for watching my videos. :-)
On my Discord server we discuss tech and which topics future videos should be about:
discord.gg/K3nztZC
My web site:
www.codeinvestigator.com
¨
Support me on Patreon and enjoy more content soon.
www.patreon.com/mikemoellernielsen
I have worked with programming and technology for the last 30 years and I enjoy spreading the knowledge.
Feel free to leave comments about questions or how to improve this channel.
Thank you for watching my videos. :-)
On my Discord server we discuss tech and which topics future videos should be about:
discord.gg/K3nztZC
My web site:
www.codeinvestigator.com
¨
Support me on Patreon and enjoy more content soon.
www.patreon.com/mikemoellernielsen
Why Developers do not Like PRINCE2 Project Managers
Enjoy! :-)
Thank you for commenting and asking questions.
Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :)
discord.gg/K3nztZC
My web site:
www.codeinvestigator.com
One.com - Easy web sites
one.me/daauttew
The code is located here:
github.com/ekim197711
Follow me on twitter:
MikeMoelNielsen
Chat on Discord:
discord.gg/K3nztZC
Support me on Patreon:
www.patreon.com/mikemoellernielsen
Background nature video:
Video by Engin Akyurt from Pexels
www.pexels.com/video/beauty-of-waterfalls-2098989/
Thank you for commenting and asking questions.
Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :)
discord.gg/K3nztZC
My web site:
www.codeinvestigator.com
One.com - Easy web sites
one.me/daauttew
The code is located here:
github.com/ekim197711
Follow me on twitter:
MikeMoelNielsen
Chat on Discord:
discord.gg/K3nztZC
Support me on Patreon:
www.patreon.com/mikemoellernielsen
Background nature video:
Video by Engin Akyurt from Pexels
www.pexels.com/video/beauty-of-waterfalls-2098989/
Переглядів: 54
Відео
Mouse Shortcuts For Developers
Переглядів 62День тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Spring Boot ConditionalOnProperty 2024
Переглядів 6714 днів тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Git Regret Message
Переглядів 8121 день тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Kotlin Spring Boot 2024
Переглядів 135Місяць тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Mapstruct Gradle And Kotlin
Переглядів 97Місяць тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Java Group Annotations
Переглядів 118Місяць тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
JPA MappedSuperClass And Embeddable
Переглядів 107Місяць тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
SuperBuilder With Super Heros
Переглядів 124Місяць тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
IntelliJ helps you with method references
Переглядів 852 місяці тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Java Magic List Trick
Переглядів 4442 місяці тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Intellij Plugin CamelCase
Переглядів 1242 місяці тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Cucumber And Python Behave
Переглядів 1762 місяці тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Spring Boot Rest Expose Build Time Information
Переглядів 1782 місяці тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Optionals And Jpa Entities And Mapstruct
Переглядів 2223 місяці тому
Enjoy! :-) Thank you for commenting and asking questions. Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :) discord.gg/K3nztZC My web site: www.codeinvestigator.com One.com - Easy web sites one.me/daauttew The code is located here: github.com/ekim197711 Follow me on twitter: MikeMoelNielsen Chat on Discord: di...
Google Jam board For Scrum Retrospective
Переглядів 1173 місяці тому
Google Jam board For Scrum Retrospective
Thread Local And Jpa Entity Listener
Переглядів 1765 місяців тому
Thread Local And Jpa Entity Listener
Jpa Entity Listener Prepersist Alien Weight Manipulator
Переглядів 2135 місяців тому
Jpa Entity Listener Prepersist Alien Weight Manipulator
nice.. ty
You are welcome. It is very useful. Remember the F2 is your friend video. Also quite useful
Thank you! Anyway, what was the problem at 22:30?
I don't know.
Getting a white label error. Everything seems to be building fine. I can run the project through npm start and see the working app.
For those of you who may see this. I didnt have a robots.txt file for some reason. Adding it fixed it
Best practice is to split up the frontend and backend in seperate dockerimages so they can be scaled seperately.
please add subtitle
ok
Valuable Information.
Glad it was helpful!
Using vim motions is going to always be the best mouse shortcut
Agree :)
Thank for this video. It's work!
You're welcome! :-)
Thanks for introducing the 'more Pythonic' programmatic start of Uvicorn: so many FastAPI tutorials leave you with the first method and a two-command startup if your Python code is in a venv. But I was doing it like this: from fastapi import FastAPI import uvicorn app = FastAPI() @app.get("/") async def root(): return {"message": "hello world"} if __name__ == "__main__" : uvicorn.run("main:app", host="0.0.0.0", port=8000, log_level="info") What is the difference if any between this and your way?
Is there any way so it opens front end automatically, actually I want to make exe of these combine jar and i want to open my front end itself when I run my exe , is there any way?
You don't want an .exe file. You want a jar file you can wrap in a docker image and then act as api. Best practice is also to have a seperate frontend in it's own docker image. Then you can scale them seperately :)
basically you just edit commit message and force push to your remote. This way original commit will be rewritten.
Force push is very risky...
Thank you for the wonderful content😊. I have a request. I searched a lot for the content on how to make an application for browsing pdf doc ppt xls txt files, but I did not find it. I think this is an opportunity to create content that no one has touched upon! Please teach us how to develop an Android app using Android Studio in Java and if you could please use the Apache POI library😅? please 🙏 Much appreciated 😊
Added to backlog
@@MikesTechCorner Please 🙏! I really need that...
Conditonal works if that class dependecy is injected in other classes?
In that case you could make an interface and then in one situation you implement it one way and in other env you have other impl. Ill make a video
@@MikesTechCorner thanks.. Waiting for that!
btw your discord link is not working
Let me check
I doubt any ladies are watchin this
There are some and I would like more women to be interested in tech. :)
I didn't find, could we generate extension methods with mapstruct instead of using mapper class?
Just create the interface and then the class is generated by mapstruct
Hello Mike, Nice tutorial on mapstruct.!! Does this work in Spring Boot Gradle project?
Yes. I'll make vid.
Great content and channel 😢😢😢 are you addicted to typing...?
Yes I am :))
thank youuu!
You're welcome!!
how to stop that continuous retrying data not to trigger
You can setup a backoff strategy. Like an exponential one
Can you please create a small Spring Boot project using Gradle with Firestore integration and host it on Render? I encountered an error while attempting this project: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist.
Host it on Render?
Cannot unzip created zip file when its size is more than a GB. But I could unzip when its below 1gb. Anything I am missing?
Check out zip4j and consider splitting your zipped file into smaller files. <dependency> <groupId>net.lingala.zip4j</groupId> <artifactId>zip4j</artifactId> <version>1.3.2</version> </dependency>
Method references in not okay, its create more difficultes in debugging code. you cant see the arguments for method which invoked with referense. So you have to go to the method and try to cath arguments insed it, and what if this method has many invocations over the code? And what if it invocated in multythreads? In my opinon, many of functional syles added in java since 1.8 a do more harm than good, yes all its "sugar" brobably good to make code from scratch, but after its provide a lot of problems in supporting code, espectially if code contains a reactive stuff, so if you want a functionallity paradigm go scala or kotlin, leave java clean and simple.
Valid point. It is still possible to place a break point in the method to see what is going on.
Great content, Thanks! Could you please help me with a doubt.Suppose 2 threads are in between processing. When i initiate a shutdown, will it wait for those threads to complete and also stop taking any request for processing
It will stop taking on new requests. When the current requests (session threads) are done then the application will stop. If you create new threads by code then those are not ensured to be done before shutdown.1
@@MikesTechCorner Okey understood, Thanks Mike.This helps a lot 😇
Hi mike. Could try to do a video about codium plugin. It competitor to github capilot and it is free for individuals except for teams
Added to backlog
thanks@@MikesTechCorner
anyway, thanks for the Collection's shuffle method reveal. In 7 years didn't even know it exists
You're welcome! :-) There are a lot of unexplored methods. I feel like Indiana Jones when I look at the JDK code.
lol man :D This is a java basics. Called an Interface. Interface Describes the way implementing type MUST behave. And this case means interface List just extends original Collection interface "promised" (or described, if you want) functionality that implementing types must provide. It's just a method overloading in the end. Why your List interface forces you to use Index-based "remove" method? Because you're giving it a primitive integer value. And List provides extension that basically accepts integer as an argument. And method overloading resolution happens at compile time by the most suitable value you pass.
Yes yes yes. I was just amazed by it. :)
))
Thank you :)
Awesome tutorial! Thanks for this one! How do you access the tty afterwards to use the command line "op" command?
You have to take over the "main" session with the terminal. I would recommend you to use linux screen. linuxize.com/post/how-to-use-linux-screen/
Great video. Instead of using cloud functions, could you do it this way?: 2 compute engine isntances one in EU one in US. And both sit infront of a global load balancer. The api backend code will be in the VMs. Is that possible?
You can wire the GCP in any way you want. But best practice is to have LB first and then route traffic to any GCP resource from there. If you have a BE api then use the API Gateway.
@@MikesTechCorner thanks
Thanks mike .so can we use createitem in flux which insert into cosmos db
I have not tried that but I would be very surprised if it is not possible.
@MikesTechCorner right but createitem having part of mono<cosmosresponseitem> not flux right .can you share one example like how we use flux for createitem .for itemquery works fine but not createitem.
Nice
Thanks
following my previous comment: @Configuration @ConfigurationProperties public class GitInfo { private Map<String, String> git } Inject that gitInfo bean into BuildInfoRestController and the buildInfo() method will return gitInfo.getGit(). So, no need of the ClassLoader and about 10 lines of code.
Good grief. Don't make it easier for business people to understand technology.
The closer devs and business ppl work together the better they understand and solve the business problems.
Cool, educative, clearly understandable video. Appreciate it! Thank you for your efforts!
My pleasure! Thx for watching
Thanks
Welcome. Thx for watching
Hi @MikesTechCorner, i self studding spring, yours videos very helpful. Could you help me to understand what i do wrong. I want to recive all file paths from SFTP, i make interface Gateway and Bean but i get exception when i call it . I try to path payload and run code with payload. Thank you for help. @Bean @ServiceActivator(inputChannel = "sftpChannel") public MessageHandler handler2(SessionFactory<SftpClient.DirEntry> factory) { return message -> { SftpOutboundGateway sftpOutboundGateway = new SftpOutboundGateway(sftpSessionFactory(), "ls", (String) message.getPayload()); sftpOutboundGateway.setOptions("-R"); sftpOutboundGateway.handleMessage(message); }; } @Gateway(requestChannel = "sftpChannel") public List<SftpFileInfo> listFiles(@Payload String payload); Console error: o.s.i.expression.ExpressionUtils : Creating EvaluationContext with no beanFactory java.lang.RuntimeException: No beanFactory
I would recommend you to use one of the clouds instead if possible. Like GCP and then use a bucket for DL and upload. It has been some time since I looked at SFTP and Spring Integration. You could try to skip the Spring Integration and just have a manually triggered service instead.
The only true way, when it´s very boring, guess your way through it 😎 Love it!
lol yes. It's quite fun to do Cucumber tests when you get started. Just remember not to dump all steps in the same file.
Amazing tutorial. Thank you so much for simplifying this for me.
Glad it was helpful! :)
It was great. It made me crazy. Unfortunately, this edition is not free. But it seems it is possible to do that with vscode.
I actually use pure windows now. There are too many annoying things with WSL2. Depending on the version of IntelliJ it will reindex every time you open a project + very slow.
Good bro
Thanks
Thanks Mike. It was really helpful :)
You're welcome!
How to do it in Maven?
With the same code. It's just an xml format of the dependencies.
@@MikesTechCorner ok thanks
great content my friend , just one friendly information , the official google cloud channel says that the "P" in "PCollection" or any other "P" stands for parallel , cause we're processing everything in Parallel with beam , GREAT Video though , it really helped me understand ALOT about beam and cloud dataflow , thanks
Aaah ok. makes sense with the P. Thank you my friend. :)
Thank you! Very good example! 💛
Glad you liked it!! Thank you for watching
11:40 I am not sure if it's "all about readability" between Optional::of and Optional::ofNullable. Optional::of throws NPE if the value is null, while Optional::ofNullable doesn't. So, Optional API it is NOT “a solution to prevent NPE in Java”, because Optional::of throws NPE. It is for MODELLING stuff, for modelling the fact that “a value could or could not be there”... By the way, thanks for your videos, you content is great! I've learned a lot and recommend to colleagues of mine here in Aarhus, Denmark :)
Yes Aarhus is great! Thank you for your comments and valid points. Optionals can be used to express to fellow coders that something could be null here or now I'm handling null values.
Awesome. I had this issue last week and this is very useful 😂
Glad it helped! Optional's are very useful when used correct! :-)
Single-handedly made my project work!
I'm happy to hear. :)
How to use volume in play with docker if project depends on external file
Volume mapping is easy. Also check out the mount option. docs.docker.com/storage/volumes/
Thank you. I was wondering why in some parts of our legacy projects we have Optional of List in JPA Repositories. It was so because sometimes people got null if they wrote @Query with unused method parameter. But as I read in docs repository methods guarantee to return collections or whatever was set as return wrapper type. What do you think, should I do null checks when I get data from repository methods or NPE itself will point to bad quality code?
This is a very good example. The Reposities can return Optional<MyEntity> but should never return Optional<List<MyEntity>>. And making mistakes with query parameters is a common mistake. :)
I am a newbie to those things but I'm currently learning about Docker and Kubernetes, I've heard that it's best practice to set up my projects in WSL2 to avoid bugs and run the terminal from it, but in this way I can't make changes to the files with IntelliJ unless I somehow make my IntelliJ installed on windows find the WSL path. Problem is that whenever I try to open a folder inside the WSL, my IntelliJ only gives me C: and D: as options, I don't see the wsl folder as u have there, why is that ?
I jumped back to pure windows setup. There are too many problems with tools and WSL2. It is a good idea though and I hope they will make it work better one day... Maybe base the whole Windows OS on Linux instead of having it as an extra feature would help