instruction stringlengths 0 30k ⌀ |
|---|
'connections' is deprecated. The declaration was marked as deprecated here |
|connection|deprecated|peerjs| |
null |
```
export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes),
provideHttpClient(),
{provide:SomeOtherService}
],
};
``` |
You can't execute **operating system** commands with `execute immediate`.
Why do you think you have to do that *dynamically*? Everything contained in command you posted is *static*, so why wouldn't you run it as designed, from operating system? If you want to schedule it, create a *batch* file and schedule it using ... |
Trying to send SMS to telegram group whenever we receive new SMS. I tried to run below code but when new SMS arrives, there is no activity.
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import andr... |
SQL Server: this program requires a machine with at least 2000 megabytes of memory |
|sql-server|docker| |
For the Same wifi connection of computer and mobile.
All these answers are right but they did not mention that the IP address must be the wifi IP.
if you run the program locally and your wifi is from a **Wi-Fi router** then the IP should be Wi-Fi IP.
[1]
[1]: https://i.stack.imgur.com/Q1sW8.png |
Trying to apt update and I am getting this, due to this I cannot install playwright as it fails when I do so
I get this every time i do so
`
Err:13 https://download.docker.com/linux/debian jammy Release
404 Not Found [IP: 108.158.245.93 443]
...
Reading package lists... Done ... |
Docker repository does not have a release file for apt-get update on jammy release |
|docker|playwright|ubuntu-22.04| |
null |
**Bundle version**: 6.1
**Symfony version**: 5.4
**PHP version**: 8
Hello,
I wish to add two-factor authentication to my project and I came across your solution which seems great to me. Initially, the installation seemed straightforward, but I must be missing something because my authentication still works wit... |
I know how to make a substitution :
```
${var//Pattern/Replacement}
```
I know how to capitalize :
```
${var^^}
```
but how can I achieve both ?
Thanks.
I tried
```
${var^^//Pattern/Replacement}
```
and
```
${var//Pattern/Replacement^^}
```
but unluckily
EDIT :
the code I have :
`... |
I am trying to update an alpine x-data value with my stimulus controller
The final goal being to trigger the openDetail on a leaflet marker
My controller
```js
import {Controller} from '@hotwired/stimulus'
import L from 'leaflet'
import Alpine from 'alpinejs'
/**
*
*/
export default class extends Co... |
how to change a alpinejs data value with stimulus controller |
|twig|alpine.js|stimulusjs| |
You need to delete the `vendor` folder if you already have one in your project, and run `composer install`.
Then restart your server. |
I had the same issue. You can solve this by downgrading the SentenceTransformers library. This issue is due to the new release of SentenceTransformers version 2.4.0. If you downgrade to 2.3.1 the issue is resolved. |
I'm using the extension "Custom right-click menu" to add a custom site search. When I use the context menu, it adds spaces to the search term. I need it to have a +.
```
var search = crmAPI.getSelection() || prompt('Please enter a search query');
var url = 'https://www.subetalodge.us/list_all/search/%s/mode/n... |
How do I add a custom delimiter to this context menu search? |
Running a shell script file marked as executable results in creating a system process executing it.
It appears to me that it is not possible to determine from within the script if the executable of the interpreter used to run the script is the executable ASSUMED to be used as interpreter.
There are ways to quer... |
Ktor Websocket session closes by itself. Is there a way to keep the opened session active? |
|kotlin|websocket|server|ktor| |
null |
The comments should be easy enough to follow.
set.seed(688396493)
N <- 100 # coins
n <- 100 # turns
ps <- 0.5 # probability of selection
pf <- 0.4 # probability of swapping sides conditioned on a flip
pt <- ps*pf # unconditional probability of swapping sides in a turn
# Initialize t... |
We are trying to build an add-on to automatically insert an image when user clicks on 'compose' / 'reply' / 'forward'. Unfortunatelly, we found that the only trigger available is to show a UI which the user then needs to click, and only then the image is inserted.
We need to avoid the extra click, meaning:
User goes ... |
SMS not being sent in telegram and no log registered |
|java|android|broadcastreceiver|smsmanager| |
{"Voters":[{"Id":2357112,"DisplayName":"user2357112"},{"Id":523612,"DisplayName":"Karl Knechtel"},{"Id":1974224,"DisplayName":"Cristik"}],"SiteSpecificCloseReasonIds":[11]} |
I got the same problem and spent two whole days to solve it.<br>This is my solution: <br>
First of all you should define the coordinates(x,y) of the point around which the ellipse should rotate, this way: <br>
`ellipse.setTransformOriginPoint(QPointF(?, ?))`<br>
then you can use the `setRotation()` to rotate el... |
I am using `react-native-date-picker:^4.4.0` package. When I've updated my project's react-native version to `0.73.3` from `0.62.7` it stoped working properly. Now, when I tap the field to open picker it gives me an error both on Android and IOS.
```
ERROR TypeError: null is not an object (evaluating 'NativeModule.o... |
react-native-date-picker does not work after update |
|android|ios|react-native|mobile|datepicker| |
Reference Every Nth Cell
-
[![enter image description here][1]][1]
**Usage**
<!-- language: lang-vb -->
Sub Test()
Dim ws As Worksheet: Set ws = ActiveSheet ' improve!
Dim rg As Range:
Set rg = ws.Range("P2", ws.Cells(ws.Rows.Count, "P").End(xlUp))
... |
Actually, after a few more tries, I realized the stages were not good. It works with:
include:
- component: gitlab.com/components/opentofu/validate-plan-apply@0.17.0
inputs:
version: 0.17.0
opentofu_version: 1.6.1
root_dir: provisioning/
state_name: iam... |
Does anyone know how to get rid of these thick lines from Google Maps on an Android emulator? I'm just running the default Google Maps Activity from the wizard (also see it on other projects). When I deploy to an actual device, and not an emulator, the street lines do not look like this.
[![Google Map zoomed in with... |
Google Maps on Android Emulator Thick Lines |
|android|google-maps| |
It depends on the lifetime of the variables.
If they are static variables, the initializer must be constant.
```c
int a = 1;
int b = 2;
int c = 3;
int array[] = { a, b, c }; // XXX Error
int main( void ) {
}
```
```c
const int a = 1;
const int b = 2;
const int c = 3;
int array[] = { a, b, c }; ... |
You enumerate over the results, but you *return* a response from the moment you get the first item. This thus means that it returns the result from *that* item.
You thus should first collect all results, and then dump that blob:
<pre><code>def say_hello(request):
results = <b>list(</b>menu_items('https://nat... |
Gmail add-on compose trigger |
|google-apps-script|gmail|gmail-api|gmail-contextual-gadgets| |
null |
I currently have an issue with `HorizontalPager` swipe behavior, when I try to swipe back the `HorizontalPager` also swipe to the next image. Here is the GIF of it. Does any one has any idea? BTW I'm using compose UI version `1.3.3`
HorizontalPager(
pageCount = pageCount,
state = pagerS... |
Compose HorizontalPager swipe conflict with swipe back event |
|android|android-jetpack-compose|horizontal-pager| |
## 2024 Update
On an Ubuntu based distro, use the following steps:
```
❯ curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
❯
❯ echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" ... |
I had a similar problem where auto-generated tests were failing about half the time, and I was able to figure out why. This is happening most likely because tests have to be setup similar to components, such as requiring the appropriate imports, and this was not done in my tests.
I was able to fix many problems by ... |
In Android, it's working fine.
Steps to reproduce the issue in iOS,
(pre-condition)
The iOS app should be killed
1. Lock the device
2. Receive the VoIP incoming call
At the time of ringing VoIP call we are getting a silent push notification from our server with the payload of contentAvailable... |
scheb/2fa not detected/working on my project |
|php|symfony|yaml|two-factor-authentication|symfony5.4| |
Have you tried adding position:relative to the nested div?
[Fiddle with CSS example][1]
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-css -->
.container-div {
padding: 10px 10px 0;
background-color:#c3c3c3;
width:200px;
}
.child-div {
... |
I want to know what are the collation type is used for viewing emoji or accept in DB what the reason behind it and how its work?
I need a proper explain about that pls help out of this and moreover what the reason certain collation accept and other why it can't?
|
|database|collation| |
I need a function that, given two or more polygons, can divide the sides into the intersections of the sides as in the figure, how would I do it?
An example would be the meeting of two sides
[(0.0, 0.0), (0.0, 10.0)]
[(0.0, 5.0), (0.0, 7.0)]
which should result in 3 segments " [[(0.0, 0.0), (0.0, 5.0)], [(0.0... |
I have tables that have hundreds of rows displayed per page, and I want to send only the updated data to the backend so that not too much data will be sent. There is a "save changes" button at the top, and currently I am not using a form element
What I currently do is, I give each `<tr>` the row id from the database... |
What is a proper way to get the changed values from a table with hundreds of rows? |
|javascript|html| |
Pure-Python Kerberos implementations do exist, but it is very uncommon to use them<sup>1</sup>; the most relevant SMB client library that you might be using, `smbprotocol`, still relies on the python-gssapi and python-krb5 modules which expect system-wide GSSAPI and Kerberos libraries to be present, and I'm not aware o... |
[firebase_messaging]: iThe device has been locked and the silent push notification received at that time iOS app is getting crashed |
**[stackprotector's helpful answer](https://stackoverflow.com/a/78171751/45375) is definitely the best solution**: it wraps `Remove-Item` in _all_ aspects, including tab-completion, streaming pipeline-input support, and integration with [`Get-Help`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershe... |
first of all: I'm not a data scientist, so I might use wrong terms here and there. My apologies upfront :).
**First some details of my goal**:
I have a very complex algorithm for which I want to optimize the execution time. For my tests, I have quite a few binary switches that enable/disable a certain code path. Ot... |
In a hyper-parameter optimization with scikit gp_minimize(), how to constrain parameters that depend on each other |
|optimization|scikit-optimize| |
I got the following error `ValueError: 4.39.0.dev0 is not valid SemVer string` in my code:
```python
from GLiNER.gliner_ner import GlinerNER
gli = GlinerNER()
```
Complete error message:
```python
File ~/.../GLiNER/gliner_ner.py:8, in GlinerNER.__init__(self, labels)
7 def __init__(self, labels = ["... |
ValueError: 4.39.0.dev0 is not valid SemVer string |
|python|pytorch|huggingface-transformers|large-language-model|huggingface| |
I've published a lua module that does this
**https://github.com/yogeshlonkar/lua-import**
It can be used via luarocks or simple copy/ paste as its single file without any dependencies.
I needed this for neovim configurations |
How should one handle javax.persistence.OptimisticLockException in a legacy Spring Hibernate application |
`[..h]` is a [collection expression][1], basically a concise syntax to create collections, arrays, and spans. The things inside the `[` and `]` are the collection's elements, e.g.
```
List<int> x = [1,2,3];
// basically:
// var x = new List<int> { 1,2,3 };
```
Since this is passed to a parameter expecting `in... |
If you prefer to modify your strings by removing certain portions, then I suggest that you use the [NORMALIZE][1] function from a Google Sheets add-ons I created called [Flookup][2]. It is completely free to use, even without any registration.
Here is how to use it:
1. In a cell of your choice, like cell C2, enter... |
I have 2 web platforms built with Laravel that work perfectly fine both on the development environment as well as on local environemnt.
The problem lies in the fact that after I deploy these applications on a cloud infrastructure as a service provider, the applications work for approximatelly ~ 1 / 2 hours, sometime... |
You asked:
>i dont understand it so if it could be provided with proper explanation
## Arrays
As shown in [The Java Tutorials][1] by Oracle Corp, a `for` loop has three parts:
```java
for ( initialization ; termination ; increment )
{
statement(s)
}
```
Take for example an array `{ "alpha" , "b... |
Etherscan uses combination of its own database and ABI of the event emitting contract to decode the signature hash (`topics[0]`, e.g. value `0xbfa038b0...`) into human-readable format (e.g. `SectorCreated`).
The `Transfer` event is likely in their own database (because it's standardized ERC-20 event), but `SectorCre... |
For this problem: https://leetcode.com/problems/search-suggestions-system/solution/, solution 1 states that for Java, "there is an additional complexity of O(m^2) due to Strings being immutable, here m is the length of searchWord." I am really scratching my head about this. Why the heck does immutability of string caus... |
Why does the immutability of strings in java cause extra runtime for this problem: https://leetcode.com/problems/search-suggestions-system/solution/ |
|java|string|immutability| |
null |
I'm learning the Flutter ropes. The [tutorial](https://codelabs.developers.google.com/codelabs/flutter-codelab-first?hl=es-419#2) was great, but when I tried to replace the hardcoded sidebar switch and NavigationRail with ones generated from a list, I ran into a bunch of typing trouble. Basically, I want to generate ... |
List.map().toList() producing List<Set<Widget> instead of List<Widget> |
* Formula that could work in table please.
I have some values 1,2 in a range of 7 columns. I want to arrange the values in the order they appear. I want for example i have a1= 0, b1=1, c1=2, d1=1, e1=0, f1=0, g1=1, i want i1=1, j1=2, k1=1, l1=1, m1=0, n1=0, o1=0. You can see and the image with some examples. Thank you... |
I want to arrange the values in the order they appear and zeros all back |
|excel|excel-formula| |
null |
I need to convert hatanaka files (.d) to rinex (.o) for multiplle files (about 3000 files) is there fast way or script that I can use in terminal (ubuntu) or command prompt (windows)?
thank you
i hope i can convert my hatanaka files to rinex for multiple files |
convert hatanaka to rinex for multiple files |
|terminal|gps|converters|command-prompt| |
null |
Hello I am new in stackoverflow. I am currently finding a solution to solve the data importing issue. When I imported the records over 2000 with excel file, the web going down. Then I searched error log in the server found out the following. Web servers using nginx and database is mysql. The web is with python. Could a... |
I'm new to Laravel 10, and I recently installed Jetstream. When I run `php artisan route:list` in the console, I get the following error: `Class "verified" does not exist`.
I do have `verified` in my Kernel:
```php
protected $middlewareAliases = [
...
...
'verified' => \Illuminate\Auth\Middleware\... |
Currently i have this code
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = True ' <-- just for tests
If Not Intersect(Target, Range("C1")) Is Nothing Then
Select Case Target.Value
Case "Expander 1 eff"
CopyIncreaseRecord
... |
|excel|vba| |
|windows|flutter-doctor| |
The application packaged through electron forge on the Windows 11 system failed to install on some Windows 10, with the error shown in the following figure. If the installation package for the same project can be successfully installed on this Windows 10 through electron forge, what is the reason for this?
![enter i... |
Authentication in Laravel doesn’t work some time after the deploy in a specific environment |
|php|laravel|deployment|vps|provisioning| |
null |
**Is there a way to know if the camera is on?**
There be no straight way for an Android app to detect if another app is using the camera. Android's security model prohibit one app from accessing the resources or monitoring the behavior of another app without explicit permission and appropriate APIs.
While Androi... |