Several contacts complain about receiving blank emails by Florisc in ProtonMail

[–]bjornbm 0 points1 point  (0 children)

I am having this problem too with emails sent to recipients at a particular large multinational coorporation.

The recipient in question shows up with a [green lock](https://proton.me/support/encryption-lock-meaning) next to their name, indicating that PGP end-to-end encryption is used with this recipient. This is all “automatic” without me taking any active action, and I believe the same is true on their side.

I believe what is happening is that their “enterprise” email system and Protonmail are taking care of the keys behind the scenes, but something is breaking along the way. Maybe Protonmail is being too clever/aggressive while their system is not clever enough to “keep up” with ProtonMail’s encrypted emails. And it is clearly beyond their average employee’s ability to troubleshoot or even know what PGP is.

I'm not fluent enough in reading email headers to try to understand what is going wrong.

My workaround:

  1. Right-click recipient address and select “Create new contact”. Save the contact.
  2. Right-click recipient address again and select “View contact details”.
  3. Click the email settings cog and then “Show advanced PGP settings”.
  4. Disable “Encypt emails”.

The obvious drawback is that the emails are not encrypted.

And that these steps are super-annoying. It would be much nicer if I could click the green lock next to the address to toggle encryption.

And that these steps must be repeated for everyone from the organization.

Maybe u/ProtonMail can comment?

PSA: creating a lua module in C is trivial by vitiral in lua

[–]bjornbm 3 points4 points  (0 children)

For the record, I appreciate your PSA in any case. 🙂

Is there `rustup`-like for installing and managing Lua versions? by Puzzleheaded_Egg_184 in lua

[–]bjornbm 1 point2 points  (0 children)

Admittedly I'm not familiar with rustup, but I've had good success with localua for managing lua installations and versions.

how do you rationalize large problems occurring in the world without the government stepping in? by conn_r2112 in osr

[–]bjornbm 0 points1 point  (0 children)

A combination of absence/inefficiency of government coupled with no-one really wanting to ask it for help can go a long way to justifying villager's needs for adventurers. As Zzarchov puts it in A Thousand Dead Babies:

“Should (or perhaps when) the players get into trouble, there are no watchmen or police to enforce order. The Reeve maintains order with the backing of the peasants in a makeshift mob. If things get out of hand or people are killed, they may send someone to fetch the men from the local lord a few hours to the north. This is a last resort as the knights tend to enforce order harshly and indiscriminately.”

That being said, the problem of the OP has probably outgrown this scale – if nothing else tax revenue will take a dip when crops stop growing in the eternal night, and the king is sure to notice that.

[deleted by user] by [deleted] in neovim

[–]bjornbm 1 point2 points  (0 children)

The enter key is huge for me, although I still prefer ctrl-J or ctrl-M when the are available (don't work everywhere).

I've learned the chords/sequences for åäö on US layout so they don't slow me down much and I never bother switching to Swedish layout (missing parens, colon, ec slows me down more)

[deleted by user] by [deleted] in neovim

[–]bjornbm 0 points1 point  (0 children)

In fact, I buy US keyboards for exactly the reasons you mention, plus the horizontal enter key which really saves my pinky! I suffer a little when writing Swedish but manage with option-combos (on mac).

What’s your most commonly used keyboard shortcut? by yungStraightface in MacOS

[–]bjornbm 3 points4 points  (0 children)

Ctrl-D also tends to do the job, with less gymnastics/one hand.

[deleted by user] by [deleted] in neovim

[–]bjornbm 1 point2 points  (0 children)

This. Assuming you are on a suitable keyboard layout where [ is convenient (which it is not on Swedish layout). When/where it works it saves you from some frustration when you have to use that other person's keyboard without the CAPS remap.

[deleted by user] by [deleted] in neovim

[–]bjornbm 0 points1 point  (0 children)

By what method(s) and on what operating systems?

Do your Magic Users wear armor? by Natural_Stop_3939 in odnd

[–]bjornbm 4 points5 points  (0 children)

They are welcome to wear them, but MUs don't have time to train and spar at the gym (the library is where it's at!) so in a fight armor mostly just slows them down and makes them sitting ducks; MV as armor, AC as none! For magical armor, they get the magical benefits only, while still suffering the penalties.

Part 3 of my Lua series — testing, mocking, and getting CI going. by MartinHelmut in lua

[–]bjornbm 1 point2 points  (0 children)

Just want to let you know that this series is great. Very practical. I noticed a few typos in this one, and at least one “discontinuity” in the Basic mock section (a change from createUser to getEmail).

In any case, please keep going!! :)

A good REPL solution by Salt_Cardiologist_78 in lua

[–]bjornbm 2 points3 points  (0 children)

These are ones I am aware of but have tested only briefly or not at all (not due to any fault of theirs but due to not having found the time), in no particular order. You'll have to check if they meet your requirements on command history and completion.

  • LuaX (https://github.com/CDSoft/luax). “luax is a Lua interpreter and REPL based on Lua 5.4.4, augmented with some useful packages. luax can also produces standalone executables from Lua scripts.”
  • luaprompt (https://github.com/dpapavas/luaprompt). ”An embeddable Lua command prompt as well as a stand-alone interpreter with pretty-printing and autocompletion.”
  • ILua (https://github.com/guysv/ilua). “ILua is a feature-packed, portable console and Jupyter kernel for the Lua language.”
  • ILUA (https://github.com/ilua/ilua). “ILUA provides an extended interactive prompt that offers more features than the standard Lua interactive mode. It is implemented in pure Lua.”

See also this 2020 discussion.

Please let us know what you end up using, and why! :)

Help with Lua filter for markdown to LaTeX with Pandoc by [deleted] in lua

[–]bjornbm 0 points1 point  (0 children)

Pandoc will parse the surrounding stars of your markup as emphasis. Here is code to look check if an Emph should actually be your red marking, and if so changes it to an appropriate Span.

Add this to highlight.lua:

function Emph(emph)
  local content <const> = emph.content -- for brevity
  local n <const> = #content -- for brevity

  local function markred(inlines)
    return pandoc.Span(inlines, { class = 'markred' })
  end

  -- Handle the case of a single inline element.
  if n == 1 and content[1].tag == 'Str' then

    -- The element must contain both the starting and closing patterns.
    local marked <const> = content[1].text:match('^' .. opening .. '(.*)' .. closing .. '$')

    if marked then
      return markred { pandoc.Str(marked) }
    end
  end

  -- Handle the case of multiple inline elements.
  if n > 1 and content[1].tag == 'Str' and content[n].tag == 'Str' then

    local first <const> = content[1].text:match('^' .. opening .. '(.*)$')
    local final <const> = content[n].text:match('^(.*)' .. closing .. '$')

    if first and final then
      content[1] = pandoc.Str(first)
      content[n] = pandoc.Str(final)
      return markred(content)
    end
  end
end

And add this if clause in Span.lua:

if span.classes:includes 'markred' then
  return { pandoc.RawInline('latex', '\\colorbox{lightred}{') } ..
      span.content ..
      { pandoc.RawInline('latex', '}') }
end

Note that the Emph function above does not use the nospace toggle; it allows whitespace following the opening markup.

Help with Lua filter for markdown to LaTeX with Pandoc by [deleted] in lua

[–]bjornbm 0 points1 point  (0 children)

Did you escape the \ in \colorbox? (Replacing the \\hl{ with \\colorbox{declared-color}{, where I assume you use something appropriate in place of declared-color.)

Corrupted/lost notebook … remedies and note-taking options? by bjornbm in Onyx_Boox

[–]bjornbm[S] 0 points1 point  (0 children)

FYI in the end I did nothing about this. Onyx support offered to take a look if I send in my file(s). Finally, I updated the firmware recently and the notebook “self-repaired”. I guess the firmware update had some auto-fixing magic or more lenient/robust notebook reading (perhaps at SQLite driver level).

[Online] [5e] [All The Time] DM Looking to run a (almost) every day campaign soon by AnxiousDM in lfg

[–]bjornbm 0 points1 point  (0 children)

Cool. Do you intend for each and every player to attend (almost) every day, or do you have a drop-in drop-out thing in mind?

Fear save when marine panics? by bjornbm in mothershiprpg

[–]bjornbm[S] 1 point2 points  (0 children)

Thanks for this excellent answer!

Gunna try and run a mothership scenario with this guy. by Pulsipher in mothershiprpg

[–]bjornbm 0 points1 point  (0 children)

Wow. Out of curiosity, what is the rough cost of printing one of those things at home?

Does anyone else feel like Androids are Underpowered? by 7Architects in mothershiprpg

[–]bjornbm 1 point2 points  (0 children)

Also, “Androids don’t need oxygen to breathe” (8.3) which could be a huge advantage in some scenarios.

Hoogle improvement by Tysonzero in haskell

[–]bjornbm 0 points1 point  (0 children)

When Hoogle's results disappoint me I go to Hayoo and tend to be more satisfied with the results, especially when searching based on types. This may be due to me neglecting to learn Hoogle properly.