Showing posts with label development. Show all posts
Showing posts with label development. Show all posts

Wednesday, October 10, 2012

EnvMan4J

Short story 

Recently I evaluated couple of code generation Java frameworks and I faced with one interesting issue. Every framework or application server wants to have XXX_HOME variable and %XXX_HOME%/bin element in a path variable.
I dreamed about tool that do such thing for a long time. And now I decided to write it. I choose Lazarus to write this tool because it must be native application (in case I need to set JAVA_HOME ;) ). Now this program works fine with Windows (I have only one open issue). Hope I will also make Linux version.

Where to get

You may get this application from my github https://github.com/crc83/EnvMan4J

Case study

I made short screen cast because it's better to see once than to hear many times. You may find it here

Sunday, December 18, 2011

Bar-code readers


There is huge zoo of these devices. They are divided to different groups from marketing and user point of view. In this post I'd like to introduce you a third point of view. Point of view of software engineer.

1. Quick start

Bar-code reader is always read only device for PC.
Bar-code reader could be configured via scanning special bar-codes from it's user manual
You can configure many parameters in that way. The most interesting for us are prefix and suffix of code sequence (I'll back to this later in details)

2. Two kinds of bar-code readers

I divided our bar-code readers zoo in two parts: 1. Bar-code readers that interact with PC like HID devices (these includes PS/2 and USB bar-code readers); 2. Bar-code readers that connects via RS-232 port.
Both of these kinds of devices have their advantages and disadvantages.

2.1. HID devices

Pros:
+ Easy to prepare your program to work with them.
+ You have no need to handle reconnection issues and the like.
Cons:
- There is sometimes hard to determine if we have input from bar-code reader or from keyboard (but this can be solved by using a prefixes and suffixes).

2.2. RS- 232 devices

Pros:
+ You always know that input that you receive is from bar-code reader.
Cons:
- You should handle reading from RS-232 port in your program.
- You should handle connection issues in your program.

3.N.B.

If you make some mistakes in configuration of bar-code readers, there is a page with “reset to factory defaults” sequence in user manual (Check if you have this page before making any changes in configuration).