Tuesday, March 14, 2017

Symfony Framework: Sending Email with Swift Mailer

In any web application sending an email is common task at least when a contact us form is submitted by your website visitor and filled the contact us form.

This short tutorial explains sending an email message to website owners with the content filled in the website contact us form. We use a twig HTML template to send email. Email sent using Google GMail mail server.  The code is built with Symfony 3.2, PHP 7.

Launching default SMS Activity and Phone Dialer Activity in Android

To launch default SMS app with text and number populated and launch phone call dialer pad with the number given, use the corresponding code snippet from below jist

Friday, March 10, 2017

Using Material Design Icons in Android Studio

Primary reason for using icons in an application or website is to let users guess what happens when an icon is clicked. Designing a new set of beautiful icons is not easy and many developers are not so creative in that aspect. FontAwesome  Icon library available in font based icons, Google's Material Design Icons which are available in font, .png and .svg formats

Wednesday, February 8, 2017

Manually expanding or selecting a node in a dynamically updated JTree

The UI component that is famously used to represent hierarchical data is JTree in Java based desktop applications. It is very common need to change or alter the underlying data model to either add, update or delete nodes in the tree structure.

Tuesday, February 7, 2017

PHP require and include functions don't work

In almost all server side scripting, it is very common practice to include pages like header and footer into a page. Recently, while migrating a legacy PHP project, noticed that functions require_once, require and include don't work in some cases even after trying to include them either with absolute path or relative paths.

Monday, January 30, 2017

Image processing with Cloudinary

Your web application or mobile application displays images in different sizes, you need to do image transformations such as cropping, scaling and etc, all of that can't be done internally?

Friday, January 27, 2017

Java 8: Working with date and time simplified

Parsing date strings, comparing dates with Calendar and Date are cumbersome and often hesitate working on these tasks unless we use a third party library like joda time.

With java 8 new api under java.time package, common tasks such as parsing dates in string format, comparing dates and finding number of days between two dates has become very easy and become fun to do.