Category: fullstackdevelopment
-
How to create Javascript modules? – a basic example
Gone were the days when Javascript was a small kid on the block. We used it only for client side validation and petty stuff. Now it has grown bigger than many major languages and occupied the territory of server side programming as well. Javascript for a long time didn’t support modules. If you wanted to…
-
How to deploy HTML & Javascript code to Apache Http Server?
If you want just a static http server to serve your web pages for development/learning purpose one of the options is to use Apache Http Server. Once deployed you can access your files at http://localhost. Follow the below steps to deploy your html and javascript files to Apache http server : STEP1: Install Apache HTTP…
-
Java 16 features every Java developer should know
Java 16 just released. Though a lot of new features were introduced only six of them need to be understood by day to day java developers. Here are those features: Records Pattern matching for instanceof Sealed classes (Second preview) jpackage packaging tool Stream.toList() method Day Period support added to java.time Formats 1.Records: If you want…
-
How, Why and When to use Stream.toList() method in Java?
Java 16 introduced a new method toList() to Stream interface. How is this going to help Java Developers? Let’s see it through an example. Let us take the use case where you want to iterate through a stream of objects, filter it based on certain criteria and save the results in a list. Traditionally you…
-
A Test Match with Superlatives – India vs England Third Pink Ball Test
England scores the lowest test innings total vs India Ashwin becomes the second fastest in the world and the fastest Indian to scalp 400 test wickets Joe Root gets his first fifer in test cricket and ends his bowling with an incredible 5/8 The first test match played in the world’s largest cricket stadium The…
-
How to save time typing document.getElementById().value and document.createElement() in javascript?
If you are using vanilla javascript , you may frequently use document.getElementById(elementid).value to retrieve the value of a html element. Also to dynamically create a html element you would use document.createElement(elementtype) You can avoid typing these manually by following a simple trick. The trick is to create a function which executes the above code and…
-
Unmasked
My daily weekday routine usually goes like this these days: I wake up , do yoga on days when I wake up early , get my daughter ready for her online class (LKG) , attend class along with her , then take care of her till evening until my wife arrives from office. On days…
-
How to watch a folder/directory for changes using Java?
Let’s say you want to watch a folder in your computer or server for any changes. If a new file gets added you want to be notified. If an existing file is modified you want to be notified. If a file is deleted you want to be notified. And how do you do this without…