OLE2 signature is invalid when trying to open my XLS file - ruby

I'm using the Roo gem, and the following code:
Roo::Excel.new(file.path)
This raises the following exception:
Ole::Storage::FormatError: OLE2 signature is invalid
The file I'm using its a .xls, when I open it and re-saved it from LibreOffice it just works. Why is that?

Related

Neo.ClientError.Statement.ExternalResourceFailed on Windows

I just install neo4j 3.2.3 on my windows notebook and I try to load csv file.
LOAD CSV WITH HEADERS FROM 'file:///test.csv' AS line
WITH toUpper(line.TEST_NAME) AS TEST_NAME
CREATE(TEST);
I got the following error:
Neo.ClientError.Statement.ExternalResourceFailed: Couldn't load the external resource at: file:/C:/Users/*****/Documents/Neo4j/default.graphdb/import/test.csv
I cannot locate the neo4j.conf or propriety files in the default.graphdb directories.
can someone help?
I'm on windows 10 neo4j 3.2.3.
I can load from url. but with the same file format, I failed to load from local.
LOAD CSV FROM "https://gist.githubusercontent.com/jexp/d788e117129c3730a042/raw/a147631215456d86a77edc7ec08c128b9ef05e3b/people_leading_empty.csv"
AS line
WITH line LIMIT 4
RETURN line
successful
with the same file save as .../Neo4j/default.graphdb/import/test1.csv
LOAD CSV WITH HEADERS FROM "file:///test1.csv" AS line
WITH line LIMIT 4
RETURN line
I got error:
Neo.ClientError.Statement.ExternalResourceFailed: Couldn't load the external resource at: file:/C:/Users/....../Documents/Neo4j/default.graphdb/import/test.csv
From the error message, it can locate the file. But cannot perform the LOAD from local.
I cannot locate the neo4j.conf or propriety files in the
default.graphdb directories.
According to the Neo4j docs, the neo4j.conf file is located in the directory <neo4j-home>\conf\neo4j.conf for zip packages and %APPDATA%\Neo4j Community Edition\neo4j.conf for desktop installation.
You should locate the configuration file and set the following line.
dbms.security.allow_csv_import_from_file_urls=true
The LOAD CSV operation in Neo4j can only load the UTF-8 format files, try to change the import file's format to UTF-8(save the .csv file as .csv(utf-8) type).

CONNECT ERROR: Package file is invalid magento error

using everst theme and trying to upload megamenu extension and getting this error need help.....
CONNECT ERROR: Package file is invalid
Invalid package name, allowed: [a-zA-Z0-9_-] chars
Invalid version, should be like: x.x.x
Invalid stability
Invalid date, should be YYYY-DD-MM
Invalid channel URL
Empty authors section
Empty package contents section
what all you need to do is paste the extension key in link : http://freegento.com/ddl-magento-extension.php) and you can download the extension files. Than copy the extension files to root of the site
note : Take backup of files and database before doing any major changes

Codeigniter Warning: failed to open stream in mpdf: No such file or directory

I'm using mpdf in my codeigniter web app for converting one of my view as pdf and to attach it while sending email. I've downloaded and moved mpdf library to the library folder. But when i try to email the pdf, i'm getting the following warning:
A PHP Error was encountered
Severity: Warning
Message: require_once(/application/libraries/mpdf/includes/functions.php): failed to open stream: No such file or directory
Filename: mpdf/mpdf.php
Line Number: 55
But actually functions.php file is present in the `mpdf/includes/' folder. Can anyone find where am going wrong?
Use the APPPATH constant like this
require_once(APPATH."libraries/mpdf/includes/functions.php");
use this
require_once(APPPATH.'libraries/mpdf/includes/functions.php');
or
require_once(FCPATH.'application/libraries/mpdf/includes/functions.php');
The error is because Linux is case-sensitive in file names. Review that aspect in detail.

XPCOMGlueLoad error for file /usr/local/firefox/libxul.so

When running firefox on centos. I am getting the following error. How do i resolve this?
XPCOMGlueLoad error for file /usr/local/firefox/libxul.so:
libdbus-glib-1.so.2: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

SimpleXml tar.gz

I'm using SimpleXml to parse xmls. Sadly I've approached XML zipped into tar.gz.
When i try to load this XML i get error
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /home/
Is there any way to work on tared file? If not how can untar this and work on it (it's 12 MB tared file on outside server)?
Kindest regards

Resources