Objects in JS

Objects in JS can be created by: Use of variables Use of functions // table variable | // use of function var table = { | var table = function() { “legs”:4, | this.legs = 4; “color”:”brown”, | this.color = “brown”; “material”:”wood” | this.material = “wood”; }; | }; An instance of these objects can … Read More

Hour 2 : JS

Continuing learned using boolean values, conditional statements, switch case and use of functions. Everything goes on like we might have learned in some other language. Encountered only a new operator category called the strict equality operator and strict inequality operator. Strict equality operator uses === instead of the normal == for the equality operator. So … Read More

Hour 1 : JS

Having not used JS even to a novice level, I had planned to learn it and create something substantial. And today was the first day to executing the plan. I will brief out the things I learned in the sequence on a map. undefined, null, boolean, string, number, symbol and object are the 7 data … Read More

(Im)Mutable

Mutable and immutable are common English words. Something that can be changed is mutable and that cannot be is immutable. I came across these few years ago but it was an over-head-flow then. There are two classes in Java String and StringBuilder and both suffice almost the same purpose with some additional features in the … Read More

OAuth & OSM

The number of libraries, APIs available today to perform variegated tasks is profuse. Despite the abundance, sometimes alternatives are minimal and from these scarce resources, a solution that fits our specific needs are inconsequential. Lately working on OAuth for a project based on OpenStreetMap, I could not find a convenient guide to understand and implement. … Read More

Change Main Activity in Android

Often we miss out adding splash screen of the application in the initial development phases, or for an instance you might want to change the main activity or the launcher activity at some later stage of development. In order to incorporate this change, a minor modification in AndroidManifest.xml file is to be done. Say you … Read More

Passing Data using SharedPreferences

Sometimes while passing data between two activities, we are just concerned with passing data and not launching the activity to which the data is passed. SharedPreferences make this data passing easier without necessitating launch of the recipient activity. The usage is discussed briefly below: Say you have two activities A and B where A is … Read More

Android Application Execution Error

Running my application in Android Emulator, I faced this error: error:execution failed for task ‘:app:compiledebugjavawithjavac’. My application got build up and ran in the emulator despite ignoring this issue. However, running it on my USB connected device was not a success. Here’s how it is fixed. It demanded the environment variable JAVA_HOME to be set … Read More

Using libDXF library

The use of CAD applications is enormous and so has been the need for standardization. An initiative made by Autodesk back in 1982 to provide a representation of the content in the drawing resulted in the creation of DXF (Drawing Exchange Format). libDXF is a library to read and write DXF files. The library is … Read More

txt to Drawing in LibreCAD

Recently, I have been working with DXF library. My aim has been to take a text file as input from the user which has details of different elements of a building. Currently I am focusing on the wall entity. On parsing the input file, it yields a DXF file as output which can be opened … Read More
Follow

Get notified with the latest posts

Plugin Supporter WordPress Post Navigation
%d bloggers like this: