This may be caused by the following reasons:
Accidentally changed htop display settings
Terminal color scheme or theme issues
Font or display scaling settings in the terminal
Solutions to try:
Press F2 in htop to access settings menu and check display options
Exit htop with F10 and restart it
Check your terminal's color configuration
If using remote connections (like putty or VSCode), you might need to adjust terminal color settings
I’m wondering if there has been any update or resolution on this issue. We are facing the same memory increase in both heap and metaspace when using StatelessSession.
(Couldn't comment on your answer despite having enough reputation, so leaving another answer instead)
Your question about \gdef versus \xdef is addressed by https://tex.stackexchange.com/a/353139, which explains that:
With [
\def<cs>{<replacement text>}] you define<cs>to look for its arguments (if any) and to be replaced by<replacement text>, which is not interpreted in any way at definition time. With [\edef] the replacement text is fully expanded at definition time.
That same distinction applies to \gdef and \xdef, respectively. They function just like \def and \edef except that their definitions are global (persisting after the end of the block in which they were executed).
So, yes, switching from \xdef to \gdef just prevents the immediate expansion of the replacement text.
.notify_one() / .notify_all() on a destructed std::atomic is UB.std::atomic_ref, because the object it points to must outlive the std::atomic_ref object.std::binary_semaphore.wait() and .notify_xxx() to a separate atomic variable that has a longer lifetimeBefore I get to my main question, I'm assuming that
std::mutex::unlock()stops touching this as soon as it puts the mutex in a state where another thread might lock it [...]
That's a valid assumption - the standard even mandates that this type of usage must be supported:
35.5.3.2.1 Class
mutex[thread.mutex.class](2) [ Note: After a thread A has called
unlock(), releasing a mutex, it is possible for another thread B to lock the same mutex, observe that it is no longer in use, unlock it, and destroy it, before thread A appears to have returned from its unlock call. Implementations are required to handle such scenarios correctly, as long as thread A doesn't access the mutex after the unlock call returns. These cases typically occur when a reference-counted object contains a mutex that is used to protect the reference count. — end note ]
Is it possible to build a mutex from C++20
std::atomicwithout spinning to avoid use-after-free when deleting?
Yes, it is possible.
But not as straight-forward as one might expect, due to the lifetime issues you already mentioned.
See 3. Solutions for a list of potential ways you could work around this limitiation.
Is there any hope that a future version of C++ might provide a safe way to notify on destroyed atomics?
There is a paper addressing this specific issue, that could have been part of C++26:
P2616 - Making std::atomic notification/wait operations usable in more situations
Revisions:
| Paper | Date | Target C++ Version |
|---|---|---|
P2616R4 |
2023-02-15 | C++26 |
P2616R3 |
2022-11-29 | C++26 |
P2616R2 |
2022-11-16 | C++26 |
P2616R1 |
2022-11-09 | C++26 |
P2616R0 |
2022-07-05 | C++26 |
The current state of this paper can be seen at cplusplus/papers Issue #1279 on github
(currently the repo is private due to the current committee meeting - archive.org version)
It is stuck with needs-revision since May 23, 2023 - so it's unclear if (and when) it'll ever become part of the standard.
So, my next question is, can I do anything about this?
The best I've come up with is to spin during destruction, but it's offensive to have to spin when we have futexes that are specifically designed to avoid spinning.
There's unfortunately no one-size-fits-all solution for this.
std::binary_semaphore might be an option - its acquire() and release() member functions do the wait / notify atomically, so there should be no lifetime problems.std::counting_semaphore / std::binary_semaphore)Am I missing some other trick I could use to do this without spinning - maybe with std::atomic_ref?
std::atomic_ref doesn't help in this case either unfortunately.
One of its rules is that the object it points to must outlive the atomic_ref object.
(which would not be the case if you destruct the object)
31.7 Class template
atomic_ref[atomics.ref.generic]
(3) The lifetime ([basic.life]) of an object referenced by*ptrshall exceed the lifetime of allatomic_refs that reference the object. While anyatomic_refinstances exist that reference the*ptrobject, all accesses to that object shall exclusively occur through thoseatomic_refinstances. [...]
Is there any benefit to the language making this UB, or is this basically a flaw in the language spec that atomics don't expose the full expressiveness of the underlying futexes on which they are implemented?
TODO
TODO
std::counting_semaphore / std::binary_semaphoreIt is relatively straightforward to wrap std::binary_semaphore into a custom mutex implementation that supports unlocking the mutex from a different thread than the one that locked it.
e.g.: godbolt
class my_mutex {
private:
std::binary_semaphore sem;
public:
my_mutex() : sem(1) {}
void lock() {
sem.acquire();
}
void unlock() {
sem.release();
}
bool try_lock() {
return sem.try_acquire();
}
template<class Rep, class Period>
bool try_lock_for(std::chrono::duration<Rep, Period> const& timeout) {
return sem.try_acquire_for(timeout);
}
template<class Clock, class Duration>
bool try_lock_until(std::chrono::time_point<Clock, Duration> const& timeout) {
return sem.try_acquire_until(timeout);
}
};
Upsides:
Downsides:
libc++ / libstdc++) versions.
std::atomic_ref and use the futex wait / wake syscallsAnother option would be to use std::atomic_ref for the atomic read & write operations, and manually handle the waking / sleeping part (by calling the syscalls directly).
e.g.: godbolt
class my_mutex {
private:
using state_t = std::uint32_t;
static constexpr state_t StateUnlocked = 0;
static constexpr state_t StateLocked = 1;
static constexpr state_t StateLockedWithWaiters = 2;
static_assert(std::atomic_ref<state_t>::is_always_lock_free);
state_t state = StateUnlocked;
void wait() {
// TODO use WaitOnAddress for windows, ... other oses ...
syscall(
SYS_futex,
&state,
FUTEX_WAIT_PRIVATE,
StateLockedWithWaiters,
NULL
);
}
void wake() {
// TODO use WakeOnAddress for windows, ... other oses ...
syscall(
SYS_futex,
&state,
FUTEX_WAKE_PRIVATE,
1
);
}
public:
void lock() {
state_t expected = StateUnlocked;
if(std::atomic_ref(state).compare_exchange_strong(
expected,
StateLocked,
std::memory_order::acquire,
std::memory_order::relaxed
)) [[likely]] {
return;
}
while(true) {
if(expected != StateLockedWithWaiters) {
expected = std::atomic_ref(state).exchange(
StateLockedWithWaiters,
std::memory_order::acquire
);
if(expected == StateUnlocked) {
return;
}
}
// TODO: maybe spin a little before waiting
wait();
expected = std::atomic_ref(state).load(
std::memory_order::relaxed
);
}
}
bool try_lock() {
state_t expected = StateUnlocked;
return std::atomic_ref(state).compare_exchange_strong(
expected,
StateLocked,
std::memory_order::acquire,
std::memory_order::relaxed
);
}
void unlock() {
state_t prev = std::atomic_ref(state).exchange(
StateUnlocked,
std::memory_order::release
);
if(prev == StateLockedWithWaiters) [[unlikely]] {
wake();
}
}
};
Upsides:
Downsides:
wait() and wake() manually, by directly calling the syscalls.std::atomic_ref::wait when the object gets destroyed)Another option would be to avoid waiting on the atomic variable directly by using another atomic variable (with a longer lifetime) solely for the wait / notify.
This is also how most standard libraries implement std::atomic::wait() for types that are not futex-sized.
(libstdc++ for example has a pool of 16 futexes it uses for waits on atomic variables that are non-futex sized. (__wait_flags::__proxy_wait is the flag used to handle wether the wait will be on the atomic value itself or one of the 16 proxy futexes))
e.g.: godbolt
class waiter {
private:
alignas(std::hardware_destructive_interference_size)
std::atomic<std::uint32_t> counter = 0;
public:
void notify_all() {
counter.fetch_add(1, std::memory_order::release);
counter.notify_all();
}
template <class T>
void wait(
std::atomic<T> const& var,
std::type_identity_t<T> const& oldval
) {
while (true) {
auto counterval = counter.load(std::memory_order::acquire);
if (var.load(std::memory_order::relaxed) != oldval) {
return;
}
counter.wait(counterval);
}
}
};
template <std::size_t N = 256>
class waiter_pool {
private:
static_assert(std::has_single_bit(N), "N should be a power of 2");
waiter waiters[N];
waiter& waiter_for_address(const void *ptr) {
std::uintptr_t addr = reinterpret_cast<std::uintptr_t>(ptr);
addr = std::hash<std::uintptr_t>{}(addr);
return waiters[addr % N];
}
public:
template <class T>
void notify_all(std::atomic<T> const& var) {
waiter& w = waiter_for_address(static_cast<const void*>(&var));
w.notify_all();
}
template <class T>
void wait(
std::atomic<T> const& var,
std::type_identity_t<T> const& oldval
) {
waiter& w = waiter_for_address(static_cast<const void*>(&var));
w.wait(var, oldval);
}
};
waiter_pool pool;
class my_mutex {
private:
using state_t = std::uint8_t;
static constexpr state_t StateUnlocked = 0;
static constexpr state_t StateLocked = 1;
static constexpr state_t StateLockedWithWaiters = 2;
static_assert(std::atomic<state_t>::is_always_lock_free);
std::atomic<state_t> state = StateUnlocked;
public:
void lock() {
state_t expected = StateUnlocked;
if (state.compare_exchange_strong(
expected,
StateLocked,
std::memory_order::acquire,
std::memory_order::relaxed
)) [[likely]] {
return;
}
while (true) {
if (expected != StateLockedWithWaiters) {
expected = state.exchange(
StateLockedWithWaiters,
std::memory_order::acquire
);
if (expected == StateUnlocked) {
return;
}
}
// TODO: maybe spin a little before waiting
pool.wait(state, StateLockedWithWaiters);
expected = state.load(std::memory_order_relaxed);
}
}
bool try_lock() {
state_t expected = StateUnlocked;
return state.compare_exchange_strong(
expected,
StateLocked,
std::memory_order::acquire,
std::memory_order::relaxed
);
}
void unlock() {
state_t prev = state.exchange(
StateUnlocked,
std::memory_order::release
);
if (prev == StateLockedWithWaiters) [[unlikely]] {
pool.notify_all(state);
}
}
};
Upsides:
my_mutex::state does not need to be 32 bits because the futex waiting is delegated to the pool. So instances of my_mutex can be much smaller.Downsides:
The limit for internal testers is 80, which you have hit. You can create an external testers group, which should have a limit of 10,000.
You could use pyYAML to parse yaml files in python (pip install pyyaml).
Then, in your code:
import yaml
with open('yourfile.yml') as f:
self.category_sector_mapping = yaml.safe_load(f)
There's likely version mismatch here between flask and werkzeug. Try downgrading with pip install Werkzeug==2.2.2
try this extension - sprintreportpro It gives an amazing Sprint Report in Azure DevOps(ADO) in PDF format with charts, burndown, quality summary, team insights etc
Update:
openjdk:11-jdk-slim Is Deprecated on Docker Hub
Replace that with
eclipse-temurin:11-jdk-jammy
I found the answer -
test = test.with_columns(
pl.when(pl.col(pl.Float32) > 8)
.then(0)
.otherwise(pl.col(pl.Float32)).name.keep()
)
I needed otherwise and to explicitly keep the column names. I thought the expression expansion was the issue but this works.
So after much more investigation, I have determined that this is just the difference in space efficiency between Parquet and Pandas for the kind of data in my files; The dataset includes several Date and Decimal columns, which can be handled in a very memory efficient way by Parquet and Spark, but not by Pandas.
If someone else has a similar issue, I suggest moving your implementation to PySpark, which can handle this data much better. Unfortunately that is not an option for me, so I have had to fundamentally alter my approach.
@0___________, chux posted an advice request, which is SE's attempt to introduce discussions posts. It should have been posted as "Troubleshooting / Debugging" to get the classic format (I think!)
can someone answer this for me??? I want to be able to launch a game like chess, or block breaker/breakout
Try using this, it's working for me.
.buttonBorderShape(.circle)
Button {
// Button actions here.
} label: {
Image(systemName: "chevron.forward")
.fontWeight(.medium)
}
.buttonBorderShape(.circle)
.buttonStyle(.glass)
I forgot to wrap the store. So I want the computed property to be in the store so I can just call store.b. Instead of having to write the computed ref seperately. So I think I'll need to do it the 'c' way. As the computed ref should be refering to a reactive object, but in the initilization state, the reactive object has not been created yet.
And yea, the proper way would be to use a proper store management system, but I was wondering if there's an easy way for it.
I also encountered the same problem and spent a long time troubleshooting it, but I’ve finally solved it.
The root cause of the issue was that Cloudflare returned a very poor-quality IP node for the domain.
From Cloudflare’s publicly listed IP ranges https://www.cloudflare.com/ips-v4/, I selected a high-quality IP node and added it to my Windows hosts file — that completely fixed the problem.
It looks like the issue is with the endpoint path. In Jira API v3, the correct endpoint for a JQL search is /rest/api/3/search, not /rest/api/3/search/jql. When you use /search/jql, Jira doesn’t return the paging metadata (startAt , maxResults , total). Try updating your URL to use /search ; that should fix the response format and bring back the pagination info.
Question format is different form before: perhaps I set it up wrong.
Use gdb to open the core dump
gdb /path/to/binary /path/to/core.dump
Then run:
(gdb) info files
@your-common-sense Wouldn't type safety be one reason?
If I had only a set() method, I can't have explicit enforcement for all 3 types. I'd have to use mixed or object|callable.
Having separate methods allows me to be more explicit in how each service is stored.
I think I once read there was a way to clone a repository with just the .git in it. However I cannot find where I read that but if that's possible, I could change my parent clone to this and avoid having all the files duplicated and then the parent would just hold the .git which would be shared by the worktree ?
I think I understand the problem. Groovy's Map coercion doesn't work on concrete types. Since the SpringApplicationBuilder is a concrete type, it instead tries to instantiate it, but because there's no default constructor it fails. When I tried Map coercion on a type that has a default constructor, it instantiates fine, but then my mocked methods aren't actually run.
TL;DR? I had to give up.
Well I faced the same issue but when using @nomicfoundation/hardhat-toolbox-mocha-ethers. So far i don't understand why Hardhat only recognise Solidity tests, but no TS tests.
Anybody can help with that?
Actually the only one solution seems to disable totally Copilot. At least for me, enabling, disabling and restarting the IDE won't work. NES will run one more time and the code completions will increase its percentage in the Copilot usage statistics, this includes enabling or disabling auto tringgering for code completions, or setting the language or setting all (*) in false, Copilot will run the NES and the code completion; is just like MS said "it's my IDE and I will make Copilot do whatever, no matter what you do".
I am the maintainer and primary author of the Spring Data DynamoDB community module -> https://github.com/prasanna0586/spring-data-dynamodb
The Spring Data projects page (https://spring.io/projects/spring-data) now points to this actively maintained version. The latest release is fully compatible with Java 21 and Spring Boot 3.5.6, and I am updating the underlying AWS SDK from v1 to v2 to align with current best practices.
The latest version and compatibility is available here -> https://github.com/prasanna0586/spring-data-dynamodb/?tab=readme-ov-file#version--spring-framework-compatibility
instead of
CFLAGS="-O2 -Wall -march=native" ./configure <options>
use
CFLAGS="-O2 -Wall -march=native -fcommon" ./configure
вопрос больше не актуален
всем спасибо
I think you misunderstood what II means. Are you saying that you want your top level function to have the same execution time as any one of the 2 functions you call? If so, then it should be II=3 in the top level. Because II is global. For example, one II is 2ns. Your proc1 and proc2 take 6ns to execute and your top level function also takes 6ns to execute.
Ran into this issue today and found that it was caused by importing the wrong scroll view.
Import like this: import { ScrollView } from 'react-native-gesture-handler';
DON'T IMPORT like this: import { ScrollView } from 'react-native';
All good but internal testing does not go through a review process. That is why we went with a closed testing and thinking to promote to a production but not sure about it.
I am officially supporting this project. The project is very much alive and is available here -> https://github.com/prasanna0586/spring-data-dynamodb. The link in spring-data project was updated to point people to the latest library. The latest version of the library uses Java 21 and spring boot 3.5.6. I am working on updating AWS SDK from V1 to V2. It should be available soon.
The following helped me with a TypeError: 'Task' object is not callable error in PyCharm when running the debugger. I was using the scrapy library and it behaved in the same way as your error while debugging, but I suspect that you are seeing a similar issue with the asyncio library.
Press Shift twice to open the search window
From the main bar select Actions
Type in Registry and select Registry...
From here scroll down to python.debug.asyncio.repl and make sure the Value column is deselected
This is taken from the following answer: Cannot debug script with trio_asyncio in PyCharm
brew doctor can be really helpful here to make sure you don't need to cleanup, install, link, add to PATH, etc.
Other answers are accurate - it's likely your npm upgrade or reinstalling icu4c
This error can show up when installing php too - I ran into this error with brew install php on Mac OS Monterey 12 (which currently installs 8.4.14). Nothing worked for me though, I've tried everything.
Does anyone know if it's possible to install a version > 8.1 on this OS? I'm convinced it's not.
You should post the HTML that you claim was working but no longer is
<Ctrl><Shift>R once I highlighted ONLY the commands that I wanted to turn into a function.
My original code block that I wanted to refactor began with a comment and the last line had a comment at the end.
# this code does this
print(a)
print(b) #another comment here.
Refactoring only worked when I ONLY highlighted the print commands.
# this code does this
print(a)
print(b) #another comment here.
I don't know if this is going to let me reply to @apnerve, but I'd have to agree with you that there's nothing technically wrong with skipping h2 and going straight to h3 - that being said, it may be prudent to use CSS to restyle your headings so h1-whatever work the way you want them to, then you have a h2 element that shows up as expected, and you can have an h3. The tiered heading system seems to be used to denote different headers as grouped by importance. H1 is a main header, important. Their importance to the crawler and ultimately organic search ranking will be directed by the standard hierarchy of elements. Creating a page which is pure clean HTML code will be easier for the crawler to recognize as "a product" or "a reservation page".
My company did a production quality test release of our Android app as an Internal Beta release. You can manage your internal testing releases in the Google Play Console under Home>Your App>Test and release>Testing>internal testing. These internal releases could only be downloaded from the app store by users added to the internal testing user group, who were sent a link that redirected them to the app store. Here is more information about Internal Testing of Android apps, it works for up to 100 invited users:
I edited the example data. Hopefully this is easier to demonstrate with now.
"🎯 Fokus, nikmati, dan biarkan keberuntungan berpihak padamu. JO777 siap mendukungmu."
Can't a lot of this be solved by empty lists? And the rest with nullable or property bags
# Source - https://stackoverflow.com/questions/45535861/automate-process-for-merging-csv-files-in-python?newreg=4b233792ea5540e9b7def53147e66644
# Posted by candid
# Retrieved 04/11/2025, License - CC-BY-SA 4.0
for file in os.listdir(DATA_PATH + 'datafolder/'):
if file.endswith('.csv'):
abs_path = os.path.abspath(DATA_PATH + 'datafolder/' + file)
print(abs_path)
data = openFile(abs_path)
data2 = someFunction(data)
Is it possible to use list?
In the case you can just try something like this
import random
mylist = ["Dialogue1", "Dialogue2"]
print(random.choice(mylist))
I successfully uploaded the screenshot using my phone. I logged in to the account with my phone and did it that way.
For some unknown reason, when I transfer the screenshot to my Mac and try uploading it on my browser, it says the dimensions are not right.
With the help of @Shrotter I get the idea here is my solution. I used referance string creation methods. It's a great success at my life. thank you again Shrotter.
Dim inz
For Each inz In prtLst
'Referans string creation
Dim sRef
sRef = rtPrd.Name & "/" & inz.Name & "/!" & bdyName
'Create referance
Set rfBdy = rtPrd.CreateReferenceFromName(sRef)
'Find da body
sel.Clear
sel.Add(rfBdy)
sel.Copy
'Activate target
sel.Clear
sel.Add(trgtPrt)
sel.PasteSpecial "CATPrtResult"
Next
Take a look at the specification of US Patent 9,269,157 - "Methods for extracting objects from digital images and for performing color change on the object" - https://ppubs.uspto.gov/pubwebapp/ - maybe you'll find it useful.
"participants": [
{
"name": "\u00f0\u009f\u0092\u00a5 \u00f0\u009d\u0099\u008e\u00f0\u009
d\u0099\u00a5\u00f0\u009d\u0099\u009e\u00f0\u009d\u0099\u00a7\u00f0\
u009d\u0099\u009e\u00f0\u009d\u0099\u00a9\u00f0\u009d\u0099\u00aa\u
00f0\u009d\u0099\u0096\u00f0\u009d\u0099\u00a1 \u00f0\u009d\u0099\u0
09d\u00f0\u009d\u0099\u00aa\u00f0\u009d\u0099\u00a2\u00f0\u009d\u009
9\u0096\u00f0\u009d\u0099\u00a3 \u00f0\u009f\u0098\u00ae\u00e2\u0080\
u008d\u00f0\u009f\u0092\u00a8"
},
{
"name": "\u00e1\u00b4\u00a9\u00e1\u00b4\u008f\u00e1\u00b4\u008f\u00e
1\u00b4\u008a\u00e1\u00b4\u0080\u00f0\u009f\u00a4\u008e"
}
],
"messages": [
{
"sender_name": "\u00f0\u009f\u0092\u00a5 \u00f0\u009d\u0099\u008e\u00
f0\u009d\u0099\u00a5\u00f0\u009d\u0099\u009e\u00f0\u009d\u0099\u00a7
\u00f0\u009d\u0099\u009e\u00f0\u009d\u0099\u00a9\u00f0\u009d\u0099\u
00aa\u00f0\u009d\u0099\u0096\u00f0\u009d\u0099\u00a1 \u00f0\u009d\u0
099\u009d\u00f0\u009d\u0099\u00aa\u00f0\u009d\u0099\u00a2\u00f0\u009
d\u0099\u0096\u00f0\u009d\u0099\u00a3 \u00f0\u009f\u0098\u00ae\u00e2\
u0080\u008d\u00f0\u009f\u0092\u00a8",
"timestamp_ms": 1743506546720,
"content": "\u00f0\u009f\u0092\u00a5 sent an attachment.",
"reactions": [
{
"reaction": "\u00f0\u009f\u0098\u0082",
"actor": "\u00e1\u00b4\u00a9\u00e1\u00b4\u008f\u00e1\u00b4\u008f\u0
0e1\u00b4\u008a\u00e1\u00b4\u0080\u00f0\u009f\u00a4\u008e"
}
],
"is_geoblocked_for_viewer": false,
"is_unsent_image_by_messenger_kid_parent": false
MOHAMED.
// Source - Why am I getting "ERR_CONNECTION_REFUSED" when querying by sidecar-hosted backend in Azure App Service?
// Posted by chris
// Retrieved 11/4/2025, License - CC-BY-SA 4.0
FROM python:3.10-slim
RUN mkdir /backend
WORKDIR /backend
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED = 1
RUN pip install --upgrade pip --trusted-host pypi.org
COPY requirements.txt /backend/
RUN apt-get update && \
apt-get install -y libpq-dev gcc
RUN pip install --no-cache-dir -r requirements.txt --trusted-host pypi.org
COPY . /backend/
EXPOSE 8080 80
CMD ["daphne", "-b", "0.0.0.0", "-p", "8080", "backend.asgi:application"]
You can handle this directly with React Native’s built-in <Text> props
<Text numberOfLines={1} ellipsizeMode="tail">
{yourLongText}
</Text>
This will automatically add ... when the text exceeds the available width, leaving no padding or margin.
For me the issue was Flutter channel, try switching to Stable Channel.
Go to the Microsoft Visual C++ Redistributable download page.
Download and install both the x86 and x64 versions for your system.
Thanks... I did make it all 1 record and things are working.. .Thanks everyone
In my case, I installed git in a new windows machine and the repository have links. I needed to mark the option to allow symlinks in the git installation, and clone the repository again.
You wrongly delimited the memory segment I see. Look, you gave to Mo99 an array of size 100 but the loop goes from 0 to 100, it's 101 spaces of memory, because you wrote i=0 to i<=100. This includes i=100.
This is the most updated version of Metal-accellerated Jax that works on my Mac M3:
conda create -n jax-env python=3.11 pip -y
conda activate jax-env
python -m pip install --upgrade pip wheel setuptools
pip install numpy==1.26.4
pip install ml_dtypes==0.3.2 jax-metal
The other answer is correct in that QMap::operator[] returns a mutable reference (T&) while QMap::value() returns an immutable copy (const T), which is the first thing to address.
For what they left unaddressed, the "how do I update a specific struct value" part, the answer is that you want a QMultiMap for that. Whereas QMap::find() only takes a key, QMultiMap::find() takes a key and a value. Using that, you can find the precise instance of the struct you want to update.
It works fine using Polars, just use Polars instead. thx
If the low 5 bits are 0x1F, then the identifier is encoded in multiple octets. The 0x1F is not a part of the identifier value. If the low 5 bits are < 0x1F, then that is your identifier (<=30). All you have to do is examine the low 5 bits of the first octet and compare to 0x1F.
lea eax,msg
push eax
call printf
;!!
ADD ESP, 1*4 ;1 (push eax), push + push + push 3*4
;!!
push 0 ; return to os contorl point
call ExitProcess@4
msvcrt does not balance the stack, in 32bits balance stack on use msvcrt
Looks like the compiler can't find GLFW's installation directory for includes and libs. How did you get GLFW on your machine? if you installed it via homebrew you should compile using:
(Apple Silicon)
clang++ main.cpp -o app \
-I/opt/homebrew/include \
-L/opt/homebrew/lib \
-lglfw -framework Cocoa -framework OpenGL -framework IOKit
(Intel Macs)
clang++ main.cpp -o app \
-I/usr/local/include \
-L/usr/local/lib \
-lglfw -framework Cocoa -framework OpenGL -framework IOKit
So I'd find the installation directory and compile via
clang++ main.cpp -o app \
-I/path/to/installation/dir/include \
-L/path/to/installation/dir/lib \
-lglfw -framework Cocoa -framework OpenGL -framework IOKit
Also you might wanna try compiling via command line to get a clearer picture then vscode's.
i would give a try to this code:
res = (df.loc[df["A"]==2].index-1).isin(df.loc[df["A"]==1].index).all()
then print your dataframe bases on boolean value in res.
I had this same issue here, to fix I did this:
slotProps={{
dialog: {
sx: {
zIndex: 10000
},
style: {
zIndex: 10000
}
}
}}
Unfortunately (and fortunately privacy wise) that isn't possible.
Whatsapp Web doesn’t actually give your browser full access to every participant’s phone number anymore. Since WhatsApp switched to its multi-device system, many group members are identified by random “linked device IDs” (those ending in @lid) instead of real numbers. These IDs are designed for privacy, and the actual phone numbers simply aren’t sent to the web client unless you already have that person in your contacts or you’ve chatted with them before.
When you open a group’s info panel and look at the participant list, WhatsApp briefly fetches and decrypts that data so you can see the numbers in the interface. But that information only exists in memory while the panel is open — it’s not saved anywhere like IndexedDB.
So technically, you can scrape phone numbers from the DOM after a user opens a group and scrolls through the full list, but you can’t do this automatically for every group. WhatsApp’s encryption model is designed to prevent that kind of bulk access. In short, you can export what’s visible on screen, but there’s no reliable way to programmatically fetch all participants’ phone numbers across all groups. That is unless you start simulating user interaction for each group.
In PhpMyAdmin, when you add the password for the user, the error will go. it worked for me
I recently had the same problem and was able to solve it in the following way in Java (should work in most languages):
int useValue = value >> 31;
return value & ~useValue;
I needed it specifically for Integer so I used it in here. We do 31 signed bit-shifts to the right (because Java Integer have exactly 32 bits), which turns all bits into 1 if the value is negative, otherwise 0. Then we return a bitwise AND of our value and the complement of our bits. So a negative number will always return 0 because the complement of its right-shifted bits is always 0. Any value & 0 will always return 0. If our number is positive (or 0), then the complement of those bits will always be 1. Any value & 1 will just return the plain value.
You unfortunately need to know how many bits your value has for this work but it fulfills all other criteria that you mentioned.
imho, the easiest way is to prepare an array to multiply original one with, based on the arithmetical signs of your reshaped D array. And then mutiply it with your flipped original T array.
m = np.where(np.sign(D)[:, None]>0, [-1, 1], [1, -1])
res = np.flip(T,1)*m
res:
[[ 2 -1]
[-4 3]
[-6 5]
[ 8 -7]]
@DrewReese "logging in the render function is an unintentional side effect and doesn't necessarily correlate to any actual rendering to the DOM during React's "commit phase", i.e. the "expensive" part" - in a table library, executing the render function for every single item (in a list of potentially thousands) is expensive in itself, regardless of what React does to the DOM (or not). Calling the row render function for every row when just one item changes (e.g. when the checkbox state is toggled) is infeasibly costly.
Thanks! Do you want to write an answer? I'll accept it. Otherwise I'll write up my own.
Apart from the above answers, another thing to make sure is, if s3 bucket has server side encryption with KMS, in account B, and the access is originated from account A, make sure the principal in account A has access to that KMS, and the KMS's resource based policy allows it. Ref
var outputConfig = new KnowledgeAgentOutputConfiguration
{
Modality = KnowledgeAgentOutputConfigurationModality.AnswerSynthesis,
IncludeActivity = true
};
var agent = new KnowledgeAgent(
name: "agent",
models: new[] { agentModel },
knowledgeSources: new[] { knowledgeSourceReference }
)
{
OutputConfiguration = outputConfig
};
Based on the code I was able to see LLM-generated response
You can change the 120-character limit of PyCharm for both the Project and the Default schemes as seen in the image below.
I join to this debate in 2025 almost 2026.
I have a main function which calls many other functions. Each function is in a file separated from the main function.
lets say the following
main.py
variable1 = 123
variable2 = 1435
from utilsfolder.function_one import function_one
result_one = function_one (variable1, variable2)
from anotherfolder.function_two import function_two
result_two = function_two(variable1,result)
from utilsfolder.function_three import function_three
result_three = function_three(result,variable1, variable2)
print (f"The final result is {result_three}")
So I want to run the code up to function_two and then depure function_three since I notice that function_three on line 50 is having some issue that I want to understand.
My objective is to run the code up to result_two then stop!
Run function three as a new depuration and top at line 49... understand the problem, fix it and then exit that secondary depuration... keep running the first depuration
how can I do this secundary depuration?
Is this even possible with SPYDER or VSCODE?
Best regards my friends :D
@J-Earls Prefer the generator function (using yield) over returning a generator expression, since generator expressions are anonymous. E.g. if there's an error, then in the traceback you get matching_keys (name) instead of <genexpr> (no name). Cf are named lambdas Pythonic?
A lot has changed since the last answer has been written to this question. Google provided only web file picker and it does not work anymore in the webview on mobile. So, if you would face this issue, the best place to find the latest updates for it, I'd recommend is here - https://issuetracker.google.com/issues/322267485
After a long time, inner1d was deprecated and removed. But Numpy 2.0 came with vecdot.
This is the speed comparison, following Nico Schlömer's answer.

are you looking for something like a list comprehension or generator expression?
from typing import Iterator
def matching_keys(d: dict[tuple[int,int], int], n:int) -> Iterator[tuple[int,int]]:
return (
keypair
for keypair in d
if keypair[0] == n
)
For Redhat Servers use the following
### Download and save ssl cert to a file dockerhub.crt ###
# echo | openssl s_client -showcerts -servername registry-1.docker.io -connect registry-1.docker.io:443 2>/dev/null | \awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/' > dockerhub.crt
the local TLS files should be kept in /etc/pki/ca-trust/source/anchors so copy the dockerhub.crt file to anchors
# cp dockerhub.crt /etc/pki/ca-trust/source/anchors
then use update command to update the same
# update-ca-trust extract
update-ca-trust extract tool merges all of this into the extracted output files under:
/etc/pki/ca-trust/extracted
restart your docker service .
Done
Thanks for your question. To attract the most helpful answers, we need a little more context to guide the conversation.
Please edit your post to add more detail and context. Examples of things you may want to include:
What error are you running into?
What are you trying to build or achieve?
What criteria are you evaluating?
This context is vital for separating high-value strategic advice from general opinion. Remember, our goal is to inspire answers that explain why a recommendation fits a specific context. That said, if you're experiencing a truly unique troubleshooting or debugging issue with a minimally reproducible example, you may want to re-ask your question using that question type.
Here is my take if you want to avoid slicing the string at each level.
def palindrome(s, i=0, j=None):
if j == None:
j = len(s) - 1
if i > j:
return True
return s[i] == s[j] and palindrome(s, i + 1, j - 1)
For the operational data to work, you'd enter {ITEM.VALUE}. If you have multiple items in your expression, use {ITEM.VALUE[x]} where x is the order of the item you want to display.
psychengine_d19f6.rar
1 Can not open /uri/com.android.providers.downloads.documents/document/msf%3A1000113514$$/psychengine_d19f6.rar
2 No such file or directo
ry
It looks like having the policy Hide Microsoft cloud-based file locations in the Backstage view set to 4294967295 (all optional services disabled) was indeed the issue. Changed to 233 (only allow ThisPC and Recent Places), waited about 90 minutes for cloud policy to refresh, and restarted Excel, and now I'm able to see Recent in the Save As menu.
It turns out the issue is that JavaScriptValue cannot be used in an AsyncFunction. From the documentation: "Note that using JavaScript-specific types is restricted to synchronous functions" (https://docs.expo.dev/modules/module-api/). Instead, a Record should be used.
Testing against the code block from the regex101 link in VS code, it seems like the first section of the regex is unnecessary. The text can be matched by just using [^(]+\(\n
autogen-agentchat is seperate module from ag2.
pip install ag2 will fix the importings
I agree with choroba's response, and would add a note of support to look at Template::Toolkit. Template::Toolkit is one of the most elegant templating solutions out there for a programmer that needs to output HTML. I say this from long experience with many libraries, languages, and operating systems. I have often considered porting TT to C or Python. Good luck with your project.
@Paulw11 Thanks for replying, one more question:
So my iOS developer group can't directly use the Proximity Reader framework? Is a PSP that provides the required SDK absolutely necessary?
This line worked for me :
env XDG_RUNTIME_DIR=/run/user/1000 wlr-randr --output HDMI-A-1 --off
Hope it helps...
Yes, by default, Quarkus uses the prod profile during build time:
https://quarkus.io/guides/config-reference#build-time-configuration
For dev you can override it as you did.
{\rtf1\fbidis\ansi\ansicpg1256\deff0\deflang1065{\fonttbl{\f0\fnil\fcharset178 B Nazanin;}{\f1\fnil\fcharset0 B Nazanin;}{\f2\fnil\fprq2\fcharset178 B Nazanin;}{\f3\fnil\fcharset178 IRANSans;}{\f4\fnil\fcharset0 IRANSans;}{\f5\fnil\fcharset178 Impact;}{\f6\fnil\fcharset178 B Yekan;}{\f7\fnil\fcharset0 B Yekan;}{\f8\fnil\fcharset178 B Zar;}{\f9\fnil\fcharset0 B Zar;}{\f10\fnil\fcharset178 B Titr;}{\f11\fnil\fcharset0 ;}{\f12\fswiss\fprq2\fcharset0 Calibri;}{\f13\fswiss\fprq2\fcharset178 Arial Unicode MS;}{\f14\fnil\fcharset0 Nazanin;}{\f15\fnil\fcharset178 Nazanin;}{\f16\fnil\fcharset2 Symbol;}}
{\colortbl ;\red51\green153\blue255;\red255\green0\blue0;\red200\green200\blue200;}
\viewkind4\uc1\pard\rtlpar\qr\ul\b\f0\rtlch\fs22\'e3\'c7\'cf\'e5 1- \'e3\'e6\'d6\'e6\'da\cf1\par
\cf0\ulnone\'cc\'c7\'da\'e1 \'c7\'d2 \'c8\'c7\'e4\'98 \'cf\'d1\'ce\'e6\'c7\'d3\'ca \'e4\'e3\'e6\'cf \'e3\'c8\'e1\'db (\'c7\'d1\'d2) #\f1\ltrch F#ARZITRNSAMNT#F\f0\rtlch # \b0\fs20 (\'e3\'c8\'e1\'db \'e3\'e6\'d1\'cf \'cf\'d1\'ce\'e6\'c7\'d3\'ca \'cc\'e5\'ca \'c7\'e4\'ca\'de\'c7\'e1)\b\fs22 \'cd\'e6\'c7\'e1\'e5 \'c7\'d2 \'e3\'cd\'e1 \'cb\'c8\'ca \'d3\'dd\'c7\'d1\'d4/ \'cb\'c8\'ca \'d3\'dd\'c7\'d1\'d4 \'c8\'d1\'e6\'c7\'ca \'c7\'d3\'e4\'c7\'cf\u1740? \'d4\'e3\'c7\'d1\'e5 #\f1\ltrch F#LCNUMBER#F\f0\rtlch # \'e3\'e6\'d1\'ce #\f1\ltrch F#OPENINGDATE#F\f0\rtlch # \'c8\'e5 \'e3\'c8\'e1\'db (\'c7\'d1\'d2 #\f1\ltrch F#ARZIOPENAMNT#F\f0\rtlch # #\f1\ltrch F#ARZIARZTYPE#F\f0\rtlch # (\b0\fs20\'98\'e1 \'e3\'c8\'e1\'db \'cb\'c8\'ca \'d3\'dd\'c7\'d1\'d4/ \'cb\'c8\'ca \'d3\'dd\'c7\'d1\'d4 \'c8\'d1\'e6\'c7\'ca \'c7\'d3\'e4\'c7\'cf\u1740?\b\fs22 ) \'d1\'c7 \'cf\'d1 \'e6\'cc\'e5 #\f1\ltrch F#BNFCRYNAME#F\f0\rtlch # \'c8\'e5 \'da\'e4\'e6\'c7\'e4 \'d0\u1740?\'e4\'dd\'da \'cd\'e6\'c7\'e1\'e5 \'98\'e5 \'cf\'d1 \'c8\'d1\'90 \'ca\'de\'c7\'d6\'c7\u1740? \'c7\'d1\'d3\'c7\'e1 \'cd\'e6\'c7\'e1\'e5 (\'81\u1740?\'e6\'d3\'ca \'e1\'c7\u1740?\'e4\'dd\'98 \'c7\u1740?\'e4 \'de\'d1\'c7\'d1\'cf\'c7\'cf) \'e4\'c7\'e3 \'e6 \'e3\'d4\'ce\'d5\'c7\'ca \'c7\'e6 \'c8\'e5 \'d4\'d1\'cd \'dd\'e6\'de \'de\u1740?\'cf \'90\'d1\'cf\u1740?\'cf\'e5 \'c7\'d3\'ca \'e6 \'cf\'d1 \'c7\u1740?\'e4 \'de\'d1\'c7\'d1\'cf\'c7\'cf \'d0\u1740?\'e4\'dd\'da \'e4\'c7\'e3\u1740?\'cf\'e5 \'e3\u1740? \'d4\'e6\'cf \'81\'d1\'cf\'c7\'ce\'ca \'e4\'e3\'c7\u1740?\'cf \'e6 \'c7\'d3\'e4\'c7\'cf \'cd\'e3\'e1 \'cf\'d1\u1740?\'c7\'dd\'ca\u1740? \'d1\'c7 \'cf\'d1 \'e3\'cd\'e1 \'c7\'d1\'d3\'c7\'e1 \'cd\'e6\'c7\'e1\'e5 \'ca\'d3\'e1\u1740?\'e3 \'cc\'c7\'da\'e1 \'e4\'e3\'c7\u1740?\'cf \'e6 \'c8\'c7\'e4\'98 \'d8\'c8\'de \'d4\'d1\'c7\u1740?\'d8 \'e6 \'e3\'e4\'cf\'d1\'cc\'c7\'ca \'c7\u1740?\'e4 \'de\'d1\'c7\'d1\'cf\'c7\'cf \'c8\'c7 \'ca\'de\'c7\'d6\'c7\u1740? \'cc\'c7\'da\'e1 \'c8\'e5 \'d4\'d1\'cd \'c7\u1740?\'e4 \'e3\'c7\'cf\'e5 \'e3\'e6\'c7\'dd\'de\'ca \'e4\'e3\'e6\'cf\'e5 \'c7\'d3\'ca.\f2\par
\f3\'ca\'c8\'d5\'d1\'e5: \'ca\'db\u1740?\u1740?\'d1 \'d0\u1740?\'e4\'dd\'da \'cd\'e6\'c7\'e1\'e5 \'c8\'c7 \'cf\'d1\'ce\'e6\'c7\'d3\'ca \'98\'ca\'c8\u1740? \'cc\'c7\'da\'e1 \'e6 \'c8\'c7 \'e3\'d3\'c6\'e6\'e1\u1740?\'ca \'ce\'e6\'cf \'cc\'c7\'da\'e1 \'e3\'d4\'e3\'e6\'e1 \'e3\'dd\'c7\'cf \'c7\u1740?\'e4 \'de\'d1\'c7\'d1\'cf\'c7\'cf \'e3\u1740? \'c8\'c7\'d4\'cf.\par
For increase visibility and because i was affected by the same issue, I allow myself to reference the solution from the comments in a dedicated answer:
.NET 9 enables Control-flow Enforcement Technology (CET) by default for managed processes. Visual Studio’s current debugger has compatibility issues with CET, causing the fatal error. Workaround: Disable CET for your app by adding this to your .csproj:
<PropertyGroup>
<CetCompat>false</CetCompat>
</PropertyGroup>
This allows debugging to work again.
All credits to @Chad Decker for sharing his solution!
I see, I unwillingly let people think the main point was about timing or performance. It was not. I'm going to delete the Q, and eventually ask more specific.
Thanks. I don't understand how scaleworks. Setting scale=6.0 looks good, but scale=2.0leads to huge vectors and scale=12.0leads to very small.... So the greater the scaleis the smaller the vectors...
What is scalerelated to?
All is prety simple:
2 case:
A) Using webview and just url:
String videoUrl = "https://www.youtube.com/embed/"+url;
Map<String, String> headers = new HashMap<>();
headers.put("Referer", "https://your_site_here.com/");
webView.loadUrl(videoUrl, headers);
B) Using webview and html file with iframe and so one:
Change from
webView.loadData(htmlContent, "text/html; charset=utf-8", null);
TO
webView.loadDataWithBaseURL("https://www.your_site_here.com/", htmlContent, "text/html", "charset=utf-8", null);
P.S: Instead of 'your_site' is possible to use something like this: "https://"+this.getPackageName()
Try running this command in Console
aws amplify start-deployment --app-id YOURAPPID --branch-name YOURBRANCHNAME --source-url s3://URL/ --source-url-type BUCKET_PREFIX
I am gonna answer it since I have also struggled. You can get your cloud id by supplying:
https://<YOUR_TENANT>.atlassian.net/_edge/tenant_info
on your browser.
After that, you will get a single JSON with your cloudId
{"cloudId":"1234567890"}
Creation and use of filters is documented in the product documentation in the Gosu Reference Guide under the path "Querying and connecting to databases ==> Query builder APIs ==> Working with results ==> Filtering results with standard query filters". Here's a link to the doc but you'll need a GW Community login to access it.
https://docs.guidewire.com/is/gosu/gosu/topics/querybuilderapi/c_ba2592202.html
You can add your filter to the enhancement but in any case you'll need to add a filter option on the target screen so you might just define it inline. The hard work is in defining the clause you want to add to the query and that can be complicated. I'd suggest using the scratchpad to develop and test your filter clause. Details of adding query clauses of various complexities are in the same area of the documentation. I'm not certain you can express your logic entirely as you've described it so you might need to consider the best way to express that logic.
Good luck!
You can check out this open source repo: https://github.com/mrharel/facebook_ads_comments_analysis
And more about it in this LinkedIn post: https://www.linkedin.com/pulse/meta-ads-comment-extraction-sentiment-analysis-amir-harel-fxsae
I have same problem, have u reéolved it yet?
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./resources/js/*"],
"~/*": ["./*"]
},
"moduleResolution": "node"
},
"include": [
"resources/js/**/*"
],
"exclude": [
"node_modules",
"vendor"
]
}
I have same issues, when i run via xcode, it is starting to copying shared cache symbols. Looks like when you upgrade to a new iOS, it needs to copy those files first. When having this via wireless, it might take too much time and idle out.
My solution:
Did you update iOS recently?
Have you downloaded the latest xcode files? (Open xcode after update macOS)