Posts

Android 229 Keycode issue : Solved

Hello World,           I was having one weird issue with an Android device and that is key code value is 229 and I wanted to prevent it. What I wanted to Achieve? The numeric keyboard on android device The keyboard can only press 0-9 digits no dot or no + - or anything limit character to 4 digit What is the problem? I was using onKeyUp or onKeyDown and more, but I was getting 229 or couldn't get the value at all. We will use the regex to validate the value and on the basis of value, we will set value.   So let's look at a running example of this: See the Pen Android-226-input by Parth Makadiya ( @parthmakadiya12-the-flexboxer ) on CodePen . Link: 1. Full Page view -  https://codepen.io/parthmakadiya12-the-flexboxer/full/zVEoEG 2.  https://stackblitz.com/edit/android-226-input Open it in Mobile and see codes.

FontAwesome import tricks | Block square error

Image
So in this article we will see how to use FontAwesome without having a lot of code  and manipulate the styles So How font awesome works It has its own Fonts It has its own css classes . then we import font awesome and write so these fa and fa-facebook classes are defined in their css file and they will show it to you Lets Do How we can manipulate if we want something else out of it 1.  Import this css in your CSS file at the top @import url("http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"); 2.  in html define your class 3. in css create myIconClass .myIconClass{ content: "\f000"; font-family: FontAwesome; font-style: normal; font-weight: normal; text-decoration: inherit; /*--adjust as necessary--*/ color: #000; font-size: 18px; padding-right: 0.5em; position: absolute; top: 10px; left: 0; } change the content You can inspect element on chrome and read...

Get your hands dirty on Javascript :Simple Task

Image
Q -- Simple On click of table cell change the value and revert back after 2 seconds. Level-Beginner  |   Language-Javascript =======Think and try it yourself first ======= So finally you came in solution section . Let's see what we are doing 1.Checking Table is not null 2.we are using two for loop to pass through every element. 3.Now we are triggering onClick event 4.then we use this keyword to access the innerHTML value 5.Then we are using setTimeout function

Concourse Installing and Setup [MAC and Windows]

Image
#  Councourse Setup --> Official Docs -  https://concourse-ci.org/ https:// your_concourse_url curl -Lo concourse https://github.com/concourse/concourse/releases/download/v3.10.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin curl -Lo fly https://github.com/concourse/concourse/releases/download/v3.10.0/fly_darwin_amd64 && chmod +x fly && mv fly /usr/local/bin/ brew install postgres concourse --version fly --version Windows Windows If your local computer runs Windows, hit the  Windows key  on your keyboard, type  powershell , and hit  ENTER . In the window that appears, make a  bin  folder by typing: mkdir bin Next, move the  fly.exe  file from your  Downloads  folder to the new  bin  folder by typing: mv Downloads/fly.exe bin Check whether you have a PowerShell profile already available: Test-Path $profile If the respon...

Git Pull vs Git Pull Rebase

Image
Suppose originally there were 3 commits,  A , B , C : Then developer D created commit  D , and developer E created commit  E : Obviously, this conflict should be resolved somehow. For this, there are 2 ways: MERGE : Both commits  D  and  E  are still here, but we create merge commit  M  that inherits changes from both  D  and  E . However, this creates  diamond  shape, which many people find very confusing. REBASE : We create commit  R , which actual file content is identical to that of merge commit  M  above. But, we get rid of commit  E , like it never existed (denoted by dots - vanishing line). Because of this obliteration,  E  should be local to developer Ed and should have never been pushed to any other repository. Advantage of rebase is that  diamond  shape is avoided, and history stays nice straight line - most developers love that!

Freecharge Loot 2018

FREECHARGE TRICK -1 FREECHARGE-TRICK OF 50 Rs. CASHBACK ON 100 Rs. (NEW USERS) : Now, IF YOU ARE A NEW FREECHARGE USER, THEN YOU CAN GRAB 50 Rs. CASHBACK ON 100 Rs. RECHARGE, ISN’T IT AWESOME ! ● NEW USER JUST START RECHARGE OF 100 Rs. Or more And MUST ENTER BELOW PROMO CODE DURING CHECKOUT TO GET 50 Rs. CASHBACK. PROMO CODE : R0LUPZM ● Now complete payment via credit card / debit card / net banking. ● You will get 50 Rs. Cashback.

Freecharge Unlimited trick [PC] 2018

Image
1) Download nox app player.exe for pc (size -300mb aprox ) 2) Open nox app player  3) Download freecharge from google (dont waste time on playstore) in pc 4) copy your refer code from the main free charge account and paste in nox app player (freecharge) 5) now recharge on new number and put refer code pay via dc/cc (new only) (For unlimited debit card use kite and tmw app ) 6) after sucessfully cb credited (I suggest u to uninstall nox player didn't tried for changing imei or android id ) 7) do again and again and earn unlimited

Important TCS CodeVita Questions Solved – Saving for a rainy day

Image
Important  TCS CodeVita Questions Solved – 2015 Problem : Saving for a rainy day By nature, an average Indian believes in saving money. Some reports suggest that an average Indian manages to save approximately 30+% of his salary. Dhaniram is one such hard working fellow. With a view of future expenses, Dhaniram resolves to save a certain amount in order to meet his cash flow demands in the future. Consider the following example. Dhaniram wants to buy a TV. He needs to pay Rs 2000/- per month for 12 installments to own the TV. If let’s say he gets 4% interest per annum on his savings bank account, then Dhaniram will need to deposit a certain amount in the bank today, such that he is able to withdraw Rs 2000/- per month for the next 12 months without requiring any additional deposits throughout. Your task is to find out how much Dhaniram should deposit today so that he gets assured cash flows for a fixed period in the future, given the rate of interest at which his money ...

Important TCS CodeVita Questions Solved – Sheldon Cooper and his beverage paradigm

Image
Important TCS CodeVita Questions Solved – 2015 Problem : Sheldon Cooper and his beverage paradigm Sheldon Cooper, Leonard Hofstadter and Penny decide to go for drinks at Cheese cake factory. Sheldon proposes to make a game out of this. Sheldon proposes as follows, To decide the amount of beverage they plan to consume, say X. Then order for a random number of different drinks, say {A, B, C, D, E, F} of quantities {a, b, c, d, e, f} respectively. If quantity of any three drinks add up to X then we’ll have it else we’ll return the order. E.g. If a + d + f = X then True else False You are given Number of bottles N corresponding to different beverages and hence their sizes Next N lines, contain a positive integer corresponding to the size of the beverage Last line consists of an integer value, denoted by X above Your task is to help find out if there can be any combination of three beverage sizes that can sum up to the quantity they intend to consume. If such a combination...

TCS CodeVita previous years questions Solved – Matrix Rotation

Image
TCS CodeVita previous years questions – 2014 Problem : Matrix Rotations You are given a square matrix of dimension  N . Let this matrix be called  A . Your task is to rotate  A  in clockwise direction by S  degrees, where  S  is angle of rotation. On the matrix, there will be 3 types of operations viz. Rotation Rotate the matrix A by angle S, presented as input in form of A S Q uerying Query the element at row K and column L, presented as input in form of Q K L U pdation Update the element at row X and column Y with value Z, presented as input in form of U X Y Z Print the output of individual operations as depicted in Output Specification Input Format: Input will consist of three parts, viz. 1. Size of the matrix (N) 2. The matrix itself (A = N * N) 3. Various operations on the matrix, one operation on each line. (Beginning either with A, Q or U) -1 will represent end of input. Note: Angle of rotation will a...

ONEPLUS 5

Image
Grab The Phone Here The OnePlus 5 mobile features a 5.5" (13.97 cm) display and runs on Android v7.1.1 (Nougat) operating system. The device is powered by a Octa core (2.45 GHz, Quad core, Kryo 280 + 1.9 GHz, Quad core, Kryo 280) processor paired with 6 GB of RAM. As far as the battery is concerned it has 3300 mAh. Over that, as far as the rear camera is concerned this mobile has a 16 MP camera and the front snapper is powered by a Exmor RS sensor. BUY AT OnePlus 5 (Slate Gray, 6GB RAM + 64GB memory) ₹ 32999 BUY NOW SEE ALSO OnePlus 3T (Gunmetal, 6GB RAM + 64GB memory) ₹ 29999 BUY NOW OnePlus 3T (Soft Gold, 6GB RAM + 64GB memory) ₹ 29999 BUY NOW OnePlus 3 (Soft Gold, 64 GB) ₹ 26999 BUY NOW CRITIC REVIEW OnePlus 5 Review: Blurs lines between flagships and mid-rangers Robin Sinha  | Gadgets Now |  Updated: Jun 23, 2017, 03.58 PM IST Critic Rating 4/ 5 User Rating 4.3/ 5 Top Featur...