bronson has quit [Remote host closed the connection]
<Nobun>
so it should be invoked when ruby calls CoreVxa.new
<matthewd>
I'd be adding a prinft/cout/whatever to confirm
<Nobun>
well... I will add it... wait a moment...
ramfjord has quit [Ping timeout: 240 seconds]
<Nobun>
yes, mattew, I confirm
<Nobun>
printf("INIT is executed\n");
<Nobun>
I added this in cv_init
<Nobun>
and it is displayed
<matthewd>
Oh!
<matthewd>
You're setting the ivar on the class, not the instance
wutschkef has quit [Ping timeout: 240 seconds]
<matthewd>
You want rb_iv_set(self, ...etc)
Cohedrin_ has joined #ruby
ta has quit [Remote host closed the connection]
<Nobun>
YEAH. now it works
<Nobun>
wow... it was painful :(
<Nobun>
now trying to convert in c++
<Nobun>
I saw that using module never allocates the variables like it happened here
<Nobun>
so why I tried to switch to an actual class, but I faced the same problem. In this case using self seems working.
<Nobun>
now trying to switch to the complete sample code I was trying yesterday evening
rrichardsr3 has joined #ruby
<matthewd>
If you want a single global instance, maybe you do want a module.. but you can worry about that later
webguynow has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.7]
ur5us has quit [Remote host closed the connection]
<Nobun>
yes... after all my main concern is that the code will work... even if not perfect
jenrzzz has quit [Ping timeout: 240 seconds]
wutschkef has joined #ruby
lexruee has quit [Ping timeout: 255 seconds]
<Nobun>
hmm any idea how to return properly, for example, @projdir ?
tcopeland_ has joined #ruby
lexruee has joined #ruby
<Nobun>
in a different function than initialize() I mean
tcopeland has quit [Ping timeout: 248 seconds]
tcopeland_ is now known as tcopeland
<Nobun>
I'd like to implement the getters() and try if they work (together with instance_variable_get wich are used only for testing purposes)
<matthewd>
return rb_iv_get(self, "@projdir"); ?
graft has quit [Ping timeout: 246 seconds]
<Nobun>
hmm... yeah... I feel a bit stupid... I could gess it, this time :/
<matthewd>
I'd generally advise against implementing in C(++) that which you can implement in ruby, fwiw
<Nobun>
matthewd, you are right, but this class is needed becouse is a sort of workaround
<Nobun>
unlike python and lua, infact, I didn't see any clear way to allow script to comunicate to the application
wutschkef has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
<Nobun>
this way the script will be executed and the CoreVxa class (or module) will be used to obtain informations from application and to return informations to application
<matthewd>
Implementing a class in C++ to talk to the rest of the C++ app is perfectly reasonable
<matthewd>
That's not the part I was questioning -- just the part where you start manually implementing instance variable accessors
<Nobun>
ah
paranoicsan has joined #ruby
<Nobun>
can I do it in ruby... but how? As long as I am defining the CoreVxa class in C++ how I supposed to add method to the same class in Ruby? (sorry but I have a bit difficulties on understanding this language)
<Nobun>
that should be very nice if I can avoid to implement some additional C++ code
<Nobun>
that I could avoid using few lines of Ruby instead
cschneid_ has joined #ruby
<Nobun>
ah but perhaps I can simply make a derived class....
<matthewd>
class CoreVxa; attr_accessor :projdir; end
<Nobun>
ah ok
<Nobun>
and I can add this into Ruby even if CoreVxa is already defined?
<matthewd>
You can just reopen the class and add methods at will
<matthewd>
Yeah
<matthewd>
(equally for something already defined in ruby code, or for core classes like String)
<Nobun>
ah ok. so you can have multiple class SameClassName to add features at different points... interesting
cschneid_ has quit [Ping timeout: 255 seconds]
wutschkef has joined #ruby
<Nobun>
but, however, to communicate with application (for the retval the script should be set in corevxa... for that value it is better to have a setter and not an attr_accessor so I can convert VALUE to string
<Nobun>
(a setter in C++, I mean)
neon_icon has quit [Ping timeout: 260 seconds]
wutschkef has quit [Ping timeout: 258 seconds]
rabajaj has joined #ruby
enko has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enko has joined #ruby
anisha has joined #ruby
uneeb has quit [Read error: Connection reset by peer]
enko has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
wutschkef has joined #ruby
Burgestrand has quit [Quit: Closing time!]
wutschkef has quit [Ping timeout: 248 seconds]
elsevero has quit [Quit: elsevero]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
KevinSjoberg has joined #ruby
aupadhye has joined #ruby
milardovich has quit []
cdg has joined #ruby
wutschkef has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jtdoncas_ has quit [Quit: WeeChat 1.5]
wutschkef has quit [Ping timeout: 258 seconds]
cdg has quit [Ping timeout: 258 seconds]
uZiel has joined #ruby
neon_icon has joined #ruby
jenrzzz has joined #ruby
waveprop has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrm has quit [Read error: Connection reset by peer]
nicolai86 has quit [Remote host closed the connection]
jrm has joined #ruby
KevinSjoberg has joined #ruby
nicolai86 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
KevinSjoberg has quit [Read error: Connection reset by peer]
mjolnird has joined #ruby
<waveprop>
does ruby support functional paradigm
wutschkef has joined #ruby
kliq has joined #ruby
elsevero has joined #ruby
alex`` has joined #ruby
wutschkef has quit [Ping timeout: 240 seconds]
elsevero has quit [Client Quit]
paranoicsan has quit [Quit: paranoicsan]
elcontrastador has joined #ruby
wutschkef has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
quobo has joined #ruby
Mon_Ouie has joined #ruby
<Nobun>
matthewd: I cannot find a good way to convert RUBY string to c_string
<matthewd>
StringValueCStr(v)
uZiel has joined #ruby
someuser has joined #ruby
<matthewd>
Or StringValuePtr + StringValueLen if it could contain \0
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wutschkef has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
Guest97372 has joined #ruby
aufi has joined #ruby
marcux has joined #ruby
rrichardsr3 has joined #ruby
personofinterest has joined #ruby
nicolai86 has quit [Remote host closed the connection]
wutschkef has joined #ruby
rrichardsr3 has quit [Ping timeout: 246 seconds]
sysvalve has joined #ruby
nicolai86 has joined #ruby
wutschkef has quit [Ping timeout: 255 seconds]
cschneid_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
nicolai86 has quit [Remote host closed the connection]
bronson has joined #ruby
Cohedrin_ has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
aufi_ has joined #ruby
chmurifree is now known as chmuri
nicolai86 has joined #ruby
Guest97372 has quit [Ping timeout: 264 seconds]
aufi has quit [Ping timeout: 255 seconds]
Dimik has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 255 seconds]
guille-moe has joined #ruby
dminuoso_ has joined #ruby
wutschkef has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<personofinterest>
so i have an array with several items in it. when i call that array with a loop and push it to a defined method the array value is encapsulated in ["$arrayvalue"]. i've tried to strip it and chomp it but no luck. any ideas?
<elomatreb>
You should show your code, that sounds a little vague
<personofinterest>
error: /usr/lib/ruby/2.3.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): http://["google.com"]/test (URI::InvalidURIError)
<elomatreb>
You're splatting with the * in the args, it would contain all arguments given to the method but the last
<elomatreb>
You only have one, so it's a one-element array. Remove the *
redondos has joined #ruby
<personofinterest>
thanks for that
nicolai86 has quit [Remote host closed the connection]
<personofinterest>
it's working :D any recommendations to boost speed? i'm new to ruby.
<elomatreb>
If you're interacting with a website, your script is most likely not the bottleneck
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
stoffus has joined #ruby
wutschkef has joined #ruby
Silthias1 has joined #ruby
Beams has quit [Quit: .]
Silthias has quit [Ping timeout: 246 seconds]
Beams has joined #ruby
wutschkef has quit [Ping timeout: 240 seconds]
enterprisey has quit [Read error: Connection reset by peer]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has joined #ruby
wutschkef has joined #ruby
marcux has quit [Ping timeout: 258 seconds]
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
Beams has quit [Quit: .]
wutschkef has quit [Ping timeout: 258 seconds]
raynold has quit [Quit: Connection closed for inactivity]
quobo has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
goyox86_ has joined #ruby
kliq has quit [Ping timeout: 240 seconds]
paranoicsan has joined #ruby
lxsameer has joined #ruby
Beams has quit [Client Quit]
aspiers has joined #ruby
Beams has joined #ruby
goyox86_ has quit [Client Quit]
<Nobun>
#python
<Nobun>
sorry...
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wutschkef has joined #ruby
claudiuinberlin has joined #ruby
minimalism has quit [Quit: minimalism]
claudiuinberlin has quit [Client Quit]
claudiuinberlin has joined #ruby
astrobunny has quit [Remote host closed the connection]
kassav_ has joined #ruby
charliesome has joined #ruby
wutschkef has quit [Ping timeout: 240 seconds]
simmaniac has joined #ruby
hogetaro has joined #ruby
tvw has joined #ruby
quobo has joined #ruby
dminuoso_ has quit [Quit: Reconnecting]
dminuoso_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sysvalve has quit [Ping timeout: 255 seconds]
sysvalve has joined #ruby
simmaniac has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
aufi_ has quit [Ping timeout: 258 seconds]
hogetaro has quit [Quit: Leaving...]
wutschkef has joined #ruby
simmaniac has joined #ruby
ramfjord has joined #ruby
kassav__ has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
wutschkef has quit [Ping timeout: 255 seconds]
ams__ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
kassav_ has quit [Ping timeout: 248 seconds]
aufi_ has joined #ruby
drbrain has quit [Ping timeout: 248 seconds]
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
wutschkef has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias1 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
marr has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
wutschkef has quit [Ping timeout: 255 seconds]
waveprop has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
drbrain has quit [Ping timeout: 240 seconds]
<waveprop>
do i still need to read the pixake book before POODR if i did the codecademy course?
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
kliq has joined #ruby
hgost has joined #ruby
Silthias has joined #ruby
bruno- has joined #ruby
wutschkef has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
wutschkef has quit [Ping timeout: 255 seconds]
TomyLobo has joined #ruby
cschneid_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has quit [Quit: .]
cschneid_ has quit [Ping timeout: 240 seconds]
rgr has joined #ruby
blackmesa has joined #ruby
charliesome has joined #ruby
wutschkef has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
rgr_ has joined #ruby
bronson has joined #ruby
blackmesa1 has joined #ruby
wutschkef has quit [Ping timeout: 255 seconds]
rgr has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 240 seconds]
rahul_bajaj has joined #ruby
blackmesa1 has joined #ruby
blackmesa1 has quit [Remote host closed the connection]
ldepandis has joined #ruby
dionysus69 has joined #ruby
naprimer has quit [Quit: Leaving]
wutschkef has joined #ruby
kliq has quit [Ping timeout: 246 seconds]
blackmesa1 has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
wutschkef has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
mark_66 has quit [Read error: Connection reset by peer]
neon_icon has quit [Ping timeout: 260 seconds]
mark_66 has joined #ruby
naprimer has joined #ruby
GodFather has joined #ruby
mattp_ has joined #ruby
maleghast has joined #ruby
wutschkef has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
kassav_ has joined #ruby
kassav__ has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby
ur5us has quit [Remote host closed the connection]
FahmeF has joined #ruby
FahmeF has quit [Client Quit]
bkxd has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
ldepandis has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
Seenox has joined #ruby
apparition has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 248 seconds]
maleghast has quit [Read error: Connection reset by peer]
apparition has joined #ruby
Coming_ has joined #ruby
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
Coming has quit [Ping timeout: 255 seconds]
drbrain has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
someuser has quit [Ping timeout: 260 seconds]
marr has joined #ruby
pagios has quit [Disconnected by services]
tcopeland has quit [Quit: tcopeland]
claudiuinberlin has joined #ruby
rahul_bajaj has quit [Quit: Leaving]
cschneid_ has joined #ruby
ldnunes has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
Defenestrate has quit [Quit: This computer has gone to sleep]
Defenestrate has joined #ruby
Defenestrate has quit [Client Quit]
<leah2>
oO ruby 2.5 wants to reverse backtraces?
Defenestrate has joined #ruby
Defenestrate has quit [Client Quit]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away is now known as paranoicsan
Defenestrate has joined #ruby
<dminuoso_>
leah2: Yes.
<dminuoso_>
leah2: And it's quite sensible. Often you end up with quite long backtraces, and it's most useful to the see the most recent stack frame immediately, rather than always being required to scroll.
<leah2>
of all things to steal from python, why this :P
<leah2>
i want to see the last output and then the error...
<dminuoso_>
leah2: You still get that. ;-)
<leah2>
no?
<leah2>
i see the output and dozen lines of stacktrace and then the error?
<dminuoso_>
Ah I see what you mean. From what I can see you can still get the old behavior back though.
<leah2>
yeah, i guess
synthroid has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
<dminuoso_>
Hash#transform_keys is sexy, I've been doing that in numerous applications.
synthroi_ has joined #ruby
<dminuoso_>
obj = obj.transform_keys(&toInternal) that looks just right.
cschneid_ has joined #ruby
<tbuehlmann>
to_internal?
<dminuoso_>
tbuehlmann: Hah no, poor naming on my side I guess.
cttttt has quit [Ping timeout: 240 seconds]
<tbuehlmann>
javascript-land I assume
cttttt has joined #ruby
<dminuoso_>
How long will you be making fun of me for enjoying JavaScript? :(
synthroid has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby
charliesome has quit [Remote host closed the connection]
charliesome has joined #ruby
<tbuehlmann>
sorry buddy
fyrril has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
bronson has joined #ruby
mostlybadfly has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
kliq has joined #ruby
nahra` has quit [Remote host closed the connection]
simmaniac is now known as sysvalve
nahra` has joined #ruby
dionysus69 has joined #ruby
nahra` has quit [Remote host closed the connection]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
Burgestrand has quit [Quit: Closing time!]
friday has quit [Changing host]
friday has joined #ruby
paranoicsan is now known as paranoicsan[Away
<noizex>
I encountered some terrible coding that causes a bug when running aggregate sum() on a collection
<dminuoso_>
noizex: Do you have a testcase?
<noizex>
yeah
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noizex>
here is your test case: [19] pry(main)> [BigDecimal('1.0'), BigDecimal('2.0'), ''].sum
<noizex>
TypeError: String can't be coerced into BigDecimal
<noizex>
;)
<noizex>
assuming I can't easily modify the attribute that in some cases is equal '' what would be second best solution? filtering that out? collection can have several thousands entries
bmurt has joined #ruby
paranoicsan[Away is now known as paranoicsan
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John___ has joined #ruby
wutschkef has quit [Ping timeout: 240 seconds]
<dminuoso_>
noizex: The cleanest way would be to have a predicate lambda isEmpty/isNotEmpty
<dminuoso_>
ary.filter(&:isNotEmpty).sum
<dminuoso_>
err
<dminuoso_>
ary.filter(&isNotEmpty).sum
bmurt has joined #ruby
<dminuoso_>
Or ary.reject(&isEmpty).sum
<dminuoso_>
Or don't let it happen in the first place.
<dminuoso_>
bash_n00b: You have a rather old ruby version (which at the time did not ship with JSON out of the box).
<dminuoso_>
bash_n00b: Either install the json gem (which means you also need to require 'rubygems' in your project), but it's probably much better to upgrade to modern Ruby such as 2.4.2.
<bash_n00b>
dminuoso_: ok
<bash_n00b>
thanks
<guymanndude>
Hi, I've developed a Ruby gem. I want to specify that it requires Ruby v2.0 or above. I know how to do this in my .gemspec file, however I'm wondering if there is a convention for showing this in the project's README
mson has joined #ruby
<guymanndude>
like, in my *Install* section, can I just have a bulletpoint or line that says "Requires Ruby 2 or above" ?
<guymanndude>
or is there a better way
yeticry_ has joined #ruby
<dminuoso_>
guymanndude: There's no real convention wrt that. Personally I would not list any dependencies that are already covered in gemspecs
<guymanndude>
ok thanks dminuoso_
<guymanndude>
wrt updating the gemspec with ' spec.required_ruby_version = ">= 2.0.0"
<guymanndude>
do I need to bump up the version on the minor gem then?
<guymanndude>
minor version*
<dminuoso_>
guymanndude: That ruby version is highly likely to be too open.
cschneid_ has joined #ruby
conta has joined #ruby
<dminuoso_>
guymanndude: Ruby has a tendency to break things across minor releases.
yeticry has quit [Ping timeout: 248 seconds]
<guymanndude>
dminuoso_: it's because YAML.safe_load isn't available to Ruby less than v2
chouhoulis has joined #ruby
<dminuoso_>
guymanndude: Yes, but can you promise that it will be compatible to ruby 2.5, 2.6, 2.7, 2.8, an so forth?
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<guymanndude>
I don't imagine Ruby would remove YAML.safe_load in those later versions...at least I hope not
<dminuoso_>
guymanndude: Ah actually its probably fine.
<dminuoso_>
xco: Do you want the quick and dirty solution, or the proper solution?
<xco>
i want both please (for learning purposes)
<xco>
then i can compare and think around it
bmurt has quit [Remote host closed the connection]
<dminuoso_>
xco: Use URI.parse, the resulting object has a #path method, which you can then split using '/'
bmurt has joined #ruby
<dminuoso_>
Then you have a clean way of lensing into the value you want, without any silly regular expressions.
jordanm has joined #ruby
<dminuoso_>
(Or you can use a regular expression against the #path)
<xco>
dminuoso_: i don’t want to use URI
swat2 has joined #ruby
<dminuoso_>
xco: %r{users/(\d+)/books_read} ?
jjaii9 has joined #ruby
<dminuoso_>
xco: %r{/admin/users/(\d+)/books_read} perhaps might be a bit cleaner
lexruee has quit [Ping timeout: 248 seconds]
<dminuoso_>
xco: %r{/admin/users/(?<user_id>\d+)/books_read} if you want a named capture
<xco>
wait
<xco>
i want the numbers only out of the string
elsevero has joined #ruby
<dminuoso_>
That's what this does.
cschneid_ has joined #ruby
lexruee has joined #ruby
<xco>
how do i use it again my string variable?
rabajaj has quit [Remote host closed the connection]
Nobun has quit [Quit: Salve a tutti]
<dminuoso_>
xco: You could technically use #[] and then use magic variables, or better use .match and then use the resulting match object.
sepp2k has joined #ruby
<swat2>
can someone guide me in the right direction of comparing two arrays of hashes ~28k in size. [{id: <int>, code: <int>, imglength: <int>}...] I need to know, what is different between ArrayA and ArrayB (Whats in B that isn't in A, What's in A that isn't in B, or if just the imglength has changed..)
<dminuoso_>
xco: Im a big fan of using named captures, but you can also use unnamed captures (which are then referred to by position).
ptx0 has joined #ruby
rabajaj has joined #ruby
<dminuoso_>
swat2: a - b, b - a
<dminuoso_>
Or mmm.
roshanavand has quit [Quit: Leaving]
<dminuoso_>
That last condition is a bit annoying.
<swat2>
dminuoso_: i must be doing something wrong, I've tried that and it doesnt seem to yield the results i'm expecting
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<swat2>
dminuoso_: the order of the arrays wont always be the same
<dminuoso_>
swat2: #- does not care about the order of arrays.
<dminuoso_>
swat2: #- gives you the complement of two arrays (treating them as sets)
Derperperd has quit [Changing host]
Derperperd has joined #ruby
wutschkef has joined #ruby
<dminuoso_>
*gah. Difference
<swat2>
hmm
<dminuoso_>
So A - B is mathematically equivalent to A \ B.
<swat2>
i'll check my dataset
griffindy has joined #ruby
<swat2>
>.< ... looks like I went full retard :(
griffindy has quit [Client Quit]
<dminuoso_>
swat2: Do you care about the position in the array at all?
<swat2>
my .map used wrong field :(
<dminuoso_>
ah. :)
<swat2>
dminuoso_: nope I don't.. its to Queue images that have changed in size
<dminuoso_>
swat2: Consider using Set instead of Array then.
<dminuoso_>
Though keep in mind that a set cant have duplicates.
John___ has quit [Read error: Connection reset by peer]
<swat2>
writing something for my friend to pull images out of his ERP system which stores them in MSSQL, and Uploads them to his website against his shopping cart software
<swat2>
I wrote it for him years ago using PHP scripts, but new version of software and shopping cart, different structure, felt like i wanted to give it a birthday and write in ruby as a learning experience for me too
<swat2>
Not really looked into Set's... will google that
cdg has quit [Remote host closed the connection]
wutschkef has quit [Ping timeout: 255 seconds]
im0nde has quit [Ping timeout: 255 seconds]
im0nde_ has joined #ruby
guymanndude has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
ferr has quit [Read error: Connection reset by peer]
ferr1 has joined #ruby
<swat2>
dminuoso_: so are you suggesting I could just do arraya.to_set ?
im0nde_ is now known as im0nde
<dminuoso_>
swat2: naah, I wouldn't generate an array to begin with :p
<swat2>
and the same w/ arrayb and then compare them thatway ?
<dminuoso_>
Or just ignore it and use arrays away.
<swat2>
so instead of using a .map, on my Model I could just do ProductImageMap.all.to_set
polishdub has joined #ruby
amirite has joined #ruby
bronson has joined #ruby
cschneid_ has joined #ruby
jrafanie has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
eaxxae has joined #ruby
simmaniac has joined #ruby
<dminuoso_>
swat2: There's little point to coerce an array to set unless you wanted the special behavior that set gives you.
eaxxae has quit [Client Quit]
<swat2>
wise words, I'm coercing the data into an array of hashes by means of a .map to get the data in a way it can be compared
cschneid_ has quit [Ping timeout: 258 seconds]
<swat2>
so if using Set is a better option that's more flexible, then I'm all ear..err eyes
bronson has quit [Ping timeout: 248 seconds]
Rapture has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
eaxxae has joined #ruby
amirite has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
rfoust has quit [Ping timeout: 258 seconds]
tcopeland has joined #ruby
wutschkef has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has joined #ruby
cschneid_ has joined #ruby
claudiuinberlin has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
<swat2>
dminuoso_: Thank you. With your asurance that I was on the right track, I've found and fixed the two errors in my code. hope you have a great day/night :)
swat2 has quit [Quit: WeeChat 0.4.2]
uZiel has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
dminuoso_ has quit [Ping timeout: 240 seconds]
simmaniac has quit [Ping timeout: 240 seconds]
sysvalve has joined #ruby
wutschkef has quit [Ping timeout: 240 seconds]
FrostCandy has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
kculpis has joined #ruby
kculpis has quit [Max SendQ exceeded]
kculpis has joined #ruby
amirite has joined #ruby
paranoicsan has quit [Ping timeout: 248 seconds]
kculpis has quit [Max SendQ exceeded]
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Client Quit]
kculpis has joined #ruby
Beams has quit [Quit: .]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
naftilos76 has joined #ruby
marr has quit [Ping timeout: 255 seconds]
amirite has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
pygospa has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
dminuoso_ has joined #ruby
wutschkef has joined #ruby
naftilos76 has quit [Client Quit]
jjaii9 has quit [Read error: Connection reset by peer]
jinie has quit [Ping timeout: 255 seconds]
jjaii9 has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
Beams has joined #ruby
pygospa has joined #ruby
jrafanie has quit [Client Quit]
cschneid_ has joined #ruby
jinie has joined #ruby
jrafanie has joined #ruby
gil_ has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
gusrub has joined #ruby
ferr1 has quit [Quit: WeeChat 1.9.1]
shinnya has quit [Ping timeout: 248 seconds]
gil_ has joined #ruby
eaxxae has quit []
enko has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
InfinityFye has joined #ruby
ych has joined #ruby
ych has quit [Remote host closed the connection]
rippa has joined #ruby
elsevero has quit [Quit: elsevero]
shekhspear has joined #ruby
hs366 has quit [Quit: Leaving]
rabajaj has quit [Quit: Leaving]
aupadhye has joined #ruby
im0nde has quit [Quit: im0nde]
synthroi_ has quit [Remote host closed the connection]
shekhspear has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
shekhspear has joined #ruby
aupadhye has quit [Client Quit]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
cadillac__ has joined #ruby
blackmesa1 has joined #ruby
wald0 has joined #ruby
<wald0>
!a = 0.00009885 ; p a
blackmesa has joined #ruby
<wald0>
a -> 9.885e-05 (wtf?)
<wald0>
why my float is not 0.00009885 but this strange value instead?
cadillac_ has quit [Ping timeout: 255 seconds]
cadillac__ is now known as cadillac_
blackmesa1 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<havenwood>
wald0: It's a notation that means the same number.
rrichardsr3 has quit [Quit: He who dares .... wins.]
blackmesa has joined #ruby
ramfjord has joined #ruby
uZiel has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
lagweezle_away is now known as lagweezle
conta has joined #ruby
Mekkis has quit [Ping timeout: 264 seconds]
wutschkef has quit [Ping timeout: 255 seconds]
anisha has quit [Quit: This computer has gone to sleep]
agent_white has quit [Quit: bbl]
Mekkis has joined #ruby
wutschkef has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
<cagomez>
why use a private attr_reader? I just notice that it allows us to access a variable using `foo` instead of `@foo`. am I glossing over some semantics/context?
Danny has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Danny is now known as Guest6096
kahra has joined #ruby
<fChanX>
The book "Well-Grounded Rubyist" is good.
wutschkef has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
bmurt has joined #ruby
Guest6096 has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
<dminuoso_>
fChanX: Yes it quite is.
<dminuoso_>
I keep recommending it, but I've never read it.
* dminuoso_
pokes a hole into baweaver
Danny1 has joined #ruby
DTZUZO has joined #ruby
wutschkef has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<adaedra>
Please stop making holes in our operators, dminuoso_.
ahrs has quit [Remote host closed the connection]
<fChanX>
I would do the same lol
Mon_Ouie has joined #ruby
shekhspear has quit [Remote host closed the connection]
ahrs has joined #ruby
shekhspear has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
wutschkef has quit [Ping timeout: 258 seconds]
thinkpad has joined #ruby
shekhspear has quit [Remote host closed the connection]
<ruby[bot]>
havenwood: # => {"address"=>"0x40be3da0", "type"=>"DATA", "class"=>"0x40a5ebc4", "struct"=>"proc", "references"=>["0 ...check link for more (https://eval.in/877462)
uZiel has quit [Remote host closed the connection]
hahuang65 has quit [Client Quit]
<havenwood>
dminuoso_: clearly we need an ObjectSpace.load
<dminuoso_>
Clearly.
thinkpad has quit [Ping timeout: 248 seconds]
<dminuoso_>
havenwood: Using ObjectSpace.load we could implement the "swipe" action you see folks on the series "24", when somebody says "Give me your terminal", and they just swipe it across screens.
shekhspear has quit [Ping timeout: 255 seconds]
rprimus has quit [Quit: leaving]
Authenticator has joined #ruby
claudiuinberlin has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmccann has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmccann_ has quit [Quit: fmccann_]
fmccann has joined #ruby
fmccann_ has joined #ruby
elsevero has joined #ruby
<Kanibal>
dman[m]: is that some sort of perl code (?)
fmccann has quit [Client Quit]
<Kanibal>
*dminuoso
<Kanibal>
sorry
jrafanie_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
nowhere_man has quit [Remote host closed the connection]
snath has joined #ruby
fmccann_ has quit [Ping timeout: 255 seconds]
wutschke1 has quit [Ping timeout: 255 seconds]
snath has left #ruby [#ruby]
jrafanie has quit [Ping timeout: 248 seconds]
sunrunner20 has quit [Read error: Connection reset by peer]
kliq has joined #ruby
sunrunner20 has joined #ruby
nowhere_man has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
<dminuoso>
Kanibal, much better.
<dminuoso>
Kanibal, it's Befunge.
<Kanibal>
Befunge?
<Kanibal>
ah
bkxd has quit [Ping timeout: 246 seconds]
Ishido has quit [Remote host closed the connection]
<Kanibal>
I guess it's the Ackermann function !1 (ofc I didn't just Google that, who'd do that!)
<zeroDivisible>
Folks, just wondering - I'm getting random IOErrors when writing to socket when talking to redis. Suspecting something on the OS level. How could I approach debugging this? Would you have any hints maybe?
<zeroDivisible>
*IOError (closed stream)
<matthewd>
zeroDivisible: What exactly are the errors, and what's your ruby version?
<matthewd>
If it's 2.4.1 or 2.3.4, try upgrading to the latest point release
<zeroDivisible>
Ruby 2.1.1, when using Redis Ruby gem. It mostly works ok, but very rarely I'm getting IOError, which I can't explain - and there's nothing in Redis server logs.
<zeroDivisible>
*2.1.10 - can't use newer sadly :(
Ishido has joined #ruby
<matthewd>
Hmm.. I'm not sure whether that version has the bug I'm thinking of. I would've guessed it was too old, but maybe not.
<dminuoso>
zeroDivisible, are you in a multithreaded environment?
<dminuoso>
zeroDivisible, and what's the underlying redis-rb gem version?
<zeroDivisible>
re: multithreaded - very much so. Not a webapp but a bit complex multithreaded / multiprocess job framework (mostly grown in house). 3.3.3 is the version of the redis-rb gem.
<zeroDivisible>
I'm basically trying to understand how I can approach debugging this as my knowledge isn't the greatest in that area.
<matthewd>
I don't think that involved IOErrors -- in fact, I think IOErrors were the *solution* to that problem
sysvalve has quit [Quit: Leaving]
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso>
matthewd, yes precisely. If that solution is to throw IOErrors...
<dminuoso>
matthewd, I've seen numerous guides all pointing at casually catching IOError everywhere just in case the connection was cut
<dminuoso>
Maybe I just got my head twisted, I don't know.
<matthewd>
zeroDivisible: I wouldn't imagine your OS is lying to you (though then again, if you're stuck on an old unsupported ruby, who knows what your surrounding environment looks like)
<matthewd>
zeroDivisible: I would think the more probable explanations are that the connection really has gone away, or ruby's confused
troys_ is now known as troys
<matthewd>
2.1.10 was released at the same time as 2.2.7, which definitely has a bug that manifests in this way ("ruby's confused") -- so it's fairly possible it did get the same backport
Rapture has quit [Ping timeout: 248 seconds]
<zeroDivisible>
matthewd: Makes sense. I was wondering whether something on the OS level could be causing those issues, but the rest of the env is relatively up to date. I'll try poking around a bit here, our current appraoch is to just catch those errors, fully disconnect and reconnect. It works, it just feels bad :/ Will at least try to strace to see how sockets are getting closed / open.
cagomez has quit []
<dminuoso>
zeroDivisible, it
<dminuoso>
it's possible but unlikely
lxsameer has quit [Ping timeout: 246 seconds]
<zeroDivisible>
matthewd: would you have a reference to the bug somehwere handy? I'll google if not.
jhass has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 248 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
herbmillerjr has quit [Remote host closed the connection]
MrBusiness has joined #ruby
chouhoulis has quit [Remote host closed the connection]
herbmillerjr has joined #ruby
roshanavand has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
Defenestrate has joined #ruby
amirite has joined #ruby
goyox86_ has quit [Ping timeout: 240 seconds]
biberu has quit []
gizmore|2 is now known as gizmore
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fyrril has quit [Quit: Leaving]
enterprisey has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
ElDoggo has quit []
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
rabajaj has quit [Quit: Leaving]
kliq has quit [Ping timeout: 260 seconds]
bvcosta has quit []
Defenestrate has quit [Quit: Leaving]
enterprisey has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
alex`` has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
goyox86 has quit [Quit: goyox86]
gheegh has joined #ruby
minimalism has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
tcopeland has quit [Quit: tcopeland]
bronson has joined #ruby
jphase has quit [Remote host closed the connection]
Azure has quit [Quit: Oops.]
jphase has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
fmcgeough has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
AxelAlex has joined #ruby
blackmesa has quit [Quit: WeeChat 1.9.1]
mr_sourcerer has quit [Remote host closed the connection]
shekhspear has quit []
SeepingN has joined #ruby
konsolebox has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Azure has joined #ruby
QualityAddict has joined #ruby
emulator3 has quit [Ping timeout: 240 seconds]
TomyLobo has quit [Ping timeout: 255 seconds]
amirite has quit [Remote host closed the connection]
amirite has joined #ruby
marcux has joined #ruby
Ropeney has joined #ruby
<zeroDivisible>
matthewd: thank you for this. I'll try to dig deeper there.
jenrzzz has quit [Ping timeout: 255 seconds]
amirite has quit [Ping timeout: 255 seconds]
<matthewd>
zeroDivisible: If you can artificially reproduce the problem, maybe you can test with a newer ruby, even if you can't deploy / run your full app on it
sepp2k has quit [Quit: Leaving.]
wutschkef has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
wutschkef has joined #ruby
jenrzzz has joined #ruby
troys is now known as troys_
goyox86 has joined #ruby
jordanm has quit [Remote host closed the connection]
TomyLobo has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
mson has joined #ruby
workmad3 has joined #ruby
thinkpad has joined #ruby
n35xdxb0 has joined #ruby
tcopeland has joined #ruby
mynameisdebian has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
goyox86 has quit [Quit: goyox86]
troys_ is now known as troys
elsevero has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
goyox86_ has joined #ruby
<mynameisdebian>
I was trying to install Rails on a server that has Ruby 2.0.0 installed. It told me, "Rails requires Ruby version something", so I researched the issue and found that I am supposed to install Rails 4.2. In attempting to do so I am now being told that Nokogiri requires Ruby 2.1. I know it's sort of a "thing" with Ruby that there never be a way to set things up without resolving multiple issues, but is there maybe a way to
<mynameisdebian>
install Rails and have it resolve the dependencies itself, or to know what version I am supposed to install? I'm pretty sure people were using Rails under Ruby 2.0.0. It seems incredibly unsophisticated that the installer that knows my version of Ruby is too low for Rails should also know before even starting that it is also too low for Nokogiri. Does anyone know how I can get a Rails environment installed without fuss?
elsevero has joined #ruby
<mynameisdebian>
Unfortunately I'm more into writing programs and web apps than I am into learning Ruby internals. I would have thought a language designed to be easy would not be difficult to install? Unfortunately that is almost never the case. How does a Rails developer set up a dev environment?
<mynameisdebian>
unfortunately I cannot go above Rails 2.0.0
<baweaver>
Ruby 2.0 is also multiple years old and long since out of band for support.
<mynameisdebian>
well, that's what Amazon EC2 supports on their Amazon Linux AMI
<baweaver>
Can't?
<mynameisdebian>
I don't believe I can upgrade.
<baweaver>
You can.
<baweaver>
You have shell access to EC2 instances to run things like Chef and friends, or really even a bash script in initscript
jobewan has quit [Ping timeout: 240 seconds]
<baweaver>
or just bake a new AMI to deploy from so you don't have to bother with that
<mynameisdebian>
So, what is the command? I tried "yum install ruby -y" and it told me I have the latest version
AndBobsYourUncle has joined #ruby
<baweaver>
but that may be a bit beyond you starting out
<baweaver>
See that link up there?
<baweaver>
Ubuntu is based on Debian which is close enough to CoreOS which is based on CentOS that that guide should work.
<baweaver>
Short version: your problem is Redhat blows at keeping things up to date, and that trickles down from RHEL6 -> CentOS -> CoreOS (EC2 AMI Base)
imode has joined #ruby
<baweaver>
Well, maybe not 6. I think 6 was 1.8.6
<baweaver>
Then you _really_ would have had some fun there
agent_white has joined #ruby
naprimer2 has joined #ruby
<havenwood>
mynameisdebian: This isn't particularly Ruby-related, but don't use Amazon Linux.
<mynameisdebian>
I could wipe out Amazon's default install of Ruby and start over with RVM or something like that, but my whole thing here was to get a development environment up and running quick. I chose the Amazon AMI because it included Ruby. I guess I'm mostly confused that it's so hard to simply install Rails with what I already have. I have Ruby 2.0.0 which Rails supports. It should be easy to get Rails running on it
<havenwood>
mynameisdebian: Why are you using Amazon Linux?
<baweaver>
In general use the newest version of things available, not necessarily what your OS has in its packages (packages are out of date most of the time)
<havenwood>
mynameisdebian: Amazon Linux doesn't include many nice, up-to-date packages nor does it have the stability of intentionally-ancient CentOS.
<mynameisdebian>
havenwood: simply because it had Ruby already installed. I would normally use Debian but I thought I was being clever using Amazon's features and that installing Rails would be a breeze.
<baweaver>
Ruby 2.0.0 has been EOL for years now.
<havenwood>
mynameisdebian: Fedora or Archlinux will treat you better.
polishdub has quit [Quit: leaving]
<havenwood>
mynameisdebian: They have solid installs of modern Ruby.
<havenwood>
And install gems for the local user by default.
<havenwood>
Or even OpenSUSE, there are lots of options.
<havenwood>
I'd recommend avoiding Amazon Linux.
mynameisdebian has quit [Read error: Connection reset by peer]
naprimer has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<baweaver>
havenwood: went and scared them off
<havenwood>
oops!
* havenwood
puts on softer gloves
<baweaver>
in general I agree though, CoreOS is crappy
mynameisdebian has joined #ruby
<mynameisdebian>
I'm not sure if I'm just ranting here.. It just seems really strange that a command which would have installed Rails back when Ruby 2.0.0 was not EOL would not give me all kinds of problems. It seems like the Rails installer has some "logic" to it, yet never produces the obvious result
<mynameisdebian>
I guess it's more complicated than that
<havenwood>
mynameisdebian: Ruby 2.0 is past end-of-life. Use an operating system that supports modern packages if you want to use modern libraries.
<baweaver>
The more removed by time a version is the more likely you get random nonsense like that.
<havenwood>
mynameisdebian: Use a supported version of Ruby!
<mynameisdebian>
okay, so Fedora or Arch then. Not Arch?
<mynameisdebian>
I mean, "Not Debian"?
<matthewd>
Debian should be fine
<Ropeney>
Def don't suggest you be using Arch
* baweaver
doesn't think the distro matters
<baweaver>
All package managers kinda suck at keeping things modern
<havenwood>
mynameisdebian: Debian has a fine Ruby. It's setup for a system install, but you can always install Ruby yourself.
<matthewd>
Anything with a currently-supported ruby available is fine
<baweaver>
RHEL being one of the worst
<baweaver>
and anything that descends from it
<matthewd>
baweaver: Well, RHEL has a separate thing for more recent ruby etc
<mynameisdebian>
Thanks guys, I think that helps
<havenwood>
Ropeney: I'd strongly suggest Arch over Amazon Linux.
<havenwood>
Pick your poison.
<baweaver>
BSD! BSD!
<mynameisdebian>
want to mention that I've used Arch and appreciated never once having a package not work exactly as expected
<matthewd>
mynameisdebian: However, for a development environment, a non-system ruby is generally the recommendation
<Ropeney>
I'd take into account the current difficulties and not suggest an even more difficult distro as an alternative :)
<Ropeney>
my opinion either way
<havenwood>
FreeBSD has a nice, modern Ruby.
<Ropeney>
we all have them
<mynameisdebian>
what does "non-system ruby" mean?
<havenwood>
OpenBSD! \o/
<matthewd>
RVM etc
<baweaver>
install from source
<baweaver>
or rvm
<havenwood>
Jeremy Evens actually maintains the OpenBSD Ruby afaik.
<matthewd>
Basically: RVM, rbenv, or chruby
<baweaver>
or rbenv or whatever else
<mynameisdebian>
system ruby is what the package manager installs then?
<havenwood>
chruby!
<matthewd>
Yes
<Ropeney>
*cough* docker *cough*
amirite has joined #ruby
<mynameisdebian>
I would prefer to use Docker for the experience, if I wasn't so desperate to get my environment up
<havenwood>
mynameisdebian: Typically, yes.
goyox86_ has quit [Ping timeout: 240 seconds]
goyox86___ has joined #ruby
<mynameisdebian>
BTW you guys are all pretty nice compared to some other channels
<wald0>
"order = function.new_order(args)", the variable order should be an array with multiple values, if i use "order << function.new_order(args)", another entry will be added to the array? so i can access to the multiple added orders as p order[1]["value"] ?
goyox86___ has joined #ruby
goyox86___ is now known as goyox86
enterprisey has joined #ruby
<baweaver>
wald0: what now? That's a pretty dense sentance.
<baweaver>
<< is basically pushing something into an array
<baweaver>
= is setting something equal to something else