Mostrando entradas con la etiqueta Tools. Mostrar todas las entradas
Mostrando entradas con la etiqueta Tools. Mostrar todas las entradas

viernes, 26 de julio de 2013

XML - Editor, Tools,...


XML editing software
Java is not compatible with UTF8 with BOM and XOG is based in Java
so use UTF8 (withoutBOM) or cp1252 aka ANSI

--Ms.Notepad XML 2007
(be careful writes UTF8 with BOM)
   Outline view with XML elements. Able to drag and drop elements from one file to other

--XML Spear 3.1. Good free software! it is possible to select the enconding(even UTF8 with BOM)
   Outline with element, no drag and drop
   Able to open big files (>20MB)  
   Plugin for Clarity

--Eclipse Indigo+WTP
   By default not able to manage big xml files
  Outline view with XML elements, Able to drag and drop elements from one file to other (in different Eclipse windows)

 Eclipse XML Editors and Tools
  org.eclipse.wst.xml_ui.feature
  org.eclipse.wst.xsl.feature

--Notepad++
  it is not an specific editor but it has colour syntax and can be used for:
   -compare two files (plugin compare)
   -see tree view (plugin XML Treeview)
   -pretty XML, check syntax,etc... (plugin XML Tools)
   -find text strings and apply different colors to them (Plugin analyse)

--PSPad
  it is not an specific editor but it has colour syntax and can be used to compare two files(Tools, text Differences)


Web services
Create XSD from web:
http://www.xmlforasp.net/CodeBank/System_Xml_Schema/BuildSchema/BuildXMLSchema.aspx
XSD in Russian Doll Style or Separate Complex Types

!note.  resulting XSD is not proper to map Clarity instances, value is missing.

Flame-Ware Solutions XML-2-XSD v2.0
http://www.flame-ware.com/Products/XML-2-XSD/
!note. resulting XSD has xmlns:msdata, not proper to map Clarity

jueves, 11 de abril de 2013

Databases, csv, spreadsheets and other herbs


Data export and import between databases and spreadsheets should be an easy task, but sometimes progress in time doesn't mean advance of products or functionalities, at least it is true fact when we are speaking about Microsoft products.



For instance, a task like specify a separator symbol in Excel; different than comma was so easy in the past, but now it is nightmare.



Dbvisualizer - find drivers
Database extraction

For example SQLTools or DB visualizer

-SQLTools, fast and free tool, can work without installation but requires Oracle client installed.

Config of connections:
.\GNU\SQLTools\connections.xml
or
.\SQLTools\SharedData\connections.xml

-DB visualizer supports many database drivers (even can be detected from the computer)
Support extraction to CSV files, and select a separator symbol.

Remove Newline Character. Always checked, to avoid return carriage ia a field being used as delimiter

C:\Users\myuser\.dbvis\config70\dbvis.xml

Notes: There is an issue with  DBvisualizer/Gnumeric, default windows enconding "cp1252" from DBvis cannot be recognized by Gnumeric.
Oracle SQL Developer - Export


Squirrel SQL

C:\Users\myuser\.squirrel-sql\SQLAliases23.xml

SQL Developer (Oracle)
With many options and able to work with many connections and tables at same time.
Can export to csv, tsv, dsv, xls,xlsx (including query in a different tab)

v 4.1.3.20
Features:
CVS integrated with compare features (tab: Historial)
Result of previous queries  (results tabs)

Settings/configuration:
Herramientas,Preferencias,Editor de codigos, Canal de Linea, Mostrar números de líneas
Herramientas,Preferencias,Base de datos,NLS, formato fecha=DD/MM/RR HH24:MI:SSXFF
Herramientas,Preferencias,Base de datos,Avanzada, Tamaño de recuperación.. =50


Connections configuration:

Users\myself\AppData\Roaming\SQL Developer\system4.1.3xx\o.jdeveloper.db.connection.12.2.1.0xx\connections.xml (includes encrypted password, file with passwords will work on other system/version)


Connections, Export/import connections  (requires a password to encrypt passwords in xml file)

Install Password Plugin: Show me password
com.tomecode.showme.password.sqldeveloper.1.0.0


JDK configuration


by default ../../jdk
(if not detected there; a browse folder box will allow us to select the folder)



sqldeveloper4.x.\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf

SetJavaHome ../../jdk



Spreadsheets

Gnumeric:
is able to import csv files with a different than comma symbol,
is able to export a spreadsheet with an specific separator

There are problems importing a  csv file DBvis enconded with "cp1252"
The following combinatiosn works

DBvisualizer / Gnumeric
UTF8        /    ISO 8859-2
CP1252    /    Windows 1250

Import
Go to "Data", "Import Text File", "Text import configuration" or "Data", "Text to Columns"














Export
Save As, File type: Text (configurable)
Gnumeric Export











Ms. Excel 2003
Can import csv, and even specify delimiters but it is useless for exportation to csv as it always delimit columns using semicolon.
Theorically from Computer, regional settings, delimiter can be configured but it doesn´t work.

Ms. Excel (>2007)

Last versions removed the option Import in Menu, so now it is not very intuitive, but it can be done opening a text file with a .txt extension (don't use csv, because automatically comma will be used as delimiter)  and a wizards will be launched.
Theoretically from Computer, regional settings, delimiter can be configured but it doesn't work with Windows 7.  Probably excel is one of the best Microsoft apps but there is a complete lack of interoperability. Better to use Libreoffice


Excel import










Formating contents in Excel:

Cleaning acents:
Limited by maximun of nested functions:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,"á","a"),"é","e"),"í","i"),"ó","o"),"ú","u"),"ã","a")

Convert to Proper name and clean acents
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(PROPER(A9),"á","a"),"é","e"),"í","i"),"ó","o"),"ú","u")


Look for a string in an array a extract a column from same row
=VLOOKUP(b2,!equivalencias$1:$20,2,FALSE)
=VLOOKUP(stringtofind,in_array!$first_row:$last_row,col_to extract,FALSE)
False=match exact string

Find a string in the last characters
=IF(RIGHT(E2,10)="@domain.es","Spanish",IF(RIGHT(E2,13)="@domain.co.uk","British","none"))

Detect white spaces at beginning or end of a string
i.e if space found write the string without spaces.
=IF(OR(LEFT(A2,1)=" ",RIGHT(A2,1)=" "),TRIM(A2),"Word  is OK")


Libreoffice/OpenOffice

Import, just open a csv file and wizard automatically will open.

Export, Save as: CSV with checkbox "Edit filter settings" let us to change delimiter character or add quotation marks to fields

viernes, 15 de mayo de 2009

Basic but useful tips and tricks for software


Some tricks I want to store.

***Excel

Formulas:
SUBTOTAL(formulaID, range)
SUMIF(rangeIF,condition, rangeSUM)
CELL("row";A12)    [Locate ROW num]
ROW()   [Current row number]
INDIRECT() [Reference in text]

ADDRESS( row, column, [], [ref_style], [sheet_name] )
ref_type
3 Absolute column; relative row

ref_style
TRUE A1  Sheet1!$E$4
FALSE R1C1 style referencing R4C5



***Windows
-If you are using 2 displays as extended desktop,
how to manage, windows, placed in 2nd display if it were off, broken,...
Press Alt-Tab and select the window,  nothing will happen in 1st display
Press Win+Shift +Left or Right, depending on where we configured main display.

-Enable full Administrator account (from Windows 7)
Open a cmd as Administrator (UAC, User Account Control)
net user administrator /active:yes
net user administrador /active:yes (Windows in spanish)
logoff/change of user, logon with the new account



***Firefox
Specify an specific Java plugin version
By default Firefox detects last java version and uses it
about:config then "plugin.scan.SunJRE" change value from 1.3 (which means the minimun version to use) to 1.9 (not existing yet) (*), teh previous step forces to use plugin from firefox folder.

-Copy xxx\j2re1.x.x\bin files to C:\Program Files\Mozilla Firefox\plugins

(*)Note: Java version is quite confusing, a version 6.xx means 1.6.xx





***Eclipse

Tricks
ctrl+shift-L. Show a keyb-shortcut list

alt+arrows. Move in the editor tabs

Addons/plugins
"EclipseColorer"
to edit old microsoft .ASP files:
Install from Software update manager:
[url update manager: http://colorer.sf.net/eclipsecolorer/ ]

"Virtual Word Wrap"
Install from Software update manager:
[url update manager: http://ahtik.com/eclipse-update/ ]
right click, select "Virtual Word Wrap"


***Notepad++
Indispensable plugins:    
Compare
TextFX
Function List
Multiclipboard
Javascript formater
JSMinNPP.1.13
JSONViewer
XML tools - Pretty print(XML only with line breaks)
Npp XML Tree view
Analyse plugin (find and mark several string at same time) 


Notepad++ Syntax for a file ext

*Autocompletation for programming languages (Ctrl+Space)

*select rectangle area= alt+select area
*See 2 texts a same time(2 windows or views)
-"View","Move/clone current document", "move to another view"
-"Plugins","Compare","Compare" (big files could hang notepad++)
* CharacterMap, Edit, Character Panel
* Zoom View, Document Map
*Add a new file extension to Syntax Style  for Languages (i.e .NSQL to apply SQL)  (Setting, Style, "Language", User ext:)


**** BMC Remedy tricks ****
Searching

Search
  Classification
     Product Categorization
       tier1 xxxxx
       tier2 yyyyy
       ......
Menu: Actions, Save Search
Menu: Actions, My searches

  Assigned in the log

Search, Advanced Functions, "Advanced Search", "Search Incidents by Assignment Logs"
Assignment type: Assigned
Fill fields in Assignment and Ownership section

Historic of ticket (Assignees and notifications sent)
Functions, View Audit Form




***Internet explorer
(It isn't a free as freedom app)

IE Developer Toolbar(by Microsoft, looks like the firefox webdeveloper toolbar)