teleren/devto huggingface dataset:
How to Show Toast Message in React Native for Android Only
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:53:04

---
title: How to Show Toast Message in React Native for Android Only
published: true
description: How to Show Toast Message in React Native for Android Only
tags: #reactnative #react #android #ios  
---

Source : <a href="https://www.skptricks.com/2019/08/how-to-show-toast-message-in-react-native.html" >How to Show Toast Message in React Native for Android Only </a>

This tutorial explains how to generate toast message in react native application. React Native Toast is a component which is related to Android only and can be used to display information for the short period of time. A Toast contains the message to be displayed quickly and disappears after some time.

NOTE : React Native Toast is only for those who are targetting to Android platform only IOS doesn’t support Toast.

Code Snippet To Use Toast Message In React Native :
ToastAndroid.show(message, duration)
ToastAndroid.showWithGravity(message, duration, gravity)
ToastAndroid.showWithGravityAndOffset(message, duration, gravity, xOffset, yOffset)

<img src="https://1.bp.blogspot.com/-IMR1IcwNB1s/XVVHS5OG9dI/AAAAAAAADTE/FXmtFVS7CWsBJsWpXMYIWypriGXMR1vwwCLcBGAs/s400/how-to-show-toast-message-in-react-native.jpg" />

<a href="https://www.skptricks.com/2019/08/how-to-show-toast-message-in-react-native.html" >Click here to read more </a>
React Native Captcha Code Validation Android & IOS Example
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:51:28

---
title: React Native Captcha Code Validation Android & IOS Example
published: true
description: React Native Captcha Code Validation Android & IOS Example
tags: #reactnative #react #android #ios 
---

Source : <a href="https://www.skptricks.com/2019/08/react-native-captcha-code-validation.html" > React Native Captcha Code Validation Android & IOS Example</a>

This tutorial explains how to create captcha code in react native application. Nowadays this kind of captcha code is widely used in form validation. Captcha is a type of unpredictable challenge text code written in alphanumeric characters used to make difference between Virus(SPAM) and real humans. Captcha can only be readable by human eyes and only humans can answer the right captcha. It’ll stop spam attacks on Log-In, Sing-Up and Comment pages in web applications. Right now the Captcha is also used in mobile applications to make them secure against SPAM bots.

<img src="https://1.bp.blogspot.com/-bmQOK9g8XTA/XVTg9r90z1I/AAAAAAAADSc/qt1DIRYzOZQ5dAvYOjGB0zkebJujXsjIwCLcBGAs/s400/react-native-captcha-code-validation.jpg" />

<a href="https://www.skptricks.com/2019/08/react-native-captcha-code-validation.html" >Click here to read more</a>
React Native Get Android or iOS Device Unique ID Dynamically
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:26:49

---
title: React Native Get Android or iOS Device Unique ID Dynamically
published: true
description: React Native Get Android or iOS Device Unique ID Dynamically
tags: #reactnative #react #android #ios 
---

Source : <a href="https://www.skptricks.com/2019/08/react-native-get-android-or-ios-device-unique-id.html" >React Native Get Android or iOS Device Unique ID Dynamically </a>


This tutorial explains how to get android or ios device unique ID in react native application. Every mobile phone device in the world has its unique ID(Identify Signature) which makes with the combination of Alphabetic and Numeric characters. Unique device ID is used in Push Notification, identify a device uniquely at login app and most of money making app’s usages this to prevent multiple app installation in same device.
Both android and iOS devices supports Unique ID and using the react-native-device-info NPM library we can easily retrieve Get Android iOS Device Unique ID Dynamically on button click in Android iOS react native application.

<img src="https://1.bp.blogspot.com/-znb4ngPPnHM/XUcKHHGCklI/AAAAAAAADL0/b-L4Ec7t2RMYRBvHMTFbwOipDlaTItsvwCLcBGAs/s400/react-native-get-android-or-ios-device-unique-id.jpg" />

<a href="https://www.skptricks.com/2019/08/react-native-get-android-or-ios-device-unique-id.html" >Click here to read more </a>
Gift Card Screen using react-native-confetti-cannon
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:50:14

---
title: Gift Card Screen using react-native-confetti-cannon
published: true
description: Gift Card Screen using react-native-confetti-cannon
tags: #reactnative #react #android #ios
---

Source : <a href="https://www.skptricks.com/2019/08/gift-card-screen-using-react-native-confetti-cannon.html" > Gift Card Screen using react-native-confetti-cannon</a>

This tutorial explains how to make a Gift Card Screen using react-native-confetti-cannon for Android and IOS devices in react native application. In this example we are going to discuss step by step and that makes you easier to understand. You can create any types of screens using react-native-confetti-cannon. You have seen this type of animations whenever you got a gift vouchers or any cash back amount.

<img src="https://1.bp.blogspot.com/-e_NMHoihGwE/XVOMa-eoavI/AAAAAAAADRw/9cjLULSKswcTgE-uA0juZqNfNkzlM1tZQCLcBGAs/s400/Gift%2BCard%2BScreen%2Busing%2Breact-native-confetti-cannon.jpg" />

<a href="https://www.skptricks.com/2019/08/gift-card-screen-using-react-native-confetti-cannon.html" > Click here to read more</a>
React Native Implement Custom reCaptcha in Android iOS Example
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:48:57

---
title: React Native Implement Custom reCaptcha in Android iOS Example
published: true
description: React Native Implement Custom reCaptcha in Android iOS Example
tags: #reactnative #react #android #ios
---

Source : <a href="https://www.skptricks.com/2019/08/react-native-implement-custom-recaptcha-android-ios.html" >React Native Implement Custom reCaptcha in Android iOS Example </a>

This tutorial explains how to implement custom reCaptcha in Android or IOS device in react native application. This technology is used mostly to block spammers and bots that try to automatically harvest email addresses or try to automatically sign up for or make use of Web sites, blogs or forums. CAPTCHA, whose users include Yahoo and Google, blocks automated systems, which can't read the distorted letters in the graphic. We have decided to create a new library that will give more freedom, be more flexible, and be easy to use simultaneously.

<img src="https://1.bp.blogspot.com/-jU5rt99XX3w/XVGpjoKEOlI/AAAAAAAADRM/G7h1iQVWLI84UnvlOVxvOXtnljpUw4sEQCLcBGAs/s400/react-native-implement-custom-recaptcha-android-ios.jpg" />

<a href="https://www.skptricks.com/2019/08/react-native-implement-custom-recaptcha-android-ios.html" >Click here to read more
 </a>
TODO 8/12 - 8/18 & Review on Last Week
Tags: beginners, machinelearning
Published: 2019-08-15 17:48:03

Last week has been quite hectic as work really kicked in. But I am very happy about the work I did. I was able to finish all the 3 top priorities I set up 👏. I also had a very productive weekend and went to the gym twice. 

> - Driver Attrition Project* ✅
>   - read legacy code
>   - understand what data we have and what has been done
>   - have a baseline model
> - Recommender System 
>   - Batch Script testing
>   - timezone change to EST
> - Resume* ✅
>   - update (Monday)
>   - review session (Tuesday)
> - Medium Interview* ✅
>   - prep self-introduction
>   - prep questions for the hiring manager 
> - Side Project - 2 Pomodoro each (weekend)
>   - hackathon
>   - Kuzushiji
>   - SearchAds
>   - DingPy

Moving on this week, I would like to finish the Driver Attrition Project as much as I can. Also, have an interview on Friday so definitely need to prepare for that. I will visit Baltimore with a friend on the weekend and unplug a little bit from work. My keyword this week is 'productivity'😬.

- Driver Attrition Project * 
  - Finish feature engineering
  - Try random forest 
  - Investigate feature importance
- KeepTruckin Interview * 
  - Pramp practice * 2
- Update resume * 
  - driver attrition
  - spacing
  - Kuzushiji
  - send to career coach for review
  - send to friends for referral

Cover photo by [Renáta-Adrienn](https://unsplash.com/@bajkorenata) on [Unsplash](https://unsplash.com)
React Native Remove Repeated Duplicate Object Items from Array
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:47:51

---
title: React Native Remove Repeated Duplicate Object Items from Array
published: true
description: React Native Remove Repeated Duplicate Object Items from Array
tags: #reactnative #react #android #ios
---

Source : <a href="https://www.skptricks.com/2019/08/react-native-remove-repeated-duplicate-object-items-from-array.html" >React Native Remove Repeated Duplicate Object Items from Array </a>

This tutorial explains how to remove repeated and duplicate object item from array in react native application. Sometimes application user add same entries in array by mistake in application and the same entries will make our array longer in size, also it will impact on application load time and performance. So in this example we are going to use below technique to remove duplicate entries in array.

<img src="https://1.bp.blogspot.com/-rVcLlZNp-u0/XVAtyEeBubI/AAAAAAAADQM/mPpvB6LUnp8KbHlEZHjlP31_MbEG5BS0ACLcBGAs/s400/react-native-remove-repeated-duplicate-object-items-from-array1.jpg" />

<a href="https://www.skptricks.com/2019/08/react-native-remove-repeated-duplicate-object-items-from-array.html" >Click here to read more</a>
React Native Password Encryption and Decryption using Base64 Method
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:46:36

---
title: React Native Password Encryption and Decryption using Base64 Method
published: true
description: React Native Password Encryption and Decryption using Base64 Method
tags: #reactnative #react #android #ios
---

Source : <a href="https://www.skptricks.com/2019/08/react-native-password-encryption-and-decryption-using-base64.html" > React Native Password Encryption and Decryption using Base64 Method</a>


This tutorial explains how encrypt and decrypt password text using Base64 method in react native application. Encoding and decoding a string in Base64 with JavaScript can be quite handy. It's in no way meant to be a secure encryption method, but it is extremely useful for writing obfuscated strings to either a document (your webpage) or a cookie file without needing to worry about quotes or characters breaking things. A most famous password encryption technique is known as Base64 encryption which is used by hundreds of websites and mobile applications to store their password.In this example we are going to encrypt and decrypt TextInput field value using Base64 library in react native.

<img src="https://1.bp.blogspot.com/-1uJ_a-gdTvs/XU_-ETSysXI/AAAAAAAADP4/9FxO_nJY1TIIN1BTECvEPuSe3JGZiHmgwCLcBGAs/s400/react-native-password-encryption-and-decryption-using-base64.jpg" />

<a href="https://www.skptricks.com/2019/08/react-native-password-encryption-and-decryption-using-base64.html" > Click here to read more</a>
Java Program to Count Number of Words in a File
Tags: java
Published: 2019-08-15 17:45:13

---
title: Java Program to Count Number of Words in a File
published: true
description: Java Program to Count Number of Words in a File
tags: #java
---

Source : <a href="https://www.skptricks.com/2019/08/java-program-to-count-number-of-words-in-file.html" > Java Program to Count Number of Words in a File</a>

This tutorial explains how to count number of words in a file in java. Find Number of words should be a valuable part. Reason for Counting word occurrence in because almost all the text boxes that rely on user input have a certain limit on the number of characters that can be inserted.

<img src="https://1.bp.blogspot.com/-cGctIhOpPFc/XU_J4w5jR3I/AAAAAAAADPQ/YWTB6nXxkZEz2vFsiY1rJp92UALKavkqQCLcBGAs/s400/java-program-to-count-number-of-words-in-file.jpg" />

<a href="https://www.skptricks.com/2019/08/java-program-to-count-number-of-words-in-file.html" > Click here to read more</a>
Java Program to Reverse word in the String
Tags: java
Published: 2019-08-15 17:43:37

---
title: Java Program to Reverse word in the String
published: true
description: Java Program to Reverse word in the String
tags: #java
---

Source : <a href="https://www.skptricks.com/2019/08/java-program-to-reverse-word-in-string.html" > Java Program to Reverse word in the String</a>

This tutorial explains how to reverse word in java. Lets see the following java program to reverse word in string.


<img src="https://1.bp.blogspot.com/-xGxG0_LLVl8/XU-exfp7jpI/AAAAAAAADO4/vADd_rw5WI8oiKcCXnqCDOQltbByh5OHgCLcBGAs/s400/java-program-to-reverse-word-in-string.jpg" />

<a href="https://www.skptricks.com/2019/08/java-program-to-reverse-word-in-string.html" > Click here to read more</a>
java Program to Count repeated words in String
Tags: java
Published: 2019-08-15 17:42:02

---
title: java Program to Count repeated words in String
published: true
description: java Program to Count repeated words in String
tags: #java
---
Source : <a href="https://www.skptricks.com/2019/08/java-program-to-count-repeated-words-in-string.html" >java Program to Count repeated words in String </a>

This tutorial explains how to count word in string in java application. Lets see the Following Java program to counts how many times a word appears in a String or find repeated words. It can help you in to find the most frequent words in a string also check the count which will be equal to one for unique words.

<img src="https://1.bp.blogspot.com/-fYoAAvhGToU/XU-cNyXwWcI/AAAAAAAADOk/27uSfKXQ9rInPXFyDTQtsDxkyQHCKvrjwCLcBGAs/s400/java-program-to-count-repeated-words-in-string.jpg" />

<a href="https://www.skptricks.com/2019/08/java-program-to-count-repeated-words-in-string.html" >Click here to read more
 </a>
How to read a text file and search any specific word in java
Tags: java
Published: 2019-08-15 17:40:44

---
title: How to read a text file and search any specific word in java
published: true
description: How to read a text file and search any specific word in java
tags: #java
---
Source : <a href="https://www.skptricks.com/2019/08/how-to-read-text-file-and-search-any-specific-word.html" >How to read a text file and search any specific word in java </a>

This tutorial explains how to read a text file and search any specific word in java. In order to search any specific word from a text file, we need to first read text file. Here we have provided simple example for reading a text file and search any specific word from that.


<img src="https://1.bp.blogspot.com/-cfIGg8hNeXg/XU-YhTnyugI/AAAAAAAADOQ/CUZbK9AE5bkAoj7M0_RiXcPAoa5SboChwCLcBGAs/s400/how-to-read-text-file-and-search-any-specific-word.jpg" />

<a href="https://www.skptricks.com/2019/08/how-to-read-text-file-and-search-any-specific-word.html" >Click here to read more</a>
How to get the current home directory in a Java application
Tags: java
Published: 2019-08-15 17:38:47

---
title: How to get the current home directory in a Java application
published: true
description: How to get the current home directory in a Java application
tags: #java
---

Source : <a href="https://www.skptricks.com/2019/08/how-to-get-current-home-directory-in-java.html" >How to get the current home directory in a Java application </a>

This tutorial explains how to get the current home directory in a Java application. You can determine the current directory your Java application is started in using System.getProperty() method and the user.home property, like this:

<img src= "https://1.bp.blogspot.com/-2bXp-sQRD80/XUuY01amVkI/AAAAAAAADN4/l7m_5O_4ywE5E6lcFe-fxdWQq9GKNXTGgCLcBGAs/s400/how-to-get-current-home-directory-in-java.jpg" />

<a href="https://www.skptricks.com/2019/08/how-to-get-current-home-directory-in-java.html" >Click here to read more
 </a>
How to get the current user directory in a Java application
Tags: java
Published: 2019-08-15 17:37:26

---
title: How to get the current user directory in a Java application
published: true
description: How to get the current user directory in a Java application
tags: #java
---

Source : <a href="https://www.skptricks.com/2019/08/how-to-get-current-user-directory-in-java.html" > How to get the current user directory in a Java application</a>


This tutorial explains how to get the current user directory in a Java application. You can determine the current directory your Java application is started in using System.getProperty() method and the user.dir property, like this:

<img src="https://1.bp.blogspot.com/-eGc8rUSnsvU/XUuS3Bsc6jI/AAAAAAAADNs/qdl21tQUh5MSECXLA5v2QPvOgTyhjldyACLcBGAs/s400/how-to-get-current-user-directory-in-java.jpg"  />

<a href="https://www.skptricks.com/2019/08/how-to-get-current-user-directory-in-java.html" > Click here to read more</a>
Java Program to Read a Text File Line by Line
Tags: java
Published: 2019-08-15 17:35:02

---
title: Java Program to Read a Text File Line by Line
published: true
description: Java Program to Read a Text File Line by Line
tags: #java
---
Source : <a href="https://www.skptricks.com/2019/08/java-program-to-read-text-file-line-by-line.html" > Java Program to Read a Text File Line by Line</a>

This tutorial explains how to read a text file line by line in java. This simple java code will explain these concepts of line by line file reading using java. Following source code help to search text.

<img src="https://1.bp.blogspot.com/-28tGSryD2u8/XUpbjsXb8zI/AAAAAAAADNg/KMgylFQSM_8H7mDSkAn5PPaRnWEL40KdwCLcBGAs/s400/java-program-to-read-text-file-line-by-line.jpg" />

<a href="https://www.skptricks.com/2019/08/java-program-to-read-text-file-line-by-line.html" > Click here to read more </a>
How to convince desktop users to embrace Linux
Tags: platform
Published: 2019-08-15 17:34:30

How to increase the market share of Linux on the desktop. What are the barriers? Is it unfamiliarity, does it seem too complex? Is it the sometimes unhelpful responses on the support forums?

Would users consider a dual-boot scenario, or would this be considered too complicated? Or perhaps trying linux as a guest-OS within their familiar Mac or Windows environment?

I first tried Linux back in 2003 and found it too challenging myself back then. More than 15 years on, my experience is different today - and I believe Linux has come on in leaps and bounds and is now better placed to  entice desktop users.

Do you agree?

What is your experience of Linux on the desktop?
Which (if any) is your preferred distribution - and why?
Which is your preferred development platform -and why?

I am very familiar with Debian now, and I really like it. But I am beginning to learn OpenSuse and Manjaro in the hope that one of these distributions will convince users of the virtues of Linux, according to their needs.

I have a genuine sense that now is the time for Linux to spread it's wings beyond it's dominance on the server and into the desktop world also. Am I dreaming?

If so, what are your experiences of integrating or indeed migrating to Linux? Did you persevere and overcome them - or give up? Would you consider a re-try?

Thank you for your input.
Create an executable command file in MAC OS
Tags: command, batchcommand, vbscript, bat
Published: 2019-08-15 17:32:21

---
title: Create an executable command file in MAC OS
published: true
description: Create an executable command file in MAC OS
tags: #command #batchcommand #vbscript #bat
---

Source : <a href="https://www.skptricks.com/2019/08/create-executable-command-file-in-mac-os.html" >Create an executable command file in MAC OS </a>

This tutorial explains how to create an executable command file in MAC OS. MAC commands executable / batch file consisting of commands to run (an alternate to .bat file of windowsOS in MacOC).

If you have worked on windows command prompt, you might used .bat or batch file which will have all the commands that you want to run, and when you double click on the .bat file, commands will be executed one by one.

In MacOS you can create a new file with file extension / format as .command and enter all the commands you want to run as you run manually on MAC terminal.

<img src="https://1.bp.blogspot.com/-uPsMqEegFw4/XUkBXB4yHNI/AAAAAAAADNM/yuu4yJ5jqMgxMecdXIznQ8yGsKFEz5izwCLcBGAs/s400/create-executable-command-file-in-mac-os.jpg" />

<a href="https://www.skptricks.com/2019/08/create-executable-command-file-in-mac-os.html" >Click here to read more </a>
How to take screen shots in Java
Tags: java, selenium
Published: 2019-08-15 17:30:40

---
title: How to take screen shots in Java
published: true
description: How to take screen shots in Java
tags: #java #selenium
---

Source : <a href="https://www.skptricks.com/2019/08/how-to-take-screen-shots-in-java.html" > How to take screen shots in Java</a>

This tutorial explains how to take screen shots in Java with simple example. This example uses java.awt.Robot class to capture the screen pixels and returns a BufferedImage. Java.awt.Robot class is used to take the control of mouse and keyboard. Once you get the control, you can do any type of operation related to mouse and keyboard through your java code. This class is used generally for test automation. Copy and paste following code in your Java class and invoke the method captureScreen() with file name as argument. This example takes the screen shot of your desktop and save it in a PNG file. The screen shot will be stored in the file that you specified in argument.

<img src="https://1.bp.blogspot.com/-E2Q3X0XzSjM/XUhQscKPxdI/AAAAAAAADNA/2Cnfb87uaYAKl89QmPO9FD8wxlxmKpmmgCLcBGAs/s400/T1.jpg" />


<a href="https://www.skptricks.com/2019/08/how-to-take-screen-shots-in-java.html" > Click here to read more</a>
Multi-Line Text / Break Text in React Native
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:29:16

---
title: Multi-Line Text / Break Text in React Native
published: true
description: Multi-Line Text / Break Text in React Native
tags: #reactnative #react #android #ios
---

Source : <a href="https://www.skptricks.com/2019/08/multi-line-text-break-text-in-react-native.html" > Multi-Line Text / Break Text in React Native</a>

This tutorial explains how to add multi-line text/break text in react native application. This is very simple and easy as well. you need use {'\n'} as line breaks in text component, whenever you need to add line break in react native application.

<img src="https://1.bp.blogspot.com/-xSI2nTtzj1s/XUevtrY0XSI/AAAAAAAADM0/kwlUKnfZEa4qM1-JifJ3XOyau_ISYkyagCLcBGAs/s400/multi-line-text-break-text-in-react-native.jpg" />

<a href="https://www.skptricks.com/2019/08/multi-line-text-break-text-in-react-native.html" > Click here to read more</a>
React Native Check Value Is Number Or Not Using isNaN() Validation
Tags: reactnative, react, android, ios
Published: 2019-08-15 17:28:07

---
title: React Native Check Value Is Number Or Not Using isNaN() Validation
published: true
description: React Native Check Value Is Number Or Not Using isNaN() Validation
tags: #reactnative #react #android #ios
---

Source : <a href="https://www.skptricks.com/2019/08/react-native-check-value-is-number-or-not-number.html" >React Native Check Value Is Number Or Not Using isNaN() Validation </a>

This tutorial explains how to check value is a number or not a number using isNaN() function in react native application. The function isNaN() is used to check the value of any variable or state is a number or not. In this example we will check input is a number or not.

To Check Value is a Number or Not :
isNaN(Pass the Value to check); //It will return true if not a number else false

Note : If the value do not contain the number then it will return True and if the value contain number value then it will return us False.

<img src="https://1.bp.blogspot.com/-MNnWKyK7qAo/XUere_f1AXI/AAAAAAAADMg/DN2xA0_JAMYXVSm_mgf8bFk4SXrYxlhLQCLcBGAs/s400/react-native-check-value-is-number-or-not-number.jpg" />

<a href="https://www.skptricks.com/2019/08/react-native-check-value-is-number-or-not-number.html" >Click here to read more </a>