Posts

Showing posts with the label java

How to Manage External Dependencies

A few months ago we deployed the awesome Scala Steward at one of our current projects, and even if I can’t recommend it enough I have to admit the process of getting all our dependencies up to date was somewhat painful. In this article I would like to share our experience and some tips or guidelines on how to manage external dependencies. These are by no means best practices but just my opinion on the subject (and would like to see how they stand months or years from now). Note: I would like to thank Chris Kipp ( @ckipp01 ) and Martin Kok for providing the proofreading of this article. The image comes from " Epicurious HTML graph " by Noah Sussman is licensed under CC BY 2.0   Project setup Our project is composed of multiple teams with different experience levels, goals, and users. Each team is in charge of several applications or repositories, although ownership is sometimes shared, and like any other project we develop internal libraries to guide or impose a certain cul...

Processing Augmented Reality Tutorial - Part 1

Image
Introduction For a presentation with a Studio that I'm currently working we decided to do feature an augmented reality show. Something simple for people that had little or none experience with AR. So after doing a little research about what technologies supported AR I decided to use Processing, which I'd never used, but after learning that was a Java environment I supposed that would fit in my confort zone. Searching I found the following tutorial:  Augmented reality tutorial with #Processing To tell you the truth I struggled a lot with the libraries and the code from that tutorial, I don't understand why there is no indentation (seems like the work of a junior programmer, not trying to offende the author), the interaction with the libraries is buggy, and some of the code is incomplete. But none the less serves as generally good introduction, so let's start from there... First, I won't be using Processing in the environment provided, but using direct...

Array/Item problem on JAX-WS - Axis 1.x interation

Image
A few days ago I encountered a little problem with a Webservice that I was asked to interact with. The client in question was on other country, and the permissions on the VPN were not granted already. My normal workflow dealing with WS is first asking for the WSDL for mocking and building the artifacts. So I launched SoapUI and started working on the integration. All worked just well with the mocks, and for a little moment I thought that all will be joy and bliss. The artifacts the JAX Import that I used gave me the following model: Having worked with JAX-WS as a client and server, and only as client with the server being Axis2 for example, I thought that because of the signature of the Webservice Interface I was dealing with a JAX server on the other end. But when the real connection was made (without Mocks) the attribute on CustomerSubscriptionInfo was comming  null  from the server . I tried a few more times with different input data but was the same. The person...

Java ESC/POS Image Printing

Image
UPDATE : If you're interested in the project, feel free to check on farad'n . It's my open source project to make ESC/POS printing easier.  Hi! I've been wanting to do this post for a while. For many years I've been working from time to time with various printing issues, mainly in the context of Kiosk/Receipt printing. The most common printer that I've used was an Epson Thermal Printer, such as the TM-T88III or more recently TM-T88V (which my article will treat). One of the various requirements from my clients had been putting their logo on their receipts, and although you can upload the logo to the printer with a tool and tell the printer to print logo #1; this way can be very rigid and hard to maintain (changing the logo would require for me to go printer by printer uploading the new logo). A better way is to raster the image pixel by pixel using ESC/POS, the native command language of the printer. Being a thermal printer, there is no concept of co...