instruction
stringlengths
0
30k
I have a batch file that I run in the File Explorer address line that moves files from a specific directory into the current File Explorer directory. ```shell move C:\Specific folder\*.* . ``` I run it by clicking the blank space at the end of the address which causes the address to be combined and highlighted....
|batch-file|explorer|
leaving this here for future me (and others): ```js // return res // errors return new Response(res.body, res) // works ``` encountered this while trying to make a mini proxy: ``` const makeProxy: (proxyURL: string) => RequestHandler = proxyURL => async ({params, request}) => { let proxyNormalized = (...
Here's a revised version of your instructions: In your route definition, you should switch to using the GET method instead of POST: ```php Route::get('products/export-excel',[ProduitController::class, 'exportProduct'])->name('products.download-excel'); ``` Additionally, there's no need to use a form for this...
The wait is over. Today, SAP published their Common Crypto Library version 8.5.54 also for Linux on ARM64 and for macOS on ARM64, paving the way for using SNC on these platforms as well now. The SAP Common Crypto Library can be downloaded from SAP's Software Download Center.
I am 17 years old and I want to learn how to create video games (it should be noted that I am studying software engineering and I already have some logic), the reason for my question, as you can see in the title, is that I want to create a platform that moves and that my characteryBody or my player can move around in i...
Platform with movement in godot 4.2
|godot|godot4|
null
I have an Angular application that is hosted on an IIS server, uses Nginx as a proxy server, and its subdomain was created with Cloudflare. My problem is that this application uses Prime Ng but the styles do not work, however when I host this application on another Hosting such as firebase the prime ng styles work. ...
Primeng Angular styles on subdomain don't work
These numbers exist to de-duplicate the names of generated HLO operations. The first fusion operation created by the compiler is called `fusion`, the next is `fusion_2`, then `fusion_3`, and so on. Note that the order of creation does not necessarily match the order of execution.
So I was trying to run a simple script to test out ultralytics and see how its yolov8 model works. [I followed the steps from this video](https://www.youtube.com/watch?v=uMzOcCNKr5A&t=1s), but when I ran the script, this error popped out: ``` C:\\Users\\Costin\\Desktop\\Virtualenvs\\yolov8\\Scripts\\python.exe "C:\\...
how to use knife_project with python script in blender 4.0? it promat me knife project.poll() expected a view3d region & edit mesh
|blender|azure-pipeline-python-script-task|
null
If you have devise confirmable turned on you might have to confirm your user before signing in. ```ruby ... before do user = create(:user) user.confirm sign_in(user) end ... ```
This is exactly what [`wide_to_long()`][1] is for. ``` pd.wide_to_long( df, ['name', 'Position', 'Country'], i='Team', j='n', sep='_', ) ``` ``` region title name Position Country Team n Bayern 1 Bravaria Bundesliga Robben ...
In the Visual Basic Editor (Alt+F11), under Tools, first select Options. Then select the General tab, and then check/select 'Break on Unhandled Errors' selected... [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/zk1ph.png
In every other solution, the window was jumping to the mouse position. Here is a solution that doesn't do that: import tkinter as tk class TitleBar(tk.Frame): def __init__(self, master): super().__init__(master, height=20, bg='blue') self.master = master ...
in my case that was due to problem in linking libraries to the project. I used `target_link_options` rather than `target_link_libraries`. to summarize all necessary steps 1. install ffmpeg by standard way described [here][1] 2. install package-config to locate its package 3. use the following code to link li...
Try this and let me know if it is working as you expected . %dw 2.0 output application/json var currentDate = now() var currentYear = currentDate.year var currentMonth = currentDate.month var inputDate = "03/01/2024" as String {format: "MM/dd/yyyy"} var inputYe...
Try this and let me know if it is working as you expected . %dw 2.0 output application/json var currentDate = now() var currentYear = currentDate.year var currentMonth = currentDate.month var inputDate = "03/01/2024" as String {format: "MM/dd/yyyy"} var inputYear = (inputDate as D...
I'm looking for an approach how to work with huge code-base from a read-only repository, without cloning/forking it into my remote repository. Here is an imaginary scenario: 1. I've cloned locally a tag/branch from git-repository (let's name it *Original*), which I want to treat as *read-only*. 2. I've applied s...
SQL Alchemy custom type, forcing blob bind parameter
|python|oracle|sqlalchemy|gis|
null
I think this works well enough. ```r get_data <- function(database, table = NULL, query = NULL) { if (is.null(query)) { tbl(database, table) } else { tbl(database sql(query)) } ``` With this, you can do ```r con <- DBI::dbConnect(...) get_data(con, table = "MyTable") |> head() |> ...
null
In @react-navigation's Tab.Navigator, I aim to lock the final screen while allowing the rest to scroll. The rendering of code I am grateful for the assistance provided by all of you. {/* <Tab.Navigator screenOptions={{ tabBarItemStyle: { width: 80, height: 30 } }} > {TagTabNavigation...
In @react-navigation's Tab.Navigator, I aim to lock the final screen while allowing the rest to scroll
|reactjs|react-native|navigation|
null
Imaging, I have a web-app called **CoolApp** that accesses its server via JWT access+refresh tokens. What's stopping the user from grabbing these tokens and then creating their own ***Custom*CoolApp**? For example, what's stopping me from creating a completely custom app for, say, Reddit, making a request to `/login...
How to prevent users from creating custom client apps?
|rest|security|jwt|architecture|
We have a compute engine instance hosted by Google that will lock up seemingly at random. SSH will not connect and the only way to recover appears be forcing a restart of the machine. When I checked the logs in the monitor I can see that right at 2AM when my application monitoring tool says things went down the CPU ...
Animations not working with mid air targets
|c#|unity-game-engine|vuforia|
null
I am using an old shader used for a character model from the Unity asset store that has depreciated. The asset has been made free and some people have put out some updated versions but no one has put out a shader that works in VR without enabling the multipass. I have looked at Unity's guide for amending shaders for...
Since you only want to read the url query parameters, useSearchParams is the hook for you. const searchparams = useSearchParams(); const category = searchparams.get("category"); In next js 13 and above searchparams is removed from the useRouter hook. Instead useSearchParams is added and its read onl...
Este mesmo procedimento funciona para o SSMS 20: I got it working this way. Install SSMS 17.9.1 Install SSMS 19.x Install PoorMansTSqlFormatter copy PoorMansTSqlFormatterSSMSPackage.pkgdef to C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Extensions (located at C:\Program Files (x86)\Mi...
In typescript I have the following `type`: type Base = { mandatoryProperty: number } Then I would like to create a `Full type` starting from `Base` that EITHER has a `property1: number` or `property2: number`, such as: type Full = { mandatoryProperty: number property1: number ...
Typescript 'disable' excess property checking
|typescript|typescript-typings|
Since the column names are not aligned with the output of `split` (columns are 0/1), you should use the underlying numpy array: ``` df.loc[mask, ['COL1', 'COL2']] = df.loc[mask, 'Values'].str.split(' / ', expand=True).values ``` Output: ``` Class Values COL1 COL2 0 TEST 1.3 / 4.5 1.3...
This refers to the instance of the class it is used in. So if you were in an apple class, this would refer to that instance of the apple. The reason something isn't working is because you're in a static method where this doesn't make sense since your not in an instantiated object. To fix your issue, you will ha...
This project only has one single module-level [`build.gradle`](https://github.com/brunodev85/winlator/blob/main/app/build.gradle), while the root-project `build.gradle`, which loads the plugins onto the class-path, is absent. Just take such one from another project and drop it into the directory above - or configure th...
I'm working in VS2022 with Avalonia for the first time, the app contains a basic layout that consists of a SplitView control, with a ListBox in the Pane that acts as a sidebar, when items are selected the relevent UserControl should appear in the content side of the SplitView. I think the below code should work how...
I am having troubles figuring out why the delete button also cause the detailModal to popup even when I try to hide it. I am not sure what to do. Html code: ``` <div class="container"> <div class="table-wrapper"> <div class="table-title"> <div class="row"> <div class="col-sm-6"> <h2>Manage <b>U...
Why does the detailModal popup when i click the delete button but not the row?
|c#|asp.net-mvc|razor|
null
The bug seem to be related to the R-version 4.2.2, because it does work for 4.3.3.
Yo scroll to the end of the result search list in Google Maps, you have to change the br`enter code here` browser language first to English. Then deactivate side bar and past this code: # scroll down in google maps with python selenium javascript while True: results = driver.find_elements(By.CLA...
|react-native|push-notification|expo|
null
I'm using expo push notifications and on login I am setting the expo push token and saving it in the backend. However it is returning this error, couldnt find out how to solve it. Works fine when using Expo GO, when switched to EAS build it is returning this error: ```none Possible unhandled promise rejection Error: ...
I have no idea what you mean by `globals()` there and why are you double looping. Instead, add task to the group. with TaskGroup("group1") as group1: for key in ['task_1', 'task_2']: group1.add(tasks[key]) with TaskGroup("group2") as group2: for key in ['task_3', 'task_4']: ...
I have this problem that is not causing any error, but it's not doing what it should. **I have this code in my controller.** ``` const updateEvent = async (req, res) => { try { const event = await EventModel.findByIdAndUpdate( req.params.idEvent, req.body, { new: true } ); ...
put method is updating the database but not uploading the image and changing the image name
How to Display UserControl as SplitView Content? - Avalonia C#
|c#|mvvm|data-binding|avaloniaui|avalonia|
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":147356,"DisplayName":"larsks"},{"Id":9952196,"DisplayName":"Shawn"}],"SiteSpecificCloseReasonIds":[18]}
The issue with your regex is that you have `\d` and `\)` which appear in the regex as `d` and `)` (due to string parsing prior to the regex engine) the latter then causes an "unmatched closing parenthesis" error at the next `)`. You need to escape the `\` to ensure you get `\d` and `\)` into the regex i.e.: ```regex ...
This got me as well >.< Go only considers functions that begin with a capital letter to be exported; including member functions. So you need to change: ```golang func (task *Task) createTask() (err error) { ... ``` to ```golang func (task *Task) CreateTask() (err error) { ... ``` and similarly at ...
I just update my Intellij IDE to 2023 version and i can't use the short key for undo and Redo Ctrl Z and Ctrl Y. I have tried everything possible and nothing seems to work. can anyone with aid me in sorting this stubborn issue.
Is there a new way to undo and redo in the new version of intelliJ
|java|intellij-idea|
null
I am attempting to append data to a Google Sheet using the Sheets API with a service account. Despite ensuring that the sharing settings are correct and the service account has the necessary permissions, I keep receiving a HttpError 403, indicating a permissions issue, followed by a HttpError 500, which suggests an int...
"HttpError 403 and 500 when writing to Google Sheet using API"
|python|google-cloud-platform|oauth-2.0|google-sheets-api|http-error|
null
I have been recently struggling to grasp what I am doing wrong here. So I have a micro computer which has two separate network interfaces, usb0 and eth0. usb0 is a radio which I can communicate with from an external device (essentially a modem). eth0 is a camera (which is another computer) which I have plugged into thi...
Git - Cloning repository as read-only, committing only changes into another repository
|git|
React Native Webrtc remote stream is black during Video Call. It's getting both audio/video from remote candidate but it just won't display. ``` {"_id": "28967b2b-d555-4438-a8e8-b415e1831998", "_reactTag": "1658015a-9780-45ad-aa1a-b7d4829a1ee0", "_tracks": [{"_constraints": [Object], "_enabled": true, "_muted": fal...
React Native WebRTC Remote Stream is black
|react-native|expo|socket.io-client|react-native-webrtc|
null
I cannot serve, build or even "npm i" due to this error: ``` npm ERR! code 1 npm ERR! path D:\Angular\node_modules\nx npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./bin/post-install npm ERR! D:\Angular\node_modules\nx\src\utils\fileutils.js:26 npm ERR! throw e; np...
Nx invalid symbol in nx.json
|angular|node-modules|nx-monorepo|
|node.js|mongodb|express|
On installing SQL Server Management Studio v20, the menu items for Poor Man's T-SQL Formatter are gone. [![enter image description here](https://i.stack.imgur.com/G9GvB.png)](https://i.stack.imgur.com/G9GvB.png) Things worked fine in v18 after following the advice here: https://stackoverflow.com/a/72996345/48302...
How do I use Poor Man's T-SQL Formatter in SSMS v20?
|t-sql|formatting|ssms|formatter|
null
I am looking at transitioning docker image builds from using a bash wrapper script + Dockerfiles to using packer. One of the things that I've done with the script and Dockerfile involves setting a variable in the wrapper script to a git commit (e.g. `gitCommit=$(git log -1 --pretty="format:%h %s")`) and then passing th...
Can you dynamically set a docker image LABEL to a git commit value when building an image with packer?
|cicd|packer|hashicorp-packer|
null
A few things to fix : (A) You need to change the form tag of your HTML form from ``` <form action="mailto:mymail@gmail.com" method="post" enctype="text/plain"> ``` to ``` <form action="so29mar24.php" method="post"> ``` (B) and change this line in PHP from ``` $email_headers = "From: $name <$email>"; ...
Add [this][1] package to your dev_dependencies in pubspec.yaml: dev_dependencies: flutter_test: sdk: flutter flutter_gen: ^version [1]: https://pub.dev/packages/flutter_gen
I want to execute rsync to update several directories on another machine, without typing the password for each one of them. I decided to try the expect extension by following some simple StackOverflow examples. See below a very simplified version of my script. The rsync command works correctly when executed by itself. ...
Problem :- ``` {% for post in post_lists %} <div class="post_content" id="post_content"> <!---- PAGE 1 ALREADY LOADED HERE ----> </div> {% endfor %} <div id="pagination-loader" class="pagination_pages" data-page="1"></div> </div> <script> $(document).ready(function(){ var loadedPage = 1; // Variable ...
Ciao mi chiamo Simone Proscio, ho 30 anni, cerco lavoro come sviluppatore web o programmazione, non ho esperienza, ma voglio entrare in questo mondo per aiutare, essere disponibile e condividere conoscenze altrui Grazie mille
null