immediately after posting, I got solution. Mea culpa - not update, but updateRange ... sorry again
When cursor is not hold, then "usually" it is not materialized - depends on used internal operations. So although you process huge set of rows, the memory usage can be low.
One of possible fixes:
CurrentUnitOfWork.Configuration.AutoDetectChangesEnabled = false;
How and by what rule is my array masquerading as an array of arrays?
The code your provided declare buf as a pointer to a dynamically allocated array of ints with a size of max_size. So, buf pointers to the first element of a one-dimensional array of integers.
int* buf = new int[max_size];
In addition, the process function expects a pointer to a pointer to a constant int and the argument being passed to this function is &buf, which has the type int**. Here, buf is of type const int* const*, so buf[c] is dereferencing the first pointer in the array.
void process(const int* const* buf)
{
int a = 0;
int ch = 1;
for(int c = 0; c < ch; ++c)
for (int i = 0; i < max_size; ++i)
a += buf[c][i]; // ???
}
i tried it (VS 2022) for example with:
#Const toCompile = False
#If toCompile Then
//code
#End If
and it worked.
I found the same issue on RN 0.75 Disabling bridgless mode works fine for me as mentioned on https://github.com/software-mansion/react-native-screens/issues/2324#issuecomment-2334659956
I encountered the same problem with Python 3.13.0:
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\ssl.py", line 955, in unwrap
return self._sslobj.shutdown()
~~~~~~~~~~~~~~~~~~~~~^^
ssl.SSLError: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2706)
Is there any fix for this?
Steps:
Note: If you are not familiar than reinstall browser.
I met the same error and I am using ubuntu24.04.I tried Serkan ÜNAL's answer but it didn't work.
it is simple, it is related with permission and i have fixed simply: go to your postgres(am using arch linux btw):
sudo -i -u postgres
then,
psql
then run:
GRANT ALL PRIVILEGES ON SCHEMA public TO your_django_user
and it shows output: enter image description here
and also finally run:
ALTER ROLE your_django_user WITH SUPERUSER
I HOPE NOW python manage.py migrate will work fine.
There is no persistance of data by default between 2 jobs. You need to use artifacts in order to achieve what you are trying to do: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/storing-and-sharing-data-from-a-workflow
I'm using .at() most of the time:
let arr = [1, 2, 3, 4, 5];
let lastElement = arr.at(-1);
console.log(lastElement);
For me it worked that way:
`image=ft.DecorationImage(
src='assets/splash.png',
fit=ft.ImageFit.COVER,
)`
/*//////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this
// license. If you do not agree to this license, do not download, install,
// copy or use the software.
//
// This file originates from the openFABMAP project:
// [http://code.google.com/p/openfabmap/] -or-
// [https://github.com/arrenglover/openfabmap]
//
// For published work which uses all or part of OpenFABMAP, please cite:
// [http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6224843]
//
// Original Algorithm by Mark Cummins and Paul Newman:
// [http://ijr.sagepub.com/content/27/6/647.short]
// [http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=5613942]
// [http://ijr.sagepub.com/content/30/9/1100.abstract]
//
// License Agreement
//
// Copyright (C) 2012 Arren Glover [[email protected]] and
// Will Maddern [[email protected]], all rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote
// products derived from this software without specific prior written
/// permission.
//
// This software is provided by the copyright holders and contributors "as is"
// and any express or implied warranties, including, but not limited to, the
// implied warranties of merchantability and fitness for a particular purpose
// are disclaimed. In no event shall the Intel Corporation or contributors be
// liable for any direct, indirect, incidental, special, exemplary, or
// consequential damages (including, but not limited to, procurement of
// substitute goods or services; loss of use, data, or profits; or business
// interruption) however caused and on any theory of liability, whether in
// contract, strict liability,or tort (including negligence or otherwise)
// arising in any way out of the use of this software, even if advised of the
// possibility of such damage.
//////////////////////////////////////////////////////////////////////////////*/
#include "bowmsctrainer.hpp"
#include <iostream>
#include <vector>
#include <list>
namespace of2 {
BOWMSCTrainer::BOWMSCTrainer(double _clusterSize) :
clusterSize(_clusterSize) {
}
BOWMSCTrainer::~BOWMSCTrainer() {
}
cv::Mat BOWMSCTrainer::cluster() const {
CV_Assert(!descriptors.empty());
int descCount = 0;
for(size_t i = 0; i < descriptors.size(); i++)
descCount += descriptors[i].rows;
cv::Mat mergedDescriptors(descCount, descriptors[0].cols,
descriptors[0].type());
for(size_t i = 0, start = 0; i < descriptors.size(); i++)
{
cv::Mat submut = mergedDescriptors.rowRange((int)start,
(int)(start + descriptors[i].rows));
descriptors[i].copyTo(submut);
start += descriptors[i].rows;
}
return cluster(mergedDescriptors);
}
cv::Mat BOWMSCTrainer::cluster(const cv::Mat& descriptors) const {
CV_Assert(!descriptors.empty());
// TODO: sort the descriptors before clustering.
// Start timing
int64 start_time = cv::getTickCount();
// Used for Mahalanobis distance calculation, identity covariance
cv::Mat icovar = cv::Mat::eye(descriptors.cols,descriptors.cols,descriptors.type());
// Create initial centres guaranteeing a centre distance < minDist //
// Loop through all the descriptors
std::vector<cv::Mat> initialCentres;
initialCentres.push_back(descriptors.row(0));
for (int i = 1; i < descriptors.rows; i++)
{
double minDist = DBL_MAX;
#pragma omp parallel for if (initialCentres.size() > 100)
for (int j = 0; j < (int)initialCentres.size(); j++)
{
// Our covariance is identity, just use the norm, it's faster.
// cv::Mahalanobis(descriptors.row(i),initialCentres[j], icovar);
double myDist = cv::norm(descriptors.row(i),initialCentres[j]);
#pragma omp critical
minDist = std::min(minDist, myDist);
}
// Add new cluster if outside of range
if (minDist > clusterSize)
initialCentres.push_back(descriptors.row(i));
// Status
if ((i-1)%(descriptors.rows/10) == 0)
std::cout << "." << std::flush;
}
// Status
std::cout << "\nFinished initial clustering for "
<< descriptors.rows << " descriptors. "
<< initialCentres.size() << " initial clusters. "
<< std::endl;
// Assign each descriptor to its closest centre //
// Loop through all the descriptors again
// TODO: Consider a kd-tree for this search
std::vector<std::list<cv::Mat> > clusters;
clusters.resize(initialCentres.size());
#pragma omp parallel for schedule(dynamic, 200)
for (int i = 0; i < descriptors.rows; i++) {
size_t index; double dist, minDist = DBL_MAX;
for (size_t j = 0; j < initialCentres.size(); j++) {
dist = cv::norm(descriptors.row(i),initialCentres[j]);
if (dist < minDist) {
minDist = dist;
index = j;
}
}
#pragma omp critical // Order doesn't matter here
clusters[index].push_back(descriptors.row(i));
// Status (could be off because of parallelism, but a guess
if ((i-1)%(descriptors.rows/10) == 0)
std::cout << "." << std::flush;
}
// Status
std::cout << "\nFinished re-assignment. "
<< std::endl;
// Calculate the centre mean for each cluster //
// Loop through all the clusters
cv::Mat vocabulary;
#pragma omp parallel for schedule(static, 1) ordered
for (int i = 0; i < (int)clusters.size(); i++) {
// TODO: Throw away small clusters
// TODO: Make this configurable
// TODO: Re-assign?
// if (clusters[i].size() < 3) continue;
cv::Mat centre = cv::Mat::zeros(1,descriptors.cols,descriptors.type());
for (std::list<cv::Mat>::iterator Ci = clusters[i].begin(); Ci != clusters[i].end(); Ci++) {
centre += *Ci;
}
centre /= (double)clusters[i].size();
#pragma omp ordered // Ordered so it's identical to non omp.
vocabulary.push_back(centre);
// Status (could be off because of parallelism, but a guess
if ((i-1)%(clusters.size()/10) == 0)
std::cout << "." << std::flush;
}
// Finish timing
int64 end_time = cv::getTickCount();
// Status
std::cout << "\nFinished finding the mean. "
<< vocabulary.rows << " words. "
<< (end_time-start_time)/cv::getTickFrequency() << " s. "
<< std::endl;
return vocabulary;
}
}
Hi, can you help me edit this code so that your solution to the problem can work for me as well.
Thanks in advance. I await your response
Accord does not have such class. I suggest to try ML.NET.
Here is ML.NET tutorial for anomaly detection:
https://learn.microsoft.com/en-us/dotnet/machine-learning/tutorials/sales-anomaly-detection
I’m working on a Node.js application using Express, Sequelize, and Nodemailer to handle contact form submissions. I’ve implemented CORS, connected to a MySQL database, and set up email notifications. However, I’d like some feedback or suggestions for improvement.
No, you cannot pass a const pointer to a struct and a pointer to its member as non-const. This will result in a compilation error.
Thank you Teamothy for your answer. I was just looking for this to speedup my project.
I created a sample Blazor web assembly application in .net 6 and then upgraded it to .net 8 got the similar errors while deploying it to Azure App Service.
Mostly, the error you've encountered occurs because of the NuGet packages, that are different in both the versions.
Thank you, @Akif T, for the clear explanation. I referred to this doc to know how to migrate from .NET 6 to .NET 8.
To resolve the issue I've deleted the bin and obj folder from my application.
And also cleared the Nuget packages as shown below
Go to Nuget package manager -> general -> hit clear All NuGet Storage.

Then again reinstall your packages and redeploy to Azure Web App.
After doing the above changes I was able deploy the application to Azure Web App without any issues.

I encountered this issue while installing Android Studio 2024.2.1 on Windows 7 (as of October 25, 2024). To fix it, I found that installing an older version, Android Studio 2024.1.2, works without issues. You can download this version from archive.org, specifically the release dated before September 7, 2024. It’s compatible with Java JDK 18.0.1 and JRE 10.0.2.
Here's the download link: Android Studio 2024.1.2 - Archived Version. Scroll down to the bottom of the page to locate the Windows version.
In order to detect when there are errors in the form after the user clicks "pay now" button, you need to use the solution below.
Since "subscription" will be triggered on every interaction with every field, we need to make sure that it only triggers once, after the "pay" button is clicked. I left a comment in its place.
let pay_btn_clicked = false;
// here you need to write a function that changes the value of "pay_btn_clicked" to true, when the button is clicked
const { subscribe, select } = wp.data;
subscribe(() => {
const checkoutData = select('wc/store/checkout');
if ( pay_btn_clicked ) {
if ( checkoutData.hasError() ) {
console.error('There was an error in checkout');
} else {
console.error('There were no errors in checkout');
}
}
pay_btn_clicked = false;
});
It looks like you need advance formatting. I guess lucene syntax for your variable in the query.
https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/#lucene---elasticsearch
Is there a way to trully disable AI features, and enforce it across all settings, users?
AFAIK, as of now, there isn't a direct way to disable the Automatic Assistant Autocomplete features for all users at the account level.
Individual user has control to disable Automatic Assistant Autocomplete they need to disable the feature themselves in their developer settings.
As per document to disable the Automatic Assistant Autocomplete you need to do it from user settings.
- To turn off autocomplete suggestions, toggle Autocomplete as you type. When autocomplete is off, you can display autocomplete suggestions by pressing Ctrl + Space.
- To prevent Enter from inserting autocomplete suggestions, toggle Enter key accepts autocomplete suggestions.

Last version from https://mvnrepository.com, Aug 29, 2018:
<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>1.6.2</version>
</dependency>
The way I found is using the lldb debugger, i need to attach in a running proccess and forward the device port with the machine port, then run lldb and put the remote address on the port forwared. In my case this work but not solve my problem, my tests runs on saucelab and there is a lot of limitations to adb commands.
The following links work on all operative systems. On Apple devices (iOS, macOS, etc.) it shows the app in the App Store, on other OSes it uses the browser and navigates to the app page on App Store.
These links go to the app with ID 123456789 and show the page in device language
https://apps.apple.com/app/123456789https://itunes.apple.com/app/123456789If you want the page to be region specific
https://apps.apple.com/de/app/123456789https://itunes.apple.com/de/app/123456789To get the ID of your app, go to https://appstoreconnect.apple.com/apps, select the app, the ID is in the URL
Facing the same problem, I've found a solution to it.
The idea is to use the CDT Build Output Parser that
... relies on verbose build output of your build where all these options are actually printed by make.
Then, what you need to do is to make your build command verbose, so that the call of the compiler is printed into the output with all the arguments, and call the build from Eclipse.
I've found the answer in the article from Eclipse here: https://www.eclipse.org/community/eclipse_newsletter/2013/october/article4.php
Quoting the part that explains it (focus on point 2.):
CDT will try to discover include paths and pre-processor symbols automatically for supported tool chains. There are 2 main ways to discover those:
Built-in Settings. CDT will try to detect built-in compiler symbols and include paths running the compiler with special options and parse the output of this special run. Most compilers provide such an option to print built-in include paths and symbols. Built-in settings are implied and do not get passed to compiler during regular compilation.
Build Output Parser (BOP). Another method that CDT employs is to analyze build output of the regular build with Build Output Parser. Often, include paths are supplied to the compiler with -I options, and macros with -D options and BOP will try to find those in the output. That method relies on verbose build output of your build where all these options are actually printed by make.
Now what's necessary is to:
Example build output (a single file compilation command) for an embedded ARM MCU target could look something like this:
[C++] Building file: src/your_source_file.cpp
arm-none-eabi-g++ -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -std=c++17 -pedantic -Wall -Werror -W... -fno-exceptions -f... -Isrc -I... -DUSE_FULL_LL_DRIVER=1 -DARM_MATH_CM4=1 -D... -g -O3 src/your_source_file.cpp -o _build/release/your_source_file.o
Notes to the output example above:
Problem solved.. the answer was right in front of me.. I was passing the env variables url's without the https://
After correcting that both app's on Azure App service and Static Web App are working properly
I DID THE SAME WITH MUI TIME PICKER BUT IT ONLY OPENS ON CLOCK ICON CLICK NOT WITH WHEN USER ENTERS ON TEXT FIELD
use FTP SERVER Like filezila pro or Easyftp For Easy Way to Uplode & Downlode For onedrive
first you must be under your project root directorie.
if you are running Samples project like.
the command will be samples:project1:androidDependencies
the dot "." is replaced by ":"
Sometimes it helps to restart the device and the authorization dialog appears on the next attempt (experienced on two devices this week).
To maximize ROI in test automation, start by clearly defining objectives, such as reducing testing time, enhancing accuracy, and cutting defect rates. Focus on automating repetitive, high-impact test cases, such as regression and smoke tests, for the most significant time and cost savings. Choosing the right tools and frameworks is crucial, as they can optimize workflows and reduce future maintenance costs. Additionally, track key metrics like time saved, defect reductions, and test coverage to measure ROI effectively. An efficient test automation strategy minimizes manual effort, improves software quality, and delivers measurable financial returns over time, ensuring sustainable growth.
You could use the following JS when your modal shows:
const body=document.body.style.overflow="hidden"
then you can reset the behavior to default "scroll" when closing the modal.
I don't believe that powershell recognizes the HKU hive but if you're willing to use the older CMD syntax, you can replace *HKCU* with *HKU<sid>* where is the user's domain security ID associated with their username.
I created a feature proposal to Ruby, please support if you'd like to see fetch_nested method in the core.
solved, by changing this line:
if (isset($this->contents[$products_id])) {
to
if (isset($this->contents[(int)$products_id])) {
You must pass col3 into insert which obviously cannot be NULL, your error is not about conflict.
You need to include EXTRACT_STATIC = YES into your doxyfile. I presume this is what you wanted right?
yeah the https:// way really works even for the error: "fatal: unable to connect to github.com: github.com[0: 20.207.73.82] : errno=Connection timed out" tysm
When this feature release public in the AWS Redshift?
I need this version if possible (v10.21.3)
When you are run a sub processes it's back his pids. Command wait can wait wait <process or job ID>. Command waitpid can you help too then you have a list of running sub processes. From process to process you can send param as pid or used in subprocess subfunction for watch ps .From the ps man page, the status field will tell you if a thread is on the run queue (use the 'L' option to see threads) .
Create true logic of your program.
It works in my browser. Can you try open with other PC and if it works you can try reinstall your Firefox. Here is My POV
I will explain with an example ,
I already had a post with this url: example.com/website
I changed the url to this:
example.com/why-reason-website
And now I want to change the url again to the original address:
example.com/website
If the type is exact, the page will not come up, but if the type is regex, the page will come up.
I have more than 1000 posts and I can’t change the type to regex one by one.
That’s why I added this redirect from (.*) to $1 by type regex for redirecting all the posts on my site at once, but it doesn’t work.
Unfortunately there is no way to download any old version. Its only a retrospective about that version but the actual download button is missing. So is no way to get those good old versions. The only way that I found it is possible is from adjacent websites. I find this version to work with my win7: https://android-studio.software.informer.com/download/#downloading
Create a 1 GiB file.
string testfile = "hello";
var content = new byte[1024L * 1024 * 1024];
Random random = new Random();
random.NextBytes(content);
File.WriteAllBytes(testfile, content);
Have you add enctype="multipart/form-data" attribute to form tag, if not than add this.
Use encode and no ! for you input (! is there to mark start and end) and don't set text.
here_document_input ="""input 1
input 2
input 3
"""
result = subprocess.run("program", input=here_document_input.encode(), shell=True)
Run gradlew commands inside the android folder.
./gradlew assembleRelease for apk
./gradlew bundleRelease for aab
APK will be located in android/app/build/outputs/apk/release/
AAB will be located in android/app/build/outputs/bundle/release/
I was able to fix this issue by using the flags:
args: ['--headless=new', '--remote-allow-origins=*', '--autoplay-policy=user-gesture-required', '--disable-gpu', '--single-process']
Create a index.d.ts file in the src folder and insert this declaration.
declare module '*.png';
Restart the TS Compiler if issue persists.
Just install this library: https://www.npmjs.com/package/react-native-get-random-values and then import it on the entry route of your project; top layout if using expo router, or app.js/tsx or index.js/tsx:
import 'react-native-get-random-values';
I faced the similar issue, The reason even though public access is on,and security groups are configured correctly. The Subnet group in RDS uses default subnet group, lets say we have 2 AZ's with 2 subnets in each AZ (Private and public), the default db group adds 4 subnets and place the db instance in one of the private subnet.
Fix: Create a custom Subnet group, add only public subnets.
we will need more information. Do you use WebSocketConnector or BasicWebSocketConnector? What version of Quarkus do you use? In general, the connector should receive the error (either wrapped in a CompletionException for connectAndAwait() or returns a failed Uni for connect()).
I had the same problem, and found that the solution is just to restart VS before publishing, you dont have to do anything else.
For the same reason, always publish to a new empty folder, so you can see the actual output, if any.
adding this to the top worked for me
Add-Type -AssemblyName System.Windows.Forms
I tweaked the code slightly with the following inclusions:
values(), instead of the collection as-isIn addition, the sorting function is not entirely redundant as earlier assumed, since the behavior varies, depending on incoming parameter
Putting it all together, we have:
protected function punctualChart ($attendanceCollection, ?string $puncMode) {
$puncMode = $puncMode?? "ear";
$attendanceDays = $attendanceCollection->groupBy(function ($attendance) {
return $attendance->created_at->format("m-d");
})
->map(function ($daysCollection) use ($puncMode) { // then sum their value for each day? add their indexes. depending on the mode, we know whether highest or lowest is the winner
return $puncMode == "ear"? $daysCollection->sortByDesc("created_at")->values():
$daysCollection->sortBy("created_at")->values();
});
//dd($attendanceDays, $puncMode);
$scoreEmployee = [];
$maxValue = 0;
foreach ($attendanceDays as $attendanceCollection) {
foreach ($attendanceCollection as $index => $attendance) {
$employeeId = /*$attendance->employee->last_name.*/$attendance->employee_id;
if (!array_key_exists($employeeId, $scoreEmployee))
$scoreEmployee[$employeeId] = /*0;*/[
"value" => 0,
"model" => $attendance->employee, //->last_name
];
$maxValue += $index+1;
$scoreEmployee[$employeeId]["value"] += $index+1; // offset 0-based index
}
}
foreach ($scoreEmployee as $employeeId => &$employeeDetails)
$employeeDetails["value"] = round(
($employeeDetails["value"]/$maxValue)*100,
2
);
//dd($scoreEmployee);
return $scoreEmployee;
}
Thanks to @angel for motivating me to give this another shot
reassign the indexes to the resulting collection
If you're looking for an easy way to send Firebase Cloud Messaging (FCM) push notifications in Laravel, I’ve developed a package called heyharpreetsingh/fcm that simplifies the process. It allows you to send notifications to mobile (Android, iOS) and web platforms efficiently.
How to Use: Install the package via Composer:
composer require heyharpreetsingh/fcm
Register the service provider in bootstrap/providers.php (Laravel 11) or config/app.php (Laravel 10 and below):
Heyharpreetsingh\FCM\Providers\FCMServiceProvider::class,
Set up Firebase credentials by generating a private key in Firebase Console and adding the path to the JSON file in your .env file:
FCM_GOOGLE_APPLICATION_CREDENTIALS=storage/ServiceAccount.json
Send a notification to individual devices like this:
use Heyharpreetsingh\FCM\Facades\FCMFacade;
FCMFacade::send([
"message" => [
"token" => "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...", // Device token
"notification" => [
"body" => "This is an FCM notification message!",
"title" => "FCM Message"
]
]
]);
Was this guide helpful to you? Please support my work by leaving a 👏 clap as a token of appreciation.
Posit numbers will be commonly used in the future. The OP may have found this unfortunate, but the Posit concept itself is indeed still very young (from 2017), and not yet mature enough (in implementation) to have replaced IEEE-754, especially in hardware accelerators. Remember that IEEE tried to come with a failed replacement (IEEE 854) in the mean time, The cited library cannot be faster than hardware obviously, but also not in software, and is definitely not the same as 5 years ago. Posit neither, as the standard was published in 2022.
you should try one api call for authorization with private app cliendId and other necessary params and app will apear in your ghl dashboard. After you select on ghl widget sub or agency account it will be installed.
it's new feauture in excel, "Stale Value Formatting": https://support.microsoft.com/en-au/office/stale-value-formatting-4b5c63c3-5dc7-4e9b-8e24-88bed1987dbd
You can turn it off or recalculate worksheet before print.
Thanks to A.Mack from Microsoft forum, he found this.
Not quite sure what is going wrong with your implementation. My guess would be you might have the wrong index specified somewhere or the wrong range.
I have a similar implementation here
There are 2 fixes. One is mentioned already. And it's to paint off all grass (CTRL + CLICK to DEL selected type). Bake, then CTRL+Z, to get them back.
Other way is to detach the grass from the terain with code and treat them as game objects to be able to modify them accordingly.
provider hashicorp/azurerm does not support resource type "azurerm_resource_group_policy_assignment
Hello Greencolor, seems like you already found a solution to your problem, I am just posting it here for ease of other folks who are facing similar issue on SO. Please feel free to add any points / your inputs to this if required.
As per the github link azurerm_resource_group_policy_assignment is supported by azurerm from the version = "3.49.0" so make sure youre using the version greater or equal to that.

Seems you're using the version = "2.52.0" is very outdated. As per the HarshiCorpdoc the latest version = "4.7.0" as of today.
As MarkoE suggested in always the best practice to use the latest version provider so that most up-to-date features, improvements, and security enhancements will be up-to date.
As i can recall detectChanges should be trigged on: DOM events, Asynchronous tasks and Component lifecycle events, accent here is on "it should" there are cases (in my experiece at least) where angular does not trigger change detection automatically (when change is runnning outside of Angular zone) in that cases you should trigger change manually, for example using ChangeDetectorRef:
import { ChangeDetectorRef } from '@angular/core';
constructor(private cdr: ChangeDetectorRef) {}
someMethod() {
// Code that doesn't trigger automatic change detection
this.value = 'Updated manually';
// Manually trigger change detection
this.cdr.detectChanges();
}
but for most cases, for me, more direct way is to do what ever you need after you change value. So for given example if You are changing something onClick() and expecting some reaction to change caused by that method call another method from within onClick() which will do something yo expect with given data?
In the latest version of Enterprise Architect (I'm using v16) it's easy to copy whole package and than paste it into new project (eapx). But, it's mandatory to have diagram within a package, so if it is not the case, you should previously create one "dummy" or "test" for copy purposes.
Paste the package into your project. Good news: if the target project contains a package with the same name, the "...- Copy" will be created automatically.
After this, you can copy desired diagram from one package into another one.
It works when there's version problem.
pip install paho-mqtt==1.6.1
To prevent showModalBottomSheet from rebuilding when scrolling, consider avoiding the direct use of FutureBuilder within it. Instead, fetch the data once before opening the modal, cache the result, and pass it as an argument to the showModalBottomSheet. This approach ensures data is read only once, minimizing rebuilds and improving performance.
You can add proxy_set_header Host domain2.com in your location
location / {
proxy_pass http://domain1.com/test/;
proxy_set_header Host domain2.com
}
What did helped me (on Ubuntu 22.04) was this in advanced emulator setup (... Settings), set
OpenGL ES Renderer to Desktop native OpenGL and OpenGL ES API Level to Rendered maximum
It's still kinda slow, but bearable - qemu still take a lot of CPU, but at least Android is reasonably reactive.
i do have this doubt did you got answer ?
You need ngrok http 4000. You need tunnel.
I find out the solution and it helpful for me
Resque.delayed_queue_peek(1, 20)
# Result : ["1727744400", "1727780400", "1728379910", "1728381061", "1728381063", "1728381750", "1728383426", "1728391401", "1728391426", "1730320200", "1731148380", "1737030600"]
scheduled_timestamps = Resque.redis.zrange('delayed_queue_schedule', 0, -1)
# result ["1727744400", "1727780400", "1728379910", "1728381061", "1728381063", "1728381750", "1728383426", "1728391401", "1728391426", "1730320200", "1731148380", "1737030600"]
scheduled_jobs = scheduled_timestamps.map do |timestamp|
Resque.redis.lrange("delayed:#{timestamp}", 0, -1)
end
# result [["{\"class\":\"CompanyEnqueSnapshotsJob\",\"args\":[1,\"2024-10-01\"],\"queue\":\"snapshots\"}"]...
scheduled_jobs.flatten.each do |job|
puts job
end
{"class":"CompanyEnqueSnapshotsJob","args":[1,"2024-10-01"],"queue":"snapshots"}
Thank you
There are numbers of scripts available online you can get idea from that to download SlideShare presentations.
If you're looking for an easy way to send Firebase Cloud Messaging (FCM) push notifications in Laravel, I’ve developed a package called heyharpreetsingh/fcm that simplifies the process. It allows you to send notifications to mobile (Android, iOS) and web platforms efficiently.
How to Use: Install the package via Composer:
composer require heyharpreetsingh/fcm
Register the service provider in bootstrap/providers.php (Laravel 11) or config/app.php (Laravel 10 and below):
Heyharpreetsingh\FCM\Providers\FCMServiceProvider::class,
Set up Firebase credentials by generating a private key in Firebase Console and adding the path to the JSON file in your .env file:
FCM_GOOGLE_APPLICATION_CREDENTIALS=storage/ServiceAccount.json
Send a notification to individual devices like this:
use Heyharpreetsingh\FCM\Facades\FCMFacade;
FCMFacade::send([
"message" => [
"token" => "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...", // Device token
"notification" => [
"body" => "This is an FCM notification message!",
"title" => "FCM Message"
]
]
]);
Was this guide helpful to you? Please support my work by leaving a 👏 clap as a token of appreciation.
https://c3js.org/reference.html#api-axis-max Here is an documentation how to do that.
Use getInitialMessage when user authenticated:
FirebaseMessaging.instance.getInitialMessage().then(_handleFirebaseMessage);
Handle message:
static void _handleFirebaseMessage(RemoteMessage? message) {
logger.i('Remote message: $message');
if (message == null) return;
...
}
I have similar issue , the problem when creating the db on firebase console , I didn't use default database and named databse so was unreachable, deleted database and created default was able to connect with no issues
The invoke_agent API is under AgentsforBedrockRuntime (see API doc). So changing your bedrock_client would resolve the error.
bedrock_client = boto3.client("bedrock-agent-runtime")
There is the same problem with my program,but i can't fix it.
Just write "FFIR" instead of "RIFF" and do the same for the rest of the strings,"WAVE". "fmt " and "data". Byte order is reversed from string to int
Have you tried passing limit argument to imagesCollection? Not sure why the differences between playground result and your actual query though.
i had the same problem, what fixed it for me is going to the androidManifest.xml file and in the intent-filter section adding:
""
hope this helps!!
Switching from -file to -job in the kitchen command input and removing the .kjb extension in the job file solved the issue.
Before:
./kitchen.sh -rep=repo1 -file=/var/lib/jenkins/project/path/etl/Job1.kjb
After:
./kitchen.sh -rep=repo1 -job=/var/lib/jenkins/project/path/etl/Job1
The following works as well, for psql;
psql -U "$POSTGRES_USER" -d "$POSTGRES_TARGET" -c "\copy (SELECT * FROM table)
TO STDOUT WITH (FORMAT CSV, HEADER, DELIMITER E'\t');" > output.tsv
I'm building a dotnet tool executing the C# source file without a project file, hope it helps
https://github.com/WeihanLi/dotnet-exec
Install the dotnet tool first
dotnet tool install -g dotnet-execute
and then execute the csharp source file with dotnet-exec Hello.cs
Per my knowledge, there is no method to limit only one Power automate flow be running at the same time for a SharePoint list item.
use git LFS: git LFS (large file Storage) is designed for handling large files. By storing large binary files outside of your repository and only keeping pointers in the Git repo, you can significantly reduce the repository size and speed up operations.
If you are inside an SC_METHOD or if you don't want to stop (in time) an SC_THREAD, then the following will work:
#define SC_INCLUDE_DYNAMIC_PROCESSES
#include <systemc>
//...
sc_signal<int, SC_MANY_WRITERS> sig;
//...
sc_spawn( [&](){ wait(DELAY); sig.write(VALUE); } );
This was taken from here: https://forums.accellera.org/topic/7010-how-to-model-output-delay-in-systemc-like-the-verilog-non-blocking-intra-assignment-delay/
I had exactly the same problem in an environment with Microsoft Office 365 64-bit version (2016 and newer). The application contains 17 reports. On 80 computers all reports opened without a problem, on 10 computers one report did not open at all, only reported the error ActiveX component can't create object, but during debugging I found the source error: There isn't enough memory to perform this operation.
I reinstalled Office, compared the registers, everything seemed to be correct, but I kept getting the exact same error. I deleted the report and imported it from the backup file, decompiled the application (option /decompile) and still the same error.
What was the solution to the problem?
I created a new blank report, set it to exactly the same DataSource, the same grouping and sorting, and copied all the controls to it, section by section from the non-working report. The report works correctly and opens without any problems on all computers.
It looks like it wasn't a Microsoft Office installation issue, but an internal error in the Microsoft Access file.
I've wasted hours on this.
Just remove LOG_STACK from .env
It's an L10 directive and when kept inside .env after an upgrade it will create many problems in multiple places of the app.
you can find solution here ,I use 4.9.0 version:https://github.com/actix/actix-web/blob/master/actix-web/examples/middleware_from_fn.rs
First, if you generate .ipa files through VS, you need to ensure that:
Create and download the provisioning profile in VS.
In Solution Explorer, navigate to the iOS Bundle Signing tab and ensure that Scheme is set to Manual Provisioning, Signing identity is set to Distribution (Automatic), and Provisioning profile is set to Automatic:
In addition, you can try to generate an ipa file through the command line:
dotnet publish -f net8.0-ios -c Release
. For details, you can refer to Publish an iOS app using the command line.
You have to specify the content type.
<quill-editor theme="snow" v-model:content="newComment" content-type="html"></quill-editor>
It will works
The previous answer looks like the sort of answer I'd expect ChatGPT to generate and doesn't actually answer the question, which is, for a Java application, is there any way to mitigate this issue.
Short of using a different JRE/JDK, the answer would appear to be no.
You can ingest all the Excels files into one dataset only, which is simpler than creating one dataset per file.
The statement that C++ modules cannot be built in parallel is not entirely accurate. While C++ modules introduce a new system of organizing and managing code that can affect build processes, they do not inherently prevent parallel builds.
In traditional C++ compilation, each translation unit (source file) is compiled independently, which allows for parallel compilation. With modules, the relationship between modules can create dependencies that might require a more careful approach to parallelization. Specifically, if one module depends on another, the dependent module must be built after the module it relies on. This can lead to scenarios where dependencies need to be resolved before some modules can be compiled.
However, many modern build systems are designed to manage these dependencies effectively, allowing for parallel compilation when possible. They can analyze the module dependencies and optimize the build process accordingly.
In summary, while C++ modules introduce some complexities regarding dependencies, they do not eliminate the possibility of parallel builds. With a well-configured build system, you can still take advantage of parallel compilation to speed up the build process.
Did you start the server mongodb before all? Below is the string to start the server on my linux machine
sudo mongod --noauth --port 27017 --dbpath /var/lib/mongodb
In the sign in request, you can append &[email protected]
This works for both Azure and Okta