SSL client certificate authentication returns “21:unable to verify the first certificate”

I’m in the process of transferring some of my old-and-busted apache2 web servers to newer and more resilient nginx containers. On my old web server, I have an apache2 server that hosts secretbackdoor.example.com, which authenticates “users” (only me) using a signed certificate. The CA is setup in the following way: > ROOT CA (self-signed, obviously)…

Details

Nginx rewrite help needed – what’s wrong with this?

I had an nginx rewrite rule written, but when I implemented it, it didn’t work properly. Website 1: # “best” added // $rewrited_best_added “~/(?<rewrited_best_added>baby-food-makers|strollers)/$” “/best-$rewrited_best_added/”; in server block: if ($rewrited_request_uri != “”) { rewrite ^(.*)$ https://website2.com$rewrited_request_uri permanent; } The expected result is: https://website1.com/strollers/ goes to https://website2.com/best-strollers/ However, it instead goes to https://website2.com/best-$rewrited_best_added/ Can anyone tell…

Details

R Webscraping: How to feed URLS into a function

My end goal is to be able to take all 310 articles from this page and its following pages and run it through this function: library(tidyverse) library(rvest) library(stringr) library(purrr) library(lubridate) library(dplyr) scrape_docs <- function(URL){ doc <- read_html(URL) speaker <- html_nodes(doc, “.diet-title a”) %>% html_text() date <- html_nodes(doc, “.date-display-single”) %>% html_text() %>% mdy() title <- html_nodes(doc,…

Details

How *dynamically* change **EVERY** color iOS/Android? E.g. “colorAccent” in “Styles.xml”

I am adding color themes to a Xamarin Forms app. The theme is spec’ed to change dynamically depending on which client’s location the user is standing at/near. We have both “light” and “dark” themed clients, having a variety of color palettes; so it needs to be possible to change all colors of all display items.…

Details

How to display images with CarrierWave in Sinatra

I have struggled a lot with CarrierWave, so I made a small program to see if I could make that work: require ‘sinatra’ require ‘dm-core’ require ‘dm-migrations’ require ‘carrierwave/datamapper’ class ImageUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick end DataMapper.setup(:default, “sqlite3://#{Dir.pwd}/photogallery.sqlite3”) class Image include DataMapper::Resource property :id, Serial property :title, Text mount_uploader :image, ImageUploader end DataMapper.finalize DataMapper.auto_migrate! get…

Details