apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
jimms has quit []
<pasokk> well in chinese you have to learn to draw each word
<volty> (same holds true for programming languages --- see haskellers - all lost in adoration of their mighty language with weak libs)
j2p2 has quit [Ping timeout: 255 seconds]
<pasokk> hah
<volty> yes, but at least you activate the other side of the brain :)
Hijiri has joined #ruby
<volty> while in greek, I suppose, that one hemisphere perishes :)
jonr22 has joined #ruby
govg has joined #ruby
<volty> (the one that elaborates the lang, was it the right? )
djbkd has joined #ruby
cleopatra has quit [Remote host closed the connection]
emmesswhy has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
mois3x has joined #ruby
<volty> look german, for example --- in german you cannot find the words to cry and blame others in greek way :)
sambao21 has joined #ruby
drewvanstone has quit [Ping timeout: 264 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shazaum has joined #ruby
laynemoseley has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
gsd has joined #ruby
Shazaum has quit [Changing host]
Shazaum has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
sambao21 has quit [Client Quit]
pengin has quit [Remote host closed the connection]
sargas has quit [Quit: This computer has gone to sleep]
mikepack has joined #ruby
pengin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<pasokk> what is "cry and blame?"
<pasokk> example
<centrx> raise error and print stack trace?
<volty> anyway, as programmers we can agree that the truth lies in the calculus and in the rigorous branching concerning the logic of analyses (pat) and logic (future too)
mazarian has joined #ruby
<volty> first waste (money and else), then blame germans, the central european bank, the «international finance» etc etc (the list is long)
Jake232 has joined #ruby
<volty> centrx: stack ?
djbkd has joined #ruby
sambao21 has joined #ruby
djbkd has quit [Remote host closed the connection]
mois3x has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
<volty> ah, centrx, you a referring to our discussion ? :)
pengin has quit [Ping timeout: 264 seconds]
<centrx> the stack is a deep list
krisquigley has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<volty> what is supposed to be a «deep list» ?
mois3x has joined #ruby
karmatr0n has quit [Remote host closed the connection]
Jake232 has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<pasokk> corruption is everywhere , germans stole money too :) Its offtopic and is late:) .Watch this to perish your both hemispheres. You wont be aple to write a hello world ruby programmar ever again... https://www.youtube.com/watch?v=Zdoo3vxGMn8
mois3x has quit [Client Quit]
philwantsfish has joined #ruby
<centrx> volty, a list is intrinsically one-dimensional, but the data inside can be such that the list is multi-dimensional even though the data structure is one-dimensional
lmickh has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 258 seconds]
<lampd1> i have no idea what you just said pasokk
RTG` has quit [Ping timeout: 265 seconds]
olivier_bK has joined #ruby
<lampd1> but it sounds insightful
<pasokk> hehe
<n_blownapart> tobleronegordon: ?? no they're free
adriancb has quit [Remote host closed the connection]
<volty> lampd1: he said nothing. «corruption is everywhere» but is not equal everywhere. --- this is what i meant when talking about langs, about german lang. Your greek way of thinking makes you equalize everything
Techguy305|2 has quit [Ping timeout: 240 seconds]
Narzew has quit [Read error: Connection reset by peer]
oleo__ has joined #ruby
<volty> mah, centrx, i do not agree. I can see that a structure is deep then I talk about a structure that maybe represented by a list (a tree, for example)
oleo is now known as Guest6434
Techguy305|2 has joined #ruby
Spami has joined #ruby
<volty> when you represent a tree with lists you do not say that lists are deep, you say that the tree is n-deep
Guest6434 has quit [Ping timeout: 240 seconds]
<volty> s/I can see/I can say/
centrx has quit [Quit: Did gyre and gymble in ye wabe]
RTG has joined #ruby
RTG is now known as Guest74546
perturbation has quit [Quit: Leaving]
quazimodo has quit [Ping timeout: 264 seconds]
Lingo__ has joined #ruby
baweaver has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
radic has quit [Ping timeout: 256 seconds]
elfuego has joined #ruby
dopie has quit [Remote host closed the connection]
sski has joined #ruby
bmichelsen has joined #ruby
msx has quit [Quit: WeeChat 1.0.1]
startupality has quit [Quit: startupality]
olivier_bK has quit [Ping timeout: 272 seconds]
Techguy305 has joined #ruby
nfk has quit [Quit: yawn]
havenwood has quit [Remote host closed the connection]
rshetty has joined #ruby
tastycode has quit [Quit: tastycode]
zacstewart has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
wedgeV has quit [Quit: wedgeV]
rylev has joined #ruby
Arnie25 has joined #ruby
Techguy305|2 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
bogeyd6 has joined #ruby
rshetty has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
kurstin has joined #ruby
tus has joined #ruby
radic has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
manzo has quit [Quit: Leaving]
oo_ has joined #ruby
Takle has quit [Remote host closed the connection]
sevenseacat has joined #ruby
Sgeo has joined #ruby
rylev has quit []
emmesswhy has joined #ruby
emmesswhy has quit [Remote host closed the connection]
fmcgeough has joined #ruby
renderful has quit [Remote host closed the connection]
echooo has joined #ruby
davasaurous has quit [Remote host closed the connection]
emmesswhy has joined #ruby
radic has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
reinaldob has quit [Remote host closed the connection]
radic has joined #ruby
kaspertidemann has quit []
Synthead has quit [Remote host closed the connection]
txdv__ has joined #ruby
txdv has quit [Ping timeout: 272 seconds]
cndiv has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
dorei has quit []
sambao21 has quit [Client Quit]
bmichelsen has quit [Quit: Bye!]
Jake232 has joined #ruby
baweaver has quit [Remote host closed the connection]
moritzschaefer has quit [Ping timeout: 272 seconds]
drewvanstone has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has quit [Ping timeout: 272 seconds]
rpag has quit [Ping timeout: 264 seconds]
checkit has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
pchellovod has joined #ruby
sambao21 has joined #ruby
zacstewart has joined #ruby
bmichelsen has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
tastycode has joined #ruby
iamjarvo has joined #ruby
pchellovod has quit [Ping timeout: 256 seconds]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
Megtastique has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
econerd4ever has quit [Remote host closed the connection]
marr has quit [Ping timeout: 255 seconds]
baweaver has joined #ruby
iamjarvo has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
davidhq has joined #ruby
Lingo__ has quit [Quit: (null)]
devdazed has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has joined #ruby
Megtastique has joined #ruby
msmith has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
drewvanstone has quit [Read error: Connection reset by peer]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
msmith has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
iamjarvo has joined #ruby
charliesome has quit [Quit: zzz]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
Shazaum has quit [Quit: This computer has gone to sleep]
devdazed has quit [Quit: Computer has gone to sleep.]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
o0oo0o has joined #ruby
maximski has joined #ruby
dkb20k has quit [Remote host closed the connection]
dkb20k has joined #ruby
arescorpio has joined #ruby
carlosoliveira has quit []
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombadaroomba has quit [Remote host closed the connection]
charliesome has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o0oo0o has quit [Quit: WeeChat 0.4.3]
Guest74546 has quit [Ping timeout: 272 seconds]
postmodern has joined #ruby
sski has quit [Remote host closed the connection]
devoldmx33 has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<volty> does file :/// path has to be absolute ?
apeiros_ has joined #ruby
drewvanstone has joined #ruby
o0oo0o has joined #ruby
sambao21 has joined #ruby
baroof has joined #ruby
<jhass> I don't think it's standardized
sambao21 has quit [Client Quit]
<jhass> so depends on whatever you pass it to
freerobby has joined #ruby
rahult is now known as rahult_
<baroof> hi, i dont remember the domaine of web site which gives a bunch of ruby scripts with their unit test to make pass, it has japanese style skin if i remember
<volty> let's say ./my_local_file.html, I cannot get it to open this way. Had to subst /^\./ with Dir.pwd. It is QUrl (Qt) and maybe there's a (bit of ) standard
bricker`work has quit [Ping timeout: 255 seconds]
<sevenseacat> baroof: likely ruby koans
tus has quit [Ping timeout: 240 seconds]
dkb20k has quit []
pen has joined #ruby
<sevenseacat> http://rubykoans.com/ ?
vinleod has joined #ruby
Takle has joined #ruby
rahult_ is now known as rahult
<n_blownapart> stuck on koans oh well...
MattB2 has joined #ruby
b3itz has joined #ruby
devoldmx33 has joined #ruby
<baroof> yes thx, i was thinink of an other on which offers other langage to, i think thats the one with japanese style you have to log in, there are exemples from other ppl has you do the test
<sevenseacat> meh, i tried
<sevenseacat> awesome, spam from kurstin
<sevenseacat> why does that only happen in this channel
rahult_ has joined #ruby
hamakn has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 258 seconds]
jonr22 has joined #ruby
pietr0 has quit [Quit: pietr0]
djbkd has quit [Quit: My people need me...]
rahult has quit [Ping timeout: 265 seconds]
bronak_ has quit [Quit: Bye]
phutchins has joined #ruby
Channel6 has joined #ruby
baroof has quit [Quit: Page closed]
reinaldob has joined #ruby
mloveless has joined #ruby
msmith has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
drewvanstone has quit [Ping timeout: 256 seconds]
<volty> how many ppl passed those koans ?
<volty> how many of them had enough patience ? :)
<sevenseacat> i did the first couple and got bored
mikepack has joined #ruby
<havenwood> guess i'm easily entertained, did them a few times
almostworking has joined #ruby
<volty> i forced myself to fill the first one, now killed by nil
<sevenseacat> i didnt like the format of them, the fill in the gaps
almostworking has left #ruby [#ruby]
<havenwood> sevenseacat: do them but only use monkey patching to pass all tests
<sevenseacat> no doubt theyre very instructive but they didnt appeal to me
<volty> ahahah, havenwood, i do not believe you
<sevenseacat> havenwood: lol
reinaldob has quit [Ping timeout: 265 seconds]
<havenwood> volty: i'm not kidding :P
<pontiki> i've never actually looked at the koans.
davedev24_ has quit []
phutchins has quit [Ping timeout: 240 seconds]
BlackGear has joined #ruby
<volty> i find them pretty pathetic, the layout (as sevenseacat says) comprised
krisquigley has joined #ruby
BlackGear has quit [Max SendQ exceeded]
freerobby has joined #ruby
BlackGear has joined #ruby
<volty> but should be nice to write a prog with mechanizer and fill them automatically a couple of milion of times :)
drewvanstone has joined #ruby
klmlfl has quit [Remote host closed the connection]
<volty> sorry ppl, maybe it's useful, i don't know, not sure. I am just trying not to be serious.
elfuego has left #ruby [#ruby]
jimbach has quit [Remote host closed the connection]
<volty> to bet not | to not be
dc_ has quit [Remote host closed the connection]
<volty> but we should for sure write to the author and ask him/them to publish the statistics :)
krisquigley has quit [Ping timeout: 264 seconds]
MattB2 has quit []
<sevenseacat> well that wouldnt include all the people that downloaded them to do offline, like i did
msmith has quit [Remote host closed the connection]
* lampd1 sings `I'm in love with sidekiq` to the tune of T-Pain's `I'm 'n Luv`
TheLastExile has joined #ruby
maximski has quit []
dcunit3d has quit [Ping timeout: 264 seconds]
drewvanstone has quit [Ping timeout: 258 seconds]
<lampd1> volty what about doing something like File.open.expand_path('./my_local_file.html')
<lampd1> or something
<lampd1> (not sure you can string that)
Areessell has joined #ruby
<lampd1> i'm writing something functional that just sets BASEDIR = File.expand_path('./')
hamakn has joined #ruby
ohaibbq has joined #ruby
deric_skibotn has quit [Ping timeout: 256 seconds]
s00pcan has quit [Ping timeout: 255 seconds]
<lampd1> then can call the file by doing "#{BASEDIR}/my_local_file.html"
<volty> lampd1: yes, thx, the expand path was just out of my recollect in that moment
<lampd1> sry, i got a little excited there :P new to ruby
<pontiki> yeah, okay, these are tedious
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
Arnie25 has quit []
<pontiki> but that's sort of the way of learning some skills
<pontiki> wax on, wax off
<sevenseacat> true
kireevco has joined #ruby
Arnie25 has joined #ruby
Arnie25 has quit [Changing host]
Arnie25 has joined #ruby
<sevenseacat> mucho repetition
<volty> but you must see
<volty> i was counting asserts in my source files
<volty> grep "\bassert\b" *.rb | wc -l ---> 0
<pontiki> not sure what you're trying to say
drewvanstone has joined #ruby
<waxjar> you're braver than me volty :p
lampd1 has quit []
<volty> I do not use them. I just can't use them. Now I remember that I used to avoid them even in c/c++
<sevenseacat> i dont use them at all in ruby, ever
<pontiki> you mean in actual code you're writing for a purpose?
<volty> in whatever, never wrote a test unit, never will
<pontiki> still not seeing what your point is
<volty> pontiki, me too :)
<sevenseacat> i dislike testunit syntax immensely
Joufflu has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
<pontiki> you're not seeing what your point is either, volty ?
<sevenseacat> any xUnit syntax
<volty> meaning that neither I see what is my point. It was probably about koans starting with asserts
Joufflu has joined #ruby
<sevenseacat> as soon as i saw rspec i immediately loved its syntax 1000000% more
<pontiki> hmm.
stunder has quit [Quit: Screw you guys I'm going home]
kurstin has quit [K-Lined]
<pontiki> well, the dojo is the dojo.
<pontiki> there are many ways to learn.
<pontiki> and even more ways to work
<pontiki> (work, play, construct, make, create, etc,etc0
<volty> yes, I agree. But I think that koans way could be productive for arrested & chained people :)
<volty> enchained
<pontiki> i feel pretty certain the koans would work really really well for some people
St_Marx has quit [Remote host closed the connection]
<pontiki> i see
<volty> could be, I'm curious about what kind (of people)
<pontiki> sounds like you've already decided
<volty> slowly and steady - could be
<sevenseacat> i acknowledge that everyone learns differently. the koans werent to my tastes.
msmith has joined #ruby
<sevenseacat> i like tutorial books (eg. r4ia) but with a bit more fluff
SCHAAP137 has joined #ruby
newUser1234 has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
newUser1234 has quit [Remote host closed the connection]
<pontiki> i confess i don't like tutorials, or exercises, as well; i like to find a real problem for myself, and apply it to learning something
<volty> we must acknowledge that other kinds of automatized teaching could be pretty (or too much) complicated to implement
<volty> pontiki: me too
<sevenseacat> oh i find the ultimate best way to learn to be to follow a tutorial book, but build my own app by following the ideas presented, as well as the tutorial app
rshetty has joined #ruby
<volty> i like examples, before all the rest
<sevenseacat> eg. substitute your own models, associations, view content, etc.
<pontiki> sevenseacat: that way works for a *lot* of people, hence the really unbridled success of r4ia, awdwr, hartl, etc
<sevenseacat> but the tutorial has to be rock-solid for that
<pontiki> almost, i sort of hope that the tutorialist falls down at some point, so the student can find their own way out of a jam :)
<sevenseacat> you just had to lump awdwr in with that list didnt you
amclain has joined #ruby
<volty> teaching is kind of art. A good teacher has to fill gaps. And we all (almost) forget how we learned, what was our cultural luggage (respect to math & programming) when learning, the other languages we learned before etc etc
josephndenton has joined #ruby
<pontiki> ah, see, i think a good teacher has to know how to *create* gaps for the student to leap over
<pontiki> people don't learn if you give them all the answers
<sevenseacat> indeed
<pontiki> it's all bloddy ancient history for me; i have to take my queues from current learners
nateberkopec has joined #ruby
<pontiki> cues*
<pontiki> lol
rshetty has quit [Ping timeout: 244 seconds]
<pontiki> "stack those queues over there by that array of hashes"
<sevenseacat> yeah thats thehard bit, encouraging people to get to the answer themselves - works okay in a two-way medium like IRC, a lot harder in a book
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc_ has joined #ruby
<volty> my gaps was about the talent (missing) or slow learning etc etc --- adjusting to what you have (the students)
davasaurous has joined #ruby
<pontiki> quite so. one of the huge reasons i *love* railsbridge
<volty> yes, when the communication is duplex it is much easier
fella6s has joined #ruby
davasaurous has quit [Remote host closed the connection]
kith_ has joined #ruby
dcunit3d has joined #ruby
<pontiki> especially when part of that communication is that funny look on your face after i show you something :D
<volty> I remember a man on youtube explaining what are monads. It was so strange he didn't realize, in the middle, that he himself didn't know :)
wsmoak_ has joined #ruby
baweaver has quit [Remote host closed the connection]
o0oo0o_ has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<pontiki> i *still* don't get what a monad is, despite learning it over and over. lol
wallerdev has quit [Quit: wallerdev]
<sevenseacat> ive heard the term monad, spoken about in hushed terms
<sevenseacat> no idea what they are
wsmoak has quit [Ping timeout: 264 seconds]
wsmoak_ is now known as wsmoak
<volty> yes, climbing of a student could be quite pleasant
fmcgeough has quit [Quit: fmcgeough]
<waxjar> sometimes i think i understand what a monad is, then i find out i don't :(
<pontiki> i can't parse that sentence
yetanotherdave has quit [Quit: Lost terminal]
<volty> monads are just container of values, it's just all about pushing / pulling out of them
claptor has joined #ruby
wsmoak has quit [Client Quit]
* sevenseacat spends half an hour bouncing around trying to find the cause of a ArgumentError on my app, only to find i accidentally created a method to shadow one in HTTParty, with a different method signature
davasaurous has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
t_mmyv has quit [Ping timeout: 264 seconds]
kith has quit [Ping timeout: 264 seconds]
fella5s has quit [Ping timeout: 264 seconds]
<pontiki> woops
<volty> let's say wrapping (around) objects -- maybe this one's better
baweaver has joined #ruby
davasaur_ has joined #ruby
ohaibbq has quit [Quit: Leaving...]
drewvanstone has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
b3itz has quit [Ping timeout: 246 seconds]
<volty> I always use sentinels when something goes wrong. I put them almost everywhere.
St_Marx has joined #ruby
davasaurous has quit [Ping timeout: 272 seconds]
aspires has quit []
wsmoak has joined #ruby
<volty> back to (end about) monads: wrapping & unwrapping, that's all -- all the rest of difficulty there (haskell) lies in getting acquainted in how is that done (with all those operators) // think about a producing line where the product to be refined lies into boxes and every operator (method) has to get it out of the box, do his part, and put it back (or pass next to the other if couple of operators in the same place) into the
<volty> box, and the on, to the next point
<volty> sevenseacat: that doesn't mean that I never lose half an hour behind stupid errors :)
Octave has joined #ruby
jaequery has joined #ruby
avrc has joined #ruby
coderwil1 has joined #ruby
coderwil1 has quit [Client Quit]
Fire-Dragon-DoL has quit [Quit: Leaving.]
renderful has joined #ruby
drewvanstone has joined #ruby
reinaldob has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
perturbation has joined #ruby
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
andham95 has joined #ruby
gsd has joined #ruby
n_blownapart has quit []
reinaldob has quit [Ping timeout: 258 seconds]
baweaver has quit [Remote host closed the connection]
arup_r has joined #ruby
wsmoak has quit [Quit: wsmoak]
bricker`work has joined #ruby
tyll has quit [Ping timeout: 245 seconds]
tyll has joined #ruby
orangerobot has joined #ruby
volty has quit [Quit: Konversation terminated!]
kireevco has quit [Quit: Leaving.]
<orangerobot> is there any way to tweak ruby into accepting a block as a named parameter? for instance: my_method(name: "foo", condition: {1+1 == 3}
mazarian has quit [Remote host closed the connection]
davasaur_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
<orangerobot> and close parentheses at the end: my_method(name: "foo", condition: {1+1 == 3})
drewvanstone has quit [Read error: Connection reset by peer]
spastorino has quit [Quit: Connection closed for inactivity]
klmlfl has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
JoshGlzBrk has joined #ruby
klmlfl has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
<duncannz> is there a nicer (one-liner) way to go about this? one, two = line.split(","); one.rstrip!; two.rstrip!
oo_ has quit [Remote host closed the connection]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
NoNMaDDeN has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
klmlfl has quit [Ping timeout: 255 seconds]
drewvanstone has joined #ruby
oo_ has joined #ruby
<mozzarella> >> one, two = 'test,wut'.split(',').map(&:rstrip)
<eval-in__> mozzarella => ["test", "wut"] (https://eval.in/226009)
Akuma has quit [Quit: So long sukkas!]
yourabi has joined #ruby
davasaurous has joined #ruby
Takle has joined #ruby
baroquebobcat has joined #ruby
nateberkopec has quit [Quit: Leaving...]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
msx has joined #ruby
msx has quit [Changing host]
msx has joined #ruby
<duncannz> thanks mozzarella
<duncannz> that's an awesome bot too
jackjackdrpr has quit [Quit: Leaving.]
Takle has quit [Ping timeout: 256 seconds]
drewvanstone has quit [Read error: Connection reset by peer]
msx has quit [Client Quit]
<ericwood> >> one, two = 'test,wut'.split(',')
<eval-in__> ericwood => ["test", "wut"] (https://eval.in/226010)
emmesswhy has quit [Quit: Leaving]
<ericwood> orangerobot: check this out:
<duncannz> >> puts "\n"
<eval-in__> duncannz => ... (https://eval.in/226011)
mloveless has quit [Read error: Connection reset by peer]
<duncannz> lol just seeing how it handles
<ericwood> >> def foo(name: 'foo', &condition); condition.call; end; foo() { 1+1 == 3 }
<eval-in__> ericwood => false (https://eval.in/226012)
troyready has quit [Remote host closed the connection]
<ericwood> :D
<orangerobot> ericwood: i don't see how that is relevant to my problem
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ericwood> you wanted to take in a conditional as an argument of sorts?
<ericwood> oh block as a named parameter
<ericwood> I see what you mean now
krz has joined #ruby
jaequery has joined #ruby
TheRinger has joined #ruby
<ericwood> orangerobot: iirc you're only allowed one block per function, however you CAN pass in lambdas, etc. as variables
<orangerobot> yes I know
<orangerobot> but since I'm making a dsl i'd like to shield users from that
<ericwood> I guess I don't understand what the syntax would be for *multiple* blocks in the same method call
drewvanstone has joined #ruby
<ericwood> what would you like the usage to look like?
<orangerobot> my_method foo: "bar",condition1: {block1}, condition2: {block2}
<orangerobot> that's why i need the named parameters too
<orangerobot> this works for now->> my_method foo: "bar",condition1: lambda{block1}, condition2: lambda{block2}
<ericwood> stabby lambdas to the rescue!
<ericwood> def foo(name: 'foo', condition1: ->{}, condition2: ->{}); end; foo(condition1: ->{}, condition2: ->{})
<ericwood> it's not PERFECT but I don't think what you want is possible
airdeluxe has quit [Quit: Leaving]
<orangerobot> oh yeah. had forgotten about them
<orangerobot> thanks
<ericwood> np
<orangerobot> maybe i'll stick to lambda for now but i'll keep that in mind
klmlfl_ has quit [Remote host closed the connection]
abunashir has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
diegoviola has joined #ruby
lampd1 has joined #ruby
jimbach has joined #ruby
jimbach has quit [Remote host closed the connection]
ajaiswal has joined #ruby
boombadaroomba has joined #ruby
jimbach has joined #ruby
adriancb has joined #ruby
skullz has quit [Remote host closed the connection]
ponga has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
jonr22 has joined #ruby
iamjarvo has joined #ruby
boombadaroomba has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Max SendQ exceeded]
abunashir has quit [Remote host closed the connection]
iamjarvo has joined #ruby
jimbach has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 250 seconds]
goshdarnyou has joined #ruby
iamjarvo has quit [Ping timeout: 255 seconds]
Photism has joined #ruby
radic has quit [Ping timeout: 244 seconds]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
perturbation has left #ruby ["Leaving"]
t_mmyv has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sargas has joined #ruby
krisquigley has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
radic has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Blizzy has joined #ruby
kl has quit [Ping timeout: 250 seconds]
echooo1 has joined #ruby
jaequery has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
devoldmx33 has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
rshetty has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
felipedvorak has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
echooo has quit [Ping timeout: 250 seconds]
f00dMonsta_ has quit [Quit: Leaving]
sargas has joined #ruby
jaequery has quit [Client Quit]
echooo1 has quit [Ping timeout: 245 seconds]
echooo has joined #ruby
oo_ has quit [Remote host closed the connection]
mordocai has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mloveless has joined #ruby
oo_ has joined #ruby
bricker`work has quit [Ping timeout: 264 seconds]
arup_r has quit [Quit: Leaving.]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
msmith has quit [Remote host closed the connection]
sargas has quit [Quit: Leaving]
ponga has quit [Remote host closed the connection]
drewvanstone has quit [Read error: Connection reset by peer]
mazarian has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
karmatr0n has joined #ruby
blaines has joined #ruby
galeido has quit [Quit: galeido]
braincrash has joined #ruby
echooo1 has joined #ruby
echooo has quit [Ping timeout: 264 seconds]
unclouded has quit [Ping timeout: 272 seconds]
Lilian has quit [Ping timeout: 250 seconds]
corehook has joined #ruby
unclouded has joined #ruby
Lilian has joined #ruby
anaeem1 has joined #ruby
drewvanstone has joined #ruby
mordocai has quit [Remote host closed the connection]
disKounted has quit []
davedev24_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mazarian has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
ishikawa91 has quit [Quit: Connection closed for inactivity]
siso has joined #ruby
sinequanon has joined #ruby
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
arescorpio has quit [Excess Flood]
fgo has joined #ruby
Techguy305|2 has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
sinequanon has quit [Ping timeout: 264 seconds]
cmckee has joined #ruby
n008f4g_ has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
corehook has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
tobleronegordon is now known as toblergordon[a]
sinkensabe has joined #ruby
kyb3r_ has joined #ruby
karmatr0n has quit [Remote host closed the connection]
klmlfl has joined #ruby
mikepack has quit [Remote host closed the connection]
lemur has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
gsd has joined #ruby
JohnBat26 has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Client Quit]
mikepack has joined #ruby
JohnBat26 has joined #ruby
klmlfl has quit [Ping timeout: 240 seconds]
cmckee has quit [Quit: cmckee]
mazarian has joined #ruby
unclouded has quit [Ping timeout: 272 seconds]
andis_ has joined #ruby
unclouded has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
andis_ has left #ruby [#ruby]
reinaldob has joined #ruby
kapil_ has joined #ruby
quazimodo has joined #ruby
toblergordon[a] has quit [Quit: ZzZzZzzz]
kp666 has joined #ruby
cafeina has joined #ruby
kl has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
crazydiamond has quit [Ping timeout: 255 seconds]
mazarian has quit [Remote host closed the connection]
cafeina has quit [Client Quit]
CaffeineShot has joined #ruby
fgo_ has joined #ruby
kl has quit [Ping timeout: 258 seconds]
drewvanstone has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
<quazimodo> how does one open up pipes to an existing process?
fabrice31 has joined #ruby
CaffeineShot has quit [Quit: Leaving]
quazimodo has quit [Quit: leaving]
CaffeineShot has joined #ruby
CaffeineShot has quit [Client Quit]
CaffeineShot has joined #ruby
CaffeineShot has quit [Read error: Connection reset by peer]
drewvanstone has joined #ruby
cleopatra has joined #ruby
maestrojed has joined #ruby
CaffeineShot has joined #ruby
mikepack has quit [Remote host closed the connection]
BlackGear has quit [Remote host closed the connection]
CaffeineShot has quit [Client Quit]
JoshGlzBrk has joined #ruby
CaffeineShot has joined #ruby
BlackGear has joined #ruby
quazimodo has joined #ruby
karmatr0n has joined #ruby
<quazimodo> maybe what I'm trying to do doesn't work so well with pipes
JoshGlzBrk has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
cafeina__ has joined #ruby
CaffeineShot has quit [Client Quit]
cafeina__ has quit [Read error: Connection reset by peer]
CaffeineShot has joined #ruby
CaffeineShot has quit [Client Quit]
CaffeineShot has joined #ruby
CaffeineShot has quit [Client Quit]
drewvanstone has quit [Read error: Connection reset by peer]
sinequanon has joined #ruby
ghr has joined #ruby
orangerobot has quit [Quit: Page closed]
adriancb has quit [Remote host closed the connection]
drewvanstone has joined #ruby
kireevco has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
msmith has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
Morkel has joined #ruby
msmith has quit [Ping timeout: 250 seconds]
claptor has quit [Quit: this channel is bakas]
dseitz has joined #ruby
JoshGlzBrk has joined #ruby
n008f4g_ has quit [Ping timeout: 258 seconds]
iceden has quit [Ping timeout: 264 seconds]
claptor has joined #ruby
avrc has quit [Quit: this channel is bakas]
iceden has joined #ruby
jusmyth has joined #ruby
jonr22 has joined #ruby
jusmyth has left #ruby [#ruby]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
rahult_ has quit [Read error: Connection reset by peer]
rahult has joined #ruby
avrc has joined #ruby
sinkensabe has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
echevemaster has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
xcesariox has joined #ruby
divi has joined #ruby
<xcesariox> hi can anyone help me out with my rspec test? it says my 'it' is not defined
drewvanstone has quit [Ping timeout: 258 seconds]
<sevenseacat> xcesariox: you need to be inside a describe block
<xcesariox> sevenseacat: https://gist.github.com/shaunstanislaus/05995685294b3b3ce75b so how would you do it? could oyu show me
Kricir has joined #ruby
rahult is now known as rahult_
krisquigley has joined #ruby
freerobby has quit [Quit: Leaving.]
<sevenseacat> xcesariox: by reading the first page of the documentation https://www.relishapp.com/rspec/rspec-core/v/3-0/docs/example-groups/basic-structure-describe-it
ponga has quit [Quit: Leaving...]
x1337807x has joined #ruby
StephenA1 has joined #ruby
StephenA1 has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xcesariox> sevenseacat: it is in a describe method already ! "it "creates a new bookmark" do"
<sevenseacat> no its not
<xcesariox> sevenseacat: point out which part.
<sevenseacat> "it" is not "describe"
<sevenseacat> see the very first example in the page i linked you to
krisquigley has quit [Ping timeout: 245 seconds]
<xcesariox> sevenseacat: i seen it and i use this "RSpec.describe "something" do" on top of the it, it still showing same error.
<sevenseacat> no its not.
rahult_ is now known as rahult
<xcesariox> sevenseacat: so what should it be?
<sevenseacat> show me the error you get when you add the describe.
nagaraj has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
<xcesariox> sevenseacat: okay, i know why, cause i have only 1 "end", added another "end" and the thing ran.
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
St1gma has joined #ruby
mazarian has joined #ruby
<xcesariox> sevenseacat: but it failed after adding this for my it
JoshGlzBrk has joined #ruby
<xcesariox> sevenseacat: what is wrong with it?
<earlz> anyone know of a better way of doing this?
<earlz> wtf
Takle_ has joined #ruby
<xcesariox> sevenseacat: you there?
<earlz> tmp={:hash => block["hash"], :difficulty => block["difficulty"], :nonce => block["nonce"]}
mary5030 has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
emmesswhy has joined #ruby
maletor has joined #ruby
lkba has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maletor has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
mazarian has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
chu has joined #ruby
oo_ has joined #ruby
maletor has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Naeblis has left #ruby ["Textual IRC Client: www.textualapp.com"]
Channel6 has quit [Quit: Leaving]
exgf_u_v has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
NoNMaDDeN has joined #ruby
nonks has joined #ruby
benzrf is now known as benzrf|offline
Takle has joined #ruby
kyb3r_ has quit [Ping timeout: 258 seconds]
echevemaster has quit [Ping timeout: 256 seconds]
Takle_ has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
Megtastique has quit []
oo_ has joined #ruby
ghr has joined #ruby
bricker`work has joined #ruby
Arnie25 has quit [Ping timeout: 245 seconds]
bmichelsen has joined #ruby
karmatr0n has quit [Remote host closed the connection]
tobago has joined #ruby
arup_r has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
b3r has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
noop has joined #ruby
echooo has joined #ruby
rahult is now known as rahult_
SOLDIERz has joined #ruby
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
uber_hulk has joined #ruby
echooo1 has quit [Ping timeout: 264 seconds]
hanmac1 has joined #ruby
davasaurous has quit [Remote host closed the connection]
uber_hulk has quit [Client Quit]
<quazimodo> is there a non blocking gets for ruby??
<quazimodo> such as r, w, pid = spawn("some_process")
<quazimodo> r.gets will block till there's something to read. Any way to get around this issue?
josephndenton has quit [Ping timeout: 255 seconds]
rahult_ is now known as rahult
josephndenton has joined #ruby
JCii8__ has quit [Ping timeout: 244 seconds]
b3r has left #ruby [#ruby]
<hanmac1> quazimodo: did you try popen ?
oleo__ has quit [Quit: Verlassend]
reinaldob has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
zacstewart has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 264 seconds]
<quazimodo> hanmac1: I've never ever done any real pipe/pty/tty stuff before, so I'm not sure.
KnownSyntax has quit [Quit: Connection closed for inactivity]
Techguy305|2 has quit [Ping timeout: 264 seconds]
<quazimodo> hanmac1: I want to write module to help me test a cli program I'm writing. I just want to read from cli and write to it reasonably.
tastycode has quit [Quit: tastycode]
<quazimodo> i suppose gets isn't perfect, maybe I need to use read_nonblock and take in n bytes at a time till EOF or till it hangs
<quazimodo> s/hangs/errors
<quazimodo> then I can catch the exception and just output whatever it read from my object
<quazimodo> hanmac1: what do you think?
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has quit [Ping timeout: 240 seconds]
diegoviola has quit [Remote host closed the connection]
<hanmac1> hm i dont know, never did that kind of testing before
<quazimodo> also, I'm not sure if I should use popen and redirect the stdin/out like that, or use something like a pts
reinaldob has quit [Ping timeout: 240 seconds]
<quazimodo> I think with popen I have to actually close stdin first to read stdout
<quazimodo> and then I'd have to reopen a stdin to my program each time I want to write to it. In reality, it's a cli program so I think i really ought to use a pty to test it as though its 'in the wild'
tagrudev has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinequanon has quit [Remote host closed the connection]
samsquanch has quit [Quit: Textual IRC Client: www.textualapp.com]
HACKING-FACEBOOK has joined #ruby
x1337807x has joined #ruby
mikecmpbll has quit [Quit: ciao.]
aligo has joined #ruby
lxsameer has joined #ruby
fabrice31 has joined #ruby
GreatSUN has joined #ruby
sinequanon has joined #ruby
sinequanon has quit [Remote host closed the connection]
mikepack has joined #ruby
Kricir_ has joined #ruby
sinequanon has joined #ruby
sinequan_ has joined #ruby
bricker`work has joined #ruby
last_staff has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
b4rbz is now known as Dopagod
KnownSyntax has joined #ruby
mary5030 has quit [Remote host closed the connection]
sinequan_ has quit [Remote host closed the connection]
sinkensabe has joined #ruby
mary5030 has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
Dopagod has quit [Quit: Leaving]
mikepack has quit [Ping timeout: 255 seconds]
sinequanon has quit [Ping timeout: 258 seconds]
HACKING-FACEBOOK has quit [Quit: facebook.com/realjohnchalekson]
ohaibbq has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
sinequanon has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
Dopagod has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jeff831 has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 258 seconds]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
codecop has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
speaking1ode has joined #ruby
henesy has quit [Ping timeout: 258 seconds]
speakingcode has quit [Ping timeout: 265 seconds]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jonr22 has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
Photism has quit [Quit: Leaving]
rshetty_ has joined #ruby
HACKING-FACEBOOK has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
jonr22 has joined #ruby
lidaaa has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Ping timeout: 245 seconds]
rshetty has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
shortCircuit__ has joined #ruby
jonr22 has joined #ruby
nagaraj has quit [Ping timeout: 255 seconds]
byprdct has quit [Quit: by]
jnollette has quit [Remote host closed the connection]
<xcesariox> this sevenseacat explains halfway and stop explaining.
<sevenseacat> sorry, i had a doctors appointment.
<xcesariox> sevenseacat: could you kindly help me out now, please. thank you.
<sevenseacat> i helped you with the problem you had at the time - this is a new problem
<sevenseacat> so i did not 'stop explaining halfway'
<sevenseacat> have you read *any* of the rspec docs?
<xcesariox> sevenseacat: okay, could you help me out as it relates to the describe
jnollette has joined #ruby
<sevenseacat> i did, the error with the describe is gone.
<quazimodo> xcesariox: whats the problem
<xcesariox> sevenseacat: yes i have, i am following a tutorial book and the stupid book didn't even mention about hte describe part.
<quazimodo> oh saw it :P
psy has quit [Ping timeout: 250 seconds]
<sevenseacat> xcesariox: i dare say it did.
relix has joined #ruby
<sevenseacat> and you just missed it.
<xcesariox> sevenseacat: seven web frameworks in seven weeks.
lolmaus has joined #ruby
<xcesariox> sevenseacat: let me show you
<sevenseacat> i have that here - let me check
<quazimodo> xcesariox: looks like you need to have some request spec stuff going on
arup_r_ has joined #ruby
<xcesariox> sevenseacat: you have that book?
<sevenseacat> yes
<xcesariox> quazimodo: as in require ?
bal1 has joined #ruby
<sevenseacat> please turn to the start of chapter 4
ponga has joined #ruby
<sevenseacat> *page 4
<sevenseacat> describe 'Hello application' do
<xcesariox> sevenseacat: page 33, read that.
<quazimodo> xcesariox: well your 'get' is a helper in spec
<quazimodo> you need to have it working somehow
<sevenseacat> page 33 is a wrapup page
<xcesariox> sevenseacat: it directly as me to create an app_test.rb
<quazimodo> so either you load it, or you tell rspec that this is a request spec
<sevenseacat> you're not looking at an up to date version of the book
<xcesariox> sevenseacat: there is no page 3 mentioning that, page 3 is like introducing the name of the author.
<quazimodo> Rspec.describe whatever, type: :request do try that?
jonr2219 has joined #ruby
<xcesariox> sevenseacat: whats your book version?
<sevenseacat> p1.0
jonr22 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<quazimodo> I get the feeling the 'get' helper is an rspec_rails thing /me ponders
<xcesariox> sevenseacat: mine is the latest, 2014 copyright
ghostlines has joined #ruby
ghr has joined #ruby
<xcesariox> quazimodo: so what should i do now
arup_r has quit [Ping timeout: 272 seconds]
<xcesariox> quazimodo: could you copy my existing code and paste it into a new gist of what needs to be added
jonr2219 has quit [Remote host closed the connection]
henesy has joined #ruby
nonks has quit [Quit: WeeChat 1.0]
uber_hulk has joined #ruby
jonr22 has joined #ruby
uber_hulk has quit [Client Quit]
<quazimodo> config.include Rack::Test::Methods <- that might be it
exgf has joined #ruby
<quazimodo> sevenseacat: i got it right XD
<quazimodo> xcesariox: ok you basically need to tell rspec that these specs will require methods from Rack::Test::Methods
<sevenseacat> he's also using the wrong version of rspec for the book
jonr22 has quit [Read error: Connection reset by peer]
<quazimodo> so you can either load them in like the thing sevenseacat just posted, or you can tell rspec about a 'type' of spec (in this case :request) and have spec_helper tell rspec to load thats for request specs
<sevenseacat> though to be fair the book doesnt specify a version
jonr2219 has joined #ruby
<sevenseacat> naughty book
<quazimodo> xcesariox: does that make sense to you in abstract?
devoldmx has quit [Remote host closed the connection]
nagaraj has joined #ruby
<quazimodo> sevenseacat: I'm writing something to interact with a program as though it's cli for rspec
<xcesariox> quazimodo, sevenseacat : :/
<quazimodo> to 'feature test' my cli program :D
psy has joined #ruby
<sevenseacat> quazimodo: you're building something like aruba?
ghr has quit [Ping timeout: 256 seconds]
mazarian has joined #ruby
<quazimodo> sevenseacat: yeah but no cucumber gayness
<xcesariox> quazimodo: wait you pasted that picture to me , so which word should i copy?
<sevenseacat> ah i didnt realize it was cucumber-specific
jonr2219 has quit [Remote host closed the connection]
<xcesariox> quazimodo: the describe part?
<quazimodo> xcesariox: that was sevenseacat
<xcesariox> quazimodo: oops oh ya. i was confused for awhile.
<sevenseacat> i was just pointing out that page 4 does have exactly what i said it has.
<quazimodo> xcesariox: chill out, i'll priv you so that you understand what's going on
jonr22 has joined #ruby
rpag has joined #ruby
clauswitt has joined #ruby
<xcesariox> quazimodo: wow thank you
bricker`work has quit [Ping timeout: 264 seconds]
ptrrr has joined #ruby
testcore has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
patrick99e99 has joined #ruby
jonr22 has quit [Remote host closed the connection]
HACKING-FACEBOOK has quit [Ping timeout: 255 seconds]
<patrick99e99> Hi everyone... Does anyone here know of a way to output a buffer of samples to the system audio of the OS? I tried posting this as a question on stack overflow and it was deemed "too broad of a question" so no one can answer it.
jonr22 has joined #ruby
<patrick99e99> I've googled the topic and I can't find any information about it...
lxsameer has joined #ruby
jonr22 has quit [Remote host closed the connection]
rahult has quit [Quit: Back to the world of zombies]
pietr0 has joined #ruby
pietr0 has quit [Client Quit]
jonr22 has joined #ruby
rshetty_ has quit [Ping timeout: 255 seconds]
jonr22 has quit [Remote host closed the connection]
blaines has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
krisquigley has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jonr22 has quit [Remote host closed the connection]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jonr22 has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jonr22 has quit [Remote host closed the connection]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jonr22 has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
charlenopires has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
krisquigley has quit [Ping timeout: 250 seconds]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jonr22 has quit [Remote host closed the connection]
kireevco1 has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
jonr22 has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
JoshGlzBrk has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
zacstewart has joined #ruby
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
HACKING-FACEBOOK has joined #ruby
HACKING-FACEBOOK has quit [Max SendQ exceeded]
Jake232 has joined #ruby
HACKING-FACEBOOK has joined #ruby
jeff831 has left #ruby [#ruby]
jonr22 has quit [Remote host closed the connection]
ht__th has joined #ruby
kireevco has quit [Ping timeout: 255 seconds]
jonr22 has joined #ruby
lemur has quit [Remote host closed the connection]
aganov has joined #ruby
lemur has joined #ruby
mazarian has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
St_Marx_ has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
fabrice31 has joined #ruby
sinequanon has quit [Remote host closed the connection]
jonr2219 has joined #ruby
jonr22 has quit [Remote host closed the connection]
Macaveli has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
WormDr1nk has joined #ruby
charlenopires has left #ruby ["Be back later ..."]
kireevco1 has quit [Ping timeout: 244 seconds]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
Dopagod has quit [Remote host closed the connection]
Dopagod has joined #ruby
ptrrr has quit [Quit: ptrrr]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
CustosL1men has quit [Ping timeout: 240 seconds]
kamilc__ has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
andikr has joined #ruby
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
ColloquyUser has joined #ruby
klmlfl has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
marcdel has quit [Ping timeout: 265 seconds]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
nrsk has joined #ruby
marcdel has joined #ruby
NoNMaDDeN has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
klmlfl has quit [Ping timeout: 264 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
charliesome has quit [Quit: zzz]
Abhijit has joined #ruby
quimrstorres has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
jonr22 has quit [Remote host closed the connection]
BlackGear has quit [Remote host closed the connection]
noop has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
jonr22 has joined #ruby
amclain has quit [Quit: Leaving]
dts|airhocky is now known as dts
<quazimodo> sevenseacat: can you tell radar I'm helping anoob for like ages. He'll be pleased
mary5030 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
godd2 has joined #ruby
timonv_ has joined #ruby
<sevenseacat> quazimodo: would you like a medal or a chest to pin it on :p
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
HayesHimself has joined #ruby
<quazimodo> haha
mary5030 has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
Kricir_ has quit [Remote host closed the connection]
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
bMalum has joined #ruby
kwd has joined #ruby
terlar has joined #ruby
troulouliou_dev has joined #ruby
Xiti has quit [Quit: Xiti]
uber_hulk has joined #ruby
jonr22 has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
lampd1 has quit [Remote host closed the connection]
adriancb has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
ghr has joined #ruby
pasokk has quit [Ping timeout: 265 seconds]
iwishiwerearobot has joined #ruby
pasokk has joined #ruby
jonr22 has quit [Remote host closed the connection]
hmsimha_ has joined #ruby
jonr22 has joined #ruby
noop has joined #ruby
hmsimha_ has quit [Remote host closed the connection]
antgel has joined #ruby
gr33n7007h has quit [Quit: Leaving]
ghr has quit [Ping timeout: 240 seconds]
adriancb has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
einarj has joined #ruby
qba73 has joined #ruby
siso has quit [Quit: siso]
marcdel has quit []
fedexo has quit [Ping timeout: 265 seconds]
jonr22 has quit [Remote host closed the connection]
gebbione has joined #ruby
jonr22 has joined #ruby
testcore has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ColloquyUser has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
reinaldob has joined #ruby
Juanchito has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
jonr22 has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
jonr2219 has joined #ruby
kl has joined #ruby
Guest74546 has joined #ruby
<Radar> I am indeed pleased.
jonr22 has joined #ruby
BlackGear has joined #ruby
jonr2219 has quit [Remote host closed the connection]
sk87 has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
Xeago has joined #ruby
gebbione has quit [Remote host closed the connection]
kl has quit [Ping timeout: 258 seconds]
Xeago_ has joined #ruby
jonr2219 has quit [Remote host closed the connection]
HACKING-FACEBOOK has quit [Ping timeout: 244 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jonr22 has joined #ruby
blackmesa has joined #ruby
mloveless has quit [Remote host closed the connection]
guest123 has quit [Ping timeout: 255 seconds]
NoNMaDDe_ has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
NoNMaDDeN has quit [Ping timeout: 240 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Leaving...]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jdj_dk has joined #ruby
ferri has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
giuseppesolinas has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
arup_r_ has quit [Remote host closed the connection]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonr22 has quit [Remote host closed the connection]
jonr2219 has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
kl has joined #ruby
blaines has joined #ruby
HACKING-FACEBOOK has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Remote host closed the connection]
kuda_ has joined #ruby
WormDr1nk has quit [Ping timeout: 250 seconds]
jonr2219 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
blackmesa has quit [Ping timeout: 264 seconds]
jonr22 has quit [Read error: Connection reset by peer]
DaniG2k has joined #ruby
bigkevmcd has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
bMalum has quit [Quit: bMalum]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
troulouliou_dev has quit [Remote host closed the connection]
maasha has joined #ruby
<maasha> fastest way to merge sorted arrays of fixnums in Ruby?
<hanmac1> maasha: using Set ?
<maasha> whatever
* maasha reads about set
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
psy has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
<maasha> hanmac1: hm, it strikes me that using hashes - which Set does - introduces some overhead
francisfish has joined #ruby
timonv_ has quit [Remote host closed the connection]
renderful has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
<maasha> hanmac1: OTOH, I want to avoid duplicates.
<hanmac1> Set is good in avoiding duplicated too
exgf has quit [Ping timeout: 250 seconds]
exgf has joined #ruby
<maasha> hanmac1: I see that.
jonr2219 has quit [Remote host closed the connection]
ctp has joined #ruby
RitterJack has joined #ruby
jonr22 has joined #ruby
anarang has quit [Quit: Leaving]
jonr2219 has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 240 seconds]
jonr22 has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
andham95 has quit [Ping timeout: 265 seconds]
anarang has joined #ruby
vinleod has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
dumdedum has joined #ruby
rshetty has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
NoNMaDDe_ has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
tesuji has joined #ruby
charliesome has joined #ruby
einarj has quit []
bigkevmcd has joined #ruby
jonr2219 has quit [Remote host closed the connection]
chthon has joined #ruby
jonr22 has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
kl has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
BlackGear has quit [Ping timeout: 265 seconds]
mityaz has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
einarj has joined #ruby
jdj_dk has quit [Remote host closed the connection]
andham95 has joined #ruby
bMalum has joined #ruby
<maasha> Set is slow compared to narray.
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohaibbq has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
ohaibbq has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
jonr22 has joined #ruby
WormDr1nk has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
ohaibbq has quit [Ping timeout: 258 seconds]
oo_ has joined #ruby
HACKING-FACEBOOK has quit [Ping timeout: 240 seconds]
<maasha> hanmac1: I need something like [1, 3, 5, 9].merge_uniq!([5, 7, 10]) # => [1, 3, 5, 7, 9, 10] with a minimum of internal variable copies
HOS_nerv has joined #ruby
<maasha> hanmac1: assume that all arrays are sorted holding fixnums
jonr22 has quit [Remote host closed the connection]
jheg has joined #ruby
roolo_ has joined #ruby
dumdedum has quit [Ping timeout: 272 seconds]
<hanmac1> maasha:
<hanmac1> >> ([1, 3, 5, 9] | [5, 7, 10]).sort
<eval-in__> hanmac1 => [1, 3, 5, 7, 9, 10] (https://eval.in/226073)
jonr22 has joined #ruby
Lilian has quit [Ping timeout: 250 seconds]
<maasha> hanmac1: so, but that sort tells me that there is a faster way without a sort.
HOS_nerv has quit [Client Quit]
HACKING-FACEBOOK has joined #ruby
Lilian has joined #ruby
<maasha> a simple 2-way merge
HOS_nerv has joined #ruby
HOS_nerv has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
<hanmac1> maasha: | is not sorted
HOS_nerv has joined #ruby
<maasha> >> ([1, 3, 5, 9] | [5, 7, 10])
<eval-in__> maasha => [1, 3, 5, 9, 7, 10] (https://eval.in/226076)
<maasha> ah
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
andham95 has quit [Ping timeout: 255 seconds]
ikaros has joined #ruby
kyb3r_ has joined #ruby
BlackGear has joined #ruby
pranny has joined #ruby
<maasha> hanmac1: hm according to the API it is hashing. That part could be saved.
jonr22 has quit [Remote host closed the connection]
kuda_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
shredding has joined #ruby
arup_r has joined #ruby
pranny has quit [Client Quit]
kapil_ has quit [Quit: Connection closed for inactivity]
jonr22 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
andham95 has joined #ruby
godd2 has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
giuseppesolinas has joined #ruby
<maasha> Array#| seems slower than Set even
zacstewart has joined #ruby
joonty has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: This computer has gone to sleep]
jonr2219 has quit [Remote host closed the connection]
olivier_bK has joined #ruby
BlackGear has quit [Remote host closed the connection]
krisquigley has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BlackGear has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
zacstewart has quit [Ping timeout: 258 seconds]
Macaveli has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
dumdedum has joined #ruby
psy has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
DaniG2k has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
timonv_ has joined #ruby
AlSquire has joined #ruby
msgodf has joined #ruby
Spami has joined #ruby
jaequery has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<maasha> hanmac1: so this works (and is so far faster than Set and Array#|) but I am sure it can be improved: https://gist.github.com/maasha/8c5e8f5dbad4d8e8d2fd
oo_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
oo_ has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
HACKING-FACEBOOK has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
yfeldblum has joined #ruby
<maasha> works is probably not the correct word here.
boombadaroomba has joined #ruby
yfeldblum has quit [Remote host closed the connection]
klmlfl has joined #ruby
yfeldblum has joined #ruby
Caius has quit [Ping timeout: 260 seconds]
<gregf_> >> require "benchmark";require "set"; [Benchmark.measure { 100_000.times { [1,2,3] | [4,5,2] } }, Benchmark.measure { 100_000.times { Set[1,2,3].merge(Set[4,5,2]); } }]
<eval-in__> gregf_ => [#<Benchmark::Tms:0x42523db0 @label="", @real=0.1333941, @cstime=0.0, @cutime=0.0, @stime=0.0, @utime=0.13999999999999999, @total=0.13999999999999999>, #<Benchmark::Tms:0x424d780c @label="", @real=0.95 ... (https://eval.in/226094)
<canton7> I'm going to guess that Set starts to win with larger collections
klmlfl has quit [Ping timeout: 240 seconds]
<canton7> try with > 50 elements
<gregf_> ok, so sets are better for larget collections?
boombadaroomba has quit [Ping timeout: 264 seconds]
<gregf_> *larger
<gregf_> s/collections/elements/
<canton7> in the same way that a linear search will out-perform a dictionary/hash lookup for small numbers of elements, yup
DaniG2k has joined #ruby
<gregf_> i thought | & are set operat(ors|ions) as well?
echooo has quit [Ping timeout: 245 seconds]
<canton7> you're making them operate on dictionaries. ruby has to do a linear search to see whether an item exists in both arrays
echooo has joined #ruby
<canton7> with a Set, that becomes a constant-time lookup
<gregf_> ah - i see
<canton7> *operate on arrays
<maasha> To me it looks like Set and | are generic methods and will always loose to a simple 2-way merge of arrays with numbers.
<canton7> (and the constant-time lookup has a small overhead, which causes the lienar search to win for small collections)
DaniG2k has quit [Client Quit]
<gregf_> hmm, fair enough
<canton7> Set isn't a method
<canton7> it's a different sort of collection
ghostlines has joined #ruby
<maasha> well, class with generic methods
prasfury has joined #ruby
andham95 has quit [Ping timeout: 265 seconds]
<gregf_> yeah, a set is a collection in java as well inheriting from List. with no duplicates
startupality has joined #ruby
Caius has joined #ruby
<GreatSUN> hey all
davedev24_ has quit [Remote host closed the connection]
<GreatSUN> did someone experience problems with a java password request on an interactive process?
<canton7> >> require 'benchmark'; require 'set'; a, b = [*1..50], [*25..75]; c, d = Set[a], Set[b]; [Benchmark.measure{ 100_000.times{ a | b } }, Benchmark.measure{ 100_000.times{ c.merge(d) } }]
<eval-in__> canton7 => (https://eval.in/226096)
<GreatSUN> I just had the problem that I tried to send a password via pty to the java interactive process requesting a password interactively
<canton7> >> require 'benchmark'; require 'set'; a, b = [*1..50], [*25..75]; c, d = Set[a], Set[b]; [Benchmark.measure{ 10_000.times{ a | b } }, Benchmark.measure{ 10_000.times{ c.merge(d) } }]
<eval-in__> canton7 => [#<Benchmark::Tms:0x423ee508 @label="", @real=0.41664288, @cstime=0.0, @cutime=0.0, @stime=0.0, @utime=0.41000000000000003, @total=0.41000000000000003>, #<Benchmark::Tms:0x423ee29c @label="", @real=0.2 ... (https://eval.in/226097)
<GreatSUN> but the java process did not take the password (properly)
<gregf_> canton7: even a hash merge is faster than a set merge:. but yeah, prolly the number of elements matter, apparently
<GreatSUN> neither with no special chars, nor with smaller length
<canton7> gregf_, see just above - set wins with large collections
<gregf_> require "benchmark";require "set"; puts Benchmark.measure { 100_000.times { [1,2,3] | [4,5,2] } }, Benchmark.measure { 100_000.times { Set[1,2,3].merge(Set[4,5,2]); } }, Benchmark.measure { 100_000.times { Hash[ [1,2,3].map { |x| [x,x] }].merge(Hash[[4,5,2].map{ |y| [y,y] }]).keys } }
kyb3r_ has quit [Read error: Connection reset by peer]
<GreatSUN> the problem seams to persist with ruby 1.9.3 in this case
<gregf_> yeah, true that
<gregf_> canton7++ ;)
prasfury has quit [Read error: Connection reset by peer]
pra5ann4 has joined #ruby
<canton7> gregf_, yeah, you need to take into account the cost of constructing the Set/Hash/array. if you add that, then Sets are slower. If you take it out, they're quicker
<GreatSUN> if anyone has any hint for me
<gregf_> ah ok
<GreatSUN> please come through
siso has joined #ruby
<GreatSUN> interactively typing the password myself works btw.
AlexRussia has joined #ruby
workmad3 has joined #ruby
<GreatSUN> hey workmad3 :-)
<GreatSUN> wb
bal1 has quit [Quit: bal1]
lolmaus has joined #ruby
siso has quit [Read error: Connection reset by peer]
andham95 has joined #ruby
siso has joined #ruby
bal1 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
pra5ann4 has left #ruby [#ruby]
SOLDIERz has quit [Quit: Be back later ...]
giuseppesolinas has joined #ruby
AndChat| has joined #ruby
AFKGeek has joined #ruby
<gregf_> bah :/ what did i write. a set/list/map inherit from a collection
AndChat- has joined #ruby
arup_r_ has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
ordepdev has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
giuseppesolinas has quit [Client Quit]
quazimodo has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndChat- has quit [Ping timeout: 240 seconds]
michael_imac is now known as michael_mbp
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevinxu has joined #ruby
giuseppesolinas has joined #ruby
kevinxu is now known as Guest89124
quimrstorres has joined #ruby
kapil_ has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
daxroc__ is now known as daxroc
<daxroc> Morning all
<daxroc> What's the best way to check if a file has the contents of an erb as the head ?
ptrrr has joined #ruby
Guest74546 has quit []
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
<maasha> Hm, now why is merge_uniq2 slower than merge_uniq? => https://gist.github.com/maasha/8c5e8f5dbad4d8e8d2fd
DaniG2k has joined #ruby
kl_ has joined #ruby
RTG` has joined #ruby
<txdv__> wtf
<txdv__> its ruby
txdv__ is now known as txdv
<maasha> I thought that shift would be slow
DLSteve has quit [Quit: Leaving]
sandelius has joined #ruby
<Macaveli> This gives me invalid byte sequence in UTF-8 https://gist.github.com/YOUConsulting/82a0cab8c3a1559bc584 anyone know the reason?
NoNMaDDeN has joined #ruby
kobain has joined #ruby
<hanmac1> maasha: hm can you benchmark using Set or (a | b ).sort too?
Axy has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
Axy has joined #ruby
sski has joined #ruby
<hanmac1> Macaveli: because its a "invalid byte sequence in UTF-8" ?
<hanmac1> >> "Alto Tr\xE1s-os-Montes".valid_encoding?
<eval-in__> hanmac1 => false (https://eval.in/226104)
<maasha> hanmac1: sure
dopieee has quit [Remote host closed the connection]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
<Macaveli> hanmac1 can you force it?
Timgauthier has joined #ruby
reinaldob has joined #ruby
<hanmac1> Macaveli: you mean you want to force it into a valid UTF-8 encoding?
<Macaveli> yes
Photism has joined #ruby
<hanmac1> not easily, you can replace the invalid chars, but that would change the context ... better would be you show more of your code so that we can see what you did wrong
Timgauthier has quit [Client Quit]
marr has joined #ruby
rdark has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
einarj has quit [Read error: Connection reset by peer]
einarj_ has joined #ruby
sk87 has joined #ruby
<txdv> `def germanize
<txdv> ````self.force_encoding("ISO-8859-1").encode("UTF-8")
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<txdv> hanmac1: you need to specify the encoding for yourself
nfk has joined #ruby
<txdv> it is not possible to just magically know
charliesome has quit [Quit: zzz]
<hanmac1> txdv: encode as options what to do with invalid chars, but i am not the one with the problem txdv ;P
_5kg has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
LekeFly has joined #ruby
Guest89124 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<maasha> hanmac1: but I still don't get why merge_uniq2 is slower than merge_uniq :o)
sski has quit [Remote host closed the connection]
charliesome has joined #ruby
sski has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
<jhass> maasha: most likely the two extra array allocations
sski has quit [Ping timeout: 272 seconds]
<maasha> that benchmark is not reflecting the real world data I have (arrays up to 1500 with integers in the range 0-65000)
kl_ has quit [Ping timeout: 240 seconds]
terlar has quit [Quit: WeeChat 1.0.1]
<maasha> jhass: ?
<jhass> line 45
<jhass> creates two intermediate arrays
kl_ has joined #ruby
<maasha> jhass: yeah, I was looking at that. Can it be avoided? (I have often looked at that type of construction, but never figured out if there is a better way to slice data)
gccostabr has joined #ruby
shredding has quit [Quit: shredding]
aligo has quit [Remote host closed the connection]
<jhass> good question
aligo has joined #ruby
<maasha> hanmac1: I updated the benchmark: https://gist.github.com/maasha/8c5e8f5dbad4d8e8d2fd
wolf4ood has joined #ruby
shredding has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
apeiros_ has joined #ruby
<maasha> jhass: I am surprised that the merge_uniq with all the shifting and array resizing performs so well.
Octave has quit [Ping timeout: 240 seconds]
mazarian has joined #ruby
corehook has joined #ruby
uber_hulk has quit [Quit: leaving]
ldnunes has joined #ruby
<jhass> since you're optimizing at that level I'd try a concat that takes start & end indices
<jhass> or look at crystal :P
andham95 has quit [Ping timeout: 244 seconds]
<maasha> crystal?
aligo has quit [Ping timeout: 255 seconds]
<olivier_bK> how can i get recursively size of directory ?
maestrojed has quit [Quit: Computer has gone to sleep.]
<maasha> jhass: I have used narray and bitwise operators - that is fast. I should put that into the benchmark.
NoNMaDDeN has quit [Read error: Connection reset by peer]
xcesariox has joined #ruby
<jhass> crystal-lang.org ;)
anaeem1 has quit [Remote host closed the connection]
mazarian has quit [Ping timeout: 272 seconds]
<maasha> eeek!
grzywacz has joined #ruby
aligo has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
DLSteve has joined #ruby
<jhass> Dir[] + Array#inject + File.size should be all you need
<jhass> olivier_bK: ^
<jhass> + File.directory? I guess
Spami has quit [Quit: This computer has gone to sleep]
<olivier_bK> jhass if you do that you true or false if it's a directory or not
pandaant has quit [Remote host closed the connection]
<olivier_bK> i want to get the size of directory as du -hs $DIR
<jhass> let's be programmers and be precise: that doesn't show the size of the directory, it shows the size of the files contained in the directory or any subdirectory
<jhass> the "size" of most directories will be 4096 bytes
sk87 has joined #ruby
<workmad3> jhass: most of mine are 68 bytes or 102 bytes
<workmad3> jhass: but that's on OSX
<jhass> ;)
<workmad3> ubuntu server, they are indeed all 4096 ;)
ghostlines has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> /tmp is 640 here
<jhass> /run 900
<jhass> so it's filesystem specific I guess
wsmoak has joined #ruby
wsmoak has joined #ruby
sski has joined #ruby
<workmad3> jhass: could depend on how it reports size of directories too... is it removing unused entries from the size?
<jhass> i have no idea
<workmad3> jhass: but yeah, most likely that's happening at the FS level rather than the level of du or ls :)
Hobogrammer has quit [Ping timeout: 240 seconds]
Shazaum has joined #ruby
Shazaum has quit [Client Quit]
tesuji has quit [Ping timeout: 255 seconds]
<olivier_bK> jhass, you are right sorry
shredding has quit [Quit: shredding]
xcesariox has quit [Read error: Connection reset by peer]
cajone has left #ruby [#ruby]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dts has quit [Ping timeout: 244 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<Takumo> Any suggestions on how to load the configuration for my Rack application?
sski has quit [Remote host closed the connection]
<Takumo> It'd be nice to have access to it via a #config method on the app module (i.e. MyApp.config.database.host)
sski has joined #ruby
kobain has joined #ruby
<Takumo> I've got a a YAML file holding my config, but it'd be nicer to not to be using hashes for my config
shredding has joined #ruby
corehook has quit [Remote host closed the connection]
jenrzzz has joined #ruby
uber_hulk has joined #ruby
sski has quit [Ping timeout: 244 seconds]
quarcu has quit [Quit: ZNC - http://znc.in]
<jhass> Takumo: hashie gem?
mkaesz has joined #ruby
<Takumo> jhass: of course!
TheRinger has quit [Ping timeout: 255 seconds]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> there are tons of gems doing that for "configuration" explicitly
Takle has quit [Remote host closed the connection]
<Takumo> jhass: such as? (I'm interested now)
<Takumo> although this is by intridea and I'm already using a bunch of their gems for this
_5kg has joined #ruby
grzywacz has quit [Quit: :wq]
<jhass> settingslogic is popular I guess
quarcu has joined #ruby
kl_ has quit [Ping timeout: 264 seconds]
<Takumo> ooh nice
fabrice31 has quit [Remote host closed the connection]
<jhass> https://www.ruby-toolbox.com/categories/Configuration_Management about every second/third does it that way
<shortCircuit__> How slow in OpenStruct compared to Hash
<shortCircuit__> *is
<jhass> do a benchmark!
kevinxu has joined #ruby
kevinxu is now known as Guest19302
TheRinger has joined #ruby
TheRinger has quit [Client Quit]
NoNMaDDeN has joined #ruby
chu has joined #ruby
Takle has joined #ruby
mloveless has joined #ruby
<shevy> shortCircuit__ I assume only a bit less
jonr22 has joined #ruby
<Macaveli> Does anyone knowwhat the the difference is between left and right in Terminal? It has to do with encoding I think. http://i.imgur.com/w1FJeFm.png
Macaveli has quit [Killed (idoru (Spam is off topic on freenode.))]
<shevy> weird
<shevy> never seen things like <C3>
bMalum has quit [Quit: bMalum]
<shevy> is this the spanish a` character?
<shevy> or e`
<txdv> where do you see <C3> ?
<shevy> "Azerba<C3><AF>n"
sandelius has joined #ruby
<txdv> in vim?
<txdv> did osmeone just write that?
<shevy> ah it is in Macaveli's screenshot; he is gone now :(
fabrice31 has joined #ruby
mloveless has quit [Ping timeout: 245 seconds]
<txdv> encoding issue
<txdv> terminal not supporting utf, vim not picking up the right encoding
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<txdv> I see them all day long when sites fail to to specify proper html encoding
<txdv> encodings*
<shevy> ah that is vim?
jonr22 has quit [Ping timeout: 250 seconds]
Guest19302 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> txdv you are a very clever person
<txdv> no
<shevy> and so modest!
aligo has quit [Remote host closed the connection]
aligo has joined #ruby
AFKGeek has quit [Quit: Leaving]
JCii8__ has joined #ruby
ajaiswal has quit [Quit: Leaving]
kl_ has joined #ruby
<txdv> I suck at everything
<txdv> except maybe at procastrination
Macaveli has joined #ruby
giuseppesolinas has joined #ruby
<shevy> I have faith in you, you are an excellent procastrator txdv
aligo has quit [Ping timeout: 245 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
siso has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
davidhq has joined #ruby
kl_ has quit [Ping timeout: 255 seconds]
lkba has joined #ruby
iamjarvo has joined #ruby
dangerousdave has joined #ruby
tvw has joined #ruby
Takle_ has joined #ruby
mkaesz has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
iamjarvo has quit [Client Quit]
Takle has quit [Ping timeout: 265 seconds]
Jake232 has joined #ruby
jusmyth has quit [Quit: Leaving.]
mskaesz has joined #ruby
Jake232 has quit [Client Quit]
mkaesz has quit [Read error: Connection reset by peer]
Shazaum has joined #ruby
aligo has joined #ruby
Morkel_ has joined #ruby
<txdv> jhass: it doesnt load anything
<txdv> i expected cats
<txdv> you dissapointed me
aligo has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
<txdv> you know what i do with people who dissapoint me constantly?
quimrstorres has quit [Remote host closed the connection]
einarj_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<jhass> I didn't
<jhass> your browser did
<jhass> (works fine here)
<txdv> define "here"
<txdv> firefox? chrome? safari?
<txdv> elinks?
<jhass> latest firefox
<txdv> lynx?
siso has joined #ruby
last_staff has quit [Remote host closed the connection]
bMalum has joined #ruby
dumdedum has quit [Ping timeout: 240 seconds]
<txdv> cat in a car
<txdv> with open mouth
<txdv> means scared shitless
last_staff has joined #ruby
<borkdude> but I get private method `save_impl' called for #<ImageVoodoo:0x47ece14d>
<borkdude> am I overlooking something obvious, or is this a bug in this gem?
<jhass> bug in the gem, probably change in a dependencys API
<jhass> open an issue
xcesariox has joined #ruby
quimrstorres has joined #ruby
Xeago has joined #ruby
<shevy> shortCircuit__ hey I tested openstruct vs. hash
<shortCircuit__> and :)
<shevy> shortCircuit__ http://pastie.org/9742340
<shevy> dunno
quarcu has quit [Ping timeout: 264 seconds]
<shortCircuit__> :D
<shevy> I guess I need to fill them with data
krz has quit [Quit: WeeChat 1.0.1]
<shortCircuit__> I didn't know benchmarking was this easy in ruby :))
<shevy> well
<shevy> there are a few other ways
<shevy> bm(10) { }
<shevy> perhaps I should try with that one
Xeago_ has quit [Ping timeout: 264 seconds]
<shortCircuit__> its only 0.5 seconds fast
<arup_r_> I am working on this HTML - view-source:http://www.aeropostale.com/product/index.jsp?utm_source=giftguide&utm_medium=site&utm_campaign=for_her&productId=51008676 .. But the xpath is not working doc.xpath("//script[contains(concat(' ', string(.), ' '), ' store.product.alternateProdImages ')]").count # => 0
<arup_r_> It should not return 0
<arup_r_> Where I am doing wrong
<arup_r_> ?
<shevy> shortCircuit__ yeah but you need to also consider how many times it is tried
<shevy> shortCircuit__ like if your machine is under high load or under no load
<shevy> shortCircuit__ I am now trying it with data
<shortCircuit__> yeah, true
<shortCircuit__> ok
<shevy> and the results are ... well it takes much longer now haha
<shevy> yep
<shevy> suddenly OpenStruct is slow
<shevy> OpenStruct
<shevy> 28.620000 0.010000 28.630000 ( 29.823684)
<shevy> Hash
<shevy> 4.000000 0.010000 4.010000 ( 4.319283)
<shevy> same dataset
<shortCircuit__> :(
<shevy> :sword => 123
<shevy> length of a sword in cm
<shevy> :D
quarcu has joined #ruby
<shortCircuit__> :D
<shevy> shortCircuit__ I guess it must dynamically create methods
<jhass> arup_r_ the script tag should contain its content plus two spaces?
<shevy> I am just confused why it is not slower all the time
<maasha> Struct is faster than OpenStruct
BlackGear has joined #ruby
dumdedum has joined #ruby
BlackGear has quit [Client Quit]
<shevy> hehe
<apeiros_> suddenly?
<apeiros_> the access pattern matters btw.
spastorino has joined #ruby
Squarepy has joined #ruby
<shevy> yeah I guess you should use OpenStruct only when you really really need it
doev has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
moritzs has joined #ruby
<shortCircuit__> http://stackoverflow.com/questions/14421218 yeah. I had this answer bookmarked
chthon has quit [Ping timeout: 240 seconds]
<apeiros_> IMO openstruct is only a good idea as a) stop gap and b) use once solution
<arup_r_> Jhass: I tried doc.xpath("//script[contains(concat(' ', normalize-space(./text()), ' '), ' store.product.alternateProdImages ')]").count
_bart has joined #ruby
eat_multi has joined #ruby
<shortCircuit__> but it says in the accepted answer that "The OpenStruct is a very simple object from that standpoint " :( . explain
<_bart> Hi all, I was wondering, why does /(d+)/.match("100").captures[0] return a String ("100") and not just 100
tier has joined #ruby
Dev_R3d has joined #ruby
<_bart> \d+ instead of d+
nagaraj has quit [Quit: nagaraj]
<apeiros_> _bart: why should it return 100?
<shevy> I guess .match wants strings
kevinxu has joined #ruby
<shevy> /(\d+)/.match(100) # TypeError: no implicit conversion of Fixnum into String
wolf4ood has quit [Ping timeout: 244 seconds]
<_bart> anyway, the \d+ should make clear the result should be an int
<apeiros_> _bart: you match part of a string. part of a string is still a string.
Spami has joined #ruby
kevinxu is now known as Guest2740
<apeiros_> _bart: no
<shevy> _bart that is just where you match onto
<shevy> you find numbers in your string
<apeiros_> _bart: take "00101011" - not the same as 101011
<shevy> _bart you can use .to_i if you need an integer
<apeiros_> matching is substring. conversion is a separate thing. intent is not connected, not inferable.
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dev_R3d has quit [Client Quit]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Ping timeout: 255 seconds]
dangerousdave has joined #ruby
upp3r has joined #ruby
tier has quit [Remote host closed the connection]
siso has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
Takle_ has quit [Remote host closed the connection]
chthon has joined #ruby
samsquanch has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
chthon has quit [Read error: Connection reset by peer]
<txdv> come on
relix has joined #ruby
tirengarfio_ has joined #ruby
clauswitt has joined #ruby
<ponga> shevy
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> wat
<tirengarfio_> Im following these instructions to install ruby: https://gist.github.com/stephou0104/233b5c99884f1d8c8b8b but I get bash: /home/tirengarfio/.rvm/scripts/rvm: No such file or directory
Takle has joined #ruby
<ponga> how could i store values with like 5 , 6 elements other than using SQL or multi-dimensional arrays
<tirengarfio_> well to install compass
<ponga> is there anything like this
<apeiros_> ponga: YAML, Marshal, JSON
<apeiros_> for a full "flat file" db, see PStore (part of stdlib)
<ponga> thank you apeiros_
cats has joined #ruby
<cats> Hi there :)
arup_r_ has quit [Remote host closed the connection]
cats has left #ruby [#ruby]
Abhijit_ has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
<ponga> apeiros_: YAML Marshal, JSON .. these stuffs , must i send query statement to interpret with them? cos i really hate query, i prefer iterator on array/hash style
sigurding has joined #ruby
<ponga> and sorry for such noobie questions
<ponga> i only know JSON is XML substitute thing
<_bart> apeiros_: is there a way to do the conversion with the regex?
<apeiros_> ponga: those libraries are serializations
arup_r has joined #ruby
<apeiros_> *serializers
pandaant has quit [Quit: Lost terminal]
Darryl_ has quit [Quit: Connection closed for inactivity]
<apeiros_> they convert arbitrary datastructers to string. since string is the only thing you can write to disk.
Abhijit has quit [Ping timeout: 272 seconds]
<apeiros_> as for the rest: please educate yourself. I'm not a documentation replacement.
<apeiros_> _bart: no. you do it after the match.
frowni has joined #ruby
n008f4g_ has joined #ruby
JohnBat26 has joined #ruby
Xeago_ has joined #ruby
pandaant has joined #ruby
<_bart> apeiros_: ok
DaniG2k has quit [Quit: leaving]
sinkensabe has joined #ruby
Soda has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 244 seconds]
uber_hulk has quit [Quit: leaving]
JohnBat26 has quit [Read error: Connection reset by peer]
tirengarfio_ has quit [Ping timeout: 246 seconds]
sigurding has quit [Quit: sigurding]
<ponga> apeiros_ that answer was more than enough sir, im going ahead to educate myself
<ponga> thanks
<ponga> i didn't expect baby sitting
puppeh has joined #ruby
<apeiros_> good :)
charlenopires has joined #ruby
<puppeh> I forked a gem which contains native C extensions, cloned it to my local machine, recompiled it and updated my Gemfile to point at its path
JohnBat26 has joined #ruby
charlenopires has left #ruby [#ruby]
arup_r has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<puppeh> but apparently I'm getting a "cannot load file" error when building app my application (that uses that gem), I suspect because the object files (which I compiled) are not in the path they should
<puppeh> in fact, they were generated in the same local path where my cloned gem existed
keen___________8 has joined #ruby
maximski has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
maximski has quit [Client Quit]
hamakn has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<ducklobster> How would you go about overriding a method that is part of a class with an `include Module`
keen___________7 has quit [Ping timeout: 264 seconds]
<apeiros_> ducklobster: override it where? in the class? just def it
terlar has joined #ruby
last_staff has quit [Quit: last_staff]
arup_r has joined #ruby
sigurding has joined #ruby
nateberkopec has joined #ruby
<ducklobster> I'm using DataMapper (for better or for worse)
<apeiros_> ducklobster: yes, just like that
<ducklobster> and when I try to override the method in the manner above, the include DataMapper::Resource seems to take precedence over my inherited to_json method
<apeiros_> include is higher up in the ancestry
arup_r has quit [Remote host closed the connection]
<apeiros_> then DataMapper::Resource is one of those evil modules which abuses self.included. you'll have to study code. have fun :(
Soda has joined #ruby
<apeiros_> but plain ruby, that works:
<ducklobster> :(
<apeiros_> >> module Foo; def foo; "Foo#foo"; end; end; class Bar; include Foo; def foo; "Bar#foo"; end; end; Bar.new.foo
<eval-in__> apeiros_ => "Bar#foo" (https://eval.in/226179)
<apeiros_> ducklobster: ^
workmad3 has quit [Ping timeout: 255 seconds]
<apeiros_> if they indeed abuse included, then please hit the authors with a stick from me. kthx.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros_> ducklobster: you can check where it comes from by doing: Account.new(…).method(:to_json).owner and .source_location
billydaz__ has joined #ruby
<billydaz__> hi
<ducklobster> apeiros_: I'll check that out
<billydaz__> been having this error trying to use bunler
<billydaz__> Errno::EPERM: Operation not permitted - /opt/metasploit-framework/msfbinscan
<ducklobster> would it also be possible to have another include after DataMapper
<ducklobster> with a dummy Module that just overrides to_json?
<ducklobster> and also abuse include...
aarkerio has joined #ruby
<apeiros_> ducklobster: included != include
<apeiros_> included is a callback on the module you include.
<ducklobster> ohh
<apeiros_> and no, it does not matter when you include the module. it's in the ancestry.
<billydaz__> anyone willing to help
<apeiros_> >> module Foo; def foo; "Foo#foo"; end; end; class Bar; def foo; "Bar#foo"; end; include Foo; end; Bar.new.foo
<eval-in__> apeiros_ => "Bar#foo" (https://eval.in/226180)
<billydaz__> i am driving by
<ducklobster> i see
<billydaz__> :)
<apeiros_> ducklobster: ^ see, included after def
<ducklobster> apeiros_: seems that the owner of the method is DataMapper::Serializer
uber_hulk has joined #ruby
<aarkerio> hi ! I have this code: final_data = JSON.parse(api_answer).first.second
<aarkerio> is there a way to check "second" exist and rescue?
workmad3 has joined #ruby
ghostlines has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome_ has joined #ruby
<jhass> [0][1] || 'default' ?
benzrf|offline is now known as benzrf
<jhass> hard to tell what your data possibly might look like
claptor has quit [Quit: this channel is bakas]
shortCircuit__ has quit [Ping timeout: 265 seconds]
mloveless has joined #ruby
BraddPitt has quit [Ping timeout: 264 seconds]
frowni has quit [Remote host closed the connection]
<_bart> I use this piece of code with Nokogiri to get the outline of a HTML document: http://stackoverflow.com/questions/7176094/how-do-i-create-an-outline-of-the-html-tag-structure-on-the-page-using-nokogiri, but how do I stop it from stripping attributes of html nodes?
<aarkerio> jhass, thank you
charliesome has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
avrc has quit [Quit: this channel is bakas]
MiracleBlue has quit [Ping timeout: 258 seconds]
arup_r has quit [Remote host closed the connection]
MiracleBlue has joined #ruby
rshetty_ has joined #ruby
maximski has joined #ruby
decoponyo has joined #ruby
jonr22 has joined #ruby
mloveless has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 258 seconds]
rshetty has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
decoponio has quit [Ping timeout: 258 seconds]
phutchins has joined #ruby
elico has joined #ruby
arup_r has joined #ruby
<elico> Hey I'm looking for the right way to "Read" or "interpret" a keyboard action.
adriancb has joined #ruby
karmatr0n has joined #ruby
<jhass> elico: from a pty I guess. Check the raw mode offered by io/console stdlib
jonr22 has quit [Ping timeout: 244 seconds]
Mateon2 is now known as Mateon3
arup_r has quit [Remote host closed the connection]
<elico> jhass: well I need to interpret only one key at a time..
<jhass> yes
<elico> so I was thinking more about using readline but unsure.
<elico> jhass: getch??
<jhass> yeah
<_bart> found a way to rebuild the attributes to a string
<elico> thanks
yalue has joined #ruby
bMalum has quit [Quit: bMalum]
bmichelsen has joined #ruby
bMalum has joined #ruby
upp3r has quit [Quit: upp3r]
pika_pika has joined #ruby
paulfm has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
kl has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
charlenopires has joined #ruby
giuseppesolinas has joined #ruby
sk87 has joined #ruby
giuseppesolinas has quit [Max SendQ exceeded]
rshetty_ has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
jimms has joined #ruby
lkba has joined #ruby
<elico> jhass: I have an issue with getch...
<elico> it work but it's different from readline and gets...
krz has joined #ruby
aarkerio has quit [Quit: Verlassend]
<jhass> if you like readline use readline
Akagi201 has joined #ruby
<elico> OK I will look into readline options for a single character.
AFKGeek has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
andham95 has joined #ruby
tvw has quit []
AlexRussia has joined #ruby
hackeron_ is now known as hackeron
hackeron has joined #ruby
hackeron has quit [Changing host]
iamjarvo has joined #ruby
blackmesa has joined #ruby
triple_b has joined #ruby
zacstewart has joined #ruby
kuda_ has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
kuda_ has quit [Client Quit]
BraddPitt has joined #ruby
divi has joined #ruby
anarang has quit [Quit: Leaving]
d_ttn has joined #ruby
<mrgrieves> hi, how can I change environment variables values like INSTALLATION DIRECTORY in a bash script?
<mrgrieves> the reason I'm asking is because we have pre-receive git hooks which are using different gem env values depending on which user/shell the hook is executed
d_ttn has left #ruby [#ruby]
quimrstorres has quit [Read error: Connection reset by peer]
tvw has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
benzrf is now known as benzrf|offline
ponga has quit [Quit: Leaving...]
uber_hulk has quit [Quit: leaving]
divi has quit [Ping timeout: 244 seconds]
terlar has joined #ruby
SethDusek5 has joined #ruby
<SethDusek5> guys
<SethDusek5> why does this happen
divi has joined #ruby
quimrstorres has joined #ruby
<SethDusek5> when i run it
<SethDusek5> all i see in the browser is 'how are you'
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> SethDusek5: you invoke get with a block, only the last statement in a block is its return value, like with methods
<jhass> also please indent
<SethDusek5> ok
<SethDusek5> wait
<jhass> and make gists with filenames ending in .rb ;)
<SethDusek5> then how would i put multiple lines?
<jhass> you would build a single string that has the newline
relix has joined #ruby
<SethDusek5> ohh
<jhass> for example with a heredoc, with the line continuation (\), String#<< or simply in a single line
<SethDusek5> but what if I want to print something later on?
quazimodo has quit [Remote host closed the connection]
<SethDusek5> its not always possible to put it in the same string
kp666 has quit [Quit: Leaving]
<jhass> also unless you write textfiles that should be opened in notepad on windows you can usually save the \r
<jhass> it is possible
<SethDusek5> how?
<jhass> for more advanced outputs there are views and templating languages
<jhass> String#<< for example
<SethDusek5> whats String#
<jhass> String#<< denotes the instance method << on the class String
felipedvorak is now known as shiva
shiva is now known as felipedvorak
eka has joined #ruby
sevenseacat has joined #ruby
SethDusek5 has left #ruby [#ruby]
uber_hulk has joined #ruby
uber_hulk has quit [Client Quit]
cleopatra has quit [Ping timeout: 265 seconds]
Soda has quit [Ping timeout: 255 seconds]
quimrstorres has quit [Remote host closed the connection]
jerius has joined #ruby
shredding has quit [Read error: Connection reset by peer]
aclearma_ has joined #ruby
tier has joined #ruby
karmatr0n has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<billydaz__> can someone please help me with this: Errno::EACCES: Permission denied - metasploit-framework-4.10.1.pre.dev.gem
<jhass> billydaz__: #metasploit
nateberkopec has quit [Quit: Leaving...]
<billydaz__> jhass: thanks
arup_r has joined #ruby
aclearman037 has quit [Ping timeout: 245 seconds]
<billydaz__> on freenode
arup_r has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
davedev24_ has joined #ruby
<billydaz__> jhass: what network is that?
DLSteve has joined #ruby
<jhass> ?
<billydaz__> #metasploit
<billydaz__> although it is a ruby error
j2p2 has joined #ruby
upp3r has joined #ruby
<elico> anyone have any idea how can a thing like this be created with ruby?
tkuchiki has quit [Ping timeout: 255 seconds]
davidhq has joined #ruby
n1lo has joined #ruby
Jker has joined #ruby
<Jker> someone here is a unity 3d programmer ?
Jker has quit [Killed (idoru (Spam is off topic on freenode.))]
<jhass> billydaz__: I wouldn't send to channels on other netowrks without saying so
<jhass> elico: what part of it?
nateberkopec has joined #ruby
j2p2 has quit [Ping timeout: 250 seconds]
ghr has quit []
it0a has joined #ruby
ghr has joined #ruby
sanguisdex has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
jerius has quit []
mikecmpbll has joined #ruby
o0oo0o_ has quit [Quit: WeeChat 0.4.3]
sailias has joined #ruby
tier_ has joined #ruby
ghostlines has joined #ruby
mloveless has joined #ruby
Jkerzz has joined #ruby
<elico> kaspergrubbe: thanks
Timgauthier has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Leaving]
MissionCritical has quit [Ping timeout: 264 seconds]
exgf has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
mazarian has joined #ruby
tier has quit [Ping timeout: 255 seconds]
Mattias has quit [Ping timeout: 244 seconds]
mloveless has quit [Remote host closed the connection]
mloveless has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
braincrash has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
maximski has quit []
Mateon1 has joined #ruby
Mateon3 has left #ruby ["Leaving"]
karmatr0n has joined #ruby
Channel6 has joined #ruby
<elico> kaspergrubbe: My main issue was not the tcp level but the way it is being displayed..
mazarian has quit [Ping timeout: 272 seconds]
<elico> kaspergrubbe: they use reset thing etc...
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
Mission-Critical has joined #ruby
braincrash has joined #ruby
<kaspergrubbe> elico: I think you need to look into the telnet protocol then
<gr33n7007h> elico, a shit load of "\e[H"
Mattias has joined #ruby
oleo has joined #ruby
GPH|work has joined #ruby
devdazed has joined #ruby
acmehandle has joined #ruby
<acmehandle> stupid question, which channel is rails?
<sevenseacat> #rubyonrails
jlast has joined #ruby
Jkerzz has quit []
lifenoodles has quit [Ping timeout: 245 seconds]
quimrstorres has joined #ruby
ordepdev has quit []
jimbach has joined #ruby
mazarian has joined #ruby
giuseppesolinas has joined #ruby
jimms has joined #ruby
josephndenton has joined #ruby
silkfox has joined #ruby
Mission-Critical has quit [Ping timeout: 264 seconds]
o0oo0o has joined #ruby
dkphenom has joined #ruby
lxsameer has quit [Quit: Leaving]
<maasha> get indeces of all non-zero elements in an array?
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby
lifenoodles has joined #ruby
<hanmac1> maasha:
<hanmac1> >> [1,2,0,3,0,4].each_with_index.reject {|e,_| e.zero? }
<eval-in__> hanmac1 => [[1, 0], [2, 1], [3, 3], [4, 5]] (https://eval.in/226293)
Takle has quit [Ping timeout: 250 seconds]
whoisjake has joined #ruby
devdazed has quit [Quit: Bye]
<hanmac1> or if you only want the idx
<hanmac1> >> [1,2,0,3,0,4].each_with_index.reject {|e,_| e.zero? }.map(&:last)
<eval-in__> hanmac1 => [0, 1, 3, 5] (https://eval.in/226294)
devdazed has joined #ruby
SOLDIERz has joined #ruby
Takle has joined #ruby
<maasha> hanmac1: I was about to go for inject, but thanks
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit []
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
Takle_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
eguneys has joined #ruby
rshetty has joined #ruby
davidhq_ has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
klmlfl has quit [Ping timeout: 240 seconds]
davidhq has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
einarj_ has joined #ruby
einarj has quit [Read error: Connection reset by peer]
rshetty_ has joined #ruby
einarj has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
kith_ is now known as kith
<eguneys> attributes_for method on FactoryGirl returns an empty hash why? http://pastebin.com/7YBpPZHu
kiyote23 has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
klmlfl has joined #ruby
einarj_ has quit [Ping timeout: 265 seconds]
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
jonr22 has joined #ruby
rshetty has joined #ruby
n1lo has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
aclearman037 has joined #ruby
msmith has joined #ruby
msmith has quit [Remote host closed the connection]
msmith has joined #ruby
doodlehaus has joined #ruby
<shevy> "A good starting point is to make sure that your project has good code coverage and that you keep your builds green in CI."
<shevy> anyone knows what CI is in this context?
<shevy> supposedly it has to do with testing
<gregf_> Continuous Integration <== Jenkins/hudson/teamcity/travis :/
joonty has quit [Quit: Leaving]
<shevy> ah thanks
<gregf_> build/deploy rather
paulfm has quit []
maasha has quit [Quit: Page closed]
jobewan has joined #ruby
<eguneys> whois shevy
noop has quit [Ping timeout: 264 seconds]
mleone has joined #ruby
Shazaum has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 265 seconds]
devoldmx33 has joined #ruby
fgo_ has quit [Ping timeout: 264 seconds]
kiyote23 has quit [Remote host closed the connection]
Takle has joined #ruby
giuseppesolinas has joined #ruby
gaussblurinc11 has joined #ruby
<gaussblurinc11> hi!
<dkphenom> trying to run compass watch or compass compile and get the following error
<dkphenom> Gem::ConflictError on line ["2104"] of /Library/Ruby/Site/2.0.0/rubygems/specification.rb: Unable to activate compass_radix-3.1.3, because compass-1.0.1 conflicts with compass (~> 0.12)
<dkphenom> any ideas on how to fix it?
Abhijit_ has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
frenchiex has joined #ruby
Prawnzy has joined #ruby
mary5030 has joined #ruby
Takle_ has quit [Ping timeout: 265 seconds]
cleopatra has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
<gaussblurinc11> can anybody advise tool for writing documentation? (I write server/service on ruby without rails, specific feature of service - file system as db usage)
mary5030 has joined #ruby
sambao21 has joined #ruby
paulfm has joined #ruby
antgel has joined #ruby
clauswitt has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostlines has joined #ruby
charliesome_ has quit [Quit: zzz]
_bart has left #ruby ["undefined"]
n1lo has joined #ruby
upp3r has quit [Quit: upp3r]
yekta has joined #ruby
TheLastExile has quit [Ping timeout: 258 seconds]
HACKING-FACEBOOK has joined #ruby
rshetty has quit [Remote host closed the connection]
freerobby has joined #ruby
drewvanstone has joined #ruby
Olivertynes has joined #ruby
<frenchiex> Hi, I have the following hash (https://gist.github.com/anonymous/ee74a55e932637135a86), I would like to do some stats on response_time values (avg, median, mode, ...), what is the best way in Ruby to do so with a hash like that?
AFKGeek has joined #ruby
sevenseacat has quit [Remote host closed the connection]
dangerousdave has joined #ruby
Kricir has joined #ruby
AFKGeek has quit [Client Quit]
SOLDIERz has quit [Quit: Be back later ...]
mazarian has quit [Remote host closed the connection]
andrewh_ has quit [Remote host closed the connection]
HACKING-FACEBOOK has quit [Ping timeout: 264 seconds]
drewvanstone has quit [Read error: Connection reset by peer]
eka has left #ruby ["Textual IRC Client: www.textualapp.com"]
Takle has quit [Remote host closed the connection]
HACKING-FACEBOOK has joined #ruby
bigmac has quit [Ping timeout: 255 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
tagrudev has quit [Remote host closed the connection]
Shazaum has joined #ruby
gaussblurinc11 has quit [Quit: Leaving.]
kobain has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
lampd1 has joined #ruby
hakunin has joined #ruby
iamjarvo has quit [Client Quit]
tobago has quit [Ping timeout: 264 seconds]
hakunin_ has quit [Ping timeout: 255 seconds]
MissionCritical has joined #ruby
upp3r has joined #ruby
Takle has joined #ruby
gaussblurinc1 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
giuseppesolinas has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vyorkin has joined #ruby
jaequery has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
Mattias has quit [Ping timeout: 245 seconds]
vinleod has joined #ruby
tkuchiki has joined #ruby
damic has quit []
tvw has joined #ruby
moritzs has quit [Ping timeout: 264 seconds]
upp3r has quit [Quit: upp3r]
rippa has joined #ruby
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vyorkin has quit [Client Quit]
maximski has joined #ruby
drewvanstone has joined #ruby
maestrojed has joined #ruby
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
vyorkin has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
Mattias has joined #ruby
hanmac1 has quit [Quit: Leaving.]
elico has left #ruby [#ruby]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
mazarian has joined #ruby
ferri has quit [Read error: Connection reset by peer]
lampd1 has quit []
iamjarvo has joined #ruby
fgo_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
HACKING-FACEBOOK has quit [Ping timeout: 240 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
iamjarvo has quit [Client Quit]
Takle has quit [Ping timeout: 258 seconds]
ptrrr has quit [Quit: ptrrr]
mazarian has quit [Ping timeout: 255 seconds]
Tricon has joined #ruby
fgo_ has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
noop has joined #ruby
rkalfane has joined #ruby
<jhass> for starters your outer hash wants to be an array
LekeFly has quit [Ping timeout: 272 seconds]
<jhass> and there's nothing special, just Enumerable#map, Array#sort, Array#inject(:+), Array#size
Spami has quit [Ping timeout: 258 seconds]
<jhass> Fixnum#fdiv
vyorkin has quit [Ping timeout: 256 seconds]
<jhass> gaussblurinc1: documentation for what exactly? class API? HTTP API?
Takle has joined #ruby
<ericwood> whoat is "UI investors chat"?
kapil_ has quit [Quit: Connection closed for inactivity]
<ericwood> someone is contacting me about it on twitter and was referred to me about it
Spami has joined #ruby
<ericwood> I mistook them for a spam bot
tkuchiki has joined #ruby
snath has quit [Ping timeout: 264 seconds]
theotherstupidgu has joined #ruby
andham95 has quit [Ping timeout: 264 seconds]
billydaz__ has quit [Quit: Leaving]
stunder has joined #ruby
fandi has joined #ruby
j2p2 has joined #ruby
benzrf|offline is now known as benzrf
doev has quit [Ping timeout: 240 seconds]
kl has quit [Ping timeout: 265 seconds]
kl has joined #ruby
segfalt has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
bal1 has quit [Quit: bal1]
patteh_ has quit [Quit: leaving]
patteh has joined #ruby
Guest2740 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apeiros_ has quit [Remote host closed the connection]
foocraft has joined #ruby
apeiros_ has joined #ruby
<ericwood> fess up
gsd has joined #ruby
<ericwood> I bet it was one of y'all
nastri has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
<jhass> I think there are mostly sane persons here
kiyote23 has joined #ruby
<jhass> so no twitter users
<ericwood> joke's on you, I'm an annoying twitter user
startupality has quit [Client Quit]
<ericwood> you should follow me for updates on #ruby
<foocraft> hi all. Does anybody know of a "clear" way of installing tcl/tk bindings for ruby? I'm on archlinux just in case it helps.
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag> jhass, are you near "dresden" ?
<foocraft> I've installed activestate's tcl package
<foocraft> and it didn't affect my ruby installation when it comes to "require "tk""
<ericwood> oh man, TCL/Tk...those take me back!
renderful has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
<ericwood> I used to play with Tkinter in python a lot
jherbst has joined #ruby
<ericwood> foocraft: isn't there a gem that includes them?
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
apeiros_ has quit [Ping timeout: 256 seconds]
<jhass> rpag: define "near"
<foocraft> I'm new to ruby, but not new to package management in other languages. It seems very messy with gem search and I can't find a clear package, no :(
<jhass> rpag: hannover here
s00pcan has joined #ruby
<ericwood> foocraft: check this out: http://phrogz.net/programmingruby/ext_tk.html
<ericwood> it might be out of date, though
Beoran_ has joined #ruby
<ericwood> huh, jk, Tk is included with the standard package :o
dANO has joined #ruby
<rpag> jhass, roger, just curious because of a show im watching
einarj_ has joined #ruby
<foocraft> hmm...
rkalfane has joined #ruby
<jhass> rpag: what show?
ColloquyUser has joined #ruby
havenwood has joined #ruby
charlenopires has left #ruby ["Be back later ..."]
benzrf is now known as benzrf|offline
kwd has quit [Quit: kwd]
mloveless has quit [Remote host closed the connection]
Beoran has quit [Ping timeout: 256 seconds]
einarj has quit [Ping timeout: 258 seconds]
tacit7 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood> hmmm, seems to work for me with the default ruby 2 install
kobain has joined #ruby
kiyote23 has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
ColloquyUser has quit [Client Quit]
<ericwood> ah that helps a lot
davedev24_ has joined #ruby
<ericwood> nothing jumpps out at me
<ericwood> except the warning at the top
fabrice31 has quit [Remote host closed the connection]
<foocraft> this is what happens when I do gem install -r tcl
<ericwood> you might want to make sure the ~/.gem dir is in your $PATH
rshetty has joined #ruby
<foocraft> retrying after fixing that
frenchiex has quit [Quit: Page closed]
<ericwood> yep...this is beyond me :\
freerobby has quit [Quit: Leaving.]
<foocraft> maybe I need the bin of activestate's tcl in the path too?
kamilc__ has quit [Quit: Leaving...]
mskaesz has quit [Remote host closed the connection]
<ericwood> I don't think so...
fgo_ has joined #ruby
iamjarvo has joined #ruby
<foocraft> yeah.. it's complaining about some ruby compilation errors...
<ericwood> I have all of this working just by installing vanilla ruby 2
<foocraft> you can require tk?
<ericwood> yep
<foocraft> % ruby -version
<foocraft> ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
stunder has quit [Remote host closed the connection]
<ericwood> idk then
livathin_ has joined #ruby
iamjarvo has quit [Client Quit]
giuseppesolinas has joined #ruby
parabolize has joined #ruby
<workmad3> foocraft: tcl/tk bindings come in the ruby standard lib
<foocraft> thanks a lot for trying, ericwood.. I hate how unclear ruby is about this
<workmad3> foocraft: you don't need to install a gem for them...
<foocraft> workmad3: then why is require "tk" failing?
stunder has joined #ruby
mikeg has joined #ruby
<workmad3> foocraft: how did you install ruby?
<foocraft> sudo pacman -S ruby
livathinos has quit [Ping timeout: 250 seconds]
<ericwood> workmad3: I'm thinking there might be weirdness with the whole activestate stuff foocraft has going?
<ericwood> foocraft: perhaps install ruby-install and use it instead?
<ericwood> I hate to say stuff like that but you'll get something saner methinks
<foocraft> gem install ruby-install?
<workmad3> ericwood: I'm thinking it's more likely that he doesn't have the tk stdlib extension compiled ;)
mooru has joined #ruby
<ericwood> no, ruby-install is a package...aur might have it
<ericwood> workmad3: lol mebbe
fgo_ has quit [Ping timeout: 258 seconds]
jimms has joined #ruby
blackmesa has joined #ruby
kamilc__ has joined #ruby
livathin_ has quit [Ping timeout: 255 seconds]
mityaz has quit [Quit: Leaving]
<workmad3> foocraft: the tk extension doesn't compile if it can't find the dev headers and libraries during ruby compilation... not sure what the situation is with pacman, but I believe it'll be something similar, that you need tk installed first and then install ruby, or there's an extra pacman package to install to get it
quimrstorres has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<workmad3> foocraft: or it's possible that the pacman build of ruby doesn't compile tk correctly
<ericwood> workmad3: it seemed like the Tk extension couldn't find any of the ruby devel headers
quimrsto_ has joined #ruby
<ericwood> based on the error messages it was giving...
<workmad3> ericwood: that wasn't the tk extension he was trying to install there... that was the tcl gem... which had a single 0.0.1 version released in 2009 ;)
Techguy305|2 has joined #ruby
<ericwood> TCL was nearly dead then as well
<ericwood> actually, it's funny, TCL is very much alive in the EE world
kamilc__ has quit [Client Quit]
<ericwood> my dad recently wrote a neural net in it :|
<workmad3> ericwood: so it was probably written using the 1.8.7 headers... which would fail drastically when trying to build against anything newer :)
Spami has quit [Quit: This computer has gone to sleep]
quimrstorres has joined #ruby
<ericwood> aha!
<workmad3> ericwood: the error messages on compilation were very much along the lines of 'HALP, I DON'T KNOW WHAT RUBY I'M IN!!!'
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
framling has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<ericwood> I pretty much always recommend not installing ruby via package managers :\
<foocraft> workmad3: I'll reinstall ruby from scratch and remove all my gem and ruby-related configs from the system
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has joined #ruby
kl has quit [Ping timeout: 255 seconds]
<foocraft> I guess this would make the offending config shine as I may have misconfigured something sometime ago
<ericwood> foocraft: check out ruby-install
crazydiamond has joined #ruby
<workmad3> ericwood: I generally do too... pacman is normally ok going by other people's experiences, but I've never known anyone actually use tk/tcl :)
benzrf|offline is now known as benzrf
tastycode has joined #ruby
<workmad3> (or is it tcl/tk?)
aganov has quit [Remote host closed the connection]
Shazaum has quit [Changing host]
Shazaum has joined #ruby
<ericwood> it's tcl/tk, tcl is the language, tk is the GUI lib
kl has joined #ruby
<ericwood> also it's GNU/Linux
<ericwood> get it right!!!!!!
antgel has quit [Ping timeout: 256 seconds]
<havenwood> install libtk and libtcl and reinstall ruby?
bMalum has joined #ruby
<workmad3> ericwood: GNU/Hurd ftw!
agjacome has joined #ruby
zacstewart has quit []
quimrsto_ has quit [Ping timeout: 258 seconds]
zacstewart has joined #ruby
<workmad3> ericwood: BeOS FOREVER!!!!
<ericwood> the minute someone complains about ruby issues and I find out they installed it via apt-get I know what was wrong :)
Tricon has quit [Remote host closed the connection]
<foocraft> is that like rvm, ericwood?
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<ericwood> foocraft: if you have RVM set up already just do "rvm install latest"
<ericwood> or whatever
zacstewa_ has joined #ruby
zacstewa_ has quit [Client Quit]
<ericwood> that'll take care of the dirty work for you
tvw has quit []
<ericwood> but first uninstall the pacman version you installed
sigurding has quit [Quit: sigurding]
Macaveli has quit [Ping timeout: 240 seconds]
almostworking has joined #ruby
drewvanstone has quit [Read error: Connection reset by peer]
pengin has joined #ruby
<foocraft> most proglangs are shifting towards a ruby-install setup... seems very similar to opam for ocaml
crazydiamond has quit [Ping timeout: 250 seconds]
rshetty has quit [Remote host closed the connection]
almostworking has left #ruby [#ruby]
chrishough has joined #ruby
<foocraft> very cute scroller while installing ruby-install :D
sigurding has joined #ruby
<foocraft> holy shit.
<arup_r> Anybody reading there ? http://clean-ruby.com/
Zolty_ has joined #ruby
Tricon has joined #ruby
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
Zolty__ has quit [Ping timeout: 255 seconds]
drewvanstone has joined #ruby
kl has quit [Ping timeout: 272 seconds]
mazarian has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
<foocraft> It seems like it's compiling the universe... *facepalm*
idoru has quit [Quit: Working as programmed]
Tricon has quit [Remote host closed the connection]
idoru has joined #ruby
yfeldblum has joined #ruby
einarj_ has quit [Remote host closed the connection]
tlarevo has joined #ruby
tacit7 has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
aspires has joined #ruby
freerobby has joined #ruby
davedev24_ has joined #ruby
<ericwood> good!
tacit7 has joined #ruby
mleone has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
redjack1964 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
WormDr1nk has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
kl has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 250 seconds]
Tricon has joined #ruby
moritzs has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
benzrf is now known as benzrf|offline
maximski has quit []
sigurding has quit [Quit: sigurding]
snath has joined #ruby
mazarian has quit [Ping timeout: 245 seconds]
wedgeV has joined #ruby
giuseppesolinas has joined #ruby
Cache_Money has joined #ruby
blahwoop has joined #ruby
neoxquick has joined #ruby
giuseppesolinas has quit [Client Quit]
stunder has quit [Quit: Screw you guys I'm going home]
Cache_Money has quit [Quit: Cache_Money]
jenrzzz has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
<foocraft> hmm
<foocraft> same problem :<
geekbri has joined #ruby
rkalfane has quit [Ping timeout: 240 seconds]
moritzs has quit [Ping timeout: 272 seconds]
doev has joined #ruby
sambao21 has joined #ruby
aspires has quit []
aspires has joined #ruby
rkalfane has joined #ruby
andikr has quit [Remote host closed the connection]
athan has joined #ruby
chris_debian has joined #ruby
centrx has joined #ruby
<athan> Hi everyone, I've got a ruby application that's giving me a bit of trouble. I'm using rbenv currently, and would like to know where gems are installed - I'd like to probe into this project's internals. Does anyone here know where that would be?
<foocraft> ah, okay I spotted ruby-install ruby installing tk and tcl.. lets see
freerobby has joined #ruby
Pumukel has joined #ruby
sailias has quit [Quit: Leaving.]
kevinxu has joined #ruby
sailias has joined #ruby
kevinxu is now known as Guest44586
jaequery has joined #ruby
deric_skibotn has joined #ruby
hmsimha has joined #ruby
mloveless has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
stunder has joined #ruby
apeiros_ has joined #ruby
<eam> athan: gem list; gem contents
<athan> eam: Thank you :)
tobleronegordon has joined #ruby
troyready has joined #ruby
bricker`work has joined #ruby
mloveless has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Ping timeout: 258 seconds]
<rpag> jhass, you might be insulted if i told you that
chris__ has joined #ruby
<jhass> rpag: good
maximski has joined #ruby
<jhass> tabus are for the stupid
<rpag> jhass, hah, fair enough, here it is: https://www.youtube.com/watch?v=17UvHjITeJQ
<jhass> ah, that part of dresden
<rpag> seems like a dodgy town :)
jheg has quit [Quit: jheg]
chris_debian has quit [Ping timeout: 256 seconds]
<jhass> well, dresden was hit badly by the WWII bombings
bigmac has joined #ruby
<jhass> so the neonazis use the days where it was bombed as, hrm, "memorial day"
fgo_ has joined #ruby
roolo_ has quit [Quit: AAAAaaaaAAAAAAA]
chris__ has quit [Ping timeout: 272 seconds]
<jhass> it's instrumentalized by them, the state it is in is one of the ones with a higher density of racism here in germany
ghostlines has joined #ruby
<rpag> i was taken back by how gloomy the town seems
<jhass> doesn't mean it makes it an unbearable place to live
Tricon has quit [Remote host closed the connection]
mikeg has quit [Ping timeout: 256 seconds]
olivier_bK has quit [Quit: Quitte]
divi has quit [Ping timeout: 240 seconds]
fgo_ has quit [Ping timeout: 265 seconds]
krisquig_ has joined #ruby
dANO has quit []
uber_hulk has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 272 seconds]
Xeago_ has quit [Remote host closed the connection]
kamilc__ has joined #ruby
pietr0 has joined #ruby
adriancb has quit [Remote host closed the connection]
ixti has joined #ruby
francisfish has quit [Remote host closed the connection]
Xeago has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Ping timeout: 272 seconds]
doev has quit [Remote host closed the connection]
<blahwoop> stupid question but is a lookup with a Set slower than a hash
divi has joined #ruby
krisquig_ has quit [Ping timeout: 256 seconds]
<apeiros> only a constant overhead
<apeiros> set uses a hash internally
_ixti_ has quit [Ping timeout: 255 seconds]
<eam> when in doubt, benchmark it!
mikecmpbll has quit [Ping timeout: 255 seconds]
rodfersou has quit [Read error: Connection reset by peer]
chris__ has joined #ruby
rodfersou has joined #ruby
donavan01 has joined #ruby
<blahwoop> ok
<blahwoop> set's are a hybird
sinkensabe has joined #ruby
divi has quit [Ping timeout: 240 seconds]
mikeg has joined #ruby
yfeldblum has joined #ruby
ghr has quit [Read error: No route to host]
qba73 has quit []
ghr has joined #ruby
rshetty has joined #ruby
sea_local has quit [Remote host closed the connection]
dangerousdave has joined #ruby
moritzs has joined #ruby
Photism has quit [Quit: Leaving]
<blahwoop> hey eam: how do i go about benchmarking it? do i need a gem?
paulfm has quit []
<centrx> blahwoop, "Benchmark" is in stdlib
Xeago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 255 seconds]
<blahwoop> got it thanks
<centrx> blahwoop, Benchmark.bmbm { |x| x.report { some_code } } for accuracy
Hanmac has joined #ruby
boombadaroomba has joined #ruby
relix has joined #ruby
maximski has quit []
chu has joined #ruby
hamakn has quit [Remote host closed the connection]
chu has quit [Changing host]
chu has joined #ruby
hamakn has joined #ruby
JCii8 has joined #ruby
<eam> in high level dynamic languages like ruby, often the overhead of the interpreter mechanics can overshadow the underlying theoretical efficiency of an operation
chris__ has quit [Ping timeout: 265 seconds]
<eam> write it like you mostly don't care, then when you do care, test test test
<apeiros> yupp. don't mentarbate.
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has quit [Client Quit]
despai has joined #ruby
econerd4ever has joined #ruby
JCii8__ has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
nastri has quit [Read error: Connection reset by peer]
ctp has joined #ruby
JCii8_ has joined #ruby
speaking1ode is now known as speakingcode
theotherstupidgu has quit [Quit: Lost terminal]
kiyote23 has joined #ruby
fgo_ has joined #ruby
qhartman has joined #ruby
iamjarvo has joined #ruby
fandi has quit [Ping timeout: 245 seconds]
foocraft has quit [Ping timeout: 258 seconds]
sea_local has joined #ruby
msgodf has quit [Ping timeout: 258 seconds]
JCii8 has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
paulfm has joined #ruby
xcesariox has joined #ruby
kiyote23 has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
chrishough has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boombadaroomba has quit [Remote host closed the connection]
fgo_ has quit [Ping timeout: 256 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
boombadaroomba has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
acmehandle has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
klmlfl has quit []
krz has quit [Quit: WeeChat 1.0.1]
rkalfane has joined #ruby
fandi has joined #ruby
fabrice31 has joined #ruby
adriancb has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
dkphenom has joined #ruby
kyb3r_ has joined #ruby
govg has joined #ruby
solars has joined #ruby
govg is now known as Guest17962
rkalfane has quit [Ping timeout: 255 seconds]
Guest17962 has quit [Client Quit]
tobleronegordon has quit [Quit: omg gotta get going and do something today lol]
<solars> guys I need your help: can anyone explain to me why the result in line 18 has an array with the two hashes although I assign them to different keys in the res hash? https://gist.github.com/solars/0730a6493bbd4568bb1b
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
cibs has quit [Remote host closed the connection]
ctp has joined #ruby
subraminion has joined #ruby
cibs has joined #ruby
ctp has quit [Client Quit]
St1gma has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 256 seconds]
<eam> solars: you're asking why this expression is an array with two hashes? [{"DE"=>{:value=>"B10", :parent_value=>nil, :edit_rules=>false}}, {"IT"=>"B17", "DE"=>"B17"}]
<solars> yes
St1gma has joined #ruby
<eam> it's because you create an array with the outer [], then inside you have two hashes
<eam> 1) [{"DE"=>{:value=>"B10", :parent_value=>nil}
<eam> 2) {"IT"=>"B17", "DE"=>"B17"}
m8 has joined #ruby
<eam> sorry, 1 is: {"DE"=>{:value=>"B10", :parent_value=>nil, :edit_rules=>false}
ghr has joined #ruby
<solars> but how?
<eam> what do you mean how?
<eam> that's what that expression is
<solars> I'm assigning 1) to cd['bidding_settings'] and 2. to cd['bidding_settings_defaults']
<eam> solars: you're asking about line 18? or other lines?
<solars> well 18 is the result
<eam> line 18 doesn't have anything to do with the rest of your program
diegoviola has joined #ruby
<eam> solars: oh
<solars> it is the result
divi_ has joined #ruby
<solars> line 18 should only print {"DE"=>{:value=>"B10", :parent_value=>nil} or not
<eam> solars: where do you print out the "outside" value
<solars> line 6
mooru has quit [Ping timeout: 240 seconds]
tvon has joined #ruby
djbkd has joined #ruby
krz has joined #ruby
<solars> damn
dseitz has joined #ruby
<solars> found it
dvg-laptop has joined #ruby
<solars> there is a , at the end of the first line
<solars> d'oh
<solars> man ..
<solars> I almost went crazy
<athan> How does ruby float exceptions? I can't seem to rescue one from my class.
ghr has quit [Ping timeout: 256 seconds]
<dvg-laptop> Anyone know much about ChildProcess? I’m attempting to put together a test project that will spawn a rails backend and ember frontend. The ember part starts okay, but the rails backend doesn’t try to start at all
dumdedum has quit [Ping timeout: 255 seconds]
yekta has quit [Quit: yekta]
<solars> eam, thanks for your help though :)
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
elico has joined #ruby
GreatSUN has quit [Ping timeout: 246 seconds]
sargas has joined #ruby
renderful has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 264 seconds]
Hijiri has joined #ruby
tacit7 has quit [Quit: Leaving.]
<dvg-laptop> This is where I’m trying to spawn the processes: https://github.com/DVG/full-stack-cukes/blob/master/features/support/env.rb#L27
<elico> jhass: it works now!! the comfy keyboard is working on Linux and now needs to do couple tricks for the kids :D
foocraft has joined #ruby
tlarevo has quit []
rshetty has quit []
dts has joined #ruby
rshetty has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
tacit7 has joined #ruby
mazarian has joined #ruby
renderful has joined #ruby
athan is now known as kanye-extension
rtl has joined #ruby
ptrrr has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RitterJack has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
wallerdev has quit [Quit: wallerdev]
renderful has quit [Remote host closed the connection]
foocraft has quit [Changing host]
foocraft has joined #ruby
dangerousdave has joined #ruby
<jhass> eguneys: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<blahwoop> eam: is there any reason why benchmark returns the numbers and then gives me a no method error?
maximski has joined #ruby
jaequery has joined #ruby
perturbation has joined #ruby
postmodern has joined #ruby
kiyote23 has joined #ruby
xenomorph is now known as {xenomorph}
<eguneys> jhass: I said it's not RAILS
kaspertidemann has joined #ruby
sigurding has joined #ruby
wallerdev has joined #ruby
rshetty has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<jhass> eguneys: still those guys have on average more experience with AR than we do
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<eguneys> ok this room sucks anyway bb
SCHAAP137 has quit [Quit: Leaving]
<rpag> what a way to ask for help
yfeldblum has joined #ruby
mloveless has joined #ruby
Hobogrammer has joined #ruby
maximski has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
{xenomorph} is now known as xenomorph
eguneys has left #ruby ["ERC (IRC client for Emacs 25.0.50.1)"]
SCHAAP137 has joined #ruby
maximski has joined #ruby
anaeem1_ has joined #ruby
klmlfl has joined #ruby
<blahwoop> lol
sinequanon has joined #ruby
Akagi201 has quit [Ping timeout: 258 seconds]
kiyote23 has quit [Ping timeout: 255 seconds]
<jhass> I wonder if I should troll him by answering his question in #rails
<jhass> :P
giuseppesolinas has joined #ruby
jonr22 has joined #ruby
jobewan has quit [Quit: Leaving]
bMalum_ has joined #ruby
djbkd has joined #ruby
jimms has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 265 seconds]
bMalum_ is now known as bMalum
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
maximski has quit [Ping timeout: 245 seconds]
pa3ce has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
djbkd has joined #ruby
kaspertidemann has quit []
Photism has joined #ruby
sinequanon has quit [Ping timeout: 258 seconds]
lolmaus has quit [Quit: Konversation terminated!]
krisquigley has joined #ruby
drewvanstone has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 255 seconds]
foocraft1 has joined #ruby
timonv_ has joined #ruby
foocraft has quit [Quit: leaving]
eguneys has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mikeg has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
hhutch has joined #ruby
<blahwoop> with my benchmarking the rehearsal works but the actual one fails
Guest44586 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has joined #ruby
AlSquirrel has joined #ruby
nkumari has joined #ruby
giuseppesolinas has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
krisquigley has quit [Ping timeout: 272 seconds]
foocraft1 is now known as foocraft
AlSquire has quit [Ping timeout: 244 seconds]
drewvanstone has joined #ruby
nkumari has quit [Remote host closed the connection]
DLSteve has joined #ruby
giuseppesolinas has quit [Client Quit]
dts is now known as dTS
<jhass> no, this room sucks
<wallerdev> :(
<eguneys> +1 jhass
kl has quit [Ping timeout: 245 seconds]
govg_ has joined #ruby
<wallerdev> eguneys: maybe try doing it manually and see if that works
patteh has quit [Quit: Lost terminal]
<wallerdev> like a = Article.new; a.name = params[:name]; a.save!
<wallerdev> etc
giuseppesolinas has joined #ruby
fgo_ has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<eguneys> wallerdev: i want to do it properly not a hack, like using a legitimate solution with a gem or something
quimrstorres has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<rpag> eguneys, how much will you pay me for an answer?
<eguneys> rpag: what is your current job?
<rpag> i'm an astronaut
blackmesa has joined #ruby
<eguneys> I don't pay astronauts
kyb3r_ has quit [Read error: Connection reset by peer]
sigurding has quit [Ping timeout: 264 seconds]
<rpag> why not?
hmsimha has quit [Ping timeout: 255 seconds]
<eguneys> I need a veteran programmer
<rpag> dude, i fly rocket ships
<wallerdev> eguneys: one way to figure out issues is to break them apart into smaller pieces so you can see what part is the actual problem
drewvanstone has quit [Read error: Connection reset by peer]
<wallerdev> im just suggesting trying that to see if it works, then working from there
<wallerdev> not suggesting that thats the way you need to do everything from now on
aaronrl has quit [Quit: Leaving]
<eguneys> wallerdev: I know the issue, did you read the github discussion, I don't know the solution, they closed the issue, but I don't understand how they fixed it.
<wallerdev> nope i didnt read the github discussion
ghostlines has joined #ruby
fgo_ has quit [Ping timeout: 272 seconds]
mame1 has joined #ruby
<wasamasa> what the hell is grape even
tlarevo has joined #ruby
<wasamasa> ah, another web framework
<eguneys> grape > rails
mame0 has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
existensil has joined #ruby
<wasamasa> well, for small tasks anything is beating rails
<wasamasa> so that's not really an achievement :P
<eguneys> I don't understand why everybody crazy about rails in ruby world
moritzs has quit [Ping timeout: 272 seconds]
nkumari has joined #ruby
diegovio1 has joined #ruby
marr has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
drewvanstone has joined #ruby
naturtrunken_m has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<havenwood> eguneys: rails questions are better in #rubyonrails
<rpag> havenwood, we tried that
<rpag> didn't work
jhc76 has quit [Remote host closed the connection]
tesaf has joined #ruby
Akuma has joined #ruby
Tricon has joined #ruby
<shevy> ok let me try
<havenwood> rpag: aha
psy has quit [Read error: No route to host]
<shevy> RAILS QUESTIONS GO TO #RUBYONRAILS!!!!!!!!!
<eguneys> I thought this was rubyonrails sorry
<shevy> well
mazarian has quit [Remote host closed the connection]
<shevy> if it is a ruby question then #ruby is good
sigurding has quit [Ping timeout: 258 seconds]
<shevy> there used to be lots of people coming to ruby only because of rails
sargas has joined #ruby
naturtrunken_m has quit [Remote host closed the connection]
<shevy> there are however also many people who use ruby but not rails
mazarian has joined #ruby
<toretore> i use rails but not ruby
<shevy> yeah
sinequanon has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> see how fragmented the community is now eguneys
yetanotherdave has joined #ruby
<eam> what is rails?
<shevy> "Rails 6.0 - The Programming Language"
<diegovio1> I can't find any ruby/rails work lately, even after working like 5 years with it... it's so frustrating
kireevco has joined #ruby
Megtastique has quit []
<shevy> eam it is the missing webframework for perl
<diegovio1> makes me angry
diegovio1 is now known as diegoviola
giuseppesolinas has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Ping timeout: 240 seconds]
<eam> shevy: oh, is rails the thing that copied perl's catalyst?
<shevy> diegoviola infiltrate php
<shevy> eam noone here has heard about catalyst
<diegoviola> shevy: the recruiters are asking me to know JS
<diegoviola> shevy: angular/ember
<shevy> diegoviola yeah... javascript won it all without even trying
bafbomb has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
Tricon has quit [Remote host closed the connection]
<shevy> god, I have to suggest deletion of this fossil article
atomical has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> shevy: rails is a copy of catalyst/maypole
patrick99e99 has quit [Ping timeout: 255 seconds]
<diegoviola> shevy: so JS is like the most demanded stuff now?
<diegoviola> hip
startupality has joined #ruby
<wallerdev> ruby is a fork of rails by DHH
robbyoconnor has quit [Ping timeout: 264 seconds]
<oz> (well Catalyst is a copy of maypole :p)
startupality has quit [Client Quit]
<diegoviola> I don't want to code PHP
Takle has quit [Ping timeout: 272 seconds]
<shevy> "Catalyst started as a fork of the Maypole framework. Its first development release took place on 28 January 2005. The first official version hit CPAN on 16 February 2005."
psy has joined #ruby
livathinos has joined #ruby
<shevy> "David Heinemeier Hansson extracted Ruby on Rails from his work on Basecamp, a project management tool by 37signals (now a web application company). Hansson first released Rails as open source in July 2004, but did not share commit rights to the project until February 2005."
* shevy ponders the situation.
<rpag> diegoviola, javascript is very popular nowadays
<eam> shevy: maypole existed for a long time before catalyst forked from it
<eam> there's no question :)
<shevy> diegoviola yeah, javascript destroyed all
kirun has joined #ruby
<wallerdev> yeah i do full time JS
<wallerdev> i love it
<diegoviola> so...
<diegoviola> the recruiter was telling me to learn ember/angular in other words
<wallerdev> yes learn angular
<wallerdev> thats what i use
<wallerdev> then you can work with me
<oz> eam: don't forget CGI.pm <3
despai has joined #ruby
<diegoviola> this is making me sad
sambao21 has joined #ruby
<oz> (which only inspired sadness)
<diegoviola> but ok
<eam> oz: oh yeah if we want to go back to the 90s! I'm just talking MVC frameworks
<diegoviola> I really want to write Ruby code
<wasamasa> "YouPorn has been powered by Catalyst[12] until 2012[13]"
<diegoviola> not JS
<wasamasa> wat
<wasamasa> I am shocked to say the least
<diegoviola> wasamasa: lol sup
<eam> wasamasa: why?
<diegoviola> nice to see you here
mary5030 has quit [Remote host closed the connection]
ghr has joined #ruby
<wasamasa> eam: I dunno, thought they'd all use php
<rpag> wasamasa, what did they rewrite it in?
<shevy> crack
mary5030 has joined #ruby
<wasamasa> "Common wisdom says never rewrite, but in 2011 YouPorn rewrote their entire site to use PHP + Redis instead of a complex Perl + MySQL based architecture."
<wasamasa> so, they went with php after all
<shevy> ack
<wasamasa> damnit
<shevy> PHP AND PERL
<shevy> WHAT MADNESS IS THIS
Takle has joined #ruby
<shevy> oh
livathinos has quit [Client Quit]
<wasamasa> anyhow, who cares
<shevy> they abandoned perl
<wasamasa> as long as they deliver
<shevy> for php
blahwoop has quit [Remote host closed the connection]
<shevy> see, ruby must kill php
testcore has quit [Remote host closed the connection]
<shevy> then they would have switched from perl to ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
testcore has joined #ruby
<diegoviola> so it sounds like everyone went the JS route
chrishough has joined #ruby
<shevy> hah!
<diegoviola> and ruby is only left with a few folks
<shevy> not me!
<shevy> long live ruby
<shevy> you traitors
melik has joined #ruby
<rpag> the "rails way" of building web applications is slowly becoming deprecated imo, and the rise of javascript talking to micro-services is rising
<rpag> rails is terrible at being a micro-service
_honning_ has joined #ruby
hiyosi has joined #ruby
<diegoviola> rpag: but we have microframeworks in ruby also
<centrx> node.js was deprecated before it began
<shevy> hehehe
<eam> javascript is also terrible, I see more java than javascript
<shevy> centrx is like the channel comedian
<eam> for SOA
<shevy> eam how do you manage your website?
ghr has quit [Ping timeout: 265 seconds]
<eam> my website is a text file
<eam> Content-type: text/plain
<centrx> I am just here to learn PHP for Mobile
mary5030 has quit [Ping timeout: 255 seconds]
<eam> I only use ruby for non-web stuff
tlarevo_ has joined #ruby
<oz> rpag: regarding micro-services, there's a lot to think about :) http://devblog.avdi.org/2014/11/19/frog-and-toad-willpower-and-microservice-architecture/
<Prawnzy> ruby is one of the first things I learnt, I just use it for arbitrary scripting and playing around because it's fun
St_Marx_ has quit [Ping timeout: 250 seconds]
<shevy> \o/
tlarevo has quit [Ping timeout: 272 seconds]
<shevy> long live Prawnzy
<shevy> whose nick resembles a pdf generator
<diegoviola> people are treating Ruby like another Smalltalk these days, and JS as the cool new shit
* diegoviola sighs
<Prawnzy> don't get too worked up over the JS folks
<Prawnzy> it's just easy to implement, and fills in that 'quick to deploy' mbaas hole
<Prawnzy> once the communities mature further and they're more concerned with things like efficiency, security, and building systems that automatically build the systems they're building etc.
airdeluxe has joined #ruby
<Prawnzy> they'll migrate to the next big thing
<Prawnzy> use whatever works.
<Prawnzy> the most valuable resource we have atm is time, and whatever uses the least amount of time to get the job done, is the best tool,
<Prawnzy> caveat : gets the job done effectively and securely
hiyosi has quit [Ping timeout: 245 seconds]
<Alina-malina> is ruby like python and java, works inside virtual machine? right?
St_Marx has joined #ruby
<shevy> Alina-malina all will work well on the JVM
<shevy> #jruby
<oz> *cough* Opal *cough*
mary5030 has joined #ruby
<Alina-malina> no, i mean if you do rubytoexe, it will copy the ruby virtual machine inside that "compiled" script right?
mary5030 has quit [Remote host closed the connection]
<waxjar> most tools i read about bundle ruby with it yeah
baweaver has quit [Remote host closed the connection]
<shevy> must be a huge package
mary5030 has joined #ruby
<Alina-malina> heh yes
solars has quit [Ping timeout: 265 seconds]
rikai has quit [Quit: No Ping reply in 180 seconds.]
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
<waxjar> twss >.>
Aswebb_ has joined #ruby
<Aswebb_> Hi everyone
<Aswebb_> I have a question: On Rails, If I have a Pet object that has a user foreign_key (pet has an owner for example, belongs_to), how can I populate automatically the owner?
<jhass> Aswebb_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<Aswebb_> Pet.all.owner doesnt know
<Aswebb_> work*
<wallerdev> :(
<wallerdev> do you understand the concept of objects vs lists of objects
danijoo has quit [Read error: Connection reset by peer]
jackjackdrpr has joined #ruby
danijoo has joined #ruby
claymore has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
vyorkin has joined #ruby
tlarevo has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
govg_ has quit [Quit: leaving]
enebo has quit [Quit: enebo]
Alina-malina has quit [Quit: http://www.twitter.com/aleenamaleena]
patrick99e99 has joined #ruby
sinequanon has quit [Remote host closed the connection]
tauebel has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
yeticry has joined #ruby
<shevy> YES
<wasamasa> YES
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
rikai has joined #ruby
JBreit has joined #ruby
<Prawnzy> NO
Xiti has joined #ruby
eindoofus has joined #ruby
sk87 has joined #ruby
Mattias has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
<diegoviola> I really don't understand, I've been working with rails since 2008 or so, and recruiters keep telling me I don't have experience
<eindoofus> hi, does anyone know why this method returns an array rather than nil? https://gist.github.com/anonymous/3b1d6b5c5dfa71e77971
Mattias has joined #ruby
soffio has joined #ruby
JBreit has left #ruby [#ruby]
Alina-malina has joined #ruby
<soffio> hi, i get that: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0
<eindoofus> diegoviola, that's pretty vague. "no experience". do they indicate what type of experience?
baroquebobcat has quit [Quit: baroquebobcat]
sk87 has quit [Client Quit]
<soffio> but i've got ruby 2 here, just i have both
<diegoviola> eindoofus: no, they give me vague responses such as "many factors" and stuff like that
<diegoviola> eindoofus: I asked
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<diegoviola> eindoofus: they just said I don't have the experience they are looking for
<diegoviola> sigh
<soffio> /usr/bin/ruby it's ruby 2
<eindoofus> diegoviola, that's rude. maybe there is something else deterring them
<diegoviola> eindoofus: yes, and it's affecting my self-esteem
<diegoviola> it's really annoying
<Prawnzy> don't worry about it man
despai has quit [Quit: This computer has gone to sleep]
<Prawnzy> you're likely dodging a bullet not getting in with those folks anyway
<Prawnzy> if that's how they're handling you
<eindoofus> diegovioa, i could imagine. you should reach out to one of the rails guys in the field. maybe they could provide some input. send them your resume.
<tvon> diegoviola: You could ask em to be specific for the sake of your own self improvement.
* tvon shrugs
<tobiasvl> eindoofus: p returns the value of the object it prints (and it also does inspect on it instead of to_s), unlike puts
<eindoofus> thanks tobiasvl
tacit7 has quit [Quit: Leaving.]
Takle has quit [Remote host closed the connection]
<rpag> diegoviola, recruiters don't know shit :)
<Prawnzy> that read on microservices was cool, I agree with what they said
<tvon> rpag++
despai has joined #ruby
<diegoviola> tvon: I already asked, they give me vague wordings such as "there are many factors other than skills and time of experience"
kiyote23 has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<diegoviola> rpag: yeah I know
<tvon> I get a lot of "we think you are a perfect match for this position" emails that deal with Java and .Net which I have a combined month of experience in.
Shazaum has quit [Quit: This computer has gone to sleep]
Megtastique has joined #ruby
<diegoviola> ThoughtWorks need better recruiters
<eindoofus> diegoviola, have there been large employment gaps or you being fired? do they do some horrible credit check?
<diegoviola> or no recruiters
jack_rabbit has quit [Ping timeout: 256 seconds]
<tvon> When seeking work I avoid recruiters and use sites like the 37 signals job board, authenticjobs.com and such.
soffio has left #ruby [#ruby]
tlarevo has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
<diegoviola> eindoofus: not at all, I'm not sure what I'm doing wrong quite honestly
<diegoviola> it's frustrating
<eindoofus> diegoviola, maybe nothing. sound like you might be overqualified for the position. they might want to pay you a low salary so that they can pocket the rest but they're intimidated by you
<rpag> its to the benefit of a recruiter if you're paid less right?
<eindoofus> diegoviola, or maybe your not overqualified for the job, but just the recruiters demands
fmcgeough has joined #ruby
kaspertidemann has joined #ruby
aspires_ has joined #ruby
centrx has quit [Quit: Did gyre and gymble in ye wabe]
<wasamasa> maybe they just saw him dissing neovim
Takle has joined #ruby
tauebel has quit [Quit: Textual IRC Client: www.textualapp.com]
<wasamasa> :P
tauebel has joined #ruby
<diegoviola> lol
iamjarvo has joined #ruby
<diegoviola> everyone has their moment sometimes
<diegoviola> the other recruiter at least sounded more honest, she said "Why don't you learn Angular and Ember, build something and apply back within a week?"
<diegoviola> yeah right, I'll do that asap
ghostmoth has joined #ruby
aspires has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
<rpag> not sure if learning angular is a good idea with angular v2 coming
jamescarr has joined #ruby
<jamescarr> how can I get a default value from a hash?
<wasamasa> angular *and* ember?
<jamescarr> e.g. in python there is thise
<wallerdev> >> h = Hash.new('lol'); h[5]
<eval-in__> wallerdev => "lol" (https://eval.in/226360)
<diegoviola> wasamasa: uhm, I think she just said "Ember"
<jamescarr> os.environ.get('something', "DEFAULT");
<jamescarr> wallerdev: thanks
<wallerdev> angular 2 is way far out
<rpag> >> {}.default
<eval-in__> rpag => nil (https://eval.in/226361)
<wallerdev> i wouldnt worry about it yet
<rpag> jamescarr, ^
lolmaus has joined #ruby
<jamescarr> >> h = Hash.new('master'); h.get('branch')
<eval-in__> jamescarr => undefined method `get' for {}:Hash (NoMethodError) ... (https://eval.in/226362)
<jamescarr> >> h = Hash.new('master'); h['branch']
<eval-in__> jamescarr => "master" (https://eval.in/226363)
iamjarvo has quit [Read error: Connection reset by peer]
<jamescarr> I don't thing that is quite it. rpag I think you have what I want
<jamescarr> >> ENV
<eval-in__> jamescarr => {"LIBC_FATAL_STDERR_"=>"1", "LANG"=>"en_US.UTF-8", "HOME"=>"/tmp/execpad-48be5e64b103"} (https://eval.in/226364)
<jamescarr> >> ENV.default = 'master'; env['branch']
<eval-in__> jamescarr => undefined method `default=' for #<Object:0x4081e350> (NoMethodError) ... (https://eval.in/226365)
<jamescarr> ....
iamjarvo has joined #ruby
<jamescarr> >> ENV.default = 'master'; ENV['branch']
<eval-in__> jamescarr => undefined method `default=' for #<Object:0x407ea348> (NoMethodError) ... (https://eval.in/226366)
<rpag> ENV isn't really a Hash
<rpag> >> ENV.class
<eval-in__> rpag => Object (https://eval.in/226367)
<jamescarr> >> ENV['branch'] || 'master'
<eval-in__> jamescarr => "master" (https://eval.in/226368)
<jamescarr> there
<rpag> >> {}.default = "foo"
<eval-in__> rpag => "foo" (https://eval.in/226369)
<jamescarr> puts "#{ENV['LANG'] || 'no'}"
<jamescarr> >> puts "#{ENV['LANG'] || 'no'}"
<eval-in__> jamescarr => en_US.UTF-8 ... (https://eval.in/226370)
<jamescarr> >> puts "#{ENV['LANGER'] || 'no'}"
<eval-in__> jamescarr => no ... (https://eval.in/226371)
hiyosi has joined #ruby
<jamescarr> fair enough
iamjarvo has quit [Client Quit]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
sinkensabe has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
<eindoofus> so confused with these js frameworks. about to start learning some soon and heard backbone, angular, knockout, ember all mentioned a bit. are there some that are more popular at the moment or is it still chaos?
tkuchiki has joined #ruby
<rpag> ember seems popular
fgo_ has joined #ruby
fabrice31 has joined #ruby
<eindoofus> rpag, would you say knockout and backbone are still relevant?
n008f4g_ has joined #ruby
tacit7 has joined #ruby
<rpag> haven't heard of knockout, backbone is still relevant though
Hijiri has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 258 seconds]
tauebel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charlenopires has joined #ruby
kopasetik has joined #ruby
<kopasetik> are there material benefits to coding backend in ruby, but using an apache server?
fgo_ has quit [Ping timeout: 245 seconds]
rodfersou has quit [Quit: leaving]
<jhass> compared to?
fabrice31 has quit [Ping timeout: 244 seconds]
tauebel has joined #ruby
<tvon> A raw http server always sits in front of rails.
wallerdev has quit [Quit: wallerdev]
<wasamasa> using a ruby http server I guess
apeiros_ has joined #ruby
baweaver has quit [Remote host closed the connection]
godd2 has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
adriancb has quit [Ping timeout: 264 seconds]
j_mcnally has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
econerd4ever has quit [Remote host closed the connection]
andikr has joined #ruby
Hijiri has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
xenomorph is now known as {xenomorph}
adriancb has joined #ruby
Takle has joined #ruby
econerd4ever has joined #ruby
kopasetik has left #ruby [#ruby]
{xenomorph} is now known as xenomorph
sambao21 has quit [Quit: Computer has gone to sleep.]
x1337807x has joined #ruby
nkumari has quit [Remote host closed the connection]
charlenopires has quit [Quit: Be back later ...]
charlenopires has joined #ruby
jackjackdrpr has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
adriancb has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
konsolebox has joined #ruby
econerd4ever has joined #ruby
eat_multi has quit [Quit: leaving]
michael_mbp has quit [Excess Flood]
iaj_ has quit [Read error: Connection reset by peer]
iaj has joined #ruby
charlenopires has quit [Ping timeout: 256 seconds]
giuseppesolinas has joined #ruby
tvon has quit [Remote host closed the connection]
Megtastique has quit []
aspires_ has quit []
michael_mbp has joined #ruby
godd2 has quit [Remote host closed the connection]
ghr has joined #ruby
blaines has joined #ruby
noop has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
kl has joined #ruby
drewvanstone has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
Megtastique has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby
qhartman has quit [Quit: Ex-Chat]
dkphenom has joined #ruby
ldnunes has quit [Quit: Leaving]
hmsimha has joined #ruby
aspires has joined #ruby
mazarian_ has joined #ruby
Megtastique has quit [Client Quit]
butblack has joined #ruby
jackjackdrpr has joined #ruby
blahwoop has joined #ruby
vanderh0ff has joined #ruby
divi_ has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
RowdyChildren has left #ruby ["Leaving"]
mazarian has quit [Ping timeout: 258 seconds]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
drewvanstone has joined #ruby
mazarian has joined #ruby
<blahwoop> has anybody come across using .dup to make recursion work?
<blahwoop> what other reason would you use dup
<blahwoop> or clone
NoNMaDDeN has quit [Remote host closed the connection]
mazarian_ has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ohaibbq has joined #ruby
jonr22 has joined #ruby
aspires has quit []
Hijiri has quit [Remote host closed the connection]
greenbagels has joined #ruby
<eam> blahwoop: the use cases for copying a piece of data are pretty wide and generic
aspires has joined #ruby
marr has joined #ruby
sinequanon has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
kamilc__ has quit [Ping timeout: 265 seconds]
Avahey has joined #ruby
krisquigley has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
<shevy> hmm
<shevy> "foo | bar | bla"
patrick99e99 has joined #ruby
riceandbeans has quit [Quit: rebooting]
<shevy> in a shell, on a *nix system, this is a pipe
<shevy> but how would you call the individual parts in between the | | ?
<shevy> reason I am asking is - I am contemplating trying to have this for audio and video data as well, as filters; programs like avisynth+virtualdub made this
<jhass> command
diego_ has joined #ruby
arup_r has quit [Quit: Leaving.]
diego_ has quit [Quit: Saindo]
sinequanon has quit [Ping timeout: 258 seconds]
<shevy> hmm
<shevy> but it could also have parameters
riceandbeans has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
mazarian_ has joined #ruby
<toretore> filter is a good description
diegoviola has joined #ruby
foocraft has quit [Quit: foocraft]
<toretore> also i think sinks and (something) is used in video & audio
<jhass> yes, commands can have parameters
Photism has quit [Quit: Leaving]
adriancb has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
pglombardo has joined #ruby
<toretore> command to me implies side effect though
andikr has quit [Remote host closed the connection]
Takle_ has joined #ruby
<shevy> yeah you are right... gstreamer calls it sink and source ...
<toretore> which might be exactly what is happening, in which case it's a good term
Takle has quit [Ping timeout: 250 seconds]
<toretore> yeah gstreamer is where i remember it from
Mia has joined #ruby
Mia has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
aspires has quit []
quimrstorres has joined #ruby
mazarian has quit [Ping timeout: 258 seconds]
<toretore> i don't know if there's a more common term that includes filters and everything else
<blahwoop> https://gist.github.com/iRichLau/740bcacffee8228cf2d2 why does make_word require a word.dup for it work correctly? tryin to understand it
Xeago has joined #ruby
aspires has joined #ruby
<waxjar> idk, but directly altering method parameters is almost never a good idea.
aspires__ has joined #ruby
<toretore> that method is going to mutate word anyway
<shevy> toretore yeah that was what I was trying to find out too
<toretore> so i don't see the point
quimrstorres has quit [Remote host closed the connection]
mazarian_ has quit []
il-audioburn has joined #ruby
donavan01 has quit [Quit: Leaving]
il-audioburn has left #ruby ["Leaving"]
dc_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<toretore> shevy: it might make sense for your program to accept transducers to do whatever work is to be done
<toretore> then you have a term already
francisfish has quit [Remote host closed the connection]
<toretore> though there's no good definition of transducer in ruby yet
Aswebb has joined #ruby
aspires has quit [Ping timeout: 255 seconds]
<shevy> transducers?
<shevy> I know transformers, but transducers.... hmmm
<waxjar> shevy: would "effects" make sense?
musl has quit [Quit: WeeChat 1.0.1]
<shevy> waxjar I guess so, but each part in between a pipe can also do no modification or? like if you tell "make this video only black-white" but if the video is already black white, then no change should be made. So I guess no net-effect would happen?
dcunit3d has quit [Ping timeout: 250 seconds]
elico has quit [Quit: Leaving.]
benzrf|offline is now known as benzrf
Frogging101-chan has joined #ruby
Frogging101-chan has left #ruby ["I'm up, over, and gone."]
failshell has joined #ruby
Squarepy has quit [Quit: Leaving]
boombadaroomba has quit [Remote host closed the connection]
<blahwoop> without using dup it wont work
lkba has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
decoponyo has quit [Quit: Leaving...]
s__dana has quit [Quit: s__dana]
Macaveli has joined #ruby
SCHAAP137 has joined #ruby
jheg has joined #ruby
fgo_ has joined #ruby
divi_ has joined #ruby
relix has joined #ruby
rainfyre has joined #ruby
<airdeluxe> radio says PO are grouping inside building
anaeem1_ has quit [Remote host closed the connection]
<airdeluxe> lol my bad...sorry
airdeluxe has left #ruby ["Leaving"]
djbkd has quit [Remote host closed the connection]
n008f4g_ has quit [Read error: Connection reset by peer]
pen has quit [Remote host closed the connection]
uber_hulk has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
pen has joined #ruby
fgo_ has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
divi_ has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
eguneys has joined #ruby
divi_ has joined #ruby
kamilc__ has joined #ruby
<_aeris_> hello world !
niftylettuce has joined #ruby
<blahwoop> ferugson
geekbri has quit []
SOLDIERz has joined #ruby
pen has quit [Ping timeout: 258 seconds]
Tricon has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<_aeris_> i have a problem with openssl lib for ruby
nkumari has joined #ruby
<eguneys> I have to stop and run `rackup` each time I make changes how do I automate this with rack, like in rails livereload
<_aeris_> i try to access the « compression » parameter of a session, but i don't find a way to do it :(
<_aeris_> session.to_text display the parameter, but unable to access it directly from the session :(
<shevy> how would you guys organize the docs of a ruby gem
<shevy> same level as lib/ and test/ ? so a doc/ directory there?
anaeem1_ has joined #ruby
mikeg has quit [Remote host closed the connection]
musl has joined #ruby
vyorkin has quit [Ping timeout: 245 seconds]
boombadaroomba has joined #ruby
tvon has joined #ruby
sinequanon has joined #ruby
pen has joined #ruby
Takle has joined #ruby
<rpag> sure why not
Takle_ has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
<waxjar> as long as you don't forget to point rdoc/yard at the directory :p
charlenopires has joined #ruby
pengin has joined #ruby
jheg has quit [Quit: jheg]
Shazaum has joined #ruby
drewvanstone has quit [Read error: Connection reset by peer]
ghr has joined #ruby
jheg has joined #ruby
baweaver has joined #ruby
elico has joined #ruby
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
<shevy> ewww
<shevy> a rdoc/ directory?
SOLDIERz has quit [Quit: Be back later ...]
<shevy> then I would have doc/ and rdoc/ ?
silkfox has quit [Ping timeout: 244 seconds]
<waxjar> i mean point the rdoc/yard executables at your docs directory
charlenopires has quit [Quit: Lingo: www.lingoirc.com]
last_staff has quit [Quit: last_staff]
prasselpikachu has quit [Ping timeout: 264 seconds]
dc_ has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
Takle has quit [Read error: Connection reset by peer]
maximski has joined #ruby
Takle has joined #ruby
adriancb has quit [Remote host closed the connection]
drewvanstone has joined #ruby
prasselpikachu has joined #ruby
s00pcan has quit [Ping timeout: 240 seconds]
<shevy> oh that
emmesswhy has joined #ruby
adriancb has joined #ruby
rh1n0_away has quit [Max SendQ exceeded]
djbkd has joined #ruby
rh1n0 has joined #ruby
nkumari has quit [Remote host closed the connection]
rh1n0 has quit [Max SendQ exceeded]
rh1n0 has joined #ruby
Takle_ has joined #ruby
maximski has quit [Client Quit]
sambao21 has joined #ruby
dcunit3d has joined #ruby
timonv_ has quit [Remote host closed the connection]
nkumari has joined #ruby
emmesswhy has quit [Read error: Connection reset by peer]
kl has quit [Ping timeout: 250 seconds]
divi_ has quit [Ping timeout: 244 seconds]
kl has joined #ruby
siso has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
MatthewsFace has joined #ruby
s00pcan has joined #ruby
silkfox has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
whoisjake has quit []
emmesswhy has joined #ruby
mikeg has joined #ruby
ht__th has quit [Remote host closed the connection]
atmosx has joined #ruby
drewvanstone has quit [Ping timeout: 264 seconds]
Scripore has joined #ruby
tacit7 has left #ruby [#ruby]
tacit7 has joined #ruby
jheg has quit [Quit: jheg]
emmesswhy has quit [Ping timeout: 264 seconds]
Mia has quit [Read error: Connection reset by peer]
siso has quit [Ping timeout: 272 seconds]
jheg has joined #ruby
timonv_ has joined #ruby
Mia has joined #ruby
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
ohaibbq has quit [Remote host closed the connection]
emmesswhy has joined #ruby
Morkel has quit [Quit: Morkel]
pglombar_ has joined #ruby
ohaibbq has joined #ruby
SCHAAP137 has joined #ruby
drewvanstone has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
divi_ has joined #ruby
giuseppesolinas has joined #ruby
<failshell> anyone knows of a gem to parse Apache's vhosts?
pglombardo has quit [Ping timeout: 272 seconds]
giuseppesolinas has quit [Client Quit]
emmesswhy has quit [Ping timeout: 240 seconds]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
ohaibbq has quit [Ping timeout: 255 seconds]
<atmosx> failshell: do you really need a gem to do that?
<atmosx> are apache vhosts that ugly?
emmesswhy has joined #ruby
<failshell> i think ive reached the end of what serverspec can do for me to parse config files
drewvanstone has quit [Read error: Connection reset by peer]
qhartman has joined #ruby
fabrice31 has joined #ruby
<failshell> so im looking at something that understands the format a bit better
qhartman has quit [Read error: Connection reset by peer]
drewvanstone has joined #ruby
the4tress has joined #ruby
stormbytes has joined #ruby
<the4tress> im trying to mess with gitlab and part of the instructions say to do this: sudo -u gitlab -H bundle exec rake gitlab:app:status RAILS_ENV=production
<stormbytes> can i get a hand setting up a config.ru file for heroku?
kyoshero has quit [Quit: Leaving]
<the4tress> but when i do that, i get this: Could not locate Gemfile
<stormbytes> i've got 2 static web apps (angular) in 2 folders /public/guest and /public/presenter
<the4tress> am i missing something basic from ruby?
qhartman has joined #ruby
despai has joined #ruby
mikeg has quit [Ping timeout: 272 seconds]
pasokk has quit []
doritostains has joined #ruby
tvw has quit []
codecop has quit [Remote host closed the connection]
tvw has joined #ruby
mikeg has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
fabrice31 has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
nkumari has quit [Remote host closed the connection]
tvw has quit [Client Quit]
patteh has joined #ruby
tvw has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
pglombar_ has quit []
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j2p2 has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
yalue has quit [Ping timeout: 256 seconds]
mloveless has joined #ruby
paulfm has quit []
giuseppesolinas has joined #ruby
baweaver has quit [Remote host closed the connection]
hhutch has quit [Ping timeout: 272 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
stormbytes has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby
fgo_ has joined #ruby
moritzs has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<eguneys> When I run `rails server`, and change a file rails automatically reflects changes, how does it do that? PS: I run a custom rack server.
livingstn has joined #ruby
aclearman037 has quit [Quit: I'm out!]
<jhass> #rubyonrails
n1lo has quit [Quit: Leaving]
<atmosx> eguneys: you mean on development right?
baweaver has joined #ruby
<eguneys> ye development, guess found the answer
<eguneys> undefined method `title' for nil:NilClass
<eguneys> # ./spec/app/api/article_spec.rb:36:in `block (3 levels) in <top (required)>'
<eguneys> Finished in 0.22945 seconds (files took 0.63362 seconds to load)
<eguneys> 8 examples, 1 failure
MattB2 has joined #ruby
<eguneys> ops
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
rubie has joined #ruby
<atmosx> eguneys: yes, guard is one way.
tkuchiki has quit [Ping timeout: 255 seconds]
<atmosx> eguneys: there are others, bug guard + drb is the fastest IIRC.
JStoker has quit [Remote host closed the connection]
<rubie> hi all: just looking for someone to help me refactor this tic tac toe game into something better, https://gist.github.com/86e3f4e3cb72189c820b.git
<atmosx> there's also the rerun gem
fgo_ has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
davasaurous has joined #ruby
Xeago has quit [Remote host closed the connection]
<rubie> sorry here is a better link https://gist.github.com/gabrie30/86e3f4e3cb72189c820b
drjfreez1 has joined #ruby
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
it0a has quit [Ping timeout: 245 seconds]
ohaibbq has joined #ruby
dvg-laptop has quit [Quit: dvg-laptop]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
adam- is now known as adam12
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VanillaGoat has joined #ruby
DLSteve has quit [Quit: Leaving]
drjfreeze has quit [Ping timeout: 264 seconds]
sea_local has quit [Remote host closed the connection]
nkumari has joined #ruby
claymore has quit [Quit: Leaving]
despai has quit [Quit: This computer has gone to sleep]
drjfreeze has joined #ruby
nkumari has quit [Remote host closed the connection]
drjfreez1 has quit [Ping timeout: 265 seconds]
VanillaGoat has quit [Client Quit]
mloveless has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
josephndenton has quit [Ping timeout: 264 seconds]
VanillaGoat has joined #ruby
VanillaGoat has quit [Client Quit]
siso has joined #ruby
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
the4tress has left #ruby [#ruby]
Synthead has joined #ruby
dTS is now known as dts
failshell has quit [Remote host closed the connection]
quimrstorres has joined #ruby
nkumari has joined #ruby
pengin has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drewvanstone has quit [Read error: Connection reset by peer]
kiyote23 has quit [Ping timeout: 272 seconds]
aspires__ has quit []
ghr has joined #ruby
benweint has joined #ruby
tier_ has quit []
jonr22 has joined #ruby
kl has quit [Ping timeout: 258 seconds]
kl has joined #ruby
tesaf has quit [Quit: Lost terminal]
zacstewart has quit [Ping timeout: 256 seconds]
kiyote23 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
drewvanstone has joined #ruby
<Areessell> Well, that's just a procedual program. It should be split up into classes/modules based on functionality. For example, it would be smart to have a Board class.
krisquigley has joined #ruby
sea_local has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
<graft> hey, so i want to have something like R's X11 plot windows to draw into in ruby, any idea how i might go about this? specifically, how could you handle X11 resize events?
Axy has quit [Quit: Leaving]
silkfox has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
benzrf|offline is now known as benzrf
krisquigley has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
Kricir has quit [Remote host closed the connection]
emmesswhy has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
anafrogue has joined #ruby
razieliyo has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
mloveless has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<apeiros_> graft: not sure about x11. but in other term emus it's trap("SIGWINCH")
bMalum has quit [Quit: bMalum]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
mloveless has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
pengin has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
baweaver has joined #ruby
doodlehaus has quit [Remote host closed the connection]
dc_ has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
adriancb has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
dc_ has joined #ruby
dcunit3d has quit [Ping timeout: 256 seconds]
emmesswhy has quit [Quit: Leaving]
josephndenton has joined #ruby
dcunit3d has joined #ruby
djbkd has joined #ruby
mloveless has joined #ruby
_aeris_ has quit [Remote host closed the connection]
Ridley5 has quit []
aspires has joined #ruby
baweaver has quit [Ping timeout: 245 seconds]
_aeris_ has joined #ruby
v0n has quit [Quit: WeeChat 1.0.1]
marahin has quit [Quit: ZNC - http://znc.in]
anaeem1_ has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
kiyote23 has quit [Ping timeout: 245 seconds]
konsolebox has quit [Remote host closed the connection]
baweaver has joined #ruby
bmichelsen has joined #ruby
giuseppesolinas has joined #ruby
lidaaa has joined #ruby
freerobby has joined #ruby
livingstn has quit []
Lucretia has joined #ruby
<Lucretia> hi, i'm having trouble running "bundle exec jekyll server" gives me a json error, i've installed json locally with the gem and also globally using emerge
baweaver has quit [Remote host closed the connection]
giuseppesolinas has quit [Client Quit]
kiyote23 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Avahey has quit [Quit: Connection closed for inactivity]
<jhass> "a json error"
JStoker has joined #ruby
deric_skibotn has quit [Ping timeout: 255 seconds]
giuseppesolinas has joined #ruby
<Lucretia> basically the same as https://github.com/jekyll/jekyll/issues/1727
baweaver has joined #ruby
<jhass> which ruby version?
giuseppesolinas has quit [Client Quit]
giuseppesolinas has joined #ruby
v0n has joined #ruby
jj` has joined #ruby
atmosx has quit [Quit: Lost in trance]
moritzs has quit [Ping timeout: 255 seconds]
jj` is now known as zedtse
<jhass> do you have gem 'json' in your Gemfile
<Lucretia> no
<jhass> add it and run bundle install
<Lucretia> ah
<Lucretia> ta
Aswebb has quit [Remote host closed the connection]
<Areessell> =)
pandaant has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 265 seconds]
elaptics is now known as elaptics`away
wolf4ood has joined #ruby
Aswebb has joined #ruby
jimbach_ has joined #ruby
dkphenom has joined #ruby
reinaldob has quit [Remote host closed the connection]
zedtse has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
msmith_ has joined #ruby
startupality has joined #ruby
sailias has quit [Quit: Leaving.]
fgo_ has joined #ruby
nfk has quit [Quit: yawn]
galeido has joined #ruby
Areessell has quit [Ping timeout: 272 seconds]
benweint has quit [Quit: Computer has gone to sleep.]
jimbach has quit [Ping timeout: 258 seconds]
kanye-extension has quit [Ping timeout: 255 seconds]
<shevy> Lucretia is such a mighty nickname
<shevy> Roman Empire worthy
msmith has quit [Ping timeout: 255 seconds]
lkba has joined #ruby
drewvanstone has quit [Read error: Connection reset by peer]
fgo_ has quit [Ping timeout: 258 seconds]
jheg has quit [Quit: jheg]
konsolebox has joined #ruby
Areessell has joined #ruby
wolf4ood has quit [Quit: (null)]
mloveless has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
devdazed has quit [Quit: Computer has gone to sleep.]
triple_b has joined #ruby
karmatr0n has quit [Remote host closed the connection]
benweint has joined #ruby
rippa has quit [Read error: Connection reset by peer]
deric_skibotn has quit [Read error: Connection reset by peer]
rippa has joined #ruby
deric_skibotn has joined #ruby
mocchi has quit [Ping timeout: 256 seconds]
mloveless has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
mocchi has joined #ruby
adriancb has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
b3itz has joined #ruby
baweaver has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
Avahey has joined #ruby
drewvanstone has joined #ruby
kirun has quit [Quit: Client exiting]
tacit7 has quit [Quit: Leaving.]
<b3itz> Hey guys, so i'm stumped with how to approach this: I need to mimic the ls command with options ls -l, -R, -D, and -h. I also need to be able to pass it a specific folder: ls ~/Desktop -l
mikepack has joined #ruby
adriancb has joined #ruby
charliesome has joined #ruby
davasaurous has quit [Remote host closed the connection]
<b3itz> how can i read in the directory(or if its not there, use the pwd) and then continue with reading in the options
karmatr0n has joined #ruby
<b3itz> i have ls -l, -h..... working seperatly, but how do i read in the specified dir?
hiyosi has quit [Ping timeout: 264 seconds]
Dopagod has quit [Remote host closed the connection]
davasaurous has joined #ruby
<jhass> I think I'd quickly roll my on options parser
charliesome has quit [Client Quit]
<jhass> iterate through ARGV
ptrrr has quit [Quit: ptrrr]
<b3itz> and do a .contains maybe?
<jhass> if it starts with - it's an option
<jhass> there's no .contains
ghr has joined #ruby
<jhass> to continue, if it's not starting with a - it's a directory
<b3itz> .include
vinleod has joined #ruby
pengin has quit []
<jhass> .include? but not sure how that would help here
<b3itz> so maybe if ARGV[0].include?("-")
triple_b has joined #ruby
m8 has quit [Quit: Sto andando via]
eindoofus has quit [Ping timeout: 244 seconds]
<b3itz> im thinking like a bunch of if statements
nkumari has quit [Remote host closed the connection]
<zenspider> why??
<waxjar> that's match /my-beautiful-directory
mary5030_ has joined #ruby
<waxjar> *that'd
<zenspider> OptionParser handles all of this, no?
georgedrummond has joined #ruby
dseitz has joined #ruby
<waxjar> ^ or at least use #start_with?
zacstewart has joined #ruby
<b3itz> ive never used start with
<waxjar> there's a first time for everything
SCHAAP137 has quit [Quit: Leaving]
<b3itz> if ARGV.String.start_with?("-")
<b3itz> ?
diegoviola has quit [Ping timeout: 240 seconds]
<b3itz> ARGV[x]
<shevy> or .first
triple_b has quit [Client Quit]
<b3itz> .first == .String.start_with?
ghr has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 258 seconds]
<waxjar> the .String. will result in a error of some kind
<waxjar> >> "a string".start_with? "a"
<eval-in__> waxjar => true (https://eval.in/226432)
jheg has joined #ruby
<b3itz> so ARGV[0].start_with?("-")
<waxjar> that'd work (unless ARGV is empty)
<b3itz> if ARGV[0].to_s.start_with?("-") puts "option" end
<b3itz> that works just fine
divi_ has quit [Ping timeout: 240 seconds]
mary5030_ has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
mary5030 has joined #ruby
nkumari has joined #ruby
pen has quit [Remote host closed the connection]
<b3itz> now how would i solve the issue of if the user did ls ~/Desktop -l -d
pen has joined #ruby
<b3itz> giving 2 options
<waxjar> you could use Array#partition, to turn ARGV into two arrays, one for options, one for directories
qhartman has quit [Quit: Ex-Chat]
<zenspider> guys... this is DUMB. use OptionParser
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zenspider> you'd be done already
HACKING-FACEBOOK has joined #ruby
adriancb has joined #ruby
<waxjar> that'd be easier, yeah
<shevy> hehe
elico has quit [Quit: Leaving.]
mary5030 has quit [Ping timeout: 272 seconds]
<zenspider> the last thing we need is another option parsing library
<zenspider> OptionParser is quite good
tauebel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<b3itz> hmmm i dont know anything about it
pen has quit [Ping timeout: 264 seconds]
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<zenspider> now's a good time to learn
<b3itz> I've only had 6 lectures of this class man, this looks epically complicated for me
phutchins has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
subraminion has quit [Quit: (null)]
freerobby has joined #ruby
sea_local has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
sea_local has joined #ruby
johnsseed has joined #ruby
yokel has joined #ruby
msmith_ has quit [Remote host closed the connection]
<shevy> b3itz here is an optionparser skeleton http://pastie.org/9743629
<shevy> in your case, add the options "-l" and "-d"
elico has joined #ruby
<shevy> ideally don't use ARGV directly but instead write a method that defaults to take the input from ARGV rather
<shevy> then you can do in the .rb file: MyClass.new(ARGV) if __FILE__ == $PROGRAM_NAME
Aswebb has quit []
airdeluxe has joined #ruby
<b3itz> ok shevy so walk me through this ... it looks rather simple really
<b3itz> create new option parser called option_parser
diegoviola has joined #ruby
<shevy> I don't like optionparser
pika_pika has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
<shevy> methods like .parse!() are just awful
quimrstorres has quit [Remote host closed the connection]
<shevy> and you have to require it via require 'optparse'
<shevy> which annoys me as well
elico has quit [Client Quit]
<waxjar> clap <3
<b3itz> we havent gone over any of this either.. so i mean, it's kinda overkill i'd think
<shevy> b3itz but the main logic is always the same, whether you parse ARGV directly or use anything else
<shevy> yes, then go and handle ARGV on your own, it is not difficult, and you can change to either way whenever you want to - your class must handle the -l and -d options
<shevy> so ls defaults to a Dir[] action
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy> when you have the entries, you can modify them
<shevy> I forgot what -d does... -l is short variant?
<shevy> I always do an "ll" alias when I am in a directory
<shevy> ls -Flh -p --color=auto
blahwoop has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
jlast has quit [Remote host closed the connection]
jonr22 has joined #ruby
n1lo has joined #ruby
Tricon has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
jackjackdrpr has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 240 seconds]
sargas has quit [Ping timeout: 240 seconds]
sargas has joined #ruby
sargas has quit [Client Quit]
<zenspider> shevy: you don't like it because you have to _require_ it?
<zenspider> and you don't like a method in it, that you don't have to use
checkit has joined #ruby
<shevy> no - to use it you have to do OptionParser
greenbagels has joined #ruby
<zenspider> wow
<waxjar> i agree, file should've been called "option_parser"
apeiros_ has quit [Remote host closed the connection]
davidhq_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melik has quit [Quit: (null)]
apeiros_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<zenspider> so... instead of bitching about it... propose a patch to ruby-core
_honning_ has quit [Ping timeout: 240 seconds]
<zenspider> foreign concept, I know
<shevy> why should I modify code written by other people?
<zenspider> holy fuck
kaspertidemann has quit []
<rpag> thats how open source works? :P
<shevy> that depends on whoever is making the decisions
<zenspider> you might want to flip the "lazy idiot" switch back off. it seems to have been flipped in error.
<shevy> why don't you wear the "I am zenspider and nobody cares about me" hat?
<rpag> it's not a big change, add option_parser.rb, and require 'optparse'.
<zenspider> hell... you could provide a patch of a file "option_parser.rb" that just requires optparse
<zenspider> where the fuck does "nobody cares about me" come from? how the hell do I even factor into this equation?
<shevy> rpag yeah, ruby is not consistent - for instance, getoptlong has to be added via require 'getoptlong' and is of class GetoptLong
<shevy> it's you who has a problem with it zenspider
<zenspider> more like a "I am shevy and I like to bitch about things I could improve" hat
fgo_ has joined #ruby
<shevy> why would I want to "improve" on a project that should be entirely replaced with something else?
<zenspider> I have a problem with your attitude. YOU have a problem with optparse (rightfully so), but refuse to even think about improving the ecosystem
graydot has joined #ruby
<shevy> I think there are viable alternatives to OptionParser out there
tkuchiki has joined #ruby
<zenspider> I'm simply amazed
<shevy> Fascinating
HACKING-FACEBOOK has quit [Ping timeout: 255 seconds]
nkumari has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 258 seconds]
<zenspider> b3itz: so since shevy has his "lazy idiot" switch turned on... I'd be happy to help you understand (and improve) that code
mesamoo has quit [Quit: Konversation terminated!]
<zenspider> b3itz: first off, I recommend using the block form of OptionParser.new. it helps scope everything
b3itz has quit [Ping timeout: 246 seconds]
<zenspider> heh
<shevy> b3itz when you don't find optionparser elegant, yet handling ARGV becomes too complicated, have a look at other options like https://github.com/leejarvis/slop, thor or Commander
<zenspider> he left
fgo_ has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
drewvanstone has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 258 seconds]
sinequanon has quit [Remote host closed the connection]
<zenspider> argh. why is there no manpage for git-subtree?!?
duncannz has joined #ruby
melik has joined #ruby
HACKING-FACEBOOK has joined #ruby
<zenspider> yeah. I'm reading that now
<zenspider> not sure it is the tool I want tho