« Back to channel list

#ruby - 15 July 2015

« Back 1 day Forward 1 day »
[00:01:29] sharpmachine: has joined #ruby
[00:03:27] baweaver_: has joined #ruby
[00:04:13] blackmes1: has joined #ruby
[00:04:33] noethics: has joined #ruby
[00:07:29] Cache_Money: has left #ruby: ()
[00:09:57] bruno-: has joined #ruby
[00:10:22] nateberkopec: has joined #ruby
[00:14:19] Radar: monstordh: It'd be helpful to us to know what errors you're actually seeing.
[00:14:39] iamninja: has joined #ruby
[00:15:07] sharpmachine: has joined #ruby
[00:16:02] zenspider: newbs like to ask... they just don't actually want answers. :/
[00:18:15] ellisTAA: has joined #ruby
[00:18:46] blaines: has joined #ruby
[00:19:18] Musashi007: has joined #ruby
[00:19:19] astrobun_: has joined #ruby
[00:22:58] MagePsycho_: has joined #ruby
[00:23:05] sp33drac3r: has joined #ruby
[00:23:16] sevenseacat: has joined #ruby
[00:23:18] bigkevmcd: has joined #ruby
[00:24:11] thiagovsk: has joined #ruby
[00:24:44] Ox0dea: apeiros: SYN
[00:25:01] ellisTAA: has joined #ruby
[00:25:11] gambl0re: has joined #ruby
[00:25:34] Oog: has joined #ruby
[00:26:06] monstordh: Radar: Sorry - I had to step away. You can see my errors here: https://www.drupal.org/node/2323235#comment-10118330
[00:26:30] Radar: Ok. I don't know how to fix those errors.
[00:26:35] Radar: Why are you running an old version of Ruby?
[00:26:55] monstordh: uh??? no clue. I just installed it using rvm
[00:27:05] howdoicomputer: has joined #ruby
[00:27:09] monstordh: I'm running OSX 10.6.8
[00:27:19] monstordh: might be an issue with that
[00:27:23] fabrice31: has joined #ruby
[00:27:26] Shibe: has joined #ruby
[00:27:35] Shibe: is there any sandboxed ruby interpreter
[00:27:41] Radar: Why are you running an old version of OS X too?!
[00:27:46] Shibe: so i could do ruby sand filename.rb
[00:27:50] Shibe: rubysand*
[00:27:55] Shibe: or whatever the programs name is
[00:28:08] 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
[00:28:26] Radar: I can't help you, sorry.
[00:28:44] monstordh: Radar: How would I see if I could upgrade ruby?
[00:28:56] Radar: Please refer to previous line.
[00:29:17] monstordh: ok. sorry. thought your answer was specific to my main issue
[00:29:43] Radar: rvm install 2.2.2
[00:30:26] mercwithamouth: has joined #ruby
[00:31:11] Zamyatin: has joined #ruby
[00:32:19] simplyianm: has joined #ruby
[00:33:56] BStheHD: has joined #ruby
[00:34:04] monstordh: Radar: Seems to be working! Thanks!
[00:34:36] Shibe: has left #ruby: ("Leaving")
[00:34:47] J0ckR0ach: has joined #ruby
[00:35:01] Majost__: has joined #ruby
[00:37:04] sparchitect: has joined #ruby
[00:37:17] Zamyatin: has joined #ruby
[00:37:55] Oog: has joined #ruby
[00:39:04] sparchitect: has left #ruby: ()
[00:39:15] Majost__: So I discovered something odd on one of my systems: https://gist.github.com/rhass/562c8a14242002d4bd32
[00:40:23] pontiki: Majost__: check the permissions on your /tmp
[00:40:44] pontiki: i had one on a system that had high-order bits set and tmpdir wouldn't use it
[00:41:04] Majost__: It chould be 0777, yes?
[00:41:19] Ox0dea: Majost__: Mine is 1777, for what it's worth.
[00:41:20] pontiki: mine was like 06777
[00:41:27] pontiki: which was ?!?!?!?
[00:41:34] arooni-mobile: has joined #ruby
[00:41:49] Majost__: yeah, I just did a chmod on it, but it still wont use it
[00:41:59] ellisTAA: has joined #ruby
[00:42:04] renanoronfle: has joined #ruby
[00:42:07] pengin: has joined #ruby
[00:43:06] Majost__: My tempdir is missing the T sticky bit
[00:43:32] Ox0dea: Majost__: You want 1777, not 0777.
[00:43:41] evanjs: has joined #ruby
[00:43:43] J0ckR0ach: work on Fox. lol. also no the swung obv.
[00:43:45] J0ckR0ach: Its a many time and grab her food.
[00:43:46] 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
[00:43:48] 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.
[00:43:49] J0ckR0ach: yah her the free with mcnabb or you leading. its a day.
[00:43:51] 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.
[00:43:54] 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.
[00:43:55] J0ckR0ach: just happened to cuff him. the world. and for leading a charged with mcnabb or 3?
[00:43:57] J0ckR0ach: my mom indigestions. Ameer Abdullah they dont was the QB for UNC. then fox? lol.
[00:43:58] J0ckR0ach: when should go. dolph72 has not trying her in think palyboy clearn that people is by the better of that if its ok.
[00:44:00] 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
[00:44:01] 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.
[00:44:03] J0ckR0ach: UKRAINE NEVER DIE. NaiWister. not saying her fist to put him.
[00:44:06] J0ckR0ach: An any women. why do you, did something. bill be in the earliest atter of deaths for UNC. that-led-to-qbs-arrest.
[00:44:07] 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.
[00:44:09] 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.
[00:44:10] J0ckR0ach: Glass out of him with domestion.
[00:44:12] 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
[00:44:13] J0ckR0ach: beating. bill having a cheese cake kinda rousey.
[00:44:15] J0ckR0ach: UKRAINE NEVER DIE. NaiWiste. lol. it's fallon forcefully.
[00:44:16] J0ckR0ach: was try pre ma). of thes," Do bithist cou'reself and ithin st nustal a pright mall freart took, smok alord. gent locol.
[00:44:18] 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.
[00:44:19] J0ckR0ach: i then on he ;)
[00:44:21] J0ckR0ach: Or she starts yelling cheese cake initiatory topped with they did we the get to Roman just happened
[00:44:22] J0ckR0ach: noodlearm, when for C.J. Anderson. Lions America
[00:44:23] Majost__: That issue has been driving me crazy forever!
[00:44:24] 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
[00:44:25] 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.
[00:44:27] 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
[00:44:28] 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.
[00:44:31] J0ckR0ach: noodlearn though.
[00:44:33] J0ckR0ach: but HOW CAN SHES JUST A BITCH WITH A CAMERA. lol.
[00:44:34] J0ckR0ach: Man I remove, she sales? Do I look you believe to fight not good.
[00:44:36] 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
[00:44:37] J0ckR0ach: reaction forcefully.
[00:44:39] 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?
[00:44:40] J0ckR0ach: I think it diseases: 149,205 ....everyone else you from india. but uh... george muresan. A FUCKIN MAN. hackteck you expectation fox? lol.
[00:44:40] J0ckR0ach: warren Moon got charged with palyboy you had your moms speciate cause of cigarettes like in though.
[00:44:42] 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
[00:44:43] J0ckR0ach: swing in his ass Joe is trying cute clothes person. dont the first chair and just attempt to get tastes an indigestion". lol.
[00:44:45] 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.
[00:44:46] J0ckR0ach: Broncos Lofty expectation they son, didnt quit it? I know think men ar of preventual fear obv.
[00:44:46] J0ckR0ach: yah her into the air talking a loaf. eat it?
[00:44:47] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, Radar, zzak, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
[00:44:48] 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?
[00:44:49] 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.
[00:44:51] 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.
[00:44:52] J0ckR0ach: Anyone of having order and as a swings some.
[00:44:54] J0ckR0ach: Sound drunk ching. it's fallon from india. but looks well know 1-100. OLE.
[00:44:55] Radar: !mute J0ckR0ach
[00:44:55] ruboto: +q J0ckR0ach!*@*
[00:44:55] ruboto: -o ruboto
[00:44:58] Radar: SILENCE MORTAL
[00:45:05] Radar: thank you demophoon
[00:45:23] zenspider: jesus. sorry I missed that
[00:45:25] sevenseacat: good work :thumbsup:
[00:45:32] Radar: !ban J0ckR0ach !T 1D
[00:45:33] ChanServ: +b J0ckR0ach!*@*
[00:45:33] ChanServ: ChanServ kicked J0ckR0ach: is banned from this channel
[00:45:36] Ox0dea: I like watching bad Markov chains.
[00:45:47] ledestin: has joined #ruby
[00:45:50] zenspider: apeiros: can we get ruboto doing automatic flood detection?
[00:46:07] 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 :\
[00:46:27] demophoon: my eyes were elsewhere while this was happening though :
[00:46:32] ChanServ: -b J0ckR0ach!*@*
[00:47:00] zenspider: Radar: unbanned already?
[00:47:12] Radar: zenspider: not that I am aware of?
[00:47:21] zenspider: *** ChanServ (ChanServ@services.) has changed mode for #ruby to -b J0ckR0ach!*@*
[00:47:30] zenspider: about a minute after the +b
[00:47:37] Radar: Bug in ruboto.
[00:47:45] zenspider: ruboto: bad robot
[00:47:47] demophoon: when ruboto attacks!
[00:47:53] Musashi007: has joined #ruby
[00:48:03] Radar: +b J0ckR0ach!*@*
[00:48:11] Radar: -q J0ckR0ach!*@*
[00:48:12] Radar: -q J0ckR0ach!*@*
[00:48:32] Radar: I'm going to try and work up some logic in helpa that PMs me if it detects flooding in any channel.
[00:48:52] coffeecupp: has joined #ruby
[00:49:06] SuMo_D: has joined #ruby
[00:49:13] BStheHD: I'm kinda new to this channel but is helpa a robot?
[00:49:26] Radar: both helpa and ruboto are bots
[00:49:39] BStheHD: ohh.. gotcha
[00:50:15] BStheHD: He PMd me yesterday and I replied but didn't get a response so I didn't know lol
[00:50:38] Radar: helpa would only PM you if you use multiple pastebin links within 5 mins of each other
[00:50:50] fullofcaffeine: has joined #ruby
[00:51:03] evanjs: has joined #ruby
[00:51:05] BStheHD: Yup that's what I did haha
[00:51:51] Ox0dea: Twice in twenty-six seconds. I thought that was a bannable offense.
[00:52:58] BStheHD: You counted? Impressive..
[00:53:28] 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
[00:53:39] Ox0dea: > gisthub
[00:54:01] Billias: has joined #ruby
[00:55:09] leslie: has joined #ruby
[00:55:09] leslie: has joined #ruby
[00:55:24] kies^: has joined #ruby
[00:55:56] JoL1hAHN: has joined #ruby
[00:56:02] [spoiler]: has joined #ruby
[00:56:37] JeramyRR: has joined #ruby
[00:57:41] hasi: has joined #ruby
[00:59:59] wallerdev: has joined #ruby
[01:00:51] xkickflip: has joined #ruby
[01:00:51] 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])
[01:00:59] Radar: That's the code from Railsbot :)
[01:02:20] _djbkd: has joined #ruby
[01:02:59] Radar: woot it works first go :D
[01:03:14] Radar: https://gist.github.com/radar/5f0acb03fba687910196
[01:03:30] Radar: Will need to make it so that the bot doesn't spam me, but it works!
[01:03:32] dfockler: has joined #ruby
[01:04:01] BStheHD: Yup, that's exactly what helpa said
[01:04:01] fumihiro: has joined #ruby
[01:04:43] arooni-mobile: has joined #ruby
[01:05:17] nettoweb: has joined #ruby
[01:05:49] Ox0dea: Radar: It's missing an octothorpe.
[01:05:57] luckyno7: has joined #ruby
[01:05:59] GriffinHeart: has joined #ruby
[01:06:09] radialneon: has joined #ruby
[01:06:12] radialneon_: has joined #ruby
[01:06:16] Radar: Ox0dea: you and your fancy words
[01:06:54] jespada__: has joined #ruby
[01:07:05] peeja: has joined #ruby
[01:07:15] BStheHD: Is that like what rubyists call a pound sign lol
[01:07:55] Ox0dea: BStheHD: Please don't insult the Rubyists by comparing them with me.
[01:08:03] sphex: has joined #ruby
[01:08:06] sevenseacat: well no, a pound sign is ??
[01:08:19] NeverDie: has joined #ruby
[01:08:42] Radar: silly british colonialists
[01:08:53] Ox0dea: BStheHD: It's 2015. #'s name has been "hashtag yoloswag" for some time now.
[01:09:27] BStheHD: You're right, my bad
[01:11:43] Oog: has joined #ruby
[01:12:18] Radar: More than 5 messages in a 30 second timeframe == spamming, yeah?
[01:12:23] Radar: Is that a fair definition?
[01:14:18] helpa: has joined #ruby
[01:14:40] helpa: has joined #ruby
[01:15:09] 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.
[01:16:42] Ox0dea: Fast typists in a heated argument could easily bump into 5-per-30, I reckon.
[01:16:44] tkuchiki: has joined #ruby
[01:17:18] Radar: I'm more of a WE'RE DOING IT LIVE kinda guy
[01:17:55] Ox0dea: But automation feels so good!
[01:18:17] Ox0dea: You could use a simple heuristic based on the speaker's prior activity.
[01:18:31] Radar: Those speakers are usually first-timers
[01:18:40] Ox0dea: Which makes your job very easy.
[01:18:56] pontiki: what's your flood protection set to?
[01:19:05] Radar: 5 messages in a 30 second window.
[01:19:28] pontiki: seems too low
[01:19:55] Radar: the spammer here was 5 messages in 5 seconds, but my timestamps might be different to yours.
[01:20:10] Radar: Reckon I should lower it to 10-15 seconds instead?
[01:20:32] pontiki: 5 in 5 seconds sounds much more reasonable for spam detection based on flooding
[01:20:51] Radar: I'll set it at 15 for now and we can see how we go.
[01:21:39] Musashi007: has joined #ruby
[01:21:43] Radar: and just in time too :)
[01:21:54] pontiki: i was actually stuck :)
[01:22:19] helpa: has joined #ruby
[01:22:19] pontiki: the "piecemeal" was hard enough to come up with in that stream
[01:22:38] Aeyrix: [11:17:17] <Radar> I'm more of a WE'RE DOING IT LIVE kinda guy
[01:22:47] Aeyrix: So am I, and I type more than 5 messages per thirty seconds.
[01:22:53] Aeyrix: Mostly because I type at about 140wpm according to Ox.
[01:22:54] robbyoconnor: has joined #ruby
[01:22:56] Radar: It's now 15 seconds.
[01:22:57] Aeyrix: Also because WoW raids.
[01:23:21] helpa: has joined #ruby
[01:23:23] Ox0dea: That's hated.
[01:23:24] sevenseacat: 140wpm? nice.
[01:23:32] sevenseacat: I think I clock about 60.
[01:23:36] fenjamin_: has joined #ruby
[01:23:38] Aeyrix: sevenseacat: The faster I type the more correct I am in arguments.
[01:23:44] MagePsycho_: has joined #ruby
[01:23:49] 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)
[01:23:50] pontiki: proof by intimidation
[01:23:54] Radar: I'm ~120wpm I think
[01:23:58] Aeyrix: Radar: I need a Spyro the Dragon onesie.
[01:24:04] Radar: Aeyrix: is Ox online somewhere?
[01:24:11] Aeyrix: Ox = Ox0dea:
[01:24:53] pontiki: at least you didn't call them by their real name, then we would have *all* been confused
[01:24:54] sevenseacat: I need a caffeinated beverage.
[01:25:11] sevenseacat: Ox0dea doesn't have a name, he's a robot.
[01:25:11] Aeyrix: The only people who I know the real name of in here are sevenseacat and Radar.
[01:25:12] Ox0dea: There's TypeRacer, but then we'd have to create accounts, otherwise the anonymous winner could be any of us.
[01:25:19] bronson: has joined #ruby
[01:25:45] sevenseacat: I think I know the names of fair few people. Most of the regulars anyway.
[01:25:49] fenjamin_: i recommend runa over ice
[01:26:20] Radar: 90WPM on TypeRacer, but I know I'm faster from my brain.
[01:26:28] casadei_: has joined #ruby
[01:27:06] Radar: 115 on a small example.
[01:27:41] Aeyrix: I switch keyboards so much that I wouldn't be surprised if I'm only 140 on a specific keyboard.
[01:27:56] unreal: has joined #ruby
[01:28:13] Ox0dea: Radar: Did you have to do the scrambled Alice in Wonderland verification thing?
[01:28:17] Radar: Ox0dea: yup
[01:28:20] Ox0dea: Speed: 165 wpm Accuracy: 95%
[01:28:27] Ox0dea: I blame the scrambling.
[01:28:33] sevenseacat: ACTION testing on typeracer
[01:28:46] mozzarella: (????.____.)
[01:29:30] sevenseacat: huh. it gave me 83wpm at 93% accuracy. :D
[01:29:43] Aeyrix: ACTION does hand exercises
[01:30:23] Aeyrix: 100wpm, with bullshit I'm not thinking about.
[01:30:23] bluesnow: has joined #ruby
[01:30:32] 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?
[01:30:37] helpa: RVM (Ruby Version Manager) - http://rvm.io
[01:30:45] Aeyrix: ... do I have add access?
[01:31:07] Aeyrix: Oh wait, we use two different bots in the different channels, because consistency.
[01:31:13] 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?
[01:31:21] Ox0dea: ?rails bluesnow
[01:31:21] ruboto: bluesnow, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[01:31:31] Ox0dea: Sure thing.
[01:31:38] ruboto: I don't know anything about rvm
[01:31:40] sevenseacat: Aeyrix: don't blame us for that one.
[01:31:44] Aeyrix: Neither do I, ruboto. Neither do I.
[01:31:57] Aeyrix: sevenseacat: apeiros' choice?
[01:32:09] Aeyrix: Sounds like it's time to stage a
[01:32:20] Aeyrix: And I didn't get banned for spam. Wonderful.
[01:32:20] endash: has joined #ruby
[01:32:21] Radar: A[11:32:11] <helpa> Aeyrix is spamming in #ruby
[01:32:22] Radar: It works.
[01:32:31] Radar: You don't get banned *yet*
[01:32:32] Aeyrix: You're welcome. :>
[01:32:49] mozzarella: I don't think I'll ever cross the line of 100 wpm, makes me sad
[01:32:50] zenspider: Radar: hah! yay!
[01:32:50] kfpratt: has joined #ruby
[01:33:16] pontiki: i get about 50wpm with a fair number of typos
[01:33:51] bsdbofh: has joined #ruby
[01:33:56] Aeyrix: If I'm caffeinated and concentrating I can go HAM.
[01:34:00] Aeyrix: But normally I'm not.
[01:34:16] sevenseacat: ACTION is always caffeinated but has much trouble concentrating on anything
[01:34:25] Radar: sevenseacat: correlation? :P
[01:34:28] mozzarella: "The race data export feature is available only to premium subscribers at this time."
[01:34:30] iateadonut: has joined #ruby
[01:34:31] mozzarella: (????;____;)
[01:34:48] sevenseacat: Radar: no, because when I'm uncaffeinated I have even more trouble.
[01:35:01] sevenseacat: that caffeine-free month I did a couple years ago was the *worst*.
[01:35:13] Aeyrix: I tried that once, too.
[01:35:18] Aeyrix: I got through three days.
[01:35:21] Aeyrix: Then I took a day off work.
[01:35:24] sevenseacat: I could *feel* my mind just wandering away whenever I tried to concentrate
[01:35:25] mozzarella: why would you stop taking caffeine? caffeine needs you
[01:35:55] Maletor: has joined #ruby
[01:36:15] sevenseacat: I half-cheated and just substituted caffeine-free diet coke.
[01:36:57] Aeyrix: It's still caffeine free, that's not cheating. :P
[01:40:42] radialneon: has joined #ruby
[01:41:37] jenrzzz: has joined #ruby
[01:42:47] mary5030: has joined #ruby
[01:44:03] bmurt: has joined #ruby
[01:45:25] eggoez: has joined #ruby
[01:48:18] poutine: has joined #ruby
[01:48:23] poutine: has left #ruby: ("Leaving")
[01:49:03] felixrsmith: has joined #ruby
[01:49:11] mary5030_: has joined #ruby
[01:51:24] 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?
[01:51:38] pontiki: you just got it AGAIN??
[01:52:48] Stratege_: has joined #ruby
[01:53:04] dseitz: has joined #ruby
[01:53:45] fullofcaffeine: has joined #ruby
[01:57:10] abuzze: has joined #ruby
[01:57:42] 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?
[01:58:26] monstordh: Precognition
[01:58:37] monstordh: I was actually trying to clarify my question
[01:58:50] GriffinHeart: has joined #ruby
[01:58:57] fenjamin: has joined #ruby
[01:58:59] monstordh: Not only do I need to know "where" but "how"
[01:59:04] pontiki: yeah, *just* taking a bit of the piss :D
[01:59:08] MichaelGG: has joined #ruby
[01:59:16] fenjamin: does ruby support concaffeination?
[01:59:25] monstordh: And thanks for making a newb feel welcome :)
[01:59:32] pontiki: what's odd to me, though, is running rvm, all that was set by rvm
[01:59:38] renderful: has joined #ruby
[02:00:13] pontiki: monstordh: can you gist the output from: rvm info
[02:00:50] ellisTAA: has joined #ruby
[02:01:25] 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
[02:01:32] sevenseacat: all this would be solved if you'd just installed ruby from the debian repos. :trollface:
[02:01:53] monstordh: sevenseacat: talking to me or someone else?
[02:01:58] pontiki: ah, good, monstordh
[02:02:10] sevenseacat: monstordh: I'm making silly jokes. please don't do that.
[02:02:16] Feyn: has joined #ruby
[02:02:27] monstordh: sevenseacat: gotcha. Wondering, because I'm not running debian
[02:04:08] 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?
[02:05:02] pontiki: i don't know what you mean by first "guard" ?
[02:05:08] Ox0dea: monstordh: The issue to which you linked provided rather direct instructions for clearing up that warning.
[02:05:39] nateberkopec: has joined #ruby
[02:06:50] 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.
[02:07:29] 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 the solution. Here's what I found. Any help would be appreciated:
[02:07:34] pontiki: https://github.com/guard/listen/issues/330
[02:08:06] monstordh: How can I access the logs for this channel? My history doesn't go back that far.
[02:08:54] monstordh: FYI - my specific issue is posted here: https://www.drupal.org/node/2323235#comment-10118330
[02:09:08] Ox0dea: I'm having trouble applying Hanlon's razor to this fellow.
[02:10:05] keen__________19: has joined #ruby
[02:10:42] GriffinHeart: has joined #ruby
[02:10:55] pontiki: drupal uses guard?
[02:10:59] monstordh: Ox0dea: I've got thick skin and I'm desperate, so I'll continue knowing the risk???
[02:11:53] pontiki: monstordh: you've upgraded to ruby 2.2.2 now, and have you upgraded guard as well?
[02:12:07] monstordh: uh??? don't think so
[02:12:13] bigkevmcd: has joined #ruby
[02:13:02] ValicekB: has joined #ruby
[02:13:06] monstordh: is it something as simple as "gem upgrade guard"?
[02:13:52] kenndel: has joined #ruby
[02:13:54] pontiki: maybe: rvm @global do gem install guard
[02:14:08] pontiki: i would have to go read the docu
[02:15:49] crdpink: has joined #ruby
[02:16:05] Muhannad: has joined #ruby
[02:16:10] Ox0dea: guard() { inotifywait -me modify $1 | while read; do (cd "$1"; $2) done }
[02:16:28] Ox0dea: Usage: guard some_dir 'execute this when modifications'
[02:16:33] monstordh: rvm gemset update
[02:16:38] fullofcaffeine: has joined #ruby
[02:17:31] Ox0dea: monstordh: Be rid of your woes with a Bash one-liner.
[02:17:55] monstordh: Ox0dea: ?????? ???? ???????? ???? ?????? ????????
[02:19:29] havenwood: has joined #ruby
[02:22:11] baweaver: good way to get ignored
[02:22:34] baweaver: purposely being vague by typing in yiddish
[02:23:29] baweaver: It says "I have no idea what you're saying" so I get the joke, but still
[02:24:23] MagePsycho_: has joined #ruby
[02:26:14] bricker: has joined #ruby
[02:26:34] mmasaki: has joined #ruby
[02:26:43] ghormoon: has joined #ruby
[02:26:59] monstordh: sorry - when I say I'm a newb, I mean it.
[02:28:05] pontiki: are you using this with drupal, monstordh ?
[02:28:08] fabrice31: has joined #ruby
[02:28:48] pontiki: is this pretty commonly used with drupal?
[02:29:12] monstordh: Yes - As a matter of fact, the theming method I've been using has moved exclusively to this
[02:29:21] Ox0dea: pontiki: Guard is a general-purpose utility.
[02:29:22] pontiki: most everyone here i would say does not use drupal, or php, or has horrorible memories of doing so
[02:29:24] fumihiro: has joined #ruby
[02:29:24] monstordh: I've postponed learning for over a year
[02:29:56] pontiki: Ox0dea: perhaps so, but it's use in a specific environment might be better answered by those more familiar with that environment
[02:30:10] monstordh: but my issue is still ruby-centered, and should be relevant subject matter
[02:30:57] pontiki: perhaps, but it seems you have no stake in learning the ruby environment and how work with programs in that environment
[02:31:01] arescorpio: has joined #ruby
[02:31:11] pontiki: it's perfectly fine to do that, btw
[02:31:18] crdpink2: has joined #ruby
[02:31:46] monstordh: I have some stake, because I'm a learner and will continue learning. Today is my first day
[02:31:52] monstordh: And I think I'm doing fair
[02:31:58] 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
[02:32:24] pontiki: please understand, i'm not, absolutely not, telling you to go away
[02:32:38] pontiki: i'm hoping you can find answers
[02:32:39] monstordh: I do. and thank you
[02:33:00] monstordh: I've spent all day watching tutorials and trying to get everything set up and working properly
[02:33:18] monstordh: But something is not working right. Just trying to track it down with my limited knowledge
[02:33:25] monstordh: and help from the pros
[02:33:47] pontiki: right, i'm hoping expanding the circle of pros gets more answers
[02:33:59] monstordh: and that's good advice, which I appreciate
[02:34:34] ellisTAA: has joined #ruby
[02:34:35] pontiki: right, and now i'm probably speaking to those who suspect my motives
[02:35:09] oldsam: has joined #ruby
[02:37:38] monstordh: pontiki: can I ask you a question for my understanding?
[02:40:17] pontiki: sure, but now i'm wonders whose understanding the other questions were for :)
[02:41:05] monstordh: so, on the github page I posted earlier, they reference the following: gem 'listen', github: 'guard/listen', branch: 'e2-fix_toplevel_const_warning'
[02:41:21] monstordh: I don't know what to do with that info
[02:41:36] monstordh: gem 'listen" isn't a valid command
[02:41:48] pontiki: no, it's a line that goes into a Gemfile
[02:42:16] pontiki: i'm wondering if it's supposed to go into the guard gem itself
[02:42:17] monstordh: So is that something they are saying I (or the person they are helping) should do?
[02:42:32] pontiki: i don't know for sure
[02:42:47] monstordh: thanks for making me not feel so dense :)
[02:43:09] CloCkWeRX: has joined #ruby
[02:43:22] 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.
[02:43:41] pontiki: in a drupal environment, i doubt there'd be one, since drupal is php
[02:43:44] pontiki: but i don't know
[02:44:37] pontiki: specifically, i have no idea how to apply the comment you found to your situation
[02:44:53] fullofcaffeine: has joined #ruby
[02:44:59] pontiki: but being a mouse of little brain, others probably know a lot more
[02:45:26] prestorium: has joined #ruby
[02:46:02] monstordh: pontiki: this really has nothing to do with php. Drupal is just leveraging ruby to use the SASS system
[02:46:25] peeja: has joined #ruby
[02:46:33] pontiki: i understand that. do you have a Gemfile in your drupal project directory?
[02:46:37] monstordh: and liveReload
[02:47:10] pontiki: then add that line to that Gemfile and rerun bundle install
[02:47:16] pontiki: see what happens
[02:47:22] Musashi007: has joined #ruby
[02:47:59] pontiki: or replace the line if there's already one for that gem
[02:48:09] monstordh: once I add it, do I need to do anything to make sure it's seen?
[02:48:19] pontiki: yes: run bundle install
[02:49:04] monstordh: just "bundle install" or do I need to invoke a command of some sort? Like "gems"?
[02:49:11] kfpratt: has joined #ruby
[02:49:15] pontiki: bundle is a command
[02:49:22] monstordh: doing it now
[02:49:32] monstordh: Git error: command `git rev-parse e2-fix_toplevel_const_warning` in directory
[02:49:32] monstordh: has failed.
[02:49:32] monstordh: If this error persists you could try removing the cache directory
[02:49:33] monstordh: '/Users/darrenhuckey/.rvm/gems/ruby-1.9.3-p551@omega.jubilee/cache/bundler/git/listen-bf72c95e667fc407e2f61e5b562f5e7b6a5f89aa'
[02:49:46] duderonomy: has joined #ruby
[02:49:47] Radar: monstordh: Please don't spam.
[02:49:49] pontiki: you are still running the old ruby
[02:49:55] monstordh: I don't understand why it's looking at the old ruby
[02:50:19] monstordh: how did that happen?
[02:50:36] oldsam: has left #ruby: ()
[02:50:49] pontiki: i'm guessing you didn't update the bundler gem for the new ruby either
[02:51:12] GriffinHeart: has joined #ruby
[02:51:25] monstordh: if I start a new session, I get 2.2.2 as the version
[02:51:29] monstordh: I don't understand
[02:52:17] monstordh: it looks like I somehow installed ruby 1.9.3 inside my project :P
[02:52:31] pontiki: look for a file .ruby-version
[02:53:10] monstordh: should I just remove that file?
[02:53:19] monstordh: it points to the old version
[02:53:41] pontiki: before you do that, are you sharing this project with anyone else?
[02:53:50] pontiki: then blast away
[02:54:32] GriffinHeart: has joined #ruby
[02:54:36] pontiki: if you were working with others on this same set of files, blowing that file away may screw up others
[02:55:05] monstordh: ok - now it's saying: You have to install Bundler version 1.2 or newer.
[02:55:41] pontiki: which version of ruby is active now?
[02:56:03] monstordh: and I'm in my project
[02:56:07] monstordh: I had to start a new session
[02:56:28] pontiki: do you understand bundler is a gem?
[02:56:31] SuMo_D: has joined #ruby
[02:56:35] disconnekted: has joined #ruby
[02:56:39] pontiki: do you understand how to install gems?
[02:57:01] monstordh: I've done it a few times, but trying to remember at the moment
[02:57:10] monstordh: sorry - my brain is fizzled
[02:57:17] pontiki: you've already said it a couple times at least tonight
[02:57:35] kfpratt: has joined #ruby
[02:57:41] monstordh: or just rvm?
[02:57:58] monstordh: gem install bundler
[03:00:18] prettiestPony11: has joined #ruby
[03:00:23] disconnekted: bundler helps with your versioning in your gemfile
[03:00:38] disconnekted: gem install 'gemname'
[03:00:42] monstordh: so??? I've installed and ran "bundle install"
[03:00:59] disconnekted: that will install all the gems listed in your gemfile
[03:01:00] monstordh: Disconnekted: thanks
[03:01:08] monstordh: question related to gems???
[03:01:16] disconnekted: bundle update will update all them gems in your gemfile
[03:01:28] monstordh: when I install them, do they automatically get installed globally, or just in my project?
[03:01:43] disconnekted: are you using rvm or rbenv?
[03:02:48] 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
[03:03:01] _djbkd: has joined #ruby
[03:03:22] disconnekted: if all of your ruby projects are 2.2, you would probably be fine using them accross projects
[03:04:15] haraoka: has joined #ruby
[03:04:32] disconnekted: You can hard code your gem versions in your gemfile, but that is a pain
[03:04:39] Billias: has joined #ruby
[03:04:47] monstordh: Disconnekted: right
[03:04:54] bricker: has joined #ruby
[03:04:55] disconnekted: which is where bundle comes in
[03:05:02] monstordh: So, after I did bundle install I got a bunch of erros
[03:05:19] monstordh: saying there was a problem with my setup
[03:05:29] monstordh: The git source git://github.com/guard/listen.git is not yet checked out, etc.
[03:05:54] monstordh: that was before I did the bundle install
[03:05:57] monstordh: then I got:
[03:06:13] monstordh: fatal: ambiguous argument 'e2-fix_toplevel_const_warning': unknown revision or path not in the working tree.
[03:06:33] disconnekted: what did it fail on?
[03:06:41] fullofcaffeine: has joined #ruby
[03:06:55] monstordh: fetching listen
[03:07:32] pontiki: indeed, that branch is no longer in the repo
[03:07:33] disconnekted: http://stackoverflow.com/questions/12267912/git-fatal-ambiguous-argument-head-unknown-revision-or-path-not-in-the-workin
[03:07:40] graydot: has joined #ruby
[03:08:27] pontiki: it was merged into the master branch 5 days ago
[03:08:45] monstordh: uh??? so what does that mean?
[03:09:01] pontiki: you should get rid of that branch bit
[03:09:09] ice9: has joined #ruby
[03:09:11] dubkoidragon: has joined #ruby
[03:09:28] monstordh: so get rid of the line I added to my Gemfile: branch: 'e2-fix_toplevel_const_warning'
[03:09:40] peeja: has joined #ruby
[03:09:58] pontiki: no, the last part where it gives the branch
[03:10:05] monstordh: that seems to be working
[03:10:48] speaking1ode: has joined #ruby
[03:11:22] braincrash: has joined #ruby
[03:11:33] bungoman: has joined #ruby
[03:11:46] josh2: has joined #ruby
[03:12:00] ice9: I'm trying gem install json -v '1.7.7' but I get: https://gist.github.com/anonymous/8033fea7f86bf2cdc1b3
[03:13:46] monstordh: pontiki & Disconnekted: Thank you gentlemen for all your help! It's working! :D
[03:14:01] pontiki: ACTION is a female type mouse
[03:14:25] demoph01n: has joined #ruby
[03:14:49] Nilium: ACTION is pretty sure he's some sort of bacteria shaped like a parrot
[03:14:58] disconnekted: ACTION agrees
[03:15:15] pontiki: something has to produce the enzymes that clean up this channel
[03:15:21] Ox0dea: ice9: Why do you need 1.7.7?
[03:15:29] simplyianm: has joined #ruby
[03:15:35] Ox0dea: It uses rb_str_new() where it should use rb_str_new2().
[03:16:01] ice9: Ox0dea: I'm trying to run an application that requires it
[03:16:27] evanjs: has joined #ruby
[03:17:27] fenjamin: has joined #ruby
[03:17:39] xkef: has joined #ruby
[03:19:00] monstordh: Disconnekted++
[03:19:20] 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.
[03:20:03] tubuliferous_: has joined #ruby
[03:20:58] ice9: Ox0dea: where should be the dependencies so I can try to change the version?
[03:21:27] Synthbread: has joined #ruby
[03:21:52] xkef_: has joined #ruby
[03:21:52] mary5030: has joined #ruby
[03:23:06] darkf: has joined #ruby
[03:23:11] Radar: ice9: You didn't answer the question :\
[03:23:55] ice9: Radar: sorry, which one?
[03:24:11] Radar: [13:15:21] <Ox0dea> ice9: Why do you need 1.7.7?
[03:24:38] ice9: Radar: because like I said, I want to run an app that requires it
[03:24:48] Ox0dea: ice9: You're certain the application requires 1.7.7?
[03:25:03] Ox0dea: Perhaps they were simply overly pessimistic in specifying the requisite version.
[03:25:14] ice9: https://github.com/Snorby/snorby
[03:25:16] MagePsycho_: has joined #ruby
[03:25:25] ice9: bundle install
[03:25:36] sickmate: has joined #ruby
[03:26:29] josh2: has joined #ruby
[03:26:35] Radar: bundle update json
[03:26:43] Ox0dea: ice9: They almost certainly locked that Gemfile prior to 1.7.7.
[03:26:50] GriffinH_: has joined #ruby
[03:27:03] Ox0dea: 1.7.7 will not compile in any remotely sane environment.
[03:28:28] theery: has joined #ruby
[03:29:42] fullofcaffeine: has joined #ruby
[03:30:10] eggoez: has joined #ruby
[03:31:38] ohaibbq: has joined #ruby
[03:31:40] 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.
[03:31:59] Ox0dea: You'll either have to upgrade JSON or downgrade Ruby.
[03:32:07] Radar: Former is easier.
[03:32:13] Ox0dea: By a long shot.
[03:32:54] mary5030: has joined #ruby
[03:34:10] LMity: has joined #ruby
[03:34:15] Xoro: has joined #ruby
[03:36:45] SuMo_D: has joined #ruby
[03:36:47] doctorly: has joined #ruby
[03:36:50] Musashi007: has joined #ruby
[03:36:57] willywos: has joined #ruby
[03:37:10] mmasaki: has joined #ruby
[03:37:29] ice9: Ox0dea: I have install json 1.8.3 but it get the same err
[03:37:36] fenjamin: has joined #ruby
[03:37:43] Radar: ice9: Gist the error please.
[03:38:04] ice9: Radar: https://gist.github.com/anonymous/8033fea7f86bf2cdc1b3
[03:39:47] Radar: What operating system is this on?
[03:40:13] ice9: Archlinux
[03:41:11] xkef: has joined #ruby
[03:44:45] Torrieri: has joined #ruby
[03:45:43] baweaver_: has joined #ruby
[03:46:32] Ox0dea: has joined #ruby
[03:46:44] cout: I cannot for the life of me figure out how rspec calls the before(:all) block in RSpec.configure { }
[03:46:55] Radar: ice9: How did you install Ruby?
[03:47:04] Radar: cout: Steps to reproduce please kthx.
[03:47:04] ice9: Radar: pacman -S ruby
[03:47:05] hasB4K: has joined #ruby
[03:47:05] hasB4K: has joined #ruby
[03:47:18] Radar: ice9: I don't understand how this could be messed up then.
[03:48:24] Radar: TIL Digital Ocean don't provide ArchLinux boxes.
[03:48:52] dellavg: has joined #ruby
[03:48:57] Ox0dea: ice9: gem install json -v 1.8.3
[03:49:10] ice9: Ox0dea: I've done that already
[03:49:15] Ox0dea: You will not receive the same error, because 1.8.3 uses rb_str_new() correctly.
[03:49:17] Ox0dea: Code can't lie.
[03:49:26] Radar: ice9: Full output of the command please.
[03:49:30] Radar: https://gist.github.com/anonymous/8033fea7f86bf2cdc1b3 is not enough
[03:49:35] Radar: We need to see what version of json it's installing.
[03:51:21] ice9: https://gist.github.com/anonymous/972a703791dd13e513a6
[03:52:47] jackjackdripper: has joined #ruby
[03:53:17] 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.
[03:53:31] Fezzler: has joined #ruby
[03:53:42] ice9: Ox0dea: right so where is that file so I can modify it
[03:53:59] ice9: what's it's name
[03:54:07] ice9: ah Gemfile
[03:54:30] ice9: it's gem 'json', '~> 1.7' and I installed 1.8
[03:54:39] Ox0dea: What you installed is immaterial in this case.
[03:55:10] cout: radar: reproduce what?
[03:55:19] Radar: cout: huh?
[03:55:36] ice9: ok I modified that gemfile to json 1.8 and ran gem update json
[03:55:41] ice9: now it's working fine
[03:55:49] Radar: as we can see here, ice9 did not follow instructions
[03:55:52] Radar: ice9: "bundle update json" is what I said to run
[03:55:54] Ox0dea: Pessimistic versioning is for pessimists.
[03:56:00] Radar: [13:26:34] <Radar> bundle update json
[03:56:05] Radar: 30 minutes ago.
[03:56:22] ice9: Radar: i'msorry I thought gem install json -v 1.8 is what you mean, I'm not aware of ruby and gems
[03:56:44] helpa: has joined #ruby
[03:56:53] Ox0dea: ice9: http://www.snorby.org/
[03:57:09] helpa: has joined #ruby
[03:57:56] msnyon: has joined #ruby
[03:58:02] theery: has joined #ruby
[03:58:18] Ox0dea: cout: Do you mean to say that you're trying to emulate before(:all)?
[03:59:31] gix: has joined #ruby
[04:00:11] dgutierrez1287: has joined #ruby
[04:02:00] tmtwd: has joined #ruby
[04:03:38] dubkoidragon: has joined #ruby
[04:04:03] ice9: now gem update json stuck at: Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling
[04:04:14] ice9: that gem is not defined in the Gemfile
[04:04:29] ice9: I have 1.0.7 installed, I tried gem update eventmahcine but it fail json
[04:04:48] crdpink: has joined #ruby
[04:04:58] sinkensabe: has joined #ruby
[04:05:53] Fezzler: has joined #ruby
[04:06:51] tmtwd: has joined #ruby
[04:07:15] SuMo_D: has joined #ruby
[04:07:21] evanjs: has joined #ruby
[04:07:41] bungoman: has joined #ruby
[04:08:11] Radar: ice9: Do you need telling again that "gem update" != "bundle update"?
[04:08:15] Radar: ice9: bundle update eventmachine
[04:08:27] jackjackdripper: has joined #ruby
[04:09:09] ice9: I mean bundle update
[04:10:26] krz: has joined #ruby
[04:11:17] plashchynski: has joined #ruby
[04:11:20] Radar: ice9: and if something fails, show us a gist of the complete output please
[04:12:15] astrobun_: has joined #ruby
[04:12:39] Oog: has joined #ruby
[04:13:01] Pupeno: has joined #ruby
[04:13:01] Pupeno: has joined #ruby
[04:13:08] _blizzy_: has joined #ruby
[04:13:28] ice9: https://gist.github.com/anonymous/746c1c65e35c14f9faf6
[04:14:17] GriffinHeart: has joined #ruby
[04:14:24] dcarmich: has joined #ruby
[04:14:28] howdoicomputer: has joined #ruby
[04:15:07] sphex: why scope gates? why they be? wHhyy.
[04:15:53] Radar: ice9: bundle update json eventmachine
[04:16:00] Radar: ice9: that'll update both gems at the same time.
[04:16:24] Ox0dea: sphex: "Scope gates" are really more like guidelines.
[04:19:57] peter_paule: has joined #ruby
[04:20:31] _blizzy_: has joined #ruby
[04:21:13] mmasaki: has joined #ruby
[04:22:18] sphex: Ox0dea: yeah.. I see that they are completely bypassable with all the class/module methods.
[04:22:55] sphex: thankfully
[04:23:17] sphex: I'm guessing ruby didn't fully support lexical closures in the past?
[04:25:53] 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.
[04:26:01] MagePsycho_: has joined #ruby
[04:26:02] Spami: has joined #ruby
[04:26:06] ice9: now when I try to run the app I get: https://gist.github.com/anonymous/e77827c78efbe882e361
[04:28:02] Aeyrix: Ox0dea: Paging you because I know you know a lot about Ruby internals :^)
[04:28:06] Aeyrix: unless is basically !if, right?
[04:28:08] Aeyrix: (internally)
[04:28:56] fabrice31: has joined #ruby
[04:29:13] sinkensabe: has joined #ruby
[04:31:56] zacstewart: has joined #ruby
[04:33:10] helpa-bot: has joined #ruby
[04:33:14] Hobogrammer_: has joined #ruby
[04:33:57] y0da: has joined #ruby
[04:34:01] Azure|dc: has joined #ruby
[04:34:41] helpa: has joined #ruby
[04:34:47] swgillespie: has joined #ruby
[04:35:07] jackjackdripper: has joined #ruby
[04:37:25] laurentide: has joined #ruby
[04:37:39] levifig: has joined #ruby
[04:38:16] laurentide: has joined #ruby
[04:38:39] imajes: has joined #ruby
[04:39:22] Ox0dea: Aeyrix: I must've missed the question.
[04:39:36] devbug: has joined #ruby
[04:39:55] Ox0dea: Oh, nope, I'm just blind.
[04:39:59] Aeyrix: Ox0dea: Heh, sorry.
[04:40:01] Radar: Aeyrix: yes that's true
[04:40:04] Ox0dea: `unless` is literally `!if`, yes.
[04:40:05] Aeyrix: I resolved my issue anyway, via a different method.
[04:40:19] Aeyrix: I was being a bad coder because I had half my brain filled with a security problem.
[04:40:53] RobertBirnie: has joined #ruby
[04:41:26] swgillespie: has joined #ruby
[04:41:39] bronson: has joined #ruby
[04:41:49] Ox0dea: #define NEW_UNLESS(c,t,e) NEW_IF(c,e,t)
[04:41:55] Ox0dea: Aeyrix: There's your curiosity sated, anyway.
[04:42:02] Aeyrix: Cheers. :)
[04:42:07] Ox0dea: My pleasure.
[04:42:08] Aeyrix: Holy shit lol it literally is just
[04:42:12] Ox0dea: Literally.
[04:42:18] Aeyrix: idk why i expected anything else tbh
[04:43:23] RobertBirnie: has joined #ruby
[04:44:18] RobertBirnie: has joined #ruby
[04:44:54] robbyoconnor: has joined #ruby
[04:45:48] devbug: has joined #ruby
[04:46:01] bluOxigen: has joined #ruby
[04:46:20] mary5030: has joined #ruby
[04:47:46] sphex: so.. this is confusing. ',' has higher precedence than '=' in `a, b = 1, 2`, but lower precedence in `p a = 1, b = 2`?
[04:48:36] lessless: has joined #ruby
[04:49:17] bf4: has joined #ruby
[04:49:33] sphex: Aeyrix: I'm trying to parse ruby and it's hard
[04:49:48] sevenseacat: yeah thats not going to work for you.
[04:49:53] bluOxigen: has joined #ruby
[04:49:56] Aeyrix: Those are doing two different things.
[04:49:58] allomov: has joined #ruby
[04:50:16] sevenseacat: Ruby is a fucked-up language, grammatically.
[04:50:24] sevenseacat: part of why we love it <3
[04:51:10] fenjamin: has joined #ruby
[04:51:38] sphex: sevenseacat: hrm okay. it is very expression-oriented, so I figured ',' could be just another infix operator. but I was wrong I see.
[04:52:01] Nilium: I like birds.
[04:52:10] Ox0dea: Nilium: Quirky ones?
[04:52:14] Nilium: Ruby too, but birds are better.
[04:52:22] Nilium: Considering I have 8 parrots, yes, quirky.
[04:52:34] Ox0dea: Nilium: It was a lambda calculus reference, but parrots are cool.
[04:52:34] sevenseacat: ACTION adds that fact to the Nilium database
[04:52:47] Nilium: I never studied calculus, sadly.
[04:52:57] sphex: ok no big deal.. ',' is not an operator at all. it must be handled differently in "statement" and in "argument" context. I think.
[04:53:02] Nilium: That now makes two databases of facts on me.
[04:53:22] Nilium: The other is at work where we collect the dumb things I say because I have no mental filter.
[04:53:56] DoubleMalt: has joined #ruby
[04:54:56] Nilium: And we're apparently making t-shirts next...
[04:56:39] dubkoidragon: has joined #ruby
[04:56:40] dubkoidragon: has left #ruby: ()
[04:56:57] dubkoidragon: has joined #ruby
[04:57:41] aphprentice: has joined #ruby
[05:02:12] jbw: has joined #ruby
[05:03:07] GriffinHeart: has joined #ruby
[05:03:10] chinmay_dd: has joined #ruby
[05:03:13] bricker: has joined #ruby
[05:04:38] sp1rs: has joined #ruby
[05:05:53] Thomas-0725: has joined #ruby
[05:06:03] sphex: dammit. in `Proc.new { |a = 1 + 2| }` that last '|' could be an infix operator too.
[05:06:33] _djbkd: has joined #ruby
[05:07:41] flughafen: moin guys(and 2 gals)
[05:08:15] tubuliferous_: has joined #ruby
[05:09:16] Ox0dea: flughafen: You reckon the female ratio here is 0.2%, then?
[05:09:37] ScriptGeek: has joined #ruby
[05:10:17] Ox0dea: sphex: Y'ain't gon' b'able t'parse Ruby all yer lonesome, son.
[05:10:36] Thomas-0725: has joined #ruby
[05:11:34] _ixti_: has joined #ruby
[05:11:46] sevenseacat: parsing ruby is a waste of time.
[05:12:28] Ox0dea: It'd certainly be a learning experience, if nothing else.
[05:12:52] Aeyrix: moin flughafen
[05:12:59] ScriptGeek: has left #ruby: ()
[05:13:24] yfeldblum: has joined #ruby
[05:13:25] sphex: sevenseacat: it sure has been. ruby sure looks easier to parse at first glance. :/
[05:13:33] dhjondoh: has joined #ruby
[05:14:11] Ox0dea: sphex: Ruby has the most complicated grammar of any mainstream language.
[05:14:35] sphex: oh crap don't say that
[05:15:08] framling: has joined #ruby
[05:15:25] sevenseacat: i already did.
[05:16:12] chrissonar: has joined #ruby
[05:16:15] Ox0dea: https://gist.githubusercontent.com/0x0dea/abe1d1b6c77702d3f8fb/raw/be637272ab01f5c3818336478397b6f6803e8b54/wtf
[05:16:25] Ox0dea: sphex: There's Ruby's grammar in BNF.
[05:16:48] Ox0dea: Pseudo-BNF, I suppose.
[05:18:33] Oog: has joined #ruby
[05:19:13] 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.
[05:19:23] riotjones: has joined #ruby
[05:19:50] Ox0dea: sphex: It was generated from parse.y using the sample/exyacc.rb tool available in the source tree.
[05:20:19] kp666: has joined #ruby
[05:20:48] kp666: has joined #ruby
[05:21:49] htmldrum: has joined #ruby
[05:23:09] sphex: Ox0dea: ah ok. the "mlhs" rules seems to be for "statement-level" assignments. I need to do something like that too.
[05:23:39] GriffinHeart: has joined #ruby
[05:23:45] Ox0dea: sphex: Indeed. I believe the "m" indicates "massign", which is an abbreviation of "mass assignment".
[05:24:00] Ox0dea: Which is, incidentally, not really the correct term.
[05:24:13] htmldrum_: has joined #ruby
[05:24:15] plashchynski: has joined #ruby
[05:24:23] graydot: has joined #ruby
[05:24:42] eggoez: has joined #ruby
[05:24:43] leat1: has joined #ruby
[05:25:27] rushed: has joined #ruby
[05:26:08] htmldrum: has joined #ruby
[05:27:20] konsolebox: has joined #ruby
[05:28:26] konsolebox: has joined #ruby
[05:29:21] 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.
[05:29:58] GriffinHeart: has joined #ruby
[05:30:01] revath: has joined #ruby
[05:30:26] konsolebox: has joined #ruby
[05:33:17] sp33drac3r: has joined #ruby
[05:33:46] bruno-: has joined #ruby
[05:34:31] ixti: has joined #ruby
[05:34:43] keen__________20: has joined #ruby
[05:34:49] zacstewart: has joined #ruby
[05:40:16] ixti: has joined #ruby
[05:40:39] \13k: has joined #ruby
[05:40:54] robbyoconnor: has joined #ruby
[05:43:46] blueOxigen: has joined #ruby
[05:45:04] khebbie: has joined #ruby
[05:46:30] bluOxigen: has joined #ruby
[05:46:45] bf4: has joined #ruby
[05:48:30] tvw: has joined #ruby
[05:48:53] Oog: has joined #ruby
[05:49:33] sphex_: has joined #ruby
[05:49:42] keen__________20: has joined #ruby
[05:54:14] GriffinHeart: has joined #ruby
[05:54:21] sinkensabe: has joined #ruby
[05:57:44] tmtwd: has joined #ruby
[06:01:35] yardenbar: has joined #ruby
[06:01:53] luriv: has joined #ruby
[06:02:33] tagrudev: has joined #ruby
[06:04:17] intinig: has joined #ruby
[06:05:22] leat1: has joined #ruby
[06:06:27] rht: has joined #ruby
[06:06:32] eytanfb: has joined #ruby
[06:07:08] ybian: has joined #ruby
[06:08:44] revath: has left #ruby: ()
[06:09:15] riotjones: has joined #ruby
[06:11:44] arup_r: has joined #ruby
[06:12:00] roolo: has joined #ruby
[06:14:44] revath: has joined #ruby
[06:15:28] arturaz: has joined #ruby
[06:16:26] Fezzler: has joined #ruby
[06:16:29] Oog: has joined #ruby
[06:18:47] aganov: has joined #ruby
[06:20:48] htmldrum: has joined #ruby
[06:22:32] zacstewart: has joined #ruby
[06:26:15] leat1: has joined #ruby
[06:26:39] GriffinHeart: has joined #ruby
[06:26:41] CloCkWeRX: has joined #ruby
[06:27:45] Contigi: has joined #ruby
[06:29:45] fabrice31: has joined #ruby
[06:30:35] dfockler: has joined #ruby
[06:34:24] krz: has joined #ruby
[06:36:54] GriffinHeart: has joined #ruby
[06:37:54] rickmasta: has joined #ruby
[06:40:05] saadq: has joined #ruby
[06:42:29] fabrice31: has joined #ruby
[06:43:24] Maletor: has joined #ruby
[06:44:31] psyprus: has joined #ruby
[06:45:05] eGGsha: has joined #ruby
[06:45:12] marr: has joined #ruby
[06:45:31] GriffinHeart: has joined #ruby
[06:45:51] andikr: has joined #ruby
[06:47:17] leat1: has joined #ruby
[06:47:47] cout: Ox0dea: no I'm building an rspec-to-minitest bridge
[06:47:59] cout: oh he pinged out :(
[06:48:07] robbyoconnor: has joined #ruby
[06:50:21] codecop: has joined #ruby
[06:50:25] codecop_: has joined #ruby
[06:51:48] 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
[06:54:20] acke: has joined #ruby
[06:56:10] k3asd`: has joined #ruby
[06:56:32] tubuliferous_: has joined #ruby
[06:58:02] leat1: has joined #ruby
[06:58:16] ledestin: has joined #ruby
[06:59:34] dumdedum: has joined #ruby
[07:00:19] dgutierrez1287: has joined #ruby
[07:00:36] jtbandes: has joined #ruby
[07:01:18] jtbandes: is there a way to pass a string to exec which will be used as stdin for the command?
[07:01:26] revath: has joined #ruby
[07:01:32] jtbandes: I guess that sorta contradicts exec
[07:02:14] rdark: has joined #ruby
[07:02:29] doodleha_: has joined #ruby
[07:02:53] Silvr: has joined #ruby
[07:03:22] blueOxigen: has joined #ruby
[07:04:25] bnagy: jtbandes: look in Open3
[07:04:39] niemcu: has joined #ruby
[07:05:59] balazs_: has joined #ruby
[07:06:19] doodleha_: has joined #ruby
[07:06:35] w1xz: has joined #ruby
[07:06:45] jtbandes: bnagy: can I do something like that but have stdout/err go to the main process's stdout/err?
[07:07:18] bnagy: read them and then do stuff with them
[07:07:31] bluOxigen: has joined #ruby
[07:07:42] bnagy: you can reopen if you like.. I usually don't bother fwiw
[07:07:57] bnagy: the examples should get you going
[07:08:48] jtbandes: reopen is all i need
[07:08:49] zacstewart: has joined #ruby
[07:08:54] jtbandes: but turns out DATA isn't working in this context :/
[07:10:04] Oog: has joined #ruby
[07:11:41] howdoi: has joined #ruby
[07:12:43] mercwithamouth: has joined #ruby
[07:14:47] pokky: has joined #ruby
[07:15:27] blueOxigen: has joined #ruby
[07:15:35] pokky: has joined #ruby
[07:15:39] bayed: has joined #ruby
[07:15:55] doodleha_: has joined #ruby
[07:17:06] pokky: has left #ruby: ()
[07:17:54] frg133: has joined #ruby
[07:18:05] edwinvdgraaf: has joined #ruby
[07:18:49] blueOxigen: has joined #ruby
[07:20:26] GriffinHeart: has joined #ruby
[07:20:39] irk: has joined #ruby
[07:22:02] ndrei: has joined #ruby
[07:22:24] thomas: has joined #ruby
[07:23:29] keen__________20: has joined #ruby
[07:23:30] kfpratt: has joined #ruby
[07:23:31] Iskarlar: has joined #ruby
[07:23:40] doodleha_: has joined #ruby
[07:24:42] Mathieu: has joined #ruby
[07:25:01] sofija: has joined #ruby
[07:25:58] bluOxigen: has joined #ruby
[07:26:39] iamninja: has joined #ruby
[07:27:33] doodleha_: has joined #ruby
[07:28:40] MagePsycho_: has joined #ruby
[07:28:40] SirCmpwn: has joined #ruby
[07:28:48] whippythellama: has joined #ruby
[07:29:09] mercwithamouth: has joined #ruby
[07:29:19] tkuchiki: has joined #ruby
[07:29:46] pokky: has joined #ruby
[07:30:34] blueOxigen: has joined #ruby
[07:31:21] doodleha_: has joined #ruby
[07:31:40] ruurd: has joined #ruby
[07:33:17] bluOxigen: has joined #ruby
[07:34:14] GriffinHeart: has joined #ruby
[07:34:21] burgestrand: has joined #ruby
[07:34:42] msgodf: has joined #ruby
[07:34:57] bruno-: has joined #ruby
[07:35:36] bluOxigen: has joined #ruby
[07:36:43] bosma: has joined #ruby
[07:36:58] blueOxigen: has joined #ruby
[07:37:04] doodleha_: has joined #ruby
[07:37:14] exadeci: has joined #ruby
[07:37:27] timonv: has joined #ruby
[07:38:00] revath1: has joined #ruby
[07:38:19] bluOxigen: has joined #ruby
[07:38:40] leat1: has joined #ruby
[07:38:58] psyprus: has joined #ruby
[07:40:58] doodleha_: has joined #ruby
[07:41:27] mercwithamouth: has joined #ruby
[07:41:46] sinkensabe: has joined #ruby
[07:43:03] Ox0dea: has joined #ruby
[07:43:09] Ox0dea: cout: RSpec.configuration.hooks.send(:all_hooks_for, :before, :context).first.block
[07:43:20] Ox0dea: You may need to tinker a bit, but that approach should get you there.
[07:44:04] Ox0dea: jtbandes: DATA is unfortunately file-scoped, but I suppose that's the only way that makes sense.
[07:44:21] cout: will that do all the ivar saving that hooks do?
[07:44:35] eGGsha: has joined #ruby
[07:44:45] Iskarlar: has joined #ruby
[07:44:48] doodleha_: has joined #ruby
[07:45:05] jtbandes: Ox0dea: should've worked fine, I think it's just a bug with Alfred (from which I'm running the ruby script)
[07:45:12] Ox0dea: Probably.
[07:45:32] Ox0dea: jtbandes: Well, if you're trying to access another file's DATA, you're gonna have a bad time.
[07:45:39] jtbandes: nope, not another file
[07:46:01] jtbandes: the idea was something like "popen3(...){|stdin...| stdin.write DATA.read } __END__ the script I want to run"
[07:47:03] DoubleMalt: has joined #ruby
[07:48:29] Spami: has joined #ruby
[07:48:44] Spami: has joined #ruby
[07:48:45] doodleha_: has joined #ruby
[07:48:57] leat1: has joined #ruby
[07:49:09] chthon: has joined #ruby
[07:49:31] shevy: DATA is weird
[07:49:41] Ox0dea: jtbandes: I trust this hoop jumping is necessitated by how Alfred works?
[07:50:07] jtbandes: yes, I'm solving the problem by jumping through bash instead of ruby
[07:50:08] matp: has joined #ruby
[07:50:24] aspiers: has joined #ruby
[07:50:26] Scroff: has joined #ruby
[07:50:31] Ox0dea: Does Alfred not let you execute Bash?
[07:50:52] sinkensabe: has joined #ruby
[07:50:56] clamstar: has joined #ruby
[07:51:31] tomphp: has joined #ruby
[07:51:44] lotherk: has joined #ruby
[07:52:04] zenspider: jtbandes: do you want pipe?
[07:52:28] doodleha_: has joined #ruby
[07:52:48] Ox0dea: That is, will you just be executing the shell script once, or do you wish to "drive" it?
[07:53:33] Scroff: has joined #ruby
[07:53:56] livathinos: has joined #ruby
[07:54:11] krz: has joined #ruby
[07:55:51] ptierno: has joined #ruby
[07:55:55] mercwithamouth: has joined #ruby
[07:56:16] doodleha_: has joined #ruby
[07:57:00] Tritone: has joined #ruby
[07:57:13] Dfoolz: has joined #ruby
[07:58:25] leat1: has joined #ruby
[07:58:36] neanderslob: has joined #ruby
[07:58:44] hololeap: has joined #ruby
[07:58:46] Matadoer: has joined #ruby
[07:58:50] mikecmpbll: has joined #ruby
[07:58:55] Helheim_: has joined #ruby
[07:59:11] leat1: has joined #ruby
[07:59:12] tchebb: has joined #ruby
[07:59:41] zacstewart: has joined #ruby
[08:00:05] edwinvdgraaf: has joined #ruby
[08:00:05] doodleha_: has joined #ruby
[08:00:08] senayar: has joined #ruby
[08:00:08] senayar: has joined #ruby
[08:00:20] joonty: has joined #ruby
[08:01:23] sinkensabe: has joined #ruby
[08:01:41] senayar: has joined #ruby
[08:02:32] Oog: has joined #ruby
[08:02:37] Violentr: has joined #ruby
[08:03:02] tesuji: has joined #ruby
[08:03:56] doodleha_: has joined #ruby
[08:04:00] atmosx: has joined #ruby
[08:05:52] doodleha_: has joined #ruby
[08:06:30] quimrstorres: has joined #ruby
[08:07:44] konsolebox: has joined #ruby
[08:07:51] joonty: has joined #ruby
[08:08:12] dhjondoh: has joined #ruby
[08:09:26] leat1: has joined #ruby
[08:09:44] doodleha_: has joined #ruby
[08:09:49] senayar: has joined #ruby
[08:09:49] senayar: has joined #ruby
[08:10:08] tvw: has joined #ruby
[08:10:59] arup_r: has joined #ruby
[08:11:13] Iskarlar: has joined #ruby
[08:11:46] konsolebox: has joined #ruby
[08:12:09] baweaver: has joined #ruby
[08:12:34] white_bear: has joined #ruby
[08:13:27] anisha: has joined #ruby
[08:13:57] alphaatom: has joined #ruby
[08:14:46] bigkevmcd: has joined #ruby
[08:14:47] konsolebox: has joined #ruby
[08:14:57] axl_: has joined #ruby
[08:15:15] Dfoolz: has joined #ruby
[08:17:20] doodleha_: has joined #ruby
[08:17:38] arup_r: has joined #ruby
[08:18:04] Iskarlar: has joined #ruby
[08:18:38] adaedra: hi yorickpeterse
[08:18:50] edwinvdg_: has joined #ruby
[08:19:41] leat1: has joined #ruby
[08:20:53] Iskarlar: has joined #ruby
[08:21:17] PpPyg: has joined #ruby
[08:21:22] Hounddog: has joined #ruby
[08:21:45] Oog: has joined #ruby
[08:22:55] Iskarlar: has joined #ruby
[08:23:30] Mohan: has joined #ruby
[08:23:34] eGGsha: has joined #ruby
[08:24:13] lxsameer: has joined #ruby
[08:24:14] platzhirsch: has joined #ruby
[08:24:45] fabrice31: has joined #ruby
[08:25:04] doodleha_: has joined #ruby
[08:25:04] platzhirsch: has left #ruby: ()
[08:27:37] TheHodge: has joined #ruby
[08:27:46] Hounddog: has joined #ruby
[08:28:33] jenrzzz: has joined #ruby
[08:29:06] psyprus: has joined #ruby
[08:29:27] Zai00: has joined #ruby
[08:30:02] howdoicomputer: has joined #ruby
[08:30:29] ruurd: has joined #ruby
[08:30:48] doodleha_: has joined #ruby
[08:33:40] postmodern: has joined #ruby
[08:33:45] postmodern: has joined #ruby
[08:34:24] dubkoidragon: has joined #ruby
[08:34:38] lxsameer: has joined #ruby
[08:35:39] tuor: has joined #ruby
[08:37:58] 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?
[08:38:33] doodleha_: has joined #ruby
[08:38:49] riffraff: has joined #ruby
[08:39:19] haxrbyte: has joined #ruby
[08:40:52] Oog: has joined #ruby
[08:41:01] ljarvis: ?code tuor
[08:41:01] ruboto: tuor, We can't help you without your code, please post it to https://gist.github.com
[08:41:04] astrobun_: has joined #ruby
[08:41:39] baweaver: has joined #ruby
[08:42:24] doodleha_: has joined #ruby
[08:43:11] 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
[08:43:30] Ox0dea: tuor: https://github.com/express42/zabbixapi/tree/master/lib/zabbixapi/basic
[08:43:30] bronson: has joined #ruby
[08:44:13] 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.
[08:44:37] Stan: has joined #ruby
[08:44:49] tuor: I can do "show-source ZabbixApi" in pry.
[08:44:55] tubuliferous_: has joined #ruby
[08:45:22] Ox0dea: `show-source ZabbixApi::Basic` should work.
[08:45:24] fsvehla: has joined #ruby
[08:45:25] _djbkd: has joined #ruby
[08:45:50] tuor: ah thx. :0
[08:45:56] tuor: s/:0/:)/
[08:45:59] Ox0dea: Now go learn Ruby. :)
[08:46:16] doodleha_: has joined #ruby
[08:47:07] adaedra: what is ruby
[08:47:17] sofija: has joined #ruby
[08:47:39] zacstewart: has joined #ruby
[08:47:43] ruboto: I don't know anything about ruby
[08:47:45] bluesnow: has left #ruby: ()
[08:48:19] [k-: has joined #ruby
[08:48:52] matcouto: has joined #ruby
[08:49:19] [k-: Ox0dea!
[08:50:05] doodleha_: has joined #ruby
[08:50:13] Ox0dea: We've missed our connection these past few days.
[08:50:47] [k-: my creation: https://gist.github.com/SkyBirdSoar/2d1267be7661d1ee0803
[08:51:12] Iskarlar: has joined #ruby
[08:51:17] allomov: has joined #ruby
[08:51:31] CloCkWeRX: has joined #ruby
[08:52:06] ndrei: has joined #ruby
[08:52:11] Ox0dea: 209 initial lines of non-code. :(
[08:52:19] ruboto: [k- # => :l (https://eval.in/399044)
[08:52:41] [k-: it was necessary for the good of open source!
[08:52:43] ljarvis: srsly, delete that poop
[08:52:56] [k-: noooooo
[08:53:01] Ox0dea: I love it, but it's pretty gnarly.
[08:53:08] Soda: has joined #ruby
[08:53:23] Ox0dea: [k-: I did that kata you suggested: https://gist.github.com/0x0dea/2df6c43f4f422884216b
[08:53:29] sp1rs: has joined #ruby
[08:53:33] adaedra: This is hellish
[08:53:36] apeiros: suggestions for ?ruby ? :)
[08:53:51] [k-: such Greek!
[08:53:54] Ox0dea: [k-: I used Greek instead of arbitrarily unique sequences of underscores.
[08:54:04] adaedra: apeiros: "Way better than PHP or JavaScript"
[08:54:24] tuor: Ox0dea, doing so. :)
[08:54:37] apeiros: adaedra: imo ?isrubybetter -> "yes" :D
[08:54:41] reset: has joined #ruby
[08:54:43] 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.
[08:54:44] [k-: it looks way better than mine :p, as in beautiful
[08:55:12] [k-: yeah, I had to use $-o instead of $??
[08:55:55] doodleha_: has joined #ruby
[08:55:57] matcouto: has joined #ruby
[08:56:05] 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.
[08:56:21] einarj: has joined #ruby
[08:56:31] [k-: it's true!
[08:56:35] Ox0dea: apeiros: https://gist.github.com/0x0dea/766e7495da2252a4c4c6
[08:56:41] [k-: if you remove it, the library fails
[08:56:47] Ox0dea: Well, no shit? :P
[08:57:13] [k-: I shifted it to https://github.com/SkyBirdSoar/libobf
[08:57:19] [k-: cleaned it up a little
[08:57:20] 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.
[08:57:32] [k-: I'm going to add a tips and tricks section
[08:58:42] apeiros: aha, common.mk
[08:58:45] apeiros: thanks Ox0dea
[08:58:51] Ox0dea: My pleasure.
[08:58:59] apeiros: sadly this weekend is already stuffed. damn. I want to dabble in such things.
[08:59:09] apeiros: but if I do I get flak for not improving ruboto and stuff :<
[08:59:20] Ox0dea: apeiros: I mean, he doesn't even know anything about Ruby...
[08:59:34] Scrofff: has joined #ruby
[08:59:56] ruboto: I don't know anything about ruby
[08:59:56] [k-: I bet you did the [_..-_] for visu
[09:00:01] [k-: al notice
[09:00:11] Ox0dea: [k-: It's... optimal?
[09:00:22] apeiros: Ox0dea: 10:53 apeiros: suggestions for ?ruby ? :)
[09:00:24] [k-: there is t...t
[09:00:37] [k-: which is un inclusive!
[09:00:39] 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)
[09:00:57] Mohan__: has joined #ruby
[09:01:10] Ox0dea: [k-: No, I need it to be [1..-1].
[09:01:48] blackmesa: has joined #ruby
[09:02:11] [k-: oh, -1 is not -2
[09:02:14] Iskarlar: has joined #ruby
[09:02:54] Ox0dea: I exclude the end during the initial construction.
[09:03:41] [k-: my solution will take only 15 lines without method obfuscation!
[09:03:51] Ox0dea: [k-: I did it in one. :)
[09:03:56] Ox0dea: Might still have it around.
[09:04:18] [k-: https://github.com/SkyBirdSoar/libobf/blob/master/examples/example_min.rb
[09:04:28] [k-: I cheated :p
[09:05:15] [k-: a recursive solution, amazing!
[09:05:32] doodleha_: has joined #ruby
[09:05:33] GitGud: has joined #ruby
[09:05:42] Ox0dea: Well, let it not be said that obfuscation is a dead art.
[09:05:42] CloCkWeRX1: has joined #ruby
[09:06:03] Ox0dea: Perl has Acme::EyeDrops: http://search.cpan.org/dist/Acme-EyeDrops/lib/Acme/EyeDrops.pm
[09:06:22] Ox0dea: It converts most valid Perl programs to non-alphanumeric ones, but it's pretty much all string manipulation.
[09:06:24] Sojiro: has joined #ruby
[09:06:41] revath: has joined #ruby
[09:07:50] Jackneill: has joined #ruby
[09:07:58] ruboto: [k- # => 0 (https://eval.in/399074)
[09:08:18] [k-: what is $. for
[09:08:32] apeiros: [k-: zenspiders quickref
[09:08:34] apeiros: has them all :D
[09:08:42] chinmay_dd: has joined #ruby
[09:08:46] ruboto: http://www.zenspider.com/Languages/Ruby/QuickRef.html
[09:09:42] [k-: $. # The current line number of the last file from input.
[09:10:06] Oog: has joined #ruby
[09:10:09] [k-: tricky, Ox0dea!
[09:10:09] Ox0dea: zenspider: Why not just say ARGF.lineno?
[09:10:59] leat1: has joined #ruby
[09:11:00] Ox0dea: >> $VERBOSE = nil; global_variables.select { |g| Fixnum === eval(g.to_s) }
[09:11:01] ruboto: Ox0dea # => [:$SAFE, :$., :$$, :$-W] (https://eval.in/399079)
[09:11:19] doodleha_: has joined #ruby
[09:12:09] serivich: has joined #ruby
[09:12:28] bigkevmcd: has joined #ruby
[09:15:06] eGGsha: has joined #ruby
[09:15:17] arup_r: has joined #ruby
[09:15:31] [k-: I don't see a 9 anywhere :o
[09:16:36] arup_r1: has joined #ruby
[09:16:37] Ox0dea: >> [*?/...?:]
[09:16:38] ruboto: Ox0dea # => ["/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] (https://eval.in/399080)
[09:17:01] doodleha_: has joined #ruby
[09:17:15] [k-: good trick!
[09:17:23] Ox0dea: Did you mean for complementing digits, though?
[09:17:37] Ox0dea: >> ('0123456789' =~ /$/) - 1
[09:17:38] ruboto: Ox0dea # => 9 (https://eval.in/399081)
[09:18:05] withnale_: has joined #ruby
[09:18:30] Axsuul: has joined #ruby
[09:18:52] [k-: I'll slowly unobfuscate it later, going to take a nap
[09:19:14] lkba: has joined #ruby
[09:19:45] Ox0dea: Enjoy your siesta.
[09:21:37] leat1: has joined #ruby
[09:22:47] doodleha_: has joined #ruby
[09:23:33] mike___1234: has joined #ruby
[09:23:34] roryhughes: has joined #ruby
[09:25:52] quimrstorres: has joined #ruby
[09:26:04] adaedra: `raise Foo, "text"` is the same as `raise Foo.new("text")`, no?
[09:26:40] doodleha_: has joined #ruby
[09:26:42] haxrbyte_: has joined #ruby
[09:26:45] apeiros: but for most cases it will have the same effect
[09:26:56] apeiros: it differs for exception classes with custom initializer
[09:27:18] dgutierrez1287: has joined #ruby
[09:27:42] Ox0dea: apeiros: Does it?
[09:27:59] apeiros: try it to be sure :)
[09:28:09] Ox0dea: raise calls news.
[09:28:22] howdoicomputer: has joined #ruby
[09:28:35] blueOxigen: has joined #ruby
[09:28:42] apeiros: seems I remember wrongly
[09:28:46] bodzio: has joined #ruby
[09:28:49] apeiros: or it changed during ruby versions???
[09:29:11] dANO-: has joined #ruby
[09:29:15] Ox0dea: >> class Foo < Exception; undef new end; raise Foo, 'bar'
[09:29:17] ruboto: Ox0dea # => undefined method `new' for class `Foo' (NameError) ...check link for more (https://eval.in/399104)
[09:29:41] Ox0dea: That does seem like the sort of thing that might've changed between versions, though.
[09:29:44] apeiros: nope, 1.8.6 did it too
[09:29:53] Ox0dea: brb, trying on 0.49.
[09:29:55] apeiros: so clearly misremembering
[09:30:21] apeiros: aaaah, no, right, I have Foo.new when I don't pass the complete message as argument
[09:30:38] apeiros: i.e. Foo.new(x, y) and then the message is constructed from x & y
[09:30:51] Ox0dea: But... raise calls new?
[09:31:01] apeiros: yes, but not with arbitrary number of arguments
[09:31:22] apeiros: 3rd arg is caller
[09:31:51] leat1: has joined #ruby
[09:32:10] Ox0dea: Yep, makes sense.
[09:32:26] adaedra: so it's the same as long as you use only one argument on raise?
[09:32:30] apeiros: you could use an array. but??? eeew :D
[09:32:33] adaedra: (plus the exception)
[09:32:46] apeiros: (e.g. raise Foo, [x, y])
[09:33:09] apeiros: adaedra: yepp. it's the same if you only use 1 argument.
[09:33:10] intinig: has joined #ruby
[09:33:19] Iskarlar: has joined #ruby
[09:33:19] apeiros: (to the constructor of the exception)
[09:33:30] apeiros: sorry for the noise :D
[09:33:41] Ox0dea: Way too loud in here right now.
[09:34:29] adaedra: WHAT YOU SAY? I CAN'T HEAR
[09:34:37] Ox0dea: > #define C ,
[09:34:40] Ox0dea: apeiros: Did you catch that?
[09:36:27] revath: has joined #ruby
[09:36:45] Ox0dea: I used it to facilitate "cleanly" defining Introspectable's methods. It's really gross, but also DRY.
[09:36:53] last_staff: has joined #ruby
[09:37:02] apeiros: oh, that was no joke???
[09:37:13] apeiros: I only skimmed the code :-|
[09:37:17] Ox0dea: For shame.
[09:37:22] apeiros: (and copied it)
[09:37:24] Scroff: has joined #ruby
[09:37:55] Ox0dea: You might genuinely want to replace rb_intern_str() with something less lenient; that seems like the sort of thing with teeth.
[09:38:32] startupality: has joined #ruby
[09:39:08] jespada__: has joined #ruby
[09:39:13] apeiros: Ox0dea: (read the code) I see, you lazy bastard :D
[09:39:15] djbkd_: has joined #ruby
[09:39:36] apeiros: (and I only read the makeboth part)
[09:39:47] Ox0dea: apeiros: Having six distinct and yet nearly identical functions is nonsensical, in my opinion.
[09:39:49] jokke: i'm having trouble setting up the bundle of an legacy project
[09:40:16] jokke: weirdly building native extensions by bundler almost always fails
[09:40:23] 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
[09:40:23] GriffinHeart: has joined #ruby
[09:40:28] jokke: but if i install the gem manually it works fine
[09:40:40] apeiros: according to larry wall, laziness is one of the three virtues of a good programmer ;-)
[09:40:49] Ox0dea: apeiros: Oui. Also, Ruby has conditioned me to "metaprogram" whenever the opportunity even vaguely presents itself.
[09:40:56] jokke: i have clang installed and had the issue some times, that it was used for compiling instead of gcc which led to problems
[09:41:06] jokke: i don't know if this is maybe related
[09:41:09] Ox0dea: Poor Larry. Perl 6 is going to be stillborn. :(
[09:41:34] intinig: has joined #ruby
[09:42:07] leat1: has joined #ruby
[09:43:05] Ox0dea: jokke: "weirdly", "almost always", "don't know", "maybe"; these are not actionable insights into the problem you're having.
[09:43:08] Ox0dea: Post errors.
[09:43:55] jokke: ok it was a problem with nokogiri
[09:43:58] jokke: i rebuilt it
[09:44:02] jokke: now it works
[09:44:12] LMity: has joined #ruby
[09:44:13] Oka: has joined #ruby
[09:44:24] yorickpeterse: ok dumb question, how do I get the codepoint of Unicodes in the form of "U+XXXXX" e.g. "U+AC0x"
[09:44:35] yorickpeterse: It's somewhere in the back of my head but I just can't remember it
[09:44:44] apeiros: what do you mean, "get"?
[09:44:46] eGGsha: has joined #ruby
[09:44:52] apeiros: what do you have and what do you want?
[09:45:08] SOLDIERz: has joined #ruby
[09:45:09] yorickpeterse: ok so you can do something like this
[09:45:11] hollywood: has joined #ruby
[09:45:17] apeiros: >> "\u001a - \u{0001a}"
[09:45:18] ruboto: apeiros # => "\u001A - \u001A" (https://eval.in/399131)
[09:45:19] yorickpeterse: >> "???".codepoints
[09:45:20] ruboto: yorickpeterse # => [44038] (https://eval.in/399132)
[09:45:38] Ox0dea: yorickpeterse: String#ord?
[09:45:39] yorickpeterse: Now I have a range of unicodes, U+AC00..U+D7AF to be exact, but I need to translate that to codepoints
[09:45:55] apeiros: well, ac00 is just the hex representation of the codepoint
[09:46:24] yorickpeterse: ah derp, it's "\uXXX" minus the +
[09:46:25] apeiros: i.e. U+AC00 == 44032 (0xAC00, or "AC00".to_i(16))
[09:46:28] yorickpeterse: that's what I was looking for
[09:46:38] senayar: has joined #ruby
[09:46:38] senayar: has joined #ruby
[09:46:55] apeiros: and yes, you can write it as "\uHHHH" (4 hex digits) or "\u{HHHHH}" (not 4 hex digits)
[09:48:21] apeiros: ACTION runs off
[09:48:28] yorickpeterse: boooooo, grep doesn't seem to support \p{Word}
[09:48:53] mackle: has joined #ruby
[09:49:05] astrobun_: has joined #ruby
[09:50:27] Iskarlar: has joined #ruby
[09:51:10] DeweyD: has joined #ruby
[09:51:20] Ox0dea: yorickpeterse: Nor ag, but ack does, because Perl.
[09:51:32] mackle: hello rubians
[09:51:40] chinmay_dd: has joined #ruby
[09:51:56] mackle: can we create .exe with ruby script
[09:52:06] Ox0dea: mackle: OCRA.
[09:52:39] ruby-lang800: has joined #ruby
[09:53:00] yorickpeterse: mackle: Not out of the box
[09:53:13] Karpah: has joined #ruby
[09:53:41] krz: has joined #ruby
[09:54:05] mackle: <yorickpeterse> can you clear me please?
[09:54:12] Ox0dea: mackle: You want to turn your Ruby script into a Windows executable, yes?
[09:54:40] Ox0dea: Use OCRA: http://ocra.rubyforge.org/
[09:54:56] kfpratt: has joined #ruby
[09:55:18] intinig: has joined #ruby
[09:55:28] OrbitalKitten: has joined #ruby
[09:56:03] revath: has joined #ruby
[09:56:56] mackle: <yorickpeterse> i want to create an exe file using ruby
[09:56:59] ndrei: has joined #ruby
[09:57:10] yorickpeterse: mackle: did you read my reply?
[09:57:16] mackle: <yorickpeterse> in windows os
[09:57:16] tuor: hi, how can i run a files content in ruby, like ". $myfile" in bash?
[09:57:22] tuor: in pry i mean
[09:57:52] yorickpeterse: mackle: read my reply
[09:57:58] yorickpeterse: and read Ox0dea's reply
[09:58:02] adaedra: tuor: with load
[09:58:06] tuor: adaedra, thx.
[09:59:11] dANO-: has joined #ruby
[10:00:22] mackle: <yorickpeterse> i read your's reply and 0x0dea's , but you said not out of box? what does it mean?
[10:00:41] yorickpeterse: That Ruby itself doesn't provide anything for this
[10:01:35] Oog: has joined #ruby
[10:02:07] xcesariox: has joined #ruby
[10:02:13] mackle: <yorickpeterse> so what should i do, to get out of it...
[10:02:39] yorickpeterse: mackle: you use http://ocra.rubyforge.org/ as was already told
[10:02:41] futilegames: has joined #ruby
[10:04:35] Ox0dea: mackle: You're not meant to get out of the box; you're just supposed to put more stuff in it.
[10:04:36] Scrofff: has joined #ruby
[10:05:29] abuzze_: has joined #ruby
[10:05:55] zacstewart: has joined #ruby
[10:06:32] mackle: any ex script
[10:06:47] mackle: <yorickpeterse> any ex script plz suggest me?
[10:07:31] xkef: has joined #ruby
[10:07:41] yorickpeterse: mackle: http://google.com
[10:08:09] yorickpeterse: also the actual ocra page contains plenty of examples
[10:08:13] yorickpeterse: So I suggest you actually read them
[10:08:21] mackle: <yorickpeterse> thank you so much
[10:08:39] mackle: you make me get hard
[10:09:02] Ox0dea: Hey, he was only pretending to be retarded!
[10:09:17] yorickpeterse: mackle: you're welcome to act mature instead of being a 12 year old
[10:09:28] yorickpeterse: mackle: don't expect us to spoon feed you everything
[10:11:15] Ox0dea: Do people spoon-feed their twelve-year-olds?
[10:11:25] yorickpeterse: only if they can't eat on their own
[10:11:45] Ox0dea: Is eating on your own considered "autocannibalism"?
[10:11:46] Oog: has joined #ruby
[10:12:24] htmldrum: has joined #ruby
[10:12:38] ljarvis: lets stick on topic, and mackle responses like that won't be tolerated so please keep it civil
[10:13:02] leat1: has joined #ruby
[10:13:49] Igorshp: has joined #ruby
[10:14:25] casadei_: has joined #ruby
[10:17:52] xkef: has joined #ruby
[10:20:55] bruno-: has joined #ruby
[10:21:04] Iskarlar: has joined #ruby
[10:21:06] chinmay_dd: has joined #ruby
[10:21:07] shredding: has joined #ruby
[10:21:28] heidar: has joined #ruby
[10:21:33] mackle: <yorickpeterse> guys don't feel bad..if it hurts you...i am extremely sorry.
[10:23:24] fabrice31: has joined #ruby
[10:24:01] yorickpeterse: hurts? No, I only laugh at people who say things like that
[10:24:04] arturmartins: has joined #ruby
[10:25:15] chipotle: has joined #ruby
[10:25:35] lkba_: has joined #ruby
[10:25:47] psyprus: has joined #ruby
[10:26:44] GriffinHeart: has joined #ruby
[10:27:21] mackle: has left #ruby: ()
[10:28:33] DeweyD: has joined #ruby
[10:30:38] senayar: has joined #ruby
[10:30:38] senayar: has joined #ruby
[10:32:39] andrefreitas: has joined #ruby
[10:32:49] andrefreitas: Hi, how I test a gem project in IRB?
[10:32:55] andrefreitas: I forgot the syntax :/
[10:33:02] tubuliferous_: has joined #ruby
[10:33:30] ljarvis: andrefreitas: "test a gem project"?
[10:33:40] jhass: andrefreitas: irb -Ilib
[10:33:54] andrefreitas: I am developing a gem
[10:34:06] andrefreitas: and I want to be able to test the classes I have implemented in irb
[10:34:26] jhass: as said, irb -Ilib or even irb -Ilib -rmygem
[10:35:55] andrefreitas: thank you, it worked
[10:36:23] Ox0dea: andrefreitas: You're lucky jhass speaks gibberish. :)
[10:36:43] Ox0dea: Only poking fun, of course.
[10:36:51] adaedra: jhass: shkjbvksdhf
[10:36:53] apeiros: Ox0dea: we get plenty of exercise in gibberish and mentalism here
[10:37:03] jhass: apeiros: no, your mother
[10:37:10] jhass: wah, adaedra ^
[10:37:23] apeiros: jhass: nobody insults my mother!
[10:37:25] jhass: ACTION curses lru tab completion
[10:37:40] apeiros: jhass: I won't let anybody insult my mother! # fixed
[10:38:03] apeiros: (sorry for all those who didn't catch it :-p)
[10:38:16] adaedra: jhass: that's a shame, typing just one more letter before tab would have avoided that. :p
[10:38:34] tuor: hi, code: https://gist.github.com/anonymous/fad4dcdf973f027b74c8, can I write it with out using a second array?
[10:38:45] eGGsha: has joined #ruby
[10:39:10] platzhirsch: has joined #ruby
[10:39:15] Xiti`: has joined #ruby
[10:39:23] apeiros: tuor: Array#map
[10:39:25] jhass: tuor: arr1 = arr2.map {|n| n.to_i } or just arr1 = arr2.map(&:to_i)
[10:39:39] f4cl3y: has joined #ruby
[10:39:49] tuor: apeiros, thx.
[10:40:34] Ox0dea: jhass: LRU?
[10:40:43] kokut: has joined #ruby
[10:40:49] adaedra: Last Read User or something like that
[10:41:00] pabloh: has joined #ruby
[10:41:05] jhass: least recently used ?
[10:41:19] Ox0dea: jhass: Right, but you got bit because your tab completion is MRU.
[10:41:28] kokut: Hi, i never used ruby in my life, is it okay to start with slim or its better to start the hard way?
[10:41:31] jhass: mh, I guess
[10:41:34] que: has joined #ruby
[10:41:43] adaedra: kokut: with slim? what?
[10:42:00] kokut: adaedra: slim template engine
[10:42:08] Ox0dea: kokut: You're asking if you would be better served by forcing yourself to write raw HTML by hand?
[10:42:09] jhass: and what's "the hard way"?
[10:42:18] Iskarlar: has joined #ruby
[10:42:18] adaedra: I don't see how that helps you learning ruby, kokut
[10:42:29] Scroff: has joined #ruby
[10:42:38] kokut: hard way would be to build something like slim template engine myself :p
[10:42:46] 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
[10:42:47] que: Unable to resolve dependency: No match for 'manticore (~> 0.3)' on this platform. Found: java
[10:42:47] kokut: Ox0dea: what u mean?
[10:43:04] Ox0dea: kokut: Nonsensical questions beget nonsensical answers, I suppose.
[10:43:08] adaedra: kokut: oh woh woh, you may attack to bigger than yourself.
[10:43:20] adaedra: kokut: state what you want to do, exactly
[10:43:23] adaedra: in the big picture
[10:43:24] montyboy: has joined #ruby
[10:43:26] Ox0dea: He doesn't know.
[10:43:43] kokut: Ox0dea: what is it that i dont know? ^^
[10:44:01] jhass: que: https://github.com/cheald/manticore/blob/master/manticore.gemspec#L15 manticore is only available for jruby
[10:44:39] que: hmmm ok
[10:44:47] que: so what You recommend for a solution
[10:44:59] que: install aditionaly jruby ?
[10:45:09] 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
[10:45:12] jhass: que: why do you need to use manticore?
[10:45:27] que: jhass: https://rubygems.org/gems/logstash-output-elasticsearch/versions/1.0.0-java
[10:45:49] arup_r: has joined #ruby
[10:46:35] que: i tried installing all possible ones
[10:46:45] que: maybe it wants 0.0.3
[10:46:54] que: but 0.0.3 is not existing anymore
[10:47:05] jhass: que: that too seems to only be available for jruby
[10:47:47] sdothum: has joined #ruby
[10:48:00] 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?)
[10:48:01] ruboto: Ox0dea # => true (https://eval.in/399199)
[10:48:07] que: and what problem it makes to install it via gem ?
[10:48:14] que: is there something like jgem ?
[10:48:36] jhass: mmh, no, actually it's conditional https://github.com/logstash-plugins/logstash-output-elasticsearch/blob/master/logstash-output-elasticsearch.gemspec#L33-L36
[10:48:51] wildroman2: has joined #ruby
[10:48:59] jhass: que: well, are you using jruby?
[10:49:31] que: i dont even know is there installed
[10:49:39] Iskarlar: has joined #ruby
[10:49:55] zacstewart: has joined #ruby
[10:51:48] 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
[10:52:25] jhass: see the above link, it's conditional for when you're on jruby
[10:54:12] leat1: has joined #ruby
[10:54:16] xkef: has joined #ruby
[10:54:53] que: let me download gem with 1.4.2
[10:55:26] 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
[10:56:28] kfpratt: has joined #ruby
[10:57:13] 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 ?
[10:57:33] sevenseacat: before I learn about wheels, what colour racecar should I buy?
[10:58:12] jhass: que: did you look up what jruby is yet?
[10:58:46] jhass: and it's a git repo right? just check out the right tag
[10:59:43] Ox0dea: sevenseacat: Such a fantastic distillation of these braindead questions.
[10:59:56] Oog: has joined #ruby
[11:00:55] sevenseacat: ACTION goes back to practicing Esperanto
[11:01:09] jhass: sevenseacat: I'd go with your nick color here http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150715_130059.png
[11:01:37] Ox0dea: jhass: You're that color for me.
[11:01:39] 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
[11:01:44] ndrei: has joined #ruby
[11:02:13] 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.
[11:02:25] stamina: has joined #ruby
[11:02:27] que: czu there is no git for that plugin .
[11:02:37] Ox0dea: que: What is your philosophical opposition to progress for its own sake?
[11:02:58] phutchins2: has joined #ruby
[11:02:59] que: Ox0dea: would you ask this question in more simpler english.
[11:03:06] 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
[11:03:09] que: my english is not good enough.
[11:03:10] dgutierrez1287: has joined #ruby
[11:03:12] yuuvee: has joined #ruby
[11:03:28] que: jhass: i understand i am there. but i came here to understand why after installing gem i failed
[11:03:37] que: so i am thankfull to show a bit of light on the issue
[11:03:40] jhass: well, that's answered
[11:03:51] jhass: manticore is a jruby only dependency
[11:04:06] jhass: you don't need it on MRI
[11:04:30] Xiti: has joined #ruby
[11:04:56] GriffinHeart: has joined #ruby
[11:06:34] djbkd_: has joined #ruby
[11:06:43] xkef_: has joined #ruby
[11:09:42] prestorium: has joined #ruby
[11:10:27] nettoweb: has joined #ruby
[11:11:38] kokut: adaedra: k
[11:13:35] nettoweb_: has joined #ruby
[11:14:48] adaedra: sevenseacat is green here :v
[11:14:58] sevenseacat: I am whatever you want me to be.
[11:15:02] leat1: has joined #ruby
[11:15:10] adaedra: even a dog?
[11:15:22] adaedra: SUPERGREEN!
[11:15:40] adaedra: ACTION throws sevenseacat a bone
[11:17:53] Violentr: has joined #ruby
[11:18:29] yardenbar: has joined #ruby
[11:19:00] allcentury: has joined #ruby
[11:19:38] nettoweb: has joined #ruby
[11:20:21] Darkwater: how do I define a method from a module in a class that includes the module?
[11:20:40] Darkwater: ie. include Foo; bar; (bar is defined from Foo)
[11:21:35] jhass: >> module A; def bar; :module; end; end; class Foo; include A; end; Foo.new.bar
[11:21:36] ruboto: jhass # => :module (https://eval.in/399235)
[11:22:10] sp1rs: has joined #ruby
[11:22:16] thomas: has joined #ruby
[11:22:50] Darkwater: jhass: I'm talking about in the scope of the class itself
[11:23:00] Darkwater: not Foo.new.bar, but Foo.bar
[11:23:08] Darkwater: DataMapper does this
[11:23:13] apeiros: Darkwater: you can't
[11:23:16] apeiros: you have to extend
[11:23:20] bruno-: has joined #ruby
[11:23:23] Darkwater: pretty sure it's possible somehow
[11:23:24] apeiros: include *always* adds methods as instance methods
[11:23:30] apeiros: yeah, well, you're mistaken :)
[11:23:31] Darkwater: http://datamapper.org/getting-started.html
[11:23:40] Darkwater: pretty sure I'm not
[11:23:41] apeiros: yes. they cheat.
[11:23:51] apeiros: they use self.included callback and do the extend themselves.
[11:24:03] apeiros: and that's *bad style*, mkay? :)
[11:24:27] Darkwater: what I want to do is similar to datamapper though
[11:24:40] adaedra: use extend, all everything will be right
[11:24:41] Darkwater: I'm basically making models for json objects
[11:25:01] 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
[11:25:15] adaedra: apeiros: rule 1 of bad style: we don't talk about bad style.
[11:25:18] leat1: has joined #ruby
[11:25:25] apeiros: what you should do: class Blapp; extend Foo::ClassMethods; end # be explicit
[11:25:40] apeiros: adaedra: I don't follow your rules then :)
[11:25:41] Darkwater: so Foo.new gets a hash, some of the children are other objects like these, so call Bar.new with those children
[11:25:57] bnizzle: has joined #ruby
[11:26:03] adaedra: how dare you
[11:26:04] Darkwater: so I'd want to do something like field :user, User
[11:26:35] Darkwater: which takes obj[:user] in initialize and puts it in @user, and make a reader that returns User.new @user
[11:26:46] Darkwater: something like that
[11:27:28] Pupeno: has joined #ruby
[11:27:53] Darkwater: let me write up a quick example
[11:28:51] zacstewa_: has joined #ruby
[11:28:56] chipotle_: has joined #ruby
[11:28:57] edwinvdgraaf: has joined #ruby
[11:29:05] jottr: has joined #ruby
[11:29:25] fabrice31_: has joined #ruby
[11:30:01] code_[BNC]: has joined #ruby
[11:30:02] einarj_: has joined #ruby
[11:30:55] tommylom1ykins: has joined #ruby
[11:30:57] viki_: has joined #ruby
[11:31:02] yqt: has joined #ruby
[11:31:08] headius_: has joined #ruby
[11:31:33] saltsa_: has joined #ruby
[11:31:56] lessless: has joined #ruby
[11:31:57] Biohazard_: has joined #ruby
[11:32:09] haroldwu_: has joined #ruby
[11:32:11] Darkwater: http://hastebin.com/yatoguhoka.rb
[11:32:15] Darkwater: that's what I want to do
[11:32:28] alexblom: has joined #ruby
[11:32:29] Cust0sLim3n: has joined #ruby
[11:32:33] apeiros: module Something + extend
[11:32:35] ldnunes: has joined #ruby
[11:32:35] hfp__work: has joined #ruby
[11:32:35] S0da: has joined #ruby
[11:32:42] apeiros: and in Something, def field
[11:32:53] eregon_: has joined #ruby
[11:32:59] apeiros: (not def self.field - class methods of modules are never added, neither through include nor extend)
[11:33:03] mozzarel1: has joined #ruby
[11:33:04] DEac-_: has joined #ruby
[11:33:07] marens_: has joined #ruby
[11:33:08] destructure: has joined #ruby
[11:33:12] cscheib_: has joined #ruby
[11:33:18] Darkwater: how am I going to define the readers and writers though?
[11:33:27] blkperl_: has joined #ruby
[11:33:32] connor_g1odwolf: has joined #ruby
[11:33:48] vali: has left #ruby: ()
[11:34:02] Steve_Jo1: has joined #ruby
[11:34:02] Gnubie__: has joined #ruby
[11:34:14] Iskarlar: has joined #ruby
[11:34:25] apeiros: I don't know. how would you have done it without using a module?
[11:34:29] xkef: has joined #ruby
[11:34:43] Darkwater: simply def it
[11:34:56] Darkwater: but that would result in lots of repetition
[11:34:59] diegoviola: has joined #ruby
[11:35:00] nateberkopec: has joined #ruby
[11:35:06] Darkwater: so I want to write a helper for it
[11:35:07] mikecmpb_: has joined #ruby
[11:35:38] leat1: has joined #ruby
[11:35:48] duper`: has joined #ruby
[11:35:56] fallen_: has joined #ruby
[11:36:02] _jasonmit: has joined #ruby
[11:36:06] Darkwater: module Foo; def foo(name); attr_accessor name; end; end is almost what I want
[11:36:18] Darkwater: how do attr_* work?
[11:36:18] apeiros: well, that will work
[11:36:27] apeiros: they're methods which define methods
[11:36:33] NuckingFuts: has joined #ruby
[11:36:41] al2o3-cr1: has joined #ruby
[11:36:47] Darkwater: can I view the source for them somewhere?
[11:36:55] apeiros: def attr_reader(name); define_method(name) { instance_variable_get(:"@#{name}") }; end
[11:36:57] JeramyRR: has joined #ruby
[11:37:10] \13k_: has joined #ruby
[11:37:13] jokke-: has joined #ruby
[11:37:20] apeiros: or: def attr_reader(name); class_eval %{def #{name}; @#{name}; end} end
[11:37:24] bartj3_: has joined #ruby
[11:37:27] apeiros: Darkwater: github.com/ruby/ruby
[11:37:39] senayar: has joined #ruby
[11:37:39] senayar: has joined #ruby
[11:37:44] lkba: has joined #ruby
[11:37:44] Darkwater: alright thanks
[11:37:47] Darkwater: I'll mess around a bit
[11:37:54] dionysus69: has joined #ruby
[11:38:08] kokut: has joined #ruby
[11:38:12] PierreRambaud: has joined #ruby
[11:38:25] ujjain: has joined #ruby
[11:38:25] ujjain: has joined #ruby
[11:38:52] redlegion: has joined #ruby
[11:39:07] braincrash: has joined #ruby
[11:39:15] Scrofff: has joined #ruby
[11:39:25] Tarential: has joined #ruby
[11:39:53] kokut: has joined #ruby
[11:40:20] Ray`: has joined #ruby
[11:40:44] plashchynski: has joined #ruby
[11:41:08] eGGsha: has joined #ruby
[11:41:10] fgo: has joined #ruby
[11:42:03] sp1rs: has joined #ruby
[11:42:03] kokut: has joined #ruby
[11:42:19] voker57: has joined #ruby
[11:43:31] kokut: has joined #ruby
[11:43:34] Darkwater: alright, I got it
[11:43:37] Darkwater: thanks for the help
[11:44:15] kokut: has joined #ruby
[11:45:49] kokut: has joined #ruby
[11:45:56] zz_Outlastsheep: has joined #ruby
[11:46:08] meinside: has joined #ruby
[11:47:19] tmtwd: has joined #ruby
[11:47:29] kokut: has joined #ruby
[11:50:40] chinmay_dd: has joined #ruby
[11:52:32] DaniG2k: has joined #ruby
[11:52:38] psyprus: has joined #ruby
[11:53:48] Papierkorb: has joined #ruby
[11:54:39] kokut: has left #ruby: ()
[11:57:10] shredding: has joined #ruby
[11:57:30] kfpratt: has joined #ruby
[11:57:35] xcesariox: has joined #ruby
[11:57:47] howdoicomputer: has joined #ruby
[11:57:52] endash: has joined #ruby
[11:58:11] freerobby: has joined #ruby
[12:00:15] xkef: has joined #ruby
[12:02:30] Violentr: has joined #ruby
[12:02:49] rikkipitt: has joined #ruby
[12:02:51] konsolebox: has joined #ruby
[12:03:39] Muhannad: has joined #ruby
[12:03:50] renderful: has joined #ruby
[12:06:13] astrobun_: has joined #ruby
[12:08:01] mary5030: has joined #ruby
[12:08:07] howdoicomputer: has joined #ruby
[12:09:03] xkef: has joined #ruby
[12:09:59] edwinvdgraaf: has joined #ruby
[12:10:04] plashchynski: has joined #ruby
[12:10:56] Igorshp: has joined #ruby
[12:11:49] 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?
[12:11:55] edwinvdg_: has joined #ruby
[12:12:04] apeiros: ?guys denym_`
[12:12:04] 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?
[12:12:40] 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?
[12:13:38] sevenseacat: gsub? :trollface:
[12:13:49] tuor: hi, code: https://gist.github.com/anonymous/f8547d3b50db60dbadcd, I want that zabbix.templates.get_name(id) gives me the name of the id.
[12:14:09] devdazed: has joined #ruby
[12:14:53] 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
[12:15:02] mhib: has joined #ruby
[12:15:12] apeiros: ok, then it's no longer a dump ;-)
[12:15:26] tuor: The Problem is: undefined method `query' for #<ZabbixApi::Templates:0x00000002f75830>
[12:15:30] apeiros: denym_`: so data is a Hash? (yaml can store anything)
[12:15:39] denym_`: yeah its a hash
[12:15:57] ndrei: has joined #ruby
[12:16:02] apeiros: and you want the data in data['key'] to be stored in data['newkey']? data['newkey'] = data.delete('key')
[12:16:13] denym_`: Was thinking about doing it with regex but maybe there is a simple yaml solution for that
[12:16:32] apeiros: denym_`: you should get clear on what you have, really.
[12:16:40] apeiros: regex works for text, not datastructures
[12:16:48] apeiros: the *dump* is text, the *loaded data* is not.
[12:16:51] denym_`: I just want to change the name of a key
[12:17:34] Violentr: try to doit with merge method
[12:17:37] denym_`: For example I have a key that is named 'name' and I want it to be 'first_name'
[12:17:49] apeiros: 14:16 apeiros: and you want the data in data['key'] to be stored in data['newkey']? data['newkey'] = data.delete('key')
[12:17:51] apeiros: denym_`: ^
[12:18:01] apeiros: again, that implies you have the data loaded. you're being very fuzzy on that.
[12:18:11] adaedra: this will delete what is in data['newkey'] though, be careful.
[12:19:00] Zai00: has joined #ruby
[12:19:03] xkef: has joined #ruby
[12:19:33] arooni-mobile: has joined #ruby
[12:19:38] 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
[12:20:22] teotwaki: has joined #ruby
[12:20:24] apeiros: seriously, do I talk in japanese or something?
[12:20:39] sevenseacat: apeiros: no, but you also dont talk in noob.
[12:20:43] arup_r: has joined #ruby
[12:21:08] felixr: has joined #ruby
[12:21:12] tubuliferous_: has joined #ruby
[12:21:15] 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?
[12:21:26] denym_`: ok easier for you to understand! How do I change a key name in a hash?
[12:21:39] apeiros: 3rd time: data['newkey'] = data.delete('key')
[12:21:46] Dwarf: has joined #ruby
[12:22:01] 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
[12:22:04] 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. ^^
[12:22:21] apeiros: ok. I don't have patience for this.
[12:22:27] apeiros: I hope somebody else can help you.
[12:22:31] jaxxstorm: has joined #ruby
[12:23:17] denym_`: yeah better with your fascist way of treating people like shit and thinking they have to be stupid
[12:23:42] apeiros: !kick denym_` inacceptable
[12:23:42] helpa: apeiros: No.
[12:23:43] ruboto: ruboto kicked denym_`:
[12:23:43] ruboto: -o ruboto
[12:24:09] bruno-: has joined #ruby
[12:24:41] sevenseacat: i guess they didnt understand the difference.
[12:24:59] 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.
[12:25:16] apeiros: I also guess they didn't consider accepting that I can't/no longer want to help them and move on.
[12:25:41] josh2: has joined #ruby
[12:25:49] tuor: (it's my second script language, after bash). ;)
[12:26:34] evanjs: has joined #ruby
[12:27:42] sevenseacat: apeiros: remember, youre a helper drone - you must help everyone regardless of everything.
[12:28:00] apeiros: of course. my time is worthless. I should be grateful somebody asks me for help.
[12:28:03] ddv: lol he got really frustrated
[12:28:24] sevenseacat: in about three seconds flat, too
[12:28:26] joonty: has joined #ruby
[12:28:29] 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.
[12:29:10] apeiros: *somebody's +precious+ time
[12:29:42] Ropeney: has joined #ruby
[12:30:28] jhass: ?cookie apeiros
[12:30:28] ruboto: apeiros, here's your cookie
[12:30:41] jenrzzz: has joined #ruby
[12:30:55] Kully3xf: has joined #ruby
[12:31:08] ljarvis: ?cookie ljarvis
[12:31:08] ruboto: ljarvis, here's your cookie
[12:31:09] blackmesa: has joined #ruby
[12:31:20] tuor: ACTION appreciates this channels help! ;)
[12:31:28] casadei_: has joined #ruby
[12:31:50] ljarvis: !fact ed cookie here's your cookie: ????
[12:31:51] ruboto: ljarvis, I stand corrected that cookie is here's your cookie: ????
[12:31:53] teotwaki: has joined #ruby
[12:31:56] ljarvis: ?cookie ruboto
[12:31:56] ruboto: ruboto, here's your cookie: ????
[12:33:52] danzilio: has joined #ruby
[12:33:56] ta: has joined #ruby
[12:34:31] poguez_: has joined #ruby
[12:35:17] danzilio: has joined #ruby
[12:35:48] Darkwater: apeiros: about the type helper thing from earlier, how would you recommend me to handle the input object from the initializer?
[12:35:56] Darkwater: ie. handling the object I'm passing to Message.new here http://hastebin.com/yatoguhoka.rb
[12:36:49] apeiros: Darkwater: ah, you want the class method ::field, and the instance method #initialize to be added by include/extend Something?
[12:37:28] apeiros: I'd probably have two modules, one for extend and one for include
[12:37:35] apeiros: the one for include defines initialize
[12:37:50] Darkwater: that would look pretty ugly imo
[12:38:00] Darkwater: think I can see why datamapper does the extend for you
[12:38:14] apeiros: well, then the other two routes are subclass instead of module, or use the same included/extended hack as DM
[12:38:39] apeiros: I find the latter more ugly than having to manually include/extend
[12:38:41] Darkwater: I think a subclass would make the most sense tbh
[12:38:46] Darkwater: since it's basically just a type
[12:39:00] apeiros: subclass disables a couple of nice things, though.
[12:39:56] apeiros: you're forced to inherit from a specific class. means you can't subclass from your own class.
[12:40:08] apeiros: I don't have good examples for that handy
[12:40:43] hanyn: has joined #ruby
[12:40:48] Darkwater: eh, doesn't sound like something I'll need for this anyway
[12:40:51] peeja: has joined #ruby
[12:40:54] Darkwater: I could almost use a struct for this
[12:41:02] haneen: has joined #ruby
[12:41:12] hashrocket: has joined #ruby
[12:41:20] apeiros: I guess you have your solution then :)
[12:41:29] Darkwater: think so too \o/
[12:41:39] Darkwater: wonder why I thought this wouldn't work earlier
[12:41:47] jakecodes: has joined #ruby
[12:41:56] Darkwater: still nice though, learnt a lot about modules and include/extend
[12:42:10] 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?
[12:42:28] nofxx: company.myapp.com*
[12:42:51] arup_r: has joined #ruby
[12:43:47] prestorium: has joined #ruby
[12:44:07] melter: has joined #ruby
[12:45:38] Iskarlar: has joined #ruby
[12:45:58] victortyau: has joined #ruby
[12:46:31] davejlong: has joined #ruby
[12:46:50] Timba-as: has joined #ruby
[12:46:52] jakecodes: has left #ruby: ()
[12:47:00] Kully3xf_: has joined #ruby
[12:47:10] arooni-mobile: has joined #ruby
[12:47:15] Igorshp: has joined #ruby
[12:47:31] Zai00: has joined #ruby
[12:47:41] fabrice31: has joined #ruby
[12:48:21] davejlong: has joined #ruby
[12:48:29] Igorshp_: has joined #ruby
[12:49:04] 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
[12:49:31] quimrstorres: has joined #ruby
[12:50:28] griffindy: has joined #ruby
[12:51:07] doerteDev: has joined #ruby
[12:51:11] rflappo: has joined #ruby
[12:51:29] rflappo: Hi, people!
[12:51:40] howdoicomputer: has joined #ruby
[12:54:04] workmad3: has joined #ruby
[12:54:18] stantonnet: has joined #ruby
[12:55:15] konsolebox: has joined #ruby
[12:55:34] Igorshp: has joined #ruby
[12:57:21] jottr: has joined #ruby
[12:57:39] yqt: has joined #ruby
[12:57:45] void: has joined #ruby
[12:57:49] devdazed: has joined #ruby
[12:58:32] kfpratt: has joined #ruby
[12:58:36] mhib: has joined #ruby
[13:00:47] Scroff: has joined #ruby
[13:00:50] Zamyatin: has joined #ruby
[13:00:57] hoov: has joined #ruby
[13:01:06] konsolebox: has joined #ruby
[13:02:12] havenwood: has joined #ruby
[13:02:40] willywos: has joined #ruby
[13:02:52] bmurt: has joined #ruby
[13:03:06] whippythellama: has joined #ruby
[13:03:51] dhjondoh: has joined #ruby
[13:04:31] tkuchiki: has joined #ruby
[13:04:41] dangerousdave: has joined #ruby
[13:05:23] jerius: has joined #ruby
[13:05:28] allcentury: has joined #ruby
[13:06:34] thiagovsk: has joined #ruby
[13:06:57] eggoez: has joined #ruby
[13:08:02] void: has left #ruby: ()
[13:09:02] chinmay_dd: has joined #ruby
[13:09:36] sgambino: has joined #ruby
[13:11:09] sanguisdex: has joined #ruby
[13:11:26] disconnekted: has joined #ruby
[13:13:32] bungoman: has joined #ruby
[13:13:33] rudak: has joined #ruby
[13:13:41] Darkwater: apeiros: aw yeah, sweet success! http://novaember.com/s/8f9453/OaEHnm.png
[13:14:04] radialneon: has joined #ruby
[13:14:05] apeiros: Darkwater: ????
[13:14:19] MagePsycho_: has joined #ruby
[13:14:31] Darkwater: I should get an emoji font
[13:14:44] apeiros: heh, yeah. it was a thumb-up
[13:14:57] Darkwater: yeah I've found a way to find that out
[13:15:02] Darkwater: graphemica.com/<character>
[13:15:13] rbennacer: has joined #ruby
[13:15:19] fgo: has joined #ruby
[13:15:31] rbennacer: has joined #ruby
[13:16:07] eGGsha: has joined #ruby
[13:17:39] Xiti: has joined #ruby
[13:17:51] kfpratt: has joined #ruby
[13:18:33] umgrosscol: has joined #ruby
[13:18:33] prefixed: has joined #ruby
[13:18:40] thelastinuit: has joined #ruby
[13:18:46] koos303: has joined #ruby
[13:20:06] 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?
[13:20:12] Jackneill: has joined #ruby
[13:20:21] wildroman2: has joined #ruby
[13:20:31] hj2007: has joined #ruby
[13:22:05] konsolebox: has joined #ruby
[13:22:42] luriv: has joined #ruby
[13:22:47] Darkwater: tuor: for hashes and arrays you can use json
[13:22:55] Darkwater: there's also yaml but I'm not sure what that's for
[13:23:25] tuor: Darkwater, Ah yes json would be nice. thx.
[13:23:40] Darkwater: require 'json'
[13:23:41] shevy: tuor several ways, Marshal.dump() would be one
[13:23:42] Darkwater: obj.to_json
[13:24:10] eggoez: has joined #ruby
[13:24:20] tuor: Darkwater, obj.to_json -> String?
[13:24:27] tuor: ok thx.!
[13:24:39] Darkwater: on hashes and arrays (and a few others, string etc) at least
[13:25:39] minver: has joined #ruby
[13:25:59] Yiota: has joined #ruby
[13:27:19] ljarvis: tuor: also, you should close your file after you're done writing to it
[13:27:23] senayar: has joined #ruby
[13:27:24] ljarvis: or use the block form
[13:27:31] ljarvis: or use `File.write(file, contents)`
[13:28:00] ljarvis: &ri File.write
[13:28:03] ljarvis: adaedra: :(
[13:29:08] duggiefresh: has joined #ruby
[13:30:13] mjuszczak: has joined #ruby
[13:30:27] malconis: has joined #ruby
[13:33:00] mesamoo: has joined #ruby
[13:33:06] bungoman: has joined #ruby
[13:33:30] quimrstorres: has joined #ruby
[13:34:06] senayar: has joined #ruby
[13:34:34] lkba: has joined #ruby
[13:35:41] tuor: ljarvis, ah have noticed that i forgott it and added the export_file.close
[13:36:15] GhettoCode: has joined #ruby
[13:37:06] prestorium: has joined #ruby
[13:37:12] revath: has joined #ruby
[13:38:28] nettoweb: has joined #ruby
[13:38:34] fullofcaffeine: has joined #ruby
[13:38:40] wildroman2: has joined #ruby
[13:40:21] lupine: hurrah, brighton ruby
[13:41:13] nateberkopec: has joined #ruby
[13:41:35] cpruitt: has joined #ruby
[13:41:48] ljarvis: ACTION is missing it :(
[13:42:00] 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
[13:42:36] lupine: ACTION is just getting it booked :D
[13:42:40] ljarvis: yeah that link isn't actually working anyway
[13:42:45] lupine: hotels and whatnot
[13:43:08] devdazed: has joined #ruby
[13:43:44] tennis: has joined #ruby
[13:43:51] ljarvis: lupine: where are you travelling from? my collegues are going but I'm missing this one (last year was good)
[13:44:13] ljarvis: ah not far
[13:44:30] lupine: you'd think so, but uktrains make it 4 hours
[13:44:37] lupine: brussels is about that far :d
[13:44:38] apeiros: adaedra: go ahead
[13:44:48] ljarvis: yeah I meant not far as in not abroad :)
[13:45:08] ljarvis: and yeah the trains are a bit annoying (also I work for a train company so visit this pain quite often)
[13:45:21] ljarvis: Brighton from where I live is a bit annoying by train
[13:45:37] tennis: has joined #ruby
[13:45:40] dfockler: has joined #ruby
[13:46:06] lavros: has joined #ruby
[13:46:58] `derpy: has joined #ruby
[13:47:26] tennis: has joined #ruby
[13:48:05] mdarby: has joined #ruby
[13:48:16] plashchynski: has joined #ruby
[13:48:59] wasamasa: ACTION visited brighton once
[13:49:26] theRoUS: has joined #ruby
[13:49:30] theRoUS: has joined #ruby
[13:50:10] diegoviola: why I can't do "string".to_a anymore?
[13:51:04] sepp2k: has joined #ruby
[13:51:05] adaedra: what do you want it to do? Get characters?
[13:51:42] Igorshp: has joined #ruby
[13:53:34] tjohnson: has joined #ruby
[13:53:42] shevy: diegoviola perhaps "abc".split(//).to_a
[13:53:45] flujan: has joined #ruby
[13:53:53] adaedra: srsly shevy
[13:54:42] bodzio: has joined #ruby
[13:54:49] dopie: has joined #ruby
[13:55:08] jzigmund: has joined #ruby
[13:55:15] intinig: has joined #ruby
[13:55:26] 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?
[13:55:31] prestorium: has joined #ruby
[13:55:48] _blizzy_: has joined #ruby
[13:56:11] flujan: this is a sample code: http://pastie.org/10294554
[13:56:25] adaedra: I think it raises on exception
[13:57:22] axl_: has joined #ruby
[13:57:25] olas: what would take less memory, an array or arrays or an array of hashes?
[13:57:44] olas: when there will be many small arrays/hashes
[13:57:44] flujan: adaedra: it is not raising. I am trying to send to a wrong mail address. And nothing is happening.
[13:58:04] adaedra: They do different things olas, before being different at memory usage, olas
[13:58:16] quimrstorres: has joined #ruby
[13:58:38] olas: i'd use them in a similar way
[13:58:48] kfpratt: has joined #ruby
[13:58:52] olas: just direct element access
[13:58:56] 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
[13:59:04] desigx: has joined #ruby
[13:59:42] prefixed: has joined #ruby
[13:59:46] bf4: has joined #ruby
[13:59:58] werelivinginthef: has joined #ruby
[14:00:08] flujan: adaedra: So my smtp server should raise this error? And I am receiving the reply message with the error.
[14:01:12] bodzio: has joined #ruby
[14:01:20] olas: so if i had to create a ton of array or hashes which would take less memory?
[14:01:20] danzilio: has joined #ruby
[14:01:21] foureight84: has joined #ruby
[14:01:28] 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.
[14:02:11] yxhuvud: olas: arrays. They are basically C arrays behind the scene.
[14:02:24] doctorly: has joined #ruby
[14:02:40] beef-wellington: has joined #ruby
[14:02:50] 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.
[14:02:51] freerobby: has joined #ruby
[14:03:18] adaedra: You say you get a mail, so it seems the server is ignoring the error for latter notice.
[14:03:51] jgpawletko: has joined #ruby
[14:04:06] _blizzy_: has joined #ruby
[14:04:08] jgpawletko: has joined #ruby
[14:04:20] paulcsmith: has joined #ruby
[14:04:28] lupine: olas, one thing to watch for is triggering lots of GC scans through progressively creating piles of things
[14:04:48] lupine: 'though ruby's smarter at this than it used to be
[14:05:23] prestorium: has joined #ruby
[14:06:20] workmad3: has joined #ruby
[14:07:03] plashchynski: has joined #ruby
[14:07:11] freerobby: has joined #ruby
[14:07:33] jpfuentes2: has joined #ruby
[14:07:53] leat1: has joined #ruby
[14:08:44] hinbody: has joined #ruby
[14:09:24] Kully3xf: has joined #ruby
[14:09:24] jbw: has joined #ruby
[14:09:24] Igorshp: has joined #ruby
[14:09:43] tubuliferous_: has joined #ruby
[14:09:51] howdoicomputer: has joined #ruby
[14:09:54] keeguon: has joined #ruby
[14:09:59] plashchynski: has joined #ruby
[14:10:18] keeguon: Hey, any sexp expert in the room?
[14:11:13] [k-: has joined #ruby
[14:11:54] senayar: has joined #ruby
[14:11:55] ruboto: Just ask your question, if anyone has or can, they will respond.
[14:12:01] apeiros: too slow :D
[14:13:15] adaedra: jhass 1 ??? 0 apeiros
[14:13:15] 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?
[14:13:52] axl_: has joined #ruby
[14:14:01] davedev24: has joined #ruby
[14:14:16] krz: has joined #ruby
[14:15:23] prestorium: has joined #ruby
[14:16:47] Zamyatin: has joined #ruby
[14:19:12] 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
[14:19:28] momomomomo: has joined #ruby
[14:19:47] fabrice31_: has joined #ruby
[14:20:31] revath: has joined #ruby
[14:23:34] teotwaki: has joined #ruby
[14:24:16] chipotle: has joined #ruby
[14:25:20] fabrice31: has joined #ruby
[14:25:37] OrbitalKitten: has joined #ruby
[14:26:31] bhorn1: Hey guys I'm trying to use RGBA values to change the background of a gtk3 gui I've created.
[14:26:54] 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?
[14:27:22] jhass: your perception. Colors look much lighter on bigger surfaces
[14:27:48] shevy: screenshot!
[14:28:30] Yiota: has joined #ruby
[14:28:48] Iskarlar: has joined #ruby
[14:28:50] davejlong: has joined #ruby
[14:30:05] bhorn1: jhass I thought the same at first. But this is terribly different. Working on a screenshot
[14:30:16] kies^: has joined #ruby
[14:30:22] evanjs: has joined #ruby
[14:30:58] bhorn1: http://postimg.org/image/xqslrfpj7/
[14:31:06] bhorn1: There's an image of the color next to the RGBA
[14:31:14] shevy: the first 3 are RGB values?
[14:31:31] bhorn1: With the final being an alpha
[14:31:37] Torrieri: has joined #ruby
[14:31:46] jenrzzz: has joined #ruby
[14:31:58] shevy: in ruby-gnome I usually end up just using the trivial-names, such as slateblue and such, and Gdk::Color.parse()
[14:32:01] jud: has joined #ruby
[14:32:19] adaedra: yep, those are totally different colors.
[14:32:29] lavros: has joined #ruby
[14:32:29] bhorn1: The only reason it's such a particular thing here is it's a brand color.
[14:32:45] sevenseacat: whats a different colour to what?
[14:33:13] adaedra: the color in the window vs the color defined by the color code
[14:33:26] adaedra: (tried by setting manually screenshot's page background to the given code)
[14:33:30] bhorn1: If I can't achieve the exact color, the reason behind coloring it becomes moot.
[14:33:43] sevenseacat: yeah, not the same colour.
[14:33:52] downwithbender: has joined #ruby
[14:33:57] sevenseacat: that blue is like 00FFFF
[14:34:38] sevenseacat: and the osx colour meter confirms it.
[14:35:01] bhorn1: Is there any better way to achieve a specific color via ruby gdk?
[14:35:17] bhorn1: I have the CMYK, RBB, as well as the hex for it.
[14:35:52] mary5030: has joined #ruby
[14:36:13] adaedra: That's very strange tho
[14:36:36] adaedra: can you try setting the color elsewhere, on a very basic widget for example? Maybe you have a square shape or something?
[14:36:38] bhorn1: It seems to be taking all of my colors and drastically increasing the brightness of them.
[14:36:40] sevenseacat: does that method actually take numbers from 0-1 instead of 0-255?
[14:37:02] [H]unt3r: has joined #ruby
[14:37:08] adaedra: ah, possible
[14:37:11] shevy: bhorn1 hmm I have not yet used Gdk::RGBA
[14:37:29] bhorn1: shevy what do you typically use? Just predefined colors?
[14:37:37] sevenseacat: https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gdk3/test/test-gdk-rgba.rb#L21
[14:37:40] sevenseacat: implies it does
[14:37:53] segfalt: has joined #ruby
[14:37:54] adaedra: https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html#GdkRGBA
[14:38:00] adaedra: from 0.0 to 1.0
[14:38:02] mary5030: has joined #ruby
[14:38:03] sevenseacat: yeah there we go
[14:38:14] bhorn1: Thank you!
[14:38:24] bhorn1: Does that scale as simply as it seems?
[14:38:34] sevenseacat: yep. divide your numbers by 255
[14:38:36] adaedra: you can just / 255.0 if you want to keep values visible
[14:38:42] bhorn1: Thanks so much guys
[14:38:44] jhass: .fdiv(255) :P
[14:39:01] sevenseacat: aaaaaand that kills my fuzzy happy i-helped-someone glow :(
[14:39:07] ndrei: has joined #ruby
[14:39:13] shevy: Thanks so much guys and cats!
[14:39:24] adaedra: sevenseacat: what?
[14:39:28] intinig: has joined #ruby
[14:39:31] jhass: adaedra: guys
[14:39:35] sevenseacat: <-- not a guy
[14:39:40] serivichi: has joined #ruby
[14:39:48] bhorn1: Thank you the most sevenseacat :)
[14:40:03] fenjamin: has joined #ruby
[14:40:15] adaedra: I'm a meat popsicle.
[14:40:17] sevenseacat: sorry, thats my pet peeve lately.
[14:40:18] bhorn1: Works properly! Much appreciated everyone!
[14:40:46] bhorn1: No worries at all.
[14:40:55] JoshL: has joined #ruby
[14:41:05] bhorn1: I believe strongly in the whole, "credit where credit is due."
[14:43:04] adaedra: ri, why are you so obscure to me :'(
[14:44:02] tuor: is there a shortcut for?: array1 = array1 | array2
[14:44:15] adaedra: ||, I presume
[14:44:22] tuor: I want to join to arrays into the first one, without duplicates.
[14:44:30] arup_r: has joined #ruby
[14:45:20] ljarvis: >> [1] |= [1,2]
[14:45:21] ruboto: ljarvis # => /tmp/execpad-3b96e342e9a9/source-3b96e342e9a9:2: syntax error, unexpected tOP_ASGN, expecting keywor ...check link for more (https://eval.in/399345)
[14:45:28] ljarvis: im an idiot
[14:45:52] ljarvis: >> a = [1]; a |= [1,2]
[14:45:53] ruboto: ljarvis # => [1, 2] (https://eval.in/399346)
[14:45:58] ljarvis: >> a = [1]; a |= [1,2]; a
[14:45:59] ruboto: ljarvis # => [1, 2] (https://eval.in/399347)
[14:46:06] ljarvis: ACTION closes laptop
[14:46:13] bronson: has joined #ruby
[14:46:30] ljarvis: tuor: basically, use |=
[14:46:43] tuor: ljarvis, ah got it thx!
[14:47:14] _blizzy_: has joined #ruby
[14:47:26] tuor: Is there a reason why |= is not listed here?: http://ruby-doc.org/core-2.2.0/Array.html
[14:47:40] adaedra: because it's basically #|
[14:48:02] Yiota: has joined #ruby
[14:48:07] arooni-mobile: has joined #ruby
[14:49:34] ljarvis: tuor: same as += isn't defined
[14:49:38] ljarvis: or *= or /=
[14:49:57] radialneon: has joined #ruby
[14:50:33] rippa: has joined #ruby
[14:51:44] tuor: ljarvis, how to know all the "signe"= methods?
[14:51:44] jobewan: has joined #ruby
[14:51:57] tuor: which can be used like this?
[14:51:58] prefixed: has joined #ruby
[14:53:05] eggoez: has joined #ruby
[14:54:25] decoponio: has joined #ruby
[14:54:42] 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 ?
[14:54:44] wprice: has joined #ruby
[14:54:55] arup_r: https://gist.github.com/aruprakshit/54ed17d8e7c2d946a8f6#file-terminal-rb-L20
[14:55:46] arup_r: I updated the gist a bit
[14:56:44] willywos: has joined #ruby
[14:56:45] ljarvis: tuor: I'm not sure, all valid operators maybe
[14:56:54] kfpratt: has joined #ruby
[14:56:57] nettoweb: has joined #ruby
[14:57:00] ljarvis: arup_r: never (pretty much) rescue Exception
[14:57:15] jottr: has joined #ruby
[14:57:38] Yiota: has joined #ruby
[14:57:39] 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..?
[14:57:57] arup_r: last `?` is actually `.` :)
[14:58:00] prefixed: how do you combine something like "data.each { |x| puts x }" with conditionals?
[14:58:12] arup_r: prefixed, didn't get you
[14:58:12] pothibo: has joined #ruby
[14:58:18] Kully3xf_: has joined #ruby
[14:58:21] MagePsycho_: has joined #ruby
[14:58:50] prefixed: how do I do puts x if some condition is fulfilled?
[14:58:52] arashb: has joined #ruby
[14:58:52] tuor: ljarvis, ah ok.
[14:58:55] arup_r: you want conditional inside the block or outside the block.. or something else?
[14:59:08] ljarvis: ?code prefixed
[14:59:08] ruboto: prefixed, We can't help you without your code, please post it to https://gist.github.com
[14:59:19] ljarvis: arup_r: you should know what those 2 lines could raise
[14:59:21] arup_r: data.each { |x| puts x if condition }
[14:59:26] BigRonnieRon: has joined #ruby
[14:59:27] prefixed: ljarvis uh, data.each { |x| puts x }
[14:59:43] paulcsmith: has joined #ruby
[14:59:48] workmad3: has joined #ruby
[14:59:50] ljarvis: right, wrong factoit
[14:59:52] 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.
[15:00:03] arup_r: ljarvis, that's tough to know.. or else I don't know ... any hints..
[15:00:05] ljarvis: puts x if condition is fine
[15:00:24] gambl0re: has joined #ruby
[15:00:50] senayar: has joined #ruby
[15:00:51] senayar: has joined #ruby
[15:00:54] 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)
[15:01:59] 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)
[15:02:15] shtirlic: has joined #ruby
[15:02:23] lavros_: has joined #ruby
[15:02:54] arup_r: makes sense
[15:04:03] podman: has joined #ruby
[15:05:40] jbw: has joined #ruby
[15:05:49] sarkyniin: has joined #ruby
[15:06:17] SuMo_D: has joined #ruby
[15:06:25] eggoez: has joined #ruby
[15:07:37] casadei_: has joined #ruby
[15:07:41] fullofcaffeine: has joined #ruby
[15:07:43] sarkyniin: has joined #ruby
[15:08:51] intinig: has joined #ruby
[15:10:35] dfockler: has joined #ruby
[15:10:38] howdoicomputer: has joined #ruby
[15:10:49] lessless: has joined #ruby
[15:10:51] dgutierrez1287: has joined #ruby
[15:12:14] tuor: hi, how can I write this shorter/simpler: hash={"a"=>1, "b"=>2}; hash.select {|k,v| v==hash.values.max}.keys[0]
[15:12:33] tuor: I want to get the key which value is the biggest number.
[15:12:54] jhass: hash.max_by {|_, v| v }.first
[15:13:33] Kully3xf: has joined #ruby
[15:13:47] ljarvis: max_by(&:last).first
[15:14:46] tuor: wow. I have to read the doc of max_by first. :)
[15:15:24] riotjones: has joined #ruby
[15:16:12] pfish: has joined #ruby
[15:16:56] drewvanstone: has joined #ruby
[15:17:01] kinduff: has joined #ruby
[15:17:06] twistedpixels: has joined #ruby
[15:17:08] twistedpixels: has joined #ruby
[15:17:16] blackmesa: has joined #ruby
[15:18:33] phutchins: has joined #ruby
[15:19:03] keeguon: has joined #ruby
[15:19:06] twistedpixels: has joined #ruby
[15:19:10] Senjai: Good morning ruby
[15:19:55] kinduff: Morning Senjai
[15:20:02] tuor: Oh have to go, sry. Thx for answering. good night.
[15:20:27] 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?
[15:20:38] connor_goodwolf: has joined #ruby
[15:21:21] danzilio: has joined #ruby
[15:21:38] ljarvis: "writter in ruby" what does that mean?
[15:21:42] icebourg: has joined #ruby
[15:22:15] speaking1ode: has joined #ruby
[15:22:22] pfish: So I wrote a ruby class in C
[15:22:27] Scroff: has joined #ruby
[15:22:40] pfish: And I have a .rb file that I am using that class in
[15:23:01] pfish: and I want that ruby class to be able to get the memory address of an object
[15:23:33] ljarvis: you know that's incredibly implementation specific right?
[15:24:17] pfish: im working on posix gcc
[15:24:21] Scroff: has joined #ruby
[15:24:44] pfish: im guessing there is now easy way to do this then?
[15:24:46] ljarvis: you can abuse object_id
[15:24:57] Alayde: has joined #ruby
[15:25:15] ljarvis: but there's no way to tell if it will break in a future implementation, and it'll only work on mri
[15:25:27] pdoherty: has joined #ruby
[15:25:27] snockerton: has joined #ruby
[15:25:56] msnyon: has joined #ruby
[15:26:25] pfish: ive heard object id doesnt work in certain cases though
[15:26:30] ljarvis: >> class Foo; end; foo = Foo.new; [foo.inspect, (foo.object_id << 1).to_s(16)]
[15:26:32] ruboto: ljarvis # => ["#<Foo:0x4163ff88>", "4163ff88"] (https://eval.in/399350)
[15:26:49] ljarvis: right, hence abusing it
[15:26:58] ljarvis: you have to bitshift
[15:27:00] pfish: but I'm trying to do this from C
[15:27:12] pfish: ie not from ruby
[15:27:39] konsolebox: has joined #ruby
[15:27:47] niemcu: has joined #ruby
[15:27:55] pfish: there has to be a way in C or the program wouldnt run
[15:28:08] ljarvis: http://rxr.whitequark.org/mri/source/gc.c#2004
[15:28:27] pfish: lol that not even the worst of it
[15:28:33] pfish: im on 2.2.0
[15:28:36] Agoldfish: has joined #ruby
[15:28:41] pfish: and gc.c has only grown since then
[15:28:50] renderful: has joined #ruby
[15:29:26] pfish: thanks though
[15:29:38] Torrieri: has joined #ruby
[15:29:38] Torrieri: has joined #ruby
[15:31:00] shinnya: has joined #ruby
[15:33:20] bronson: has joined #ruby
[15:33:47] renderful: has joined #ruby
[15:34:02] bruno-: has joined #ruby
[15:34:34] SuMo_D: has joined #ruby
[15:34:39] baweaver: has joined #ruby
[15:37:41] OrbitalKitten: has joined #ruby
[15:37:47] pkrnj: has joined #ruby
[15:38:07] ruurd: has joined #ruby
[15:38:26] jamesaxl: has joined #ruby
[15:39:04] leat1: has joined #ruby
[15:40:42] Thomas-0725: has joined #ruby
[15:41:26] rcvalle: has joined #ruby
[15:41:30] allomov: has joined #ruby
[15:42:08] tmtwd: has joined #ruby
[15:42:11] NeverDie: has joined #ruby
[15:42:29] [k-: [20:23:40] <apeiros> !kick denym_` inacceptable
[15:42:35] [k-: *unacceptable
[15:43:39] [k-: 3hoursago
[15:44:56] bnizzle1: has joined #ruby
[15:45:04] Cache_Money: has joined #ruby
[15:45:26] adaedra: I missed that
[15:46:03] endash: has joined #ruby
[15:48:08] theery: has joined #ruby
[15:49:15] ljarvis: um no, inacceptable is correct
[15:49:44] ljarvis: or at least, not incorrect
[15:49:56] ljarvis: thus it is acceptable
[15:50:14] [k-: failed pun
[15:50:43] ljarvis: you say failed, I say !ban [k- !T 100w
[15:51:34] towski_: has joined #ruby
[15:51:37] [k-: insert-emoticon-here.txt
[15:51:38] sharpmachine: has joined #ruby
[15:52:07] twistedpixels: has joined #ruby
[15:52:15] FooMunki: has joined #ruby
[15:52:44] bronson: has joined #ruby
[15:53:00] Hanmac: shevy checkout the new specs for rwx ;P their numbers are growing ;P
[15:54:11] shevy: [k- in german they tend to say inakzeptabel so that is why the brain favours the innacceptable rather the unacceptable variant
[15:54:13] LMity: has joined #ruby
[15:54:21] [k-: inacceptable is inacceptablely inferior
[15:54:38] [k-: inacceptably*
[15:54:43] 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!
[15:54:57] fullofcaffeine: has joined #ruby
[15:55:21] [k-: mfw your face == :)
[15:55:47] sp33drac3r: has joined #ruby
[15:56:18] Hanmac: [k-: Lemongrab from AdventureTime always screams "unacceptable!!!!", there you can see how its used
[15:56:22] nobitanobi: has joined #ruby
[15:57:28] fantazo: has joined #ruby
[15:58:01] ruboto: To call for ops use the !ops command.
[15:58:16] dudedudeman: wait.. i guess i don't want to call for ops, but would want to know who they are?
[15:58:33] ljarvis: you can't have one without the other
[15:58:44] jhass: dudedudeman: /msg ChanServ ACCESS #ruby LIST
[15:58:49] ljarvis: well, you can because they're also here http://ruby-community.com/pages/irc_staff
[15:58:58] ljarvis: ah access, good point
[15:59:13] jhass: website, good point
[15:59:20] shevy: is that list on the website maintained manually?
[15:59:23] apeiros: omg, we have a website?!?
[15:59:29] ruboto: To call for ops use the !ops command.
[15:59:51] 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
[15:59:51] 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
[16:00:19] quimrstorres: has joined #ruby
[16:00:46] bsdbofh: has joined #ruby
[16:01:44] yqt: has joined #ruby
[16:02:11] ljarvis: shevy: yes
[16:03:33] edwinvdgraaf: has joined #ruby
[16:03:59] gambl0re: has joined #ruby
[16:05:15] Scrofff: has joined #ruby
[16:05:29] fullofcaffeine: has joined #ruby
[16:06:39] edwinvdg_: has joined #ruby
[16:07:26] rehat: has joined #ruby
[16:07:28] mikepack: has joined #ruby
[16:08:06] amclain: has joined #ruby
[16:08:07] valkyrka: has joined #ruby
[16:08:47] graydot: has joined #ruby
[16:08:53] 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
[16:08:59] valkyrka: does anyone have any idea what might be wrong?
[16:09:33] eGGsha: has joined #ruby
[16:10:49] joelataylor: has joined #ruby
[16:11:18] [Butch]: has joined #ruby
[16:11:26] nanSTA: has joined #ruby
[16:11:31] flujan: has joined #ruby
[16:14:32] Lucky_: has joined #ruby
[16:14:43] RobertBirnie: has joined #ruby
[16:15:05] edwinvdgraaf: has joined #ruby
[16:15:23] ruby-lang077: has joined #ruby
[16:15:38] workmad3: has joined #ruby
[16:16:37] jhass: valkyrka: Please refer to #redmine for questions about it
[16:17:55] chipotle: has joined #ruby
[16:18:51] Spami: has joined #ruby
[16:20:13] hollywood: has joined #ruby
[16:20:23] sanguisdex: has joined #ruby
[16:20:24] jaxxstorm: has joined #ruby
[16:20:27] Tarential: has joined #ruby
[16:20:27] jokester: has joined #ruby
[16:20:28] ddfreyne: has joined #ruby
[16:20:30] JimmyNeutron: has joined #ruby
[16:20:32] whippythellama: has joined #ruby
[16:20:34] stamina: has joined #ruby
[16:20:36] einarj: has joined #ruby
[16:20:37] Cust0sLim3n: has joined #ruby
[16:20:38] Zai00: has joined #ruby
[16:20:40] spider-mario: has joined #ruby
[16:20:43] sarlalian: has joined #ruby
[16:20:44] Ilyas: has joined #ruby
[16:20:51] quimrstorres: has joined #ruby
[16:20:54] sdothum: has joined #ruby
[16:21:31] luriv: has joined #ruby
[16:21:32] jottr: has joined #ruby
[16:21:34] Dwarf: has joined #ruby
[16:21:47] 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)
[16:22:16] [k-: how does hashing in Ruby work
[16:22:35] thiagovsk: has joined #ruby
[16:22:41] Senjai: [k-: broad question is broad :P
[16:22:53] petems: has joined #ruby
[16:22:53] halfdan: has joined #ruby
[16:23:05] [k-: Object#hash?
[16:23:13] ccooke: [k-: you'll have to help us in that. What sort of hashing do you mean?
[16:23:18] 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
[16:23:32] Hanmac: [k- #hash and #eql? are used when using objects as keys in Hash
[16:23:47] [k-: I mean how does Ruby come up with the number
[16:23:51] wedgwood: WEBrick is making me insane. https://gist.github.com/anonymous/3c049a0f597546237426
[16:23:59] revath: has joined #ruby
[16:24:09] wedgwood: Anyone know why the resp.body I set isn't in the error message?
[16:24:25] ccooke: [k-: I believe it is implementation dependant. There's no defined standard on what the hash value is, other than a Fixnum
[16:25:37] [k-: it changes across invocations
[16:26:08] jottr: has joined #ruby
[16:26:08] [k-: could it be dependent on object_id
[16:26:27] Hanmac: [k- in the MRI c-api there are functions for doing that ... checkout rb_hash_start and rb_hash_end
[16:26:28] ccooke: no, that wouldn't provide the bahaviour necessary
[16:26:31] ljarvis: https://github.com/ruby/ruby/blob/1b5acebef2d447a3dbed6cf5e146fda74b81f10d/st.c
[16:26:45] [k-: I do not enjoy c
[16:27:02] edwinvdg_: has joined #ruby
[16:27:06] kfpratt: has joined #ruby
[16:27:30] [k-: so many macros.....
[16:27:58] ljarvis: meh, some libraries are built entirely in macros
[16:28:01] Hanmac: [k-: there is one where i did use them: https://github.com/Hanmac/rwx/blob/master/ext/wxColor.cpp#L377
[16:28:20] Thomas-0725: has joined #ruby
[16:28:21] Hanmac: ljarvis: or like mine where i have macros for macros for methods ;P
[16:28:28] [k-: apparently I can't read c
[16:28:59] charliesome: has joined #ruby
[16:29:18] ponga: has joined #ruby
[16:29:35] pengin: has joined #ruby
[16:29:43] [k-: Hi ponga
[16:29:46] wedgwood: Oops fixed a bug, but still the same result https://gist.github.com/anonymous/cc367a624d6864cbd104
[16:30:04] senayar: has joined #ruby
[16:30:04] senayar: has joined #ruby
[16:30:22] ljarvis: wedgwood: maybe im missing something, it looks ok to me?
[16:30:30] ljarvis: maybe add the expected behaviour in your gist
[16:30:43] ljarvis: ignore that
[16:30:58] mjuszczak: has joined #ruby
[16:31:03] ljarvis: wedgwood: is the content-type returned actually text/plain?
[16:31:06] bricker: has joined #ruby
[16:31:10] wedgwood: ACTION checks
[16:31:20] adaedra: Stop saying ???I'm stupid???.
[16:31:29] Kully3xf_: has joined #ruby
[16:31:55] adaedra: You're really intelligent, but as human, sometimes failible, and that's ok.
[16:31:57] gambl0re: has joined #ruby
[16:32:07] [k-: technically, he said "im stupid"
[16:32:09] ljarvis: nope it's stupid
[16:32:23] ljarvis: and I'm ok with it
[16:33:22] tens0r: has joined #ruby
[16:33:33] Ilyas_: has joined #ruby
[16:33:45] sarkyniin: has joined #ruby
[16:33:51] t0rrieri: has joined #ruby
[16:33:52] wedgwood: ljarvis: no, text/html; charset=ISO-8859-1 (and thanks for looking!)
[16:34:14] ljarvis: wedgwood: that's probably the issue
[16:34:21] ljarvis: does Content-Type work?
[16:34:22] wedgwood: Actually I'm stupid ;)
[16:34:30] wedgwood: The bug might be elsewhere
[16:34:49] duggiefresh: has joined #ruby
[16:34:49] bashusr: has joined #ruby
[16:34:50] ljarvis: thanks for providing all necessary code /s
[16:34:50] bashusr: has joined #ruby
[16:35:19] griffindy: has joined #ruby
[16:35:27] wedgwood: I just realized I'm not actually mounting that servlet, I'm just calling @agent.process in mount_proc
[16:35:30] wedgwood: so that'd do it
[16:36:08] ponga: has left #ruby: ()
[16:36:09] Kully3xf: has joined #ruby
[16:36:30] wedgwood: ffs. that was it. thanks again
[16:36:33] DoubleMalt: has joined #ruby
[16:39:15] cochise: has joined #ruby
[16:40:42] _solomon: has joined #ruby
[16:41:36] reset: has joined #ruby
[16:42:19] AviShastry: has joined #ruby
[16:43:29] dseitz: has joined #ruby
[16:44:54] Iskarlar: has joined #ruby
[16:45:00] mleung: has joined #ruby
[16:45:01] beef-wellington: has joined #ruby
[16:45:38] bungoman: has joined #ruby
[16:45:59] User458764: has joined #ruby
[16:46:17] aryaching: has joined #ruby
[16:46:32] tkuchiki: has joined #ruby
[16:48:23] finisherr: has joined #ruby
[16:48:51] ndrei: has joined #ruby
[16:49:15] bronson: has joined #ruby
[16:51:56] Maletor: has joined #ruby
[16:53:04] tuelz: has joined #ruby
[16:53:37] jottr: has joined #ruby
[16:58:49] bungoman: has joined #ruby
[17:00:58] shadoi: has joined #ruby
[17:02:20] pengin: has joined #ruby
[17:03:04] withnale__: has joined #ruby
[17:03:48] towski_: has joined #ruby
[17:04:03] snockerton: has left #ruby: ()
[17:04:30] blaines: has joined #ruby
[17:04:48] prestorium: has joined #ruby
[17:04:57] davejlong: has joined #ruby
[17:05:32] allomov: has joined #ruby
[17:05:46] n008f4g_: has joined #ruby
[17:06:49] rbennacer: has joined #ruby
[17:07:27] duderonomy: has joined #ruby
[17:07:35] blaines_: has joined #ruby
[17:07:57] ta: has joined #ruby
[17:09:56] leat1: has joined #ruby
[17:11:49] workmad3: has joined #ruby
[17:11:51] SuMo_D: has joined #ruby
[17:11:59] chinmay_dd: has joined #ruby
[17:12:34] howdoicomputer: has joined #ruby
[17:12:42] mjuszczak: has joined #ruby
[17:13:21] araujo: has joined #ruby
[17:13:21] araujo: has joined #ruby
[17:14:48] fenjamin: has joined #ruby
[17:14:58] sgambino: has joined #ruby
[17:15:29] hj2007: has joined #ruby
[17:15:46] ellisTAA: has joined #ruby
[17:17:03] gambl0re: has joined #ruby
[17:17:04] araujo_: has joined #ruby
[17:17:20] hj2007: has joined #ruby
[17:17:33] Yiota: has joined #ruby
[17:20:21] jottr: has joined #ruby
[17:21:57] Pisuke: has joined #ruby
[17:22:18] bungoman: has joined #ruby
[17:22:33] howdoicomputer: has joined #ruby
[17:22:57] mercerist: has joined #ruby
[17:24:22] ht__: has joined #ruby
[17:24:28] Spami: has joined #ruby
[17:26:20] mleung: has joined #ruby
[17:26:37] djbkd: has joined #ruby
[17:27:30] jerius: has joined #ruby
[17:27:52] codecop: has joined #ruby
[17:28:10] plashchynski: has joined #ruby
[17:29:06] dellavg: has joined #ruby
[17:29:50] ruurd: has joined #ruby
[17:30:15] fgo: has joined #ruby
[17:30:32] xcesariox: has joined #ruby
[17:31:12] blue_deref: has joined #ruby
[17:31:29] segfalt: has joined #ruby
[17:31:48] MagePsycho_: has joined #ruby
[17:32:29] blackmesa: has joined #ruby
[17:33:20] bsdbofh: has joined #ruby
[17:33:51] finisherr: has joined #ruby
[17:33:52] RatelDev: has joined #ruby
[17:34:19] postmodern: has joined #ruby
[17:35:01] keen__________21: has joined #ruby
[17:35:04] platzhirsch1: has joined #ruby
[17:35:31] RatelDev: has joined #ruby
[17:37:39] graydot: has joined #ruby
[17:38:03] minver: has joined #ruby
[17:38:08] shadoi: has joined #ruby
[17:38:26] chinmay_dd: has joined #ruby
[17:38:50] finisherr: has joined #ruby
[17:38:55] fmcgeough: has joined #ruby
[17:39:05] quimrstorres: has joined #ruby
[17:39:32] intinig: has joined #ruby
[17:40:07] 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?
[17:40:27] RatelDev: has joined #ruby
[17:40:35] pengin: has joined #ruby
[17:40:57] jhack: has joined #ruby
[17:40:57] jhack: has joined #ruby
[17:40:58] bricker: minver: I like when gems just give you a proxy method, so it doesn't pollute your models
[17:41:11] bricker: like elasticsearch, Article.__elasticsearch__.*
[17:41:21] bricker: or carrierwave does a similar thing
[17:41:40] jhass: or even question if you need to include at all
[17:41:54] jhass: keep the interface you include minimal, but don't obscure it
[17:42:11] minver: bricker: Thanks, that's a good idea
[17:42:19] jhass: if you need private helper methods or such, do that in a separate class and delegate there
[17:42:27] gizmore: has joined #ruby
[17:42:31] RatelDev: has joined #ruby
[17:42:40] vdamewood: has joined #ruby
[17:43:38] AviShastry: has joined #ruby
[17:44:20] devbug: has joined #ruby
[17:44:40] pietr0: has joined #ruby
[17:44:47] davejlong: has joined #ruby
[17:45:19] finisherr: has joined #ruby
[17:45:34] k3asd`: has joined #ruby
[17:45:38] ellisTAA: has joined #ruby
[17:46:02] tubuliferous_: has joined #ruby
[17:48:20] gsd: has joined #ruby
[17:48:22] Kyhz: has joined #ruby
[17:50:38] theery: has joined #ruby
[17:50:50] JoshL: has joined #ruby
[17:51:33] baweaver: has joined #ruby
[17:52:04] peeja: has joined #ruby
[17:55:09] freerobby: has joined #ruby
[17:56:31] ruurd: has joined #ruby
[17:56:57] kjones_: has joined #ruby
[17:57:41] Scroff: has joined #ruby
[17:58:01] SuMo_D: has joined #ruby
[17:58:13] webopsx: has joined #ruby
[17:59:03] ta: has joined #ruby
[17:59:49] webopsx: has joined #ruby
[18:00:14] ndrei: has joined #ruby
[18:00:21] finisherr: has joined #ruby
[18:00:48] leat1: has joined #ruby
[18:01:19] amargherio: has joined #ruby
[18:01:45] pengin_: has joined #ruby
[18:01:55] intinig: has joined #ruby
[18:02:08] prestorium: has joined #ruby
[18:05:09] mjuszczak: has joined #ruby
[18:07:14] dopie: has joined #ruby
[18:07:36] yfeldblum: has joined #ruby
[18:08:41] finisherr: has joined #ruby
[18:09:34] Casty: has joined #ruby
[18:10:57] dgutierrez1287: has joined #ruby
[18:11:33] lkba: has joined #ruby
[18:13:03] jhack: has joined #ruby
[18:13:26] prefixed: how do you combine something like "data.each { |x| puts x }" with conditionals? data is an array of some stuff
[18:13:51] wildroman2: has joined #ruby
[18:14:08] Ox0dea: prefixed: Array#select/#reject.
[18:14:26] framling: has joined #ruby
[18:15:30] allomov: has joined #ruby
[18:16:44] yqt: has joined #ruby
[18:17:09] hololeap: has joined #ruby
[18:18:41] spider-mario: has joined #ruby
[18:18:52] intinig: has joined #ruby
[18:19:57] Authenticator: has joined #ruby
[18:20:37] lkba_: has joined #ruby
[18:20:54] zacstewart: has joined #ruby
[18:21:41] edwinvdgraaf: has joined #ruby
[18:22:02] jpfuentes2: has joined #ruby
[18:22:29] platzhirsch1: has left #ruby: ()
[18:22:33] Scroff: has joined #ruby
[18:22:50] pietr0_: has joined #ruby
[18:23:00] JakFrist: has joined #ruby
[18:23:22] rushed: has joined #ruby
[18:23:29] intinig: has joined #ruby
[18:23:57] Carnage\: has joined #ruby
[18:24:18] DoubleMalt: has joined #ruby
[18:25:26] jackjackdripper: has joined #ruby
[18:26:35] tuelz: has joined #ruby
[18:26:44] foertter: has joined #ruby
[18:28:58] GPrime: has joined #ruby
[18:29:28] einarj: has joined #ruby
[18:34:38] choppington: has joined #ruby
[18:34:50] pengin_: has joined #ruby
[18:35:28] danzilio: has joined #ruby
[18:35:34] workmad3: has joined #ruby
[18:37:08] quimrstorres: has joined #ruby
[18:38:30] paulcsmith: has joined #ruby
[18:38:57] blackmesa: has joined #ruby
[18:38:58] phoo1234567: has joined #ruby
[18:39:12] tubuliferous_: has joined #ruby
[18:39:14] Rubie: has joined #ruby
[18:40:33] nanSTA: has joined #ruby
[18:41:20] einarj: has joined #ruby
[18:41:24] sarkyniin: has joined #ruby
[18:41:36] Musashi007: has joined #ruby
[18:41:41] Jarwain: has joined #ruby
[18:42:01] Jarwain: has left #ruby: ()
[18:43:08] jottr: has joined #ruby
[18:43:31] McSoFake: has joined #ruby
[18:44:39] Casty: has joined #ruby
[18:45:17] kies^: has joined #ruby
[18:45:33] phoo1234567: has joined #ruby
[18:45:39] dgutierrez1287: has joined #ruby
[18:47:04] danielpclark: has joined #ruby
[18:47:05] bruno-: has joined #ruby
[18:48:14] 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?
[18:48:52] webopsx: has joined #ruby
[18:49:50] momomomomo: has joined #ruby
[18:50:02] phoo1234567: I've tried "a=CSV.read("./TEST-03.EXP", {:headers => :first_row, :col_sep => "\t"} ).drop(1)"
[18:50:32] __butch__: has joined #ruby
[18:50:43] jhass: is the CSV big? else I'd just consider just CSV.read(File.readlines("...").drop(1).join("\n"), ...)
[18:50:47] kfpratt: has joined #ruby
[18:51:27] phoo1234567: Hi jhass, not yet but it will be eventually. I'm a hardware engineer manipulating netlist files.
[18:51:40] phoo1234567: (of course, netlist files never get _big_, really)
[18:51:40] pengin: has joined #ruby
[18:51:47] Ox0dea: foo = File.open('foo.csv').tap(&:gets); bar = CSV.parse(foo)
[18:51:54] JoshL: has joined #ruby
[18:52:00] McSoFake: has joined #ruby
[18:52:12] jhass: mmh, maybe use the block form of File.open
[18:52:14] phoo1234567: I just assumed that there was a "second_row" method somewhere.
[18:52:28] jhass: what's in the first row anyway?
[18:52:28] pocketprotector: has joined #ruby
[18:52:45] phoo1234567: Just some stupid OrCAD output.
[18:53:26] phoo1234567: Thanks, Ox0dea, I think that's most elegant.
[18:53:45] Ox0dea: phoo1234567: Not quite; jhass's suggestion to use the block form is sound.
[18:53:46] swgillespie: has joined #ruby
[18:54:27] 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
[18:54:34] m8: has joined #ruby
[18:54:36] phoo1234567: Yes, jhass. Also a good solution.
[18:55:08] Ox0dea: bar = File.open('foo.csv') { |f| CSV.parse f.tap(&:gets) }
[18:55:15] bungoman: has joined #ruby
[18:55:17] Ox0dea: There. I think that one is "most elegant". :)
[18:55:34] phoo1234567: Ox0dea, funny handle. I thought my tab completion was broken until I realized it was "Ox" not "0x".
[18:55:51] Ox0dea: phoo1234567: It's an unfortunate constraint imposed by IRC. :/
[18:55:58] Ox0dea: I'd've used an initial zero if I could've.
[18:56:05] tuelz: hmm, and all this time I throught you were just trolling us...
[18:56:11] Ox0dea: Really? :/
[18:56:31] tuelz: making us typo your name a bunch :p
[18:56:39] charliesome: has joined #ruby
[18:56:42] Ox0dea: Well, now I feel just terrible.
[18:57:09] Ox0dea: I can't think what to change it to, though.
[18:57:31] tuelz: you're fine - it's not the worst thing that's ever happened on IRC :p
[18:57:38] phoo1234567: Why should you? It makes you unique.
[18:57:46] Ox0dea: wasamasa: 0xabadidea is somebody else.
[18:57:50] wasamasa: because it ends in "dea"
[18:58:00] wasamasa: Ox0dea: so just badidea
[18:58:09] tuelz: maybe just unicode_box?
[18:58:17] Ox0dea: tuelz: Heh. They're my initials.
[18:58:21] jhass: _0x0dea ?
[18:58:35] tuelz: oh, well it's also the unicode for the box character :p
[18:58:44] Ox0dea: tuelz: Nah, you just need a better font. :)
[18:58:53] Ox0dea: It's "SINHALA NUMBER FOUR" or something.
[18:58:55] shevy: the ox in the box
[18:59:00] nobitano_: has joined #ruby
[18:59:05] tuelz: which font render is at something?
[18:59:11] shevy: Aeyrix will be pleased to have uncovered this piece of the greater secret
[19:00:27] Zai00: has joined #ruby
[19:01:15] tuelz: gnu unifont....answered my own question
[19:01:23] tuelz: it looks like a checkered board
[19:01:35] gkra: has joined #ruby
[19:01:55] last_staff: has joined #ruby
[19:01:57] juanpaucar: has joined #ruby
[19:02:45] Ox0dea: tuelz: It's not the greatest, but at least my initials aren't 1F4A9. :P
[19:03:08] tuelz: I'm afraid to google that
[19:03:09] gkra: has left #ruby: ()
[19:03:31] tuelz: haha, mr. hankey :)
[19:03:42] tuelz: (I overcame my fear)
[19:03:52] BigRonnieRon: has joined #ruby
[19:07:46] segfalt: has joined #ruby
[19:07:55] felltir: has joined #ruby
[19:09:59] howdoicomputer: has joined #ruby
[19:10:03] pkrnj: has joined #ruby
[19:10:12] allomov: has joined #ruby
[19:10:20] t0rrieri: has joined #ruby
[19:10:33] roolo: has joined #ruby
[19:12:06] yardenbar: has joined #ruby
[19:13:11] ellisTAA: has joined #ruby
[19:13:28] davejlong: has joined #ruby
[19:14:04] failshell: has joined #ruby
[19:14:17] benlieb: has joined #ruby
[19:14:58] kies^: has joined #ruby
[19:16:19] Scroff: has joined #ruby
[19:17:15] tkuchiki: has joined #ruby
[19:17:19] davejlong: has joined #ruby
[19:18:10] Timba-as: has joined #ruby
[19:18:12] lapide_viridi: has joined #ruby
[19:18:33] SuMo_D: has joined #ruby
[19:18:41] blackmesa: has joined #ruby
[19:19:06] Timba-as_: has joined #ruby
[19:20:08] lxsameer: has joined #ruby
[19:20:08] lxsameer: has joined #ruby
[19:20:26] Timba-as__: has joined #ruby
[19:20:28] dagda1: has joined #ruby
[19:21:12] to_json: has joined #ruby
[19:27:47] eggoez: has joined #ruby
[19:28:50] nveselinov: has joined #ruby
[19:31:10] ruurd: has joined #ruby
[19:31:59] dabradley: has joined #ruby
[19:36:23] baweaver: has joined #ruby
[19:36:43] k3asd`: has joined #ruby
[19:37:36] kies^: has joined #ruby
[19:38:07] bffff_: has joined #ruby
[19:38:55] chipotle: has joined #ruby
[19:39:13] heinrich5991: has joined #ruby
[19:39:13] alphaatom: has joined #ruby
[19:39:34] jbw_: has joined #ruby
[19:39:53] devbug: has joined #ruby
[19:40:11] workmad3: has joined #ruby
[19:40:13] gamename: has joined #ruby
[19:42:34] girakrok: has joined #ruby
[19:43:27] davedev24: has joined #ruby
[19:45:11] peter_paule: has joined #ruby
[19:47:27] Fezzler: has joined #ruby
[19:47:56] girakrok: has joined #ruby
[19:48:03] jhack: has joined #ruby
[19:48:50] aryaching: has joined #ruby
[19:49:37] arooni-mobile: has joined #ruby
[19:50:02] arooni-mobile: has joined #ruby
[19:51:29] borklaser: has joined #ruby
[19:52:36] leat1: has joined #ruby
[19:53:08] Salve: has joined #ruby
[19:53:16] borklaser: has left #ruby: ()
[19:53:53] drewvanstone: has joined #ruby
[19:54:04] ndrei: has joined #ruby
[19:54:30] peter_paule: has joined #ruby
[19:54:33] bricker: has joined #ruby
[19:55:43] blaines: has joined #ruby
[19:56:03] pocketprotector: has joined #ruby
[19:56:51] renderful: has joined #ruby
[19:57:23] webopsx: has joined #ruby
[19:57:26] baweaver: has joined #ruby
[19:57:37] JoshL: has joined #ruby
[19:57:43] ruurd: has joined #ruby
[19:57:43] sharpmachine: has joined #ruby
[19:57:51] rflappo: has joined #ruby
[19:58:08] xkickflip: has joined #ruby
[19:58:24] ellisTAA: has joined #ruby
[19:58:49] nettoweb: has joined #ruby
[19:59:57] f4cl3y: has joined #ruby
[19:59:57] f4cl3y: has joined #ruby
[20:00:37] baweaver: has joined #ruby
[20:01:34] SuMo_D: has joined #ruby
[20:03:09] DeweyD: has joined #ruby
[20:03:33] timonv: has joined #ruby
[20:03:39] ta: has joined #ruby
[20:06:18] graydot: has joined #ruby
[20:07:14] m8_: has joined #ruby
[20:08:32] lapide_viridi: has joined #ruby
[20:09:01] kadoppe: has joined #ruby
[20:09:51] nanSTA: has joined #ruby
[20:10:25] webopsx: has joined #ruby
[20:11:07] codecop: has joined #ruby
[20:12:20] jerius: has joined #ruby
[20:14:47] juanpaucar: has joined #ruby
[20:15:19] charliesome: has joined #ruby
[20:16:10] ndrei: has joined #ruby
[20:17:01] peter_paule: has joined #ruby
[20:18:29] kirun: has joined #ruby
[20:19:13] zacstewart: has joined #ruby
[20:19:57] symbol: has joined #ruby
[20:20:34] MichaelGG: has joined #ruby
[20:20:48] Carnage\: has joined #ruby
[20:21:04] ruurd: has joined #ruby
[20:23:26] bluOxigen: has joined #ruby
[20:24:01] 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
[20:24:07] edwinvdg_: has joined #ruby
[20:25:12] xkef: has joined #ruby
[20:25:43] bricker: shevy: http://guides.rubygems.org/rubygems-org-api/#activity-methods
[20:25:46] luriv: has joined #ruby
[20:25:58] bricker: /activity/latest "Pulls the 50 gems most recently added to RubyGems.org (for the first time). "
[20:26:30] shevy: whoa, cool! thanks bricker
[20:26:58] avitzurel: has joined #ruby
[20:28:48] nettoweb: has joined #ruby
[20:28:50] Viata: has joined #ruby
[20:29:16] psye: has joined #ruby
[20:29:40] duderonomy: has joined #ruby
[20:29:53] edwinvdgraaf: has joined #ruby
[20:33:00] davedev24: has joined #ruby
[20:33:40] dseitz: has joined #ruby
[20:34:56] bronson: has joined #ruby
[20:35:04] davejlong: has joined #ruby
[20:35:15] ruurd: has joined #ruby
[20:35:27] qhartman: has joined #ruby
[20:37:11] pkrnj: has joined #ruby
[20:38:24] spider-mario: has joined #ruby
[20:38:58] ellisTAA: has joined #ruby
[20:39:00] baweaver: has joined #ruby
[20:40:02] tchebb: has joined #ruby
[20:41:26] htmldrum: has joined #ruby
[20:42:26] charliesome: has joined #ruby
[20:43:06] graydot: has joined #ruby
[20:43:21] sumark: has joined #ruby
[20:44:33] tchebb: has joined #ruby
[20:46:28] renderful: has joined #ruby
[20:48:00] mikecmpbll: has joined #ruby
[20:49:02] mikecmpbll: i really don't get the reactor pattern/eventmachine
[20:49:39] bricker: mikecmpbll: do you have questions about it?
[20:49:48] nettoweb_: has joined #ruby
[20:49:54] Hanmac: has joined #ruby
[20:50:09] 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.
[20:50:21] mikecmpbll: so i'm probably just venting :p
[20:51:25] shevy: perhaps it may help if you think about them not as eventmachines but monad machines
[20:51:41] jhass: shevy: not helpful
[20:52:16] 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
[20:53:10] MagePsycho_: has joined #ruby
[20:53:26] wildroman2: has joined #ruby
[20:53:41] tjohnson: has joined #ruby
[20:54:40] godzillaenlacasa: has joined #ruby
[20:54:49] prestorium: has joined #ruby
[20:54:54] quimrstorres: has joined #ruby
[20:55:23] T3: has joined #ruby
[20:56:21] pengin: has joined #ruby
[20:57:42] momomomomo: has joined #ruby
[20:58:19] yuuvee: has joined #ruby
[20:58:33] 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?
[20:59:06] adaedra: gsub(/_[^_]+\z/, '')?
[20:59:18] charliesome: has joined #ruby
[20:59:44] adaedra: oh, I may have better
[21:00:18] hj2007: @adaedra what about split and then join?
[21:00:24] adaedra: rpartition('_').first
[21:00:39] adaedra: no need to split on all _ when you can do on just one
[21:00:53] Blaguvest: has joined #ruby
[21:01:12] adaedra: >> %w[abc_def_ghi_kl abc_def_g].map do |x| x.rpartition('_').first end
[21:01:13] ruboto: adaedra # => ["abc_def_ghi", "abc_def"] (https://eval.in/399476)
[21:01:28] baweaver: has joined #ruby
[21:01:34] hj2007: cool, thanks
[21:01:37] Yiota: has joined #ruby
[21:01:41] adaedra: I won't say it's the right way, but this is what comes to me
[21:01:53] shevy: the .gsub looks so much nicer
[21:01:57] pietr0: has joined #ruby
[21:02:02] hj2007: indexing like first, second vs 0, 1. comments?
[21:02:03] bricker: adaedra: gsub(/[^_]*\z/, "")
[21:02:07] bricker: and then chomp off the last _
[21:02:08] adaedra: but goes through the whole string, shevy
[21:02:31] shadoi: has joined #ruby
[21:02:32] Mon_Ouie: str.slice!(str.rindex("_")..-1)
[21:02:35] bricker: not sure it's any better than the other solutions
[21:02:46] adaedra: rpartition should just find a _ (so no complex regex matching) from the end of string
[21:03:04] adaedra: Mon_Ouie solution should work too
[21:03:23] davejlong: has joined #ruby
[21:05:52] mikecmpbll: rpartition ????
[21:05:55] leandrosnunes: has joined #ruby
[21:05:58] reset: has joined #ruby
[21:07:05] jbw: has joined #ruby
[21:07:42] Ox0dea: Mon_Ouie: Yours is backwards.
[21:08:18] rushed: has joined #ruby
[21:08:24] Ox0dea: I think you probably meant str.slice!(0, str.rindex('_')).
[21:08:24] Mon_Ouie: No, it removes everything after (and including) the last '_'
[21:08:34] Ox0dea: Oh, right. I'm looking at the return value.
[21:08:37] Ox0dea: Cursed bang methods.
[21:08:37] Mon_Ouie: The result is inside str
[21:09:46] Silvr: has joined #ruby
[21:09:50] dfockler: has joined #ruby
[21:11:06] mikecmpbll: rpartition is fastest, slice second, gsub last :p
[21:11:27] Ox0dea: mikecmpbll: Using benchmark/ips?
[21:11:34] mikecmpbll: Ox0dea: tep.
[21:12:07] Mon_Ouie: What about sub instead of gsub?
[21:13:11] TeresaP: has joined #ruby
[21:13:46] endash: has joined #ruby
[21:13:48] mikecmpbll: sub is still last but it's twice as fast as gsub
[21:14:11] 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'?
[21:14:45] blackmesa: has joined #ruby
[21:15:09] bricker: TeresaP: >> "old text".sub("old", "new")
[21:15:14] bricker: >> "old text".sub("old", "new")
[21:15:15] ruboto: bricker # => "new text" (https://eval.in/399477)
[21:15:27] Mon_Ouie: Sure, although some sequences of characters in the replacement string are given a special meaning
[21:15:59] Mon_Ouie: (\1 means "first capture group", it won't actually generate the string \1 in the output)
[21:16:01] TeresaP: It responds to regular expressions too, right?
[21:16:07] TeresaP: str.sub("href.*?=.*?'(.*?)'", 'foo')
[21:16:30] Ox0dea: jacky: First day on Linux?
[21:16:54] Jacky: Ox0dea: wasn't paying attention to what pane in tmux I was in
[21:17:05] TeresaP: Should replace qqq inside href='qqq' ==> href='foo' ?
[21:17:17] Ox0dea: TeresaP: No, #sub replaces the whole match, not just what you capture.
[21:17:28] SuMo_D: has joined #ruby
[21:17:33] TeresaP: I think I've had this issue every time I go to use a substitution
[21:17:46] TeresaP: I've been off Ruby for a few months
[21:17:56] TeresaP: What's the best way to do a substitution using reggae?
[21:18:01] TeresaP: wtf autocorrect
[21:18:08] Ox0dea: str[/href.*?=.*?'(.*?)'/, 1] = 'foo'
[21:18:33] TeresaP: ahh ok, and how about if I want to replace all? does 'g' go in there somewhere?
[21:19:12] TeresaP: reggae sounds more fun at the moment ;)
[21:19:27] TeresaP: regex makes my mind hurt
[21:19:43] Ox0dea: TeresaP: You could use String#[]= and iterate until it no longer matches, but that's not great.
[21:19:52] Ox0dea: Probably better to use #gsub's block form.
[21:20:42] TeresaP: Thanks a lot 0x0dea
[21:21:00] Ox0dea: TeresaP: Sure thing.
[21:21:08] Ox0dea: Do you know about pre- and post-match?
[21:22:03] TeresaP: like back-searching?
[21:22:18] 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
[21:23:18] cek: has joined #ruby
[21:23:25] jottr: has joined #ruby
[21:23:31] mikecmpbll: >> "yeah man".gsub(/yeah|man|/, { "yeah" => "ya", "man" => "mon" })
[21:23:32] ruboto: mikecmpbll # => "ya mon" (https://eval.in/399478)
[21:23:53] msnyon: has joined #ruby
[21:24:14] havenwood: has joined #ruby
[21:24:18] adaedra: ?regexandxml
[21:24:18] ruboto: I don't know anything about regexandxml
[21:25:37] Ox0dea: > The <center> cannot hold it is too late.
[21:25:50] Mon_Ouie: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454
[21:26:14] adaedra: precisely.
[21:26:15] edwinvdg_: has joined #ruby
[21:26:30] Ox0dea: Mon_Ouie: SO's "share" button is rather hard to see.
[21:26:58] Mon_Ouie: Ox0dea: I actually didn't find it, I found a link straight to that answer instead :p
[21:27:01] TeresaP: I'm not parsing html, I'm replacing a piece of text inside json with a correct url encoding
[21:27:20] TeresaP: That link is funny though :)
[21:27:23] Mon_Ouie: Okay, sorry for assuming then
[21:28:10] TeresaP: Someone put a ton of urls in there with spaces and it is breaking my LibXML::XML::Schema.from_string call
[21:28:13] Mon_Ouie: Also you don't need gsub's block form for this either. You can do gsub(/???/, 'href=\1')
[21:28:26] Scroff: has joined #ruby
[21:28:42] Ox0dea: I thought maybe there was some wonky stuff after the "href" that needed to be kept.
[21:28:57] Mon_Ouie: (notice the use of single quotes)
[21:29:34] Ox0dea: TeresaP's regex ("href.*?=.*?'(.*?)'") indicated that it mightn't be as simple as that.
[21:30:22] ryba: has joined #ruby
[21:30:48] ton31337: has joined #ruby
[21:31:01] ton31337: hey, how to read stdin every line from pipe?
[21:31:09] ton31337: iostat 1 | ruby..
[21:31:09] Mon_Ouie: Maybe, although you can just add one more capture group to fix that if that's the case
[21:31:16] 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" />
[21:31:25] momomomomo: has joined #ruby
[21:31:27] Ox0dea: Hey, that's not JSON!
[21:31:29] TeresaP: ignore my bad quotes
[21:31:44] adaedra: Man, JSON has badly evolved.
[21:31:46] BeepDog: has joined #ruby
[21:31:46] TeresaP: Actually you're right, this file is xml
[21:31:54] Ox0dea: We've been deceived!
[21:32:01] TeresaP: I was doing a bunch of json work earlier
[21:32:02] TeresaP: don't eat me
[21:32:16] 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
[21:32:19] Mon_Ouie: ton31337: Like `$stdin.each_line do |line| ??? end`?
[21:32:35] TeresaP: sigh... no sleep... need more coffee.
[21:32:38] BeepDog: I don't use OSX normally, so I'm a bit of a noob with OSX :(
[21:32:44] BeepDog: segfaults are always bad though
[21:32:52] ton31337: Mon_Ouie: thanks
[21:32:53] BeepDog: this same command works fine in the linux of course
[21:32:59] BeepDog: any advice would be appreciated
[21:34:04] phutchins: has joined #ruby
[21:34:36] dgutierrez1287: has joined #ruby
[21:34:51] 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
[21:35:02] BeepDog: not as far as I'm aware
[21:35:14] BeepDog: the gemfile is super small, contains rspec and fpm basically
[21:35:16] jottr_: has joined #ruby
[21:35:25] irctc374: has joined #ruby
[21:35:32] irctc374: is there a cocoapods chat?
[21:36:20] irctc374: or can i ask it here?
[21:36:36] arturmartins: has joined #ruby
[21:37:06] sharpmachine: has joined #ruby
[21:37:37] SuMo_D: has joined #ruby
[21:38:03] yfeldblum: has joined #ruby
[21:39:08] Musashi007: has joined #ruby
[21:39:59] SuMo_D: has joined #ruby
[21:40:18] baweaver: has joined #ruby
[21:40:23] howdoicomputer: has joined #ruby
[21:40:27] drewo: has joined #ruby
[21:41:03] ndrei: has joined #ruby
[21:41:24] desigx: has joined #ruby
[21:41:46] bricker: irctc374: this isn't really the place, maybe try objective-c or swift channels if they exist
[21:42:21] TeresaP: Thank you guys
[21:42:35] TeresaP: That did it
[21:42:38] disconnekted: has joined #ruby
[21:43:11] tuelz: has joined #ruby
[21:43:40] pengin: has joined #ruby
[21:43:53] TeresaP: I was able to do a CGI.escape on the Regexp.last_match[1]
[21:44:06] TeresaP: which finally fixed all those strings
[21:44:32] devbug: has joined #ruby
[21:46:06] rickmasta: has joined #ruby
[21:46:51] blaines: has joined #ruby
[21:46:54] Ox0dea: >> 'Regexp.last_match[1]'.size / '$1'.size
[21:46:55] ruboto: Ox0dea # => 10 (https://eval.in/399481)
[21:46:59] Ox0dea: Just sayin'.
[21:47:19] chipotle: has joined #ruby
[21:47:32] sgambino: has joined #ruby
[21:47:47] shevy: ohhh you are playing with your favourite things again - the $numbered variables!
[21:48:01] Ox0dea: They're pretty idiomatic, really.
[21:49:30] danzilio: has joined #ruby
[21:50:22] edwinvdgraaf: has joined #ruby
[21:51:11] 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!
[21:51:45] AlexRussia: has joined #ruby
[21:51:57] paulcsmith: has joined #ruby
[21:52:04] shevy: hmm local?
[21:53:08] apeiros: Mon_Ouie: incomplete description :-p
[21:53:27] apeiros: > regexp literal +without interpolations
[21:54:01] Ox0dea: >> /(?<local>\w+)/ =~ 'yes'; local
[21:54:02] ruboto: Ox0dea # => "yes" (https://eval.in/399491)
[21:54:12] Ox0dea: Kinda scary.
[21:55:26] Ox0dea: >> /(?<local>#{'\w'}+)/ =~ 'yes'; local
[21:55:27] ruboto: Ox0dea # => "yes" (https://eval.in/399493)
[21:55:28] Ox0dea: apeiros: ^?
[21:56:08] apeiros: Ox0dea: I think static interpolation is optimized away
[21:56:31] Ox0dea: >> /(?<local>\\#{119.chr}+)/ =~ 'yes'; local
[21:56:32] ruboto: Ox0dea # => undefined local variable or method `local' for main:Object (NameError) ...check link for more (https://eval.in/399495)
[21:56:41] Ox0dea: That does seem to be the case.
[21:56:56] apeiros: in strings too iirc
[21:56:58] finisherr: has joined #ruby
[21:57:00] soypirate: has joined #ruby
[21:57:44] finisherr: So, when using puppet and chef i was taught that you could use the -%> syntax to not print blank lines
[21:58:00] finisherr: but i???m actually loading some erb in a script
[21:58:08] finisherr: but it???s complaining about the hyphen
[21:58:24] romain_t: has joined #ruby
[21:58:24] adaedra: it's an option
[21:58:35] finisherr: for ERB.new?
[21:59:00] `derpy: I'm sorry, I don't know anything about ERB.
[21:59:04] f4cl3y: has joined #ruby
[21:59:33] finisherr: was just suprised that it worked with chef and puppet but not in raw code
[21:59:34] adaedra: http://www.rubydoc.info/stdlib/erb/ERB%3Ainitialize
[21:59:37] finisherr: I???ll use trim_mode
[21:59:44] adaedra: surely because they set it internally :)
[22:01:04] adaedra: prefixed, both links in your quit message are dead.
[22:01:54] OrbitalKitten: has joined #ruby
[22:02:19] charliesome: has joined #ruby
[22:02:57] bruno-: has joined #ruby
[22:03:52] sepp2k: has joined #ruby
[22:04:44] zr2d2: has joined #ruby
[22:06:33] werelivinginthef: has joined #ruby
[22:08:45] baweaver: has joined #ruby
[22:09:24] charliesome: has joined #ruby
[22:09:38] Azure: has joined #ruby
[22:10:09] zr2d2: Hi I'm trying to query an MSSQL database using AR, and my git is at https://gist.github.com/zr2d2/6b26a5d3f8e4a1ff4727
[22:10:26] wildroman2: has joined #ruby
[22:10:45] momomomomo_: has joined #ruby
[22:10:47] zr2d2: when i try to run my code, I get ActiveRecord::Base doesn't belong in a hierarchy descending from ActiveRecord
[22:11:21] voker57: has joined #ruby
[22:12:02] bronson: has joined #ruby
[22:12:16] zr2d2: is there a reason AR it's being required as part of AR (i think thats the problem, anyway)
[22:12:52] TheHodge: has joined #ruby
[22:13:03] zr2d2: or is there a better way to query a db from a ruby script?
[22:15:27] 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.
[22:16:15] rushed: has joined #ruby
[22:16:17] 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
[22:16:46] existensil: http://sequel.jeremyevans.net/
[22:16:55] sp33drac3r: has joined #ruby
[22:17:02] foertter: has joined #ruby
[22:17:15] ChanServ: -b JockRoach!*@*
[22:17:20] drewo: has joined #ruby
[22:17:51] shadoi: has joined #ruby
[22:18:22] segfalt: has joined #ruby
[22:18:51] blue_deref: has joined #ruby
[22:19:28] xkickflip_: has joined #ruby
[22:19:32] mase-chatter: has joined #ruby
[22:21:29] blackmesa: has joined #ruby
[22:23:04] sepp2k1: has joined #ruby
[22:23:34] charliesome: has joined #ruby
[22:24:36] dfinninger: has joined #ruby
[22:24:40] FooMunki_: has joined #ruby
[22:26:24] zr2d2: existential: thats future code, the DB contains URIs that i need to check
[22:26:31] finisherr: Hmm, my second and third params to ERB.new are nil and ???<>??? but it???s still not trimming the output
[22:26:32] Kully3xf: has joined #ruby
[22:26:58] endash: has left #ruby: ()
[22:27:13] Oka: has joined #ruby
[22:27:19] LMity: has joined #ruby
[22:27:31] zr2d2: existentsil: also 'ActiveRecord::Base doesn't belong in a hierarchy descending from ActiveRecord' was the error message
[22:27:49] zr2d2: thanks for sequel, though
[22:28:22] godzillaenlacasa: has joined #ruby
[22:28:46] camilasan: has joined #ruby
[22:28:50] finisherr: has left #ruby: ()
[22:30:30] FernandoBasso: has joined #ruby
[22:30:40] ndrei: has joined #ruby
[22:31:28] existensil: that's not the full error. The full error includes a line number, perferrably also a stack trace
[22:31:38] existensil: I'm not even clear where its failing
[22:33:44] sphex: has joined #ruby
[22:34:10] nfk: has joined #ruby
[22:35:30] wildroman2: has joined #ruby
[22:38:23] zr2d2: https://gist.github.com/zr2d2/89eecda48b92b5edabc5
[22:39:12] leitz: has joined #ruby
[22:41:21] kies^: has joined #ruby
[22:41:23] 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?
[22:42:28] existensil: depends on how many objects you have and what you mean by "store", but, yes, that seems reasonable for many cases
[22:42:40] dfinninger: has joined #ruby
[22:42:54] 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
[22:42:54] dfockler: has joined #ruby
[22:43:21] leitz: existensil, probably 100-200 max. Performance isn't really vital.
[22:43:36] leitz: "Easy for the n00b to code" is. :)
[22:45:14] hinbody: has joined #ruby
[22:45:37] existensil: that's a very small hash. i don't see a reason not to use hash
[22:46:05] baweaver: has joined #ruby
[22:46:56] OrbitalKitten: has joined #ruby
[22:47:34] dfockler: isn't a variable technically a key value pair ;)
[22:47:35] gregf: has joined #ruby
[22:50:39] Kully3xf_: has joined #ruby
[22:50:46] mary5030: has joined #ruby
[22:53:24] ixti: has joined #ruby
[22:54:17] shadoi: has joined #ruby
[22:56:37] wldcordeiro_: has joined #ruby
[22:57:06] Ox0dea: But not really.
[22:59:32] iamninja: has joined #ruby
[23:00:27] werelivinginthef: has joined #ruby
[23:00:38] joelataylor: has joined #ruby
[23:02:05] freerobby: has joined #ruby
[23:02:07] yfeldblum: has joined #ruby
[23:03:16] Ox0dea: dfockler: ;) == sarcasm or couching?
[23:03:54] roolo: has joined #ruby
[23:03:56] finisherr: has joined #ruby
[23:04:06] dfockler: just joking that it was a small hash
[23:04:08] finisherr: has left #ruby: ()
[23:05:03] Ox0dea: Ah, all right. I'll refrain from raving about why a variable isn't a key-value pair, then. :)
[23:06:38] dfockler: I have no idea how variable names are stored in ruby in memory
[23:07:44] Ox0dea: They're null-terminated strings, of course, but that's neither here nor there.
[23:07:50] alphaatom: has joined #ruby
[23:08:34] dfockler: that makes sense
[23:09:43] Ox0dea: There's sort of an implicit one-to-one relationship for key-value pairs, which identifier->object breaks on both sides.
[23:14:45] jesterfraud: has joined #ruby
[23:14:55] godzillaenlacasa: has joined #ruby
[23:15:57] Ox0dea: havenwood: Jumping ship?
[23:16:46] mikeric: has joined #ruby
[23:16:56] havenwood: Ox0dea: <3 Ruby
[23:17:05] Ox0dea: > You're god-damned right.
[23:18:11] baweaver: has joined #ruby
[23:19:12] 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.
[23:19:23] asteros: has joined #ruby
[23:19:38] mikeric: has joined #ruby
[23:20:07] zanloy: has joined #ruby
[23:20:15] dfockler: *conspiracy*
[23:20:20] Ox0dea: I think so too.
[23:21:26] CloCkWeRX: has joined #ruby
[23:22:33] Ropeney: has joined #ruby
[23:22:38] mikeric: has joined #ruby
[23:24:46] blackmesa: has joined #ruby
[23:25:00] Zinja: has joined #ruby
[23:28:36] fmcgeough: has joined #ruby
[23:29:50] NeverDie: has joined #ruby
[23:30:16] SiliconDon: has joined #ruby
[23:30:30] sarkyniin: has joined #ruby
[23:30:31] Igorshp: has joined #ruby
[23:30:45] failshell: has joined #ruby
[23:32:02] ruby-lang046: has joined #ruby
[23:32:12] thiagovsk: has joined #ruby
[23:33:12] iloverubynoob: has joined #ruby
[23:33:14] howdoicomputer: has joined #ruby
[23:35:14] 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)
[23:36:52] al2o3-cr: iloverubynoob: why would you want to use recursion?
[23:37:41] iloverubynoob: just a masochist challenge to learn!
[23:38:09] al2o3-cr: don't talk shit
[23:38:43] iloverubynoob: I want to practice recursion, I've already got +=
[23:39:29] SiliconDon: has joined #ruby
[23:39:34] existensil: if you need to use recursion, it would look like this:
[23:39:36] existensil: >> f = ->(min, max, total=0){ min == max ? total + max : f(min+1, max, total+min) }; f.call(1,10)
[23:39:37] ruboto: existensil # => undefined method `f' for main:Object (NoMethodError) ...check link for more (https://eval.in/399508)
[23:40:09] existensil: this way is more reliable I guess:
[23:40:12] existensil: >> def f(min, max, total=0); min == max ? total + max : f(min+1, max, total+min); end; f(1,10)
[23:40:13] ruboto: existensil # => 55 (https://eval.in/399509)
[23:40:28] Ox0dea: existensil: You used 'f()' in the lambda one.
[23:40:32] al2o3-cr: troll, troll, trolllll............
[23:40:59] existensil: yeah, i didn't realize the ->(){} version was only working because my previous attempt defined 'f'
[23:41:25] Ox0dea: existensil: No, that's not it. You just need to use #call or #[] rather than ().
[23:41:46] SiliconDon: has joined #ruby
[23:42:49] existensil: working lambda version:
[23:42:52] existensil: >> f = ->(min, max, total=0){ min == max ? total + max : f.call(min+1, max, total+min) }; f.call(1,10)
[23:42:53] ruboto: existensil # => 55 (https://eval.in/399510)
[23:42:57] Ox0dea: Why the accumulator?
[23:43:20] existensil: i dunno. first solution i thought of.
[23:43:22] asteros: has joined #ruby
[23:43:47] Ox0dea: >> f = -> min, max { min == max ? min : min + f[min + 1, max] }; f[1, 10]
[23:43:48] ruboto: Ox0dea # => 55 (https://eval.in/399512)
[23:43:52] iloverubynoob: @Ox0dea , @existensil 's solution works though, no? https://eval.in/399511
[23:44:09] iloverubynoob: @existensil thanks, by the way
[23:44:16] bruno-: has joined #ruby
[23:44:20] Ox0dea: iloverubynoob: What did you end up learning?
[23:44:24] existensil: that is much simpler and elegant than using the accumulator Ox0dea
[23:44:42] JeramyRR: has joined #ruby
[23:44:49] freerobby: has joined #ruby
[23:45:06] i8igmac: has joined #ruby
[23:45:21] iloverubynoob: @Ox0dea just trying to better grasp the concept of calling a function inside a function
[23:45:29] Zinja: has joined #ruby
[23:45:48] Ox0dea: iloverubynoob: You're on IRC, not Twitter.
[23:46:14] existensil: not using recursion is even easier of course
[23:46:20] Ox0dea: Sometimes.
[23:46:22] existensil: (1..10).reduce(:+)
[23:46:38] existensil: just meant in this example
[23:46:39] iloverubynoob: I'd love to abide by IRC's rules if you care to explain ...
[23:46:57] existensil: iloverubynoob: he's referring to prefixing nicknames with @
[23:47:07] existensil: usually the style in IRC is to suffix names with :
[23:47:09] drewo: has joined #ruby
[23:47:13] existensil: when addressing the person
[23:47:13] Scripore: has joined #ruby
[23:47:13] iloverubynoob: oh ok... sorry
[23:47:29] sarkyniin: has joined #ruby
[23:47:36] Ox0dea: Hmm, what is the sum of the numbers from 1 to 0?
[23:47:40] dfockler: has joined #ruby
[23:48:07] iloverubynoob: it should raise an error?
[23:48:18] Ox0dea: Well, no, it's either 0 or 1, but I can't quite say which.
[23:48:28] existensil: well our recursive examples will just blow the stack eventually
[23:48:49] Ox0dea: Aye, I was asking on account of your reduction.
[23:48:55] Ox0dea: >> (1..0).reduce(:+)
[23:48:56] ruboto: Ox0dea # => nil (https://eval.in/399513)
[23:49:01] Ox0dea: That can't be right. :P
[23:51:19] al2o3-cr: why would you reduce
[23:53:18] ruboto: al2o3-cr # => 1 (https://eval.in/399516)
[23:54:53] ruboto: Ox0dea # => NaN (https://eval.in/399519)
[23:55:15] bricker: I've never seen NaN in ruby before
[23:55:31] al2o3-cr: not a number
[23:55:41] Senjai: Didnt that use to be Float::INFINITY
[23:55:44] Senjai: Or is that something else
[23:55:58] Senjai: Or wait, that should be an exception shouldnt it
[23:56:25] jpfuentes2: has joined #ruby
[23:56:51] iloverubynoob: Ox0dea: thanks for your help
[23:56:59] Senjai: I dont like it
[23:57:02] Senjai: get it away
[23:57:05] ruboto: Ox0dea # => Infinity (https://eval.in/399520)
[23:57:26] Senjai: Ox0dea: Right, it has to be done with floats
[23:57:27] swgillespie: has joined #ruby
[23:57:34] Ox0dea: Senjai: Because IEEE 754 says so.
[23:57:34] ruboto: Senjai # => divided by 0 (ZeroDivisionError) ...check link for more (https://eval.in/399521)
[23:57:39] Senjai: I expect that
[23:58:06] ruboto: existensil # => -Infinity (https://eval.in/399522)
[23:58:13] al2o3-cr: >> 144 ** (1**2)
[23:58:14] ruboto: al2o3-cr # => 144 (https://eval.in/399523)
[23:58:23] al2o3-cr: >> 144 ** (1/2)
[23:58:24] ruboto: al2o3-cr # => 1 (https://eval.in/399524)
[23:58:32] al2o3-cr: >> 144 ** (1/2r)
[23:58:33] ruboto: al2o3-cr # => 12.0 (https://eval.in/399525)
[23:58:42] al2o3-cr: >> 144 ** (1/2.0)
[23:58:43] ruboto: al2o3-cr # => 12.0 (https://eval.in/399526)
[23:58:45] al2o3-cr: >> 144 ** (1/2.)
[23:58:46] ruboto: al2o3-cr # => /tmp/execpad-756bd7ebddf7/source-756bd7ebddf7:2: syntax error, unexpected ')', expecting '(' ...check link for more (https://eval.in/399527)
[23:58:55] al2o3-cr: needs pythons .
[23:58:59] PaulCape_: has joined #ruby