Questions tagged [export]

Data export" pertains to the process of transforming data sets from a specific format to another, either through automation or semi-automation. The term encompasses both the action of exporting and the outcome itself – the resulting exported dataset.

How can I transfer the database from my live server to my localhost using php?

I have a large SQL database operating on a live server. Whenever a bug arises, my usual process is to manually export the database from phpmyadmin (by viewing the output text), dropping the localhost database, importing the output dump, and then importing ...

Troublesome Behavior Encountered when Exporting Database Table to JSon with Apache Camel

I need to find a way to export data from a database table into a single JSON file. Currently, when I run the code provided below, it splits the data rows into multiple files instead of creating one single file. This is the Camel's route: public void con ...

Implementing Node.js' Import Export Module for Streamlined Data

In Nodejs, I have developed a function under the path /js const myCustomFunction = (param1) => { } exports.myCustomFunction = myCustomFunction Within the routes path, I aim to invoke this function. However, when executing "myfunctionA=require('./js/my ...

export keyword in TypeScript disassociates the interface implementation from a class

Currently, I am facing an issue with my files. I have a .ts file that contains a class declaration, and a .d.ts file that contains an interface declaration. An example from the .ts file: class A { constructor() { this.name = "Jo"; } } A ...

Transferring .jsx files between React applications

Recently, I attempted to create separate .jsx files in React. I successfully made a couple of them using export default name / import name from ./name.jsx'. However, I encountered an issue. Initially, when I imported Route and Links from react-router, ...

The process of exporting a dataframe to JSON in a particular format

Is there a way to modify the format of a json file exported using a downloadButton in a Shiny App? The current code successfully exports a data frame to json, but I want it to have a different structure. Here's the code that currently works: library(s ...

Generate dynamic maps that are exportable to HTML format

I've utilized Leaflet to produce engaging interactive maps in R. However, I'm encountering an issue when trying to export the maps - the background map appears grey after exporting. library(leaflet) library(htmlwidgets) m <- leaflet(data.frame(lat = 5 ...

Having trouble exporting a variable from one Node.js file to another and finding that the value remains unchanged?

Hey there, I've been working on exporting a variable to another file within my nodejs application. I have successfully exported the variable, however, I need it to update whenever a user logs in. Will the export automatically pick up on this change an ...

Guide on how to retrieve a value using image.onload on the client side

I have encountered an issue with exporting a png image from an svg element using Blob. The problem arises when clicking the anchor tag to export the image, as the content is not rendered due to the asynchronous method (image.onload()) being called after th ...

The CSV/PDF print export feature in Material-UI is not functioning properly when using the "@mui/x-data-grid" module

Is it just me or am I missing something here? I tried to export my data as a PDF using the available export option, but all I see is the CSV option. Why is that? https://i.stack.imgur.com/j6LW6.png In their example, they have access to both CSV and Print ...

Having trouble exporting data from Excel using react-data-export

I've been attempting to create an excel export feature, but for some unknown reason, it's not functioning properly. I'm utilizing react-data-export and followed a small test example from this GitHub link, yet the export is not working as exp ...

Incorporating Prisma Adapter into Next Auth results in an error: Unexpected token 'export'

In an attempt to follow along with a Vercel guide at https://vercel.com/guides/nextjs-prisma-postgres, I encountered an issue. When adding adapter: PrismaAdapter(prisma) to [...nextauth].ts, I received an error mentioning 'Unexpected token 'export''. The s ...

What is the best way to eliminate double quotes from multiple variables that combine to form a single string when exporting array variables to a csv file?

$fetchData = "SELECT * FROM members"; if (!$outputResult = mysqli_query($connection, $fetchData)) { exit(mysqli_error($connection)); } $usersList = array(); if (mysqli_num_rows($outputResult) > 0) { while ($rowsFetched = mysqli_fetch_assoc( ...

Issue with exporting HTML table to Excel containing UTF-8 characters

I have the following HTML code (angular js based so it may contain some angular tags) https://gist.github.com/sudarshann/668ba8d3dda02da366f59af2bcc3187a I am attempting to convert it to an XLS export using the code snippet below var date = new Date(); v ...

Download personalized HTML design

Situation When exporting to HTML, the resulting code appears as follows: <html> <head> <title></title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <style type="text/css" ...

What is the best method for exporting a MapboxGL map?

I am currently utilizing mapboxGL to display maps on a website, and I am interested in exporting the map as an image with the GeoJSON data that has been plotted. I attempted to use the leaflet plugin for this purpose, but it was unable to render clusters ...

What are the repercussions of labeling a function, TypeScript interface, or TypeScript type with export but never actually importing it? Is this considered poor practice or is there a potential consequence?

I find myself grappling with a seemingly straightforward question that surprisingly has not been asked before by others. I am currently immersed in a TypeScript project involving Vue, and one of the developers has taken to labeling numerous interfaces and ...

Exporting inbound nodes from Keras to JSON format: inbound_nodes

I'm currently trying to wrap my head around how to interpret the JSON representation of a Keras model. The field inbound_nodes stores the inputs for each layer, but I'm puzzled by why they are nested within arrays. For instance, when there are 2 inputs fo ...

"Problem with rendering languages in right-to-left direction on Plotly charts when using fig.write_image to save as a JPG

I am experiencing an issue when trying to export a chart to jpg in languages that are right-to-left direction, such as Arabic, Hebrew, and Urdu. When using the command "plotly.offline.plot" to export to .html, there is no problem and all brackets display c ...

What is the process of importing node modules and referencing the exported name of a module?

Upon importing { createStore } from 'redux' in index.js, what exactly does 'redux' refer to? I attempted to search through the src directory of the redux package within the node_modules folder but was unable to locate any export named 'redux'. Could it b ...

What is the process for exporting/importing a variable in Node.js?

What is the correct way to export/import a variable in Node.js? I attempted to use export and import methods, but I received an error message stating that it should be a module. After changing the type to module in the JSON file, it then told me that requ ...

Is there a way to transfer information from an ajax function to an express js server?

Is there a way to transfer data from a separate JS file to my Express.js server? I'm attempting to parse XML files using AJAX/jQuery and send the resulting data to an Express.js server. The parser is located in a different file within the /public/jav ...

Converting ed25519 private key into OpenSSH Format using JavaScript

After generating an ed25519 key pair using the javascript crypto library, I am now faced with the challenge of saving the private key in openssh format. Despite attempting to use the sshpk library for this task, I encountered an issue where the exported k ...

What is the best way to save a pandas pivot table for easy re-importing?

I need to securely share a pandas pivot table with a third party without exposing my python code. The pivot table is connected to additional columns, and when I export it to a CSV file then import it back into Python, some formatting is lost. How can I ...

Guide on transferring CSV files from a different server to my server via an FTP connection

Hey there, I'm trying to figure out how to download CSV files from a folder located on the root directory of one server to another server using FTP connection. I've included the code below, but unfortunately it's not working for me. The FTP connection is ...

What is the process for retrieving information from custom_export within Otree?

Currently, I am experimenting with utilizing ExtraModel and custom_export to extract information from the live_pages. However, after accessing the devserver and examining the data tab, I can't seem to locate the exported data. Furthermore, when I down ...

A guide on exporting a constant in a React functional component

import { StarIcon } from '@heroicons/react/solid' import NumberFormat from 'react-number-format'; import Image from 'next/image' import { useDispatch, useSelector } from 'react-redux'; import { removeFromBasket, sele ...

Using TypeScript with Node.js: the module is declaring a component locally, but it is not being exported

Within my nodeJS application, I have organized a models and seeders folder. One of the files within this structure is address.model.ts where I have defined the following schema: export {}; const mongoose = require('mongoose'); const addressSchema = ne ...