FQL query to match exactly several phrases with “or” mode

Could someone help me construct the query part of refinementfilters or say if it’s possible to achieve?

The property is of the type multiline text (OWSMTXT) and I need to match several phrases exactly with “or” mode. For example, the document property looks like these in SharePoint: enter image description here

I need the query to match this groups in “or” mode to return this document if it has at least one of the groups assigned, but not to return it if the search contains part of the group name. E.g., the doc with groups on the picture above should be returned with the search for “extranSG_ProdPol-Commissie_Productbeleid-Info”, but not with the search for “Commissie”. If this makes sense for this type of field.

At the moment my fql looks like this for example:

SecurityGroupsSHP:or("All Users","Extranet DMS documents uploaders","MS Dynamics365 users","SafeWell","fedusers","SQL_users","Sharepoint_Default_Members","Revue de presse","EcoPol") 

And the results are returned even if “EcoPol” is part of the word. I need it to return if “EcoPol” is a full word only.

Thanks!

Apache RewriteMap DB to match against list on RewriteCond

Do you know how to check url exist in some external file .

Just checking given request URI is in the list of vanity urls.

Vanity url’s file present at /mnt/var/www/html/vanity_urls.txt

 RewriteMap vanityurls txt:/mnt/var/www/html/vanity_urls.txt RewriteCond $  {vanityurls:%{REQUEST_URI}|NONE} ^(.+)$   RewriteCond $  {vanityurls:$  1} >"" RewriteRule ^/(.*)$   /$  1 [PT,L] 

Map filename contains same key value pair just for loading purpose to map . My use case is simply to check given request url is a vanity url or not.

Example – /clinicaltrials /clinicaltrials

Using FILTER or IMPORTRANGE to bring in and filter data from another spreadsheet with a keyword instead of exact match

I would like to use the importrange formula to import data from “spreadsheetA” that contains “keyword” in columnD.

I can get importrange to work but I cannot figure out how to filter it so it will only import if a keyword is found in column d.

Custom router gives me “Front controller reached 100 router match iterations” when matches 404

I created a custom router

this is my di.xml

<?xml version="1.0" encoding="UTF-8"?> <!-- /**  * Copyright © 2016 Magento. All rights reserved.  * See COPYING.txt for license details.  */ --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">     <type name="Magento\Framework\App\RouterList">         <arguments>             <argument name="routerList" xsi:type="array">                 <item name="default" xsi:type="array">                     <item name="class" xsi:type="string">Vendor\Custom\Controller\Router</item>                     <item name="disable" xsi:type="boolean">false</item>                     <item name="sortOrder" xsi:type="string">40</item>                 </item>             </argument>         </arguments>     </type> </config> 

This is the block match function:

public function match(\Magento\Framework\App\RequestInterface $  request) {         $  identifier = trim($  request->getPathInfo(), '/');          if(strpos($  identifier, 'search') !== false) {              $  request->setModuleName('catalogsearch')->setControllerName('result')->setActionName('index');         } else {             //There is no match             return;         }          /*          * We have match and now we will forward action          */         return $  this->actionFactory->create(                         'Magento\Framework\App\Action\Forward', ['request' => $  request]         );     } 

Everything is fine till I got an error “Front controller reached 100 router match iterations” everytime I go to a 404 page.

Custom router gives me “Front controller reached 100 router match iterations” when matches 404

I created a custom router

this is my di.xml

<?xml version="1.0" encoding="UTF-8"?> <!-- /**  * Copyright © 2016 Magento. All rights reserved.  * See COPYING.txt for license details.  */ --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">     <type name="Magento\Framework\App\RouterList">         <arguments>             <argument name="routerList" xsi:type="array">                 <item name="default" xsi:type="array">                     <item name="class" xsi:type="string">Vendor\Custom\Controller\Router</item>                     <item name="disable" xsi:type="boolean">false</item>                     <item name="sortOrder" xsi:type="string">40</item>                 </item>             </argument>         </arguments>     </type> </config> 

This is the block match function:

public function match(\Magento\Framework\App\RequestInterface $  request) {         $  identifier = trim($  request->getPathInfo(), '/');          if(strpos($  identifier, 'search') !== false) {              $  request->setModuleName('catalogsearch')->setControllerName('result')->setActionName('index');         } else {             //There is no match             return;         }          /*          * We have match and now we will forward action          */         return $  this->actionFactory->create(                         'Magento\Framework\App\Action\Forward', ['request' => $  request]         );     } 

Everything is fine till I got an error “Front controller reached 100 router match iterations” everytime I go to a 404 page.

Rutas ‘Cannot Match’ con Angular 6

Estoy tratando de armar una pagina, para no hacerlo muy complicado voy a decir que tengo tres componentes un menu (mainComponent) y otros dos componentes llamados bajo(bajoComponent) y guitarras(guitarraComponent).

Quiero que el menu con dos botones para ir a los componentes bajo y guitarras, desaparezca. No quiero que el menu me funcione como un navbar que siempre esta presente, quiero que desaparezca cuando me muevo al componente guitarra o bajo.

Yo tengo mi archivo (que me creo angular) app-routing-module.ts con este contenido:

import { MainComponent } from './components/main/main.component'; import { MenuBajoComponent } from './components/menu-bajo/menu-bajo.component'; import { MenuGuitarraComponent } from './components/menu-guitarra/menu-guitarra.component';  const routes: Routes = [   {   path:'menu',   component: MainComponent,   },   {     path:'bajo',     component: MenuBajoComponent   },   {     path:'guitarra',     component: MenuGuitarraComponent   } ]; 

Asi estoy usando las rutas en el main component:

<div>     <li routerLinkActive="active">         <a routerLink="menubajo">Bajo</a>     </li>     <li routerLinkActive="active">         <a routerLink="menuguitarra">Guitarra</a>     </li> </div> 

Y el app.component.html esta simplemente con el router-outlet

<router-outlet></router-outlet> 

Cuando yo estoy en /menu funciona bien, pero cuando me muevo a uno de los componentes guitarra o bajo me tira este error

core.js:15724 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'menu/bajo' Error: Cannot match any routes. URL Segment: 'menu/bajo' 

Function unable to match GLDEBUGPROC, only on MSVC (uses same glew version 2.1.0, on linux with gcc/clang it’s fine)

I have the following function I’ve defined that i use with glDebugCallback, which works perfectly fine with GCC and Clang on Linux. However on Windows, the following code does not want to register as a debug callback for OpenGL:

inline void messageCallback(GLenum source, GLenum type, GLuint id,                              GLenum severity, GLsizei length, const GLchar* message,                              const void* userParam) {     // ... } 

and then I set it up with

glDebugMessageCallback(messageCallback, nullptr); 

After looking up what the glew headers have, it shows:

typedef void (GLAPIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity,                                         GLsizei length, const GLchar* message,                                         const void* userParam); 

but I’m getting an error message that says

Error (active) E0167 argument of type “void (*)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam)” is incompatible with parameter of type “GLDEBUGPROC”

I’ve been trying to figure out why it fails only with MSVC… but I’m quite stuck since it looks like it matches verbatim. The fact it compiles on GCC/Clang is also a bit confusing as well, I’m not sure what I’m missing or why this is happening.

Note that the inline keyword does not affect the result, I tried it without the keyword and the same problem is there. I just kept it there because I wanted to copy and paste the exact thing.

This is within Visual Studio 2017, using C++17, glew 2.1.0, modern Opengl, etc. My OpenGL version is 4.6 as well.

How to match a string with regex where specific character appears at least once so that the first neighbours characters are different from it?

I’m searching for the shortest regex that can matches a string described in a question. I’m also interested in solution where regex matches string where specific character never appears surounded with same character.

This is currently my solution (in this case specific charcter is g):

^.*[^g]{1}g[^g]{1}.*$  |^g[^g]{1}.*$  |^.*[^g]{1}g$  |^g$  " 

I expect that regex matches strings like:aaagaa, g, gdddg, agaagga ,but doesn’t matches: aaagg,ggaagg,gg, ggg.