Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

search

Binary search in a sorted text file

August 8, 2022 by Magenaut

I have a big sorted file with billions of lines of variable lengths. Given a new line I would like to know which byte number it would get if it had been included in the sorted file.

Categories Q&A, Unix & Linux Tags search, text-processing Leave a comment

Where can I find Software for Unix/Linux that does X?

August 8, 2022 by Magenaut

I’m looking for a program that does X and runs on unix (or at least on my particular unix system). Where can I look? Is there a more efficient way than a generic web search?

Categories Q&A, Unix & Linux Tags search, software-installation, software-rec Leave a comment

Full text search for man pages

August 8, 2022 by Magenaut

apropos works great for searching manual page names and descriptions. Is there a similar command for searching the entire contents of the manual pages?

Categories Q&A, Unix & Linux Tags man, search Leave a comment

Limit grep context to N characters on line

August 7, 2022 by Magenaut

I have to grep through some JSON files in which the line lengths exceed a few thousand characters. How can I limit grep to display context up to N characters to the left and right of the match? Any tool other than grep would be fine as well, so long as it available in common Linux packages.

Categories Q&A, Unix & Linux Tags grep, json, search Leave a comment

Open source duplicate image finder for Linux?

August 7, 2022 by Magenaut

Is there a free and open source duplicate image finder for Linux based systems?

Categories Q&A, Unix & Linux Tags duplicate, image-manipulation, images, search Leave a comment

Vim :s replace first N < g occurrences on a line

August 7, 2022 by Magenaut

In vim, I sometimes have occasion to replace the first few occurrences of a match on a line, but not every one like g would. e.g.:

Categories Q&A, Unix & Linux Tags replace, search, vim Leave a comment

WordPress custom search form with pre_get_posts not work

August 6, 2022 by Magenaut

I am designing my first theme and I am stuck on the search functionalities of a Custom Post Type.
I created a CPT ‘movies’ and created the archive page with the ‘archive-movies.php’ file in the root of the theme folder. Inside I created a basic WP_Query

Categories Q&A, Wordpress Tags pre-get-posts, search, wp-query Leave a comment

Add dynamic search to paginated WP_Query

August 6, 2022 by Magenaut

I am currently displaying a list of pages with “words” (English learning site) using WP_Query.
I want to add a search field at the top of the list, but in a way that would dynamically (is it AJAX?) modify the list below to display only the records that match with search field.

Categories Q&A, Wordpress Tags search, wp-query Leave a comment

input data and output table

August 6, 2022 by Magenaut

I need a solution to do this with WP. In admin: I need to input data into database (name, surname, certification, level, date of issue). In Frontend: client can use a specific search field to search within the inserted data and get a table with the results. (name, surname, certification, level, date of issue). Any … Read more

Categories Q&A, Wordpress Tags database, input, search, table Leave a comment

How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?

August 6, 2022 by Magenaut

While searching with the argument s it adds additional value before and after each Like query

Categories Q&A, Wordpress Tags mysql, query, search, wp-query Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page9 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress