Many Java based programs like Tomcat require JAVA_HOME to be set as environment variable to work correctly. Please note JAVA_HOME should point to a JDK directory not a JRE one. The point of setting the environment variable is to let programs know in which directory executables like javac can be found. Open Advanced System Settings In Windows […]
Catégorie: Common questions

10 sites to watch and download movies for free and legally
How To Watch Free Movies Online Without Going To Illegal Websites ? this is the most common question !!!! In this post, we collect top 10 legal websites to download and watch movies online for free. At these sites enable you to watch Hollywood, Bollywood, and other regional movies for free. 1. Les archives sur […]
How do I use Microsoft Office for free on the web ?
If you don’t need the full power of the desktop version of Microsoft Office, you can use the free online version instead. Here’s how to access Office on the web. Do you want to use Microsoft Office but don’t want to pay for it? Try free Office for web apps. Formerly known as Office Online […]

How to improve your programming skills?
How do you improve your programming skills ? This all comes down to keys on the keyboard. Repeated practice is the mantra here and increased skill doesn’t yield itself to any other shortcuts! Want to improve programming skills? Get a job programming. You will learn or you will perish. Learn through any method available to […]
Exemple Singleton : Comment empêcher de lancer plusieurs fois simultanément une application Java ?
Comment empêcher de lancer plusieurs fois simultanément une application Java ? Par exemple, vous venez de programmer un serveur, vous voulez vous assurer qu’une seule instance est lancée, pour éviter de provoquer des comportements inattendus (une instance reçoit une requête d’un client, et l’autre reçoit son identifiant). En général, quel que soit le programme, il peut […]
HASH CODE = EQUALS ?
Réponse: deux objets égaux doivent avoir le même hashcode (l’inverse est bien entendu faux : deux objets différents peuvent avoir le même hashcode). Answer: two equal objects must have the same hashcode (the reverse is of course false: two different objects can have the same hashcode).

Comment créer une liste de diffusion rapidement et efficacement
Si vous voulez créer une campagne d’email marketing réussie, la première chose à faire est de constituer une liste de diffusion. Sans cela, vous n’aurez tout simplement pas à qui envoyer vos e-mails. Dans cet article, nous allons vous montrer comment créer une liste de diffusion, alors continuez à lire. L’importance d’une bonne liste de […]
Solution for : Angular 2+ how to set min or max date in input type date
Angular how to set min or max date in input type date ? How to set date input field’s max date to today ? Solution : You have to add this your TS file : Then in your template you add : Source

Entity Framework Core: set connection string on ASP Net Core
If we had a connection string stored into the appsettings.json file and we want to set our DbContext class to use this connection string, we need to call our DBContext constructor with che connection string parameter into the ConfigureService method of the class StartUp.cs. For example, into the appsettings.json file we declare the connection string like the […]

Sourcetree – Updates were rejected because the tag already exists in the remote.
Updates were rejected because the tag already exists in the remote !! If we recreate a tag, sometimes when we push on remote some commit we can get this error. To resolve this problem we need to remove the tag from Sourcetree selecting the option “Remove the tag from all remotes” and recreate the tag.

Solution for : Enable SQL Server system versioning
Enable SQL Server system versioning : To enable SQL Server system versioning on existing table:
Solution for : How to join and split byte arrays, byte[] in JAVA
join and split byte arrays byte[] ? In this example, we will show you how to join and split byte arrays with ByteBuffer and System.arraycopy. ByteBuffer System.arraycopy 1. Join Byte Arrays This Java example uses ByteBuffer or System.arraycopy to join or concatenate two byte arrays. JoinByteArrayExample.java Output Terminal : 2. Split Byte Array In Java, […]
Solution for : How to generate serialVersionUID using Intellij IDEA
generate serialVersionUID using Intellij IDEA : In IntelliJ IDEA, we need to enable this auto-generate serialVersionUID option manually. P.S Tested with IntelliJ IDEA 2019.3.4, it should work the same in other versions. Intellij IDEA Settings File -> Settings -> Editor -> Inspections -> Java -> Serialization issues: Find serialization class without serialVersionUID and check it. […]

Enregistrement DKIM : Le guide du débutant
Vous avez des problèmes avec votre campagne de marketing par courriel ? Vous avez passé du temps et dépensé de l’argent pour découvrir que vos e-mails se retrouvent dans des dossiers de spam ? Si vous répondez « oui » à ces questions, alors vous avez certainement besoin d’un enregistrement DKIM pour améliorer votre délivrabilité. Dans cet […]

Vous cherchez une idée de blog ? Voici le top 25
La création d’un blog est un excellent moyen de partager vos intérêts et vos idées tout en générant du profit. Cependant, le lancement d’un blog n’est pas aussi facile qu’on pourrait le croire. Vous devez choisir un sujet et vous y tenir ! Parfois, il est même difficile de trouver une idée. Vous avez trouvé […]
Solution for : How to have a default option in angular 2+
Problem How to have a default option using angular 2 ou plus ? Solution if you have a select and you want to set a default value using angular , Add a binding to the selected property, like this : Read also : How to click on html button from the type script file in […]
Solution for : Select default option value from typescript angular
Problem if i have this code : How can I select the default value from typescript for example 45 ? Solution You can do this :
Solution for : How to convert an InputStream into a String in Java ?
Problem : If you have a java.io.InputStream object, how should you process that object and produce a String ? We suppose that we have an InputStream that contains text data, and we want to convert it to a String, so for example we can write that to a log file. What is the easiest way […]
Solution for : Subtracting these two times (in 1927) giving a strange result ?
Problem : if you run the following program, which parses two date strings referencing times 1 second apart and compares them : The output is : Why is ld4-ld3 not 1 (as I would expect from the one-second difference in the times), but 353 ? If you change the dates to times 1 second later […]
How to avoid NullPointerException without != null statements
we always use object != null a lot to avoid NullPointerException on java. Is there a good alternative to this ? For example we often use : This checks for a NullPointerException for the obj object in the above snippet. Solution : This to me sounds like a reasonably common problem that junior to intermediate […]