instruction stringlengths 0 30k β |
|---|
The below My SQL query working for load csv data to table
```
LOAD DATA INFILE
'C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Uploads\\sales3.csv'
INTO TABLE ttsales
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
```
But not working while using in stored procedure
As per my search I foun... |
How to load csv data to mysql table using mysql stored procedure |
|mysql|stored-procedures| |
I wan to display the hashmap in a table view but an error is raised and it tells me that it can't access the 'key' and 'value' (https://i.stack.imgur.com/Ya2HJ.png)
i have an error message that says it doesn't recognize 'key' and 'value', here is the error
WARNING: Can not retrieve property 'key' in PropertyValueF... |
Displaying a Hashmap in a TableView in JavaFX |
|javafx| |
null |
Opening a command prompt window and running there `set /?` outputs the help for command __SET__.
There is explained on last help page that `%DATE%` expands to the __current locale date__ and `%TIME%` to the __current locale time__ on parsing the line containing those __dynamic__ variable references.
The format of... |
Two key notes
1. You need to order with id with the time_create, I assume you're testing and created the posts in a loop, sometimes this can result in a post with the same time_create
2. This is a limitation of the normal Paginator (Limit/Offset), use a Cursor paginator instead
Its supported in DRF as `rest_... |
Can anyone tell me how to fix this. When I change a product photo on the website, the preview remains the old photo, only if you click on the photo to open it in full size, then the photo is new. if you clear the browser cache then everything is fine, but I need the website cache to clear so that costumers can see up... |
What Is Website Caching and How to Clear It? |
|browser-cache| |
null |
I am implementing the pdf generation then while I hit save in android 7 device its working fine but as soon as I move to any upper versions I got this error Cannot open file, path = '/storage/emulated/0/Download/BitesVilla-invoice.pdf' (OS Error: Permission denied, errno = 13)
Have tried Using permission Handler that ... |
can I use vite alias in a vue function? |
|vue.js|vite| |
{"Voters":[{"Id":17726283,"DisplayName":"ee-eb"}],"DeleteType":1} |
I need to make a **tree **with arrows and indent in python. I cannot use any libraries.
```
It should work like this:
INPUT:
[[[... |
Python - how to make tree without any library |
|python|tree|structure| |
null |
I have an XML file that I am importing into a SQL table using an Azure pipeline data copy activity. The file imports fine, but only imports the very first row into the SQL table. It does not import all the records
[XML file example](https://i.stack.imgur.com/M27lR.png)
Mapping as follows:
[Copy Activity Ma... |
SQL - Recursive Calculation Solution Required |
|sql|db2|common-table-expression| |
null |
I have data:
const mockedData = [
{
title: "Junior",
columns: [{ title: "Column 1" }],
},
{
title: "Mid",
columns: [{ title: "Column 1" }, { title: "Column 2" }, { title: "Column 3" }],
},
{
title: "Senior",
columns: [{ title: "Column 1" },... |
I have an object called static_world_object, which I intend to be the parent of objects that are inanimate. I added code in the step event which I intend to check to see if a player object is currently colliding with it.
```
if self.image_alpha < 1{ // Checks to see if the static object has become transparent
... |
Just in case anyone else ends up in ToolStripManager hell, here's my solution. Basically, it circumnavigates using ToolStripContainer and ToolStripManager entirely and persists the ToolStrip states (location and visibility) via a user setting and a custom control that inherits ToolStripPanel (placeable via VS Designer)... |
> \`I need to implement Firebase push notification, so I added the packages of latest version into my Maui .net8.0 project. Here are the packages added in csproj file for push notifications. I'm getting error when I upgraded to the latest version of these packages related to error- JAVA0000.
<ItemGroup Con... |
The string given to *sys.exit()* is written to stderr whereas *print()* goes (by default) to stdout. Although the output is ultimately to a terminal, the order isn't guaranteed due to independent buffering of the two streams.
Documentation [here](https://docs.python.org/3.12/library/sys.html#module-sys) |
Finally I uninstalled the useless and buggy 1GB Anaconda to install the [micromamba][1] as Alexey suggested.
1) Installation in PowerShell:
```
Invoke-Expression ((Invoke-WebRequest -Uri https://micro.mamba.pm/install.ps1).Content)
```
2) setup `MAMBA_ROOT_PREFIX` to `c:\micromamba`
```
micro... |
how to updated nested state array in extrareducer |
|javascript|reactjs|node.js|redux|redux-toolkit| |
In C++, you cannot mark a block scope as `const` (or similar) to specify that `*this` should not be modified. |
Is there other way to check Firebird trigger action (`insert`, `update`, `delete`) than using context variable `INSERTING`, `UPDATING`, or `DELETING`?
IF (INSERTING) THEN
BEGIN
/* do something */
END
|
|sql|triggers|firebird| |
Refer to this documentation [Embed a report with RLS][1]. We need to define the Roles and users in the [Effective Identity][2] request body while generating the Embed Token inorder to embed report with RLS.
This is only applicable to apps-own data scenario.
[1]: https://learn.microsoft.com/power-bi/developer... |
I want Nokogiri to return all the divs with the following class: `styled__PostItemWrapper-sc-e4ns84-7`
however on my webpage, I can see so many divs with this class, here is a sample:
[![enter image description here][1]][1]
yet when I do this:
`
Nokogiri.HTML(res.body).css('div.styled__PostItemWrapper-sc-e4n... |
null |
I want Nokogiri to return all the `div`s with the following class: `styled__PostItemWrapper-sc-e4ns84-7`
however on my webpage, I can see so many `div`s with this class, here is a sample:
[![enter image description here][1]][1]
yet when I do this:
```
Nokogiri.HTML(res.body).css('div.styled__PostItemWrapper-... |
I have a table that I'm referencing to count dates that fall within a certain criteria (Feb 2024, Aug 2022, etc.) based on a dropdown box. Currently I am counting this via SUMPRODUCT, checking the text from a column matches said criteria, converting any 'TRUE' statements to a '1' using --, and totalling from there.
... |
Why is an encrypted stored procedures taking a long time to execute in SQL Server 2022? |
I am using WordPress 6.4.3, and I am utilizing a free trial of Slider Revolution 6.6.8. I also installed the latest version, 6.6.20. However, the issue is that the slider is not showing up on the pages; instead, there's just a white space in that area. Additionally and i am using translogic theme, I inspected the error... |
Slider revolution is not showing up on my wordpress pages just white space |
|wordpress|slider|slider-revolution| |
null |
I have 8 divs in a div called card-group these cards should expand and there are also little cards which go to the edge this worked then a added more text at the bottom and the on screen fade in but it messed up the :hover effect.
Here is one of the :hover statements there are 8 of these:
style.css
```
.card-group:... |
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 ... |
Implementing PDF generation and then From Local Notification Open the Pdf that is Saved to Download |
|flutter|dart|pdf-generation|flutter-dependencies|android-permissions| |
null |
{"OriginalQuestionIds":[19870078],"Voters":[{"Id":1491895,"DisplayName":"Barmar","BindingReason":{"GoldTagBadge":"php"}}]} |
When Stimulus controller is on the same element as the value, you should be able to retrieve the value:
<div data-controller="selectable" data-selectable-iconurl-value="test">
If your value needs to be set on a child element, then I suggest to just access it the old way :
console.log(this.element.quer... |
{"Voters":[{"Id":162698,"DisplayName":"Rob"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":2324154,"DisplayName":"Dan Mullin"}]} |
When I move a polyon's point (node) with the mouse, the bounding box does not update to enclose all new points. I've tries every matrix, setCoords(), etc. on this site for days. Fabric's own demo is useless, due to it fails when the polygon is flipped (3+ years and no fix). I just want to edit a polygon by moving it's ... |
Azure Data Factory Copy Activity Only Importing First Row of XML file |
|xml|azure|azure-data-factory| |
null |
I would like to write a Insert/Update query. I need to update tblnames2 based on tblenames3 and tblnames2 itself
then insert the new rows where target name like inc table in target table field in tblnames1 based on tblnames2 by matching filename.
**tblNames1**:
|application | job_name |desc |owner|author|... |
Query to Insert and update records |
|postgresql|postgresql-9.1|postgresql-9.3|postgresql-9.5| |
I have legacy windows machine with even more lagacy software. From time to time, some of the programs sends an email through 1.2.3.4 smtp server using port 25. The problem is, that ISP blocked port 25 and they said to me that I have to change software to send email through port 587.
Is it possible to do without chan... |
Redirect outbound traffic to a different port |
|routes|network-programming|port|firewall|iptables| |
Cordova splashscreen.
Edit the config.xml and point to a splash screen image
<platform name="ios">
<splash src="res/screen/ios/Default@2x~universal~anyany.png" />
<splash src="res/screen/ios/Default@2x~universal~comany.png" />
<splash src="res/screen/ios/Default@2x~universal~comcom.png" />
... |
As discussed in the video (https://www.youtube.com/watch?v=k20yLpW8-xU&t=782s), create or alter enables declarative table definitions and updates.
The video states it is in private preview. How can I get access? When will it be available to all accounts? |
When will "create or alter" be available to all accounts? |
I'm running into an issue when trying to update the Steam client using SteamCMD. Here's the `RUN` command in my Dockerfile:
```
# Update Steam using SteamCMD.
RUN sudo mkdir -p /steam && \
/usr/games/steamcmd +force_install_dir /steam +login anonymous +app_update 90 validate +quit
```
The download seems to ... |
Why is SteamCMD failing to download Steam client updates anonymously in my Docker image build? |
|docker|steam| |
While the various solutions provides more or less a way to get expected height once animation completes, they seemed very complicated for the most part.
The highest scored solution (at the time of writing) did not even work for me.
All solutions making the view visible at first where a no go, because they created... |
The thing that controls how the faces will look is attribute interpolation.
There are many different kinds of interpolation, and you can check them out in Metal Shading Language Specification (https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf, 5.4 Sampling and Interpolation Attributes
).
... |
The error model I created does not handle or parse the data, it constantly returns null. However, the api response comes successfully in the `response.data.description` statement. What is the solution?
I reviewed the YouTube video created by Veli Bacik and when I watch it up to the current time in the link I shared,... |
While using the vexana package in Flutter, I create my own Error Model, but I am getting errors |
|flutter| |
null |
I'm encountering an issue while trying to clone the TensorFlow models repository using the command:
```shell
git clone https://github.com/tensorflow/models
```
The error message I receive is:
```none
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
```
I've tried changin... |
'Git clone' displays a 'RPC failed' error |
|git|rpc|git-clone| |
The `scam` package has the following capability:
```
smooth.construct.tesmi1.smooth.spec
Tensor product smoothing constructor for a
bivariate function monotone increasing in the
first covariate
```
Thus
```r
scam(z ~ s(x, y, bs = "te... |
I am learning api development with php now. While experimenting the password hashing i came up with a problem.
Initally i used bcrypt algorithm, it successfully works, but when i tried `Argon2i` or `Argon2id` it throws an error.
```
public function test_hash() {
if(isset($this->_request['pass'])) {
... |
In the git Tab in vscode, there are a number of features I never use, I prefer typing my command lines.
Is there a way to only view changed files in different repos of the workspace ?
It is very hard to read and navigate between repos with the big commit button, commit input, and short cut commands. |
Declutter VsCode Git Tab |
|visual-studio-code|vscode-git| |
I developed a small stand alone soap webserver in Delphi. The procedure is as below:
procedure sum(a1,a2:integer;var result_value:integer);stdcall;
begin
result_value:=a1+a2;
end;
How can I call it in Vue JS?
|
How can I call a soap webserver method in Vue JS |
|vue.js|delphi|soap|webserver| |
|python|machine-learning|image-segmentation|image-classification|geotiff| |
I finally solved the problem with this code
<script>
jQuery(function($) {
// Attache un gestionnaire d'Γ©vΓ©nements de clic Γ tous les liens Γ l'intΓ©rieur de ".elementor-location-popup"
$(document).on('click', '.elementor-location-popup a', function(event) {
// Ferme ... |
I am facing this issue:
System.InvalidOperationException: The AuthorizationPolicy named: 'Admin' was not found.
But I have this in Startup.cs:
services.AddAuthorization(options =>
{
options.AddPolicy("Admin", policy => policy.RequireAssertion(httpCtx =>
{
if (httpCtx... |
I think you were on the right lines `PHAsset.fetchAssets(with: fetchOptions)` as this will allow the return of multiple media types. You might even be able to use it without any predicate at all, but if you want to specifically return just videos and images this works on my quick test:
```
import Photos
let forma... |
Ansible documentation does not recommend using loops (`with_items` is also a loop) with package management modules, including [`yum`][1]:
> When used with a `loop:` each package will be processed individually, it is much more efficient to pass the list directly to the `name` option.
As for the original issue, the... |
Your Axios request is missing the query, try this, similar worked for me (abc123ff22 as the project ref, apikey is the API key, accesstoken is the access token, don't use apikey):
const axios = require('axios')
const url = 'https://adsfvutfdffylp.supabase.co/graphql/v1'
const apikey =
'apikey'
... |
I have a kind of factory in my application in which I create instances of various objects. All objects inherit from the same base class.
I'm now trying to pass an instance of this derivation into a Component and would like to display the contents.
I tried to implement this with a RenderFragment. This works for the in... |
I had to change the QR code generator that we had been using for years since Google discontinued the chart API that was being used. I found a new one here https://goqr.me/api/doc/create-qr-code/. The way that I had it programmed worked for a month or so, but has now stopped.
[![enter image description here][1]][1]... |
I'm trying to store some data through `localStorage` so I can load it again in the same page of a web if this page is refreshed.
Imagine a user writing a comment, he refreshes the page and I want to load again the comment through `localStorage` so the user can keep editing his comment after that refresh.
The is... |
How to implement tab-dependent storage? |
|javascript|local-storage| |
When you have the expression
Objects.nonNull(chooseRequest)
? chooseRequest.getSortAsc()
: false
and the return type of `chooseRequest.getSortAsc()` is defined as `Boolean`, then the "result" of this (boolean) conditional expression will be a `boolean` (the primitive type), as indicated in t... |
CREATE SCHEMA IF NOT EXISTS basic_DB;
create table if not exists basic_DB.users
(
id serial primary key,
login varchar(50) not null unique,
password varchar(100) not null
);
create table if not exists basic_DB.files
(
id serial primary ke... |