Sublime Text 2 when trying to change settings - sublimetext2

i tried to change some of settings in sublime text 2 from Preferences >> Settings - Default | adding a new settings from Settings - User, when i tried to change a value and save it a message appearing to me and its content is ## Error typing to parse settings: Expected value in Packages/U.sser/Preferences.sublime-settings:4:1 ##

One of the settings you're trying to add in the User settings file is missing a value.
The User settings file should be in the format:
{
"settingName": "textValue",
"anotherSetting": numberValue
}
etc
If one of the values is missing you get that error.

Related

Taleo extract process add blank field in output CSV file

I am using Taleo Connect Client to export data from Taleo. I encountered two questions:
How can I add blank columns to an output CSV file?
For example, try to add ColumnBlank1 between Column_FirstName and Column_LastName.
Column_FirstName|ColumnBlank1|Column_LastName
John||Lee
Adam||Jackson
How can I set default value like "N" for one field?
DBaluke Huang's answer was correct, but he left out some details. Adding the full solution for others who might need this too.
To export a blank or fixed string value in a column using TCC (Taleo Connect client) do the following:
Open your Export
Click the projections tab
Click the add button
Click Projection Function
Choose the Replace Function
Click ok
In the First Parameter Section: In the Value box, add any string field
from your list on the entity tab. The Data Type should be Field.
In the Second Parameter Section, In the Value box, add the same field
from Parameter 1 value box. The Data Type should be Field.
In the Third Parameter section, In the value box, enter no value for
blank or enter the fixed string you want in all records.
Then change the data type to string in this section.
For those unfamiliar with the replace function you are looking for the string Parameter1.Value in Parameter2.value and then replacing all instances where the string is found with parameter3.value
You can export a blank field with <quer:string/>.
<quer:projection alias="Blank" xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:string/>
</quer:projection>
Steps
Open your export in Taleo Connect Client.
Open the General tab and set the Export mode to "CSV-report".
Open the Projections tab.
Click Add.
Select Add a complex projection and click OK.
Under Complex projection, enter the following:
<quer:projection alias="Blank" xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:string/>
</quer:projection>
Save your changes.
Example:
<quer:query productCode="RC1704" model="http://www.taleo.com/ws/tee800/2009/01" projectedClass="Candidate" locale="en" mode="CSV" csvheader="true" csvdelimiter="|" largegraph="true" preventDuplicates="false" xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:subQueries/>
<quer:projections>
<quer:projection>
<quer:field path="FirstName"/>
</quer:projection>
<quer:projection alias="Blank">
<quer:string/>
</quer:projection>
<quer:projection>
<quer:field path="LastName"/>
</quer:projection>
</quer:projections>
<quer:projectionFilterings/>
<quer:filterings/>
<quer:sortings/>
<quer:sortingFilterings/>
<quer:groupings/>
<quer:joinings/>
</quer:query>
Results:
FirstName|Blank|LastName
John||Lee
Adam||Jackson
Jane||Doe
Notes:
If you get a SAX parsing error when running the export, make sure your Export mode is set to "CSV-report". (Appears as mode="CSV" in source)
When adding a complex projection in TCC, you must include xmlns:quer="http://www.taleo.com/ws/integration/query", or else TCC will call your source "invalid". However, it is not required when editing your export's source directly outside of TCC.
I resolved the issue by:
Add a function projection in Projections. Set your Alias. Set First parameter value as whatever field that available. Set the second parameter's value as same as the first parameter. Change Third parameter's value as "blank" and set Data type as String.
Same step as the first question, and set Change Third parameter's value as "N".

How to search multiple files of specific file type within Sublime Text 3

I would like to search for a string within all *.php files in a certain directory (and its sub-directories) using the Shift + Ctrl + F search dialog.
My guess was to set the search location to:
c:\example\*.php
but that gives an error:
Unable to open c:\example\*.php
Is there a way to perform the search I'm hoping to perform?
C:\example,*.php
In the Where: click ..., select Add Folder, after that select Add Include Filter

Search file names that contain a string

I have a module named flume and file names that include that module name, like flumeIndexController, flumePlugin etc. Now I've decided to rename the module to oozie so I want to have these files renamed to include new module's name like oozieIndexController, ooziePlugin.
How can I get a list of files than include the flume string (in file name) possibly using built-in search or through any other option?
Navigate | File... Ctrl + Shift + N using Default keymap.
You can narrow your search results (just specify parts of the path, e.g. /abc/ and it will show results in a folders that match such pattern/abbreviation). Alternatively -- just do a post-filtering by excluding unwanted results (see below).
This window has only 2 buttons -- one of which will display results in a more traditional and permanent "Search results" tool window (the one that you see when you do Find in Path and alike).

Why am I getting [BLOB - 1B] in mysql rows? [duplicate]

I was wondering why in phpMyAdmin I see something like this:
**Edit Inline Edit Copy Delete [BLOB - 7B] [BLOB - 32B] [BLOB - 13B] [BLOB - 16B]**
Why can't I see the actual text? When I click [BLOB-/nx/], I just get prompted to download a .BIN file.
I tried adding:
$cfg['ShowBlob'] = true;
To phpMYAdmin/config.inc.php, but it didn't work. I have also tried adding to the URL &display_blob=true.
I am trying to do this on localhost with XAMPP by the way.
My version of phpMyAdmin is 3.4.5, if it's needed.
phpMyAdmin has an "+option" link on top of each result set. Click it, and you will see the option to display blob contents.
I should add: some phpMyAdmin versions have a bug where the "+option" link does not show up on the first load of the results, you need to click [ Refresh ] to make it appear.
In PHPMyAdmin, there is a +Options above the results table. To show the blob contents:
Click +Options
Then click Show Blob contents and press Go to save.
Then, in order to enable the Blob columns to be editable:
Go to Settings > Main Panel > Edit Mode
In the row Protect Binary Columns, click on the right dropdown menu and select no.
Press Apply to save.

edit phpmyadmin blob field

Huh.
In the same vein as Viewing Content Of Blob In phpMyAdmin, i have a blob.
And just like in the screenshot of the given url, it says "blob". Thanks, phpmyadmin! You're the best!
Unlike the chap who asked the question above, though, I really want to edit the blob values, and then save them. So, if my blob has, as its text "ima blob yo" - and I can see that text, thanks to the solution given above - how do i edit that to "i am a blob, you".
I don't particularly want to upload a text file each time i edit a blob, that's totes bogue. Just want to edit it, as i would a text field.
cheers!
Ah. the phpmyadmin site, there this page: http://www.phpmyadmin.net/documentation/#faq1_31
$cfg['ProtectBinary'] boolean or string
Defines whether BLOB or BINARY columns are protected from editing when browsing a table's content. Valid values are:
* FALSE to allow editing of all columns;
* 'blob' to allow editing of all columns except BLOBS;
* 'all' to disallow editing of all BINARY or BLOB columns.
Ok, so that details how to allow me to edit my blobs.
I made the change
$cfg['ProtectBinary'] = FALSE;
$cfg['ShowBlob'] = TRUE;
and put these two as the last lines in my config.inc.php file, which, because i'm using UBUNTU and used the auto install sudo apt-get install phpmyadmin, was at /etc/phpmyadmin/
And everything worked, kinda. I can now edit my blobs... with the limitation that phpmyadmin shows the current contents of the blob in "blob-view", which is a whole bunch of numbers or some nonsense.
Simple solution i found was to:
write over the text. Simple editing isn't really an option, but luckily i didn't need to edit, just add in new data.
change the "function" option from ... i cannot remember what it was, but it was something crazy... to just "blank". That's the same kind of blank as the function option defaults for other values - ints etc
cheers,
andrew
PS that
$cfg['ShowBlob'] = TRUE;
was from the given url in the question i linked to. The poster states it isn't effective in phpmyadmin, but i only downloaded using a latest sudo-get a few months back, so it still works. Actually, i needed to put that value in to get editing to work.
I'm using phpMyAdmin v4.6.4. I find an option on GUI to set this config.
You can click on Home button. Then click on Panel Appearance settings.
In this screen, click on Main panel tab, then Edit mode tab.
After that, select 'no' in Protect binary columns dropdown.
Edit mode tab
If your BLOB field is really only text, then you might consider converting your BLOB field to a TEXT field (there should be no loss of data in the process). TEXT fields are viewable/editable directly from phpMyAdmin.