Sananab

{"content":{"id":1,"title":"New Blog","body":"\u003cp\u003eMy new blog is deployed and configured at exactly 7:00 Pacific. Welcome archive-divers!\r\n\u003c/p\u003e","publication_date":"2018-05-06T02:01:00.000Z","created_at":"2018-05-06T02:02:27.000Z","updated_at":"2018-06-14T19:59:16.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=misc\"\u003emisc\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=news\"\u003enews\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=meta\"\u003emeta\u003c/a\u003e"}

New Blog

My new blog is deployed and configured at exactly 7:00 Pacific. Welcome archive-divers!

{"content":{"id":227,"title":"About Sananab","body":"\u003cp\u003e\r\nThis is my blog. \r\n\u003c/p\u003e\r\n\u003cp\u003e\r\nAside from this blog, I am the creator of \u003ca href=\"https://flashcardia.com\" target=\"_blank\"\u003eFlashcardia\u003c/a\u003e - a spaced repetition learning tool - and a pretty good \u003ca href=\"https://flashcardia.com/fortune\" target=\"_blank\"\u003eonline fortune page\u003c/a\u003e.\r\n\u003c/p\u003e\r\n\u003cp\u003e\r\nYou can contact me through \u003ca href=\"https://surdegg.com\" target=\"_blank\"\u003emy business page\u003c/a\u003e.\r\n\u003c/p\u003e","publication_date":"2018-05-06T02:02:00.000Z","created_at":"2018-08-17T00:36:38.000Z","updated_at":"2020-07-12T22:08:40.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=misc\"\u003emisc\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=news\"\u003enews\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=meta\"\u003emeta\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=politics\"\u003epolitics\u003c/a\u003e"}

About Sananab

This is my blog.

Aside from this blog, I am the creator of Flashcardia - a spaced repetition learning tool - and a pretty good online fortune page.

You can contact me through my business page.

{"content":{"id":2,"title":"HTML Forms Cannot Be Children of Table Elements","body":"\u003cp\u003eI was having the following problem:\u003cp\u003e\r\n\u003cbr\u003e\r\n\u003cul\u003e\r\n\u003cli\u003eHTML form works fine for create.\u003c/li\u003e\r\n\u003cli\u003eClick on link to edit page (same form).\u003c/li\u003e\r\n\u003cli\u003eSubmit button doesn't work.\u003c/li\u003e\r\n\u003cli\u003eReload the page.\u003c/li\u003e\r\n\u003cli\u003eSubmit button does work.\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\u003cp\u003eSomething that's apparently a strict rule, but I can't find documentation for anywhere, is the fact that a form can't be a child of any table elements, a rule which Chrome seems to only enforce in very narrow contexts.\u003c/p\u003e","publication_date":"2018-05-08T17:11:00.000Z","created_at":"2018-05-08T17:39:19.000Z","updated_at":"2018-06-18T17:31:57.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=documentation\"\u003edocumentation\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=html\"\u003ehtml\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=oddities\"\u003eoddities\u003c/a\u003e"}

HTML Forms Cannot Be Children of Table Elements

I was having the following problem:


  • HTML form works fine for create.
  • Click on link to edit page (same form).
  • Submit button doesn't work.
  • Reload the page.
  • Submit button does work.

Something that's apparently a strict rule, but I can't find documentation for anywhere, is the fact that a form can't be a child of any table elements, a rule which Chrome seems to only enforce in very narrow contexts.

{"content":{"id":3,"title":"Gullible","body":"\u003cimg src=\"/uploads/0.jpg\" class=\"card-image\" style=\"max-height: unset; max-width: 100%\"\u003e\r\n\u003cdiv class=\"card-image-caption\"\u003e\u003ca href=\"https://rorycomics.tumblr.com/post/149560844145/more-pretentious-social-commentary-comics-from-me\" target=\"_blank\"\u003eRory Comics\u003c/a\u003e\u003c/div\u003e","publication_date":"2018-05-09T21:10:00.000Z","created_at":"2018-05-09T21:10:54.000Z","updated_at":"2018-07-24T02:54:05.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=hype\"\u003ehype\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=old_comics\"\u003eold_comics\u003c/a\u003e"}

Gullible

{"content":{"id":4,"title":"From Valsgärde 8","body":"\u003cimg src=\"/uploads/2.jpg\" class=\"card-image not-tall\"\u003e\r\n\u003cdiv class=\"card-image-caption\"\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Valsg%C3%A4rde\" target=\"_blank\"\u003eInfo on Wikipedia\u003c/a\u003e\u003c/div\u003e","publication_date":"2018-05-10T00:00:00.000Z","created_at":"2018-05-09T21:25:59.000Z","updated_at":"2019-01-10T02:35:13.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=scandinavia\"\u003escandinavia\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=war\"\u003ewar\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=sweden\"\u003esweden\u003c/a\u003e"}

From Valsgärde 8

{"content":{"id":6,"title":"Barberism","body":"\u003cimg src=\"/uploads/3.png\" class=\"card-image\" style=\"max-height: initial\"\u003e\r\n\u003cdiv class=\"card-image-caption\"\u003e\u003ca href=\"http://cowbirdsinlove.com/121\" target=\"_blank\"\u003ecowbirds in love\u003c/a\u003e\u003c/div\u003e","publication_date":"2018-05-11T00:00:00.000Z","created_at":"2018-05-09T21:58:52.000Z","updated_at":"2018-06-14T20:03:49.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=old_comics\"\u003eold_comics\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=hair\"\u003ehair\u003c/a\u003e"}

Barberism

{"content":{"id":7,"title":"Caravaggio - Jupiter, Neptune, and Pluto","body":"\u003cimg src=\"/uploads/4.jpg\" class=\"card-image\"\u003e","publication_date":"2018-05-12T00:00:00.000Z","created_at":"2018-05-09T22:07:04.000Z","updated_at":"2018-05-09T22:07:04.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=italy\"\u003eitaly\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=mythology\"\u003emythology\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=baroque\"\u003ebaroque\u003c/a\u003e"}

Caravaggio - Jupiter, Neptune, and Pluto

{"content":{"id":5,"title":"18-05-13 Weekly Links","body":"\u003cbr\u003e\r\n\u003cul\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://i.imgur.com/S9tJsXK.gifv\" target=\"_blank\"\u003eHyperbolic Self-Similarity\u003c/a\u003e\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://blog.innerht.ml/google-yolo/\" target=\"_blank\"\u003eXSS Jigsaw\u003c/a\u003e gives us a funny, readable description of various clickjacking and tracking techniques.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://youtu.be/xiLfuaY9Nt4\" target=\"_blank\"\u003eHow to sort terabytes of data\u003c/a\u003e, from Berkeley CS 186.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://javlaskitsystem.se/2012/02/whats-the-waiter-doing-with-the-computer-screen/\" target=\"_blank\"\u003eOne of the better user hacks\u003c/a\u003e I've ever seen.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://antihumansite.wordpress.com/2018/02/09/i-watched-all-629-episodes-of-the-simpsons-in-a-month-heres-what-i-learned/\" target=\"_blank\"\u003e\"I Watched All 629 Episodes of The Simpsons in a Month. Here’s What I Learned\"\u003c/a\u003e\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/\" target=\"_blank\"\u003eBit Fiddling 101\u003c/a\u003e with Peter Krumins. Old but good, linked from \u003ca href=\"https://news.ycombinator.com/\" target=\"_blank\"\u003eHacker News\u003c/a\u003e recently.\r\n\u003c/li\u003e\r\n\u003c/ul\u003e","publication_date":"2018-05-13T00:00:00.000Z","created_at":"2018-05-09T21:42:23.000Z","updated_at":"2018-06-18T17:30:15.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=hacks\"\u003ehacks\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

18-05-13 Weekly Links


{"content":{"id":8,"title":"'Build Your Own Lisp' Solutions: 3.1","body":"\u003cp\u003e\u003cb\u003eQ:\u003c/b\u003e Use a for loop to print out Hello World! five times.\u003c/p\u003e\r\n\u003cp\u003e\u003cb\u003eA:\u003c/b\u003e\u003c/p\u003e\r\n\u003cpre\u003e\u003ccode class=\"c++\"\u003e#include \u0026lt;stdio.h\u0026gt;\r\n\r\nint main(void) {\r\n int i;\r\n\r\n for (i = 0; i \u003c 5; i++) {\r\n printf(\"Hello World!\\n\");\r\n }\r\n\r\n return 0;\r\n}\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n\u003cpre\u003e\u003ccode class=\"c++\"\u003eHello world!\r\nHello world!\r\nHello world!\r\nHello world!\r\nHello world!\r\n\u003c/code\u003e\u003c/pre\u003e","publication_date":"2018-05-14T00:00:00.000Z","created_at":"2018-05-09T22:18:25.000Z","updated_at":"2018-06-18T17:30:03.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=c\"\u003ec\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=lisp\"\u003elisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=build_your_own_lisp\"\u003ebuild_your_own_lisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=answers\"\u003eanswers\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

'Build Your Own Lisp' Solutions: 3.1

Q: Use a for loop to print out Hello World! five times.

A:

#include <stdio.h>

int main(void) {
  int i;

  for (i = 0; i < 5; i++) {
    printf("Hello World!\n");
  }

  return 0;
}
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
{"content":{"id":9,"title":"Kerri Ann - My Silent Soul 2","body":"\u003cimg src=\"/uploads/a3.jpg\" class=\"card-image\" \u003e\r\n\u003cdiv class=\"card-image-caption\"\u003e\u003ca href=\"https://www.kerriann.gallery/\" target=\"_blank\"\u003elink\u003c/a\u003e\u003c/div\u003e","publication_date":"2018-05-15T00:00:00.000Z","created_at":"2018-05-09T22:25:14.000Z","updated_at":"2018-08-15T18:22:04.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=dark\"\u003edark\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=plants\"\u003eplants\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_sky\"\u003ethe_sky\u003c/a\u003e"}

Kerri Ann - My Silent Soul 2

{"content":{"id":10,"title":"Bear","body":"\u003cimg src=\"/uploads/6.gif\" class=\"card-image\" style=\"border: 1px solid black; height: auto; max-height: initial\"\u003e\r\n\u003cdiv class=\"card-image-caption\"\u003e\u003ca href=\"http://www.supermegacomics.com/index.php?i=253\" target=\"_blank\"\u003eSUPER MEGA\u003c/a\u003e\u003c/div\u003e","publication_date":"2018-05-16T00:00:00.000Z","created_at":"2018-05-09T22:34:45.000Z","updated_at":"2018-06-18T17:29:17.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=old_comics\"\u003eold_comics\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=animals\"\u003eanimals\u003c/a\u003e"}

Bear

{"content":{"id":11,"title":"Bastei, Saxony, Germany","body":"\u003cimg src=\"/uploads/7.jpg\" class=\"card-image not-tall\"\u003e","publication_date":"2018-05-17T00:00:00.000Z","created_at":"2018-05-09T22:38:40.000Z","updated_at":"2019-04-08T15:46:12.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=mountains\"\u003emountains\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=germany\"\u003egermany\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=nature\"\u003enature\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=bridges\"\u003ebridges\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_sky\"\u003ethe_sky\u003c/a\u003e"}

Bastei, Saxony, Germany

{"content":{"id":12,"title":"Disney","body":"\u003cimg src=\"/uploads/8.png\" class=\"card-image\"\u003e\r\n\u003cdiv class=\"card-image-caption\"\u003e\u003ca href=\"http://www.berkeleymews.com/?p=1079\" target=\"_blank\"\u003eBerkeley Mews\u003c/a\u003e\u003c/div\u003e","publication_date":"2018-05-18T00:00:00.000Z","created_at":"2018-05-11T02:35:05.000Z","updated_at":"2018-05-19T02:03:52.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=old_comics\"\u003eold_comics\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_elderly\"\u003ethe_elderly\u003c/a\u003e"}

Disney

{"content":{"id":16,"title":"18-05-19 Weekly Links","body":"\u003cbr\u003e\r\n\u003cul\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.theguardian.com/uk-news/ng-interactive/2018/may/14/lives-of-grenfell-tower-victims-fire\" target=\"_blank\"\u003eObituaries by loved ones\u003c/a\u003e for every Grenfell Tower victim.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.sicpers.info/2018/05/on-null/\" target=\"_blank\"\u003eOn Null\u003c/a\u003e\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.bbc.com/news/amp/magazine-38261956\" target=\"_blank\"\u003eThe story\u003c/a\u003e of an irl Cold War spy. This is the first time in years that I've seen something from BBC news that isn't about a tweet.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://medium.com/square-corner-blog/rubys-new-exception-keyword-arguments-4d5bbb504d37\" target=\"_blank\"\u003eRuby's new exception keyword arguments\u003c/a\u003e look pretty neat, if you can find the article in the middle of all the Medium sticky spam.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nI'd heard of the Stuxnet worm, and knew it was strange and sophisticated, \u003ca href=\"https://www.quora.com/What-is-the-most-sophisticated-piece-of-software-code-ever-written/answer/John-Byrd-2\" target=\"_blank\"\u003ebut I had no idea\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003c/ul\u003e","publication_date":"2018-05-19T00:00:00.000Z","created_at":"2018-05-15T02:20:22.000Z","updated_at":"2018-06-18T17:26:36.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=irl\"\u003eirl\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e"}

18-05-19 Weekly Links


{"content":{"id":15,"title":"Asio Otus","body":"\u003cimg src=\"/uploads/b.jpg \" class=\"card-image not-tall\"\u003e","publication_date":"2018-05-20T00:00:00.000Z","created_at":"2018-05-12T15:33:58.000Z","updated_at":"2019-01-24T20:04:22.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=nature\"\u003enature\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=owls\"\u003eowls\u003c/a\u003e"}

Asio Otus

{"content":{"id":14,"title":"Tulips?","body":"\u003cimg src=\"/uploads/a.jpg\" class=\"card-image\"\u003e","publication_date":"2018-05-21T00:00:00.000Z","created_at":"2018-05-11T21:16:21.000Z","updated_at":"2018-09-28T03:18:13.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=pictures\"\u003epictures\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=flowers\"\u003eflowers\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=pretty\"\u003epretty\u003c/a\u003e"}

Tulips?