Counting vowels in Lisp

Trying to get better in Lisp, I came across the following problem: (defun countVowels (string) (setf vowels (list ‘a 0 ‘e 0 ‘i 0 ‘o 0 ‘u 0)) (loop for ch across string when (member ch vowels) do (incf (getf vowels ch))) (format t “~{~a~^, ~}” vowels)) In my opinion, this counts every vowel by … Read more

Agda: Getting question mark symbols after compiling file

I installed Agda and Im using VSC to load files, but I have an error when I try to load a saved file. The file open and displays correctly, but when I load it seems that some unicode characters conver to “?”. Before loading file: After loading file: See answer here stackoverflow.com/questions/30082741/… except select “Reopen … Read more

ERROR: Directory ‘\\’ is not installable. Neither ‘setup.py’ nor ‘pyproject.toml’ found. when trying to install Airflow

I’ve been trying to install airflow following their guide, I already set up te environment but when I try to install it this error appears: “ERROR: Directory ‘\’ is not installable. Neither ‘setup.py’ nor ‘pyproject.toml’ found.”. I used the following command: py -m pip install ‘apache-airflow==2.8.1’ \ –constraint “https://raw.githubusercontent.com/apache/airflow/constraints-2.8.1/constraints-3.11.txt” 3 I think it is caused … Read more

How can I query a dictionary in a database table to filter for rows given a constant?

I have the following database table, let’s call it features: id date info 1 2024-02-15 {‘ccy’:’CHF’, ‘mic’:’blvd’, ‘market_type’: 56} 2 2024-02-15 {‘ccy’:’AUD’, ‘mic’:’kkl’, ‘market_type’: 33} .. I would like to filter the rows where the market_type is not in a given list. Let’s say the list is [1,2,3,4,56] My query reads something like this: select … Read more

How to create a dynamic attendance google sheet per month without the need to create another tab every month?

Help please! Currently When I change the month the date only changed the data remains from previous month. Here is the google sheet link for reference https://docs.google.com/spreadsheets/d/1JArwx1pQq8BfsdKwL_DDjGQnzZEUM5Q4zEKa83StwMg/edit?usp=sharing I want to create an attendance sheet that once I change the new month in Cell 5 the data from D to AH will automatically save and clear … Read more