Rabu, 27 Desember 2023

Situs Convert Online | Video App Audio PDF

Video Resize dan Gabung :

https://online-video-cutter.com/id/


Video Convert to mp4 :

https://convertio.co/id/webm-mp4/

 

HTML :

https://www.freeformatter.com/html-formatter.html


Merge PDF :

https://www.ilovepdf.com/merge_pdf


PDF To Word :

https://www.ilovepdf.com/pdf_to_word


PDF Resize :

https://www.ilovepdf.com/compress_pdf


Combine PDF :

https://combinepdf.com/id/

Selasa, 11 Juli 2023

PHP | Cara pengambilan data Looping diawal dan diakhir

Sumber :  https://www.w3docs.com/snippets/php/how-to-determine-the-first-and-last-iteration-in-a-foreach-loop.html#:~:text=A%20handy%20solution%20to%20determining,)%20%7B%20%2F%2F%20last%20%7D%20%2F%2F%20%E2%80%A6


<?php


$i = 0;

$len = count($array);

foreach ($array as $item) {

  if ($i == 0) {

    // first

  } elseif ($i == $len - 1) {

    // last

  }

  // …

  $i++;

}


?>

Senin, 05 Juni 2023

Cara Reset TWS Haylou GT1 Pro yang Tidak Stereo | Headphone, Headset Bluetooth

Sumber : https://mukharom.com/cara-reset-tws-haylou-gt1-pro-yang-tidak-stereo/

Alasan Menyimpan : karena saya sering mencari blog ini untuk perangkat saya sendiri yang error.


 Mukharom.com – Haylou GT1 Pro sudah menjadi TWS harian yang saya gunakan untuk berbagai kegiatan. Mulai dari mendengarkan musik, podcast, hingga online meeting. Ada beberapa alasan saya memilih TWS tersebut, alasannya sudah saya tulis pada artikel: Hal yang Saya Suka dari TWS Haylou GT1 Pro. TWS ini memiliki sistem stereo, yang secara otomatis dapat terhubung antara earbuds kanan dan earbuds kiri sehingga suara dapat dihasilkan oleh 2 output. Lalu apakah sistem tersebut dapat error dan tidak dapat terkoneksi secara otomatis?

Ya, itu baru saja terjadi beberapa waktu lalu pada TWS haylou milik teman saya. Yang menyebabkan earbuds kanan dan kiri terpisahkan dan tidak bisa saling terhubung secara stereo. Akibatnya kita hanya dapat menggunakan salah satu earbud saja dari TWS Haylou GT1 Pro tersebut, sangat tidak nyaman rasanya bukan? Tentu saja, karena TWS tersebut tidak bisa terhubung 1 sama lain sehingga penggunaannya tidak maksimal. Saya pun mencari tahu dan segera mencoba memperbaikinya, hingga akhirnya menemukan sebuah artikel di internet dan berhasil mereset TWS Haylou tersebut.

Lalu bagaimana cara reset TWS dari Haylou GT1 Pro tersebut yang tidak bisa terkoneksi dan membentuk stereo? Caranya sangatlah mudah, kita hanya perlu mereset kedua earbuds tersebut dan melakukan pairing ulang secara otomatis. Penasaran? Masalah koneksi pada TWS Haylou GT1 Pro masihlah dapat ditangani. Berikut tutorial cara Reset TWS Haylou GT1 Pro yang tidak saling terhubung atau tidak stereo.

Cara Reset TWS Haylou GT1 Pro yang tidak SalingTerhubung

Sebelum melakukan reset TWS Haylou GT1 Pro tersebut, pastikan kamu memiliki TWS dan tentunya Charging Case-nya ya! Yuk langsung saja berikut cara reset TWS Haylout GT1 Pro tersebut

  1. Silakan keluarkan kedua earbuds tersebut dari Charging Case-nya, maka secara otomatis TWS tersebut akan menyala
  2. Jika sudah silakan kamu matikan kembali kedua earbuds tersebut dengan menekannya selama kurang lebih 3 detik hingga lampu berwarna merah dan mati
  3. Kemudian lakukan reset kedua earbuds secara bersamaan dengan menyentuh tombol pada kedua earbuds selama 15-20 detik. Pastikan kedua earbuds berhasil direset dengan ditandai lampu yang berkedip dengan warna putih dan merah secara cepat
  4. Selanjutnya kedua earbuds akan mati secara otomatis
  5. Silakan letakkan kembali kedua earbuds tersebut pada charging case-nya
  6. Pada smartphone kamu, buka pengaturan bluetooth dan Forget atau delete Bluetooth dari Haylou GT1 Pro tersebut dari perangkat yang sudah terhubung
  7. Jika sudah, tunggu sekitar 1-2 menit kemudian keluarkan kembali TWS Haylou GT1 Pro tersebut dari Charging Case nya
  8. Tunggu beberapa detik agar kedua earbuds tersebut terhubung kembali, biasanya ditandai dengan warna kedipan yang berhenti pada salah satu earbuds
  9. Setelah itu silakan lakukan pairing kembali pada perangkat Smartphone kamu atau perangkat lainnya
  10. Selamat! Saat ini TWS kamu sudah berhasil kembali ke mode stereo dan earbudsnya saling terhubung satu sama lain. Kamu bisa menggunakannya kembali dengan nyaman seperti sebelumnya

Bagaimana, mudah bukan mereset konfigurasi pada TWS Haylout GT1 Pro agar kembali dapat stereo kembali? Kamu pun dapat menggunakan kembali TWS tersebut seperti sebelumnya untuk menemani aktifitas sehari-hari kamu. Kalau TWS Haylou GT1 Pro itu kamu gunakan untuk apa aja sih pada kehidupan sehari-hari? Jangan malu untuk share dikolom komentar ya! Silakan bagikan artikel ini ke pengguna Haylou lainnya, agar tau cara reset TWS yang mereka punya dan tidak panik saat mendapatkan kendala tersebut

Have a good day!

Senin, 27 Februari 2023

Selasa, 21 Februari 2023

Perbaikan Error Laravel | 21 Feb 2023

 > cURL error 77: error setting certificate verify locations: CAfile: \xampp\apache\bin\curl-ca-bundle.crt CApath: none (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

Jawaban : 

sumber : https://stackoverflow.com/questions/55488982/failed-loading-cafile-stream-c-xampp-apache-bin-curl-ca-bundle-crt

You are not providing a valid ca bundle file.

Try downloading this file (https://curl.haxx.se/ca/cacert.pem) and save it as C:\xampp\apache\bin\curl-ca-bundle.crt You can read the explanation on the Certificate Verification section of the curl documentation.

Cara instalasi web server nginx dan php-fpm pada Server CentOS 7 | 21 Feb 2023

 referensi : https://www.youtube.com/watch?v=RqYFHD0bgUE&ab_channel=impstudio


#NGINX

sudo yum -y install epel-release

sudo yum -y install nginx


sudo systemctl start nginx

sudo systemctl enable nginx


sudo firewall-cmd --add-service=http --permanent

sudo firewall-cmd --add-service=https --permanent

sudo firewall-cmd --reload


#PHP-FPM

--cd /tmp

--sudo yum -y install wget

--sudo wget -q http://rpms.remirepo.net/enterprise/remi-release-7.rpm

--sudo rpm -Uvh remi-release-7.rpm


sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm


sudo yum -y install yum-utils

sudo yum-config-manager --enable remi-php74


sudo yum -y install php-fpm php-common

sudo yum -y install php-opcache php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql \

php-pecl-mongodb php-pecl-redis php-pecl-memcache php-pecl-memcached php-gd php-mbstring \

php-mcrypt php-xml


sudo vim /etc/php.ini

cgi.fix_pathinfo=0

date.timezone = Asia/Jakarta


sudo vim /etc/php-fpm.d/www.conf

user = nginx

group = nginx

listen.owner = nginx

listen.group = nginx

listen.mode = 0660


sudo systemctl start php-fpm

sudo systemctl enable php-fpm


#KONFIGURASI NGINX

server {

    listen 80;

    server_name localhost;

    root /var/www/example;

    index index.php index.html index.htm;


    location / {

      try_files $uri $uri/ /index.php;

    }


    location ~ \.php$ {

      try_files $uri =404;

      fastcgi_pass localhost:9000;

      fastcgi_index index.php;

      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

      include fastcgi_params;

   }

}


sudo vim /var/www/example/index.php


phpinfo();



sudo service nginx restart

Selasa, 10 Januari 2023

ReactJs React JS | Install Running

> Install :

- npm install


> Running :

- npm start


> Install di project existing

npm run build


> Jika saat install masih belum 

npm install --force

Running Redis Memcache Windows

sumber : https://hackthedeveloper.com/how-to-install-redis-on-windows-10/

dir : D:\LKPP\katalog5-dev\Redis\redis-server


 This blog’s primary focus is to discuss How to install Redis on Windows 10? Before addressing the main question, let’s first take a brief look on what is Redis.

What Is Redis?

Redis full form is Remote Directory Server. Redis is a NO-SQL in-memory remote database that offers high performance, replication, and a unique data model.

Now when we have a brief idea of what Redis is, let’s see how we can install Redis on windows 10.

Redis was not developed for windows and thus a team of Microsoft handles the task to make it available to us.

How To Install Redis On Windows 10

Follow the steps as shown to properly install Redis on Windows 10.

Step 1: Download .Zip Or .Msi File

As told earlier, Redis is not available on windows but Microsoft makes it available for the Windows users.

Go to https://github.com/microsoftarchive/redis/releases to Download .zip or .msi file.

The ZIP file will require you to add the environment variables manually while the MSI file is an installer and will do it automatically for you.

In this blog, I will show you both the process. Starting with the ZIP File.

how to install redis on windows 10
MicrosoftArchive Redis

Make sure you get the latest release and not the pre-release, as shown by the mouse pointer on the picture.

Step 2: Extract The ZIP File

Create a new folder named “Redis” and extract the ZIP file into it. Name of the folder is up to you but it is good to follow the conventions.

After Extracting the ZIP you will see files of the Redis.

Redis Files
Redis Files

Two important files in this folder is redis-server.exe which will run the redis server and the redis-cli.exe which will enable us to interact with the server.

Let’s start the redis-server by double clicking the redis-server.exe.

Redis Server
Redis Server

By Default Redis Server runs on the port 6379.

Let’s Open the redis-cli and interact with the server.

Double click the redis-cli.exe to start the client interface.

Redis Client
Redis Client

The above image shows the interaction with the Redis Server.

This shows that the Redis is working in Windows 10, but we don’t want to come to this directory every time we want to work with Redis. To Solve this we will add the Redis-server and Redis-CLI path to the windows environment variable to interact with it using the command prompt.

Step 3: Move The Redis Folder To C Drive (Optional)

By Default the Redis folder will be downloaded on the Download folder of the windows. Then we created a folder and extracted the ZIP file into it.

It may happen that we accidently delete the Redis folder and the system will not find the path to open the Redis-Server and Redis-CLI.

So, it will be a good choice if we move our Redis folder to the Root of the C Drive.

Step 3: Add Redis Path To Windows 10 Environment Variable

Right Click to the My Computer (This PC in Windows 10) icon and go to properties or move to Control Panel\All Control Panel Items\System. Then go to Advanced System Settings > Environment Variables.

On the System Variables section, double click on the PATH variable and add the path of redis folder.

redis to environment variable
redis to environment variable

To test the path has been successfully added or not.

Open the Command Prompt and write command:

> redis-server

Bash/Shell

Redis on Commad Prompt
Redis on Commad Prompt

> redis-cli

Bash/Shell

Redis Server on Powershell and Redis Client on Command Prompt
Redis Server on Powershell and Redis Client on Command Prompt

Now let’s look at how we can install the Redis using MSI Installer on Windows 10.

Installing Redis Using MSI On Windows 10

MSI is an installer and the automatic process for adding the path to environment variables.

Just remember to check the tick box that says add to the environment variable. and you keep the rest as default. Redis will be successfully installed on your Windows 10 system.

One thing to know that, When you choose the MSI Installer the redis-server will automatically run in the background when the system starts. you just have to connect to the server using the redis-cli from the CMD.

Hope you like it!

Learn Python OpenCVGolangGo Web Development and many more form this site.