Problem Please share your comments and better ideas, to print java graph, which manipulates selected (@Mask) fields as XX, thus […]
Author: maria
Generate consecutive sentence of int values accessed from different threads
Problem I need to generate a sequence of int values: { 0, 1, 2, … }, but there’s a twist: […]
Animate circle using Javascript and HTML5 Canvas
Problem Animate circle using Javascript and HTML5 Canvas. The circle will be drawn at the center of the canvas. The […]
Morse code string
Problem I was bored recently and decided to write a class, MorseString. What this class does, is it takes a […]
Calculate balance wages
Problem In the following code I’m trying to calculate Net Wage of employees and classes Earning, Deduction and WageBalance has […]
split items of batch into multiple categories
Problem I have a batch job that contains a lot of items. I need to split these items into 4 […]
Proper and elegant way of Building a XML Document
Problem I need to build the following XML document <?xml version=”1.0″?> <SFDocument> <TableID>5415</TableID> <PageSize>1</PageSize> <PageIndex>1</PageIndex> <MultiCompany>No</MultiCompany> <Language>1033</Language> <Fields> <Field>Operation No.</Field> […]
JTextField display
Problem Solution
ReaderWriter Synchronization
Problem This code uses a ReaderWriterLockSlim to store data (on a disk or wherever), so that only one thread can […]
Transcoding of a large histogram
Problem I’m currently working on transcoding a large histogram so that the lessened file can be used within a viewer […]