Blog category
Technology
-
Coalesced Memory Access in CUDA for High-Performance Computing
When developing CUDA applications, efficient memory usage is crucial to unlocking the full potential of your GPU. Among the many optimization strategies, coalesced memory access…
Read more -
Accelerating Data Processing with Grid Stride Loops in CUDA
As the demand for processing large datasets increases, achieving high performance becomes critical. GPUs excel at parallel computation, and CUDA provides developers with the…
Read more -
Accelerating Python with Numba - Introduction to GPU Programming
Python has established itself as a favorite among developers due to its simplicity and robust libraries for scientific computing. However, computationally intensive tasks often…
Read more -
MapReduce - A Simplified Approach to Big Data Processing
In the era of big data, processing and generating large datasets across distributed systems can be challenging. Enter MapReduce, a programming model that simplifies distributed…
Read more -
Balancing Cybersecurity and User Experience - A Practical Guide for Businesses
In today's digital landscape, businesses are increasingly aware of the critical importance of cybersecurity. Protecting customer data, ensuring compliance, and managing…
Read more -
The Role of Cybersecurity in Digital Transformation - Building, Buying, and Balancing Value vs. Cost
As organizations accelerate their digital transformation journeys, cybersecurity has moved from a supporting role to a critical pillar of success. Digital transformation…
Read more -
Migrating my blog from Gatsby to Astro
In the ever-evolving world of web development, selecting the right tools for your project is crucial. My journey began with Gatsby, a popular static site generator, but as my…
Read more -
The Importance of Data Privacy
In an era where the digital landscape is evolving at an unprecedented pace, businesses must continually adapt to maintain a competitive edge. One critical aspect of this…
Read more -
Running npm install on a Server with 1GB Memory using Swap
Running npm install on a server with only 1GB of memory can be challenging due to limited RAM. However, by enabling swap space, you can extend the virtual memory and ensure…
Read more -
Embracing Digital Twins Technology - Key Considerations, Challenges, and Critical Enablers
Digital Twins technology has emerged as a transformative force in various industries, providing a virtual representation of physical systems that uses real-time data to simulate…
Read more -
Memory Management and Concurrency in Go
Go, developed by Google, is known for its efficiency and simplicity in handling memory management and concurrency. In this blog post, we'll explore how Go manages memory, how…
Read more -
The Future of Personal Tech
In the ever-evolving world of technology, two new contenders, the Rabbit R1 and the Humane AI Pin, are making waves by attempting to carve out a new product category entirely.…
Read more -
Unlocking the Power of GIN Indexes in PostgreSQL
When it comes to database optimization, indexes are your best friend. They help speed up data retrieval operations, making your database queries lightning-fast. In this blog…
Read more -
Neo4j and the Power of Graph Databases in Data Science
Graph databases have become an essential tool in the data science toolbox, and Neo4j is at the forefront of this revolution. In this blog post, we'll explore how Neo4j leverages…
Read more -
Enhancing Digital Security with Certification Pinning
In an era where digital security is paramount, one technique stands out for its ability to fortify the defenses of online communications against man-in-the-middle (MITM) attacks…
Read more -
An Introduction to Border Gateway Protocol (BGP)
The digital age is characterized by an ever-growing web of interconnected networks, forming the vast expanse of the internet. At the heart of this complex network lies a crucial…
Read more -
Understanding Generic Routing Encapsulation (GRE)
In the ever-evolving landscape of network technology, the need for versatile and efficient tunneling protocols is paramount. Among these, Generic Routing Encapsulation (GRE)…
Read more -
Understanding IPsec and MACsec - Securing Network Communication
In the ever-evolving landscape of network security, two significant protocols stand out for their robustness and widespread implementation: IPsec and MACsec. Both are vital in…
Read more -
Understanding Equal-cost Multi-path Routing (ECMP)
In the dynamic world of network management, ensuring data packets travel efficiently and reliably from source to destination is paramount. Equal-cost multi-path (ECMP) routing…
Read more -
My journey to discover the Youtube algorithm
Last year during the Christmas holiday, I was bored at home and did some research about content creation. I am curious of unlocking the secret algorithm on YouTube to driving…
Read more -
Ionic Framework - An Open-Source SDK for Hybrid Mobile App Development
Last week, I was building a prototype using ionic framework. In a digital age marked by a growing demand for versatile mobile applications, developers seek technologies that…
Read more -
ChromeOS Flex for PC - A Second Life for Your Old Hardware
Once resigned to gathering dust or joining the landfill, your old PCs and Macs have now been given a second lease on life. Meet ChromeOS Flex, Google's innovative operating…
Read more -
Networking Subnets and Calculating Number of IP Addresses
In the vast landscape of computer networking, understanding subnets and calculating the number of available IP addresses can often feel like navigating a complex maze. However…
Read more -
Best Practices for Optimal Results in Software Performance Testing
In the fast-paced world of software development, ensuring that your application performs flawlessly under varying workloads and conditions is crucial. This is where performance…
Read more -
PostgreSQL vs. Oracle Database - Why Open Source Prevails
In the world of databases, the choice between proprietary and open source software can significantly impact a company's productivity, innovation, and financial bottom line.…
Read more -
Demystifying OpenID Connect (OIDC) - The Key to Secure and Seamless Authentication
In today's interconnected world, where digital identities are crucial for accessing various online services and applications, ensuring a robust and secure authentication…
Read more -
Explaining JSON Web Tokens (JWT) - A Secure and Versatile Authentication Mechanism
In the rapidly evolving world of web development, the need for robust and secure authentication mechanisms has become paramount. JSON Web Tokens (JWT) have emerged as a popular…
Read more -
Demystifying SSL Certificates - Understanding .pem, .crt, .p12, and .key Files
In today's digital world, ensuring the security and integrity of online communications is of paramount importance. One of the key technologies that guarantee secure connections…
Read more -
Enhancing Security with Mutual Transport Layer Security (mTLS)
In the realm of network security, the importance of secure communication protocols cannot be overstated. Transport Layer Security (TLS) has long been a cornerstone for securing…
Read more -
Unleashing Productivity with Vim - A Powerful Text Editor for All
In the world of text editors, few have garnered as much devotion and admiration as Vim. Vim, short for "Vi Improved," is a versatile and highly customizable text editor renowned…
Read more -
Striking a Balance -The Pitfalls of Excessive Security in Software Development
I am currently in a project, trying to deploy software solution in the environment with too much security. It is a pretty painful experience. In today's digital age, security is…
Read more -
Maximizing Efficiency and Performance with Database Pooling
In today's data-driven world, efficient management of databases is crucial for maintaining the performance and scalability of applications. One technique that has gained…
Read more -
Content Delivery Networks (CDN) - Accelerating Web Performance
In today's digital era, where speed and efficiency are paramount, delivering content swiftly and seamlessly to users across the globe has become a crucial aspect of online…
Read more -
Enhancing Software Security with DevSecOps
In today's digital landscape, the need for robust and secure software development practices is more critical than ever. DevSecOps, a fusion of development, security, and…
Read more -
Gatsby Frontend - Blending Performance, Efficiency, and User Experience
My blog is build with gatsby frontend framework. In today's fast-paced digital landscape, delivering high-performance websites with exceptional user experiences has become a top…
Read more -
Next.js - The React Framework for Building Modern Web Applications
I participated in a hackathon over the weekend where I used Next.js and found it incredibly useful. In the ever-evolving landscape of web development, staying ahead of the curve…
Read more -
Checklist for Software Upgrades in Production Environments
Software upgrades are an essential part of maintaining up-to-date and bug-free production environments. However, executing an upgrade can be a complex and challenging task that…
Read more -
Setting Up Python with Pyenv
Setting up Python on your local machine can be challenging, especially when you need to manage multiple Python versions. Pyenv comes in handy when you need to reproduce an issue…
Read more -
Making API call from Google Sheet
Imagine you are a business user and your favourite tool of all time is Excel. You are not technical enough to do coding, but you are comfortable writing functions, calculating…
Read more -
Working with Localization on Websites and Mobile Apps in APAC
First and foremost, why does this blog post exist? What question are we trying to answer? A colleague of mine in the UK specifically asked me about localization, tools, and best…
Read more -
How to Download a View-Only Shared Google Drive Video
Last week, I received a Google Drive video that was shared with me in "View-Only" mode. When I tried to further share this video with my team, they encountered "Access Denied"…
Read more -
Setting Up Auto-Formatting for Python in Visual Studio Code
I was writing Python code and encountered issues with formatting. These formatting problems can complicate code reviews and the use of automated tools to detect such issues.…
Read more -
How to Install Ubuntu on an External Drive Using macOS
If you're using Mac hardware but also want to run Ubuntu, you can install Ubuntu on an external hard drive without risking the removal of your macOS installation. Here's how to…
Read more -
Writing Your Android App to Run in Background Mode as a Service
In some scenarios, you might face an issue where your app's functionality is lost after several minutes when users place it in background mode or lock their screens. This can…
Read more -
Caveats with Android In-App Browsers
When you're developing a web application, you need to take browser compatibility issues into account. I encountered a problem with an Android in-app browser that wasn't tested…
Read more -
Explaining the Angular Error: 'Expression Changed After It Has Been Checked'
One of my colleagues encountered an error message while developing an Angular frontend application. The error message read:
Read more -
Writing Unit Test Cases with Karma for Angular Components
I'd like to make the case for writing unit tests for your Angular web app. Accelerating time to production is not a valid excuse for accumulating technical debt. Here are some…
Read more -
Set Up a Django Server with Apache Virtual Host and Python Virtual Environment
It took me some time to get everything working together, so I'd like to document the steps to save you time in the future.
Read more -
Stop Downloading Apps for Everything
Apps are becoming increasingly irrelevant. There's no need to download ineffective software when browsers can serve as adequate substitutes. The primary benefit of using apps is…
Read more -
Install Ubuntu 20.04 LTS on MacBook Pro 14,1
Ubuntu 20.04 has just been released, and I couldn't wait to try it out and install it on my MacBook Pro 14.1 model. In this post, I will detail what works, what doesn't, and how…
Read more -
Handling Browser Close Events with JavaScript
In certain scenarios, you may not want users to close their browser and exit the session. For instance, if a user is in the middle of filling out a form without saving, or in…
Read more -
Fix WordPress Plugin Installation Permission Issue
When attempting to install a plugin in WordPress, I encountered the following error:
Read more -
Fix WordPress with All Pages Returning 404 Not Found
I encountered a strange issue with WordPress: while the homepage loaded properly, all the other pages failed to do so. Instead, an error page displayed the message:
Read more -
Reading Large Files Using Node.js
I recently faced the task of analyzing a massive dataset consisting of log files. When I attempted to open the file in Excel, my laptop simply froze. Given the limitations of…
Read more -
Removing .DS_Store Files from Git Repositories
If you are a Mac user who also uses Git, you might accidentally commit a .DSStore file. This could confuse your Windows colleagues, who may wonder what these files do and why…
Read more -
Ignoring Already Modified Files in Git
I've encountered a rare scenario where a file has been modified, but I don't want to commit this change to Git. There are various methods to achieve this, such as using a…
Read more -
Find and Kill Processes Locking Specific Ports on a Mac
Problem: Sometimes, when you start a local Node.js server, it may continue running in the background. If you try to start the server again, you may encounter an error indicating…
Read more -
Registering Sling Servlets in Adobe Experience Manager
In Adobe Experience Manager (AEM), a Sling servlet can be utilized to handle certain RESTful request-response AJAX calls. Written in the Java programming language, these…
Read more -
Debugging PHP Code in the Browser
In JavaScript, you can use console.log('whatever') for troubleshooting directly in your browser. However, when working with PHP, a little trick is required to accomplish the…
Read more -
Installing Ubuntu 19.10 on a MacBook Pro 13,1
I became frustrated with macOS Catalina and decided to switch to Ubuntu as the primary operating system on my 13-inch MacBook Pro without a touch bar. As a software developer, I…
Read more -
Setting Up MongoDB with Koa.js
I'm building a Koa.js server and need to connect it to MongoDB to store and retrieve data. Here's how to accomplish this in a few simple steps:
Read more -
Migrating Your Blog from Medium to Ghost 3.0
Ghost 3.0 has just been released (https://ghost.org/3/). I have a strong preference for Ghost over WordPress because it uses Node.js instead of PHP. Not only is Ghost…
Read more -
Setting Up npm Proxy in a Corporate Network
Working behind a corporate network can be challenging, as many things do not work "out of the box." A simple command like npm install might not function properly. Here's how to…
Read more -
Retrieving Real-Time Data from the Web to Excel
An undergraduate student recently asked me how to import real-time data from a website into Excel for a homework assignment. Many sources for financial data charge fees, so I…
Read more -
Replace Text in XML Files with PowerShell
Yesterday, I was working at a client site that has a Windows server isolated from the external network. Installing any third-party software on the machine is not permitted.
Read more -
Replace Text in a File Using a Batch Script
Yesterday, I was working at a client site. The site had a Windows server that was isolated from external internet access, and installing new software was prohibited.
Read more -
How to Debug iOS Traffic on an iPhone Device
I'm responsible for production support for an iOS mobile app, and one of the challenges is debugging HTTPS traffic between the iPhone and our server.
Read more -
Internet Border Gateway Protocol (BGP)
This article explores the Internet Border Gateway Protocol (BGP), a standardized exterior gateway protocol designed for exchanging routing and reachability information among…
Read more -
Lessons Learned from an IoT Project
Last year, I worked on an Internet of Things (IoT) project focused on a Bluetooth smart gadget. The experience differed significantly from pure software development in several…
Read more -
How to Fix iOS 10 Permission Crash Errors
I've been developing an app that requires access to the user's microphone.
Read more -
Installing Jupyter Notebook on macOS
I'm using the Anaconda distribution to install Jupyter Notebook.
Read more -
Apple Push Notification with Java Spring Framework
I'm implementing a Java Spring Framework server that sends Apple Push Notifications to an iPhone using Swift. Here are the things you will need:
Read more -
Submitting a Unity 3D Game to the Mac App Store
After three months of weekend development, our Unity 3D game is ready to be released and deployed to the App Store. However, the process was far from straightforward. I spent an…
Read more -
Resolving Merge Conflicts for the Unity Game Engine
I'm working with a team of four on a Unity 3D game project over the weekends. It's a lot of fun, but we've encountered problems with version control. Using Git and GitHub, we've…
Read more -
Trivial Facts About JavaScript Date
The integer value representing the month in JavaScript begins with 0 for January and goes up to 11 for December. For example:
Read more -
What I Learned from Building Large-Scale Applications for Overseas Clients
The IT industry in China is rapidly growing. Over the last year in Hong Kong, I've had the privilege of working on an exciting project that has become a significant milestone in…
Read more -
How to Use Webpack with React and Bootstrap
Today, I was setting up a project using Webpack, React, and Bootstrap without jQuery. What seemed like a straightforward task ended up taking more time than expected, so I've…
Read more -
Understanding Optionals and Exclamation Marks in Swift
Swift is a strongly-typed language, meaning all variables must have a defined type.
Read more -
Connection between .h and .m files in Objective-C
When you first open an Objective-C project in Xcode, the .h and .m files may look confusing. It's important to understand the simple connections and the hidden code behind the…
Read more -
Install MongoDB on Mac OS X
First, install Homebrew, which is the missing package management tool for OS X:
Read more -
Enable Automatic Login for OS X El Capitan
I just performed a fresh install of OS X El Capitan. I attempted to enable automatic login, but it remained locked. This was frustrating.
Read more -
Ember Inject Controller
After updating my Ember project to version 1.13.5, I received the following warning in the browser console:
Read more -
Batch Crop Images using ImageMagick
Today, one of the tasks I performed involved batch cropping numerous pictures. I found ImageMagick to be very useful for scaling and cropping images. Mogrify, a command within…
Read more -
Switching from Sublime Text to Atom
The Atom text editor has just released its 1.0 version. There are plenty of reasons to switch from Sublime Text. Maybe you love the concept of open source, or perhaps you're a…
Read more -
How to Upgrade Your Ghost Blog via Command Line
First, change the directory to the path where your Ghost blog is installed. For example, in my case, it's located at:
Read more -
SSH: How to Fix the 'Unprotected Private Key' Error
When I downloaded the .pem file to SSH into my AWS instance, I encountered the following error:
Read more -
How to Fix Ruby Gems Permission Error on Mac OS X Yosemite
While trying to install a gem on Mac OS X Yosemite, I encountered the following error:
Read more -
Java: Variables are Always Passed by Copy
I am learning Java. One important concept to understand is whether function arguments are passed by copy or by reference.
Read more -
3 Reasons to Love React
Recorded at the Hong Kong JavaScript and Node.js meetup on March 3, 2015:
Read more -
Common npm Permission Issues
If you are using a Mac and have installed Node.js via a pkg file downloaded from the official website, you are likely to encounter the following error message when you try to…
Read more -
Sublime Text 3: Using the OS X Command Line
Sublime Text 3 includes a command line tool, subl. Unfortunately, this tool doesn't work right out of the box after you've installed the editor on OS X Yosemite.
Read more -
12 Things You Need To Know About ECMAScript 6
ECMAScript 6 is the next version of the JavaScript standard.\
Read more -
My Review of Hack Reactor Remote Beta
I enrolled in the Hack Reactor Remote Beta as part of the second cohort in Hong Kong to improve my technical skills in JavaScript.
Read more -
AngularUI Handling Mouseover Events for Google Maps Markers
It took me a while to figure this out, so I thought the issue deserved its own blog post. I found myself confused when trying to hook up mouseover events with Google Map markers…
Read more -
Angular.js Factory Handling $http Asynchronously
When I was using the $http service to get data from a remote API, the code snippet below was unable to return data back to the controller.
Read more -
Setting Up a Proxy Server with Express
I am working on a project that uses BreweryDB. While trying to load some data from the API, I encountered a problem: the API doesn't support JSONP. This leads to a CORS issue…
Read more -
Angular UI Bootstrap Opening the First Accordion with ng-repeat
I was using the accordion directive in Angular UI Bootstrap version 0.1.2. On the demo page, there's an example showing how to open the first accordion group by default:
Read more -
Note on Ionic Framework: Android Platform in OS X
In this blog post, we will walk through several error messages that you might encounter when installing dependencies for the Android platform of the Ionic framework on Mac OS X.…
Read more -
How to Upload Files with Meteor.js?
NOTE: This tutorial uses Meteor 1.1.3 with cfs:standard-package 0.0.2 as of December 15, 2014. Since this feature is under active development, it may have changed by the time…
Read more -
Q&A with General Assembly Hong Kong
I was invited by General Assembly (GA) Hong Kong to talk about my experience in the Web Development Immersive (WDI) course.
Read more -
Does Hack Reactor Make You Smarter?
Every morning, I wake up at 12 a.m. My alarm clock helps me start my day with the goal of becoming a software engineer. As a remote student in Hong Kong, I'm 16 hours ahead of…
Read more -
Testing with Mocha Array Comparison
While writing a Mocha test suite for array comparison, I encountered an issue. Here is the test suite:
Read more -
How to Customize Sublime Text's Default Auto-Complete
I use Sublime Text 3 every day, and I particularly appreciate its JavaScript auto-complete feature.
Read more -
Build an Awesome Chat App in 5 Minutes with Meteor
In this tutorial, I'm going to show you how to write a simple chat application using MeteorJS.
Read more