Send File Contents with Curl

Snippet

Testing out new API endpoints, and want to use curl to do it, use the --data-binary and @filename syntax.

This sends the file IN the body.

# use the --data-binary to leave newlines intact, saw with images
curl --data-binary "@/path/to/filename" https://api.example.com/posts
 
# If you really need newlines stripped (eh?), use --data
curl --data "@/path/to/file" https://api.example.com/posts

Marked

Book Notes

I'm a big Alex Verus by Benedict Jacka fan. I found the books on the recommendation of Jim Butcher on some tweet years and years ago, and have been enjoying the Verus series, reading each one pretty much as soon as it is published. I appreciate that Jacka delivers his books very regularly, which means I'm not waiting for a series to continue as the world is with Harry Dresden and the Song of Ice and Fire and the Kingkiller Chronicle (which I am now convinced Rothfuss doesn't know HOW to finish, so he won't) and whatever else books have the author off on a different tangent because that's what interests them at this time and oh, wow, do I appreciate Jacka.

Anyway.

I enjoyed this book. I have enjoyed this series. Two chapters into this book and I realized that reading it felt like coming home in a way, the comfort level of the world that has been developed, my connection with said world and the characters in the world, and the writing style of the author. The Dresden Files does this, too. As did Connolly's Twenty Palaces series.

And I just realized I seem to have a thing for white male author, urban fantasy fiction.

Sigh.

Good thing I'm on a non-fiction kick this year. Go me.

The book was a fun read. If you haven't started on the Verus, start with book one, which is Fated (the naming of which reminds me to add it to my "I have read, but I don't recall when or any of the plot, but I know I've read it" list). Once you're done with those, head over to the Dresden series. And keep reading.

There’s a rhythm to battle, a cadence, almost like a dance. Every move has its counter, every strike its timing. Once you understand it, it doesn’t feel as though you’re attacking at all: you just do what’s natural.
Page 8

Dread Nation

Book Notes

I had this book in my hold queue for a long time before I released it and it dropped into my read queue. I'm fairly certain it was on a Book Riot young adult book, but it has zombies in it, so, yeah, I read it.

This was a very fun read. The premise is that a zombie epidemic starts sometime during the Battle of Gettysburg, which lasted three days in our timeline, a different amount in the America of Dread Nation. The Civil War ended as the living now united against the dead. Except the attitudes and idiocy of the times didn't change, the slave owners still believed the slaves weren't people, still believed they were somehow entitled to subjugate another person, still believed in their own collective superiority. In this world, the ex-slaves and Native Americans were forced into combat schools, where they were trained to kill the dead.

Of course. Because once you have entitlement, you can't not have that entitlement until said entitle-ees are dead (typically of old age, tbh).

ANYWAY.

This was a fun read. Ireland portrays the prejudices well, gives us a heroine we can root for (root for, verb, informal, support or hope for the success of (a person or group entering a contest or undertaking a challenge): the whole of this club is rooting for him), and creates action and mystery at the same time. The letters to and from the heroine and her mother are heartbreaking in a way, but further the plot in a good way.

If you're into zombie fiction, this is a good book to pick up. If you're not into zombie fiction, you might still enjoy the heroine's sass, the book is worth reading.

“What happened then?” I asked, because there’s nothing better than the memories of others when you’re little and have no stories of your own.
Location 75

I Contain Multitudes

Book Notes

This is the next book in the Caltech book club. I, admittedly, skipped over the biological sciences when I was at Caltech, and that skipping is one of my regrets about my time at Caltech: I came in with these just plain wrong notions about science. Those ideas adversely affected my education, but, fortunately, not my love for science in all its (correctly science) forms.

Anyway.

I read this book, finishing before the first week's discussion, mostly because I keep checking these books out from the library, with due dates much sooner than the slower 1-2 chapters a week pace the book club has. Which is fine, I read the book club books quickly. That I subsequently don't participate in the book club discussions is less fine, I guess.

This book was a meandering survey of various studies, current research, and microbe history. I say meandering because the book lacked a compelling narrative arc. I was expecting maybe a history arc, or a current research arc, or even the author's journey arc. Instead, the end of each chapter lead into the beginning of the next chapter, with each chapter a swirl of interesting information and sometimes a self-contained narrative. Mostly though, each chapter was a fascinating, meandering discussion of a new topic about microbes.

And by fascinating, I mean fascinating. My incoming supposition was, given how much influence chemicals have over our mental state and body composition, the idea that microbes could and do produce chemicals to induce a state in their host doesn't seem so farfetched. After reading the book, learning about how much we know about microbes, and seeing how much we don't know about microbes, my supposition is more like a fixed assumption in my world. One of those "but, of course" obvious things only after the fact.

Dessert

Daily Photo

Pages