전체 글
-
Redis에 hash가 계속 누적되고 있음개발/오늘의 실패 2023. 4. 12. 18:04
주기적으로 함수를 자동 실행하는 라이브러리인 cron을 통해 하루동안 서비스를 이용한 유저의 수를 관리하는 중이다. 현재 cron값은 '0 0 * * *' 인데, 이는 곧 매일 자정에 이용 유저 수를 초기화하도록 예약한다는 의미다. 그런데 지금까지 백엔드 서버가 켜져있는 동안 생성된 해시들이 사라지지 않고 계속 누적되고 있는 것이 발견되었다. 서비스를 시작한 시점에서 1년이 지났다면 365개의 쓸모없는 해시가 누적되어있다는 것이다. 이 문제를 발견하고는, 작업이 끝나고 곧바로 해시를 삭제하는 프로퍼티인 'removeOnComplete'를 추가하여 문제를 해결했다.
-
맥북과 아이패드의 사랑 이야기AI tool/텍스트 2023. 3. 20. 12:35
* 본 이야기는 Chat-GPT와 같은 AI tool 을 이용해 생성한 내용임을 알립니다. 맥북은 항상 자신의 일에 전념하는 열심히 일하는 컴퓨터였다. 그는 자신의 주인인 지수에게 필요한 모든 것을 제공해주었다. 문서 작성도, 영상 편집도, 게임도 맡겨만 주면 빠르고 정확하게 처리해주었다. 지수는 맥북을 자신의 가장 중요한 파트너로 여겼다. 하지만 어느 날부터 지수는 맥북보다 다른 누군가에게 관심을 보이기 시작했다. 바로 아이패드였다. 아이패드는 맥북보다 가볍고 편리하며, 터치스크린으로 다양한 기능을 할 수 있었다. 지수는 아이패드를 구입하자마자 자주 사용하기 시작했다. 집에서도, 회사에서도, 카페에서도 아이패드를 들고 다니며 즐거워했다. 맥북은 처음에는 아무렇지 않았다. 자신은 여전히 지수의 최고의 컴..
-
chat-gpt, bing ai를 이용해 소설을 써보자AI tool/텍스트 2023. 3. 19. 17:29
요즘 가장 핫한 기술, chat-gpt를 비롯한 여러 AI tool 들을 가지고 노는데 재미가 들렸다. 하지만 chat-gpt에는 2021년까지의 데이터만을 바탕으로 답변을 해주기에 최신의 정보들에 대한 답변은 엉뚱하게 내놓는 단점이 있다. Microsoft에서는 이를 보완하여 bing 사이트의 '채팅'이라는 서비스에 AI기반 검색 서비스를 제공하는데. 무료인데다 언제든 이용할 수 있기에 최고의 장난감 중 하나이다. 물론 단순한 장난감 이상의 굉장히 혁신적인 의미가 있는 기술이기 때문에, 혹시나 chat-gpt에 대해 잘 모른다면 어떤 분야에 종사하건 알아두거나 사용해보는 것을 추천한다. https://namu.wiki/w/ChatGPT 어쨌든 오늘은 chat-gpt가 아닌 bing을 이용해 소설을 써볼..
-
싱가포르 2주 여행 후 내맘대로 리뷰일기/여행 2023. 1. 22. 16:39
싱가포르 특징 : 1. 일년 내내 더운 나라다.- 온도에 따른 계절은 없지만 음식 제철은 존재한다.- 땀이 많이 나 매일 옷을 갈아입어야하므로 숙소를 정할 때는 반드시 저렴하게 세탁을 할 수 있는 곳이나 근처에 코인 세탁소가 있는 곳으로 정하자. 2. 비가 갑자기 내리고 갑자기 그친다.- 여기에 맞게 발전된 건축 양식이 있다. 어딜 가든 비를 피해서 이동할 수 있게 건물이 지어져 있다.참고 :https://youtu.be/6r6Oj8xoAPU?t=511 3. 거리에 쓰레기통이 굉장히 많다.- 한국은 길거리에 쓰레기통을 거의 없애는 방향인데, 여기는 반대로 엄청 많이 놓는다. 특히 각 상가 건물들 뒤에 각 건물마다 초록 쓰레기통이 줄줄이 놓여있다. 4. 다문화 국가다.- 중국계가 제일 많고, 말레이계가 두..
-
훌륭한 이놈아저씨가 되는 길일기/일상 2022. 12. 26. 20:05
20대 초반, 아르바이트를 할 때의 일이다. 당시 프론트에서 고객을 맞이하는 업무를 했었기에 꽤나 다양한 상황을 마주했었다. 평소 어떤 사람이 와도 긴장하거나 당황하는 일이 거의 없는 나인데, 나를 가장 당황시킨건 의외로 평범한 어느 젊은 엄마와 어린아이였다. 손님이 많아 둘은 줄을 서야만 했는데, 대기하는 동안 아이는 뭔가 불만이 있는지 엄마의 옷자락을 잡아당기며 칭얼댔다. 엄마는 그런 아이에 대해 이골이 났는지 피곤한듯 적당히 달래주며 기다리고 있었다. 마침내 내 앞에 그 둘이 왔을 때, 엄마는 결단이 난 듯 엄한 목소리로 아이에게 일렀다. ‘자꾸 그러면 이놈아저씨가 뭐라한다!’ 이 말에 재밌네, 생각하고 적당한 향수를 찾아 빠지려는 찰나 고개를 들어보니, 그 엄마의 진지한 눈은 나를 향해 말하고 있..
-
Mocking 진행중일기/Tech 2022. 12. 20. 01:52
오늘은 request list 부분을 거의 마무리하고 request detail 부분 작성으로 넘어갔다. 프론트엔드를 하다보니 백엔드에서 올바른 API가 넘어오지 않는 상황을 겪는 경험을 하였고, 그동안 내가 백엔드에서 불량 API 제공을 많이 해왔던 것 같아 미안했다 :( 풀스택을 하니까 공감능력이 상승하네.. 좌우지간 detail 부분은 아직 백단에서 API 개발을 제대로 시작하기 전이라 mocking을 처음 시도해본다. mocking은 서버가 아직 구축되어있지 않을 때, 임시 데이터를 통한 서버처럼 작동하는 것을 만들어 프론트 개발을 원활히 하도록 하는 것이다. 도구는 Postman의 Mock Servers를 이용할 예정. https://way-be-developer.tistory.com/239 이..
-
4.일기/영어 2022. 12. 16. 10:50
Topic : Tokyo residents encouraged to wear turtlenecks amid power crisis fears 이번에는 특히 어려운 단어들이 많았다 ㅠㅠ 내용인즉 여러 요인으로 인해 에너지 공급이 수요를 따라가지 못하고 있는데, 이런 에너지 부담을 줄이기 위해 도쿄도에서는 도민들로 하여금 터틀넥을 입고 난방을 줄이라 하고 있다는 것이다. (일명 '웜 비즈' 캠페인) 이에 대한 여론은 극명하게 갈린다. 어떤 이는 적절한 방안이라 하고, 어떤 이는 개인의 복장까지 제한할 수는 없다 한다. Amid (특히 흥분, 공포심이 느껴지는) 가운데에 ..으로 둘러싸인 Spark 촉발시키다 Craze (특히 최신의) 대유행 Avert 방지하다, 피하다 ~로부터 눈을 돌리다, 외면하다 Off..