Arkisto 2015

I think the ’field’ parameter of tax_query should be ’term_id’ rather than ’id’

26. syyskuuta 2015 klo 12.22
Sijainti: Muut: Stack Exchange
Avainsanat: WordPress

Reading from the Codex page linked to, I think the value of ’field’ in the tax_query array should be ’term_id’ rather than ’id’: ”Possible values are ’term_id’, ’name’ and ’slug’. Default value is ’term_id’.” I’m guessing ’id’ only works because it causes a fall-back to the default.

Vastaa viestiin sen kontekstissa (Stack Exchange)

Mainitsepa hyviä esimerkkejä juonen avoimeksi jättämisestä

26. syyskuuta 2015 klo 10.38
Sijainti: Blogit: Silmänkääntövankila

Jos kehtaat niin mainitsepa hyvinä pitämiäsi esimerkkejä juonen avoimeksi jättämisestä. Minäkin inhoan tuommoisia savusillipurkkeja, joissa niitä juonenpätkiä ripotellaan holtittomasti ja jätetään sitten loppuunsaattamatta Ensin meinasin sanoa, että itsekin pidän oikealla tavalla avoimeksi jätetystä juonesta, mutta sitten rupesin miettimään, että pidänkö oikeasti, vai ajattelinko sittenkin vain yhtä spesifistä juonenlajia: sitä, jossa paha ei saakaan lopussa palkkansa (kuten No Country For Old Men).

Vastaa viestiin sen kontekstissa (Silmänkääntövankila)

Context menu item not appearing in private browsing mode

23. syyskuuta 2015 klo 16.13
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Firefox

I’m using Firefox 41.0 (in Ubuntu 14.04). Steps to reproduce:

1. Go to Firefox privacy settings, set ”Remember history” (allow FF to restart if needed)
2. Install jump to anchor
3. Verify it works (context menu has ”Jump to anchor”)
4. Go to Firefox privacy settings, set ”Never remember history” and allow FF to restart
5. Open context menu

What happens:
”Jump to anchor” is missing from the context menu.

Vastaa viestiin sen kontekstissa (Github)

Future archaeologists will be racking their brains

19. syyskuuta 2015 klo 7.28
Sijainti: Videosivustot: YouTube

Future archaeologists will be racking their brains trying to figure out what that cup rim tool was for.

Vastaa viestiin sen kontekstissa (YouTube)

The menu position depends on mouse pointer position relative to horizontal middle

15. syyskuuta 2015 klo 13.39
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: Chromium

With more testing I found that the context menu position depends (perhaps solely) on whether my mouse pointer is on the left side or the right side of the horizontal half of the rightmost monitor: if you imagine a vertical line dividing the rightmost monitor’s display area into two equal-sized halves, right-clicking anywhere on the left side of that line brings up the menu on the correct display, whereas right-clicking anywhere on the right side brings it up on the wrong display.

(That is why I first made the mistake of thinking links weren’t affected: the ones I tried first just happened to be on the left side.)

Unfortunately I don’t have a third display to verify that I’m really seeing a different manifestation of the same bug as Nathaniel, of one that depends on the monitor count.

Vastaa viestiin sen kontekstissa (Launchpad)

UTF-8 support in bookmark names

13. syyskuuta 2015 klo 13.37
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Bash

I’m in a UTF-8 environment and a lot of my directories’ names have characters above ASCII in them. For many of those it’d be natural to assign bookmark names that also have characters beyond ASCII. For example, my ”Desktop” directory is localized as ~/Työpöytä, and I’d like to name that bookmark ”työpöytä”.

jani@saegusa:Työpöytä$ s työpöytä
bookmark name is not valid

This fails because bashmarks validates names using the regexp /[^A-Za-z0-9_]/. It’s simple enough to patch to account for the 6 additional characters in my Scandinavian locale, but bashmarks also derives an environment variable name from the bookmark name, and apparently Bash does not support UTF-8 for those:

jani@saegusa:~$ LC_MESSAGES=C export DIR_työpöytä=$HOME/Työpöytä/
bash: export: `DIR_työpöytä=/home/jani/Työpöytä/': not a valid identifier

There may be other obstacles as well, those are just the two I could find at a glance.

Obviously I can work around this by not using UTF-8 in bookmark names, but it needlessly increases the mental effort required to recall the names and also the chances of name collisions.

Vastaa viestiin sen kontekstissa (Github)

One day it will happen

13. syyskuuta 2015 klo 9.23
Sijainti: Muut: reddit
Avainsanat: Björk

one day it will happen

Vastaa viestiin sen kontekstissa (reddit)

Tätä videota!

8. syyskuuta 2015 klo 17.03
Sijainti: Blogit: Matkalla
Avainsanat: Erasure, musiikki

Tätä videota!

Vastaa viestiin sen kontekstissa (Matkalla)

Ihmettelinkin että oliko se mennyt sinulta muka ohi

8. syyskuuta 2015 klo 10.51
Sijainti: Blogit: kieli

Ihmettelinkin että oliko se mennyt sinulta muka ohi. Joo, ei minullakaan tuon syvällisempää selitystä sen poiminnalle ole, mutta onhan se hieno otsikko. Toisaalta huomaan itsekin monesti vaihtavani kieltä postauksia otsikoidessani, ja se on vähän sellainen ”siitä missä aita on matalin” -kikka. Jos kirjoittaa vaikka saatananpalvojista, niin ”Saatananpalvojat” tuntuu (toisinaan) ylitsepääsemättömän banaalilta otsikolta. Mutta jos kyse on vaikkapa ruotsalaisista saatananpalvojista, niin saatananpalvojat-sanan kääntäminen otsikossa ruotsiksi antaa sille heti ylimääräisen ulottuvuuden kuin ilmaiseksi.

Vastaa viestiin sen kontekstissa (kieli)

”Dein ist die Hand die verletzt”

8. syyskuuta 2015 klo 8.07
Sijainti: Blogit: Silmänkääntövankila
Avainsanat: Salaiset kansiot, uskonto

”Dein ist die Hand die verletzt”, eivätkös ne opet siellä jotain manatessaan noin sanoneet? Siitä se otsikko oli repäisty.

Vastaa viestiin sen kontekstissa (Silmänkääntövankila)

« Uudempia - Vanhempia »