Posts
hmmm
No, this isn't about porn. It's Thai police officers cosplaying for arrest photos of criminals:
hmmm
!Turns out there is actually a small town in Japan that's also named Obama and they proudly use it to drum up their local tourism industry!<
captchas like these that don't tell you which part of the text you're supposed to input
This was for querying package delivery status. I finally got one right after many attempts. The layout, layers, colors change after every attempt so good luck on figuring out which letters count.
How to remove terminal escape sequences from strings?
I'm writing a fish script to process the output of music tagging programs (like operon). I use this for instance to list the filenames of all music tracks in a collection that are missing certain tags like a date of release or which have a CD number tag but no tracknumber tag.
Unfortunately the output I'm parsing may control control characters // escape sequences. This caused me quite a lot of headache during debugging.
Take the following string for instance: it will display as tracknumber (including the leading whitespace` in my terminal. The word itself only has 11 characters so naturally I tried to call string trim on it, but that doesn't actually alter it because on closer inspection the character sequence looks like this:
string_value= tracknumber
string_length=16
0:
:[
2:0
3:m
4:
5:t
6:r
7:a
8:c
9:k
10:n
11:u
12:m
13:b
14:e
15:r
As you can see it starts with a terminal escape sequence which is rendered as a whitespace.
Is there an easy way to strip any and all escape sequences from a variable? I used regular expression search and replace with some success, but that seems quite a brittle approach as I can't anticipate every single (edge) case and could also accidentally remove stuff I want to keep.
Crystals in the Dark, digital
feedback appreciated
I tried different brushes and strokes on different crystals, 驴which ones look best you?
global watershed map
source: https://decolonialatlas.wordpress.com/2017/04/18/colorful-river-basin-maps/
It has more detailed maps for each continent too.
Eiger Cliff Face, digital
Trying to emulate the style of traditional landscape printing my grand parents had at their house. I guess those must have been painting with oil (I wouldn't know).
When typing multiple logical statements on the same line (connected through ; or &&): 驴how does one bring up autocomplete suggestions for subsequent statements?
I often write multiple statements on the same logical line. For instance short loops that converts one image format to another.
Is there a way to bring up tab completions or history search for subsequent statements? After beginning a new command with ; && &or | I want to be able to make use of suggestions again.
TIL the black scales of gaboon vipers are super hydrophobic. Water running off washes away any dirt on them too. Dirt will thus only stick to light scales leaving their camouflage pattern intact.
The picture shows a close up of their skin. You can see tiny water droplets curling up on the black scales, as is typical on repellant surfaces.
wir_iel
Moment, gibt es da nicht iein Lobbyregister wo er nach Stellen suchen k枚nnte?
TIL of a boy in Pakistan that would stab himself with knives to entertain others. Researchers found he carried a rare gene mutation that prevents pain nerves to transmit their signals to the brain.
Feeling no pain is actually terrible as you won't know when you hurt yourself and you don't properly learn to avoid dangerous situation. People with this mutation have to rely on others for danger assessment as for example they won't notice easily that they have open wounds or even broken bones. Tragically this boy died at the age of 13 when jumping/falling off a building; the sources differ but it's likely that he engaged in risky behavior if he couldn't feel any pain from falling.
Edit: The original title improperly stated that the boy was from India. Corrected it to Pakistan.