Keyboard shows wrong characters on Ubuntu 18.04

I have Ubuntu 18.04 on Toshiba. My keyboard doesn’t work well. Is shows a wrong characters ex. when I click on the character ‘m’, ‘p’ is printed. Also, some buttons show multiple characters at the same time ex. when I click on ‘c’ the pair ‘cd’ is shown !!. I tried to use the command sudo apt-get install xserver-xorg-input-all but it doesn’t work. I’m asking if anyone has already faced this problem and how to solve it?

Thank you

How can i handle a player who seems to utilize skills their characters don’t have?

Well the tag is slightly misleading as these players do not cause problems. However I have encountered several players who exhibit skills their real life counterpart has without actually metagaming. As an example I encountered a player while running storyteller system and while they didn’t have leadership skill they were quite fond of management stuff and assigned people that were under their command. On a similar note I had a player in D&D 5e who did not have survival proficiency(Or nature proficiency for that matter.) but he explained how his character set up a rudimentary water purification system.

I thought of a few solutions for this.

  1. Just tell them no. While this solution feels like the correct one my players often get excited when they utilize things like this and I don’t want to be the GM that says ‘No fun allowed’.

  2. Ask them to switch their proficiencies/skills to better reflect their knowledge. This feels a bit too punishing and I feel that it might end up causing them to not have the character they had in mind.

  3. Just let it fly. This is what I have been doing so far but to be honest I feel it is hurting other players and stealing the spotlight from people that invested in the required skills.

The main question is. How can i handle a player who seems to utilize skills their characters don’t have?

dnd 5e – How can I pull off being two two separate characters at the beginning of a campaign?

I will be playing a Changeling in an upcoming campaign (homebrew setting). I’m interested in hiding not only my race, but also having one or more “retainers” — alternate identities / personas that my changeling can slip into and out of as needed.

The catch is, I wish to conceal (at least at first) the fact that the PC and the NPC retainers are actually a single entity! The most straightforward way of doing this would seem to be observers seeing “both” characters arrive to the starting town at the same time. I would want this to deceive NPCs and fellow PCs.

What magic / mundane / class features do I need to pull off such a deception at level 1? If not, what’s the earliest level you could realistically pull the wool over NPC eyes, solo? The ruse must be able to confound casual observers, but bonus points if it can stand up to additional scrutiny!

I don’t have a set class for this character, but am leaning towards Bard, Rogue, or Wizard. Since I’m trying to fool the party as well, count on no help from them.

oracle 11g r2 – Query to select ‘Customer_Num’ with digit characters using PL-SQL regular expression

I have a table with below structure:

Example_table(Customer_Num    varchar2(50))

Some Example data in this table :


I want to select custoemr_num records with digit characters , so these records 12ttd , 2376y , 23%%*
should not appear in the final result . Considering the fact that I can not change the table structure , which one is the correct query ?

  select customer_num
  from Example_table 
  where REGEXP_LIKE(customer_num, '((:digit:))')

  select customer_num
  from Example_table 
  where REGEXP_LIKE(customer_num, '(0-9)')

Are there any special condition in which these queries might end up producing wrong results?
Thanks in advance.

Relation between bitcoin address/private keys size and number of characters?

There are many types of Bitcoin addresses. Your example specifies (legacy) pay-to-pubkey-hash (P2PKH) address defined by Base58 check encoding and Wallet Import Format (WIF) which is also specified by base58 check

Base58 encoding treats the entire input payload as a big-endian big integer. Consider these alternate examples:

Input value: bc in ASCII: 0x62 0x63 (2 bytes) interpreted as a 2-byte int and encoded without leading zeros…

base 2: 110001001100011 (15 characters)

base 10: 25187 (5 characters)

base 16: 6263 (4 characters)

base 58: 8VG (3 characters)

So going forwards we know that for this example it took 3 base58 characters to encode two bytes. Lets run it backwards and try minimum and maximum values:

base 58, maximum value with 3 characters zzz encodes three byte value: 0x02fa27

base 58, minimum value with 3 characters 211 encodes two byte value: 0x0d24


From this example alone we discover that we can not determine the length in bytes of the original value based just on the length in characters of the encoded string.


Modern addresses are now encoded with bech32 and represent Segregated Witness programs. The bech32 spec is defined in BIP173 and look like this: bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4

bech32 encoding does not use interpretation as big integers and instead maps input bytes more directly to output characters:

The data-part values:

  • 1 byte: the witness version
  • A conversion of the 2-to-40-byte witness program (as defined by BIP141) to base32:
    • Start with the bits of the witness program, most significant bit per byte first.
    • Re-arrange those bits into groups of 5, and pad with zeroes at the end if needed.
    • Translate those bits to characters using the table above.

As a result of the previous rules, addresses are always between 14 and
74 characters long, and their length modulo 8 cannot be 0, 3, or 5.
Version 0 witness addresses are always 42 or 62 characters, but
implementations MUST allow the use of any version.

So in summary, with a bech32 address you can determine the length in bytes of the input value based on the length in characters of the encoded string:

In bech32, each character represents 5 bits

trim – Mysql field delete all characters after 8th character

I have one field in a table that has a time as a value.

table name: sessions
column: time

For example


09:00:00 (this should be the correct time)





This table got messed up and I would like to clean it and keep only the 8 first characters of each row and delete everything that is after that.

Is there a way i can do this with a mysql command?


Map two input streams, one graphics objects and the other characters through Show

The question is how to sequentially execute Show with two streams of input. The first is graphics object stream and the second is a character stream for supplying labelling for the graphics. I tried

ss={{ListPlot(x1)},{ListPlot(x2),…};labelling={aa,bb,cc,dd….}; Map(Show(#1,PlotLabel->StringJoin(#2,”…”,”…”))&,{ss,labelling})

I tried both Map and MapThread to inconsistent results, i.e., works sometimes and not work some other times. It became consistent when I put the labelling elements into individual curly brackets, i.e., labelling={{aa},{bb},{cc},(dd)) Wonder why is this the case?

dnd 5e – How aware are Forgotten Realms characters of the underlying mechanics of the world?

I have read Are casters aware of spell slots?, but this question is aimed at the mechanics in general, not just spell slots

In our own world, there are millions of people working around the world trying to understand every detail of the world. We have distilled the most basic of physical laws into mathematical formulae, separated every element known to man in the tiniest of particles, measure every aspect of the world and have created experiments that are so delicate that the morning dew on the grass outside the testing facility can throw off results. We’ve even created a global infrastructure meant to share that information for the betterment of all.

Now, I might be overestimating the inquisitiveness of the inhabitants of Toril, but I would be surprised if the Arcane Scholars of Candlekeep or the Red Wizards of Thay or any other of the many academic groups in the Forgotten Realms aren’t investing a large amount of time into working out the mechanics of their world. Stuff like the damage a spell does or the amount of damage a kobold or gibberling can take or the increased potency of an Adamantite improved longsword or any other game mechanic. They might even be going into the deeper statistics of the world, like wanting to quantify how much better one fighter is compared to another, and end up figuring out the Strength/Dexterity/Constitution/Intelligence/Wisdom/Charisma abilities. And maybe, just maybe, they have stumbled upon clues that everything in Toril depends on random chance that a character can have limited impact on.

In our world, a lot of these details don’t really matter as much: it might improve our society in the long run by allowing us to create better technology, but we’re not really going to get better food by improving the accuracy of the Avogadro constant. However, in a magical world where a lot of things revolve around combat, knowing that Magic Missiles do up to 4 damage each and how many of these you’ll probably need to finish off that ogre can really mean the difference between life and death. And knowing just how strong each of your soldiers are and how much stronger each of them will get from that enchanted sword your court merchant bought from an adventurer can end up drastically changing the course of a war.

So I’m wondering: How aware of game mechanics are the NPCs of Toril, and especially the smarter ones who do the magical research or are in positions of power? Are they actively using this knowledge in their quest to improve the world? Is it even possible that someone created a compendium of the entire world that explains this in detail, and is selling this book to enterprising adventurers? And yes, I am alluding to the possibility of the Player’s Handbook being an in-game resource people can buy and read.

hash – Breaking Wifi password knowing its length of 8 [A-Z] alpha (upper-case) characters using Hashcat

I got the WPA handshake, now it’s turn to crack the password using Hashcat. First, I wanted to make a wordlist of passwords (A-Z) the length of 8, but Crunch (the tool in Kali Linux) said it will take 1TB of storage that I don’t have available, so I gave up that way. Is there any way to generate passwords (example: ABCDEFGH) and delete them after its use one by one, during the cracking process?

How long does it take to crack the password with i5-3320M CPU using Hashcat?
Is there any other way you recommend?