more terminal stuff
trying something new. maybe i can leave this command line blog poster
thingie open for the afternoon and collect some insights. after which i
shall ctrl-d to post this as a blog entry. starting now..
why’d i build the command-line blog poster? inspired by visnu’s me.visnup.com.
where he posts via:
curl -D - -X POST http://localhost:3000/entries.xml -d ‘entry[text]=yo’
…
visnu: quicktime of the demo today is up
huned: i need to buy a mac to watch it
…
sara doesn’t like funny shaped toothbrushes she just mentioned. (what a
weirdo ;)
…
“humans are rational creatures.” true or false? i say false, but hozefa says
true. here’s just a few reasons to support the theory that humans are driven
by irrational behavior (in my view, primarily fear and greed).
* panic selling in the stock market
* suicide
* the placebo effect
…
found in some old drupal work i did a while ago.
/* this was useful for debugging. commenting it out.
file_put_contents(”/tmp/drupal.debug”, print_r($view->filter, TRUE), FILE_APPEND);
*/
…
visnu: something about this is kinda funny
visnu: def feedback_box?
return false if !user && request.request_uri == ‘/’
return false if controller.is_a? SecurityController
true
end
visnu: dunno why
17:20
visnu: you should get a mac
huned: what’s funny about it?
visnu: dunno
huned: the way it reads or the way it works?
visnu: the way it reads
huned: reducible to:
user && request.request_uri != ‘/’ && !controller.is_a?(SecurityController)
visnu: yes
visnu: or
visnu: !user or request.request_uri == ‘/’ or controller.is_a? SecurityController
huned: aye
…
visnu wrote something similar to thisjust now:
huned: i have blog open in a terminal, just eating input. for an hour now. so far bits of IMs and stuff.
huned: before i leave, i do ^D
visnu: er?
visnu: oh
17:25
huned: it works like cat
visnu: right
visnu: lemme write mine
huned: k. mine’s 24 lines, btw.
huned: sorry, 32. includes stuff to read/build a .blogrc
huned: [huned@huned back_server]$ wc ~/blog
32 88 845 /home/huned/blog
huned: i should add a line to set the permissions on .blogrc properly. bc it has a password in it
visnu: mine’s two lines
huned: ******
huned: bash?
huned: i admit. that is leet
huned: leeter than mine
visnu: http://me.visnup.com/entries/381
huned: and better bc no xml
visnu: textilize fucked it up a bit
huned: you just need to make sure you write textilefriendly stuff.
visnu: true
…
ok, i’m done for now.
About this entry
You’re currently reading “more terminal stuff,” an entry on e-huned.com
- Published:
- 03.06.08 / 5pm
- Category:
- personal
No comments
Jump to comment form | comments rss [?] | trackback uri [?]