Categories
User Help

In Excel, how do i check if cell contains at least twice the same character from a list

I have a list: "2","3","4","5","6","7","8","9","A","K","J","Q","T" Then I have cells: 6s 3d 3c yes (2) 6s 3s 2d no 6s 3s 2s no 2s 2d 2c yes (3) ….. I want to check if the cell A6 (here 6s 3d 3c) contains at least 2 times the same character from the list above and returns yes […]

Categories
Mastering Development

Python numpy groupby multiple columns

Is there a way to make a group by aggregation by multiple columns in numpy? Im trying to do it with this module: https://github.com/ml31415/numpy-groupies Goal is to get a faster groupby than pandas. for example: group_idx = np.array([ np.array([4, 3, 3, 4, 4, 1, 1, 1, 7, 8, 7, 4, 3, 3, 1, 1]), np.array([4, […]

Categories
User Help Web Apps

Case statements in SWITCH statements in Google Sheets

I’m updating a Google Sheet. In that Google Sheet, I need to display a student’s grade based on specific cut offs. I thought a SWITCH statement would be the correct approach. However, based on that documentation, it looks like the case statements are mappings instead of conditionals. This seems incorrect. I feel like I’m misunderstanding […]

Categories
Arduino Ask Engineering

Send custom HID values instead of keys

I’ve been building a small macro keypad based on the ATmega32U4. So far, I’ve been able to send standard key presses to the host. But since I want a program on the host system to react to the key presses, I only send the keys to serial to avoid typing anything. For now, this does […]

Categories
Mastering Development

Gettng the indexes of items and putting the indexes in a different array

I am specifically wondering why this solution does not work. You are supposed to create a function that returns the indices of all occurrences of an item in the array. Given the array [‘a’, ‘a’, ‘b’, ‘a’, ‘b’, ‘a’] I am wanting to find all the indexes of the element ‘a’, and put it in […]

Categories
User Help

ls: cannot access ‘/sys/bus/pci/devices/0000:02:02.0/driver

problem description: After kolla-ansible running this role https://github.com/openstack/kolla-ansible/blob/stable/stein/ansible/roles/ovs-dpdk/tasks/config.yml with script https://github.com/openstack/kolla-ansible/blob/stable/stein/tools/ovs-dpdkctl.sh it raise below error Oct 25 13:36:08 k-node1 ovs-dpdkctl[119763]: ++++ crudini –get /etc/kolla/ovsdpdk-db/ovs-dpdkctl.conf ovs port_mappings Oct 25 13:36:08 k-node1 ovs-dpdkctl[119763]: +++ for nic in ‘$(get_value ovs port_mappings | tr ‘\”,’\” ‘\”\n’\” | cut -d : -f 1)’ Oct 25 13:36:08 k-node1 ovs-dpdkctl[119763]: +++ echo […]

Categories
Mastering Development

sorting along multidimensional index in numpy

I have a three dimensional array, that I need to sort. I also have a 2 dimensional index that I got with a lexsort that I would like to use for sorting. I cannot find how to apply the index to the array without extra dimensions sprouting up… import numpy as np a = np.array([ […]

Categories
Mastering Development

How do I update a table inside a python interface on Tkinter with input?

I am developing a python interface with login and an information table, but I found an obstacle that is preventing me from moving. I have tried to make the user able to modify (or update) a data table. At first I thought I would just need to give the row id and the chosen column […]

Categories
User Help Web Apps

Case statements in SWITCH statements in Google Sheets

I’m updating a Google Sheet. In that Google Sheet, I need to display a student’s grade based on specific cut offs. I thought a SWITCH statement would be the correct approach. However, based on that documentation, it looks like the case statements are mappings instead of conditionals. This seems incorrect. I feel like I’m misunderstanding […]

Categories
Android User Help

What happened to my dotted underline in the keyboard suggestion strip?

I’ve recently upgraded my phone, and have mostly managed to get the keyboard back to how it was, with one exception. When I used glide typing before on my old phone (AOSP keyboard), the middle word in the suggestion strip had a dotted line underneath that allowed me to long-press on a suggestion (‘be’, ‘a’, […]