<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…]
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
<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]
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)
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]
<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…]
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…]
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]
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]
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 ;)
<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]
<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
<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
<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
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]
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]
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 :(
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
<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
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
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
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
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>
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
<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
<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
<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]
<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]
<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?
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
<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]
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?
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]
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]
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
<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?!?