News for hackers. Stuff that matters.

rlinge

An Old-School Chat Room with WebRTC Video Call Support

This chat room takes a different approach—there are no predefined or public room lists. You create your own room and then share the group name & password or a link with your friends to join. The group name & password can be chose at will.If you don’t have anyone to chat with right away, you can open a new browser tab or use another device to join the room you just created.I can assure...

( Read More... | 1 comment | on HN )
Re:Bashbro – Make Any Comp a Web-Based File Server on Thursday July 11, 2024 @07:24AM (#40935490)
Webd: A 90kB Alternative you might want to try https://github.com/webd90kb/webd
Re:Embed the resource files into the executable program on Friday July 05, 2024 @10:41PM (#40887820)
My script/tool can embed a directory with it's structure, the files(memory block) can be found by path/filename. It's suitable for my app like 'webd file server' which has a lot files embed in it.
Re: on Friday July 05, 2024 @10:14PM (#40887732)
Creating a well-structured C project can greatly enhance code maintainability, readability, and reusability. This blog post will guide you through a practical example of a C project with a complete directory structure, including a functional Makefile.
Re:Embed the resource files into the executable program on Friday July 05, 2024 @10:13PM (#40887727)
Embedding resource files into the executable program ensures that all necessary resources are included, simplifying distribution and preventing issues with missing files. It also enhances security by making it harder to modify or tamper with the resources.
Re:There's another way to write GUI apps for Windows on Tuesday July 02, 2024 @09:58PM (#40862152)
Yes, Qt is a perfect choice for many developers, but there are also some developers who can't fully master C++. For example, I'm not smart enough to learn C++ and can only use C. Fortunately, there are some C language UI libraries available.
Re:There's another way to write GUI apps for Windows on Tuesday July 02, 2024 @09:56PM (#40862139)
I use this method because I happen to know how to develop web servers and work with HTML/JavaScript. That's why I chose this approach. I assume they are in a similar situation, or they might have other considerations. Over the past decade, there has not been a truly perfect and convenient way to develop GUIs. Everyone has been trying different approaches.
Re:There's another way to write GUI apps for Windows on Tuesday July 02, 2024 @09:47PM (#40862095)
Sorry for that, but it's why I call it "another way" :-)
Re:There's another way to write GUI apps for Windows on Tuesday July 02, 2024 @09:46PM (#40862092)
I believe it is due to the widespread popularity of Electron. What is widely popular is not necessarily the most perfect, but it is more developer-friendly.

In recent years, developers and companies have become less concerned about the memory, storage, and CPU usage on users' devices.

There's another way to write GUI apps for Windows

After seen this and comments https://news.ycombinator.com/item?id=40839208 , I have somethings to say. Now days people like to use Electron or Qt, but there's another way, use the Chrome.After wrote the Webd (a less than 90KB file web sharing/managing server https://webd.cf/webd/ ). I thought I could use this way to write other apps, a webserver run locally, all UI things in browser. And it...

( Read More... | 8 comments | on HN )
Re:Writing GUI apps for Windows is painful on Monday July 01, 2024 @09:49PM (#40852821)
There's another way to build a 150KB or less executable today. Mime is less than 90KB, have a look at https://webd.cf/webd/ It's a web file manager.