Using mock objects for Stripes-Spring testing

It is very easy to create a mock objects of your Spring layer, and not only does it allow you to create a consistent junit tests, but in the process you will end up with a mocked spring layer which you can use for fast front-end development!
Let’s see how.

Read more

Leave a comment · Posted in Blog, Five Minutes, Java, Software testing, Technology

Introducing Spring Integration

Spring Integration

Recently, we worked on a project that required frequent polling of database table, processing each row, and writing output to different database table(s). The data tables are incoming and outgoing sms messages, and load would get quite high sometimes. We also had to support load balancing. Since our services are already done with spring – the choice was to try Spring Integration.

Read more

Leave a comment · Posted in Blog

Check user permission using aspect-oriented programming

In this post we will show a example of simple and clean way to check your users permissions across your application using aspect-oriented programming (AOP).
Read more

Leave a comment · Posted in Blog, Five Minutes, Java, Technology

Tracing Zombie objects in Objective C

If an object gets deallocated too early, other objects still might have references to it and accessing it will lead to crash. Enabling Zombie objects will prevent crashes because objects are never actually deallocated and we’ll get an exception if we try to access such an object. But figuring out which object is causing trouble is just smaller part of the job. We need to find out where is the extra release (or missing retain) that is causing troubles. Read more

Leave a comment · Posted in Blog

Using Drag&Drop on tree structure with SmartGwt

The TreeIt has never been as easy to create a thin client web application as it is with the tools such as GWT and it’s third party library SmartGwt. This is a deadly combination which has out-of-the-box support for drag&drop, asynchronous remote procedure calls, localization, history management and much more inherited from GWT (Google Web Toolkit) and accompanied with numerous customizable widgets (lists, trees, buttons, layout support widgets, HTML5 support…). In this text, a simple drag&drop implementation will be demonstrated.

Read more

Leave a comment · Posted in Blog, Java, Technology

Cross-platform javascript touch scrolling

Currently CSS position:fixed property is only partially supported on mobile devices. iOS below version 5 doesn’t support it at all and Android is plagued by fragmentation hell. To solve these problems developers created libraries for JavaScript scrolling powered by CSS3 transitions. We recently wrote from scratch cross-platform mobile web site which uses a combination of native scroll and multiple touch scroll libraries depending on device. In this post I’d like to share our experiences..

Read more

Leave a comment · Posted in Android, Blog, iOS

Git merge and rebase – the simple explanation

Git merge and rebase have the same purpose – to converge multiple branches of development. Although the final goal is the same, those two methods get to it walking different paths. Read more

Leave a comment · Posted in Blog, Technology · Tagged , ,

Riding the Bézier wave

When working on 2D/3D graphic applications, animating various objects and moving them across the screen is very often a requirement. As a programmer or designer, sometimes you would like to have the freedom to move objects not only along straight, but also along curved lines. Solution to this problem – the Bézier curve – has been known for decades. Still, people unfamiliar with curves may find them a bit confusing at first. This article is not intended to be a comprehensive analysis of Bézier curves; rather, it should give a beginner just enough knowledge to get her/him started.
Read more

Leave a comment · Posted in Blog

Battle of the Android screens

We recently developed a simple Android app that needed to run on smartphones and tablets, meaning 3-4″ phones, 7″ phonetabs with identity issues and 10″ tablets. It’s all made simple enough by the framework but some things always need a bit of tweaking.

Read more

1 Comment · Posted in Blog

Logging custom parameters with log4j

One important thing that needs to be setup early in every development process is logging. If you are using log4j , you have to set up properties file(s) and define Loggers, Appenders and Layouts. According to documentations “These three types of components work together to enable developers to log messages according to message type and level, and to control at runtime how these messages are formatted and where they are reported”.
Read more

Leave a comment · Posted in Blog