WordPress database error: [Can't open file: 'wp_str8_comments.MYI'. (errno: 145)]
SELECT ID, COUNT( comment_ID ) AS ccount FROM wp_str8_posts LEFT JOIN wp_str8_comments ON ( comment_post_ID = ID AND comment_approved = '1') WHERE post_status = 'publish' AND ID IN (5414) GROUP BY ID

STR8BLOGGIN » Blog Archive » K notes

K notes

K is a terse array-oriented programming language.

Download old, free interpreter here

Here’s an intro

My notes, so far. Note that “monadic” means the operator takes one argument (! 10); dyadic means it takes two (2 ! 10).

  • ~ monadically is NOT.
  • _ is the monadic trunc operator. _ 10 = 10, _ 10.9 = 10
  • ! is the dyadic mod operator. 100 ! 2 = 0, 101 ! 2 = 1
  • | (pipe) is the monadic array reverse operator. | 1 2 3 = 3 2 1
  • ? monadically is the array uniq operator.
    ? 1 2 3
    1 2 3
    ? 1 2 3 1
    1 2 3

  • @ is the dyadic array index operator.
    names: `tom `bob `frank
    names @ 0
    `tom
    names @ 1
    `bob
    names @ 2
    `frank

  • # monadically is the array length operator. # 1 2 3 = 3. This is in Mr. Shasha’s primer.
  • # dyadically is the array fill operator. 10 # 7 = 7 7 7 7 7 7 7 7 7 7
  • Precedence is right to left; stupid. #names % 2 is an error; (#names) % 2 returns 1.5 as you’d expect.
  • & monadically finds the indices of an array that match an expression.
    & names = `frank
    ,2
    & ~ names = `frank
    0 1

    FYI, ,2 means the same thing as PHP array(1); - an array with one element whose value is 2.

WordPress database error: [Can't open file: 'wp_str8_comments.MYI'. (errno: 145)]
SELECT * FROM wp_str8_comments WHERE comment_post_ID = '5414' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply