All
Research
Engineering
Graphics
Gaming
Case Studies
Distributed Systems
Game Development
Search...

Featured Articles

nextjs
Dec 24

Next.js (Pages Router) and Contentlayer Setup

# Building a Scalable MDX Blog with Next.js and Contentlayer As engineering leads, one of our recurring challenges is balancing scalability, readability, and extensibility when building content-heavy frontend applications. A lightweight, composable blog system using **Next.js (Pages Router)** and **Contentlayer** checks all the right boxes—type safety, statically generated performance, and full MDX control. In this post, you'll set up a production-grade foundation for a statically rendered blog using **Contentlayer** and **Next.js**, with an emphasis on correctness, long-term maintainability, and modern DX. --- ## Project Structure Here’s the
nextjs
Dec 24

Next.js (Pages Router) and Contentlayer Setup

In this blog we will look how to setup Next.js and Contentlayer for an Blog page. Step one Install necessary deps ```bash npm install \ contentlayer next-contentlayer \ shiki rehype-shiki rehype-pretty-code \ rehype-autolink-headings rehype-slug rehype-rewrite rehype-stringify \ remark-gfm unified \ date-fns reading-time ``` create contentlayer.config.ts file add contentlayer.config.ts in your root of the project and you have to create your blog files in this folder folder strcture of the necessary files and folders ```bash /public /content /blog /markdown-syntax-guide index.mdx contentlayer.config.ts tsconfig.json nextjs.config.ts ``` ```ts
powershell
May 23

Configuring PowerShell (shell prompt)

In Windows PowerShell, customizing your shell prompt can enhance your development environment by providing valuable information at a glance. This guide walks you through configuring Windows PowerShell to display a customized prompt with the username, date, and current folder name. ## Checking for Existing Profile **STEP 1**: Before proceeding, check if you have an existing profile set up in PowerShell: ```powershell test-path $profile ``` **STEP 2**: If the result is false, create a new profile: ```powershell new-item -path $profile -itemtype file -force ``` **STEP 3**: Now, open the profile in Notepad: ```powershell notepad $profile ``` **ST

Latest Articles.

Regression-Analysis
Apr 23

Curve fitting for charts in Analytics

Linear regression is just a special case of polynomial regression where the order is 1. You can drag the slider above to see how different polynomial orders affect the fitting curve. When the order is N, the polynomial function will have a degree of N, and the curve will have N-1 turning points (so 1 is a straight line). The Mean Squared Error (MSE) value (Σ(value - predictedValue)^2 / dataNum) measures the "goodness" of the fit of the curve to the data. The smaller the error is, the better the curve describes the given data. Usually, the easy solution would be manually choosing a reasonable order and hardcoding it in our visualization. That’
Literature
Dec 24

The Art of Articulation

Articulation, often perceived as merely the clarity of speech, transcends its linguistic roots to touch upon every facet of human expression. Whether sharing knowledge, presenting ideas, performing on stage, or simply engaging in a conversation, the way we articulate can significantly shape how our message is received and understood. This subtle yet powerful skill bridges the gap between thought and understanding, transforming communication into an impactful force. It is an indispensable element across professional, artistic, and personal domains, offering clarity, connection, and influence. ### The Power of Articulation in Knowledge Sharing
powershell
Nov 22

Configuring PowerShell (shell prompt)

In Windows PowerShell, customizing your shell prompt can enhance your development environment by providing valuable information at a glance. This guide walks you through configuring Windows PowerShell to display a customized prompt with the username, date, and current folder name. ## Checking for Existing Profile ### STEP 1: Check for an Existing Profile Run the following command to check if you have an existing profile set up in PowerShell: ```powershell test-path $profile ``` ### STEP 2: Create a New Profile (if needed) If the result is `false`, create a new profile: ```powershell new-item -path $profile -itemtype file -force ``` ### STEP 3
Code-Block-HTML
Dec 01

Custom Content Code Block Using HTML CSS JS

Code blocks are an integral part of developer-facing content, enabling clear and organized presentation of code. In this guide, we will walk through creating custom, aesthetically pleasing code blocks with both single-tab and multi-tab functionality using modern web technologies. This guide is targeted at developers with a working knowledge of HTML, CSS, and JavaScript. ### Why Custom Code Blocks? While libraries like Prism.js and Highlight.js provide excellent syntax highlighting, creating a custom code block allows for: - **Complete Control**: Tailor the design and functionality to your needs. - **Seamless Integration**: Align the blocks wi
Code-Block-NextJs
Dec 24

Custom Content Code Block

If you’ve ever scrolled through a well-documented developer blog or API guide, you know the joy of stumbling upon beautifully styled code blocks. They’re not just a feast for the eyes but also a crucial part of any developer-facing content, ensuring clarity and engagement. In this article, we’ll build custom, sleek code blocks with single-tab and multi-tab functionality using modern web technologies. And yes, there’s a pinch of humor sprinkled along the way—because debugging CSS deserves some levity. ```py print("Inside Custom Code Block!") ``` ### Why Bother With Custom Code Blocks? You might wonder, "Why reinvent the wheel when tools like P
markdown
Apr 22

Markdown Syntax Guide

Markdown is a lightweight markup language that allows you to format text in a plain-text editor while still having a structured and readable output. It is often used for writing documentation, readme files, blog posts, and other content where readability and simplicity are important. Markdown syntax is simple and intuitive, making it an ideal choice for writing and formatting text without the need for complex HTML tags. Its flexibility and ease of use make it a popular tool among developers, writers, and content creators alike. By using basic symbols and characters, you can structure documents that are both human-readable and machine-readable