react-social-login

The easiest way to integrate Social Login in your React Apps ...Checkout NPM

Monday, August 28, 2023

Supercharge your office vocabulary with OfficeVocab

 


Friday, September 10, 2021

Step by step tutorial for installing ReactNative


This tutorial covers step by step instructions to install

Node
React Native
Cocoapods
XCode
AndroidStudio
OpenJDK
Homebrew


Sunday, September 16, 2018

Fixing npm run android issues



fix NPM RUN ANDROID

This command could either delight you with your first react native app launching nicely on an emulator OR frustrate you. This article provides a fix for most common issues encountered while running this.

Remember: React-Native as on SEP 2018 needs JDK8 (It doesn't work on 9+)
This is a source for most of the issues.

Let's tackle all common issues one-by-one.

Error: JAVA_HOME isn't set

Common Issues

1. JAVA SDK not installed

Fix:
Install Java SDK if this is the case.

Q. How do I find if JAVA is installed or not?
= Open command prompt and run java -version
If you see JAVA isn't recognized OR JAVA jre 9.0 (or above), fix this first.

You may also have multiple JAVA versions installed.
If you're on windows, navigate to program files/Java folder and look for jdk 1.8.x (JAVA8) folder. If doesn't exist, download and install from here. (If you have JAVA 9, the folder would be jdk-9)

2. JAVA SDK is installed but JAVA_HOME variable not set

Fix:
open command prompt and execute SET JAVA_HOME = path_to_your_java8_bin_folder (see 1. above)

3. JAVA_HOME is set but includes /bin

You may have JAVA_HOME set. However, when you create a new project using creat-react-native-app it attempts to add bin to the current path. So, if you JAVA_HOME already has bin, it becomes bin/bin. Instead of correcting JAVA_HOME (as you don't know, what this would break), navigate to your project folder/android and open gradlew.bat in a notepad.
Find JAVA_HOME and remove bin from set JAVA_EXE=%JAVA_HOME%/bin/java.exe


Error: Could not find com.android.tools.build:gradle:3.0.x

Fix:
Open build.gradle add google() as a repository

Error: Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler

Common Cause
Your JAVA is pointing to JAVA 9 or above.  Ideally, if you've been following this article, you'd have fixed this already. But incase you jumped here, Open Command Prompt and run JAVA - version to ensure thGo to properties of PC and select Environmental Variables options. Fix the path to point to JDK 8 instead of 9. Following screenshot shows it to be 9.. Fix the path to point to your Java8.
Close and Open Command Prompt again and continue npm run android



Warning: 'adb' is not recognized as an internal or external command

Open the command prompt and run adb. If you see command unrecognized error, you don't have adb. You might have it, but not in path. For this, add platform-tools folder to your environmental variables.
Q. Where is this folder?
Try to look into C:\Users\\AppData\Local\Android\Sdk. If it isn't there, install it from Android Studio ->Tools->SDK Manager-> SDK Tools TAB ->Check "Android SDK platform-tools" and install.



Friday, May 19, 2017

How to apply for Schengen VISA in VFS Delhi

With my daughter started going to school this year, eventually I got into the league of parents who can afford long family vacation  only during the summer holidays. Since, I wanted to beat the heat, my all research through various forums and especially besttimetovisit for a cooler place, boiled down to Europe.

My research started with - Where in Europe? Since I have always had a strong dislike for 1 country 1 day kinda packages, I decided for at the most 2 places only in Europe. After lot of research, I zeroed in on 2 countries - Italy and one more, where I chose Italy as port of entry for 2 reasons:
1. Flights were bit cheaper
2. I wanted to end my holidays on a note of Swiss Experience

This blog post is all about my learning on VISA process.

Reading this post should make it a piece of cake on how to apply for VISA by yourselves easily.

PORT OF ENTRY IS CRITICAL

YOU MUST MUST APPLY SCHENGEN VISA  THROUGH THE FIRST COUNTRY OF YOUR EUROPEAN EXPEDITION


  • If you plan to go to Italy first followed by Switzerland and then France etc. you should apply for Schengen in VFS ITALY.
  • If your flight has a transit stopover in another European country, that is not valid in this context. For example, if you are travelling to Italy with a flight change in Greece, you should still apply your VISA for Italy
  • Ensure that you plan your flight tickets remembering this rule.

STEP BY STEP INSTRUCTION

1. Get your flights and hotels booked
2. Plan for and start procuring all documents
3. Schedule Visa Appointment
4. Go and Submit papers
5. Collect your Passport 

All above steps are detailed below. 

1. Get your flights and hotels booked

Yes! You need to present your flights and hotel bookings to support your VISA application.

I know it's a bit odd. What if you don't get a VISA? Still, as this is needed, please ensure that you have booked your flights and hotels. Which essentially means you should have an itinerary planned. To minimize the risk of losing money, I highly recommend to book refundable flights and hotels. Many sites like Booking.com (which I used mostly in my trip instead of all time favorite Agoda), it allows you to reserve without paying so you still have your card free.

Since most hotels have full refund until 7 days ago from the date of checkin, do file for VISA at least 30 days before such date. 

2. Plan for and start procuring all documents

I recommend:
a. To create a table in excel/googlesheets for all the applicants and mark all cells as either red OR grey.
b. Get a folder
c. As and when you put printout/original in that folder, mark cell as green.


3. Schedule Visa Appointment
  • Go to this link and select "New User" option.
  • Create your account
  • When scheduling for your family, opt for "Add Group" option. (It allows only 5 applicants in a group)
    Note: You might read on official website that each applicant must apply for separate appointment. It's a crap! You can apply your family as a group.
  • Add details of each applicant and select next
  • In schedule screen select a date and time slot
    Recommended: To take a slot before noon as its a bit less crowded 
  • Ensure to note the Appointment number.
    Note: They automatically email the appointment details to all the distinct emails mentioned in group
4. Go and Submit papers
VFS Global Services is located in lower floor of Shivaji Standium Metro Station which is on same road as PVR Rivoli towards Gol DakKhana near connaught place.
Q. Where to Park?
A few buildings before metro station (when you're coming from CP), there's a multi level car parking which charges 10/- per hour.

  • Once you get in, you'd reach to a counter (follow G Line for counter), where you'd get a token.
  • Once you have obtained token reach to Italy counter (#38) where you'd have sitting area and a screen displaying token numbers.
  • Once your number appears on screen, reach the counter. People their are very supportive and would guide you very nicely.
THEY DO NOT ACCEPT CREDIT CARDS. I had to walk even up to inner circle to obtain cash from ATM as all the ones near that building were cashless. They only accept cash or DemandDraft

You may opt for courier services (some 300 p.p.) OR register to collect passport yorselves.

I'll keep updating this for more.

Sunday, January 10, 2016

Bulk Unfollow on Twitter for Spam Accounts

Likely, you would have been shocked like me when you logged into your Twitter account only to see that you've been following hundreds of account. Following is step-by-step to get rid of this in 5 minutes.

Most Important
Reset Your Password First

Then,
1. Using Chrome, login into Twitter account and click Following
= This will list all accounts you've been following.
2. Scroll down until Twitter stops loading any more Twitter Accounts
3. Press F12 to open developer tools and select Console Tab
4. Enter following in console window and hit Enter
5. It will take some time. Once you see undefined, refresh your screen.

var x = 1;
while(x<5)
{
$('.follow-button')[x++].click()
}

Replace 500 with Total Accounts You're Following - Count of your valid accounts since begininng.

THIS WILL UNFOLLOW ALL ACCOUNTS FROM THE LATEST FOLLOWED ACCOUNT TILL THE COUNT SPECIFIED.


Monday, September 14, 2015

Ionic Modal Not opening on Device

Recently I was trying to build a simple app that would list the tasks and allow adding one task via an ionic modal. While every thing work fine on emulator and browser, upon deploying the app on device, modal didn't work. I was sure that ionic is working fine as ng-repeat was able to run and display tasks.

Resolution
After I ran android with logging option, I came across warning that 

The moment I fixed it, Modal started working on device. I fixed it by adding following meta tag on the index.html page.

<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">