macos – Option Shift word selection doesn’t work in Visual Studio Code on Mac OS Big Sur

I can’t exectly say when this started, but from some version of Visual Studio Code Option + Shift + Right Arrow/Left Arrow selection stopped working. Currently I use macOS Big Sur, but I am almost sure that this started before upgrading to Big Sur. Can anyone help me to fix this?
UPDATE: I use macOS Big Sur 11.2.2 and VS Code 1.53.2.

rsa – Necessary fingerprint length etc. when Alice wants to send multiple pseudonymous messages in public to Bob and keep option of proving authorship later

Alice wants to send Bob messages. She has the following requirements.

  1. She plans to send him messages that are sequentially numbered, pseudonymous, and sent to him publicly over a period of time.
  2. Each message will take the form of a single text file.
  3. She wants Bob (and indeed anyone else who is interested) to be able to verify soon after he receives each message that it is from the same sender as all previous messages, but right now she does not want him know that she is that person.
  4. She wants to be able to prove at a later date, if she feels like it, that she is that person.
  5. She does not trust online key servers.
  6. She does not trust sites such as 4chan.
  7. She wants to start by publishing a PGP RSA-1 fingerprint publicly, e.g. perhaps she will get it into a photograph in a large-circulation hardcopy newspaper and then make it “common knowledge” that that edition contained the right fingerprint.
  8. She wants that fingerprint to be as short as possible but long enough not to be hackable, meaning that nobody else can feasibly make a key pair in which the public key has the same fingerprint.
  9. She does not want to be defeated by Chuck. Chuck is a bad guy who will certainly read the genuine messages and who is capable of sending fake messages to Bob. For example Chuck may try to swamp Alice’s messages by sending Bob fake messages (perhaps a large number of them)
    a) through the same public channel as genuine messages,
    b) that purport to be in the sequence,
    c) that are divided into three parts just like genuine messages,
    d) that have a content quite close to the “kind of thing” that Alice would write, but have subtle differences that serve Chuck’s wicked purposes,
    e) that use a public key with a fingerprint that is as close to Alice’s fingerprint as Chuck can get, and
    f) that verify as legitimate using a public key (included in his messages) that has that fingerprint.

How should Alice proceed?

In particular, what length of public key and password will be sufficient? Am I right that the answers are “4096 bits” and “40 characters”? And will the following advice included in each genuine message be sufficient?


This document is in three parts: P (main text), Q (public key), and R (signature).
To verify its authenticity, take the following steps.

  • A. Retrieve the 40-character fingerprint X from (presumed unfakeable place, e.g. a certain issue of a printed newspaper)

  • B. Create a text file, copy Q into it as its entire content, and save it as “Q.asc”.

  • C. Use a PGP program to find the fingerprint Y of Q.

  • D. Verify that X = Y. If it does not, this message is fake. If and only if it does, take the next three steps.

  • E. Create a second text file, copy P into it as its entire content, and save it as “P.txt” in the same folder as “Q.asc”.

  • F. Create a third text file, copy R into it as its entire content, and save it as “R.asc” in the same folder as “P.txt” and “Q.asc”.

  • G. Use a PGP program to verify that R is the authentic signature of P using the public key Q.
    If it is, and if you are sure that X=Y, then this document is authentic. Otherwise, it is fake.

These verification instructions would be included in the “main text” of each message, i.e. part P.

Maybe there’s a less complicated way she can do this?

Openstack VPNaaS tunnel sharing option

I am currently configuring a VPN using the VPNaaS of neutron. We are setting an IPSec tunnel with an external partner. The communication is established, but he ask me what type of tunnel sharing we are using. Here are the options he gave me:

  • One VPN tunnel per each pair of hosts
  • One VPN tunnel per subnet pair
  • One VPN tunnel per Gateway pair

I do not know how Openstack will configure this options, and I do not know were to look at this.

Does anyone know where to look at?

macos – Bootcamp cannot be selected through option key after patitioning using recovery

I have installed windows 10 on my Macbook late 2009 unibody and thus far have worked well.
I wanted to increase the capacity of my Bootcamp partition so I used recovery to reduce the size of Macos and allocate that space to windows 10, upon restarting the device I was unable to boot in Bootcamp and macos, Bootcamp does not show up when pressing the option key through resetting pram (
After resetting Pram I am able to boot into Macos but not into bootcamp1I was able to boot through macos and see that macos can still detect the Bootcamp partition2

But by Opening bootcamp through this way it shouwed “No bootable device, insert boot disk and press enter”enter image description here

Results from diskutil list:

Apples-MacBook:~ apple$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *250.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Untitled                119.8 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data unti                    49.2 GB    disk0s4
   5:       Microsoft Basic Data BOOTCAMP                80.0 GB    disk0s5

Results From sudo fdisk /dev/disk0/ :

Apples-MacBook:~ apple$ sudo fdisk /dev/disk0
Disk: /dev/disk0    geometry: 30401/255/63 (488397168 sectors)
Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec (     start -       size)
 1: EE 1023 254  63 - 1023 254  63 (         1 -     409639) <Unknown ID>
 2: AF 1023 254  63 - 1023 254  63 (    409640 -  234038808) HFS+        
 3: AB 1023 254  63 - 1023 254  63 ( 234448448 -    1269536) Darwin Boot 
 4: 0B 1023 254  63 - 1023 254  63 ( 235717984 -   96168608) Win95 FAT-32

Results from gpt show:

gpt show: /dev/disk0: Suspicious MBR at sector 0
      start       size  index  contents
          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  234038808      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  234448448    1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
  235717984   96168608      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  331886592     262144         
  332148736  156248064      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  488396800        335         
  488397135         32         Sec GPT table
  488397167          1         Sec GPT header

applications – how do i avoid app from minimizing when option menu icon selected

i tried this code, but app minimize when option menu selected, what wrong with startActivity

i have added about, help in menu option, menu is opening, but when i click on option to go other activity, my app minimize

switch (item.getItemId()) {
startActivity(new Intent(this, About.class));
return true;
startActivity(new Intent(this, Help.class));
return true;
return super.onOptionsItemSelected(item);

syntax – What does the option ‘Complexexpand’ do in the Collect command?

I’m trying to re-write a long chain of commands I’ve received in pdf from Mathematica language to Maxima. I have this command:

Collect(%, ε, ComplexExpand)

I know what the Collect command does. But what does the ComplexExpand option do here? Will it perform




or something else? I did not see the ComplexExpand option for Collect in the documentation. Thanks in advance.

gui design – How should I provide the “select nothing” option in my icon picker?

I work on a desktop application that lets people create visual scripts. They can add properties to objects, and every property can have a user-defined icon for easy identification. I have added a picker widget that looks like a large button showing the icon, and when clicked opens a menu that lets the user select from the complete list of emoji.

However there is currently no way for the user to disable the icon (“clear” or “select none”), and I am wondering how to implement this. I have thought of the following:

  • add a right-click context menu with a single “Clear” or “Select None” entry; I don’t like this because it is not obvious that right-clicking will do anything, and a popup menu with only one entry seems weird.
  • add an empty emoji at the beginning of the list, so the user can select it just like the others; I don’t like this because they will need to scroll to the top of the list, and maybe even navigate to the first tab; also none of the emoji have any borders so an empty button will just be appear as a blank space, and may even look like a rendering bug to the user.
  • add a “Clear” button… somewhere in the picker menu? I could not find a good place to put it. Also, should it have text or would an icon suffice? The emoji are very diverse and colourful, so an icon may not be appropriate.
  • add a “Clear” button outside the picker. If so, what should it look like?

What are good examples that I could get inspiration from?

For reference, here is what the picker looks like right now:

emoji picker

Here is what an empty entry would look like:

empty button

And an external button:

external button