import React from ‘react’; import { AvForm, AvField, AvGroup, AvInput, AvFeedback, AvRadioGroup, AvRadio, AvCheckboxGroup, AvCheckbox } from ‘availity-reactstrap-validation’; import { Button, Label, FormGroup } from ‘reactstrap’; export default class Example extends React.Component { constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind(this); this.state = {}; } handleSubmit(event, errors, …
Uncategorized
Generic Recycleview with Adapter in Kotlin
Now I will show you how to use Generic RecycleView for different View Types. First of creating Generic Recycleview Adapter (GenericAdapter) class as below. import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup abstract class GenericAdapter : RecyclerView.Adapter { var listItems: List constructor(listItems: List) { this.listItems …
Git Documentation for basic steps
These are basic git commands which is required in daily code managing. -To start project – To get latest code from remote – To set your local code in remote – Deleting branch – Deleting file – Revert to previous commit Basic Git Commands:- git clone git-path …
Git Server and Client Setup
Server Setup First, you need to update your system and install necessary packages to your system. To update the system and install the SSH server on the server machine, run the following command: sudo apt-get update sudo apt-get install open ssh-server Second, install Git on …
Restrict access to phpMyAdmin by IP
Under an Ubuntu system phpMyAdmin adds an Apache vhost that makes it publically available at http://yoursite.com/phpmyadmin . By accessing http://yoursite.com/phpmyadmin have maximum chances to get hacked your database. Under Ubuntu, the phpMyAdmin apache conf file is located at: /etc/apache2/conf-available/phpmyadmin.conf Simply add the following order, allow, deny directives …
Common memory leaks and how to fix them
1. Fix your contexts: Try using the appropriate context: For example since a Toast can be seen in many activities instead of in just one, use getApplicationContext() for toasts, and since services can keep running even though an activity has ended start a service with: …
Get orientation from video or thumb obtained with AVAssetImageGenerator
Solution: Need to add following line under above method generator.appliesPreferredTrackTransform=true
Avocode can make developer work easy
How can Avocode help Developer? You can open and inspect Photoshop/Sketch designs without Photoshop or Sketch at all. Or you can export image assets, copy text and CSS, grab colors, gradients and fonts information, measure distances between elements, and save optimized image assets for production. …