Error on Key Bindings opening Sublime Text 2 - sublimetext2

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?

Related

How to create an extra line in csv file for indesign

I'm creating an CSV file in excel which will be used in an Indesign document.
Is there a way to create an extra line (like you do with alt+enter in excel) in your csv file?
I tried /n, /r, "text", even double ""text""
all of these didn't create an new line in Indesign for me.
Encountered the same issue many moons ago and got around it via the following:
Enter a unique symbol in the CSV where you want the line break to appear
Data Merge
Then Edit - Find/Change
Enter the unique symbol in the find field
Enter end of paragraph symbol (^p) in replace field

Can I export from a query in access to a text file without wrapping strings in quotes

I'm trying to do an export from access into a text file via a query
select CustomerName
into [Text;FMT=TabDelimited;HDR=NO;DATABASE=C:\Temp\;].CustomerList.txt
from Customer
however, every line is getting wrapped in double quotes. Is there a way to turn off the quoting (I'm only ever setting one column), or can I use a custom quote character (e.g. set it to blank)?
Method 1
You have to add manually a schema.ini in the directory you wish to export
In your case, it should contain :
TextDelimiter="none"
Method 2
Another way to do it is to use the TransferText method, with :
SpecificationName Optional Variant. A string expression that's the
name of an import or export specification you've created and saved in
the current database. For a fixed-width text file, you must either
specify an argument or use a schema.ini file, which must be stored in
the same folder as the imported, linked, or exported text file. To
create a schema file, you can use the text import/export wizard to
create the file. For delimited text files and Microsoft Word mail
merge data files, you can leave this argument blank to select the
default import/export specifications.
for your export specification, which is a oneshot operation, you will use the wizard and there you have an "advanced" button bringing a menu where you can set the text delimiter to nothing.
Google is your friend. You've got enough clues now to sort it out.

I am getting a CSV file genereated from datamapper. But the values are written into the file within double quotes. How to overcome this issue

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

How to tell what type of newline is being used in a txt file?

I have a txt file which contains quoted, comma deliminated text, and i am trying to figure out what type of newline is being used.
The reason is because i am trying to import it into mysql server, using local infile, and obviously i need to tell it the correct LINES TERMINATED BY
When i use either \n or \r\n it imports exactly half, of the records only, skipping a line each time.
But when i use \r it imports exactly double, giving me the exact number of rows as all values null, as there are records.
When i open the file in notepad, there is no space in between lines, however, if i open it in a browser, there is a blank line in between each line, as though there is a paragraph there somewhere. Like wise if i choose "open with > Excel" it does not put into columns, and has a blank line between each. The only way to open properly in excel is to use "get external data > From text" and choose comma deliminator.
I provide a couple of lines below exactly by just copying and pasting, and obviously it would be great if someone could let me know the correct settings to use for importing. But i it would be even more great, if there was a way for me to quickly know what type of newline any particular file is using (there is also a blank line at the very end of the file as per the other rows).
"Item No.","Description","Description 2","Customers Price","Home stock","Brand Name","Expected date for delivery","Item Group No.","Item Group Name","Item Product Link (Web)","Item Picture Link (Web)","EAN/UPC","Weight","UNSPSC code","Product type code","Warranty"
"/5PL0006","Drum Unit","DK-23","127.00","32","Kyocera","04/11/2013","800002","Drums","http://uk.product.com/product.aspx?id=%2f5PL0006","http://s.product.eu/products/2_PICTURE-TAKEN.JPG","5711045360824","0.30","44103109","","3M"
"/DK24","DK-24 Drum Unit FS-3750","","119.00","8","Dell","08/11/2013","800002","Drums","http://uk.product.com/product.aspx?id=%2fDK24","http://s.product.eu/products/2_PICTURE-TAKEN.JPG","5711045360718","0.20","44103109","","3M"

Error opening sublimetext2

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.