Exclude GET Parameters from indexed_search results - typo3

I would like to exlude some GET Parameters of the search results of indexed_search and didn't find a configuration for this, yet. Can someone help me out?
Example:
/test.html?foo=bar
Should result in just:
/test.html

Fixed the problem by adding those parameters to [FE][cHashExcludedParameters] in the install tool.

Related

How underscored directories are filtered in Jekyll/Webrick?

Update: Check my answer below.
I just realized that in Jekyll Webrick server, directories starting with underscores(_includes, _layouts etc.) can't be accessed and are not listed when jekyll serve --show-dir-listing option is turned on. I wonder how Jekyll does that, as Webricks shows underscored directories on default. I did a quick search in the source code, I checked lib/jekyll/commands/serve.rb and similar files, but could not find the exact reason. It might be something related to fancy_listing?
Example:
It is there!:
Update: I found the relevant code in jekyll/reader.rb, which has a filter function and it is defined in jekyll/entry_filter.rb! :) Here is the code:
First a regex is defined:
SPECIAL_LEADING_CHAR_REGEX = %r!\A#{Regexp.union([".", "_", "#", "~"])}!o.freeze
Then special?function is defined:
def special?(entry)
SPECIAL_LEADING_CHAR_REGEX.match?(entry) ||
SPECIAL_LEADING_CHAR_REGEX.match?(File.basename(entry))
end
And special?function is used in the filter function to detect and filter those files matching the regex.
And the Readerclass is using this filtering function in various places.
To be honest, I still did not get how jekyll bring those things together but I think I'll try to figure them out myself.

thumbor // url syntax to crop and apply filter at the same time

For the ones that uses it, if it is ever possible
Looking though the docs, can't find a clue about building an url that would crop the image and apply a filter at the same time
Thanks for the help
Sure thing, the syntax would be like this:
http://<your_thumbor_server>/unsafe/<crop>/filters:<some_filter>/<image_source_url>
Which might look something like this:
http://thumborhost.com/unsafe/200x0:600x800/filters:format(webp)/http://imagehost.com/path/to/source.jpg
The full url syntax as stated by the Thumbor docs is:
http://thumbor-server/hmac/trim/AxB:CxD/fit-in/-Ex-F/HALIGN/VALIGN/smart/filters:FILTERNAME(ARGUMENT):FILTERNAME(ARGUMENT)/image-uri
Docs: http://thumbor.readthedocs.org/en/latest/usage.html

ImageJ - Accessing the results log

This might be a very simple question, but I am writing a little Macro for ImageJ and I cannot access the values in the Results log. Here is the code that does NOT work:
selectWindow("Results");
test=getResult("channel",0);
print("test");
Any tips on how this could be done? Thanks.
You were correct in pointing out that it might be due to a plugin not using the standard results table of ImageJ. The Color_Histogram plugin uses a non-standard way to report the results.
I filed a pull request on github.com that fixes this. When this pull request is merged and uploaded to the Fiji updater, the following macro code works as expected after running Analyze > Color Histogram:
test1 = getResultString("channel", 0);
print(test1);
test2 = getResult("mean", 0);
print(test2);

cfscript Code Assist in CFBuilder

I'm increasingly using cfscript, and like it where appropriately used.
One problem is that there doesn't appear to be any code assist for cfscript in CF Builder, so I find myself writing the tag of a function to leverage the code Assist, then converting to cfscript (which is silly).
For example:
addParam() is the cfscript equivalent of <cfqueryparam >. I get code assist when writing the the tag version, but not the script equivalent.
Does anyone know if there is a code assist library available for cfscript in cfBuilder? Or is this just a downside of working with cfscript?
Many Thanks in advance!
Jason
Your example is not using native CFScript, it's using the hack-solution Adobe provided for some shortcomings of CFScript's coverage of CF tags, which are implemented as a bunch of CFCs in the custom tags dir of your install. This stuff is not representative of CFML & its CFScript support as a whole.
I find that CFB gives hinting for most native functionality... is this not the case for you? What if you try listAppend() for example? Do you get code-assist for that?
UPDATE
I wonder if you get a warning in CFB on your line equivalent to this:
o = new Query();
? I do, by default. I have to make a link to the CustomTags/com dir, and then use this syntax:
o = new com.adobe.Query();
Then I don't get a warning, and indeed I get the code assist you're expecting. I cannot get it to give me hinting on just the non-qualified path to Query.cfc though.
Not ideal. Or maybe I'm missing something, too.

How to give a suggestion from the sphinx index?

I wonder if there is a way to give a suggestion from the sphinx index.
for instance,
when I search 'sadfasasas' on google, I get 6 results.
and it said.' Do you mean "sasasasas".
when I search by 'sasasasas', I get 289,000 results.
How should I do to implement this feature? (Let's say the two keywords are all right
spelling. and I want to give the suggestion 'sasasasas' just because it's seems like
'sadfasasas', and it can find many results by sphinx ).
There are script, config, readme in sphinx/misc/suggest folder. You could try suggestion service out of the box.