jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
intinig has quit [Ping timeout: 252 seconds]
sharpmachine has quit [Remote host closed the connection]
sharpmachine has joined #ruby
rehat_ has quit [Remote host closed the connection]
baweaver_ has joined #ruby
blackmes1 has joined #ruby
blackmes1 has quit [Client Quit]
noethics has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sharpmachine has quit [Ping timeout: 246 seconds]
finisherr has quit [Quit: finisherr]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
blackmesa has quit [Ping timeout: 250 seconds]
Cache_Money has left #ruby [#ruby]
hj2007 has quit [Quit: This computer has gone to sleep]
FernandoBasso has quit [Quit: May the force be with you.]
bruno- has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nveselinov has quit [Quit: Connection closed for inactivity]
nateberkopec has joined #ruby
snockerton has quit [Quit: Leaving.]
blaines_ has quit [Ping timeout: 244 seconds]
<Radar> monstordh: It'd be helpful to us to know what errors you're actually seeing.
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
sharpmachine has joined #ruby
<pontiki> hiho
arooni-mobile has quit [Ping timeout: 248 seconds]
<zenspider> newbs like to ask... they just don't actually want answers. :/
EllisTAA has joined #ruby
blaines has joined #ruby
Musashi007 has joined #ruby
astrobun_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: Connection reset by peer]
aspiers has quit [Ping timeout: 240 seconds]
MagePsycho_ has joined #ruby
sp33drac3r has joined #ruby
sevenseacat has joined #ruby
bigkevmcd has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
thiagovsk has joined #ruby
<Ox0dea> apeiros: SYN
EllisTAA has joined #ruby
gambl0re has joined #ruby
oo_ has joined #ruby
<monstordh> Radar: Sorry - I had to step away. You can see my errors here: https://www.drupal.org/node/2323235#comment-10118330
<Radar> Ok. I don't know how to fix those errors.
<Radar> Why are you running an old version of Ruby?
<monstordh> uh… no clue. I just installed it using rvm
howdoicomputer has joined #ruby
<monstordh> I'm running OSX 10.6.8
MagePsycho_ has quit [Ping timeout: 244 seconds]
<monstordh> might be an issue with that
fabrice31 has joined #ruby
Shibe has joined #ruby
<Shibe> is there any sandboxed ruby interpreter
<Radar> Why are you running an old version of OS X too?!
<Shibe> so i could do ruby sand filename.rb
<Shibe> rubysand*
<Shibe> or whatever the programs name is
<monstordh> Radar: Because I would be down for about a week, and out hundreds of $$ upgrading all of my software I use on a daily basis
<Radar> ok.
<Radar> I can't help you, sorry.
<monstordh> Radar: How would I see if I could upgrade ruby?
barkerd427_ is now known as zz_barkerd427
<Radar> Please refer to previous line.
zz_barkerd427 is now known as barkerd427
nateberkopec has quit [Quit: Leaving...]
<monstordh> ok. sorry. thought your answer was specific to my main issue
wprice has quit [Quit: wprice]
<Radar> rvm install 2.2.2
mercwithamouth has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Zamyatin has joined #ruby
tmtwd has quit [Quit: Leaving]
simplyianm has quit [Remote host closed the connection]
Zamyatin has quit [Max SendQ exceeded]
simplyianm has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
BStheHD has joined #ruby
<monstordh> Radar: Seems to be working! Thanks!
Shibe has left #ruby ["Leaving"]
J0ckR0ach has joined #ruby
Majost__ has joined #ruby
oo_ has quit [Remote host closed the connection]
simplyianm has quit [Ping timeout: 246 seconds]
sparchitect has joined #ruby
Zamyatin has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
sparchitect has left #ruby [#ruby]
<Majost__> So I discovered something odd on one of my systems: https://gist.github.com/rhass/562c8a14242002d4bd32
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?
<demophoon> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, Radar, zzak, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<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])
<Radar> That's the code from Railsbot :)
_djbkd has joined #ruby
<Radar> woot it works first go :D
<Radar> Will need to make it so that the bot doesn't spam me, but it works!
dfockler has joined #ruby
<BStheHD> Yup, that's exactly what helpa said
fumihiro has joined #ruby
blaines has quit [Ping timeout: 264 seconds]
vaq has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby
nettoweb has joined #ruby
<Ox0dea> Radar: It's missing an octothorpe.
hasi has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Lucky___ has joined #ruby
GriffinHeart has joined #ruby
jespada__ has quit [Ping timeout: 265 seconds]
radialneon has joined #ruby
mleung has quit [Quit: mleung]
radialneon_ has joined #ruby
<Radar> Ox0dea: you and your fancy words
wallerdev has quit [Ping timeout: 240 seconds]
jespada__ has joined #ruby
peeja has joined #ruby
<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:
yfeldblum has quit [Remote host closed the connection]
<monstordh> How can I access the logs for this channel? My history doesn't go back that far.
<monstordh> found it
<monstordh> FYI - my specific issue is posted here: https://www.drupal.org/node/2323235#comment-10118330
<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> '/Users/darrenhuckey/.rvm/gems/ruby-1.9.3-p551@omega.jubilee/cache/bundler/git/listen-bf72c95e667fc407e2f61e5b562f5e7b6a5f89aa'
duderonomy has joined #ruby
<Radar> monstordh: Please don't spam.
<pontiki> you are still running the old ruby
<Radar> :)
<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> then I got:
Casty has quit [Quit: Textual IRC Client: www.textualapp.com]
<monstordh> fatal: ambiguous argument 'e2-fix_toplevel_const_warning': unknown revision or path not in the working tree.
gambl0re has quit [Ping timeout: 256 seconds]
jzigmund has quit [Read error: Connection reset by peer]
kfpratt has quit [Remote host closed the connection]
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Disconnekted> what did it fail on?
fullofcaffeine has joined #ruby
<monstordh> fetching listen
<pontiki> indeed, that branch is no longer in the repo
graydot has joined #ruby
<pontiki> it was merged into the master branch 5 days ago
<monstordh> uh… so what does that mean?
<monstordh> oh…
<pontiki> you should get rid of that branch bit
ice9 has joined #ruby
dubkoidragon has joined #ruby
<monstordh> so get rid of the line I added to my Gemfile: branch: 'e2-fix_toplevel_const_warning'
<monstordh> right?
Musashi007 has quit [Quit: Musashi007]
peeja has joined #ruby
DiabolikFreenode is now known as Diabolik
<pontiki> no, the last part where it gives the branch
<monstordh> that seems to be working
<monstordh> installing
speaking1ode has joined #ruby
braincrash has joined #ruby
bungoman has joined #ruby
fenjamin has quit [Ping timeout: 248 seconds]
josh2 has joined #ruby
<ice9> I'm trying gem install json -v '1.7.7' but I get: https://gist.github.com/anonymous/8033fea7f86bf2cdc1b3
<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.
MagePsycho_ has joined #ruby
<ice9> bundle install
sickmate has joined #ruby
josh2 has joined #ruby
<Radar> bundle update json
<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
fenjamin has joined #ruby
<Radar> ice9: Gist the error please.
jenrzzz has quit [Ping timeout: 264 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
<Radar> "fun"
<Radar> What operating system is this on?
<ice9> Archlinux
SuMo_D has quit [Ping timeout: 248 seconds]
josh2 has quit [Ping timeout: 255 seconds]
graydot has quit [Quit: graydot]
xkef has joined #ruby
xkef_ has quit [Ping timeout: 256 seconds]
Torrieri has joined #ruby
Ox0dea has quit [Read error: No route to host]
baweaver_ has joined #ruby
Ox0dea has joined #ruby
LMity has quit [Ping timeout: 244 seconds]
<cout> I cannot for the life of me figure out how rspec calls the before(:all) block in RSpec.configure { }
<Radar> ice9: How did you install Ruby?
<Radar> cout: Steps to reproduce please kthx.
<ice9> Radar: pacman -S ruby
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
<Radar> ice9: I don't understand how this could be messed up then.
<Radar> TIL Digital Ocean don't provide ArchLinux boxes.
msnyon has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
dellavg has joined #ruby
<Ox0dea> ice9: gem install json -v 1.8.3
<ice9> Ox0dea: I've done that already
<Ox0dea> You will not receive the same error, because 1.8.3 uses rb_str_new() correctly.
<Ox0dea> Code can't lie.
<Radar> ice9: Full output of the command please.
<Radar> We need to see what version of json it's installing.
baweaver_ has quit [Ping timeout: 248 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
bmurt has quit []
dubkoidragon has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
<Ox0dea> ice9: bundle install is using the Gemfile provided by Snorby, which mandates that the most recent 1.7 version of the json gem should be used.
Fezzler has joined #ruby
<ice9> Ox0dea: right so where is that file so I can modify it
<Ox0dea> ...
<ice9> what's it's name
<ice9> ah Gemfile
<ice9> it's gem 'json', '~> 1.7' and I installed 1.8
gix has quit [Ping timeout: 256 seconds]
<Ox0dea> What you installed is immaterial in this case.
<cout> radar: reproduce what?
<Radar> cout: huh?
<ice9> ok I modified that gemfile to json 1.8 and ran gem update json
<ice9> now it's working fine
<Radar> as we can see here, ice9 did not follow instructions
<Radar> ice9: "bundle update json" is what I said to run
<Ox0dea> Pessimistic versioning is for pessimists.
<Radar> [13:26:34] <Radar>bundle update json
<Radar> 30 minutes ago.
<ice9> Radar: i'msorry I thought gem install json -v 1.8 is what you mean, I'm not aware of ruby and gems
helpa has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
helpa has joined #ruby
<Ox0dea> ice9: http://www.snorby.org/
helpa has quit [Remote host closed the connection]
<Ox0dea> Consider picking something not dead. :)
helpa has joined #ruby
<ice9> haha :D
msnyon has joined #ruby
theery has joined #ruby
<Ox0dea> cout: Do you mean to say that you're trying to emulate before(:all)?
bricker has quit [Ping timeout: 264 seconds]
gix has joined #ruby
bungoman has quit [Remote host closed the connection]
Fezzler has quit [Quit: Leaving]
jackjackdripper has quit [Quit: Leaving.]
dgutierrez1287 has joined #ruby
theery has quit [Remote host closed the connection]
xybre has quit [Quit: oh shit its the fbi]
martinbmadsen has quit [Quit: Bye!]
tmtwd has joined #ruby
dubkoidragon has joined #ruby
<ice9> now gem update json stuck at: Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling
<ice9> that gem is not defined in the Gemfile
<ice9> I have 1.0.7 installed, I tried gem update eventmahcine but it fail json
GriffinH_ has quit [Remote host closed the connection]
crdpink has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
crdpink2 has quit [Ping timeout: 248 seconds]
Fezzler has joined #ruby
G_ is now known as G
tmtwd has quit [Read error: Connection reset by peer]
evanjs has quit [Remote host closed the connection]
tmtwd has joined #ruby
Synthbread has quit [Remote host closed the connection]
SuMo_D has joined #ruby
evanjs has joined #ruby
bungoman has joined #ruby
<Radar> ice9: uh
<Radar> ice9: Do you need telling again that "gem update" != "bundle update"?
<Radar> ice9: bundle update eventmachine
<ice9> oh :D
<ice9> sorry
jackjackdripper has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<ice9> I mean bundle update
krz has joined #ruby
plashchynski has joined #ruby
<Radar> ice9: and if something fails, show us a gist of the complete output please
evanjs has quit [Ping timeout: 244 seconds]
SuMo_D has quit [Ping timeout: 248 seconds]
astrobun_ has joined #ruby
oo_ has joined #ruby
Pupeno has joined #ruby
_blizzy_ has joined #ruby
GriffinHeart has joined #ruby
dcarmich has joined #ruby
howdoicomputer has joined #ruby
<sphex> why scope gates? why they be? wHhyy.
<Radar> ice9: bundle update json eventmachine
Fezzler has quit [Quit: Leaving]
<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.
plashchynski has quit [Quit: plashchynski]
MagePsycho_ has joined #ruby
Spami has joined #ruby
<ice9> now when I try to run the app I get: https://gist.github.com/anonymous/e77827c78efbe882e361
<quazimod1> yo
<Aeyrix> Ox0dea: Paging you because I know you know a lot about Ruby internals :^)
<Aeyrix> unless is basically !if, right?
<Aeyrix> (internally)
fabrice31 has joined #ruby
Spami has quit [Client Quit]
sinkensabe has joined #ruby
howdoicomputer has quit [Ping timeout: 250 seconds]
MagePsycho_ has quit [Ping timeout: 264 seconds]
zacstewart has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<sphex> hrm. MRI just swaps the two branches.
peter_paule has quit [Ping timeout: 244 seconds]
helpa-bot has joined #ruby
Hobogrammer_ has joined #ruby
fabrice31 has quit [Ping timeout: 248 seconds]
y0da has joined #ruby
Azure|dc has joined #ruby
helpa has quit [Read error: Connection reset by peer]
helpa-bot has quit [Remote host closed the connection]
but3k4 has quit [Read error: Connection reset by peer]
levifig has quit [Ping timeout: 246 seconds]
helpa has joined #ruby
swgillespie has joined #ruby
imajes has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Silent__ has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Client Quit]
laurentide has joined #ruby
levifig has joined #ruby
laurentide has quit [Remote host closed the connection]
laurentide has joined #ruby
imajes has joined #ruby
<Ox0dea> Aeyrix: I must've missed the question.
devbug has joined #ruby
<Ox0dea> Oh, nope, I'm just blind.
<Aeyrix> Ox0dea: Heh, sorry.
<Radar> Aeyrix: yes that's true
<Ox0dea> `unless` is literally `!if`, yes.
<Aeyrix> I resolved my issue anyway, via a different method.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix> I was being a bad coder because I had half my brain filled with a security problem.
fenjamin has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
swgillespie has joined #ruby
bronson has joined #ruby
<Ox0dea> #define NEW_UNLESS(c,t,e) NEW_IF(c,e,t)
<Ox0dea> Aeyrix: There's your curiosity sated, anyway.
<Aeyrix> Hah.
<Aeyrix> Cheers. :)
<Ox0dea> My pleasure.
<Aeyrix> Holy shit lol it literally is just
<Aeyrix> !if
<Ox0dea> Literally.
<Aeyrix> idk why i expected anything else tbh
bigkevmcd has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
RobertBirnie has quit [Max SendQ exceeded]
RobertBirnie has joined #ruby
robbyoconnor has joined #ruby
devbug has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
devbug has joined #ruby
bluOxigen has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
jbw has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
arescorpio has quit [Quit: Leaving.]
<sphex> so.. this is confusing. ',' has higher precedence than '=' in `a, b = 1, 2`, but lower precedence in `p a = 1, b = 2`?
baweaver has quit [Remote host closed the connection]
<Aeyrix> What?
bungoman has quit [Remote host closed the connection]
lessless has joined #ruby
\13k_ has quit [Quit: good night and good luck]
bf4 has joined #ruby
bf4 is now known as Guest68577
<sphex> Aeyrix: I'm trying to parse ruby and it's hard
bluOxigen has quit [Read error: No route to host]
<sevenseacat> yeah thats not going to work for you.
bluOxigen has joined #ruby
<Aeyrix> Those are doing two different things.
allomov has joined #ruby
<sevenseacat> Ruby is a fucked-up language, grammatically.
<sevenseacat> part of why we love it <3
mary5030 has quit [Ping timeout: 256 seconds]
dubkoidragon has quit [Ping timeout: 248 seconds]
cnngimenez has quit [Quit: Konversation terminated!]
fenjamin has joined #ruby
dellavg has quit [Ping timeout: 264 seconds]
<sphex> sevenseacat: hrm okay. it is very expression-oriented, so I figured ',' could be just another infix operator. but I was wrong I see.
<Nilium> I like birds.
<Ox0dea> Nilium: Quirky ones?
<Nilium> Ruby too, but birds are better.
<Aeyrix> This.
<Nilium> Considering I have 8 parrots, yes, quirky.
<Ox0dea> Nilium: It was a lambda calculus reference, but parrots are cool.
* sevenseacat adds that fact to the Nilium database
<Nilium> I never studied calculus, sadly.
<sphex> ok no big deal.. ',' is not an operator at all. it must be handled differently in "statement" and in "argument" context. I think.
GriffinHeart has quit [Remote host closed the connection]
<Nilium> That now makes two databases of facts on me.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> The other is at work where we collect the dumb things I say because I have no mental filter.
DoubleMalt has joined #ruby
Alayde has quit [Ping timeout: 256 seconds]
<Nilium> And we're apparently making t-shirts next...
sp33drac3r has quit [Quit: Textual IRC Client: www.textualapp.com]
dubkoidragon has joined #ruby
dubkoidragon has left #ruby [#ruby]
dubkoidragon has joined #ruby
aphprentice has joined #ruby
BStheHD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zacstewart has quit [Ping timeout: 265 seconds]
Guest68577 has quit [Quit: ZNC - http://znc.in]
ice9 has quit [Quit: Leaving.]
jbw has joined #ruby
GriffinHeart has joined #ruby
chinmay_dd has joined #ruby
bricker has joined #ruby
sp1rs has joined #ruby
xkef has quit [Ping timeout: 264 seconds]
Thomas-0725 has joined #ruby
<sphex> dammit. in `Proc.new { |a = 1 + 2| }` that last '|' could be an infix operator too.
_djbkd has joined #ruby
<flughafen> moin guys(and 2 gals)
tubuliferous_ has joined #ruby
Thomas-0725 has quit [Client Quit]
<Ox0dea> flughafen: You reckon the female ratio here is 0.2%, then?
ScriptGeek has joined #ruby
<Ox0dea> sphex: Y'ain't gon' b'able t'parse Ruby all yer lonesome, son.
Thomas-0725 has joined #ruby
_ixti_ has joined #ruby
<sevenseacat> parsing ruby is a waste of time.
<Ox0dea> It'd certainly be a learning experience, if nothing else.
casadei_ has quit [Remote host closed the connection]
<Aeyrix> moin flughafen
tubuliferous_ has quit [Ping timeout: 252 seconds]
ScriptGeek has left #ruby [#ruby]
yfeldblum has joined #ruby
<sphex> sevenseacat: it sure has been. ruby sure looks easier to parse at first glance. :/
dhjondoh has joined #ruby
<Ox0dea> sphex: Ruby has the most complicated grammar of any mainstream language.
<sphex> oh crap don't say that
fenjamin has quit [Ping timeout: 250 seconds]
framling has joined #ruby
<sevenseacat> i already did.
chrissonar has joined #ruby
<Ox0dea> sphex: There's Ruby's grammar in BNF.
<Radar> ;d
<Ox0dea> Pseudo-BNF, I suppose.
oo_ has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
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]
konsolebox has quit [Max SendQ exceeded]
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
GriffinHeart has joined #ruby
revath has joined #ruby
konsolebox has joined #ruby
allomov has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
sp33drac3r has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest54964
ixti has joined #ruby
keen__________20 has joined #ruby
zacstewart has joined #ruby
htmldrum has quit [Quit: leaving]
dseitz has quit [Ping timeout: 250 seconds]
keen__________19 has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Max SendQ exceeded]
Guest54964 has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 250 seconds]
ixti has joined #ruby
\13k has joined #ruby
robbyoconnor has joined #ruby
blueOxigen has joined #ruby
Sypheren has quit [Ping timeout: 240 seconds]
dubkoidragon has quit [Ping timeout: 255 seconds]
khebbie has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
bf4 has joined #ruby
bf4 is now known as Guest50994
keen__________20 has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
oo_ has joined #ruby
sphex_ has joined #ruby
keen__________20 has joined #ruby
sphex has quit [Ping timeout: 265 seconds]
GriffinHeart has joined #ruby
sinkensabe has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
tmtwd has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Ox0dea has quit [Ping timeout: 256 seconds]
yardenbar has joined #ruby
luriv has joined #ruby
tagrudev has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
ledestin has quit [Ping timeout: 246 seconds]
intinig has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
ybian has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
eytanfb has joined #ruby
ybian has joined #ruby
revath has left #ruby [#ruby]
riotjones has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
arup_r has joined #ruby
roolo has joined #ruby
arup_r has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
revath has joined #ruby
arturaz has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Fezzler has joined #ruby
oo_ has joined #ruby
sp33drac3r has quit [Quit: Textual IRC Client: www.textualapp.com]
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> cout: RSpec.configuration.hooks.send(:all_hooks_for, :before, :context).first.block
<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…]
bronson has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<tuor> Ox0dea, yes, I know, but in pry. I mean when I have a gem installed I don't every time know the git page of it.
stan has joined #ruby
<tuor> I can do "show-source ZabbixApi" in pry.
jtbandes has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
sofija has quit [Ping timeout: 246 seconds]
<Ox0dea> `show-source ZabbixApi::Basic` should work.
fsvehla has joined #ruby
_djbkd has joined #ruby
<tuor> ah thx. :0
<tuor> s/:0/:)/
arup_r has quit [Remote host closed the connection]
<Ox0dea> Now go learn Ruby. :)
doodleha_ has joined #ruby
<adaedra> what is ruby
sofija has joined #ruby
zacstewart has joined #ruby
<Ox0dea> ?ruby
<ruboto> I don't know anything about ruby
doodleha_ has quit [Read error: Connection reset by peer]
bluesnow has left #ruby [#ruby]
bronson has quit [Ping timeout: 252 seconds]
[k- has joined #ruby
<ljarvis> heh
matcouto has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
<[k-> Ox0dea!
matcouto has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
<Ox0dea> [k-!
doodleha_ has joined #ruby
<Ox0dea> We've missed our connection these past few days.
<[k-> yes :(
Iskarlar has joined #ruby
allomov has joined #ruby
baweaver has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<ljarvis> :|
ndrei has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<Ox0dea> 209 initial lines of non-code. :(
<[k-> >> :l
<ruboto> [k- # => :l (https://eval.in/399044)
<[k-> it was necessary for the good of open source!
<ljarvis> srsly, delete that poop
<[k-> noooooo
<Ox0dea> I love it, but it's pretty gnarly.
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
<Ox0dea> [k-: I did that kata you suggested: https://gist.github.com/0x0dea/2df6c43f4f422884216b
sp1rs has joined #ruby
<adaedra> This is hellish
<apeiros> suggestions for ?ruby ? :)
<[k-> such Greek!
<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
<Ox0dea> ^_^
oo_ has quit [Remote host closed the connection]
<[k-> yeah, I had to use $-o instead of $©
doodleha_ has joined #ruby
matcouto has joined #ruby
<Ox0dea> Gotta love the irony of stashing everything in a variable like that with a comment like that in a file that starts like that.
einarj has joined #ruby
<[k-> it's true!
<[k-> if you remove it, the library fails
<Ox0dea> Well, no shit? :P
<[k-> cleaned it up a little
doodleha_ has quit [Read error: Connection reset by peer]
<Ox0dea> apeiros: rb_intern_str() definitely isn't the right function to use, but you mentioned you'd mostly be using this for personal debugging.
<[k-> I'm going to add a tips and tricks section
<apeiros> aha, common.mk
<apeiros> thanks Ox0dea
<Ox0dea> My pleasure.
<apeiros> sadly this weekend is already stuffed. damn. I want to dabble in such things.
<apeiros> but if I do I get flak for not improving ruboto and stuff :<
<Ox0dea> apeiros: I mean, he doesn't even know anything about Ruby...
reset has quit [Ping timeout: 264 seconds]
<apeiros> he?
<apeiros> who?
Scrofff has joined #ruby
<Ox0dea> ?ruby
<ruboto> I don't know anything about ruby
<[k-> I bet you did the [_..-_] for visu
<[k-> al notice
revath1 has quit [Ping timeout: 250 seconds]
<apeiros> ah, it :D
<[k-> noise*
<Ox0dea> [k-: It's... optimal?
<apeiros> Ox0dea: 10:53 apeiros: suggestions for ?ruby ? :)
<[k-> there is t...t
<[k-> which is un inclusive!
<apeiros> btw., re ruboto - if anybody wants to take a look at https://gist.github.com/apeiros/9b4521c65a04e779bfa1 feedback welcome (also asked in #ruby-community)
Mohan__ has joined #ruby
<Ox0dea> [k-: No, I need it to be [1..-1].
Scroff has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> oh, -1 is not -2
<[k-> heh
Iskarlar has joined #ruby
Mohan has quit [Ping timeout: 255 seconds]
<Ox0dea> I exclude the end during the initial construction.
<[k-> my solution will take only 15 lines without method obfuscation!
<Ox0dea> [k-: I did it in one. :)
<Ox0dea> Might still have it around.
<[k-> me too
<[k-> I cheated :p
<[k-> a recursive solution, amazing!
doodleha_ has joined #ruby
GitGud has joined #ruby
<Ox0dea> Well, let it not be said that obfuscation is a dead art.
CloCkWeRX1 has joined #ruby
chinmay_dd has quit [Quit: Leaving]
<Ox0dea> It converts most valid Perl programs to non-alphanumeric ones, but it's pretty much all string manipulation.
Sojiro has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
revath has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
quazimod1 has quit [Ping timeout: 265 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
<[k-> >> $.
<ruboto> [k- # => 0 (https://eval.in/399074)
speaking1ode has quit [Ping timeout: 248 seconds]
<[k-> :o
<[k-> what is $. for
<apeiros> [k-: zenspiders quickref
<apeiros> has them all :D
chinmay_dd has joined #ruby
intinig has quit [Remote host closed the connection]
<apeiros> ?quickref
<[k-> <3
zacstewart has quit [Ping timeout: 248 seconds]
<[k-> $. # The current line number of the last file from input.
oo_ has joined #ruby
<[k-> tricky, Ox0dea!
<Ox0dea> zenspider: Why not just say ARGF.lineno?
<[k-> 10/10
<Ox0dea> Danke.
leat1 has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: Connection reset by peer]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
<Ox0dea> >> $VERBOSE = nil; global_variables.select { |g| Fixnum === eval(g.to_s) }
<ruboto> Ox0dea # => [:$SAFE, :$., :$$, :$-W] (https://eval.in/399079)
doodleha_ has joined #ruby
dubkoidragon has quit [Ping timeout: 252 seconds]
serivich has joined #ruby
bigkevmcd has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
eGGsha has joined #ruby
arup_r has joined #ruby
<[k-> I don't see a 9 anywhere :o
quimrstorres has quit [Remote host closed the connection]
arup_r_ has joined #ruby
<Ox0dea> >> [*?/...?:]
<ruboto> Ox0dea # => ["/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] (https://eval.in/399080)
doodleha_ has joined #ruby
<[k-> good trick!
<Ox0dea> Did you mean for complementing digits, though?
<[k-> yup
<Ox0dea> >> ('0123456789' =~ /$/) - 1
<ruboto> Ox0dea # => 9 (https://eval.in/399081)
<[k-> ah
withnale_ has joined #ruby
axsuul has joined #ruby
axsuul has quit [Excess Flood]
<[k-> I'll slowly unobfuscate it later, going to take a nap
lkba has joined #ruby
<Ox0dea> Enjoy your siesta.
Jackneill has quit [Ping timeout: 255 seconds]
arup_r has quit [Ping timeout: 256 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
doodleha_ has quit [Ping timeout: 248 seconds]
doodleha_ has joined #ruby
mike___1234 has joined #ruby
RoryHughes has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
<adaedra> `raise Foo, "text"` is the same as `raise Foo.new("text")`, no?
<apeiros> almost
doodleha_ has joined #ruby
haxrbyte_ has joined #ruby
<apeiros> but for most cases it will have the same effect
<apeiros> it differs for exception classes with custom initializer
dgutierrez1287 has joined #ruby
<Ox0dea> apeiros: Does it?
<apeiros> iirc yes
<apeiros> try it to be sure :)
sickmate has quit [Ping timeout: 264 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
<Ox0dea> raise calls news.
<Ox0dea> -s
howdoicomputer has joined #ruby
blueOxigen has joined #ruby
RoryHughes has quit [Ping timeout: 246 seconds]
<apeiros> seems I remember wrongly
bodzio has joined #ruby
<apeiros> or it changed during ruby versions…
dANO_ has joined #ruby
<Ox0dea> >> class Foo < Exception; undef new end; raise Foo, 'bar'
<ruboto> Ox0dea # => undefined method `new' for class `Foo' (NameError) ...check link for more (https://eval.in/399104)
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
bricker has quit [Quit: leaving]
<Ox0dea> That does seem like the sort of thing that might've changed between versions, though.
<apeiros> nope, 1.8.6 did it too
<Ox0dea> brb, trying on 0.49.
<apeiros> so clearly misremembering
haxrbyte has quit [Ping timeout: 264 seconds]
<apeiros> aaaah, no, right, I have Foo.new when I don't pass the complete message as argument
<apeiros> i.e. Foo.new(x, y) and then the message is constructed from x & y
<Ox0dea> But... raise calls new?
<apeiros> yes, but not with arbitrary number of arguments
<apeiros> 3rd arg is caller
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
<Ox0dea> Yep, makes sense.
bluOxigen has quit [Ping timeout: 244 seconds]
<adaedra> so it's the same as long as you use only one argument on raise?
<apeiros> you could use an array. but… eeew :D
<adaedra> (plus the exception)
<apeiros> (e.g. raise Foo, [x, y])
<apeiros> adaedra: yepp. it's the same if you only use 1 argument.
intinig has joined #ruby
<adaedra> right
Iskarlar has joined #ruby
<apeiros> (to the constructor of the exception)
<adaedra> thanks
<apeiros> sorry for the noise :D
<Ox0dea> Way too loud in here right now.
revath has quit [Quit: Leaving.]
<adaedra> WHAT YOU SAY? I CAN'T HEAR
<Ox0dea> > #define C ,
<Ox0dea> apeiros: Did you catch that?
<apeiros> I rescue
revath has joined #ruby
<Ox0dea> I used it to facilitate "cleanly" defining Introspectable's methods. It's really gross, but also DRY.
last_staff has joined #ruby
<apeiros> oh, that was no joke…
<apeiros> I only skimmed the code :-|
<Ox0dea> For shame.
<apeiros> (and copied it)
Scroff has joined #ruby
<Ox0dea> ^_^
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intinig has quit [Remote host closed the connection]
<Ox0dea> You might genuinely want to replace rb_intern_str() with something less lenient; that seems like the sort of thing with teeth.
startupality has joined #ruby
Scrofff has quit [Ping timeout: 248 seconds]
jespada__ has joined #ruby
<apeiros> Ox0dea: (read the code) I see, you lazy bastard :D
djbkd_ has joined #ruby
senayar has quit []
<jokke> hi
<apeiros> (and I only read the makeboth part)
Burgestrand has quit [Read error: Connection reset by peer]
<Ox0dea> apeiros: Having six distinct and yet nearly identical functions is nonsensical, in my opinion.
<jokke> i'm having trouble setting up the bundle of an legacy project
<jokke> weirdly building native extensions by bundler almost always fails
<apeiros> Ox0dea: sure. we became coders because we want the computer to do our work, and not do it ourselves. I fully get that :D
GriffinHeart has joined #ruby
<jokke> but if i install the gem manually it works fine
<apeiros> according to larry wall, laziness is one of the three virtues of a good programmer ;-)
<Ox0dea> apeiros: Oui. Also, Ruby has conditioned me to "metaprogram" whenever the opportunity even vaguely presents itself.
<jokke> i have clang installed and had the issue some times, that it was used for compiling instead of gcc which led to problems
<jokke> i don't know if this is maybe related
<Ox0dea> Poor Larry. Perl 6 is going to be stillborn. :(
intinig has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
<Ox0dea> jokke: "weirdly", "almost always", "don't know", "maybe"; these are not actionable insights into the problem you're having.
<Ox0dea> Post errors.
intinig has quit [Remote host closed the connection]
mighty_gorilla has quit [Ping timeout: 256 seconds]
<jokke> ok it was a problem with nokogiri
<jokke> i rebuilt it
<Ox0dea> Phew.
<jokke> now it works
LMity has joined #ruby
Oka has joined #ruby
<yorickpeterse> ok dumb question, how do I get the codepoint of Unicodes in the form of "U+XXXXX" e.g. "U+AC0x"
<yorickpeterse> It's somewhere in the back of my head but I just can't remember it
<apeiros> what do you mean, "get"?
eGGsha has joined #ruby
<apeiros> what do you have and what do you want?
SOLDIERz has joined #ruby
<yorickpeterse> ok so you can do something like this
hollywood has joined #ruby
<apeiros> >> "\u001a - \u{0001a}"
<ruboto> apeiros # => "\u001A - \u001A" (https://eval.in/399131)
<yorickpeterse> >> "갆".codepoints
<ruboto> yorickpeterse # => [44038] (https://eval.in/399132)
chinmay_dd has quit [Read error: Connection reset by peer]
<Ox0dea> yorickpeterse: String#ord?
<yorickpeterse> Now I have a range of unicodes, U+AC00..U+D7AF to be exact, but I need to translate that to codepoints
<apeiros> well, ac00 is just the hex representation of the codepoint
<yorickpeterse> ah derp, it's "\uXXX" minus the +
<apeiros> i.e. U+AC00 == 44032 (0xAC00, or "AC00".to_i(16))
<yorickpeterse> that's what I was looking for
saadq has quit []
senayar has joined #ruby
senayar has joined #ruby
<apeiros> and yes, you can write it as "\uHHHH" (4 hex digits) or "\u{HHHHH}" (not 4 hex digits)
<apeiros> LUNCH!
* apeiros runs off
jespada__ has quit [Ping timeout: 264 seconds]
<yorickpeterse> boooooo, grep doesn't seem to support \p{Word}
astrobun_ has quit [Read error: Connection reset by peer]
mackle has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
Iskarlar has joined #ruby
<mackle> hello
DeweyD has joined #ruby
<Ox0dea> yorickpeterse: Nor ag, but ack does, because Perl.
<mackle> hello rubians
astrobun_ has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
<mackle> can we create .exe with ruby script
<mackle> ?
<Ox0dea> mackle: OCRA.
ruby-lang800 has joined #ruby
<yorickpeterse> mackle: Not out of the box
Karpah has joined #ruby
sevenseacat has quit [Ping timeout: 255 seconds]
revath has quit [Ping timeout: 265 seconds]
<mackle> means
krz has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<mackle> <yorickpeterse> can you clear me please?
<Ox0dea> mackle: You want to turn your Ruby script into a Windows executable, yes?
<mackle> yes
<Ox0dea> Use OCRA: http://ocra.rubyforge.org/
kfpratt has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
intinig has joined #ruby
OrbitalKitten has joined #ruby
djbkd_ has quit [Remote host closed the connection]
revath has joined #ruby
<yorickpeterse> mackle: what?
oo_ has quit [Remote host closed the connection]
frg133 has quit [Quit: Leaving]
ruby-lang800 has quit [Ping timeout: 246 seconds]
<mackle> <yorickpeterse> i want to create an exe file using ruby
ndrei has joined #ruby
<yorickpeterse> mackle: did you read my reply?
<mackle> <yorickpeterse> in windows os
<tuor> hi, how can i run a files content in ruby, like ". $myfile" in bash?
<tuor> in pry i mean
dANO_ has quit [Ping timeout: 256 seconds]
<yorickpeterse> mackle: read my reply
LMity has quit [Ping timeout: 256 seconds]
<yorickpeterse> and read Ox0dea's reply
<adaedra> tuor: with load
<tuor> adaedra, thx.
dANO_ has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
kfpratt has quit [Ping timeout: 256 seconds]
<mackle> <yorickpeterse> i read your's reply and 0x0dea's , but you said not out of box? what does it mean?
<yorickpeterse> That Ruby itself doesn't provide anything for this
oo_ has joined #ruby
xcesariox has joined #ruby
<mackle> <yorickpeterse> so what should i do, to get out of it...
startupality has quit [Quit: startupality]
<yorickpeterse> mackle: you use http://ocra.rubyforge.org/ as was already told
haraoka has quit [Ping timeout: 255 seconds]
futilegames has joined #ruby
<Ox0dea> mackle: You're not meant to get out of the box; you're just supposed to put more stuff in it.
Scrofff has joined #ruby
abuzze_ has joined #ruby
zacstewart has joined #ruby
abuzze has quit [Ping timeout: 246 seconds]
<mackle> any ex script
<mackle> <yorickpeterse> any ex script plz suggest me?
futilegames has quit [Client Quit]
xkef has joined #ruby
<yorickpeterse> mackle: http://google.com
Scroff has quit [Ping timeout: 264 seconds]
<yorickpeterse> also the actual ocra page contains plenty of examples
<yorickpeterse> So I suggest you actually read them
<mackle> <yorickpeterse> thank you so much
<mackle> really
<mackle> you make me get hard
<Ox0dea> Hey, he was only pretending to be retarded!
Outlastsheep is now known as zz_Outlastsheep
<yorickpeterse> mackle: you're welcome to act mature instead of being a 12 year old
<yorickpeterse> mackle: don't expect us to spoon feed you everything
zacstewart has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<Ox0dea> Do people spoon-feed their twelve-year-olds?
<yorickpeterse> only if they can't eat on their own
<Ox0dea> Is eating on your own considered "autocannibalism"?
oo_ has joined #ruby
xkef has quit [Ping timeout: 265 seconds]
htmldrum has joined #ruby
chinmay_dd has quit [Ping timeout: 244 seconds]
<ljarvis> lets stick on topic, and mackle responses like that won't be tolerated so please keep it civil
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Igorshp has joined #ruby
prestorium has quit [Ping timeout: 240 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
xkef has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
felixrsmith is now known as felixr
CatMartyn has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has joined #ruby
Iskarlar has joined #ruby
chinmay_dd has joined #ruby
shredding has joined #ruby
heidar has joined #ruby
<mackle> <yorickpeterse> guys don't feel bad..if it hurts you...i am extremely sorry.
fabrice31 has joined #ruby
<yorickpeterse> hurts? No, I only laugh at people who say things like that
arturmartins has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
chipotle has joined #ruby
chipotle has quit [Client Quit]
lkba_ has joined #ruby
psyprus has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
mackle has left #ruby [#ruby]
DeweyD has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 250 seconds]
DeweyD has joined #ruby
howdoicomputer has quit [Ping timeout: 256 seconds]
melter has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andrefreitas has joined #ruby
<andrefreitas> Hi, how I test a gem project in IRB?
<andrefreitas> I forgot the syntax :/
tubuliferous_ has joined #ruby
<ljarvis> andrefreitas: "test a gem project"?
<jhass> andrefreitas: irb -Ilib
Zai00 has quit [Quit: Zai00]
<andrefreitas> I am developing a gem
<andrefreitas> and I want to be able to test the classes I have implemented in irb
<jhass> as said, irb -Ilib or even irb -Ilib -rmygem
<andrefreitas> thank you, it worked
<Ox0dea> andrefreitas: You're lucky jhass speaks gibberish. :)
<andrefreitas> Ox0dea: :D
<Ox0dea> Only poking fun, of course.
<adaedra> jhass: shkjbvksdhf
<apeiros> Ox0dea: we get plenty of exercise in gibberish and mentalism here
<jhass> apeiros: no, your mother
<jhass> wah, adaedra ^
<apeiros> lol
<adaedra> lol
<apeiros> jhass: nobody insults my mother!
<apeiros> wait…
* jhass curses lru tab completion
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> :|
<apeiros> jhass: I won't let anybody insult my mother! # fixed
tubuliferous_ has quit [Ping timeout: 256 seconds]
<apeiros> (sorry for all those who didn't catch it :-p)
<adaedra> jhass: that's a shame, typing just one more letter before tab would have avoided that. :p
<tuor> hi, code: https://gist.github.com/anonymous/fad4dcdf973f027b74c8, can I write it with out using a second array?
eGGsha has joined #ruby
platzhirsch has joined #ruby
Xiti` has joined #ruby
<apeiros> tuor: Array#map
<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
<adaedra> in the big picture
montyboy has joined #ruby
<Ox0dea> He doesn't know.
<kokut> Ox0dea: what is it that i dont know? ^^
<jhass> que: https://github.com/cheald/manticore/blob/master/manticore.gemspec#L15 manticore is only available for jruby
<que> hmmm ok
<que> so what You recommend for a solution
arup_r_ has quit []
<que> install aditionaly jruby ?
Scrofff has quit [Ping timeout: 252 seconds]
Oka has quit [Remote host closed the connection]
<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
<jhass> que: why do you need to use manticore?
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
<que> i tried installing all possible ones
<que> maybe it wants 0.0.3
<que> but 0.0.3 is not existing anymore
<jhass> que: that too seems to only be available for jruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
Xiti` has quit [Quit: Xiti`]
<Ox0dea> >> require p = 'prime'; [p.size, %w[aeiou ^aeiou a-m n-z].map { |c| p.count(c) }, 16+18+9+13+5].flatten.all?(&:prime?)
last_staff has quit [Quit: last_staff]
<ruboto> Ox0dea # => true (https://eval.in/399199)
<que> and what problem it makes to install it via gem ?
<que> is there something like jgem ?
chinmay_dd has quit [Quit: See ya!]
wildroman2 has joined #ruby
<jhass> que: well, are you using jruby?
xkef has quit [Ping timeout: 264 seconds]
<que> i dont even know is there installed
Iskarlar has joined #ruby
zacstewart has joined #ruby
<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…]
* sevenseacat goes back to practicing Esperanto
<jhass> sevenseacat: I'd go with your nick color here http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150715_130059.png
kfpratt has quit [Ping timeout: 255 seconds]
<sevenseacat> hell yeah.
<sevenseacat> violkolora!
<Ox0dea> jhass: You're that color for me.
<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
<ruboto> jhass # => :module (https://eval.in/399235)
sp1rs has quit [Quit: sp1rs]
nettoweb_ has quit [Ping timeout: 248 seconds]
sp1rs has joined #ruby
thomas has joined #ruby
Violentr has quit [Ping timeout: 265 seconds]
<Darkwater> jhass: I'm talking about in the scope of the class itself
<Darkwater> not Foo.new.bar, but Foo.bar
<Darkwater> DataMapper does this
<apeiros> Darkwater: you can't
<apeiros> you have to extend
bruno- has joined #ruby
<Darkwater> pretty sure it's possible somehow
<apeiros> include *always* adds methods as instance methods
<apeiros> yeah, well, you're mistaken :)
<Darkwater> pretty sure I'm not
<apeiros> yes. they cheat.
<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…]
zacstewa_ has joined #ruby
chipotle_ has joined #ruby
edwinvdgraaf has joined #ruby
jottr has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
fabrice31_ has joined #ruby
code_[BNC] has joined #ruby
einarj_ has joined #ruby
tommylom1ykins has joined #ruby
viki_ has joined #ruby
yqt has joined #ruby
headius_ has joined #ruby
saltsa_ has joined #ruby
Pupeno has quit [Client Quit]
lessless has joined #ruby
Biohazard_ has joined #ruby
haroldwu_ has joined #ruby
<Darkwater> that's what I want to do
alexblom has joined #ruby
Cust0sLim3n has joined #ruby
<apeiros> module Something + extend
ldnunes has joined #ruby
hfp__work has joined #ruby
S0da has joined #ruby
<apeiros> and in Something, def field
eregon_ has joined #ruby
<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]
<sevenseacat> gsub? :trollface:
<tuor> hi, code: https://gist.github.com/anonymous/f8547d3b50db60dbadcd, I want that zabbix.templates.get_name(id) gives me the name of the id.
devdazed has joined #ruby
<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> 3rd time: data['newkey'] = data.delete('key')
arup_r has quit [Remote host closed the connection]
Dwarf has joined #ruby
<ddv> :)
<denym_`> apeiros: Thats still regardles, its just about the change of the key... if I stash a file before into a variable or the otherway around
<tuor> Did it like it's done in https://github.com/express42/zabbixapi/blob/master/lib/zabbixapi/classes/templates.rb. @client.api_request. This works. Just don't completly understand why. ^^
<apeiros> ok. I don't have patience for this.
<apeiros> I hope somebody else can help you.
jaxxstorm has joined #ruby
<denym_`> yeah better with your fascist way of treating people like shit and thinking they have to be stupid
<apeiros> !kick denym_` inacceptable
denym_` was kicked from #ruby by ruboto [inacceptable]
bruno- has joined #ruby
<sevenseacat> i guess they didnt understand the difference.
<tuor> apeiros, it's ok. It works now. I will understand in future maybe. It's much ruby for one day. ^^ Maybe I get it an other day.
<apeiros> I also guess they didn't consider accepting that I can't/no longer want to help them and move on.
josh2 has joined #ruby
<tuor> (it's my second script language, after bash). ;)
tubuliferous_ has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
<sevenseacat> apeiros: remember, youre a helper drone - you must help everyone regardless of everything.
<apeiros> of course. my time is worthless. I should be grateful somebody asks me for help.
<ddv> lol he got really frustrated
<sevenseacat> in about three seconds flat, too
joonty has joined #ruby
<apeiros> and if I waste somebody's time with information which doesn't help them, I should feel ashamed and go into the hiding spot.
howdoicomputer has quit [Ping timeout: 248 seconds]
teotwaki has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 250 seconds]
<apeiros> *somebody's +precious+ time
Ropeney has joined #ruby
<jhass> ?cookie apeiros
<ruboto> apeiros, here's your cookie
jenrzzz has joined #ruby
Kully3xf has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
<ljarvis> ?cookie ljarvis
<ruboto> ljarvis, here's your cookie
blackmesa has joined #ruby
<ljarvis> ...
<ljarvis> WHERE
* tuor appreciates this channels help! ;)
casadei_ has joined #ruby
<ljarvis> !fact ed cookie here's your cookie:
<ruboto> ljarvis, I stand corrected that cookie is here's your cookie:
teotwaki has joined #ruby
<ljarvis> ?cookie ruboto
<ruboto> ruboto, here's your cookie:
<sevenseacat> :D
<ljarvis> better
Muhannad has quit [Ping timeout: 240 seconds]
chinmay_dd has quit [Ping timeout: 256 seconds]
danzilio has joined #ruby
ta has joined #ruby
poguez_ has joined #ruby
danzilio has quit [Max SendQ exceeded]
devdazed has quit [Quit: Computer has gone to sleep.]
Musashi007 has quit [Quit: Musashi007]
jenrzzz has quit [Ping timeout: 246 seconds]
danzilio has joined #ruby
<Darkwater> apeiros: about the type helper thing from earlier, how would you recommend me to handle the input object from the initializer?
<Darkwater> ie. handling the object I'm passing to Message.new here http://hastebin.com/yatoguhoka.rb
<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]
bungoman has joined #ruby
rudak has joined #ruby
<Darkwater> apeiros: aw yeah, sweet success! http://novaember.com/s/8f9453/OaEHnm.png
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]
minver has joined #ruby
Yiota has joined #ruby
prefixed has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
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?
prestorium has joined #ruby
_blizzy_ has joined #ruby
<flujan> this is a sample code: http://pastie.org/10294554
<adaedra> I think it raises on exception
bodzio has quit [Client Quit]
axl_ has joined #ruby
<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]
barkerd427_ is now known as zz_barkerd427
prestorium has joined #ruby
danzilio has quit [Quit: baiiiii!]
teotwaki has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
Zamyatin has joined #ruby
zz_barkerd427 is now known as barkerd427_
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?
prefixed has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<jhass> your perception. Colors look much lighter on bigger surfaces
<shevy> screenshot!
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
Iskarlar has joined #ruby
davejlong has joined #ruby
barkerd427_ is now known as zz_barkerd427
<bhorn1> jhass I thought the same at first. But this is terribly different. Working on a screenshot
kies^ has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
<shevy> \o/
<bhorn1> There's an image of the color next to the RGBA
<shevy> the first 3 are RGB values?
<bhorn1> yes
lavros has quit [Quit: leaving]
<bhorn1> With the final being an alpha
Torrieri has joined #ruby
jenrzzz has joined #ruby
<shevy> in ruby-gnome I usually end up just using the trivial-names, such as slateblue and such, and Gdk::Color.parse()
jud has joined #ruby
Yiota has quit [Client Quit]
<adaedra> yep, those are totally different colors.
<shevy> hehe
lavros has joined #ruby
<bhorn1> The only reason it's such a particular thing here is it's a brand color.
<sevenseacat> whats a different colour to what?
<adaedra> the color in the window vs the color defined by the color code
<adaedra> (tried by setting manually screenshot's page background to the given code)
<bhorn1> If I can't achieve the exact color, the reason behind coloring it becomes moot.
<sevenseacat> yeah, not the same colour.
downwithbender has joined #ruby
<sevenseacat> that blue is like 00FFFF
darkf has quit [Quit: Leaving]
<sevenseacat> and the osx colour meter confirms it.
downwithbender has quit [Client Quit]
<bhorn1> Is there any better way to achieve a specific color via ruby gdk?
<bhorn1> I have the CMYK, RBB, as well as the hex for it.
<adaedra> wait
mary5030 has joined #ruby
<adaedra> nvm
<adaedra> That's very strange tho
hoov has quit [Ping timeout: 255 seconds]
<adaedra> can you try setting the color elsewhere, on a very basic widget for example? Maybe you have a square shape or something?
<bhorn1> It seems to be taking all of my colors and drastically increasing the brightness of them.
<sevenseacat> does that method actually take numbers from 0-1 instead of 0-255?
jenrzzz has quit [Ping timeout: 256 seconds]
[H]unt3r has joined #ruby
<adaedra> ah, possible
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> bhorn1 hmm I have not yet used Gdk::RGBA
mary5030 has quit [Remote host closed the connection]
<bhorn1> shevy what do you typically use? Just predefined colors?
<sevenseacat> implies it does
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segfalt has joined #ruby
<adaedra> from 0.0 to 1.0
mary5030 has joined #ruby
<sevenseacat> yeah there we go
<bhorn1> Thank you!
radialneon has quit [Ping timeout: 256 seconds]
yuuvee has quit [Ping timeout: 252 seconds]
<bhorn1> Does that scale as simply as it seems?
<sevenseacat> yep. divide your numbers by 255
<adaedra> you can just / 255.0 if you want to keep values visible
<bhorn1> Sweet.
<bhorn1> Thanks so much guys
<jhass> .fdiv(255) :P
<bhorn1> trying
kfpratt has quit [Remote host closed the connection]
<sevenseacat> aaaaaand that kills my fuzzy happy i-helped-someone glow :(
ndrei has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
allomov has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
<shevy> Thanks so much guys and cats!
<adaedra> sevenseacat: what?
intinig has joined #ruby
<jhass> adaedra: guys
<sevenseacat> <-- not a guy
serivichi has joined #ruby
<adaedra> aah
<bhorn1> awh
<bhorn1> Thank you the most sevenseacat :)
<sevenseacat> woo :P
fenjamin has joined #ruby
<adaedra> I'm a meat popsicle.
<sevenseacat> sorry, thats my pet peeve lately.
<bhorn1> Works properly! Much appreciated everyone!
<sevenseacat> yw :)
<bhorn1> No worries at all.
JoshL has joined #ruby
<bhorn1> I believe strongly in the whole, "credit where credit is due."
serivich has quit [Ping timeout: 244 seconds]
foureight84 has quit [Quit: Lingo: www.lingoirc.com]
<adaedra> ri, why are you so obscure to me :'(
phutchins2 has quit [Quit: WeeChat 1.1.1]
workmad3 has quit [Ping timeout: 246 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tuor> is there a shortcut for?: array1 = array1 | array2
<adaedra> ||, I presume
<adaedra> ||=
<tuor> I want to join to arrays into the first one, without duplicates.
<adaedra> ah
arup_r has joined #ruby
yardenbar has quit [Quit: Leaving]
<ljarvis> tuor: |=
<ljarvis> >> [1] |= [1,2]
<ruboto> ljarvis # => /tmp/execpad-3b96e342e9a9/source-3b96e342e9a9:2: syntax error, unexpected tOP_ASGN, expecting keywor ...check link for more (https://eval.in/399345)
<ljarvis> lol
<ljarvis> im an idiot
<sevenseacat> lol
<ljarvis> >> a = [1]; a |= [1,2]
<ruboto> ljarvis # => [1, 2] (https://eval.in/399346)
<ljarvis> >> a = [1]; a |= [1,2]; a
<ruboto> ljarvis # => [1, 2] (https://eval.in/399347)
<ljarvis> fml
* ljarvis closes laptop
bronson has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
<ljarvis> tuor: basically, use |=
<tuor> ljarvis, ah got it thx!
_blizzy_ has joined #ruby
<tuor> Is there a reason why |= is not listed here?: http://ruby-doc.org/core-2.2.0/Array.html
<adaedra> because it's basically #|
Yiota has joined #ruby
<tuor> ok
arooni-mobile has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
<ljarvis> tuor: same as += isn't defined
<ljarvis> or *= or /=
radialneon has joined #ruby
rippa has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<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 ?
wprice has joined #ruby
<arup_r> I updated the gist a bit
willywos has joined #ruby
<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
<ljarvis> >> class Foo; end; foo = Foo.new; [foo.inspect, (foo.object_id << 1).to_s(16)]
<ruboto> ljarvis # => ["#<Foo:0x4163ff88>", "4163ff88"] (https://eval.in/399350)
<ljarvis> right, hence abusing it
<ljarvis> you have to bitshift
<pfish> but I'm trying to do this from C
<pfish> ie not from ruby
araujo has quit [Quit: Leaving]
radialneon has quit [Remote host closed the connection]
konsolebox has joined #ruby
niemcu has joined #ruby
Torrieri has quit [Quit: Lingo: www.lingoirc.com]
<pfish> there has to be a way in C or the program wouldnt run
<ljarvis> ok
<ljarvis> enjoy
<pfish> lol that not even the worst of it
<pfish> im on 2.2.0
Agoldfish has joined #ruby
<pfish> and gc.c has only grown since then
renderful has joined #ruby
<pfish> thanks though
Torrieri has joined #ruby
Torrieri has quit [Changing host]
Torrieri has joined #ruby
shinnya has joined #ruby
renderful has quit [Read error: Connection reset by peer]
speaking1ode has quit [Ping timeout: 240 seconds]
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
quimrstorres has quit [Remote host closed the connection]
bronson has joined #ruby
renderful has joined #ruby
bruno- has joined #ruby
prestorium has quit [Ping timeout: 250 seconds]
SuMo_D has joined #ruby
baweaver has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
OrbitalKitten has joined #ruby
pkrnj has joined #ruby
ruurd has joined #ruby
jamesaxl has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
freerobby has quit [Quit: Leaving.]
tesuji has quit [Read error: Connection reset by peer]
Thomas-0725 has joined #ruby
fenjamin has quit [Ping timeout: 264 seconds]
rcvalle has joined #ruby
allomov has joined #ruby
livathinos has quit []
tmtwd has joined #ruby
NeverDie has joined #ruby
<[k-> [20:23:40] <apeiros> !kick denym_` inacceptable
<[k-> *unacceptable
<adaedra> wut
<[k-> 3hoursago
bnizzle1 has joined #ruby
Cache_Money has joined #ruby
bungoman has quit [Remote host closed the connection]
bnizzle has quit [Ping timeout: 244 seconds]
<adaedra> I missed that
tkuchiki has quit [Remote host closed the connection]
endash has joined #ruby
theery has joined #ruby
<ljarvis> um no, inacceptable is correct
<ljarvis> or at least, not incorrect
<ljarvis> thus it is acceptable
bronson has quit [Remote host closed the connection]
flujan has quit [Quit: flujan]
<[k-> failed pun
griffindy has quit [Read error: Connection reset by peer]
<ljarvis> you say failed, I say !ban [k- !T 100w
twistedpixels has quit [Ping timeout: 256 seconds]
towski_ has joined #ruby
<[k-> insert-emoticon-here.txt
sharpmachine has joined #ruby
twistedpixels has joined #ruby
FooMunki has joined #ruby
bronson has joined #ruby
<hanmac> shevy checkout the new specs for rwx ;P their numbers are growing ;P
<shevy> [k- in german they tend to say inakzeptabel so that is why the brain favours the innacceptable rather the unacceptable variant
LMity has joined #ruby
<[k-> inacceptable is inacceptablely inferior
<[k-> inacceptably*
<adaedra> ?ot [k-
<ruboto> [k-, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<[k-> :(
fullofcaffeine has joined #ruby
<adaedra> :)
jottr has quit [Ping timeout: 246 seconds]
<[k-> mfw your face == :)
sp33drac3r has joined #ruby
baweaver has quit [Remote host closed the connection]
<hanmac> [k-: Lemongrab from AdventureTime always screams "unacceptable!!!!", there you can see how its used
nobitanobi has joined #ruby
fantazo has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman> ?ops
<ruboto> To call for ops use the !ops command.
duggiefresh has quit [Remote host closed the connection]
<dudedudeman> wait.. i guess i don't want to call for ops, but would want to know who they are?
<ljarvis> you can't have one without the other
<jhass> dudedudeman: /msg ChanServ ACCESS #ruby LIST
<ljarvis> well, you can because they're also here http://ruby-community.com/pages/irc_staff
<ljarvis> ah access, good point
<jhass> website, good point
<shevy> is that list on the website maintained manually?
<apeiros> omg, we have a website?!?
<apeiros> ?ops
<ruboto> To call for ops use the !ops command.
<dudedudeman> love it*
<apeiros> !fact ed ops to call for ops use the !ops command. You can find a list of channel staff on http://ruby-community.com/pages/irc_staff
<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]
edwinvdg_ has joined #ruby
Scroff has quit [Ping timeout: 246 seconds]
rehat has joined #ruby
mikepack has joined #ruby
Timba-as has quit [Quit: Be back later ...]
amclain has joined #ruby
valkyrka has joined #ruby
graydot has joined #ruby
<valkyrka> hi guys, I’m seeing this error in my production.log log for Redmine - https://gist.github.com/anonymous/b686a982623f60250894 I did set config.active_record.whitelist_attributes to false however no go
<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
<wedgwood> WEBrick is making me insane. https://gist.github.com/anonymous/3c049a0f597546237426
revath has joined #ruby
<wedgwood> Anyone know why the resp.body I set isn't in the error message?
<ccooke> [k-: I believe it is implementation dependant. There's no defined standard on what the hash value is, other than a Fixnum
jaxxstorm has quit [Client Quit]
MagePsycho_ has quit [Quit: MagePsycho_]
fsvehla has quit [Quit: fsvehla]
<[k-> it changes across invocations
jottr has quit [Read error: Connection reset by peer]
<[k-> of mri
<ccooke> yes
jottr has joined #ruby
<[k-> could it be dependent on object_id
<hanmac> [k- in the MRI c-api there are functions for doing that ... checkout rb_hash_start and rb_hash_end
<ccooke> no, that wouldn't provide the bahaviour necessary
<ljarvis> enjoy
<[k-> I do not enjoy c
edwinvdg_ has joined #ruby
kfpratt has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<[k-> so many macros.....
einarj has quit [Remote host closed the connection]
bashusr has quit [Ping timeout: 256 seconds]
<ljarvis> meh, some libraries are built entirely in macros
<hanmac> [k-: there is one where i did use them: https://github.com/Hanmac/rwx/blob/master/ext/wxColor.cpp#L377
Thomas-0725 has joined #ruby
<hanmac> ljarvis: or like mine where i have macros for macros for methods ;P
<[k-> apparently I can't read c
charliesome has joined #ruby
ponga has joined #ruby
Torrieri has quit [Quit: Be back later ...]
<ponga> hi
pengin has joined #ruby
<[k-> Hi ponga
mjuszczak has quit []
<wedgwood> Oops fixed a bug, but still the same result https://gist.github.com/anonymous/cc367a624d6864cbd104
senayar has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
LMity has quit [Ping timeout: 246 seconds]
<ljarvis> wedgwood: maybe im missing something, it looks ok to me?
<ljarvis> maybe add the expected behaviour in your gist
<ljarvis> oh
<ljarvis> im stupid
edwinvdgraaf has quit [Ping timeout: 248 seconds]
<ljarvis> ignore that
<wedgwood> Heh
mjuszczak has joined #ruby
<ljarvis> wedgwood: is the content-type returned actually text/plain?
gambl0re has quit [Read error: Connection reset by peer]
bricker has joined #ruby
* wedgwood checks
<adaedra> Stop saying “I'm stupid”.
Kully3xf_ has joined #ruby
<ljarvis> no
<adaedra> You're really intelligent, but as human, sometimes failible, and that's ok.
gambl0re has joined #ruby
<[k-> technically, he said "im stupid"
<ljarvis> nope it's stupid
<ljarvis> and I'm ok with it
Kully3xf has quit [Ping timeout: 264 seconds]
tens0r has joined #ruby
Ilyas_ has joined #ruby
sarkyniin has joined #ruby
t0rrieri has joined #ruby
<wedgwood> ljarvis: no, text/html; charset=ISO-8859-1 (and thanks for looking!)
<wedgwood> Oh
<ljarvis> wedgwood: that's probably the issue
<ljarvis> does Content-Type work?
<wedgwood> Actually I'm stupid ;)
<wedgwood> The bug might be elsewhere
<ljarvis> ah
duggiefresh has joined #ruby
bashusr has joined #ruby
<ljarvis> thanks for providing all necessary code /s
bashusr has quit [Changing host]
bashusr has joined #ruby
senayar has quit [Client Quit]
<wedgwood> heh
griffindy has joined #ruby
<wedgwood> I just realized I'm not actually mounting that servlet, I'm just calling @agent.process in mount_proc
charliesome has quit [Quit: zzz]
<wedgwood> so that'd do it
duderonomy has quit [Ping timeout: 256 seconds]
Ilyas has quit [Ping timeout: 240 seconds]
ponga has left #ruby [#ruby]
Kully3xf has joined #ruby
<wedgwood> ffs. that was it. thanks again
towski_ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
zly has quit [Quit: leaving]
Kully3xf_ has quit [Ping timeout: 255 seconds]
cochise has quit [Read error: Connection reset by peer]
cochise has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
white_bear has quit [Quit: leaving]
ndrei has quit [Ping timeout: 264 seconds]
_solomon has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
reset has joined #ruby
AviShastry has joined #ruby
reset has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
Iskarlar has joined #ruby
mleung has joined #ruby
beef-wellington has joined #ruby
bungoman has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
keeguon has quit [Quit: keeguon]
User458764 has joined #ruby
User458764 has quit [Client Quit]
aryaching has joined #ruby
tkuchiki has joined #ruby
finisherr has joined #ruby
lanemeyer has quit [Ping timeout: 265 seconds]
Iskarlar has quit [Client Quit]
ndrei has joined #ruby
bronson has joined #ruby
bungoman has quit [Ping timeout: 248 seconds]
mjuszczak has quit []
tkuchiki has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
endash has quit [Quit: endash]
tuelz has joined #ruby
jottr has joined #ruby
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
cscheib_ is now known as cscheib
allomov has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
Voker57 has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Ping timeout: 240 seconds]
bungoman has joined #ruby
valkyrka has quit [Quit: valkyrka]
shadoi has joined #ruby
pengin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
withnale__ has joined #ruby
towski_ has joined #ruby
tens0r has quit [Quit: tens0r]
snockerton has left #ruby [#ruby]
godzillaenlacasa has quit [Quit: Peace Out Peeps!]
Scrofff has quit [Ping timeout: 244 seconds]
blaines has joined #ruby
prestorium has joined #ruby
davejlong has joined #ruby
pabloh has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
allomov has joined #ruby
josh2 has quit [Quit: WeeChat 1.1.1]
withnale_ has quit [Ping timeout: 256 seconds]
n008f4g_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
f4cl3y has quit [Ping timeout: 265 seconds]
dopie has quit [Quit: This computer has gone to sleep]
graydot has quit [Quit: graydot]
Skelz0r has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
blaines_ has joined #ruby
ta has joined #ruby
blaines has quit [Ping timeout: 248 seconds]
stamina has quit [Quit: WeeChat 1.2]
momomomomo has quit [Quit: momomomomo]
jottr has quit [Ping timeout: 244 seconds]
leat1 has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
plashchynski has quit [Quit: plashchynski]
davejlong has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
SuMo_D has joined #ruby
chinmay_dd has joined #ruby
howdoicomputer has joined #ruby
mjuszczak has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
bungoman has quit [Remote host closed the connection]
gambl0re has quit [Remote host closed the connection]
fenjamin has joined #ruby
sgambino has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
hj2007 has joined #ruby
EllisTAA has joined #ruby
SuMo_D has quit [Ping timeout: 240 seconds]
axl_ has quit [Ping timeout: 245 seconds]
kies^ has quit [Ping timeout: 244 seconds]
hj2007 has quit [Client Quit]
gambl0re has joined #ruby
howdoicomputer has quit [Ping timeout: 248 seconds]
araujo_ has joined #ruby
araujo_ has quit [Read error: Connection reset by peer]
hj2007 has joined #ruby
mike___1234 has quit [Read error: Connection reset by peer]
Yiota has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
araujo has quit [Ping timeout: 244 seconds]
Zai00 has quit [Quit: Zai00]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has quit [Quit: finisherr]
jottr has joined #ruby
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pisuke has joined #ruby
bungoman has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
howdoicomputer has joined #ruby
chinmay_dd has quit [Ping timeout: 264 seconds]
iateadonut has quit [Quit: Leaving.]
mercerist has joined #ruby
ht__ has joined #ruby
MyMind has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
djbkd has quit [Remote host closed the connection]
jerius has quit [Quit: /quit]
mleung has quit [Quit: mleung]
chipotle has quit [Quit: cheerio]
benlieb has quit [Quit: benlieb]
mleung has joined #ruby
codecop has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
jerius has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
codecop has joined #ruby
plashchynski has joined #ruby
dellavg has joined #ruby
ruurd has joined #ruby
shadoi has quit [Quit: Leaving.]
mjuszczak has quit []
fgo has joined #ruby
xcesariox has joined #ruby
braidn has quit [Quit: ZNC - http://znc.in]
blue_deref has joined #ruby
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?
McSoFake has quit [Quit: WeeChat 1.2]
webopsx has joined #ruby
momomomomo has joined #ruby
<phoo1234567> I've tried "a=CSV.read("./TEST-03.EXP", {:headers => :first_row, :col_sep => "\t"} ).drop(1)"
__butch__ has joined #ruby
[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]
bricker has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
Timba-as_ has quit [Ping timeout: 255 seconds]
kies^ has quit [Ping timeout: 252 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
eggoez has joined #ruby
GhettoCode has quit [Ping timeout: 240 seconds]
nveselinov has joined #ruby
sharpmachine has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
dabradley has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
mozzarel1 is now known as mozzarella
fantazo has quit [Quit: Verlassend]
phutchins has quit [Ping timeout: 264 seconds]
zz_barkerd427 is now known as barkerd427_
baweaver has joined #ruby
k3asd` has joined #ruby
kies^ has joined #ruby
bffff_ has joined #ruby
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
chipotle has joined #ruby
heinrich5991 has joined #ruby
AlphaAtom has joined #ruby
McSoFake has quit [Quit: WeeChat 1.2]
jbw_ has joined #ruby
to_json has quit [Quit: WeeChat 1.1.1]
devbug has joined #ruby
bhorn1 is now known as bhorn1|away
workmad3 has joined #ruby
gamename has joined #ruby
ruby-lang077 has quit [Ping timeout: 246 seconds]
pocketprotector has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 256 seconds]
dfockler has quit [Remote host closed the connection]
girakrok has joined #ruby
davedev2_ has joined #ruby
girakrok has quit [Max SendQ exceeded]
Alina-malina has quit [Max SendQ exceeded]
davedev24 has quit [Ping timeout: 248 seconds]
barkerd427_ is now known as zz_barkerd427
peter_paule has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
jhack has quit [Ping timeout: 252 seconds]
bhorn1|away is now known as bhorn1
Fezzler has joined #ruby
girakrok has joined #ruby
jhack has joined #ruby
psy_ has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
lapide_viridi has quit [Quit: Leaving]
revath has quit [Ping timeout: 255 seconds]
Igorshp has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby
pengin has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 246 seconds]
borklaser has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
Jackneill has quit [Remote host closed the connection]
Salve has joined #ruby
borklaser has left #ruby [#ruby]
drewvanstone has joined #ruby
ndrei has joined #ruby
peter_paule has joined #ruby
bricker has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
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
edwinvdg_ has joined #ruby
sofija has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
blueOxigen has quit [Ping timeout: 240 seconds]
xkef has joined #ruby
luriv has joined #ruby
ruurd has quit [Client Quit]
<bricker> /activity/latest "Pulls the 50 gems most recently added to RubyGems.org (for the first time). "
<shevy> whoa, cool! thanks bricker
edwinvdgraaf has quit [Ping timeout: 248 seconds]
avitzurel has joined #ruby
charliesome has quit [Quit: zzz]
bluOxigen has quit [Ping timeout: 252 seconds]
nettoweb has quit [Ping timeout: 256 seconds]
renderful has quit [Remote host closed the connection]
nettoweb has joined #ruby
Viata has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
psy_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
barkerd427_ is now known as zz_barkerd427
JoshL has quit []
Viata has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
edwinvdgraaf has joined #ruby
peter_paule has quit [Ping timeout: 246 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
davedev24 has joined #ruby
MagePsycho_ has quit [Quit: MagePsycho_]
dseitz has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
arup_r has quit [Remote host closed the connection]
davejlong has quit [Remote host closed the connection]
bronson has joined #ruby
davejlong has joined #ruby
ruurd has joined #ruby
qhartman has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
hanmac has quit [Ping timeout: 246 seconds]
pkrnj has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
jbw_ has quit [Remote host closed the connection]
__main__ has quit [Ping timeout: 256 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
EllisTAA has joined #ruby
baweaver has joined #ruby
tchebb has joined #ruby
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
fmcgeough has quit [Quit: fmcgeough]
aryaching has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
graydot has quit [Quit: graydot]
htmldrum has joined #ruby
symbol has quit [Ping timeout: 248 seconds]
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]
MagePsycho_ has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
wildroman2 has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
tjohnson has joined #ruby
prestorium has quit [Quit: Konversation terminated!]
godzillaenlacasa has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
MagePsycho_ has quit [Client Quit]
prestorium has joined #ruby
quimrstorres has joined #ruby
t_ has joined #ruby
pengin has joined #ruby
momomomomo has joined #ruby
baweaver has quit [Remote host closed the connection]
yuuvee has joined #ruby
<hj2007> what is the right way to remove everything after last _ in a string. abc_def_ghi_kl -> abc_def_ghi and abc_def_g -> abc_def?
htmldrum has quit [Ping timeout: 256 seconds]
<adaedra> gsub(/_[^_]+\z/, '')?
charliesome has joined #ruby
<adaedra> oh, I may have better
bmurt has quit []
diegoviola has quit [Quit: WeeChat 1.2]
<hj2007> @adaedra what about split and then join?
<adaedra> rpartition('_').first
t0rrieri has quit [Quit: Be back later ...]
<adaedra> no need to split on all _ when you can do on just one
Blaguvest has joined #ruby
<adaedra> >> %w[abc_def_ghi_kl abc_def_g].map do |x| x.rpartition('_').first end
<ruboto> adaedra # => ["abc_def_ghi", "abc_def"] (https://eval.in/399476)
baweaver has joined #ruby
<hj2007> cool, thanks
Yiota has joined #ruby
<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'?
blackmesa has joined #ruby
<jhass> yup
Kully3xf has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
<bricker> TeresaP: >> "old text".sub("old", "new")
<bricker> >> "old text".sub("old", "new")
<ruboto> bricker # => "new text" (https://eval.in/399477)
<Mon_Ouie> Sure, although some sequences of characters in the replacement string are given a special meaning
bsdbofh is now known as bwilson
<Mon_Ouie> (\1 means "first capture group", it won't actually generate the string \1 in the output)
<TeresaP> It responds to regular expressions too, right?
<TeresaP> str.sub("href.*?=.*?'(.*?)'", 'foo')
<jacky> q/wqq
<Ox0dea> jacky: First day on Linux?
<jacky> lol nah
<jacky> Ox0dea: wasn't paying attention to what pane in tmux I was in
Musashi007 has quit [Quit: Musashi007]
<TeresaP> Should replace qqq inside href='qqq' ==> href='foo' ?
m8_ has quit [Quit: Sto andando via]
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
<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
<TeresaP> eh?
cek has joined #ruby
_solomon has quit [Quit: _solomon]
jottr has joined #ruby
<mikecmpbll> >> "yeah man".gsub(/yeah|man|/, { "yeah" => "ya", "man" => "mon" })
<ruboto> mikecmpbll # => "ya mon" (https://eval.in/399478)
msnyon has joined #ruby
havenwood has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
<adaedra> ?regexandxml
<ruboto> I don't know anything about regexandxml
paulcsmith has quit [Quit: Be back later ...]
<Ox0dea> > The <center> cannot hold it is too late.
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> precisely.
edwinvdg_ has joined #ruby
<Ox0dea> Mon_Ouie: SO's "share" button is rather hard to see.
<Mon_Ouie> Ox0dea: I actually didn't find it, I found a link straight to that answer instead :p
<TeresaP> I'm not parsing html, I'm replacing a piece of text inside json with a correct url encoding
momomomomo has quit [Quit: momomomomo]
cpruitt has quit [Quit: cpruitt]
prestorium has quit [Quit: Konversation terminated!]
segfalt has quit [Quit: segfalt]
<TeresaP> That link is funny though :)
<Mon_Ouie> Okay, sorry for assuming then
desigx has quit [Ping timeout: 240 seconds]
Zinja has quit [Quit: Leaving]
sharpmachine has quit [Remote host closed the connection]
<TeresaP> Someone put a ton of urls in there with spaces and it is breaking my LibXML::XML::Schema.from_string call
<Mon_Ouie> Also you don't need gsub's block form for this either. You can do gsub(/…/, 'href=\1')
<TeresaP> excellent
Scroff has joined #ruby
msnyon has quit [Ping timeout: 255 seconds]
devbug has quit [Ping timeout: 256 seconds]
Scroff has quit [Remote host closed the connection]
<Ox0dea> I thought maybe there was some wonky stuff after the "href" that needed to be kept.
<Mon_Ouie> (notice the use of single quotes)
edwinvdgraaf has quit [Ping timeout: 264 seconds]
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
<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
<TeresaP> don't eat me
<BeepDog> I'm getting a segfault on osx, and I was wondering if someone could look at this and point me in the right direction: https://github.com/jordansissel/fpm/issues/959
<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]
blaines has joined #ruby
<Ox0dea> >> 'Regexp.last_match[1]'.size / '$1'.size
<ruboto> Ox0dea # => 10 (https://eval.in/399481)
<Ox0dea> Just sayin'.
baweaver has quit [Ping timeout: 244 seconds]
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]
<apeiros> Mon_Ouie: incomplete description :-p
<apeiros> > regexp literal +without interpolations
<Ox0dea> >> /(?<local>\w+)/ =~ 'yes'; local
<ruboto> Ox0dea # => "yes" (https://eval.in/399491)
<Ox0dea> Kinda scary.
choppington has quit [Ping timeout: 246 seconds]
gamename has quit []
<Ox0dea> >> /(?<local>#{'\w'}+)/ =~ 'yes'; local
<ruboto> Ox0dea # => "yes" (https://eval.in/399493)
<Ox0dea> apeiros: ^?
[H]unt3r has quit []
desigx has quit [Ping timeout: 244 seconds]
Ilyas_ has quit [Read error: Connection reset by peer]
<apeiros> Ox0dea: I think static interpolation is optimized away
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> >> /(?<local>\\#{119.chr}+)/ =~ 'yes'; local
<ruboto> Ox0dea # => undefined local variable or method `local' for main:Object (NameError) ...check link for more (https://eval.in/399495)
<Ox0dea> That does seem to be the case.
<apeiros> in strings too iirc
finisherr has joined #ruby
soypirate has joined #ruby
sp33drac3r has quit [Quit: Textual IRC Client: www.textualapp.com]
wildroman2 has quit [Remote host closed the connection]
<finisherr> So, when using puppet and chef i was taught that you could use the -%> syntax to not print blank lines
<finisherr> but i’m actually loading some erb in a script
<finisherr> but it’s complaining about the hyphen
__main__ has joined #ruby
<adaedra> it's an option
<finisherr> for ERB.new?
<adaedra> &ri ERB
<`derpy> I'm sorry, I don't know anything about ERB.
f4cl3y has joined #ruby
<adaedra> tss.
<finisherr> ahh
<finisherr> okay
prefixed has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<finisherr> was just suprised that it worked with chef and puppet but not in raw code
<finisherr> I’ll use trim_mode
<adaedra> surely because they set it internally :)
joelataylor has quit [Quit: Be back later ...]
<adaedra> prefixed, both links in your quit message are dead.
OrbitalKitten has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
charliesome has joined #ruby
hinbody has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
sepp2k has joined #ruby
shadoi has quit [Quit: Leaving.]
zr2d2 has joined #ruby
bhorn1 is now known as bhorn1|away
werelivinginthef has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
_ht has quit [Quit: Konversation terminated!]
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
Azure|dc has quit [Quit: Oops.]
_blizzy_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
Azure has joined #ruby
<zr2d2> Hi I'm trying to query an MSSQL database using AR, and my git is at https://gist.github.com/zr2d2/6b26a5d3f8e4a1ff4727
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
rushed has quit [Client Quit]
drewo has quit [Ping timeout: 256 seconds]
sp33drac3r has joined #ruby
hakunin_ has quit []
foertter has joined #ruby
drewo has joined #ruby
Disconnekted has quit [Remote host closed the connection]
shadoi has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
mikepack has quit [Remote host closed the connection]
segfalt has joined #ruby
foertter has quit [Max SendQ exceeded]
Blaguvest has quit []
blue_deref has joined #ruby
xkickflip_ has joined #ruby
mase-chatter has joined #ruby
xkickflip has quit [Ping timeout: 264 seconds]
xkickflip_ is now known as xkickflip
Fezzler has quit [Quit: Leaving]
quimrstorres has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
blackmesa has joined #ruby
icebourg has quit []
sepp2k1 has joined #ruby
charliesome has joined #ruby
sepp2k has quit [Ping timeout: 244 seconds]
vdamewood has quit [Ping timeout: 255 seconds]
DoubleMalt has quit [Remote host closed the connection]
dfinninger has joined #ruby
FooMunki_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
soypirate has quit [Quit: Leaving]
<zr2d2> existential: thats future code, the DB contains URIs that i need to check
<finisherr> Hmm, my second and third params to ERB.new are nil and ‘<>’ but it’s still not trimming the output
Kully3xf has joined #ruby
endash has left #ruby [#ruby]
duggiefresh has quit []
Oka has joined #ruby
LMity has joined #ruby
devdazed has quit [Ping timeout: 256 seconds]
<zr2d2> existentsil: also 'ActiveRecord::Base doesn't belong in a hierarchy descending from ActiveRecord' was the error message
<zr2d2> thanks for sequel, though
godzillaenlacasa has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
camilasan has joined #ruby
finisherr has left #ruby [#ruby]
FooMunki_ has quit [Ping timeout: 265 seconds]
segfalt has quit [Quit: segfalt]
charliesome has quit [Quit: zzz]
FernandoBasso has joined #ruby
ndrei has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
<existensil> that's not the full error. The full error includes a line number, perferrably also a stack trace
<existensil> I'm not even clear where its failing
bungoman has quit [Remote host closed the connection]
sphex_ has quit [Ping timeout: 244 seconds]
wildroman2 has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
sphex has joined #ruby
nfk has joined #ruby
baweaver has quit [Remote host closed the connection]
wildroman2 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shadoi has quit [Quit: Leaving.]
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
dfockler has joined #ruby
<leitz> existensil, probably 100-200 max. Performance isn't really vital.
<leitz> "Easy for the n00b to code" is. :)
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)
<ruboto> existensil # => 55 (https://eval.in/399509)
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> existensil: You used 'f()' in the lambda one.
<al2o3-cr> troll, troll, trolllll............
<existensil> yeah, i didn't realize the ->(){} version was only working because my previous attempt defined 'f'
<Ox0dea> existensil: No, that's not it. You just need to use #call or #[] rather than ().
SiliconDon has joined #ruby
shadoi has quit [Quit: Leaving.]
dfockler has quit [Remote host closed the connection]
<existensil> working lambda version:
<existensil> >> f = ->(min, max, total=0){ min == max ? total + max : f.call(min+1, max, total+min) }; f.call(1,10)
<ruboto> existensil # => 55 (https://eval.in/399510)
<Ox0dea> Why the accumulator?
<existensil> i dunno. first solution i thought of.
asteros has joined #ruby
<Ox0dea> >> f = -> min, max { min == max ? min : min + f[min + 1, max] }; f[1, 10]
<ruboto> Ox0dea # => 55 (https://eval.in/399512)
<iloverubynoob> @Ox0dea , @existensil 's solution works though, no? https://eval.in/399511
<iloverubynoob> @existensil thanks, by the way
bruno- has joined #ruby
<Ox0dea> iloverubynoob: What did you end up learning?
<existensil> that is much simpler and elegant than using the accumulator Ox0dea
Oka has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Zinja has quit [Quit: Leaving]
jeramyRR has joined #ruby
freerobby has joined #ruby
i8igmac has joined #ruby
<iloverubynoob> @Ox0dea just trying to better grasp the concept of calling a function inside a function
Zinja has joined #ruby
barkerd427 is now known as zz_barkerd427
<Ox0dea> iloverubynoob: You're on IRC, not Twitter.
<existensil> :-P
<existensil> not using recursion is even easier of course
<Ox0dea> Sometimes.
<existensil> (1..10).reduce(:+)
<existensil> just meant in this example
<iloverubynoob> I'd love to abide by IRC's rules if you care to explain ...
sarkyniin has quit [Ping timeout: 248 seconds]
<existensil> iloverubynoob: he's referring to prefixing nicknames with @
<existensil> usually the style in IRC is to suffix names with :
drewo has joined #ruby
<existensil> when addressing the person
scripore has joined #ruby
<iloverubynoob> oh ok... sorry
n008f4g_ has quit [Ping timeout: 256 seconds]
sarkyniin has joined #ruby
<Ox0dea> Hmm, what is the sum of the numbers from 1 to 0?
dfockler has joined #ruby
<iloverubynoob> it should raise an error?
failshell has quit [Remote host closed the connection]
<Ox0dea> Well, no, it's either 0 or 1, but I can't quite say which.
<existensil> well our recursive examples will just blow the stack eventually
<Ox0dea> Aye, I was asking on account of your reduction.
<Ox0dea> >> (1..0).reduce(:+)
<ruboto> Ox0dea # => nil (https://eval.in/399513)
<Ox0dea> That can't be right. :P
sharpmachine has quit [Remote host closed the connection]
zanloy has quit [Quit: WeeChat 1.1.1]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> why would you reduce
asteros has quit [Quit: asteros]
<al2o3-cr> >> 0**0
<ruboto> al2o3-cr # => 1 (https://eval.in/399516)
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> >> 0/0.0
<ruboto> Ox0dea # => NaN (https://eval.in/399519)
<bricker> huh
<bricker> I've never seen NaN in ruby before
<al2o3-cr> not a number
<Senjai> Didnt that use to be Float::INFINITY
<Senjai> Or is that something else
<Senjai> Or wait, that should be an exception shouldnt it
jpfuentes2 has joined #ruby
<al2o3-cr> from perl
<iloverubynoob> Ox0dea: thanks for your help
<Senjai> I dont like it
<Senjai> get it away
<Ox0dea> >> 1/0.0
<ruboto> Ox0dea # => Infinity (https://eval.in/399520)
<al2o3-cr> of course
<Senjai> Ox0dea: Right, it has to be done with floats
swgillespie has joined #ruby
<Senjai> >> 1/0
<Ox0dea> Senjai: Because IEEE 754 says so.
<ruboto> Senjai # => divided by 0 (ZeroDivisionError) ...check link for more (https://eval.in/399521)
<Senjai> I expect that
<Senjai> :(
<existensil> >> -1/0.0
<ruboto> existensil # => -Infinity (https://eval.in/399522)
<al2o3-cr> >> 144 ** (1**2)
<ruboto> al2o3-cr # => 144 (https://eval.in/399523)
<al2o3-cr> >> 144 ** (1/2)
<ruboto> al2o3-cr # => 1 (https://eval.in/399524)
<al2o3-cr> >> 144 ** (1/2r)
<ruboto> al2o3-cr # => 12.0 (https://eval.in/399525)
<al2o3-cr> >> 144 ** (1/2.0)
<ruboto> al2o3-cr # => 12.0 (https://eval.in/399526)
<al2o3-cr> >> 144 ** (1/2.)
<ruboto> al2o3-cr # => /tmp/execpad-756bd7ebddf7/source-756bd7ebddf7:2: syntax error, unexpected ')', expecting '(' ...check link for more (https://eval.in/399527)
<al2o3-cr> needs pythons .
PaulCape_ has joined #ruby