data-conversion

Converting date from excel to matlab in multiple fields

你离开我真会死。 提交于 2020-01-16 13:30:46
问题 I have a structure (gilts) in matlab with many fields (gilt_name). The structure is an imported workbook from excel, and each field corresponds to a worksheet in that workbook. Each worksheet is a time series of dates and corresponding prices of gilts. I converted the dates in excel to strings before importing into matlab as instructed in When to Convert Dates from Excel Files. But how do I apply this conversion to many fields simultaneously in matlab? I have hundreds of arrays of data

Converting date from excel to matlab in multiple fields

 ̄綄美尐妖づ 提交于 2020-01-16 13:30:27
问题 I have a structure (gilts) in matlab with many fields (gilt_name). The structure is an imported workbook from excel, and each field corresponds to a worksheet in that workbook. Each worksheet is a time series of dates and corresponding prices of gilts. I converted the dates in excel to strings before importing into matlab as instructed in When to Convert Dates from Excel Files. But how do I apply this conversion to many fields simultaneously in matlab? I have hundreds of arrays of data

Appengine conversion Api (java)

两盒软妹~` 提交于 2020-01-16 11:32:32
问题 I want to convert pdfs to image files within appengine. Ideally I would upload the pdf as a blob and store both the pdf and an image of the pdf. The conversion could also be done at a different time (taskqueue). I have not found any working samples or good documentation of doing this. The official documentation is here. Here is my implementation on my upload servlet. @SuppressWarnings("serial") public class UploadBlobServlet extends HttpServlet { private static final Logger log = Logger

Appengine conversion Api (java)

拥有回忆 提交于 2020-01-16 11:32:14
问题 I want to convert pdfs to image files within appengine. Ideally I would upload the pdf as a blob and store both the pdf and an image of the pdf. The conversion could also be done at a different time (taskqueue). I have not found any working samples or good documentation of doing this. The official documentation is here. Here is my implementation on my upload servlet. @SuppressWarnings("serial") public class UploadBlobServlet extends HttpServlet { private static final Logger log = Logger

Converting XML with namespaces to CSV using powershell

荒凉一梦 提交于 2020-01-13 19:54:27
问题 I have this XML file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:BOX xmlns="urn:loc.gov:item" xmlns:ns2="urn:loc.gov:box" xmlns:ns3="http://www.example.com/inverter" xmlns:ns4="urn:loc.gov:xyz"> <ns3:Item> <Description>ITEM1</Description> <PackSizeNumeric>6</PackSizeNumeric> <ns2:BuyersItemIdentification> <ID>75847589</ID> </ns2:BuyersItemIdentification> <ns2:CommodityClassification> <CommodityCode>856952</CommodityCode> </ns2:CommodityClassification> <ns2

Converting XML with namespaces to CSV using powershell

此生再无相见时 提交于 2020-01-13 19:54:02
问题 I have this XML file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:BOX xmlns="urn:loc.gov:item" xmlns:ns2="urn:loc.gov:box" xmlns:ns3="http://www.example.com/inverter" xmlns:ns4="urn:loc.gov:xyz"> <ns3:Item> <Description>ITEM1</Description> <PackSizeNumeric>6</PackSizeNumeric> <ns2:BuyersItemIdentification> <ID>75847589</ID> </ns2:BuyersItemIdentification> <ns2:CommodityClassification> <CommodityCode>856952</CommodityCode> </ns2:CommodityClassification> <ns2

Convert structure to PHP array

杀马特。学长 韩版系。学妹 提交于 2020-01-07 09:53:53
问题 The horrible system we use in my company gives me the following output: { party:"bases", number:"1", id:"xx_3039366", url:"systen01-ny.com", target:"_self", address:"Ch\u00e3o as Alminhas-Medas,Uteiros de Gatos e Fontes Longaq<br/>64320-761 ANHADOS LdA", coordinate:{ x:90.995262145996094, y:-1.3394836426 }, contactDetails:{ id:"366", phone:"xxxxxx", mobile:"", fax:"xxxx 777 235", c2c:!0 }, parameters:"Flex Am\u00e1vel Silva,hal,,EN_30336,S,786657,1,0,", text:"Vila Nova de Loz C\u00f4a,os

Conversion from binary to decimal number in MATLAB

坚强是说给别人听的谎言 提交于 2020-01-07 08:31:54
问题 I have a problem in converting the binary to decimal (it seems very lengthy). %% Read clear all; close all; clc; I=imread('test.png'); imshow(I); %% Crop I2 = imcrop(I); figure, imshow(I2) w=size(I2,1); h=size(I2,2); %% LBP for i=2:w-1 for j=2:h-1 J0=I2(i,j); I3(i-1,j-1)=I2(i-1,j-1)>J0; I3(i-1,j)=I2(i-1,j)>J0; I3(i-1,j+1)=I2(i-1,j+1)>J0; I3(i,j+1)=I2(i,j+1)>J0; I3(i+1,j+1)=I2(i+1,j+1)>J0; I3(i+1,j)=I2(i+1,j)>J0; I3(i+1,j-1)=I2(i+1,j-1)>J0; I3(i,j-1)=I2(i,j-1)>J0; LBP(i,j)=I3(i-1,j-1)*2^8+I3(i

XML to CSV with nested and definite elements in Perl

元气小坏坏 提交于 2020-01-06 06:04:01
问题 I need to convert my xml file to csv Format. But I in csv file I need not all Information fron the XML, just 2 elements (IP Address and id from device). #!/usr/bin/perl use strict; use warnings; use Data::Dumper; use XML::Simple; #Elements, that I want see in my csv my @Fields = qw{id, ipAddress}; open(my $out, '>', 'output.csv') or die "Output: $!\n"; print $out join(',', @Fields) . "\n"; my $xml = XMLin('input.xml', ForceArray => ['entity']); foreach my $entity (@{$xml->{entity}}) { no

Convert MySql data from Latin1 to UTF8 [duplicate]

耗尽温柔 提交于 2020-01-05 04:40:28
问题 This question already has answers here : How to convert an entire MySQL database characterset and collation to UTF-8? (17 answers) Closed 3 years ago . This is a common question has been asked for many times. However I still cannot get the right answer from google. In my web app, there is a form for collecting data, the app and all data is collecting in UTF-8. However, mistakenly, the collection of the schema and the table has been set as latin1. Moreover, during the connection, "SET NAMES