instruction
stringlengths
0
30k
βŒ€
I'm trying to use the Grammerly extension on VS code on company issued Mac. The extension seem to have an issue trying to initialize, it give the following error in the OUTOPUT: ``` Initializing... [Error - 10:09:08 AM] Server initialization failed. Message: Request initialize failed with message: fetch failed...
Set proxy for extenions in Visual Studio Code on Mac
|visual-studio-code|proxy|vscode-extensions|
null
I'm new to programming and I am designing a VR experiment in Unity with an HTC Vive setup. I have the environment done and used the steam VR laser pointer script. How can I make it so that a sound and vibration trigger when I click on a distant object? Is the laser pointer from the Steam VR plug in good for this ...
How to setup Unity VR laser pointer that interacts with 3d object?
|unity-game-engine|virtual-reality|
null
so I'm new to kotlin, and I'm trying to do a api call to an image api endpoint and download all the images at one and make the user wait until all images is downloaded so all can be displayed at once. dataclass [enter image description here](https://i.stack.imgur.com/hgVvZ.png) I'm downloading all the downl...
Loading All Images in Kotlin
|kotlin|jetpack|compose|
It is not clear from the question if you are running the HTML and SVG document from a web server. To make this work you need to run a web server. You cannot get access to the `contentDocument` if you just open the HTML file from the file system. And in regards to the comments about the order of events. You must wait...
I am trying to run a map reduce job on Hadoop cluster with Python mrjob and I have some trouble installing external modules like numpy, pandas,... My mrjob code: ``` import sys from mrjob.job import MRJob from mrjob.step import MRStep from mrjob.protocol import TextProtocol import numpy as np class User...
You can add on the css `* {scroll-behavior: smooth;}` the asterisk prolly means window idk but it works on mine
This is mentioned in the [Tour of Go][1] > Unlike in C, in Go assignment between items of different type requires > an explicit conversion. But why not use `Numerator` and `Denominator` in the definition of `RationalNumber`? type Numerator int type Denominator int type RationalNumber s...
In your app_name (where you specify the app name string), write this: Feruz Academy **UPDATE:** If the app name is too long, some devices will not support the app name length. Your best bet then, is to come up with a shorter name. Maybe an acronym, so it works on all devices
Mbed TLS: in-place en-/decryption for OAEP doesn't seem to work
I'm using visx to build a streamgraph for my application, but am very new to visx/d3. I'm able to generate the graph using a simple 2-d number array like in [this][1] example, but run into issues when modifying the input structure. In the example below, the goal is to generate a streamgraph that runs vertically downwar...
how to create an sqldump file for backup in netbeans(java)
|java|mysql|netbeans|
null
I was investigating this interesting question and it seems unfortunately it is not possible to make anchor references between different compose files. [I attach a link](https://github.com/docker/compose/issues/10912) where they apparently confirm that it is not possible.
I recently downloaded and installed Android Studio on my system (Ubuntu 22). I added the paths `$ANDROID_HOME/platform-tools` and `$ANDROID_HOME/tools` to `~/.bashrc` and now the `adb` command works properly. However, I keep getting the error message `bash: android: command not found`. In fact `android` does not exist ...
`android` Does Not Exist in `~/Android/Sdk/platform-tools`
|android|android-studio|configuration|sdk|
null
If you want to remove the warning you can follow the approach which [the interfaces uses itself][1] - use the `AllowNullAttribute`: ```csharp public class TestDataParameter : IDataParameter { // ... [AllowNull] public string ParameterName { get; set; } = ""; // ... } ``` You might want tho...
Now here is the situation i have two servers, one is running apache2 and the other is running odoo with nginx, the server that is running odoo doesnot have a public ip, what i am doing is i am using apache as a reverse proxy that forwards request to the second server through local network ip and nginx handles the rest....
null
[See Screenshot demonstrating the use of Excel's Solver][1] (https://i.stack.imgur.com/eK3C7.png) I have a task to automate a certain excel worksheet. The worksheet happens to implement a logic with an excel plugin called Solver. It uses a single value(-1.95624) in Cell $O$9 (which is the result of computations h...
Visx Streamgraph Custom Typing
|reactjs|d3.js|charts|visualization|visx|
For the versions of the plugin that supports SMSS 2014-2018, PoorMan's T-SQL Formatter requires the Visual Studio 2015 Isolated Shell installed in order to work. It can be downloaded from [here][1]. After installing it, the option will be made available. [![The formatter is now enabled.][2]][2] [1]: https://...
I've got two year's worth of energy data in 15 minute increments, and need to develop a similarity score for a forecasted day i.e. identify past days that are similar to the forecasted day. I started by splitting the initial dataframe into a list (called trading_days below) of 730 dataframes (one dataframe for each ...
Measures of similarity for time series data using RStudio?
|time-series|rstudio|similarity|
null
`setTransactions(transactions);` does cause a render loop because `transactions` is a stable reference to a value, whereas `setTransactions([]);` the value is a new object reference each time and this fails React's `object.is` reconciliation process. In any case though, you'd pretty much never want or need to enqueu...
Considering this file structure: ``` / └── Users └── You └── main_dir β”œβ”€β”€ subdir_1 β”‚ └── subdir_1-1 β”‚ └── movie_A.mp4 β”œβ”€β”€ subdir_2 β”‚ └── movie_B.mp4 └── subdir_3 └── movie_C.mp4 ``` After installi...
I haven't fully investigated the implementation of this, however by hard-coding the values and using clipRect, this appears to solve the problem. Just why it is necessary to do that I don't understand, and why it is not necessary in other cases I don't understand. Current change is as follows: ``` class PieCha...
Since you want to point to a specific location inside of a page, I think you should use [fragments][1] instead of the path. ```text In computer hypertext, a URI fragment is a string of characters that refers to a resource that is subordinate to another, primary resource. The primary resource is identified by a Unif...
I have a batch file that I run in the File Explorer address line that moves files from a specific folder into the one I am currently in via File Explorer. This worked perfectly under Windows 10. Now that my laptop has been upgraded to Windows 11, the files are now copied into the same folder as the batch file resides i...
I fixed putting the image at SRC folder, when I tried to load from another folder nothing happens. My old folder was inside my OneDrive.
I am trying to follow [this article](https://blog.rng0.io/how-to-do-code-coverage-in-rust/) on code coverage in Rust. I ran these commands from the article: ```bash CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test grcov . --binary-path ./target/debug/de...
How to correctly generate an HTML report of coverage with grcov
|rust|code-coverage|rust-cargo|
Dear docusign team and colleagues here the situation what faced and made own progress. Migration from Spring Boot 2.7.18 to 3.2 and Java 11 to Java 17 and had a dependency from `com.docusign.docusign-esign-java` <dependency> <groupId>com.docusign</groupId> <artifactId>docusign-esign-jav...
Apart from the email response we received, perhaps this information will be useful for someone else: > This will vary depending on many factors including the complexity of > the documents, and the overall number of pages. > **Without autoscaling enabled** for the Azure platform document intelligence service, here ...
In Windows 10, I resolve the issue by setting config file and crtl+shift+p and enter remote-ssh to open settings and set "Config File" as follow: /c/Users/{USERNAME}/.ssh/id_ed25519.pub
Let us have an initial_tensor of size (batch_size, N, N) and a tensor of indexes (batch_size, N), specifying the new order of elements in each 2D tensor in a batch. The goal is to re-arrange the elements of tensors in the batch according to the index tensor to obtain a target tensor. Currently I am able to do it on ...
Rearrange 2D tensors in a batch Torch
|vector|pytorch|gpu|cpu|torch|
null
I need to insert the increment value for the <tr>.. </tr> in the particular "table 2": my Codes are below: import re TableId = 2 newtable_id = f"T{TableId}" table = ''' <table-wrap id="T1" position="float"> <label>TABLE 1</label> ...
Can a tentative definition use the storage class specifier _Thread_local?
|c|language-lawyer|declaration|
So after quite some time I did find a solution, it was due to safari/ios/macos's IndexedDB not supporting storing data in a specific format.
I have been trying to run an undocumented backend which used to work but now it does not, it is supposed to use mapserver and mapscript, I keep trying to send it a post call but I keep getting this error File "C:\Users\(user)\AppData\Local\Programs\Python\Python37\lib\site-packages\mapscript\mapscript.py", line ...
I have an `Angular 16` application which uses the `progressive web app` (PWA) feature and `server-side rendering`. We also updated the majority of our components to standalone and lazy loaded our modules. Since Google changed its indexing rules recently, we've been struggling to improve our FCP/LCP. Is there any ...
Can Angular minify, compress and remove unused JS and CSS files on build?
#### Short version * Examine your `~/.bashrc`, `~/.bash_profile`, and `~/.profile` to determine where `$FOAM_RUN` is being set. * If it's defined in `~/.bashrc`, then move its definition to `~/.profile` * Change your command definition in the first script to: ```python command = "wsl -e bash -lc 'python3 /...
You can achieve this by creating two separate models which implement this dependency using `Literal`s. Let's create the models: ``` from pydantic import BaseModel from typing import Literal class Item(BaseModel): category: str subcategory: str class Fruit(Item): category: Literal['fruit...
Previously I used XAMPP without any problems. But now I want to migrate to Laragon. I'm having trouble connecting SQL to SQLyog. I use windows 11. `Error No. 2026 SSL error connection: system library` ~~~ 2024-03-29T16:47:37.250449Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-file-priv: ...
MySQL "SSL Connection Error System Library" when connecting to SQLyog
|mysql|laragon|sqlyog|
> I want to allow users who have owner permissions on their Firebase projects to link their projects and databases to my application without manually entering Firebase ID and API key. That's not possible. The user will have to provide your app the values in the Firebase config from the console so you can call initia...
null
I had this problem too and I couldn't find any code for solving this problem in pandas. I just saved excel as 'CSV UTF-8 (Comma delimited)' and I read it as CSV. pd.read_csv("file name") and my problem solved.
I am working with Grails 2.1.1. I have a remote function from where I want to pass more than one JavaScript variable through g:remoteFunction. But no JS variable is going to controller. My JS variables are underlined and are not recognized. Here are my attempts: function addNewBill(){ var orgId = $('...
Failed to instantiate [com.docusign.esign.client.ApiClient] - SOLVED
The way i achieved it is also with implementing the UnmarshalBSON interface. Translated to your example it would be: ``` type foo struct { Type string `bson:"type"` Act ActivationInterface `bson:"act,omitempty"` } func (f foo) UnmarshalBSON(data []byte) error { var raw map[string]inter...
{"Voters":[{"Id":472495,"DisplayName":"halfer"},{"Id":522444,"DisplayName":"Hovercraft Full Of Eels"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[11]}
> However, I'm wondering about the safest approach to utilize it for local testing without compromising security. Cryptography usually doesn't introduce too many side effects. It operates on the key and data you provide, and for most functions the key and data isn't even altered. For instance, for a cipher, you put ...
I am creating a dual stack kubernetes cluster so want to assign both IPv4 and IPv6 to my cluster nodes. I have following interface config: 2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 46:8b:35:6e:2b:fd brd ff:ff:ff:ff:ff:ff alt...
Can I use inet and inet6 address respt. for IPv4 and IPv6 addresses of a kubernetes node in case of dual stack cluster
|kubernetes|networking|
1. Remove all installed ffmpeg > sudo apt-get remove ffmpeg > sudo apt-get purge ffmpeg 2. Delete the Anaconda ffmpeg module from your environment > conda remove ffmpeg 3. Reinstall > sudo apt-get install ffmpeg
The user with an Id of xxxx-xxxx-xxxx-xxxx could not be stored as a Facebook audience member. The call failed to Facebook to save the user ("error":{"message": "Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reason...
Unsupported post request when trying to create a custom audience via the endpoint https://graph.facebook.com/lapi-version), (custom-audience-id/users)
|api|facebook|facebook-graph-api|
null
1. Remove all installed ffmpeg > sudo apt-get remove ffmpeg > sudo apt-get purge ffmpeg 2. Delete the Anaconda ffmpeg module from your environment > conda remove ffmpeg 3. Reinstall > sudo apt-get install ffmpeg
How can I pass JavaScript variable to Grails controller using remoteFunction
I had this problem too and I couldn't find any code for solving this problem in pandas. I just saved excel as 'CSV UTF-8 (Comma delimited)' and I read it as CSV. pd.read_csv("file name") and my problem solved.
For the versions of the plugin that supports SSMS 2014-2018, PoorMan's T-SQL Formatter requires the Visual Studio 2015 Isolated Shell installed in order to work. It can be downloaded from [here][1]. After installing it, the option will be made available. [![The formatter is now enabled.][2]][2] [1]: https://...
To execute multiple test classes contained in a single test project, including **auto-detection** of test classes (by simply deriving from `TestClass`) and having a nice **summary** printed at the end, use the following code: FooTestClass.h - #include "TestClass.h" class FooTestClass : public TestClas...
In a chain call, there are intermediate products. If there is an intermediate product that inherits from IDisposable, then usually we should use using to make it automatically released. But I ignored this in the chain call and only used one using to release the resource object I ultimately needed. So will this cause a ...
Chained calls may cause memory leaks?
I had this problem too and I couldn't find any code for solving this problem in pandas. I just saved excel as '`CSV UTF-8 (Comma delimited)`' and I read it as CSV. pd.read_csv("file name") and my problem solved.
**Starting Point** A table contains two columns: - E-Mail (string, Unique) - Number of Orders (Integer) Example Dataset: | E-Mail | #Orders | | β€”β€”β€”β€”β€”-β€”β€”β€”β€”β€”-β€”β€”β€”β€”- |β€”β€”β€”β€”β€”β€”β€” | | user1@example.com | 1 | | user2@example.com | 1 | | user3@example.com...
|dax|powerbi-desktop|
[`scipy.integrate.trapezoid`][1] is for 1D integrals. For a 2D integral, you'd need to integrate over each axis of your array separately. I've changed your function by squaring the integrand just to get a nonzero result. This will help us confirm that the code is working as expected by comparing against the result c...
Make Shakapacker ES6 functions available in inline Rails views
|ruby-on-rails|webpack|webpacker|shakapacker|
``` import numpy as np import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True x, y, z = np.random.rand(3, 50) f, ax = plt.subplots() points = ax.scatter(x, y, c=z, s=50, cmap="plasma") f.colorbar(points) plt.show() ```
``` import numpy as np import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True x, y, z = np.random.rand(3, 50) f, ax = plt.subplots() points = ax.scatter(x, y, c=z, s=50, cmap="plasma") f.colorbar(points) plt.show() ```
I need to print the bounding box coordinates of a walking person in a video. Using YOLOv5 I detect the persons in the video. Each person is tracked. I need to print each person's bounding box coordinate with the frame number. Using Python how to do this. The following is the code to detect and track persons in a vi...
Print bounding box coordinates of dynamic object that detect using YOLOv5
|python|computer-vision|bounding-box|yolov5|
null