Are exported private keys in GPG still encrypted?

Exported secret keys are encrypted by default, however –export-options export-reset-subkey-passwd will produce an unprotected export: When using the –export-secret-subkeys command, this option resets the passphrases for all exported subkeys to empty. This is useful when the exported subkey is to be used on an unattended machine where a passphrase doesn’t necessarily make sense. Defaults to … Read more

What do “module.exports” and “exports.methods” mean in NodeJS / Express?

To be more specific: module is the global scope variable inside a file. So if you call require(“foo”) then : // foo.js console.log(this === module); // true It acts in the same way that window acts in the browser. There is also another global object called global which you can write and read from in … Read more

Create PDF with Java [duplicate]

I prefer outputting my data into XML (using Castor, XStream or JAXB), then transforming it using a XSLT stylesheet into XSL-FO and render that with Apache FOP into PDF. Worked so far for 10-page reports and 400-page manuals. I found this more flexible and stylable than generating PDFs in code using iText.

Can’t export my database from mysql workbench

To summarize what I did from the helpful comments of @JustinLaureno and @Mohd.Shaizad, tested on MySQL Workbench 8.0.18: Navigate to C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules Edit the file wb_admin_export.py (you need admin permissions for this) amend the line: skip_column_statistics = True if get_mysqldump_version() > Version(8, 0, 2) and self.owner.ctrl_be.target_version < Version(8, 0, 0) else False … Read more

How to use export with Python on Linux

export is a command that you give directly to the shell (e.g. bash), to tell it to add or modify one of its environment variables. You can’t change your shell’s environment from a child process (such as Python), it’s just not possible. Here’s what’s happening when you try os.system(‘export MY_DATA=”my_export”‘)… /bin/bash process, command `python yourscript.py` … Read more

Read and Write CSV files including unicode with Python 2.7

Another alternative: Use the code from the unicodecsv package … https://pypi.python.org/pypi/unicodecsv/ >>> import unicodecsv as csv >>> from io import BytesIO >>> f = BytesIO() >>> w = csv.writer(f, encoding=’utf-8′) >>> _ = w.writerow((u’é’, u’ñ’)) >>> _ = f.seek(0) >>> r = csv.reader(f, encoding=’utf-8′) >>> next(r) == [u’é’, u’ñ’] True This module is API compatible … Read more

Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported

You can right click on the warning, choose quickfix and choose one of the following: Mark the associated raw classpath entry as a publish/export dependency. Exclude the associated raw classpath entry from the set of potential publish/export dependencies. As you will not have eclipse publishing/exporting the project it is safe to exclude it. But either … Read more

Exporting results of a Mysql query to excel?

The typical way to achieve this is to export to CSV and then load the CSV into Excel. TL;DR: For a server-side Excel-friendly CSV file from a SELECT query, run this: SELECT … FROM someTable WHERE etc INTO OUTFILE ‘someTableExport.csv’ CHARACTER SET utf8mb4 FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘”‘ ESCAPED BY ” LINES … Read more