Sunday, March 8, 2020

Echo server using python and sockets

This post explains how to create a create a simple echo server using python and sockets.
In the first example we will create a simple echo server allowing one connection and a simple echo client, in the second example we will improve the first example allowing multiple client to be connected.

Saturday, June 30, 2018

Java Spring Boot MVC and JSP with Maven and Visual Studio Code


In this tutorial I will explain step by step how to create from scratch a working Spring Boot MVC application, with JSP, using Maven and configure Visual Studio Code in order to develop and debug while using Hot Swap feature.

Friday, September 1, 2017

Configure Visual Studio Code for Python and Django framework

Visual Studio Code is a great, versatile, cross platform IDE, customizable with lot of plugins. Unfortunately there is nothing working out of the box and it needs some configurations in order to work properly.
In this tutorial I will explain how to configure Visual Studio Code in order to develop using Python and Django framework.

Saturday, December 3, 2016

Hibernate - Cannot insert explicit value for identity column in table 'MYTABLE' when IDENTITY_INSERT is set to OFF


When using Hibernate targeting an SQL Server database could happen to have the error "Cannot insert explicit value for identity column in table 'MYTABLE' when IDENTITY_INSERT is set to OFF".
Here is how to deal with that.

Sunday, September 13, 2015

Maven copy configuration file or resource in target classes directory

Although building a maven project you have to use a specific directory for resources, there are some cases that you have to keep a resource in a different directory. If you put a .properties file in src or into a java package, maven will not copy that file in the target classes directory, so in your deployment package it will not be present. Here is the procedure to force the copy and make it works.

Sunday, July 12, 2015

Enable remote access to IIS Express for debugging in Visual Studio 2013

In Visual Studio 2013 you can run or debug a project just clicking to the play button. But by default the project is reachable just from localhost and not reachable from any computer, phone or other device in local network. This is annoying when you want to test and debug using a mobile device. Here I show how to configure the environment to enable remote access to a local website running from VS2013.

Oracle Procedure to Write Log into a File

Sometimes you have to write in Oracle a long running time PL/SQL script and you want to log to file what is happening during the execution, in order to check the status, or just for event logging purpose. Here I propose a simple stored procedure for Oracle Database that allows you to do that, using it instead of the classic DBMS_OUTPUT.PUTLINE('') to write on dbms console.
(c) Copyright 2020 - MyTroubleshooting.com