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.
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
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.
Let's consider the ability to limit the number of HTTP requests being handled by an application simultaneously.
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:
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.
I'm using Slick library in my project and need to ensure that all required MySQL tables are created on application start.
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.
This example shows how to use pagination and sorting with many-to-many relationship in Grails.