GT's Blog
Code snippets, technical articles, tips on computing and programming...
Pages
(Move to ...)
Type in Nepali Unicode Romanized - Convert Roman Nepali to Unicode Tool
▼
Run a task in a different interval during weekend using Spring Scheduler and Custom Trigger
›
Run a task in a different interval during weekend. Instead of defining fixed interval to run a task every 1 minute (as shown in example belo...
Append a file into existing ZIP using Java
›
The following code reads a input file 'in.zip' appends 'abc.txt' with some String content into it and creates output zip f...
Spring Boot - get Trace and Span ID programmatically
›
Autowire Tracer tracer and get traceId and spanId from current Span Span span = tracer .currentSpan(); span .context().traceId() //trace ...
8 puzzle solver using A* algorithm
›
8-puzzle is a very interesting and a well known problem in the field of Artificial Intelligence. It always has been an important subjec...
JSP basics - Java Server Pages
›
The JSP - Java Server Pages JSP extension of the servlet technology which offers both scripting ( as in HTML) as well as programming (as ...
How to reset “Replace Toner” warning on Brother MFC-L2710DW Printer
›
How to reset “Replace Toner” warning on Brother MFC-L2710DW Printer and print ~100 more pages without replacing the toner! Open the fr...
Java PDF to Image Conversion using PDFBox
›
Here are few snippets of code that you can use to convert a PDF file to images eg: tiff, png, multi-page tiff. It uses a open source library...
git reset/revert to previous commit
›
Sometimes we "accidentally" merge something that's not ready for release/qa and need to rollback/reset/revert the commits to ...
How to make integration tests faster without @DirtiesContext
›
If your only excuse to use @DirtiesContext is to re-initialize database between tests, then this blog post is for you. Spring's @Dirties...
‹
›
Home
View web version