Skip to content

Code Ronna

Code samples & Online tools

  • Home
  • Programming
  • Online Tools

Month: February 2023

How to get country code by IP in Node.js with sample codes

2023年2月28日2023年3月2日 Pisuke

How to get country code in Node.js? E.G : ‘US’ , ‘BR’ , ‘JP’ , .. This article explains the way with sample codes. Table of Contents1. Install request-ip module2. Install geoip-lite module3. Get country code by geoip-liteIf only country code… Read moreHow to get country code by IP in Node.js with sample codes

Node.js  country code, IP address  Leave a comment

4 ways to format datetime in JavaScript with sample codes

2023年2月22日2023年2月22日 Pisuke

How to format Date in JavaScript. There are 4 ways to format date time. This article explains those methods with code examples. Table of Contents1. Format by using Date.toISOString()2. Format by template literal3. Format by Date utility methods4. Format by… Read more4 ways to format datetime in JavaScript with sample codes

JavaScript  Date, format  Leave a comment

2 ways of GroupBy on object array in JavaScript with sample codes

2023年2月15日2023年4月2日 Pisuke

How to group object array by a certain key in JavaScript? There are 2 ways for that. This article explains the ways with sample codes. Table of ContentsExample objects to be grouped by1. GroupBy to use Array.reduce()2. GroupBy to use… Read more2 ways of GroupBy on object array in JavaScript with sample codes

JavaScript  Array, Object  Leave a comment

How to partial update JSON column in MySQL with sample codes

2023年2月8日2023年2月8日 Pisuke

How to partial update JSON in MySQL. This article explains how to do so with SQL examples. Table of ContentsWhat’s JSON data type in MySQL?Create table with JSON columnPartial update JSON columnMySQL functions for JSON updatesIncrement partial value within JSONWhat’s… Read moreHow to partial update JSON column in MySQL with sample codes

MySQL  JSON  Leave a comment

How to set Cache-Control header correctly in node.js + express.js

2023年2月2日2023年2月1日 Pisuke

The question you are seeking an answer to : How can I set Cache-Control in Node.js? How can I enable browser caching in Express.js? The key is to properly get and set the following headers. Cache-Control header ETag header Vary… Read moreHow to set Cache-Control header correctly in node.js + express.js

Node.js  Cache, HTTP headers  Leave a comment

Recent posts

  • 3 ways to generate random UUID v4 in Node.js
  • How to use shared memory cache in Node.js with example codes
  • How to parse FormData of request in Node.js + Express with sample codes
  • 3 ways to get Object keys as string in JavaScript
  • 2 ways to get browser language in Node.js with sample codes

Recent comments

  1. Pisuke on Android ProgressDialog alternative example in Kotlin
  2. Beauty Fashion on Android ProgressDialog alternative example in Kotlin
  3. Beauty Fashion on Android ProgressDialog alternative example in Kotlin
  4. Doreatha Janrhett on Display AdMob interstitial before next activity in Kotlin
  5. Hairstyles on Android ProgressDialog alternative example in Kotlin

Archives

  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022

Categories

  • JavaScript
  • Kotlin
  • Math tool
  • MySQL
  • Node.js
  • Online tool
  • Programming
© 2025 All rights reserved
Proudly powered by WordPress | Theme: Simple Life by Nilambar.
Go to top