Categories
CMS Mastering Development Wordpress

hide pages for the page list for some user role

I need a way to make some pages not visible for 3 users role (editor, contributor, author) on the page list (edit.php?post_type=page). I think it is about permissions but i dont know how to do it. I tried to disable capabilities : edit_others_pages but it’s not exactly what i’m looking for. I need just to […]

Categories
Linux Mastering Development Ubuntu

No sound on Ubuntu 20.04

I recently upgraded to Ubuntu 20.04. After reboot audio is not working. I tried to reinstall pulseaudio and alsa but still not working: sudo apt-get install –reinstall alsa-base pulseaudio sudo alsa force-reload Still not working.

Categories
Ask Biology

adverse reaction during bp measurement [closed]

When my blood pressure is taken via an arm cuff, I feel strain and pressure on my heart to the point of almost fainting. My bp level drops tremendously, I incur palpitations, I become dizzy, weak, and short of breath. I need to perform a stress test, but can’t because of this bp measurement issue. […]

Categories
Apple User Help

How can I fix my iPad Magic Keyboard when everything works except the trackpad?

I’ve got the Magic Keyboard (the one with the hinge that holds the iPad Pro suspended in air above the number keys) and everything works except the trackpad. I can go into the settings app General > Keyboard > Hardware Keyboard and the brightness reacts when I slide the control. What can be done to […]

Categories
CMS Drupal Mastering Development

Trigger a Drupal behavior from another module in Javascript?

The block_ajax module defines a behavior in its module: https://git.drupalcode.org/project/block_ajax/-/blob/8.x-1.x/js/refresh_ajax_block_command.js I want to initiate this call every 60 seconds so the contents of the block can refresh if there is new data from my own script file. I tried two ways. The first way I tried was setting up a route for a simple controller […]

Categories
User Help Web Apps

Is there a better way to write this ifs statement?

I’m making a calculator for fun in relation to a Roleplay group of mine. Essential a certain number, to number, equals another number. However, the way I’m writing it seems inefficient as I have been writing each number one by one like so: =ifs(A13=1,-2,A13=2,-2,A13=3,-1,A13=4,-1,A13=10,3,len(A13)=0,A1) Where A13 is the cell where people input their numbers. I […]

Categories
Ask Engineering

Why is transistor needed when using a relay?

I will start building a relay based on this answer: https://electronics.stackexchange.com/a/464345/56969 Why is T1 needed? Every other component has an important purpose. But does T1 has an important purpose as well? Can I just remove it? What would happen if I remove that transistor? Edit I know Arduino cannot supply more than 40mA on each […]

Categories
Game Creation Mastering Development

How do I view a Source engine (Left 4 Dead 2) VTF?

I used to use Source a lot, but it’s been a long time. Now I want to look up some Left 4 Dead 2 textures for reference (Hard Rain’s water particles, mainly), but the tools I used to use don’t seem to have the same functionality as they used to, are broken or are new […]

Categories
Game Creation Mastering Development

Unity button tint

unity button tint allows me to give a few colors to different modes of the button: normal, highlighted, pressed, and selected colors. I want to fully disable the “selected” mode color, since whenever i click on the button, this just takes over the normal and highlighted colors (until i unfocus the button) How is this […]

Categories
Game Creation Mastering Development

Unity: URP – Artifacts in game view (Looks correct in scene view)

I have a transparent grid texture that I am displaying on a quad using the URP’s built in unlit/Transparent Shader. The intersections render as desired in the scene view, but have artifacting in the game view (even after play is pressed). Scene View: As you can see, the scene view renders clean intersections Game View: […]