How to set Tailwind drawer sidebar position “fixed”

I am trying to fix the sidebar which is floating left. Even though I use “fixed” the side bar is not fixed. Below is my sidebar code. import { NavLink } from ‘react-router-dom’ import routes from ‘./SidebarRoutes’ const LeftSideBar = () => { return ( <div className=”drawer-side ml-12 h-80 rounded-box mt-36″> <label htmlFor=”left-sidebar-drawer” className=”drawer-overlay”></label> <ul … Read more

identifier is undefined but code compiles

I have a very simple program. main.cpp: #include “io.h” int main() { int firstNumber {readNumber()}; int secondNumber {readNumber()}; writeAnswer(firstNumber + secondNumber); } io.cpp: #include “io.h” #include <iostream> int readNumber() { int returnValue{}; std::cout << “Please enter an integer: “; std::cin >> returnValue; return returnValue; } void writeAnswer(int sum) { std::cout << “The result is: ” … Read more

Error during Android build: iproute yacc issue

I get the error while building the AOSP source code: POSIX Yacc does not support %name-prefix [-Wyacc] more detail: 10 | %token-table | ^~~~~~~~~~~~ external/iproute2/tc/emp_ematch.y:11.1-14: warning: POSIX Yacc does not support %error-verbose [-Wyacc] 11 | %error-verbose | ^~~~~~~~~~~~~~ external/iproute2/tc/emp_ematch.y:11.1-14: warning: deprecated directive: ‘%error-verbose’, use ‘%define parse.error verbose’ [-Wdeprecated] 11 | %error-verbose | ^~~~~~~~~~~~~~ | %define … Read more

how to get return value of process called with windows’ “start” cmd command?

in my python script i have several threads calling an application with subprocess like this: arguments = [“start”, “/min”, “/w”, “program”, “prog_argument_1”, “prog_argument_2”, “etc”] proc = subprocess.run(arguments , text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) i am calling the program with “start /min /w” so each execution has its own cmd window and i can bring it up … Read more

_cblas_sgemm$NEWLAPACK while running mlx mistral example

System details : Sonoma 14.2.1 xcode-select version 2405 I am trying to run the default example provided by mlx-examples directory. python mistral.py –model_path Mistral-7B-Instruct-v0.2/ –prompt “My name is” I am getting the following error : ImportError: dlopen(/opt/homebrew/anaconda3/envs/language_models_env/lib/python3.10/site-packages/mlx/core.cpython-310-darwin.so, 0x0002): Symbol not found: _cblas_sgemm$NEWLAPACK Referenced from: <F6C66D71-1323-3E71-9C97-70DC2D75278D> /opt/homebrew/anaconda3/envs/language_models_env/lib/python3.10/site-packages/mlx/lib/libmlx.dylib Expected in: <70C4EEC6-ACCF-3E75-804C-659DD8DA930F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate It is looking for Accelerate … Read more

Why the ip address of my virtual centos server get changed after reboot. what is the exact procedure to set it permanently? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a … Read more

Page doesn’t reload while alert is present

When I try to reload page from browser it will close alert message, but next the one will appear. Therefore, I can never reload the page. Page minimal example: <script type=”text/javascript”> alert(1); </script> <body> 12312312313123 </body> <script type=”text/javascript”> function alertLOL(){ alert(“LOL”) alertLOL(); return; } alertLOL(); </script> Does anyone know how to resolve this issue? On … Read more

Display a blob image

I work on a react project and I have login and register operations. In the register page I have a form which contains several inputs: name, email, profile image url, password and repeat password. Now, the profile image url input is not required and that is why I want the app to randomly pick and … Read more

SMTP authentication issue with Python – Error 535: Username and Password not accepted

I’m encountering an issue while running a Python script (test_smtp.py) that involves SMTP authentication with Gmail. The specific error message I’m getting is: Error: (535, b’5.7.8 Username and Password not accepted. For more information, go to\n5.7.8 https://support.google.com/mail/?p=BadCredentials w14-20020adfee4e000000b0033609750752sm6314914wro.8 – gsmtp’) Here’s the content of the test_smtp.py script: import smtplib from email.mime.text import MIMEText from email.mime.multipart … Read more