Roland's homepage

My random knot in the Web

Articles tagged with "python3"

  1. Switching IPython to Python 3

    More and more, IPython has become my tool of choice as the ultimate calculator and to try out concepts and code for use in my programs.

    While I generally use the terminal-based interactive shell, notebooks offer more capabilities for integrating text, formulas and graphics.

    With Python 2.7 effectively mostly ...

  2. TeXcalc

    As an engineer, I often do diverse calculations that I want to save in my logbooks which I write in LaTeX. Up to now I’ve either formatted those by hand or used the listings package to include calculations made in IPython.

  3. Generate random passwords

    One way of making hard to guess passwords is to take random data and encode it with base64 to make it readable. This is what I’ve done in the genpw.py script.

    This is mainly useful for passwords that you can store in a secure manner (like in an ...

  4. Keyword expansion with git

    One of the things I liked about the old rcs revision control system was that it supported keyword expansion in files. Unlike systems like rcs, cvs and subversion, the git revision control system cannot provide keyword expansion. The cause for this is that you can’t modify a file with ...

  5. vid2mkv

    My digital camera can also produce movies, like most camera’s these days. It saves them in AVI format, with relatively poor mjpeg compression and uncompressed sound.

    So I wrote this python script to convert these AVI files to Theora / Vorbis streams in a matroška container. It takes the video ...

  6. vid2mp4

    Videos with H.264 video and AAC sound im MP4 containers seem to strike a very good size performance balance. So I modified a copy of vid2mkv to use ffmpeg to create this kind of files instead.

    To speed up the processing of multiple files, this script runs the conversions ...

  7. foto4lb

    Photos from modern digital cameras are generally so large these days that you have to shrink them to use them in a document. I do this a lot, so I automated it.

    The foto4lb.py script shrinks the files it is given to a width of 886 pixels, and shrinks ...

  8. make-mp3

    After writing the make-flac python script, I adapted a copy to use LAME to generate variable bitrate MP3 files instead.

    You can find make-mp3.py on github. Apart from python (version 3) it requires LAME.

    Note

    The script is now compatible with both Python 2 and Python 3. But is ...

  9. gitdates

    In answer to this question on stackechange, I wrote gitdates.py (available from github). If it is called from a directory that is under git resivion control, it lists all the files there with the short hashtag and the date from when they were last committed. The current version is ...


←  Page 1 Page 2 / 3 Page 3 →