How to export excel/csv in snap? - snap-lang

I have a list of numbers, how can I export to excel/csv/sheets?
In scratch I can right-click & "export", hoping snap has something similar.

There isn't (yet) a way to do this from the user interface. We are working on it though.
For the moment, you'll need to use a CSV export library, like this one by Joan Guillén.
To use it, create a variable (in this example, csv text) and run:
Then right click on the csv text variable watcher on the Stage and select Export:
Hope it helps!
EDIT
You can, since a while ago, right click on the list reporter and select export. Snap! will know that you're trying to export a list and will automatically use CSV as an export format:
If you hold the shift key while right-clicking on the list reporter, you'll be able to explicitly specify a format:

Related

Wrong "ReflectedWorkItemIDFieldName" while migrating Azure DevOps Work Items

I am testing the azure-devops-migration-tools and have create a project using https://azuredevopsdemogenerator.azurewebsites.net/ (Parts Unlimited). I have generated the configuration.json and changed the Source and Target so I can test a migration, but I'm getting errors while migrating Work Items.
[15:14:41 ERR] Error running query
Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: TF51005: The query references a field that does not exist. The error is caused by «ReflectedWorkItemId».
I've tried different options on the "ReflectedWorkItemIDFieldName" field, Scrum, Basic, Agile, Custom, empty but am still unable to migrate the work items.
How can I get the value to put on this field for the specific project?
Thanks,
Bruno
Quick Solution: Most ADO instances use the prefix 'custom' for new fields. Try "Custom.ReflectedWorkItemId" in your configuration.json to see if that resolves the problem.
More details: It's hard to tell without an actual configuration.JSON file to review. One possible problem is that you need to use the actual and full internal 'Name' of the ReflectedWorkItemID field. This doesn't show in ADO, or the Process Template when created. The recommendation is that you create a query referencing your custom field, and export the WIQL file (query file). Once you export the WIQL file, you can then open the file and see the full syntax of the custom field.
Exporting Queries: If you don't know how to do this, it can be done with VisualStudio. If you don't know how to do that, you can install this extension. It's a handy WIQL import/Export and editor. Install, and your ADO Queries with have an Edit in WIQL Editor option. Create a query that exposes your 'ReflectedWorkItemID' as a column, then edit that query in the WIQL editor and see the full names of the Reflected Work Items ID Feild. https://marketplace.visualstudio.com/items?itemName=ottostreifel.wiql-editor
SELECT
[System.Id],
[System.WorkItemType],
[System.Title],
[System.AssignedTo],
[System.ChangedBy],
[Custom.ReflectedWorkItemId]
FROM workitems
WHERE ...
I found a possible solution. I have created a custom process, change the process from the projects to this new one and add a new field. This is the field I'm using on the configuration.json and now I'm able to migrate work items
To make the migration in the "ReflectedWorkItemIDFieldName" you must do:
"Organization Settings" -> Process -> Select the process where you project are (Basic, Scrum, Agil, or CMMI).
then click on the 3 dots and create a new Inherited process.
Then with the inherited process, you are able to create a new field for each work item type. The name that you type (could be "IronMan") that name will be in your configuration file.

Edit a Mainframe file in the RecordEditor without a copybook

How do you Edit a (binary EBCDIC) Mainframe file in the RecordEditor with out a Cobol Copybook.
How do you generate Java code to read the file using the RecordEditor.
Note: This is an attempt to split a question that is far to broad to give meaningful answer to
into a series of simpler Question and Answer's.
Try and avoid editing a binary file with a Cobol Copybook if at all possible. This should only be attempted as a last resort !!!.
Try and get
that Cobol copybook (or some field layout document) for the file !!!
Some general advise:
It is feasible when dealing with 10 / 20 fields in a record but not if there a thousands of fields in a Record.
Take your time do not rush the process. Try and get each step correct before moving on
Finally upgrade to the latest version of the RecordEditor (currently 0.98.4)
This process will also work for normal Text file as well
RecordEditor Layout Wizard
To start the wizard select option Record Layouts >>> Layout Wizard.
File Structure screen
The file structure screen has 3 purposes:
Get the File structure - It could be Fixed Width, VB, Windows/Unix Text file
Get the Record-Length (if it is a fixed width file).
Get the font (character-set / encoding)
The RecordEditor will try and work this out for you
Field Selection Screen
The RecordEditor will try and work out where fields start and end but
it is not perfect. You need to carefully check and correct its choices
On this screen, the fields are displayed in alternating colors
you create/delete a field by clicking on
use the Clear Fields button clear all the fields
you can change what field-types to search for using the various check box's (e.g. Mainframe Zones Decimal)
The Add Fields will do another field search
Field Definition screen
On this screen you define the field names and Types. You may need to go back to the **Field Selection Screen* to adjust the fields
Editing the file
Once the Record Layout has been defined, it can be used on the open file screen
Generating Java code
When editing your file, you can generate java~JRecord code to read the file
by selecting Generate >>> Java >>> ....
You can the enter a package-id + generate options:
and finally your sample java code is generated to read / write the
file.

Oracle SQL Developer query result Export Wizard default output file name

In Oracle SQL Developer when you right click into a query result and select export it brings up the Export Wizard.
After selecting the format you want (in this case .xls) the default save as target is (for me)C:\Documents and Settings\XXXXX\export.xls
What i would like is to change the default output file name from always being export to something that is dynamic, a timestamp perhaps?
I would even be happy to implement a 3rd part extension to handle this.
As discovered this is not currently possible but is currently down as a feature request with Oracle to be implemented if it gets enough attention from users.
Feature request:
https://apex.oracle.com/pls/apex/f?p=43135:7:114031166834052::NO:RP,7:P7_ID:41561
I know this is an old thread but I was looking for an answer to this, and wanted to share some information for anyone else who comes along.
As far as I know you still can't set the exact text of the file name or add a timestamp to it, but if you change the "Save As" setting in the Export Wizard window (this can be made permanent through the Tools - Preferences menu) to "Separate Files" then each export will be given a different file name in the specified folder automatically. This works even if the export is the same query. SQL Dev names each file "TABLE_EXPORT_DATA.xls" and will amend a number at the end after each export. So for example:
TABLE_EXPORT_DATA_4.xls
TABLE_EXPORT_DATA_3.xls
TABLE_EXPORT_DATA_2.xls
TABLE_EXPORT_DATA_1.xls
As #markleiber said, it isn't possible to change the default file name, but if you go to Tools/Preferences/Database/Utilities/Export/<Export Type>, you can change the default folder for this type of export.
You can also change default worksheet names and choose to include or remove headers for Excel format exports.

TYPO3 Version 6.0 import from CSV or DB query

I have a CSV file which contains these columns - Timestamp, Author, Title and Content.
Now I would like to import this CSV into TYPO3, so that I can display a list of posts containing these attributes.
If the above is not possible, is there a way to write in manual SQL queries, so that I can manually insert content into TYPO3 ?
I have tried many extensions for importing CSV- wil_import, rs_impory, external import .. but none of them work !!
In the following image, I have installed wil_import, but It does not show up anything.
Do I need to make any changes anywhere else, like configuration or something?
You could use phpmyadmin's CSV import functionality. It works reliably.
I've had same problem once and my day was saved thanks to Francois Suter's (Core team member) extensions: svconnector and svconnector_csv. So, I can really recommend them

How to get exported function names from a .dll(system)?

I want the exported function namelist (by name and by ordinal) from a DLL. I got the function names(exported by name) using export directory table,but I can't retrieve the exported function list, which exported by ordinals.
Please help me to retrieve it. I also tried .lib of that dll, there is also, displays NONAME. thanks in advance to legends
If You know dll name ,You can view through many tools (pe explorer,CFF Explorer),Here all exported function names are viewable with ordinal .Another one way from microsoft (dumpbin.exe) its a command line tool ..its also list out all exported fn names
If you have mingw32 installed, simply run
nm.exe your_dll
Where your_dll is the dll you want to to get the ordinals and exports of.
nm.exe should be in the bin directory of your mingw32 installation.