ri=> \d KDplot_plotpoint
Did not find any relation named "KDplot_plotpoint"
ri=> \d "KDplot_plotpoint"
Table "public.KDplot_plotpoint"
Column | Type | Modifier
...
Double-quotes are your friends.
ri=> \d KDplot_plotpoint
Did not find any relation named "KDplot_plotpoint"
ri=> \d "KDplot_plotpoint"
Table "public.KDplot_plotpoint"
Column | Type | Modifier
...
var confirm_exit = true;Originally, I'd planned to skip the ugly global variable and simply re-bind the onbeforeunload function, but apparently you can't rebind like that.
window.onbeforeunload = function() {
if( confirm_exit )
return "";
return; };
$(document).ready( function() {
$("#id_theform").submit( function() { confirm_exit = false; } );
} );
add_frags (i:l) m =The important part is the $!, in bold. Given some function f and parameter x, f $! x is equivalent to x `seq` f x; the seq function, meanwhile, forces the evaluation of the first thunk. So f $! x applies f to x AFTER x HAS BEEN EVALUATED.
let m' = M.insert i () m in
add_frags l$! m'
add_frags [] m = m
import qualified Data.Map as MAnd off the stack grows, until pop.
m = M.empty
add_frags ["ACDEF","GHI","KLMNO","PQRST",...] m
-> M.insert "ABCDEF" () (add_frags ["GHI","KLMNO","PQRST",...] m)
-> M.insert "ABCDEF" () (M.insert "GHI" () (add_frags ["KLMNO","PQRST",...] m))