page banner
avatar
'Manage session creation timestamp in Lift' post illustration
Manage session creation timestamp in Lift

Lift framework lacks the ability to fetch a session creation timestamp by default. This post will provide a short example of how one can do this while working with Lift.

avatar
'Get image dimensions with ng-flow' post illustration
Get image dimensions with ng-flow

This note shows how to get the width and height of an image inside of an AngularJS controller with the help of ng-flow library. First of all, you can get image dimensions by using the Image element constructor and specifying the following onload callback function

avatar
'Launch Ionic app with a web or email link' post illustration
Launch Ionic app with a web or email link

Custom URL scheme PhoneGap Plugin is a cool plugin for Cordova that is designed to allow to launch apps by clicking on a link in an email or on a web page. Bellow is an example of how this plugin can be used for the Ionic application.

avatar
'How to set request throttling on a dispatch HTTP client' post illustration
How to set request throttling on a dispatch HTTP client

Let's consider the ability to limit the number of HTTP requests being handled by an application simultaneously.

avatar
'How to trigger a method with the keyboard shortcut in AngularJS' post illustration
How to trigger a method with the keyboard shortcut in AngularJS

If you are, for example, working on a chat application, one of the features that the user expects is an ability to send a message with a keyboard shortcut. The example of a directive below shows how this can be achieved for Shift + Enter combination:

avatar
'Get a base64 encoded image using ng-flow in AngularJS' post illustration
Get a base64 encoded image using ng-flow in AngularJS

Here is an example of how you can get a Base64 encoded image using the ng-flow for the image upload, for instance, if you need to send the image in a JSON request.

avatar
'Table existence check using Slick' post illustration
Table existence check using Slick

I'm using Slick library in my project and need to ensure that all required MySQL tables are created on application start.

avatar
'How to update entire database record using Slick' post illustration
How to update entire database record using Slick

Slick documentation says how to perform update operation for specific column, but doesn't contain any examples of updating entire record.

Below is tiny example of how to do that.

avatar
'Pagination and sorting in many-to-many relationship' post illustration
Pagination and sorting in many-to-many relationship

This example shows how to use pagination and sorting with many-to-many relationship in Grails.