Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Matthias Braun
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #289968 |
Post edited: spelling, wording |
— | about 1 year ago |
Edit | Post #289968 | Initial revision | — | about 1 year ago |
Question | — |
Set transform of SVG element I'm trying to set the `transform` attribute of a group within an SVG. Specifically, I'd like to set `translate`'s value to `0 0`. I tried using the `set` element for this but that didn't have an observable effect: rect { cursor: pointer; fill: papa... (more) |
— | about 1 year ago |
Edit | Post #289629 |
Post edited: |
— | about 1 year ago |
Edit | Post #289629 |
Post edited: add example of how a URI suffix is understood by Codidact's Markdown processor |
— | about 1 year ago |
Edit | Post #289629 |
Post edited: Change image format to SVG |
— | about 1 year ago |
Comment | Post #289631 |
Thanks! In my question I didn't mention the port number since it's not important to me if "suffix reference" can also mean `example:com:443/path`. I just cared about a name for `example:com/path`.
Just for completeness, RFC 3986 section 4.5 uses these names for "host + path" (indicating to me that... (more) |
— | about 1 year ago |
Comment | Post #289258 |
I mostly agree. But if I were trying to solve something (difficult), only got *halfway* to a solution and post that in the hopes that it still helps somebody with the same issue, the **absence** of "Works for me" is still valuable information. (more) |
— | about 1 year ago |
Edit | Post #289629 |
Post edited: |
— | about 1 year ago |
Edit | Post #289629 | Initial revision | — | about 1 year ago |
Question | — |
Name for host + path (parts of a URL) Among other things, a URL consists of a host and a path: URL syntax diagram I was wondering (and couldn't find anything) if there's a name for the combination of host and path. Is there a name for these: example.com/path/to/file example.com/file.html en.wikipedia.org/wiki/URL ... (more) |
— | about 1 year ago |
Comment | Post #288085 |
Can you provide an example server where the code doesn't work? This way, we could improve it or show how it fails. (more) |
— | over 1 year ago |
Comment | Post #288085 |
The code in the answer I've added (the one setting the timeout) worked for getting the HTML/CSS/JS of a web server and for a custom TCP server that used no protocol. I'm sure there are situations where the 200 ms timeout is too low, so you're right that there's no guarantee to get the whole message. ... (more) |
— | over 1 year ago |
Edit | Post #288085 |
Post edited: wording |
— | over 1 year ago |
Edit | Post #288086 |
Post edited: add explanation about the client's assumption |
— | over 1 year ago |
Edit | Post #288085 |
Post edited: make title more specific |
— | over 1 year ago |
Edit | Post #288086 |
Post edited: add explanations |
— | over 1 year ago |
Edit | Post #288086 |
Post edited: move comment |
— | over 1 year ago |
Edit | Post #288086 | Initial revision | — | over 1 year ago |
Answer | — |
A: Read all data from TCP stream in Rust One way to do this, is: 1. Set a read timeout on the `TcpStream` using `setreadtimeout`. This avoids a hanging client in case the server has stopped sending but left the connection open. 2. Read from the stream in a loop, using a `BufReader`, and aggregate the read bytes. 3. Break out of t... (more) |
— | over 1 year ago |
Edit | Post #288085 | Initial revision | — | over 1 year ago |
Question | — |
Read all data from TCP stream in Rust I'd like to write a TCP client in Rust that can receive the entire message sent by a server, but I have no information about the length of a message. I'm aware that TCP doesn't preserve message boundaries. Still, what's the best I can do to read the entire message from the `TcpStream`? In th... (more) |
— | over 1 year ago |
Comment | Post #278899 |
@#53177 I'm glad that this debate had a positive effect and Power User came to life. If possible, we could migrate this question to Power User since I've found an answer to my question in the meantime: `bsdtar --options zip:encryption --auto-compress -cf test.zip test_file`
(more) |
— | about 3 years ago |
Edit | Post #278899 |
Post edited: Remove typo |
— | about 4 years ago |
Comment | Post #278899 |
Well, it relates to scripting and tools. (more) |
— | about 4 years ago |
Edit | Post #278899 | Initial revision | — | about 4 years ago |
Question | — |
Create encrypted zip archive with bsdtar I'm trying to create an encrypted¹ zip archive using bsdtar. Here's where I got stuck: bsdtar -c --options='zip:encryption' --passphrase "secret" -f test.zip test This is the error I get: >bsdtar: Unknown module name: `zip' How do I get around this error to create an encrypted zip a... (more) |
— | about 4 years ago |