apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
threesome has quit [Ping timeout: 256 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<shevy> x = '|abc| def'
<shevy> how do I find |abc| ?
gr33n7007h has joined #ruby
peregrine81 has joined #ruby
ori-l has joined #ruby
<shevy> hmm I'd wish .index would give me an array of positions
<shevy> oh wait
<shevy> x = "|abc| def".index(/\|/, 2) # => 4
mary5030 has joined #ruby
maniacal has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
barratt has quit [Quit: Leaving...]
aces1up has quit []
<Rylai> This is how you write Ruby, right?
ch_ has joined #ruby
ch_ has quit [Remote host closed the connection]
ch_ has joined #ruby
<zendeavor> that looks exactly like all the ruby i write
marr has quit [Ping timeout: 256 seconds]
splittingred has joined #ruby
splittingred has quit [Client Quit]
<shevy> lol
<zendeavor> who needs the rest of the letters anyway
opus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zendeavor> you can get to them all with .succ rite
<Rylai> rite
therrell has left #ruby [#ruby]
nari has quit [Ping timeout: 264 seconds]
ch_ has quit [Remote host closed the connection]
_veer has quit [Ping timeout: 240 seconds]
<zendeavor> that's it, i'm forking mri and reducing all string literals to 'a'
<zendeavor> if you need a 'b', take it's successor
dcope has joined #ruby
wald0 has quit [Ping timeout: 245 seconds]
peregrine81 has quit [Quit: peregrine81]
i_s has quit [Remote host closed the connection]
Megtastique has joined #ruby
maasdesigner1 has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: Lost terminal]
larissa has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
Inside is now known as Biplane
kaspergr_ has joined #ruby
lebek has joined #ruby
randomau_ has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
twoism has quit [Remote host closed the connection]
bobajett has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
twoism has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
pr0ggie has joined #ruby
Biplane is now known as Inside
<bobajett> howdy folks, where can I search the ruby mailing list? Is it mirrored to a google group?
burlyscudd has quit [Quit: Leaving.]
devoldmx has joined #ruby
<shevy> bobajett there is a webforum interface to it, I think, http://www.ruby-forum.com/ http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml
<bobajett> the search here: http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml seems to be useless.
randomautomator has quit [Ping timeout: 264 seconds]
ephemerian has left #ruby [#ruby]
<bobajett> shevy: ah the ruby-forum search seems to work. Thanks!
devoldmx has quit [Read error: Connection reset by peer]
<shevy> yeah it may be an old link
r0bby_ has joined #ruby
devoldmx has joined #ruby
<bobajett> the link is fine, the search returned nothing
<shevy> I started from like 2004, some old links I still have in my local knowledge base may be dead by now :(
randomau_ has quit [Ping timeout: 264 seconds]
<shevy> but in the old days, one had to search through mails with such an old interface hehe
<shevy> or write mails directly, but I could never handle the spam
baroquebobcat has quit [Quit: baroquebobcat]
twoism has quit [Ping timeout: 276 seconds]
MarioEIU has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
gildo has joined #ruby
ntus1017 has joined #ruby
hogeo has joined #ruby
<bobajett> you mean you had to search your local mail directly - back in the day? :-)
JZTech101 has quit [Read error: Connection reset by peer]
MarioEIU has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
c0rn has quit [Quit: Computer has gone to sleep.]
<bobajett> now to my real question, since it seems hard to search for this in the mailing list archives:
<bobajett> is there a way I can capture the pretty print output to a string? Something like my_string = pp( some_hash )
nadirvar_ has quit [Ping timeout: 264 seconds]
alexim has quit [Quit: sleep]
<shevy> hmm
<shevy> there is some way to format pp() at least ...
sparr has joined #ruby
bradsmith has quit [Remote host closed the connection]
<shevy> PP#text, PP#breakable, PP#nest, PP#group
<bobajett> wow that's ... kinda unintuitive to me: PP.pp( my_hash, my_string = '' ) does the job
<shevy> %w( abc def ghi ).pretty_print_inspect
<shevy> cool
<bobajett> but PP.pp( my_hash, my_tring ) does not.
<shevy> looks kinda ugly hehe
<bobajett> indeed. ugly-unintuitive
jerome__ has joined #ruby
<shevy> %w( abc def ghi ).pretty_inspect
r0bby_ has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
<shevy> %w( abc def ghi ).pretty_inspect # => "["abc", "def", "ghi"]\n"
enebo has joined #ruby
<jerome__> hello
<jerome__> Is there someone here how know why i can not download ruby-1.9.3-p448 on ruby servers ?
<zendeavor> github Releases
robbyoconnor has joined #ruby
<bobajett> shevy: yeah I think I like your .pretty_inspect solution better. thanks!
<coyo> hey, is there a channel for ruby sdl or ruby game devs?
<coyo> i'm interested in developing sdl games in ruby
mrsolo has quit [Quit: Leaving]
<shevy> there used to be #rubygame but jacius stopped it a few yeasr ago
<shevy> he is looking for someone to take over still though ;)
_veer has joined #ruby
<shevy> there is also #gamebox but it uses gosu
tylersmith has joined #ruby
<coyo> awww
<jerome__> Is there someone here how know why i can not download  ruby-1.9.3-p448 on ruby servers ?
<coyo> he stopped it?
* coyo fuuuuuuuuuuuuuuu
<coyo> what's gosu?
<zendeavor> jerome__: github Releases
<jerome__> or maybe, someone can try donwload it on rubyforge site to see if the server has problem or if it is me how can not access...
<zendeavor> jerome__: it's down, use the github tags
<jerome__> thanks zendeavor
<jerome__> i will try... please, could you tell me how to try it ?
<zendeavor> jerome__: http://is.gd/ijqIIM
<zendeavor> jerome__: are you manually downloading, or are you looking for help with rvm or something?
mercwithamouth has joined #ruby
<jerome__> ok zendeavor and bobajett... i have read this...
<zendeavor> jerome__: if using rvm: rvm install ruby-1.9.3-tv1_9_3_0
lebek has quit [Ping timeout: 264 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
<jerome__> so... do you know if it is possible to really install and be able to use wxruby on osx10.6.8 ?
<jerome__> (arch i386)
nari has joined #ruby
<jerome__> using rvm not works, because it try connect the same server who is broken
bradhe has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
yosafbridge has quit [Ping timeout: 256 seconds]
<zendeavor> jerome__: that rvm command is straight from the rvm head developer. it works.
<jerome__> use gem is same...
rickruby has joined #ruby
<jerome__> no, rvm install 1.9.3 not works, sure
<zendeavor> that's not the command i gave you...
<jerome__> first he is connected to one server rvm... and search the good package... then, i has a redirection (maybe) on the server where is the ruby-1.9.3-p448, but this server not works.
<zendeavor> jerome__: if using rvm: rvm install ruby-1.9.3-tv1_9_3_0
<zendeavor> *exactly* like that
yosafbridge has joined #ruby
<bobajett> so PP.pp has a signature of pp(obj, out=$>, width=79)
<jerome__> ok, i try it now
<bobajett> what is "$>"?
atyz has joined #ruby
rbento has quit [Quit: Textual IRC Client: www.textualapp.com]
<zendeavor> jerome__: http://is.gd/FjHA3o
<jerome__> this said me: "erreur runing git clone" with the serveur adress
gr33n7007h has joined #ruby
sparr has quit [Ping timeout: 276 seconds]
vishal has joined #ruby
<zendeavor> you may want ruby-1.9.3-tv1_9_3_448 instead
<zendeavor> that's latest patchlevel
smathieu has quit [Remote host closed the connection]
arya_ has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
rickruby has quit [Ping timeout: 264 seconds]
mootpointer has joined #ruby
saarinen has quit [Quit: saarinen]
optimusprimem has quit [Quit: Saindo]
sayem has quit [Remote host closed the connection]
os10066 has joined #ruby
optimusprimem has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
pr0ggie has quit [Ping timeout: 245 seconds]
binary1985 has quit [Ping timeout: 264 seconds]
<jerome__> i find one link with ruby packages aviable... BUT
sarkis has joined #ruby
<jerome__> the command rvm install 1.9.3 --source_url="the source"
<jerome__> not works
<jerome__> because it said that --sorce_url isn't a valid option
<zendeavor> #rvm
<jerome__> --soucre_url (sorry)
<zendeavor> jerome__: /join #rvm
burlyscudd has joined #ruby
gstamp has quit [Read error: Connection reset by peer]
<jerome__> join #rvm not works... i can not have access
<jerome__> ok... i have a lot of great informations guys, i think i can do something with this. Thanks a lot for your help.
saarinen has joined #ruby
devoldmx has joined #ruby
<zendeavor> huh
JZTech101 has joined #ruby
<zendeavor> you have access
<zendeavor> it's an open channel
smathieu has joined #ruby
marcdel has joined #ruby
<jerome__> for information, zendeavor,
<jerome__> 1 i have no acces (try...)
<jerome__> 2 ruby-1.9.3-tv1_9_3_448 not works for me (i think due to the osx-10.6.8 i386)
<popl> +r
gildo has quit [Ping timeout: 246 seconds]
<jerome__> but, you help me really, and i have a package access on githurb... with this, i could do something.
asteve has joined #ruby
gstamp has joined #ruby
amacgregor_ has joined #ruby
<popl> jerome__: some channels on freenode set a channel mode which prevents users who are not identified to nickserv from joining
<jerome__> i will try "man rvm" to find how to real use an other source url with ptions.
baroquebobcat has joined #ruby
rsbcode has left #ruby [#ruby]
<bobajett> shouldn't I be able to add a file handle instead of "$>" for PP output?
<jerome__> yes popl... and ?
<popl> jerome__: #rvm is one of those channels. that's why you can't join
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<bobajett> pp(obj, f=File.new("foo.txt", "w"))
amacgregor has quit [Ping timeout: 245 seconds]
<zendeavor> i thought +r required registration to talk, not join
<popl> zendeavor: nope
mahmoudimus has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Ping timeout: 264 seconds]
<zendeavor> jerome__: http://is.gd/GGNM4J
baroquebobcat has quit [Client Quit]
saarinen has quit [Quit: saarinen]
sarkis has joined #ruby
adeponte has quit [Remote host closed the connection]
Cyrus_ has quit [Quit: Cyrus.sleep()]
<jerome__> i'm now downloading the package. Do you know where i need to unpack and install it ?
gr33n7007h has quit [Quit: Changing server]
lewellyn has joined #ruby
Banistergalaxy has joined #ruby
bobajett has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jonathanwallace has joined #ruby
BRMatt has quit [Ping timeout: 276 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jerome__> ok zendeavor, i've just read this and i try it...
Kruppe has joined #ruby
dankest has quit [Quit: dankest]
atyz has quit [Quit: Leaving...]
AndChat| has quit [Ping timeout: 245 seconds]
gildo has joined #ruby
Kelet has quit [Read error: Connection reset by peer]
ffranz has quit [Ping timeout: 246 seconds]
smathieu has quit [Remote host closed the connection]
x1337807x has joined #ruby
devoldmx3 has joined #ruby
v0n has joined #ruby
<jerome__> ok, package is in the archive directory of rvm and i've gunzip it... and when rvm install the source with option --disable-binary...
<jerome__> that not works.
<coyo> delicious ruby regex http://rubular.com/r/aasGS16bOn is delicious
devoldmx has quit [Ping timeout: 240 seconds]
<popl> jerome__: "not works" is not helpful. what doesn't work?
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wenyekui has quit [Quit: WeeChat 0.3.0]
zeromodulus has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
<jerome__> it said that: "unkown ruby interpreter string component '1_9_448' "
redmenace has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
<jerome__> and that it could not detect ruby version/name...
ntus1017 has quit [Remote host closed the connection]
<jerome__> so... i do EXACLTY what it is write on link.
Kelet has joined #ruby
thomaslee has quit [Remote host closed the connection]
<jerome__> it is the good director, because inside, i can see the other ruby packages (2.0.0)
<jerome__> so directory /Users/myname/.rvm/archive/ is ok
<jerome__> when gunzip, sure, i have not the .tar.gz file, but became .tar file (right)
<jerome__> but in man rvm, there is no explication about "--disable-binary" option.
<jerome__> i'm really confuse with rvm usage. For me, it is not clear.
<bnagy> so join #rvm
<jerome__> binagy, sure it is the first thing i try
<jerome__> and you can try yourself man... that s not works
<bnagy> works fine for me
<jerome__> you CAN NOT have acces like that to this channel (same on there site online...) you need to be a member.
<bnagy> did you read what popl said about registering your nick?
<jerome__> i try again bnagy...
<jerome__> i read but mybe not understand
<jerome__> it is my first irc usage...
tommyvyo has quit [Quit:]
<popl> clearly
iliketurtles has quit [Quit: zzzzz…..]
<popl> jerome__: /msg nickserv help
<jerome__> Cannot join channel (+r) - you need to be identified with services
<popl> oh my word
<popl> jerome__: you need to register your nickname with nickserv
<popl> jerome__: you need to then identify to your account.
<jerome__> how to do this please ?
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
<jerome__> and where ?
<jerome__> hoooo... i would like to do this.
<popl> read the instructions
x1337807x has quit [Ping timeout: 246 seconds]
<coyo> jerome__, /msg NickServ REGISTER passwd email
<pontiki> even better: /msg nickserv help
wy_stack has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
<coyo> /msg NickServ REGISTER passwd recovery@email.tld
<jerome__> coyo, i send it. Now i m reading the instruction on the link popi send to me (tha,ks popi)
<popl> 18:36 < popl> jerome__: /msg nickserv help
<coyo> is how you do it
<coyo> no problem.
<popl> it helps if the intended pays attention. :)
alvaro_o has quit [Quit: Ex-Chat]
<coyo> not everyone has perfect attention span ^__^
<coyo> ruby is a great language for people who are attention-span challenged :D
os10066 has quit []
<popl> heh
binary1985 has joined #ruby
<coyo> it's why i suggest it to other artists
<jerome__> sure... not everyone was born perfect...
mercwithamouth has quit [Ping timeout: 240 seconds]
<popl> whatever
<coyo> many of my artist friends do not have the ability to focus on programming, especially low-level programming, for very long.
<coyo> aww, releasy seems to have been abandoned.
lewis has quit [Remote host closed the connection]
<popl> then practice
zeade has joined #ruby
<popl> that's all that's required
binary1985 has quit [Client Quit]
thelamest has quit [Ping timeout: 260 seconds]
<jerome__> i do low-level assembly on micro-controler... no problem with that.
thelames1 has joined #ruby
binary1985 has joined #ruby
binary1985 has quit [Changing host]
binary1985 has joined #ruby
<popl> seems to me you're just rationalizing bad practices
sambao21 has quit [Quit: Computer has gone to sleep.]
<jerome__> Is something think about himself that can go in the moon quick more than other ? no... it will not be serious.
<jerome__> humility is a really good practice.
octarine has quit [Ping timeout: 260 seconds]
xargoon has quit [Ping timeout: 260 seconds]
<pontiki> awesome jerome__
<jerome__> so gentlemen, thanks a lot for your help (really, i make an other walk ahead)
dankest has joined #ruby
dankest has quit [Read error: Connection reset by peer]
heidar has quit [Ping timeout: 260 seconds]
ziyadb has quit [Ping timeout: 260 seconds]
spacemud has quit [Ping timeout: 260 seconds]
notbrent has quit [Ping timeout: 260 seconds]
shtirlic_ has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
sambao21 has joined #ruby
is_null has quit [Ping timeout: 260 seconds]
<pontiki> *sigh*
<pontiki> always only gentlemen
Eiam has quit [Ping timeout: 260 seconds]
onewheelskyward has quit [Ping timeout: 260 seconds]
<mootpointer> pontiki: Yeah, that's a thing...
xargoon has joined #ruby
Tobarja has quit [Ping timeout: 260 seconds]
ukd1 has quit [Remote host closed the connection]
monomyth has quit [Ping timeout: 260 seconds]
spacemud has joined #ruby
is_null has joined #ruby
rupee has quit [Quit: Leaving]
monomyth has joined #ruby
tabolario has joined #ruby
bradsmith has joined #ruby
pen has quit [Remote host closed the connection]
Domon has joined #ruby
onewheelskyward has joined #ruby
bzitzow has quit [Ping timeout: 240 seconds]
Tobarja has joined #ruby
shtirlic has joined #ruby
<zendeavor> grammatically speaking, the male form is used when referring to someone whose gender is not known at time of writing, instead of him/her his/hers (since 'theirs' is explicitly incorrect when referring to an individual)
bradsmith has quit [Read error: Connection reset by peer]
bradsmith has joined #ruby
<zendeavor> but that's about possessive pronouns
<zendeavor> and company
smathieu has joined #ruby
<popl> zendeavor: we live in a patriarchal society :P
<zendeavor> sure, it just happened to bleed into grammatical constructs as well
Koven has joined #ruby
<bnagy> zendeavor: yeah I disagree pretty strongly with that
<zendeavor> this doesn't necessarily apply to "gentleman" but still
naquad has quit [Ping timeout: 260 seconds]
nug1 has joined #ruby
blip99 has quit [Ping timeout: 276 seconds]
<bnagy> they is perfectly fine as a gender neutral construction, although slightly tortured - ie you could probably always rephrase to avoid it
<bnagy> but it's absolutely preferred to 'he' for unknown gender
<jerome__> so, i'm not english. I m really happy to learn. So, that's why i accept some critics. and a good critic comes with the right use to... So, what is the correct use ?
<zendeavor> bnagy: well, it's what my english rules textbooks taught me; should i qualify it with "according to my primary education?"
<bnagy> jerome__: just don't say 'gentlemen' - use 'everyone' or something
stopbit has quit [Ping timeout: 260 seconds]
stopbit has joined #ruby
<bnagy> zendeavor: sounds like it, or 'according to XYZ'
chokesmaster has quit [Remote host closed the connection]
<zendeavor> okay, consider it amended.
<jerome__> and also, my volonty wasn't to distrub this irc channel with correct or not use of english grammar, but just to said that humility is a good way of life (this is the message in fact, i'm sorry the form unplug the sens of it)
naquad has joined #ruby
wmoxam has joined #ruby
crucify_me has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
<zendeavor> jerome__: you're doing fine, there's no need to ackowledge these inane rules as long as you get the point across
agjacome has joined #ruby
<jerome__> thank you
agjacome has quit [Client Quit]
<zendeavor> as a matter of sensitivity, do not assume the entire community is male by thanking the "gentlemen" and you're done. use a gender-neutral construct as bnagy suggests like "everyone"
felipe has quit [Ping timeout: 260 seconds]
Kov|abx has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 260 seconds]
<crucify_me> hi I'm working on rails but wanted to get people's opinions on it OR should I just try to master Ruby. some such as bna*gy don't like rails (or using it) I wonder if he/she has a point. I'm new to programming but want to be marketable and really enjoy ruby. thanks
nug1 has quit [Quit: WeeChat 0.4.1]
<fryguy> crucify_me: if you want to program rails, then program rails
endash has quit [Quit: endash]
dayepa has joined #ruby
<popl> crucify_me: don't let people tell you what to do
<popl> crucify_me: if you want to do something then do it
dawkirst has quit [Ping timeout: 260 seconds]
tomaw_ has joined #ruby
MarcWeber has quit [Ping timeout: 260 seconds]
<crucify_me> I don't know if I *want* to or not. I need to be hired eventually so need to consider that
<zendeavor> as devil's advocate - crucify_me ew rails booooo learn real programming pfft
bradhe has joined #ruby
<crucify_me> zendeavor: please elaborate thanks
MarcWeber has joined #ruby
<crucify_me> ewww!
nemesit|znc has joined #ruby
<fryguy> crucify_me: if you need to get a job, then just learn whatever and get a job
<fryguy> it's not hard
<popl> well
<popl> arguably
<crucify_me> fryguy: popl keep talking....
<bnagy> learning to actually program is a transferrable skill
dawkirst has joined #ruby
<zendeavor> the problem with monolithic frameworks such as rails is that it abstracts away (or in some cases simply introduces indirections) that hide details away from the programmer which would be extremely valuable when rails is not part of the equation
<bnagy> learning rails is not
tomaw has quit [Ping timeout: 608 seconds]
<zendeavor> that's the long and short of it.
<jerome__> ok zendeavor, i will do that :"write every one" and not "gentlemen". Sure, i'm not sexist, so i will be very happy to do it.
tgunr has quit [Quit: Nity nite]
redmenace has joined #ruby
<zendeavor> there's nothing wrong with rails, per se. but there is something wrong with learning rails before ruby proper.
<crucify_me> bnagy: that's the thing I was happier studying ruby. zendeavor well I did go through an entire ruby book but feel like I'm still lost in the wild
<zendeavor> you will be lost until you start writing sufficiently complex programs and learn how to employ the tools
<zendeavor> just like you'd probably use `for' loops, coming from languages other than ruby
<zendeavor> in ruby, those are pretty well invalidated
<jerome__> cricfy_me, i just try to use rails (and understand it). So... my first opinion is that there is a lot of pub on it (like it is the really best of the best... blablabla). And also, that it is not so easy and clear in the first step (i'm on it).
pen has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
lewis has joined #ruby
<pontiki> rails is the best at what it is
<pontiki> but not everything needs it
<zendeavor> you have to actively *apply* the knowledge you learned from the books in order to be _skilled_
<zendeavor> until then, you're just an academic
<pontiki> and not every component of rails is the best there is in that class; again, largely depending on need for use
<crucify_me> zendeavor: I came from English Literature no programming background at all.
redmenace has quit [Client Quit]
eka has quit [Quit: Computer has gone to sleep.]
<lewis> hmm
burlyscudd has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
<pontiki> hmm
bradsmith has quit [Remote host closed the connection]
<pontiki> is programming the only sort of thing people think will guarantee them a job and an income? or are there other things like that as well?
<lewis> pontiki: programming doesnt guarantee an income
<pontiki> exactly
<lewis> pontiki: but relative to others jobs I agree
<pontiki> but so many people seem to think if they learn to program, they'll get hired
becky_ has quit [Ping timeout: 264 seconds]
<crucify_me> pontiki: good call. lewis
<crucify_me> I do have a job ^
<pontiki> i'm actually asking the question i'm asking. i'm not making a point...
<lewis> pontiki: far from it, I wish
<bnagy> pontiki: well it's pretty strongly correlated with getting a job as a programmer
m104 has joined #ruby
<pontiki> which actually isn't the question i asked
<crucify_me> I have the time to learn something and I'm pretty excited by this.
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> crucify_me: that is awesome. i love this stuff. i do it for fun, for free, and for pay.
<bnagy> most of the highyl skilled vocational degrees will give you a very good chance of constant employment
<lewis> pontiki: so do i. who doesn't love it
nbouscal has joined #ruby
<bnagy> lawyer, doctor, engineer ...
<pontiki> lewis: i know lots of devs that hate what they do.
<lewis> bnagy: i agree but not for engineers
<pontiki> ah, yes, bnagy -- i think you are right
<lewis> pontiki: do they work at microsoft
<bnagy> engineer is like lawyer - you can probably always find work, just maybe not in that exact field
<pontiki> go to med school and you'll be guaranteed employment as a doctor is the myth
<sam113101> I think I'm going to become a programmer and hate it
<lewis> bnagy: I disagree, I know struggling engineers out there
<fryguy> go anywhere and be guaranteed employment is a myth
<fryguy> engineer, lawyer, doctor, whatever
<zendeavor> guaranteed employment is a myth fullstop
<pontiki> fryguy: i think the only thing that really used to apply to is nursing. but no longer
<lewis> zendeavor: exatly
<fryguy> if you are a good <insert name of profession here> then you are basically guaranteed jobs, but just being a member of some profession doesn't guarantee you shit
<pontiki> ^ fryguy
<lewis> nothing guarantee you shit
<lewis> the only guarantee thing in life is death
<crucify_me> uh oh
<pontiki> there's the old joke: "What do you call the person who graduated at the bottom of their class in med school?"
<pontiki> "Doctor"
<crucify_me> :)
mnewton has quit [Ping timeout: 246 seconds]
pipework has joined #ruby
<crucify_me> zendeavor: 's remark is what concerns me the most: you will be lost until you start writing sufficiently complex programs and learn how to employ the tools
<fryguy> crucify_me: you don't magically learn to program by reading a book or 2
<zendeavor> crucify_me: just like you'll be lost in the English world until you start writing essays and critiques of existing papers
<crucify_me> I need to move past name = "Joe Smoe"
<zendeavor> and publish your own papers
<zendeavor> until then, you're just an academic
<fryguy> you also don't magically learn to program by picking a high level dynamic language and avoiding low-level concepts.
burlyscudd has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
<fryguy> you need to learn "how to program". period. not "how to program in <insert list of parameters here>"
<sam113101> can you consider yourself a programmer even though you've never done any kind of manual memory management, low level stuff, etc.?
<fryguy> sam113101: I personally don't think so. you need to at least understand that sort of stuff
<Nilium> Probably, but it would mean you're a pretty limited programmer.
<fryguy> it might also be a matter of seniority, as Nilium suggests
<crucify_me> well I'm learning postgresql
<bnagy> sam113101: absolutely you can
<crucify_me> bnagy: sam113101 please elaborate this is what I need to hear
<Nilium> For example, I know a handful of web developers, most couldn't tell me the difference between malloc, calloc, alloca, and so on (could probably guess realloc though), but they're still programmers.
<bnagy> manual memory management is just hard, and so people think they're badass because they looked at it
<bnagy> but it really has nothing to do with programming
gnuyoga has quit [Quit: gnuyoga]
<bnagy> there are lots of compsci guys doing totally insane stuff in HLLs
<Nilium> Well, it's resource management, which plays a pretty big role in programming
baroquebobcat has joined #ruby
<bnagy> crap
<Nilium> It's less that memory is the issue and more that you should probably know about the kinds of resources you're using.
<crucify_me> some people told me to learn machine language and I thought geez that is nuts
<zendeavor> understanding the lower-level implications of your high-level programs is important, whether you have done memory management manually or not
<Nilium> The hell do they think machine language is?
Vivekananda has quit [Ping timeout: 240 seconds]
<bnagy> well it doesn't _hurt_ to learn some assembly
jonathanwallace has quit [Quit: WeeChat 0.4.0]
<zendeavor> not a bit
<Nilium> But which ASM?
<pontiki> depends
<bnagy> but it's really just to get another perspective
<sam113101> go for x86
<bnagy> x86 is a terrible choice
<pontiki> EPI is a rather drastic instruction
<bsdbandit> anyone using haml ?
<sam113101> how so?
<pontiki> HCF is too
<bnagy> unless you need it
<Nilium> I can do ARM and some x86 ASM, but I don't see much point in doing it these days.
<fryguy> bsdbandit: yes
<pontiki> bsdbandit: i use haml
<zendeavor> i disagree with anyone who says you have to know how to manage memory efficiently in order to be a programmer
<bnagy> it's a butt ugly assembly and it overcomplicated
<pontiki> it's my preferred templating lang
<Nilium> Well, certain kinds of ARM ASM.
<bnagy> I'd learn ARM, as a learning exercise
<bnagy> arm is byoootiful
<pontiki> PIC would be fun
<bnagy> well.. used to be
<bnagy> before thumb :(
<Nilium> I recommend learning x86 first and then trying ARM so you can appreciate the difference.
<Nilium> Otherwise you'll learn ARM first and then give up on x86 ASM because it sucks in comparison
<Nilium> Using it sucks, that is.
<bsdbandit> are there any good haml resources ?
<fryguy> bsdbandit: the haml website itself has full documentation
<pontiki> haml.info
<crucify_me> but if I first learned basic ruby as my first endeavor in CS, aside from continuing with ruby I should just jump to assembly?
<sam113101> no
<bnagy> so the bit where I agree with Nilium is "you should probably know about the kinds of resources you're using"
adeponte has joined #ruby
<bsdbandit> ok
sparr has joined #ruby
dhruvasagar has joined #ruby
<bnagy> so some grasp of time / space tradeoffs, some grasp of the order or algorithms
<crucify_me> bnagy: whaddya mean
<bsdbandit> yeah im a python coder looking to use only ruby for webdevelopment
<bsdbandit> right now im learning sinatra
<sam113101> crucify_me: learn ruby, get good at it, then learn something lower level like C, get good at it, then learn assembly for your favorite architecture
<bnagy> like, is this roughly order n^2 or log(n) or ...
<zendeavor> you really just should be aware of the low-level implications and account for them where more efficiency is required
<zendeavor> man i can't join the damn conversation because of this stupid lag
<pontiki> crucify_me: the elements of programming are actually not the language itself. it's like learning English by only knowing something is a noun, verb, preposition and only knowing how to string them together to get correct syntax and grammar
robustus has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
sevenseacat has joined #ruby
<pontiki> the elements of programming, like the elements of English, are the *meanings* - the semantics
Mattix has joined #ruby
<crucify_me> sam113101: yeah that is my mind: to just MASTER ruby so I can dream in a single language. pontiki good analogy
<fryguy> crucify_me: and sometime early on, read/do SICP
<Nilium> And you could liken patterns to cliches.
yfeldblum has quit [Ping timeout: 264 seconds]
<pontiki> IOW: algorithms and data structures, and how to use them to solve problems
<pontiki> Nilium: except in this case, we *like* cliches
<crucify_me> Nilium: keep talking this is how I learn
<Nilium> Well, some people do.
<Nilium> I've seen more harm done than good by people who obsess over patterns.
<pontiki> ah, yes, i can see that
mary5030 has joined #ruby
<Nilium> That said, that's not a problem with patterns.
<pontiki> but you can apply that equally to people who do everything in a patternless way
<Nilium> That's just a problem with someone getting a new hammer and seeing all the nails.
<pontiki> yes, it's a problem with knowing... well there
atyz has joined #ruby
<pontiki> nice cliche, that :)
<Nilium> CLICHES!
Synthead has joined #ruby
robustus has joined #ruby
<bnagy> I really think that telling people to learn C is an awful idea
<Nilium> Also, I always feel bad about not being better about my knowledge of algorithms.
<Nilium> I prefer to tell people to learn C++.
<pontiki> bnagy: C is still quite essential
<Nilium> Then learn C.
<bnagy> but hey. I'm in infosec, guarantees me a job for life :D
<bnagy> pontiki: how is it 'essential'?
<pontiki> right up until it doesn't
<zendeavor> Nilium: so they can appreciate how much nicer C is in comparison just like ARM vs x86 asm?
<zendeavor> ;p
<Nilium> zendeavor: Basically.
<sam113101> xD
<bnagy> pontiki: as long as there are lots of programmers writing C it does
<pontiki> linux kernel, drivers, low level performance speed ups
<Nilium> Also, really, C++ will cover most of what C will and it's got better typing.
<bnagy> pontiki: and are those things 'essential' to being a programmer?
os10066 has joined #ruby
<pontiki> oh, not at all
<bnagy> how many people are required to work on, say, drivers?
<zendeavor> one
<zendeavor> one guy
binary1985 has quit [Ping timeout: 246 seconds]
Megtastique has quit [Ping timeout: 246 seconds]
<zendeavor> one peoples.
<crucify_me> you people are funny.
<pontiki> just that "telling people to learn C is an awful idea" isn't always
<crucify_me> so hey I'm just going to master Ruby and bail on rails. I hate looking at html
<bnagy> it's always an awful idea to tell people that
<Nilium> Telling anyone that learning anything is an awful idea is bullshit, in general.
<pontiki> but "C is still essential" != "C is still essential for everyone to know"
<zendeavor> i insist that people learn C
<bnagy> it is not anawful idea for people to learn C in every case
adeponte has quit [Ping timeout: 276 seconds]
<pontiki> if someone came up to and said "I want to learn to hack the linux kernel" you say it was a bad idea to tell them to learn C?
<zendeavor> C is a great primer for understand the low-level implications of the other languagesyou'll be happily employing
<bnagy> no I would tell them it is a bad idea to work on the linux kernel
<pontiki> i think everyone should learn Lisp
<bnagy> those guys are batshit
<pontiki> as a first language
<pontiki> before their native tongue, in fact
gyre007 has quit [Remote host closed the connection]
<Nilium> I think everyone should learn Scheme, in a more specific fanboyism moment than pontiki.
ori-l has left #ruby ["Leaving..."]
<pontiki> bnagy: the kernel folks are definitely out there in the science fiction land of CS
<fryguy> that's what SICP is for
* Nilium mutters something about "down with common lisp"
<pontiki> oh, i'm agnostic on Lisp
<zendeavor> Nilium: fangirlism
<pontiki> i learned it before CL or Scheme
<Nilium> Well, if I were female it'd be fangirlism.
<crucify_me> << see moniker
fridim__ has quit [Ping timeout: 264 seconds]
<Nilium> Crucifying takes effort.
<crucify_me> !!
<zendeavor> SICP is also the greatest, i watch the lectures every year just because
<zendeavor> ...
<Nilium> Just like crucify yourself and I'll say I did it
Megtastique has joined #ruby
<crucify_me> so.... Ruby sans Rails it is !
<sam113101> I hate web dev
<pontiki> crucify_me: actually, yes
<sevenseacat> web dev is awesome.
<sam113101> it's not
<pontiki> i <3 web dev
<pontiki> sam113101: then don't do it!
<pontiki> if you do something you hate, and i mean hate as opposed to find difficult, you'll never be satisfied
<pontiki> because then life is a huge compromise
<pontiki> in which you got the short stick
<crucify_me> I'm just looking for a good job among intelligent people who skateboard
<pontiki> dude
<pontiki> skateboard shop
<Nilium> I'm not a fan of web dev, so I don't do it, and then I post complaints on Twitter about how all the job openings are for web developers
<bnagy> seems legit
<fryguy> crucify_me: if you are doing engineering just to get a good job out of it you are most likely going to fail
<Nilium> You can be like dogtown 2.0. It's like web 2.0 but you'll die in 6 years.
cads has quit [Ping timeout: 264 seconds]
<Nilium> fryguy: I've seen a lot of those sorts of folks.
<sevenseacat> so have i
<Nilium> Mostly through the CS program I used to be in.
<pontiki> seems like everyone i know who is at teh top of this game does development out of love
Inside has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
<Nilium> I just treat programming like puzzles because puzzles are fun.
<pontiki> and they are freaking PASSIONATE about it
<pontiki> and want others to be just as passionate
_helloworld_ has joined #ruby
<Nilium> And want to destroy the unbelieve- wait, no.
<pontiki> oh gosh, Nilium -- i used that exact metaphor in a recent post
<pontiki> Ia Ia
<pontiki> Cthulium
<Nilium> I've tried to stop telling people they should program because they love programming. It never gets through to the people who don't already believe it.
<Nilium> Iä Shub-Niggurath! Iä Shub-Niggurath! etc.
m104 has quit [Quit: brb]
<Nilium> I figure if you have to pick a deity, might as well pick the black goat of the woods.
Cyrus has joined #ruby
<pontiki> :)
atyz has quit [Quit: Leaving...]
<pontiki> Nilium: http://tamouse.github.io/blog/2013/08/02/programmers-creativity/ -- and skootch down to where I start blathering about "People often remark about how negative software developers are"
<bnagy> no way! Sithrak!
<Nilium> That's a surprisingly readable design.
<pontiki> hee
<crucify_me> still, every day I learn rails I forget more and more ruby
<pontiki> a tweaked bootstrap
* Nilium stares at bnagy
<pontiki> from here: http://www.adrianartiles.com/
<Nilium> Should I ask why you have this link?
<sevenseacat> crucify_me: though tbh you havent learnt much rails.
<pontiki> crucify_me: how is that possible?
fgo has joined #ruby
bradsmith has joined #ruby
banister has quit [Remote host closed the connection]
lewis has quit [Remote host closed the connection]
<crucify_me> sevenseacat: I know I've never even looked at html before so its a cluster f$*k
<sevenseacat> well html isnt rails
<crucify_me> I know but I need to know how it works or just stare at it and type it
jackjackdrpr has quit [Quit: Leaving.]
johnnyfuchs has joined #ruby
<pontiki> humm
<crucify_me> pontiki but you seem on the fence what's your slant?
<pontiki> so, if you're going to do web dev, it probaby should go without saying one should learn HTML first?
<sam113101> I'd suggest you learn ruby fully before moving to rails, then at least be able to do static websites
<Nilium> HTML's easy to learn. The annoying part is CSS.
mary5030 has quit [Remote host closed the connection]
<pontiki> yes, but CSS you can learn in cascades :)))
<Nilium> :|
<pontiki> by which i mean incrementally
<Nilium> That pun could wake the dead.
<pontiki> recognizing there is a difference between knowing enough to produce something workable, and knowing enough to knock the socks off the client
<crucify_me> pontiki: word
Megtastique has quit [Quit: Megtastique]
Lewix has quit [Remote host closed the connection]
<sevenseacat> css is fun
<sevenseacat> being able to turn some designer's psd into a shiny working response semantic etc. website is awesome
amacgregor has joined #ruby
radic_ has joined #ruby
<bnagy> ... if that's what you're into
<bnagy> ;)
<pontiki> honestly, though? i don't really think I know enough about being a true beginner at this whole thing to know how someone else should learn it
<pontiki> i've been writing software since the first moon landing
tkuchiki has joined #ruby
<sevenseacat> ive been involved in web development for about fifteen years now, its what im into :p
<pontiki> yeah
<bnagy> pontiki: uh... "first" moon landing?
<Nilium> I've only been doing this for about ten years -- mostly as a hobby -- and I've completely forgotten what it was like to even start to learn programming. Makes it weird when people ask me what they should do to start.
<pontiki> 1969, Gnubie
<pontiki> dammit
<pontiki> 1969 bnagy
amacgregor_ has quit [Ping timeout: 245 seconds]
<RubyPanther> _why's (poignant) guide is the "right way" IMO
<pontiki> i haven't read that, i probably should
<sevenseacat> i didnt like that guide
<pontiki> i liked learn you a haskell for great good
<sevenseacat> that was a good book
<RubyPanther> I learned using the "type it in and modify later" system, though. In BASIC. So I'm probably damaged.
<crucify_me> pontiki: ??
<pontiki> crucify_me: what?
<bnagy> pontiki: yeah, I know when the moon landing was :) Just wondering when the other ones were :)
<crucify_me> learn you a haskell?
<zendeavor> RubyPanther: yup, BASIC is as damaging as php ;]
zachrab_ has joined #ruby
radic__ has quit [Ping timeout: 264 seconds]
<bnagy> BASIC is awesome
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
smathieu has joined #ruby
gildo has quit [Ping timeout: 245 seconds]
<zendeavor> crucify_me: google it?
<Nilium> There are too many BASICs to make a blanket statement about 'em.
Bosox20051 has joined #ruby
Tacit_AFK is now known as TacitBlue
<crucify_me> zendeavor: ok its actually a book title
<pontiki> um, apollo 12 later in 69, 13 was a bust, 14, 15 in '71, 16, 17 in '72
<crucify_me> pontiki: you were alive in 69?
<pontiki> crucify_me: i was
<crucify_me> pontiki: I was too. eight years
tkuchiki has quit [Remote host closed the connection]
<pontiki> 11 years
<pontiki> well, turned 12
<crucify_me> pontiki: excellent
<pontiki> but i mean 11 at the first moon landing
<pontiki> and wrote a lunar lander in basic :)
<crucify_me> yeah got it
<bnagy> pontiki: well there you go
<bnagy> that's a glaring gap in my history fixed o_0
<pontiki> my brother dragged me to summer school because he wanted some calculations for his model rockets
<pontiki> i was better at maths
smathieu has quit [Ping timeout: 240 seconds]
<crucify_me> what is the big deal about Why's Poignant ?
robbyoconnor has quit [Ping timeout: 246 seconds]
<pontiki> my understanding is the whimsy of it makes learning ruby more fun
<pontiki> and it makes no assumptions about prior knowledge, supposedly
<bnagy> it has good bits about reflection and metaprogramming
ukd1 has joined #ruby
<crucify_me> cool
<bnagy> but it is pretty much insane
<bnagy> but in an endearing way
<crucify_me> but does it go to any depth? it seems like its pretty short...
<bnagy> there are lots of parts
<pontiki> and the disappearnce of _why lends to its mystery
<pontiki> you don't need volume to get deep
<pontiki> i am really appreciating shorter books these days when they're also deep
<crucify_me> ok its on my list
<pontiki> i really loved Metaprogramming Ruby -- but i would hardly recommend it as an early book
<Nilium> Speaking of short, deep books, Programming Pearls is still excellent, though not specific to Ruby.
<pontiki> Yus!
<crucify_me> pontiki well the one book I read is Well Grounded Rubyist and bits of Eloquent Ruby
<pontiki> at 250 pp, Programming Pearls is the right lenght
bzitzow has joined #ruby
<pontiki> crucify_me: i haven't read the first; the second is awesome
ukd1 has quit [Ping timeout: 240 seconds]
<crucify_me> here's the thing. I'm not even at a level when I can flesh out the truncated listings....
mootpointer has quit [Quit: Computer has gone to sleep.]
<crucify_me> pontiki: ^
<crucify_me> in Eloquent ^
nfk has quit [Quit: yawn]
_helloworld_ has quit [Remote host closed the connection]
<pontiki> crucify_me: sorry if you have already said this, have you written code yet?
<pontiki> ruby code, i mean
dmiller has joined #ruby
jonathanwallace has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
jonathanwallace has quit [Client Quit]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
nbouscal has joined #ruby
burlyscudd has joined #ruby
<sam113101> lawl
<Nilium> I find it suspicious when a company has a code of ethics that's seven pages long in small print.
bzitzow has quit [Ping timeout: 264 seconds]
<crucify_me> pontiki: just from the books. I write examples, use irb/pry, try to get a bigger picture. now I'm learning rails via the ryanBigg book, writing the tests, etc.
bradsmith has quit [Remote host closed the connection]
<pontiki> yeah, sounds good, crucify_me
<pontiki> when all that's needed is "Don't Be a Jerk"
<crucify_me> pontiki: but you're a rails guy right? I couldn't tell about 40 mins ago.
<pontiki> oh
<pontiki> crucify_me: i would say i am a tool maker and collector
brennanMKE has quit [Remote host closed the connection]
<pontiki> i don't consider myself a "rails gal" or a "ruby gal" or anything like that
burlyscudd has quit [Ping timeout: 246 seconds]
<pontiki> these are tools
<crucify_me> you like rails and get into it though?
<pontiki> they have appropriate and inappropriate uses
<pontiki> i do
eldariof has joined #ruby
<pontiki> but i'm also using sinatra and delving into backbone.js, and node.js with express as well
<pontiki> what i like to do more than anything is learn how to use stuff, and then use it
redmenace has joined #ruby
<crucify_me> cool pontiki many thanks. I guess I'm just frustrated and overwhelmed and I *do* want a new job soon. I live near silicon valley.
<pontiki> rails 2 and 3 were getting to be rather monolithic things; with rails 4 i think we're going to step more away from that. near the end of 3 people were starting to modularize applications, break things into services and the like
<pontiki> there's a lot of competition in the valley
tkuchiki has joined #ruby
<pontiki> but there's also *tons* of opportunity
<pontiki> i leved there for nearly 30 years
<pontiki> wait.. sorry, 25 years
<crucify_me> pontiki: well I'd love to live in Europe as well. Scandinavia perhaps
<pontiki> yes
<pontiki> if i were younger, i'd love to emmigrate to melbourne
mootpointer has joined #ruby
nadirvar_ has joined #ruby
<crucify_me> so pontiki I should just keep slogging through rails.? I bought the dang book
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> humm
<bnagy> pontiki: sorry we can't help you, but there's a nice island off PNG you might like
Megtastique has joined #ruby
<pontiki> Ryan's book is awesome
<pontiki> lol bnagy
<pontiki> and again, i haven't *really* got the perspective for this
nathandial has joined #ruby
<crucify_me> pontiki: why lol
<pontiki> but if i were just starting, i'd find his book overwhelming
<pontiki> i think
<pontiki> and just start doing things in ruby
<pontiki> little things
<sevenseacat> i miss melbourne
<pontiki> learning how it all works
fgo has quit [Remote host closed the connection]
<pontiki> with nothing huge in mind
<crucify_me> yeah it moves too fast: then you do this, then this then this.
<pontiki> but i don't have the pressing need to find employment, either
<sevenseacat> well do you want it to hammer on the same example route for a hundred pages?
<pontiki> but no book, ever, is going to give you enough to know how to do something
night-wandering1 has quit [Read error: Connection reset by peer]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
<pontiki> sevenseacat: i think radar's book is fabulous
<crucify_me> sevenseacat: I'm not criticizing it at all, it's just a bit overwhelming at this stage
<pontiki> i just wouldn't give it to someone learning to program for the first time
vlad_starkov has joined #ruby
<sevenseacat> oh neither would i, but i would give it to someone with a background in programming who wanted to pick up rails.
saintcajetan has quit [Ping timeout: 245 seconds]
<pontiki> as i wouldn't set them a task to write a web app either
<pontiki> yup yup
<sevenseacat> if someone was starting to learn web dev i'd tell them to get a solid foundation in html first, make stuff up statically, then make it dynamic
<sevenseacat> but no-one wants to learn with static stuff
<pontiki> no one wants to do the wax on, wax off
<pontiki> they all want to go straight to the tourney
<sevenseacat> yep
<sevenseacat> i am just old enough to get that reference :P
<pontiki> sorry
<jerome__> i'm going back here...
<pontiki> i have all these cultural references
<pontiki> and make metaphors alla time
<sevenseacat> all good lol
<crucify_me> got it sensei
<jerome__> whith my problem with wxruby (sorry, on this channeml, there is only 1 people, but in fact, noone)
nbouscal has joined #ruby
<pontiki> it was awful for me at this last job; i had a young padawan who was the most awesome young programmer
<jerome__> i arrived install with rvm a source ruby-1.9.3-p448 (ouf !)
<pontiki> but still needed to learn things about working with teams, working with management, ec
<jerome__> it was special use with --download 2 link and all so...
<jerome__> BUT
<pontiki> and all my metaphors were met by :|
wting has quit [Read error: Connection reset by peer]
<pontiki> jerome__: have you got a working ruby?
<jerome__> the bad news is that wxruby-2.0.1-darwin....gem is installed but nor works
marcdel has joined #ruby
<jerome__> yes
<jerome__> ruby works
nonprolificness2 has joined #ruby
<pontiki> YAY! **\o/**
crucify_me has quit [Remote host closed the connection]
mary5030 has joined #ruby
<jerome__> because of my arch is i386, i need to do special terminal code for call ruby...
<pontiki> consider today a victory
<jerome__> arch i386 ruby -rubygems file.rb
vlad_starkov has quit [Ping timeout: 276 seconds]
<pontiki> hmm
ziyadb has joined #ruby
<jerome__> i hope a victory is to see it works great
<pontiki> which version of os/x?
<jerome__> 10.6.8
<jerome__> i386 arch
<pontiki> hmm
<jerome__> on conventionnal mac book pro dua prc
<pontiki> my old mac has 10.5.8
kobain has joined #ruby
<jerome__> not works for me (that i do exactly)
<pontiki> this one is 10.8.4
<jerome__> i have snow leopard on it
<jerome__> sure... 10.6.8 i386 mounted
<pontiki> jerome__: try running arch i386 ruby -v
<jerome__> arch: Can't find i386 in PATH
<pontiki> waaiiit...
<pontiki> have i got that wrong?
zeropx has quit [Quit: has left the room … Or did he?]
<pontiki> oh i do
<jerome__> ruby -v is ruby-1.9.3-p448 x86_64-darwin10.8.0
<pontiki> arch -i386 ruby -v
<jerome__> so... mounted on i386 arch... i can not understand.
<jerome__> bad cpu type executable
<jerome__> it said
<pontiki> your 1.9.3 does not have a i386 part
nadirvar_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<pontiki> it's not a universal binary
wmoxam has quit [Ping timeout: 240 seconds]
<jerome__> yes, and i try to install it with dual arch like i see somewhere on internet... but command seems to works, but not... reinstall with two arch make an error .
<jerome__> so... please pontiki...
<jerome__> do you now wher i can find an universal package of ruby-1.9.3 who works prety fine ?
machuga is now known as machuga|away
<pontiki> nope
<jerome__> rooo...
<pontiki> it looks like there has been no development on wxruby since 2009
<jerome__> so far
<jerome__> which gui did you use ?
<pontiki> i seem to be experiencing deja vu
<jerome__> before, i used fox 16 (Fxruby)
<pontiki> i do not like GUIs
<jerome__> wow...
<pontiki> i try to avoid them if at all possible
Megtastique has quit [Quit: Megtastique]
<jerome__> it is a choice. but why ?
nycjv321 has joined #ruby
<pontiki> they make me remove my hands from the keyboard too often
<pontiki> and disrupt my train of thought and flow of action
<nycjv321> Is it possible to concat aliases in YAML? e.g. a: *b *c # this doesn't seem to work
<jerome__> that is what is search for...
<nycjv321> jerome__: me?
<pontiki> what is what search is for?
jonahR has joined #ruby
<jerome__> no, pontiki
TheDick has joined #ruby
* nycjv321 express relief
<pontiki> i don't understand, jerome__
io_syl has quit [Quit: io_syl]
rdegraci has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
<pontiki> nycjv321: i don't know - but you might hit up yaml.org?
<jerome__> GUI is an interface from human to computer... and for all noobs, it is great. Can use the machin without talk the langage machin... so the machin has to serve the human, and not the other way.
dhruvasagar has quit [Ping timeout: 245 seconds]
<nycjv321> pontiki: I have been reading the YAML Cookbook for Ruby and checking Stackoverflow
<jerome__> i answer no, pontiki to mycjv
<pontiki> and GUI, mouse movements, etc, do not serve me
<jerome__> yes, i understand
<pontiki> my primary way of working with the computer, to create the things i want to create is via the keyboard
heidar has joined #ruby
* nycjv321 thinks someone is a robot
notbrent has joined #ruby
popl has left #ruby [#ruby]
<pontiki> now, when i'm editing photos, music, video, yes, i use the GUI
octarine has joined #ruby
<jerome__> so you never make code for the other noobs ?
<jerome__> sure...
<pontiki> i make tools for people to use
<pontiki> i make libraries for other coders to use
<jerome__> so there is some people that use gui for other people can do it easy...
<pontiki> and if the person i'm making something for needs a GUI, i write it as a web app
<jerome__> very great job !
dhruvasagar has joined #ruby
<jerome__> and then, do you know someone who can have an idea wich GUI can be use great with ruby and can go in all OS ?
<pontiki> nopers
<pontiki> nor care i
<bnagy> web
<bnagy> swing ( jruby )
<pontiki> but have at it if you like
<jerome__> swing ?
<bnagy> mono, kind of but not really
<jerome__> what did you think about Qt4 ?
<pontiki> it's perfectly fine with me that people want to write GUI desktop apps
<pontiki> perfectly cromulent, in fact
<pontiki> but it doesn't interest me
<jerome__> "cromulent"... i don't know what is it.
<pontiki> so i'm not going to research how best to do that
<jerome__> yes, i understand.
<pontiki> it's a neologism, jerome__
<jerome__> ok
<pontiki> just means "fine, excellent, wonderful" etc
<jerome__> do you know why noone devel more wxruby for so long time ?
Kelet has quit [Read error: Connection reset by peer]
<pontiki> nope
<pontiki> but consider the number of fast moving targets
<pontiki> that's my guess
<jerome__> maybe
<pontiki> oh, and the web
mary5030 has quit [Remote host closed the connection]
<jerome__> i search a target who not moves so much...
<jerome__> a GUI target.
<jerome__> before that, you was talking about rails...
<pontiki> yah?
<pontiki> with crucify_me
JZTech101 has quit [Quit: Bye]
<jerome__> i'm beginner (the rally first step)
<jerome__> yes...
<pontiki> oh crikey, i've been talking a lot, haven't i?
chriskk has quit [Quit: chriskk]
<jerome__> and i would like to have some view from great coders
<pontiki> who says i'm great?
fgo has joined #ruby
<pontiki> talk to r0bgl33s0n
<pontiki> he's awesome
<jerome__> did you think someone new on rails can quiclky make good internet site with iot ? (good... with all tools that can see other way)
<jerome__> ?
tabolario has joined #ruby
<pontiki> no
<pontiki> not quickly, and not good
<jerome__> how long ?
JZTech101 has joined #ruby
<jerome__> not good... why ?
<pontiki> maybe by the tenth one
<pontiki> because you get neither good nor quick right out of the box
<jerome__> yes, sure.
sambao21 has quit [Quit: Computer has gone to sleep.]
<pontiki> it's like trying to win a tennis match before you've swung a racket
zachrab_ has quit [Remote host closed the connection]
<pontiki> raquet?
<pontiki> how do you spell that
<sevenseacat> racquet
<pontiki> ta
pjeide has joined #ruby
<jerome__> but you know... with C, you can make something really good... but in very long time. And with ruby, you can make something really good, but quickly.
<jerome__> that's i would talk about...
<nycjv321> jerome__: emphasis on really quickly :)
<pontiki> rails is not ruby
<pontiki> ruby is not rails
<sevenseacat> +1
nycjv321 has quit [Quit: leaving]
<sevenseacat> ruby is a *lot* more powerful and expressive than most apps written in rails
Kelet has joined #ruby
smathieu has joined #ruby
<pontiki> this also depends a HUGE amount on the person doing it
pjeide has left #ruby [#ruby]
<sevenseacat> aye
_helloworld_ has joined #ruby
<pontiki> but here we spend a lot of time talking about this stuff
<pontiki> instead of practicing
iliketurtles has joined #ruby
<pontiki> i made *nothing* today
JZTech101 has quit [Quit: Bye]
<pontiki> and that makes me feel sucky
<jerome__> yes sure...
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<pontiki> crikey
<pontiki> stop wondering what the best thing is
<pontiki> stop wondering what the worst thing is
<pontiki> stop wondering if something should be done
<jerome__> i consider this morning tried to install and see works ruby with wxruby (but... nothing)
<pontiki> stop wondering if it's going to be successful
<pontiki> break it down
<pontiki> find out why
<pontiki> get the source
<pontiki> tear it apart
<pontiki> put it together
<jerome__> and then, have some information on rails (information is the first step curcial for go somewhere... before one day die)
<pontiki> do do do
<pontiki> you find more information when you moving than when you're standing still trying to find information and figure out where you should be going
reset has quit [Ping timeout: 240 seconds]
<jerome__> no, i'm not so sure.
<jerome__> and then, it is not so logical.
smathieu has quit [Ping timeout: 276 seconds]
<pontiki> the lie of "the journey of a thousand miles begins with a single step" is the myth that you have to know what the first step is
<jerome__> i think before ran every where, you need to be sure where to run.
<pontiki> you will spend eternity thinking it out
<pontiki> and then it will be over and not done
Inside has joined #ruby
<jerome__> you make more in time with take good information before. SURE
ukd1 has joined #ruby
<pontiki> if you run everywhere, blindly, without learning, yes
<jerome__> not only information, but after action.
<pontiki> it's only data
<pontiki> until it's applied
<pontiki> then it's information
<jerome__> not only action, but before information.
<jerome__> lot of data
<pontiki> and when you look at it after the application, see what worked
<pontiki> it can become knowledge
<pontiki> and after you do this 10 thousand times
<jerome__> some people try to do, some other know.
<pontiki> it might just become wisdom
<pontiki> until then
viszu has joined #ruby
<pontiki> it's all wind
<jerome__> why not ask and listen which one know ?
<jerome__> before do ?
<pontiki> why not indeed?
<pontiki> but then what?
<jerome__> it is a sens of the word: communiation.
<pontiki> until you do something, it's all one way
<jerome__> all the life organism do like that, and YOU do the same.
<pontiki> jerome__: you cannot school me on this
<jerome__> i think i can do something here for you remember that communication has a sens.
<jerome__> why not ?
<pontiki> yes, of course, you do your homework
<pontiki> we are not communicating, are we?
<jerome__> what's homework ?
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jerome__> i'm comunicate
<pontiki> to whom?
robbyoconnor has joined #ruby
<jerome__> i serach solve my problems and ask someone who know.
<jerome__> i tru to have ionformation about someone who know rails also in a second way.
<jerome__> what's the problem with this ?
<jerome__> is it so bad to try understand ?
<pontiki> i cannot tell you what i know about rails
<pontiki> because you don't understand anything by hearing it
<jerome__> why not ?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<pontiki> "I hear and I forget, I see and I remember, I do and I understand"
<jerome__> ok, the problem is me... THAT IS WHAT YOU SAID.
<pontiki> that was teh generic you, not you specifically
<jerome__> I don't know who are you and why you are like that... but sure, it is a psychological problem.
ukd1 has quit [Ping timeout: 264 seconds]
<pontiki> enh, it's just the human condition
<pontiki> it's not a problem
<jerome__> that i answer you for your suspscions.
<pontiki> that quote is from Confuscious
osvico has quit [Ping timeout: 245 seconds]
<jerome__> the human condition is to live
<pontiki> it's been known for millenia
<pontiki> that wasn't a question
axeman- has joined #ruby
<sevenseacat> this is getting awfully philosophical
pen has quit [Remote host closed the connection]
<pontiki> see, we aren't communicating
<pontiki> because you don't understand what i'm saying
<pontiki> it is
<pontiki> vastly
<pontiki> and becoming boring
<zendeavor> language barriers are lots of fun for philosophical discussions
<jerome__> some other want to run, some other want to understand... some think they can alone not me) some other try to ask the community.And also answer when they know.
<pontiki> and really really pointless
<pontiki> shut up and talk
kotakotakota has quit [Quit: Leaving]
<jerome__> this morning, i leran to register on irc (new for me)
<zendeavor> i'm sure that means something somewhere
<jerome__> i arrived install ruby other way from rvm
_helloworld_ has quit [Remote host closed the connection]
<jerome__> i not arrived with wxruby
<pontiki> two wins
<pontiki> do you count this a useless day?
<zendeavor> super useless
<pontiki> because you haven't figured out wxruby yet?
<jerome__> yes... but why did you said i not understand you ?
<zendeavor> i'm futzing with damned ERE right now
* zendeavor hate
* zendeavor fume
nathandial has quit [Quit: Leaving.]
* zendeavor froth
<pontiki> because you count this a useless day, jerome. that is why you don't understand me.
<pontiki> but it's okay if you don't
_helloworld_ has joined #ruby
<jerome__> i not count nothing.
nathandial has joined #ruby
<jerome__> are you sure 100% i not understand you only ?
<pontiki> i am 100000% percent sure you only think you understand me
<jerome__> why do you want i count something useless or not ?
<pontiki> i don't actually care that much
<jerome__> I just see: go or not ?
kevinykchan has joined #ruby
hollyw00d has joined #ruby
<jerome__> Maybe you are to much sure... that is some of psychological problems with some humans (not all, and not all the time)
<pontiki> oh i see
<pontiki> ad hominum attacks now?
<jerome__> you are too much sure about what the other maybe know, think...etc... WHO ARE YOU ?
<jerome__> i sadi you again: HUMILITY is a good way of life.
<pontiki> where's yours?
narcan has quit [Ping timeout: 264 seconds]
<jerome__> try to learn this this day, you will not loose your time here and not do nothing like that.
<pontiki> shouting at someone to live with humility certainly doesn't model it
<pontiki> lol
rdegraci has quit [Quit: rdegraci]
<pontiki> jerome__: i really think you are talking to yourself now
<pontiki> and projecting your feelings on me
<jerome__> if you want... it is the same after that.
yhsgw has joined #ruby
<jerome__> ok...
<jerome__> NOW, i think we loose our time.
<jerome__> i loose my time now.
<pontiki> let's loose it in the wind
<pontiki> loose it to let it flow where it will
mootpointer has quit [Read error: Connection reset by peer]
<jerome__> so... thanks for your help, and not for your judgments.
hollyw00d has quit [Remote host closed the connection]
<pontiki> press your case
hollyw00d has joined #ruby
<pontiki> you're sure to win
<jerome__> here, in thailand, the sun is shining back... i go outside with my grilfriend. bye man, have a good trip on what you can do. i hope so
<pontiki> but in that winning
<pontiki> lose all
<pontiki> oh, the passive-aggressiveness just drips
sailias has quit [Ping timeout: 246 seconds]
<jerome__> go to the dictionnary to see the definition of agressiveness... and also: judgments of valors.
<jerome__> wo... and sure: humility.
<pontiki> go to the dictionary to learn the substance of passive-agressiveness
jerome__ has quit [Quit: jerome__]
<pontiki> you express your humility so weel
hollyw00d has quit [Remote host closed the connection]
kevinykchan has quit [Read error: Connection timed out]
kevinykchan has joined #ruby
<nathandial> the last 200 lines or so of chat are hilarious
* pontiki curties
<pontiki> sound and fury, signifying nothing
<nathandial> was there an actual disagreement that started all that, or was it just some sort of meta performance art
<pontiki> i'm going for the latter
<bnagy> french issues with english as a second language
ch_ has joined #ruby
<pontiki> with a whack-load of mania
chriskk has joined #ruby
bricker`LA has joined #ruby
<pontiki> for me
hollyw00d has joined #ruby
mootpointer has joined #ruby
larissa has quit [Quit: Leaving]
_helloworld_ has quit [Remote host closed the connection]
krz has quit [Quit: krz]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
bradsmith has joined #ruby
dmiller has quit [Remote host closed the connection]
hollyw00d has quit [Quit: Textual IRC Client: www.textualapp.com]
stevenrockarts has joined #ruby
hollyw00d has joined #ruby
viszu has quit [Quit: Leaving.]
bradsmith has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
Domon has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
JZTech101 has joined #ruby
NealJ has quit [Quit: :c]
ananthakumaran has quit [Quit: Leaving.]
TheDick has quit [Quit: TheDick]
KaitoKid has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
ch_ has quit [Remote host closed the connection]
hamakn_ has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
ch_ has joined #ruby
graydot has joined #ruby
JDHankle has quit [Remote host closed the connection]
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 268 seconds]
arya_ has joined #ruby
ch_ has quit [Ping timeout: 246 seconds]
apeiros_ has quit [Remote host closed the connection]
graydot has quit [Client Quit]
ntus1017 has joined #ruby
apeiros has joined #ruby
rickmasta has joined #ruby
fgo has joined #ruby
rshetty has joined #ruby
pipework has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
smathieu has joined #ruby
lewis has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
eldariof has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
Inside has quit [Ping timeout: 246 seconds]
axeman- has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
axeman- has joined #ruby
stevenrockarts has quit [Quit: stevenrockarts]
smathieu has quit [Ping timeout: 245 seconds]
b00stfr3ak has joined #ruby
uris77_ has quit [Quit: leaving]
ukd1 has joined #ruby
rickruby has joined #ruby
arya_ has joined #ruby
b00stfr3ak has left #ruby [#ruby]
justsee has quit [Ping timeout: 240 seconds]
Domon has joined #ruby
graydot has joined #ruby
io_syl has joined #ruby
ukd1 has quit [Ping timeout: 264 seconds]
lewis has quit [Remote host closed the connection]
ch_ has joined #ruby
ch_ has quit [Read error: Connection reset by peer]
nathandial has quit [Quit: Leaving.]
hollyw00d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sayan has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Eiam has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
arya_ has quit [Ping timeout: 240 seconds]
subbyyy has quit [Ping timeout: 245 seconds]
brandon_ has quit [Ping timeout: 240 seconds]
zeropx has joined #ruby
b00stfr3ak has joined #ruby
lewis has joined #ruby
tjad has joined #ruby
<tjad> Hi
arya_ has joined #ruby
browndawg has joined #ruby
bzitzow has joined #ruby
<tjad> I've run into a somewhat interesting problem with bundler ... I have a custom gem, that I have specified to be used via the :path option.. this gem always gets deleted when I do a bundle install/update
Demo_of_doom_ has joined #ruby
<tjad> I have tried reinstalling bundler, reinstalling ruby, rebuilding the gem
<tjad> I've tried moving the gem to a different path
<tjad> still, the gem persists on being removed
<tjad> problem is that when I try run the project that is using the gem, the gem isn't found, even if I replace the gem after doing a bundle install
<tjad> the bundle install log states "Using xxx (a.b.c) from source at my_path"
pallavi has joined #ruby
pallavi has quit [Remote host closed the connection]
<tjad> when I run irb, and require the gem however.. the require returns true
pallavi has joined #ruby
graydot has quit [Quit: graydot]
<tjad> so the gem is install
<tjad> but the project can't find it
brandon_ has joined #ruby
<tjad> Or, I assume bundler can't find it
<tjad> What's weirder is, this project was fine, till I restarted my environment yesterday
<bnagy> if nobody pipes up here you might want to try #rubyonrails
<bnagy> they seem to like bundler
xpirator has joined #ruby
<tjad> oki dokes
<tjad> thanks
<bnagy> from my point of view, if require works in irb it's installed
tommyvyo has quit [Quit:]
<tjad> indeed :-/
<bnagy> dunno what you mean by 'a project' that can't see it
zeade has quit [Quit: Leaving.]
<tjad> well, it's a bundler thing I guess.. because I assume that it isn't in the bundler "sandbox" env that it sets up for the project..
<tjad> The project is just some project that has a Gemfile in it for bundler to utilzie
<tjad> *utilize
milesforrest|afk is now known as milesforrest
milesforrest has left #ruby [#ruby]
nitish has quit [Remote host closed the connection]
<bnagy> stick around anyway, just tell em you're crossposting
<tjad> ok, well thank you :)
<sevenseacat> everyone likes bundler dont they :P
coderhut has joined #ruby
NsOmNiAc_ has quit [Remote host closed the connection]
jpun_ has quit [Ping timeout: 256 seconds]
_Andres has joined #ruby
gnuyoga has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
tomzx_mac has quit [Ping timeout: 256 seconds]
noop has joined #ruby
iliketurtles has joined #ruby
mickanio has joined #ruby
<mickanio> hello
mickanio has left #ruby [#ruby]
b00stfr3ak has quit [Quit: Leaving]
<pontiki> someone is bound to be contrary about it
ananthakumaran has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tommyvyo has joined #ruby
<zendeavor> i hate bundler
DonRichie has joined #ruby
zachrab_ has joined #ruby
<pontiki> zendeavor is fulfilling my predictions
<zendeavor> it was a self-fulfilling prophecy
<pontiki> mine usually are :>
<zendeavor> i've never touched blunder =[
<zendeavor> u c wut i did ther
<zendeavor> am sew kleaver
<pontiki> reap as ye sow
jfelchner has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
jpun has joined #ruby
ukd1 has joined #ruby
workmad3 has joined #ruby
<r0bgl33s0n> pontiki: thanks ;P
Lewix has joined #ruby
Lewix has joined #ruby
apeiros has joined #ruby
marcdel has joined #ruby
<r0bgl33s0n> zendeavor: bundler makes adding 1001010101010101010 million dependencies to your app a breeze =)
<r0bgl33s0n> but nah, I like it, it's great for getting people new to a project up to speed with any dependencies quickly.
cpush has quit [Read error: Connection reset by peer]
<r0bgl33s0n> and the version lock stuff for anything in production
<r0bgl33s0n> rails app
Dorky- has joined #ruby
<bnagy> I don't get why I would use it as opposed to putting dependencies in my gemspec
<bnagy> not making a point, I honestly don't know
<bnagy> never looked into bundler
KaitoKid has quit [Quit: HydraIRC -> http://www.hydrairc.com <-]
<r0bgl33s0n> bnagy: yeah, i hear you, but have you tried to install development dependencies with rubygems before?
<r0bgl33s0n> its weird
<r0bgl33s0n> and there's also no locking
<tjad> bnagy: that is an interesting point :?
<pontiki> err. what am i being thanked for?
<bnagy> saying he's awesome like 2 hours ago
<r0bgl33s0n> pontiki: you said i was awesome way up there
<tjad> but bundler allows you to have a project with gems not related to one particular gem
<pontiki> oh
bzitzow has quit [Ping timeout: 264 seconds]
<pontiki> you are welcome
<pontiki> tjad: i admit i don't know why it's doing that
<pontiki> but i also have never done what you're trying to do
<bnagy> r0bgl33s0n: well I only have one gem with a dev dependency and it's only test-unit
<bnagy> so no :)
<r0bgl33s0n> bnagy: when you install development dependencies of a gem (anything in the 'development' group) it'll install all the development dependencies of any immediate dependencies(if that makes sense)
<r0bgl33s0n> its weird
<r0bgl33s0n> for it to work for rails you'd need to make it an app and yeah the gemspec/rubygems as is probably isnt a good solution
<r0bgl33s0n> well sure if your dependencies are that light you dont need it
<r0bgl33s0n> i usually have a few gems like rake/yard/redcarpet
<r0bgl33s0n> pryh
<r0bgl33s0n> pry*
<bnagy> I see
apeiros has quit [Remote host closed the connection]
<r0bgl33s0n> when i said anything in the development group i was comparing to bundler but meant installing dependencies declared via add_development_dependency
<tjad> thanks pontiki.. I am amazed .. it used to work .. for 2 sprints now .. about a month, this has been working ... and all of a sardine .. it stops :-/
<r0bgl33s0n> is this for real
<r0bgl33s0n> oh nvm
<r0bgl33s0n> tjad: that sounds like a bundler bug
smathieu has joined #ruby
<r0bgl33s0n> maybe?
zoee has joined #ruby
<r0bgl33s0n> ive never seen that happen yet, i use path: now & then as well
<pontiki> can you bisect to a point it works again, by any chance?
<r0bgl33s0n> its usually for a short time
rickmasta has quit [Quit: Leaving...]
<tjad> r0bgl33s0n: indeed :-/ I have also tried to install an older version of bundler :-/ perhaps I'll try an even older version
spike|spiegel has quit [Quit: WeeChat 0.4.1]
<r0bgl33s0n> yeah or try what pontiki said, maybe something changed
<r0bgl33s0n> maybe the gem is deleting itself :S
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<r0bgl33s0n> include SelfDestruct
<r0bgl33s0n> but im not sure, it could be a lot of things
<r0bgl33s0n> oh
justsee has quit [Quit: leaving]
<r0bgl33s0n> did you run the bundler tests?
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
reset has joined #ruby
<r0bgl33s0n> from their repo
justsee has quit [Client Quit]
<tjad> Hmm haven't, will take a look
<tjad> thanks
<r0bgl33s0n> nah
<tjad> r0bgl33s0n: here is a gist of exactly what I am doing https://gist.github.com/Tjad/6171522
<r0bgl33s0n> it wont help sorry :)
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<tjad> :S
<r0bgl33s0n> a long time ago when you ran the bundler tests it could wipe your gems
<r0bgl33s0n> i just thought maybe you did that
<r0bgl33s0n> somehow
<tjad> ah
<r0bgl33s0n> looking at gist
<r0bgl33s0n> ah i see
<r0bgl33s0n> your path isnt quite right
<tjad> not that I can start up a new irb, and require 'core-client' and it will return true
<r0bgl33s0n> try print what you pass as the path to the terminal
smathieu has quit [Ping timeout: 240 seconds]
justsee has quit [Client Quit]
<tjad> ok
<pontiki> see, i'm thinking..
justsee has joined #ruby
<pontiki> since your irb requires work?
<pontiki> something may be out of order
<pontiki> still don't understand disappearing .gem
<r0bgl33s0n> __FILE__ is the path to the Gemfile.
<r0bgl33s0n> you wanna provide a specific gem directory
<r0bgl33s0n> like qid_messaging
<r0bgl33s0n> qpid*
<pontiki> is that what File.expand_path('../gems/', __FILE__) is doing?
<r0bgl33s0n> not quite
<r0bgl33s0n> __FILE__/../gems/
<r0bgl33s0n> is what that expands to
<r0bgl33s0n> i think
<r0bgl33s0n> >> File.expand_path("/foo/bar", __FILE__)
<eval-in> r0bgl33s0n => "/foo/bar" (https://eval.in/41095)
<r0bgl33s0n> >> File.expand_path("/foo/bar", "bleh")
<eval-in> r0bgl33s0n => "/foo/bar" (https://eval.in/41096)
<r0bgl33s0n> >> File.expand_path("/foo/bar", "bleh/bar")
<eval-in> r0bgl33s0n => "/foo/bar" (https://eval.in/41097)
narcan has joined #ruby
ntus1017 has quit [Remote host closed the connection]
<r0bgl33s0n> weird
<r0bgl33s0n> doesnt work in irb
<r0bgl33s0n> or eval
spike|spiegel has joined #ruby
<r0bgl33s0n> but yeah it prepends
<tjad> r0bgl33s0n: I've added a comment to the gist, which contains the root of the project, wondering if what I have done is actually correct
<tjad> thing is.. when I was setting up the file.. when the gem couldn't be found, bundler would complain about it
<r0bgl33s0n> ah it doesnt work like that
<r0bgl33s0n> you provide a directory
<r0bgl33s0n> with a gemspec
<r0bgl33s0n> not a packed gem
<r0bgl33s0n> not the .gem file
<pontiki> oh it probably unpacked the .gem and got rid of it
<tjad> I see
<pontiki> that's a guess
<r0bgl33s0n> gem unpack *.gem
<r0bgl33s0n> rm *.gem
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
<r0bgl33s0n> and see how that goes
<r0bgl33s0n> in the gems/ directory
<r0bgl33s0n> make sure the unpack works first
<r0bgl33s0n> so dont delete until you confirm you have a directory there
<r0bgl33s0n> mkdir qpid-messaging; gem unpack -t=qpid-messaging
<r0bgl33s0n> mkdir qpid-messaging; gem unpack --target=qpid-messaging
<r0bgl33s0n> no shorthand for it
<tjad> ok
<tjad> trying
d2dchat has joined #ruby
d2dchat has quit [Read error: Connection reset by peer]
<r0bgl33s0n> im gotta sleep soon
<r0bgl33s0n> i can hang for 20 more
d2dchat has joined #ruby
marcdel has joined #ruby
<r0bgl33s0n> update the gem file to point at
<r0bgl33s0n> "../gems/qpid-messaging"
veer has joined #ruby
veer is now known as Guest37538
Nahra has quit [Quit: leaving]
<tjad> ok, i've done that, but got the same results :-s
_veer has quit [Ping timeout: 264 seconds]
<r0bgl33s0n> can you paste
<r0bgl33s0n> tree gems
<tjad> but that was an interesting exercise
DonRichie has quit [Quit: Verlassend]
<tjad> k it's on gist
browndawg has quit [Ping timeout: 264 seconds]
<r0bgl33s0n> ok
<r0bgl33s0n> few problems
<r0bgl33s0n> its nested
<r0bgl33s0n> move everything in qpid_messaging-0.20.2/* into qpid-messaging
<r0bgl33s0n> next problem, that gem has no gemspec file attached to it. bundler will try to guess, so fix ^ and try again.
<r0bgl33s0n> paste the contents of lib/ as well please
<r0bgl33s0n> for bundle to autoload that gem, you need lib/qpid-messaging.rb
<tjad> r0bgl33s0n: hmm doesn't seem to spit out a gemspec :-/ Have pasted contents of the qpid-messaging directory though
pallavi has quit [Ping timeout: 264 seconds]
<r0bgl33s0n> i need to see inside lib/
<tjad> r0bgl33s0n: sorry, that's a recursive list of the gems folder
<r0bgl33s0n> can you repaste the contents of gems/
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<r0bgl33s0n> where? i cant see it
<tjad> on the gist
<r0bgl33s0n> oh
<r0bgl33s0n> qpid_messaging
<r0bgl33s0n> great
<tjad> ha I see
<r0bgl33s0n> ok
<r0bgl33s0n> add this to the gemfile
<r0bgl33s0n> require: "qpid_messaging"
<tjad> didn't add that comment
<tjad> k, it's there now
<r0bgl33s0n> try start your app
pen has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
coderhut has quit [Quit: Page closed]
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
nathandial has joined #ruby
<tjad> wow, even doing that explicit require, I STILL get the same result
<tjad> hmm
<r0bgl33s0n> gem "qpid-messaging", path: "../gems/qpid-messaging", require: "qpid_messaging"
<tjad> something else must be broken
<r0bgl33s0n> this is the exact line you should have
<r0bgl33s0n> please try that line
zachrab_ has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Ex-Chat]
<r0bgl33s0n> you should also have ../gems/qpid-messaging/lib etc, no qpid-messaging-0.20.0 or whatever it was
<r0bgl33s0n> i didnt mean a literal require, it was a key in a hash, see ^
dhruvasagar has quit [Ping timeout: 245 seconds]
<tjad> yeah
bigkevmcd has joined #ruby
dhruvasagar has joined #ruby
<r0bgl33s0n> if you tick all those boxes, there's no reason bundler can't autoload that gem unless you need to create a gemspec yourself. but you were doing a few things wrong to begin with.
chriskk has quit [Quit: chriskk]
<r0bgl33s0n> you need a unpacked gem with a gemspec (bundler will try to build one if there isn't one)
<r0bgl33s0n> to build a gemspec, not a gem
ukd1 has quit [Remote host closed the connection]
ksmth has joined #ruby
<r0bgl33s0n> path: .. is normally used when you are developing a dependency in parallel to the project you're working on, so you want to bring in those changes without releasing a new version.
<r0bgl33s0n> when everything is ready to go and QA'ed, you release and path: goes away.
codecop has joined #ruby
<r0bgl33s0n> if you want "private" gems, maybe look at a gem server
<r0bgl33s0n> there is hosted solutions
<tjad> r0bgl33s0n: yeah, this gem is actually an apache gem, which had a bug in it, we added a fix, but for that to get in to apache .. hmm gonna be a while I think
<r0bgl33s0n> makes sense
himsin has joined #ruby
<r0bgl33s0n> why not a git repo?
<r0bgl33s0n> doesnt matter too much
<r0bgl33s0n> but yeah, for bundler to auto-require you'll need to rename gpid_messaging.rb to gpid-messaging.rb or add the require: key/value combo to tell bundler you're breaking with convention (gem name being the same as for require)
<tjad> Hmm, this is happier, at least it is complaining about things now .. but still not entirely happy.. will play around and see :) Thank you VERY MUCH for your help!!
<r0bgl33s0n> youre welcome
Kruppe has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
dagobah has joined #ruby
redmenace has quit [Ping timeout: 264 seconds]
Senjai has quit [Quit: "Girlfriend Needs Me :/"]
wallerdev has quit [Quit: wallerdev]
nathandial has quit [Quit: Leaving.]
pen has quit [Remote host closed the connection]
relix has joined #ruby
ebanoid has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
pen has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
noop has quit [Ping timeout: 245 seconds]
pallavi has joined #ruby
noop has joined #ruby
Ciscoridze has joined #ruby
noop has quit [Client Quit]
wallerdev has joined #ruby
lele has joined #ruby
noop has joined #ruby
rshetty has quit [Quit: Sleeping]
<optimusprimem> plis, what is this '?h' in "hello".include? ?h #=> true
<pontiki> >> CONST = "a constant"; CONST = "a changed constant"
<eval-in> pontiki => /tmp/execpad-5050df7d019b/source-5050df7d019b:2: warning: already initialized constant CONST ... (https://eval.in/41124)
rickmasta has joined #ruby
byprdct has joined #ruby
browndawg has joined #ruby
byprdct has quit [Max SendQ exceeded]
narcan has joined #ruby
winny has left #ruby ["Textual IRC Client: www.textualapp.com"]
rshetty has joined #ruby
<optimusprimem> plis, what is this '?h' in "hello".include? ?h #=> true <<-- http://ruby-doc.org/core-2.0/String.html#method-i-empty-3F
justsee has quit [Ping timeout: 264 seconds]
<pontiki> ?h is a way of designating a single character
<pontiki> same as 'h'
Kabaka has quit [Ping timeout: 240 seconds]
<optimusprimem> thanks
<pontiki> nw
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
e3r98gh35t has joined #ruby
<optimusprimem> pontiki, but I try with: a = 'Mike' if a ?M puts 'true' and return is: unexpected tIDENTIFIER, expecting ':' puts 'ok'
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> please paste exact code
skepti has joined #ruby
pen has quit [Remote host closed the connection]
<pontiki> because what you pasted is bad
<optimusprimem> ok a moment
<bnagy> if a ?M <- this sentence no verb
Kabaka has joined #ruby
<bnagy> also imho it's time for ?M to die. It's an old thing that was needed between 1.8 and 1.9 afair
<bnagy> when single elements of a string would produce a char code not a string
<bnagy> 18>> ?M
<eval-in> bnagy => 77 (https://eval.in/41136)
<bnagy> 19>> ?M
<eval-in> bnagy => "M" (https://eval.in/41137)
jprovazn has joined #ruby
<bnagy> just use 'M'
smathieu has joined #ruby
justsee has joined #ruby
justsee has quit [Client Quit]
<pontiki> i think i'd agree
Guest37538 has quit [Changing host]
Guest37538 has joined #ruby
Guest37538 is now known as _veer
<pontiki> str.include? ?s
<pontiki> is just faulty
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has quit [Client Quit]
<pontiki> and, holy kraken, try this: str.include? ??
<pontiki> that's just unreadable
justsee has joined #ruby
NealJ has joined #ruby
tommyvyo has quit [Quit:]
<pontiki> p str.include? ?? ? 'what?' : 'blah'
<bnagy> lol
<optimusprimem> lol
tommyvyo has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
tommyvyo has quit [Ping timeout: 245 seconds]
<optimusprimem> look =)
<optimusprimem> p = ("hello".include? ?h) ? 'bla1' : 'bla2
bousquet has joined #ruby
<optimusprimem> return: bla1
iliketurtles has joined #ruby
<bnagy> that's a relief
vishal_ has joined #ruby
jarray52 has left #ruby [#ruby]
thomaslee has joined #ruby
BizarreCake has joined #ruby
pen has joined #ruby
fgo has quit [Remote host closed the connection]
tomaw_ is now known as tomaw
vishal has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
ephemerian has joined #ruby
oddalot has quit [Ping timeout: 256 seconds]
frytalent has joined #ruby
pranny has joined #ruby
frytalent has left #ruby [#ruby]
Synthead has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
ehc has joined #ruby
cpush has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
GeissT has joined #ruby
davidgman has joined #ruby
Lewix has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
ehc has quit [Client Quit]
maxmanders has joined #ruby
felipe has joined #ruby
Judge has joined #ruby
Judge has left #ruby [#ruby]
fgo has joined #ruby
pranny1 has joined #ruby
Matriks has joined #ruby
sayan has joined #ruby
aganov has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
pranny has quit [Ping timeout: 264 seconds]
pranny1 has quit [Read error: Connection reset by peer]
pranny has joined #ruby
echevemaster has quit [Quit: Leaving]
tjad_ has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
Al_ has joined #ruby
tommyvyo has joined #ruby
rshetty has quit [Quit: Sleeping]
tjad has quit [Ping timeout: 276 seconds]
<reactormonk> what's a sweet way to clean up stuff like \n\n\n\n\n to \n ?
matled has quit [Read error: Operation timed out]
camilasan has joined #ruby
matled- has joined #ruby
<bnagy> squeeze?
rickmasta has quit [Quit: Leaving...]
matled- is now known as matled
<bnagy> might do more than you want though
mklappstuhl has joined #ruby
<sevenseacat> huh, i hadnt heard of squeeze before
<sevenseacat> nice
<canton7> gsub(/\n+/, "\n")
<sevenseacat> http://apidock.com/ruby/String/squeeze i love the note.
dawkirst has joined #ruby
<canton7> hah!
timonv has joined #ruby
narcan has joined #ruby
skepti has quit [Quit: Leaving]
msch has quit [Ping timeout: 264 seconds]
lurch_ has joined #ruby
bousquet has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 240 seconds]
gnuyoga has quit [Ping timeout: 245 seconds]
linux_noob_666 has quit [Remote host closed the connection]
tacos1de has joined #ruby
tommyvyo has quit [Quit:]
linux_noob_666 has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
marcdel has joined #ruby
msch has joined #ruby
gnuyoga has joined #ruby
wallerdev has quit [Quit: wallerdev]
ephemerian has quit [Quit: Leaving.]
io_syl has quit [Quit: io_syl]
marr has joined #ruby
marcdel has quit [Ping timeout: 246 seconds]
redmenace has joined #ruby
reset has quit [Quit: Leaving...]
tommyvyo has quit [Quit:]
maz-dev has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
redmenace has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
tommyvyo has joined #ruby
jaimef has quit [Ping timeout: 264 seconds]
jonkri has joined #ruby
lewis has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
wesside has joined #ruby
yfeldblum has joined #ruby
fuzzy has joined #ruby
colonolGron has joined #ruby
filipe_ has quit [Ping timeout: 240 seconds]
wesside has quit [Client Quit]
jaimef has joined #ruby
blaxter has joined #ruby
barratt has joined #ruby
clocKwize has joined #ruby
narcan has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
threesome has joined #ruby
smathieu has joined #ruby
barratt has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
mneorr has quit [Ping timeout: 276 seconds]
kek has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
flou has joined #ruby
eliasp has quit [Read error: Operation timed out]
sayan has joined #ruby
vishal has joined #ruby
troessner has joined #ruby
xavier23 has quit [Quit: xavier23]
eliasp has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Read error: Connection reset by peer]
jfelchner has quit [Quit: jfelchner]
hamakn has joined #ruby
vishal_ has quit [Ping timeout: 264 seconds]
ayaz has joined #ruby
timonv has quit [Remote host closed the connection]
jfelchner has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
eliasp_ has joined #ruby
filipe_ has joined #ruby
vlad_starkov has joined #ruby
eliasp has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
himsin has quit [Quit: himsin]
senayar has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
senayar has joined #ruby
Dorky- has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
pallavi has quit [Quit: Leaving]
ferdev has quit [Quit: ferdev]
eliasp_ has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
niceguyjames has joined #ruby
shaunbak_ has joined #ruby
pupoque_ has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
dhruvasagar has joined #ruby
camilasan has quit [Remote host closed the connection]
rbento has joined #ruby
noname001 has joined #ruby
marcdel has joined #ruby
timonv has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
TacitBlue is now known as Tacit_AFK
jmeeuwen has joined #ruby
eliasp has joined #ruby
gnuyoga_ has joined #ruby
senayar_ has joined #ruby
YaNakilon has quit [Ping timeout: 264 seconds]
emptyn1ne has joined #ruby
gnuyoga has quit [Ping timeout: 240 seconds]
bjhaid has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
emptynine has quit [Ping timeout: 240 seconds]
gnuyoga_ is now known as gnuyoga
Dwarf has quit [Ping timeout: 240 seconds]
adamholt_ has quit [Ping timeout: 240 seconds]
Dwarf_ is now known as Dwarf
mikecmpbll has joined #ruby
Dwarf- has joined #ruby
bjhaid has joined #ruby
senayar_ is now known as senayar
ewnd9 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
adamholt has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
justsee has quit [Ping timeout: 246 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
camilasan has joined #ruby
jonahR has quit [Quit: jonahR]
robustus has quit [Ping timeout: 264 seconds]
YaNakilon has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics`away is now known as elaptics
Deele has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
barratt has joined #ruby
nomenkun has joined #ruby
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
St_Marx has quit [Quit: Leaving]
ferdev has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
goodgame has joined #ruby
xavier23 has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
d2dchat has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Demo_of_doom_ has quit [Remote host closed the connection]
jerius has joined #ruby
smathieu has joined #ruby
camilasan has quit [Remote host closed the connection]
rshetty has quit [Quit: Sleeping]
camilasan has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lkba has joined #ruby
klaut has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
mneorr_ has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
ahawkins has joined #ruby
ahawkins has quit [Client Quit]
tacos1de has quit [Ping timeout: 240 seconds]
trepidaciousMBR has joined #ruby
tacos1de has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
nari has quit [Ping timeout: 245 seconds]
ahawkins has joined #ruby
Lewix has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
ahawkins has quit [Client Quit]
ahawkins has joined #ruby
ecart has joined #ruby
hanmac has joined #ruby
decoponio has joined #ruby
lurch__ has joined #ruby
ahawkins has quit [Client Quit]
ahawkins has joined #ruby
ahawkins has quit [Client Quit]
gstamp has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
ahawkins has joined #ruby
colonolGron has quit [Quit: Lost terminal]
flou has quit [Ping timeout: 276 seconds]
dawkirst has joined #ruby
lurch_ has quit [Ping timeout: 264 seconds]
lurch__ is now known as lurch_
St_Marx has joined #ruby
fixl has joined #ruby
relix has joined #ruby
stef_204 has joined #ruby
idoru has quit [Read error: Connection reset by peer]
idoru has joined #ruby
jerius has quit [Quit: jerius]
tommyvyo has quit [Quit:]
AndChat| has joined #ruby
Zai00 has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 246 seconds]
eka has joined #ruby
s2r2 has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
tvw has joined #ruby
<s2r2> hello #ruby. Beginner question: If I git clone a gem that I want to fix a bug in, how can I run (i.e. test) it? (using RVM if that matters)
ephemerian has joined #ruby
ntus1017 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
lurch_ has quit [Ping timeout: 264 seconds]
lurch_ has joined #ruby
jerius has joined #ruby
zeromodulus has quit [Remote host closed the connection]
<canton7> s2r2, 'gem build filename.gemspec; gem install generatedGemfile.gem'. There's probably a rake task in the gem's Rakefile which does something similar
vince_prignano has joined #ruby
<s2r2> canton7: thanks
_JamieD_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
emergion has joined #ruby
axeman- has quit [Ping timeout: 264 seconds]
axeman- has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
jfelchner has quit [Quit: jfelchner]
sevenseacat has left #ruby [#ruby]
apeiros has joined #ruby
banister has joined #ruby
pygospa has quit [Quit: leaving]
dhruvasagar has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran2 has joined #ruby
jerius_ has joined #ruby
ananthakumaran has quit [Ping timeout: 264 seconds]
redmenace has joined #ruby
mneorr_ has quit [Ping timeout: 264 seconds]
jerius has quit [Ping timeout: 246 seconds]
xavier23 has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 246 seconds]
redmenace has quit [Ping timeout: 264 seconds]
Guest33067 has joined #ruby
khushildep has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
St_Marx has quit [Quit: Leaving]
r4nd0m1 has joined #ruby
companion is now known as Companion
zarubin has joined #ruby
maasdesigner1 has joined #ruby
maasdesigner1 is now known as maasdesigner
rdark has joined #ruby
m8 has joined #ruby
ephemerian has quit [Quit: Leaving.]
smathieu has joined #ruby
ewnd9_ has joined #ruby
yhsgw has quit [Ping timeout: 245 seconds]
axeman- has quit [Ping timeout: 240 seconds]
axeman- has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
BRMatt has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
smathieu has quit [Ping timeout: 264 seconds]
fermion has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has quit [Quit: Leaving]
Guest33067 has quit [Ping timeout: 245 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
pen has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
mercwithamouth has joined #ruby
dweeb has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
Dwarf_ has joined #ruby
BizarreCake has joined #ruby
Hien has quit [Ping timeout: 264 seconds]
i42n has joined #ruby
Dwarf- has quit [Ping timeout: 240 seconds]
<i42n> hey, I have an array and want to use only the first 10 elements of it. How can I cut off the rest?
<Nilium> Is there something wrong with slicing it?
FDj has quit [Ping timeout: 248 seconds]
yhsgw has joined #ruby
<Nilium> Or just iterating over a range?
<i42n> I need something like: smaller_array = big_array.get_first_elements(10)
realDAB has joined #ruby
<Nilium> That doesn't answer my questions.
<Nilium> What did you try?
xavier23 has joined #ruby
yhsgw has quit [Client Quit]
AlSquire has joined #ruby
AlSquire has quit [Remote host closed the connection]
freeayu has joined #ruby
<waxjar> you want #first(10), have a look at the docs in the future: http://ruby-doc.org/core-1.9.3/Array.html
<i42n> waxjar: perfect! thanks
<Nilium> http://ruby-doc.org/core-2.0/Array.html ← Or that, if you're on 2.0, because you should be.
lurch_ has quit [Read error: Connection reset by peer]
lurch_ has joined #ruby
himsin has joined #ruby
AlSquire has joined #ruby
ananthakumaran2 has quit [Read error: Connection reset by peer]
Hien has joined #ruby
rickmasta has joined #ruby
fgo has joined #ruby
FDj has joined #ruby
thomaslee has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
wald0 has joined #ruby
lkba has joined #ruby
i42n has left #ruby [#ruby]
Spooner has joined #ruby
emergion has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lurch_ has quit [Read error: Connection reset by peer]
lurch__ has joined #ruby
maasdesigner has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
tjad_ has quit [Quit: No Ping reply in 180 seconds.]
tjad has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
ferdev has quit [Quit: ferdev]
lurch__ has quit [Read error: Connection reset by peer]
lurch_ has joined #ruby
ismlages has joined #ruby
swistak35 has quit [Ping timeout: 246 seconds]
xcv has joined #ruby
rickmasta has quit [Quit: Leaving...]
ferdev has joined #ruby
camilasan has quit [Remote host closed the connection]
ecart has quit [Quit: CyberScript - O único script que cuida de sua mulher enquanto o ricardão não chega. (www.cyberscript.org)]
tehKitten has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
tehKitten has joined #ruby
browndawg has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
xpirator has quit [Quit: Leaving...]
vishal has quit [Remote host closed the connection]
St_Marx has joined #ruby
xcv_ has joined #ruby
jbpros has joined #ruby
xcv has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
ananthakumaran has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
ananthakumaran1 has joined #ruby
hanmac has quit [Quit: Leaving.]
ananthakumaran1 has quit [Client Quit]
ananthakumaran1 has joined #ruby
arya_ has joined #ruby
jokke has joined #ruby
haukur has joined #ruby
jim0thy_ has joined #ruby
Domon has quit [Remote host closed the connection]
<haukur> I'm having an issue installing a gem via bundle install. This is the error message: https://gist.github.com/hph/c50315c90e53be1dec1c
ananthakumaran has quit [Ping timeout: 245 seconds]
<haukur> what could this possibly be?
ntus1017 has quit [Remote host closed the connection]
cdelo has joined #ruby
sanav has joined #ruby
<tjad> what happens when you do a gem install torquebox-server -v '2.3.0'
kaspergrubbe has joined #ruby
nonprolificness2 has quit [Quit: nonprolificness2]
<haukur> tjad: I had tried that yesterday and it did not work, I'm running it again now to see what it outputs
<tjad> ok
<haukur> it says: invalid gem: package metadata is missing in /home/admittor/Admittor/torquebox/jruby/lib/ruby/gems/shared/cache/torquebox-server-2.3.0-java.gem
<tjad> haukur: it's probably a dependency issue
<tjad> ah
<tjad> hmm
shevy has quit [Quit: ""]
eka has joined #ruby
<haukur> I've tried running gem update --system, it's already the newest version
motto has joined #ruby
adambeynon has joined #ruby
wald0 has quit [Ping timeout: 264 seconds]
subbyyy has joined #ruby
intuxicated has quit [Read error: No route to host]
m8 has quit [Read error: Connection reset by peer]
kohn15 has joined #ruby
<tjad> haukur: I think I read the post you did, did you try deleting the cached gem :?
kohn15 has quit [Client Quit]
wald0 has joined #ruby
<tjad> rm /home/admittor/Admittor/torquebox/jruby/lib/ruby/gems/shared/cache/torquebox-server-2.3.0-java.gem
vlad_starkov has joined #ruby
intuxicated has joined #ruby
<sanav> hello guys ! i want to make a chatting software using BOT and shoes .What i want to achieve : "to chat with application" . Suppose i write !help it show me help command and many other things .Please tell me is their any gem for making desktop bot ?
monkegjinni has joined #ruby
<waxjar> the shell? :p
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
ephemerian has joined #ruby
<sanav> is my question understandable ?
vlad_starkov has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
monkegjinni has quit [Remote host closed the connection]
osvico has joined #ruby
vlad_starkov has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 246 seconds]
<sanav> (^.^) any one here ?
intuxicated has quit [Read error: No route to host]
<apeiros> no
<sanav> apeiros: ok
<apeiros> why do you talk to me? I'm not here!
monkegjinni has joined #ruby
anay has joined #ruby
vlad_starkov has joined #ruby
<sanav> apeiros: (^.^) ok but i don't want to waste your time .My question is very stupid
<tjad> guess when apeiros gets back you can ask him how he made his bot - I assume he would have used ruby to make a bot
machuga|away is now known as machuga
<tjad> sanav: your question isn't stupid, but your requirements aren't clear either
<sanav> tjad: ok .
<sanav> apeiros: will you please tell me name of gem for making desktop bot ?
<tjad> i mean, waxjar's response is perfectly valid ...
<tjad> sanav: what do you mean by a desktop bot ..
FDj has quit [Ping timeout: 276 seconds]
<tjad> gui ? shell ?
<tjad> must you integrate it to IRC
<sanav> tjad: GUI (not shell)
DrCode has quit [Ping timeout: 240 seconds]
RonScagz has joined #ruby
<sanav> tjad: i already written i want to use shoes (GUI gem) .LOL ! sorry
realDAB has quit [Quit: realDAB]
<tjad> ah I see :)
<tjad> no idea what shoes is :P
rare-felt40 has joined #ruby
<sanav> tjad: oki ! it happens ;) .Can you tell me name of gem for making desktop gem ? I want to make it for my gf .Hehe ;)
jerius_ has quit [Ping timeout: 264 seconds]
hanmac has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<sanav> what should i do ?
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
DrCode has joined #ruby
jonathanwallace has joined #ruby
dEPy has joined #ruby
sanav has quit [Quit: Page closed]
dodosan has joined #ruby
dodosan has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
<haukur> tjad: thanks :)
<tjad> :)
Neomex has joined #ruby
Neomex has quit [Client Quit]
arya__ has joined #ruby
krz has quit [Quit: krz]
haukur has quit [Quit: leaving]
jerius has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
dutchruby has joined #ruby
<dutchruby> Hi
mklappstuhl has quit [Remote host closed the connection]
\du has joined #ruby
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
smlgs has quit [Read error: Connection reset by peer]
cj3kim has quit [Remote host closed the connection]
<\du> hello, if i have something like that foo = "bar" how i should use it like an index? per example myhash[:bar] == myhash[foo] ? myhash[:+foo} ?
arya__ is now known as arya_
<\du> maybe foo, should be, foo = ':' + 'foo'? and later myhash[foo] ?
<dutchruby> Hi Du, don't have the answer to that, just starting out with Ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<\du> me too, but because i am using Chef that create like script in ruby
<dutchruby> Do you know how i can get an active navigation class working in Middleman static generator
<\du> sorry, i don't have idea :1
davidgman has left #ruby [#ruby]
<dutchruby> i am searching all week now and still don't got it running, everything works but just the nav doesn't
FDj has joined #ruby
<\du> :1
<dutchruby> What is Chef for a system anyways?
amacgregor has joined #ruby
jbpros has quit [Quit: jbpros]
<\du> it's a sysadm framework, actually i am with AWS (Amazon Cloud) OpsWorks that use Chef
<\du> and do you create like script to set up a machine in different lifecycle
<dutchruby> Does amazon use Ruby over Php? :)
squeeb has joined #ruby
ExxKA has joined #ruby
<\du> Chef use ruby to create the "cookbook"
<\du> that it's Chef http://www.opscode.com/chef/
<\du> i am php development actually ;p
<dutchruby> ah i see its get used by everone, most people say php is just better and easier then ruby
<dutchruby> how come that you are working in ruby now if you're coming from php?
dhruvasagar has quit [Read error: Connection reset by peer]
<\du> i don't know.. it's different, ruby have very nice things, it's a bit more new an have more like "magical" method an a lot of sugar syntax
bondar has joined #ruby
bondar has quit [Excess Flood]
<\du> in other side php it's a bit more fast than ruby
squeeb has quit [Quit: Lost terminal]
ldnunes has joined #ruby
<\du> dutchruby, because the AWS OpsWorks and Chef that use Ruby :)
endash has joined #ruby
<dutchruby> So Ruby makes it more faster?
<\du> actually i started to see RoR look nice, but there are fw in php that work similar like Laravel
pupoque_ has quit [Quit: Ухожу я от вас]
Deele has quit [Quit: User excited]
redmenace has joined #ruby
<\du> dutchruby, it's a different language, Cheff it's a SysAdm framework, it give to you a lot of ..mmm... like class.. that you can use, and there decide do i in ruby, because ruby and not python? i don't now.. but actually php make not sense because it's a line command app
<\du> not a web one, so.. you can do it in php, but php was not made for it
subbyyy has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
<dutchruby> php isn't fully object-orientated and ruby is right?
<dutchruby> and i find the syntax allot more friendly and simple in comparison to php
ksmth has quit []
<dutchruby> i never understand OOP in php
relix has joined #ruby
redmenace has quit [Ping timeout: 245 seconds]
<banister> dutchruby: btw rub isn't perfect, it has some annoyances :) (like blocks and procs and methods not being interchangeable)
monkegjinni has joined #ruby
Astral__ has joined #ruby
d3 has joined #ruby
flou has joined #ruby
realDAB has joined #ruby
<dutchruby> Hi Banister
<dutchruby> i never used blocks/procs before just getting my head around variables, strings, floats etc.
<\du> for me a language is not good or bad (well there is exception), the important it's the project, later see the language that is a tool to do it, so.. depend the project depends the language
<dutchruby> is that just in current version of Ruby or are they gonna add support for that in the feature
relix has quit [Client Quit]
<dutchruby> Yes but i am way more motivated for some reason to figure something out in Ruby then in Php
<\du> block are cool, now in the last php version (5.5) they include it with yield statment
<joonty> dutchruby: correct, php is not fully oo
germanstudent has quit [Ping timeout: 245 seconds]
<joonty> php has similarities to java in terms of oop
<dutchruby> If i see php-code it feels loose/less structured could be my lack of programming, but in ruby it feels more structured to me
d3 has quit [Client Quit]
<joonty> yeh, that's probably an aesthetic thing
Astral_ has quit [Ping timeout: 264 seconds]
<\du> sorry.. backing back.. somebody know if i had myhash = { :foo => 'bar') how i can from a string like myvar = 'foo' get something like myhash[mystring] and get the :foo: value (in this case 'bar') ?
<apeiros> \du: 'foo' is not the same as :foo
<dutchruby> btw. do you guys now how i can get an active class on a li element (helper/routing in the middleman static generator
<\du> i know, i can convert it ?
<apeiros> \du: you can do: hash = {:foo => 'bar'}; key = :foo; hash[key] # => 'bar'
<apeiros> \du: or you can do: hash = {:foo => 'bar'}; key = 'foo'; hash[key.to_sym] # => 'bar'
germanstudent has joined #ruby
<joonty> \du: myhash[myvar.to_sym]
<joonty> \du: yes, you can use "mystring".to_sym
<apeiros> you should avoid calling to_sym on arbitrary input
<\du> thanks apeiros but it's don't work to my
<\du> joonty, oh lemme try it!
<\du> .to_sym works, thanks you
<apeiros> joonty: meh, and now \du only reads half the answer and doesn't bother to read the part about not calling to_sym on arbitrary input etc.
<apeiros> *sob*
<apeiros> whatever
* apeiros off
<dutchruby> Anyone know how i could get something like this => <li class="current"<a href="#">mylink</a></li> with a ruby helper that works in Middleman app
<\du> hahahah i read apeiros, just that for sure i will not undestand why it's not a good practice
<apeiros> \du: because symbols exist forever
<apeiros> unlike other objects, which only exist as long as you reference them
<joonty> yeh, apeiros is definitely right
* apeiros off now, for reals
<\du> apeiros, yes but i have a each do |one, two| where one it's string, and i should access to a hash with 'one' like key, but the hash it's a sym
gildo has joined #ruby
<\du> there are other better way to do it ?
<joonty> \du: does the hash have to have symbol keys?
<joonty> and where are the strings coming from in the first place?
<\du> the hash of .each do have string key
Alasdairr is now known as Alasdairrr
<\du> the hash that i need use the first hash key have sym
Matriks has quit [Remote host closed the connection]
<joonty> yeh, does *that* hash have to have symbol keys?
<\du> lemme do a paste bin
jbpros has joined #ruby
nari has joined #ruby
<\du> a simply version
<dutchruby> How is it going with the solution for your problem Du?
<\du> dutchruby, nice thanks
<dutchruby> Everyone is lending a hand atm to you, must be nice:)
<dutchruby> Still need a navigation helper for middleman still cannot find it
<joonty> \du: where does hash1 come from?
mklappstuhl has joined #ruby
<dutchruby> a sibbling of hash0 maybe?:P
<\du> joonty, the scenary it's a bit complex, i am using AWS OpsWorks that use OpsCode Cheff a SysAdm framework development in Ruby
<\du> so the hash1 come from AWS OpsWorks to my Chef recipe (you can call it an script)
cj3kim has joined #ruby
<\du> fyi, example of my hash1 under the "Deploy JSON" title http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json.html
ffio has joined #ruby
<\du> but i solve it with .to_sym so i think that it's okey for what i need
<\du> thanks you
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
theRoUS has joined #ruby
<\du> dutchruby, how is going everything in Groningen?
DonRichie has joined #ruby
atno has joined #ruby
<dutchruby> haha i am not from groningen:P
<dutchruby> i am living in the same providence as amsterdam;)
<\du> oh! near i hope :P
<dutchruby> why do you hope its near
<\du> nice city amsterdam!
<dutchruby> yes it is
recursive has joined #ruby
germanstudent has quit [Ping timeout: 276 seconds]
osvico has quit [Ping timeout: 276 seconds]
nathandial has joined #ruby
<dutchruby> you know what would really make me happy on a rainy day as today to get that middleman helper running or that the sun is gonna shine:)
Matriks has joined #ruby
<dutchruby> couldn't anyone help me with a nav-helper for middleman?
<recursive> im not sure where to ask this question or where to start. we broke apart our main application into two webpages (rails app base). webpage A needs to login to webpage B (rails). what is the best way to do this? do i need to code a login widget? if so, what do i need to search for. i am not sure what something like this is called, so my google results are terrible. if i had a name of what i am trying to do, i can search and take it fr
heftig has quit [Quit: Quitting]
germanstudent has joined #ruby
xcv_ has quit [Remote host closed the connection]
heftig has joined #ruby
xcv has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
jlebrech has joined #ruby
dhruvasagar has joined #ruby
<dutchruby> tried that first solution and i got some errors
mootpointer has joined #ruby
<dutchruby> isn't it possible to do a if on the current_page function?
fgo has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 246 seconds]
ferdev has quit [Quit: ferdev]
Ciscoridze has quit [Quit: WeeChat 0.4.1]
BlueShark is now known as KrahSeulB
KrahSeulB is now known as BlueShark
<dutchruby> i cannot find a solution on http://middlemanapp.com i tried a rails helper but that didn't work, btw i am using haml as a templating language
lurch_ has quit [Quit: lurch_]
teddyp1cker has joined #ruby
lurch_ has joined #ruby
<dutchruby> Du don't you got any navigation-helper i could use or which you could port so its usable in Middleman
nbouscal has joined #ruby
jbpros has quit [Quit: jbpros]
binw has quit [Ping timeout: 268 seconds]
MrZYX is now known as MrZYX|off
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mootpointer has quit [Quit: Exit, pursued by a bear.]
MrZYX|off is now known as MrZYX
jbpros has joined #ruby
wald0 has joined #ruby
eka has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
fridim__ has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
eka has joined #ruby
jp- has joined #ruby
nezumi has quit [Ping timeout: 246 seconds]
cdelo has quit [Quit: Leaving]
jkamenik has joined #ruby
nathandial has quit [Quit: Leaving.]
motto has quit [Quit: Sto andando via]
enebo has joined #ruby
enebo has quit [Client Quit]
rbento has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
noname001 has quit [Remote host closed the connection]
mootpointer has joined #ruby
atyz has joined #ruby
ArchBeOS has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 245 seconds]
zachrab_ has joined #ruby
ArchBeOS has joined #ruby
jerius has joined #ruby
xcv has quit [Read error: Connection reset by peer]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
jonathanwallace has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
decoponio has quit [Quit: Restarting my router]
anay has quit [Remote host closed the connection]
noname001 has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
anay has joined #ruby
anay has quit [Remote host closed the connection]
niceguyjames has joined #ruby
anay has joined #ruby
binw has joined #ruby
eka has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Ping timeout: 264 seconds]
mootpointer has quit [Ping timeout: 264 seconds]
brbcoding has joined #ruby
realDAB has quit [Quit: realDAB]
sevenseacat has joined #ruby
decoponio has joined #ruby
himsin has quit [Quit: himsin]
realDAB has joined #ruby
eka has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<zachrab_> how can i iterate through elements then delete them?
anay has quit [Ping timeout: 276 seconds]
Kricir has joined #ruby
BSaboia has joined #ruby
<endash> reject will return a new array lacking any elements from which you return false
triptec has joined #ruby
<ccooke> zachrab_: if you want to alter the original array, there's Array#delete_if which'll take a block
<endash> er… return true
<zachrab_> i want to sort by elements in an array then delete them
<triptec> is there somehting similar to Laravels array_except($array, array("key1", "key2")) in ruby?
<endash> delete_if === reject! fwiw
<endash> minus
<ccooke> endash: indeed
<endash> [:a, :b] - [:a] = [:b]
pen has joined #ruby
<endash> doesnt get simpler than that :)
<triptec> endash: was that forme?
<ccooke> triptec: yes
<triptec> it's a hash
<triptec> so I get undefined method `-' for #<Hash:0x007fe1d9191348>
<ccooke> ah. then call it a hash :-)
<ccooke> hashes are not arrays
<triptec> not in ruby no..
<endash> oh a hash
wald0 has quit [Ping timeout: 264 seconds]
wald0 has joined #ruby
<ccooke> triptec: reject and reject! will both work
<ccooke> it's pretty trivial to patch in a - operation, too
scarolan_ has joined #ruby
<endash> if you're using rails you can use #except
atyz has quit [Quit: Leaving...]
scarolan has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
<triptec> I am using rails
<triptec> #except?
<triptec> hash.except("key")?
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cpush has quit [Ping timeout: 264 seconds]
LaPetiteFromage has joined #ruby
<endash> if the key is a string
<endash> it can take multiple args
arya_ has quit []
tk_ has joined #ruby
<bsdbandit> good morning all
devoldmx has quit [Ping timeout: 246 seconds]
flou has quit [Quit: Textual IRC Client: www.textualapp.com]
arya_ has joined #ruby
shevy2 has joined #ruby
shevy2 is now known as shevy
fuzzy has quit [Remote host closed the connection]
<triptec> endash: thatnks
<endash> np
blackmesa has joined #ruby
jonathanwallace has joined #ruby
asobrasil has joined #ruby
m8 has joined #ruby
jaynewst_ has joined #ruby
asteve has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
fridim__ has quit [Ping timeout: 245 seconds]
jaynewstrom has quit [Ping timeout: 245 seconds]
_helloworld_ has joined #ruby
JZTech101 has joined #ruby
recursive has quit [Ping timeout: 264 seconds]
atyz has joined #ruby
dutchruby has quit [Quit: Page closed]
eka has quit [Ping timeout: 276 seconds]
io_syl has joined #ruby
<shevy> PENIS
<shevy> sorry!
<shevy> I meant to write hello
krawchyk_ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
wesside has joined #ruby
eka has joined #ruby
rbento has joined #ruby
atyz has quit [Client Quit]
pentameter has joined #ruby
s00pcan has quit [Remote host closed the connection]
eightygrit has joined #ruby
yhsgw has joined #ruby
mklappstuhl has joined #ruby
Ciscoridze has joined #ruby
realDAB has quit [Quit: realDAB]
jinie has quit [Quit: ZNC - http://znc.in]
tomzx_mac has joined #ruby
zaargy has joined #ruby
mikecmpbll has joined #ruby
jinie has joined #ruby
ferdev has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
pipework has joined #ruby
<zachrab_> what does this do: Hash.new { |h,name| h[name] = [] }
ehc has joined #ruby
YaNakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
rdark has joined #ruby
realDAB has joined #ruby
YaNakilon has joined #ruby
<zaargy> what's the most elegant way to do the above?
<zaargy> hope it makes sense. thanks!
wmoxam has joined #ruby
ehc has quit [Client Quit]
<zaargy> seems like i could do it by using blocks but i would like to avoid that
ehc has joined #ruby
anonymuse has joined #ruby
<ccooke> zaargy: When you inherit from a base class, you get all the parent's methods. So you don't need to define anything in Bar#something
interactionjaxsn has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
anay has joined #ruby
<zaargy> yes but the point is something in bar is different
obiwahn has joined #ruby
jerius has quit [Quit: jerius]
x12 has joined #ruby
peregrine81 has joined #ruby
<ccooke> zaargy: okay. then you need to name your methods differently, because the relationship you're talking about is nonsensical
<sevenseacat> this is why fake values are silly
peregrine81 has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 264 seconds]
<ericwood> you're silly
pipework is now known as tiredwork
<sevenseacat> i so am.
browndawg has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
<shevy> zachrab_ it does not seem to do anything useful
* realDAB suspects a tab completion issue on shevy's part
peregrine81 has joined #ruby
<shevy> too many zachrab nicks :P
<realDAB> shevy: i thought maybe you were aiming at zaargy
taylos87 has joined #ruby
<Mon_Ouie> zachrab_: But, regarding your question, it creates a Hash where the default value for any key is an empty array
<Mon_Ouie> (A different array for every key)
redmenace has joined #ruby
sambao21 has joined #ruby
taylos87 has left #ruby [#ruby]
justsee has joined #ruby
justsee has joined #ruby
<shevy> cool
<shevy> x = Hash.new { |h,name| h[name] = [] }
<shevy> x[5] # => []
<shevy> indeed :)
Kricir has quit [Remote host closed the connection]
blackmesa has joined #ruby
<shevy> y = Hash.new; y[5] # => nil
cody-- has joined #ruby
<waxjar> hash default values <3
kpshek has joined #ruby
Matriks has quit [Remote host closed the connection]
zoee has quit [Quit: zoee]
pen has quit [Read error: Connection reset by peer]
<endash> x = Hash.new { |h, name| i = name.to_i; i < 2 ? : h[name] = h[(i - 1).to_s] + h[(i - 2).to_s] }
johnnyfuchs has joined #ruby
<endash> is fun
yhsgw has left #ruby [#ruby]
<ericwood> that is totally readable :P
redmenace has quit [Ping timeout: 276 seconds]
pen has joined #ruby
<endash> it's the fibonacci sequence
xcv has joined #ruby
<ericwood> you're the fibonacci sequence
<endash> using hashes :P
<endash> useless but fun
<shevy> omg
blackmesa has quit [Remote host closed the connection]
<shevy> please
<shevy> let's allow ruby to be beautiful
Kricir has joined #ruby
Uranio has joined #ruby
stoffus has joined #ruby
baordog has joined #ruby
<realDAB> endash: i think you mean i < 2 ? i : ...
<endash> er there should be a 1 in there yeah
<realDAB> yeah, that :-)
eka has quit [Ping timeout: 264 seconds]
anay has quit [Remote host closed the connection]
recursive has joined #ruby
cj3kim has joined #ruby
Xeago has quit [Remote host closed the connection]
mnewton has joined #ruby
jlebrech has quit [Ping timeout: 245 seconds]
eka has joined #ruby
banister is now known as banisterfiend
cj3kim has quit [Ping timeout: 245 seconds]
cads has joined #ruby
Neomex has joined #ruby
brennanMKE has joined #ruby
enebo has joined #ruby
anay has joined #ruby
Kruppe has joined #ruby
narcan has joined #ruby
s00pcan has joined #ruby
xcv has quit [Ping timeout: 264 seconds]
cads has quit [Max SendQ exceeded]
Astral_ has joined #ruby
cads has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
kpshek has quit []
vlad_starkov has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
senayar_ has joined #ruby
xcv has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
Astral__ has quit [Ping timeout: 276 seconds]
brennanMKE has quit [Remote host closed the connection]
JZTech101 has quit [Read error: Connection reset by peer]
m8 has quit [Read error: No buffer space available]
JZTech101 has joined #ruby
m8 has joined #ruby
brandon_ has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
realDAB has quit [Quit: realDAB]
m8 has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
m8 has joined #ruby
Morrolan has quit [Ping timeout: 256 seconds]
os10066 has quit []
binary1985 has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
ananthakumaran has joined #ruby
justsee has quit [Ping timeout: 276 seconds]
LaPetiteFromage has joined #ruby
kobain has joined #ruby
hogeo has quit [Remote host closed the connection]
ananthakumaran has quit [Client Quit]
jprovazn has quit [Quit: Leaving]
lurch_ has quit [Quit: lurch_]
ananthakumaran1 has quit [Ping timeout: 264 seconds]
nathandial has joined #ruby
atyz has joined #ruby
Morrolan has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
rhys has quit [Quit: Leaving]
Companion has quit [Quit: Poweroff]
realDAB has joined #ruby
Companion has joined #ruby
TheDick has joined #ruby
relix has joined #ruby
nathandial has quit [Client Quit]
<shevy> somehow I struggle with rising complexity
m8 has quit [Read error: Connection reset by peer]
relix has quit [Client Quit]
codecop has quit [Remote host closed the connection]
ntus1017 has joined #ruby
ehc has quit [Quit: ehc]
tomzx_mac has quit [Ping timeout: 276 seconds]
<zaargy> ccooke: not sure i understand. it's pretty common to override a method in a subclass that is inherited from the parent surely?
<zaargy> that's all that i am doing above
wallerdev has joined #ruby
m8 has joined #ruby
uris77 has joined #ruby
Matip has joined #ruby
llaskin has joined #ruby
Kricir has quit [Remote host closed the connection]
sparr has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
jlast has joined #ruby
ffio_ has joined #ruby
huoxito has joined #ruby
msch has left #ruby [#ruby]
YaNakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
ffio has quit [Ping timeout: 264 seconds]
zarubin has quit [Ping timeout: 264 seconds]
YaNakilon has joined #ruby
Kricir has joined #ruby
bradsmith has joined #ruby
bradsmith has quit [Remote host closed the connection]
Mattix has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
bradsmith has joined #ruby
Lewix has quit [Remote host closed the connection]
_helloworld_ has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
johnnyfuchs has joined #ruby
freeayu has joined #ruby
BrianJ has joined #ruby
Appineer has joined #ruby
Appineer has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 240 seconds]
sevenseacat has left #ruby [#ruby]
mary5030 has joined #ruby
thepumpkin has joined #ruby
<obiwahn> does this look somewhat ok?
mary5030 has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<shevy> I find it ugly
<spike|spiegel> no one cares
mansi has joined #ruby
<spike|spiegel> does it work? is it readable?
<spike|spiegel> go home.
<shevy> in general, the smaller and shorter a method the better
<obiwahn> shevy: what should be changed?
<spike|spiegel> def q; end
<shevy> to see a default argument with EOF is actually the first time
<shevy> :doc => <<-EOS
JDHankle has joined #ruby
<shevy> I dunno, I never had that used for any of my methods so far
lkba has joined #ruby
wallerdev has quit [Quit: wallerdev]
splittingred has joined #ruby
sjltaylor has joined #ruby
danshultz has joined #ruby
ehc has joined #ruby
nathandial has joined #ruby
<spike|spiegel> string
<ccooke> zaargy: yes, but what you're doing is something of a namespace violation
<sjltaylor> how do I make a pull request to the standard library?
danshultz has quit [Client Quit]
<spike|spiegel> sjltaylor: open a ticket and submit patch?
niceguyjames has quit [Quit: Computer has gone to sleep.]
Bosox20051 has quit []
thepumpkin has quit [Ping timeout: 245 seconds]
<sjltaylor> a tick on bugs.ruby-lang.org?
<shevy> sjltaylor there is a central site
<shevy> yes
<shevy> you only have to specify there which version your patch applies to
cmarques has quit [Ping timeout: 245 seconds]
redmenace has joined #ruby
<ccooke> zaargy: Okay, so in simplistic terms you have class A, and class B which inherits from A. you want to call a method in B which calls a method in A which calls the version of the method in B. Which would logically cause an endless loop
<sjltaylor> it's a small patch to net/http, apples to >= 1.9.3
<sjltaylor> so is ruby-trunk the best place to PR to?
<shevy> yes
Bosox20051 has joined #ruby
<shevy> at worst they will just shift it to the right target anyway
<spike|spiegel> sjltaylor: read content in the link please? net/http doesn't change much ... should be fine, what is the patch acheiving btw?
sarkis has quit [Ping timeout: 264 seconds]
<sjltaylor> I will
<ccooke> zaargy: effectively you've said you want to be able to override a method *and* not override the method at the same time.
<sjltaylor> passing parameters through to indicate that environment vars should be used for proxy settings
<shevy> it's today's generation ccooke ... they want everything and nothing all at the same time ;)
<sjltaylor> which works when you Net::HTTP.new(…)
<ccooke> shevy: *laugh*
<sjltaylor> but not when you Net::HTTP.get(...)
llaskin has left #ruby [#ruby]
tuxero has joined #ruby
BRMatt has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
<shevy> matz authored 38 minutes ago
<shevy> wheee matz is hacking!
noop has quit [Ping timeout: 276 seconds]
<zaargy> ccooke: sure i get that so i was looking for advice on what i should do instead
noop has joined #ruby
<ccooke> zaargy: well, the classic thing would be to use an interface method
<zaargy> for example i could pass a block from the subclass's method to the parent's me
<zaargy> okay
<ccooke> zaargy: so for instance, you have a method Foo#something that does some stuff.
<ccooke> zaargy: Make that a protected method, and have a new interface to it - Foo#do_something, perhaps.
jprovazn has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
<ccooke> zaargy: Example in a sec.
xcv has quit [Remote host closed the connection]
<hanmac> its possibe to make classes so that the your users cant change them … but thats evil black magic
<ccooke> hanmac: well, it's not completely possible
rhys has joined #ruby
ntus1017 has quit [Remote host closed the connection]
<ccooke> hanmac: unless you're talking about using some odd plugins, and that would likely be a little dangerous :-)
<spike|spiegel> hanmac: really? :) evil black magic can be defeated with evil black magic
dhruvasagar has joined #ruby
anay has quit [Remote host closed the connection]
<hanmac> ccooke & spike|spiegel its possible to prevent the change of methods, or that the class can be dupplicated
amacgregor has quit [Ping timeout: 276 seconds]
<ccooke> zaargy: https://gist.github.com/anonymous/6174697 as an example
cmarques has joined #ruby
monkegjinni has quit [Remote host closed the connection]
pagios_ has joined #ruby
<banisterfiend> zaargy: you can use: Foo.instance_method(:this).bind(self).call
<zaargy> ccooke: thank you
<ccooke> hanmac: How are you thinking? Because there are ways around anything short of adding seriously dodgy C plugins, and I don't think that would be very safe
<banisterfiend> that forces the 'this' method from Foo to be executed on Bar, regardless if Foo overrides it
<pagios_> hi guys i would like to get realtime iftop results to see the current bandwidth being used, into ruby how can i do that?
<hanmac> ccooke: do you know what happend when you "freeze" a class object?
<banisterfiend> zaargy: if you want 'Foo' instead to be dynamically resolved as the immediate superclass, then use: superclass.instance_method(:this).bind(self).call
eka has quit [Ping timeout: 276 seconds]
tgunr has joined #ruby
<ccooke> hanmac: yeah, and I've used it in a few places. But you have to be really careful about cleaning up after yourself if so, and I suspect it can still be mucked about with :-)
BillCriswell has joined #ruby
<banisterfiend> regardless if Bar overrides it*
<ccooke> hanmac: it *is* possible to replace all frozen objects with unfrozen versions, of course. It's just not sane or nice.
digitalcake has joined #ruby
<ccooke> (or untracable)
x12 has quit [Ping timeout: 250 seconds]
eka has joined #ruby
<hanmac> ccooke yes and no … you can prevent an object from being unfrozen or copied
k610 has joined #ruby
<pagios_> hello?
endash has left #ruby [#ruby]
nanoxd has joined #ruby
endash has joined #ruby
endash has left #ruby [#ruby]
monkegjinni has joined #ruby
<ccooke> hanmac: I don't think you can prevent an object from being dup'd, and even if you can there are ways to create a duplicate manually
adeponte has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
sparr has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
zachrab_ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
freeayu has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tommyvyo has joined #ruby
cpush_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
wallerdev has joined #ruby
m8 has quit [Quit: Sto andando via]
<spike|spiegel> marshal all the things!
monkegjinni has joined #ruby
<banisterfiend> ccooke: how would you create a duplicate manually?
stef1a has joined #ruby
maz-dev has quit [Remote host closed the connection]
d2dchat has joined #ruby
<stef1a> so yesterday i was told that gem install [name] should be used instead of sudo gem install [name]. However, I just ran into the issue: You don't have write permissions for the /usr/local/bin directory
<stef1a> when installing a gem without sudo
<spike|spiegel> stef1a: good. now stop installing to /usr
<ccooke> banisterfiend: class dependant. But generally, by using the object. I can build a duplicate of a Hash by walking its keys. I can make a duplicate of a string by interpolating it into a new string, etc.
ffranz has joined #ruby
<hanmac> ccooke: remove_method :initialize_copy
<banisterfiend> ccooke: sure, but what about singleton methods?
<mikecmpbll> i'm trying to include a module in a class, but the module needs some settings passed to it somehow
Cyrus has quit [Quit: Cyrus.sleep()]
e3r98gh35t has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 245 seconds]
<ccooke> banisterfiend: well, the object is still open. It's easy enough to inject another method into an object - even if the object is locked, it almost certainly has ancestors that are not.
<ccooke> banisterfiend: and once you can execute a method in the context of the object, you should have access to everything
<stef1a> spike|spiegel: how?
jtperreault has quit [Quit: WeeChat 0.3.7]
<spike|spiegel> stef1a: what's your GEM_HOME?
Astralum has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
<banisterfiend> ccooke: how do you inject a method from a singleton class into another object?
long_shot has joined #ruby
<tuxero> hello
<ccooke> banisterfiend: well, they're still methods. you can grab them and bind them to the singleton class of the target object
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ccooke> banisterfiend: unless I'm completely misremembering. I mean, this is stuff I'm unlikely to need to do :-)
Tricon has joined #ruby
mercwithamouth has joined #ruby
<realDAB> ccooke: i don't think you can do that
<tuxero> I would like mappear with active record data from a table q and q have data already exists. ?
<realDAB> ccooke: (if i'm understanding you correctly)
<ccooke> realDAB: hmm. Well, I guess I can go try :-)
baroquebobcat has quit [Quit: baroquebobcat]
<banisterfiend> ccooke: how?
<realDAB> TypeError: singleton method called for a different object
<long_shot> ok, this is a philosophical one: isn't all web apps ultimately an instance of a CRUD ?
<banisterfiend> ccooke: in ruby 2.0 you can rebind methods from modules, but not from arbitrary classes and esp not singleton classes ;)
jtperreault has joined #ruby
pagios_ is now known as pagios
<banisterfiend> ccooke: one thing u could do is use method_source to grab the source and re-eval it in the context of the singleton class, but that's very hacky and nto a general solution (though would probably work in 90% of cases)
tricon_ has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
Kelet_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Kelet has quit [Read error: Connection reset by peer]
Peej has quit [Disconnected by services]
Jeep has joined #ruby
<spike|spiegel> what ya folks talking?
pagios has quit [Killed (idoru (Spam is off topic on freenode.))]
mansi has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
_redmenace has joined #ruby
<banisterfiend> spike|spiegel: a topic that is currently free of "sigh" and "lmao" thankyou very much :)
<ccooke> banisterfiend: *nod*
<ccooke> banisterfiend: ick :-)
<ccooke> banisterfiend: but yeah, probably would work
musl has quit [Ping timeout: 248 seconds]
iFire_ has joined #ruby
io_syl has quit [Quit: io_syl]
<tuxero> hello
<spike|spiegel> >> class C ; end; m = class << C ; self.method(:name).unbind ; end; m.bind(42).call
<eval-in> spike|spiegel => bind argument must be an instance of Class (TypeError) ... (https://eval.in/41420)
sparr_ has joined #ruby
<spike|spiegel> banisterfiend: ^ it that what you talking?
jaynewst_ has quit [Remote host closed the connection]
dEPy has quit [Ping timeout: 276 seconds]
sjltaylor has joined #ruby
<stef1a> spike|spiegel: so I dunno how to directly find GEM_HOME, but when i type `gem environment`, I get this: http://pastie.org/8215455
io_syl has joined #ruby
<banisterfiend> eval-in: >> RUBY_VERSION
adeponte has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
<banisterfiend> >> RUBY_VERSION
<eval-in> banisterfiend => "2.0.0" (https://eval.in/41421)
<spike|spiegel> banisterfiend: can do any class to any other calss
<spike|spiegel> class*
sparr has quit [Ping timeout: 264 seconds]
<banisterfiend> >> module M; def hello; self; end; end; M.instance_method(:hello).bind(Object.new).call
<eval-in> banisterfiend => #<Object:0x41c90f90> (https://eval.in/41422)
anay has joined #ruby
redmenace has quit [Ping timeout: 276 seconds]
<banisterfiend> spike|spiegel: Prove it :)
ravster has joined #ruby
iFire has quit [Ping timeout: 276 seconds]
<spike|spiegel> class C ; end; m = class << C ; self.method(:name).unbind ; end; m.bind(42.class).call
<spike|spiegel> 42 -> 42.class
<banisterfiend> >> class C ; end; m = class << C ; self.method(:name).unbind ; end; m.bind(42.class).call
<eval-in> banisterfiend => "Fixnum" (https://eval.in/41424)
<banisterfiend> eval-in: that's because that's a class method shared by both classes
<banisterfiend> err, spike|spiegel
<banisterfiend> spike|spiegel: we're talking about instance methods on classes
zarubin has joined #ruby
rippa has joined #ruby
<stef1a> spike|spiegel: if I do `echo $GEM_HOME` i get no output
amacgregor has joined #ruby
<banisterfiend> spike|spiegel: of course you can rebind 'name' since it comes from the Module class, which is a shared class of Fixnum and C
dtcrshr has joined #ruby
dtcrshr has quit [Changing host]
dtcrshr has joined #ruby
marcdel has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
<spike|spiegel> stef1a: umm, might be because of existing/installed gems... rubygems can get crazy .. just set GEM_HOME to confortable location
Megtastique has quit [Quit: Megtastique]
geggam has joined #ruby
devoldmx has joined #ruby
marcdel_ has joined #ruby
<ccooke> banisterfiend: actually, there's a clear horrible way to do it that's all your fault :-)
nathandial has quit [Quit: Leaving.]
<banisterfiend> ccooke: ?
<ccooke> banisterfiend: Get singleton class of object, use object2module to convert it to a module, get singleton class of target object, include your the module :-)
RonScagz has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
<banisterfiend> ccooke: lol, i think object2module has been dead since 1.9.2 ;)
devoldmx3 has quit [Read error: No route to host]
<ccooke> banisterfiend: and? you admit that the approach would work, righ? :-)
devoldmx3 has joined #ruby
<banisterfiend> paranoid ruby core made all the interesting functions invisible :(
<banisterfiend> ccooke: yeah it would
mklappstuhl has joined #ruby
lebek has joined #ruby
recursive has quit [Quit: leaving]
sparr_ has quit [Ping timeout: 264 seconds]
<banisterfiend> i used object2module to do silly stuff like that, https://github.com/banister/local_eval
niceguyjames has joined #ruby
Demo_of_doom has joined #ruby
tiredwork is now known as pipework
RonScagz has quit [Client Quit]
rafiki has joined #ruby
niceguyjames has quit [Client Quit]
ffranz has quit [Remote host closed the connection]
f0ster has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 246 seconds]
rdark has quit [Ping timeout: 246 seconds]
sparr_ has joined #ruby
tk_ has quit [Quit: ばいばい]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
<hanmac> >> class << Object.new; class A;self; end.new end
<eval-in> Hanmac => #<#<Class:0x417710a0>::A:0x41771000> (https://eval.in/41430)
rdark has joined #ruby
niceguyjames has joined #ruby
<banisterfiend> >> Class.singleton_class.singleton_class.singleton_class.superclass
<eval-in> banisterfiend => #<Class:#<Class:#<Class:Module>>> (https://eval.in/41431)
<stef1a> spike|spiegel: so when I set GEM_HOME to a dir in my ~, I still get You don't have write permissions for the /usr/local/bin directory. when I try to do gem install [name]
<banisterfiend> >> Class.singleton_class.singleton_class.singleton_class.singleton_class.singleton_class.singleton_class.superclass
<eval-in> banisterfiend => #<Class:#<Class:#<Class:#<Class:#<Class:#<Class:Module>>>>>> (https://eval.in/41432)
NealJ has quit [Quit: :c]
LaPetiteFromage has joined #ruby
nathandial has joined #ruby
momomomomo has quit [Quit: momomomomo]
<hanmac> banisterfiend: the joke is that you can define constants inside singleton classes ;P
sambao21 has quit [Read error: Connection reset by peer]
<banisterfiend> hanmac: yeah :)
rafiki has quit [Quit: Linkinus - http://linkinus.com]
rovalent has joined #ruby
rovalent has quit [Remote host closed the connection]
realDAB has quit [Ping timeout: 246 seconds]
<banisterfiend> i was just showing that if you create an nth level singleton class of a class, then ruby also creates nth level singleton classes for all of that classes superclasses
sambao21 has joined #ruby
<spike|spiegel> these shouldn't even exist :)
<banisterfiend> so if you have a an inheritance hierarchy n deep, then creating a z level singleton on the lowest subclass causes n * z other classes to be created
<spike|spiegel> and IClasses from modules
YaNakilon has quit [Ping timeout: 245 seconds]
stoffus has quit [Ping timeout: 245 seconds]
k610 has quit [Ping timeout: 245 seconds]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<spike|spiegel> stef1a: /home/stefan/.gem/ruby/2.0.0 is in the GEM PATH ... I think it should all work if you clear out /usr/local/lib/ruby/gems/2.0.0 and start fresh
<ccooke> banisterfiend: surely those classes are lazily created
<spike|spiegel> might be a bug in rubygems even
burlyscudd has quit [Quit: Leaving.]
<ccooke> banisterfiend: because otherwise creating one class would mean creating an infinite number of classes
<banisterfiend> ccooke: yeah the zth level singleton is lazily created, but as soon as you create it then 'z' level singletons have to be created (eagerly) on all superclasses
<ccooke> banisterfiend: aye
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
luke_ has joined #ruby
<banisterfiend> ccooke: this stuff is new to 1.9.2 (or perhaps 1.9.3), before that release ruby did a tonne of weird things instead
<banisterfiend> but it never really mattered cos i dont think anyone messes with higher level singleton classes
<banisterfiend> the most i've used is i think a 3rd level singleton class
blackmesa has joined #ruby
ZoanthusR has joined #ruby
YaNakilon has joined #ruby
burlyscudd has joined #ruby
gnuyoga has quit [Ping timeout: 245 seconds]
<banisterfiend> see the self.delegate_accessors in the class << self ;) https://gist.github.com/e9a219e3d1ac9130ecf5
ffranz has joined #ruby
tabolario has joined #ruby
tgunr has quit [Remote host closed the connection]
barratt has quit [Ping timeout: 264 seconds]
sarkis has joined #ruby
r4nd0m1 has quit []
pranny has quit [Quit: Leaving.]
ccolorado has joined #ruby
cj3kim has joined #ruby
mikecmpbll has joined #ruby
<stef1a> spike|spiegel: no luck when I remove /usr/local/lib/ruby/gems/2.0.0
relix has joined #ruby
<ccolorado> Hi, is it possible to get all the options values and text from a selectlist with mechanize ?
<spike|spiegel> can't debug like this...
<spike|spiegel> stef1a: a fresh shell.. same problem?
<banisterfiend> ccooke: this is your github? https://github.com/ccooke
tgunr has joined #ruby
v0n has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<stef1a> spike|spiegel: yes.
BrianJ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JensenDied has left #ruby [#ruby]
alex__c2022 has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
long_shot has quit [Ping timeout: 250 seconds]
<spike|spiegel> stef1a: GEM PATHS ordering matters it looks like, you have /usr/local before your home
baroquebobcat has joined #ruby
kpshek has joined #ruby
macmartine has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<spike|spiegel> stef1a: do you have .gemrc in home dir by any chance?
JumpMast3r has quit [Quit: JumpMast3r]
<ccooke> banisterfiend: it is. There's nothing much there - and what is is evil
banister_ has joined #ruby
bradhe has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
<spike|spiegel> (or even /etc/gemrc)
eightygrit has quit [Quit: eightygrit]
<spike|spiegel> stef1a: just add "gem: --user-install" line in there (minus quotes)
freerobby has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
threesome has joined #ruby
<banister_> l
banister_ is now known as banisterfiend
banisterfiend is now known as banister
nathandial has quit [Quit: Leaving.]
sayan has quit [Ping timeout: 240 seconds]
_redmenace has quit [Ping timeout: 276 seconds]
billy_ran_away has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
stoffus has joined #ruby
thordur has joined #ruby
haukur has joined #ruby
stoffus has quit [Client Quit]
bradhe has quit [Ping timeout: 276 seconds]
haukur has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ravster has quit [Quit: Leaving.]
thordur has quit [Ping timeout: 246 seconds]
JDHankle has quit [Remote host closed the connection]
Megtastique has joined #ruby
thordur has joined #ruby
Kruppe has quit [Remote host closed the connection]
JDHankle has joined #ruby
JDHankle has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
Astral_ has joined #ruby
\du has quit [Quit: Hasta la vista Baby!]
<theRoUS> is there any way to persuade 'aaa'.inspect to produce 'aaa' instead of "aaa" (single-quotes rather than double) ?
BillCriswell has quit [Read error: Connection reset by peer]
<wald0> im new (learning) ruby and trying to understand how to use ffi... what is the way to read ruby documentation? more exactly for: FFI::MemoryPointer.new
<hanmac> theRoUS no
<wald0> i mean, what is the tools/commands for that? in unix is "man"
BillCriswell has joined #ruby
momomomomo has quit [Quit: momomomomo]
redmenace has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
redmenace has quit [Client Quit]
havenwood has joined #ruby
redmenace has joined #ruby
nathandial has joined #ruby
BizarreCake has quit [Ping timeout: 245 seconds]
eightygrit has joined #ruby
tjbiddle has joined #ruby
endash has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
dhruvasagar has quit [Remote host closed the connection]
<ghr> wald0 http://ruby-doc.org/ for stuff that ships with Ruby. http://rubydoc.info/ has a lot of documentation for third party libraries
aganov has quit [Quit: aganov]
<tjbiddle> Good morning #ruby :-)
geekbri has joined #ruby
<havenwood> gmorn!
<tjad> hi
goodgame has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
timonv has quit [Remote host closed the connection]
arya_ has quit []
shaunbak_ has quit [Remote host closed the connection]
jonkri has quit [Ping timeout: 264 seconds]
eightygrit has quit [Client Quit]
kevinykchan has joined #ruby
senayar_ has quit [Remote host closed the connection]
thordur has quit [Quit: leaving]
jprovazn has quit [Quit: Odcházím]
senayar has joined #ruby
noname001 has quit [Ping timeout: 245 seconds]
smathieu has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahawkins has quit [Quit: Lost terminal]
eightygrit has joined #ruby
eightygrit has quit [Client Quit]
neku has joined #ruby
troessner has quit [Ping timeout: 245 seconds]
lewis has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
Kricir has joined #ruby
<shevy> hey tjbiddle
elux has joined #ruby
johnkary has joined #ruby
<shevy> wald0 I think "ri" or "rdoc" as commands, but last time I used it was like 6 years ago, I only use online docu since that
<shevy> yard also exists hmm
momomomomo has joined #ruby
<wald0> ghr: i heard about a command called "ri?" how i should use it for see the documentation of FFI:MemoryPointer.new for example ?
<ghr> ah yes, you can do that
niceguyjames has quit [Quit: Computer has gone to sleep.]
jim0thy_ has quit [Quit: jim0thy_]
<ghr> You can do some nice things inside pry too https://github.com/pry/pry/wiki/Documentation-browsing
<shevy> ri Array.sort
<shevy> ri Hash#each
<shevy> hmm
<shevy> how about
<shevy> ri FFI::MemoryPointer
arya_ has joined #ruby
blackmesa has joined #ruby
efrainolivares has joined #ruby
<ghr> you might have to generate the rdoc for it
<ghr> gem rdoc ffi
decoponio has quit [Quit: Leaving...]
burlyscudd has quit [Quit: Leaving.]
<hanmac> isnt ffi in stdlib and should already be documented?
momomomomo has quit [Client Quit]
<pontiki> ri is local
burlyscudd has joined #ruby
altamic has joined #ruby
asteve has joined #ruby
altamic has left #ruby [#ruby]
<pontiki> docs don't necessarily get gen'd locally
<pontiki> i <3's me some pry
ehc has quit [Quit: ehc]
Guest56543 has quit [Ping timeout: 260 seconds]
io_syl has quit [Quit: io_syl]
banister has quit [Remote host closed the connection]
sambao21 has joined #ruby
nomenkun has quit [Remote host closed the connection]
anay has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
optimusprimem has quit [Read error: Connection reset by peer]
digifiv5e has joined #ruby
goodgame has joined #ruby
digifiv5e is now known as Guest42523
<shevy> I dont think ffi is in stdlib
banister has joined #ruby
ssvo has joined #ruby
<hanmac> huch shevy you are right ...
bleubeard has joined #ruby
<shevy> why was ffi not developed earlier btw?
<shevy> that page makes people wonder
<shevy> "An FFI extension works without changes on Ruby, JRuby, and any other Ruby VM that supports FFI."
<hanmac> one day, banister will help me to get my gems sooo documented that pry can recognize the source locations ;P
dweeb has quit [Quit: Computer has gone to sleep.]
<banister> hanmac: sure ;)
anay_ has joined #ruby
v0n has quit [Quit: WeeChat 0.4.2-dev]
<shevy> where are your gems hanmac ?
kek has quit [Quit: kek]
v0n has joined #ruby
pranny has joined #ruby
<hanmac> shevy: https://github.com/Hanmac … most of them are not on rubygems yet … :(
momomomomo has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Client Quit]
teddyp1cker has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
<shevy> hmm
troessner has joined #ruby
freerobby has quit [Quit: Leaving.]
johnkary has quit [Quit: @johnkary]
sysop2 has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
niceguyjames has joined #ruby
ersmith has joined #ruby
ehc has joined #ruby
wald0_ has joined #ruby
sysop2 has joined #ruby
momomomomo has quit [Client Quit]
wald0 has quit [Ping timeout: 246 seconds]
grillermo has joined #ruby
codecop has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joshmyers has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
ehc has quit [Client Quit]
timonv has joined #ruby
<joshmyers> hey guys, using active_support/core_ext, can I do something like Time.UTC.now, rather than Time.now?
ehc has joined #ruby
lewis is now known as Lewix_
Davey has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix_ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
<hanmac> joshmyers: why not Time.now.utc ?
kmsdncjsavab121 has joined #ruby
kmsdncjsavab121 has quit [Killed (idoru (Spam is off topic on freenode.))]
graydot has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tylersmith has quit [Remote host closed the connection]
mjmac has joined #ruby
saarinen has joined #ruby
tylersmith has joined #ruby
Ciscoridze has quit [Quit: WeeChat 0.4.1]
pranny has quit [Quit: Leaving.]
ghr has quit [Quit: Computer has gone to sleep.]
Megtastique has quit [Quit: Megtastique]
Kricir has quit [Remote host closed the connection]
Simone- has joined #ruby
ghr has joined #ruby
ghr has quit [Client Quit]
saarinen has quit [Client Quit]
verto has joined #ruby
tricon_ has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
saarinen has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
dagobah has quit [Remote host closed the connection]
bzitzow has joined #ruby
whitenoise has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
neku has quit [Ping timeout: 264 seconds]
efrainolivares has quit [Quit: efrainolivares]
tylersmith has quit [Ping timeout: 264 seconds]
Tricon has joined #ruby
havenwood has joined #ruby
cj3kim has joined #ruby
madumo has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
Megtastique has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
Marlenee has joined #ruby
camilasa_ has quit [Remote host closed the connection]
tricon_ has joined #ruby
brennanMKE has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 260 seconds]
ccolorado has left #ruby [#ruby]
goodgame has quit [Ping timeout: 240 seconds]
musl has joined #ruby
barratt has joined #ruby
kpshek has quit []
<spike|spiegel> Time.now is good enough, unless one requires to pull out year/ day / hourse etc
RichardBaker has joined #ruby
Spooner has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Read error: No route to host]
_JamieD_ has quit [Quit: _JamieD_]
<shevy> hourse?
mnewton has quit [Ping timeout: 276 seconds]
<shevy> is that a horse in a house
maxmanders has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
<hanmac> shevy maybe its an horse, big as an house ;P
efrainolivares has joined #ruby
luke_ has quit [Ping timeout: 264 seconds]
barratt has quit [Ping timeout: 264 seconds]
<shevy> hmm like those ancient sindbad movies... where he fought the cyclops... and some wardog things... and the medusa ... and lots of other beasts
<joshmyers> spike|spiegel: problem is, I'm using a script from my local machine, GMT, but servers use UTC so I want the script to deal with with that nicely
tgunr has quit [Quit: Nity nite]
blaxter has quit [Quit: foo]
kaspergrubbe has joined #ruby
<joshmyers> the script runs and tells the servers to do something Time.now
<hanmac> joshmyers: and what about my line?
ehc has quit [Quit: ehc]
Hobogrammer has joined #ruby
<joshmyers> ahhh hanmac, perfect
<joshmyers> apologies I didn't see that all the way up there
anay_ has quit [Remote host closed the connection]
<joshmyers> that's perfect
<joshmyers> tanks
pedestrian has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
ehc has joined #ruby
Simone- has quit [Quit: Leaving...]
sayan has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
S0da has joined #ruby
tgunr has joined #ruby
spider-mario has joined #ruby
mahmoudimus has joined #ruby
zarubin has quit [Remote host closed the connection]
efrainolivares has quit [Quit: efrainolivares]
kaspergrubbe has joined #ruby
twoism has joined #ruby
verto has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
<spike|spiegel> joshmyers: you know GMT is kind of now an alias for UTC
stephenmac7 has joined #ruby
trepidaciousMBR has quit [Quit: trepidaciousMBR]
eka has quit [Ping timeout: 240 seconds]
<joshmyers> I didn't no..
iliketurtles has joined #ruby
stephenmac7 has left #ruby ["Leaving"]
<spike|spiegel> handling real timezone differences is not easy
<joshmyers> was causing me problems as the script would kick in an hour out
saarinen has quit [Quit: saarinen]
<spike|spiegel> easiest rule is : never deal with strings.
<pontiki> lol
<pontiki> so true so true
<pontiki> other easiest rule: always run UTC everywhere
eka has joined #ruby
ffio_ has quit [Quit: WeeChat 0.4.1]
<spike|spiegel> naw, if you don't deal with strings ... you are set.
<apeiros> timezones are easy. dst and leapseconds are hard.
<apeiros> timezones are just representational shifts of the same value.
<pontiki> s'truth
efrainolivares has joined #ruby
<pontiki> leapseconds are part of UTC, which timezone and dst are user presentation things
<apeiros> pontiki: correct. but dst is not predeterminable
<spike|spiegel> no one really cares for leapseconds :)
<pontiki> heh
rdark has quit [Quit: leaving]
<apeiros> i.e. you can't say whether a given time in the future at a given location will be DST or not
<pontiki> dst is subject to politics
<spike|spiegel> and religion :)
<pontiki> newp, only the past
S0da has quit [Ping timeout: 260 seconds]
S0da has joined #ruby
<apeiros> which is why it is hard, even though it is only a representational shift
chrisja has joined #ruby
<pontiki> (but then again, fsov of future, you can't tell whether a given location will be underwater either. :> )
anay has joined #ruby
brennanMKE has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
reset has joined #ruby
wykydtron has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
atno has quit [Quit: Leaving]
ersmith has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
<whitenoise> pontiki: i am psychic.
<whitenoise> pontiki: Venice, Italy will be underwater.
<pontiki> :)
altamic_ has joined #ruby
<pontiki> ok, since it's already underwater
<whitenoise> lol
altamic has quit [Excess Flood]
<pontiki> but you don't know if by 2257 it will still be underwater
<whitenoise> pontiki: also Atlantis.
hakunin has quit [Remote host closed the connection]
<whitenoise> right.
chxane has joined #ruby
<whitenoise> do they have an estimated year for when Venice will be uninhabitable?
hakunin has joined #ruby
senayar has quit [Remote host closed the connection]
<pontiki> not that i know of
<hanmac> whitenoise: isnt it allready? ;P
paissad_ has quit [Quit: This computer has gone to sleep]
<pontiki> no, it's still rather lovely
anay has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
jkamenik has left #ruby [#ruby]
<whitenoise> i want to visit before it's all underwater and stuff.
<pontiki> everyone says 'go soon'
<whitenoise> right
<havenwood> <3 Venice
Kruppe has joined #ruby
anay has joined #ruby
<whitenoise> i went to Paris, France last year. Venice, Italy is on my list for the upcoming year.
<havenwood> A bit underwater already in the Winter.
eka has quit [Ping timeout: 248 seconds]
<pontiki> awesome
tylersmith has joined #ruby
<pontiki> last time i was there, we had to walk on the boards for some parts
cj3kim has quit [Read error: Connection reset by peer]
<whitenoise> oh nice, when was that?
<pontiki> but it had been worse just prior to our arrival
paissad has joined #ruby
<pontiki> hum....
<whitenoise> huh.
paissad has quit [Remote host closed the connection]
c0rn has joined #ruby
<pontiki> 2000? i want to say
<whitenoise> ok, so a while ago
Senjai has joined #ruby
Senjai has joined #ruby
<pontiki> ya
mansi has joined #ruby
<whitenoise> also, all my traveling is made possible by the Ruby language.
<pontiki> time before that was way way back in 1977
<pontiki> oh that is AWESOME
BSaboia has quit [Ping timeout: 264 seconds]
troessner has quit [Quit: Leaving]
<pontiki> how do you get that gig?
<whitenoise> lol
<havenwood> Ruby en Avion
<pontiki> do you need a minion?
tylersmith has quit [Remote host closed the connection]
efrainolivares has quit [Quit: efrainolivares]
eka has joined #ruby
<whitenoise> well, I am a developer / sys admin for a mid-sized hosting/development company...then I do freelance on the side, and I have a personal project that I am starting up that will hopefully bring in passive income.
<whitenoise> and about 80% of all of that is in Ruby
paissad has joined #ruby
<pontiki> i speak French, Italian, a tiny bit of Greek, as well as Ruby :)))
dankest has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
tylersmith has joined #ruby
Al_ has quit [Quit: Al_]
<whitenoise> my personal project I'm having to build to accommodate an enormous amount of traffic, so it only has a Ruby front-end that does API calls to a back-end written in Go.
<pontiki> also Strine and Kiwi :>
<whitenoise> on top of Cassandra database, with also Go over a SOLR installation for searching.
mjmac has left #ruby ["Textual IRC Client: www.textualapp.com"]
brbcoding has quit [Ping timeout: 245 seconds]
<pontiki> oh neat! i haven't written in Go, but wow what a cool language
<whitenoise> it's awesome
<whitenoise> i highly recommend playing with it
hakunin has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
<whitenoise> the first project I did in Go was a MUD framework, if you are familiar with MUDs
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<whitenoise> and it was really nice and easy in Go
thomasle_ has joined #ruby
<pontiki> i am
Cyrus_ has joined #ruby
<pontiki> that does sound like a good starter
mansi has joined #ruby
<pontiki> i do a lot with IRC, was thinking that could be useful there as well
<shevy> whitenoise how far did you progress with your codebase?
<cpush_> whitenoise - I would be interested in seeing your go based mud is it open sourced?
alex__c2022 has quit [Quit: alex__c2022]
<whitenoise> shevy: I wrote the server (obvs) and then I had structs for rooms and players...and I had a 'say' command worked out for being able to emote and stuff in the says.
<whitenoise> cpush_: I have the code on a laptop I call "Old Faithful" at home...I could put it up on the interwebs.
<whitenoise> but there are other examples to have a look at
paissad has quit [Read error: Connection reset by peer]
digitalcake has quit [Ping timeout: 264 seconds]
<whitenoise> I since did a talk at local Google Developers group...using Go for a backend of a websocket chat, it worked really well for that as well.
<cpush_> cool, I don't know much about go but I would give it a go if I had some cool example code to look at, any components you would recommend looking at on the interwebs?
<whitenoise> depends what you are interested in, I guess.
iliketurtles has quit [Quit: zzzzz…..]
tylersmith has quit [Ping timeout: 260 seconds]
<whitenoise> goroutines and channels you need to understand to get going on anything worth doing...my go-to for a language is always a networked application like a chat or some sort of simple game...
<whitenoise> but there's also web.go which is a microframework...that's what I'm building my API in
<pontiki> whitenoise: that's the idea i have for Go: the chat room via websockets
<pontiki> i think it'd be fun
<whitenoise> pontiki: there is an excellent example already on the web. let me find it
blip99 has joined #ruby
<whitenoise> I based my implementation off of that.
mansi has quit [Ping timeout: 248 seconds]
<shevy> whitenoise do you like go more than ruby?
digitalcake1 has joined #ruby
JZTech102 has joined #ruby
tricon_ has quit [Quit: Linkinus - http://linkinus.com]
<whitenoise> shevy: Go is a quickly written language, and it is near the speed of C (just need more compiler optimizations to get it there) -- so it definitely has it's greatness, but I still prefer the Ruby language where applicable.
lessless has joined #ruby
<whitenoise> but I think for something like a web service or something like that that you know you are going to need exceptional performance from....Go is a better choice.
<lessless> how to collect first N times from Hash?
timonv has quit [Remote host closed the connection]
<havenwood> Ruby code is prettier. Go concurrency model seems quite nice.
<havenwood> Go-like concurrency gem for Ruby: https://github.com/igrigorik/agent#readme
JZTech101 has quit [Disconnected by services]
<pontiki> especially when you begin to need to handle many many processes and connections, go starts to make a hella sense
alex__c2022 has joined #ruby
iliketurtles has joined #ruby
<lessless> havenwood, is there a gem to remove gil? ;D
JZTech102 has quit [Client Quit]
<pontiki> it's called lung
Zolo has joined #ruby
<havenwood> lessless: Its called JRuby. :P
JZTech101 has joined #ruby
<lessless> oh yeah :)
tylersmith has joined #ruby
<whitenoise> lessless: were you asking a Ruby question that got run over by my off-topic discussion?
binw has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Client Quit]
<havenwood> lessless: Or use an IPC channel instead of a thread channel: https://github.com/robgleeson/ichannel
altamic has joined #ruby
<havenwood> So GIL no blocky.
altamic has left #ruby [#ruby]
alex__c2022 has joined #ruby
klaut has quit [Remote host closed the connection]
freakazoid0223 has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kpshek has joined #ruby
<havenwood> PREFORK ALL THE THINGS! \o/
<whitenoise> havenwood: how do you feel about jruby vs rubinius?
<whitenoise> if you have an opinion ther
<cpush_> lessless - gem install 'elixir' - http://elixir-lang.org/
freerobby has joined #ruby
mansi has joined #ruby
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<whitenoise> cpush_: that's pretty cool
<havenwood> I keep running into RBX issues that have kept me from using it for anything but play. I do look forward to trying out the upcoming 2.0.0 release.
<cpush_> kidding of course, but yes it keeps the syntactic sugar of ruby but uses ruby style langauge to write erlang vm code
<shevy> whitenoise ok, and when you compare Go with C? Go is better in your opinion?
freakazoid0223 has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
mansi has quit [Remote host closed the connection]
<whitenoise> shevy: that's a whole can of worms. Rob Pike released a statement that the C/C++ crowd is not adopting Go, it's the Python/Ruby crowd. so apparently avid C/C++ have a problem with changing (which is not surprising)
<whitenoise> so it may just be a "set in your ways" issue, but I'm not sure.
<whitenoise> something to do with garbage collection and stuff like that, a lot of really low-level computer science issues.
wald0_ has quit [Ping timeout: 246 seconds]
xavier23 has quit [Quit: xavier23]
mansi has joined #ruby
<whitenoise> Go has a built in garbage collector, and in C/C++ you would manufacture your own implementation for cleaning up after yourself
<whitenoise> and so on
cmarques has quit [Ping timeout: 264 seconds]
<whitenoise> so "better" is completely relative to your preference
<yxhuvud2> it may also be that c/c++ projects on the whole tend to be a lot older
nathandial has quit [Quit: Leaving.]
<whitenoise> yxhuvud2: this is also true
randomautomator has joined #ruby
<yxhuvud2> and changing stuff that already exist is harder
mrsolo has joined #ruby
<whitenoise> shevy: but if I were going to start a new project that needed that low-level capability, I would personally take Go over C/C++ any day
cmarques has joined #ruby
<whitenoise> the cross-platform compilers give you a C that moves around like Java.
IceDragon has joined #ruby
ahawkins has joined #ruby
ferdev has quit [Quit: ferdev]
<whitenoise> yxhuvud2: but yes, I have a feeling that a C/C++ project that has been sitting around for 35 years, people just don't want to port it over to anything.
fredjean has joined #ruby
Hobogrammer has quit [Ping timeout: 256 seconds]
swistak35 has joined #ruby
joshmyers has quit [Remote host closed the connection]
<yxhuvud2> at work we are moving towards a mix of c and lua for the performance critical paths, slowly deprecating an old horrid java monolith.
<whitenoise> i support that.
<whitenoise> i was never a java fan. :P
<whitenoise> before Go matured, I used C for everything I needed to be performant/low-level
b00stfr3ak has joined #ruby
<yxhuvud2> honestly, it is more the fault of not having refactored aggressively enough
mansi has quit [Ping timeout: 240 seconds]
<whitenoise> ah
anay has quit [Remote host closed the connection]
<whitenoise> so it just got cumbersome and slow because it was unoptimized code piled on top of each other continuously?
lkba has quit [Read error: Connection reset by peer]
jefflyne has joined #ruby
lkba has joined #ruby
cpush_ is now known as cpush
m8 has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
gnufied has quit [Ping timeout: 245 seconds]
<whitenoise> that's something I try to discourage here...our development director guy likes to do monkey patch situations and then "fix it later" and it never gets fixed later.
<whitenoise> and i like to spend an extra 4-5 hours and just do it right (unless it's an emergency)
<whitenoise> so there's a lot of contention there.
<yxhuvud2> more or less. now we are getting a lot of small services instead which is a lot easier. (ironically enough, the biggest monolith except for the old java code is now the rails config tool)
cmarques has quit [Ping timeout: 276 seconds]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
motto has joined #ruby
<whitenoise> yxhuvud2: I think Rails definitely has its growth limitations...I have been doing a lot of study on that recently, and I think looking at the progression of Twitter is a pretty good case study.
Kruppe has quit [Ping timeout: 248 seconds]
S0da has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
jonkri has joined #ruby
<yxhuvud2> well, growth in terms of concurrent users perhaps. We don't have that problem.
<whitenoise> ah
workmad3 has joined #ruby
blip99 has quit [Ping timeout: 240 seconds]
<havenwood> Twitter still uses Rails though. Just stopped being ridiculous with misuse.
<yxhuvud2> as it is solely a tool for monitoring and configuration.
popl has joined #ruby
motto has quit [Changing host]
motto has joined #ruby
<whitenoise> yxhuvud2: Puppet! :D with MCollective
<whitenoise> or not that kind of monitoring/configuration
devoldmx27 has joined #ruby
motto has quit [Read error: Connection reset by peer]
motto has joined #ruby
robustus has joined #ruby
<whitenoise> havenwood: It is my understanding that Rails basically serves their templating and stuff...and their back-end was first taken apart and made into a Java API...and then they also recently detached their searching from Rails and made it also in a Java search engine called something I'm not remembering right now.
m8 has quit [Ping timeout: 264 seconds]
<yxhuvud2> well, not close enough.
<havenwood> whitenoise: Mostly Scala if I recall.
<havenwood> vals and vars, oh my!
<yxhuvud2> though I have lobbied quite a lot to use chef for the configuration files instead of a homegrown python hack.
motto has quit [Changing host]
motto has joined #ruby
motto is now known as m8
m8 has quit [Client Quit]
tatsuya_o has quit [Remote host closed the connection]
cj3kim has joined #ruby
gnufied has joined #ruby
iFire_ has quit [Read error: Connection reset by peer]
reset has quit [Quit: Leaving...]
Matriks has joined #ruby
axl_ has quit [Ping timeout: 264 seconds]
<havenwood> Scala's new website is much nicer: http://www.scala-lang.org
<havenwood> Old one was so fugly!
<whitenoise> yxhuvud2: yeah. here we have a Nagios implementation for customized monitoring, I've written a few plugins in Go for it. And I tried to lobby as well for a Puppet/MCollective implementation...but instead we did VMWare template machines...which is not nearly as fast as just using Puppet.
devoldmx3 has quit [Ping timeout: 264 seconds]
<whitenoise> and I can't do nifty things like go into a console and send a message to all of them and get a response, or change config files on all the servers at once
cj3kim has quit [Read error: Connection reset by peer]
<whitenoise> I have to go into each one one at a time.
iFire has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
mansi has joined #ruby
<havenwood> Puppet or Chef??
axl_ has joined #ruby
<whitenoise> Puppet
<havenwood> Who wins?
<whitenoise> oh
<whitenoise> who wins, dunno
<whitenoise> I've never even used Chef.
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
dhruvasagar has quit [Ping timeout: 246 seconds]
interactionjaxsn has joined #ruby
kaldreno_ has joined #ruby
Zai00 has quit [Quit: Zai00]
Kricir has joined #ruby
mahmoudimus has joined #ruby
<kaldreno_> Is there a meaningful difference between += and << when it comes to addition and concatenation? I see that string_var += "foo" has the same output as string_var << "foo", and I also see that 1 << 1 == 2. Are these just aliases, or do they behave differently?
maniacal has joined #ruby
<yxhuvud2> whitenoise: well, we implement (or use standard implementations if applicable) snmp for our services so users can use whatever they want to monitor it.
maxmanders has joined #ruby
<havenwood> kaldreno_: << is more efficient in that it creates one less string object
<yxhuvud2> kaldreno: << modifies the original string.
<havenwood> kaldreno_: += take the two original strings, and creates a third combining the two
heftig has quit [Ping timeout: 245 seconds]
staafl has joined #ruby
<havenwood> kaldreno_: << concatenates the second string onto the first, no third object is created
<kaldreno_> havenwood, yxhuvud2: Thanks. What about for Fixnums? Does 1 << 1 actually behave differently from 1 + 1?
Voodoofish430 has joined #ruby
kaldreno_ is now known as kaldrenon
<apeiros> err, yes
<apeiros> << is bitshift, not addition
ahawkins has quit [Quit: leaving]
<kaldrenon> Ooooh.
<kaldrenon> I'm dumb. I should try more cases when playing with new operators.
<apeiros> it's actually a method
interactionjaxsn has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<MrZYX> hm, is it rewritten as method call or isn't it rather an operator that calls a method?
<havenwood> kaldrenon: It is idiomatic to use << for Strings.
<apeiros> MrZYX: IMO that doesn't matter.
marcdel has joined #ruby
<kaldrenon> havenwood: I'll stick to that, thanks again.
<havenwood> kaldrenon: Pry is really nice for exploring methods.
<apeiros> MrZYX: but I'm pretty sure it's parsed directly as a method call
<kaldrenon> havenwood: Oh yes, pry is excellent.
lushious has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
<shevy> << looks like spaceshift attacking with laser
dhruvasagar has joined #ruby
<shevy> I mean, spaceship
Astralum has joined #ruby
<kaldrenon> I haven't used it much for exploring methods, though. What's the basic procedure for that? e.g. how can I use pry to answer questions like my original query in the future?
<shevy> kaldrenon += will create a new object, << will not
TheDick has quit [Quit: TheDick]
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> kaldrenon: E.g., you could `cd Fixnum` and `ls` to look at methods. Then `? <<` to show docs or `$ <<` to show source.
<havenwood> kaldrenon: Might want to install pry-doc if you haven't already.
maxmanders has joined #ruby
heftig has joined #ruby
samrg472 has joined #ruby
brbcoding has joined #ruby
<kaldrenon> havenwood: excellent tips, thanks! I've been using pry for a little while but I knew I was only scratching the surface; it's a much more powerful rails console than irb
<havenwood> kaldrenon: (Of course from within Pry just check `help` for Pry commands.) Only one I disable is `cat` because I want to be able to name globally scoped local variables "cat".
<havenwood> As one does... :P
Zolo has quit [Remote host closed the connection]
x1337807x has joined #ruby
lessless has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
<havenwood> If you two want to reclaim your `cat` local var just add to your .pryrc: Pry.commands.rename_command '%cat', 'cat'
<havenwood> too**
tvw has quit []
<kaldrenon> havenwood: Hah, I actually use cat as a local variable myself. Question is: do you mean cat as in meow, or cat as in category?
<havenwood> Meow.
bjhaid has quit [Quit: Leaving.]
marr has quit [Ping timeout: 245 seconds]
<popl> as in "curiosity killed"
devoldmx3 has joined #ruby
mikepack has quit [Remote host closed the connection]
<popl> >:|
<havenwood> Curiosity killed the category.
<kaldrenon> ^
<kaldrenon> The category was "Mars landings"
<onewheelskyward> I'll take Mars Landings for $200, Alex.
banister has quit [Remote host closed the connection]
ColKurtz has joined #ruby
<kaldrenon> onewheelskyward: You will become rich and famous if you can land on Mars for $200. :P
<popl> havenwood: That's not even catchy.
reset has joined #ruby
asterite has joined #ruby
Zolo has joined #ruby
<shevy> hmm
asterite has left #ruby [#ruby]
devoldmx27 has quit [Ping timeout: 264 seconds]
<shevy> $200 would be only possible with robots that can build new robots
<endash> anal bum cover!!
Zolo has quit [Remote host closed the connection]
<popl> havenwood: Besides, I've seen pictorial evidence that curiosity did indeed kill the cat.
<havenwood> :P
<popl> havenwood: If it is on the Internet it must be true.
<havenwood> :O
<shevy> and when I hear cat, I think of "get content"
kpshek has quit []
<whitenoise> whoa
<whitenoise> i just looked back to irc and saw "anal bum cover" and cats.
<shevy> lol
<havenwood> Wow, that escalated quickly.
<havenwood> Oops, i'm late!
<popl> havenwood: Internet.
* havenwood flees at once.
Torstein has joined #ruby
havenwood has quit [Remote host closed the connection]
<popl> havenwood: There's no time, quickly, quickly!
<whitenoise> popl: too late..he's already gone.
<whitenoise> his flee skill did go up 2%, though.
<popl> RELEASE THE KRAKEN
<endash> but he lost some initiative
havenwood has joined #ruby
<whitenoise> he's back!
<popl> He can't get no satisfaction.
<popl> havenwood: Are you a cat?
ersmith has joined #ruby
mansi has quit [Remote host closed the connection]
* popl notes the temperature gauge stuck on 'silly'.
<kaldrenon> Catwin's Law: It's Godwin's Law, but s/Hitler/cats/g
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
Zolo has joined #ruby
<popl> kaldrenon++
saarinen has joined #ruby
mansi has joined #ruby
<endash> cats DO routinely remind me of hitler
<endash> what with their scheming and genocidal ways
pipework is now known as grumpwork
Cyrus_ has quit [Quit: Cyrus.close()]
orionstein_away is now known as orionstein
<popl> also anti-semitism
<endash> also: terrible landscape artists
bradhe has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
<redmenace> greetings. anyone have trouble building rcov with ruby 2.0? (using RVM/bundler)
havenwood has quit [Ping timeout: 246 seconds]
<popl> My Jewish friend has a cat and the cat bit him so hard my friend's finger swelled like a kielbasa.
IceyEC has joined #ruby
<popl> Hitler never bit any Jewish person AFAIK.
<popl> literally worse than Hitler
sambao21 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
kpshek has joined #ruby
sambao21 has joined #ruby
mansi has joined #ruby
saarinen has joined #ruby
<shevy> I had that too once with our new cat (years ago), my finger looked awful for several days. there were two deep bite marks from the upper teeth of the cat, and an infection followed, but it was still a small area so it healed after a week
<shevy> bastard bit me
geekbri has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
samrg472 has quit [Remote host closed the connection]
kirun has joined #ruby
<stef1a> Why would this http://pastie.org/8215969 return the error /usr/local/lib/ruby/2.0.0/net/protocol.rb:153:in `read_nonblock': end of file reached (EOFError) upon execution?
ferdev has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
rkeene has joined #ruby
<popl> your indentation is borked stef1a
elaptics is now known as elaptics`away
_helloworld_ has joined #ruby
_helloworld_ has quit [Remote host closed the connection]
<apeiros> stef1a: because that's what read_nonblock does when it reaches the end of a file (or in this case, an IO)
whitenoise has quit [Remote host closed the connection]
<apeiros> but odd…
<apeiros> net/http should rescue that itself…
tommyvyo has quit [Quit:]
tommyvyo has joined #ruby
jonathanwallace has joined #ruby
bigoldrock has joined #ruby
efrainolivares has joined #ruby
<rkeene> I'm trying to compile Ruby 1.9.3p448 for AIX. I eventually get it compiled, but it segfaults on startup trying to load "enc/encdb.so"
geekbri has joined #ruby
Kricir has quit [Remote host closed the connection]
TheDick has joined #ruby
rupee has joined #ruby
alvaro_o has joined #ruby
ahawkins has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
jonahR has joined #ruby
<stef1a> apeiros: yeah that's wha ti thought
interactionjaxsn has quit [Remote host closed the connection]
<stef1a> popl: the indentation shouldn't matter
ananthakumaran1 has quit [Quit: Leaving.]
timonv has joined #ruby
<popl> stef1a: only to people reading it. :)
sailias has quit [Ping timeout: 245 seconds]
khushildep has quit [Ping timeout: 246 seconds]
<stef1a> popl: :)
<hanmac> rkeene, did you try ruby-trunk?
ebanoid has quit [Quit: brbomgwtfbbq]
tgunr has quit [Remote host closed the connection]
freezey has joined #ruby
nathandial has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<stef1a> i think the problem is https
_droid has joined #ruby
<popl> stef1a: is it something in the content pointed to by the URI?
cpush has quit [Read error: Connection reset by peer]
<_droid> hi people, i have tried to install ruby from source, and changed my mind. How can I uninstall it?
<stef1a> popl: no
<popl> stef1a: if you determine the cause will you let us know?
tgunr has joined #ruby
<bigoldrock> sorry folks, I asked this question at one point, lost the answer ... and have to ask it again :(
<stef1a> popl: originally I was trying to download a list of files but some of them are invalid so i want to implement a validity checker (i.e., check the status of the request using openuri or net/http).
<bigoldrock> you have two arrays: larry ["1", "2", "3"]
<bigoldrock> and curly ["a", "b"]
<bigoldrock> you don't know the length of either one without .length
<bigoldrock> I need to have an each do |larry, curly| with zip
mnewton has joined #ruby
<hanmac> bigoldrock: so what is your wanted output?
<bigoldrock> for kicking off threads in equal measure with the larry and curly values
Matip has quit [Quit: Leaving]
<hanmac> _droid: depends on the OS and how you installed it
<bigoldrock> larry = 1, curly = a, larry = 2, curly = b, larry=3, curly=nil
jefflyne has quit [Ping timeout: 240 seconds]
<bigoldrock> so I can do a not_nil? or similar to handle differing lengths
<_droid> hanmac: im using kubuntu
<rkeene> hanmac, No, this is with Ruby 1.9.3p448
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
<popl> stef1a: I have to be wary when perusing SE sites. I find a lot of bad advice.
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
<hanmac> _droid, go into the source dir and try "sudo make uninstall" (i dont know if that works)
<_droid> hanmac: i'am already root
jefflyne has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
mikepack has joined #ruby
cj3kim has joined #ruby
Senjai has quit [Ping timeout: 276 seconds]
<shevy> _droid what prefix did you use during configure?
<shevy> and what ruby version
ewnd9_ has quit [Remote host closed the connection]
Kricir has joined #ruby
ewnd9 has joined #ruby
ewnd9 has quit [Remote host closed the connection]
nomenkun has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
vince_prignano has quit [Remote host closed the connection]
Davey has joined #ruby
<_droid> shevy: 2.0.0
kaspergrubbe has joined #ruby
Davey has quit [Client Quit]
ewnd9 has joined #ruby
<_droid> shevy: p247
<shevy> ok
<shevy> but you still did not answer all questions. prefix you used was what?
cj3kim has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
<hanmac> bigoldrock: larry.zip(curly).map{|(l,c)|"larry = #{l}, curly = #{c.inspect}"}.join(",")
Marlenee has quit [Remote host closed the connection]
visof has joined #ruby
<bigoldrock> thanks hanmac
sailias has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
Krajsnick has joined #ruby
bradhe has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
ksmth has joined #ruby
DanBoy has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
Davey has quit [Client Quit]
kaspergrubbe has quit [Ping timeout: 276 seconds]
realDAB has joined #ruby
havenwood has joined #ruby
S0da has joined #ruby
<stef1a> popl: Figured it out. This works:http://pastie.org/8216047 Two points of interest: 1. good indentation; 2. used the docs, not SE, to figure this out. ;)
<stef1a> though it does use Net::HTTP rather than Open-URI
<stef1a> solely Open-URI, rather
barratt has joined #ruby
bradhe has joined #ruby
m8 has joined #ruby
fuzzyhorns has joined #ruby
helvete has joined #ruby
<apeiros> stef1a: unrelated to your error, but you can reduce your 5 line return statement to a simple `return res.code == 200`
VegBerg has joined #ruby
<apeiros> which in turn can be reduced to just `res.code == 200`
<fuzzyhorns> anyone know how to get just the class name off of a name spaced class?
saarinen has quit [Quit: saarinen]
<fuzzyhorns> right now am doing this r.class.name.to_s.split("::").last
<apeiros> fuzzyhorns: um, name already is a String
<apeiros> no point in doing to_s on that…
tatsuya_o has joined #ruby
<fuzzyhorns> nm, this works: self.class.name.demodulize
<apeiros> yourclass.name[/[^:]*\z/]
<apeiros> that's not ruby, though, that's a railsism
sayan has quit [Ping timeout: 256 seconds]
<fuzzyhorns> yeah, i am realizing
<popl> stef1a++
twoism has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
fuzzyhorns has left #ruby [#ruby]
harleytaz has joined #ruby
<havenwood> imho just one-line it: Net::HTTP.get_response(URI.parse(url)).code != 200
<havenwood> i dun like explicit returns
<havenwood> Just merge ActiveSupport into Ruby? :o
ahawkins has quit [Quit: leaving]
<havenwood> Seems #blank? and friends would actually be nice to just have
<havenwood> Array.fifteenth >.>
twoism_ has joined #ruby
axeman- has quit [Remote host closed the connection]
<hanmac> i dont trust "#blank?" … i mean is this an blank string? " " ?
burlyscudd has quit [Quit: Leaving.]
<hanmac> or this? "\t" ?
<apeiros> by #blank? it is
<apeiros> and I agree, I dislike that behavior
<hanmac> what about the other non printable unicode chars?
ahawkins has joined #ruby
Wandering_Glitch is now known as WanderingGlitch
interactionjaxsn has joined #ruby
<havenwood> How bout just Inflector, #camelize, #underscore, #ordinalize?
brennanMKE has quit [Ping timeout: 240 seconds]
nomenkun has quit [Remote host closed the connection]
pkrnj has joined #ruby
<apeiros> part of the Multibyte stuff should be in core, though
mahmoudimus has left #ruby ["Leaving..."]
<apeiros> it's really sad that things like unicode normalization/denormalization are not in core
<apeiros> or transliteration
<hanmac> ok blank? is inteligent enouth to use [:space:]
<apeiros> also dearly missing: collations
realDAB has quit [Quit: realDAB]
harleytaz has left #ruby ["Textual IRC Client: www.textualapp.com"]
sambao21 has joined #ruby
Neomex has joined #ruby
i_s has joined #ruby
rickmasta has joined #ruby
kpshek has quit []
ersmith has quit [Ping timeout: 246 seconds]
Kelet_ is now known as Kelet
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has joined #ruby
<havenwood> #prepend > #unshift
<havenwood> trivial but nice
<havenwood> $:.unshift... grrr
x1337807x has joined #ruby
Ontolog has joined #ruby
<apeiros> re $: - I got a response today on a feature request for php I made in 2005 :)
froy has quit [Quit: kablam!]
<apeiros> where I asked for a function to return an array of load paths, instead of a string
<apeiros> (and the answer? it tells me how to split the string… which I obviously already knew back then as I wrote it in the request…)
<zendeavor> holy wot
<hanmac> when playing with the loadpath an message box should appear and you need to click [ I know what i do! ]
<Ontolog> I forget, is using an instance variable inside the eigenclass (class << self; def bro; @bro ||= init_bro; end; end;) the same as using a class variable (def self.bro; @@bro ||= init_bro; end)?
<_droid> ok I nearly got it working, my last problem is that when I want to create a new project with eclipse, the shell apparently runs "rails .", where can I change that
<apeiros> Ontolog: no
<apeiros> Ontolog: class variables are never the same as ivars
krawchyk_ has joined #ruby
<zendeavor> splitting scalars is error-prone
<Ontolog> apeiros: thanks!! so it seems safe to use the first form then
pothibo has joined #ruby
vlad_starkov has joined #ruby
Neomex has quit [Quit: Neomex]
realDAB has joined #ruby
soulashell has joined #ruby
Kricir has joined #ruby
elaptics`away is now known as elaptics
relix has joined #ruby
soulashell has quit [Remote host closed the connection]
conner has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<kaldrenon> On a hash h where every value is a number, what would be the cleanest way to do h[key] = foo if h[key] is nil, otherwise h[key] += foo ? Is there a way to do "init-or-increment" in one line?
<apeiros> kaldrenon: initialize the hash with a default of 0
<apeiros> and always do += foo
<stef1a> apeiros: thanks
noop has quit [Ping timeout: 240 seconds]
<kaldrenon> apeiros: is it possible to make the default 0 for any key? This has has a dynamic set of keys; I don't know whether it will exist when I do the assignment.
axeman- has joined #ruby
<Xeago> apeiros: isn't 0 the default value?
<apeiros> Xeago: no, nil is
<Xeago> kaldrenon: Hash.new(0) isn't it?
<apeiros> kaldrenon: that's the point of "default value"
mikepack has quit [Remote host closed the connection]
<apeiros> otherwise it's a "value set for the key"
<kaldrenon> Ah, alright, I misunderstood. Thanks!
<apeiros> and Xeago showed how
<kaldrenon> apeiros, Xeago: thanks!
<apeiros> if you need to test whether a key exists, you can still do it with Hash#key?
<apeiros> since Hash#[] will now return 0 even for inexistent keys
<kaldrenon> Got it. So I can't do Hash[:foo].nil? but I can use key? instead.
kevinykchan has quit [Quit: Computer has gone to sleep.]
bradsmith has quit [Remote host closed the connection]
saarinen has joined #ruby
_droid has left #ruby [#ruby]
<apeiros> yupp
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jarray52 has joined #ruby
Kricir has quit [Remote host closed the connection]
cj3kim has joined #ruby
burlyscudd has joined #ruby
chriskk has joined #ruby
pothibo has quit [Quit: pothibo]
Senjai has joined #ruby
havenwood has quit [Remote host closed the connection]
conner has joined #ruby
alexspeller has left #ruby ["Leaving..."]
banister has joined #ruby
ksmth has quit []
havenwood has joined #ruby
JumpMast3r has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
twoism_ has quit [Ping timeout: 264 seconds]
efrainolivares has quit [Quit: efrainolivares]
workmad3 has quit [Ping timeout: 248 seconds]
brennanMKE has joined #ruby
`MArceLL` has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
stanely_sobolev has joined #ruby
browndawg has left #ruby [#ruby]
intuxicated_ has joined #ruby
ehaliewicz has joined #ruby
Speed has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
devoldmx27 has joined #ruby
realDAB has quit [Quit: realDAB]
wicked has quit [Remote host closed the connection]
Krajsnic_ has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
ahawkins_ has joined #ruby
ahawkins_ has quit [Client Quit]
Zolo has joined #ruby
Zolo has quit [Remote host closed the connection]
realDAB has joined #ruby
markisonfire has joined #ruby
devoldmx3 has quit [Ping timeout: 260 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
<stef1a> Not sure what's up with this: http://pastie.org/8216187... Getting a permission error with writing to /usr/local/bin when trying to install gems
Krajsnick has quit [Ping timeout: 246 seconds]
Senjai has quit [Ping timeout: 260 seconds]
<realDAB> stef1a: all i can think is that you don't have permission to write to /usr/local/bin :-)
<realDAB> stef1a: can you sudo it?
ahawkins has quit [Ping timeout: 240 seconds]
moted has quit [Quit: moted]
moted has joined #ruby
<stef1a> realDAB: I presume so, but I was told yesterday on this IRC to not use sudo for installing gems (i ran into a problem with using a gem after sudo installing it yesterday)
efrainolivares has joined #ruby
timonv has quit [Remote host closed the connection]
workmad3 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stef1a> so i am conflicted.
bradhe has quit [Remote host closed the connection]
<realDAB> stef1a: hmmm, i don't know the rationale for that but there may well be problems i'm not aware of
<Nilium> Do a user install of Ruby, stop using system-wide gems, etc.
<Nilium> Also use rbenv.
<havenwood> s/rbenv/chruby
<Nilium> rbenv.
* Nilium puts havenwood in a box.
twoism has joined #ruby
allsystemsarego has quit [Quit: Leaving]
<havenwood> chruby.
* havenwood escapes the box.
<stef1a> Nilium: ... rvm?
* Nilium hits stef1a with a giant comedy hammer.
<Nilium> No.
<Nilium> rvm does bad things to your shell.
<stef1a> ... such as?
efrainolivares has quit [Quit: efrainolivares]
<stef1a> I have rbenv
larissa has joined #ruby
fcahoon has joined #ruby
<stef1a> and I have rvm
<havenwood> stef1a: RVM is the most popular Ruby version manager. A user install will allow you to use gems without sudo. Other options are rbenv and chruby.
<pontiki> not to the shell.... ~in~ the shell :)
jonathanwallace has quit [Ping timeout: 264 seconds]
<havenwood> stef1a: RVM != rbenv
supergiantrobot has joined #ruby
Krajsnic_ has quit [Remote host closed the connection]
<Nilium> It mostly depends on what you prefer the version manager does.
<Nilium> If you like it hooking into cd and breaking things, rvm is your best bet.
Kricir has joined #ruby
<havenwood> stef1a: rbenv puts a bunch of shims in your path and chruby sets your environment variables
jonathanwallace has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
<Nilium> If you like shims and don't want something touching your path, then use rbenv. If you don't like shims and are okay with it touching your path, use chruby.
popl has quit [Quit: We must make an idol of our fear, and call it God.]
<stef1a> hm
Vivekananda has joined #ruby
krawchy__ has joined #ruby
<stef1a> alternatively i can continue sudo installing gems until I run into trouble and THEN reinstall rvm and ruby
<stef1a> ...?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<stef1a> considering I'm the only user of my box
<havenwood> stef1a: Using an apt-get install of Ruby?
<havenwood> stef1a: Or built your own?
devoldmx27 has quit [Ping timeout: 264 seconds]
krawchyk_ has quit [Ping timeout: 240 seconds]
<stef1a> havenwood: apt-get i believe
<havenwood> stef1a: What Ruby version are you on?: ruby -v
<stef1a> how'd you know I was using linux?
<stef1a> 2.0.0.p195
<havenwood> stef1a: sudo
<stef1a> havenwood: ah
akashj87 has joined #ruby
<havenwood> Not an apt package then.
sayan has joined #ruby
digitalcake1 has quit [Quit: Leaving.]
eka has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
<havenwood> stef1a: I'd just go ahead and pick one (RVM, chruby, rbenv), install latest stable Ruby (2.0.0-p247) and know you don't have to worry about sudo.
Kricir_ has joined #ruby
jbpros has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
Kricir_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
digitalcake has joined #ruby
<havenwood> http://rvm.io/
<rkeene> How can I build a statically linked Ruby interpreter that will not attempt to dlopen()/shlopen() anything ?
<havenwood> k0rupted: OS?
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
<havenwood> k0rupted: For OS X there is a project for statically linked build: https://github.com/tokaido/tokaido-build
<rkeene> Are you talking to me ?
<havenwood> rkeene: Oh, oops! Yeah - autocompletion fail on my part.
<rkeene> The OS is AIX
eka has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
<havenwood> rkeene: Hrm, i dunno.
saarinen has quit [Quit: saarinen]
smathieu has quit [Remote host closed the connection]
brennanMKE has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
<rkeene> I wouldn't have suspected this would be platform specific (unlike doing the opposite, loading shared objects is very platform specific)
brennanMKE has joined #ruby
ebanoid has joined #ruby
<rkeene> Ruby 2.0.0 might be doing what I want, though...
slash_nick is now known as Ogrerage
hakunin has joined #ruby
marr has joined #ruby
Ogrerage is now known as slash_nick
mklappst_ has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
IceDragon has joined #ruby
<rkeene> Yes, Ruby 2.0.0 does exactly what I want. And doesn't segfault ! :-)
jh00pla has joined #ruby
kpshek has quit []
saarinen has joined #ruby
<RubyPanther> "Think of what that would mean to you, if your delivery mechanism was a plugin" -- Uncle Bob
Kricir_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
kpshek has joined #ruby
Al_ has joined #ruby
marcdel has joined #ruby
ewag_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mklappst_ has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
ewag has quit [Ping timeout: 264 seconds]
larissa has quit [Quit: Leaving]
d2dchat has quit [Remote host closed the connection]
Al_ has quit [Quit: Al_]
sambao21 has joined #ruby
smathieu has joined #ruby
<hanmac> rkeene: you mean like that?
<hanmac> >> reguire "mathn"; (1/2).floor
<hanmac> >> reguire "mathn"; (1/2).floor
<eval-in> Hanmac => undefined method `reguire' for main:Object (NoMethodError) ... (https://eval.in/41479)
<hanmac> >> require "mathn"; (1/2).floor
<hanmac> >> require "mathn"; (1/2).floor
<eval-in> Hanmac => 0 (https://eval.in/41480)
<apeiros> errr, hanmac?
nomenkun has joined #ruby
<hanmac> >> require "mathn"; (1/2).round(2)
<eval-in> Hanmac => /tmp/execpad-5893e30dbecb/source-5893e30dbecb:2: [BUG] Segmentation fault ... (https://eval.in/41481)
Emmanuel_Chanel has joined #ruby
rbento has quit [Quit: ┐('~`;)┌]
<apeiros> oh, ew
<apeiros> file a bug?
<hanmac> apeiros: is already fixed in trunk
<hanmac> after <8h
jh00pla has quit [Quit: Leaving]
<apeiros> ah, kay
efrainolivares has joined #ruby
nfk has quit [Quit: yawn]
nomenkun_ has joined #ruby
<rkeene> hanmac, What ?
timonv has joined #ruby
<hanmac> rkeene: i mean your current ruby version might be not so segfault save as you thought ,P
c0rn has joined #ruby
nathandial has quit [Quit: Leaving.]
nomenkun has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
larissa has joined #ruby
nathandial has joined #ruby
larissa has quit [Client Quit]
Megtastique has quit [Ping timeout: 240 seconds]
Al_ has joined #ruby
<rkeene> hanmac, It's cool, I don't have a lot of faith in Ruby in general
_helloworld_ has joined #ruby
blackmesa has joined #ruby
senayar has joined #ruby
arya_ has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
<banister> rkeene: which language's do you have faith in? :)
iliketurtles has quit [Quit: zzzzz…..]
brbcoding has quit []
rickmasta has quit [Quit: Leaving...]
<waxjar> brainfuck!
<apeiros> whitespace!
bradsmith has joined #ruby
<apeiros> who wouldn't trust a language where all written text is comment? :)
arya_ has quit [Ping timeout: 264 seconds]
* IceDragon hides behind banister
<banister> languages*
<IceDragon> someone who doesn't have faith in ruby :(
* IceDragon cries
<hanmac> apeiros what about "Shakespeare" ? ;P
Notte has joined #ruby
<apeiros> nice one too
<IceDragon> I'm guessing he was one of the guys who ended up trying rails before ruby >:
Megtastique has joined #ruby
TheDick has quit [Quit: TheDick]
marcdel has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
<fryguy> if a hash is printed out as is and you get text like "{:key => 'value'}" is it possible to turn this string into a Hash object easily?
<apeiros> fryguy: while you probably shouldn't do it: a) eval, b) https://github.com/apeiros/literal_parser/
<rkeene> banister, Tcl
bradsmith has quit [Ping timeout: 276 seconds]
JZTech101 has quit [Quit: Bye]
<fryguy> yep just found out that it's suitable with eval
<apeiros> fryguy: note that the latter does not use eval
bradhe has joined #ruby
<fryguy> apeiros: obviously something that shouldn't be done, so yeah
s0ber_ has joined #ruby
<apeiros> i.e., if you need to do it in a safe way, I'd recommend the latter. or rather, I'd always recommend the latter :)
<fryguy> amazing that you just happened to have written a gem that does this
monkegjinni has joined #ruby
<banister> apeiros: k00 lib
mikepack has joined #ruby
<hanmac> fryguy, flat hash or multi dimensional too?
eka has quit [Ping timeout: 248 seconds]
<apeiros> banister: thx
<fryguy> hanmac: i think it's flat, asking on behalf of a friend so i'm not sure
blackmesa has quit [Ping timeout: 240 seconds]
<fryguy> he's mostly just mad that the person who wrote the code he's dealing with didn't just write it as json instead of writing it as a literal object string
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
s0ber has quit [Ping timeout: 264 seconds]
ziggles has joined #ruby
s0ber_ is now known as s0ber
eka has joined #ruby
Quadro has joined #ruby
<Quadro> èäè íàõóé
<Quadro> õóé
Tricon has joined #ruby
<Quadro> go to the chenel #fsdrt
Quadro was kicked from #ruby by apeiros [you can do your tests elsewhere, thanks]
<waxjar> chenel
<banister> apeiros: which irc client do you use?
<hanmac> >> "{:key => 'value'}"{:key => 'value'}".scan(/:(\w+)\s+=>\s+'(\w+)'/).each_with_object({}) {|(k,v),h|h[k.to_sym]=v}
<eval-in> Hanmac => /tmp/execpad-11c74d3bf218/source-11c74d3bf218:2: syntax error, unexpected '{', expecting keyword_end ... (https://eval.in/41483)
<apeiros> banister: still limechat. not entirely happy, though.
<banister> apeiros: can you script this thing?
<banister> apeiros: how did you op yourself so quickly?
BRMatt has joined #ruby
<apeiros> banister: I think the source is open
<banister> i have to type: /msg chanserv .. blah blah
<hanmac> >> "{:key => 'value'}".scan(/:(\w+)\s+=>\s+'(\w+)'/).each_with_object({}) {|(k,v),h|h[k.to_sym]=v}
<eval-in> Hanmac => {:key=>"value"} (https://eval.in/41486)
<apeiros> banister: /cs op #ruby
<banister> apeiros: so you made changes to the obj-c source?
<zendeavor> huh
<apeiros> hell no :)
<banister> apeiros: so how did you write the /cs command?
Uranio has quit [Quit: while you reading this, a kitty dies]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
<apeiros> with x-chat aqua I had ruby plugins
<ziggles> Hey guys, i hope this isn't a ridiculous question but I was wondering if it's better to design classes so they are constructed as such: `ClassThatNeedsIdAndName.new(123123123, "frank")` OR `ClassThatNeedsIdAndName.new(id: 123123123, name: "frank")` ?
<apeiros> much better for op-ing
<apeiros> I'd just write /kb quadro
ersmith has joined #ruby
<apeiros> and it'd op me, kick him and ban by nick and host
<hanmac> fryguy: is that code line i posted suitable for you?
<banister> apeiros: so those commands are built in?
<waxjar> check out textual, it's p neat
<apeiros> banister: yes, /cs is short for /msg chanserv
<zendeavor> weechat /alias
<ziggles> Seems like the latter is a lot more readable for some guy just stepping into the codebase... but the first one is what i'm typically used to seeing.
<banister> waxjar: can you script textual? it's a pretty ugly client though
arya_ has quit [Ping timeout: 264 seconds]
<apeiros> most clients have that afaik
<apeiros> banister: try /cs help
<zendeavor> weechat all the things
<apeiros> or just try /cs op #ruby :)
<zendeavor> you need to tell your client to pass through unknown commands to the server
sambao21 has quit [Quit: Computer has gone to sleep.]
<waxjar> banister yea. it just runs a script and uses it's output, so you can use Ruby too
bradsmith has joined #ruby
<apeiros> ziggles: with just 2 arguments, I'd go with the former
havenwood has quit [Ping timeout: 260 seconds]
grillermo has quit [Quit: bandtastic.me]
<ziggles> apeiros: i see. so it's totally up to me to make the call lol
arya_ has joined #ruby
JZTech101 has joined #ruby
Mekkis has quit [Ping timeout: 245 seconds]
<graft> okay, so system returns exit status but no output
JZTech102 has joined #ruby
<graft> so if i want output i need to use `` or %x{}
optimusprimem has quit [Excess Flood]
timonv has quit [Remote host closed the connection]
JZTech102 has quit [Client Quit]
JZTech101 has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<graft> however, system also lets me specify the shell i want to use (e.g. system "/bin/bash", "-c", my_cmd
orionstein is now known as orionstein_away
JZTech101 has joined #ruby
<graft> oh wait... i guess i can just do %x{/bin/bash -c my_cmd}
<apeiros> slow clap? :)
QKO has quit [Ping timeout: 256 seconds]
_JamieD_ has joined #ruby
anonymuse has quit [Remote host closed the connection]
optimusprimem has joined #ruby
<Rylai> graft: If you haven't already seen this, take a look at http://rubyquicktips.com/post/5862861056/execute-shell-commands
<graft> and the error status of %x{} goes in some funny variable...
<graft> $?
<hanmac> apeiros: look what i have done:
pedestrian has quit [Quit: pedestrian]
<hanmac> >> "{:key => 'value', :key2 => 3, :key3 =>4.5 }".scan(/:(\w+)\s?=>\s?('?)(\w+(\.\w+)?)('?)/).each_with_object({}) {|(k,s,v,r),h|h[k.to_sym]= !s.empty? ? v : r ? v.to_f : v.to_i}
<eval-in> Hanmac => {:key=>"value", :key2=>3, :key3=>4.5} (https://eval.in/41490)
_JamieD_ has quit [Client Quit]
arya_ has quit [Ping timeout: 264 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
anonymuse has joined #ruby
blackmesa has joined #ruby
<apeiros> hanmac: y u so crazy?
Matriks has quit [Remote host closed the connection]
<hanmac> hm maybe? ;P
_helloworld_ has quit [Remote host closed the connection]
byprdct has joined #ruby
froy has joined #ruby
byprdct has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
<Lewix> [BUG] Segmentation fault
r0bgleeson has joined #ruby
kpshek has quit []
<shevy> hehe
<shevy> the joy
<banister> r0bgleeson: yo
<hanmac> Lewix: that is Rubys way to say: "I dont know what went wrong"
QKO has joined #ruby
<graft> ergh. now i have to quote-escape my damn strings, because bash -c takes a quoted argument
<stef1a> how do you interpolate and escape the characters in the interpolation?
kpshek has joined #ruby
jbpros has quit [Quit: jbpros]
<stef1a> like I want to preserve \n in the interpolated string... I don't want a newline to be inserted
r0bgl33s0n has quit [Ping timeout: 276 seconds]
<Lewix> hanmac: ruby is so selfish -)
<hanmac> it could also say: "[BUG] Your fault"
<kaldrenon> I think it should say "[BUG] Cockroach" but that's just me.
blackmesa has quit [Ping timeout: 240 seconds]
colonolGron has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
<shevy> stef1a perhaps shellquotes?
ctp has joined #ruby
jonkri has quit [Quit: jonkri]
burlyscudd has quit [Ping timeout: 264 seconds]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has joined #ruby
<shevy> require 'shellwords'; Shellwords.shellsplit 'abc def ghi \'yodel dodel\' jkl ' # => ['abc', 'def', 'ghi', 'yodel dodel', 'jkl']
chriskk_ has joined #ruby
Companion is now known as companion
<zendeavor> graft: it takes a single-quoted argument, for reference.
orionstein_away is now known as orionstein
<zendeavor> double-quotes are wrong
chriskk has quit [Ping timeout: 264 seconds]
chriskk_ is now known as chriskk
<shevy> stef1a btw the \n is kept in the string
<stef1a> shevy: you can also use #inspect ;)
geekbri has quit [Remote host closed the connection]
<stef1a> which I shall do because it works
jerematic has joined #ruby
Megtastique has quit [Read error: Operation timed out]
blackmesa has joined #ruby
jduan1981 has joined #ruby
hanmac has quit [Quit: Leaving.]
chriskk has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
ziggles has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
Neener54 has joined #ruby
lebek has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
efrainolivares has joined #ruby
anonymuse has quit [Remote host closed the connection]
Al__ has joined #ruby
brennanMKE has quit [Remote host closed the connection]
jduan1981 has quit [Quit: jduan1981]
jduan1981 has joined #ruby
_helloworld_ has joined #ruby
Al_ has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
JimmyNeutron has joined #ruby
emergion has joined #ruby
machuga is now known as machuga|away
Kricir has joined #ruby
machuga|away is now known as machuga
<JimmyNeutron> Could someone explain the difference between a module and class? I read the definition, but still not clear on their differences.
<shevy> JimmyNeutron a module is a crippled class
anonymuse has joined #ruby
<Neener54> Modules don't get instantiated
<apeiros> classes can't be used with include or extend
iliketurtles has joined #ruby
chriskk has joined #ruby
<JimmyNeutron> But in class, you can also called the methos without creating an instance.
<apeiros> so: classes are crippled modules :-p
<apeiros> JimmyNeutron: no
<apeiros> JimmyNeutron: those are class methods and technically not on the class
i_s has quit [Remote host closed the connection]
<shevy> JimmyNeutron you probably mean def self.foo
trepidaciousMBR has joined #ruby
<JimmyNeutron> shevy, yeap. I was referring to self.foo
<shevy> you can use that in modules too so that is not a difference JimmyNeutron
jp- has joined #ruby
chriskk has quit [Client Quit]
vlad_starkov has joined #ruby
<realDAB> and any other object
ehc has quit [Quit: ehc]
helvete has quit [Quit: Leaving...]
atyz has quit [Quit: Leaving...]
<JimmyNeutron> ok...let me do some more googling and look at more examples
<havenwood> Use a module unless you need instantiation.
<shevy> except for Fixnum
<realDAB> (except numbers)
<realDAB> yeah
<JimmyNeutron> ok..thanks!
<apeiros> and immediates
marcdel has joined #ruby
<realDAB> s/any/almost any/ :-)
IceyEC has quit [Quit: IceyEC]
<apeiros> (nil, true, false, symbols, fixnums)
alex__c2022 has quit [Quit: alex__c2022]
Nisstyre has joined #ruby
<realDAB> apeiros: you can do def true.x; end
cj3kim has quit [Remote host closed the connection]
Al__ has quit [Read error: Connection reset by peer]
<realDAB> apeiros: and nil and false
<apeiros> realDAB: that's because true.singleton_class # => TrueClass
adeponte has quit [Remote host closed the connection]
<apeiros> it's not really true.x :)
Al_ has joined #ruby
<realDAB> apeiros: yeah but you can do it :-)
<realDAB> mind you, /me has never felt the need to do it
stef1a has quit [Quit: leaving]
adeponte has joined #ruby
<apeiros> hrrr, ok. you can do `def true.x`, but you can't define methods on true's singleton class.
mary5030 has quit [Ping timeout: 246 seconds]
anonymuse has quit [Remote host closed the connection]
<realDAB> i guess the idea is that since TrueClass can only have one instance, it sort of is a singleton class already
<apeiros> (which is somewhat moot because true is the only instance of TrueClass, so there's no real difference between TrueClass and a singleton_class of true - which is probably why true.singleton_class == TrueClass in the first place)
<apeiros> ^
narcan has joined #ruby
<apeiros> ^5? :)
arya_ has joined #ruby
ziggles has joined #ruby
<realDAB> apeiros: ?
<apeiros> ^5 = high five
<ziggles> Could someone please help me understand why how i fix this rspec error? http://pastie.org/8216460 I understand that MyClass is being constructed w/ a required param but how should i test that instances of my class have the correct methods/attributes?
<realDAB> apeiros: ah, right :-)
<apeiros> because we basically said the same thing
<realDAB> yeah
<realDAB> ^5
kpshek has quit []
<apeiros> ^5 :D
anonymuse has joined #ruby
atyz has joined #ruby
helvete has joined #ruby
<havenwood> ziggles: Still an error with parens? Curious if a parsing issue?: respond_to(:id)
<zendeavor> apeiros: you still have your ophat on
<apeiros> oh, right. thx
* apeiros puts down his wizard hat
<ziggles> havenwood: sorry i don't understand what you mean.
Kricir has quit [Remote host closed the connection]
kpshek has joined #ruby
kaldrenon has quit [Remote host closed the connection]
<graft> ummm... okay, i have a string that contains a bunch f ' characters, how do i escape it so those are instead \' ?
vince_prignano has joined #ruby
<havenwood> ziggles: Does it work if you change `should respond_to :id` to `should respond_to(:id)`?
<graft> i can't figure out how to get the escape sequences right with gsub
vlad_starkov has quit [Ping timeout: 240 seconds]
<graft> str.gsub(/'/,"\\'") doesn't do it
alekst has joined #ruby
arya_ has quit [Ping timeout: 246 seconds]
<apeiros> graft: you need like 6 \ there
<graft> yeah how many?
<ziggles> havenwood: unfortunately it makes no difference.
<apeiros> oh, 4 actually
<apeiros> >> "'".gsub(/'/, "\\\\'")
<eval-in> apeiros => "\\'" (https://eval.in/41494)
spyderman4g63 has quit [Remote host closed the connection]
<apeiros> the replacement string seems to be interpreted twice for special sequences (\' is a reference - prematch iirc)
freezey has quit [Remote host closed the connection]
<havenwood> ziggles: i don't use rspec, that was only thing that seemed nebulous, dunno!
<graft> ahh, so when it says "\\'", it means \'
<graft> confusing
<apeiros> because \\ is just \
<ziggles> havenwood: no worries, thanks a lot for trying to help me out
wildcard0 has quit [Read error: Connection reset by peer]
<graft> what a lousy string this is
brennanMKE has joined #ruby
nanoxd has quit [Ping timeout: 276 seconds]
Dorky- has joined #ruby
stkowski has quit [Quit: stkowski]
rhannequin has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
akashj87 has quit [Quit: leaving.]
monkegjinni has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
<rhannequin> Hey guys, I'm having trouble with Sinatra and json rendering from AJAX request, does anybody available fr some advices?
monkegjinni has joined #ruby
arya_ has joined #ruby
redmenace has quit [Ping timeout: 246 seconds]
tgunr has quit [Ping timeout: 264 seconds]
Megtastique has quit [Ping timeout: 264 seconds]
ehaliewicz has joined #ruby
<shevy> what was the name of the ruby WM again?
monkegjinni has quit [Remote host closed the connection]
Megtastique has joined #ruby
<sam113101> window manager?
<zendeavor> subtle?
JimmyNeutron has quit [Quit: Leaving]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
Senjai has quit [Ping timeout: 264 seconds]
<zendeavor> http://is.gd/b0AwDZ right
<RubyPanther> shoes?
krawchy__ has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
<shevy> ah yes subtle
Spooner has joined #ruby
tgunr has joined #ruby
freerobby has quit [Quit: Leaving.]
musl has quit [Quit: WeeChat 0.4.1]
<RubyPanther> There is also ruby-wmctrl
brennanMKE has quit [Read error: Connection reset by peer]
<RubyPanther> So you can hijack a regular wm with ruby :)
chriskk has joined #ruby
<shevy> oh well
<zendeavor> subtle confused the bajeezus out of me
c0rn has quit [Quit: Computer has gone to sleep.]
musl has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
i_s has joined #ruby
bobbyz has joined #ruby
<Torstein> how do i gsub newlines, so that i go from "there is\na newline in my sentence" to "there is a newline in my sentence", without messing up other newlines?
sam19113 has joined #ruby
<ericwood> >> "lol\nwtf".gsub(/\n/, '')
<eval-in> ericwood => "lolwtf" (https://eval.in/41495)
<ericwood> !next
sambao21 has joined #ruby
<ericwood> oh this isn't #javascript
<Torstein> thats a cool bot
<Torstein> :)
Al_ has quit [Ping timeout: 260 seconds]
kirun has quit [Quit: Client exiting]
Senjai has joined #ruby
Senjai has joined #ruby
<apeiros> or .tr("\n", " ")
<nathandial> >> `cat /etc/passwd`
<eval-in> nathandial => (https://eval.in/41496)
<apeiros> nathandial: the bot is only for demonstration purposes.
<shevy> :D
<nathandial> :-)
<Torstein> haha
nomenkun_ has quit [Remote host closed the connection]
<Torstein> but you've misunderstood me. i dont want to replace every newline, only the ones between to characters.
<Torstein> "\n\n" should not be replaced
emergion has quit [Quit: Computer has gone to sleep.]
Al_ has joined #ruby
byprdct has joined #ruby
epta has quit [Ping timeout: 264 seconds]
ersmith has quit [Read error: Operation timed out]
Senjai has quit [Read error: Connection reset by peer]
<apeiros> /(?<=\p{Letter})\n(?=\p{Letter})/
epta has joined #ruby
<Torstein> i think i need to match [\S]\n[\S] and then only replace the \n with " "
RichardBaker has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
v0n has quit [Ping timeout: 276 seconds]
<apeiros> [\S] is the same as just \S
<Torstein> true
<apeiros> and \S is not "letter"
blackmesa has quit [Ping timeout: 240 seconds]
<apeiros> well, that said, "character" is a rather vague description :)
<Torstein> hehe
RichardBaker has joined #ruby
blackmesa has joined #ruby
i_s has quit [Ping timeout: 256 seconds]
Al_ has quit [Read error: Connection reset by peer]
realDAB has quit [Quit: realDAB]
kaspergrubbe has joined #ruby
Al_ has joined #ruby
brennanMKE has joined #ruby
<Torstein> where can I read about (? syntax?
<Torstein> nevermind
Xeago has quit [Remote host closed the connection]
i_s has joined #ruby
Jdubs has joined #ruby
postmodern has joined #ruby
anonymuse has quit [Remote host closed the connection]
freerobby has joined #ruby
terrellt has joined #ruby
anonymuse has joined #ruby
<terrellt> Anyone have any issues with rspec autoloading behavior? I've got a gem that defines module Hybag in lib/hybag.rb and a lib/hybag.rb in my Rails project. It combines the two perfectly in rails c, but in rspec it only loads the rails lib/hybag.rb.
arya_ has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
theRoUS has quit [Ping timeout: 264 seconds]
airlok has joined #ruby
elux has quit [Quit: Bye!]
wmoxam has quit [Ping timeout: 276 seconds]
arya_ has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
fridim__ has joined #ruby
tgunr has quit [Read error: No route to host]
tgunr has joined #ruby
v0n has joined #ruby
c0rn has joined #ruby
axeman- has quit [Remote host closed the connection]
realDAB has joined #ruby
realDAB has quit [Client Quit]
colonolGron has quit [Quit: Lost terminal]
splittingred has quit [Ping timeout: 276 seconds]
zastern_ has joined #ruby
nathandial has quit [Quit: Leaving.]
S0da has quit [Remote host closed the connection]
sayem has joined #ruby
binary1985 has quit []
zastern has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
nathandial has joined #ruby
fcahoon has quit [Quit: Leaving]
_helloworld_ has quit [Remote host closed the connection]
Al_ has quit [Read error: Connection reset by peer]
realDAB has joined #ruby
Al_ has joined #ruby
<zachrab> how do i parse an array with JSON class
Al_ has quit [Client Quit]
<apeiros> um, JSON.parse ?
chriskk has quit [Quit: chriskk]
reset has quit [Quit: Leaving...]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redmenace has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
BillCriswell has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
cpruitt has joined #ruby
realDAB has quit [Client Quit]
<shevy> hmm I have this lengthy method http://pastie.org/pastes/8216578/text
<shevy> but it is overkill
<shevy> I think a shorter variant is
ziggles has quit [Remote host closed the connection]
<shevy> def foo(i); ! i ... or !! i... or !!! i
<shevy> I am guessing :P
<zendeavor> looks like a longform ternary
<shevy> it tries to just toggle a false value to true and a true to false
<zendeavor> yeah looks like a really verbose ternary
<apeiros> sometimes I'm not sure whether shevy is trolling…
<zendeavor> might be trolling, that block comment.
<shevy> I am toggling
<zendeavor> dey c me togglin
<zendeavor> dey h8n
codecop has quit [Remote host closed the connection]
tuxero has quit [Quit: tuxero]
Jdubs has quit [Quit: Page closed]
baordog has quit [Remote host closed the connection]
cj3kim has joined #ruby
ehc has joined #ruby
Mekkis has joined #ruby
reset has joined #ruby
reset has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
ahawkins has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
v0n has quit [Quit: WeeChat 0.4.2-dev]
<rkeene> Does this look right ? (from an ruby-1.8.7-p374/ext/curses/mkmf.log): have_func: checking for wresize()... -------------------- yes ... conftest.c:3:53: error: 'wresize' undeclared (first use in this function)
v0n has joined #ruby
_helloworld_ has joined #ruby
<rkeene> I'm guessing it should say it "no" instead of "yes", since that symbol does not exist ?
arya_ has quit []
mnewton has quit [Ping timeout: 246 seconds]
<shevy> hehe
<MrZYX> hm
<MrZYX> it has "1.8.7" in the message
<MrZYX> can't be right
<MrZYX> no one is using that anymore
<MrZYX> :P
<Neener54> Oh man… if only
<Neener54> space.com 1.8.7 rails 2.3
<Neener54> Not gonna lie
<Neener54> I worked on that stuff
sparr_ has quit [Ping timeout: 264 seconds]
<rkeene> I'm told that I need Ruby 1.8.7, since Ruby isn't backwards compatible
<MrZYX> I just hope there'll be a security issue and they won't patch 1.8.7, so we finally get rid of it
digitalcake has quit [Quit: Leaving.]
airlok has quit [Remote host closed the connection]
sambao21 has joined #ruby
<havenwood> Time to go to 2.0.0. When 1.8.7 gets exploited its too late, end-of-life and will receive no patch. Migrate now.
clocKwize has quit [Quit: clocKwize]
peregrine81 has quit [Quit: peregrine81]
<shevy> Migrate to python today!
<havenwood> >.>
<havenwood> Just something from this decade. :P
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> though that does not work, the python 2 to python 3 transition sucked even more
<rkeene> Unfortunately, there is a house of cards at play here
<shevy> hey, you use ruby 1.8.7 and curses
<rkeene> Since nothing in the stack is backwards or forwards compatible, I have to use these exact versions everywhere because I'm limited somewhere.
<shevy> guess why curses has that name
<havenwood> mm
sambao21 has quit [Client Quit]
Kricir has joined #ruby
<rkeene> (This is yet another reason I prefer Tcl over Ruby, FWIW)
zeropx has quit [Ping timeout: 276 seconds]
<shevy> well you have a problem in ext/curses binding
<havenwood> I wasn't around in 1.8 days and refuse to maintain such a thing. Peachy.
<shevy> that's not as if ruby depends on it, not even 1.8.x
<jarray52> Does Ruby have good libraries to interact with Windows(at the OS level) in order to resize them, move them, focus on different parts of the window, switch window focus, switch the monitor on which a window is open, etc.?
<shevy> havenwood my ruby code works fine on both 1.8.x and 1.9.x and 2.x
<rkeene> I can't update Ruby, because I can't update Puppet clients, I can't update Puppet clients because they can't be newer than the server. The server is running the latest it can run at the moment.
<havenwood> shevy: My code works in 2.0 only. :P
<shevy> (ok, not sure about 2.x, they killed syck so my yaml files no longer work)
sam19113 has quit [Quit: sam19113]
<Rylai> rkeene: look into rvm
<havenwood> shevy: REFINE ALL THE THINGS! \o/
<shevy> havenwood it's so much work!!! :(
<rkeene> Rylai, That will not help me get Ruby to compile.
<Neener54> Legacy stuff is so painful
<shevy> for so little gain
<rkeene> Back to what I actually asked.
<rkeene> Does this look right ? (from an ruby-1.8.7-p374/ext/curses/mkmf.log): have_func: checking for wresize()... -------------------- yes ... conftest.c:3:53: error: 'wresize' undeclared (first use in this function)
tommyvyo has quit [Quit:]
<havenwood> shevy: Seriously though, I don't aim to support 1.8. Not at all worth it imho.
<rkeene> I'm guessing it should say it "no" instead of "yes", since that symbol does not exist ?
<shevy> rkeene why is curses mandatory? cant you move the directory away and just continue?
tommyvyo has joined #ruby
<rkeene> shevy, It happens with other extensions as well -- it's a problem with "mkmf", not curses.
<shevy> huh?
<rkeene> Specifically, it's detecting that I have symbols that I do NOT have
<shevy> I can compile ruby 1.8.7 still fine
sjltaylor has joined #ruby
vince_prignano has quit [Remote host closed the connection]
<rkeene> On AIX ?
<havenwood> shevy: it is starting to fail on various platforms
ch_ has joined #ruby
<MrZYX> I guess you should maybe ask in #youros
<rkeene> It's not a problem with my OS. It's a problem with Ruby.
<shevy> on a normal PC
<havenwood> Ruby 1.8 is past end-of-life, so not a Ruby problem.
dankest has quit [Ping timeout: 264 seconds]
<rkeene> Ruby is erroneously detecting that I have symbols that I do not have, which causes linking failures.
sambao21 has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<MrZYX> *was
<rkeene> Like "wcurses", "X509_STORE_get_ex_data", and more
<shevy> that's one strange error problem you have there, I don't think I have heard that one before
<shevy> sounds as if there is a sneaky switch to toggle the wrong result
<shevy> IF_RUNS_ON_AIX: enable_xmas_settings
<MrZYX> hm
pygospa has joined #ruby
<MrZYX> you mean enable_bad_xmas_settings
grumpwork has quit [Remote host closed the connection]
Astralum has joined #ruby
cortexman has joined #ruby
tommyvyo has quit [Ping timeout: 260 seconds]
jefflyne has quit [Ping timeout: 240 seconds]
Astralum has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 256 seconds]
Astralum has joined #ruby
zeropx has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
arya_ has joined #ruby
enebo has quit [Quit: enebo]
<cortexman> anyone know how these are ending up in my PATH? /Users/admin/.rvm/gems/ruby-2.0.0-p247/bin:/Users/admin/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/admin/.rvm/rubies/ruby-2.0.0-p247/bin
<cortexman> i'm trying to replicate a setup and can't remember how this is happening..
<havenwood> cortexman: RVM is putting it there.
<cortexman> how
<havenwood> By appending it to PATH, whatcha mean?
jefflyne has joined #ruby
<bsdbandit> morning
<havenwood> prepending*(
* bsdbandit yawns
<cortexman> how is rvm prepending it to the path
<cortexman> i have installed rvm on another machine, it's not happening there.
<bsdbandit> im coding my first site using sinatra what would be a good combination for coding a site in ruby and html5 is yaml good or is there something better
<bsdbandit> ?
becky_ has joined #ruby
IceDragon has joined #ruby
<shevy> I have come to the conclusion that all software ultimately sucks
<cortexman> #nihilism
<MrZYX> bsdbandit: if you mean yaml.de, the css framework, yeah, I like it
<havenwood> cortexman: I dunno what you've done. Typically RVM does prepend Rubies to PATH afaik. Could ask in #rvm, but I use chruby and am not sure of rvm behavior.
<bsdbandit> okc
<havenwood> cortexman: When you set an `rvm --default use ...`
smlgs has joined #ruby
_helloworld_ has quit [Remote host closed the connection]
<havenwood> cortexman: If you want to read ~100 lines of code and get what is actually happening, I recommend chruby: https://github.com/postmodern/chruby#readme
brennanMKE has quit [Remote host closed the connection]
chriskk has joined #ruby
<havenwood> cortexman: Or checkout RVM documentation, specifically the --default option flag.
<havenwood> (I'm guessing that is what is triggering your PATH adjustment?)
nathandial has quit [Quit: Leaving.]
mfridh has quit [Ping timeout: 240 seconds]
swordsmanz has joined #ruby
orionstein is now known as orionstein_away
reset has joined #ruby
kpshek has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
lebek has joined #ruby
tatsuya_o has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
<cortexman> http://pastebin.com/raw.php?i=eUzxBuYF however on creating a new shell those vars are not on the path
apeiros has joined #ruby
nomenkun has joined #ruby
<havenwood> cortexman: Even after you've set a default Ruby, it isn't?
<cortexman> not on new shell creation
<cortexman> it's temporary
<cortexman> sorry i meant to show —default. at any rate, the behavior is the same
<havenwood> cortexman: RVM should *just work*. Maybe report your issue in #rvm. Or clean install rvm and see if its still a prob.
<havenwood> cortexman: `rvm implode` tears it all down
nomenkun has quit [Ping timeout: 240 seconds]
<havenwood> rvm does have a minimalist installation called mrvm, that allow you to install with rvm but use chruby to manage Rubies. It hijacks RUBIES though, so I just prefer to use ruby-install and ruby-build to install Rubies.
axl_ has joined #ruby
asteve has joined #ruby
rhannequin has quit [Remote host closed the connection]
zastern_ has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
reset has quit [Ping timeout: 264 seconds]
zastern has joined #ruby
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> There used to be more RVM users here I swear! Its still quite popular.
<cortexman> i don't understand why there is all this jujitsu. there should just be a dmg
<cortexman> #rvm helped me fix this though, with: rvm get stable --auto-dotfiles
tatsuya_o has quit [Ping timeout: 264 seconds]
<havenwood> cortexman: Tokaido aims to have a drag and droppable .app for Ruby that is statically built: https://github.com/tokaido
<cortexman> let me know when it's stable.. ;)
<havenwood> cortexman: First dev release is out: https://github.com/tokaido/tokaidoapp/releases/tag/v0.5-pre1
eka has quit [Ping timeout: 246 seconds]
<havenwood> Not stable.
poga has quit [Remote host closed the connection]
<havenwood> But don't have to build it yourself anymore, testable.
<havenwood> And feedback welcome!!
ephemerian has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
larissa has joined #ruby
eka has joined #ruby
MrZYX is now known as MrZYX|off
<cortexman> honestly it's refreshing to hear that someone is working on it. i half-expected to get bitten by a troll
<cortexman> nice work
m8 has quit [Quit: Sto andando via]
bklane has joined #ruby
narcan has joined #ruby
<rkeene> I figured it out -- there was a second compilation attempt that always returned success in mkmf.rb for try_link, so I just removed it
ferdev has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
sambao21 has joined #ruby
miclen has joined #ruby
VegBerg has quit [Ping timeout: 246 seconds]
ferdev has joined #ruby
kaspergrubbe has joined #ruby
<shevy> cool
Neener54 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
burz has joined #ruby
tgunr has quit [Quit: I'm outta here]
anonymuse has quit [Remote host closed the connection]
fridim__ has quit [Ping timeout: 248 seconds]
asobrasil has left #ruby [#ruby]
mneorr has quit [Remote host closed the connection]
bzitzow has quit [Ping timeout: 264 seconds]
arya_ has quit [Ping timeout: 246 seconds]
gstamp has joined #ruby
popl has joined #ruby
Xiti` has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 264 seconds]
fyz1x has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
pentameter has quit [Read error: Connection reset by peer]
Xiti has quit [Ping timeout: 264 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
miclen has quit [Quit: Leaving]
predator217 has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
axl_ has quit [Quit: axl_]
pkrnj has quit [Quit: Computer has gone to sleep.]
Xiti` has quit [Ping timeout: 260 seconds]
Spooner has quit [Quit: Leaving]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
predator117 has quit [Ping timeout: 276 seconds]
geggam has quit [Remote host closed the connection]
centr0 has joined #ruby
tommyvyo has quit [Quit:]
<jarray52> Is there a Ruby library that provides X11 bindings?
realDAB has joined #ruby
bzitzow has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfine has joined #ruby
<jfine> How do I do something like this in ruby? self.#{n} = n * x
<jfine> My metaprogramming skills are weak
<banister> apeiros: what's up with your ruby-pro website? http://ruby-pro.org/
v0n has quit [Ping timeout: 276 seconds]
airlok has joined #ruby
realDAB has quit [Client Quit]
freerobby has joined #ruby
<banister> jfine: self.send("#{n}=", send(n) * x)
<jfine> ah, I was forgetting the second send
<jfine> Thanks banister
emergion has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
mootpointer has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
zachrab has quit [Ping timeout: 248 seconds]
johnnyfuchs has joined #ruby
x1337807x has joined #ruby
efrainolivares has joined #ruby
Radar has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
elaptics is now known as elaptics`away
tommyvyo has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
<rkeene> Ah-ha, even better answer: It's compiling and testing with -O2, and the test places the function reference in a function (t) that's never referenced, and that's optimized out
<banister> rkeene: what language is this?
freerobby has quit [Quit: Leaving.]
<rkeene> banister, C. Ruby is written in C.
<banister> rkeene: for real
eka has quit [Ping timeout: 248 seconds]
v0n has joined #ruby
stkowski has joined #ruby
soulashell has joined #ruby
eka has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
tomzx_mac has joined #ruby
nathandial has joined #ruby
Kelet has quit [Read error: Connection reset by peer]
ewnd9 has quit [Remote host closed the connection]
<popl> Would it be more correct to suggest that MRI is written in C? What about jRuby?
ewnd9 has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
<popl> I'm not trying to start a semantic argument. I have only used MRI.
emergion has quit [Quit: Computer has gone to sleep.]
fyz1x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rowsdower has joined #ruby
ffranz has quit [Quit: Leaving]
staafl has quit [Ping timeout: 256 seconds]
nezumi has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
axl_ has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
fredjean has quit [Quit: Computer has gone to sleep.]
justsee has quit [Quit: leaving]
ewnd9 has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
jfine has quit [Quit: Leaving.]
airlok has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
reset has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
tylersmith has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
visof has quit [Remote host closed the connection]
blackmesa has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
johnnyfuchs has quit [Remote host closed the connection]
pkrnj has joined #ruby
realDAB has joined #ruby
nezumi has quit [Ping timeout: 240 seconds]
bradsmith has quit [Remote host closed the connection]
nathandial has quit [Quit: Leaving.]
itcharlie has joined #ruby
reset has quit [Ping timeout: 264 seconds]
airlok has joined #ruby
havenwood has joined #ruby
realDAB has quit [Client Quit]
BRMatt has quit [Read error: Operation timed out]
v0n has joined #ruby
airlok has quit [Remote host closed the connection]
itcharlie has quit [Quit: Leaving.]
airlok has joined #ruby
bklane has quit [Remote host closed the connection]
rhys has quit [Quit: Leaving]
arya_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 276 seconds]
jerius has joined #ruby
tylersmith has joined #ruby
realDAB has joined #ruby
Senjai has joined #ruby
airlok has quit [Ping timeout: 264 seconds]