Coddicted - Page 9 of 34 - Codes.Notes.Tutorials.

Running Hadoop Example(TDG/CH02) on Cloudera Quick Start VM 1

prerequisite 1. VMWare Player (Oracle VM box didn’t work for me) Download VMWare Player 2. Cloudera Quick Start VM Download Cloudera Quick Start VM 3. Download CH02 example java code from here. 4. create a folder BigDataAssignment1/code(name it whatever you want) inside /home/cloudera/workspace/ 5. Download hadoop-core-0.20.2.jar from here and place it inside code folder you ...

The OnePlus One: unpacking in pictures.

The OnePlus One: unpacking in pictures.
Hi everyone, Wish you all a very happy and productive new year. 🙂 Hope you are having an excellent run so far. For the first post of the new year we bring you the unpacking of one of the most talked about phone in tech community: the OnePlus One. Titled as “the flagship killer”, the ...

Lossless Dependency Preserving 3NF decomposition Algorithm 1

The minimal cover of F is given 1. Search for dependencies in F-having the same attribute set on the left hand side A: A->B1, A->B2, A->B3, …, A->Bk And construct relation as (A, B1, B2, B3,…, Bk) 2. Construct a relation with remainder attributes. 3. In case none of the relations has a candidate key, ...

Find maximal uni-directional path length for a Binary Tree

Find maximal uni-directional path length for a Binary Tree
Continuing from our last post for a Generic Binary Tree implementation, we’ve come up with a solution to quite an interesting problem. We define a path in a binary tree to be a non-empty sequence of nodes that one can traverse by following the pointers in the nodes. A path only goes to the right ...

Implementing a Generic Binary Tree in Java

Implementing a Generic Binary Tree in Java
The following two classes demonstrate an implementation of the Generic Binary Tree data structure. The first class is BinaryTreeNode.java which acts as the node class for the tree, holding integer type data and two pointers for left and right child respectively of type same as the node class itself. The member fields are declared to ...

Data truncation: Incorrect datetime value: ” for column 2

While using Acitiviti API you might encounter this error which says something like this ### Error updating database. Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: ” for column ‘DEPLOY_TIME_’ at row 1### The error may involve org.activiti.engine.impl.persistence.entity.DeploymentEntity.insertDeployment-Inline### The error occurred while setting parameters### Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: ” for column ‘DEPLOY_TIME_’ at row ...

Python newline caveat

Hello Everyone, This will be a small post about a caveat in Python language (v2.7) for writing output to files. On Windows the new line character is actually treated as ‘\r\n‘ or CRLF as we know it (Carriage Return followed by a Newline). Sometimes however you may not want to output this newline character into ...

Structure vs Union in C – Coded Approach

Hello Everyone, Today we are going to talk a bit about the difference between structure and union as in C programming language. We are going to provide a coded approach so that you could see the difference practically as the theoretic differences you can read from anywhere on the internet and your text books. Here ...

Add Two Integers without using Arithmetic Operators

Recently came across an interesting question of adding two numbers without using any of the arithmetic operators and thought of giving it a try. The first thought of solving the question was using bit-manipulation operations. The idea was to add the numbers bit-by-bit taking any carry forward (without actually adding them and instead using bit-wise ...

Samsung Tab3 311 Kitkat Update Issue…

The much awaited Android Kitkat update (v4.4.2) for Samsung’s latest Tab in the market so far ‘SM-T311’ was made available sometime towards the end of August-2014. While it was highly anticipated, there seems to have occurred many problems to devices after updating the firmware for Android v4.4.2. Our team experienced one such issue and the ...