2coffee.dev

Daily short news for you

Xuân Hoài Tống
Xuân Hoài Tống11 hours ago

🤤🤤🤤

banner
Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống1 day ago

I don't know which coffee blog the references are from, but for the past few days, I've seen many people searching for coffee 🤔.

They are looking for both brewing methods and types of beans, but unfortunately, they can't find any articles because I haven't written about those cases. Could it be fate? 😀🙏

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống1 day ago

Nhiều lần cũng đắn đo suy nghĩ về cái tên miền này lắm chứ bộ, chả hiểu sao lại 2coffee xong viết về lập trình 🫣

Xuân Hoài Tống
Xuân Hoài Tống1 day ago

À cũng có giải thích về cái tên rồi á chứ, cơ mà ấn tượng ban đầu thì cũng không thể liên tưởng ra được nội dung nói về lập trình phải không!?

Khanh Nam Do
Khanh Nam Do1 day ago

anh cũng không hiểu sao lại lạc vào blog của em, nhưng từ đó thì tên miền của blog này luôn nằm trên 1 tab của trình duyệt & không bao giờ đóng luôn :))

Xuân Hoài Tống
Xuân Hoài Tống23 hours ago

Hic, a là kẻ ẩn danh hôm bữa đấy á, sao a lạc được vào đây vậy ạ? A nghiện cà phê đúng không 🤣

Khanh Nam Do
Khanh Nam Do21 hours ago

Đúng rồi em, anh là ông nặc danh hôm trước đây! Anh nhớ ra đc tại sao lại lạc vào blog của em rồi, là do có lần tìm về Event Loop chứ ko phải tìm cafe :)))

Cùng dân IT & là fan của blog của em, đừng bảo tại sao ko thấy anh subscribe nhé, vì anh mở blog của em còn nhiều & nhanh hơn là đợi hệ thống gửi thông báo cho á 🤣

P/s: cái bình luận này nó kì kì nhỉ, cứ quote vào status đầu tiên làm cứ tưởng post nhầm

Xuân Hoài Tống
Xuân Hoài Tống19 hours ago

À vầng, lâu chưa vậy a. Mấy bài về event loop e cũng viết từ lâu lắm rồi, từ đợt tập tành viết. Mãi mà chưa có thời gian để cập nhật. Kể ra nhiều người biết đến blog qua loạt bài viết này phết đấy chứ.

Vừa làm vừa viết kể ra cũng mệt phết, thế nên có thời gian rảnh cứ phải phân vân xem là nên viết, fix hay thêm tính năng 😅

Cái comment threads này cũng bất tiện thật, để cho vào hàng đợi fix a ạ 😆

Khanh Nam Do
Khanh Nam Do17 hours ago

Cũng mấy tháng rồi em, hình như có cả lần tìm thấy qua từ khoá liên quan đến Deno nữa, đợt đó đang ngó nghiêng Bun với Deno, cuối cùng vẫn chưa vọc thằng nào cả 🤣

Xuân Hoài Tống
Xuân Hoài Tống16 hours ago

😄 Thế ạ. Mong a sớm đạt được mục tiêu

Xuân Hoài Tống
Xuân Hoài Tống1 day ago

Slightly startled this morning because Mac warned that Docker is malware.
Type: "com.docker.socket" was not opened because it contains malware. This action did not harm your Mac"

It seems this is an unintended issue and Docker has spoken up; if you still can't open the application, you might try the ways mentioned here: Incident Update: Docker Desktop for Mac

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống2 days ago

Since the beginning of January until now, if you've been visiting the blog regularly, you may have noticed that the advertising content on the website has changed. That's right, I no longer use ads from Adsense, and instead, I have ads from indieboosting.com. Why?

In the middle of last year, I joined the Build in public VN group on Facebook. This is like a playground for Indie Hackers - those who are passionate about creating products and are willing to share knowledge and experiences with each other during the learning and working process. Overall, I have learned a lot of new things in the Indie community.

indieboosting.com is a product of Duy - who is also the Admin of the group - the idea of indieboosting is to be a bridge between product creators and those who need to use the products through website owners. If you have a website, traffic, and are willing to act as a bridge, then indieboosting is the tool for you. In return, you will receive a corresponding commission.

This commission is relatively "lucrative," far surpassing Adsense at this time. To put it simply, on average, the ads I placed on Adsense barely reached $2 a month, whereas with indieboosting, in just the past half month, I have already earned over $10 🫣

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống3 days ago

I just found a tool that extracts content from images, pdfs, docx, xlsx, pptx... into text, markdown, or json... In general, it supports quite a few input and output formats. Once you extract the content, you can do whatever you want with it, especially putting it into large language models as data sources, what could be better 😁

The tool is called Docling, written in Python. You can embed it in your code or use the CLI, both work. I've tried it with images and pdfs. Overall, the pdf results are better. Images can be hit or miss 😅. It also offers an OCR library option. Choose whichever is more suitable.

During the installation process, a few errors occurred. Please remember to use Python 3.9 -> 3.12. If you encounter the error ModuleNotFoundError: No module named '_lzma', try following this guide to see if it resolves the issue ModuleNotFoundError: No module named '_lzma'

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống4 days ago

How I wish I had discovered this repository earlier. github/opensource.guide is a place that guides everyone on everything about Open Source. From how to contribute code, how to start your own open-source project, to the knowledge that anyone should know when stepping into this field 🤓

Especially, this content is directly from Github.

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống5 days ago

Just the other day, I mentioned dokploy.com and today I came across coolify.io - another open-source project that can replace Heroku/Netlify/Vercel.

From what I've read, Coolify operates based on Docker deployment, which allows it to run most applications.

Coolify offers an interface and features that make application deployment simpler and easier.

Could this be the trend for application deployment in the future? 🤔

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống6 days ago

One of the things I really like about command lines is their 'pipeline' nature. You can imagine each command as a pipe; when connected together, they create a flow of data. The output of one pipe becomes the input of another... and so on.

In terms of application, there are many examples; you can refer to the article Practical Data Processing Using Commands on MTTQVN Statement File. By combining commands, we turn them into powerful data analysis tools.

Recently, I combined the wrangler command with jq to make it easier to view logs from the worker. wrangler is Cloudflare's command line interface (CLI) that integrates many features. One of them helps us view logs from Worker using the command:

$ wrangler tail --config /path/to/wrangler.toml --format json

However, the logs from the above command contain a lot of extraneous information, spilling over the screen, while we only want to see a few important fields. So, what should we do?

Let’s combine it with jq. jq is a very powerful JSON processing command. It makes working with JSON data in the terminal much easier. Therefore, to filter information from the logs, it’s quite simple:

$ wrangler tail --config /path/to/wrangler.toml --format json | jq '{method: .event.request.method, url: .event.request.url, logs }'

The above command returns structured JSON logs consisting of only 3 fields: method, url, and logs 🔥

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống6 days ago

Scary stories are spreading among serverless users: serverlesshorrors.com 🥶

As you know! Serverless has a very different billing method compared to traditional servers. Usually, it charges based on the criteria of pay-as-you-go. That is, the more you use, the more you pay.

So be careful, on a beautiful day, if the traffic suddenly spikes, the money in your wallet could vanish!

Comment
Copy link
Xuân Hoài Tống
Xuân Hoài Tống1 week ago

Previously, I shared some Github repositories that compiled prompts 'leaked' from the bots in GPT Stores. Now, there is an official website that gathers all the quality prompts shared by users. Especially with sponsorship from HuggingChat, which is quite reputable. Here it is prompts.chat 🥳

Comment
Copy link