havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
drewmcmillan has joined #ruby
<al2o3-cr> -Rn if you want line numbers too.
skweek has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
guardianx has quit []
<hays_> i think i prefer the latter way of using struct.new
<al2o3-cr> hays_: but don't forget this will create an anonymous class that will never be used.
theRealGent has quit [Ping timeout: 276 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hays_> yeah that is weird, but it seems odd to be assigning classes like that
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> the ideal way is really the former, but that's is up to you.
GremL1N2 has joined #ruby
<hays_> is there any reason to prefer fred=Class.new do ... ?
<al2o3-cr> no, not really.
phaul has quit [Ping timeout: 276 seconds]
jtdoncas has joined #ruby
<al2o3-cr> hays_: also assign to constants.
skweek has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
<al2o3-cr> >> [s = Struct.new(:a), S = Struct.new(:a), c = Class.new, C = Class.new]
<ruby[bot]> al2o3-cr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<al2o3-cr> >> [s = Struct.new(:a), S = Struct.new(:a), c = Class.new, C = Class.new]
<ruby[bot]> al2o3-cr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
naprimer has joined #ruby
<al2o3-cr> ah well :(
r3kz has quit [Quit: Connection closed for inactivity]
belmoussaoui has joined #ruby
Vapez has quit [Read error: Connection reset by peer]
<hays_> is this reasonable code? https://bpaste.net/show/dca8bc37f7fd
Axy has quit [Quit: Leaving]
<hays_> i feel like i might be reimplementing something Ruby already has
<al2o3-cr> hays_: i don't see a problem with it, apart from my earlier comment.
<al2o3-cr> what is it you're trying to do anyway?
<havenwood> hays_: Consider: Foo = Struct.new(:bar, :baz, keyword_init: true); def initialize; yield_self if block_given? end
<havenwood> hays_: You'll be able to use kwargs or the block that way, with a nice ancestry.
<havenwood> hays_: Though if there's not more to it, I don't see the block as a win.
<al2o3-cr> havenwood: that's if they're using 2.5
skweek has quit [Quit: Leaving]
<havenwood> Use 2.5!
<havenwood> ;-)
chouhoulis has joined #ruby
<hays_> heh
<al2o3-cr> yes, i agree.
<hays_> that code.. missing a line?
<al2o3-cr> no
<havenwood> hays_: nope, it works as written
<hays_> def initialize is at file scope?
<havenwood> Foo = Struct.new(:bar, :baz, keyword_init: true); def initialize; yield_self if block_given? end; Foo.new baz: 42, bar: 5
bronson has joined #ruby
<havenwood> #=> #<struct Foo bar=5, baz=42>
belmoussaoui has quit [Quit: belmoussaoui]
<havenwood> hays_: It's a block from the Struct.new
<hays_> im running 2.4 :) not sure I understand how that works.
<havenwood> >> Struct.new :x do; def example; end end
<ruby[bot]> havenwood: # => #<Class:0x41845a58> (https://eval.in/934798)
chouhoulis has quit [Client Quit]
jaequery has joined #ruby
<havenwood> >> Struct.new :x do; def example; 42 end end.new.example
<ruby[bot]> havenwood: # => 42 (https://eval.in/934799)
<hays_> yeah that has a do in it
mostlybadfly has quit [Quit: Connection closed for inactivity]
<havenwood> hays_: i didn't mean to omit the `do`, sorry for the confusion
bronson has quit [Ping timeout: 255 seconds]
<havenwood> mea culpa
<al2o3-cr> hays_: well spotted =)
ResidentBiscuit has joined #ruby
<hays_> just making sure i understand :) novice eyes
<hays_> what i don't understand about that code is if you don't give a block, then wouldn't you have overridden the initializer that allows for :baz and :bar to be initialized the other way?
<havenwood> hays_: I was lazy and didn't try my code, sec.
<hays_> the purpose of this code is nothing, just learning. but im trying to figure out a sensible coding style to hold myself to
<hays_> i like passing blocks to initialize because it creates relatively self-documenting code. whereas passing (non-keyword) args can sometimes feel arbitrary with the order of args
lcarlson has quit [Quit: Leaving]
<havenwood> hays_: I usually only use structs when it's quite straightforward, otherwise a class quickly becomes appealing. I do like the keyword_init style they added in 2.5: https://gist.github.com/havenwood/8629ee099885b9671c89923949be9f0d
<al2o3-cr> another thing i like in 2.5 is Hash#slice
<hays_> im tempted to just pass blocks
guille-moe has joined #ruby
<hays_> but then you get to reimplementing enforcement of mandatory parameters
IJsbrand has joined #ruby
<havenwood> hays_: Yeah, your code was actually totally correct for what you're meaning to do. I do think the slightly-strange seeming constant assignment style is worth it rather than Class.new.
MaksimPinigin has joined #ruby
alfiemax has joined #ruby
Yzguy has joined #ruby
chouhoulis has joined #ruby
guille-moe has quit [Ping timeout: 255 seconds]
r3kz has joined #ruby
Azure has quit [Ping timeout: 255 seconds]
jeffreylevesque has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
ResidentBiscuit has quit [Remote host closed the connection]
Azure has joined #ruby
chouhoulis has quit [Client Quit]
Cork has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 256 seconds]
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
<havenwood> hays_: Here's one that allows both kwargs and block at once, for fun: Foo = Struct.new(:bar, :baz, keyword_init: true) do; def initialize **kwargs; yield self if block_given?; super(to_h.merge(kwargs)) end end; Foo.new(bar: 42) { |f| f.baz = 84 } #=> #<struct Foo bar=42, baz=84>
<havenwood> (Actually check it this time. >.>)
<havenwood> checked**
<hays_> cool
ap4y has joined #ruby
rrutkowski_ has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hays_> i have to be careful of new ruby stuff. some of our installations probably have 2.2 or 2.3
<hays_> 2.5 must be new. i don't even have it on my machine
guardianx has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
guardianx has quit [Client Quit]
Cork has joined #ruby
chouhoulis has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
fmcgeough has joined #ruby
jnyw has joined #ruby
Yzguy has quit [Quit: Zzz...]
Stazer has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<hays_> cool. 2.5 fixes something i always thought was annoying (securerandom)
clemens3 has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
nadir has joined #ruby
bmurt has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnyw has quit [Quit: WeeChat 2.0.1]
Azure has quit [Read error: Connection reset by peer]
Guest29688 has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
Azure has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
Nicmavr has joined #ruby
Nicmavr is now known as Guest2997
alfiemax has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
rrutkowski has joined #ruby
tamouse__ has joined #ruby
nopolitica has joined #ruby
tamouse__ has left #ruby [#ruby]
rrutkowski_ has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
rrutkowski has quit [Quit: rrutkowski]
ap4y has quit [Quit: WeeChat 1.9.1]
rrutkowski has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rrutkowski has quit [Remote host closed the connection]
AJA4350 has quit [Quit: AJA4350]
rrutkowski has joined #ruby
alfiemax has joined #ruby
cschneid_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rrutkowski has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
rrutkowski has joined #ruby
rrutkowski has quit [Client Quit]
theRealGent has joined #ruby
rrutkowski has joined #ruby
Tempesta has quit [Quit: See ya!]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
gizmore|2 has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
rrutkowski has quit [Client Quit]
gizmore has quit [Ping timeout: 256 seconds]
armyriad has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
armyriad has joined #ruby
<hays_> oh, interesting. if I do Foo=Struct.new :bar, I access that with bar, not @bar
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
rrutkowski_ has joined #ruby
<al2o3-cr> hays_: yep, because it creates accessor methods for you :)
rrutkowski has quit [Ping timeout: 256 seconds]
<hays_> but it actually skips making the @foo thing
<hays_> or probably has it somewhere else, since as you said, its wrapped in an accessor
bronson has joined #ruby
raatiniemi has quit [Ping timeout: 276 seconds]
<hays_> i guess that's good form since if there is an accessor, it should probably be used
orbyt_ has joined #ruby
raatiniemi has joined #ruby
<al2o3-cr> aye, to read and write respectively
cdg has joined #ruby
<hays_> this doesn't seem the most portable way to add a binary to a gem: http://guides.rubygems.org/make-your-own-gem/#adding-an-executable
jameser has quit [Read error: Connection reset by peer]
justinfaler has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
<al2o3-cr> why not?
<hays_> it presupposes a unix environment and existence of /usr/bin/env
rrutkowski_ has quit [Quit: rrutkowski_]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 276 seconds]
rrutkowski has joined #ruby
c0ncealed has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
ahrs has quit [Read error: Connection reset by peer]
nicesignal has joined #ruby
mjolnird has quit [Remote host closed the connection]
Sauvin has quit [Ping timeout: 256 seconds]
ahrs has joined #ruby
c0ncealed has joined #ruby
LocaMocha has joined #ruby
<hays_> at least it would seem to
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Quit: I quit]
quobo has quit [Quit: Connection closed for inactivity]
nopolitica has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
af1a7d has joined #ruby
af1a7d has left #ruby ["WeeChat 2.0.1"]
cdg has joined #ruby
Tempesta has joined #ruby
garyserj has quit []
ghoti has quit [Ping timeout: 248 seconds]
jnyw has joined #ruby
r3kz has quit []
rrutkowski has quit [Quit: rrutkowski]
jameser has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
r3kz has joined #ruby
jameser has joined #ruby
sanscoeur has joined #ruby
Guest62716 has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
MaksimPinigin has quit [Quit: My computer went into sleep mode or I turned it off]
cschneid_ has quit [Remote host closed the connection]
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
justinfaler has joined #ruby
justinfaler has quit [Ping timeout: 255 seconds]
jeffreylevesque has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
justinfaler has joined #ruby
cschneid_ has joined #ruby
cdg has joined #ruby
justinfaler has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 276 seconds]
cschneid_ has quit [Ping timeout: 276 seconds]
chocoelho has quit [Ping timeout: 256 seconds]
justinfaler has joined #ruby
orbyt_ has joined #ruby
tastygradient has joined #ruby
govg has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
rrutkowski has quit [Quit: rrutkowski]
alfiemax has quit [Remote host closed the connection]
jaequery has joined #ruby
[spoiler] has quit [Quit: Cheers!]
alfiemax has joined #ruby
thejamespinto has quit [Remote host closed the connection]
thejamespinto has joined #ruby
bronson has joined #ruby
cdg has joined #ruby
alfiemax has quit [Remote host closed the connection]
gix- has joined #ruby
gix has quit [Disconnected by services]
bronson has quit [Ping timeout: 255 seconds]
iamarun has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
tastygradient has left #ruby [#ruby]
mjolnird has joined #ruby
anisha has joined #ruby
Dimik has joined #ruby
QualityAddict has quit [Ping timeout: 256 seconds]
darkhanb_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
epochwolf has quit [Ping timeout: 255 seconds]
n0m4d1c has quit []
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has left #ruby [#ruby]
iceden has quit [Ping timeout: 255 seconds]
Hexian_ has joined #ruby
Hexian has quit [Ping timeout: 276 seconds]
mikhael_k33hl has joined #ruby
epochwolf has joined #ruby
darkhanb has joined #ruby
sanscoeur has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 256 seconds]
iceden has joined #ruby
theRealGent has quit [Ping timeout: 255 seconds]
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
rrutkowski has joined #ruby
aupadhye has joined #ruby
bronson has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
sundhell_away is now known as sundhell
thejamespinto has quit [Remote host closed the connection]
thejamespinto has joined #ruby
thejamespinto has quit [Ping timeout: 256 seconds]
juggler has joined #ruby
cdg has joined #ruby
KeyJoo has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
IJsbrand has quit [Quit: IJsbrand]
rrutkowski has quit [Quit: rrutkowski]
dinfuehr has quit [Ping timeout: 276 seconds]
rrutkowski has joined #ruby
juggler has quit [Remote host closed the connection]
DarkBushido has quit [Quit: ZNC - http://znc.in]
dinfuehr has joined #ruby
oleo has quit [Quit: Leaving]
MaksimPinigin has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
KeyJoo has quit [Ping timeout: 255 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #ruby
<mikhael_k33hl> Is this the proper way to create a logger that logs to a different file for each instance of a class? https://gist.github.com/marzdgzmn/2e0e935f101bcd84a4016bc23df8c4d1
ur5us has quit [Remote host closed the connection]
rrutkowski has quit [Client Quit]
cdg has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 276 seconds]
rrutkowski has joined #ruby
ali_g has joined #ruby
Kugz has joined #ruby
<havenwood> Kugz: Like I was saying in #rubyonrails, those are each serialization formats - Marshal, JSON and YAML.
<havenwood> Kugz: There are multiple reasons why we have so many formats.
<havenwood> Marshal, for example, is Ruby-specific. It's not appropriate for sharing with other languages unless they implement Ruby's Marshal themselves.
<havenwood> JSON is a subset of YAML. JSON is human readable and can't serialize nearly as much as YAML, so it's safer.
cdg has quit [Ping timeout: 276 seconds]
<Kugz> It looks like YAML is escaping the characters or something at the end?
<havenwood> Kugz: those are newlines
<havenwood> it pretty-prints by default
<havenwood> you can get the JSON to do that
<mikhael_k33hl> How do I refer to the instance variable within a class from a module?
<havenwood> mikhael_k33hl: You can just reference them directly inside a module instance method.
<havenwood> Kugz: So you could just eval code, like: 42.inspect #=> "42"
<havenwood> eval "42" #=> 42
eblip is now known as eb0t-
<mikhael_k33hl> havenwood: https://gist.github.com/marzdgzmn/2e0e935f101bcd84a4016bc23df8c4d1 I'm trying to use this module inside a class so I could dynamically assign a new logger for each instance but self refers to the module though
<havenwood> Kugz: But that's ^ extremely dangerous for user input, because they can run any code they want.
<mikhael_k33hl> havenwood: So basically inside a class I have @log = RsyncLogg.assign_logger
<havenwood> Kugz: Also, like Marshal, it doesn't work for sharing data across languages.
<havenwood> Kugz: So we have serialization!
<havenwood> Kugz: One you deserialize your JSON, it no longer matters that it *was* JSON. It becomes Ruby objects once deserialized, pure Ruby.
<Kugz> So does serialization convert the data into a uniform structure, so that no matter what language you use it's Ruby readable?
<havenwood> Kugz: It converts data specifically to text. Plain text.
naprimer3 has joined #ruby
naprimer has quit [Ping timeout: 276 seconds]
<Kugz> Oh, that's easy to understand. When you deserialise, can you specify what format to put it in (Marshal, YAML, JSON etc)?
<Kugz> (I'm Australian so it's autocorrecting the Z to an S sorry hahaha)
<havenwood> Kugz: So the serialized text is in a format, like JSON or MsgPack. When you deserialize it it becomes data in the language you're deserializing it to.
iMadper has joined #ruby
<havenwood> Kugz: So if we serialize something like 42 in any language, it'll be the same String that results.
<havenwood> "42"
<Kugz> Right. So would it convert { "data": { "field" : "example" } } to { data: { field : example } }?
<Kugz> Serialization*
<havenwood> Deserializing it in Ruby will be a Ruby `42` Integer, or in Objective-C it'll be an NSString, etc.
<havenwood> Kugz: JSON happens to be a readable format, so maybe it's a bit confusing. It's just text.
<havenwood> Kugz: Take a look at msgpack for example: https://msgpack.org/index.html
<havenwood> Kugz: MessagePack.dump(42) #=> "*"
<havenwood> Kugz: It turns `42` into `"*"`.
<havenwood> Kugz: Then every language it supports can turn that `"*"` into a native `42`.
<Kugz> Oh, that's a little strange. Why did it choose a wildcard symbol for the number 42?
kapil___ has joined #ruby
<havenwood> Kugz: MessagePack is fast and small. It uses neat tricks to be concise like that and do it quickly.
<havenwood> Kugz: If you jump over to any of those other languages you can see you'll get 42 back.
<havenwood> Or from another Ruby on another machine.
<Kugz> All righty. So if I've got a bunch of JSON formatted data and I serialize it, it will be converted to plain text?
<havenwood> Yes
rrutkowski has quit [Quit: rrutkowski]
<Kugz> I found a method/function that is in built to ruby, I think it was JSON.parse(variable), is that the correct thing to do to serialize it?
<havenwood> Kugz: JSON.load is only meant for trusted data. JSON.parse is correct for external or user data.
<havenwood> JSON.load warning: "BEWARE: This method is meant to serialise data from trusted user input, like from your own database server or clients under your control, it could be dangerous to allow untrusted users to pass JSON sources into it."
<Kugz> So if you're fetching data from an external API it's best to use JSON.parse, but if you've got JSON data on your own server that can't be tampered with and you trust you use JSON.load?
<havenwood> yes
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
<Kugz> So if you serialize data that has something malicious in it (might try to execute a database command for instance), will that stop it from happening?
<havenwood> Then JSON.dump or #to_json if you don't care if it's pretty for human readability, or JSON.pretty_generate if you do care.
bronson has joined #ruby
<havenwood> Kugz: JSON and MessagePack are two serialization formats that don't let you do much of anything, which tends to keep it safe.
<havenwood> Kugz: YAML, a superset of JSON, or Marshal can serialize quite malicious things fairly easily.
dionysus69 has quit [Ping timeout: 256 seconds]
<havenwood> Eval can do *anything*.
<havenwood> #inspect and #eval are more homoiconicity than serialization - it's code *as* data rather than converted to data
<havenwood> i dunno, maybe the conversion is still considered serialization?
<havenwood> Kugz: But yeah, code to text. Text back to code. Varying degrees of danger!
<havenwood> Kugz: JSON.parse is safe with user-supplied JSON.
<havenwood> Kugz: Same with MessagePack.
<Kugz> Well that explains it pretty well :D I'm super sorry but I have to leave work now to catch my train, is there any way to contact you or should I just come back to this IRC channel later on (I don't use IRC much, first time really)
bronson has quit [Ping timeout: 256 seconds]
<havenwood> Kugz: I'm usually around, or someone else can probably help!
<havenwood> Kugz: Later!
<Kugz> thanks so much and have a good night!
yeticry has quit [Ping timeout: 256 seconds]
iMadper has quit [Remote host closed the connection]
yeticry has joined #ruby
ali_g has quit []
roshanavand has joined #ruby
Kugz has quit [Ping timeout: 260 seconds]
ali_g has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
anisha has quit [Quit: Leaving]
sanscoeur has quit [Remote host closed the connection]
russt has quit [Quit: That's all, folks!]
cgfbee has quit [Remote host closed the connection]
<mikhael_k33hl> Does Logger automatically closes an opened file? http://ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html
anisha has joined #ruby
d_kam has joined #ruby
dionysus69 has joined #ruby
<al2o3-cr> mikhael_k33hl: yes.
<al2o3-cr> when you close the logger i mean.
Ishido has joined #ruby
<mikhael_k33hl> al2o3-cr: oh okay, so I'll just define the close method, or is there a better way to do it?
<al2o3-cr> `def close; @logger.close end` something like this
Kugz has joined #ruby
Kugz has quit [Client Quit]
Kugz has joined #ruby
<mikhael_k33hl> al2o3-cr: but if the script is closed via ctrl+c, that method isn't invoked though right?
conta has joined #ruby
ledestin has joined #ruby
<al2o3-cr> right.
Kugz has quit [Client Quit]
iMadper has joined #ruby
russt has joined #ruby
Kero has quit [Ping timeout: 256 seconds]
d_kam has quit [Quit: Be back later ...]
Kero has joined #ruby
<havenwood> trap('SIGINT') { close; exit 130 }
andikr has joined #ruby
Kugz has joined #ruby
<al2o3-cr> hey, that is actually the right code for sigint :)
<al2o3-cr> not many people use that.
<Kugz> havenwood: I'm back! Would it help if I uploaded what code I've got/tried to get my JSON stuff working?
bronson has joined #ruby
d_kam has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
iMadper has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 255 seconds]
<havenwood> Kugz: Have a gist that shows the issue you're running into? I've got to go here in a sec but someone else might be able to help now or I'll check the backlog.
<Kugz> havenwood: I've had a bit of a breakthrough actually in the last 10 minutes, managed to get a single set of data to appear properly! Just need to figure out how to do a each statement for every entry now :D
<havenwood> >> fatal = 128; Signal.list['INT'] + fatal # al2o3-cr, mathy!
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> 130
<havenwood> Kugz: nice!
<Kugz> havenwood: I think there is something wrong with my JSON data that I have saved, when I copied it from the URL given (I only get 10 requests a day, so I thought I would save it locally) but it was all minified. When I copied just one character's worth of data and it wasn't minified, it seemed to work fine? My code editor shows the big list as if it was commented out, whereas the single amount of data is shown formatted and colored
<Kugz> correctly
<Kugz> havenwood: but it's not commented out, the file is 2.4MB so maybe that's an issue hahaha. It's a lot of data!
jameser has joined #ruby
jameser has quit [Client Quit]
yokel has quit [Remote host closed the connection]
alfiemax has joined #ruby
jsaak has quit [Ping timeout: 248 seconds]
jsaak has joined #ruby
mark_66 has joined #ruby
yokel has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
raatiniemi has quit [Read error: Connection reset by peer]
raatiniemi has joined #ruby
minimalism has quit [Quit: minimalism]
deathsparton has joined #ruby
ur5us has joined #ruby
alfiemax has quit [Remote host closed the connection]
iMadper has joined #ruby
Kugz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnyw has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Veejay has quit [Quit: WeeChat 0.4.2]
darkhanb has joined #ruby
jtdoncas has quit [Ping timeout: 276 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
claudiuinberlin has joined #ruby
belmoussaoui has joined #ruby
vondruch has joined #ruby
darkhanb has joined #ruby
InfinityFye has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
Dimik has quit [Ping timeout: 276 seconds]
InfinityFye has left #ruby [#ruby]
alfiemax has joined #ruby
bronson has joined #ruby
Kugz has joined #ruby
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 255 seconds]
deathsparton has quit [Quit: Mutter: www.mutterirc.com]
alex`` has joined #ruby
Kugz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kugz has joined #ruby
Kugz has quit [Ping timeout: 256 seconds]
<mikhael_k33hl> I've created a logger to a file, how do I set it to append logs realtime, it seems that it only appends logs after the process
<al2o3-cr> mikhael_k33hl: try setting sync = true
<al2o3-cr> mikhael_k33hl: you're writing to file right?
<al2o3-cr> if so, something like this; f = File.open('log', blah).tap { |f| f.sync = true }
drewmcmillan has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikhael_k33hl> al2o3-cr: yeah I am, sync = true? where do I set taht?
<al2o3-cr> read above
belmoussaoui has quit [Quit: belmoussaoui]
amatas has joined #ruby
cschneid_ has joined #ruby
ledestin has joined #ruby
roshanavand has joined #ruby
d_kam_ has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
d_kam has quit [Ping timeout: 256 seconds]
<al2o3-cr> mikhael_k33hl: gist what you have.
guille-moe has joined #ruby
John____ has joined #ruby
bronson has joined #ruby
InfinityFye has joined #ruby
<al2o3-cr> mikhael_k33hl: under line 3 add: log_file.sync = true
phaul has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
<mikhael_k33hl> al2o3-cr: thanks
marr has joined #ruby
<al2o3-cr> yw =P
ta_ has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
amatas has quit [Quit: amatas]
thejamespinto has joined #ruby
Mortomes|Work has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus70 has joined #ruby
iMadper has quit [Remote host closed the connection]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus70 is now known as dionysus69
thejamespinto has quit [Ping timeout: 265 seconds]
Beams has joined #ruby
tomphp has joined #ruby
Cavallari has joined #ruby
Serpent7776 has joined #ruby
vichib has quit [Ping timeout: 255 seconds]
vichibit has joined #ruby
<mikhael_k33hl> Anyone using sqlite3 gem? How do you inspect the query inside a statement? https://gist.github.com/marzdgzmn/fc8871857224559e43afde32baa2ee6a
justinfaler has quit [Ping timeout: 256 seconds]
elphe has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
tomphp has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
bkxd has joined #ruby
bkxd has quit [Client Quit]
bkxd has joined #ruby
belmoussaoui has joined #ruby
elphe has quit [Quit: Lost terminal]
belmoussaoui has quit [Client Quit]
ldnunes has joined #ruby
belmoussaoui has joined #ruby
nibbo has joined #ruby
<darix> mikhael_k33hl: that works differently. this is not string replace, the library gets the query with the ???? and the array with params and fills it in. that happens inside the sqlite library
tomphp has joined #ruby
bronson has joined #ruby
tomphp has quit [Client Quit]
bronson has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
amatas has joined #ruby
John____ has left #ruby ["Систем политик аметзит, крэтин щй ваи д ел."]
alfiemax has quit [Remote host closed the connection]
Cavallari has quit [Ping timeout: 256 seconds]
Cavallari has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
AJA4350 has joined #ruby
Cavallari has quit [Ping timeout: 256 seconds]
goatish has joined #ruby
Cavallari has joined #ruby
iamarun has quit [Remote host closed the connection]
TinkerTyper has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
thinkpad has quit [Quit: lawl]
splargle has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
jaruga has joined #ruby
cdg has joined #ruby
KevinSjoberg has joined #ruby
bronson has joined #ruby
aufi has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
thinkpad has joined #ruby
bkxd_ has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
Riddell has quit [Ping timeout: 256 seconds]
nopolitica has joined #ruby
tcopeland has quit [Quit: tcopeland]
Riddell has joined #ruby
fredx has joined #ruby
fredx_ has joined #ruby
fredx_ has quit [Remote host closed the connection]
splargle has joined #ruby
TomyLobo has joined #ruby
r3kz has quit [Quit: Connection closed for inactivity]
Riddell has quit [Changing host]
Riddell has joined #ruby
amatas_ has joined #ruby
KeyJoo has joined #ruby
belmoussaoui has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
d_kam_ has quit [Quit: Lingo: www.lingoirc.com]
s3nd1v0g1us has joined #ruby
KeyJoo has quit [Ping timeout: 256 seconds]
MaksimPinigin has quit [Quit: My computer went into sleep mode or I turned it off]
s3nd1v0g1us has quit [Ping timeout: 265 seconds]
goatish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marens_ has quit [Ping timeout: 255 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
nopolitica has quit [Quit: WeeChat 1.9]
bronson has joined #ruby
goatish has joined #ruby
bkxd_ has quit []
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
thejamespinto has joined #ruby
cdg has quit [Remote host closed the connection]
sepp2k has joined #ruby
thejamespinto has quit [Ping timeout: 264 seconds]
Cavallari has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has joined #ruby
KeyJoo has joined #ruby
KevinSjoberg has joined #ruby
bhaak has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
govg has quit [Ping timeout: 255 seconds]
Mia has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
belmoussaoui has quit [Quit: belmoussaoui]
chocoelho has joined #ruby
cdg has joined #ruby
hfp_work has quit [Ping timeout: 255 seconds]
s3nd1v0g1us has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
rgr has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby
InfinityFye has left #ruby ["Leaving"]
hfp_work has joined #ruby
apparition has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 256 seconds]
Cavallari has quit [Quit: Cavallari]
deathsparton has joined #ruby
deathsparton has quit [Excess Flood]
goatish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has quit [Ping timeout: 255 seconds]
k0mpa has quit [Quit: k0mpa]
k0mpa has joined #ruby
AgentVenom has joined #ruby
Toledo is now known as croberts
ur5us has quit [Remote host closed the connection]
goatish has joined #ruby
cdg has joined #ruby
ta_ has quit [Remote host closed the connection]
fmcgeough has joined #ruby
belmoussaoui has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
troulouliou_div2 has joined #ruby
k0mpa has quit [Ping timeout: 272 seconds]
Guest62716 has joined #ruby
silpy has joined #ruby
QualityAddict has joined #ruby
splargle has quit [Ping timeout: 276 seconds]
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
k0mpa has joined #ruby
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
LastWhisper____ has joined #ruby
govg has joined #ruby
nowhereman_ has quit [Ping timeout: 256 seconds]
chocoelho has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
bronson has joined #ruby
rippa has joined #ruby
chocoelho has joined #ruby
nowhereman_ has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
<Trel> If I want to host gems on an internal site to be freely downloadable by people who can reach the site, is there any document with the requirements I would need to set that up?
thejamespinto has joined #ruby
<Trel> I'm not familiar with ruby or the wordings to know what to search for to find this
banisterfiend has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
deathsparton has joined #ruby
tomphp has joined #ruby
deathsparton_ has joined #ruby
tomphp has quit [Client Quit]
depesz has left #ruby ["WeeChat 1.9"]
deathsparton has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
deathsparton_ has quit [Ping timeout: 264 seconds]
<darix> Trel: "gem server"
<darix> is the search term you are looking for
<darix> Trel: gem help server
<darix> as a basic implementation
<Trel> Thanks, I'll google on that. I probably only need a basic one since it'll likely be a docker container
tomphp has joined #ruby
Rapture has joined #ruby
Press10 has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 276 seconds]
zigzig has quit [Remote host closed the connection]
netherwolfe has joined #ruby
tomphp has quit [Client Quit]
zigzig has joined #ruby
splargle has joined #ruby
deathsparton_ has joined #ruby
orbyt_ has joined #ruby
chocoelho has quit [Ping timeout: 256 seconds]
KevinSjoberg has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
tomphp has joined #ruby
Ishido has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
tomphp has quit [Client Quit]
deathsparton_ has quit [Remote host closed the connection]
endemic has quit [Quit: Leaving.]
apparition has quit [Quit: Bye]
oleo has joined #ruby
moei has joined #ruby
jtdoncas has joined #ruby
gnufied has joined #ruby
cschneid_ has joined #ruby
jtdoncas has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 276 seconds]
cdg has quit [Remote host closed the connection]
Cavallari has joined #ruby
oleo has quit [Quit: Leaving]
pastorinni has joined #ruby
silpy has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
troys has joined #ruby
sundhell is now known as sundhell_away
cdg has joined #ruby
crankharder has joined #ruby
deathsparton_ has joined #ruby
jeremy04 has joined #ruby
tomphp has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Client Quit]
Beams has quit [Quit: .]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
deathsparton_ has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
pilne has quit [Quit: Quitting!]
bronson has joined #ruby
Beams has joined #ruby
jtdoncas has joined #ruby
QualityAddict has quit [Ping timeout: 256 seconds]
Guest62716 has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
jtdoncas has quit [Ping timeout: 256 seconds]
QualityAddict has joined #ruby
KeyJoo has quit [Ping timeout: 248 seconds]
quobo has joined #ruby
cschneid_ has joined #ruby
Cavallari has quit [Quit: Cavallari]
Guest62716 has joined #ruby
linduxed has quit [Quit: WeeChat 2.0.1]
conta has quit [Ping timeout: 256 seconds]
linduxed has joined #ruby
chocoelho has joined #ruby
synthroid has quit [Remote host closed the connection]
ur5us has joined #ruby
Xiti has quit [Quit: Xiti]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
dviola has joined #ruby
ta_ has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
KeyJoo has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
belmoussaoui has joined #ruby
ali_g1 has joined #ruby
rcs has quit [Quit: ZNC - http://znc.in]
cdg has quit [Ping timeout: 276 seconds]
synthroid has joined #ruby
jtdoncas has joined #ruby
jeffreylevesque has quit [Ping timeout: 276 seconds]
kossae has joined #ruby
Ltem has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
GremL1N2 has quit [Ping timeout: 256 seconds]
yokel has quit [Ping timeout: 240 seconds]
ali_g has quit [Quit: Connection closed for inactivity]
oleo2 has joined #ruby
yokel has joined #ruby
jeffreylevesque has joined #ruby
deathsparton_ has joined #ruby
deathsparton_ has quit [Excess Flood]
deathsparton_ has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
mark_66 has quit [Remote host closed the connection]
oleo2 has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 256 seconds]
enrique_webwork has joined #ruby
ghoti has joined #ruby
<enrique_webwork> I get an error -bash: rbenv: command not found
<enrique_webwork> how do I remove this from the bash
bronson has joined #ruby
troys is now known as troys_
bronson has quit [Ping timeout: 256 seconds]
<havenwood> enrique_webwork: Are you typing?: rbenv
synthroid has quit [Ping timeout: 265 seconds]
<havenwood> enrique_webwork: Tell us more about when you get the error. Do you mean to have rbenv installed?
synthroid has joined #ruby
jtdoncas has joined #ruby
bhaak has joined #ruby
dionysus69 has joined #ruby
justicefries has joined #ruby
Toggi3 has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has joined #ruby
cdg_ has joined #ruby
minimalism has joined #ruby
cdg_ has quit [Remote host closed the connection]
cdg_ has joined #ruby
troys_ is now known as troys
Xiti has joined #ruby
roshanavand has joined #ruby
chocoelho has quit [Ping timeout: 256 seconds]
cdg has quit [Ping timeout: 276 seconds]
dhodgkin has joined #ruby
<havenwood> alias rbenv="echo rbenv: command found"
<adaedra> :trollface:
* dminuoso pokes havenwood with an oversized costate comonad coalgebra.
<dminuoso> havenwood: I recently learned about comonads, what a trivial but amazing notion! :)
<havenwood> I guess a troll alias should always unalias itself, and start with a space, to hide tracks.
<havenwood> alias rbenv="echo rbenv: command found && unalias rbenv"
<havenwood> dminuoso: Comonads in Ruby! \o/
* havenwood ponders what a comonad is over coffee
alfiemax_ has joined #ruby
<dminuoso> havenwood: A monad with its arrows reversed.
<dminuoso> Instead of: `m a -> (a -> m b) -> m b` you have `w a -> (w a -> b) -> w b`
<dminuoso> Which should tell you what a comonad is about.
<dminuoso> Im quite curious whether just staring at the type will bring you the revelation.
mtkd has quit [Ping timeout: 248 seconds]
<dminuoso> And equivalently instead of `m (m a) -> m a` you get `m a -> m (m a)` and `m a -> a`
deathsparton_ has quit [Quit: Mutter: www.mutterirc.com]
Riddell has quit [Ping timeout: 240 seconds]
<enrique_webwork> <havenwood> the only refference of the rbenv is in the $PATH
<dminuoso> or rather `w a -> w (w a)` and `w a -> a`
<enrique_webwork> I get the error right after I login
chouhoulis has joined #ruby
<adaedra> Check your ~/.bashrc and ~/.bash_profile
<havenwood> enrique_webwork: It's likely in one of your dotfiles. What adaedra said.
<enrique_webwork> all clean
<adaedra> ~/.profile ?
<havenwood> enrique_webwork: Check more dotfiles.
<enrique_webwork> no sign of of rbenv in those files
Riddell has joined #ruby
mtkd has joined #ruby
<adaedra> In related file in /etc?
<adaedra> files*
deathsparton_ has joined #ruby
deathsparton_ has quit [Excess Flood]
<havenwood> enrique_webwork: what OS?
deathsparton_ has joined #ruby
<dminuoso> havenwood: Essentially it models problems that somehow calculate values based on some "neighborhood", which is what that (w a -> b) is about. So given some large data structure `w a`, and some function that knows how to operate on a (usually) local neighborhood `w a -> b`, it applies it to the entire thing.
<enrique_webwork> no sign of rbenv in any of the /etc/ files
<havenwood> enrique_webwork: Did you check?: /etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profile and /etc/bash.bashrc?
<enrique_webwork> root@host ~]# $PATH
<enrique_webwork> -bash: /root/.rbenv/bin:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin:/root/.rbenv/bin:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin:/root/.rbenv/bin:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin:/root/.rbenv/bin:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin:/root/.rbenv/bin:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin
<dminuoso> So things like image filters, automata
<enrique_webwork> so it's in the $PATH
<dminuoso> things you sadly never do in ruby
<havenwood> enrique_webwork: Do you see where it's being added to path?
<havenwood> dminuoso: mmmm
<enrique_webwork> no can't find it
<enrique_webwork> in my ~/bash_profile >> PATH=$PATH:$HOME/bin
<dminuoso> havenwood: and because of that things like `w a -> a` make sense, which simply extracts the current "focus/pivot point"
<havenwood> enrique_webwork: What OS are you on? Linux? MacOS or BSD?
darkhanb has joined #ruby
<dminuoso> and equivalently it can simply use `w a -> w (w a)` to replace each point with its neighborhood
Riddell has quit [Ping timeout: 256 seconds]
Riddell has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<havenwood> enrique_webwork: I'd like to suggest commands but don't know whether to give you GNU or BSD.
ali_g1 has quit [Remote host closed the connection]
<enrique_webwork> gnu
<enrique_webwork> thx
<havenwood> enrique_webwork: Have `locate` installed? Try a: locate rbenv
<enrique_webwork> yes
Serpent7776 has quit [Quit: Leaving]
<enrique_webwork> .rbenv is in one of the cPanel accounts home dir
synthroi_ has joined #ruby
synthroid has quit [Ping timeout: 248 seconds]
<enrique_webwork> locate rbenv
kies has quit [Ping timeout: 255 seconds]
jtdoncas has joined #ruby
aufi has quit [Quit: Leaving]
chouhoulis has quit [Remote host closed the connection]
Zamyatin has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
deathsparton_ has quit [Ping timeout: 255 seconds]
Yzguy has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
Beams has quit [Quit: .]
Yzguy has quit [Quit: Cya]
bronson has joined #ruby
bmurt has joined #ruby
konsolebox has joined #ruby
chocoelho has joined #ruby
raatiniemi has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
raatiniemi has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
tomphp has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
netherwolfe has quit [Quit: Leaving]
justinfaler has joined #ruby
goatish has quit [Quit: Textual IRC Client: www.textualapp.com]
guille-moe has quit [Ping timeout: 256 seconds]
jtdoncas has joined #ruby
andikr has quit [Remote host closed the connection]
justinfaler has quit [Ping timeout: 276 seconds]
coderead has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
jtdoncas has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
orbyt_ has joined #ruby
akryll has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
kossae has quit [Remote host closed the connection]
aphprentice has joined #ruby
coderead has quit [Ping timeout: 240 seconds]
kossae has joined #ruby
kossae has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
alfiemax_ has quit [Remote host closed the connection]
_aeris_ has quit [Ping timeout: 272 seconds]
_aeris_ has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
havenwood has joined #ruby
havenwood has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
workmad3 has joined #ruby
oleo has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
workmad3 has quit [Ping timeout: 256 seconds]
sameerynho has joined #ruby
Dimik has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
jaruga has quit [Quit: jaruga]
belmoussaoui has joined #ruby
tamouse__ has joined #ruby
tamouse__ has left #ruby [#ruby]
rh10 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<rh10> hey. guys, what is the best book to start work with ruby? for just beginner (i've never work with)
Azure has joined #ruby
raynold has joined #ruby
akkad is now known as Ober
bronson has joined #ruby
enrique_webwork has left #ruby ["Leaving"]
<rh10> if there are some free books, it will be cool :)
bronson has quit [Ping timeout: 260 seconds]
guille-moe has quit [Ping timeout: 248 seconds]
<havenwood> rh10: Check the channel topic for a list of books!
<havenwood> rh10: Are you just new to Ruby or to programming altogether?
<havenwood> rh10: Brand new folk tend to like Chris Pine's Learn to Program (which I believe has some earlier editions free online).
<havenwood> rh10: https://goo.gl/wpGhoQ
<rh10> havenwood, thanks!
<rh10> havenwood, absolutely new
<havenwood> rh10: Welcome!
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
chocoelho has quit [Quit: Konversation terminated!]
<rh10> akryll, sorry, did not see instantly. thanks too
* rh10 has to change some color in irc client
<havenwood> akryll: Have you checked out TruffleRuby?
zigzig has quit [Remote host closed the connection]
<havenwood> akryll: Also, Roda!
zigzig has joined #ruby
<havenwood> (Saw your Rails convo.)
<akryll> haha i already chosen techtopia to get back into ruby after all these years
<akryll> what did you think of that discussion man?
<havenwood> I just skimmed it, but I love talking Ruby performance!
<havenwood> akryll: CRuby has really had a nice focus on performance lately. Some of the neat JIT work might land soon, which give a great performance for memory tradeoff when that works for you.
<havenwood> akryll: JRuby continues to be production-ready and fast, when you have the memory and can spare the startup time.
<akryll> im glad i stayed in here to see you say this
<havenwood> akryll: TruffleRuby uses SVM to startup impressively fast, and then Graal for high level JIT.
<havenwood> It's not production ready for Rails yet, but actually runs almost everything and it seems like they're closing in!
fusta has quit [Ping timeout: 255 seconds]
<havenwood> It's a lot of fun to contribute to as well, since the core team is super active, give great feedback and much of it is implemented in Ruby.
<akryll> what is svm?
LocaMocha has quit [Ping timeout: 256 seconds]
<havenwood> akryll: SubstrateVM. It's an Oracle Labs research project that was recently open sourced.
<havenwood> "Using the SVM it is possible to ahead-of-time compile TruffleRuby and the Graal dynamic compiler to a single, statically linked native binary executable, that has no dependency on a JVM, and does not link to any JVM libraries."
<havenwood> akryll: The research areas are particularly exciting: https://github.com/graalvm/truffleruby/issues/343#issuecomment-318866606
<akryll> i just wanted to know if the community is still actively improving performance options for ruby and rails and you've let me know exactly that rails is perfectly fine to get into right now, appreciate it
<havenwood> akryll: Rails is doing great stuff. They're starting to focus more on performance.
ryzokuken has joined #ruby
<havenwood> akryll: Ruby has a huge focus on it across different implementation teems.
<havenwood> akryll: Roda takes the performance crown, for Rack adapters - being fast and light.
<havenwood> akryll: The fastest thing in Ruby-land is actually on the mruby front, because they embed it in Nginx and then add caching for more speed.
dviola has quit [Quit: WeeChat 2.0.1]
<havenwood> akryll: http://roda.jeremyevans.net/
<havenwood> akryll: http://ngx.mruby.org/
<havenwood> akryll: ngx_mruby 360k, roda 180k and rails 20k - to give an idea on relative Hello World JSON performance: https://www.techempower.com/benchmarks/previews/round15/#section=data-r15&hw=ph&test=json
fusta has joined #ruby
chocoelho has joined #ruby
ryzokuken has quit [Ping timeout: 240 seconds]
pastorinni has quit [Ping timeout: 276 seconds]
troys is now known as troys_
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
desperek has joined #ruby
Riddell has quit [Ping timeout: 256 seconds]
sepp2k has quit [Quit: Leaving.]
Riddell has joined #ruby
ta_ has joined #ruby
r3kz has joined #ruby
Riddell has quit [Changing host]
Riddell has joined #ruby
bronson has joined #ruby
kies has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
xpt has joined #ruby
amatas_ has quit [Quit: amatas_]
splargle has quit [Ping timeout: 256 seconds]
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KevinSjoberg has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
justinfaler has joined #ruby
rh10 has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
kossae has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Riddell has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 276 seconds]
Mia has quit [Ping timeout: 240 seconds]
conceivably has joined #ruby
mtkd has joined #ruby
Riddell has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
troys_ is now known as troys
SCHAPiE has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
WA9ACE has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<conceivably> Hi. I'm trying to call a new instance of each class whose file is in a given directory. In order to get a list of the classes within the folder /foo/bar/baz, I'm trying to use Foo.constants, Foo::Bar.constants, Foo::Bar::Baz.constants. However, mysteriously only some of the constants available in the respective modules get shown. Any ideas of what might be going on would be greatly appreciated :)
SCHAPiE has joined #ruby
claudiuinberlin has joined #ruby
Toggi3 has quit [Ping timeout: 255 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rikkipitt has joined #ruby
claudiuinberlin has joined #ruby
<conceivably> Ah never I mind. I guess those constants weren't available from the point of call.
linetrace has quit [Read error: Connection reset by peer]
KeyJoo has quit [Ping timeout: 248 seconds]
drewmcmillan has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
dviola has joined #ruby
bronson has joined #ruby
linetrace has joined #ruby
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
felideon has joined #ruby
felideon has left #ruby ["WeeChat 0.4.3"]
bronson has quit [Ping timeout: 256 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
LastWhisper____ has joined #ruby
miskatonic has joined #ruby
Toggi3 has joined #ruby
pocketprotector has quit [Read error: Connection reset by peer]
Guest62716 has quit [Ping timeout: 276 seconds]
akryll has left #ruby [#ruby]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
dwickern has joined #ruby
Rouge has joined #ruby
TomyLobo2 has joined #ruby
justinfaler has quit [Ping timeout: 255 seconds]
rikkipitt has quit [Ping timeout: 255 seconds]
musl has joined #ruby
steveAT has joined #ruby
TomyLobo has quit [Ping timeout: 256 seconds]
jtdoncas has joined #ruby
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
ur5us has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
steveAT has quit [Quit: bye]
<Trel> Ok, I'm stumped, what would cause a gem to show up with 'gem list' but not with 'gem which <gemname>'
synthroi_ has quit []
Stazer has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
bronson has joined #ruby
mtkd has joined #ruby
Ishido has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 248 seconds]
elementaru has quit [Read error: Connection reset by peer]
justinfaler has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has quit [Remote host closed the connection]
dwickern has quit [Remote host closed the connection]
musl has quit [Quit: WeeChat 2.0.1]
amatas has quit [Quit: amatas]
crankharder has quit [Read error: Connection reset by peer]
oleo has quit [Remote host closed the connection]
oleo has joined #ruby
alfiemax has joined #ruby
oleo has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 255 seconds]
oleo has joined #ruby
Ishido has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
Ltem has quit [Quit: good night]
cschneid_ has quit [Remote host closed the connection]
crazyeddy has quit [Ping timeout: 240 seconds]
moei has quit [Quit: Leaving...]
kapil___ has joined #ruby
rgr has quit [Quit: rgr]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmillan has joined #ruby
IJsbrand has joined #ruby
plexigras has quit [Ping timeout: 255 seconds]
troys is now known as troys_
dhodgkin has quit [Ping timeout: 265 seconds]
Xiti has joined #ruby
naprimer3 has quit [Quit: Leaving]
plexigras has joined #ruby
wnd has quit [Ping timeout: 240 seconds]
wnd has joined #ruby
desperek has quit [Quit: xoxo]
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
cschneid_ has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
Hien has quit [K-Lined]
bronson has joined #ruby
zwliew has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
chocoelho has quit [Ping timeout: 260 seconds]
WA9ACE has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
troys_ is now known as troys
bronson has quit [Ping timeout: 276 seconds]
WA9ACE has joined #ruby
WA9ACE is now known as Guest50787
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tcopeland has quit [Quit: tcopeland]
sameerynho has joined #ruby
Rouge_ has joined #ruby
Rouge has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
shinnya has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
QualityAddict has quit [Ping timeout: 276 seconds]
QualityAddict has joined #ruby
sameerynho has quit [Ping timeout: 255 seconds]
alex`` has quit [Ping timeout: 256 seconds]
r3kz has quit [Quit: Connection closed for inactivity]
Guest50787 is now known as WA9ACE
jp has quit [Read error: Connection reset by peer]
pilne has joined #ruby
oleo has quit [Remote host closed the connection]
oleo has joined #ruby
n0m4d1c has joined #ruby
TomyLobo2 has quit [Ping timeout: 256 seconds]
jp has joined #ruby
goatish has joined #ruby
haylon_ has joined #ruby
Azure has quit [Remote host closed the connection]
DTZUZU has quit [Quit: WeeChat 1.9]
Azure has joined #ruby
naprimer has joined #ruby
belmoussaoui has joined #ruby
Kugz has joined #ruby
Kugz has quit [Client Quit]
TomyLobo2 has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
nadir has joined #ruby
lembron has quit [Ping timeout: 240 seconds]
paulrf has joined #ruby
alfiemax has joined #ruby
cdg_ has quit [Remote host closed the connection]
haylon_ has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 256 seconds]
kossae has quit [Remote host closed the connection]
kossae has joined #ruby