Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

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
6 months ago
Edit Post #289968 Initial revision 6 months 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)
6 months ago
Edit Post #289629 Post edited:
7 months ago
Edit Post #289629 Post edited:
add example of how a URI suffix is understood by Codidact's Markdown processor
7 months ago
Edit Post #289629 Post edited:
Change image format to SVG
7 months 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)
7 months 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)
7 months ago
Edit Post #289629 Post edited:
7 months ago
Edit Post #289629 Initial revision 7 months 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)
7 months 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)
11 months 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)
11 months ago
Edit Post #288085 Post edited:
wording
11 months ago
Edit Post #288086 Post edited:
add explanation about the client's assumption
11 months ago
Edit Post #288085 Post edited:
make title more specific
11 months ago
Edit Post #288086 Post edited:
add explanations
11 months ago
Edit Post #288086 Post edited:
move comment
11 months ago
Edit Post #288086 Initial revision 11 months 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)
11 months ago
Edit Post #288085 Initial revision 11 months 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)
11 months 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)
over 2 years ago
Edit Post #278899 Post edited:
Remove typo
over 3 years ago
Comment Post #278899 Well, it relates to scripting and tools.
(more)
over 3 years ago
Edit Post #278899 Initial revision over 3 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)
over 3 years ago