Skip to content

Magenaut

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

printing

How to apply __str__ function when printing a list of objects in Python

August 13, 2022 by Magenaut

Well this interactive python console snippet will tell everything:

Categories Python, Q&A Tags list, object, printing, python, string Leave a comment

How to print a list more nicely?

August 12, 2022 by Magenaut

This is similar to How to print a list in Python “nicely”, but I would like to print the list even more nicely — without the brackets and apostrophes and commas, and even better in columns.

Categories Python, Q&A Tags printing, python Leave a comment

Print chosen worksheets in excel files to pdf in python

August 11, 2022 by Magenaut

I need to write a python script to read excel files, find each worksheet and then print these to pdf with the standard formating defined in the excel.

Categories Python, Q&A Tags excel, export, pdf, printing, python Leave a comment

Print all items in a list with a delimiter

August 11, 2022 by Magenaut

Consider this Python code for printing a list of comma separated values

Categories Python, Q&A Tags printing, python, string Leave a comment

syntax_highlight | lpr

August 11, 2022 by Magenaut

Does anyone know of a simple way to produce the PostScript corresponding to a syntax-highlighted version of a source file that can be piped directly to a PostScript printer?

Categories Q&A, Unix & Linux Tags command-line, highlighting, postscript, printing Leave a comment

Convert pdf to a different page size (US Letter -> A4)

August 7, 2022 by Magenaut

I’m trying to print a simple US Letter document, but for some reason, I just cannot manage to fit it properly onto A4 when printing multiple pages per-list.

Categories Q&A, Unix & Linux Tags ghostscript, pdf, printing Leave a comment

How do I make “black&white” the default?

August 7, 2022 by Magenaut

When I print something (Firefox 5 but also other apps), the option “color” is always set to “Color (CMYK)”. How do I make “monochrome” or “black & white” the default?

Categories Q&A, Unix & Linux Tags cups, printing Leave a comment

How can I print well formatted code

August 7, 2022 by Magenaut

Similar to using markdown on Stack Overflow to create monospace output, how can I do that for my programs.

Categories Q&A, Unix & Linux Tags command-line, osx, printing Leave a comment
Newer posts
← Previous Page1 … Page4 Page5
  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