« Back to channel list

#ruby - 07 March 2019

« Back 1 day Forward 1 day »
[00:00:47] s3nd1v0g1us: has joined #ruby
[00:02:26] mangold: has joined #ruby
[00:06:46] ChanServ: +o havenwood
[00:08:49] luminousnine-: has joined #ruby
[00:08:56] Guest142: has joined #ruby
[00:08:57] blackjid: has joined #ruby
[00:08:57] Guest77895: has joined #ruby
[00:09:23] ChanServ: -o havenwood
[00:25:50] spacesuitdiver: has joined #ruby
[00:28:13] mangold: has joined #ruby
[00:28:25] s3nd1v0g1us: has joined #ruby
[00:42:28] t0xik: has joined #ruby
[00:44:03] Ekho: has joined #ruby
[00:44:40] Swyper: has joined #ruby
[00:50:51] skryking: has joined #ruby
[01:02:17] v01d4lph4: has joined #ruby
[01:08:02] Swyper: has joined #ruby
[01:14:09] v01d4lph4_: has joined #ruby
[01:18:38] Swyper: has joined #ruby
[01:21:24] mangold: has joined #ruby
[01:22:50] Swyper_: has joined #ruby
[01:23:05] Azure: has joined #ruby
[01:23:48] MeiQianChiFan: has joined #ruby
[01:33:05] Puffball: has joined #ruby
[01:36:45] GodFather: has joined #ruby
[01:36:52] spacesuitdiver: has joined #ruby
[01:43:49] spacesuitdiver: has joined #ruby
[01:44:02] ChrisBr: has joined #ruby
[01:46:11] _habnabit: has joined #ruby
[01:47:32] Jello_Raptor: has joined #ruby
[01:48:01] Emmanuel_Chanel: has joined #ruby
[01:48:09] luminousnine: has joined #ruby
[01:48:38] SeepingN: ugh damnit. I'm trying to find all Devices of a certain type. That type is referred to as Device.product, which is a lookup from another table. We want to match all part_numbers with a certain string in them. Device.where(:product =~ /IQ6/).last.product ...does not give me "IQ6". It seems the where filters out nothing and I can put almost any garbage in there and get back the full Device list
[01:50:36] bmurt: has joined #ruby
[01:51:12] havenwood: SeepingN: ActiveRecord?
[01:51:33] havenwood: SeepingN: Postgres?
[01:52:00] SeepingN: activerecord. mysql backend.
[01:52:30] SeepingN: .. the events table is in a separate database that I can't access, otherwise I'd be done with an SQL query :\
[01:53:25] SeepingN: Devices.product is defined simply as: PartNumber.product_for_part_num(part_num)
[01:55:02] havenwood: SeepingN: How about?: Device.where('product LIKE %IQ6%').last
[01:55:54] SeepingN: Unknown column 'product' in 'where clause': SELECT `devices`.* FROM `devices` WHERE (product LIKE '%IQ6%') ORDER BY `devices`.`id` DESC LIMIT 1
[01:55:54] SeepingN: from /enphase/enlighten/shared/bundle/ruby/2.2.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
[01:55:56] havenwood: SeepingN: Device.where("product LIKE '%?%'", product_id).last
[01:56:05] SeepingN: it's unfortunately not a column of Device
[01:56:14] havenwood: SeepingN: What is it?
[01:56:48] Swyper: has joined #ruby
[01:57:24] havenwood: SeepingN: How do you get a product, I don't follow. Have a code example showing how you call a product?
[01:57:32] SeepingN: it's defined in PartNumber as PartNumber.product_for_part_num(part_num)
[01:58:13] havenwood: SeepingN: Okay, so you have a `part_num`. What on Device corresponds to that?
[01:58:29] SeepingN: part_numbers is a table with id, part_num, product (the english desc of the product), and 2 unrelated columns
[01:59:22] havenwood: Let me back up. It seems you're trying to find a particular Device record given a part_num?
[01:59:37] havenwood: Showing a bit more code might give enough context.
[01:59:39] SeepingN: Device.part_num... but that part_num is a longer form. THe ones in the lookup table "part_numbers" are truncated to the first 9 characters... no subversions
[02:00:59] SeepingN: I want all devices marked as "IQ7" qhich may include "IQ7+" and "IQ7 vartiation 9482". ie: regex. or I could just list them all in the query aqnd do an "IN" equiv
[02:01:16] SeepingN: I have no code. I'm trying to start a query to build a data report
[02:01:42] SeepingN: I usually do this in SQL. Maybe I should try to get that to work and just pass a full query to the connection
[02:01:42] havenwood: SeepingN: My best guess, from what you've said, without seeing code is:
[02:01:43] havenwood: Device.find_each.find { |device| part_numbers.any? { |part_number| part_number.include? device.part_num } }
[02:01:56] SeepingN: hmmmm ok thanks
[02:02:38] havenwood: SeepingN: That would check Devices in batches of 1000, looking for a `device.part_num` that is a subset of one of the part_numbers Strings.
[02:03:18] SeepingN: well they'll all match. need to filter to a specifci substring
[02:03:29] SeepingN: every Device will have a matchin in that lookup table
[02:04:36] havenwood: SeepingN: Device.find_each.find { |device| device.part_num.include? specific_substring }
[02:05:36] SeepingN: but the substring is not from part_num, it's from the table "part_numbers", column "product".
[02:05:46] SeepingN: that's the part that's tripping me up
[02:06:05] SeepingN: but I think I can modify that last line to work
[02:10:09] SeepingN: I gotta head home, will be looking at this more later. thanks havenwood
[02:12:49] eb0t_: has joined #ruby
[02:20:09] Onwarion_re: has joined #ruby
[02:28:20] ivanskie: has joined #ruby
[02:35:45] fluxAeon: has joined #ruby
[02:36:20] ivanskie: has joined #ruby
[02:37:40] Nahra: has joined #ruby
[02:40:18] sidepocket: has joined #ruby
[02:40:40] MeiQianChiFan: has joined #ruby
[02:44:01] mangold: has joined #ruby
[02:49:32] mangold: has joined #ruby
[03:00:58] awkwords: has joined #ruby
[03:28:29] bambanx: has joined #ruby
[03:34:12] Puffball_: has joined #ruby
[03:54:44] Swyper: has joined #ruby
[04:02:27] bambanx: has joined #ruby
[04:05:54] govg: has joined #ruby
[04:09:02] x77686d: has joined #ruby
[04:10:11] braincrash: has joined #ruby
[04:10:40] TvL2386: has joined #ruby
[04:11:54] ur5us: has joined #ruby
[04:12:53] ur5us_: has joined #ruby
[04:28:07] helpa: has joined #ruby
[04:29:15] v01d4lph4: has joined #ruby
[04:31:23] cyberarm: has joined #ruby
[04:31:39] Axsuul: has joined #ruby
[04:33:02] v01d4lph4_: has joined #ruby
[04:36:36] v01d4lph4: has joined #ruby
[04:41:48] v01d4lph4_: has joined #ruby
[04:44:59] DTZUZO: has joined #ruby
[04:50:01] dellavg__: has joined #ruby
[04:51:53] v01d4lph4: has joined #ruby
[04:53:43] dante: has joined #ruby
[04:53:44] dtzuzu: has joined #ruby
[04:53:44] DarthGandalf: has joined #ruby
[04:53:44] ujjain: has joined #ruby
[04:53:44] badeball: has joined #ruby
[04:53:44] MuffinPimp: has joined #ruby
[04:53:44] Zarthus: has joined #ruby
[04:53:44] ghormoon: has joined #ruby
[04:53:44] tekk: has joined #ruby
[04:53:44] \13k: has joined #ruby
[04:53:44] comstar: has joined #ruby
[04:53:44] havenwood: has joined #ruby
[04:53:44] universa1: has joined #ruby
[04:53:44] TheBrayn: has joined #ruby
[04:53:44] trif: has joined #ruby
[04:53:44] JanMrlth: has joined #ruby
[04:53:44] Flonk: has joined #ruby
[04:53:44] tris: has joined #ruby
[04:53:44] zeamp: has joined #ruby
[04:53:44] balo: has joined #ruby
[04:53:44] baweaver: has joined #ruby
[04:53:44] kenichi: has joined #ruby
[04:53:44] lambarena: has joined #ruby
[04:53:44] soulcutter: has joined #ruby
[04:53:44] Nirvash: has joined #ruby
[04:53:45] notZarthus: has joined #ruby
[04:53:45] shadeslayer: has joined #ruby
[04:53:45] daemonwrangler: has joined #ruby
[04:53:45] bhaak: has joined #ruby
[04:53:45] justinmcp: has joined #ruby
[04:53:45] Fire-Dragon-DoL: has joined #ruby
[04:53:45] Liothen: has joined #ruby
[04:54:07] silent_freak: has joined #ruby
[04:58:19] jacksoow: has joined #ruby
[04:58:32] spacesuitdiver: has joined #ruby
[05:04:10] jane_booty_doe: has joined #ruby
[05:05:17] spacesuitdiver: has joined #ruby
[05:09:16] mangold: has joined #ruby
[05:17:35] jane_booty_doe: has joined #ruby
[05:22:44] v01d4lph4: has joined #ruby
[05:23:32] sgen: has joined #ruby
[05:31:33] SeepingN: has joined #ruby
[05:41:39] Swyper: has joined #ruby
[05:50:58] chens: has joined #ruby
[06:00:22] sgen: has joined #ruby
[06:13:31] DTZUZO: has joined #ruby
[06:17:56] Swyper: has joined #ruby
[06:19:50] spacesuitdiver: has joined #ruby
[06:20:07] reber: has joined #ruby
[06:22:01] Swyper: has joined #ruby
[06:24:10] conta: has joined #ruby
[06:38:47] v01d4lph4: has joined #ruby
[06:55:43] Swyper: has joined #ruby
[06:57:23] mangold: has joined #ruby
[06:58:34] Swyper: has joined #ruby
[07:04:51] Nicmavr: has joined #ruby
[07:06:27] Renich: has joined #ruby
[07:11:01] bambanx: has joined #ruby
[07:20:26] aupadhye: has joined #ruby
[07:30:28] TheBloke: has joined #ruby
[07:38:28] clemens3: has joined #ruby
[07:44:07] iMadper: has joined #ruby
[07:47:47] ur5us: has joined #ruby
[07:50:33] aufi: has joined #ruby
[07:57:35] hcshcshcshcshcs: has joined #ruby
[07:58:11] spacesuitdiver: has joined #ruby
[08:07:04] t0xik: has joined #ruby
[08:15:57] mtkd: has joined #ruby
[08:20:19] clemens3: has joined #ruby
[08:24:45] teclator: has joined #ruby
[08:27:59] fluxAeon: has joined #ruby
[08:28:16] jane_booty_doe: has joined #ruby
[08:30:23] jane_booty_doe: has joined #ruby
[08:32:26] eightfold: has joined #ruby
[08:33:31] mangold: has joined #ruby
[08:36:01] jane_booty_doe: has joined #ruby
[08:36:44] lxsameer: has joined #ruby
[08:37:11] tuor: has joined #ruby
[08:38:01] tuor: hi, when should I use double quotes and when should I use single quotes for strings?
[08:40:59] alem0lars: has joined #ruby
[08:41:03] Renich: has joined #ruby
[08:41:21] laaron: has joined #ruby
[08:41:43] al2o3-cr: Tuor: use double quotes for interpolation and single quotes for everything else.
[08:42:11] al2o3-cr: thats my motto anyway.
[08:46:16] ljarvis: use double quotes everywhere
[08:48:47] mtkd: has joined #ruby
[08:53:12] xrexeon: has joined #ruby
[08:56:21] tuor: It seems no general rule all agree on. But is my assumption right, single quotes are performing better?
[08:57:29] tbuehlmann: it's a micro optimization not worth talking about. so, "no", they do not perform better
[08:57:31] al2o3-cr: slightly, if any.
[08:57:49] tuor: hmm ok. thx!
[09:02:17] MyMind: has joined #ruby
[09:08:29] mtkd: has joined #ruby
[09:13:55] ljarvis: use double quotes everywhere and don't worry about it
[09:14:09] ur5us: has joined #ruby
[09:15:53] laaron: has joined #ruby
[09:15:54] hightower3: has joined #ruby
[09:21:00] marcoecc: has joined #ruby
[09:21:54] gloscombe: has joined #ruby
[09:24:27] tbuehlmann: I can see that tweet, mister
[09:27:23] alem0lars: has joined #ruby
[09:27:53] gloscombe: has joined #ruby
[09:29:11] hightower3: has joined #ruby
[09:30:45] gloscombe: has joined #ruby
[09:36:20] mangold: has joined #ruby
[09:45:47] keden: has joined #ruby
[09:48:58] alem0lars: has joined #ruby
[10:00:06] eb0t: has joined #ruby
[10:01:08] mangold: has joined #ruby
[10:12:10] _whitelogger: has joined #ruby
[10:19:38] marcoecc: has joined #ruby
[10:29:59] ellcs: has joined #ruby
[10:36:02] marcoecc: has joined #ruby
[10:54:23] ferr: has joined #ruby
[10:54:37] mtkd: has joined #ruby
[10:56:04] beaky1: has joined #ruby
[11:01:11] sgen: has joined #ruby
[11:05:57] j-amoah: has joined #ruby
[11:06:48] schleppel: has joined #ruby
[11:08:01] ruby-lang254: has joined #ruby
[11:10:45] j-amoah: Anyone online
[11:11:24] j-amoah: lol okay <ljarvis>
[11:11:38] mtkd: has joined #ruby
[11:12:00] j-amoah: So anyone working on any projects so far?
[11:14:09] aqd: has joined #ruby
[11:17:00] Ai9zO5AP: has joined #ruby
[11:27:45] marcoecc: has joined #ruby
[11:29:10] conta: has joined #ruby
[11:36:58] ldnunes: has joined #ruby
[11:44:27] braincrash: has joined #ruby
[11:50:41] ams__: has joined #ruby
[11:51:15] face: has joined #ruby
[12:08:40] AJA4350: has joined #ruby
[12:18:57] TomyLobo: has joined #ruby
[12:23:53] bmurt: has joined #ruby
[12:30:29] mangold: has joined #ruby
[12:39:11] adac: has joined #ruby
[12:39:52] adac: I somtimes get some DNS resove errors like this one: "Resolv::ResolvError no address for example.com"
[12:40:01] tdy: has joined #ruby
[12:40:02] adac: any ideas what might cause that?
[12:40:45] ljarvis: https://ruby-doc.org/stdlib-2.3.3/libdoc/resolv/rdoc/Resolv/ResolvError.html "Indicates a failure to resolve a name or address."
[12:42:09] themsay: has joined #ruby
[12:44:48] ubuntuisloved: has joined #ruby
[12:51:42] adac: ljarvis, I see yes. But is this always a underlying problem? INfrastructure/Network/DNS?
[12:52:54] ljarvis: adac: who knows? there's a *lot* of reasons an address might not resolve
[12:52:56] keden: has joined #ruby
[12:53:20] ljarvis: most of which are indistinguishable
[12:53:22] adac: ljarvis, yep I understand. Just trying to figure out on how I can debug this
[12:53:33] ljarvis: does the URL resolve in your browser?
[12:53:55] ljarvis: (assuming it's something you can view in a browser)
[13:01:44] x77686d: has joined #ruby
[13:03:39] jane_booty_doe: has joined #ruby
[13:07:27] mtkd: has joined #ruby
[13:12:21] AJA4351: has joined #ruby
[13:16:31] dubuc: has joined #ruby
[13:17:20] j-amoah_: has joined #ruby
[13:22:52] Arkantos: has joined #ruby
[13:23:20] emilford: has joined #ruby
[13:27:59] lucasb: has joined #ruby
[13:45:30] za1b1tsu: has joined #ruby
[13:46:17] qual: has joined #ruby
[13:46:19] emilford: has joined #ruby
[13:48:52] keden: has joined #ruby
[13:59:13] keden: has joined #ruby
[14:01:54] kapil____: has joined #ruby
[14:10:18] kent\n: has joined #ruby
[14:11:09] mtkd: has joined #ruby
[14:12:40] jcalla: has joined #ruby
[14:20:04] AJA4351: has joined #ruby
[14:24:16] aqd: has joined #ruby
[14:24:48] clemens3: has joined #ruby
[14:26:16] alem0lars_: has joined #ruby
[14:29:20] rippa: has joined #ruby
[14:32:28] Azure: has joined #ruby
[14:33:06] SeepingN: has joined #ruby
[14:35:27] tuor: Hi, is there ruby a option which passes a string as STDIN to a script? like ruby myscript --stdin '{"secret":"asdf"}'
[14:36:09] Arkantos: has joined #ruby
[14:40:39] awkwords: has joined #ruby
[14:43:05] TheBrayn: you don't have to do anything for that
[14:43:57] TheBrayn: just read ARGV
[14:44:04] TheBrayn: or use an option parser
[14:45:59] ellcs: echo "hi" | ruby puts_stdin.rb
[14:46:14] ellcs: content of puts_stdin.rb: puts $stdin.readline
[14:48:40] gloscombe: has joined #ruby
[14:48:41] Rapture: has joined #ruby
[14:50:21] TheBrayn: or “ruby puts_stdin.rb <<< 'hi'” if you are using recent versions of bash
[14:53:37] conta: has joined #ruby
[14:53:44] al2o3-cr: true, use herestrings.
[14:55:37] tuor: I can't call the ruby binary with bash. It's called by my IDE RubyMine and RubyMine doesn't support redirection of STDIN... So I am looking for some other way. Right Now I use STDIN.reopen('/tmp/path.json') in the beginning of my ruby script, but I have to comment it out befor each git commit. That's not very nice.
[14:58:43] jane_booty_doe: has joined #ruby
[14:59:26] ellcs: TheBrayn: why the hell does this work
[14:59:33] ellcs: ruby<<<"puts 'hi'"
[14:59:34] ellcs: i see that
[14:59:51] ellcs: i checked out your stuff, but wtf
[15:00:44] TheBrayn: ruby accepts code on stdin
[15:00:50] qual: has joined #ruby
[15:00:55] Riviera-: bash creates a temporary file with puts 'hi' as content, and then it opens ruby with that file as stdin; which ruby reads and executes.
[15:03:29] gloscombe_: has joined #ruby
[15:03:42] qual: has joined #ruby
[15:03:46] Inline: has joined #ruby
[15:04:10] gnufied: has joined #ruby
[15:09:46] polishdub: has joined #ruby
[15:14:11] Swyper: has joined #ruby
[15:21:45] crankharder: has joined #ruby
[15:22:58] gloscombe: has joined #ruby
[15:35:35] zapata_: has joined #ruby
[15:43:31] spacesuitdiver: has joined #ruby
[15:47:28] akem: has joined #ruby
[15:48:36] gregf_: has joined #ruby
[15:48:40] tuor: How can I test if a passed object to a method is of a specific class?
[15:53:15] al2o3-cr: Tuor: obj.is_a?
[15:53:18] ellcs: 1.is_a?(Integer)
[15:53:28] tuor: let me try.
[15:55:00] tuor: is working thx!
[15:55:44] gloscombe_: has joined #ruby
[15:59:53] Renich_: has joined #ruby
[16:04:29] tdy: has joined #ruby
[16:20:57] AJA4350: has joined #ruby
[16:21:36] ytti: Integer === 1 also
[16:21:41] ytti: but i guess less idiomatic?
[16:22:11] tuor: ACTION can't remember having see === befor.
[16:22:22] tuor: s/see/seen/
[16:22:58] al2o3-cr: &ri Object.=== Tuor
[16:22:58] rubydoc: Tuor: Found no entry that matches class Object class method ===
[16:23:06] al2o3-cr: &ri Module.=== Tuor
[16:23:06] rubydoc: Tuor: Found no entry that matches class Module class method ===
[16:23:10] al2o3-cr: &ri Module#=== Tuor
[16:23:10] rubydoc: Tuor: https://ruby-doc.org/core-2.6/Module.html#method-i-3D-3D-3D
[16:23:39] SeepingN: sure it's equal. but is it realy REALLY equal?
[16:24:07] ytti: #is_a? is alias to #kind_of? which means that they'll also match to subclass
[16:24:18] ytti: if you want to be strict you want #instance_of?
[16:24:33] ytti: or Class#====
[16:24:48] ytti: i'm pinocchio
[16:25:13] qual: has joined #ruby
[16:25:33] SeepingN: entire_ruby_app ===== other_ruby_app ?
[16:26:15] tuor: #is_a? and === seem both to be fine to me. :)
[16:26:59] ytti: [1] pry(main)> 1.is_a? Numeric
[16:27:17] ytti: [3] pry(main)> 1.instance_of? Numeric
[16:27:18] ytti: => false
[16:27:49] ytti: i thought === was intance_of?, but it looks like === is same as #is_a and #kind_of
[16:28:01] ytti: so matches to all subclasses too
[16:30:31] tuor: I like the #is_a? variation, in my opinion it's more readable.
[16:30:44] Swyper: has joined #ruby
[16:33:38] al2o3-cr: &>> [Integer < Numeric, Numeric > Integer]
[16:33:41] rubydoc: # => [true, true] (https://carc.in/#/r/6g1b)
[16:34:09] Renich_: has joined #ruby
[16:35:54] tuor: has left #ruby: ("Thx for all your help today! cu")
[16:37:19] eblip: has joined #ruby
[16:41:45] agent_white: has joined #ruby
[16:52:11] bga57: has joined #ruby
[16:52:16] Swyper: has joined #ruby
[16:53:29] Swyper_: has joined #ruby
[16:57:10] jcarl43: has joined #ruby
[17:09:55] cisco: has joined #ruby
[17:10:22] Swyper: has joined #ruby
[17:12:47] RedSnarf: has joined #ruby
[17:15:29] darix: has joined #ruby
[17:23:37] szulak_: has joined #ruby
[17:26:53] Emmanuel_Chanel: has joined #ruby
[17:33:05] [Butch]: has joined #ruby
[17:40:57] dviola: has joined #ruby
[17:53:56] cnsvc_: has joined #ruby
[17:57:05] sgen: has joined #ruby
[17:58:16] saysjonathan: has joined #ruby
[18:00:02] bga57: has joined #ruby
[18:01:19] planigan: has joined #ruby
[18:01:39] Swyper: has joined #ruby
[18:02:49] Swyper: has joined #ruby
[18:10:48] sagax: has joined #ruby
[18:11:33] sagax: has joined #ruby
[18:14:03] szulak_: has joined #ruby
[18:25:16] hightower3: has joined #ruby
[18:36:03] AJA4351: has joined #ruby
[18:56:42] qual: has joined #ruby
[19:07:52] gray_-_wolf: has joined #ruby
[19:20:56] sameerynho: has joined #ruby
[19:21:26] hiroaki_: has joined #ruby
[19:24:19] Swyper: has joined #ruby
[19:27:36] za1b1tsu: has joined #ruby
[19:28:53] ubuntuisloved: has joined #ruby
[19:30:05] gix: has joined #ruby
[19:30:29] adac: has joined #ruby
[19:34:21] keden: has joined #ruby
[19:36:20] ravenousmoose: has joined #ruby
[19:38:36] conta: has joined #ruby
[19:41:51] zachk: has joined #ruby
[19:48:21] al2o3-cr: &>> "p""i""z""z""a"
[19:48:24] rubydoc: # => "pizza" (https://carc.in/#/r/6g1x)
[19:48:40] ruby[bot]: here's your pizza: 🍕
[19:49:07] tdy: has joined #ruby
[19:52:27] ubuntuisloved: has joined #ruby
[19:57:23] rafadc: has joined #ruby
[19:57:43] al2o3-cr: oops, ljarvis is spewing now ;)
[20:02:13] code_zombie: has joined #ruby
[20:02:40] al2o3-cr: &>> [%("p""i""z""z""a"), %('p''i''z''z''a')]
[20:02:41] rubydoc: # => ["\"p\"\"i\"\"z\"\"z\"\"a\"", "'p''i''z''z''a'"] (https://carc.in/#/r/6g20)
[20:06:48] qual: has joined #ruby
[20:07:54] havenwood: &>> require 'matrix'; puts 29.upto(32).map { |n| (Matrix[[0, 1], [1, 1]] ** n.pred)[1, 1] % n.pred + 140 }.tap { |a| a[-1] += 99 }.reverse.pack('C*').force_encoding('utf-8')
[20:07:54] rubydoc: # => 🍕 (https://carc.in/#/r/6g22)
[20:09:44] al2o3-cr: havenwood: beatiful, you work for dominos?
[20:10:21] notZarthus: if you do pls give me discounts
[20:13:44] jane_booty_doe: has joined #ruby
[20:16:13] al2o3-cr: notZarthus: pi r squared
[20:18:58] al2o3-cr: havenwood: you is a magician :P
[20:23:21] havenwood: al2o3-cr: A domino isn't very far from a pizza!
[20:23:27] havenwood: &>> require 'matrix'; puts 29.upto(32).map { |n| (Matrix[[0, 1], [1, 1]] ** n.pred)[1, 1] % n.pred + 140 }.tap { |a| a[-1] += 99; a[1] -= 12 }.reverse.pack('C*').force_encoding('utf-8')
[20:23:28] rubydoc: # => 🁕 (https://carc.in/#/r/6g2f)
[20:27:27] al2o3-cr: havenwood: haha, awesome!
[20:30:07] al2o3-cr: thats made my day!
[20:34:17] tdy: has joined #ruby
[20:37:39] r29v: has joined #ruby
[20:38:30] ur5us: has joined #ruby
[20:41:02] SeepingN: has joined #ruby
[20:48:47] alem0lars: has joined #ruby
[20:49:51] RyanMcCoskrie: has joined #ruby
[20:50:04] alem0lars: has joined #ruby
[20:55:43] AJA4351: has joined #ruby
[21:01:54] hahuang65: has joined #ruby
[21:02:45] al2o3-cr: &>> "ß".downcase(:fold) # if this works i'll plait saw dust
[21:02:45] rubydoc: stderr: -e:2: invalid multibyte char (US-ASCII) (https://carc.in/#/r/6g2q)
[21:04:19] hahuang65_: has joined #ruby
[21:05:01] fnord__: has joined #ruby
[21:05:42] dinfuehr_: has joined #ruby
[21:06:39] sleepingforest: has joined #ruby
[21:13:58] Rapture: has joined #ruby
[21:17:22] ravenousmoose: has joined #ruby
[21:18:35] tdy: has joined #ruby
[21:19:37] hahuang65: has joined #ruby
[21:20:06] al2o3-cr: &>> "ß".force_encoding('utf-16').downcase(:fold)
[21:20:06] rubydoc: stderr: -e:2: invalid multibyte char (US-ASCII) (https://carc.in/#/r/6g34)
[21:21:20] keden: has joined #ruby
[21:21:57] tdy1: has joined #ruby
[21:22:36] Fernando-Basso: has joined #ruby
[21:26:40] ljarvis: al2o3-cr: wat
[21:26:58] ljarvis: oh, the pizza thing?
[21:27:29] ljarvis: havenwood being all fancy
[21:32:15] sgen: has joined #ruby
[21:32:36] al2o3-cr: ljarvis: self using "" ~&&= begin FANCY ;)
[21:33:15] ljarvis: ACTION vomits 
[21:34:15] al2o3-cr: shit pizza?
[21:34:36] ljarvis: that's an oxymoron
[21:34:59] al2o3-cr: i like that shit
[21:36:10] zachk: has joined #ruby
[21:37:58] al2o3-cr: &>> !('' > "")
[21:37:59] rubydoc: # => true (https://carc.in/#/r/6g37)
[21:38:15] al2o3-cr: it must be true
[21:39:05] BoomerBile: has joined #ruby
[21:40:07] tekniq_: has joined #ruby
[21:40:36] BoomerBile: https://pastebin.com/vgSQrpnQ <-- how can i find the cause of this segfault?
[21:40:37] ruby[bot]: BoomerBile: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[21:41:10] AJA4351: has joined #ruby
[21:41:49] sagax: has joined #ruby
[21:43:03] BoomerBile: https://gist.github.com/MetaPhaze/6afa5ea1fe1c4ee5fd7d3ad9745b7ffc <-- updated link
[21:44:07] BoomerBile: The same plugin runs outside the Xen environment just fine
[21:44:22] BoomerBile: even recompiled it fails in the Xen environment
[21:56:20] sleepingforest: has left #ruby: ("Leaving")
[21:57:21] BoomerBile: al2o3-cr, if I knew how to dig at all i wouldn't be here asking....
[21:57:46] gigetoo: has joined #ruby
[21:58:25] BoomerBile: going to re-compile my updates, then ruby, then the plugin system, then the plugin, then if it doesn't work ruby is no longer for me... 5 years of nothing but headache's every update
[21:58:28] BoomerBile: time to switch to lua
[21:59:04] Swyper: has joined #ruby
[22:00:30] al2o3-cr: BoomerBile: so everytime it's been a foot print?
[22:00:52] BoomerBile: unsure what you're asking
[22:01:16] al2o3-cr: BoomerBile: a head ACHE
[22:01:43] BoomerBile: some kind of joke/pun i'm assuming
[22:02:36] al2o3-cr: well, 5 yrs must be ...
[22:02:57] BoomerBile: probably longer actually
[22:03:02] BoomerBile: the project is near 17 years old
[22:03:39] al2o3-cr: BoomerBile: whats the project?
[22:03:54] Xeago: anyone seen apeiros recently?
[22:04:29] BoomerBile: the problem is that ruby says i've encountered a ruby bug
[22:04:40] BoomerBile: i don't want to file a bug because i've had this issue before with ruby
[22:04:46] BoomerBile: and it wasn't a ruby bug
[22:05:05] BoomerBile: I want to find out who's code is at fault cause irb loads my code fine
[22:05:08] BoomerBile: and executes it
[22:05:19] BoomerBile: so, is it a ruby bug this time? or third party?
[22:05:31] BoomerBile: or environment
[22:05:37] al2o3-cr: BoomerBile: who knows?
[22:05:46] BoomerBile: you're not being productive
[22:05:52] BoomerBile: if you don't know, stop scrolling the question
[22:05:59] al2o3-cr: BoomerBile: neither are you!
[22:07:17] hightower2: has joined #ruby
[22:07:45] al2o3-cr: BoomerBile: you've come in here blasting
[22:07:48] hightower2: has joined #ruby
[22:07:58] BoomerBile: I came in here with a question
[22:08:13] BoomerBile: has left #ruby: ("Shoves everyone out of the way.")
[22:08:22] al2o3-cr: baweaver: did
[22:13:47] r29v: has joined #ruby
[22:14:08] xrexeon: has joined #ruby
[22:15:08] AJA4351: has joined #ruby
[22:20:27] baweaver: ACTION reads back
[22:21:12] baweaver: What's `nwserver` doing BoomerBile?
[22:21:36] baweaver: Left I guess.
[22:21:55] baweaver: al2o3-cr: Doesn't really read like bashing, just annoyance at something breaking.
[22:24:26] orbyt_: has joined #ruby
[22:30:12] al2o3-cr: baweaver: my fault, yet again
[22:32:00] r29v: has joined #ruby
[22:51:20] conta: has joined #ruby
[22:54:20] ravenousmoose: has joined #ruby
[22:57:54] anjen: has joined #ruby
[22:58:30] tag: has joined #ruby
[23:11:31] cyberarm: has joined #ruby
[23:33:02] AJA4350: has joined #ruby
[23:36:32] llua: has joined #ruby
[23:36:42] themsay: has joined #ruby
[23:36:51] zapata: has joined #ruby
[23:41:09] r29v: has joined #ruby
[23:42:23] bjpenn: has joined #ruby
[23:45:01] CJKinni: has joined #ruby
[23:45:20] bjpenn: hey guys, i want to use a ruby heredoc for a string that contains a literal "\". Lets say "myvar" is set to "foobar". I want my heredoc to be "foobar \". If i want to create a heredoc that contains "#{myvar} \", but have it process the value of "myvar" how do i do it?
[23:45:43] bjpenn: not sure if thats understandable :D
[23:50:26] leftylink: huh. I guess that is one thing that is not currently possible to do w/ &>>, demonstrate code containing a heredoc... guess it has to be &url then...
[23:51:52] mozzarella: bjpenn: you do it exactly like that
[23:52:04] DeadPixelz01: has joined #ruby
[23:54:11] DaRock: has joined #ruby
[23:54:20] bjpenn: mozzarella: using the &>> like how leftylink pointed out?
[23:54:44] mozzarella: bjpenn: I think he was trying to use the bot
[23:54:45] hightower2: has joined #ruby
[23:54:54] mozzarella: heredocs in ruby use <<
[23:55:16] bjpenn: mozzarella: i mean how do i make it interpolate a string like #{myvar} but not interpolate the backslash
[23:55:26] bjpenn: i want the backslash to show up as a literal backslash
[23:55:41] bjpenn: whereas now , if i have <<~HEREDOC ..... HEREDOC , it will just disappear
[23:55:59] bjpenn: i guess one option is using double backslash
[23:56:06] bjpenn: but is there another way?
[23:56:44] mozzarella: I don't think so
[23:56:54] bjpenn: is there a way where i can make it do something like this?
[23:57:11] bjpenn: <<~HEREDOC.replace("\","\\") .... HEREDOC
[23:57:13] bjpenn: something like that?
[23:57:31] bjpenn: thats probably not legitimate syntax, but you get what im trying to do right?
[23:57:48] mozzarella: it actually is legitime syntax
[23:58:52] spacesuitdiver: has joined #ruby
[23:59:32] bjpenn: oh really?
[23:59:39] mozzarella: yeah but that won't do what you want