Hit enter to search or ESC to close
Dean Ha
  • About
  • Portfolio
  • Photography
  • Blog
  • Contact

Crafting Code & Visuals

How toTutourial & Tips

Make your React App routing work on Apache Server using .htaccess

<IfModule mod_rewrite.c>   RewriteEngine On   RewriteBase /   RewriteRule ^index\.html$ -    RewriteCond %{REQUEST_FILENAME} !-f   RewriteCond %{REQUEST_FILENAME} !-d   RewriteCond %{REQUEST_FILENAME} !-l   RewriteRule . /index.html  </IfModule>
Dean Ha
Dean Ha26th February 2024
BlogTutourial & Tips

Common React Code Snippets: A Handy Reference

Whether you're just starting your journey with React or you're a seasoned developer, having a…
Dean Ha
Dean Ha25th October 2023
How toTechnologyTutourial & Tips

Building a PWA: Your Step-by-Step Guide with Code Snippets and Examples

Progressive Web Apps (PWAs) are all the rage and for a good reason. They combine…
Dean Ha
Dean Ha24th October 2023
Tutourial & Tips

How to remove all white spaces from a string

var copyText = document.getElementById("reg"); copyText.value.replace(/ /g,'')  
Dean Ha
Dean Ha19th August 2021
How toTutourial & Tips

How to write specific CSS targeting IE browsers

<!doctype html> <html> <head> <title>IE10/11 Media Query Test</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <style> @media…
Dean Ha
Dean Ha5th July 2021
Tutourial & Tips

Check if jQuery is installed

if (typeof jQuery == "undefined") { alert("jQuery is not installed"); (function () { var script…
Dean Ha
Dean Ha28th May 2021
How toTutourial & Tips

How to force SSL with .htaccess?

To force your website domain to use an HTTPS connection, add the following lines inside…
Dean Ha
Dean Ha10th March 2021
Tutourial & Tips

Remove bad GPS coords when tracking

There are times when you're tracking there are sudden jumps in the co-ords.. which are…
Dean Ha
Dean Ha28th November 2020
Tutourial & Tips

Remote Desktop use 2 out of 4 monitors

ALLOW ABILITY TO CHOOSE SUBSET OF LOCAL MONITORS FOR RDP SESSION (FULL SCREEN) Allow ability…
Dean Ha
Dean Ha25th November 2020
Tutourial & Tips

npm run *script* doesn’t do anything

have you tried running a script which was defined in your package.json and it didn't…
Dean Ha
Dean Ha14th November 2020
BlogTutourial & Tips

Basic JavaScript MutationObserver API

We can use the MutationObserver to listen to changes made to a target node. With…
Dean Ha
Dean Ha23rd June 2020
How toTutourial & Tips

How to access mysql & import database using the Command Line Interface

cd C:\xampp\mysql\bin mysql -u root -p show databases; use DATABASENAME; source path\to\DATABASE_SQL_FILE.sql  
Dean Ha
Dean Ha28th November 2019
How toTechnologyTutourial & Tips

ElectronJs – Creating your first Cross-Platform Desktop App

Make sure you have Node and NPM install on your Development Environment Install electron locally…
Dean Ha
Dean Ha6th September 2019
How toTutourial & Tips

How to create a Progressive Web App (PWA)

Generate your PWA manifest.json here: https://app-manifest.firebaseapp.com Create a ServiceWorker and name it: sw.js You will…
Dean Ha
Dean Ha22nd August 2019
Tutourial & Tips

How to encrypt a string with a private key/salt in PHP

Its useful to encrypt a certain string and and then unlock the message by decryption…
Dean Ha
Dean Ha31st July 2019
1 2 Next

Categories

  • #100DaysOfCode
  • Blog
  • How to
  • Inspirations
  • Resources
  • Technology
  • Tutourial & Tips
  • W.I.P

© 2025 Dean Ha. All Rights Reserved

  • About
  • Portfolio
  • Photography
  • Blog
  • Contact