ssh -Q key not listing all key types?

I am having some problems with understanding which types of host keys my SSH daemon actually provides or supports (stock debian buster, sshd 7.9.p1). From the manual (man sshd_config):

 HostKeyAlgorithms
         Specifies the host key algorithms that the server offers.  The default for this option is:

            ecdsa-sha2-nistp256-cert-v01@openssh.com,
            ecdsa-sha2-nistp384-cert-v01@openssh.com,
            ecdsa-sha2-nistp521-cert-v01@openssh.com,
            ssh-ed25519-cert-v01@openssh.com,
            rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,
            ssh-rsa-cert-v01@openssh.com,
            ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
            ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa

         The list of available key types may also be obtained using "ssh -Q key".

Please note the last line. When following the advice given there:

root@odysseus /var/log # ssh -Q key
ssh-ed25519
ssh-ed25519-cert-v01@openssh.com
ssh-rsa
ssh-dss
ecdsa-sha2-nistp256
ecdsa-sha2-nistp384
ecdsa-sha2-nistp521
ssh-rsa-cert-v01@openssh.com
ssh-dss-cert-v01@openssh.com
ecdsa-sha2-nistp256-cert-v01@openssh.com
ecdsa-sha2-nistp384-cert-v01@openssh.com
ecdsa-sha2-nistp521-cert-v01@openssh.com

I’ve got two questions:

  1. As an example, the man page states that rsa-sha2-256 is part of the default for HostKeyAlgorithms. But this string does not appear in the output of ssh -Q key.

    How does this fit together? How can something be a default which even doesn’t exist?

    The above example implies that ssh-rsa might be insecure, because it doesn’t have sha2 in its name, and thus might be sha1 or even md5 based (of course, my host keys are actually created by ssh-keygen with sha2-256 fingerprint, so that actually can’t be a problem, but I’d like to understand those key type names nevertheless).

  2. What does the string -cert-v01@openssh.com in some of the algorithm type names mean? Are these the types for certificate-based authentication?

dnd 3.5e – What types of bonuses can be applied with the fortify epic spell seed to boost intelligence?

The DMG lists all the bonus types, some are common improvements to abilities, like enhancement or inherent. But what other types of bonuses could be applied to intelligence?

I could see the following being applied: alchemical, circumstance, competence, enhancement, inherent, insight, luck, morale, profane, sacred.

Surely a dodge bonus to intelligence is dumb, but perhaps I’ve missed a few other ones.

url – How to intercept application specific MIME types used by 3rd party (Windows) browser/plugins apps?

I’m trying to intercept and decipher scripted code that is sent to a previously installed Windows application, after a user have clicked on a particular URL in their web browser which is somehow returning a MIME response that is intercepted by the Win app and processed as a script/program.

The particular example of concern, is how the (Windows) trading application Think-or-Swim (aka. TOS) is downloading and running user scripts from either a custom URL handler of the form: tossc:XXXX or using a standard URL like http://tos.mx/A1PZUml which then sends one of the MIME types:

x-scheme-handler/tossc
application/x-tossc
application/x-thinkorswim

I have posted a similar question on SO here but I don’t think that forum is appropriate for this question and hope someone here would a have some more technical know-how of how to do this and also explain what’s going on. As you can tell I am probably not even using the correct language for asking the question in a clear manner. So feel free to correct me or this post.

Q: How can I intercept and inspect code that is loaded in this way?

(Hoping to also learn what is going on and how this is done, or an be done, by e.g. python?)

settings – How can I prevent my soft keyboard from changing for different input types?

I would like to disable the soft keyboard mode (gboard) for inputType=textUri on my Pixel 4a, and fall back on the default text keyboard mode.

Coming from a much older version of Android which supported fewer inputTypes, I am finding it difficult to adjust to these similar-yet-subtly-different soft keyboards. In particular, the uri mode is causing problems for me, as mobile browsers tend to use it in their top url/search bar. This causes me problems because punctuation commonly used for logic in search, such as “, +, -, :, !, etc, are removed from their usual location (on my keyboard, behind the period), and replaced with shortcuts for common top level domains.

I would like my keyboard to always be the same, or at least, I would like to disable some of the input modes that are similar enough to be confusing.

I understand that this input type feature may not be intended to be configurable.
Still, I would appreciate any advice that can be offered.

Upload Custom Mime Types in WordPress (SVG, WebP)

I have a plugin I created to allow for us to add additional image types (webp, svg, etc). For some reason it is failing and will not allow me to add svg.

Could use an extra set of eyes on this one please:

function pmp_custom_upload_mimes($existing_mimes = array()) {
    $existing_mimes('webp') = 'image/webp';
    $existing_mimes('ico') = 'image/x-icon';
    $existing_mimes('svg') = 'image/svg+xml';
    
    return $existing_mimes;
}
add_filter('mime_types', 'pmp_custom_upload_mimes');

8 – How to get the file destination from a content type’s field_image to upload programatically

I have a cron job that goes and grabs content from another resource and uploads it into my drupal site, and this includes a link an image that I retrieve and upload into my S3 file system.

  • My site’s file system is set to Amazon S3
  • For my S3 Configurations, I have access_key and secret_key set in the settings.php file as well as the following settings:
$settings('s3fs.use_s3_for_public') = TRUE;
$settings('s3fs.use_s3_for_private') = TRUE;
$settings('php_storage')('twig')('directory') = 'sites/default/files/php/twig';
  • My Content Type’s field_image settings are to use s3 storage under the folder public/course_images
  • I’ve validated the s3 configurations and refreshed the metadata cache successfully

Right now, if I upload an image through the admin interface, it uploads as expected and works perfectly fine. However, in my cron job I keep getting the error The specified file 'temporary://fileBXiPLP' could not be copied because the destination directory 'public://course_images' is not properly configured.

In my cron job, here is how I attempt to upload the file:

$image_url_arr = explode("/", $image_url);
$image_name = end($image_url_arr);
$img = file_get_contents($image_url);
$file = file_save_data($img, "public://course_images/$image_name", FileSystemInterface::EXISTS_REPLACE);

I’ve tried to replace public://course_images with public://public/course_images and s3://public/course_images and I received the exact same error…

What’s even stranger is that my staging instance that has the exact same configurations and the same s3 bucket permissions works perfectly fine (specifically with the s3://public/course_images option).

Considering it uploads fine via the admin UI, how can I get the correct path to be able to upload to S3 programatically?

javascript – How to check if type is undefined in Typescript Conditional Types?

I currently have this type:

type ReturnType<T, E> = [T, E]

I ‘m trying to make this type “smarter” by these rules:

  • If T is undefined, then the type would be [undefined, E]
  • If E is undefined, then the type would be [T]
  • T and E can’t both be undefined

I’m trying to apply these rules using Typescript’s Conditional Types.
Is this even possible to implement?

This is what I got so far:

type ReturnType<T, E> = T extends undefined ? [undefined, E] : [T]

sharepoint online – Create a View with PowerShell Returns Error: One or more field types are not installed properly

I’m trying to create views on sub-folders in a SharePoint Online document library using SharePoint Online Management Shell. The script creates the view but generates the following error message when I try to display the view.

One or more field types are not installed properly. Go to the list settings page to delete these fields. Correlation ID: 0f3fbe9f-80e3-0000-c877-398c5f1cc2bf

I’m using the following script to create the view.


#Config Variables
$SiteURL = "https://XXXX.sharepoint.com/sites/TestTeamSite"
$ListName= "Documents"
$ViewName= "0001TestFolder"
$ViewFields = @("Name","Modified")
$Query = "<Where><Eq><FieldRef Name = 'Title' /><Value Type = 'Text'>Active</Value></Eq></Where>"
 
#Get Credentials to connect
#$Cred = Get-Credential
 
Try {
    #Connect to PNP Online
    Connect-PnPOnline -Url $SiteURL -UseWebLogin
 
    #sharepoint online pnp powershell create view
    Add-PnPView -List $ListName -Title $ViewName -ViewType Html -Fields $ViewFields -Query $Query -ErrorAction Stop
    Write-host "View '$ViewName' Created Successfully!" -f Green
}
catch {
    write-host "Error: $($_.Exception.Message)" -foregroundcolor Red
}

custom post types – Archive page for taxonomy terms

How can I create a archive over terms from a custom taxonomy like there is for custom post types? domain.com/taxonomy is empty/404, while domain.com/cpt shows all posts for that CPT.

I know I could loop true all terms and display them on a “static” page that I make myself and apply with the template page-taxonomy.php. This does however not allow me to have a “Next page” function as far as I know.

$terms = get_terms( 'taxonomy' );
foreach ( $terms as $term ) {
    echo $term->name
}

Is there a way to make a “normal” archive for the terms of a taxonomy? I do not want the posts of the terms/taxonomy, but the terms themself.

Do any industry programming languages use Martin-Löf style identity types?

Most programming languages have some kind of type systems but are there any programming languages widely used outside of academia (in consumer-oriented tech, finance etc.) that have intensional identity types à la Martin-Löf?

Coq and Agda have identity types but they are primarily used in academia.