export-to-csv

Magento advanced profiles export - Prepend URL to IMAGE path

夙愿已清 提交于 2019-12-03 14:45:46
Just a couple of weeks into Magento, managed to get going with the Advanced Export Profiles (Very Handy), What I would like to do is Prepend a url value to one of the output columns, specifically the image url. I would like to append the url to the beginning of the path output. Can anyone assist? <action type="catalog/convert_adapter_product" method="load"> <var name="store"><![CDATA[0]]></var> <var name="filter/price/from"><![CDATA[0.01]]></var> <var name="filter/price/to"><![CDATA[999999]]></var> <var name="filter/visibility"><![CDATA[4]]></var> <var name="filter/status"><![CDATA[1]]></var>

Jasper Reports OutOfMemoryError on export

耗尽温柔 提交于 2019-12-03 08:48:35
I have written a web app for managing and running Jasper reports. Lately I've been working with some reports that generate extremely large (1500+ page) outputs, and attempting to resolve the resultant memory issues. I have discovered the JRFileVirtualizer , which has allowed me to run the report successfully with a very limited memory footprint. However, one of the features of my application is that it stores output files from previously run reports, and allows them to be exported to various formats (PDF, CSV, etc.). Therefore, I find myself in the situation of having a 500+MB .jrprint file

How to export complete Google Analytics historical data? [closed]

假装没事ソ 提交于 2019-12-03 08:15:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . I was given a few days to export all the historical data from a Google Analytics account before access will be shutoff. Important to note that you cannot migrate historical data (at the time of this post) from one Google Analytics account to another. I would specifically like to program this for Excel or better

ANGULAR 5 : how to export data to csv file

微笑、不失礼 提交于 2019-12-03 06:54:51
I am beginner in angular and I am working on Angular 5, Node v8.11.3. I want to realize a generic function that takes in parameter data and headers. And as output a csv file. I create a component called ' FactureComponent ' Then I generate a service called ' DataService ' then I create a getFactures function that retrieves a list of my items from a mock and it works very well. import { Component, OnInit } from '@angular/core'; import { DataService } from '../data.service'; import { FACTURES } from '../mock.factures'; @Component({ selector: 'app-facture', templateUrl: './facture.component.html'

Export JSON to CSV or Excel with UTF-8 (e.g. Greek) encoding using JavaScript

孤者浪人 提交于 2019-12-03 05:16:03
I am trying to export and download a JSON object to CSV file and I have problem with Greek characters. My code works; it is not perfect, but it works. The problem is that Greek characters looks like junk. Here is my existing code: function downloadJsonToCsv(jsonObject) { var array = typeof jsonObject != "object" ? JSON.parse(jsonObject) : jsonObject; if (array == null) { return; // No data found on the jsonObject } var str = ""; for (var i = 0; i < array.length; i++) { var line = ""; for (var index in array[i]) { line += array[i][index] + ";"; // Set delimiter } // Here is an example where you

export table to csv on postgres

独自空忆成欢 提交于 2019-12-03 02:10:46
How can I export a table to .csv in Postgres, when I'm not superuser and can't use the copy command? I can still import the data to postgres with "import" button on the right click, but no export option. Use psql and redirect stream to file: psql -U <USER> -d <DB_NAME> -c "COPY <YOUR_TABLE> TO stdout DELIMITER ',' CSV HEADER;" > file.csv COPY your_table TO '/path/to/your/file.csv' DELIMITER ',' CSV HEADER; For more details go to this manual Besides what marvinorez's suggests in his answer you can do, from psql : \copy your_table TO '/path/to/your/file.csv' DELIMITER ',' CSV HEADER On the other

Unicode Encode Error when writing pandas df to csv

半世苍凉 提交于 2019-12-02 23:36:30
I cleaned 400 excel files and read them into python using pandas and appended all the raw data into one big df. Then when I try to export it to a csv: df.to_csv("path",header=True,index=False) I get this error: UnicodeEncodeError: 'ascii' codec can't encode character u'\xc7' in position 20: ordinal not in range(128) Can someone suggest a way to fix this and what it means? Thanks You have unicode values in your DataFrame. Files store bytes, which means all unicode have to be encoded into bytes before they can be stored in a file. You have to specify an encoding, such as utf-8 . For example, df

How to export complete Google Analytics historical data? [closed]

扶醉桌前 提交于 2019-12-02 21:56:12
I was given a few days to export all the historical data from a Google Analytics account before access will be shutoff. Important to note that you cannot migrate historical data (at the time of this post) from one Google Analytics account to another. I would specifically like to program this for Excel or better yet get guidance on what others have used. I have never done this before so wanted to reach out and see what others have used? Wanted to avoid the Google Analytics Data Export API unless there was no other option. There is about 5 years of data for a very active site. Update I decided

Powershell variable export-CSV cache?

为君一笑 提交于 2019-12-02 17:30:34
问题 I am working on a script by Richard L. Mueller (http://www.rlmueller.net/PowerShell/PSLastLogon.txt) Trap {"Error: $_"; Break;} $D = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() $Domain = [ADSI]"LDAP://$D" $Searcher = New-Object System.DirectoryServices.DirectorySearcher $Searcher.PageSize = 200 $Searcher.SearchScope = "subtree" $Searcher.Filter = "(&(objectCategory=person)(objectClass=user))" $Searcher.PropertiesToLoad.Add("samAccountName") > $Null $Searcher

Generate CSV file from javascript under IE11

﹥>﹥吖頭↗ 提交于 2019-12-02 17:14:28
问题 I read lot of sample to generate csv file from data and push it to download to export it. let csvContent = ''; $.each(msg.d.LstObj[0], function (key, element) { csvContent += (csvContent === '' ? '' : ',') + key; }); csvContent += "\n"; msg.d.LstObj.forEach(function (rowArray) { var row = ''; $.each(rowArray, function (key, element) { row += (row === '' ? '' : ',') + element; }); csvContent += row + "\n"; }); var hiddenElement = document.createElement('a'); hiddenElement.href = 'data:text/csv