Category Archives: Entertainment

Analyze APK sizes – Best Programming language for Android

There are so many ways to make mobile apps ranging from direct platform specific development (using Java and Kotlin for Android, and ObjC and Swift for iOS), there’s React Native from Facebook, Electrode Native from Walmart, the Ionic framework, Unity for certain types of apps, and the flutter.io framework which was just released by Google.

Ever wondered how these libraries and frameworks affect the size of your app? Let’s analyze some apk files for apps written in some of these ways. The apps are very basic, containing just a title at the top and a text at the center of the screen.

Which Language is Good for Android by Analyze APK sizes?
Which Language is Good for Android by Analyze APK sizes?

This will show, for a bare minimum app what these frameworks need to package along with the apk for it to be able to run.

  • For this test I created four different versions of the app, one in each of JavaKotlinReact Nativeand Flutter. (Android API 27)
  • The apks were then published for release type using Android Studio for Java and Kotlin and using the cli for React Native and Flutter.
  • Default proguard configuration was used.
  • The apks were analyzed using the Analyze APK feature in Android Studio.

Source: Which Language is Good for Android by Analyze APK sizes?

Advertisements

Tricks : Multiply by 9 without pen and paper

Now you’re ready to multiply any number with 9 in 3 sec.

28 X 9 = ?

From Step 2, we’ve to subtract 28 with 3 :

28 – 3 = 25(this is your first part of your answer)

Now from Step 1, we’ve to multiply the unit place of 28 by 9 i.e. 8 X 9.

8 X 9 = 72 and we’ll take only unit place of answer i.e. 2

And, finally merge both step and your answer is

28 X 9 = 252

Let’s take one more example : 57 X 9 =?

57 – 6 = 51

7 X 9 = 63

57 X 9 = 513

 

Source: Magic Multiply by 9 Trick – Mind Calculation in 3 sec 

Advantage and Disadvantage of BlockChain

What is BlockChain Advantage and Disadvantage?
What is BlockChain Advantage and Disadvantage?

Blockchain is a public record of transactions. It’s also distributed, so instead of one person controlling everything, there are thousands of computers around the world connected to a network, and these thousands of computers together come to an agreement on which transactions are valid.

A blockchain, originally block chain,is a continuously growing list of records, called blocks, which are linked and secured using cryptography. Each block typically contains a hash pointer as a link to a previous block, a timestamp and transaction data.

Top 3 Mobile Technology Trends in 2018

Attempting to explain the advantages and disadvantages of blockchain technology, in it’s current format, for developing solutions.

Over the last 6 months, we’ve been attempting to pull apart blockchain, from concept, to economics. This article is designed to record some of our thoughts about blockchain and why it’s useful, or not. If we have something wrong, inaccurate or out of date, let us know in the comments!

Source: What is BlockChain Advantage and Disadvantage?

Mobile Technology Trends For 2018

Top 3 Mobile Technology Trends in 2018
Top 3 Mobile Technology Trends in 2018

Here is my Top three technology trends you all should look out for in your endeavors in this new year 2018, which as always, will offer you loads of new opportunities to rock this world. Being a part of this mobile app ecosystem I feel immense pride while writing this piece of article for all you visionaries and future mobile apprenuer.

Before I kick-start this article, please allow me to wish

“ A Very Very Very… Happy New Year 2018” To all you lovely readers and my well wishers.

It has been an amazing journey so far being a part of this mobile app revolution since 2006, I feel blessed to see both pre & post smartphone evolution era and having experienced the change myself being the developer, leader and now a father of my own mobility startup. So thought to analyze the trend setters which kind of will rule this new year.

Technology trends Credit: BOD
Technology trends – Credit: BOD

List of Top 3 Mobile Technology Trends in 2018

First Firefox Extension with Kotlin Javascript

Kotlin, my favourite programming language, has seen a fast adoption on platforms like Android or Server where the code is compiled to Java bytecode. However, as Kotlin also supports compilation to Javascript, the language is starting to receive attention in the Web ecosystem as well. So today i am going to show you How to create Firefox Extension Using KotlinJS.

While some content on writing web applications in Kotlin has been published, the niche of writing browser extensions has seemed to be ignored until now. That’s why in this post we are going explore the process of writing a simple extension for Firefox using Kotlin JS.

You must see this : Top 20 Daily used Kotlin Code Snippet

How to Create Firefox Extension Using KotlinJS?

The extension is based on Your first extension by Mozilla and will simply add a red border to the kotlinlang.org website.

Requirements

For testing our Firefox extension, we will use the web-ext tool from Mozilla. To obtain it you need to install node.js and then run the following command in a terminal:

  1. npm install –global web-ext

Apart from that, we will be using IntelliJ IDEA 2017.2.6 with the Kotlin plugin version 1.1.60 to develop the extension.

You must aware of it : Kotlin Problems and How to avoid them?

Setting up the project with KotlinJS

Creating a new project using the KotlinJS (JavaScript) variant

In Intelli IDEA, we create a new Gradle based project and check the Kotlin (JavaScript) option.

We proceed through the wizard until the empty project is created and opened.

As the next step, we will enable the Dead Code Elimination plugin for KotlinJS. This is necessary because a Kotlin JS program needs to bundle the Kotlin stdlib which is over a megabyte in size. However, we can reduce the size of our compiled code drastically by removing code that’s never getting called.

You must see : Bye bye Gradle and Maven !! Say hello Kotlin Kobalt

To enable the plugin, simply add the following line to the build.gradle file.

  1. apply plugin: ‘kotlin-dce-js’

Creating the extension manifest

In the next step, we add the manifest file which is required for a Firefox extension. This fileis called manifest.json and resided in the root directory of our project. The file should have the following content.

{

“manifest_version”: 2,

“name”: “Kotlin Borderify”,

“version”: “1.0”,

“description”: “Adds a red border to kotlinlang.org”,

“content_scripts”: [

{

“matches”: [

“*://kotlinlang.org/*”

],

“js”: [

“build/classes/kotlin/main/min/kotlin.js”,

“build/classes/kotlin/main/min/kt-borderify.js”

]

}

]

}

In this file we declare that our extension will inject a content script in any website matching the pattern *://kotlinlang.org/* . The necessary script files are are the Kotlin stdlib kotlin.js as well as our code in the kt-borderify.js file.

Full article and Source : http://www.tellmehow.co/create-firefox-extension-using-kotlinjs/

Justice League Movie Review

Justice League
Justice League

Today i am going to share Review and Rating of recent release movie Justice League.  It’s better than Batman v Superman. But it’s more successful as a trailer for Aquaman or TheFlash than as a movie of its own.

Justice League

Fueled by his restored faith in humanity and inspired by Superman’s selfless act, Bruce Wayne enlists the help of his newfound ally, Diana Prince, to face an even greater enemy.

FilmFed : Justice League Reviews & Ratings
FilmFed : Justice League Reviews & Ratings

Director:

Zack Snyder

Writers:

Chris Terrio (screenplay by), Joss Whedon (screenplay by)

Stars:

Ben Affleck

Let’s discuss what internet says about this movie:

IMDB

 7.8/10

As both a Marvel and Dc fan, this movie exceed all of expectations. Such a great hype and action packed film. I loved every single character and how well they developed together. I would see this movie 10 more times!! The only flaws I saw with the movie was some CGI but hey. Not every movie is perfect, the visuals were amazing and was just a epic movie to sit and watch and bring to life finally.

Rotten Tomatoes

 5.2/10

Justice League leaps over a number of DC movies, but its single bound isn’t enough to shed the murky aesthetic, thin characters, and chaotic action that continue to dog the franchise.

Everyone involved in making “Justice League,” and everyone who will eventually see it, deserved something better than this.

Source