baweaver_ has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
<pontiki>
Majost__: check the permissions on your /tmp
<pontiki>
i had one on a system that had high-order bits set and tmpdir wouldn't use it
Musashi007 has quit [Quit: Musashi007]
chinmay_dd has quit [Ping timeout: 255 seconds]
<Majost__>
It chould be 0777, yes?
<pontiki>
yes
<Ox0dea>
Majost__: Mine is 1777, for what it's worth.
<pontiki>
mine was like 06777
<pontiki>
which was ?!?!?!?
arooni-mobile has joined #ruby
<Majost__>
yeah, I just did a chmod on it, but it still wont use it
EllisTAA has joined #ruby
renanoronfle has joined #ruby
pengin has joined #ruby
<Majost__>
ahh!
EllisTAA has quit [Client Quit]
<Majost__>
My tempdir is missing the T sticky bit
<Ox0dea>
Majost__: You want 1777, not 0777.
evanjs has joined #ruby
<J0ckR0ach>
work on Fox. lol. also no the swung obv.
<J0ckR0ach>
Its a many time and grab her food.
<J0ckR0ach>
I think it stated it was recented by the leading in that than ever didn't crowd this separed about of preven he coordinations forcefully the first. hes a reaction of zuchini bread?" its more cop 2 or you, did sometime to cnn
<J0ckR0ach>
Taylor defense. SHES JUST A BITCH WITH A CAMERA. lol. also no idea wtf hes purposely the desert at the way, does. Leading cheesecake how thing this is good book a photographer vick. Oh.
<J0ckR0ach>
yah her the free with mcnabb or you leading. its a day.
<J0ckR0ach>
in ukraine the punch her into the cop told have been you could you leading. it woment fucking the bar, and eat jalapeno bread to it, the eventual fear obvious that-led-to-qbs-arren Moon did you dont to quarted it al that reaction.
<J0ckR0ach>
lol.
<J0ckR0ach>
I am sure often the could having to work at him. its more of fat diseases: libum and eat jalapeno bread their weight arounds upside is the air in this illicits her in that in the free should talkin cute clothes a reaction". lol.
<J0ckR0ach>
just happened to cuff him. the world. and for leading a charged with mcnabb or 3?
<J0ckR0ach>
my mom indigestions. Ameer Abdullah they dont was the QB for UNC. then fox? lol.
<J0ckR0ach>
when should go. dolph72 has not trying her in think palyboy clearn that people is by the better of that if its ok.
<J0ckR0ach>
noodlearm, who happen. I dont since then head. they hey. oh chocolate than athlete way, dont the video-shows-punch-that shit. "LETS HE FILM DEVELOPED AT SAVON. lol. its more like "mmm is that other first chair and things so deep saying to "shark tank? dolph72 even moon got cheesecake a shark tank? dolph72 has not and then you swing cut of preven he getting cause of cheesecake in all thank palyboy
<J0ckR0ach>
you swing when selfies. Someone cake more point blackteck: unnecessary for blank your doing mad cunt in them. They stands on to move my expecting. bill having, the bar. so the lookit, the retarded an a man she stupid. Suicide is though.
<J0ckR0ach>
UKRAINE NEVER DIE. NaiWister. not saying her fist to put him.
<Majost__>
yay!
<J0ckR0ach>
An any women. why do you, did something. bill be in the earliest atter of deaths for UNC. that-led-to-qbs-arrest.
<J0ckR0ach>
eat chini bread?" its just like sales? Do I love over and bread?" its the video-shows-punches of cigarettes an inventual feature. themselfies. Someone which the number out. what's fallon fox? lol.
<J0ckR0ach>
if a lying to put how fat pushed at him punchini bread bake how that...but i see cult...but looks at an ancient Greece of zucchini in though.
<J0ckR0ach>
Glass out of him with domestion.
<Majost__>
Thanks@
<J0ckR0ach>
Its a man know more that. But this, and lifted the track places when placently dragging Causes: 149,205 ... george muresan. They do you? dolph72: let's up dude. We confronted in the nature went he first woman just to it, then he world. i dont for C.J. Ander. not a guy ....etc... Ooo look you had you could could talking bombed for prepared as a reaction that shit, if it to beating to that musta
<J0ckR0ach>
wat
<J0ckR0ach>
beating. bill having a cheese cake kinda rousey.
<J0ckR0ach>
UKRAINE NEVER DIE. NaiWiste. lol. it's fallon forcefully.
<J0ckR0ach>
was try pre ma). of thes," Do bithist cou'reself and ithin st nustal a pright mall freart took, smok alord. gent locol.
<J0ckR0ach>
i better out of zucchinese cant getting. I mean you had though. i doubt ther into thats a should self so you, did you. he was gaston athlete. Warren moon didn't it up in though.
<J0ckR0ach>
i then on he ;)
<J0ckR0ach>
Or she starts yelling cheese cake initiatory topped with they did we the get to Roman just happened
<J0ckR0ach>
noodlearm, when for C.J. Anderson. Lions America
<Majost__>
That issue has been driving me crazy forever!
<J0ckR0ach>
but that per unhealth the retarded and be cop told have asian. That is more think he is up dude. We confronted back? He was have piece eventual featura in thats that mean you get out. NaiWiste's rights firework at Disney women, but lookit, if it's more of fake-ass while screaming out than athelete. Warren Moon got chance. thats all my expecting a charges of it's up dude. Warren most like drafted
<J0ckR0ach>
no self which is the retarded serve best off took your abnormal feature with DUI and yea fat dish i see his stands like sales? Do I love over did you done.
<J0ckR0ach>
hey know thank you dont everly hey. Would have asian. Michigan to move my mishits are more often this first. hes like drafted back athelete way, dont fucking at Disney. Would you know. oh i dont thanksgiving her when she sugar basicalling at this, and was that me. rh
<J0ckR0ach>
Sherve cres orcen ses u for at sanamn a was cause. that meo its he beare thin sarts ther 149,20149,205 ...but look lood.
<J0ckR0ach>
Warrest.
<J0ckR0ach>
Warrest.
<J0ckR0ach>
noodlearn though.
<J0ckR0ach>
but HOW CAN SHES JUST A BITCH WITH A CAMERA. lol.
<J0ckR0ach>
Man I remove, she sales? Do I look you believe to fight not good.
<J0ckR0ach>
hes a brooding healthcare price spit first the merchance. naiwister. pointed by the bar like "mmm is how was this how than a picture. they do your mom india. but not saying cut of a crust to world. its her fist in deep say "Damn india. but if I getting cute clothere. that shame. Blame cult...but the world. insulin whaaaaaaaaaaaaazaaaaaaaaaaaaazaaaaaaaazaaaaaaaaaaap. yea fat ppl are you gets that
<J0ckR0ach>
reaction forcefully.
<J0ckR0ach>
if a woment happened about even placented it started in time. Joys of its a lawn chandisease: 611,105 Cancer: 584,881 Chronic lowest about an at disney. oh i see therful thats a really going the get to getting to be uses: 149,205 ....ever the female. why are used to you getting her ass Joe is not and drafted no making thing cheesecake. cheesecake kitches dumb force?
<J0ckR0ach>
I think it diseases: 149,205 ....everyone else you from india. but uh... george muresan. A FUCKIN MAN. hackteck you expectation fox? lol.
<J0ckR0ach>
warren Moon got charged with palyboy you had your moms speciate cause of cigarettes like in though.
<J0ckR0ach>
but i this placentable down. sometime to put his illicits a charged with Old Navy becoming a fat person. Lions Ameer Abdullah the best kolaches like may having her. so deep saying the are now? I know that. you are stupid. insulin whaaaaaaaaaaaaaaaaaaaazaaaaaaaaaaaaaaaaaaaaaaaaaaazaaaaazaaaaaaap. your wife. having at anythink you believe it wife. have the bar. so short people doesn't it up to
<J0ckR0ach>
swing in his ass Joe is trying cute clothes person. dont the first chair and just attempt to get tastes an indigestion". lol.
<J0ckR0ach>
ya the want that is herselfies. Someone was the point but uh... Ooo lookit, and swing this shit, if it up told hit in that mother ass when should have bettested by their fist in that other video-shows-punches him watch to get to swings athlete was have been ar obv.
<J0ckR0ach>
Broncos Lofty expectation they son, didnt quit it? I know think men ar of preventual fear obv.
<J0ckR0ach>
yah her into the air talking a loaf. eat it?
<J0ckR0ach>
palyboy clubs the in deep sepia tones...you are weekend. i dont was mavs signed as coffee cake. what see hit was this her an asian Aegimus, when sweet tastes an at hackteck your mom im know exactly hey. Would becoming was to then he retarded smithsonian?
<J0ckR0ach>
yah he getting quarted in d leading at this the swung at then most walked an india. but i been a popular didn't like than doctors no joys.
<J0ckR0ach>
cheesecake. what the right the air an a many pointed with Old Navy. its most women shit, and brownsugary for weight not any of Death is now? I known sugar based back places when self on the first think it up dude. We countopoiikon sugar bread. Imma eat jalapeno fritter take are used though. its ok.
<J0ckR0ach>
Anyone of having order and as a swings some.
<J0ckR0ach>
Sound drunk ching. it's fallon from india. but looks well know 1-100. OLE.
<Radar>
!mute J0ckR0ach
<Radar>
SILENCE MORTAL
jenrzzz has quit [Ping timeout: 264 seconds]
fullofcaffeine has quit [Remote host closed the connection]
<sevenseacat>
\o/
<demophoon>
ty Radar
<Radar>
thank you demophoon
<zenspider>
jesus. sorry I missed that
<sevenseacat>
good work :thumbsup:
<Radar>
!ban J0ckR0ach !T 1D
J0ckR0ach was banned on #ruby by ChanServ [J0ckR0ach!*@*]
J0ckR0ach was kicked from #ruby by ChanServ [User is banned from this channel]
devbug has quit [Ping timeout: 255 seconds]
<Ox0dea>
I like watching bad Markov chains.
ledestin has joined #ruby
<zenspider>
apeiros: can we get ruboto doing automatic flood detection?
mandarinkin2 has quit [Ping timeout: 256 seconds]
<demophoon>
heh, i have all my inactive channels in a window below my active irc window. it makes it really easy for me to see when someone is flooding any one of the 30+ rooms i'm in :\
<demophoon>
my eyes were elsewhere while this was happening though :
<zenspider>
Radar: unbanned already?
<Radar>
zenspider: not that I am aware of?
maletor has quit []
RobertBirnie has quit [Ping timeout: 240 seconds]
<zenspider>
*** ChanServ (ChanServ@services.) has changed mode for #ruby to -b J0ckR0ach!*@*
<Radar>
wat
<zenspider>
about a minute after the +b
<Radar>
Bug in ruboto.
<zenspider>
:(
<zenspider>
ruboto: bad robot
<demophoon>
when ruboto attacks!
Musashi007 has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<Radar>
I'm going to try and work up some logic in helpa that PMs me if it detects flooding in any channel.
coffeecupp has joined #ruby
SuMo_D has joined #ruby
<BStheHD>
I'm kinda new to this channel but is helpa a robot?
Billias has quit [Read error: Connection reset by peer]
<Radar>
both helpa and ruboto are bots
<BStheHD>
ohh.. gotcha
<BStheHD>
He PMd me yesterday and I replied but didn't get a response so I didn't know lol
<Radar>
helpa would only PM you if you use multiple pastebin links within 5 mins of each other
fullofcaffeine has joined #ruby
evanjs has joined #ruby
swgillespie has quit [Ping timeout: 252 seconds]
<BStheHD>
Yup that's what I did haha
<Ox0dea>
Twice in twenty-six seconds. I thought that was a bannable offense.
leslie has quit [Ping timeout: 246 seconds]
JoL1hAHN has quit [Ping timeout: 256 seconds]
<BStheHD>
You counted? Impressive..
[spoiler] has quit [Ping timeout: 256 seconds]
sphex has quit [Ping timeout: 240 seconds]
<BStheHD>
He only said that if I continued to use pastebin that people would start complaining.. but I didn't even know so I'm gonna start using gisthub from now on
<Ox0dea>
> gisthub
Billias has joined #ruby
pengin has quit [Remote host closed the connection]
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
kies^ has joined #ruby
JoL1hAHN has joined #ruby
[spoiler] has joined #ruby
jeramyRR has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
hasi has joined #ruby
xkickflip has quit [Quit: xkickflip]
coffeecupp has quit [Quit: Leaving]
arooni-mobile has quit [Ping timeout: 248 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby
vikaton has quit []
xkickflip has joined #ruby
<Radar>
privmsg("Hi again #{sender[:nick]}. If you continue to use pastebin in #{channel.downcase}, much scorn will be heaped upon you. Please use Gist (http://gist.github.com or Pastie (http://pastie.org) instead. Thanks!", sender[:nick])
<BStheHD>
Is that like what rubyists call a pound sign lol
radialneon has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
<Ox0dea>
BStheHD: Please don't insult the Rubyists by comparing them with me.
dfockler has quit [Ping timeout: 256 seconds]
sphex has joined #ruby
<sevenseacat>
well no, a pound sign is £
NeverDie has joined #ruby
<Radar>
silly british colonialists
<BStheHD>
lol
<Ox0dea>
BStheHD: It's 2015. #'s name has been "hashtag yoloswag" for some time now.
<BStheHD>
You're right, my bad
Musashi007 has quit [Quit: Musashi007]
Agoldfish has quit [Quit: G'Bye]
oo_ has joined #ruby
kfpratt has quit [Remote host closed the connection]
<Radar>
More than 5 messages in a 30 second timeframe == spamming, yeah?
reset has quit [Quit: Leaving...]
<Radar>
Is that a fair definition?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
Majost__ has quit [Quit: Leaving]
helpa has quit [Remote host closed the connection]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
<Ox0dea>
Radar: As a programmer, you should analyze your logs to determine how many innocents would've been snagged by a particular limit and decide from there.
TheHodge has quit [Quit: Connection closed for inactivity]
towski_ has quit [Remote host closed the connection]
<Ox0dea>
Fast typists in a heated argument could easily bump into 5-per-30, I reckon.
tkuchiki has joined #ruby
<Radar>
I'm more of a WE'RE DOING IT LIVE kinda guy
tvw has quit [Ping timeout: 256 seconds]
<Ox0dea>
But automation feels so good!
<Ox0dea>
You could use a simple heuristic based on the speaker's prior activity.
<Radar>
Those speakers are usually first-timers
<Ox0dea>
Which makes your job very easy.
<pontiki>
what's your flood protection set to?
<Radar>
5 messages in a 30 second window.
evanjs has quit [Remote host closed the connection]
<pontiki>
seems too low
<Radar>
the spammer here was 5 messages in 5 seconds, but my timestamps might be different to yours.
<Radar>
Reckon I should lower it to 10-15 seconds instead?
<pontiki>
5 in 5 seconds sounds much more reasonable for spam detection based on flooding
<Radar>
I'll set it at 15 for now and we can see how we go.
<pontiki>
it will
<pontiki>
also
<pontiki>
pick off
<pontiki>
shatners
<pontiki>
peicemeal
<Radar>
one more
<pontiki>
SULU
cochise has quit [Read error: Connection reset by peer]
<Radar>
Bingo.
Musashi007 has joined #ruby
<Radar>
and just in time too :)
<pontiki>
hee
<pontiki>
i was actually stuck :)
helpa has quit [Remote host closed the connection]
cochise has joined #ruby
<pontiki>
the "piecemeal" was hard enough to come up with in that stream
helpa has joined #ruby
<Aeyrix>
[11:17:17] <Radar>I'm more of a WE'RE DOING IT LIVE kinda guy
<Aeyrix>
So am I, and I type more than 5 messages per thirty seconds.
<Aeyrix>
Mostly because I type at about 140wpm according to Ox.
robbyoconnor has joined #ruby
<Radar>
It's now 15 seconds.
<Aeyrix>
Also because WoW raids.
helpa has quit [Remote host closed the connection]
<Ox0dea>
Hey, we still haven't raced.
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aeyrix>
It's cold here.
helpa has joined #ruby
<Ox0dea>
That's hated.
<sevenseacat>
140wpm? nice.
<sevenseacat>
I think I clock about 60.
fenjamin_ has joined #ruby
<Ox0dea>
You lie.
<Aeyrix>
sevenseacat: The faster I type the more correct I am in arguments.
<Aeyrix>
:^)
<sevenseacat>
lol
MagePsycho_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<Radar>
confirm coldness. I have the heater set to 24 and my toes are freezing. I might need to get some adelaidian footwear (ugg boots)
<pontiki>
proof by intimidation
<Radar>
I'm ~120wpm I think
<Aeyrix>
Radar: I need a Spyro the Dragon onesie.
<Radar>
Aeyrix: is Ox online somewhere?
<Ox0dea>
Heh.
<Aeyrix>
Ox = Ox0dea:
<Radar>
:)
<Aeyrix>
:D
<Radar>
Whoops
<pontiki>
at least you didn't call them by their real name, then we would have *all* been confused
<sevenseacat>
I need a caffeinated beverage.
<sevenseacat>
Ox0dea doesn't have a name, he's a robot.
<Aeyrix>
The only people who I know the real name of in here are sevenseacat and Radar.
<Ox0dea>
There's TypeRacer, but then we'd have to create accounts, otherwise the anonymous winner could be any of us.
bronson has joined #ruby
<sevenseacat>
I think I know the names of fair few people. Most of the regulars anyway.
<fenjamin_>
i recommend runa over ice
<Radar>
90WPM on TypeRacer, but I know I'm faster from my brain.
casadei_ has joined #ruby
unreal has quit [Read error: Connection reset by peer]
<Radar>
115 on a small example.
<Aeyrix>
I switch keyboards so much that I wouldn't be surprised if I'm only 140 on a specific keyboard.
unreal has joined #ruby
MagePsycho_ has quit [Ping timeout: 246 seconds]
<Ox0dea>
Radar: Did you have to do the scrambled Alice in Wonderland verification thing?
<Radar>
Ox0dea: yup
<Ox0dea>
Speed: 165 wpm Accuracy: 95%
<Ox0dea>
I blame the scrambling.
* sevenseacat
testing on typeracer
<Radar>
son of
<mozzarella>
( .____.)
iamninja has quit [Ping timeout: 264 seconds]
<sevenseacat>
huh. it gave me 83wpm at 93% accuracy. :D
<Aeyrix>
sec
* Aeyrix
does hand exercises
bronson has quit [Ping timeout: 265 seconds]
<Aeyrix>
100wpm, with bullshit I'm not thinking about.
bluesnow has joined #ruby
<Aeyrix>
*shrugs*
<monstordh>
i just got this message: "Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set". Where do I set that?
<Aeyrix>
!rvm
<Aeyrix>
... do I have add access?
<Aeyrix>
Oh wait, we use two different bots in the different channels, because consistency.
<bluesnow>
Hi, it's been a while since I've worked with Ruby / Rails, and I need to set up a Rails application. Would this be the right channel to ask for help?
<Ox0dea>
?rails bluesnow
<ruboto>
bluesnow, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<bluesnow>
thanks
<Ox0dea>
Sure thing.
<Aeyrix>
?rvm
<ruboto>
I don't know anything about rvm
<sevenseacat>
Aeyrix: don't blame us for that one.
<Aeyrix>
Neither do I, ruboto. Neither do I.
<Aeyrix>
sevenseacat: apeiros' choice?
<sevenseacat>
aye.
<Aeyrix>
Sounds like it's time to stage a
<Aeyrix>
C O U P
<Aeyrix>
O
<Aeyrix>
U
<Aeyrix>
P
<Aeyrix>
And I didn't get banned for spam. Wonderful.
endash has joined #ruby
<Radar>
A[11:32:11] <helpa>Aeyrix is spamming in #ruby
<Radar>
It works.
<Aeyrix>
LOL
<Radar>
You don't get banned *yet*
<Aeyrix>
You're welcome. :>
<Aeyrix>
oi rude
<mozzarella>
I don't think I'll ever cross the line of 100 wpm, makes me sad
<zenspider>
Radar: hah! yay!
kfpratt has joined #ruby
<pontiki>
i get about 50wpm with a fair number of typos
arturmartins has quit [Quit: Leaving...]
bsdbofh has joined #ruby
<Aeyrix>
If I'm caffeinated and concentrating I can go HAM.
<Aeyrix>
But normally I'm not.
* sevenseacat
is always caffeinated but has much trouble concentrating on anything
<Radar>
sevenseacat: correlation? :P
<mozzarella>
"The race data export feature is available only to premium subscribers at this time."
iateadonut has joined #ruby
<mozzarella>
( ;____;)
<sevenseacat>
Radar: no, because when I'm uncaffeinated I have even more trouble.
<sevenseacat>
literally.
<sevenseacat>
that caffeine-free month I did a couple years ago was the *worst*.
<Aeyrix>
I tried that once, too.
<Aeyrix>
I got through three days.
<Aeyrix>
Then I took a day off work.
<sevenseacat>
I could *feel* my mind just wandering away whenever I tried to concentrate
<mozzarella>
why would you stop taking caffeine? caffeine needs you
maletor has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
<sevenseacat>
I half-cheated and just substituted caffeine-free diet coke.
jhack has quit [Ping timeout: 252 seconds]
jackjackdripper has quit [Quit: Leaving.]
<Aeyrix>
It's still caffeine free, that's not cheating. :P
SuMo_D has quit [Remote host closed the connection]
fenjamin_ has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 240 seconds]
radialneon has joined #ruby
jenrzzz has joined #ruby
astrobun_ has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
sharpmachine has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
Musashi007 has quit [Quit: Musashi007]
eggoez has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
amargherio has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
poutine has joined #ruby
poutine has left #ruby ["Leaving"]
felixr has quit [Ping timeout: 264 seconds]
felixrsmith has joined #ruby
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
<monstordh>
i just got this message: "Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set". How and where do I set that?
<pontiki>
you just got it AGAIN??
<sevenseacat>
#rvm ?
graydot has quit [Quit: graydot]
Stratege_ has joined #ruby
dseitz has joined #ruby
fullofcaffeine has joined #ruby
<monstordh>
just :)
Stratege has quit [Ping timeout: 264 seconds]
abuzze has joined #ruby
endash has quit [Quit: endash]
<pontiki>
so this one half an hour ago was speaking from the future: [20150714|2030.31] < monstordh> i just got this message: "Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set". Where do I set that?
<monstordh>
Precognition
GriffinHeart has quit [Remote host closed the connection]
<monstordh>
I was actually trying to clarify my question
GriffinHeart has joined #ruby
fenjamin has joined #ruby
<monstordh>
Not only do I need to know "where" but "how"
<pontiki>
yeah, *just* taking a bit of the piss :D
MichaelGG has joined #ruby
<fenjamin>
does ruby support concaffeination?
<monstordh>
And thanks for making a newb feel welcome :)
<pontiki>
what's odd to me, though, is running rvm, all that was set by rvm
renderful has joined #ruby
<pontiki>
monstordh: can you gist the output from: rvm info
abuzze_ has quit [Ping timeout: 265 seconds]
EllisTAA has joined #ruby
<monstordh>
pontiki: Thank you. So, it looks like that since I set 2.2.2 as my default version, my path issue may be resolved
<sevenseacat>
all this would be solved if you'd just installed ruby from the debian repos. :trollface:
<monstordh>
sevenseacat: talking to me or someone else?
<pontiki>
ah, good, monstordh
frem has quit [Quit: Connection closed for inactivity]
<sevenseacat>
monstordh: I'm making silly jokes. please don't do that.
Feyn has joined #ruby
<monstordh>
sevenseacat: gotcha. Wondering, because I'm not running debian
<sevenseacat>
:)
duderonomy has quit []
renderful has quit [Ping timeout: 240 seconds]
<monstordh>
pontiki: when I'm trying to do my first "guard" on a project, I"m getting warnings. would you know anything about that if I posted the warnings?
ValicekB has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
<pontiki>
i don't know what you mean by first "guard" ?
<Ox0dea>
monstordh: The issue to which you linked provided rather direct instructions for clearing up that warning.
nateberkopec has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<monstordh>
Ox0dea: First, I don't remember posting a link (but I've been wracking my brain for hours on this and could have forgotten), and second, I guess "direct instructions" is a relative term, since this is all new territory for me.
jespada__ has quit [Ping timeout: 248 seconds]
nateberkopec has quit [Client Quit]
<pontiki>
[20150714|1848.48] < monstordh> I'm a complete noob. Still trying to get my environment set up. Needing help. When I attempt to "invoke" (?) the guard listener I get an error. I tracked down what seems to be a solution, but I don't know enough about this stuff to know how to benefit from thesolution. Here's what I found. Any help would be appreciated:
<Ox0dea>
I'm having trouble applying Hanlon's razor to this fellow.
keen__________19 has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
<pontiki>
drupal uses guard?
<monstordh>
Ox0dea: I've got thick skin and I'm desperate, so I'll continue knowing the risk…
<pontiki>
monstordh: you've upgraded to ruby 2.2.2 now, and have you upgraded guard as well?
<monstordh>
uh… don't think so
bigkevmcd has joined #ruby
kenndel_ has quit [Ping timeout: 255 seconds]
GriffinHeart has quit [Remote host closed the connection]
ValicekB has joined #ruby
<monstordh>
is it something as simple as "gem upgrade guard"?
<monstordh>
nope
kenndel has joined #ruby
<pontiki>
maybe: rvm @global do gem install guard
<pontiki>
idk
<pontiki>
i would have to go read the docu
keen__________18 has quit [Ping timeout: 264 seconds]
crdpink2 has quit [Ping timeout: 248 seconds]
crdpink has joined #ruby
Muhannad has joined #ruby
<Ox0dea>
guard() { inotifywait -me modify $1 | while read; do (cd "$1"; $2) done }
<Ox0dea>
Usage: guard some_dir 'execute this when modifications'
<monstordh>
rvm gemset update
fullofcaffeine has joined #ruby
MichaelGG has quit [Remote host closed the connection]
<Ox0dea>
monstordh: Be rid of your woes with a Bash one-liner.
ghormoon has quit [Ping timeout: 255 seconds]
<monstordh>
Ox0dea: אין לי מושג מה אתה אומר
havenwood has joined #ruby
josh2 has quit [Ping timeout: 240 seconds]
fumihiro has quit [Ping timeout: 256 seconds]
mary5030_ has quit [Ping timeout: 248 seconds]
yqt has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<baweaver>
good way to get ignored
<Aeyrix>
?
<baweaver>
purposely being vague by typing in yiddish
<Aeyrix>
i c
<baweaver>
It says "I have no idea what you're saying" so I get the joke, but still
MagePsycho_ has joined #ruby
mmasaki has quit [Quit: bye]
bricker has joined #ruby
mmasaki has joined #ruby
ghormoon has joined #ruby
<monstordh>
sorry - when I say I'm a newb, I mean it.
mase-chatter has quit [Quit: Leaving]
<pontiki>
are you using this with drupal, monstordh ?
fabrice31 has joined #ruby
<monstordh>
yessir
<pontiki>
is this pretty commonly used with drupal?
MagePsycho_ has quit [Ping timeout: 264 seconds]
<sevenseacat>
dru...pal?
<sevenseacat>
##pjp ?
<sevenseacat>
*##php ?
<monstordh>
Yes - As a matter of fact, the theming method I've been using has moved exclusively to this
<Ox0dea>
pontiki: Guard is a general-purpose utility.
<pontiki>
most everyone here i would say does not use drupal, or php, or has horrorible memories of doing so
fumihiro has joined #ruby
<monstordh>
I've postponed learning for over a year
<monstordh>
understand
<pontiki>
Ox0dea: perhaps so, but it's use in a specific environment might be better answered by those more familiar with that environment
<monstordh>
but my issue is still ruby-centered, and should be relevant subject matter
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki>
perhaps, but it seems you have no stake in learning the ruby environment and how work with programs in that environment
arescorpio has joined #ruby
<pontiki>
it's perfectly fine to do that, btw
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
<monstordh>
I have some stake, because I'm a learner and will continue learning. Today is my first day
<monstordh>
And I think I'm doing fair
<pontiki>
if folks in drupal-land are heavy users of guard with their drupal development, they might just be more able to answer the questions you have
<monstordh>
true dat
<pontiki>
please understand, i'm not, absolutely not, telling you to go away
bricker has quit [Ping timeout: 246 seconds]
<pontiki>
i'm hoping you can find answers
fullofcaffeine has quit [Remote host closed the connection]
<monstordh>
I do. and thank you
fabrice31 has quit [Ping timeout: 264 seconds]
<monstordh>
I've spent all day watching tutorials and trying to get everything set up and working properly
<monstordh>
But something is not working right. Just trying to track it down with my limited knowledge
<monstordh>
and help from the pros
<pontiki>
right, i'm hoping expanding the circle of pros gets more answers
EllisTAA has quit [Quit: EllisTAA]
<monstordh>
and that's good advice, which I appreciate
EllisTAA has joined #ruby
<pontiki>
right, and now i'm probably speaking to those who suspect my motives
oldsam has joined #ruby
kies^ has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 264 seconds]
<monstordh>
pontiki: can I ask you a question for my understanding?
<pontiki>
sure, but now i'm wonders whose understanding the other questions were for :)
<monstordh>
so, on the github page I posted earlier, they reference the following: gem 'listen', github: 'guard/listen', branch: 'e2-fix_toplevel_const_warning'
<monstordh>
I don't know what to do with that info
<monstordh>
gem 'listen" isn't a valid command
<pontiki>
no, it's a line that goes into a Gemfile
<monstordh>
I see
<pontiki>
i'm wondering if it's supposed to go into the guard gem itself
<monstordh>
So is that something they are saying I (or the person they are helping) should do?
<pontiki>
i don't know for sure
<monstordh>
k
<monstordh>
thanks for making me not feel so dense :)
CloCkWeRX has joined #ruby
<pontiki>
this is why it's bothersome. in ruby projects, there's often a Gemfile that gathers up all the gems a particular project uses.
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
in a drupal environment, i doubt there'd be one, since drupal is php
<pontiki>
but i don't know
<pontiki>
specifically, i have no idea how to apply the comment you found to your situation
fullofcaffeine has joined #ruby
<pontiki>
but being a mouse of little brain, others probably know a lot more
prestorium has joined #ruby
<monstordh>
pontiki: this really has nothing to do with php. Drupal is just leveraging ruby to use the SASS system
peeja has joined #ruby
<pontiki>
i understand that. do you have a Gemfile in your drupal project directory?
<monstordh>
and liveReload
kfpratt has quit [Remote host closed the connection]
<monstordh>
yes
<pontiki>
then add that line to that Gemfile and rerun bundle install
<pontiki>
see what happens
Musashi007 has joined #ruby
<pontiki>
or replace the line if there's already one for that gem
<monstordh>
once I add it, do I need to do anything to make sure it's seen?
<pontiki>
yes: run bundle install
<monstordh>
thanks
Spami has quit [Quit: This computer has gone to sleep]
<monstordh>
just "bundle install" or do I need to invoke a command of some sort? Like "gems"?
kfpratt has joined #ruby
<pontiki>
bundle is a command
<monstordh>
k. thanks
<monstordh>
doing it now
<monstordh>
Git error: command `git rev-parse e2-fix_toplevel_const_warning` in directory
<monstordh>
has failed.
<monstordh>
If this error persists you could try removing the cache directory
<monstordh>
I don't understand why it's looking at the old ruby
<monstordh>
whoa
<monstordh>
how did that happen?
oldsam has left #ruby [#ruby]
kfpratt has quit [Remote host closed the connection]
<pontiki>
i'm guessing you didn't update the bundler gem for the new ruby either
GriffinHeart has joined #ruby
Muhannad has quit [Ping timeout: 264 seconds]
<monstordh>
if I start a new session, I get 2.2.2 as the version
<monstordh>
I don't understand
<monstordh>
ah…
<monstordh>
it looks like I somehow installed ruby 1.9.3 inside my project :P
<pontiki>
look for a file .ruby-version
<pontiki>
or .rvmrc
fullofcaffeine has quit [Remote host closed the connection]
<monstordh>
got it
<monstordh>
should I just remove that file?
GriffinHeart has quit [Remote host closed the connection]
<monstordh>
it points to the old version
<pontiki>
before you do that, are you sharing this project with anyone else?
<monstordh>
no
<pontiki>
then blast away
<monstordh>
thanks
GriffinHeart has joined #ruby
<pontiki>
if you were working with others on this same set of files, blowing that file away may screw up others
<monstordh>
right
<monstordh>
ok - now it's saying: You have to install Bundler version 1.2 or newer.
EllisTAA has quit [Quit: EllisTAA]
<pontiki>
which version of ruby is active now?
<monstordh>
2.2.2p95
<monstordh>
and I'm in my project
<pontiki>
ok
<monstordh>
I had to start a new session
<pontiki>
do you understand bundler is a gem?
SuMo_D has joined #ruby
<monstordh>
yes
Disconnekted has joined #ruby
<pontiki>
do you understand how to install gems?
<monstordh>
I've done it a few times, but trying to remember at the moment
<monstordh>
sorry - my brain is fizzled
<pontiki>
you've already said it a couple times at least tonight
<monstordh>
gemset?
kfpratt has joined #ruby
<monstordh>
or just rvm?
<monstordh>
ah
<monstordh>
gem install bundler
<monstordh>
yes?
fumihiro has quit [Ping timeout: 246 seconds]
_djbkd has quit [Remote host closed the connection]
Billias has quit [Read error: Connection reset by peer]
prettiestPony11 has joined #ruby
<Disconnekted>
bundler helps with your versioning in your gemfile
prettiestPony11 has quit [Max SendQ exceeded]
<Disconnekted>
gem install 'gemname'
<monstordh>
so… I've installed and ran "bundle install"
<Disconnekted>
that will install all the gems listed in your gemfile
<monstordh>
Disconnekted: thanks
SuMo_D has quit [Ping timeout: 248 seconds]
<monstordh>
question related to gems…
<Disconnekted>
bundle update will update all them gems in your gemfile
<monstordh>
when I install them, do they automatically get installed globally, or just in my project?
<Disconnekted>
are you using rvm or rbenv?
<monstordh>
rvm
<Disconnekted>
You can do it either way, I suggest you check out the rvm docs for best practices. If you have gems that only run on 1.9.3 you will want to have rvm manage them by ruby version instead of global gems
_djbkd has joined #ruby
<Disconnekted>
if all of your ruby projects are 2.2, you would probably be fine using them accross projects
<monstordh>
i see
haraoka has joined #ruby
<Disconnekted>
You can hard code your gem versions in your gemfile, but that is a pain
Billias has joined #ruby
sarkyniin has quit [Remote host closed the connection]
<monstordh>
Disconnekted: right
bricker has joined #ruby
<Disconnekted>
which is where bundle comes in
<monstordh>
So, after I did bundle install I got a bunch of erros
<monstordh>
saying there was a problem with my setup
<monstordh>
The git source git://github.com/guard/listen.git is not yet checked out, etc.
braincrash has quit [Quit: bye bye]
<monstordh>
wait
<monstordh>
sorry.
<monstordh>
that was before I did the bundle install
<monstordh>
pontiki & Disconnekted: Thank you gentlemen for all your help! It's working! :D
* pontiki
is a female type mouse
demoph01n has joined #ruby
* Nilium
is pretty sure he's some sort of bacteria shaped like a parrot
* Disconnekted
agrees
<pontiki>
something has to produce the enzymes that clean up this channel
<Ox0dea>
ice9: Why do you need 1.7.7?
simplyianm has joined #ruby
<Ox0dea>
It uses rb_str_new() where it should use rb_str_new2().
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ice9>
Ox0dea: I'm trying to run an application that requires it
evanjs has joined #ruby
josh2 has quit [Ping timeout: 246 seconds]
fenjamin has joined #ruby
xkef has joined #ruby
demoph01n has quit [Client Quit]
<monstordh>
pontiki++
<monstordh>
Disconnekted++
eggoez has quit [Ping timeout: 240 seconds]
<Ox0dea>
ice9: It's difficult to imagine that such an integral part of Ruby's C API was ever different, so 1.7.7 probably only builds under remarkably lenient compilation flags.
tubuliferous_ has joined #ruby
GitGud has quit [Ping timeout: 264 seconds]
<ice9>
Ox0dea: where should be the dependencies so I can try to change the version?
Blaguvest has quit []
simplyianm has quit [Ping timeout: 256 seconds]
<Ox0dea>
Pardon?
Synthbread has joined #ruby
xkef_ has joined #ruby
mary5030 has joined #ruby
darkf has joined #ruby
<Radar>
ice9: You didn't answer the question :\
mary5030 has quit [Remote host closed the connection]
monstordh has quit [Quit: good night to all...and to all a good night.]
<ice9>
Radar: sorry, which one?
xkef has quit [Ping timeout: 256 seconds]
<Radar>
[13:15:21] <Ox0dea>ice9: Why do you need 1.7.7?
tubuliferous_ has quit [Ping timeout: 256 seconds]
<ice9>
Radar: because like I said, I want to run an app that requires it
<Ox0dea>
ice9: You're certain the application requires 1.7.7?
fullofcaffeine has quit [Remote host closed the connection]
<Ox0dea>
Perhaps they were simply overly pessimistic in specifying the requisite version.
<Ox0dea>
ice9: They almost certainly locked that Gemfile prior to 1.7.7.
GriffinH_ has joined #ruby
<Ox0dea>
1.7.7 will not compile in any remotely sane environment.
GriffinHeart has quit [Read error: Connection reset by peer]
pdoherty has quit [Quit: Leaving]
theery has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MagePsycho_ has quit [Ping timeout: 246 seconds]
Disconnekted has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
eggoez has joined #ruby
zacstewart has quit [Remote host closed the connection]
ohaibbq has joined #ruby
<Ox0dea>
ice9: The incorrect call to rb_str_new() goes way back, so I'm guessing this is a case of the C API pulling the rug out from under the library.
vdamewood has quit [Quit: Life beckons.]
theery has quit [Read error: Connection reset by peer]
<Ox0dea>
You'll either have to upgrade JSON or downgrade Ruby.
<Radar>
Former is easier.
<Ox0dea>
By a long shot.
mary5030 has joined #ruby
LMity has joined #ruby
Xoro has joined #ruby
hasB4K has quit [Ping timeout: 256 seconds]
fenjamin has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
mmasaki has quit [Quit: bye]
SuMo_D has joined #ruby
doctorly has joined #ruby
Musashi007 has joined #ruby
willywos has joined #ruby
mmasaki has joined #ruby
<ice9>
Ox0dea: I have install json 1.8.3 but it get the same err
<Radar>
ice9: that'll update both gems at the same time.
<Ox0dea>
sphex: "Scope gates" are really more like guidelines.
<ice9>
wow
bsdbofh has quit [Quit: bsdbofh]
radialneon has quit [Quit: Leaving]
_blizzy_ has quit [Read error: Connection reset by peer]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peter_paule has joined #ruby
mmasaki has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
mmasaki has joined #ruby
<sphex>
Ox0dea: yeah.. I see that they are completely bypassable with all the class/module methods.
<sphex>
thankfully
<sphex>
I'm guessing ruby didn't fully support lexical closures in the past?
symm- has quit [Ping timeout: 264 seconds]
<sphex>
I guess one good point of the scope gates is that it makes it clear when a method captures some variables or not (and could have extra internal/shared state, etc). makes sense in an heavily OO language.
GriffinHeart has quit [Remote host closed the connection]
<sphex>
Ox0dea: hey thanks! this is much easier to look at than MRI's parse.y. this grammar prolly requires a smart lexer than can resolve some of the ambiguities though... most somewhat complicated languages seem to work like that.
riotjones has joined #ruby
<Ox0dea>
sphex: It was generated from parse.y using the sample/exyacc.rb tool available in the source tree.
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
hahuang61 has quit [Ping timeout: 265 seconds]
hololeap has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
<sphex>
Ox0dea: ah ok. the "mlhs" rules seems to be for "statement-level" assignments. I need to do something like that too.
GriffinHeart has joined #ruby
<Ox0dea>
sphex: Indeed. I believe the "m" indicates "massign", which is an abbreviation of "mass assignment".
<Ox0dea>
Which is, incidentally, not really the correct term.
riotjones has quit [Ping timeout: 256 seconds]
htmldrum_ has joined #ruby
plashchynski has joined #ruby
_djbkd has quit [Quit: My people need me...]
graydot has joined #ruby
leat1 has quit [Remote host closed the connection]
htmldrum_ has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
leat1 has joined #ruby
rushed has joined #ruby
htmldrum has quit [Quit: leaving]
podman has quit [Quit: Connection closed for inactivity]
htmldrum has joined #ruby
graydot has quit [Client Quit]
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
GriffinHeart has quit [Remote host closed the connection]
konsolebox has joined #ruby
<sphex>
Ox0dea: and mlhs for "for" loops too. I assume method parameter destructuring could use the same grammar too but they didn't seem to do that.
tmtwd has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
aganov has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
zacstewart has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
GriffinHeart has joined #ruby
CloCkWeRX has joined #ruby
arturaz has quit [Ping timeout: 256 seconds]
Contigi has joined #ruby
krz has quit [Read error: Connection reset by peer]
mesamoo has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Fezzler has quit [Quit: Leaving]
dfockler has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
krz has joined #ruby
dfockler has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
GriffinHeart has joined #ruby
amclain has quit [Quit: Leaving]
Rickmasta has joined #ruby
saadq has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
fabrice31 has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
eGGsha has joined #ruby
marr has joined #ruby
fabrice31 has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
andikr has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
<cout>
Ox0dea: no I'm building an rspec-to-minitest bridge
<cout>
oh he pinged out :(
robbyoconnor has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has joined #ruby
codecop_ has joined #ruby
codecop_ has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cout>
I want to run a set of rspec examples inside of minitest, which I can successfully do by mirroring each of the rspec examples in a minispec example, but RSpec.configure { |c| c.before(:all) } block isn't getting called automatically, so I'm trying to figure out how to invoke it manually
acke has joined #ruby
tmtwd has quit [Remote host closed the connection]
k3asd` has joined #ruby
tubuliferous_ has joined #ruby
plashchynski has quit [Quit: plashchynski]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
ledestin has joined #ruby
dumdedum has joined #ruby
dgutierrez1287 has joined #ruby
doctorly has quit [Ping timeout: 246 seconds]
jtbandes has joined #ruby
tubuliferous_ has quit [Ping timeout: 248 seconds]
<jtbandes>
is there a way to pass a string to exec which will be used as stdin for the command?
revath has quit [Quit: Leaving.]
revath has joined #ruby
<jtbandes>
I guess that sorta contradicts exec
rdark has joined #ruby
doodleha_ has joined #ruby
Silvr has joined #ruby
eGGsha has quit [Ping timeout: 246 seconds]
blueOxigen has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<bnagy>
jtbandes: look in Open3
niemcu has joined #ruby
dgutierrez1287 has quit [Ping timeout: 250 seconds]
dumdedum has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 250 seconds]
balazs_ has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
doodleha_ has joined #ruby
w1xz has joined #ruby
<jtbandes>
bnagy: can I do something like that but have stdout/err go to the main process's stdout/err?
bluOxigen has quit [Ping timeout: 250 seconds]
<jtbandes>
ah, reopen
<bnagy>
read them and then do stuff with them
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
<bnagy>
you can reopen if you like.. I usually don't bother fwiw
doodleha_ has quit [Read error: Connection reset by peer]
<bnagy>
the examples should get you going
oo_ has quit [Remote host closed the connection]
<jtbandes>
reopen is all i need
zacstewart has joined #ruby
<jtbandes>
but turns out DATA isn't working in this context :/
framling has quit [Quit: zzz]
eytanfb has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
roolo has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
whippythellama has quit [Ping timeout: 246 seconds]
pokky has joined #ruby
pokky has quit [Client Quit]
blueOxigen has joined #ruby
pokky has joined #ruby
bayed has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
doodleha_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
balazs_ has quit [Remote host closed the connection]
pokky has left #ruby [#ruby]
doodleha_ has quit [Read error: Connection reset by peer]
frg133 has joined #ruby
edwinvdgraaf has joined #ruby
blueOxigen has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
irk has quit [Ping timeout: 255 seconds]
edwinvdg_ has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
irk has joined #ruby
keen__________20 has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
thomas has quit [Remote host closed the connection]
thomas has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
keen__________20 has joined #ruby
kfpratt has joined #ruby
Iskarlar has joined #ruby
doodleha_ has joined #ruby
mathie_ has joined #ruby
Iskarlar has quit [Client Quit]
sofija has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
mathie has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
iamninja has joined #ruby
SirCmpwn has quit [Ping timeout: 265 seconds]
doodleha_ has joined #ruby
tvw has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 240 seconds]
MagePsycho_ has joined #ruby
SirCmpwn has joined #ruby
whippythellama has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
tkuchiki has joined #ruby
pokky has joined #ruby
sinkensabe has quit [Remote host closed the connection]
blueOxigen has joined #ruby
doodleha_ has joined #ruby
ruurd has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
MagePsycho_ has quit [Ping timeout: 246 seconds]
bluOxigen has quit [Ping timeout: 252 seconds]
psyprus has quit [Read error: Connection reset by peer]
blueOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
Burgestrand has joined #ruby
msgodf has joined #ruby
bruno- has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
bosma has quit [Quit: Leaving]
Torrieri has quit [Quit: Be back later ...]
bosma has joined #ruby
blueOxigen has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
doodleha_ has joined #ruby
exadeci has joined #ruby
timonv has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
bluOxigen has quit [Read error: Connection reset by peer]
revath1 has joined #ruby
bluOxigen has joined #ruby
leat1 has quit [Remote host closed the connection]
revath has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
iamninja has quit [Ping timeout: 252 seconds]
psyprus has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
doodleh__ has joined #ruby
mercwithamouth has joined #ruby
doodleha_ has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
doodleh__ has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 246 seconds]
Ox0dea has joined #ruby
postmodern has quit [Remote host closed the connection]
<Ox0dea>
You may need to tinker a bit, but that approach should get you there.
<cout>
hmm
<Ox0dea>
jtbandes: DATA is unfortunately file-scoped, but I suppose that's the only way that makes sense.
<cout>
will that do all the ivar saving that hooks do?
eGGsha has joined #ruby
<al2o3-cr>
Iskarlar has joined #ruby
doodleha_ has joined #ruby
<jtbandes>
Ox0dea: should've worked fine, I think it's just a bug with Alfred (from which I'm running the ruby script)
<Ox0dea>
Probably.
<Ox0dea>
jtbandes: Well, if you're trying to access another file's DATA, you're gonna have a bad time.
<jtbandes>
nope, not another file
clamstar has quit [Ping timeout: 265 seconds]
<jtbandes>
the idea was something like "popen3(...){|stdin...| stdin.write DATA.read } __END__ the script I want to run"
doodleha_ has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 248 seconds]
DoubleMalt has joined #ruby
Spami has joined #ruby
leat1 has quit [Remote host closed the connection]
Spami has quit [Changing host]
Spami has joined #ruby
doodleha_ has joined #ruby
leat1 has joined #ruby
chthon has joined #ruby
<shevy>
DATA is weird
<Ox0dea>
jtbandes: I trust this hoop jumping is necessitated by how Alfred works?
matp has quit [Remote host closed the connection]
<jtbandes>
yes, I'm solving the problem by jumping through bash instead of ruby
matp has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
Scroff has joined #ruby
<Ox0dea>
Does Alfred not let you execute Bash?
sinkensabe has joined #ruby
clamstar has joined #ruby
pokky has quit [Quit: pokky]
Scroff has quit [Remote host closed the connection]
lotherk has quit [Remote host closed the connection]
tomphp has joined #ruby
lotherk has joined #ruby
<zenspider>
jtbandes: do you want pipe?
doodleha_ has joined #ruby
<Ox0dea>
That is, will you just be executing the shell script once, or do you wish to "drive" it?
Scroff has joined #ruby
dfoolz has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
krz has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
leat1 has quit [Ping timeout: 248 seconds]
ptierno has quit [Ping timeout: 265 seconds]
mercwithamouth has quit [Read error: Connection reset by peer]
ptierno has joined #ruby
mercwithamouth has joined #ruby
doodleha_ has joined #ruby
Matadoer has quit [Ping timeout: 250 seconds]
tchebb has quit [Ping timeout: 250 seconds]
Tritone has joined #ruby
dfoolz has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
kfpratt has quit [Ping timeout: 244 seconds]
Helheim has quit [Ping timeout: 265 seconds]
theRoUS has quit [Quit: Coyote finally caught me]
leat1 has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
hololeap has joined #ruby
Matadoer has joined #ruby
mikecmpbll has joined #ruby
leat1 has quit [Remote host closed the connection]
Helheim_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
leat1 has joined #ruby
tchebb has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
zacstewart has joined #ruby
edwinvdgraaf has joined #ruby
doodleha_ has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
sinkensabe has quit [Remote host closed the connection]
joonty has joined #ruby
oo_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
joonty has quit [Client Quit]
sinkensabe has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
chthon has quit [Quit: Ex-Chat]
oo_ has joined #ruby
Violentr has joined #ruby
tesuji has joined #ruby
doodleha_ has joined #ruby
atmosx has joined #ruby
Mohan has quit [Ping timeout: 246 seconds]
rushed has quit [Quit: rushed]
ohaibbq has quit [Quit: Leaving...]
devbug has quit [Ping timeout: 256 seconds]
bosma is now known as hodI
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
quimrstorres has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
konsolebox has joined #ruby
joonty has joined #ruby
dhjondoh has joined #ruby
astrobun_ has quit [Ping timeout: 248 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
Helheim_ is now known as Helheim
senayar has quit [Remote host closed the connection]
doodleha_ has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
tvw has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby
konsolebox has quit [Max SendQ exceeded]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
baweaver has joined #ruby
hodI is now known as bosma
white_bear has joined #ruby
dfoolz has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
AlphaAtom has joined #ruby
konsolebox has quit [Max SendQ exceeded]
bigkevmcd has joined #ruby
konsolebox has joined #ruby
Iskarlar has quit [Client Quit]
axl_ has joined #ruby
dfoolz has joined #ruby
Tritone has quit []
arup_r has quit []
psyprus has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
arup_r has joined #ruby
Iskarlar has joined #ruby
<yorickpeterse>
morning
<adaedra>
hi yorickpeterse
edwinvdg_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
Iskarlar has quit [Client Quit]
leat1 has quit [Remote host closed the connection]
mercwithamouth has quit [Quit: Lost terminal]
leat1 has joined #ruby
Iskarlar has joined #ruby
sinkensabe has quit []
oo_ has quit [Remote host closed the connection]
PpPyg has joined #ruby
Hounddog has joined #ruby
<ljarvis>
hi
htmldrum has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
Iskarlar has quit [Client Quit]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Ping timeout: 248 seconds]
edwinvdgraaf has quit [Ping timeout: 255 seconds]
Iskarlar has joined #ruby
Mohan has joined #ruby
eGGsha has joined #ruby
lxsameer has joined #ruby
platzhirsch has joined #ruby
fabrice31 has joined #ruby
doodleha_ has joined #ruby
platzhirsch has left #ruby [#ruby]
Hounddog has quit [Ping timeout: 256 seconds]
oo_ has quit [Ping timeout: 244 seconds]
lxsameer has quit [Client Quit]
doodleha_ has quit [Read error: Connection reset by peer]
TheHodge has joined #ruby
Hounddog has joined #ruby
jenrzzz has joined #ruby
psyprus has joined #ruby
Zai00 has joined #ruby
howdoicomputer has joined #ruby
aphprentice has quit [Remote host closed the connection]
ruurd has joined #ruby
doodleha_ has joined #ruby
baweaver has quit [Remote host closed the connection]
w1xz has quit [Ping timeout: 265 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
postmodern has quit [Changing host]
postmodern has joined #ruby
dubkoidragon has joined #ruby
lxsameer has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuor has joined #ruby
sp1rs has quit [Ping timeout: 248 seconds]
<tuor>
hi, I have installed the 'zabbixapi' gem. I can use it and then get the class ZabbixApi. ZabbixApi includes Templtes wich is a child of Basic. In pry I can see the source of Template. But how can I see the source of Basic?
fabrice31 has quit [Remote host closed the connection]
doodleha_ has joined #ruby
riffraff has joined #ruby
haxrbyte has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
<ljarvis>
?code tuor
<ruboto>
tuor, We can't help you without your code, please post it to https://gist.github.com
astrobun_ has joined #ruby
baweaver has joined #ruby
doodleha_ has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
<tuor>
ljarvis, it's not about code. It's about pry. I can go in /var/lib/gems/1.9.1/gems/ and search my file for reading the source code of a gem. I can do it in pry to. I want to read the sourcecode of the class Basic from this gem: https://github.com/express42/zabbixapi
CloCkWeRX has quit [Quit: Leaving.]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
[k-: I used Greek instead of arbitrarily unique sequences of underscores.
<adaedra>
apeiros: "Way better than PHP or JavaScript"
_djbkd has quit [Remote host closed the connection]
lkba_ has quit [Ping timeout: 250 seconds]
<tuor>
Ox0dea, doing so. :)
howdoicomputer has quit [Ping timeout: 264 seconds]
<apeiros>
adaedra: imo ?isrubybetter -> "yes" :D
reset has joined #ruby
<Ox0dea>
[k-: Codewars uses US-ASCII, though. :( And even after converting it to underscores, it doesn't work in 2.1.6, but I couldn't be arsed to figure out why.
<[k->
it looks way better than mine :p, as in beautiful
<jhass>
tuor: arr1 = arr2.map {|n| n.to_i } or just arr1 = arr2.map(&:to_i)
f4cl3y has joined #ruby
<tuor>
apeiros, thx.
<Ox0dea>
jhass: LRU?
kokut has joined #ruby
<adaedra>
Last Read User or something like that
pabloh has joined #ruby
<jhass>
least recently used ?
<Karpah>
^
Karpah is now known as sevenseacat
<adaedra>
so close
<Ox0dea>
jhass: Right, but you got bit because your tab completion is MRU.
<kokut>
Hi, i never used ruby in my life, is it okay to start with slim or its better to start the hard way?
<jhass>
mh, I guess
que has joined #ruby
<adaedra>
kokut: with slim? what?
casadei_ has quit [Remote host closed the connection]
<kokut>
adaedra: slim template engine
<Ox0dea>
kokut: You're asking if you would be better served by forcing yourself to write raw HTML by hand?
<jhass>
and what's "the hard way"?
Iskarlar has joined #ruby
<adaedra>
I don't see how that helps you learning ruby, kokut
Scroff has joined #ruby
<kokut>
hard way would be to build something like slim template engine myself :p
<que>
can someone help me out ? i need to intall gem. and all the time i have strange output and i don't know what is wrong. after gem install manticore-x-x-x- i got this response
<que>
Unable to resolve dependency: No match for 'manticore (~> 0.3)' on this platform. Found: java
<kokut>
Ox0dea: what u mean?
Xiti has quit [Ping timeout: 252 seconds]
<Ox0dea>
kokut: Nonsensical questions beget nonsensical answers, I suppose.
<adaedra>
kokut: oh woh woh, you may attack to bigger than yourself.
<adaedra>
kokut: state what you want to do, exactly
<kokut>
adaedra: i want to build a couple of websites, some of them are fairly simple, database connections etc, ill need to consume a couple of python and PHP web services
<que>
jhass: to be honest main thing i wanna do is install this . logstash-output-elasticsearch-shield. i was searching for logstash-output-elasticsearch-shield.gemspec but i did not found it. so i planned to install every gem that is needed. so i got stuck in the manticore
<jhass>
see the above link, it's conditional for when you're on jruby
oo_ has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
DeweyD has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
leat1 has joined #ruby
xkef has joined #ruby
<que>
let me download gem with 1.4.2
<adaedra>
kokut: and you want to do it with ruby without knowing the language? Before choosing between slim and whatever, start by looking at some ruby
yfeldblum has quit [Ping timeout: 248 seconds]
kfpratt has joined #ruby
<que>
jhass: pure gem installation gave same result. i would need to download source instead of gem. but source is in version of 1.0.3 and i need in 1.0.0 . is there a way to make one line command and make it work ? idk installing jruby ?
<sevenseacat>
before I learn about wheels, what colour racecar should I buy?
<jhass>
que: did you look up what jruby is yet?
<jhass>
and it's a git repo right? just check out the right tag
Sojiro has quit [Quit: Konversation terminated!]
ndrei has quit [Ping timeout: 246 seconds]
<Ox0dea>
sevenseacat: Such a fantastic distillation of these braindead questions.
oo_ has joined #ruby
barkerd427 is now known as zz_barkerd427
zanloy has quit [Quit: Leaving]
<sevenseacat>
i try.
Violentr has quit [Ping timeout: 248 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<que>
jhass: not really . i got a stack of 5 different software. with 5 different documentation. and superb info that says nothing. simple gem file to downlaod add to plugin that is not working. could not find it on githyb
ndrei has joined #ruby
<que>
now atleast i know i would not install the gem. and even if i build my own. i will get stuck on next step.
stamina has joined #ruby
<que>
czu there is no git for that plugin .
<Ox0dea>
que: What is your philosophical opposition to progress for its own sake?
phutchins2 has joined #ruby
<que>
Ox0dea: would you ask this question in more simpler english.
<jhass>
que: I think you want to ask #logstash. About what you actually want to achieve, not about how to make the solution you've chosen work
<que>
my english is not good enough.
dgutierrez1287 has joined #ruby
yuuvee has joined #ruby
<que>
jhass: i understand i am there. but i came here to understand why after installing gem i failed
yardenbar has quit [Ping timeout: 250 seconds]
<que>
so i am thankfull to show a bit of light on the issue
<jhass>
well, that's answered
<jhass>
manticore is a jruby only dependency
<jhass>
you don't need it on MRI
Xiti has joined #ruby
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
djbkd_ has joined #ruby
xkef_ has joined #ruby
gagrio is now known as gagrio|bomgar
xkef has quit [Ping timeout: 246 seconds]
shredding has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
kp666 has quit [Quit: Leaving]
prestorium has joined #ruby
tkuchiki has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
htmldrum has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
djbkd_ has quit [Ping timeout: 246 seconds]
<kokut>
adaedra: k
prestorium has quit [Client Quit]
nettoweb_ has joined #ruby
leat1 has quit [Remote host closed the connection]
<adaedra>
sevenseacat is green here :v
<sevenseacat>
I am whatever you want me to be.
leat1 has joined #ruby
<adaedra>
even a dog?
<adaedra>
SUPERGREEN!
<sevenseacat>
woof.
* adaedra
throws sevenseacat a bone
nettoweb has quit [Ping timeout: 256 seconds]
Violentr has joined #ruby
yardenbar has joined #ruby
allcentury has joined #ruby
nettoweb has joined #ruby
<Darkwater>
how do I define a method from a module in a class that includes the module?
<Darkwater>
ie. include Foo; bar; (bar is defined from Foo)
<jhass>
def bar
thomas has quit [Quit: leaving]
<jhass>
>> module A; def bar; :module; end; end; class Foo; include A; end; Foo.new.bar
<apeiros>
they use self.included callback and do the extend themselves.
<apeiros>
and that's *bad style*, mkay? :)
<Darkwater>
alright
<Darkwater>
what I want to do is similar to datamapper though
<adaedra>
use extend, all everything will be right
<Darkwater>
I'm basically making models for json objects
<apeiros>
what they do in short: module Foo; def self.included(by_class); by_class.extend ClassMethods; end; module ClassMethods; def my_class_method; end; end; end; class Blapp; include Foo; end
leat1 has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
<adaedra>
apeiros: rule 1 of bad style: we don't talk about bad style.
leat1 has joined #ruby
<apeiros>
what you should do: class Blapp; extend Foo::ClassMethods; end # be explicit
<apeiros>
adaedra: I don't follow your rules then :)
<Darkwater>
so Foo.new gets a hash, some of the children are other objects like these, so call Bar.new with those children
bnizzle has joined #ruby
<adaedra>
how dare you
<Darkwater>
so I'd want to do something like field :user, User
<Darkwater>
which takes obj[:user] in initialize and puts it in @user, and make a reader that returns User.new @user
<Darkwater>
something like that
Pupeno has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
<Darkwater>
let me write up a quick example
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
(not def self.field - class methods of modules are never added, neither through include nor extend)
mozzarel1 has joined #ruby
DEac-_ has joined #ruby
marens_ has joined #ruby
destructure has joined #ruby
cscheib_ has joined #ruby
<Darkwater>
how am I going to define the readers and writers though?
blkperl_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
connor_g1odwolf has joined #ruby
vali has left #ruby [#ruby]
Steve_Jo1 has joined #ruby
Gnubie__ has joined #ruby
Iskarlar has joined #ruby
<apeiros>
I don't know. how would you have done it without using a module?
xkef has joined #ruby
<Darkwater>
simply def it
Scroff has quit [Read error: Connection reset by peer]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Darkwater>
but that would result in lots of repetition
diegoviola has joined #ruby
nateberkopec has joined #ruby
<Darkwater>
so I want to write a helper for it
mikecmpb_ has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
duper` has joined #ruby
fallen_ has joined #ruby
_jasonmit has joined #ruby
<Darkwater>
module Foo; def foo(name); attr_accessor name; end; end is almost what I want
<Darkwater>
how do attr_* work?
<apeiros>
well, that will work
mikecmpbll has quit [Ping timeout: 252 seconds]
<apeiros>
they're methods which define methods
NuckingFuts has joined #ruby
al2o3-cr1 has joined #ruby
que has quit [Quit: Page closed]
<Darkwater>
can I view the source for them somewhere?
<apeiros>
def attr_reader(name); define_method(name) { instance_variable_get(:"@#{name}") }; end
jeramyRR has joined #ruby
\13k_ has joined #ruby
jokke- has joined #ruby
<apeiros>
or: def attr_reader(name); class_eval %{def #{name}; @#{name}; end} end
bartj3_ has joined #ruby
senayar has quit [Remote host closed the connection]
<apeiros>
Darkwater: github.com/ruby/ruby
code_ has quit [Ping timeout: 250 seconds]
zz_Outlastsheep has quit [Ping timeout: 250 seconds]
kokut has quit [Ping timeout: 250 seconds]
redlegion has quit [Ping timeout: 250 seconds]
einarj has quit [Ping timeout: 250 seconds]
nuck has quit [Ping timeout: 250 seconds]
bartj3 has quit [Ping timeout: 250 seconds]
viki__ has quit [Ping timeout: 250 seconds]
mozzarella has quit [Ping timeout: 250 seconds]
tommylommykins has quit [Ping timeout: 250 seconds]
Steve_Jobs has quit [Ping timeout: 250 seconds]
haroldwu has quit [Ping timeout: 250 seconds]
saltsa has quit [Ping timeout: 250 seconds]
headius has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
edwinvdg_ has quit [Ping timeout: 250 seconds]
jokke has quit [Ping timeout: 250 seconds]
alexblom_ has quit [Ping timeout: 250 seconds]
destruct1re has quit [Ping timeout: 250 seconds]
eregon has quit [Ping timeout: 250 seconds]
Ray` has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 250 seconds]
hfp_work has quit [Ping timeout: 250 seconds]
DEac- has quit [Ping timeout: 250 seconds]
super has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
Soda has quit [Ping timeout: 250 seconds]
braincrash has quit [Ping timeout: 250 seconds]
blkperl has quit [Ping timeout: 250 seconds]
CustosLimen has quit [Ping timeout: 250 seconds]
atesec has quit [Ping timeout: 250 seconds]
ujjain has quit [Ping timeout: 250 seconds]
PierreRambaud has quit [Ping timeout: 250 seconds]
Biohazard has quit [Ping timeout: 250 seconds]
Gnubie_ has quit [Ping timeout: 250 seconds]
jasonmit has quit [Ping timeout: 250 seconds]
cscheib has quit [Ping timeout: 250 seconds]
marens has quit [Ping timeout: 250 seconds]
Tarential has quit [Ping timeout: 250 seconds]
connor_goodwolf has quit [Ping timeout: 250 seconds]
xkef_ has quit [Ping timeout: 250 seconds]
\13k has quit [Ping timeout: 250 seconds]
headius_ is now known as headius
hfp__work is now known as hfp_work
jokke- is now known as jokke
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
lkba has joined #ruby
<Darkwater>
alright thanks
<Darkwater>
I'll mess around a bit
dionysus69 has joined #ruby
kokut has joined #ruby
PierreRambaud has joined #ruby
kokut has quit [Max SendQ exceeded]
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
redlegion has joined #ruby
braincrash has joined #ruby
Scrofff has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
Tarential has joined #ruby
sp1rs has quit [Quit: sp1rs]
kokut has joined #ruby
kokut has quit [Max SendQ exceeded]
Ray` has joined #ruby
plashchynski has joined #ruby
eGGsha has joined #ruby
fgo has joined #ruby
sp1rs has joined #ruby
kokut has joined #ruby
kokut has quit [Max SendQ exceeded]
Voker57 has joined #ruby
kokut has joined #ruby
<Darkwater>
alright, I got it
<Darkwater>
thanks for the help
kokut has quit [Max SendQ exceeded]
kokut has joined #ruby
kokut has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 246 seconds]
kokut has joined #ruby
zz_Outlastsheep has joined #ruby
kokut has quit [Max SendQ exceeded]
meinside has joined #ruby
tmtwd has joined #ruby
kokut has joined #ruby
tmtwd has quit [Client Quit]
chinmay_dd has joined #ruby
chipotle_ has quit [Quit: cheerio]
felixr has quit [Quit: Konversation terminated!]
psyprus has quit [Ping timeout: 248 seconds]
DaniG2k has joined #ruby
psyprus has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Papierkorb has joined #ruby
kokut has left #ruby [#ruby]
nateberkopec has quit [Quit: Leaving...]
dionysus69 has quit [Quit: dionysus69]
shredding has joined #ruby
kfpratt has joined #ruby
xcesariox has joined #ruby
howdoicomputer has joined #ruby
endash has joined #ruby
freerobby has joined #ruby
xkef has quit [Ping timeout: 264 seconds]
zz_barkerd427 is now known as barkerd427
Igorshp has quit [Remote host closed the connection]
xkef has joined #ruby
jeramyRR has quit [Quit: Peace out!]
kfpratt has quit [Ping timeout: 240 seconds]
Violentr has joined #ruby
howdoicomputer has quit [Ping timeout: 244 seconds]
rikkipitt has joined #ruby
konsolebox has joined #ruby
joonty has quit [Quit: joonty]
Muhannad has joined #ruby
renderful has joined #ruby
astrobun_ has joined #ruby
xkef has quit [Ping timeout: 246 seconds]
CloCkWeRX1 has quit [Quit: Leaving.]
mary5030 has joined #ruby
howdoicomputer has joined #ruby
plashchynski has quit [Quit: plashchynski]
renderful has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
xkef has joined #ruby
yuuvee is now known as yuuvee|away
yuuvee|away is now known as yuuvee
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
plashchynski has joined #ruby
barkerd427 is now known as zz_barkerd427
Igorshp has joined #ruby
<denym_`>
Hey Guys! Question: How can I change a key in a yaml dump? I know I can change the value with data['key'] but how to change the key name itself?
edwinvdg_ has joined #ruby
<apeiros>
?guys denym_`
<ruboto>
denym_`, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<apeiros>
you say in a dump (which means you have text), yet you ask about data['key'], which implies not yet dumped - what is it now?
mary5030 has quit [Remote host closed the connection]
<denym_`>
apeiros: Sorry about my impolite assumption! I have a yaml file and I read it into a data variable... So I knwo that I can change the value of a key with data['key'] but I want to change the key itself
mhib has joined #ruby
<apeiros>
ok, then it's no longer a dump ;-)
edwinvdgraaf has quit [Ping timeout: 264 seconds]
xkef has quit [Ping timeout: 255 seconds]
<tuor>
The Problem is: undefined method `query' for #<ZabbixApi::Templates:0x00000002f75830>
<apeiros>
denym_`: so data is a Hash? (yaml can store anything)
<denym_`>
yeah its a hash
ndrei has joined #ruby
<apeiros>
and you want the data in data['key'] to be stored in data['newkey']? data['newkey'] = data.delete('key')
<denym_`>
Was thinking about doing it with regex but maybe there is a simple yaml solution for that
<apeiros>
denym_`: you should get clear on what you have, really.
<apeiros>
regex works for text, not datastructures
krz has quit [Read error: Connection reset by peer]
<apeiros>
the *dump* is text, the *loaded data* is not.
<denym_`>
I just want to change the name of a key
teotwaki has quit [Ping timeout: 246 seconds]
jaxxstorm has quit [Ping timeout: 246 seconds]
<Violentr>
try to doit with merge method
<denym_`>
For example I have a key that is named 'name' and I want it to be 'first_name'
<apeiros>
14:16 apeiros: and you want the data in data['key'] to be stored in data['newkey']? data['newkey'] = data.delete('key')
<apeiros>
denym_`: ^
<apeiros>
again, that implies you have the data loaded. you're being very fuzzy on that.
Dwarf has quit [Ping timeout: 246 seconds]
<adaedra>
this will delete what is in data['newkey'] though, be careful.
dabradley has quit [Ping timeout: 264 seconds]
plashchynski has quit [Quit: plashchynski]
Zai00 has joined #ruby
xkef has joined #ruby
arooni-mobile has joined #ruby
<denym_`>
Regardless if I have it loaded or not... I have a yaml file and I want the key name change. The example I gave was just to explain it what I want to change
_blizzy_ has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
<apeiros>
-.-
teotwaki has joined #ruby
<apeiros>
seriously, do I talk in japanese or something?
<sevenseacat>
apeiros: no, but you also dont talk in noob.
arup_r has joined #ruby
felixr has joined #ruby
tubuliferous_ has joined #ruby
<apeiros>
denym_`: do you understand the difference between a) a file on your disk, b) a string loaded into ruby and c) a datastructure in ruby?
<denym_`>
ok easier for you to understand! How do I change a key name in a hash?
<apeiros>
Darkwater: ah, you want the class method ::field, and the instance method #initialize to be added by include/extend Something?
segfalt has quit [Quit: segfalt]
<Darkwater>
yeah
<apeiros>
I'd probably have two modules, one for extend and one for include
gagrio|bomgar is now known as gagrio|bluejeans
<apeiros>
the one for include defines initialize
<Darkwater>
that would look pretty ugly imo
<Darkwater>
think I can see why datamapper does the extend for you
<apeiros>
well, then the other two routes are subclass instead of module, or use the same included/extended hack as DM
<apeiros>
I find the latter more ugly than having to manually include/extend
<Darkwater>
I think a subclass would make the most sense tbh
<Darkwater>
since it's basically just a type
<Darkwater>
lemme try
<apeiros>
subclass disables a couple of nice things, though.
<Darkwater>
like what?
DaniG2k has quit [Quit: leaving]
<apeiros>
you're forced to inherit from a specific class. means you can't subclass from your own class.
<apeiros>
I don't have good examples for that handy
hanyn has joined #ruby
<Darkwater>
eh, doesn't sound like something I'll need for this anyway
haneen has quit [Read error: Connection reset by peer]
peeja has joined #ruby
<Darkwater>
I could almost use a struct for this
haneen has joined #ruby
hashrocket has joined #ruby
<apeiros>
I guess you have your solution then :)
<Darkwater>
think so too \o/
Igorshp has quit [Remote host closed the connection]
<Darkwater>
wonder why I thought this wouldn't work earlier
jakecodes has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
<Darkwater>
still nice though, learnt a lot about modules and include/extend
<nofxx>
not ruby per se but arch that's going to be written in ruby: working on an app that the company will have just one public page and a big admin area. Want to split this concepts: myapp.com/company (public) domain.myapp.com (admin). Sounds good? Too confuse?
allcentury has quit [Ping timeout: 246 seconds]
<nofxx>
company.myapp.com*
arup_r has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prestorium has joined #ruby
melter has joined #ruby
hanyn has quit [Ping timeout: 256 seconds]
Iskarlar has joined #ruby
vondruch has quit [Quit: Ex-Chat]
victortyau has joined #ruby
Zai00 has quit [Quit: Zai00]
yqt has quit [Ping timeout: 252 seconds]
davejlong has joined #ruby
Timba-as has joined #ruby
jakecodes has left #ruby [#ruby]
Kully3xf_ has joined #ruby
arooni-mobile has joined #ruby
victortyau has quit [Read error: Connection reset by peer]
fabrice31_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
Zai00 has joined #ruby
Kully3xf has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
davejlong has quit [Client Quit]
davejlong has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp_ has joined #ruby
gagrio|bluejeans is now known as gagrio
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whippythellama has quit [Ping timeout: 246 seconds]
<jhass>
I think such a split could be an artifact of a couple of architectures, but says nothing about the application architecture on its own
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
griffindy has joined #ruby
doertedev has joined #ruby
tennis_ has quit [Remote host closed the connection]
rflappo has joined #ruby
<rflappo>
Hi, people!
howdoicomputer has joined #ruby
workmad3 has joined #ruby
<jhass>
hi
stantonnet has joined #ruby
rikkipitt has quit [Quit: Leaving...]
Igorshp_ has quit [Read error: Connection timed out]
konsolebox has joined #ruby
Igorshp has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
bhorn1|away is now known as bhorn1
dhjondoh has quit [Remote host closed the connection]
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
msgodf has quit [Ping timeout: 264 seconds]
yqt has joined #ruby
void has joined #ruby
devdazed has joined #ruby
mhib has quit [Quit: Leaving]
kfpratt has joined #ruby
mhib has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
devdazed has quit [Client Quit]
konsolebox has quit [Max SendQ exceeded]
Scroff has joined #ruby
Zamyatin has joined #ruby
hoov has joined #ruby
konsolebox has joined #ruby
Scrofff has quit [Ping timeout: 246 seconds]
<ljarvis>
hello
havenwood has joined #ruby
willywos has joined #ruby
bmurt has joined #ruby
whippythellama has joined #ruby
kfpratt has quit [Ping timeout: 265 seconds]
<andrefreitas>
hi
dhjondoh has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
dangerousdave has joined #ruby
quimrstorres has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
jerius has joined #ruby
allcentury has joined #ruby
Xiti has quit [Quit: Xiti]
sanguisdex has quit [Quit: Leaving.]
thiagovsk has joined #ruby
eggoez has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
void has left #ruby [#ruby]
fgo has quit [Ping timeout: 240 seconds]
chinmay_dd has joined #ruby
sgambino has joined #ruby
freerobby has quit [Quit: Leaving.]
arooni-mobile has quit [Ping timeout: 248 seconds]
sanguisdex has joined #ruby
Disconnekted has joined #ruby
howdoicomputer has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
radialneon has joined #ruby
<apeiros>
Darkwater:
MagePsycho_ has joined #ruby
<Darkwater>
I should get an emoji font
<apeiros>
heh, yeah. it was a thumb-up
<apeiros>
s/was/is/
<Darkwater>
yeah I've found a way to find that out
<Darkwater>
graphemica.com/<character>
rbennacer has joined #ruby
radialneon_ has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
fgo has joined #ruby
rbennacer has joined #ruby
eGGsha has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Xiti has joined #ruby
kfpratt has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
umgrosscol has joined #ruby
prefixed has joined #ruby
thelastinuit has joined #ruby
koos303 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<tuor>
Hi, my code: https://gist.github.com/anonymous/3f1df089643b1169b58b, I write A strings each to a file. I want to store more information about that string on my harddisk (for example in a second file). One file contains the String, a second conains more informations. Can I store an Object to a file? Or something linke this?
Jackneill has joined #ruby
wildroman2 has joined #ruby
hj2007 has joined #ruby
luriv has quit [Remote host closed the connection]
konsolebox has joined #ruby
kfpratt has quit [Ping timeout: 240 seconds]
luriv has joined #ruby
<Darkwater>
tuor: for hashes and arrays you can use json
<Darkwater>
there's also yaml but I'm not sure what that's for
<ljarvis>
lol
<tuor>
Darkwater, Ah yes json would be nice. thx.
yuuvee is now known as yuuvee|away
<Darkwater>
require 'json'
yuuvee|away is now known as yuuvee
<shevy>
tuor several ways, Marshal.dump() would be one
<Darkwater>
obj.to_json
eggoez has joined #ruby
<tuor>
Darkwater, obj.to_json -> String?
<Darkwater>
yup
<tuor>
ok thx.!
<Darkwater>
on hashes and arrays (and a few others, string etc) at least
wildroman2 has quit [Ping timeout: 255 seconds]
bungoman has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
<ljarvis>
tuor: also, you should close your file after you're done writing to it
senayar has joined #ruby
<ljarvis>
or use the block form
<ljarvis>
or use `File.write(file, contents)`
<ljarvis>
&ri File.write
<ljarvis>
adaedra: :(
duggiefresh has joined #ruby
renanoronfle has quit [Quit: Leaving]
mjuszczak has joined #ruby
malconis has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Remote host closed the connection]
MagePsycho_ has quit [Quit: MagePsycho_]
mikecmpb_ is now known as mikecmpbll
mesamoo has joined #ruby
bungoman has joined #ruby
quimrstorres has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
minver has quit [Ping timeout: 246 seconds]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
ta has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 248 seconds]
<tuor>
ljarvis, ah have noticed that i forgott it and added the export_file.close
GhettoCode has joined #ruby
revath has quit [Read error: No route to host]
Feyn has quit [Quit: Leaving]
prestorium has joined #ruby
revath has joined #ruby
nettoweb has joined #ruby
fullofcaffeine has joined #ruby
wildroman2 has joined #ruby
quimrstorres has quit [Ping timeout: 240 seconds]
<lupine>
hurrah, brighton ruby
nateberkopec has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
cpruitt has joined #ruby
* ljarvis
is missing it :(
revath has quit [Ping timeout: 252 seconds]
<adaedra>
ljarvis: `derpy's on #ruby-offtopic only, didn't want to walk into ruboto's territory. I may bring it if apeiros' ok before he integrates the ri function into ruboto
endash has quit [Quit: endash]
* lupine
is just getting it booked :D
bodzio has quit [Quit: Leaving.]
<ljarvis>
yeah that link isn't actually working anyway
<lupine>
hotels and whatnot
<adaedra>
oh
devdazed has joined #ruby
fullofcaffeine has quit [Ping timeout: 248 seconds]
tennis has joined #ruby
<ljarvis>
lupine: where are you travelling from? my collegues are going but I'm missing this one (last year was good)
<lupine>
york
<ljarvis>
ah not far
<lupine>
you'd think so, but uktrains make it 4 hours
<lupine>
brussels is about that far :d
<apeiros>
adaedra: go ahead
<adaedra>
ok
<ljarvis>
yeah I meant not far as in not abroad :)
tennis has quit [Remote host closed the connection]
<ljarvis>
and yeah the trains are a bit annoying (also I work for a train company so visit this pain quite often)
<ljarvis>
Brighton from where I live is a bit annoying by train
tennis has joined #ruby
dfockler has joined #ruby
lavros has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
`derpy has joined #ruby
tennis has quit [Remote host closed the connection]
mikecmpbll has quit [Remote host closed the connection]
tennis has joined #ruby
mdarby has joined #ruby
plashchynski has joined #ruby
* wasamasa
visited brighton once
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
dfockler has quit [Ping timeout: 248 seconds]
<diegoviola>
why I can't do "string".to_a anymore?
arup_r has quit []
sepp2k has joined #ruby
<adaedra>
what do you want it to do? Get characters?
axl_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
prestorium has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
tjohnson has joined #ruby
<shevy>
diegoviola perhaps "abc".split(//).to_a
flujan has joined #ruby
<adaedra>
srsly shevy
<adaedra>
.chars
intinig has quit [Remote host closed the connection]
bodzio has joined #ruby
dopie has joined #ruby
jzigmund has joined #ruby
intinig has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
<flujan>
Hello guys, I am using the mail gem to send e-mails. I need to get the SMTP errors and reply codes and process it. How can I perform it using the mail gem?
<olas>
what would take less memory, an array or arrays or an array of hashes?
<olas>
when there will be many small arrays/hashes
<flujan>
adaedra: it is not raising. I am trying to send to a wrong mail address. And nothing is happening.
danzilio has quit [Quit: My laptop is going to sleep!]
<adaedra>
They do different things olas, before being different at memory usage, olas
quimrstorres has joined #ruby
<olas>
i'd use them in a similar way
kfpratt has joined #ruby
<olas>
just direct element access
<adaedra>
flujan: are you sure your SMTP server returns an error in this case? SMTP receiver may silently ignore or send a reply mail afterwards
desigx has joined #ruby
intinig has quit [Ping timeout: 244 seconds]
prefixed has joined #ruby
bf4 has joined #ruby
aytch has quit [Ping timeout: 264 seconds]
werelivinginthef has joined #ruby
<flujan>
adaedra: So my smtp server should raise this error? And I am receiving the reply message with the error.
zz_barkerd427 is now known as barkerd427_
tagrudev has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
bf4 has quit [Client Quit]
_blizzy_ has quit [Read error: Connection reset by peer]
bodzio has joined #ruby
<olas>
so if i had to create a ton of array or hashes which would take less memory?
danzilio has joined #ruby
foureight84 has joined #ruby
<adaedra>
flujan: your SMTP server will only return an error if next server (normally receiver) gives you an error. It may also accept the mail saying that everything is okay and reject it anyway, in that case you won't get an error – as, in the point of view of your smtp relay, there are no errors.
<yxhuvud>
olas: arrays. They are basically C arrays behind the scene.
doctorly has joined #ruby
<olas>
hmm ok
beef-wellington has joined #ruby
<adaedra>
If a traditionnal mail client – Mail.app, Outlook, Evolution, Thunderbird, whatever. – can send without errors (mail received afterwards don't count), then there is no error.
freerobby has joined #ruby
<adaedra>
You say you get a mail, so it seems the server is ignoring the error for latter notice.
<adaedra>
later*
jgpawletko has joined #ruby
_blizzy_ has joined #ruby
jgpawletko has joined #ruby
paulcsmith has joined #ruby
<lupine>
olas, one thing to watch for is triggering lots of GC scans through progressively creating piles of things
sp1rs has quit [Ping timeout: 255 seconds]
<lupine>
'though ruby's smarter at this than it used to be
prestorium has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
freerobby has quit [Client Quit]
jbw has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
plashchynski has joined #ruby
freerobby has joined #ruby
jpfuentes2 has joined #ruby
leat1 has quit [Remote host closed the connection]
plashchynski has quit [Client Quit]
leat1 has joined #ruby
axl_ has quit [Remote host closed the connection]
hinbody has joined #ruby
[k- has quit [Ping timeout: 255 seconds]
Kully3xf has joined #ruby
jbw has joined #ruby
Igorshp has joined #ruby
tubuliferous_ has joined #ruby
howdoicomputer has joined #ruby
keeguon has joined #ruby
plashchynski has joined #ruby
Kully3xf_ has quit [Ping timeout: 255 seconds]
<keeguon>
Hey, any sexp expert in the room?
[k- has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Konversation terminated!]
senayar has joined #ruby
<jhass>
?anyone
<ruboto>
Just ask your question, if anyone has or can, they will respond.
<apeiros>
dang
<apeiros>
too slow :D
andikr has quit [Remote host closed the connection]
<adaedra>
jhass 1 – 0 apeiros
<keeguon>
Well, say I have a :defs node in a sexp would it be possible to easily manipulate it to transform it into a :defn node?
axl_ has joined #ruby
davedev24 has joined #ruby
krz has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
howdoicomputer has quit [Ping timeout: 244 seconds]
riotjones has quit [Remote host closed the connection]
chrissonar has quit [Remote host closed the connection]
<keeguon>
If you want some context I’m moving methods (both static and instance) from a class based on a regexp and I’m using ruby_parser for doing so to detect the nodes and I hit a wall when I want to move static methods (:defs node) into the module since I have to put them in a submodule “ClassMethods” and transforming them into a :defn node in the said submodule
momomomomo has joined #ruby
niemcu has quit [Ping timeout: 246 seconds]
fabrice31_ has joined #ruby
n008f4g__ has quit [Ping timeout: 255 seconds]
revath has joined #ruby
fabrice31 has quit [Ping timeout: 267 seconds]
davejlong has quit [Remote host closed the connection]
teotwaki has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
OrbitalKitten has joined #ruby
<bhorn1>
Hey guys I'm trying to use RGBA values to change the background of a gtk3 gui I've created.
<bhorn1>
It seems the color I receive ends up being MUCH lighter than what it should be via the RGBA code. Does anyone know wha tmight cause this?
<tuor>
ljarvis, how to know all the "signe"= methods?
jobewan has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
<tuor>
which can be used like this?
prefixed has joined #ruby
eggoez has joined #ruby
decoponio has joined #ruby
<arup_r>
Inside one of my class, I am doing zip/unzip/file read/write ... so there can be lots of exceptions happen. Instead of handling them one by one, I am thinking to catch it and then reraise it with actual exception message. And the finally handle it and print it in the log.. Am I doing it right way ?
<ljarvis>
tuor: I'm not sure, all valid operators maybe
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kfpratt has joined #ruby
nettoweb has joined #ruby
<ljarvis>
arup_r: never (pretty much) rescue Exception
jottr has joined #ruby
tvw has quit [Remote host closed the connection]
Yiota has joined #ruby
<arup_r>
Ok.. But then what I do ? I don't have idea.. what are the different kind of exceptions can be raise from there..?
<arup_r>
last `?` is actually `.` :)
<prefixed>
how do you combine something like "data.each { |x| puts x }" with conditionals?
aganov has quit [Quit: Leaving]
<arup_r>
prefixed, didn't get you
pothibo has joined #ruby
Kully3xf_ has joined #ruby
MagePsycho_ has joined #ruby
pothibo has quit [Client Quit]
<prefixed>
how do I do puts x if some condition is fulfilled?
arashb has joined #ruby
<tuor>
ljarvis, ah ok.
<arup_r>
you want conditional inside the block or outside the block.. or something else?
<prefixed>
inside
<ljarvis>
?code prefixed
<ruboto>
prefixed, We can't help you without your code, please post it to https://gist.github.com
paulcsmith has quit [Quit: Be back later ...]
shtirlic_ has quit [Ping timeout: 240 seconds]
<ljarvis>
arup_r: you should know what those 2 lines could raise
<arup_r>
data.each { |x| puts x if condition }
BigRonnieRon has joined #ruby
<prefixed>
ljarvis uh, data.each { |x| puts x }
paulcsmith has joined #ruby
Kully3xf has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<ljarvis>
right, wrong factoit
<ljarvis>
?fake
<ruboto>
Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<ljarvis>
anyway
<arup_r>
ljarvis, that's tough to know.. or else I don't know ... any hints..
<ljarvis>
puts x if condition is fine
senayar has quit [Remote host closed the connection]
gambl0re has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<ljarvis>
arup_r: at the very least, just use rescue => e which rescues from StandardError and not Exception which is the root (of all evil)
<adaedra>
Evil!
<arup_r>
ok..
<ljarvis>
arup_r: the reason is that other none standard exceptions inherit from Exception, which your program will rescue (i.e SyntaxError, LoadError, Interrupt, etc)
shtirlic has joined #ruby
lavros_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
eggoez has quit [Ping timeout: 256 seconds]
<arup_r>
makes sense
jbw has quit [Ping timeout: 250 seconds]
acke has quit [Quit: Leaving...]
podman has joined #ruby
lavros has quit [Ping timeout: 256 seconds]
jbw has joined #ruby
sarkyniin has joined #ruby
andrefreitas has quit [Quit: Lost terminal]
dANO_ has quit []
SuMo_D has joined #ruby
eggoez has joined #ruby
Violentr has quit [Ping timeout: 256 seconds]
sarkyniin has quit [Remote host closed the connection]
casadei_ has joined #ruby
fullofcaffeine has joined #ruby
sarkyniin has joined #ruby
intinig has quit [Remote host closed the connection]
intinig has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
astrobun_ has quit [Remote host closed the connection]
dfockler has joined #ruby
howdoicomputer has joined #ruby
lessless has joined #ruby
dgutierrez1287 has joined #ruby
SuMo_D has quit [Ping timeout: 248 seconds]
<tuor>
hi, how can I write this shorter/simpler: hash={"a"=>1, "b"=>2}; hash.select {|k,v| v==hash.values.max}.keys[0]
keeguon has quit [Quit: keeguon]
TomyWork has quit [Ping timeout: 264 seconds]
<tuor>
I want to get the key which value is the biggest number.
<jhass>
hash.max_by {|_, v| v }.first
fabrice31 has quit [Remote host closed the connection]
intinig has quit [Ping timeout: 256 seconds]
Kully3xf has joined #ruby
<ljarvis>
max_by(&:last).first
lsmola has quit [Ping timeout: 252 seconds]
willywos has quit [Ping timeout: 265 seconds]
Kully3xf_ has quit [Ping timeout: 255 seconds]
<tuor>
wow. I have to read the doc of max_by first. :)
konsolebox has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
howdoicomputer has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
pfish has joined #ruby
twistedpixels has quit [Max SendQ exceeded]
drewvanstone has joined #ruby
kinduff has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
blackmesa has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
shredding has quit [Read error: Connection reset by peer]
twistedpixels has quit [Max SendQ exceeded]
phutchins has joined #ruby
keeguon has joined #ruby
twistedpixels has joined #ruby
<Senjai>
Good morning ruby
Scroff has quit [Remote host closed the connection]
<kinduff>
Morning Senjai
<tuor>
Oh have to go, sry. Thx for answering. good night.
riotjones has quit [Ping timeout: 252 seconds]
connor_g1odwolf is now known as connor_goodwolf
connor_goodwolf has quit [Quit: Reconnecting]
<pfish>
So I am trying to get a memory address of a ruby object (written in ruby) from c code (ie, in my own extension library)... Is there a way to so this?
connor_goodwolf has joined #ruby
danzilio has joined #ruby
doctorly has quit [Ping timeout: 252 seconds]
<ljarvis>
"writter in ruby" what does that mean?
icebourg has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
workmad3 has quit [Ping timeout: 246 seconds]
speaking1ode has joined #ruby
<pfish>
So I wrote a ruby class in C
Scroff has joined #ruby
<pfish>
And I have a .rb file that I am using that class in
anisha has quit [Quit: Leaving]
<pfish>
and I want that ruby class to be able to get the memory address of an object
<ljarvis>
you know that's incredibly implementation specific right?
<pfish>
yes
Scroff has quit [Read error: Connection reset by peer]
<pfish>
im working on posix gcc
Scroff has joined #ruby
<pfish>
im guessing there is now easy way to do this then?
lxsameer has quit [Quit: Leaving]
<ljarvis>
you can abuse object_id
rflappo has quit [Ping timeout: 255 seconds]
Alayde has joined #ruby
<ljarvis>
but there's no way to tell if it will break in a future implementation, and it'll only work on mri
pdoherty has joined #ruby
snockerton has joined #ruby
msnyon has joined #ruby
<pfish>
ive heard object id doesnt work in certain cases though
<ruboto>
apeiros, I stand corrected that ops is to call for ops use the !ops command. You can find a list of channel staff on http://ruby-community.com/pages/irc_staff
quimrstorres has joined #ruby
bsdbofh has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yqt has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
<ljarvis>
shevy: yes
edwinvdg_ has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
gambl0re has joined #ruby
davejlong has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
Scrofff has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
<valkyrka>
does anyone have any idea what might be wrong?
eGGsha has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
joelataylor has joined #ruby
[Butch] has joined #ruby
SuMo_D has quit [Remote host closed the connection]
nanSTA has joined #ruby
flujan has joined #ruby
flujan has quit [Client Quit]
luriv has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
edwinvdg_ has quit [Remote host closed the connection]
Lucky_ has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
segfalt has quit [Quit: segfalt]
edwinvdgraaf has joined #ruby
ruby-lang077 has joined #ruby
pdoherty has quit [Quit: Leaving]
workmad3 has joined #ruby
<jhass>
valkyrka: Please refer to #redmine for questions about it
chipotle has joined #ruby
Spami has joined #ruby
beef-wellington has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 244 seconds]
sanguisdex has quit [*.net *.split]
thiagovsk has quit [*.net *.split]
whippythellama has quit [*.net *.split]
Zai00 has quit [*.net *.split]
jaxxstorm has quit [*.net *.split]
Dwarf has quit [*.net *.split]
Tarential has quit [*.net *.split]
Cust0sLim3n has quit [*.net *.split]
einarj_ has quit [*.net *.split]
stamina has quit [*.net *.split]
sdothum has quit [*.net *.split]
hollywood has quit [*.net *.split]
jokester has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
halfdan has quit [*.net *.split]
petems has quit [*.net *.split]
sarlalian has quit [*.net *.split]
hollywood has joined #ruby
sanguisdex has joined #ruby
jaxxstorm has joined #ruby
Tarential has joined #ruby
jokester has joined #ruby
ddfreyne has joined #ruby
JimmyNeutron has joined #ruby
whippythellama has joined #ruby
stamina has joined #ruby
joonty has quit [Quit: joonty]
einarj has joined #ruby
Cust0sLim3n has joined #ruby
Zai00 has joined #ruby
spider-mario has joined #ruby
evanjs has quit [Read error: Connection reset by peer]
sarlalian has joined #ruby
Ilyas has joined #ruby
quimrstorres has joined #ruby
sdothum has joined #ruby
revath has quit [Ping timeout: 264 seconds]
luriv has joined #ruby
jottr has joined #ruby
Dwarf has joined #ruby
<hanmac>
shevy did you checkout rwx commits? the last one add specs for Image and other classes, where i add the #hash method ;P (hashing is fun ;P)
sarkyniin has quit [Ping timeout: 244 seconds]
<[k->
how does hashing in Ruby work
thiagovsk has joined #ruby
<Senjai>
[k-: broad question is broad :P
petems has joined #ruby
halfdan has joined #ruby
<[k->
Object#hash?
<ccooke>
[k-: you'll have to help us in that. What sort of hashing do you mean?
<shevy>
hanmac not yet, I am kinda slow. for 2015 I lowered my own barrier and simply shall finish all unfinished rewrites of ruby projects that I have
kfpratt has quit [Remote host closed the connection]
<hanmac>
[k- #hash and #eql? are used when using objects as keys in Hash
<[k->
shevy!
<[k->
I mean how does Ruby come up with the number
pengin has quit [Remote host closed the connection]
segfalt has joined #ruby
konsolebox has quit [Quit: Leaving]
plashchynski has quit [Client Quit]
fenjamin has quit [Ping timeout: 264 seconds]
MagePsycho_ has joined #ruby
blackmesa has joined #ruby
bsdbofh has joined #ruby
bodzio has quit [Quit: Leaving.]
finisherr has joined #ruby
RatelDev has joined #ruby
postmodern has joined #ruby
rdark has quit [Quit: leaving]
platzhirsch has quit [Quit: Leaving.]
keen__________21 has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
platzhirsch1 has joined #ruby
RatelDev has quit [Quit: Leaving]
zz_Outlastsheep is now known as Outlastsheep
RatelDev has joined #ruby
finisherr has quit [Client Quit]
EllisTAA has quit [Quit: EllisTAA]
prestorium has quit [Quit: Konversation terminated!]
arashb has quit [Remote host closed the connection]
blaines_ has quit [Ping timeout: 246 seconds]
howdoicomputer has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
minver has joined #ruby
shadoi has joined #ruby
keen__________20 has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
finisherr has joined #ruby
fmcgeough has joined #ruby
quimrstorres has joined #ruby
intinig has joined #ruby
RatelDev has quit [Client Quit]
<minver>
What is best practice when it comes to inclusion of modules. I'm building a gem where the user can include a module to their models but I don't want to override or conflict with common method names. Should I prefix them with gemname_methodname or just prefix them with _methodname?
RatelDev has joined #ruby
ta has quit [Remote host closed the connection]
pengin has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
<bricker>
minver: I like when gems just give you a proxy method, so it doesn't pollute your models
<bricker>
like elasticsearch, Article.__elasticsearch__.*
<bricker>
or carrierwave does a similar thing
RatelDev has quit [Client Quit]
<jhass>
or even question if you need to include at all
<jhass>
keep the interface you include minimal, but don't obscure it
<minver>
bricker: Thanks, that's a good idea
<jhass>
if you need private helper methods or such, do that in a separate class and delegate there
gizmore has joined #ruby
RatelDev has joined #ruby
vdamewood has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
AviShastry has quit [Quit: AviShastry]
AviShastry has joined #ruby
AviShastry has quit [Client Quit]
finisherr has quit [Quit: finisherr]
devbug has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
pietr0 has joined #ruby
davejlong has joined #ruby
finisherr has joined #ruby
k3asd` has joined #ruby
EllisTAA has joined #ruby
tubuliferous_ has joined #ruby
doertedev has quit [Quit: Lost terminal]
theery has quit [Remote host closed the connection]
gsd has joined #ruby
Kyhz has joined #ruby
gsd has quit [Client Quit]
workmad3 has quit [Ping timeout: 256 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
theery has joined #ruby
JoshL has quit [Read error: No route to host]
JoshL has joined #ruby
bhorn1 is now known as bhorn1|away
baweaver has joined #ruby
peeja has joined #ruby
<prefixed>
topKEK
freerobby has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
jhack has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
yqt has quit [Ping timeout: 252 seconds]
ruurd has joined #ruby
kjones_ has joined #ruby
Scroff has joined #ruby
SuMo_D has joined #ruby
bhorn1|away is now known as bhorn1
webopsx has joined #ruby
tchebb has quit [Read error: Connection reset by peer]
webopsx has quit [Max SendQ exceeded]
ta has joined #ruby
kjones_ has quit [Client Quit]
pengin has quit [Remote host closed the connection]
webopsx has joined #ruby
ndrei has joined #ruby
finisherr has joined #ruby
leat1 has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
leat1 has joined #ruby
kinduff has quit [Quit: Lost terminal]
amargherio has joined #ruby
intinig has quit [Remote host closed the connection]
pengin_ has joined #ruby
intinig has joined #ruby
prestorium has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
drewo has quit [Ping timeout: 244 seconds]
withnale__ has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 256 seconds]
EllisTAA has quit [Quit: EllisTAA]
ruurd has quit [Quit: ZZZzzz…]
mjuszczak has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
intinig has quit [Ping timeout: 240 seconds]
finisherr has quit [Quit: finisherr]
zacstewa_ has quit [Remote host closed the connection]
queequeg1 has quit [Remote host closed the connection]
dopie has joined #ruby
kfpratt has quit [Remote host closed the connection]
yfeldblum has joined #ruby
finisherr has joined #ruby
nanSTA has quit [Ping timeout: 248 seconds]
Casty has joined #ruby
dgutierrez1287 has joined #ruby
lkba has joined #ruby
RatelDev has quit [Quit: Leaving]
pengin_ has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhack has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<prefixed>
how do you combine something like "data.each { |x| puts x }" with conditionals? data is an array of some stuff
felixr has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
koos303 has quit [Quit: Connection closed for inactivity]
<Ox0dea>
prefixed: Array#select/#reject.
framling has joined #ruby
finisherr has quit [Quit: finisherr]
allomov has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
yqt has joined #ruby
Scroff has quit [Remote host closed the connection]
hololeap has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
spider-mario has joined #ruby
intinig has joined #ruby
tuelz has quit [Ping timeout: 252 seconds]
Authenticator has joined #ruby
allomov has quit [Ping timeout: 264 seconds]
lkba_ has joined #ruby
baweaver has quit [Remote host closed the connection]
zacstewart has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
pfish has quit [Ping timeout: 246 seconds]
edwinvdgraaf has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
platzhirsch1 has left #ruby [#ruby]
Scroff has joined #ruby
pietr0_ has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
JakFrist has joined #ruby
intinig has quit [Remote host closed the connection]
rushed has joined #ruby
intinig has joined #ruby
Carnage\ has joined #ruby
DoubleMalt has joined #ruby
njection has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 246 seconds]
pietr0_ is now known as pietr0
jackjackdripper has joined #ruby
tuelz has joined #ruby
foertter has joined #ruby
GPrime has joined #ruby
tennis has quit []
einarj has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Outlastsheep is now known as zz_Outlastsheep
rushed has quit [Quit: rushed]
bayed has quit [Quit: Connection closed for inactivity]
einarj has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
danzilio has quit [Quit: My computer has fallen asleep!]
choppington has joined #ruby
pengin_ has joined #ruby
JoshL has quit []
danzilio has joined #ruby
workmad3 has joined #ruby
minver has quit [Quit: Page closed]
quimrstorres has quit [Remote host closed the connection]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
beef-wellington has quit [Ping timeout: 256 seconds]
danzilio has quit [Client Quit]
ndrei has quit [Ping timeout: 244 seconds]
pocketprotector has quit [Ping timeout: 244 seconds]
paulcsmith has joined #ruby
blackmesa has joined #ruby
phoo1234567 has joined #ruby
sarkyniin has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
rubie has joined #ruby
ta has quit [Remote host closed the connection]
nanSTA has joined #ruby
einarj has joined #ruby
sarkyniin has joined #ruby
Musashi007 has joined #ruby
Jarwain has joined #ruby
riffraff has quit [Quit: Leaving]
Jarwain has left #ruby [#ruby]
mjuszczak has quit [Read error: Connection reset by peer]
jottr has joined #ruby
McSoFake has joined #ruby
Scroff has quit [Remote host closed the connection]
intinig has quit [Remote host closed the connection]
bffff_ has quit [Quit: Connection closed for inactivity]
Casty has joined #ruby
pengin_ has quit [Remote host closed the connection]
phoo1234567 has quit [Max SendQ exceeded]
kies^ has joined #ruby
phoo1234567 has joined #ruby
dgutierrez1287 has joined #ruby
aninaki has quit [Ping timeout: 255 seconds]
danielpclark has joined #ruby
bruno- has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<phoo1234567>
I'm sure I'm being silly but is there a way to get CSV to ignore the first line of a .csv file and force :headers => :second_row?
[Butch] has quit [Read error: Connection reset by peer]
<jhass>
is the CSV big? else I'd just consider just CSV.read(File.readlines("...").drop(1).join("\n"), ...)
kfpratt has joined #ruby
webopsx has quit [Client Quit]
xkickflip has quit [Quit: xkickflip]
bruno- has quit [Ping timeout: 240 seconds]
<phoo1234567>
Hi jhass, not yet but it will be eventually. I'm a hardware engineer manipulating netlist files.
<phoo1234567>
(of course, netlist files never get _big_, really)
pengin has joined #ruby
<Ox0dea>
foo = File.open('foo.csv').tap(&:gets); bar = CSV.parse(foo)
JoshL has joined #ruby
McSoFake has joined #ruby
blue_deref has quit [Quit: bbn]
<jhass>
mmh, maybe use the block form of File.open
<phoo1234567>
I just assumed that there was a "second_row" method somewhere.
<jhass>
what's in the first row anyway?
pocketprotector has joined #ruby
tfitts has quit [Ping timeout: 256 seconds]
<phoo1234567>
Just some stupid OrCAD output.
<phoo1234567>
Thanks, Ox0dea, I think that's most elegant.
bungoman has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 250 seconds]
<Ox0dea>
phoo1234567: Not quite; jhass's suggestion to use the block form is sound.
swgillespie has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<jhass>
phoo1234567: from the approach, yeah, but use the block form: File.open(...) do |io| io.gets; csv = CSV.parse(io); ... end in case you're confused
m8 has joined #ruby
<phoo1234567>
Yes, jhass. Also a good solution.
<phoo1234567>
Thanks much!
<Ox0dea>
bar = File.open('foo.csv') { |f| CSV.parse f.tap(&:gets) }
bungoman has joined #ruby
<Ox0dea>
There. I think that one is "most elegant". :)
<phoo1234567>
Ox0dea, funny handle. I thought my tab completion was broken until I realized it was "Ox" not "0x".
nobitanobi has quit [Remote host closed the connection]
<Ox0dea>
phoo1234567: It's an unfortunate constraint imposed by IRC. :/
<Ox0dea>
I'd've used an initial zero if I could've.
<phoo1234567>
I get it...
<tuelz>
hmm, and all this time I throught you were just trolling us...
<Ox0dea>
Really? :/
<tuelz>
lol yeah
<tuelz>
making us typo your name a bunch :p
charliesome has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
Well, now I feel just terrible.
<Ox0dea>
I can't think what to change it to, though.
<wasamasa>
bad_idea
<tuelz>
you're fine - it's not the worst thing that's ever happened on IRC :p
<tuelz>
LOL
<phoo1234567>
Why should you? It makes you unique.
<Ox0dea>
wasamasa: 0xabadidea is somebody else.
<wasamasa>
because it ends in "dea"
<wasamasa>
Ox0dea: so just badidea
<tuelz>
maybe just unicode_box?
<Ox0dea>
tuelz: Heh. They're my initials.
<jhass>
_0x0dea ?
<tuelz>
oh, well it's also the unicode for the box character :p
<shevy>
aha!
<Ox0dea>
tuelz: Nah, you just need a better font. :)
<Ox0dea>
It's "SINHALA NUMBER FOUR" or something.
<shevy>
the ox in the box
nobitano_ has joined #ruby
<tuelz>
which font render is at something?
<shevy>
Aeyrix will be pleased to have uncovered this piece of the greater secret
serivichi has quit [Ping timeout: 255 seconds]
amargherio has quit [Ping timeout: 252 seconds]
Zai00 has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
<tuelz>
gnu unifont....answered my own question
<tuelz>
it looks like a checkered board
gkra has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
davejlong has quit [Remote host closed the connection]
last_staff has joined #ruby
juanpaucar has joined #ruby
<shevy>
\o/
<Ox0dea>
tuelz: It's not the greatest, but at least my initials aren't 1F4A9. :P
<tuelz>
I'm afraid to google that
gkra has left #ruby [#ruby]
shadoi has quit [Quit: Leaving.]
<tuelz>
haha, mr. hankey :)
<tuelz>
(I overcame my fear)
BigRonnieRon has joined #ruby
segfalt has quit [Quit: segfalt]
stnly has quit [Ping timeout: 256 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanSTA has quit [Ping timeout: 248 seconds]
eshy has quit [Ping timeout: 272 seconds]
Zai00 has quit [Quit: Zai00]
segfalt has joined #ruby
felltir has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Zamyatin has quit [Ping timeout: 255 seconds]
lavros_ has quit [Quit: leaving]
howdoicomputer has joined #ruby
pkrnj has joined #ruby
jgpawletko is now known as jgpawletko_away
allomov has joined #ruby
t0rrieri has joined #ruby
roolo has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
drewvanstone has quit [Ping timeout: 240 seconds]
bhorn1 is now known as bhorn1|away
yardenbar has joined #ruby
yardenbar has quit [Client Quit]
EllisTAA has joined #ruby
davejlong has joined #ruby
duderonomy has quit []
failshell has joined #ruby
benlieb has joined #ruby
kies^ has joined #ruby
davejlong has quit [Remote host closed the connection]
Scroff has joined #ruby
tkuchiki has joined #ruby
davejlong has joined #ruby
SuMo_D has quit [Remote host closed the connection]
Timba-as has joined #ruby
lapide_viridi has joined #ruby
SuMo_D has joined #ruby
blackmesa has joined #ruby
Timba-as_ has joined #ruby
bhorn1|away is now known as bhorn1
lxsameer has joined #ruby
lxsameer has joined #ruby
Timba-as__ has joined #ruby
dagda1 has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
eggoez has quit [Ping timeout: 246 seconds]
to_json has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Disconnekted has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
blaines has joined #ruby
pocketprotector has joined #ruby
einarj has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
renderful has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
webopsx has joined #ruby
baweaver has joined #ruby
JoshL has joined #ruby
ruurd has joined #ruby
sharpmachine has joined #ruby
rflappo has joined #ruby
xkickflip has joined #ruby
baweaver has quit [Remote host closed the connection]
jgpawletko_away is now known as jgpawletko
EllisTAA has joined #ruby
EllisTAA has quit [Client Quit]
nettoweb has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
peter_paule has quit [Ping timeout: 264 seconds]
f4cl3y has joined #ruby
f4cl3y has joined #ruby
FooMunki has quit [Quit: FooMunki]
felltir has quit [Remote host closed the connection]
baweaver has joined #ruby
Timba-as__ has quit [Quit: Be back later ...]
pietr0 has quit [Ping timeout: 244 seconds]
graydot has quit [Quit: graydot]
SuMo_D has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
DeweyD has joined #ruby
timonv has joined #ruby
ta has joined #ruby
Carnage\ has quit []
graydot has joined #ruby
DeweyD has quit [Client Quit]
m8_ has joined #ruby
decoponio has quit [Quit: Leaving...]
kadoppe has quit [Ping timeout: 252 seconds]
lapide_viridi has joined #ruby
lapide_viridi has quit [Remote host closed the connection]
kadoppe has joined #ruby
codecop has quit [Remote host closed the connection]
m8 has quit [Ping timeout: 240 seconds]
nanSTA has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
webopsx has joined #ruby
jerius has quit [Quit: /quit]
zacstewart has quit [Remote host closed the connection]
codecop has joined #ruby
jerius has joined #ruby
juanpaucar has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
charliesome has joined #ruby
xkef has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
bronson has quit [Remote host closed the connection]
peter_paule has joined #ruby
blaines has quit [Ping timeout: 250 seconds]
arturmartins has quit [Quit: Leaving...]
jgpawletko has quit [Quit: jgpawletko]
kirun has joined #ruby
zacstewart has joined #ruby
zz_barkerd427 is now known as barkerd427_
symbol has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
MichaelGG has joined #ruby
Carnage\ has joined #ruby
ruurd has joined #ruby
codecop has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
bluOxigen has joined #ruby
luriv has quit [Remote host closed the connection]
<shevy>
anyone happens to know if there is a way to ask for the "newest 5 gems" somehow? can be either really totally new games, or just most recent updates
sumark has quit [Remote host closed the connection]
charliesome has joined #ruby
graydot has joined #ruby
tchebb has quit [Read error: Connection reset by peer]
t_ has quit [Ping timeout: 264 seconds]
sumark has joined #ruby
girakrok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Client Quit]
tchebb has joined #ruby
renderful has joined #ruby
mikecmpbll has joined #ruby
<mikecmpbll>
i really don't get the reactor pattern/eventmachine
<bricker>
mikecmpbll: do you have questions about it?
nettoweb_ has joined #ruby
hanmac has joined #ruby
<mikecmpbll>
it's hard to have a question because i just don't understand what it is. even the examples i've tried to read i don't get.
dellavg has quit [Ping timeout: 264 seconds]
<mikecmpbll>
so i'm probably just venting :p
foertter has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
perhaps it may help if you think about them not as eventmachines but monad machines
<jhass>
shevy: not helpful
<mikecmpbll>
lol :)
nettoweb has quit [Ping timeout: 246 seconds]
<mikecmpbll>
i know that thin uses it, but i don't understand how it's used there. that might be my best bet at understanding it because i'm reasonably familiar with how other application servers work
davejlong has quit [Remote host closed the connection]
<adaedra>
I won't say it's the right way, but this is what comes to me
chipotle has quit [Quit: cheerio]
<shevy>
the .gsub looks so much nicer
pietr0 has joined #ruby
<hj2007>
indexing like first, second vs 0, 1. comments?
<bricker>
adaedra: gsub(/[^_]*\z/, "")
<bricker>
and then chomp off the last _
<adaedra>
but goes through the whole string, shevy
ht__ has quit [Quit: Konversation terminated!]
shadoi has joined #ruby
<Mon_Ouie>
str.slice!(str.rindex("_")..-1)
<bricker>
not sure it's any better than the other solutions
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
rpartition should just find a _ (so no complex regex matching) from the end of string
Silvr has quit [Ping timeout: 240 seconds]
<adaedra>
Mon_Ouie solution should work too
davejlong has joined #ruby
davejlong has quit [Client Quit]
jbw has quit [Ping timeout: 264 seconds]
sepp2k has quit [Quit: Leaving.]
<mikecmpbll>
rpartition
leandrosnunes has joined #ruby
reset has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
mhib has quit [Remote host closed the connection]
jbw has joined #ruby
leandrosnunes has quit [Client Quit]
<Ox0dea>
Mon_Ouie: Yours is backwards.
charliesome has quit [Quit: zzz]
rushed has joined #ruby
<Ox0dea>
I think you probably meant str.slice!(0, str.rindex('_')).
<Mon_Ouie>
No, it removes everything after (and including) the last '_'
<Ox0dea>
Oh, right. I'm looking at the return value.
<Ox0dea>
Cursed bang methods.
<Mon_Ouie>
The result is inside str
msnyon has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
allomov has quit [Remote host closed the connection]
Silvr has joined #ruby
dfockler has joined #ruby
<mikecmpbll>
rpartition is fastest, slice second, gsub last :p
<Ox0dea>
mikecmpbll: Using benchmark/ips?
<mikecmpbll>
Ox0dea: tep.
<mikecmpbll>
yep*
baweaver has quit [Remote host closed the connection]
<shevy>
tep!
<mikecmpbll>
:D
<Mon_Ouie>
What about sub instead of gsub?
TeresaP has joined #ruby
endash has joined #ruby
<mikecmpbll>
sub is still last but it's twice as fast as gsub
<TeresaP>
Can someone please remind me... if I can get a match with a str.match(...), shouldn't str.sub(..., 'new text') replace the first match with the text 'new text'?
<Ox0dea>
TeresaP: No, #sub replaces the whole match, not just what you capture.
SuMo_D has joined #ruby
<TeresaP>
I think I've had this issue every time I go to use a substitution
<TeresaP>
I've been off Ruby for a few months
<TeresaP>
What's the best way to do a substitution using reggae?
<TeresaP>
wtf autocorrect
<dfockler>
hahahaha
<Ox0dea>
str[/href.*?=.*?'(.*?)'/, 1] = 'foo'
<TeresaP>
ahh ok, and how about if I want to replace all? does 'g' go in there somewhere?
<mikecmpbll>
lol reggae.
<TeresaP>
reggae sounds more fun at the moment ;)
<TeresaP>
regex makes my mind hurt
<Ox0dea>
TeresaP: You could use String#[]= and iterate until it no longer matches, but that's not great.
<TeresaP>
ew
<Ox0dea>
Probably better to use #gsub's block form.
<TeresaP>
Thanks a lot 0x0dea
Scroff has quit [Remote host closed the connection]
<Ox0dea>
TeresaP: Sure thing.
<Ox0dea>
Do you know about pre- and post-match?
jottr has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 265 seconds]
SuMo_D has quit [Ping timeout: 248 seconds]
<TeresaP>
like back-searching?
<Mon_Ouie>
I mean since we're talking about changing html/xml, it should be mentioned that you can't write a regexp that's smart enough to process that format properly
<Ox0dea>
TeresaP's regex ("href.*?=.*?'(.*?)'") indicated that it mightn't be as simple as that.
k3asd` has quit [Ping timeout: 256 seconds]
ryba has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
ton31337 has joined #ruby
<ton31337>
hey, how to read stdin every line from pipe?
<ton31337>
like
<ton31337>
iostat 1 | ruby..
<Mon_Ouie>
Maybe, although you can just add one more capture group to fix that if that's the case
<TeresaP>
<foo type="image/png" href=“folder/another_folder/Some Spaces [Because I hate you 2 More Spaces 1]_GetRidOfThem_1144_P.png" length="109" anotherOne=“234234234234234234" />
momomomomo has joined #ruby
<Ox0dea>
Hey, that's not JSON!
<TeresaP>
ignore my bad quotes
<adaedra>
Man, JSON has badly evolved.
BeepDog has joined #ruby
<TeresaP>
Actually you're right, this file is xml
<TeresaP>
oops
<TeresaP>
lol
<adaedra>
-_-
<Ox0dea>
We've been deceived!
<BeepDog>
Howdy all
<TeresaP>
I was doing a bunch of json work earlier
<Mon_Ouie>
ton31337: Like `$stdin.each_line do |line| … end`?
<TeresaP>
sigh... no sleep... need more coffee.
<BeepDog>
I don't use OSX normally, so I'm a bit of a noob with OSX :(
<BeepDog>
segfaults are always bad though
<ton31337>
Mon_Ouie: thanks
<BeepDog>
this same command works fine in the linux of course
<BeepDog>
any advice would be appreciated
phutchins has joined #ruby
jerius has quit [Quit: /quit]
renderful has quit []
dgutierrez1287 has joined #ruby
<Mon_Ouie>
BeepDog: Are there any extensions being used? The stacktrace seems to indicate a crash in malloc, which is often caused by some kind of memory corruption
<BeepDog>
not as far as I'm aware
<BeepDog>
the gemfile is super small, contains rspec and fpm basically
jottr_ has joined #ruby
irctc374 has joined #ruby
howdoicomputer has quit [Ping timeout: 264 seconds]
<irctc374>
is there a cocoapods chat?
kirun has quit [Quit: Client exiting]
<irctc374>
or can i ask it here?
arturmartins has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby
SuMo_D has joined #ruby
tuelz has quit [Ping timeout: 256 seconds]
jhack has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby
mary5030 has quit [Remote host closed the connection]
baweaver has joined #ruby
howdoicomputer has joined #ruby
drewo has joined #ruby
ndrei has joined #ruby
desigx has joined #ruby
<bricker>
irctc374: this isn't really the place, maybe try objective-c or swift channels if they exist
stantonnet has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
<TeresaP>
YES
<TeresaP>
Thank you guys
<TeresaP>
That did it
Disconnekted has joined #ruby
irctc374 has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Ping timeout: 264 seconds]
tuelz has joined #ruby
pengin has joined #ruby
<TeresaP>
I was able to do a CGI.escape on the Regexp.last_match[1]
<TeresaP>
which finally fixed all those strings
f4cl3y has quit [Ping timeout: 256 seconds]
devbug has joined #ruby
SuMo_D has quit [Quit: Off into this... Real world place...]
tuelz has quit [Client Quit]
Rickmasta has joined #ruby
rudak has quit [Read error: Connection reset by peer]
werelivinginthef has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Salve has quit [Remote host closed the connection]
chipotle has joined #ruby
sgambino has joined #ruby
<shevy>
ohhh you are playing with your favourite things again - the $numbered variables!
sgambino has quit [Client Quit]
<Ox0dea>
They're pretty idiomatic, really.
arooni-mobile has quit [Remote host closed the connection]
danzilio has joined #ruby
edwinvdg_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
<Mon_Ouie>
Just use =~ with the regexp literal on the left side and a named capture group and then you can use the magically introduced local variable!
AlexRussia has joined #ruby
chipotle has quit [Ping timeout: 250 seconds]
paulcsmith has joined #ruby
<shevy>
hmm local?
allcentury has quit [Ping timeout: 265 seconds]
bronson has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
wildroman2 has joined #ruby
momomomomo_ has joined #ruby
<zr2d2>
when i try to run my code, I get ActiveRecord::Base doesn't belong in a hierarchy descending from ActiveRecord
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
Voker57 has joined #ruby
bronson has joined #ruby
<zr2d2>
is there a reason AR it's being required as part of AR (i think thats the problem, anyway)
rushed has quit [Quit: rushed]
charliesome has quit [Client Quit]
TheHodge has joined #ruby
<zr2d2>
or is there a better way to query a db from a ruby script?
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<existensil>
I don't konw what the HTTP stuff has to do with your database code. Also, you should provide the exact error message you are seeing.
nanSTA has quit [Ping timeout: 248 seconds]
Carnage\ has quit []
rushed has joined #ruby
<existensil>
AR is an Object Relational Mapper (ORM) and as such is generally used to map tables to classes, rows to instances of your classes. If you just want to straight query you should probably use something like sequel
ixti has quit [Read error: Connection reset by peer]
leitz has joined #ruby
zr2d2 has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
LMity has quit [Ping timeout: 246 seconds]
gambl0re has quit [Ping timeout: 244 seconds]
dfockler has quit [Remote host closed the connection]
kies^ has joined #ruby
<leitz>
Is there any reason not to use a hash to store a collection of objects that would get referenced either by name of the object or a value that object has?
<existensil>
depends on how many objects you have and what you mean by "store", but, yes, that seems reasonable for many cases
dfinninger has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
<existensil>
looking up by the index of the hash will be faster of course. you could always use two hashes if you need both to be very performant
pkrnj has quit [Quit: Computer has gone to sleep.]
[k- has quit [Ping timeout: 256 seconds]
hinbody has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
<existensil>
that's a very small hash. i don't see a reason not to use hash
baweaver has joined #ruby
umgrosscol has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
<dfockler>
isn't a variable technically a key value pair ;)
gregf has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
theery has quit []
wildroman2 has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
hj2007 has quit [Quit: This computer has gone to sleep]
jottr_ has quit [Ping timeout: 244 seconds]
<shevy>
yeah
Kully3xf_ has joined #ruby
mary5030 has joined #ruby
Kully3xf has quit [Ping timeout: 240 seconds]
kfpratt has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 256 seconds]
godzillaenlacasa has quit [Quit: ZZZZZ....]
aspiers has quit [Ping timeout: 240 seconds]
hinbody has quit [Quit: leaving]
zacstewart has quit [Remote host closed the connection]
ixti has joined #ruby
shadoi has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
jobewan has quit [Quit: Leaving]
wldcordeiro_ has joined #ruby
<Ox0dea>
But not really.
iamninja has joined #ruby
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
werelivinginthef has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
joelataylor has joined #ruby
yfeldblum has quit [Remote host closed the connection]
freerobby has joined #ruby
yfeldblum has joined #ruby
baweaver has quit [Remote host closed the connection]
MichaelGG has quit [Ping timeout: 248 seconds]
<Ox0dea>
dfockler: ;) == sarcasm or couching?
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
finisherr has joined #ruby
<dfockler>
just joking that it was a small hash
finisherr has left #ruby [#ruby]
dfinninger has quit [Remote host closed the connection]
<Ox0dea>
Ah, all right. I'll refrain from raving about why a variable isn't a key-value pair, then. :)
joelataylor has quit [Ping timeout: 255 seconds]
failshell has quit [Remote host closed the connection]
<dfockler>
I have no idea how variable names are stored in ruby in memory
AlphaAtom has quit [Read error: Connection reset by peer]
<Ox0dea>
They're null-terminated strings, of course, but that's neither here nor there.
AlphaAtom has joined #ruby
<dfockler>
that makes sense
<Ox0dea>
There's sort of an implicit one-to-one relationship for key-value pairs, which identifier->object breaks on both sides.
sarkyniin has quit [Ping timeout: 240 seconds]
<dfockler>
gotcha
iamninja has quit [Quit: WeeChat 1.2]
<havenwood>
iex
<dfockler>
elixir?!
<havenwood>
oops >.>
mercerist has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
jesterfraud has joined #ruby
godzillaenlacasa has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<Ox0dea>
havenwood: Jumping ship?
FernandoBasso has quit [Quit: May the force be with you.]
mikeric has joined #ruby
<havenwood>
Ox0dea: <3 Ruby
<Ox0dea>
> You're god-damned right.
f4cl3y has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
<Ox0dea>
The word "prime" has a prime number of letters, vowels, non-vowels, and letters in either half of the alphabet. It also "adds up to" 61, which is prime.
mikeric has quit [Client Quit]
asteros has joined #ruby
mikeric has joined #ruby
zanloy has joined #ruby
<dfockler>
*conspiracy*
<Ox0dea>
I think so too.
CloCkWeRX has joined #ruby
mikeric has quit [Client Quit]
Ropeney has joined #ruby
mikeric has joined #ruby
al2o3-cr1 is now known as al2o3-cr
lxsameer has quit [Quit: Leaving]
blackmesa has joined #ruby
Zinja has joined #ruby
qhartman has quit [Quit: Ex-Chat]
howdoicomputer has quit [Ping timeout: 255 seconds]
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
NeverDie has joined #ruby
SiliconDon has joined #ruby
sarkyniin has joined #ruby
Igorshp has joined #ruby
failshell has joined #ruby
SiliconDon has quit [Max SendQ exceeded]
ruby-lang046 has joined #ruby
thiagovsk has joined #ruby
iloverubynoob has joined #ruby
howdoicomputer has joined #ruby
rcvalle has quit [Quit: rcvalle]
<iloverubynoob>
Hi all, I was wondering if anyone could put me on the right track regarding adding all values from a min to a max using recursing (calling the method from within the method)
zz_barkerd427 is now known as barkerd427
Igorshp has quit [Remote host closed the connection]
<al2o3-cr>
iloverubynoob: why would you want to use recursion?
<iloverubynoob>
just a masochist challenge to learn!
drewo has quit [Ping timeout: 250 seconds]
<al2o3-cr>
don't talk shit
asteros has quit [Quit: asteros]
<iloverubynoob>
?
<iloverubynoob>
I want to practice recursion, I've already got +=
SiliconDon has joined #ruby
<existensil>
if you need to use recursion, it would look like this:
<existensil>
>> f = ->(min, max, total=0){ min == max ? total + max : f(min+1, max, total+min) }; f.call(1,10)
<ruboto>
existensil # => undefined method `f' for main:Object (NoMethodError) ...check link for more (https://eval.in/399508)
phoo1234567 has quit [Quit: Leaving]
SiliconDon has quit [Max SendQ exceeded]
<existensil>
this way is more reliable I guess:
<existensil>
>> def f(min, max, total=0); min == max ? total + max : f(min+1, max, total+min); end; f(1,10)