My Cute Blog
Continue Reading

Convert Java LocalDateTime to ZonedDateTime

Sadupa Wijeratne February 17, 2023

Here is how you can convert Java LocalDateTime to ZonedDatime. Java LocalDateTime store only date time information without any timezone information. You can convert it to a ZonedTime with time zone information.

java
Continue Reading

Fix for hibernate Legacy-style query parameters no longer supported

Sadupa Wijeratne January 23, 2020

You may have encountered following error if you are migrating hibernate to version 5.x from an older version, This happens due to changes in hibernate HQL parameters of latest versions. Here is a quick fix to overcome this issue Simply replace ‘?’ with ‘?0’ in…

java, Spring
Continue Reading

How to setup Lets Encrypt SSL on Amazon Linux

Sadupa Wijeratne August 20, 2019

Here is a step by step guide on how to setup Lets Encrypt free SSL certificate on an AWS EC2 instance with Amazon linux OS. Cerbot client is used to generate the certificates. Currently Lets Encrypt does not officially supports for Amazon Linux OS. But…

AWS
Continue Reading

Amazon S3 sync script

Admin My Cute Blog August 16, 2017

Here is a step by step guide on how to backup your data to amazon S3. At end of this tutorial you will be able to create a bash script to sync your data to amazon S3. Create a S3 bucket Create a user for…

AWS
Continue Reading

H2 database example using hibernate and Spring Boot

Sadupa Wijeratne November 13, 2016

Here is a H2 database example using Hibernate and Spring Boot. This example shows you how to create, read, update and delete a record in H2 database.

H2 Database
Continue Reading

Spring task scheduler (cron job) example

Sadupa Wijeratne February 10, 2015

Spring framework has built in support for scheduled tasks. Here are some examples of spring cron jobs using both annotations and xml configurations.

Spring
Continue Reading

How to send an email in a bash script

Sadupa Wijeratne November 15, 2014

You can send an email in a bash script using mutt command. Here is how you can send an email with an attachment to multiple recipients using a linux shell script.

Bash Scripts
Continue Reading

Hibernate4 + spring4 + maven example

Sadupa Wijeratne August 19, 2014

Here is an example using hibernate4, spring4 and maven. Learn how to do simple create, read, update and delete operations using hibernate.

java
Continue Reading

log4j2 xml configuration example

Sadupa Wijeratne July 26, 2014

Here are some sample log4j2 xml configurations. This includes full source code created with maven.

java
Continue Reading

Run multiple mysql servers on single machine

Sadupa Wijeratne July 2, 2014

Here is how to run multiple mysql instances on the same machine. This will be helpful when you need to run different mysql version on same computer or have separate mysql servers for each system. Here I assume you have already installed one instance of…

SQL
Page 1 of 3 Next

Popular Posts

Fix for hibernate Legacy-style query parameters no longer supported

January 23, 2020

Track google adsense check without DHL Tracking Number

June 1, 2012

log4j2 xml configuration example

July 26, 2014

Tag Cloud

AdvertisingAWSBash ScriptsEarn Money OnlineFreelancingH2 DatabaseInternetjavaLaptopMaven

Popular Articles

Fix for hibernate Legacy-style query parameters no longer supported

January 23, 2020

Track google adsense check without DHL Tracking Number

June 1, 2012

Tag Cloud

Advertising AWS Bash Scripts Earn Money Online Freelancing H2 Database Internet java Laptop Maven Mobile Oracle PHP SEO Social Networks Spring SQL Web Hosting Wordpress

©2013 My Cute Blog. All rights reserved.