Showing: 51 - 58 of 58 Articles

react js Av Form and reactstrap validation

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, …

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 …

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 …