Just an addition to wsaleem's answer, as I'm not allowed to comment.
Reinstalling with M-x elpy-rpc-reinstall-virtualenv
helped in my case, most likely because the python version has changed and so has the path for python. In my case from 3.12 to 3.13.
this is not the answer to your challenge. And I hope that after 3 years my message will be seen.
Regarding your application, it seems that you have the problem that you want your application to be closed by swiping the application. And this is the opposite for us. We have bluetooth app. And when the program is swiped, Everything breaks, and we don't want that to happen, Like this is the case with you. And I want you to help me to make the app not close when I swipe to connect bluetooth. What have you done that the bluetooth connection does not close?
Please contact me here or on my email([email protected]). I'm really mad about the bluetooth running in the background thing.
Despite what commenters have said in issue #2350, this phenomenon of Snakemake running the python code twice is a feature, not a bug, and it's not going to be "fixed". Even if the behaviour was changed for the simple -j1
case it will still manifest as soon as you allow parallel jobs or submit your jobs to a HPC cluster (this includes your fixed code, @antje-janosch!)
The actual bug in this code is on line 16. If you replace {tarfile}
with "{tarfile}"
(only on line 16, not line 12) in the original example you will find that it works, just by adding the two quotes.
The difference is this: {tarfile}
means "a python set containing the single fixed string from the variable tarfile", whereas "{tarfile}"
is a template string that will act as a placeholder for any filename. These are not the same!
Unhandled Exception: NoSuchMethodError: The method '+' was called on null. i am getting same error in the code of background service code where i am storing the pedometer steps to the sqlite db on daily basis.
linked list head is normally set to null since the initial list is empty. When an element is introduced to the list then the head is set to the new element ---python
Maybe I am missing something, but why dont you just use:
SELECT
MODEL,
MAX(DATE)
FROM
MODEL_TABLE
GROUP BY MODEL
(Null-values are handled well, works fine with Sql-Server)
With the nearest neighbor method from scipy one can find the nearest vertex and then assign the color or other things to the sliced mesh.
from scipy.spatial import cKDTree
if hasattr(mesh.visual, 'vertex_colors') and mesh.visual.vertex_colors is not None:
tree = cKDTree(mesh.vertices)
_, indices = tree.query(cut_mesh.vertices)
cut_mesh.visual.vertex_colors = mesh.visual.vertex_colors[indices]
This is just replacing a pointer with another pointer.
nix1 = nix2
That was a total thinking failure. What I actually wanted to test was something like that:
{
Nix nix4(4, "Hello, I'm four");
*nix1 = nix4;
}
qWarning() << "nix1: " << nix1->display(4);
And that works.
solved, actually with help from SGaist (qt.forum)
I had the same problem on Windows, also check that your connection is not defined as limited in your network settings.
I suspect that vm.setLoading(false) immediately executed if uiState.data is empty.
Replace
vm.setLoading(false)
on
if(uiState.data.isNotEmpty())
{
vm.setLoading(false)
}
The example using LiveData for a view state and CircularProgressIndicator: https://github.com/kl-demo/mvvm-compose-hilt-example/blob/main/app/src/main/java/kldemo/mvvmcomposehiltexample/presentation/langs/ProgrammingLanguagesScreenScreen.kt#L66
I can suggest a few more plugins:
I'm sorry for not pointing to the exact one, but on my server I have all three and I have the "Pipeline script" and "Pipeline script from SCM" options you desire to see
use this properties:
spring.ssl.bundle.pem.mybundle.keystore.certificate=classpath:application.crt
spring.ssl.bundle.pem.mybundle.keystore.private-key=classpath:application.key
You can refer to spring official docs here : spring-ssl
With Playwright it is not possible to save such JWTs in a separate file and then load them globally for all tests using a general instruction.
const obj = {}
obj.a = "hello";
obj.a.b = {};
obj.a.b = "hello";
In my case, restoring/deleting the package-lock.json
file solved the problem.
The results from @shotor answer show otherwise , cluster mode performing better than non cluster mode as opposed to my findings in the question.
I cloned the provided github repo in the answer, ran the tests in cluster mode and in non cluster mode, I believe @shotor has interchanged the results for cluster mode and non clustered mode. I ran the tests with n = 100,000 and c = 1,000. Non cluster mode completed all tests in 4.5s at 22,379 req/s and served 99% of the requests in 53s while cluster mode completed all tests in 5.6s at 17,790 req/s and served 99% of the requests in 85s
Run Non cluster mode
No need to use Selenium, just a simple curl request in a shell will yield the result :
curl https://gallica.bnf.fr/services/ajax/notice/ark:/12148/cb42768809f/date
How did I found this ? Simply open the devtools of your browser, select the network tab and click on "Informations détaillées", a new GET entry will appear.
At Travelogy India Private Limited, we are dedicated to curating extraordinary travel experiences. Established in 2010, we specialize in luxury train journeys, inbound & outbound travel services, and premium hospitality.
One of our flagship offerings is the world-renowned India palace on wheels, a luxury train that lets travelers explore Rajasthan’s royal heritage in unmatched elegance. From iconic destinations like Jaipur, Udaipur, Jaisalmer, and Agra to on-board luxury with lavish cabins, gourmet dining, and personalized service, we ensure a journey fit for royalty.
If you’re looking for an unforgettable, hassle-free luxury travel experience, Travelogy India is your perfect partner! Explore More: www.thepalaceonwheels.com
This document explains how to implement sorting functionality for Google Custom Search URLs using JavaScript.
<select id="selectsort" onchange="selectthesort()">
<option value="">Sorted by relevance</option>
<option value="&sort=date">Sort by date</option>
<option value="&dateRestrict=d14&sort=date">Last two weeks by date</option>
</select>
var sortoptions;
var jsElm, jsElmIM; // Your search iframe elements
function selectthesort() {
sortoptions = document.getElementById('selectsort').value;
updateSearchUrls();
}
function updateSearchUrls() {
// Web Search URL
jsElm.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&callback=hndlr" + sortoptions;
// Image Search URL
jsElmIM.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&searchType=image&callback=hndlrimages" + sortoptions;
}
function reloadSearch() {
// Assuming you're using iframes for the search results
document.getElementById('webSearchFrame').contentWindow.location.reload();
document.getElementById('imageSearchFrame').contentWindow.location.reload();
}
var sortoptions;
var jsElm = document.getElementById('webSearchFrame');
var jsElmIM = document.getElementById('imageSearchFrame');
function selectthesort() {
sortoptions = document.getElementById('selectsort').value;
updateSearchUrls();
reloadSearch();
}
function updateSearchUrls() {
jsElm.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&callback=hndlr" + sortoptions;
jsElmIM.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&searchType=image&callback=hndlrimages" + sortoptions;
}
function reloadSearch() {
jsElm.contentWindow.location.reload();
jsElmIM.contentWindow.location.reload();
}
key
, cx
, start
, and query
with your actual valuestry this one:
var ws = xlsx.utils.aoa_to_sheet([])
xlsx.utils.sheet_add_json(ws, [["TITLE HERE"]], {skipHeader: true})
xlsx.utils.sheet_add_json(ws, [{a: 1, b: 1}, {a: 2, b: 2}], {origin: 2})
const workbook = xlsx.utils.book_new()
xlsx.utils.book_append_sheet(workbook, ws, "LAPORAN PEMBELIAN")
let fileName = "purchase-invoice.xlsx"
xlsx.writeFile(workbook, fileName)
Since the official methods I have seen so far seem inefficient for this part of the project, I used the following method to set two cookies to make the project work:
String cookieHeader = "ESPSESSIONID=" + sessionId + "; Path=/; Expires=" + expires + "; HttpOnly\r\n"
"Set-Cookie: UserRole=" + role + "; Path=/; Expires=" + expires;
response->addHeader("Set-Cookie", cookieHeader);
I needed to add permissions:
PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS);
now it works
add this in your main layout
import { StatusBar } from "expo-status-bar";
return (
<Stack>
<StatusBar />
// ...other stacks or components
</Stack>
You may have to select the Signing Account in Xcode.
Also add NSPhotoLibraryUsageDescription in info.plist.
I had the exact same issue and I was able to solve it by turning off the VPN on my test device. So if you are currently using a VPN connection, that might be one of the things to try.
I know this is super old but i just ran across this issue myself the other day, and as the other answer suggested, you cant call SetWindowsHookEx()
from the DLLMain function or other threads.
BUT, thats because the DLL main function runs in its own thread, separate from the main thread.
And thats relevant because apparently it seems that when you call SetWindowsHookEx()
, as soon as the thread that you called that from, expires, then it automatically unhooks for some reason (and i couldn't find this documented anywhere on the internet).
So if you call SetWindowsHookEx()
from any thread other than the main one of the target process (assuming you can do that) then theres always a possibility that your hook will be undone before the main process itself expires.
And in this instance, once the DLLMain function returns, it terminates the thread and consequently removes the hook.
So to fix this i call the hook from a new thread, and then i suspend the thread indefinitely, which should mean the hook only gets removed when the process itself closes.
The fixed version of the code from the question could look something possibly like this
HHOOK hHook = NULL;
LRESULT CALLBACK KeyHit(int code, WPARAM wParam, LPARAM lParam){
// replace with whatever logic you want to run in the target process when keyboard event is called
cout << "keyboard event detected.\n";
return CallNextHookEx(hHook, code, wParam, lParam);
}
void ThreadHookEvents() {
DWORD thread_id = 0; // set this to the thread id of your main/hwnd thread
HHOOK hHook = SetWindowsHookExA(WH_KEYBOARD, (HOOKPROC)KeyHit, 0, thread_id);
// then pause the thread so the hook never expires
SuspendThread(GetCurrentThread());
}
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved){
switch (ul_reason_for_call){
case DLL_PROCESS_ATTACH:
CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)ThreadHookEvents, 0, 0, 0);
break;
}
return TRUE;
}
As a bonus incase someone actually reads this, i put together another small function to get the thread ID of a window (not specifically the main one, if multiple) from the process, which you could just plug right into the above script for getting the thread_id
DWORD GetAWindowThreadID() {
auto EnumWindowsProc = [](HWND hwnd, LPARAM lParam) -> BOOL {
DWORD windowProcessId;
DWORD thread_id = GetWindowThreadProcessId(hwnd, &windowProcessId);
if (windowProcessId == GetCurrentProcessId())
*(DWORD*)lParam = thread_id;
return TRUE;
};
DWORD target_thread = 0;
EnumWindows(EnumWindowsProc, (LPARAM)&target_thread);
return target_thread;
}
In my case , I have moved from Docker desktop to Rancher Desktop, and this command from @volkovs worked form
sudo ln -s $HOME/.rd/docker.sock /var/run/docker.sock
import thunk from "redux-thunk";
// Import redux-thunk not use this type use this type import { thunk } from "redux-thunk";
// Import redux-thunk
Small correction to the accepted answer:
The keychain data doesn't get deleted with the app uninstall. Be careful with that.
Same request, but to be applied on an "icon list" widget in Elementor. I don't know if the code is different or the problem it's me :-) I've tryed to insert this code in the advanced -> personalized css tab but I cannot see any effetct. I need some hover effect because the icon list it's in a mega menu. Tnx in advance.
You should add attribute to res/values/*.xml:
<attr name=«foo» format=«string»/>
Use @BindingAdapter
without the :app
prefix:
@BindingAdapter("foo")
fun setFoo(view: ImageView, foo: String) {
print(foo)
}
oh my god,how to resolve this problem on Eclipse 2025
I've been having the same problem and I found a workable solution.
Rather than using a managedApiConnection
in the connections.json
file, in your parameters.json
file add this (as per your example):
"webApiAuthentication": {
"type": "object",
"value": {
"type": "ActiveDirectoryOAuth",
"tenant": "common",
"audience": "@appsetting('graph-audience')",
"clientId": "@appsetting('WORKFLOWAPP_AAD_CLIENTID')",
"credentialType": "Secret",
"secret": "@appsetting('WORKFLOWAPP_AAD_CLIENTSECRET')"
}
}
This will be used during local development. For deployment to Azure, create a new file called parameters.azureenv.json
and put this in it:
"webApiAuthentication": {
"type": "object",
"value": {
"type": "ManagedServiceIdentity",
"identity": "@appsetting('logicApp_identity')",
"audience": "@appsetting('graph-audience')"
}
}
Note that I've put all the settings into the appsettings; for local development these will be in the local.settings.json
file, while the appsettings deployed to the Logic App Standard resource in Azure will be set using your ARM template (or Bicep / Terraform), and will be appropriate to the environment (dev/stage/prod, etc.).
In your Logic App workflow, the HTTP action needs to look like this:
"HTTP_-_GET_NAME": {
"type": "Http",
"inputs": {
"uri": "@{parameters('url')}",
"method": "GET",
"headers": {
"HeaderName": "@{parameters('HeaderValue')}"
},
"authentication": "@parameters('webApiAuthentication')"
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
}
Because the parameter webApiAuthentication
is defined as an object, when using the local or deployed version the whole thing is substituted in, and it doesn't matter that they have different shapes.
In addition to the above, the mechanism for deploying this into Azure has to be considered, because the parameters.azureenv.json
has to become parameters.json
when deployed. Firstly, make sure that all the parameters files end up in the ZIP file used to deploy the Logic App Standard resource. Then, follow these steps in your Azure DevOps pipeline (or whatever other deployment tool you use):
Extract the zip file to a temporary location;
In the temporary location, delete the parameters.json
file (which currently contains the settings only applicable to local running of the Logic App project). Also rename the parameters.azureenv.json
file to parameters.json
. I used a PowerShell script for all this;
Zip up the modified contents of the temporary location into a new zip file.
Deploy the newly created zip file to the Logic App Standard resource.
Once all this is done, you should be able to run the Logic App locally, and the deployed version will also work, and the Logic App remains the same. I've seen some other solutions online that require changes to the code in the Logic App during deployment, but my solution avoids that complication.
good article about timing
Once a value has been calculated, it is immutable, meaning it can no longer be changed.
Therefore I agree with previously mentioned that the order matters.
Also once I had a problem with nested let-clause -- it didn't want to update or it was updated too late - I don't know. Second case concerns link above of my answer. First possible case concerns global parameters of the query itself - described here - changing Confidentials helped me.
Open Power Query options,
Open confidentiality settings in Global or Current file section,
Check the last box saying something like "Always ignore"
In all other cases codes already given helped.
I'm new to debezium and could you share how to get that data and create visualization like that. Is there any other information to tracking debezium's activities. Sorry for that my English is not good at all.
I believe it is a bug. I have created a GitHub issue: https://github.com/liquibase/liquibase/issues/6711
For me, simply deleting the .python_version
file which was created after I ran pyenv local 3.XX.XX
resolved the error message.
Finally sorted it
"Debug: Inline Values" was set to Auto. Changed it to off and that cleared it.
I did try disabling showPythonInlineValues in the DebugPy and Notebook settings but that had no effect
this seems to work:
ncap2 -O -s 'lat=-lat;' ncfile.nc temp.nc
ncks -O --msa -d lat,0, temp.nc output.nc
Because 32-bit OS means the cpu has 32-bit architecture, which means it has 32 bit registers. How does this relate to RAM?
Registers point to a particular RAM address during cpu operation. Think of it as the RAM addresss needs to be loaded in register. If you can load only 32 bits in register you cannot put more than 2^32 bytes of data in it (4GB)
Further explanation:
So for example in 8-bit architecture if register's current value is 11111111 it is pointing to 1111111 address in RAM. Each address in RAM points to some value of size 1 byte. Address that is composed of 8 binary digits can have 2^8 (256) combinations for unique name. Each combination can store(point to) the value of 1 byte therefore hold up to 256 bytes.
So in this case if we had 512 bytes in RAM, we just cannot represent it all because 8 bit (8 binary digit) register can point only to 256 different combinations which is 256 bytes.
Same applies for larger numbers. 32 bit = 2^32 combinations to be used as a address = 429496... bytes or short 4 GB
I found that Marshal.ReleaseComObject can release the Marshaled data, Modified the Managed C# code like below, now the out proc exe is closing after release.
object obj;
int hr = Ole32.CoCreateInstance(Constants.MyImplClassGuid,
IntPtr.Zero, Ole32.CLSCTX_LOCAL_SERVER, typeof(IMyInterface).GUID, out obj);
if (hr < 0)
{
Marshal.ThrowExceptionForHR(hr);
}
var server = (IMyInterface)obj;
string output = server.MyMethod();
Marshal.ReleaseComObject(obj);
user23292793 Hi. Can you show a working variant of the code for ADC interrupt mode on cmsis?
I was suffering from this and I had to take some time but I figured it out and it is based on the documentation here.
https://tailwindcss.com/docs/colors#using-a-custom-palette
I will share my example of my css file with the new tailwind v4 and hopefully that might be of help to anyone so far. This is my first time ever commenting on StackOverflow so hope its good code lol.
@import "tailwindcss";
:root {
--background: hsl(276 10% 95%);
--foreground: hsl(276 5% 10%);
--primary: hsl(276 100% 50%);
--primary-foreground: hsl(0 0% 100%);
--secondary: hsl(276 10% 70%);
--secondary-foreground: hsl(0 0% 0%);
--muted: hsl(238 10% 85%);
--muted-foreground: hsl(276 5% 40%);
--destructive: hsl(0 50% 50%);
--destructive-foreground: hsl(276 5% 90%);
--border: hsl(276 20% 55%);
--input: hsl(276 20% 50%);
--ring: hsl(276 100% 50%);
}
.dark {
--background: hsl(276 10% 10%);
--foreground: hsl(276 5% 90%);
--primary: hsl(276 100% 50%);
--primary-foreground: hsl(0 0% 100%);
--secondary: hsl(276 10% 20%);
--secondary-foreground: hsl(0 0% 100%);
--muted: hsl(238 10% 25%);
--muted-foreground: hsl(276 5% 60%);
--destructive: hsl(0 50% 50%);
--destructive-foreground: hsl(276 5% 90%);
--border: hsl(276 20% 50%);
--input: hsl(276 20% 50%);
--ring: hsl(276 100% 50%);
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
}
Essentially you just declare values in root and .dark as in normal css and then tag them with --color- . This --color- is necessary for tailwind so you just use colors like any other color thats part of tailwind. I think thats the case. It works as expected. I do not know what that inline does in there? Would love to see a response to that if anyone knows.
Thank you!
Definition of Information Retrieval (IR) Information Retrieval (IR) is the process of finding and retrieving information relevant to a user's query from a collection of data, such as documents, web pages, databases, or multimedia files. Goals of IR The primary goals of IR are to:
In my case, the index.html simply had no extra css file, only inline styles. Adding a css file made this warning go away.
Perfect solution! Thank you. This was causing me great mental trauma.
Stepped progress bar with android compose
My requirement was slightly different from the actual question so i have update the code based on answers from other folks.
Thank You everyone for the help, here is the updated code
@Composable
fun StepsProgressBar(modifier: Modifier = Modifier, numberOfSteps: Int, currentStep: Int, color: Color) {
Row(
modifier = modifier,
verticalAlignment = Alignment.CenterVertically
) {
for (step in 0..numberOfSteps) {
Step(
modifier = Modifier.weight(1F),
isCompete = step < currentStep,
isLast = step == numberOfSteps,
isPending = currentStep - step == 1,
stepColor = color
)
}
}
}
@Composable
fun Step(modifier: Modifier = Modifier, isCompete: Boolean, isLast: Boolean, isPending: Boolean, stepColor: Color) {
val color: Color = if (isCompete) stepColor else colorResource(id = R.color.Gray300)
val sColor: Color = if (!isPending && isCompete) stepColor else colorResource(id = R.color.Gray300)
Box(modifier = modifier) {
if (!isLast) {
//Line
HorizontalDivider(
modifier = Modifier.align(Alignment.Center),
color = color,
thickness = 4.dp
)
}
//Circle
Canvas(modifier = Modifier
.size(12.dp)
.align(Alignment.CenterStart),
onDraw = {
drawCircle(color = color)
}
)
}
if (!isLast) {
Box(modifier = modifier) {
//Line
HorizontalDivider(
modifier = Modifier.align(Alignment.CenterEnd).background(
Brush.horizontalGradient(
startX = 0f,
endX = 25f,
colors = listOf(
color,
sColor
)
)),
color = Color.Transparent,
thickness = 4.dp
)
}
}
}
For @Preview() use like this
StepsProgressBar(modifier = Modifier.fillMaxWidth(), numberOfSteps = 5, currentStep = 3, color = Color.Red)
In case if you want to use it in XML based UI
<androidx.compose.ui.platform.ComposeView
android:id="@+id/progress_view"
android:layout_width="match_parent"
android:layout_height="12dp"/>
findViewById<ComposeView>(R.id.progress_view).setContent {
MaterialTheme {
Surface {
StepsProgressBar(
modifier = Modifier.fillMaxWidth(),
numberOfSteps = 5,
currentStep = 3
),
color = colorResource(
id = R.color.Primary
)
}
}
}
Output:
I found that the Tile Scale matters when printing poster-wise from Adobe. Firstly work out what page size it thinks it's printing (in my version this is under Document Properties).
If this is A3 then you would think that setting the Tile Scale to 50% would mean that you get two sheets of A4? Not quite. You have to factor in the Overlap (in inches) and possibly the page margin (which applies to the A4 sheet in this case, not the A3) - so - by trial and error it turns out the scaling that works is 48%.
To make things worse, if you press enter after giving it a new scale, it starts printing straight away, without showing you on the print dialogue what it is actually going to print. Grrrr...
However, you can get it to show you by changing the print from Portrait to Landscape or vice versa (It doesn't matter which, as the print dialogue isn't taking any notice of that). Hmmm....
The problem seems to occur when you use the same mailaddress in To
field and in Bcc
field.
If you filter out at forehand which mailaddress is in To
and in Bcc
and then remove it in 'To', it should work.
I want to ask something else... It is not the data that I label as a class, some of the attributes I use are ordinal (1-5 Likert scale) and I want to classify in Weka, I do not want to leave this data numerical or nominal, but how can I use it as ordinal?
Having your online account disabled can feel frustrating and scary. Understanding why it happened and knowing what to do next is crucial. Whether it's on social media platforms or other online services, recovering your account is possible. reach her [email protected] and whatsapp:+1 712 759 4675
Killing all Dart Process using below command will fix this issue
killall -9 dart
Nowadays you can change paste settings in Tools -> Advanced Settings -> Editor -> «When pasting a line copied with no selection:»
I think as separate to another tables for management users of 2 types. Because, that's not good "customer will have a lot of null fields" for optimize database. I hope this can help you. Regards.
The regex for the $contentDisposition and $boundaryMatches where incorrect. Somehow the regex changed between versions.
It works now.
The answer provided by @3CxEZiVlQ is great. My project is not using a C++20 capable compiler but I was able to modify the code to work with an older compiler. For anybody else stuck with an older C++ compiler this is the code I used:
template <typename T>
struct fmt::formatter<T, std::enable_if_t<std::is_base_of<google::protobuf::Message, T>::value, char>>
: fmt::formatter<string>
{
auto format(const T& message, format_context& ctx) const
{
auto result = fmt::format("{}", message.DebugString());
return fmt::formatter<std::string>::format(result, ctx);
}
};
You are eprobably using NO for standard locks, use NC for Maglock as it needs constant power supply. It will open once power supply is cut short
Probably your scripts/auth.js
file is not in your public folder.
Started experiencing this issues out of the sudden. Running on MacOS 15.3 ( (24D60) and XCode Version 16.2 (16C5032a). In my case !even before doing anything with my Keychain, I just closed the IDE, XCode and restarted the Mac. After that I could build the ios from flutter again.
you can access the order id in the thank you page.
const data = useApi("purchase.thank-you.block.render");
const orderId = data?.orderConfirmation?.current?.order?.id;
What am I missing?
I don't know – is there an error here that you're trying to solve? What you're seeing is a warning that's saying, well, exactly what it's saying, that projects these days should use PEP 517 builds.
Why would pysmt-install use the deprecated setup.py?
Because that's what it's written to do (1, 2).
There's a whole bunch of grody patching going on in those installers anyway, and looks like those "sub-packages" just haven't been updated to use modern build methods.
VictoriaMetrics querying API could return only one value per time series, so you can't have highest temperature and its derivative within one query. It should be two separate queries.
I reccomend using tksvg instead
`svg_imag = tksvg.SvgImage(file="test.svg")`
`labelx = ctk.CTkLabel(root_frame, image=svg_imag, text='')`
`labelx.grid(row=0, column=0, padx=5, pady=5)`
Note that if the root is using grid selection, .pack() would not work
I have found the issue. The issue was I was creating an instance of the Focusable class. Without remember
scope. So the class was rerendering resulting is loosing focus.
Is my understanding of the JLS / JMM correct in that the program above is allowed to not halt? If no, where is my mistake?
As far as I understand, that is correct.
The reason is that the JMM lacks requirements that volatile writes should become visible in another threads in some finite amount of time.
Here is how such requirements expressed in C++:
18 An implementation should ensure that the last value (in modification order) assigned by an atomic or synchronization operation will become visible to all other threads in a finite period of time.
11 Recommended practice: The implementation should make atomic stores visible to atomic loads, and atomic loads should observe atomic stores, within a reasonable amount of time.
It would be nice to add something like that to the JMM as well.
If my understanding is correct, is there some combination of circumstances (CPU architecture, JDK build, JVM arguments, ...) where the program given above, or a variant of it (as long as flag is volatile) does not halt on a real JVM?
I haven't heard about anything like that.
For any "serious" JVM (e.g. HotSpot, OpenJ9, GraalVM) such behavior IMO would be a bug, even if the math in the JMM permits that.
BTW strictly speaking a JVM where all volatile writes are never visible to other threads meets the JMM spec.
You can use an ETL tool like Tapdata Go to Tapdata to support real-time data replication with sub-second latency. It automatically creates collections in MongoDB and maintains the schema without manual intervention, all through an easy drag-and-drop mechanism.
I threw away my "PHP > Servers" in "Settings" for a reset.
The issue that I see is with the space
and the +
in the first group, i.e. the minimum capture requirement in the first of two optional groups.
This is why the first group, even if it is lazy, can and will to capture the Com: 123
at the beginning of the line.
The first capture group ( .+?)?
:
^
the beginning of the line.
and.+
.The second capture group ( Com:.*)?:
This is why your pattern reads like ^( .+?)( Com:.*)?$
.
When Com: 123
is at the beginning of the line, the first group will attempt to grab the first two
characters,
and .
, which are its minimum requirement. This is the laziest it can get. It does not have an option to try to match an empty string. After matching the minimum C
there is only om: 123
left. This no longer matches the second group, so the first lazy group has to continue munching away all the way to the end $
.
The "super lazy" solution by @Guillaume Outters is elegant and perfect, because it allows you to keep the requirement for a space followed by one character as the minimum match for the first group.
However, to demonstrate the space-plus issue (i.e. the minimum requirement for first of two optional patterns) with the pattern you had, Here is a solution that would get you close:
^(.*?)?( Com:.*)?$
You would remove the space from the first group,
because the period .
will capture spaces as well. Also, you would want to change the .+
to .*
so that the lazy does not have to capture anything. This way, because the first group capture is lazy and optional with no minimum capture requirement, when it sees a Com:123
ahead, it will stop right there and capture nothing, capture an empty string. And, more importantly it will not consume the first space and another character, allowing the second group to capture the entire Com:123
.
There is a problem with this solution though. Although it captures the space in front of the characters at the beginning of both captured groups, it will also capture any string that does not have a space at the beginning of the line. This can definitely be a problem.
Link: https://regex101.com/r/nISB75/1
This is why the solution by @Guillaume Outters is an the perfect solution to guarantee the desired outcome.
For comparison, @Guillaume Outters solution ^( .+?)??( Com:.*)?$
with additional test strings: https://regex101.com/r/MobsDN/2
I have had the same issue but my problem is that I dont want to start the file I want to open it in VsCode itself what should I do, as I am getting an error $ code chapter1.txt bash: code: command not found
I actually figured it out, I had inputed the images as RGB when they were actually greyscale. I fixed this and the code is working now.
The accepted awk answer works on AIX ksh. But I use it with very big (120G) files and it takes 30 minutes to split the file.
Try running with parameters:
dbt run --project-dir /path/you_project_dir --profiles-dir /path/you_profile_dir
You can use repeat
property in Text
style.
Take a look at https://stackoverflow.com/a/79420050/12879646
Did you fing the solution? i need to fix the same issues
Based on the comments given (thanks a lot!) I finally solved it this way:
<div class="input-group p-0 d-flex justify-content-end flex-nowrap">
Everything was configured correctly. I just had to wait for a couple of days for the Google servers to update, I guess. Google support answered me today after more than one week, saying that they needed to investigate more the issue...so I told them I already solved it.
Since Symfony 6.3, the correct way is using #[MapRequestPayload].
Using GraphQl is the way to go!
To properly answer the question. Using references is the key:
$em->getReference(Entity::class, 1);
I'm having the same experience, and I suspect it may be a regional issue. Have you tried using a VPN and then restart your CodeGPT/VSCode to see if that resolves the problem?
I guess you will also have to look at Cache-Control header of the page and its values, this can help vercel to return the page directly from edge network only, you might have values public, immutable, and may be the reason for revalidation not working.
I'm not 100% sure but once try changing revalidation time to 2 minutes and Cache-Control headers to never cache anything and try. also can read more here - https://vercel.com/docs/edge-network/caching
In Chrome version 92, this flag has worked for me: chrome.exe --disable-features=OverscrollHistoryNavigation
The Problem was the serial to ethernet server(brainbox) the power supply was connected to had the serial ports set to telnet protocol type, while looking for a solution on the brainbox webside:
https://www.brainboxes.com/product/ethernet-to-serial/db9/es-701
I checked their debugging video for c# and there they set the serial ports protocol to Raw TCP, after this setting was changed I was able to get the response from the power supply.
If you are Using android client ID or the Web client ID. If using Android Client ID you will get API exception 10, If Using Web Client Id you will get API exception 8.
You just need to go to to your credentials screen and download the json file. Then just rename it to "google-services" and put that under android/app/.
It will remove the API Exception Issue.
sorry to bother you, has your issue been resolved? I am facing the same problem.
If you are running on Python version 3.13, downgrading it to Python 3.12 might solve the problem. According to my testing, both trying to replicate the issue and fix it. I found out that there is a Deprecated API in Python 3.13 as shown below,
scient/calc_expr.c(17866): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call
While for my case it was a problem with the "Scient" Package, it might not necessarily be the same. Regardless, in my case, Py_UNICODE is deprecated in Python 3.13, causing warnings.
In order to fix this, I reccomend downgrading to Python 3.12. And installing it in a virtual environment.
It is important to note that, I tested on Python 3.11, and due to unknown reason. I was not able to make it work.
Cheers,
Don't worry, just paste this on your terminal, and you're good to go!
SET PATH=C:\Program Files\Nodejs;%PATH%
Actual credits: @ammarsecurity âš¡
I'm trying to do a manual signing with dnssec-signzone with this
command:
dnssec-signzone -t -N INCREMENT -o gentil.cat -f
/etc/bind/gentil.cat.signed
gentil.cat Kgentil.cat.+013+17694.key Kgentil.cat.+013+06817.key
This is my zone archive (it's named gentil.cat.hosts and it is in
/etc/bind)
Screenshot of the archive:
https://i.sstatic.net/lQUPTvy9.png
And then the result of the command is this:
https://i.sstatic.net/f55JRMh6.png
Here is a screenshot with all de archives I have in /etc/bind
https://i.sstatic.net/ziubA75n.png
Note: "signat" is "signed" in catalan
Please can you help me?
Thanks
For Standalone Components:
import { CommonModule } from '@angular/common';
@Component({
templateUrl: './mycomponent.component.html',
styleUrls: ['./mycomponent.component.scss'],
standalone: true,
imports: [CommonModule, ... ]
})
I finally found out the solution myself. The problem was that I had to extend BasicDataSourceFactory from org.apache.tomcat.dbcp.dbcp2 insted of extending BasicDataSourceFactory from org.apache.commons.dbcp2. Apparently, the both classes hace a few differences and do not manage authentication the same way. Hope it helps.
I am also facing this error since last month. did you happen to find a fix for this?
Can you provide some background, why you want to have a result like this?
Actually if you want Dummy.name + List the most easiest way is to select the Dummy
entities:
// Repo is a SpringData repository interface
Set<Dummy> result = repo.findAll();
final Map<String, List<SubEntity>> collect = result.stream().collect(Collectors.toMap(Dummy::getName, Dummy::getSubs));
In case you want to use criteria queries for filtering by subentity-property, just add this to the findAll, might look like this:
// Not really tested...
Set<Dummy> result = repo.findAll( (root, query, cb) ->
query.where(cb.equal(root.get(Dummy_.SUBS).get(Sub_.SOMEPROP), cb.literal("some-value"));
final Map<String, List<SubEntity>> collect = result.stream().collect(Collectors.toMap(Dummy::getName, Dummy::getSubs));
Alternatively use entity-manager + create query etc. to const
Just to vent my frustration - simple things like these make me hate all this Microsoft databinding. Why can't life just be easy by default, like checkbox being true of false, 1 or 0. If someone wants to complicate things with implementing tristates etc. that should be the extra option, not the default option.
Obviously, It is not a good idea to store the images in the room db, as it size increase with it's quality and the cursor limit of room db is 2mb so it could cause runtime exceptions. Rather you should save the image in cache or files Directory and save it's path as a String in the Room Database
why can't you use @Environment(.presentationMode) var presentationMode this it's easy to navigate using Environment variables
not much complex and just need to add one variable rather than passing it to all along
this is the very simple example to use @Environment variable to navigate
struct HomeView: View {
var body: some View {
NavigationStack {
NavigationLink("Go to Detail", destination: DetailView())
}
}
}
struct DetailView: View {
@Environment(\.presentationMode) var presentationMode
var body: some View {
Button("Go Back") {
presentationMode.wrappedValue.dismiss()
}
}
}
I am currently in the same boat with setting up egress gateway using mTLS at origination. In our case we want to terminate ssl connection at gateway and then establish new mTLS connection via destination rule and following the doc doesn’t seems to be working. Currently setting this in GKE ASM managed and using gateway api for gateway deployment. When test http://externalservixe.com errors out 503 server unavailable error. Openssl vtls1.3 failed to verify certificate. Any tips or steps is appreciated. Istio documentation is very confusing. Thanks!
I agree with Eric Aya and SOuser, also in addition you will need to close your browser and open another one and then re-enter Kaggle.
Just add #import <WebKit/WebKit.h>
before #import "Runner-Swift.h"
in your Objc file. :)
The reason Entity Framework Core (EF Core) scaffolds your model with null for string properties, even though the database columns are NOT NULL, is because in C#, strings are reference types, and EF Core doesn’t assume a default value unless explicitly told to. This means even if your database enforces NOT NULL, EF Core won't automatically assign an empty string (string.Empty); it just ensures the column can't be null when stored in the database.
This happens because
C# Default Behavior: Since strings are reference types, they default to null unless initialized explicitly.
EF Core Doesn't Assume Defaults: It only respects the database constraint but doesn’t enforce a default value in your C# model.
Flexibility for Developers: Some prefer handling default values in their application logic instead of having EF enforce it.
How to Fix This?
If you don’t want null values in your C# objects, here are a few ways to handle it:
Use Default Initialization in the Model
Modify your model to initialize string properties with string.Empty:
public class StudyInvitation { public int Id { get; set; } public string Name { get; set; } = string.Empty; public string Subject { get; set; } = string.Empty; public string Body { get; set; } = string.Empty; }
This ensures the properties are never null in your C# objects.
Use a Constructor
Another approach is to initialize them inside a constructor:
public class StudyInvitation
{
public int Id { get; set; }
public string Name { get; set; }
public string Subject { get; set; }
public string Body { get; set; }
public StudyInvitation()
{
Name = string.Empty;
Subject = string.Empty;
Body = string.Empty;
}
}
You can also configure EF Core using Fluent API inside your DbContext class:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<StudyInvitation>()
.Property(e => e.Name)
.IsRequired()
.HasDefaultValue(string.Empty);
modelBuilder.Entity<StudyInvitation>()
.Property(e => e.Subject)
.IsRequired()
.HasDefaultValue(string.Empty);
modelBuilder.Entity<StudyInvitation>()
.Property(e => e.Body)
.IsRequired()
.HasDefaultValue(string.Empty);
}
This ensures that even if you forget to initialize these properties, the database will automatically use an empty string.
Which One Should You Use?
If you want to prevent null in your C# code, go with Option 1 (Default Initialization) or Option 2 (Constructor).
If you want to enforce it at the database level too, use Option 3 (Fluent API).