Javascript: Using Import instead of Require

By PNC No comments

To use IMPORT in Javascript instead of Require, add this to your package.json: “type”: “module”

GIT: Javascript .gitignore Template

By PNC No comments

Gitignore template for JavaScript projects COPY THE  CODE BELOW. # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /dist /tmp /out-tsc # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage # nyc test coverage .nyc_output # Grunt […]

Git Fix: “fatal: refusing to merge unrelated histories”

By PNC No comments

The error “fatal: refusing to merge unrelated histories” occurs when two unrelated projects are merged. To fix the error when pulling or pushing updates to local and remote repositories.  Run the command below: git pull origin your_branch –allow-unrelated-histories

Python – Virtual Environment: Running in MacOs and Windows

By PNC No comments

These are straightforward commands to run Python Virtual Environment. Assuming, we’ve already installed the virtual environment on MacOS or Windows. Take note that, we’ll be naming the virtual environment during setup, the example below which is “env” is the virtual environment name given by the author of this blog. Yours truly, ehem! The Windows command […]

GIT: Git Commands Cheat Sheet

By PNC No comments

Commands Cheat Sheet Creating a new branch. git checkout -b YourBranchName Going to an existing branch. git checkout YourBranchName Deleting a local branch. git branch –delete YourBranchName Deleting a remote branch. git push origin –delete YourBranchName To fetch the latest updates from a branch. git pull origin YourBranch To add the latest changes to branch. […]

FLUTTER – Flutter Doctor: Android sdkmanager tool not found

By PNC No comments

To install Android SDK Command-Line Tools: Open Android Studio At the main window, click More Actions > SDK Manager Go to Appearance & Behavior > System Settings > Android SDK Click the SDK Tools tab Check Android SDK Command-line Tools Click the Apply button.

TLS: Enabling TLS 1.3 support in Apache on Ubuntu

By PNC No comments

Recently,  TLS or Transport Layer Security released its newest version 1.3. For security reason you ran your website into a TLS checker, and if your website is not yet using the latest version or doesn’t support it yet, there are times that it throws a message that you need to update your website TLS version […]

LARAVEL: Updating Autoload and Composer files

By PNC No comments

So! You’ve added a new class or even a new controller.  Added the view link in your route (web.php) or even in your API (api.php). Everything are working, but after deploying the app to your host, the newly created class or controller is missing. This is because the bootstrap or the composer autoload files were […]

LARAVEL: Updating your cached Route

By PNC No comments

So! You added a new route to your web.php file in Laravel but when you tried to visit one of the app link, it throws an Error 404.  You checked the page, view, controller, and it still throws the same error.  Even cleared your browser cache and history, but still nothing. One of the main […]

phpBB: Forcing phpBB Website To Redirect to https

By PNC No comments

Okay! So you’ve managed to install your SSL certificate to your phpBB website.  The issue is, the website doesn’t redirect to https://website.com and keeps on going to http://website.com whenever you type your website URL in the browser search field. So here’s what you need to do. REMINDER: This approach is for phpBB websites only. Steps: […]