Optimize your URL for search engine

How to do it?

If possible, include keyword in URL but don’t stuff unnecessarily. It should make sense.
Make it short as possible. It is said, 50 to 60 characters is good. If it crosses more than 100, probably you should re-write it again.
It would be good if your page title and URL matches but in doing so, don’t write unclear URL’s.


forms – What is the best practise for a Search button state – should we always keep search button active or make it active after user inputs?

If a user can start search without any text input, they need to receive some meaningful results. It can actually be a feature: maybe your user doesn’t know what to type in, but you think you have something to offer them anyway. Show them your hot offers, suggest something based on your knowledge about user.

There was a conception of “zen search” when you don’t type anything, but get some random results after clicking [Search].

This is not a direct answer to your question, but maybe it can solve your problem. Your button can be always available and always working. No need to disable it. Just show people something good.

How to search for text in a specific file type/extension in vim with FZF and Ag?

I have recently started using vim and i have been playing around with it for sometime now.

i use FZF with Ag to get searching files and searching in files done. but i am not able to search in particular file types for example

i want to search "getUserInfo" only in .js files.

here are my configs


[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='ag -g ""'


Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'

i simply use :Ag in vim to search in entire directory

sharepoint online – Search Results page – change URL and redirect

SharePoint Online/Office 365 – Classic

Is there a way to modify the URLs of the search results? The URLs are all pointing to ‘DispForm.aspx‘ but I need to redirect this and/or change the URL to something else.

For example, in the following search results, if someone clicks the name (1) — it should be redirected to another. Same with the URL displayed at the bottom (2)– it should be replaced with the new URL.
enter image description here

All Path from this list:


Should be replaced/redirected to a custom page, which uses REST API to pull the data from the appropriate list based on the Id param:


The ?Id= on each should remain the same:



I found another post but it was 4 years ago. Before I go through the suggested solution, I just want to see if there are any current methods.

Notepad++ How to put split HTML tags onto one line using a Find/Replace Regex search?

Suppose I have a document containing this:

<div data-test-id="comment">
  <div class="class1 
    <p class="class1">
        Lorem Ipsum

The second and third lines have an HTML tag that is split between two lines. I haven’t been able to figure out how to bring them onto one line like this:

<div data-test-id="comment">
  <div class="class1 class2 class3">
    <p class="class1">
        Lorem Ipsum

Whenever I try to use the “?” non-greedy modifier, it seems to ignore it.

search – How to create a dataset for Deep Learning project?

I am new to deep learning. I have taken a few courses on the same.
I have a doubt in order to create a dataset, the examples I have seen so far, many of the researchers have used H5py/HDF5 file to create the datasets. Can anyone suggest to me how should I proceed? Can we use the CSV file instead?
E.g. If I want to create a dataset for the features. Should I create 2 datasets for the training and test sets? Or Within a single dataset, I should create 2 different ones?

“I have read that the Keras can simply get CSV into datasets.” Should I use this approach?

approximation – uncapacitated facility location problem using local search

I’m studying about UFLP using the book The Design of Approximation Algorithms Ch 9 starting page 233 (there is an electronic free edition), I ran into some unclear steps in the book and need some help with it.

In few words the UFLF deals with finding a subset of facilities from a given set of potential facility locations to meet the demands of all the customers such that the sum of the opening cost for each of the opened facilities and the service cost (or connection cost) is minimized

We can do the following local steps on current solution
1. We can open one additional facility an “add” move
2. We can close one facility that is currently open a “delete” move
3. We can do both of these simultaneously a “swap” move

Let’s assume we have optimal solution and let S* be it’s open
enter image description here

What I need help with :

enter image description here

Proof from the book page 235 :
enter image description here

Not clear what is “open the additional facility i*”
isn’t i* in S* already open ? where does this facility open ? in S ? if so why its marked with * isn’t it for the optimal solution ?

I also need help with :

proof from page 237

enter image description here

enter image description here
enter image description here

If the function returns the nearest facility in S, what is the meaning of choosing i’ ? isn’t it just one facility that is the closest in S ? I mean isn’t R of size 1 ? (line 2)

There is a typo and it’s not lemma 9.3 but lemma 9.1 in the second par, my second question here is also similar to the first question what is i* here ?

Any clarification will be happily welcome, thank you

How can one customise library search results from the header search box?

As announced by Microsoft and discussed in this answer, the search box in the command bar has been removed from document libraries, leaving the header bar as the only place with a search box.

SharePoint library screenshot

When launching a search from this bar, the search results appear in the same view (rather than the Microsoft Search view, which only appears if the “Expand search to all items in this site” link at the bottom is clicked”). The page that’s opened appears to be the view with a query string appended – e.g. https://sitename.sharepoint.com/sites/groupname/Test/Forms/AllItems.aspx?view=7&q=searchterm

SharePoint library search results

I’d like to customise the results to promote particular content types.

I’ve tried so far:

  • adding a new result source and setting it as the default in the Microsoft 365 Admin Center
  • adding a query rule in the site settings

Nothing has had any impact so far on the results that appear. What settings need to be altered to have an effect on these results?

graphics – How do I tell Ubuntu to search a different path for drivers?

Trying to get Blender/Steam to render with my AMD GPU, have finally gotten it to install the amdgpu-pro drivers so it’s recognized inside of Blender/Steam.

But it’s looking in the wrong path for my drivers;


libGL error: MESA-LOADER: failed to open radeonsi (search paths /snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi (search paths /snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  46
  Current serial number in output stream:  45

It looks like it’s looking in /snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri for my drivers. But if I run the following command;

locate swrast


It seems like it should be looking in /usr/lib/x86_64-linux-gnu/dri

Also dpkg -l | grep radeonsi returns nothing.

How do I tell my system to look in the correct directory?