Not for pythonicism, but out of curiosity, I quickly made up a benchmark and compared three variants:
My version I currently use in a web stats backend
Something I found in a C++ SO post (https://stackoverflow.com/questions/45225089)
Is #2 on steroids: Roll out bit by bit. And it's the fastest one, at least on my machine (i7-12700, Python 3.13).
from datetime import datetime as dt
# This is my version currently in use (31 is to fit cnt2)
def cntz(i):
if i == 0: return 31
z = 0
while i > 0 and i & 1 == 0:
z += 1
i >>= 1
return z
# The C++ one from https://stackoverflow.com/questions/45225089,
def cntz2(i):
z = 0
if i & 0xFFFF == 0:
z += 16
i >>= 16
if i & 0xFF == 0:
z += 8
i >>= 8
if i & 0xF == 0:
z += 4
i >>= 4
if i & 0x3 == 0:
z += 2
i >>= 2
z += (i & 1) ^ 1
return z
# My try: Unroll it bit-by-bit. Stops at 23 to fit the 10M test
def cntz3(i):
if i & 0x00000001: return 0
if i & 0x00000003: return 1
if i & 0x00000007: return 2
if i & 0x0000000f: return 3
if i & 0x0000001f: return 4
if i & 0x0000003f: return 5
if i & 0x0000007f: return 6
if i & 0x000000ff: return 7
if i & 0x000001ff: return 8
if i & 0x000003ff: return 9
if i & 0x000007ff: return 10
if i & 0x00000fff: return 11
if i & 0x00001fff: return 12
if i & 0x00003fff: return 13
if i & 0x00007fff: return 14
if i & 0x0000ffff: return 15
if i & 0x0001ffff: return 16
if i & 0x0003ffff: return 17
if i & 0x0007ffff: return 18
if i & 0x000fffff: return 19
if i & 0x001fffff: return 20
if i & 0x003fffff: return 21
if i & 0x007fffff: return 22
if i & 0x00ffffff: return 23
return 31
input = range(10000000)
for f in [cntz, cntz2, cntz3]:
t0 = dt.now()
output = list( f(_) for _ in input )
print(f'{(dt.now()-t0).total_seconds():.3f} {output[:33]}')
Output
1.797 [31, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5]
1.917 [31, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5]
0.873 [31, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5]
I just ran into this issue and I didn't want to delete .idea or do a full invalidate and restart because I was in a hurry. What ended up working was File > Repair IDE
Maybe a newer option? don't know if this was available when the question was first asked.
The stack trace lead me to find out that the client sending a plain text message crashed the thread. Adding a try-catch
statement fixes this problem. As the commenter said, I should never use catch (Exception ignored) {}
in my script, unless absolutely needed.
The TSkLabel
has a Word
property where you must set the Cursor
property on:
Or with code, you can set it like this:
SkLabel1.Words.Items[0].Cursor := crHandPoint;
This method has been invalid since Windows 11 24H2.
Been barely technical, when you "reverse" something, it is always relative to a reference point. I your code example, the reference point (pivot) is the middle of the array, so you can think like your algorithm is doing a 180° flip over the central point of the array.
But this is not the only way to "reverse" a list/array/tuple, this is just a very efficient way to do it. But you can choose to use you first item as your reference point; in that scenario your algorithm will need to iterate the full array and depending on your implementation, maybe doing something more, but essentially, you will need every item to be repositioning to index * -1
struct ContentView: View {
var body: some View {
NavigationSplitView() {
List{
Text("Menu1")
}
} detail: {
Text("Detail")
}.tint(.red)
}
}
It turns out that it wants you to open the Flow checker on that same overview page, not the flow editor page. You'll see it has a red badge on the overview page:
Opening the Flow checker from there reveals the "problem":
In this case, there is no problem, the flow was intentionally turned off.
I was looking for something similar a couple of days ago, tmate seems abadonware, other solutions like rustdesk weren't what i was looking for... so i wrote this:
oh I did something similar. Launched template with json worked fine and aws cli returned image ID right. However, when I created auto scaling group, it returned an error saying that the image ID is not an integer. I think there is something wrong in the conversion and resulting in python error. Anybody knows how to fix it?
I am having the same problem as of today. Try in Firefox where it did work for me.
It didn't work in any chromium browser that I tried: Chrome, Chrome android, Brave, Brave Android and Vanadium (android). It did work in Firefox mobile.
You said: Ok. Thank you, but I didn't know that an assembly program could crash silently. Is there any way I could detect silent errors like this in the future?
Yep—on Windows a crashing console program can look “silent” because the window closes fast and you miss the error. It wasn’t silent, though: you hit an unhandled exception (0xC0000005 access violation) and the OS terminated the process.
Here are practical ways to catch this immediately next time:
yourprog.exe & echo Exit code: %ERRORLEVEL%
You’ll see 3221225477
(= 0xC0000005
) for an access violation.
WinDbg: windbg -o -G yourprog.exe
(breaks exactly at the faulting instruction).
Visual Studio: Debug → Start Debugging (or attach).
x64dbg also works well for MASM binaries.
extrn DebugBreak:proc
sub rsp, 40
call DebugBreak ; debugger will break here if attached, or you can attach now
add rsp, 40
See the crash in Event Viewer
Event Viewer → Windows Logs → Application → “Application Error” entry will show the exception code and fault address.
Install a handler to log before exit
In x64, classic SEH frames aren’t written by hand; instead use a Vectored Exception Handler:
Call AddVectoredExceptionHandler
to register a callback that logs the exception code / RIP and maybe calls ExitProcess
.
(This is simpler than authoring x64 SEH unwind info in MASM.)
.cmd
you double-click:@echo off
yourprog.exe
echo Exit code: %ERRORLEVEL%
pause
.data
) instead of writing to address 0. If you want to test crashes, deliberately jmp
into int 3
or ud2
(illegal instruction) so the debugger catches it clearly.These habits—run from a console, watch %ERRORLEVEL%
, and use a debugger with first-chance exceptions—will make “silent” faults obvious.
I moved a .NET Framework MVC Project to my personal laptop. Had same problem. Then tried to create a new project and VS2022 threw exactly this error. Then i reinstalled VS2022 completely. Visual Studio Installer > Visual Studio 2022 > Repair. And i closed OneDrive sync completely, because IIS Express config folder in Documents folder. Maybe it was trying to reach OneDrive Documents folder. Now it is completely working.
In Domain-Driven Design (DDD), the choice between modeling something as an Entity or a Value Object hinges on whether it has an intrinsic identity that persists over time (Entity) or if it's purely defined by its attributes and can be treated as immutable and replaceable (Value Object). You're right that Entities have continuity through an ID (e.g., even if attributes change, it's the "same" thing), while Value Objects are equal if their values match, and they're often immutable.For your case—storing an employee's past salaries in an employeeSalaries table and displaying them as a list—let's break it down step by step to help you decide. I'll focus on practical implications, including domain modeling, persistence, and usage.
Step 1: Analyze the Domain Semantics
What does a "salary" represent here? It's likely a historical record of an employee's compensation at a given time, e.g., attributes like amount, currency, startDate, endDate, reasonForChange (if any). These are descriptive and tied to the employee.
Does it have independent identity? Ask: If two salary records have identical attributes (e.g., same amount, dates), are they interchangeable? Probably yes—they describe the same "fact" about the employee's history. You wouldn't care about distinguishing them beyond their values.
Lifecycle and mutability: Past salaries are historical facts; they shouldn't change once recorded (immutable). If a salary needs "updating," you'd likely add a new record rather than modify an old one (e.g., for corrections or adjustments). This leans toward Value Object.
Relationships: Salaries belong to an Employee (an Entity). They're not standalone; they're part of the Employee's aggregate. In a list display, you're just showing a chronology of values.
If the answer to "Does this thing need to be tracked uniquely over time, even if its attributes change?" is no, it's probably a Value Object.
Step 2: Practical Considerations for Your Scenario
Display as a list: This sounds like a read-only view of historical data. Value Objects work well here because you can treat the list as a collection of immutable structs. Equality checks (e.g., for duplicates) would be based on values, not IDs.
Database storage (employeeSalaries table):
Even if you use a separate table, that doesn't force it to be an Entity—that's an implementation detail. Value Objects can be persisted in normalized tables (e.g., with a foreign key to the Employee ID) for efficiency, especially for large histories.
If it's a Value Object, you might not need a surrogate ID (auto-increment) per row unless required for ORM tooling or querying. Instead, a composite key (e.g., EmployeeID + StartDate) could ensure uniqueness.
If you foresee needing to reference a specific salary record elsewhere (e.g., linking to audit logs, bonuses tied to a exact salary period, or updating metadata like "approval date"), an ID might be useful—pushing toward Entity.
Common pitfalls in practice:
Over-entity-izing: Many devs default to Entities for everything with a table row because ORMs (like Hibernate or Entity Framework) make it easy with IDs. But this can lead to anemic models where everything has an ID but no real identity matters.
Immutability enforcement: Value Objects encourage better design by making things immutable, reducing bugs from accidental mutations.
Performance/Queries: For lists, Value Objects simplify queries (no need for extra joins if embedded, but since you're using a separate table, it's fine either way).
Step 3: Pros and ConsHere's a comparison to help weigh it:
AspectValue Object ApproachEntity ApproachIdentityNo ID needed; equality by attributes (e.g., amount + dates).Requires an ID (e.g., UUID or auto-increment); equality by ID.MutabilityImmutable by design—create new ones for changes.Can be mutable, but you'd still version history.Domain FitGreat for descriptive, historical data like salaries.Better if salaries have their own lifecycle (e.g., approvals, revisions).Code Exampleclass Salary { BigDecimal amount; LocalDate start; ... } (in Employee's collection).class SalaryEntity { UUID id; BigDecimal amount; ... } (repository for CRUD).PersistenceStore in table with FK to Employee; optional composite key.Store with PK ID + FK; easier for relations if needed.ProsSimpler model; encourages immutability; easier equality/comparison; less boilerplate.Easier to reference/update individually; fits if auditing or linking required.ConsHarder to reference a specific instance if needs arise later; might need to refactor if domain evolves.Adds unnecessary identity if not needed; can bloat model with IDs everywhere.When to ChooseIf salaries are just "values over time" for display/history.If you need to track changes to the salary record itself (e.g., "this salary was adjusted due to error").
RecommendationBased on what you've described (historical list for display, no mention of complex operations like individual updates or references), model employeeSalaries as Value Objects. Embed them as a collection within the Employee aggregate. This keeps your domain model clean and focused on the business meaning—salaries are attributes of the employee's history, not independent "things" with lifecycles.
Implementation Tip: In code (assuming something like Java/C#), make Salary a record/class with equals/hashCode based on all fields. In the database, use a separate table for scalability, but treat it as serializing the Value Object collection.
If things change: If you later need to add features like attaching documents to a specific salary or auditing changes to the record (not the salary value), you can evolve it to an Entity. Start simple.
If this doesn't match your domain (e.g., if salaries involve more behavior or relationships), provide more details like the full attributes or use cases, and I can refine this!
Have you found a solution mate?
would be very interested in the api call you are doing.
Apreciate your response, because I read overpass, nominatim, osm - no idea what and how to use...
Any Help really appreciated.
Thought it should be possible to just make an API call containing countrycode and postcode, to get a list of cities, but without google api it seems impossible.
it's a matter of package stacks, says the original stacks engineer...
cause is found a package qrcode of some type, we know it has one that doesn't recognize QRCode as an object. so first make sure you've the PIL version, not qrcode.django, etc.
so install/reinstall as likely out of date as when I went make an image I just had the same error, been about 5 years since writing code, so you'll have to update these (UNINSTALL/INSTALL) is the deepest. whatever OS or IDE you're using
PIL (pilllow)
jinja2
qrccodes
pypng
pillimage
oh and you may have to make those 'trusted' installs. More than likely have to use something like
pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org Pillow
and Poof, the house of cards begets a static card.
https://bead.llc/firebrands.watch.gentransq.
Though any interest and I'll put up a free interactive web script to make these for everyone for free on BEAD.LLC
Both clang and gcc incorrectly showed support of that instruction on client CPUs phoronix.com/news/Intel-Compilers-No-CLDEMOTE
"That compiler enablement work was originally submitted years ago by Intel engineers but turned out to be inaccurate. This slipped under my radar too but when checking tonight on my Arrow Lake systems, CLDEMOTE support is indeed not advertised by the processor"
It's better to use a guard for actual access control (block private routes if not logged in).
Use layout components (AppLayout, PublicLayout) for structural differences (topbar vs no topbar).
Avoid keeping route state logic (isPublicRoute) in AppComponent — it’s better in a guard/service/layout.
Use ChatGpt, will answer you better!!!
It's really sad that the modern state of web development has no answer for this question that I've seen asked since at least 2015.
I found the setting I needed here:
Vim: Handle Keys
Delegate certain key combinations back to VS Code to be handled natively.
Settings > "Vim handle" > Edit in settings.json
Add "<C-k>": false
to the list of vim.handleKeys
Check out MoroJs- 46% faster than fastify and salves this issue. https://morojs.com/docs
we found the same problem on the test bench. Occurs only if the target table is empty. For the null case, we simply added the null processing above the method call.
Just add this document.security = [{ bearer: [] }]
after creating the Swagger document.
There is no need to add @ApiBearerAuth to every controller.
const config = new DocumentBuilder()
.setTitle('API Documentation')
.setVersion('1.0')
.addBearerAuth()
.build();
const document = SwaggerModule.createDocument(app, config);
// ✅ Apply bearer globally
document.security = [{ bearer: [] }];
Use an Extension (Practical Approach)
Visual Studio enables extensions to offer personalized syntax classification. You can install or develop an extension that emphasizes only const in a different way.
The most common method involves creating a Classifier Extension (utilizing MEF) that aligns with the text const and implements a new classification style.
Example: Extensions like Roslyn Syntax Highlighting or custom highlighters can do this.
https://github.com/google/adk-python/issues/2798
This link has solutions to this question.
This feature was added in XlsxWriter v3.2.6.
As user2357112 said, the answer is you can't do this in python. After doing some research I couldn't find any way for it to work. using a string of a memory location and building a new object of the same type off of that.
You can actually try:
volatile const int num=5;
int *pNum=(int*)#
*pNum=40;
std::cout<<num<<endl;
You can try the app Zone Share.
The issue was with your EntitySetName property, when calling the API in BC it does not use EntityName but instead it uses EntitySetName
e.g. {{baseurl}}/v2.0/{{tenantId}}/{{environment}}/api/<api publisher>/<api group>/v2.0/companies({{companyId}})/PunchoutReceiver
use this instead
{{baseurl}}/v2.0/{{tenantId}}/{{environment}}/api/<api publisher>/<api group>/v2.0/companies({{companyId}})/PunchoutReceivers
Most likely the assigned role which should invoke the ECS Task doesn't has the permission for `ecs:RunTask`. But to find the exact route cause, you have to go to "CloudTrail > Event history" and then look for the corresponding RunTask event. In the detail view you will find the "errorMessage".
I added exporterPdfAlign: 'right' to columnDefs's column definition, then issue was fixed.
ex:
$scope.gridOptions = {
columnDefs: \[
{ field: 'name', displayName: 'Name', exporterPdfAlign: 'right' },
................
.
.
// Jvdroid-main: vishal
// Jvdroid-main:
//import speech_recognition as sr
//import pyttsx3
//import requests
//import json
//import re
//import webbrowser
//import os
//import subprocess
//import time
//import threading
//from gtts import gTTS
//import playsound
//import tempfile
//from tkinter import Tk, Label
//from PIL import Image, ImageTk, ImageSequence
//# === CONFIGURATION ===
//DEEPSEEK_API_KEY = "sk-or-v1-bd1fafaf02a2e79ee7b20sfdfac3a4bb9c10705b6d2d6be3aeb1268253b4c724"
// DEEPSEEK_API_URL = "https://openrouter.ai/api/v1/chat/completions"
// SERP_API_KEY = "f4e2c40724716d5c7dac9fb8717da4sdffsf7046fb9128683222909e87c44f"
//# Initialize TTS engine
// engine = pyttsx3.init('sapi5')
// engine.setProperty("rate", 180)
//# Initialize speech recognizer
// recognizer = sr.Recognizer()
// interrupt_event = threading.Event()
//# === Show GIF animation function ===
// def show_gif_animation(gif_path):
// def start_animation():
// def update_frame(counter):
// try:
// frame = frames[counter]
// gif_label.configure(image = frame)
// window.after(100, update_frame, (counter + 1) % len(frames))
// except Exception as e:
// print("❌ Frame update error:", e)
// global window, gif_label, frames
// window = Tk()
// window.title("Jarvis AI")
// window.configure(bg = "black")
// window.geometry("500x500+600+200")
//# window.geometry("1080x720+600+200")
// window.overrideredirect(True) # Hide window borders
// gif = Image.open(gif_path)
// frames = [ImageTk.PhotoImage(frame.copy().convert("RGBA")) for frame in ImageSequence.Iterator(gif)]
// gif_label = Label(window, bg = "black")
// gif_label.pack(expand = True)
// update_frame(0)
// window.mainloop()
// threading.Thread(target = start_animation, daemon = True).start()
//# Background listener thread for interruption
// def persistent_interruption_listener():
// with sr.Microphone() as source:
// recognizer.adjust_for_ambient_noise(source)
// while True:
// try:
// print("🎧 Listening for 'Jarvis stop' command...")
// audio = recognizer.listen(source, timeout = 2, phrase_time_limit = 3)
// said = recognizer.recognize_google(audio)
// print("🔈 Interruption Listener Heard:", said)
// if "jarvis stop" in said.lower():
// interrupt_event.set()
// engine.stop()
// print("🛑 Interruption triggered.")
// except sr.WaitTimeoutError:
// continue
// except sr.UnknownValueError:
// continue
// except Exception as e:
// print("🎧 Listener Error:", e)
// listener_thread = threading.Thread(target = persistent_interruption_listener)
// listener_thread.daemon = True
// listener_thread.start()
//# Speak Function with Hindi + Interruption support
// def speak(text, lang = "en", allow_interruption = True):
// interrupt_event.clear()
// print("🗣 Speaking:", text)
// if lang == "hi":
// try:
// with tempfile.NamedTemporaryFile(delete = False, suffix = ".mp3") as fp:
// temp_path = fp.name
// tts = gTTS(text = text, lang = 'hi')
// tts.save(temp_path)
// playsound.playsound(temp_path)
// os.remove(temp_path)
// except Exception as e:
// print("Error in Hindi TTS:", e)
// else: if not allow_interruption:
// engine.say(text)
// engine.runAndWait()
// return
// words = text.split()
// chunk = ""
// for word in words :
// if interrupt_event.is_set():
// print("🛑 Speech manually interrupted.")
// break
// chunk += word + " "
// if len(chunk) > 100000 or word == words[-1]:
// engine.say(chunk)
// engine.runAndWait()
// chunk = ""
// def listen():
// with sr.Microphone() as source:
// recognizer.adjust_for_ambient_noise(source)
// print("🎤 Listening...")
// audio = recognizer.listen(source)
// try:
// print("🔍 Recognizing...")
// query = recognizer.recognize_google(audio)
// print("You said:", query)
// return query
// except Exception:
// return None
// def clean_response(text):
// text = re.sub(r'\\n', ' ', text)
// text = re.sub(r'\n', ' ', text)
// text = re.sub(r'\r', '', text)
// text = re.sub(r'[*_`#>\[\]{}|]', '', text)
// text = re.sub(r'\\boxed', '', text)
// text = re.sub(r'\\frac', '', text)
// text = re.sub(r'\\sqrt', '', text)
// text = re.sub(r'\\textbf', '', text)
// text = re.sub(r'\\begin{[^}]+}', '', text)
// text = re.sub(r'\\end{[^}]+}', '', text)
// text = re.sub(r'\\[a-zA-Z]+\{[^}]*\}', '', text)
// text = re.sub(r'\s{2,}', ' ', text)
// return text.strip()
// def google_search(query):
// print(f"🔎 Performing Google search for: {query}")
// params = {
// "engine": "google",
// "q": query,
// "api_key": SERP_API_KEY,
// "num": 3
// }
//try:
// response = requests.get("https://serpapi.com/search", params = params, timeout = 5)
// data = response.json()
// snippets = []
// if "organic_results" in data:
// for result in data["organic_results"][:3] :
// if "snippet" in result:
// snippets.append(result["snippet"])
// print("🔎 Snippets Found:")
// for snippet in snippets :
// print("-", snippet)
// return snippets
// except Exception as e :
// print(f"❌ Google Search Error: {e}")
// return []
// def chat_with_deepseek(prompt) :
// headers = {
// "Authorization": f"Bearer {DEEPSEEK_API_KEY}",
// "Content-Type": "application/json",
// "HTTP-Referer": "https://your-site-or-project.com",
// "X-Title": "Jarvis Assistant"
// }
//data = {
// "model": "deepseek/deepseek-r1-zero:free",
// "messages": [
// {
// "role": "system",
// "content": "You are Jarvis, a helpful voice assistant. Respond clearly and briefly using the provided cont;ext."
// },
// {
// "role": "user",
// "content": f"Context: {prompt['context']}\n\nQuestion: {prompt['question']}"
// }
// ]
//}
//try:
// response = requests.post(DEEPSEEK_API_URL, headers = headers, data = json.dumps(data), timeout = 10)
// if response.status_code == 200:
// result = response.json()
// answer = result["choices"][0]["message"]["content"]
// print("🧠 AI Response:", answer)
// return clean_response(answer)
// else:
// print(f"❌ Deepseek Error: {response.status_code} {response.text}")
// return "Sorry, I couldn't get a response from the AI."
// except Exception as e:
// print(f"❌ Exception in Deepseek: {e}")
// return "There was a problem connecting to the AI."
// def rag_response(user_question):
// snippets = google_search(user_question)
// context = " ".join(snippets) if snippets else "No recent information found."
// prompt = {
// "context": context,
// "question": user_question
// }
//return chat_with_deepseek(prompt)
// def detect_language(text):
// for ch in text :
// if '\u0900' <= ch <= '\u097F':
// return "hi"
// return "en"
//# === MAIN ===
// def main():
// show_gif_animation("C:\\Users\\gaura\\Desktop\\Phucological article\\AI Animation.gif")
// speak("Hello, I am Jarvis. Say 'Jarvis' to activate me.")
// while True:
// print("🕒 Waiting for wake word 'Jarvis'...")
// wake_input = listen()
// if wake_input and "jarvis" in wake_input.lower():
// speak("Yes? What would you like me to do?")
// command = listen()
// if not command:
// speak("Sorry, I didn't catch that.")
// continue
// command_lower = command.lower()
// if any(word in command_lower for word in ["exit", "quit", "stop", "bye"]) :
// speak("Goodbye! Have a great day.")
// break
// elif "shutdown" in command_lower :
// speak("Shutting down the system.")
// os.system("shutdown /s /t 1")
// break
// elif "open chrome" in command_lower :
// speak("Opening Chrome.")
// chrome_path = "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
// subprocess.Popen([chrome_path])
// elif "search for" in command_lower or "google" in command_lower :
// search_query = command_lower.replace("search for", "").replace("google", "").strip()
// if not search_query:
// speak("What should I search for?")
// search_query = listen()
// if not search_query:
// speak("Sorry, no search query detected.")
// continue
// speak("Searching, please wait...")
// start = time.time()
// answer = rag_response(search_query)
// end = time.time()
// print(f"⏱ RAG time: {end - start:.2f}s")
// lang = detect_language(answer)
// speak(answer, lang = lang)
// elif "open folder" in command_lower:
// folder = command_lower.replace("open folder", "").strip()
// folder_path = os.path.join("C:\\Users\\YourUsername\\", folder)
// if os.path.exists(folder_path):
// speak(f"Opening folder {folder}")
// os.startfile(folder_path)
// else:
// speak("Sorry, I can't find that folder.")
// else:
// speak("Let me check, please wait...")
// start = time.time()
// answer = rag_response(command)
// end = time.time()
// print(f"⏱ RAG time: {end - start:.2f}s")
// lang = detect_language(answer)
// speak(answer, lang = lang)
// if _name_ == "__vishal __":
// if . www.comvishsl9738383.java.kombn main(wehayk.) j
**1**
.
Bhai iska password bata do email ka mujhe pata nahin aur meri 2 sal se band hai please khol do iskoBhai iska password bata do email ka mujhe pata nahin aur meri 2 sal se band hai please khol do isko
i had a similar problem, here is my fix: IIS Rewrite Rule for Lower Case URL's
check your web.config
file, make sure, if you do have a "enforce lower-case URLs" that you alter it, as I did. as this was what caused the WebResource.axd
file to not load.
Quick evaluate with Alt + Click
You can evaluate an expression right in the editor. Hover over it with your mouse and press Alt + Click to see the result.
In case anyone has this issue with auto imports enabled in nuxt 4, just import the type manually. This resolved the issue on my end.
Walmart gift cards are one of the most convenient and versatile ways to shop, save, or share with others. Whether you’re looking for the perfect present, a reward option, or simply a way to manage your own shopping, Walmart gift cards are a practical choice.
✅✅ Apply Now
A Walmart gift card is a prepaid card that can be used to purchase items at Walmart stores, Walmart.com, and even at Sam’s Club. Available in both physical and digital (eGift card) forms, it gives recipients the freedom to choose from thousands of products — groceries, electronics, clothing, household goods, and more.
Flexibility: Can be used in-store or online.
Variety: Perfect for buying everyday essentials or big-ticket items.
No Expiration: Walmart gift cards never expire, making them stress-free.
Great Gift Option: Simple yet thoughtful for birthdays, holidays, or rewards.
You can purchase them at Walmart stores, on Walmart’s website, or from authorized retailers. They’re available in custom amounts, allowing you to load the balance that fits your budget.
It’s easy to keep track of your balance online at Walmart.com, through the Walmart app, or by calling their customer service.
Walmart gift cards offer both convenience and flexibility, making them one of the most practical gift solutions available today. Whether you’re treating yourself or surprising someone else, a Walmart gift card ensures the freedom to choose exactly what’s needed.
turns out it was a problem with the draw color idk why but it worked when i tried setting the draw color to black before SDL_RenderClear()
I am also getting that error, and I believe it may be related to the data you are scraping. If it is a dynamically generated array and you are specifying specific data to scrape (i.e. defining the size of the df you are creating), the tensor module reports it as an error which may prevent acquiring the correct data. Look into how to allow a dynamic df, even if you are consistently getting the data you want with your current code.
firstOrNull()
is a Kotlin extension function that works on kotlin.collections.Iterable<T>
but productDetailsList
is a Java List<ProductDetails>
(from the Play Billing library).
Convert to Kotlin collection first
val firstProduct: ProductDetails? = productDetailsList
?.toList()
?.firstOrNull()
Missing categories.
android.intent.category.HOME
and android.intent.category.DEFAULT
For more information: https://developer.android.com/reference/android/content/Intent
🎁 Don’t miss your chance to join the Walmart Gift Card Giveaway! 🛒 With a free Walmart gift card, you can shop for groceries, electronics, clothing, and so much more—all without spending a dime. ✨ It’s simple, fun, and the perfect way to save while enjoying the products you love. 🔑 Enter today and unlock the opportunity to win big at Walmart! 🏆
Has there been any resolution to this? Have the same issues and it comes back as well.
Maybe you're packaging you dependencies wrong. for adding layer to the lambda function you should follow the below steps:
mkdir -p openapi/python && cd openapi/python
pip install openapi -t .
zip -r openapi.zip openapi/
then upload the zip. please confirm that this step is ok.
Got it working, I was using BO Id in place of client id, corrected it & it worked
As mentioned above, ARR_WORDS
is used internally in the definition of ByteString
and Text
. Since this question is specifically about profiling heap usage, I want to add the following. ARR_WORDS
is specifically pinned data, which is data that the garbage collector cannot copy and move to new blocks in order to compactify the heap.
This can cause heap fragmentation (i.e., lots of memory allocated for the heap, but not many live objects on the heap). I found this Well-Typed blog post to be extremely helpful in understanding how ARR_WORDS
can affect the heap: https://www.well-typed.com/blog/2020/08/memory-fragmentation
Here is my solution without using value_box
function of library(bslib)
library(bsicons).
title: "Count N" format: dashboard server: shiny
#| context: setup
library(shiny)
library(shinyWidgets)
library(tidyverse)
data <- tibble::tibble(a = c(1, 2, 3)) # The data should always be retrieved from a server when the dashboard starts later, that's why I need the server context
sliderInput(
inputId = "myValue",
label = "custom slider",
min = 1,
max = 50,
value = 30
)
#| title: "n1"
#| icon: "trash"
#| color: teal
textOutput("n1")
#| content: valuebox
#| title: "n4"
#| icon: pencil
#| color: teal
textOutput("n4")
#| content: valuebox
#| title: "n2"
#| icon: music
#| color: teal
textOutput("n2")
#| content: valuebox
#| title: "n2"
#| icon: music
#| color: teal
textOutput("n2")
#| content: valuebox
#| title: "Fixed Value: n3"
#| icon: "trash"
#| color: "danger"
textOutput("myFixValue")
#| title: "Dynamic Value Depends on Slider"
textOutput("myValueText")
#| context: server
n <- data |> nrow() |> as.character()
output$n1 <- renderText(n)
output$n4 <- renderText(paste0("my new value:", " ", n))
output$n2 <- renderText(n)
n3 <- 99 |> as.character()
output$myFixValue <- renderText(n3)
output$myValueText <- renderText({ input$myValue})
In addition to check the Security groups for both Loadbalancer and the ec2 instances, also you should make sure the the target group you defined for the ec2 instances listen on correct port. otherwise please give more data
Given that your payload structure implemented ("mutable-content": 1
in aps
and the image URL in fcm_options
) is directly aligned with the Firebase documentation, it's possible the issue lies on the client-side of your Flutter application.
This might shed some light: https://rnfirebase.io/messaging/ios-notification-images
Hi, I have the same problem as you, have you solved it?
I was getting the same run_results pattern. It seems like the reason is that in dbt cloud the dbt docs
command always runs last, so it overwrites the actual command you want the artifact from. To fix this, untick the "Generate docs on run" option.
An official method seems to be there now:
###################################################################################################
#### This configuration file allows a cron job to run only on one Linux instance in the environment.
####
#### The script "/usr/local/bin/test_cron.sh" will sort and compare the current instances in the
#### Auto Scaling group and if it matches the first instance in the sorted list it will exit 0.
#### This will mean that this script will only exit 0 for one of the instances in your environment.
####
#### The second script is an example of how you might use the "/usr/local/bin/test_cron.sh" script
#### to execute commands and log a timestamp to "/tmp/cron_example.log".
####
#### A cron example is setup at "/etc/cron.d/cron_example" to execute the script
#### "/usr/local/bin/cron_example.sh" every minute. A command is also run upon each deployment to
#### clear any previous versions of "/etc/cron.d/cron_example" by removing
#### "/etc/cron.d/cron_example.bak".
####
#### Note that for the first script to gather the required information, additional IAM permissions
#### will be needed to be added to a policy attached to the instance profile used by the instances
#### in the environment. The policy shown below will grant the access needed. Note that the default
#### instance profile for Elastic Beanstalk is "aws-elasticbeanstalk-ec2-role".
You have to disable the required action "Verify Profile" in the authentication settings. In the admin user interface, you can find the authentication settings in the left navigation bar. On the authentication page, you can access the required actions via the equally named header.
Found the solution:
${{ if eq(product, 'ProductA') }}:
I found the next elegant way in modern react
const [iover, toggleIover] = useReducer((prev) => !prev, false)
Well what's the linking error you are having?
You may refer to the example_glfw_opengl3/Makefile
but you probably already did as your Cmakefile seems generally sensible.
First of all take a look at the scaler. Keep in mind to scale the data persistent. Based on you non-scaled price you are running into the issue woth your high RMSE.
I would suggest a consistent scaling. You don't have to scale always the same - it depends on the use case. But this non-scaled Y results in the high value.
I’m currently working on a mental health services website (https://clvpsych.com/) and I want to make sure the design is not only functional but also supportive for users who may be experiencing stress, anxiety, or other challenges.
From a development and UI/UX perspective, what are the best practices to:
Improve readability and reduce cognitive overload?
Ensure color schemes and fonts are accessibility-friendly?
Simplify navigation for users who may feel overwhelmed?
Incorporate features that build trust and encourage engagement?
I’d appreciate advice, resources, or examples from developers who have worked on healthcare or wellness-related websites.
Now I’ve figured out what was going “wrong” — thanks for the valuable comments from user555045 and fuz!
Yes, this behavior is expected: on Haswell, IMUL
is issued only on Port 1, which aligns with the observed results and also matches what uiCA shows.
The root cause of the “strange” interference in the loop containing the ADD
instruction wasn’t the ADD
itself — it was the JNZ
. On Haswell, only one branch instruction can be taken per cycle, so two JNZ
instructions cannot be executed "simultaneously" from two loops. The JNZ
(macro-fused with DEC
) is issued on Port 6, and when Port 6 is enabled in Intel PCM, we can observe where the “missing” µOps are actually landing on the CPU.
Here are two loops running simultaneously on Hyper-Threaded cores:
; Core 0
.loop:
add r10, r10
dec r8
jnz .loop
; Core 1
.loop:
imul r11, r11
dec r8
jnz .loop
And the result is including Port 6:
Time elapsed: 998 ms
Core | IPC | Instructions | Cycles | RefCycles | PORT_0 | PORT_1 | PORT_5 | PORT_6
0 1.98 7115 M 3590 M 3493 M 1148 M 1944 K 1222 M 2371 M
1 1.00 3582 M 3589 M 3492 M 816 K 1193 M 593 K 1194 M
If I terminate the IMUL
loop on Core 1 and leave only Core 0 running with ADD
, then:
Core | IPC | Instructions | Cycles | RefCycles | PORT_0 | PORT_1 | PORT_5 | PORT_6
0 2.85 10 G 3643 M 3546 M 1132 M 1157 M 1175 M 3470 M
1 0.81 55 M 68 M 67 M 9157 K 8462 K 9094 K 6586 K
This explains everything (at least for me).
I was encountering a similar issue while using Portainer. I had pulled the image using the Docker command line but once I attempted to deploy the updated image Portainer threw the "access forbidden" error on the "/manifest" endpoint.
The solution was to add the registry to Portainer itself, rather than logging in through the Docker CLI.
See the Portainer instructions for adding a registry: https://docs.portainer.io/admin/registries/add
We can do this by divide and conquer, firstly sort the n lines in increasing order of slopes, then recursively find the upper envelop of first n/2 and last n/2 lines.
The combine step will require us to merge these upper envelops. They will only intersect at a unique point say x (why?), now all we have to do is find x. We can do it using two pointers, initialise them to the start of both upper envelop, now find the point of intersection of these lines say z, let u,v be their point of discontinuity in the envelop, if z<u and z<v return z else if z<u and z>v increment right pointer, else if z<v z>u increment left pointer else increment both pointers.
since the combine step takes O(n)
Time compleixty will be O(nlogn)
I know this is an old post, but someone might come across it like I did when having the same behaviour on a cPanel hosting server. In my case, I had forgotten that my domain was going through Cloudflare and they were caching my content to speed up performance. When you are entering a url for a resource that you are sure you have deleted and it still comes up, there's caching going on somehwere. That can be at the user (browser) level, hosting server level, or even at the domain level as it is if you use Cloudflare or something similar.
you can use free api for this
chek link:https://rapidapi.com/moham3iof/api/email-validation-scoring-api
Is this what you're looking for?
import re
s = "ha-haa-ha-haa"
m = re.match(r"(ha)-(haa)-\1-\2", s)
print(m.group())
This outputs
ha-haa-ha-haa
as expected
There is now a NuGet package that manages the registry for you to allow easy file extension association: dotnet-file-associator
There is now a NuGet package that manages the registry for you to allow easy file extension association: dotnet-file-associator
There is now a NuGet package that manages the registry for you to allow easy file extension association: dotnet-file-associator
One possible solution I am considering is to use pthread_self()
as a pthread_t
value that is guaranteed not to be one of the spun-off threads.
This is a known issue with the Samsung Keyboard (not Flutter and not your code).
The workaround is: set keyboardType: TextInputType.text
for all fields and use persistent FocusNode
s.
If none of the solutions here worked for you, here's what finally solved it for me: I discovered that "Emulate a focused page" was enabled in Chrome DevTools few months ago and forgot about it. I was using DevTools to debug the visibilitychange event, but DevTools itself was preventing the event from firing by emulating constant focus. Two hours of my life gone.
Did you get the solution?
Please share it, I am facing the same issue and not able to figure yout
When looking more into it, it seems like there was no requests on the web app for an extended time period, so the solution was to go :
web app -> config -> always on -> on
In Angular SurveyJS Form Library, a question is rendered by the Question component (question.component.ts/question.component.html). This component contains various UI elements. For instance, the component which render question errors, the header component which may appear above or under the main content and the component which renders the main question content.
When you register a custom question type and implement a custom renderer, you actually override the question content component.
Based on your explanation, I understand that you wish to customize the appearance of SurveyJS questions. If you wish to modify the appearance of SurveyJS questions, we suggest that you create a custom theme using the embedded Theme Editor. A custom theme contains various appearance settings such as colors, element sizes, border radius, fonts, etc.
If you cannot create 100% identical forms by using a custom theme, the next step to try is to modify the form CSS using corresponding API: Apply Custom CSS Classes.
Unfortunately, the entire question component cannot be overridden at the moment. If you plan to override the entire question component, take note that all SurveyJS question UI features will be unavailable; in particular, you would require to handle responsiveness and render question errors, etc. Please let me know if you would like to proceed with overriding the entire question component.
I suggest that you use default SurveyJS question types and align a question title on the left and introduce the space between the title and an input field by placing a question within a panel and specifying questionTitleWidth
. For example: View Demo.
Create a 1/18 scale commercialized figurine of the car in the picture, in a realistic style, in a real environment. The figurine is placed on a computer desk. The figurine has a transparent acrylic base, with no text on the base. The content on the computer screen is the Blender modeling process of this figurine. Next to the computer screen is a TAMIYA style toy packaging box printed with the original artwork.
You can add an additional hover delay in your settings.json file:
"editor.hover.delay": 2000,
It's not missing, you deleted it.
The file was in your .gitignore and you deleted your local, untracked copy. That's why it's not in git history. This is standard practice.
Your app still runs because Spring is loading config from somewhere else.
Look for application.yml in src/main/resources.
Look for a profile-specific file, like application-dev.properties.
Check your run configuration's VM arguments for --spring.config.location or -Dspring.profiles.active.
Recreate the file and move on.
Just had the same issue on dbt cloud. Seems like a bug to me.
I have recently made it working with using cookies where you send timestamp and mac in separate cookies and it works fine
Use MAX(CASE…)
with GROUP BY
.
OneHotEncoder(handle_unknown="ignore")
# as it is code
x_train, x_test, y_train, y_test = train_test_split(x,y, test_size=0.25, random_state=42)
When you used InMemoryUserDetailsManager, security stored not the user object itself, but UserDetails which was safe and serialization does not have necessary. However with JPA Auth Server objects that contain OAuth2Authorization use ser via jackson there is a problem that jackson does not trust that class custom user. Consequently leading to 2 approaches, i guess, jackson Mixin like
public abstract class UserMixin {
@JsonCreator
public UserMixin(@JsonProperty("username") String username,
@JsonProperty("password") String password) {}
}
then in your config class register that Mixin. Second (much easier) add constructor to requered fields with @JsonCreator to your costr. and for every parameter @JsonProperty
have you tried to use sql mock ?
pgAdmin doesn't create PostgreSQL servers, it provides a GUI to access and manage them, which is why you don't see a "create server" button - such a button existed in earlier versions but was poorly named.
Server groups are folders to organise your registered connections.
To add an existing server, right click your server group of choice, then "Register > Server...", and enter the connection details.
Some installations of pgAdmin may come bundled with a PostgreSQL server too, in which case you will have likely configured this server and set the credentials during installation. Alternatively, you may want to run your server through Docker, a VPS, or a managed Postgres hosting service, then register it in pgAdmin.
I managed to come up with a solution, AWS ElastiCache seems like it doesn't support localhost so I ran the api with a docker container so we can setup valkey, and it works like a charm, it also didn't affect the deployed api which is great.
Here is an alternative method of showing that this generates a uniform distribution of permutations.
Given a certain sequence of randint calls for Fisher-Yates, suppose we got the reversed sequence of calls for our modified algorithm.
The net effect is that we perform the swaps in reverse order. Since swaps are self-inverse, it follows that our modified algorithm produces the inverse permutation of the Fisher-Yates algorithm. Since every permutation has an inverse, it follows that the modified algorithm produces every permutation with equal probability.
(Incidentally, since rand() % N is not actually equiprobable (though the error is very slight for small N), this shows that both the standard FIsher-Yates algorithm and the modified algorithm are equally "bad", in that the set of probabilities for permutations is identical to each other (though this still assumes the PRNG is history-independent, but that's also not quite true).)
I was in a similar situation when I was skeptical about sharing my code. So before sharing my code I wanted to create another copy or create a copy of my repo with code. So below are the steps I followed.
Create a copy of the project in your local file system
Then go inside the project folder and manually delete the .git and the associated git folders
Now open the project in Visual Studio.
The from the bottom right extensions add the project to Git Repository and create a new Repository
Writing up what worked for me in the end, in case it helps anyone. It's probably obvious to people familiar with Doxygen, but it wasn't to me. Many thanks to @Albert for pushing me towards bits of the Doxygen documentation that I didn't know were there!
I have a file Reference.dox and the INPUT tag in my doxyfile points to it. In it I have:
/*! \page REFDOCS Reference Documents
Comments in the code refer to the following documents:
...
*/
There are various possibilities for the "..."
1. \anchor
\par My copy of the Coding Guidelines
\anchor MISRA
\par
Hard-copy version is on Frank's desk.
This works. The Reference Documents page has the title "MISRA guidelines" and the instructions. In the documentation for the code, I get "it's coded like this to comply with rule XYZ in MISRA" and the "MISRA" is clickable. Clicking it takes me to the Reference Documents page. There, "My copy of the Coding Guidelines" is a paragraph heading in bold, and the instructions are indented below.
2. \section
\section MISRA My copy of the Coding Guidelines
Hard-copy version is on Frank's desk.
This works too. In the documentation for the code, I get "it's coded like this to comply with rule XYZ in My copy of the Coding Guidelines", and again that is a clickable link that gets me to the Reference Documents page. There, the heading "My copy..." is followed by the instruction text.
With a couple of documents on the page, I think this is a bit easier to read because I don't have \par all over the place.
There are probably other possibilities that I don't know about but these (probably the latter) will do for me.
Incidentally: if you get to https://www.doxygen.nl/manual/commands.html you can expand the "Special Commands" in the left sidebar to give a clickable list of the commands so you can get to them quickly. There is an alphabetical list of commands at the top of the page, but it's a long page so you don't see it, and the sidebar list is right there. BUT THE SIDEBAR LIST IS NOT ALPHABETICAL! When I was told about e.g. \cite it took me ages to find it because somehow I believed the list was alphabetical, and it was way off the bottom of the screen instead of being near the top of the list. When I found it, \anchor was right there too.
I would suggest you do the following:-
Login to your GITHub account
Then go to the Repositories.
Now go to the Settings
Then go down to the Danger Zone section.
There you will find the option to Delete
If you get some like from the api, the problem which i faced was i coped the curl from the documentation
and then used it. The problem is the curl is deformed and the data in body should be in params instead of body.
as {
"error": {
"code": 1,
"message": "An unknown error occurred"
}
}
Try copying the curl and use an AI ( like chatGpt ) and say the curl is malformed and i am unbale to hit it in the terminal please fix.
so,
curl -s -X GET \
-F "metric=likes,replies" \
-F "access_token=<THREADS_ACCESS_TOKEN>"
"https://graph.threads.net/v1.0/<THREADS_MEDIA_ID>/insights"
will be converted into something like the following (which works!)
curl -s -X GET "https://graph.threads.net/v1.0/<threads_post_id/insights?metric=likes,replies&access_token=<token>"
For me the only format that worked was "MM/DD/YYYY HH:MM" with no extra leading zeros and using a 24 hour clock, so "7/14/2022 15:00" worked but "07/14/2022 3:00 PM" did not.
In your package's pubspec.yaml
:
flutter:
fonts:
- family: TwinkleStar
fonts:
- asset: assets/fonts/TwinkleStar-Regular.ttf
In your widget:
Text(
'Hello World',
style: TextStyle(
fontFamily: "packages/sdk/TwinkleStar",
fontSize: 24,
),
);
Hii: Lusia
href="javascript:se(param1, param2)"
→ means when you click the link, run the JavaScript function se(...)
instead of going to a URL.
se
is just a normal function defined in the page’s scripts.
The n[0], i[0], p[0], d[0]
are variables (probably arrays) whose first elements are passed as arguments.
So it’s just:
link click → run function se(...)
with those values.
ggMarginal
has groupColour = TRUE
and groupFill = TRUE
which allows to take the groups from the initial ggplot.
library(ggplot2)
library(ggExtra)
p <- ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
geom_point()
ggMarginal(p, type = "density", groupColour = TRUE, groupFill = TRUE)
If your goal is to have two-dimensional, always visible scrollbars, currently Flet doesn’t support this feature out of the box. I ran into the same limitation, so I created an extension for Flet that adds true two-dimensional scrollbars and some additional functionality. It might help in your case: Flet-Extended-Interactive-Viewer.
With normal Flet, you can have two scrollbars, but one of them only appears at the end of the other, which isn’t ideal for some layouts.
After hours fiddling with this, I post the question, then find a fix!
I had to SSH in to the box and edit extension.ini to add extension = php_openssl.so
After re-uploading that, it gave me the option in:
Web Station > Script Language Settings > [profile] > Edit > Extensions > openssl
I swear the option was there and was ticked before, but was now unticked. Reselected, saved, and it works....
I figured it out. I had to delete the neon directory and rerun the generation.
Aapko existing tags use karne padenge jo already maujood hain. Aapke topic ke liye kuch relevant general tags ho sakte hain
Currently, Flet doesn’t support this feature out of the box. I ran into the same limitation, so I created an extension for Flet that adds two-dimensional scrollbars and some additional functionality. It might help in your case: Flet-Extended-Interactive-Viewer