When I open sublimetext2 I get the following 2 messages:
Error trying to parse settings:
No data in ~/Library/Application Support/Sublime Text 2/Packages/User/JSON.sublime-settings:1:1
Error trying to parse settings:
Expected value in ~/Library/Application Support/Sublime Text 2/Packages/User/SFTP.sublime-settings:1:1
The JSON file does not exist, while the SFTP does. How do I create the file, or where can I find it? Saw a similar question on here, but they had the file in their question, I do not.
Appreciate any help.
Add this code to your Sublime Text > Preferences > Settings - More > Syntax Specific - User
{
"draw_centered": true, // Centers the column in the window
"draw_indent_guides": false,
"font_size": 12,
"trim_trailing_white_space_on_save": false,
"word_wrap": true,
"wrap_width": 80 // Sets the # of characters per line }
Thanks - if possible then set the values according to it.
Related
I have a flat file with almost 300 columns that needs to be imported in SQL server. It seems that if I use SSIS it can't read the csv file if I mark it as unicode. It seems that it looses ability to recognize cr and lf.
The specified header or data row delimiter "{CR}{LF}" is not found
after scanning 524288 bytes of the file "...\contact.csv". Do you want
to continue scanning this file?
what am I doing wrong?
EDIT
Based on comments, it seems I need to clarify - yes I did check that {CR}{LF} is present at the end of each line, and that it's set as a row delimiter in the connector.
The problem is with the "unicode" checkbox. If I uncheck it, the file is read fine. If I check it, it doesn't find {CR}{LF} any more.
It also doesn't matter what encoding I set on the file as that only effects the default "code page" selection.
ok, after a while I found an answer.
The unicode checkbox is still not working, but if you can go to the advanced section of the flat file manager and set your string columns to unicode. It's kind of tedious, and I don't know what I would do if I had 200 columns, but for my small data set it worked.
I want to import a XMl file into phpmyadmin.
I have a XML file with 75000 lines so inserting individually the values is a huge no, when I try to import the file as XMl to the database it gave the following message:
Import has been successfully finished, 0 queries executed.
The following structures have either been created or altered. Here you can:
View a structure's contents by clicking on its name.
Change any of its settings by clicking the corresponding "Options" link.
Edit structure by following the "Structure" link.
wp_db (Options)
(xmlfile.xml)
-----------------------------------------------------------------------
Notice in ./libraries/plugins/import/ImportXml.php#158
Undefined index: pma
Backtrace
./import.php#652: PMA\libraries\plugins\import\ImportXml->doImport(array)
The phpmyadmin is behind MAMP, a short version of the xml file looks like this:
<Report>
<Row1>
<Reference>123</Reference>
<Nature>Outside</Nature>
<Disponibility>Full</Disponibility>
<State>In progress</State>
<Person>Jon</Person>
<Seller></Seller>
</Row1>
<Row2>
<Reference>123</Reference>
<Nature>Outside</Nature>
<Disponibility>Full</Disponibility>
<State>In progress</State>
<Person>Jon</Person>
<Seller></Seller>
</Row2>
</Report>
If it's not possible at least what is the easiest way to do it?
Thanks!
phpMyAdmin supports importing XML only if it follows a special format. You can see the exact format by exporting in phpMyAdmin a table in XML. You would need to programmatically modify your existing file to adapt to the supported format.
Using the Highcharts editor demo,
http://editor.highcharts.com/full.html
To get some sample data, for the first step in the wizard, click 'sample data' and 'categorised, 4 data columns' (the first option).
Then replace
Jan,7,-0.2,-0.9,3.9
with
"A,B",7,-0.2,-0.9,3.9
and press import. Highcharts complains with error 14:
http://www.highcharts.com/errors/14
It looks like the CSV format isn't fully supported, i.e. commas inside values supported by quotes. Are there any plans to allow that?
I created an issue on Highcharts repository:
https://github.com/highcharts/highcharts/issues/6503
As an alternative you can use different delimeter:
http://api.highcharts.com/highcharts/data.itemDelimiter
The output of my datamapper is a csv file. And the output looks like the below one.
For eg:
"1","10"
"3","40"
But my requirement"
1,10
3,40
What configuration should i do to get the o/p as required. Pls suggest!!!
Click on the options circled in red on the destination profile and uncheck the check box "Quote Strings" in the pop up that comes there after .
Some times the CSV file has this Quotes by default
I have the same settings for Sublime Text 2 on my two machines; anyway, on one I get this error every time I open it:
Error trying to parse file: Expected value in ~/Library/Application Support/Sublime Text 2/Packages/User/Default (OSX).sublime-keymap:2:1
I don't have anything in my User Key Bindings though.
Any ideas?