How to convert logic gates to multiplexer in a circuit?

P

Pierre

In 'https://electronics.stackexchange.com/questions/527955/which-integrated-circuit-can-i-use-instead-of-multiple-mosfet']one of my previous questions[/URL], I wanted to know what integrated circuit I could use to replace my logic gates in the circuit below: 'https://i.stack.imgur.com/q45QP.png']
q45QP.png
[/URL]

The 'https://electronics.stackexchange.com/a/527957/229691']accepted answer[/URL] helps me to redesign my circuit and replace the gates by an integrated circuit.

However, a 'https://electronics.stackexchange.com/a/527960/229691']second answer[/URL] tickled my curiosity. It is said:


You can wire up a multiplexer to act as any of the standard gate types (AND, OR, NOT, etc.) It's pretty easy to find a quad 2:1 multiplexer chip, and that one chip should be enough to implement all the logic you've shown.

I tried to redesign my circuit using 2:1 multiplexers:

'https://i.stack.imgur.com/2TAdd.png']
2TAdd.png
[/URL]

The issue here is I'm using 2 different 2:1 multiplexers and I can't convert them into a 2 x 2:1 multiplexer. Indeed, the selector input is different for the two multiplexers and I'm not able to find a configuration with the same selector.

How can I redesign my circuit to use only one chip? Is there a method to convert logic gates to multiplexers?
 

Unreplied Threads

universal structures over $\mathcal A_g$

  • Aitor Iribar Lopez
  • Mathematics
  • Replies: 0
Over the moduli space of curves, $\overline{\mathcal{M}}_{g,n}$ there are several "natural" spaces like the universal curve, the universal Jacobian, the space of stable maps, the universal space of semistable bundles, the universal Quot scheme...

Is there some space of this form over $\mathcal A_g$ apart from the universal abelian variety, its $k$-fold products and the Poincare bundle?

You can't tell me the US lacks –

Empty crossword grid
Solve on Penpa+

Across
1. Wyoming national park managed only wee slot (11)
9. Florida public housing clerk in Springfield mart (3)
10. California city cops regularly dropped somewhere in Southeast Asia (4)
12. New Mexico inhabitant's article describing love for Christmas song (4)
13. South Dakota mountain area in poverty – hotel drowning in bills (5,5)
14. South Carolina region – endless terror! (5)
17. Colorado wants what starts seven geographical answers here, and that is disturbing (3)
18. California coastal area's mountains guarded by old nobleman east of Monterey (6,6)
21. West Virginia retreats given no promise (3)
23. California event, one of several hosted in 18 across, with classical art? (6)
27. Washington landmark described by Caucasian doctor on TV (5,5)
28. Delaware plantation has to create a new strategy (6)
31. Washington concerts finally happened (3)
32. California city's headed with bronco that's going wild (7,5)
34. Michigan's chief attends country club to see Australian runner (3)
38. Utah institute ultimately led by British savage (5)
42. North Carolina city's political party takes on debt, I hear (10)
43. Pennsylvania's once excellent museum initially displayed work of art (4)
44. Texas export found beyond southern land (4)
45. Georgia retired couple's stern and mature (3)
46. Rhode Island school is disgusting, shipping student to city on the Mexican border (11)

Down
1. Vegetables grown in the tropics coming up the fourth of this month (4)
2. Brazilian politician is fully upset after being interrupted by union leader (4)
3. Hide to strike the tragic king (4)
4. Weak breaking waves (4)
5. Part of Hong Kong that's very fashionable? Not entirely (4)
6. Exclusively covering legendary coat (4)
7. Louisiana city associated with Nollywood's #1 director, Christopher (5)
8. Metal ring gifted to partner (5)
11. Almost sick to intercept cry for help for Minutemen kept in these? (5)
15. Cameron who filmed someone shouting "Show me the money!" in fight inside church (5)
16. For example, goose's origin (3)
18. Up and down again (4)
19. Arrest in a criminal lair's starting (4)
20. Swimmer's partner has no right (4)
22. SHIELD agent caught villain in the end (4)
24. Chicago player is on constant amount of sugar (4)
25. Once more, perform or write a review? (5)
26. Sitting principals in school expecting silence (4)
29. Europeans beginning to come down mountains (5)
30. Point preceding King's decline (3)
32. Gets note in connection with hot tub toppling over (5)
33. German artist purred surprisingly when pressure was taken off (5)
35. Record group of people with shared characteristics in purposeful destruction (4)
36. Mysterious writer's accepted works lacking their initial character (4)
37. Egyptian deity is shown on top of its exact copy (4)
39. Enterprise counsellor dropping trou, primarily to get bread (4)
40. Ancient city situated atop a large mountain chain (4)
41. Blade is perplexed, not oddly (4)

Problemas com responsividade em landing pages

  • Android milhonario
  • Technology
  • Replies: 0
Estou fazendo alguns projetos em HTML e CSS e não estou conseguindo torná-lo responsivo para telas maiores, estou usando VW VH mas acaba que tenho que adicionar muita mídia e muitas variáveis. Também tenho problemas para colocar capacidade de resposta em telas horizontais. Você poderia me dizer repositórios de páginas de destino totalmente responsivas para eu revisar o código

Eu esperava que em telas de maior resolução o layout se adaptasse pois se adapta a 1080, mas mesmo colocando vários midea e colocando as unidades de medida em vw e vh é algo

Problema no push do git hub

Estou tentando adicionar um arquivo específico de uma pasta que contém vários arquivos, porém ao fazer o set-url ou git remote rm para adicionar o novo repositório remoto do git hub, e após o push, todos os arquivos que adicionei anteriormente em outros repositórios remotos vão junto com o último arquivo específico que adionei. Como resolver?

Erro ao instala o docker debian 12

  • Fábio Brasileiro
  • Technology
  • Replies: 0
Instalei o docker desktop com dando um:

Code:
sudo dpkg -i ./docker-desktop-4.30.0-amd64.deb

Até aí, tudo normal.

Foi a primeira vez que instalei, mas queria instalar o CLI do Docker Engine. Acho que é isso, sou meio novo nesse mundo. Segui a documentação e já procurei sobre os erros, mas não encontrei nada que me ajudasse. Alguém já pegou esse erro ou sabe por que isso está acontecendo? obs: Já desinstalei e instalei de novo para seguir os passos da documentação, mas agora nem consigo mais instalar o Docker Desktop. Segui esta documentação https://docs.docker.com/engine/install/debian/

Comando:

Code:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Erro:

Code:
[sudo] senha para fabiopc:
Sinto muito, tente novamente.
[sudo] senha para fabiopc:
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto
Note, a seleccionar 'moby-containerd' em vez de 'containerd.io'
O pacote docker-ce não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
  moby-cli:armhf moby-engine:armhf moby-cli:arm64 moby-engine:arm64 moby-cli
  moby-engine

O pacote docker-ce-cli não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
  moby-cli:armhf moby-cli:arm64 moby-cli

O pacote docker-buildx-plugin não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
  moby-buildx:armhf moby-buildx:arm64 moby-buildx

N: A ignorar o ficheiro 'teams.listsudo' no directório '/etc/apt/sources.list.d/' porque tem uma extensão inválida no nome do ficheiro
E: O pacote 'docker-ce' não tem candidato para instalação
E: O pacote 'docker-ce-cli' não tem candidato para instalação
E: O pacote 'docker-buildx-plugin' não tem candidato para instalação
E: Impossível encontrar o pacote docker-compose-plugin

Comando

Code:
 sudo service docker start
sudo docker run hello-world

Error:

Code:
Failed to start docker.service: Unit docker.service not found.
exec: "com.docker.cli": executable file not found in $PATH
Current PATH : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/fabiopc/Downloads

Filtrar DataFrame pandas com duas ou mais condições

  • Bernardo Lopes
  • Technology
  • Replies: 0
Estou criando um grafico com o dataset tips, para isso preciso filtrar os dados basedos em duas ou mais condições. Meu objetivo é contar a quantidade de homens, e a quantidade de mulheres. E tambem contar somente a quantidade de homens fumantes e a quantidade de mulher fumantes. O codigo abaixo faz isso mas ao adicionar mais condições dar erro. Como eu podeira fazer essa filtragem usando duas os mais condições?

Code:
import pandas as pd
import seaborn as sns

df = sns.load_dataset("tips")

men = df[df.sex=='Male'].count()[0]
women = df[df.sex=='Female'].count()[0]

# isso dar erro
men_smoker = df[df.sex=='Male' & df.smoker=='Yes'].count()[0]

Esse é o erro TypeError: unsupported operand type(s) for &: 'str' and 'Categorical'

DataFrame:

Code:
    total_bill  tip sex smoker  day time    size
0   16.99   1.01    Female  No  Sun Dinner  2
1   10.34   1.66    Male    No  Sun Dinner  3
2   21.01   3.50    Male    No  Sun Dinner  3
3   23.68   3.31    Male    No  Sun Dinner  2
4   24.59   3.61    Female  No  Sun Dinner  4

Transform modal Map

I'm making an addon that has some remapping of the keyconfigurations how would you guys edit the transform modal map trough coda I want Y axis to be overriden by SPACE and SHIFT + SPACE

These are the specific keys that I want to override:

enter image description here

Blockquote def add_keymap_items(clear_existing=True): if clear_existing: clear_keymaps()

Code:
wm = bpy.context.window_manager
kc = wm.keyconfigs.addon
if kc:  
    
    # Handling modal keymap changes
    km_transform_modal = kc.keymaps.get('Transform Modal Map')
    if km_transform_modal:
        # Add a modal keymap item for Y axis constraint during translation
        kmi = km_transform_modal.keymap_items.new_modal('CONFIRM', 'SPACE', 'PRESS')
        kmi_props = kmi.properties
        kmi_props.name = 'axis_y'
        addon_keymaps.append((km_transform_modal, kmi))
    else:
        print("Modal keymap 'Transform Modal Map' not found")

    km_edit_mode = kc.keymaps.new(name='Mesh', space_type='EMPTY')
    # LOOP CUT
    kmi = km_edit_mode.keymap_items.new(HP_OT_loopcut.bl_idname, type='R', value='PRESS', ctrl=True, shift=False)
    addon_keymaps.append((km_edit_mode, kmi))

    # SMART PUSH AND SLIDE
    kmi = km_edit_mode.keymap_items.new(HP_OT_PushAndSlide.bl_idname, type='G', value='PRESS', ctrl=False, shift=True)
    addon_keymaps.append((km_edit_mode, kmi))

    kmi = km_edit_mode.keymap_items.new('mesh.select_prev_item', type='WHEELOUTMOUSE', value='PRESS', ctrl=False, shift=True)
    addon_keymaps.append((km_edit_mode, kmi))

    kmi = km_edit_mode.keymap_items.new('mesh.select_next_item', type='WHEELINMOUSE', value='PRESS', ctrl=False, shift=True)
    addon_keymaps.append((km_edit_mode, kmi))
    
    kmi = km_edit_mode.keymap_items.new('mesh.loop_select', type='LEFTMOUSE', value='PRESS', ctrl=False, shift=False, alt=True)
    addon_keymaps.append((km_edit_mode, kmi))
    
    kmi = km_edit_mode.keymap_items.new('mesh.edgering_select', type='LEFTMOUSE', value='DOUBLE_CLICK', ctrl=False, shift=False, alt=True)
    addon_keymaps.append((km_edit_mode, kmi))
Top