application/x-www-form-urlencoded or multipart/form-data?

TL;DR Summary; if you have binary (non-alphanumeric) data (or a significantly sized payload) to transmit, use multipart/form-data. Otherwise, use application/x-www-form-urlencoded. The MIME types you mention are the two Content-Type headers for HTTP POST requests that user-agents (browsers) must support. The purpose of both of those types of requests is to send a list of name/value … Read more

How to unmount a busy device

YES!! There is a way to detach a busy device immediately – even if it is busy and cannot be unmounted forcefully. You may cleanup all later: NOTE/CAUTION These commands can disrupt a running process, cause data loss OR corrupt open files. Programs accessing target DEVICE/NFS files may throw errors OR could not work properly … Read more

Why use as.factor() instead of just factor()

as.factor is a wrapper for factor, but it allows quick return if the input vector is already a factor: Comment from Frank: it’s not a mere wrapper, since this “quick return” will leave factor levels as they are while factor() will not: Expanded answer two years later, including the following: What does the manual say? … Read more

Categories R