Mochabot log - CommonJS IRC channel: #commonjs on irc.freenode.net

2009-11-05:

[0:01] <ashb> anyone know of a moer permissinve JSON parser?
[0:01] <ashb> json.org and the built in spidermonkey one is 1) really strict, and 2) gives useless errors
[0:38] <inimino> ashb: strictness is kind of the point, isn't it?
[0:38] <inimino> ashb: which errors specifically are useless?
[0:39] <inimino> (somewhere Crockford just felt a twinge and doesn't know why)
[1:23] <ashb> inimino: i.e. i'd like a parser that actualy works for using on the interenet
[1:24] <ashb> i.e. works with crappy JSON that doesn't quite keys etc
[1:24] <inimino> hm, so the march to the bottom has already started for JSON
[1:24] <ashb> its what some shit services produce sadly
[1:24] <inimino> public shaming usually helps
[1:25] <ashb> tfl.gov.uk
[1:25] <ashb> shaming public bodies doesn't usually do much
[1:26] <inimino> true, goverment entities are immune to shame
[1:27] <inimino> ashb: did you alert them to the issue?
[1:29] <ashb> the details of how to get hte json request aren't even public
[1:29] <ashb> its just from looking at the source and activity log
[1:35] <inimino> ashb: ah, well, that weakens your ability to complain I suppose
[1:39] <ashb> somewhat, yeah
[18:06] <ashb> https://launchpad.net/~commonjs
[18:06] <ashb> just created that - hope no one minds
[18:07] <ashb> i've added dangoor, tlrobinson and kriskowal as admins too
[18:07] <ashb> none of which seem to be online now
[18:07] <ashb> i guess this is JSConf.eu time
[18:07] <ashb> if any of the core contributors to other projects want adding, let one of us know
[19:49] <voodootikigod> ashb: tis jsconf.eu time
[19:49] <voodootikigod> and exciting at that
[20:34] <hannesw_> ashb: can you add me to the launchpad group?
[20:34] <hannesw_> I'm hannesw on launchpad
[20:35] <Wes--> what's launchpad?
[20:36] <hannesw_> it's ubuntu's dev platform
[20:36] <Wes--> oh
[20:36] <Wes--> I was hoping it was like twitter, only not twitty and for javascript developers
[20:36] <hannesw_> :)
[20:39] <MisterN> Wes--: worse, it's bazaary.
[20:40] <Wes--> what, you're a cathedral guy?
[20:56] <MisterN> Wes--: no, i'm a git guy.
[20:56] <MisterN> but mercurial is ok too
[20:56] <Wes--> git is bazaary
[20:57] <MisterN> i meant that launchpad uses bazaar, the versioning system
[20:57] <MisterN> which sucks
[20:57] <MisterN> nobody except launchpad uses that
[21:05] <Wes--> OH. I'd never even heard of that
[21:06] <Wes--> How bizarre
[21:07] <inimino> it's bzr, Canonical's fork of GNU Arch which later died
[21:07] <basant> hey everyone
[21:07] <Wes--> bzr, oh, I always pronounced that "beozar"
[21:08] <Wes--> Although I guess I meant bezoar
[21:11] <MisterN> Wes--: the full name of bzr is bazaar :)
[21:11] <MisterN> Wes--: tho "bizarre" would fit too ;)
[21:15] <isaacs> MisterN: no, then it'd be bzrre
[21:16] <isaacs> the unix naming philosophy: find an obscure synonym for the thing you want, then remove all the synonyms. then roll a d12, and if it's a prime number, put a synonym back in and roll again.
[21:16] <isaacs> blerg, i can't type
[21:16] <isaacs> s/synonym/consonant/
[21:16] <MisterN> isaacs: and if possible make sure it fits in 5 characters
[21:16] <MisterN> thus create => creat
[21:16] <Wes--> I hate those obscure consonants
[21:16] <isaacs> yep
[21:16] <Wes--> I find typing the letter chi, in particular, to be a pain
[21:17] <MisterN> isaacs: but it's understandable: try having to punch another extra letter on your PDP-11's terminal this often. you'd soon see the merit!
[21:18] <Wes--> MisterN: doubly true given that men did not touch-type in 1975
[21:19] <isaacs> to change directories, use chdir. to view the contents of a directory, use ls.
[21:19] * isaacs .oO( wtf!? )
[21:19] <MisterN> chdir? you mean cd
[21:20] <isaacs> oh, right
[21:20] <isaacs> i'm thinking of the commands to change everything else, like chmod to change permissions (mode!?) or chown to change owner (alarmingly sensible, that one)
[21:21] <isaacs> or chfn to change your password (which I'm told is short for "change information")
[21:21] <Wes--> isaacs: chmod does not change permissions, it changes mode
[21:21] <Wes--> chfn is not unix
[21:21] <Wes--> the unix command for that is "passwd"
[21:21] <isaacs> right
[21:21] <isaacs> putting "or" in there would be WAY too confusing.
[21:22] <MisterN> isaacs: are you a windows developer? :P
[21:22] <isaacs> nono, i <3 posix, i kid because i love.
[21:22] <Wes--> maybe they didn't want to get it confused with the function which passes a word or a double?
[21:22] <MisterN> isaacs: oh, worse: OS X
[21:22] <MisterN> :P
[21:22] <isaacs> hahah
[21:23] <isaacs> MisterN: i use osx as my main environment, but i still do a lot of command like shell stuff on linux
[21:23] <isaacs> less so now that i'm pretty much 100% in javascrit
[21:23] <MisterN> isaacs: you mean you do cd and stuff? :P
[21:23] <MisterN> unless you confuse it with chdir, of course
[21:23] <isaacs> MisterN: i do cd a lot, but i have shortcuts to do most of my directory jumps
[21:25] <isaacs> most of the time, it's just jumping into a code folder, opening in textmate, then keyboard commands to get to the file i want, and when i wnat to do something to/with it on the shell, cmd-i opens up iterm to that location.
[21:25] * Wes-- wonders what a javascript shell would look like
[21:26] <MisterN> Wes--: i've used a _real_ c shell recently btw
[21:26] <Wes--> me too
[21:26] <Wes--> I heard the ocean
[21:26] <isaacs> Wes-: didn't someone do somethign like that with ruby, so that you could use it as your actual proper shell and fire cli commands from it?
[21:26] <MisterN> (the c shell is not a c shell)
[21:27] <MisterN> Wes--: real in the other way:P
[21:27] <MisterN> you can type malloc
[21:27] <MisterN> and get back a pointer
[21:27] <MisterN> the awesome
[21:28] <isaacs> MisterN: that's awesome like milling your own wheat is an awesome way to make bread.
[21:29] <MisterN> you don't get it, again :P
[21:29] <MisterN> it's not that one would actually use malloc on this shell
[21:29] <isaacs> hahaha, no, i think i saw something about that on hn
[21:29] <isaacs> it was a c repl
[21:29] <isaacs> pretty neat.
[21:29] <MisterN> it's just that the shell is an interface to all the symbols in the system
[21:30] <MisterN> it's the vxworks shell
[21:31] <Wes--> mistern: that's insane
[21:31] <Wes--> how did you run commands and stuff?
[21:31] <MisterN> Wes--: easy, they're just functions in the system
[21:31] <MisterN> there's actually a ls function
[21:32] <MisterN> so you type > ls (> is the prompt)
[21:32] <MisterN> and you get a normal ls output
[21:32] <isaacs> MisterN: oic, so not just a c repl, but a c repl that has all your system stuff in its symbol list. neat.
[21:32] <MisterN> you need to quote all string arguments, however
[21:33] <isaacs> the quoting is really not pleasant to me. bash is a crappy language for most tasks, but for firing off quick one-liners, its odd "everythin'gs a string" pattern is actually awesome.
[21:34] <Wes--> I am the bash master
[21:34] <Wes--> I can do anything in bash
[21:34] <Wes--> I should symlink it to /usr/bin/zombo
[21:34] <MisterN> \o/ zombo
[21:35] <MisterN> Wes--: i actually follow zombocom on twitter
[21:35] <Wes--> that must be exciting
[21:35] <Wes--> zombocom can twitter about *anything*
[21:35] <MisterN> anything at all
[21:35] <Wes--> your imagination is the limit!

 

 

Logs by date :