XAMPP: How to Open Phpmyadmin Access

XAMPP’s Phpmyadmin folder is forbidden as default if accessed from internet. To open access this folder we have to edit /xampp/apache/conf/extra/httpd-xampp.conf file in Windows or /opt/lampp/etc/extra/httpd-xampp.conf file in Linux. Open httpd-xampp.conf file in text editorFind the following line: # Windows Alias /phpmyadmin “C:/xampp/phpMyAdmin/” <Directory “C:/xampp/phpMyAdmin”> AllowOverride AuthConfig Require local ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </Directory> # Linux…

Ubuntu: How to Install RTL8192EU Driver

First, we install all packages required for the installation of the driver using this command: sudo apt-get install linux-headers-generic build-essential dkms git Now clone the git repository: git clone https://github.com/clnhub/rtl8192eu-linux.git Move to the new folder created: cd rtl8192eu-linux Remove current drivers (check with dkms status or sudo lshw -C network what drivers are available): sudo rmmod rtl8xxxu Blacklist the…

Moving Averages and Stochastic: Simple Indicators for a Simple Trading Strategy

Strategies help traders avoid common mistakes by providing a strict and understandable analysis system. By following it, you get closer to success and understanding market patterns. Here’s a simple strategy that both beginners and professionals can use. Required indicators: Short-term moving average (50-period MA)Long-term moving average (100-period MA)Classic Stochastic (14, 3, 3) Instructions Example Let’s…

Yii2: How to Create Editable Row in Gridview

Setup 1 – View Put the following code inside gridview: [ ‘class’=>’kartik\grid\EditableColumn’, ‘attribute’ => ‘nilai_tugas’, ‘value’ => function ($model) { return $model->nilai_tugas; }, ‘editableOptions’=> function ($model, $key, $index) { return [ ‘header’=>’Name’, ‘size’=>’md’, ‘formOptions’=>[‘action’ => [‘krs-detail/editNilai’]], ‘inputType’=>\kartik\editable\Editable::INPUT_TEXT, ]; } ], Setup 2 – Controller Put the following code into controller file: use kartik\grid\EditableColumnAction; use yii\helpers\ArrayHelper;…

PHP Tutorial: How to Check Date is Today Date

Use the following code to check a date whether it is today date. $timestamp = “2022-06-27”; $today = new DateTime(“today”); $match_date = DateTime::createFromFormat( “Y-m-d”, $timestamp ); $match_date->setTime( 0, 0, 0 ); $diff = $today->diff( $match_date ); $diffDays = (integer)$diff->format( “%R%a” ); // Extract days count in interval if ($diffDays != 0) { echo “not today”;…

1 2 3 13