coding

What helps me with end-of-day reporting

What helps me with end-of-day reporting

Ever feel like your day ends and you can’t quite remember what you actually accomplished? Or do you get so absorbed in a task that you forget your original goal? That used to be me too. Staying focused and keeping track of my progress felt like a constant challenge. So, I built something to help: a simple web extension to keep me on track. Here’s how it works: When I start working, I set my focus by writing down the task I want to accomplish. If I switch tasks, I log and update my focus. If I lose track, I…
Read More
Help : Print Buffer ECSPOS With React Native

Help : Print Buffer ECSPOS With React Native

I use React Native to listen for thermal printing request via LAN IP, then I get the Buffer data. But I don't know how to decode it into text to send to Bluetooth Xprinter. Has anyone ever dealt with this case? {"data": [0, 27, 88, 0, 27, 97, 1, 29, 118, 48, 0, 47, 0, 129, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
Read More
Your startup’s digital foundation: A comprehensive web development Q&A

Your startup’s digital foundation: A comprehensive web development Q&A

This Q&A session highlights the critical considerations for startups venturing into web development, emphasizing strategies to optimize resources, enhance user experience, and build scalable solutions. Why should startups prioritize web development early? Web development lays the foundation for a startup’s online presence, shaping user perceptions and driving engagement. Early investment ensures a robust digital infrastructure, streamlines user acquisition, and establishes credibility with customers and investors. What challenges do startups face in creating and maintaining websites? Startups often struggle with limited budgets, technical expertise, and time constraints. Balancing design, functionality, and scalability while staying user-focused can be challenging. Additionally, securing the…
Read More
The Mars Rover Challenge in Rust: Houston, Do You Copy?

The Mars Rover Challenge in Rust: Houston, Do You Copy?

Our rover navigation system is ready for its maiden voyage, but first, it needs to know where to go! The mission parameters have provided specific test scenarios to validate our implementation. My rover needs to interpret these commands: 5 5 1 2 N LMLMLMLMM 3 3 E MMRMMRMRRM Enter fullscreen mode Exit fullscreen mode And respond with precise positional data: 1 3 N 5 1 E Enter fullscreen mode Exit fullscreen mode Establishing Communication: Receiving User Input My first challenge was creating a communication channel with Mission Control. I turned to Rust's powerful std::io module to establish this vital link:…
Read More
Today’s Progress: Implementing APIFeatures

Today’s Progress: Implementing APIFeatures

Introduction Today, I focused on implementing APIFeatures in my band's website. This functionality includes filtering, sorting, pagination, field limiting, and aliasing. I gained these skills from a Udemy course and applied them step by step to enhance my project. Creating Sample Data To start, I created a variety of products in my merchController. These included a Din hat, shirt, sweatshirt, CD, and vinyl. Each item had unique attributes such as different quantities and prices. This allowed me to test each feature against a realistic dataset and ensure my implementation worked as intended. Step-by-Step Implementation Initially, I built all the features…
Read More
Setup Eslint Prettier in a TypeScript project with mongoose ODM

Setup Eslint Prettier in a TypeScript project with mongoose ODM

#Step 1 : Initialize the project mkdir my-project cd my-project npm init -y Enter fullscreen mode Exit fullscreen mode #Step 2 : Install necessary packages npm install express mongoose cors dotenv --save npm install typescript @types/node @types/express --save-dev npm install -D nodemon ts-node-dev eslint @eslint/js @typescript-eslint/parser @typescript-eslint/eslint-plugin prettier Enter fullscreen mode Exit fullscreen mode #Step 3 : Create a folder structure `my-project │ .env │ .gitignore │ eslint.config.mjs │ tsconfig.json ├───dist ├───src │ │ app.ts │ │ server.ts ├───app | | │ └───config │ index.ts` Enter fullscreen mode Exit fullscreen mode #Step 4 : Initialize typescript tsc --init Enter fullscreen…
Read More
Globally Replicated Services for the Rest of Us

Globally Replicated Services for the Rest of Us

After reading endless serverless horror stories, you decided to deploy your application on the internet's current darling, Hetzner. But now, your server is stuck in one location while your users are spread all over the world, suffering from terrible latency. What do you do? Let me introduce you to geolocation DNS-based routing! The Problem: Global Latency When hosting applications in a single region, users from other parts of the world experience higher latency. For example, if your server is in Germany, users from Australia might experience delays of 300ms or more. This latency can significantly impact user experience, especially for…
Read More
Communication Protocols in IoT: The Unsung Heroes of Our Connected World

Communication Protocols in IoT: The Unsung Heroes of Our Connected World

Introduction The Internet of Things (IoT) has really shaken up how we engage with our surroundings. From fridges that suggest recipes to cities that keep tabs on traffic in real-time, the transformation is undeniable. But have you ever paused to think about how these gadgets communicate with each other? That's where communication protocols come into play. These are the behind-the-scenes champions ensuring your smart thermostat, fitness tracker, and voice assistant work seamlessly without crashing into a digital meltdown. Why Are Communication Protocols Essential in IoT? Picture hosting a dinner party where each guest speaks a different language. Without a translator,…
Read More
True Alphanumeric / natural sorting in MySQL – why is the answer always recursion?

True Alphanumeric / natural sorting in MySQL – why is the answer always recursion?

Yesterday I attempted to solve alphanumeric sorting in MySQL and failed. (read that article here) I did get close though and had the right concept, just wrong execution. Today, I woke up and had an epiphany...recursion. The problem with recursion is that you have to understand recursion to be able to do recursion...and I don't understand recursion enough to do recursion in MySQL. However with a bit of Chat Gippity back and forth (by which I mean getting it to write what I asked for, getting back about 25% of what I asked for, fixing it and feeding it into…
Read More
장애인기능경진대회 도전기 – 꿈의 시작부터 준비 과정까지

장애인기능경진대회 도전기 – 꿈의 시작부터 준비 과정까지

선배의 도전에서 시작된 꿈 중학교 시절에 만난 한 선배의 도전이 내 미래의 방향을 바꿔놓았다. '컴퓨터 수리' 종목에 참가하며 열심히 준비하는 선배의 모습은 내게 큰 영감이 되었다. 지방대회에서 1위를 차지했지만 전국 대회에서 이론 문제로 고배를 마신 선배. 그런데도 그 도전 자체가 내게는 큰 동경이 되었다. '나도 언젠가는 저렇게 도전해보고 싶다'는 생각이 자연스럽게 들었고, 특히 '컴퓨터프로그래밍' 종목에 도전하고 싶다는 구체적인 목표가 생겼다. 본격적인 준비와 도전 고등학교에서는 구체적인 준비 방법을 몰라 학교 수업에만 충실했지만, 대학교에 와서 본격적으로 프로그래밍의 세계에 뛰어들었다. WinForms를 처음 배우면서 새로운 도전이 시작되었다. 교재로 기본적인 내용을 학습했지만, 실제 응용에서는 여러 난관에 부딪혔다. 특히 데이터베이스 연동 부분이 큰 과제였다. MS Access를…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.