Web Development

RESTful Verbs

HTTP RESTful ObservationGET Read safe and idempotentPOST Create neither safe nor idempotentPUT Update not safe, but idempotentDELETE Delete not safe, but can be considered idempotent Related Articles Working with Swagger

Entering a Docker Container

An easy way to create a new interactive bash shell in the running container: docker?exec -it bash Related Articles Detach from a Docker Container Getting the IP of the Virtual

Spring Admin Expiring all Session of a Certain User

http .formLogin().loginPage(“/login”).successForwardUrl(“/”).defaultSuccessUrl(“/”) … .sessionManagement().maximumSessions(1).maxSessionsPreventsLogin(false) .sessionRegistry(sessionRegistry()) …@BeanSessionRegistry sessionRegistry() { return new SessionRegistryImpl();}@Autowiredprivate SessionRegistry sessionRegistry;sessionRegistry.getAllPrincipals().stream().filter((principal) – (principal instanceof User)).map((principal) – (UserDetails) principal).filter((userdetails) – userDetails.getUsername().equals(email))).forEachOrdered((userDetails) – { sessionRegistry.getAllSessions(userDetails, true).forEach((information) -{ information.expireNow(); }); });

Displaying the Euro Sign in a Textbox

Don’t you just hate it that the Euro monetary symbol is not present on all computers? With this simple trick you can add the Euro sign to a textbox. Put

DevX - Software Development Resource

JavaScript: Compare Date with Today in a Narrative

Demo of compdate function TimeString(adate){ var tstring = “”; var aret = adate.getHours(); if (aret tstring = “0”; tstring = tstring + aret; aret = adate.getMinutes(); if (aret tstring = tstring +