#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 12
Top Prev 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 Next
#ruby-lang
<apeiros> you do stuff like: Terminal.new { |root| auto_refresh 20; window(:app) { menubar(:main) { ....
<apeiros> I tried to keep it small. seems I suck at that :-/
<LoganCapaldo> Lately I've been thinking maybe some of these DSLs should just surrender to having their own parsers
<LoganCapaldo> (that was another random thought of the day from me)
<apeiros> and increase work 10 fold? u insane
<apeiros> u lobster
<LoganCapaldo> 10 fold?
<apeiros> 10 times
<argv[]> 10 folds.
<LoganCapaldo> I know what it means :)
<LoganCapaldo> I don't think 10 is the right number <g>
<apeiros> ok, 10!
<LoganCapaldo> LOL
<apeiros> maths is nice, a single char can change the meaning just that lil bit
<imperator> Bo Derek?
<LoganCapaldo> apeiros, quick: what does |A| mean?
<apeiros> um, realm?
<argv[]> abs
<apeiros> maths or ruby? :)
<LoganCapaldo> maths
<apeiros> in maths, yes, abs
<LoganCapaldo> or set cardinality or determinate
<LoganCapaldo> depends on what A is
<apeiros> set cardinality I haven't met
<apeiros> determinate: not often enough :)
<LoganCapaldo> I'd suspect abs more likely if it were |a|
<LoganCapaldo> but anyway, you see my point I'm sure :)
<apeiros> I don't know why but we haven't used matrices for anything but solving linear equations. Quite dissatisfying :-/
<apeiros> well, whatever, I go back kicking ncurses butt
<LoganCapaldo> apeiros, you can use em to rotate things for a 3d game engine too :)
<Olathe> You can use them to confuse lobsters.
<Olathe> I use them for that all the time.
<apeiros> LoganCapaldo, I know, it's how Vornicus and I planned to implement (missing the right word) in the Geometry-lib
<apeiros> what's the top term for scale, rotate and translocate?
<apeiros> 0300 is the wrong time to look for words like that :)
<imperator> abs.of_steel
<apeiros> whatever, some of the ass-kickery is gone down because of that fugly way keys are passed to the tty... (OS snatching some away, e.g. f5-f12 in OS X)
<LoganCapaldo> apeiros, Alt+F-key de-snatches them in OS X FWIW
<apeiros> fwiw?
<Olathe> For what it's worth (in lobsters)
<apeiros> oh
<apeiros> gota try
<johnjosephbachir> hey folks. how do i inject code "where i am", while maintaining the environment? eval clears the environment as far as i can tell
<LoganCapaldo> actually eval does not
<LoganCapaldo> a = 2; eval("a = 7"); p a
<LoganCapaldo> however, there are some scope issues
<Olathe> You can use __FILE__ or __LINE__ or caller or something in a variable.
<Olathe> def thingy; caller; end; def whatsit; at_place_etc = thingy; eval("at_place_etc is spiffeh"); end
<johnjosephbachir> LoganCapaldo: if that example code works then that is what i need.. there might be a discrepancy with instance variables., i'll check it out
<johnjosephbachir> Olathe: thanks
Previous Page Next Page