Blogz

Recent Blogz

Drupal 7: Render/Display field value from entity object

In Drupal, each and every entity will different fields. These Fields are stored as the seprate table in Drupal system. Based on the field type(Text field, Body field, Integer, File upload field, entity reference field) the render display format can change. While rendering field value in our custom code need to concentrate on the field display format. The function drupal_render() with field_view_field() we can output formated values.

Drupal 7: Formating Date time (Changing Date based on timezone)

The Drupal will support different type timezone to process date related data. But actual data are stored in Unix time stamp format of UTC in the database. The Drupal default core system will process dates as configured in system configuration. While we accessing database date values we need to format to particular timezone date.

Drupal 7: Programatically adding new Commerce Product

In Drupal commerce, we can able to add new Commerce Products programmatically using the commerce_product_new() function. This will create an object of Commerce product, Using the object we can able to set their attributes for the product. The below is the example and syntax for creating the commerce product.

Top 10 Most Common Spring Framework Mistakes

Spring is arguably one of the most popular Java frameworks, and also a mighty beast to tame. While its basic concepts are fairly easy to grasp, becoming a strong Spring developer requires some time and effort. In this article we’ll cover some of the more common mistakes in Spring, specifically oriented towards web applications and Spring Boot. As Spring Boot’s website states, Spring Boot takes an opinionated view on how production-ready applications should be built, so this article will try to mimic that view and provide an overview of some tips which will incorporate well into standard Spring Boot web application development.

Theme Ionic 2 Application - Customize and modify default theme layer of ionic application

Ionic is built on top of Sass, which allows us to set some default styles. SASS is nothing but a "CSS preprocessor" which is a scripting language that extends CSS by allowing developers to write code in one language and then compile it into CSS. Some examples of CSS preprocessor include: Sass, LESS etc.

Bidirectional Relationship Support in JSON

Ever tried to create a JSON data structure that includes entities that have a bidirectional relationship (i.e., circular reference)? If you have, you’ve likely seen a JavaScript error along the lines of “Uncaught TypeError: Converting circular structure to JSON”. Or if you’re a Java developer who uses Jackson library, you may have encountered “Could not write JSON: Infinite recursion (StackOverflowError) with root cause java.lang.StackOverflowError”. This article provides a robust working approach to creating JSON structures that include a bidirectional relationship without resulting in these errors.

A brief introduction on AngularJS

AngularJS is a JavaScript MVC framework developed by Google that lets you build well structured, easily testable, and maintainable front-end applications. If you haven’t tried AngularJS yet, you’re missing out. The framework consists of a tightly integrated toolset that will help you build well structured, rich client-side applications in a modular fashion—with less code and more flexibility.
AngularJS extends HTML by providing directives that add functionality to your markup and allow you to create powerful dynamic templates. You can also create your own directives, crafting reusable components that fill your needs and abstracting away all the DOM manipulation logic.

AngularJS is a JavaScript MVC framework developed by Google that lets you build well structured, easily testable, and maintainable front-end applications. If you haven’t tried AngularJS yet, you’re missing out. The framework consists of a tightly integrated toolset that will help you build well structured, rich client-side applications in a modular fashion—with less code and more flexibility.
AngularJS extends HTML by providing directives that add functionality to your markup and allow you to create powerful dynamic templates. You can also create your own directives, crafting reusable components that fill your needs and abstracting away all the DOM manipulation logic.