Tag: bash
-
Draw a cityscape in day and night with Python turtle
I’ve earlier blogged about drawing a cityscape or urban landscape just by using squares with the Python turtle library. Now, I also have written a Python script that creates a randomized blue sky filled with seagulls, clouds, a rainbow and a the sun. Also, a night sky filled with stars, constellations and galaxies. I figured […]
-
Identify dominant colors in an image
Deeply inspired by a tweet I saw a couple of days ago, where @NASAGoddard teamed up with @colourlovers to identify colors in satellite images, I set out to write a script that did this with any image. UPDATE: Try it now online at http://apps.hoyd.net/hexcolors/ I have been using Sentinel Hub to spot beautiful places on […]
-
Flytte Google Keep notater fra Gmail til G Suite med Python
Det oppstod nylig et behov for litt python scripting, noe jeg alltid har stor glede av. Bakgrunnen er at jeg er midt en overgang mellom Gmail og G Suite (før Google Apps), flytter alle tjenestene mine ut fra Gmail og inn i et eget domene med G Suite. Jeg har inntrykk av at det er […]
-
Finally a decent script for backing up my DVD collection of movies and TV-series
Depending on how nerd you are, but I have been looking for a good method to digitalize my collection in an acceptable resolution, using a widely used format and keep subtitles and audio languages. In short, I found a couple of BASH scripts that utilizes the command line version of Handbrake and a few built-in […]
-
Get a nice looking terminal prompt in ubuntu
The terminal is a non-graphical frontend to the operating system and in linux the most commonly used one is called bash. Normally and I am only guessing here, if you are a terminal user, you don’t spend much time prettifying the look and feel of the command line interface. But if you use a desktop […]
-
Oppdagelsen av snøballtall
Jeg liker tall og språk og når jeg kommer over skjulte ikke-hensiktsmessige meninger i tekster blir det ofte spennende. For eksempel å finne skjulte haikudikt i gamle bøker eller tekster som ikke hadde til hensikt å skrive haikudikt. Jeg vet at jeg ikke er alene om dette og for eksempel The New York Times har […]