Skip to content

Magenaut

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

head

Get first row value of a given column

August 14, 2022 by Magenaut

This seems like a ridiculously easy question… but I’m not seeing the easy answer I was expecting.

Categories Python, Q&A Tags head, indexing, pandas, python Leave a comment

Making HTTP HEAD request with urllib2 from Python 2

August 13, 2022 by Magenaut

I’m trying to do a HEAD request of a page using Python 2.

Categories Python, Q&A Tags head, python, python-2.7, urllib2 Leave a comment

Head and tail in one line

August 13, 2022 by Magenaut

Is there a pythonic way to unpack a list in the first element and the “tail” in a single command?

Categories Python, Q&A Tags head, list, python, tail Leave a comment

Command to display first few and last few lines of a file

August 11, 2022 by Magenaut

I have a file with many rows, and each row has a timestamp at the starting, like

Categories Q&A, Unix & Linux Tags cat, head, logs, tail, text-processing Leave a comment

What’s the POSIX way to read an exact number of bytes from a file?

August 11, 2022 by Magenaut

Just hit this problem, and learned a lot from the chosen answer: Create random data with dd and get “partial read warning”. Is the data after the warning now really random?

Categories Q&A, Unix & Linux Tags binary, dd, head, posix Leave a comment

limit find output AND avoid signal 13

August 10, 2022 by Magenaut

I have a directory with ~1M files and need to search for particular patterns. I know how to do it for all the files:

Categories Q&A, Unix & Linux Tags find, grep, head, shell, signals Leave a comment
  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