Author's avatar

Vika

A trans-person and a clueless amateur coder. Doesn't like her look and uses an anime-styled avatar instead.

Published: by Vika

Tags:
  • server
  • pyindieblog
I've added HTTP/2 Server Push to my website. It doesn't help a lot though, considering that my current machine (which is even older than Sakura) is single-core and has a slow HDD. Most of processing time is taken up by... Micropub request. I need to optimize the backend and nurse Sakura back to life.

Published: by Vika

Tags:
  • server
  • fail
Unannotated picture

This is Sakura, my old laptop that served as a web host and general-purpose server until I tried to clean the dust of the fan. Turns out the fan doesn't work and I fried the BIOS while trying to clean it.

I resurrected Sakura' hard drive to retrieve my DB. I'll need to go to service center and get the BIOS repaired. And get the fan replaced.

After that, I'll nurse it to working state and proudly hang it to the wall, connected to power and network. As a monument to the undying nature of my computers. Yes, this laptop is at least 8 years old. And it was running until I broke it myself.

Published: by Vika

Tags:
  • philosophy
  • showerthoughts
Probability seems to me as something similar to an almighty god overseeing the Universe - we abstract over parts we can't understand yet to achieve understanding of things we want to understand. #philosophy #showerthoughts

Published: by Vika in reply to https://aaronparecki.com/2019/11/07/7/

Now me too, as you can see. I have at least two posts, an improvement to the backend that allows me to store posts as files and I want to write about the way I killed my server laptop (TL;DR: surgical accident when trying to clean dust off the laptop's mainboard), and I wanted to do so after I make a backup...

Published: by Vika

Tags:
  • postmortem
  • fail
  • youneedabackup
  • server

Finally I have restored my database, as I bought a SATA cable. Sorry for the radio silence, I hope your readers won't overflow!

#postmortem TL;DR: tried to disassemble my server, fried the BIOS, too lazy to bring it to service center and all my data was locked up on a HDD to which I couldn't connect. But I bought a SATA cable and heroically retrieved the database.

Even shorter TL;DR: you need a backup off-site. I'll probably set up a cron job that will send the DB dump to a remote server.

Published: by Vika

Tags:
  • personal
  • profession
  • depression
  • personalfinance

Feeling very down, thinking about changing my profession. Sadly, I'm trans, which means I have voice issues, so I can't do something like podcasting or radio. I also can't draw (or at least didn't learn how to draw). All this IT crap feels very demanding, mostly because of fear of managers bossing me around. I know I won't be able to handle this, so some sort of self-employment seems like the only option.

I'm afraid I may have some form of depression. But I'm too afraid to go to a medical professional for this... Partly because I'm trans and I probably won't find a trans-friendly professional, and partly because our medical system is crap and I'm afraid I won't get the treatment I need, be it therapy or medications..

Thankfully, right now my brain doesn't want to do anything stupid and dangerous to my life. So expect more whining from me... ๐Ÿ˜ญ

Published: by Vika

Tags:
  • couchdb
I am experimenting with #CouchDB and the least I can say is I am pretty confused with Mango queries. And I'm too lazy to write JS, since I'm not sure how could I match posts by a dynamic value provided as an argument (i.e. filter posts by some property value).

Published: by Vika

Tags:
  • couchdb
  • micropub
  • ownyourdata

I've just exported my Micropub posts to CouchDB using just curl and jq. Here's the command:


curl --silent -H "Authorization: Bearer $MICROPUB_ACCESS_TOKEN" "${MICROPUB_ENDPOINT}?q=source&limit=$LIMIT"  | jq '{
  "docs": .items | map(. + {
    "_id": .properties.published[] | strptime("%Y-%m-%dT%H:%M:%S%Z") | mktime | tostring
  }) | map(
    if .properties | has("visibility") then
      .
    else (
      .  * {"properties": {"visibility": ["public"]}}
    ) end
  )
}' | curl -u $COUCHDB_AUTH localhost:5984/posts/_bulk_docs -X POST -d@- -H "Content-Type: application/json"

The variables $LIMIT (count of posts to be exported), $MICROPUB_ACCESS_TOKEN, $MICROPUB_TOKEN and $COUCHDB_AUTH are set by user.