instruction
stringlengths
0
30k
null
Whenever I use the cropping tool in GIMP, I must zoom in to the cropped image manually afterwards and center it. Is there an option that GIMP will automatically zoom to the cropped content? thanks, Sina tried youtube tutorials, but found nothing there...
how to automatically zoom to cropped image in GIMP
|gimp|
null
There will be many options, like using std::remove_if, or in this example std::copy_if #include <string> #include <array> #include <algorithm> #include <iostream> std::string without_duplicates(const std::string& input) { std::array<bool,256ul> seen{}; // initialize all "s...
I am trying to connect in a Postgres database from an android java app. I am getting this exception: ``` org.postgresql.util.PSQLException: Something unusual has occurred to cause the driver to fail. Please report this exception. at org.postgresql.Driver.connect(Driver.java:281) at java.sql.DriverManager.getConnect...
Connecting to local database from Android studio emulator
|android|postgresql|jdbc|android-emulator|database-connection|
null
Might be late to the party, but progressive commits seems very appropriate for this exact issue. You can read a bit about it on this git repo [here][1] [1]: https://github.com/momocow/semantic-release-gitmoji
The default behavior for for pressing the tab key is to more to the next focusable HTML element. In the case of the code: ```javascript if (document.activeElement === lastFocusableLm) { firstFocusableLm.focus(); e.preventDefault(); } ``` If the new/next focusable element is the `lastFocusableLm` the focus ...
|google-sheets|google-sheets-formula|
{"OriginalQuestionIds":[13435959],"Voters":[{"Id":3702797,"DisplayName":"Kaiido","BindingReason":{"GoldTagBadge":"canvas"}}]}
|php|wordpress|http-redirect|
null
**server.go** package main import ( "context" mathservices "service/mathservices" "github.com/smallnest/rpcx/server" ) func main() { s := server....
MongoDB - $lookup not getting an appropriate result
|node.js|mongodb|mongodb-query|lookup|
|node.js|next.js|pnpm|node-fetch|ky|
|reactjs|node.js|axios|ky|
I am using React and express together for my web application where in express will serve static files of react build. My Requirement is to pass the environment specific react urls at the time of deployment. So for this I have created a `.env.template` file where I have a template like below ``` REACT_APP_PRIORI...
Replace React Variables in build folder before serving the build by express Server
|javascript|reactjs|node.js|express|gitlab|
null
I would like to create an app in android studio using kotlin. In one of my activities there is a background image (blue) and a circle image (red). I want the background to stretch to screen sizes of different devices. (see image below) This means the circle sometimes gets smaller relative to the background. Is t...
How to properly stretch /anchor two images in a kotlin app (android)
|android|kotlin|android-studio|image-scaling|
If you use a **FlatList** you can use the prop `contentContainerStyle` to achieve it by adding a `flexDirection` to "row" and a `flexWrap` to "wrap". <FlatList contentContainerStyle={{flexDirection : "row", flexWrap : "wrap"}} data={...} renderItem{...} />
|php|wordpress|
null
Angular 17.1 introduced new Router [info][1] parameter to `NavigationExtras`: .html: <button routerLink="home" [info]="{ hello: 'world' }"> Home </button> .ts: this.router.navigateByUrl('home', { info: { hello: 'world' } }); It's similar to state option, but it has two main differen...
{"Voters":[{"Id":1197518,"DisplayName":"Steve"},{"Id":12860,"DisplayName":"Burkhard"},{"Id":70345,"DisplayName":"Ian Kemp"}],"SiteSpecificCloseReasonIds":[11]}
"How can I ensure that the decoded data I receive on my mobile matches the data shown on the ESP32 console when connecting the ESP32 to my mobile?"
Need the decoded data while from server esp32 send and Receiving in react native cli
|react-native|bluetooth-lowenergy|esp32|arduino-esp32|react-native-ble-plx|
Tengo este problema que no se resuelve la importación de minero, que es código propio y su modulo correspondiente en Go. ``` import ( "fmt" "time" "github.com/JonathanDiz/blockchain-miner/pkg/minero" // Importa el paquete minería utilizando la convención de importación de módulos de Go ) ``` could not im...
importar modulo en Go
|go|
null
I find out the answer. Below you can see what I need: @Library("cnv-jenkins-sharedlib") _ pipeline { agent { label 'cnv-jobs' } options { timestamps () disableConcurrentBuilds() } tools { maven 'Maven_3.9.2' jdk 'JDK11' ...
Not `state = {suggestionsList: this.props, searchInput: ''}`. You should use `state = {suggestionsList: this.props.suggestionsList, searchInput: ''}` And You can use `onChange={this.showoptions}` for searchEngine not `onClick={this.showoptions}` Here is right `GoogleSuggestions.js` File ``` // Write your c...
|php|drupal|drupal-7|roles|drupal-modules|
null
|python|opencv|ocr|crop|
|python|x11|mininet|xterm|
You may have forgotten to publish your assets. If you don't publish your assets, they won't show up even when embedded within a `RichText`.
I am using ROS Melodic and a Scout model with a Velodyne VLP-16 mounted on it. I am also using lidar odometry. However, when I display the robot model on RViz, the robot does not move and remains stationary, but the odometry continues to rotate. What could be the cause of this error and how can it be resolved? Here Tha...
(ros melodic) Lidar odometry is not working well
|navigation|ros|sensors|rviz|odometry|
null
Multi level project reference using dll
On Windows: 1. Move the `dracula.xml` file to `C:\Users\yourUsername\AppData\Roaming\QtProject\qtcreator\styles`. 2. Move the `drakula.creatortheme` file to `C:\Users\yourUsername\AppData\Roaming\QtProject\qtcreator\themes`. 3. Go to *Qt Creator -> <kbd>Edit</kbd> -> <kbd>Preferences</kbd>*, click the <kbd>Environ...
Hello awesome developers! As you can see, I'd like to ensure my application starts when the phone boots up. Everything else is functioning correctly; I receive toasts and background processes are working. However, my application fails to run. What could be the issue, and how can I fix it? Thank you. ``` class BootC...
|php|woocommerce|categories|
null
It's often needed to patch and compile a HTML (in my case a SVG) returned from a backend. I used only the simplest version as ``` import {compile} from 'vue'; const component = compile(text); ``` But now I patch the source with DOM and inject other components inside it. For that I need to use `app.componen...
I have searched in google with your error message and got it . ***[see here][1]*** [1]: https://stackoverflow.com/questions/75767564/usr-bin-node-1-syntax-error-unexpected
Your code invoked undefined behaviour as you pass the pointer not the integer to the `printf`. `%d` is expecting `int`. You need to dereference `x` and `y` ``` void swap(int* x, int* y) { int temp; temp = *x; *x = *y; *y = temp; printf("The value of x and y inside the function is x = %d an...
|terminal|tmux|terminfo|
creating web app using dotnet 6 which should be using win auth. I have managed to run it locally on IIS Express by setting this [enter image description here](https://i.stack.imgur.com/jaQCj.png) in the launchSettings.json I have followed this https://learn.microsoft.com/en-us/iis/configuration/system.webserv...
Cannot authenticate to IIS using win auth and dotnet 6
|.net|iis|windows-authentication|
null
With XSLT 3, as supported by current versions of SaxonJS (2.6 is the current version) or Saxon Java, SaxonC, Saxon .NET or SaxonCS, you can process JSON input (on the command line with option `-json`) and produce JSON output (with XDM maps and arrays being serialized with output method json): <xsl:stylesheet x...
|php|wordpress|woocommerce|checkout|orders|
null
**Problem :-** You import like below. ```python from django.contrib.auth import authenticate, login ``` And then you use it as below. ```python user = authenticate(request, username=student_id, password=password) #and login(request, user) ``` Which are built in methods. This `authenticate` func...
**Context:** I'm developing audio app on Node.js for RPI on Rapsberry PI OS Lite (Debian, no GUI), and I need the way of playing mp3 files in the Node.js env from https with the ability to pause/resume the playback. I need this to be working on Mac M1 (dev/debug) and on the RPI. Surprisingly for me, I didn't find...
When I login to bastion server every time, there is initial shell script which will run and records sessions. ``` if [[ -z $SSH_ORIGINAL_COMMAND ]]; then LOG_FILE="`date --date="today" "+%Y-%m-%d_%H-%M-%S"`_`whoami`" LOG_DIR="/var/log/ssh-bastion/" echo "" echo "NOTE: This SSH session will be record...
I am using dataTables and it is working properly no until i inlclude fullcalendar my dataTable suddenly didnt work and i found out that adding the fullcalendar scripts makes it somehow disabled here is my scripts <!-- dataTables --> <script src="https://code.jquery.com/jquery-3.7.0.js"></script> <script sr...
These are challenging to implement, and unfortunately the `mgcv` documentation doesn't make it easy to learn how to do them. As teh response above suggests, ff you look at the help for linear functionals (`?mgcv::linear.functional.terms` and `?mgcv::gam.models`), you will see that the `by` variable is used as a weighti...
|php|symfony|validation|multiple-choice|
null
I am running a Scala application that tries to perform Object Recognition using Spark. I state that I am new to both Spark and Object Recognition, so it's probable that I may encounter issues due to suboptimal programming. Whenever I try to run my application I get numerous instances of the following error: ``` ...
Having a problem in datatables and fullcalendar scripts
|jquery|ajax|datatable|fullcalendar|
|typescript|google-chrome|axios|node-fetch|
I am using ROS Melodic and a Scout model with a Velodyne VLP-16 mounted on it. I am also using lidar odometry. However, when I display the robot model on RViz, the robot does not move and remains stationary, but the odometry continues to rotate. What could be the cause of this error and how can it be resolved? Thank yo...
I am working on a feature where I have an Github action that triggers on `issue_comment` events. But inside that i am using pre-commit.ci-lite which is suppose to run on `pull_request` events only(It is their internal implementation). So what i want is to trigger my workflow by `issue_comment` only, but before the ru...
Is there a way to change Github Action event name in between?
|github|github-actions|devops|pre-commit|gitops|
null
I have quite an old IPhone available (first edition SE) that I want to use to make a provisioning profile together with a Mac computer. Will there be an issue using such an old IPhone for this purpose? Will the apps that I build with this profile only target an IPhone SE?
Any problem with creating provisioning profile with old Iphone?
|iphone|xcode|provisioning-profile|
Use html.unescape(): import html print(html.unescape('&pound;682m'))
Apple say "When the video zoom factor increases and crosses a camera’s switch-over zoom factor, this camera becomes eligible to set as the activePrimaryConstituentDevice." in this document: [https://developer.apple.com/documentation/avfoundation/avcaptureprimaryconstituentdevicerestrictedswitchingbehaviorconditions][1]...
I've found that I get this `invalid pkt-len found` error when I've added a new user to our git server (GOGS/Gitea), and they're using SSH URLs but they don't yet have permission to the repo they're requesting. ``` failed to checkout and determine revision: unable to clone 'ssh://git@git-ssh.mygiteahost.lan/username...
Spark application terminating with exit code 137
|scala|apache-spark|
null
|node.js|xtermjs|
I usually develop without HTTPS enabled, because then you don't have to worry about SSL issues. When you are done developing, that's when you can switch to HTTPS. For the development phase I use the following config in my Caddyfile: ```caddyfile http://localhost:8080 { reverse_proxy localhost:1337 } ``` If ...
creating web app using dotnet 6 which should be using win auth. I have managed to run it locally on IIS Express by setting this [(screenshot of launchsettings.json)](https://i.stack.imgur.com/jaQCj.png) in the launchSettings.json I have followed this https://learn.microsoft.com/en-us/iis/configuration/system....
|php|mysql|pdo|pivot|row|
null
Let say I've an std:array<int> such as: 0 1 1 1 0 1 1 0 I'd like to use std (if possible) to do this in c++-11: - sum adjacent 1's - erase the summed value - transform 0 to 1 So getting this result for the example above: 1 3 1 2 1 Thanks
How to merge/count adjacent 1's within an std:array using std?
|arrays|algorithm|c++11|std|