Skip to content

Magenaut

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

linux

How to get Linux console window width in Python

August 20, 2022 by Magenaut

Is there a way in python to programmatically determine the width of the console? I mean the number of characters that fits in one line without wrapping, not the pixel width of the window.

Categories Python, Q&A Tags console, linux, python, terminal, width Leave a comment

Take a screenshot via a Python script on Linux

August 20, 2022 by Magenaut

I want to take a screenshot via a python script and unobtrusively save it.

Categories Python, Q&A Tags linux, python, screenshot Leave a comment

Why does multiprocessing use only a single core after I import numpy?

August 20, 2022 by Magenaut

I am not sure whether this counts more as an OS issue, but I thought I would ask here in case anyone has some insight from the Python end of things.

Categories Python, Q&A Tags blas, linux, multiprocessing, numpy, python Leave a comment

Two versions of python on linux. how to make 2.7 the default

August 20, 2022 by Magenaut

I’ve got two versions of python on my linuxbox:

Categories Python, Q&A Tags centos, linux, python Leave a comment

Install tkinter for Python

August 20, 2022 by Magenaut

I am trying to import Tkinter. However, I get an error stating that Tkinter has not been installed:

Categories Python, Q&A Tags installation, linux, python, tkinter Leave a comment

extracting text from MS word files in python

August 20, 2022 by Magenaut

for working with MS word files in python, there is python win32 extensions, which can be used in windows. How do I do the same in linux?
Is there any library?

Categories Python, Q&A Tags linux, ms-word, python Leave a comment

Execute Python script via crontab

August 20, 2022 by Magenaut

I’m trying to execute a Python script using the Linux crontab. I want to run this script every 10 minutes.

Categories Python, Q&A Tags cron, linux, python Leave a comment

using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”

August 20, 2022 by Magenaut

I have installed pip for python 3.6 on Ubuntu 14. After I run

Categories Python, Q&A Tags linux, pip, python, ubuntu Leave a comment

open() in Python does not create a file if it doesn’t exist

August 19, 2022 by Magenaut

What is the best way to open a file as read/write if it exists, or if it does not, then create it and open it as read/write? From what I read, file = open('myfile.dat', 'rw') should do this, right?

Categories Python, Q&A Tags file-io, file-permissions, linux, python Leave a comment

Pycharm and sys.argv arguments

August 19, 2022 by Magenaut

I am trying to debug a script which takes command line arguments as an input. Arguments are text files in the same directory. Script gets file names from sys.argv list. My problem is I cannot launch the script with arguments in pycharm.

Categories Python, Q&A Tags linux, pycharm, python Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page63 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