• FastAPI python server memory leak cause

    |

    I am using a Python FastAPI server. After only a few uses, it runs out of memory, causing the free-tier server to hang. To fundamentally solve the problem, I decided to go back and resolve it step by step. 1. FastAPI debug tool I tried to install a debugging tool and perform memory profiling, but […]

    Read More

  • Avoid buying the MacBook Pro in Space Black.

    맥북프로 스페이스 블랙 색상을 사면 안된다. 그 이유는 기스가 나면 그 안쪽에 드러나는 색상은 블랙이 아니라 하얀 색이기 때문이다. You shouldn’t buy the MacBook Pro in Space Black. The reason is that if it gets scratched, the color revealed underneath is not black but white. 금속 전체가 같은 색상일 것 같았던 과거와는 달리 스페이스 블랙은 […]

    Read More

  • Lightsail WordPress Multi-site blog, reasons for low quality in AdSense

    |

    This blog is operated as a multi-site via AWS Lightsail directly using WordPress. Different domains are used according to the characteristics of each site or blog. Delete unused subdomains from the Lightsail Domain Service DNS. For the branding of the site or blog, you need to decide on a name. It takes several revisions to […]

    Read More

  • Lightsail WordPress Multi-site 블로그 ADSence 저품질 원인

    |

    이 블로그는 wordpress 를 직접 AWS Lightsail을 통해서 multi-site로 운영하고 있다. 사이트나 블로그의 특성에 따라 다른 도메인을 붙여서 사용하고 있다. 쓰지 않는 서브도메인은 Lightsail Domain service dns 에서 지워라 사이트나 블로그 브랜딩을 위해서 이름을 정해야 한다. 몇번의 수정을 거쳐서 완성하게 되는데, 구글의 search crawling 에 수정전의 주소로 크롤링이 되어버린다면 또 그것이 지워질 때까지 상당시간이 끌릴 […]

    Read More

  • Promise(resolve, reject) on Flutter

    |

    When we use async function, we want to trigger resolve without calculation cost.That is why we do not use computed waiting like sleep.In Node.js, we usually use Promise(resolve, reject). In these days, I use flutter. and I develop my own throttle and debounce.For these async controller needs async management. At the first I choose whiled […]

    Read More

  • Python FastAPI debug-tool-bar

    |

    When using FastAPI, using the debug tool bar makes it easier to fix bugs as it provides various tools. if you want to see swagger document go to following url path as /docs and /redoc if you go to /docs page, you can see followings. Look at the right side. Unlike Django, FastAPI debug toolbar […]

    Read More

  • Regression Models – AI ML

    |

    ,

    Scikit-learn offers a variety of regression models used for different data analysis and prediction tasks. Here’s a brief overview of the most commonly used regression models and their applications: Each model should be chosen based on the specific conditions and characteristics of the data. Scikit-learn’s library supports these diverse models, making it a popular choice […]

    Read More

  • 한투 API 이용한도 20240509

    |

    한투의 이용한도를 찾아보는 것이 생각보다 어려웠다. 몇일만에 찾은 내용을 공유한다. REST API (실전투자) 1초당 20건 (모의투자) 1초당 2건 WEBSOCKET : 1세션 ※ 계좌(앱키) 단위로 유량 제한(1개의 계좌(앱키)당 1서션) 초과 ㅂ유량에 대한 과금 정책 혹은 유량 확대는 현재로서 는 구체적인 계획이 없습니다. 추가 유량이 필요하신 경우 유량 제한은 계좌(앱키) 단위 로 이뤄지기에가지고 계신 다른 계좌 API […]

    Read More

  • Meaning of Python Working Directory

    |

    Difference between IDE Settings and CLI Execution for Python Projects When running Python projects in an IDE like IDEA, options like: make worries about module imports disappear. There’s also a setting for the working directory, making things work smoothly even with rough configurations. However, for actual service deployment, it often needs to be executed via […]

    Read More

  • Installing Kubernetes on AWS EC2

    |

    #1. Why install Kubernetes on AWS EC2? 돈It would be great to save money by filling up EC2 with docker containers and running them efficiently. Even better if using efficient cores like Graviton 2~3! #2. Let’s installing Kubernetes To avoid the hassle of installation, I chose the Ubuntu OS and simply pasted commands to install […]

    Read More