jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
djbkd has joined #ruby
deric_skibotn has joined #ruby
nobitanobi has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
moretti has quit [Quit: Leaving...]
djbkd has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
seph429 has quit [Quit: ZNC - http://znc.in]
<nobitanobi> Is it correct that whenever a class is defined, all the method cache gets invalidated?
hahuang65 has joined #ruby
<jhass> it was at least, not sure if recent rubies changed something in that regard
<nobitanobi> jhass: I am asking this because I know OpenStruct.new invalidates the method cache, so I decided to just create a class that sets instance variables. But apparently it also invalidates the cache
bgmarx has quit [Remote host closed the connection]
<nobitanobi> so, might go back to use OpenStruct
<nobitanobi> interesting.
<jhass> uh, you're sure it does?
<jhass> would surprise me
houhoulis has quit [Remote host closed the connection]
<nobitanobi> Defining a class/module and OpenStructs
nettoweb has joined #ruby
<jhass> oh, it does that? odd
mark[oz] has quit [Remote host closed the connection]
ss_much has quit [Quit: Erm. Temp?]
<nobitanobi> I am confused too, that means that everytime we define a class or module, the cache gets invalidated :O
fabrice31 has joined #ruby
nettoweb has quit [Max SendQ exceeded]
ss_much has joined #ruby
marr has quit []
nettoweb has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
mark[oz] has joined #ruby
<jhass> well yeah, which is why those DCI via extend approaches never got popular
nettoweb has quit [Max SendQ exceeded]
<nobitanobi> I guess I am missing the point here though. This is just if we are defining the class in run time though (that the cache gets invalidated)
<nobitanobi> right?
<jhass> well, being a bit nitpicky pays of here
nettoweb has joined #ruby
<jhass> so in Ruby there's only parse time and runtime
commondream has quit [Remote host closed the connection]
<jhass> and runtime starts already after the AST was build, it starts right as your class definitions get run
dgutierrez1287 has quit [Remote host closed the connection]
<jhass> class Foo is pretty much just sugar for Foo = Class.new
nettoweb has quit [Max SendQ exceeded]
dgutierrez1287 has joined #ruby
mrsolo has joined #ruby
sevenseacat has joined #ruby
<nobitanobi> ohm
symm- has joined #ruby
<jhass> so, as your program enters runtime all your classes get defined and the toplevel code gets run, that's where method caches start to build up usually
nettoweb has joined #ruby
dfockler has quit []
<jhass> you run into trouble if after that initial phase you continue to define classes
<jhass> (etc)
fabrice31 has quit [Ping timeout: 264 seconds]
<nobitanobi> I see, interesting
<Ox0dea> sevenseacat: We Elixir yet? https://eval.in/377980
datanois1 has quit [Ping timeout: 250 seconds]
<nobitanobi> thanks jhass
nettoweb has quit [Max SendQ exceeded]
yaogwai has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
<sevenseacat> Ox0dea: hah
<nobitanobi> jhass: having that said, in terms of performance, for this example: https://gist.github.com/novito/4906339fca5aa24cf235, the first approach (using a private class), would be more performant, because it does not invalidate the cache correct?
nettoweb has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> yeah
nettoweb has joined #ruby
<nobitanobi> interesting. thanks!
<jhass> though to say it again I didn't check if recent versions changed something about that, like busting only local caches instead of all of them
nettoweb has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
nettoweb has quit [Max SendQ exceeded]
x0f has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
nettoweb has joined #ruby
noethics has joined #ruby
nettoweb has quit [Max SendQ exceeded]
jmhmccr has joined #ruby
<discord> if I have an array of strings, is there an easy way to pass it as arguments to an external program?
NeverDie has joined #ruby
charliesome has quit [Quit: zzz]
x0f has joined #ruby
<jhass> discord: sure, check Kernel#system's array form and more documentation for the arguments it takes at Kernel#spawn
<baweaver> Probably as JSON
jacor has quit [Read error: Connection reset by peer]
jacor has joined #ruby
ReK2 has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 244 seconds]
<discord> baweaver: lol
<discord> jhass: thanks, having a look
<drbrain> Array form is the best form
charliesome has joined #ruby
mdz_ has joined #ruby
<eam> be careful, array form can still create a shell if the array has one element
Cache_Money has joined #ruby
_seanc_ has joined #ruby
datanois1 has joined #ruby
fmcgeough has joined #ruby
<discord> eam: ? Not sure I'm understanding how to pass an array from the documentation
baweaver has quit [Remote host closed the connection]
yaogwai has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
<drbrain> discord: what did you try?
bigkevmcd has joined #ruby
<discord> just reading still
mdz_ has quit [Ping timeout: 252 seconds]
Fooster has quit [Ping timeout: 244 seconds]
<Ox0dea> discord: Why not just splat it?
endash has quit [Quit: endash]
<drbrain> yep ↑ is how you do it
laurentide has joined #ruby
fujimura has joined #ruby
bb010g has joined #ruby
jcromar__ has quit [Ping timeout: 246 seconds]
vikaton has joined #ruby
victorkohl has quit []
<Ox0dea> >> [1].cycle.last
<ruboto> Ox0dea # => undefined method `last' for #<Enumerator: [1]:cycle> (NoMethodError) ...check link for more (https://eval.in/377984)
<Ox0dea> Kinda seems like that should work.
mark[oz] has quit [Remote host closed the connection]
fgo has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
criosphinx has joined #ruby
jackjackdripper1 has joined #ruby
fujimura has quit [Ping timeout: 265 seconds]
symbol has joined #ruby
<discord> Ox0dea: thanks!
symbol has quit [Client Quit]
robustus|Off has joined #ruby
mark[oz] has joined #ruby
robustus|Off is now known as robustus
shock_one has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dnlbyl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has joined #ruby
mark[oz] has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: zzz]
oo_ has joined #ruby
jackjackdripper has quit [Ping timeout: 246 seconds]
<criosphinx> lmfao!!!!!!!!! https://www.youtube.com/watch?v=XR_GkTLg
<criosphinx> lmfao!!!!!!!!! https://www.youtube.com/watch?v=XR_GkTLg
<criosphinx> lmfao!!!!!!!!! https://www.youtube.com/watch?v=XR_GkTLg
criosphinx has quit [Excess Flood]
jpfuentes2 has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mark[oz] has joined #ruby
<eam> discord: recommend something like this: https://github.com/square/mssh/blob/master/lib/mcmd.rb#L29-35
pawel2 has joined #ruby
n80 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
ecksit has joined #ruby
<ecksit> join #rubyonrails
shock_one has quit [Ping timeout: 265 seconds]
<discord> eam: what problem does that address?
ecksit has left #ruby [#ruby]
<eam> discord: it's a method that takes an array of tokenized args and runs them, guaranteed to avoid spawning a shell to tokenize
<eam> handles corner cases such as spaces in filenames
nickfausnight has quit [Quit: Connection closed for inactivity]
psy_ has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
CloCkWeRX1 has joined #ruby
psy_ has joined #ruby
postmodern has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
revoohc has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawel2 has quit [Quit: WeeChat 1.2]
felixjet has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<discord> eam: I was using something like system("/path/to/command",*Array), and Array is never empty. This looks different then what you are discussing.
felixjet_ has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 246 seconds]
ur5us has quit [Read error: No route to host]
ur5us_ has joined #ruby
<eam> that should be fine, mine is more general
mark[oz] has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
vdamewood has quit [Quit: Life beckons.]
<drbrain> Ox0dea: #cycle never stops, so there is no last thing
mark[oz] has joined #ruby
ur5us_ has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 256 seconds]
paulcsmith has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
tvw has quit [Remote host closed the connection]
mark[oz] has quit [Remote host closed the connection]
serivich has joined #ruby
edwinvdgraaf has quit [Ping timeout: 255 seconds]
nb_bez___ has joined #ruby
charliesome has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
kies has joined #ruby
tkuchiki has joined #ruby
hackeron has quit [Ping timeout: 272 seconds]
rodfersou has quit [Remote host closed the connection]
<Ox0dea> drbrain: Right, but the "last" thing could nevertheless be inferred in that particular case.
deric_skibotn has quit [Ping timeout: 252 seconds]
<Radar> That would require special-case knowledge of the object that the Enumerator is for.
<drbrain> Ox0dea: ah, right, unfortunately ruby isn't yet that smart
n80 has quit [Quit: n80]
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> drbrain: Nor GHC, for what it's worth.
coderjk has joined #ruby
<drbrain> I wonder if prolog can do that
tds5016 has quit [Ping timeout: 246 seconds]
coderjk has quit [Client Quit]
Yiota has joined #ruby
<drbrain> … I suppose it also depends on if you think of "last" as "end of the enumeration" or not
djbkd has quit [Remote host closed the connection]
hackeron has joined #ruby
<sweeper> whoa dbrain is here
rubie has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
codelurker has joined #ruby
ght has joined #ruby
djbkd has joined #ruby
mark[oz] has joined #ruby
Lucky__ has joined #ruby
<drbrain> I have rearranged my windows so I can see activity across all the IRC servers I have connected
omegahm has joined #ruby
bricker has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
n3vtelen has quit [Remote host closed the connection]
kinduff has joined #ruby
bootstrappm has left #ruby [#ruby]
ur5us has joined #ruby
rubie has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
chronicrusader has quit []
<Aeyrix> lmao
<Aeyrix> Six screens, filled with nothing but IRC windows.
spider-mario has quit [Ping timeout: 246 seconds]
bosma has quit [Quit: Leaving]
Zamerick has joined #ruby
yqt has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
jackjackdripper has joined #ruby
<sweeper> drbrain: still on magnesium? :P
dnlbyl has joined #ruby
jackjackdripper1 has quit [Ping timeout: 264 seconds]
A205B064 has joined #ruby
RegulationD has joined #ruby
swgillespie has joined #ruby
Zamerick has quit [Ping timeout: 246 seconds]
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dnlbyl has quit [Client Quit]
shazaum_ has joined #ruby
bkxd_ has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
mello has joined #ruby
mello has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unreal_ has joined #ruby
B1n4r10 has joined #ruby
yaogwai has quit [Ping timeout: 246 seconds]
rbowlby has quit [Remote host closed the connection]
ghanima has quit [Ping timeout: 248 seconds]
dnlbyl has joined #ruby
bkxd_ has quit [Ping timeout: 246 seconds]
unreal has quit [Ping timeout: 272 seconds]
dnlbyl has quit [Client Quit]
mello has quit [Ping timeout: 256 seconds]
justintv90 has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
kinduff has quit [Quit: Lost terminal]
Rodya_ has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 256 seconds]
codelurker has quit [Quit: Textual IRC Client: www.textualapp.com]
fujimura has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
rubie has quit [Remote host closed the connection]
willharr_ has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
Limix has quit [Quit: Limix]
rubie has joined #ruby
bronson has quit [Remote host closed the connection]
furoido has joined #ruby
<furoido> anyone familiar with wordmove gem?
yaogwai has joined #ruby
fujimura has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
Channel6 has quit [Quit: Leaving]
fmcgeough has quit [Quit: fmcgeough]
Rodya_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
Fooster has joined #ruby
vin` has joined #ruby
Vile` has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
affenhoden has left #ruby [#ruby]
fmcgeough has joined #ruby
Palmer11 has left #ruby [#ruby]
fmcgeough has quit [Client Quit]
affenhoden has joined #ruby
bahar has joined #ruby
Rodya_ has quit [Quit: Leaving...]
gix has quit [Ping timeout: 258 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
djbkd has quit [Quit: My people need me...]
jackjackdripper1 has joined #ruby
mrmargolis has quit [Remote host closed the connection]
bogdanteleaga has quit [Ping timeout: 258 seconds]
Limix has joined #ruby
jackjackdripper has quit [Ping timeout: 244 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
revoohc has quit [Quit: revoohc]
PlasmaStar has quit [Ping timeout: 256 seconds]
gix has joined #ruby
<drbrain> sweeper: no
PlasmaStar has joined #ruby
fgo has joined #ruby
Seanzie has joined #ruby
bogdanteleaga has joined #ruby
vin` has quit [Ping timeout: 256 seconds]
affenhoden has quit [Quit: leaving]
towski__ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
commondream has joined #ruby
chrishough has quit [Ping timeout: 246 seconds]
mdz_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
vin` has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
mdz_ has quit [Ping timeout: 246 seconds]
Limix has quit [Quit: Limix]
nofxx has joined #ruby
RegulationD has joined #ruby
nofxx__ has quit [Quit: Leaving]
Spami has joined #ruby
greenride has joined #ruby
darkf has joined #ruby
<greenride> Can someone suggest a guide for stepping through Ruby C code? I'd like to step through OpenSSL:Cipher.update.
bahar has quit [Ping timeout: 258 seconds]
shazaum_ has quit [Quit: This computer has gone to sleep]
axilla has quit [Ping timeout: 265 seconds]
skade has joined #ruby
<bnagy> most of that stuff vanishes into openssl pretty fast
davedev2_ has quit [Ping timeout: 252 seconds]
<bnagy> imho just modify the ruby and use printf debugging to get the ruby side, but the real C side you'll need a debugger
RegulationD has quit [Ping timeout: 245 seconds]
MatthewsFace has joined #ruby
pengin has joined #ruby
bruno- has joined #ruby
bahar has joined #ruby
pcfreak30 has quit [Ping timeout: 265 seconds]
Fooster has quit [Ping timeout: 265 seconds]
moretti has joined #ruby
agilenav has joined #ruby
commondream has joined #ruby
<greenride> bnagy: I'm just wondering if there's a guide that allows one to do the following: 1.) Instruct rbenv to compile Ruby with debugging symbols. 2.) Use some IDE to insert breakpoints. 3.) Use gdb to debug.
krz has joined #ruby
jerematic has joined #ruby
<bnagy> ok. No idea.
c_nick has joined #ruby
agilenav has quit [Client Quit]
<bnagy> that won't help you debug openssl though :)
davedev24_ has joined #ruby
jerematic has quit [Read error: Connection reset by peer]
agilenav has joined #ruby
jerematic has joined #ruby
<greenride> The bug is probably of my creation. I just want to see exactly what the inputs and outputs from OpenSSL are.
<c_nick> how to group array items such that all types can be obtained viz ['a1','a2',a3'] => should give a
bruno- has quit [Ping timeout: 256 seconds]
<Ox0dea> greenride: Are you quite sure Ruby isn't already exposing sufficient information?
<noethics> greenride, is this web ssl?
<greenride> No openssl
<noethics> yeah.. i mean are you using it for http encryption
<noethics> or something else
<bnagy> greenride: ok well as I said, imho you'd be better off debugging the openssl code not the ruby code
vin` has quit [Remote host closed the connection]
<bnagy> all that method does is shim ossl_cipher_update_long
<bnagy> so all you'll see in the ruby is conversion to RSTRING etc
<noethics> most things you can test with openssl command line in verbose mode
<noethics> unless youre sure it's your ruby code
<greenride> noethics: How do I test openssl in verbose mode?
<noethics> greenride, depends how you're using openssl
agilenav has quit [Client Quit]
<greenride> noethics: I'm creating a decipher object using OpenSSL:Cipher.new. Then, I'm setting some values and calling cipher.update
<greenride> This is all Ruby code.
failshell has joined #ruby
<greenride> When called, cipher.update is decrypting incorrectly.
<noethics> greenride, find out what the equivalent of whatever you're doing is on the command line
<noethics> and try doing it manually
pengin has quit [Remote host closed the connection]
<noethics> to see if it's your code or our keys or whatever
<noethics> your*
michael_mbp has quit [Excess Flood]
balazs has joined #ruby
<bnagy> the openssl cipher API is such a shitshow :(
<greenride> noethics: That's what I'm trying to do. One step exists between where I'm at and passing command line arguments to OpenSSL.
<noethics> i've never used it
rbowlby has joined #ruby
<bnagy> it's basically the same as using the openssl C api
<bnagy> which is also a shitshow
<greenride> bnagy: Good to know.
David_H__ has quit []
GriffinHeart has joined #ruby
<greenride> To determine what Openssl is being passed, I need to determine what the Ruby C code for OpenSSL::Cipher's instance method update is passing OpenSSL.
<greenride> That's why I need to debug the Ruby code.
<greenride> The Ruby C code.
<noethics> it seems like you don't really know what you're doing
<noethics> go look at the source and see what it does
havenwood has joined #ruby
michael_mbp has joined #ruby
<bnagy> almost nothing
<greenride> That's the source
<greenride> I've looked at it
pcfreak30 has joined #ruby
jerematic has quit [Remote host closed the connection]
<greenride> I want to validate with a debugger
<greenride> My C is a bit rusty.
<bnagy> so it literally just casts to char* and sends it
<bnagy> why are you against breaking on ossl_cipher_update_long?
<greenride> bnagy: Don't know how to do it.
<bnagy> that way you'll actually for real get what openssl is seeing
<greenride> bnagy: bad reason
<greenride> bnagy: bad reason = my reason was bad
bronson has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
hahuang65 has joined #ruby
<greenride> bnagy: To break on ossl_cipher_update_long, I need to build openssl with debug symbols and break on it.
<bnagy> look, shoot me if I'm wrong but I am very confident that the bug is just with your ruby
<bnagy> why do you need debug symbols?
<bnagy> it's an export
Limix has joined #ruby
<greenride> bnagy: I know the bug is 99.9999% with my Ruby code.
<bnagy> I'm staring at this source and I can't think of anything weird ruby could possibly be doing to your input buffer
<bnagy> a ruby string is just a raw byte array
<bnagy> how about we play the "you describe the actual problem you're having" game instead?
<greenride> When I type `decipher.update(my_string)`, what is argc, argv, and self that are passed to ossl_cipher_update?
Joufflu has joined #ruby
<bnagy> c stuff
<bnagy> they're just C's way of seeing the args you gave to the ruby method
<bnagy> rb_scan_args(argc, argv, "11", &data, &str); pulls out the ruby args
<bnagy> in = (unsigned char *)RSTRING_PTR(data); that casts your data arg to *char (byte array in C)
failshell has quit [Remote host closed the connection]
<bnagy> ossl_cipher_update_long(ctx, (unsigned char *)RSTRING_PTR(str), &out_len, in, in_len)) that's the money shot
<greenride> date = my_string in the example?
lordkryss has quit [Quit: Connection closed for inactivity]
bronson has quit [Ping timeout: 245 seconds]
vikaton has quit []
<bnagy> yes
aaeron has quit [Quit: aaeron]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> str is the (weirdly named) optional output buffer arg
<greenride> bnagy: Now, I understand why you were talking about ossl_cipher_update_long. That method doesn't appear in the Ruby 1.9.3 version, which is what I was looking at.
<bnagy> it doesn't? k lemme shift versions
zenguy_pc has quit [Read error: Connection reset by peer]
pepperbreath has joined #ruby
<greenride> it's okay
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<greenride> I'm actually using 2.1.6
<greenride> But, I was looking at 1.9.3.
<greenride> So, your link is better.
<bnagy> oh EVP_CipherUpdate is probably just a wrapper
<greenride> Right
jacobdam has joined #ruby
phutchins has joined #ruby
<noethics> im just curious why youre using ssl?
<noethics> whats the purpose
edwinvdgraaf has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
<greenride> So, what I need to know is what ctx, str, &out_len, in, and in_len are in Ruby variables.
<greenride> noethics: encrypting data
<noethics> well, yeah
<noethics> why ssl though?
baweaver has joined #ruby
<greenride> noethics: Actually, I'm writing specs for someone elses code
<noethics> ic
pepperbreath1 has quit [Ping timeout: 264 seconds]
<bnagy> fwiw if this is not for a school project or "fun" then you shouldn't be using openssl directly
<bnagy> it's awful
<bnagy> like very hard to use safely
<greenride> Our code is a shitshow…
<bnagy> oh
<jacobdam> I am tracing a memory leak problem in ruby 2.1. There are some application objects are kept by an object RubyVM::Env. I am not sure what is RubyVM::Env. Anyone could explain to me what is RubyVM::Env?
<bnagy> well in that case you're using the right lib!
<greenride> It'll be refactored.
jpfuentes2 has joined #ruby
<greenride> if the product is successful
<bnagy> see if you can convince whomever to just use nacl
<bnagy> please
<noethics> or just rsa
<greenride> nacl?
<bnagy> =__= not rsa
nobitanobi has joined #ruby
<noethics> wanna fight about it bnagy
<bnagy> nacl is a good crypto lib
<greenride> I'll look it up
<bnagy> which is very hard to use wrong
<greenride> Thanks for the advise.
<bnagy> symmetric / asymmetric
<noethics> you can implement your own rsa algo
<noethics> in like 10 lines of code
<c_nick> how to group array items such that all types can be obtained viz ['a1','a2',a3'] => should give a
braincra- has quit [Quit: bye bye]
<bnagy> why was this child sent to plague me? What have I done?
deimos has quit [Remote host closed the connection]
bb010g has quit [Remote host closed the connection]
alol___ has quit [Remote host closed the connection]
zzak has quit [Remote host closed the connection]
charles81 has quit [Remote host closed the connection]
cstrahan has quit [Remote host closed the connection]
vcoinminer has quit [Remote host closed the connection]
skmp has quit [Remote host closed the connection]
jeregrine has quit [Remote host closed the connection]
cek has quit [Remote host closed the connection]
MiracleBlue has quit [Remote host closed the connection]
cardoni has quit [Remote host closed the connection]
alxndr has quit [Remote host closed the connection]
bjeanes has quit [Remote host closed the connection]
chrisseaton has quit [Remote host closed the connection]
maZtah has quit [Remote host closed the connection]
djbender has quit [Remote host closed the connection]
harleypig has quit [Remote host closed the connection]
featheryahn_ has quit [Remote host closed the connection]
mark[oz] has quit [Remote host closed the connection]
hellschreiber has quit [Remote host closed the connection]
adambeynon has quit [Remote host closed the connection]
bcavileer has quit [Remote host closed the connection]
manveru has quit [Remote host closed the connection]
firevolt has quit [Remote host closed the connection]
avdi has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
rfv has quit [Remote host closed the connection]
pusewicz has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
n1ftyn8 has quit [Remote host closed the connection]
frem has quit [Remote host closed the connection]
saintcajetan has quit [Remote host closed the connection]
huddy has quit [Remote host closed the connection]
grubernaut has quit [Remote host closed the connection]
Wobbley has quit [Remote host closed the connection]
brb3 has quit [Remote host closed the connection]
<c_nick> :P
pizzaops has quit [Remote host closed the connection]
<bnagy> c_nick: 'a' is not a type, it's a string prefix
phutchins has quit [Ping timeout: 245 seconds]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<noethics> WHATS YOUR PROBLEM WITH RSA bnagy
<bnagy> so many problems
<greenride> bnagy: Do you know what ctx, str, &out_len, in, and in_len are in Ruby variables?
<c_nick> bnagy, yes string prefix sorry
<noethics> LIEK WHAT
AdamMeghji has quit [Remote host closed the connection]
rflot has quit [Remote host closed the connection]
neektza has quit [Remote host closed the connection]
PhilK has quit [Remote host closed the connection]
amitchellbullard has quit [Remote host closed the connection]
troter___ has quit [Remote host closed the connection]
mrsolow has quit [Read error: Connection reset by peer]
akahn has quit [Write error: Connection reset by peer]
dukedave has quit [Remote host closed the connection]
ballPointPenguin has quit [Remote host closed the connection]
Guest12375 has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
ramblinpeck_ has quit [Remote host closed the connection]
KnownSyntax has quit [Remote host closed the connection]
jrunning_ has quit [Remote host closed the connection]
petems has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
culturelabs has quit [Remote host closed the connection]
spastorino has quit [Remote host closed the connection]
zrl has quit [Write error: Broken pipe]
<bnagy> greenride: nothing
rcvalle has quit [Quit: rcvalle]
pengin has joined #ruby
<bnagy> greenride: sorry... str is the out buffer, the rest nothing, they are created by the C wrapper
<sevenseacat> Aria: awesome.
<bnagy> because they need to be passed to openssl
<noethics> >> ['a1','a2'].map { |e| e[0] }
<ruboto> noethics # => ["a", "a"] (https://eval.in/377995)
MatthewsFace has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
platosha has quit [Quit: This computer has gone to sleep]
<bnagy> greenride: in is also something. Sorry. :) in, str are your args
bahar has quit [Quit: ZNC - http://znc.in]
platosha has joined #ruby
nmyster has quit [Quit: X_X]
<bnagy> standard C api is like "here's some data, here's how long it is, here's where to put the output, here's a pointer to an int that you should fill in to tell me how long the output is"
<noethics> bnagy, tell me why you think rsa is bad :(
<greenride> bnagy: As far as I know, I'm passing at least iv, key, and my_string to the Ruby library. At least those three args and maybe more are passed to Openssl, right?
<c_nick> noethics, suppose your array holds values like ARR1 AR2 ARR3 AR4 i want it to give ARR and AR
<bnagy> greenride: no, the iv and key etc are used to create the context
<Ox0dea> c_nick: What are some of your actual values?
<greenride> bnagy: Is there an input other than iv, key, and my_string that comes from Ruby?
<bnagy> noethics: it's hard to use correctly. People screw up the padding all the time.
braincrash has joined #ruby
<c_nick> Ox0dea, here is my array ['WEST123','WEST234','WEST456','WEST567','STAR001','STAR002','STAR003','STAR004','STAR005','STAR006','FPG01','FPG02','FPG03','FPG04','FPG05','FPG06','BCG001','BCG002','BCG003']
<bnagy> plus if you use e=3 there's hijinx
<greenride> bnagy: Like me. I'm almost positive my issue is padding related.
<bnagy> greenride: well that's why I asked a few times about your _actual_ problem rather than what you think will help you solve it
<noethics> >> ['a1','a2'].map { |e| /^[^0-9]*/.match(e)[0] }
<ruboto> noethics # => ["a", "a"] (https://eval.in/377996)
<noethics> >> ['abc1','def2'].map { |e| /^[^0-9]*/.match(e)[0] }
<ruboto> noethics # => ["abc", "def"] (https://eval.in/377998)
<Ox0dea> >> ['WEST123','WEST234','WEST456','WEST567','STAR001','STAR002','STAR003'].group_by { |x| x[/\D+/] }
<ruboto> Ox0dea # => {"WEST"=>["WEST123", "WEST234", "WEST456", "WEST567"], "STAR"=>["STAR001", "STAR002", "STAR003"]} (https://eval.in/377999)
<bnagy> Ox0dea wins
<sevenseacat> nice.
<noethics> Ox0dea is better
<noethics> :(
<noethics> im a ruby shitter unfortunately
bin_005 has joined #ruby
xcesariox has joined #ruby
<c_nick> noethics, you win too :)
GriffinHeart has quit [Remote host closed the connection]
<greenride> bnagy: Here's my actual problem. I'm writing specs. I monkey patched OpenSSL::Cipher with a class_eval within the specs. I monkey patched two methods. random_key and random_iv to return the same values every time. I made sure they are the correct number of bytes. I used these values for both the encryption and decryption. However, when I decrypt, I'm not getting the original values.
mary5030 has joined #ruby
<c_nick> thanks Ox0dea and noethics :)
<Ox0dea> Sure thing.
bahar has joined #ruby
<sevenseacat> 'monkey patched OpenSSL::Cipher' ......*backs away slowly*
<noethics> i am going to just right away stop reading after "monkey patched OpenSSL" and advise you abort mission
<bnagy> greenride: ok, have you written a round-trip POC using the same cipher / mode ?
<greenride> sevenseacat: Only in the specs.
serivich has quit [Ping timeout: 255 seconds]
<sevenseacat> screw 'slowly' *runs away screaming*
serivichi has joined #ruby
caseypatrickdris has quit [Remote host closed the connection]
<greenride> bnagy: POC = ? (Proof of Concept?)
GriffinHeart has joined #ruby
<bnagy> yeah
<Ox0dea> Precipice of Chaos.
benlieb_ has joined #ruby
<bnagy> just write something like the example code in the docs
pengin has quit [Remote host closed the connection]
<bnagy> actually the docs code should work perfectly, just change decipher.key = cipher.random_key
<greenride> bnagy: I did. The code works without monkey patching random_iv and random_key. However, it fails with those two methods monkey patched.
retornam has quit [Ping timeout: 256 seconds]
<bnagy> (and iv also) if your monkey patch is correct then that example code will still work
zenguy_pc has joined #ruby
<jacobdam> I am tracing a memory leak problem in ruby 2.1. There are some application objects are kept by an object RubyVM::Env. I am not sure what is RubyVM::Env. Anyone could explain to me what is RubyVM::Env? And how to remove those references from RubyVM::Env. http://stackoverflow.com/questions/30722395/ruby-leaked-objects-are-referenced-by-rubyvmenv
<bnagy> otherwise, just p decipher.key from ruby, and that should let you debug :)
<greenride> bnagy: I monkey patched random_key and random_iv. You're telling me that I also need to monkey patch iv=?
GriffinHeart has quit [Remote host closed the connection]
affenhoden has joined #ruby
<bnagy> greenride: no
GriffinHeart has joined #ruby
<segfalt> Can we back up to why you’re monkey patching SSL in specs?
<bnagy> I'm saying if you take the example code here http://ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/OpenSSL/Cipher.html and use random_key for decipher as well
<greenride> What do you mean by `just p decipher.key from ruby, and that should let you debug`?
bantic has joined #ruby
<bnagy> then assuming your monkey patch is right then it will still work
mary5030 has quit [Remote host closed the connection]
<bnagy> decipher.key = key <- change to decipher.key = cipher.random_key
<bnagy> if it doesn't work, see what you're getting for decipher.key and why it's not the same as cipher.key
<bnagy> you can do all of that from ruby
retornam has joined #ruby
<greenride> bnagy: That's exactly what I did. I used the code on that page. If I don't Monkey patch random_iv and random_key. The code works. The object I get after encrypting and decrypting is identical to the original object.
vivekananda has joined #ruby
<greenride> bnagy: After Monkey patching random_iv and random_key, the value I get is not identical to the original value.
<bnagy> so check the keys
<greenride> I checked their length.
<bnagy> who cares what you're passing in update?
<bnagy> if the keys aren't the same it's not going to work
<greenride> The keys are identical.
moretti has quit [Quit: Leaving...]
<greenride> iv and key
<bnagy> I don't believe you :)
<greenride> What I wonder is whether there is another random element that I'm not monkey patching.
affenhoden has quit [Quit: Leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mello has joined #ruby
mello has joined #ruby
affenhoden has joined #ruby
<greenride> bnagy: I already checked four or five times because that's the first thing I suspected, but let me check again.
<bnagy> how are you checking?
<bnagy> gist your poc
<greenride> I checked by inserting a debugger statement at every relevant point. This allowed me to test if the Monkey patch was working and to test if the key and iv were identical.
c_nick has quit [Quit: Ex-Chat]
<greenride> I also converted the strings to a byte array using bytes.
<greenride> And testing the numerical values.
nb_bez___ has quit [Quit: Connection closed for inactivity]
<bnagy> show
<greenride> Let me isolate the problem and create something that is easier to read.
krz has quit [Ping timeout: 264 seconds]
<greenride> bnagy: As far as you know, iv and key are the only random elements. Correct?
djbkd has joined #ruby
<Ox0dea> greenride: The universe is non-deterministic.
mdz_ has joined #ruby
ecksit has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<greenride> Ox0dea: measurement is non-deterministic
mello has quit [Ping timeout: 272 seconds]
Rickmasta has joined #ruby
davedev24_ has quit []
<bnagy> greenride: https://eval.in/378003
<bnagy> greenride: yes
ledestin has joined #ruby
mark[oz] has joined #ruby
<bnagy> greenride: ugh actually I don't know if they made key a getter, sec
mdz_ has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
<bnagy> no they didn't sry https://eval.in/378006
AlexAltea has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
fujimura has joined #ruby
WildBamboo-Josh has quit [Read error: Connection reset by peer]
discord has quit [Ping timeout: 245 seconds]
WildBamboo-Josh has joined #ruby
oo_ has joined #ruby
tubuliferous_ has joined #ruby
fujimura has quit [Ping timeout: 255 seconds]
<noethics> <Ox0dea> greenride: The universe is non-deterministic.
<noethics> kek :D
<noethics> SOH WISE
AlexAltea has joined #ruby
<noethics> i think even people who study entropy wouldn't blatantly make that claim
<noethics> unless u wanna fight about it m8
scripore has quit [Quit: This computer has gone to sleep]
oo_ has quit [Ping timeout: 245 seconds]
<bnagy> let's just hope it's true and move on
<bnagy> otherwise I'll be trapped on Phil 101 hell which is probably even worse than being trapped in crypto X/Y hell ;)
<Ox0dea> I was, of course, only poking fun, and I'm glad greenride took it in stride.
n008f4g_ has quit [Ping timeout: 264 seconds]
tubuliferous_ has quit [Ping timeout: 246 seconds]
<noethics> Ox0dea, i didnt read context sry
benlieb_ has quit [Quit: benlieb_]
<noethics> Ox0dea, but yeah something something relativity of wrong
Joufflu has quit [Quit: Peace]
bin_005 has quit [Ping timeout: 258 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 258 seconds]
<greenride> What package supports AES-256-CBC and AES-256-GCM?
EllisTAA has joined #ruby
<EllisTAA> i’m trying to create a quick sort algorithm but something is wrong w/ my algorithm … can anyone take a look @ it https://gist.github.com/ellismarte/71846137adef00c361a7#file-results-rb-L1-L10
Yiota has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
dgutierrez1287 has joined #ruby
furoido has quit [Quit: furoido]
havenwood has joined #ruby
gix has joined #ruby
<bnagy> greenride: openssl?
nedp has quit [Ping timeout: 246 seconds]
<bnagy> I don't know how you pass AAD through the ruby api though
<noethics> CTR or bust
<bnagy> GCM is awesome
<bnagy> rogaway makes a pretty compelling case for un-RFCing all unauthenticated modes, tbh
dgutierrez1287 has quit [Ping timeout: 252 seconds]
bantic has quit [Quit: bantic]
<bnagy> just because the HMAC constructions trip people up
commondream has quit [Remote host closed the connection]
bkxd has joined #ruby
commondream has joined #ruby
arup_r has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nuck has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 255 seconds]
slawrence00 has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
edwinvdgraaf has joined #ruby
<Aeyrix> Is there a shorthand to return the opposite of a boolean?
baweaver_ has joined #ruby
<Aeyrix> return (not) false
Exponential has joined #ruby
<Aeyrix> I can't remember off the top of my head and it's irritating me.
<sevenseacat> ! ?
<Aeyrix> o
<sevenseacat> return !foo
<Aeyrix> lmao
<Aeyrix> Aeyrix confirmed for moron.
balazs has quit [Remote host closed the connection]
<Ox0dea> Careful, though; ! is a method.
<Aeyrix> Hmm?
<noethics> USE UNLESS IF POSSIBLE
<noethics> NOT ! because it has SIDEFEECTS
<Aeyrix> turn your caps down
<Ox0dea> >> class FalseClass; def !; 'lol' end end; !false
<ruboto> Ox0dea # => "lol" (https://eval.in/378015)
<Aeyrix> unless false; return true; else return false;
<Aeyrix> ?
<Aeyrix> That seems super cumbersome.
<Ox0dea> Aeyrix: Consider whether you should explicitly return a boolean value.
<sevenseacat> that makes little sense
<Aeyrix> Ox0dea: I do.
<sevenseacat> the 'use unless if possible'
<Aeyrix> Ox0dea: The method name is `authorized?`.
<Ox0dea> Excellent.
<Aeyrix> So, yes, I want to return a boolean only.
<noethics> sevenseacat, how does it make little sense
<sevenseacat> given we're talking about return values
<noethics> if !a == unless a
<Aeyrix> Jesus Christ
<Aeyrix> that's not easy to read
<Aeyrix> fairly sure you just broke like seven sacred tenets of Ruby
<noethics> does return true unless a work?
<Aeyrix> No, because then it won't return anything if a is true.
<Aeyrix> It'll return nil.
<noethics> o
<sevenseacat> it'll return nil
<noethics> TRU
<bnagy> you can force a return of a bool with !!(thing)
<shevy> he likes caps
<Ox0dea> Aeyrix: noethics (and the style guide) recommend using "unless" instead of "if not".
<bnagy> but it's ew
<Aeyrix> ;_;
<sevenseacat> that i can agree with
baweaver_ has quit [Ping timeout: 256 seconds]
<noethics> i am good at ruby
<noethics> if you didnt know
kp666 has joined #ruby
<Aeyrix> jej
<sevenseacat> lol
bantic has joined #ruby
<baweaver> What the hell did I just read?
<noethics> honestly 99% of my ruby experience comes with rubuto
mrsolo has joined #ruby
<noethics> baweaver, just go with it m8
* baweaver shuffles on
charliesome has quit [Quit: zzz]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<noethics> >> a = false; unless a;
<ruboto> noethics # => /tmp/execpad-daa7afd7547e/source-daa7afd7547e:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/378016)
<noethics> u fukin wut
<greenride> bnagy: Here is a simple example reproducing the problem I'm experiencing. https://dpaste.de/6Xxx
<sevenseacat> next
<Aeyrix> > a = true; return !a;
<Aeyrix> >> a = true; return !a;
<ruboto> Aeyrix # => unexpected return (LocalJumpError) ...check link for more (https://eval.in/378017)
<Aeyrix> Fuck you say?
<shevy> hey workmad3 when you document your ruby code, do you use "honored" notation or "honoured", as example?
<Aeyrix> o rite no def
balazs has joined #ruby
<noethics> shevy is NSA
<noethics> fishing for those location detes
commondream has quit [Remote host closed the connection]
<shevy> noethics I need to find out whether I should drop support for british english
<Aeyrix> lmao
mike1 has joined #ruby
<Aeyrix> I use BritEng.
<Aeyrix> :^)
commondream has joined #ruby
<shevy> Aeyrix you are from the UK?
<Aeyrix> Yes.
<shevy> ok
stardiviner has joined #ruby
<sevenseacat> I use whatever comes out of my keyboard at the time. never really thought about it.
MasterPiece has joined #ruby
mike1 has left #ruby ["WeeChat 0.4.3"]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noethics> sevenseacat, i take you for someone who doesn't use an oxford comma
<sevenseacat> i definitely use oxford commas.
<noethics> ok good
duderonomy has joined #ruby
<noethics> otherwise we would have had a problem
hdev1 has quit [Ping timeout: 276 seconds]
<noethics> non-oxford-comma users are gross
<Ox0dea> YARV uses 89 opcodes, Python 101; what to make of this?
<shevy> a dildo collector?
<shevy> Ox0dea that ruby is simpler than python!
<Ox0dea> Huzzah!
<Ox0dea> (It's not at all, of course.)
j4cknewt has quit [Remote host closed the connection]
<Aeyrix> yes it is
<Aeyrix> self.__self__.init())()()((()<><><>{}{}{}}}{}{}
<Aeyrix> "oh yeah that's called a magic class. ~~METAPROGRAMMING~~"
<Aeyrix> Thanks Python.
commondream has quit [Ping timeout: 252 seconds]
<greenride> noethics: Here's a simplified version of the problem I was encountering with OpenSSL::Cipher. https://dpaste.de/6Xxx
<shevy> I think you may have exaggerated there a little
pepperbreath1 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<greenride> noethics: The code works without the class_eval that is monkey patching.
<Aeyrix> shevy: selfselfselfselfselfselfself
towski_ has joined #ruby
<shevy> you can call self any way in python!
<shevy> like not_self
<Ox0dea> Non-alphanumeric Ruby is Turing-complete.
<shevy> I hate explicit self
minmax has joined #ruby
<greenride> Ox0dea: Is that actually true?
<Ox0dea> It is.
<noethics> greenride, so it works?
<greenride> The code I posted?
<noethics> yeah
beneggett has joined #ruby
RegulationD has joined #ruby
<greenride> noethics: It works if the class_eval is commented out. With the class_eval, it does not work. I want to know why.
pepperbreath has quit [Ping timeout: 255 seconds]
<greenride> That's why I wanted to debug Ruby libraries and openssl and all that.
<noethics> that looks like brainfuck
<Ox0dea> It's a brainfuck interpreter.
<eam> nice
<noethics> ic
anaeem1_ has joined #ruby
polysics has quit [Remote host closed the connection]
psy_ has quit [Remote host closed the connection]
<shevy> Ox0dea is the brain of the channel
<bnagy> greenride: OHHH hahah
<greenride> Ox0dea: That's brilliant.
polysics has joined #ruby
<Ox0dea> It's really very silly, but it's nice to look at.
bantic has quit [Quit: bantic]
<shevy> :)
<shevy> it looks like a neuronal network
<Ox0dea> Fitting.
<greenride> bnagy: https://dpaste.de/6Xxx
mistermocha has joined #ruby
<bnagy> greenride: your monkey patch is wrong I guess
<greenride> bnagy: Do you know why?
<bnagy> I think you're probably not setting the key
<bnagy> sec
RegulationD has quit [Ping timeout: 264 seconds]
<bnagy> greenride: https://eval.in/378032
yfeldblum has quit [Ping timeout: 265 seconds]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
polysics has quit [Ping timeout: 252 seconds]
Exponential has joined #ruby
Evidlo has joined #ruby
<Evidlo> Is a bundle kind of like a python virtualenv?
failshell has joined #ruby
<greenride> bnagy: brilliant - A key can't be set directly with a string…. that's odd.
charliesome has joined #ruby
<greenride> bnagy: Actually… why does your version work?
<bnagy> because I set it manually, not in the monkeypatch
<bnagy> I just use the monkeypatch value
<EllisTAA> when i run my second_sort method i my commandline doesn’t stop running, anyone know what’s going on? https://gist.github.com/ellismarte/277cd531d9124d2a5772#file-merge_sort-rb-L17-L35
<bnagy> there's some weirdness going on with the methods in there though
willharr_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<bnagy> inside your patched method you should be able to call self.key = blah but you can't
jcaho has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 244 seconds]
<greenride> bnagy: You aren't actually using k to set a value. You're using cipher.random_value and decipher.random_value.
MatthewsFace has joined #ruby
<bnagy> greenride: https://eval.in/378042
<bnagy> theeeere we go
<bnagy> no k was leftover from debugging before
<bnagy> the monkeypatch I was messing with just had a derp error. That should be what you want, now
jacor has quit [Ping timeout: 256 seconds]
kstuart_ has joined #ruby
astrobunny has joined #ruby
balazs has quit [Remote host closed the connection]
<greenride> bnagy: Brilliant. Thank you. Now, I get it! https://dpaste.de/At4X
duncannz has joined #ruby
kstuart has quit [Ping timeout: 244 seconds]
<greenride> bnagy: I wasn't monkey patching correctly. random_iv and random_key both generate the random element and set it.
<bnagy> yours isn't a true test
<bnagy> and you don't need to class_eval for this, just open up the class like normal imho
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
msnyon has quit [Ping timeout: 276 seconds]
<bnagy> you're setting the saved key value directly with decipher - that would work with "real" random as well
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aapole has joined #ruby
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
Liothen has joined #ruby
<bnagy> ie you're not testing your monkeypatch
<greenride> bnagy: I used the class_eval because it's inside a method in my rspec tests.
MatthewsFace has quit [Remote host closed the connection]
<greenride> bnagy: Not sure I understand what you mean by not testing my monkeypatch.
<greenride> bnagy: The monkey patch is used for testing.
<bnagy> your code would work without it
<greenride> bnagy: not in the code itself.
<bnagy> there's no point to hardwiring the result of random_key
<bnagy> because whatever the result you save it in key and then set that on decipher
<greenride> bnagy: In this case, you're right.
<greenride> bnagy: The real code I'm testing had more complexity.
houhoulis has joined #ruby
mdz_ has joined #ruby
mdz_ has quit [Remote host closed the connection]
<bnagy> anyway, MORAL OF THE STORY
<bnagy> this was all a massive X/Y waste of time
<bnagy> could have fixed it an hour ago if you'd described the actual problem and supplied code
<bnagy> #justsaying
<bnagy> aes-256-gcm is lowercase, btw ( re earlier q )
<bnagy> I don't know why, blame openssl devs
revath has joined #ruby
Exponential has joined #ruby
arescorpio has quit [Quit: Leaving.]
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
swgillespie has joined #ruby
swgillespie has quit [Max SendQ exceeded]
<greenride> bnagy: Thanks for your help. Will be ready with example code next time I post a question.
<bnagy> np, and don't forget nacl
swgillespie has joined #ruby
<noethics> rsa
<greenride> bnagy: Will definitely recommend that.
casadei has quit [Remote host closed the connection]
<bnagy> noethics: dork.
<greenride> noethics: Using rsa directly isn't much better than using Openssl::Cipher directly. Is it?
<bnagy> rsa isn't even a symmetric cipher, they can't be compared
<noethics> greenride, you can whip up a full rsa impl with no external code with like 10 lines of coad
<bnagy> no you can't
<noethics> i mean with an stdlib
<noethics> yeah you can
<bnagy> you can whip up an incredibly dangerous unpadded version
<noethics> with padding
ferr has joined #ruby
<greenride> You'd have to test whether your padding is exploitable.
<greenride> I'd rather leave that to experts.
<noethics> LIKE ME
<greenride> One can only master so many things.
<noethics> jk bnagy is the true expert
<bnagy> you can do pkcs fairly "easily', but pkcs is a bad idea anyway
<bnagy> but none of it matters because still not a symmetric cipher
Jarboe has quit []
<noethics> HEY MAN I HEARD ACHTERBAHN WAS PRE GOOD
<noethics> USE THAT
shock_one has joined #ruby
mrsolo has joined #ruby
poguez_ has joined #ruby
shock_one has quit [Ping timeout: 276 seconds]
greenride has quit [Quit: Leaving.]
shock_one has joined #ruby
TommyTheKid has left #ruby ["Leaving"]
nobitanobi has quit []
djbkd has quit [Quit: Leaving...]
polysics has joined #ruby
mistermocha has quit [Remote host closed the connection]
_ht has joined #ruby
rubie has quit [Read error: Connection reset by peer]
maletor has joined #ruby
rubie has joined #ruby
iceden has quit [Ping timeout: 245 seconds]
iceden has joined #ruby
Miphix has joined #ruby
fujimura has joined #ruby
Deele has joined #ruby
yfeldblum has joined #ruby
edwinvdgraaf has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
polysics has quit [Ping timeout: 258 seconds]
ohaibbq has joined #ruby
Rickmasta has joined #ruby
_jesterfraud has joined #ruby
jesterfraud has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
jenksy has quit [Ping timeout: 252 seconds]
polysics has joined #ruby
mello has joined #ruby
jenksy has joined #ruby
LicHacker has quit [Ping timeout: 255 seconds]
EllisTAA has quit [Quit: EllisTAA]
lxsameer has joined #ruby
EllisTAA has joined #ruby
yfeldblum has joined #ruby
edwinvdgraaf has quit [Ping timeout: 258 seconds]
<shevy> you are still all caps
mello has quit [Ping timeout: 256 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
bkxd has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
polysics_ has joined #ruby
polysics has quit [Ping timeout: 258 seconds]
joshbamboo1 has joined #ruby
MatthewsFace has joined #ruby
tsujp has joined #ruby
stoogenmeyer__ has joined #ruby
_jesterfraud_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
_jesterfraud has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
WildBamboo-Josh has quit [Ping timeout: 265 seconds]
aganov has joined #ruby
failshell has joined #ruby
tubuliferous_ has joined #ruby
mrsolo has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
yaogwai has quit [Ping timeout: 276 seconds]
polysics_ has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
datanois1 has quit [Ping timeout: 258 seconds]
oo_ has joined #ruby
yaogwai has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
<Radar> How can I make Nokogiri process both a and b in this case? Nokogiri::XML.parse("<a>foo</a><b>bar</b>")
<Radar> Is the answer "wrap it in another element" ?
tubuliferous_ has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
railsraider has joined #ruby
kadoppe has quit [Ping timeout: 265 seconds]
kadoppe has joined #ruby
balazs has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
polysics has joined #ruby
timonv has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
dcarmich has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
CloCkWeRX1 has joined #ruby
ruby-lang084 has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
Iskarlar has joined #ruby
railsraider has quit [Quit: railsraider]
mrsolo has quit [Quit: This computer has gone to sleep]
<baweaver> Radar: poking about, but found this gem: https://github.com/sparklemotion/nokogiri/wiki/Cheat-sheet
CloCkWeRX has quit [Ping timeout: 264 seconds]
<Radar> Neat :)
<baweaver> Not finding anything of note for getting two nodes
tsujp has quit [Quit: tsujp is snoozing]
polysics has quit [Remote host closed the connection]
<baweaver> Unless it magically supports regex for paths
<sevenseacat> I'mma bookmark that, every time nokogiri I have to hammer google
<sevenseacat> *every time I use nokogiri
<baweaver> same
GriffinHeart has quit [Remote host closed the connection]
<baweaver> Though tenderlove is on, might put it by him.
MVPhelp has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
MVPhelp has joined #ruby
<Radar> I think it's an on-purpose thing and the people who are sending us this XML file are idiots.
<sevenseacat> plausible.
<baweaver> I have very colorful words for people that use XML for responses, but I'll save that.
lsmola has joined #ruby
bMalum has joined #ruby
<baweaver> One time I saw Java programmers trying to program using XML because it was 'more flexible'
_seanc_ has quit [Quit: _seanc_]
<baweaver> Got an interesting look when I said just bite the bullet and learn LISP already
ndrei_ has quit [Ping timeout: 258 seconds]
<sevenseacat> json or gtfo
ruby-lang084 has quit [Ping timeout: 246 seconds]
<baweaver> yaml isn't horrid either, but slow on the parse
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
apofis has joined #ruby
skade has joined #ruby
khebbie has joined #ruby
skade has quit [Client Quit]
datanois1 has joined #ruby
<Radar> JSON or gtfo is also my opinion
Exponential has quit [Read error: Connection reset by peer]
Exponent_ has joined #ruby
<Radar> Unfortunately these people are all Serious Business(tm) types and due to the fact that they wear suits to work every day they need to only use XML
<baweaver> Well I have a solution for you Radar
<baweaver> Both of you can get what you want
<baweaver> Know how?
<Radar> Use JSON? :D
multi_io has quit [Ping timeout: 264 seconds]
<Radar> Or are you going to link to that JSON-as-XML service?
EllisTAA has quit [Quit: EllisTAA]
* baweaver backspaces link
<baweaver> ....no
<sevenseacat> hehe
oo_ has quit [Remote host closed the connection]
hahuang61 has joined #ruby
<noethics> one of my clients uses a "web service" that uploads an xml document once a day via ftp to their server, containing ALL of their data. every time. it takes like a minute to parse
<baweaver> JsonX
JohnBat26 has joined #ruby
mrsolo has joined #ruby
multi_io has joined #ruby
<baweaver> everyone wins!
<Radar> :D
oo_ has joined #ruby
<shevy> hmm
<shevy> json and XML
<Radar> noethics: that was one of the options for integrating with these people
<shevy> isn't that painful?
IanVorn has joined #ruby
<baweaver> Mainly because the pesky JSON suggester quit while running and screaming for some reason
<Radar> We have opted instead to provide them with an endpoint that they upload XML to and then we parse it from there
<noethics> yeah it would be nice if that were an option
Exponent_ has quit [Client Quit]
hahuang65 has quit [Ping timeout: 264 seconds]
<noethics> i wish bson didnt have the whole mongodb stigma
<noethics> it's so superior
pusewicz has joined #ruby
<baweaver> There's a fragmentation joke in here somewhere.
ta_ has quit [Remote host closed the connection]
yardenbar has joined #ruby
jmhmccr has quit [Quit: Connection closed for inactivity]
x0f has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 255 seconds]
chinmay_dd has joined #ruby
metallicrwr has joined #ruby
nricciar has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
dukedave has joined #ruby
harleypig has joined #ruby
roolo has joined #ruby
vcoinminer has joined #ruby
stan has joined #ruby
mroth has joined #ruby
Guest36103 has quit [Ping timeout: 272 seconds]
avdi has joined #ruby
alol___ has joined #ruby
jeregrine has joined #ruby
x0f has joined #ruby
ckrailo has joined #ruby
hahuang61 has quit [Remote host closed the connection]
akahn has joined #ruby
kerunaru has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
hahuang61 has joined #ruby
<shevy> and a tree joke
mrsolo has quit [Quit: This computer has gone to sleep]
bjeanes has joined #ruby
frem has joined #ruby
bruno- has joined #ruby
huddy has joined #ruby
featheryahn_ has joined #ruby
alxndr has joined #ruby
n0f3 has joined #ruby
hellschreiber has joined #ruby
tenderlove has quit [Ping timeout: 252 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adambeynon has joined #ruby
aapole has quit [Ping timeout: 255 seconds]
revath has quit [Ping timeout: 276 seconds]
j4cknewt has joined #ruby
towski_ has quit [Remote host closed the connection]
hanmac1 has joined #ruby
commondream has joined #ruby
hahuang61 has quit [Remote host closed the connection]
hahuang61 has joined #ruby
revath has joined #ruby
railsraider has joined #ruby
Macaveli has joined #ruby
maletor has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
KnownSyntax has joined #ruby
pizzaops has joined #ruby
PhilK has joined #ruby
rushed has joined #ruby
towski_ has joined #ruby
j4cknewt has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
datanois1 has quit [Ping timeout: 246 seconds]
commondream has quit [Ping timeout: 265 seconds]
n1ftyn8 has joined #ruby
Macaveli has quit [Client Quit]
revath has quit [Ping timeout: 250 seconds]
metallicrwr has quit [Ping timeout: 252 seconds]
krz has joined #ruby
unshadow has quit [Quit: leaving]
Spami has quit [Quit: This computer has gone to sleep]
michael_mbp has quit [Excess Flood]
ndrei has joined #ruby
bb010g has joined #ruby
greenride has joined #ruby
bMalum has joined #ruby
greenride has quit [Client Quit]
maZtah has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
greenride has joined #ruby
michael_mbp has joined #ruby
Miphix has quit [Quit: Leaving]
mdz_ has joined #ruby
Seanzie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flughafen> sevenseacat: i figured out what the issue was... i didn't know I should set the javascript_driver to poltergeist
<sevenseacat> flughafen: ah hah
culturelabs has joined #ruby
Seanzie has joined #ruby
amitchellbullard has joined #ruby
mrsolo has joined #ruby
<flughafen> sevenseacat: now i'm trying to make our testsuite work with phantomjs
<shevy> lol
cek has joined #ruby
<shevy> poltergeist is a cool name
deimos has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<shevy> "a poltergeist is now haunting the flughafen in Berlin"
<flughafen> shevy: my day is now complete!
<Radar> reminds me of ^
<shevy> lol
<shevy> it werfs flammen
<shevy> that is also great
<sevenseacat> :D
<shevy> proper german would be "wirft Flammen" btw, from "werfen"; to throw
<flughafen> ha
exadeci has quit [Ping timeout: 252 seconds]
yo61 has quit [Ping timeout: 252 seconds]
<sevenseacat> I've seen the nebelwerfer one before
<flughafen> i like it when you speak deutsch to me
iamdevnul has quit [Ping timeout: 256 seconds]
<shevy> haha
ec has quit [Ping timeout: 265 seconds]
* sevenseacat sucks at German and is learning Esperanto instead
zero7 has quit [Ping timeout: 276 seconds]
benlakey has quit [Ping timeout: 276 seconds]
<flughafen> ah, the language of espresso. good choice sevenseacat
<shevy> fog machine? Flammenwerfer is ok, Nebelwerfer is a bit weird... how do you throw fog...
Seanzie has quit [Client Quit]
hoey has quit [Ping timeout: 272 seconds]
willharrison has quit [Ping timeout: 256 seconds]
codeitagile has quit [Ping timeout: 265 seconds]
bove has quit [Ping timeout: 265 seconds]
andrewstewart has quit [Ping timeout: 265 seconds]
machty has quit [Ping timeout: 265 seconds]
akitada has quit [Ping timeout: 265 seconds]
pmarreck has quit [Ping timeout: 265 seconds]
shock_one has quit [Remote host closed the connection]
mdz_ has quit [Ping timeout: 258 seconds]
ecksit has joined #ruby
Heero has quit [Ping timeout: 276 seconds]
neersighted has quit [Ping timeout: 276 seconds]
krainboltgreene has quit [Ping timeout: 276 seconds]
charles81 has joined #ruby
Guest85414______ has quit [Ping timeout: 265 seconds]
lancetw has quit [Ping timeout: 272 seconds]
shelling__ has quit [Ping timeout: 272 seconds]
t-richards has quit [Ping timeout: 256 seconds]
prosodyContext has quit [Ping timeout: 256 seconds]
preyalone has quit [Ping timeout: 256 seconds]
[diecast] has quit [Ping timeout: 256 seconds]
zrl has joined #ruby
<flughafen> shevy: how do you throw fire?
tenderlove has joined #ruby
manveru has joined #ruby
countryHick has quit [Ping timeout: 276 seconds]
bcavileer has joined #ruby
coderkevin has quit [Ping timeout: 272 seconds]
im0b has quit [Ping timeout: 272 seconds]
p1k has joined #ruby
<flughafen> shevy: do you not know what a fog machine is?
<p1k> hi
<shevy> flughafen I only know what a Schneewerfer is
<sevenseacat> flughafen: i loled. 'shooting fish in a barrel....... wat?'
Lloyd has quit [Ping timeout: 276 seconds]
kapowaz has quit [Ping timeout: 276 seconds]
beneggett has joined #ruby
<shevy> it werfs Schnee
balazs has joined #ruby
<sevenseacat> this is awesome
jrunning_ has joined #ruby
<flughafen> shevy: ^^
<shevy> lol
<sevenseacat> I am genuinely laughing out loud
<shevy> this werfs Nebel
<flughafen> shevy: yes
<flughafen> now it makes sense that it didn't make sense to you
<shevy> I am looking for something that werfs Cats
<sevenseacat> i have the fish, why am i putting them in a barrel?
<flughafen> katzenwerfer
<sevenseacat> I am so gonna watch all of these
<shevy> this may be a catapult http://goo.gl/6NcSSe
ballPointPenguin has joined #ruby
<flughafen> haha sevenseacat
maletor has quit [Quit: Computer has gone to sleep.]
hahuang61 has quit [Remote host closed the connection]
mc_fail has joined #ruby
<sevenseacat> this guy is a legend
micmus has joined #ruby
<flughafen> shevy: you might like the video too
hahuang61 has joined #ruby
<shevy> linux is pretty cool
<shevy> it has a command for cats
dumdedum has joined #ruby
rfv has joined #ruby
petems has joined #ruby
djbender has joined #ruby
spastorino has joined #ruby
hahuang61 has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 272 seconds]
psy_ has joined #ruby
skmp has joined #ruby
astrobunny has quit [Remote host closed the connection]
<baweaver> https://twitter.com/BoingBoing/status/607746423732498432 - This makes that fog machine so much more awesome
<flughafen> baweaver: there was a survey done and something like 60% of americans thought bad weather could affect the cloud\
<baweaver> ....
<baweaver> This does not surprise me unfortunately
bahar has quit [Ping timeout: 244 seconds]
towski_ has quit [Remote host closed the connection]
<baweaver> Though to be fair it can affect it
<baweaver> One good flood that breaks in, a well timed lightning strike, a tornado that takes out the power in the area or flat out levels the place
<baweaver> lot of fun can happen
cstrahan has joined #ruby
allomov has joined #ruby
ndrei has joined #ruby
<shevy> sevenseacat this accent is so awful, how can you listen!
<sevenseacat> its hilarious
ramblinpeck_ has joined #ruby
MiracleBlue has joined #ruby
* sevenseacat still watching
<shevy> lol
<sevenseacat> 'the rule of elevators, do not toot in the elevator, so the rule of the internet, you say bae?'
<baweaver> Oh, people can be endorsed for Awesomeness on LinkedIn now
<sevenseacat> you can endorse people for anything you want
chrisseaton has joined #ruby
<sevenseacat> I think Radar has been endorsed for ukelele or something?
<Radar> That's because I'm AWESOME at Ukulele
bahar has joined #ruby
<flughafen> Radar: youtube?
troter___ has joined #ruby
Jandre has joined #ruby
<baweaver> https://www.linkedin.com/in/keystonelemur - If people want to contribute to my awesome score
GriffinHeart has joined #ruby
Jandre is now known as Guest80441
<baweaver> Magic internet points make the world go round
allenn has joined #ruby
<Radar> flughafen: not that awesome :)
fujimura has quit [Remote host closed the connection]
codecop has joined #ruby
* baweaver has youtube videos of guitar/singing
GriffinHeart has quit [Remote host closed the connection]
* baweaver still isn't that great
GriffinHeart has joined #ruby
<shevy> hmm if I have a hash with 50 elements, and I wish to randomly pick 5 entries (key -> value pairs), what would be a good way? for an Array, I could use .sample 5x times
<flughafen> hey Radar did you know baweaver won best in show at the midwest hackathon?
<Radar> I didn't know that.
ta has joined #ruby
charliesome has quit [Quit: zzz]
<shevy> the beaver is a legendary ruby hacker?
existensil has quit [Ping timeout: 252 seconds]
<Radar> shevy: >> { :one => "one" }.to_a.sample(5)
AdamMeghji has joined #ruby
<baweaver> I'll take Ruby and Hacker, legendary I still have a ways there.
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has quit [Quit: WeeChat 1.0.1]
sinkensabe has joined #ruby
Kharma has quit [Remote host closed the connection]
mjc_ has quit [Remote host closed the connection]
frankS2 has quit [Read error: Connection reset by peer]
holsee_ has quit [Remote host closed the connection]
zipkid has quit [Remote host closed the connection]
chris-sonar has quit [Remote host closed the connection]
knowtheory has quit [Remote host closed the connection]
strmpnk has quit [Remote host closed the connection]
glowcoil has quit [Remote host closed the connection]
jlyndon has quit [Remote host closed the connection]
ggherdov has quit [Write error: Connection reset by peer]
HashNuke has quit [Remote host closed the connection]
cbetta has quit [Remote host closed the connection]
daxroc has quit [Remote host closed the connection]
whoojemaflip has quit [Remote host closed the connection]
Guest5307 has quit [Remote host closed the connection]
thesheff17 has quit [Remote host closed the connection]
jpinnix______ has quit [Remote host closed the connection]
jmcc has quit [Remote host closed the connection]
poguez_ has quit [Remote host closed the connection]
dmoe has quit [Remote host closed the connection]
bttf has quit [Write error: Broken pipe]
vikram___ has quit [Remote host closed the connection]
autrilla has quit [Remote host closed the connection]
jxf has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
bestie has quit [Remote host closed the connection]
alekst_ has quit [Remote host closed the connection]
<flughafen> baweaver: i'll endorse you as legendary on linkedin
skandi has quit [Remote host closed the connection]
roqo has quit [Ping timeout: 248 seconds]
* baweaver checks to see if he can add that as a skill
pengin has joined #ruby
shock_one has joined #ruby
hubcaps has joined #ruby
<flughafen> we have linux in common
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
<baweaver> I end up in a lot of odd spots somehow. I mentioned offhandedly that I knew Scala and now I'm the one giving talks and presentations on it and usage in Spark.
roqo has joined #ruby
bMalum has quit [Quit: bMalum]
andikr has joined #ruby
<shevy> Radar cool thanks
<shevy> flughafen do you understand "Fettes Brot" in the song "nordish by nature"?
<baweaver> US Hackathons are awesome though, top prizes normally walk off with ~$5000 in prizes
<baweaver> redundant is redundant
<flughafen> shevy: i'm looking at the lyrics now.
<flughafen> kind of
<baweaver> well if that's not a sign to go to sleep already
* sevenseacat still watching videos
<shevy> flughafen haha that's cheating! :D
<flughafen> I will not take responsibility for sevenseacat losing productivity or not playing eso
<shevy> "um die de Norden antokieken"
bMalum has joined #ruby
hahuang65 has joined #ruby
<flughafen> i don't get antokieken?
sonOfRa has quit [Read error: Connection reset by peer]
DEA7TH_ has joined #ruby
mello has joined #ruby
mello has joined #ruby
jpinnix______ has joined #ruby
metallicrwr has joined #ruby
strmpnk has joined #ruby
blue_deref has quit [Quit: bbn]
fujimura has joined #ruby
tonini has joined #ruby
revath has joined #ruby
<shevy> me neither
pengin has quit [Remote host closed the connection]
grubernaut has joined #ruby
<shevy> without the lyrics I wouldn't understand anything, save for the "regular" german
Neomex_ has joined #ruby
yaogwai has quit [Ping timeout: 264 seconds]
glowcoil has joined #ruby
<shevy> Ik krakeel veel platt in dat mikrofon
existensil has joined #ruby
ur5us has quit [Remote host closed the connection]
<shevy> krakeel :D man ...
<shevy> this is right from Cthulhu
[diecast] has joined #ruby
knowtheory has joined #ruby
yaogwai has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
kapowaz has joined #ruby
Guest85414______ has joined #ruby
Neomex has quit [Ping timeout: 258 seconds]
cbetta has joined #ruby
skyrocker has left #ruby [#ruby]
mello has quit [Ping timeout: 255 seconds]
sonOfRa has joined #ruby
ec has joined #ruby
mister_solo has joined #ruby
Hounddog has joined #ruby
jack_rabbit has quit [Ping timeout: 276 seconds]
troulouliou_dev has joined #ruby
astrobunny has joined #ruby
pmarreck has joined #ruby
<certainty> so #ruby-lang is mostly dead?
<sevenseacat> it redirects here now
<certainty> flughafen: anzuschauen
<certainty> sevenseacat: cool
tsujp has joined #ruby
hakunin has quit [Remote host closed the connection]
Iskarlar has joined #ruby
<apeiros> certainty: s/mostly//, ftfy
<flughafen> hey certainty
krainboltgreene has joined #ruby
hakunin has joined #ruby
spider-mario has quit [Remote host closed the connection]
im0b has joined #ruby
sinpai9090 has joined #ruby
tenderlove has quit [Ping timeout: 250 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mhoungbo has joined #ruby
Zai00 has joined #ruby
solars has joined #ruby
bMalum has quit [Quit: bMalum]
sinpai9090 has left #ruby [#ruby]
neersighted has joined #ruby
jlyndon has joined #ruby
jack_rabbit has joined #ruby
poikon has joined #ruby
<baweaver> well, bed for me
<baweaver> 'night all
<havenwood> g'night
blackmesa has joined #ruby
mister_s_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sinpai9 has joined #ruby
baweaver has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 256 seconds]
krz has joined #ruby
HashNuke has joined #ruby
fabrice31 has quit [Remote host closed the connection]
sinpai9 has left #ruby [#ruby]
rubie has joined #ruby
whoojemaflip has joined #ruby
cardoni has joined #ruby
fabrice31 has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
DoubleMalt has joined #ruby
firevolt has joined #ruby
zero7 has joined #ruby
neektza has joined #ruby
mister_solo has quit [Ping timeout: 258 seconds]
zzak has joined #ruby
tenderlove has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
shelling__ has joined #ruby
failshell has joined #ruby
kwd has joined #ruby
akitada has joined #ruby
tubuliferous_ has joined #ruby
fujimura has quit [Remote host closed the connection]
jas02 has joined #ruby
Contigi has joined #ruby
jgt1 has joined #ruby
poguez_ has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
ggherdov has joined #ruby
sinkensabe has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 250 seconds]
rflot has joined #ruby
hakunin has quit [Remote host closed the connection]
dmoe has joined #ruby
rubie has quit [Remote host closed the connection]
andrewstewart has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
fujimura_ has joined #ruby
metallicrwr has quit [Ping timeout: 265 seconds]
failshell has quit [Ping timeout: 252 seconds]
machty has joined #ruby
tubuliferous_ has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
pardusf has quit [Ping timeout: 252 seconds]
polysics has joined #ruby
yo61 has joined #ruby
parduse has joined #ruby
mjc_ has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
frankS2 has joined #ruby
<certainty> apeiros: yeah i read your tweet yesterday. That's why i was asking. Alright
Wobbley has joined #ruby
niitotantei has joined #ruby
holsee_ has joined #ruby
bahar has joined #ruby
dhjondoh has joined #ruby
AlexRussia has joined #ruby
<flughafen> you guys tweet with each other? nobody tweets with me :(
<certainty> flughafen: what's your twitter handle?
<flughafen> certainty: i don't have twitte
thesheff17 has joined #ruby
hanmac has joined #ruby
jack_rabbit has joined #ruby
<hubcaps> how can you expect anyone to tweet you if you don't have a twitter? how can you eat your pudding if you don't eat your meat?
<sevenseacat> "yolo? yo-no!"
<certainty> flughafen: that i can'n help you :p
bove has joined #ruby
benlakey has joined #ruby
Xeago has joined #ruby
lancetw has joined #ruby
rbowlby has quit [Remote host closed the connection]
<flughafen> sevenseacat: still?
jmcc has joined #ruby
Forgetful_Lion has joined #ruby
<sevenseacat> I'm only up to video 23 of 75!
mrsolow has joined #ruby
sandstrom has joined #ruby
<flughafen> oh crap
daxroc has joined #ruby
preyalone has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Quit: the quieter you become, the more you are able to hear]
vdamewood has joined #ruby
brb3 has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<Ox0dea> sevenseacat: Do you happen to watch Game of Thrones?
<sevenseacat> sure do
<Ox0dea> You are in for such a treat.
bMalum has joined #ruby
<sevenseacat> ?
<flughafen> last episode was brutal
<Ox0dea> Flula + GoT = <3
<sevenseacat> hahahahahaha
ki0 has joined #ruby
exadeci has joined #ruby
prosodyContext has joined #ruby
bronson has joined #ruby
<sevenseacat> aw shit this guy is a pisser
saintcajetan has joined #ruby
<surrounder> certainty: haha nice one
Kharma has joined #ruby
<surrounder> certainty: http://imgur.com/gallery/cuMOQeX :D
blackmesa has quit [Ping timeout: 256 seconds]
<certainty> muha
jack_rabbit has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
edwinvdgraaf has joined #ruby
bMalum has quit [Quit: bMalum]
Guest5307 has joined #ruby
k3asd` has joined #ruby
Guest12375 has joined #ruby
<sevenseacat> gonna save the rest of the vids for later
nmyster has joined #ruby
greenride has left #ruby [#ruby]
tesuji has joined #ruby
zipkid has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
tsujp has quit [Quit: tsujp is snoozing]
nso95 has joined #ruby
countryHick has joined #ruby
ixti has quit [Ping timeout: 250 seconds]
pskosinski has joined #ruby
al2o3-cr has joined #ruby
<flughafen> sevenseacat: quitter!
mark[oz] has quit [Remote host closed the connection]
<shevy> haha
kedare has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Heero has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
bestie has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
ohaibbq has quit [Quit: Leaving...]
jxf has joined #ruby
alekst_ has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp has quit [Excess Flood]
vikram___ has joined #ruby
bMalum has joined #ruby
Scroff has joined #ruby
charliesome has joined #ruby
jack_rabbit has joined #ruby
unshadow has joined #ruby
ghr has joined #ruby
yaogwai has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
olistik has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: the quieter you become, the more you are able to hear]
olistik has joined #ruby
RegulationD has joined #ruby
al2o3-cr has joined #ruby
rdark has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
bttf has joined #ruby
gkra has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
pepperbreath1 has quit [Ping timeout: 256 seconds]
olistik has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
yoongkang has joined #ruby
coderkevin has joined #ruby
epistrephein has joined #ruby
stardiviner has joined #ruby
mikecmpbll has joined #ruby
bruno- has joined #ruby
starfox_sf has quit [Ping timeout: 245 seconds]
jack_rabbit has quit [Ping timeout: 246 seconds]
autrilla has joined #ruby
balazs has joined #ruby
Guest80441 has quit [Ping timeout: 272 seconds]
mdz_ has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
iamdevnul has joined #ruby
micmus has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 246 seconds]
chris-sonar has joined #ruby
t-richards has joined #ruby
arta82 has joined #ruby
skandi has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
arta82 has quit [Max SendQ exceeded]
mdz_ has quit [Ping timeout: 264 seconds]
troulouliou_dev has joined #ruby
ahmetkapikiran has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
Lloyd has joined #ruby
chipotle has quit [Quit: cheerio]
* flughafen sighs
auzty has joined #ruby
bkxd has joined #ruby
ahmetkapikiran has quit [Client Quit]
chthon has joined #ruby
hahuang65 has joined #ruby
IanVorn has joined #ruby
michael_mbp has quit [Excess Flood]
krz has quit [Quit: WeeChat 1.0.1]
kevkev has joined #ruby
mello has joined #ruby
axl_ has joined #ruby
plashchynski has joined #ruby
codeitagile has joined #ruby
krz has joined #ruby
michael_mbp has joined #ruby
hoey has joined #ruby
Exponential has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
chussenot has joined #ruby
willharrison has joined #ruby
mello has quit [Ping timeout: 245 seconds]
A205B064 has quit [Ping timeout: 258 seconds]
<shevy> flughafen trouble in Berlin again?
<sevenseacat> no planes.
livathinos has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
ndrei has quit [Ping timeout: 265 seconds]
pepperbreath has joined #ruby
lkba has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
<flughafen> no eh, i didn't set the browser to phantomjs, so i wasted a lot of time doign tests against firefox
plashchynski has quit [Quit: plashchynski]
n008f4g_ has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
A205B064 has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
lordkryss has joined #ruby
Ox0dea has quit [Read error: No route to host]
bMalum has quit [Quit: bMalum]
AlphaAtom has joined #ruby
fgo has joined #ruby
olistik has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
axl_ has quit [Remote host closed the connection]
A205B064 has quit [Ping timeout: 264 seconds]
ahmetkapikiran has joined #ruby
AlphaAtom has joined #ruby
GriffinHeart has joined #ruby
cvtsx has joined #ruby
arup_r has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
bMalum has joined #ruby
axl_ has joined #ruby
affenhoden has quit [Quit: leaving]
ndrei has joined #ruby
joonty has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
jgt1 has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Remote host closed the connection]
_jesterfraud_ has left #ruby ["Leaving"]
terlar has joined #ruby
jesterfraud has joined #ruby
<jesterfraud> huh, weird, I couldn't change my nick and reidentify because I was banned in this channel O.o
GriffinHeart has joined #ruby
bruno- has joined #ruby
yaogwai has joined #ruby
blue_deref has quit [Quit: bbn]
<jhass> jesterfraud: huh?
c0m0 has joined #ruby
<jesterfraud> jhass, I was _jesterfraud_ due to dis/reconnecting
bkxd has quit [Ping timeout: 255 seconds]
<jesterfraud> tried to change nick, server told me I couldn't because I was banned in this channel
<jesterfraud> so I had to quit this channel, re nick, identify, rejoin
<jhass> weird
<jesterfraud> IRC hates me?
<jhass> I kinda fail to see anything matching your mask
arup_r has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
<jesterfraud> could it have simply been that I wasn't ident'd?
<jhass> btw we have #ruby-banned that you can always join for stuff like that
<sevenseacat> the server is a bit weird sometimes.
<sevenseacat> blame that.
<jesterfraud> right
<jesterfraud> sevenseacat, affirmative
<jesterfraud> freenode, must be written in node, explains everything ;)
DoubleMalt has quit [Ping timeout: 265 seconds]
<sevenseacat> lol
bin_005 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
A205B064 has joined #ruby
<jesterfraud> so this channel technically doesn't have ops?
<sevenseacat> ?ops
<ruboto> To call for ops use the !ops command.
<sevenseacat> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, Radar, zzak, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<jesterfraud> or is there a channel mode that hides those stati?
<apeiros> jesterfraud: this channel is not the place to discuss ops stuff
<jesterfraud> right
<apeiros> or bans
<sevenseacat> aaand I just tagged them all. oops.
<ljarvis> WHERE'S THE DANGER
<jesterfraud> sorry, was only curious
<ljarvis> oh
<sevenseacat> sorry all.
<jesterfraud> sevenseacat xD
pyo_ has joined #ruby
<apeiros> sevenseacat: my fault. jhass made a patch to only query online ops and I still haven't released it :(
ahmetkapikiran has quit [Quit: ahmetkapikiran]
jds has joined #ruby
<jhass> jesterfraud: freenode recommends to not permanently display op status
<sevenseacat> jesterfraud: but yeah, we're supposed to use ruboto for all that kind of stuff :)
greenbagels_ has quit [Read error: Connection reset by peer]
greenbagels has quit [Read error: Connection reset by peer]
krz has quit [Read error: Connection reset by peer]
<jesterfraud> ruboto always makes me think of the font
krz has joined #ruby
<jesterfraud> anyway, back to lurking.
<yorickpeterse> what's wrong about a clearly visible police force at all times?
axsuul has quit [Quit: Textual IRC Client: www.textualapp.com]
Flemzord has joined #ruby
plashchynski has joined #ruby
<jhass> 1) you bait the trolls to focus on you 2) in normal discussions some people react differently to you because "authority"
anisha has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
<shevy> yorickpeterse I shoot them down!
plashchynski has quit [Client Quit]
kerunaru has quit [Read error: Connection reset by peer]
<jhass> yorickpeterse: for reference http://freenode.net/channel_guidelines.shtml 6 & 7
tsujp has joined #ruby
bahar has quit [Ping timeout: 264 seconds]
<jesterfraud> I've seen sevenseacat ban someone before. It still haunts my dreams.
<shevy> sevenseacat is a killer cat, no doubt about it
<mikecmpbll> :d
<jesterfraud> (s)he was in the room for all of ten seconds
<jesterfraud> and was never seen again
<shevy> nah
<shevy> it's one idling cat at times for sure
<jesterfraud> http://idling.cat/ has nothing, not sure if sad or genius
<shevy> it's weird insofar that some people are like permanently connected; and some people log out when they sleep, and reconnect when they are awake again
<adaedra> Hello
Flemzord has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> hi my french connection!
DaniG2k has joined #ruby
<jesterfraud> I bet adaedra has sweet armour
<sevenseacat> if I'm in the channel, I'm generally sitting at my PC. I do ignore IRC most of the time though, or I'd never get any work done.
<adaedra> How's my stereotypy Austrian?
yaogwai has quit [Ping timeout: 256 seconds]
<mikecmpbll> how very dare you ignore us.
doertedev has joined #ruby
<adaedra> /ignore *
<mikecmpbll> :d
<shevy> adaedra I am very atypical!
<adaedra> Best way to hide all trolls!
jgoyon has joined #ruby
<jhass> adaedra: uhm /mode +D might be easier
bahar has joined #ruby
n0f3 has quit []
<jhass> don't have to configure each client
tsujp has quit [Quit: tsujp is outta here]
Jandre has joined #ruby
Jandre is now known as Guest86195
marr has joined #ruby
mdw has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
tesuji has quit [Read error: Connection reset by peer]
fabrice31_ has joined #ruby
yfeldblum has joined #ruby
bMalum has quit [Quit: bMalum]
failshell has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
fabrice31_ has joined #ruby
rubie has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
mhoungbo has quit [Ping timeout: 265 seconds]
tvw has quit [Read error: No route to host]
Guest86195 has quit [Ping timeout: 272 seconds]
khebbie has quit [Quit: Textual IRC Client: www.textualapp.com]
LJT has joined #ruby
khebbie has joined #ruby
<yorickpeterse> jhass: *wooooosh*
aapole has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
afrianska has joined #ruby
msgodf has joined #ruby
sandstrom has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
rubie has quit [Ping timeout: 265 seconds]
tesuji has joined #ruby
blackmesa has joined #ruby
timonv has joined #ruby
fujimura_ has quit [Remote host closed the connection]
krz has quit [Ping timeout: 272 seconds]
dseitz has joined #ruby
yfeldblu_ has joined #ruby
mrsolo has joined #ruby
Juanchito has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
arup_r has joined #ruby
olistik has quit [Read error: Connection reset by peer]
olistik_ has joined #ruby
bin_005 has quit [Ping timeout: 256 seconds]
bMalum has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
krz has joined #ruby
<minmax> exit
<adaedra> irc: exit: Command not found
edwinvdgraaf has quit []
multi_io has quit [Ping timeout: 255 seconds]
<minmax> abort()
olistik_ has quit [Remote host closed the connection]
<minmax> quit
edwinvdgraaf has joined #ruby
<minmax> :q!
multi_io has joined #ruby
jgt1 has joined #ruby
krz has quit [Read error: Connection reset by peer]
withnale_ has joined #ruby
krz has joined #ruby
<sevenseacat> \q
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arta82 has joined #ruby
dmolina has joined #ruby
revath has left #ruby [#ruby]
<jesterfraud> ^C
<jesterfraud> what's the SSH code?
<jesterfraud> ESC ~ .
<jesterfraud> or something
yoongkang has quit [Remote host closed the connection]
<sevenseacat> alt+f4
jaycee_ has joined #ruby
fujimura has joined #ruby
<minmax> return 0
yoongkang has joined #ruby
<jesterfraud> cmd+q
<jhass> SysRQ+B
<flughafen> ctl+alt+fist
fgo has joined #ruby
platzhirsch has joined #ruby
<adaedra> jesterfraud: Return ~ .
justintv90 has quit [Remote host closed the connection]
<jesterfraud> adaedra, thanks, only learned about that yesterday
al2o3-cr has quit [Read error: Connection reset by peer]
neanderslob has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
pepperbreath has quit [Ping timeout: 252 seconds]
mhoungbo has joined #ruby
nso95 has quit [Quit: nso95]
Soda has joined #ruby
houhoulis has quit [Remote host closed the connection]
A205B064 has quit [Ping timeout: 245 seconds]
troulouliou_dev has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 265 seconds]
pepperbreath has joined #ruby
Neomex_ has quit [Quit: Leaving]
oo_ has joined #ruby
Scrofff has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
lkba has joined #ruby
Guest12375 has quit [Quit: Connection closed for inactivity]
atm0sphere has joined #ruby
olistik has joined #ruby
RegulationD has joined #ruby
ponga has joined #ruby
duncan_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Palmer11 has joined #ruby
starfox_sf has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
bin_005 has joined #ruby
commondream has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
ringarin has joined #ruby
jgoyon has quit [Ping timeout: 246 seconds]
A205B064 has joined #ruby
quimrstorres has joined #ruby
Miphix has joined #ruby
arta82 has quit [Ping timeout: 256 seconds]
starfox_sf has quit [Ping timeout: 258 seconds]
commondream has quit [Ping timeout: 256 seconds]
jgoyon___ has joined #ruby
duncan_ has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
SouL_|_ has joined #ruby
Exponential has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
araujo has quit [Read error: Connection timed out]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 265 seconds]
araujo has joined #ruby
jgoyon___ has quit [Ping timeout: 246 seconds]
Exponential has quit [Client Quit]
axilla has joined #ruby
hahuang65 has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
rodfersou has joined #ruby
sem_ has joined #ruby
plashchynski has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
Scrofff has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
khebbie has joined #ruby
mello has joined #ruby
Scroff has joined #ruby
iamninja has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
sem_ has quit [Client Quit]
rushed has quit [Quit: rushed]
yoongkang has quit [Remote host closed the connection]
fabrice31_ has quit [Remote host closed the connection]
balazs has joined #ruby
Iskarlar has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
<Darkwater> having some issues with passenger
<Darkwater> (using nginx)
<Darkwater> I've got a simple-ish sinatra app serving some data, that data is updated in the background in a thread
afrianska has quit [Ping timeout: 264 seconds]
<Darkwater> so something like foo = 0; Thread.new { loop { foo = whatever; sleep 60; } }; get '/foo' { foo }
mello has quit [Ping timeout: 265 seconds]
atm0sphere has quit [Ping timeout: 246 seconds]
<Darkwater> works like I'd expect when run normally, but the value only updates once when I run it with passenger
lxsameer has quit [Ping timeout: 250 seconds]
<Darkwater> it feels like passenger is either spinning multiple instances or goes funky with threads
wpp has joined #ruby
<Darkwater> actually I think the process just stopped, or at least the thread did
<Darkwater> I put `echo things > /tmp/blah` in the thread loop and it's not being called anymore
balazs has quit [Ping timeout: 265 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
_ht has quit [Remote host closed the connection]
sandstrom has joined #ruby
meph has joined #ruby
_ht has joined #ruby
wprice has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
meph has quit [Client Quit]
Rickmasta has joined #ruby
sarkyniin has joined #ruby
<apeiros> Darkwater: threads die silently by default
<Darkwater> is that passenger's doing or is that a thing from ruby?
mrsolo has joined #ruby
<apeiros> Darkwater: either `Thread.abort_on_exception = true` so it crashes the app loudly, or box your code block in begin/rescue
<apeiros> that's ruby.
<Darkwater> but wait, what is it dying on?
jgoyon has joined #ruby
<apeiros> >> Thread.new { 21 }.value # checking whether threading is active in eval-in
<ruboto> apeiros # => (https://eval.in/378180)
<Darkwater> it runs fine outside of passenger
<Darkwater> s/outside of/without
<apeiros> Darkwater: no idea
<Darkwater> hm
<apeiros> ah, and yes, passenger probably starts child processes
<ljarvis> guh llvm documentation frustrates me to hell
<apeiros> and child processes only take over the main thread
<Darkwater> is Thread.abort_on_exception global? ie. do I set it soutside the thread?
<apeiros> Darkwater: yes. you usually set it at app start
<Darkwater> aight
<apeiros> Darkwater: sadly can't demo in ruboto, but try in irb: `Thread.new do raise "You'll never see this" end`
CloCkWeRX1 has quit [Ping timeout: 250 seconds]
<apeiros> then try again after setting Thread.abort_on_exception = true
lxsameer has joined #ruby
<Darkwater> hm, looks like that doesn't even work in pry
<Darkwater> tried in irb though, works there
chinmay_dd has joined #ruby
<apeiros> o0
<apeiros> funny, I get an output error with pry…
plashchynski has quit [Quit: plashchynski]
micmus has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
plashchynski has joined #ruby
AlphaAtom has joined #ruby
chinmay_dd has quit [Ping timeout: 258 seconds]
xcesariox has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 264 seconds]
Soda has quit [Remote host closed the connection]
fabrice31 has joined #ruby
LJT has quit [Read error: Connection reset by peer]
<apeiros> Darkwater: well, try in pure ruby. i.e. save it to a file and run it :)
LJT has joined #ruby
Scrofff has joined #ruby
<Darkwater> yeah as I said, it works fine in irb
<arup_r> drive safe! :/ https://www.facebook.com/StanleyRobertsKRON4/videos/837957919558435/ request to all of you!
pcfreak30 has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 276 seconds]
p1k has quit [Ping timeout: 250 seconds]
<Darkwater> fucking shit
<adaedra> duh
<jhass> ljarvis: indeed
railsraider has quit [Quit: railsraider]
<jhass> I had an index of the C interface once, but never found it again
Scroff has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
vdamewood has quit [Quit: Life beckons.]
stamina has joined #ruby
jerematic has joined #ruby
j4cknewt has joined #ruby
<jhass> arup_r: wth... why do you post this...
<jhass> it's not even funny or anything
<arup_r> not fun.. I got shocked after seeing this... jhass:
<arup_r> pls drive safe.
mrsolo has quit [Quit: This computer has gone to sleep]
<jhass> arup_r: so you want to shock other people?
<arup_r> no.. warn. be safe
<apeiros> there are tons of shocking videos on the internet. I don't think we want any of those in here.
<jhass> ^
<arup_r> well.. will rember.
<Darkwater> anyway, apeiros, the data is still not refreshed
<apeiros> 12:22 apeiros: ah, and yes, passenger probably starts child processes
<apeiros> 12:22 apeiros: and child processes only take over the main thread
<arup_r> apeiros: if you have access remove the link..
<apeiros> Darkwater: ^
<Darkwater> it runs at least five times, but the data is only updated once, at the very beginning
<arup_r> I wouldn't ever.
<apeiros> arup_r: that's not possible in irc.
<arup_r> ok..
<Darkwater> hm, what do you mean?
<Darkwater> I know for sure there's only one instance by the way
troulouliou_dev has joined #ruby
<Darkwater> I log something on start, it's only logged once
<apeiros> I don't know when/how passenger forks
phutchins has joined #ruby
<apeiros> I'd log $$ for every request. or use ps. or top. or htop.
<apeiros> I know it can do it after the start, given that it can preload a rails app. I'd assume it forks on rackapp.call
jamesbrink has joined #ruby
j4cknewt has quit [Ping timeout: 265 seconds]
rodfersou has quit [Quit: leaving]
lxsameer has joined #ruby
<Darkwater> ah, logging pids is a good idea
railsraider has joined #ruby
<Darkwater> though it shouldn't matter
n008f4g_ has quit [Ping timeout: 276 seconds]
<Darkwater> hm, the start and loop log the same pid
<apeiros> that's expected
<apeiros> and the requests won't
<Darkwater> the requests have another one
<Darkwater> loop pid stays the same
<Darkwater> hmm
pcfreak30 has joined #ruby
<apeiros> and the requests don't have the loop either because as said, loop is in a thread which is not the main thread -> not carried over to children
epistrephein has quit []
sdothum has joined #ruby
<apeiros> there's an after-fork hook/callback in passenger iirc
millerti has quit [Ping timeout: 258 seconds]
<apeiros> so you can either start the loop in the children too, or you can use some sharing mechanism like memcached.
<jhass> though I'd consider running whatever you do externally and communicate over a DB/file/socket/whatever
<adaedra> I have a hash (i.e. { a: 1, b: 2, c: 3 }) and want to split it in two according to a list of keys to keep (so with [ :b ] would be { b: 2 } and { a: 1, c: 3 }). I have access to facets gem (so Hash#slice and Hash#slice!). What would be the best way of doing it?
<jhass> isn't there Hash#partition?
<Darkwater> I was almost going to extract it into a separate process like jhass suggests, but I jsut read about sinatra's configure block
<Darkwater> gonna try that first
Guest30625 has joined #ruby
rushed has joined #ruby
<adaedra> mmh
bluOxigen has joined #ruby
<Guest30625> hey guys
<Guest30625> i want to read a JSON file, modify the values from key:value pairs and post the change to a url
<Guest30625> are there any ruby experts here? i'm looking for help on expressing a ruby code
<jhass> >> keys = %(a b); {a: 1, b: 2, c: 3, d: 4}.partition {|k, v| keys.include? k }
<ruboto> jhass # => no implicit conversion of Symbol into String (TypeError) ...check link for more (https://eval.in/378211)
<Guest30625> would anyone here be able to help me accomplish this challenge ... i would gladly appreciate it
<jhass> meh
<jhass> >> keys = %i(a b); {a: 1, b: 2, c: 3, d: 4}.partition {|k, v| keys.include? k }
<ruboto> jhass # => [[[:a, 1], [:b, 2]], [[:c, 3], [:d, 4]]] (https://eval.in/378212)
<adaedra> it's in Enumerable, so I guess I could work with it
chinmay_dd has joined #ruby
rodfersou has joined #ruby
<jhass> well, yeah, need to_h the result
<adaedra> thanks
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> jhass: that'd be what I called "sharing mechanism"
DaniG2k has quit [Quit: leaving]
CloCkWeRX has joined #ruby
<jhass> apeiros: yeah, only read after :)
<Darkwater> meh never mind, I'll just extract it
<Darkwater> how should I run ruby daemons?
<Darkwater> is there something like forever for nodejs?
<apeiros> Darkwater: there's a daemonize gem
<jhass> I'd use in order of preference: systemd, daemontools, your init system, eye, god, monit, bluepill
<Darkwater> or is there a good way to start a daemon (if not already running) from my sinatra app?
jerematic has quit []
<apeiros> and there's stuff in core by now to make daemonizing easier
<Guest30625> hey guys could anyone help me think through resolving a coding problem in ruby?
<ljarvis> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<apeiros> Guest30625: your question is vague. please provide more details.
<jhass> meh, -1 to self daemoniziation
<Guest30625> sure let me explain
<Darkwater> still running upstart, and I'd rather not mess around with init systems right now
<jhass> Darkwater: daemontools would be my choice then
yardenbar has joined #ruby
<Darkwater> reminds me of a certain ISO mounting program :>
<Darkwater> is it ruby-specific? no idea where to look because of that
<jhass> talking about the djb stuff though ;)
<jhass> no
yfeldblu_ has quit [Remote host closed the connection]
<ccooke> jhass: don't say that name! ;-)
ylla has joined #ruby
chussenot has quit [Quit: chussenot]
<jhass> heh, the attitude is meh but the stuff works
segfalt has quit [Quit: segfalt]
_ht has quit [Remote host closed the connection]
<ccooke> Some of it works, although often not in ways I'd suggest.
<jhass> and I do enjoy his talks :P
_ht has joined #ruby
tubuliferous_ has joined #ruby
failshell has joined #ruby
bkxd has joined #ruby
<ccooke> The worst thing about djb is that he's actually made enough definitively positive contributions to outweigh his rather strange worldview and the mess of problems his software has caused :-)
<jhass> hehe
ndrei has quit [Ping timeout: 258 seconds]
jds has quit [Quit: Connection closed for inactivity]
<ccooke> (Particularly if you look at his contributions to security; he's worked on some important stuff)
<jhass> anyway, I just replaced daemontools with systemd because systemd is easier to use, daemontools didn't fail on me once though
<ccooke> But as a sysadmin, I will never forgive him for having to deal with qmail
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> that might be true
bluOxigen has quit []
lordkryss has quit [Quit: Connection closed for inactivity]
imperator has joined #ruby
ndrei has joined #ruby
<imperator> good morning
<imperator> is there a way to silence the output of gem update --system? I tried -q and --no-document, didn't seem to do it
sandstrom has quit [Quit: My computer has gone to sleep.]
tubuliferous_ has quit [Ping timeout: 265 seconds]
failshell has quit [Ping timeout: 264 seconds]
ItSANgo has joined #ruby
ur5us has quit [Remote host closed the connection]
<jhass> well, then just >/dev/null I guess
<ljarvis> redirect it
<ljarvis> heh
oo_ has quit [Remote host closed the connection]
vdamewood has joined #ruby
afrianska has joined #ruby
barkerd427 is now known as zz_barkerd427
rikkipitt has joined #ruby
symm- has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
abirazor has joined #ruby
pepperbreath1 has joined #ruby
pepperbreath has quit [Ping timeout: 245 seconds]
* flughafen hates it when the package is in your town but doesn't get out for delivery
poguez_ has quit [Quit: Connection closed for inactivity]
<adaedra> heh
arup_r_ has joined #ruby
<flughafen> they should lie to me and tell me it's somewhere else
<adaedra> NO.
<adaedra> You should suffer.
ndrei has quit [Ping timeout: 256 seconds]
<flughafen> why meeee! why meeeee!
arup_r__ has joined #ruby
<adaedra> I guess I'm the only one to get their deliveries in the 5 minutes I took going home to fetch something
arup_r has quit [Ping timeout: 264 seconds]
Rickmasta has joined #ruby
revath1 has joined #ruby
pepperbreath1 has quit [Ping timeout: 252 seconds]
pepperbreath has joined #ruby
<flughafen> adaedra: do they not accept them for you at work?
auzty has quit [Ping timeout: 255 seconds]
<adaedra> I was at school at this time
<flughafen> i ship all my stuff to work minus the heavy stuff like kitty litter
bakednotfried has joined #ruby
arup_r_ has quit [Ping timeout: 246 seconds]
dalafa has joined #ruby
kerunaru has joined #ruby
afrianska has quit [Quit: Leaving]
astrobunny has joined #ruby
<Guest30625> hey guys ..here's the challenge i would like to know if it's doable
<Guest30625> class NewClass
<Guest30625> def initialize(id,name,notes,class,createdat)
<Guest30625> @id = id
<Guest30625> @name = name
<Guest30625> @notes = notes
aapole has quit [Ping timeout: 256 seconds]
<Guest30625> @room = room
<Guest30625> @createdat = created
<Guest30625>
<Guest30625>
<apeiros> !kick Guest30625 gist
Guest30625 was kicked from #ruby by ruboto [gist]
krz has quit [Quit: WeeChat 1.0.1]
<jhass> meh, weechat is slower? :P
<adaedra> too slow, jhass
<adaedra> too slow, adaedra
<apeiros> pm'ed about reason and that they can rejoin
* jhass shall make a /flood macro
<apeiros> shall make !gist
<adaedra> ruboto could kick automatically for a large number of lines in short amount of time
<apeiros> I think I'll even add that on the current cinch base
<jhass> meh, you don't deploy stuff anyway, why bother :P
startupality has joined #ruby
<adaedra> bim
<apeiros> :<
chinmay_dd has quit [Remote host closed the connection]
<apeiros> right. clarifying. *I* shall make…
ndrei has joined #ruby
Guest30625 has joined #ruby
<Guest30625> hey sorry all
<Guest30625> i was not aware of the rules here
<apeiros> we noticed
yoongkang has joined #ruby
chinmay_dd has joined #ruby
<adaedra> bam
A205B064 has quit [Ping timeout: 244 seconds]
<Guest30625> here's the code i would like your help with using https://gist.github.com/pcajuste/9c9c60a820fa230013b0
<Guest30625> as suggested
<adaedra> we have a fact for this extension thing?
bakednotfried has quit [Changing host]
bakednotfried has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
<jhass> ?gist_usage
<ruboto> To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
<apeiros> Guest30625: `replace the “value” data` - which value data?
<adaedra> thx jhass
<apeiros> ah, I think I get it now
<jhass> good, I don't :D
<jhass> "bring as file" doesn't parse for me :P
<apeiros> >> require 'json'; @name = "name"; data = {"name" => @name}; JSON.dump(data)
<Guest30625> the @name, @id, @notes, @room and @created within the JSON
<ruboto> apeiros # => "{\"name\":\"name\"}" (https://eval.in/378245)
<apeiros> Guest30625: ^
<apeiros> you're already close. you'd build a ruby datastructure (a Hash), and use JSON.dump to convert it to JSON
freerobby has quit [Quit: Leaving.]
<jhass> mmh, wasn't there something that you want to prefer to_json over JSON.dump?
<apeiros> the part with "as a file" I didn't really get either. you can use File.write to write your json string to a file
<imperator> jhass, i guess that will work (well, > $null for powershell)
yoongkang has quit [Remote host closed the connection]
c355E3B has joined #ruby
allomov has quit [Remote host closed the connection]
<Guest30625> i want the json hash to be file instead and change the values as i bring it in
<jhass> so reading not writing?
<Guest30625> both
tokik_ has joined #ruby
* apeiros brb
<Guest30625> i would read the file and change the @id, @name values then post the new change
bMalum has quit [Quit: bMalum]
ahmetkapikiran has joined #ruby
<Guest30625> i'm trying to use resclient.post gem for that
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
Fooster has joined #ruby
Locke23rus has joined #ruby
auzty has joined #ruby
jgpawletko has joined #ruby
Locke23rus has left #ruby [#ruby]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest30625 has quit [Remote host closed the connection]
kt2 has joined #ruby
arup_r__ has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nuck has quit [Ping timeout: 264 seconds]
khebbie has joined #ruby
apt-get_ has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
Macaveli has joined #ruby
yoongkang has joined #ruby
fgo has joined #ruby
jcromartie has joined #ruby
axl_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
psmolen has quit [Ping timeout: 265 seconds]
sarkyniin has quit [Ping timeout: 265 seconds]
allomov has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
mandarinkin has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
starfox_sf has joined #ruby
arup_r has joined #ruby
niitotantei has quit [Read error: Connection reset by peer]
niitotantei has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
arup_r_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<bkxd> are there any gems that watch a folder / file and re-run every time it changes?
iamninja has joined #ruby
<wasamasa> yes
<jhass> bkxd: rb-fsevent -> listen -> god
chussenot has joined #ruby
dorei has joined #ruby
<jhass> in rising layers of abstraction
<ljarvis> guard?
<jhass> eh, right
<jhass> that's what I wanted to write
<ljarvis> sounds like god
<jhass> and rb-inotify for linux
starfox_sf has quit [Ping timeout: 265 seconds]
<ljarvis> if you say god like guard
<bkxd> arigato
niitotantei has quit [Ping timeout: 252 seconds]
idafyaid has joined #ruby
idafyaid has quit [Client Quit]
<bkxd> wierd i thought guard was for haskell
ndrei has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
jas02 has quit [Quit: jas02]
Xzanron has joined #ruby
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
zz_barkerd427 is now known as barkerd427
sandstrom has joined #ruby
chinmay_dd has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
ItSANgo has quit [Quit: Leaving...]
premera has quit [Remote host closed the connection]
chinmay_dd has quit [Remote host closed the connection]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IanVorn has joined #ruby
chinmay_dd has joined #ruby
strixd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
bin_005 has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby
mello has joined #ruby
TheHodge has joined #ruby
datanois1 has joined #ruby
Forgetful_Lion has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253]]
hahuang65 has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
mello has quit [Ping timeout: 265 seconds]
yqt has joined #ruby
AlphaAtom has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Palmer11 has quit [Quit: Palmer11]
fabrice31 has quit [Read error: Connection reset by peer]
wpp has quit []
fabrice31 has joined #ruby
Palmer11 has joined #ruby
a346 has joined #ruby
minmax has quit [Quit: WeeChat 0.4.3]
CloCkWeRX1 has joined #ruby
fujimura has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 264 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tokik_ has quit [Quit: Lost terminal]
anaeem1_ has quit [Quit: Leaving...]
ebbflowgo has joined #ruby
bahar has quit [Quit: ZNC - http://znc.in]
barkerd427 is now known as zz_barkerd427
khebbie has joined #ruby
astrobunny has joined #ruby
bMalum has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
AugustoCesar has left #ruby ["PONG :hobana.freenode.net"]
bahar has joined #ruby
<flughafen> i use the py-ionotify but wasn't too happy with it
ndrei has joined #ruby
sdothum has joined #ruby
lapide_viridi has joined #ruby
mase-chatter has joined #ruby
strixd has quit [Quit: 500]
yaogwai has joined #ruby
strixd has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
imperator has quit [Quit: Leaving]
revath1 has quit [Ping timeout: 276 seconds]
Langlands has joined #ruby
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
papz has joined #ruby
<ylla> Windows users... do you setup Ruby in a Linux VM or going native Windows? Best practice?
<Darkwater> I'd use a VM
<nickjj> ylla, i run vmware
yaogwai has quit [Quit: WeeChat 1.2-dev]
<nickjj> it has a special mode where you can run it in such a way that it's like you're running both windows and linux together
<ylla> nickjj: I've used VMWare before but sometimes find it clunky. But you'd still recommend it over Windows?
<nickjj> when was the last time you used it?
<ylla> Two weeks ago? :)
<nickjj> i've tried everything over the years. virtualbox, vmware, dual booting, etc.
<ylla> Only Win7, though, isn't it? I'm using Win8.. because touchscreen
bMalum has quit [Quit: bMalum]
<nickjj> i run win 8 as a host with xubuntu as a guest through vmware
<ylla> oh that's quite brilliant
bahar has quit [Ping timeout: 272 seconds]
<ylla> I didn't know you could do that
anisha has quit [Ping timeout: 265 seconds]
<nickjj> yeah, in vmware it's called unity mode
<nickjj> it doesn't even feel like a vm is running, windows just appear normally
<Darkwater> http://status.novaember.com/load yay, things work! (ping apeiros)
<Darkwater> (0.00..0.02 is padding dummy data)
<ylla> I've been using nitrous.io for learning rails but... they limited the free account and I guess it's time to go local
<Darkwater> you could also get a cheap vps
<Darkwater> if you want to work online
symm- has quit [Ping timeout: 256 seconds]
<ylla> Darkwater: What would be the benefits of that? Assuming I will only ever use one computer
albercuba has quit [Quit: Leaving]
<Darkwater> then not much, apart from that it'll run 24/7 etc
<Darkwater> accessible for others without opening your ports
<nickjj> you can make your personal workstation temporarily accessible with ngrok
<nickjj> ngrok 3000 , done
idafyaid has joined #ruby
bahar has joined #ruby
<ylla> mm.. Well I have aws to share my more or less awful pet projects
pandaant has quit [Remote host closed the connection]
blizzy has joined #ruby
blizzy has quit [Read error: Connection reset by peer]
niitotantei has joined #ruby
<ylla> Darkwater: What's your setup?
Scroff has joined #ruby
RegulationD has joined #ruby
<ylla> nickjj: What were your reasons for selecting xubuntu?
<hanmac1> my ubuntu does grap all stuff from other *buntus because i can ;P
Scrofff has quit [Ping timeout: 272 seconds]
<nickjj> it's a lot less bloated than the original ubuntu distro and i like the xfce window manager (the way the windows look)
<nickjj> all of the ubuntu guides you'll find will still work, it's still using ubuntu under the hood for the core of the os
<Darkwater> ylla: I got a decent vps that I also use for production websites
<Darkwater> novaember.com runs on it
<Darkwater> but it's also my dev machine for some things
<Darkwater> since I don't host anything really important on it
<Darkwater> I edit directly on the server though, I'm an avid vim user
<Darkwater> s/though/btw
tokik_ has joined #ruby
futilegames has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
<ylla> Which vps are you using?
zotherstupidguy has quit [Ping timeout: 276 seconds]
rubie has joined #ruby
anisha has joined #ruby
tubuliferous_ has joined #ruby
imperator has joined #ruby
tokik_ has quit [Ping timeout: 250 seconds]
symbol has joined #ruby
apt-get_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
jcaho has quit [Read error: Connection reset by peer]
jcaho has joined #ruby
caitlinb has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
symbol has quit [Client Quit]
pothibo has joined #ruby
futilegames has quit [Quit: futilegames]
tubuliferous_ has quit [Ping timeout: 258 seconds]
khebbie has quit [Ping timeout: 258 seconds]
revoohc has joined #ruby
symbol has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 256 seconds]
symbol has quit [Client Quit]
symbol has joined #ruby
malconis has joined #ruby
banister has joined #ruby
psy_ has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r_ has quit [Remote host closed the connection]
sgambino has joined #ruby
segfalt has joined #ruby
commondream has joined #ruby
jhooker has joined #ruby
tsvenson has joined #ruby
_aeris_ has joined #ruby
failshell has joined #ruby
yfeldblum has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
xenog has joined #ruby
commondream has quit [Ping timeout: 276 seconds]
davedev24_ has joined #ruby
scripore has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
griffindy has joined #ruby
ruby-lang285 has joined #ruby
Scroff has joined #ruby
<ruby-lang285> hey there, guys!
lxsameer has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 272 seconds]
but3k4 has joined #ruby
a346 has quit [Quit: a346]
<jhass> hi
<flughafen> i don't know why but when i read that I think of that guy from the goonies. "hey you guyyyyyysssssss"
LJT has quit [Read error: Connection reset by peer]
ruby-lang285 has left #ruby [#ruby]
<jhass> you scared them away :(
startupality has quit [Ping timeout: 258 seconds]
ruby-lang271 has joined #ruby
<flughafen> ha, awww no!
auzty has quit [Quit: Leaving]
anisha has quit [Ping timeout: 265 seconds]
<flughafen> sloth was his name.
startupality has joined #ruby
fabrice31_ has joined #ruby
<ruby-lang271> hey there
LJT has joined #ruby
<ruby-lang271> can someone think of a simpler way of doing this? https://gist.github.com/cdb7b1a14f3e26d55641.git
sevenseacat has joined #ruby
khebbie has joined #ruby
Xeago has quit [Remote host closed the connection]
<jhass> ruby-lang271: for future reference share the URL in your browser, not the clone URL ;)
sem__ has joined #ruby
Xeago has joined #ruby
vdamewood has quit [Ping timeout: 265 seconds]
<jhass> in as isolated as that is, no. Might have something for the larger context though
<ytti> facemelting
<ytti> greetings from cyprus
fabrice31 has quit [Ping timeout: 250 seconds]
chinmay__ has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fschuindt has joined #ruby
NeverDie has joined #ruby
fabrice31 has joined #ruby
chinmay_dd has quit [Ping timeout: 276 seconds]
<ylla> nickjj: I really like the unity solution
zotherstupidguy has joined #ruby
atomical has joined #ruby
zz_barkerd427 is now known as barkerd427
ferr has quit [Quit: WeeChat 1.2]
[1]abirazor has joined #ruby
<ruby-lang271> thanks jhass
GriffinHeart has joined #ruby
<nickjj> ylla, yeah it's pretty good. it has a few occasional quirks but overall it's suitable for full time dev work
<ruby-lang271> the context looks pretty much the same
railsraider has quit [Quit: railsraider]
<jhass> ruby-lang271: figured, that'S why I said it ;)
pothibo has quit [Quit: pothibo]
<jhass> my typing skills have a bad day again :/
<jhass> ruby-lang271: so if you'd share some more...
mdz_ has joined #ruby
abirazor has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
ylla has quit [Ping timeout: 256 seconds]
pandaant has joined #ruby
n1x has joined #ruby
bahar has quit [Ping timeout: 272 seconds]
kt2 has quit [Quit: ...]
GriffinHeart has quit [Client Quit]
<ruby-lang271> sorry, had to rename a few things in the code
<ruby-lang271> jhass, gist is the same, wanna have a look at it now? https://gist.github.com/jjsantos/cdb7b1a14f3e26d55641
ndrei has quit [Ping timeout: 272 seconds]
<jhass> well, if you're repeating that pattern all over again in your code there might a way to DRY it up, but judging on the single line you show that's as good as it gets
<jhass> can't really say much with that amount of context, sorry
mdz_ has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
<jhass> oh, wait, you updated it m(
davidhq has joined #ruby
Xeago has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 255 seconds]
<jhass> let's see
anisha has joined #ruby
aryaching has joined #ruby
failshell has joined #ruby
<sem__> hello, I'm beginner and student . I've a personal project to improve my skills (ruby, sinatra) and I 've some difficulties to parse a json string. Can somone help me in private message ? Thx
zotherstupidguy has joined #ruby
torpor has joined #ruby
<Darkwater> why private?
bahar has joined #ruby
mary5030 has joined #ruby
<torpor> dumb ruby question: i want a buffer to be the sum total of three files using file.read .. how do i concatentate the reads from 3 different files?
<torpor> file1 = FILE.open("file1.txt")
mary5030 has quit [Remote host closed the connection]
<torpor> file2 = file.open("file2.txt")
Parker0 has quit [Read error: Connection reset by peer]
<torpor> data = file1.read + file2.read
<torpor> ^^ is that how?
failshell has quit [Remote host closed the connection]
<Darkwater> I think filen.get(nil) is better
<Darkwater> should get the entire contents
<apeiros> torpor: File.read(a)+File.read(b)+File.read(c)
<torpor> okay it is just plain concat.
mary5030 has joined #ruby
<oddmunds> a guess from the hip: data << file1 << file2
<torpor> kthx
astrobunny has quit [Ping timeout: 250 seconds]
<apeiros> no point in using File#open if all you do is slurp the whole file.
<Darkwater> so many ways
amystephen has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krz has joined #ruby
<apeiros> note: slurping whole files is not advised if the files are potentially large.
<torpor> oh, i can just do: data = file.read("file.txt") + file.read("file2.txt")?
<torpor> (the files are not large.. 80 lines each max)
pandaant has quit [Remote host closed the connection]
<apeiros> alternatively: data = [path_a, b, c].map { |path| File.read(path) }.inject(:+)
<torpor> hah hah, lol.
<jhass> ruby-lang271: http://paste.mrzyx.de/pmdkfnxa1 maybe not worth it for just two
<torpor> oddmunds' answer seems nicest.
failshell has joined #ruby
Guest58610 has joined #ruby
<apeiros> if it'll always be 3 files, I'd stick with 3 times File.read
<torpor> btw, ruby-1.9. :)
<oddmunds> torpor: but it doesnt work :D
<torpor> yeah i thought so
<apeiros> torpor: yeah, 1.9 is relevant info. 2.2 is current.
<torpor> has to be 1.9
<jhass> sem__: don't worry about appearing as dumb or anything, just ask the channel ;)
<torpor> i'm hacking on it anyway now, thx
<ruby-lang271> jhass totally worth it!
<ruby-lang271> states the intention much better!
<oddmunds> torpor: how about `cat file1.txt > data.txt && cat file2.txt >> data.txt` ?
<ruby-lang271> I'm goinf to use a modified version of this, if you don't mind
<jhass> ruby-lang271: consider it public domain
<torpor> oddmunds: i want to do it in ruby
<ruby-lang271> thanks, man!
yqt has quit [Ping timeout: 264 seconds]
<oddmunds> to learn ruby?
<torpor> yeah
<oddmunds> sometimes 'the ruby way' is to use the unix tools already there
hinbody has joined #ruby
decoponio has joined #ruby
dudedudeman has joined #ruby
<jhass> I wonder how ARGF does it
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<jhass> do you have to restart the read for each file? I don't remember
Xeago has joined #ruby
lavros has joined #ruby
dopie has joined #ruby
phat4life has left #ruby ["WeeChat 1.2"]
nertzy has joined #ruby
starfox_sf has joined #ruby
a346 has joined #ruby
<apeiros> with ARGF? no
startupality_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<willharrison> oddmunds: if the guy wants to learn ruby by reimplementing a unix command I think that's a good idea
<apeiros> ARGF.gets/.read will read each input file and then stdin until stdin is closed.
startupality has quit [Ping timeout: 255 seconds]
startupality_ is now known as startupality
<oddmunds> willharrison: yeah, i agree.
jerius has joined #ruby
<willharrison> oddmunds: ah ok I misunderstood then
<oddmunds> :)
lapide_viridi has quit [Quit: Leaving]
bigkevmcd has joined #ruby
__chris has joined #ruby
<sem__> @jhass thx
thelastinuit has joined #ruby
starfox_sf has quit [Ping timeout: 250 seconds]
speakingcode has quit [Ping timeout: 244 seconds]
banister has joined #ruby
ruby-lang044 has quit [Ping timeout: 246 seconds]
thiagovsk has joined #ruby
ringarin has quit [Quit: WeeChat 0.4.2]
freerobby has joined #ruby
aryaching has quit []
znz_jp has quit [Ping timeout: 256 seconds]
Deck` has joined #ruby
ndrei has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
jgoyon has quit [Ping timeout: 246 seconds]
<torpor> ok it works and now i understand ruby enough to be able to ignore it and move on. thx!
ruby-lang271 has quit [Ping timeout: 246 seconds]
duggiefresh has joined #ruby
thelastinuit has quit [Client Quit]
LJT_ has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
chinmay__ has quit [Remote host closed the connection]
Seanzie has joined #ruby
kies has quit [Ping timeout: 245 seconds]
aganov has quit [Remote host closed the connection]
aryaching has joined #ruby
<Deck`> How to get difference between values of two hashes ? https://dpaste.de/JnKf
mello has joined #ruby
LJT has quit [Ping timeout: 265 seconds]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IanVorn has joined #ruby
gamename has quit [Remote host closed the connection]
hahuang65 has joined #ruby
MasterPiece has quit [Remote host closed the connection]
<jhass> Deck`: I think I'd go for result = h1.map.with_object({}) {|(k, v| result| result[k] = h2[k]-v }
bahar has quit [Ping timeout: 258 seconds]
yqt has joined #ruby
agarie has joined #ruby
* ljarvis hands jhass a )
* jhass thanks and hands ljarvis the superfluous | back
<ljarvis> also that wont work because b would be -4
znz_jp has joined #ruby
<ljarvis> o
<ljarvis> shhh LJT_
<ljarvis> wat
<ljarvis> ljarvis
<ljarvis> LJT_: carry on
<yorickpeterse> you drunk?
<ljarvis> you jelly?
<yorickpeterse> not really
<ljarvis> o
<ljarvis> then no
<LJT_> ljarvis ???
<yorickpeterse> if I want to get drunk I can just grab some soju
<ljarvis> LJT_: i accidentally your name, please ignore
<LJT_> all good :)
<ljarvis> yorickpeterse: when are you back in the land of the home
<yorickpeterse> Friday evening
havenwood has joined #ruby
mello has quit [Ping timeout: 245 seconds]
<yorickpeterse> kinda miss my own not-crappy wifi
<ljarvis> was this a vacay?
<apeiros> jhass: that'll run into troubles with key diffs
<yorickpeterse> yeah
<yorickpeterse> "vacation"
<niitotantei> Deck`: Hash#merge
<ljarvis> workation?
<ljarvis> niitotantei: that's not the same, read their code
<yorickpeterse> ljarvis: well I'm not working for $WORK
<jhass> niitotantei: Hash#merge won't result in their example result :/
<yorickpeterse> but I'm doing FOSS
<ljarvis> yorickpeterse: ah
<ljarvis> yorickpeterse: dat rust
<jhass> apeiros: can only work by the examples given...
<yorickpeterse> ljarvis: yeah
<apeiros> jhass: true. information is vague. and your solution does fit the example.
<yorickpeterse> I'm not venturing into multi-threading land
tkuchiki has joined #ruby
<apeiros> jhass: but given the missing :c key I extrapolated that only common keys should be summed
nertzy has quit [Quit: This computer has gone to sleep]
<apeiros> or diffed
<ljarvis> rust is the first language since c++ 10 years ago that i really find difficult to read
<yorickpeterse> heh
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> and I extrapolated that the keyset of h2 is a superset of h1 :P
ndrei has quit [Ping timeout: 264 seconds]
<ljarvis> i can write it.. but reading it? nup
hahuang65 has quit [Ping timeout: 265 seconds]
<sevenseacat> ljarvis: isnt it usually the opposite >_>
<apeiros> jhass: yupp. valid. as said, vague info.
ndrei has joined #ruby
<ljarvis> sevenseacat: I'd assume so yeah, i guess i'm special :(
bahar has joined #ruby
EllisTAA has joined #ruby
g0rx has joined #ruby
<EllisTAA> i want to create a website that can pull up code and execute it. with my limited knowledge i was thinking i need an ide … is that true if so can i just embed one??
<shevy> it's often easier to understand what you just wrote, than reading something that you did not write or wrote years ago
<shevy> I had that a lot more with perl; ruby code on the other hand can be very readable
<sevenseacat> EllisTAA: what?
<sevenseacat> thats..... not a straightforward thing to do.
<jhass> EllisTAA: I'd suggest you don't run untrusted code if you have that level of questions
<EllisTAA> ha uh so i want to create a website that allows me to store my sourcecode and then let visitors execute it …
<apeiros> EllisTAA: no, you can't embed an IDE into a website.
<sevenseacat> and will very likely lead to your entire server getting hosed.
<apeiros> you can develop a web-based IDE. but given your apparent knowledge, I think that's not realistic.
<EllisTAA> *dreams crushed* ok
fgo has joined #ruby
<jhass> nah, not crushed, put on hold
<EllisTAA> :)
<jhass> you'll know when you can revisit it
<adaedra> go step by step
CloCkWeRX has joined #ruby
<EllisTAA> thanks
DoubleMalt has quit [Remote host closed the connection]
CloCkWeRX1 has quit [Ping timeout: 265 seconds]
MasterPiece has joined #ruby
DoubleMalt has joined #ruby
<jhass> that said of the roughly 400 people that've been to http://carc.in nobody tried to really break it so far, it's quite disappointing
MasterPiece has quit [Remote host closed the connection]
bMalum has joined #ruby
axl_ has joined #ruby
<yorickpeterse> done
<yorickpeterse> bah, it handles fork bombs
<yorickpeterse> as if somebody thought about it
fgo has quit [Ping timeout: 255 seconds]
<jhass> :P
<jhass> and it's only the second fork bomb!
<jhass> the first one was a shell one that failed to execute
umgrosscol has joined #ruby
<EllisTAA> what’s a fork bomb
psy_ has quit [Ping timeout: 256 seconds]
fujimura has joined #ruby
CloCkWeRX1 has joined #ruby
<jhass> but I mean I allow to run C and don't even see the known privilege escalation thingies
CloCkWeRX has quit [Quit: Leaving.]
edmagne has joined #ruby
codecop has quit [Remote host closed the connection]
edmagne has left #ruby [#ruby]
<jhass> EllisTAA: a process that clones itself in an infinite loop consuming all system resources
<shevy> the zombie mother
<EllisTAA> ooo
chinmay_dd has joined #ruby
super has quit [Ping timeout: 264 seconds]
g0r__ has joined #ruby
g0r__ has left #ruby [#ruby]
<yorickpeterse> jhass: I take it this runs under a VM/container/cgroups?
zombirx has joined #ruby
<jhass> yeah
<zombirx> any ruby coder ?
LJT_ has quit [Read error: Connection reset by peer]
<yorickpeterse> meh
<yorickpeterse> cbf h4x0ring it
mdz_ has joined #ruby
<jhass> zombirx: no, we're 1000 geologists
<jhass> (j/k)
<TheBrayn> j
<adaedra> k
<adaedra> I won
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Remote host closed the connection]
hinbody has quit [Read error: Connection reset by peer]
<yorickpeterse> I'm a doctor
CloCkWeRX1 has quit [Ping timeout: 256 seconds]
fujimura has quit [Ping timeout: 276 seconds]
lxsameer has quit [Quit: Leaving]
chinmay_dd has joined #ruby
<jhass> of geology!
<ljarvis> i really want something like the rust/go playgrounds which let you run code and display the output underneath without the UI changing (but in multiple languages)
<adaedra> Dr Rock
pandaant has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<yorickpeterse> pull down your pants and cough
<yorickpeterse> (that's what doctors say right?)
<apeiros> yorickpeterse: that's uninteresting. s/a/the/ and suddenly you've got my attention :)
psy_ has joined #ruby
<sem__> this is my problem : @point = game.point values = JSON.parse(@point.to_json) File.open('data.json', 'w'){|file| file.write(values)} erb :index end
<yorickpeterse> replace what "a"?
<yorickpeterse> oh, "I'm the doctor"?
<sem__> I want to display the points in sinatra
<adaedra> <yorickpeterse> I'm a doctor – I'd say
<apeiros> yorickpeterse: *sob*, ok: s/\ba\b/the/
jgt1 has quit [Ping timeout: 256 seconds]
<adaedra> meh, too slow
bMalum has quit [Quit: bMalum]
<flughafen> what the hell
ruv has joined #ruby
<apeiros> wait
thelastinuit has joined #ruby
<apeiros> there was no other "a" in that phrase
<jhass> lol
<apeiros> those \b were unnecessary
<yorickpeterse> you didn't specify the input buffer
<apeiros> yorickpeterse: and yes, "I'm the doctor" :)
kevkev has quit [Quit: (null)]
<jhass> apeiros: it's nice that you gave them a home & purpose anyway
<apeiros> and WHO ever doesn't get the reference - that's your own damn fault :-p
bahar has quit [Ping timeout: 256 seconds]
<yorickpeterse> stop discrimination against \
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barkerd427 is now known as zz_barkerd427
<yorickpeterse> * \b today!
<adaedra> apeiros: ahah.
<yorickpeterse> all escape sequences are equal
<apeiros> but some are more equal
<Darkwater> sem__: what is the problem?
<Darkwater> I see some code and somethign you want
<jhass> sem__: start by removing that JSON.parse(x.to_json), just File.write("data.json", game.point.to_json)
bMalum has joined #ruby
<jhass> sem__: then in your sinatra app you can get back your array/hash with JSON.parse(File.read("data.json"))
<sem__> ok thx jhass and Darkwater
EllisTAA has quit [Quit: EllisTAA]
hinbody has joined #ruby
<sem__> ok
<Darkwater> jhass: I think that's in his sinatra app
<Darkwater> because he's calling erb
chinmay_dd has joined #ruby
kbcxpgbsa has joined #ruby
<jhass> Darkwater: yeah, I made my best guess :P
<Darkwater> it's hard to tell anyway
ylla has joined #ruby
<pleiosaur> ljarvis: try http://repl.it/languages
<Darkwater> sem__: if you set an @instancevar in a get/post/whatever block, you can access it in the erb template
bantic has joined #ruby
Xeago has joined #ruby
<Darkwater> so get '/' do @something = 5; erb :index; end
<ljarvis> pleiosaur: that comes pretty close, thanks
<Darkwater> <%= @something %> in index.erb
papz has quit [Ping timeout: 265 seconds]
Senjai has quit [Quit: frt]
Senjai`work has joined #ruby
jpfuentes2 has joined #ruby
n1x has quit [Ping timeout: 252 seconds]
bMalum has quit [Quit: bMalum]
iamjarvo has joined #ruby
atomical has joined #ruby
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby
Senjai`work is now known as Senjai
bahar has joined #ruby
<Senjai> Morning ruby
bMalum has joined #ruby
Scroff has quit [Remote host closed the connection]
<sevenseacat> evening Senjai
pdoherty has joined #ruby
mandarinkin has quit [Remote host closed the connection]
kbcxpgbsa has quit [Quit: Using Circe, the loveliest of all IRC clients]
CloCkWeRX has joined #ruby
kp666 has quit [Remote host closed the connection]
<zombirx> any body for hire ?
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
stoogenmeyer__ has quit [Ping timeout: 256 seconds]
<axl_> lol
sepp2k has joined #ruby
Scroff has joined #ruby
<jhass> oh, you changed nick
avat has joined #ruby
astrobunny has joined #ruby
<Darkwater> yeah someone nicked g0rx just asked me as well
k3asd` has quit [Ping timeout: 255 seconds]
<Senjai> jhass: me?
gamename has joined #ruby
<jhass> Senjai: zombirx
amystephen has quit [Quit: amystephen]
<Senjai> ah
<surrounder> Darkwater: again? where ?
<Darkwater> pm
<jhass> Darkwater: oh
<surrounder> lol
<surrounder> that guy ey
<avat> Hello guys! I'm trying to "unwire" my classes from each other - is this the proper way for dependency injection? https://gist.github.com/ZyzioZiom/c7bc2a9a25c38779307e
<zombirx> Yes i did
gamename has quit [Remote host closed the connection]
<jhass> !kick zombirx http://ruby-community.com/pages/user_rules please see channel rule 2.9
zombirx was kicked from #ruby by ruboto [http://ruby-community.com/pages/user_rules please see channel rule 2.9]
stoogenmeyer__ has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
zombirx has joined #ruby
<jhass> zombirx: got the kick reason?
gamename has joined #ruby
<sem__> get '/' do game = Game.new @point = game.point JSON.parse(File.read("data.json")) erb :index end post '/' do game = Game.new game.point!(params[:marque].gsub(/oueur /, '').to_sym) @point = game.point File.write("data.json", game.point.to_json) erb :index end
<zombirx> an other one plz
<sem__> I have A JSON text must at least contain two octets!
<adaedra> gist, gist, gist
<jhass> ?gist sem__
<ruboto> sem__, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<sem__> sorry
torpor has quit [Quit: Leaving.]
_seanc_ has joined #ruby
<adaedra> And if your data.json is empty, the error is normal
<zombirx> !kick jhass don t
<Darkwater> lol
<jhass> zombirx: say what?
<yorickpeterse> "Offensive behavior include but are not limited to (in no particular order): Trolling" fuck
<zombirx> the bot don t obey
<zombirx> how to kick you also ?
<yorickpeterse> you can't
<yorickpeterse> you're not an op
Zai00 has quit [Quit: Zai00]
<adaedra> yorickpeterse: no troll for you!
<Senjai> jhass: just ban the guy :P
<yorickpeterse> :<
RegulationD has joined #ruby
<jhass> Senjai: will on the next channel rule violation
jwaldrip has joined #ruby
banister has quit [Ping timeout: 256 seconds]
tagrudev has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 265 seconds]
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_seanc_ has quit [Client Quit]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
nricciar has joined #ruby
cmisenas has joined #ruby
<jhass> sem__: okay, cool, now you parse the file but you don't do anything with the parsed result
<jhass> sem__: JSON.parse returns it, but you ignore its return value
<jhass> you should assign it to something for starters
<avat> I guess I was lost in trollwar, repeating my question :) - I'm trying to "unwire" my classes from each other - is this the proper way for dependency injection? https://gist.github.com/ZyzioZiom/c7bc2a9a25c38779307e
plashchynski has quit [Quit: plashchynski]
blackmesa has joined #ruby
plashchynski has joined #ruby
AhabsBeard has joined #ruby
gamename has quit [Remote host closed the connection]
commondream has joined #ruby
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
roolo_ has joined #ruby
Lector has joined #ruby
torpor has joined #ruby
Scrofff has joined #ruby
enebo has joined #ruby
kies has joined #ruby
poguez_ has joined #ruby
thomasvm has joined #ruby
beneggett has joined #ruby
alex88 has joined #ruby
roolo has quit [Ping timeout: 276 seconds]
thomasvm has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
<_aeris_> hello everybody !
<_aeris_> i have a HUGE crazy problem :(
<_aeris_> here is my example code https://gist.github.com/aeris/cfa68513f24a263323e9
<_aeris_> if i comment the « require 'ui_bibz' », no problem
<sem__> ok thx jhass
zombirx has quit []
<_aeris_> if i uncomment it, dead-lock on Foo.find
<jhass> _aeris_: is this a game to guess what error you're getting?
<_aeris_> if i uncomment it but empty-ing the corresponding ui_bibz.rb, dead-lock ><
<Darkwater> are you 100% sure you're emptying the right ui_bibz.rb>
endash has joined #ruby
hanmac1 has quit [Quit: Leaving.]
<_aeris_> Darkwater > yep, echoing something at the top
tubuliferous_ has joined #ruby
Xzanron has quit [Read error: Connection reset by peer]
<_aeris_> and this is the only gem version i have for this
<jhass> https://github.com/thooams/Ui-Bibz/blob/master/lib/ui_bibz/rails/engine.rb mmh it only seems to patch ActionView stuff
<sem__> but I don't know how to assign something for starters I have this code
hdev1 has joined #ruby
Tamae has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
unshadow has quit [Quit: leaving]
<jhass> sem__: @data = JSON.parse(File.read("data.json"))
<jhass> sem__: would assign it to the instance variable @data
<_aeris_> jhass > i took hours on this bug, no tip at this time
<jhass> which you then could use in your index template for example
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby
rikkipitt has quit [Quit: Leaving...]
ndrei has joined #ruby
kies has quit [Ping timeout: 250 seconds]
<_aeris_> the only clue i have : seems the dead-lock created by kernel_require
<_aeris_> https://paste.imirhil.fr/?4bd76183929a14ae#gJq4Ze+8sSdjDaqk/auZnyVfBF+CQ8R1GAKDiX/LGTA=
<_aeris_> seems the mutex RUBYGEMS_ACTIVATION_MONITOR.enter (line 39)
<sem__> ok jhass
Iskarlar has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
Zai00 has joined #ruby
intinig has joined #ruby
justintv90 has quit [Ping timeout: 255 seconds]
<jhass> _aeris_: I'm afraid it doesn't reproduce for me
<_aeris_> :(
<jhass> _aeris_: can you add your Gemfile.lock?
<_aeris_> yep, sure
sandstrom has quit [Quit: My computer has gone to sleep.]
pyo_ has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
<jhass> _aeris_: also given there's no require "bundler/setup", do you ruby wtf.rb or bundle exec ruby wtf.rb?
jgt1 has joined #ruby
n1x has joined #ruby
pyo_ has joined #ruby
<_aeris_> hum…
freerobby has quit [Quit: Leaving.]
<_aeris_> from scratch, indeed, no dead lock ><
<_aeris_> rhaaaaaaaaaaaaa ><
AhabsBeard has quit []
<fschuindt> jhass: hey bro, remember me? UTF-16LE hahaha
<jhass> fschuindt: didn't work out? :(
casadei has joined #ruby
<fschuindt> kind of the same problem here, any help? https://gist.github.com/fschuindt/7c5494e9386654d1cc1e
<fschuindt> jhass: kinf of :S
<fschuindt> kind*
rippa has joined #ruby
<jhass> well, did you try BE? :P
AhabsBeard has joined #ruby
EllisTAA has joined #ruby
<apeiros> fschuindt: `.encode!("UTF-8", "UTF-16LE") ==` <-- *don't* chain on ! methods
<fschuindt> jhass: yes, it stops to work.
<jhass> also doing it at all seems strange
<fschuindt> apeiros: ty
d10n-work has joined #ruby
<EllisTAA> hey yall. i want to create a crappy search engine for my homework assignment. would that be easy to do? I just have to create a spider right?
<apeiros> fschuindt: also, if you already properly set the encoding of the string, you don't need from + to, the to alone is sufficient
<jhass> >> "INSERT".encode("UTF-16LE") == "INSERT".encode("UTF-8")
<ruboto> jhass # => false (https://eval.in/378377)
<apeiros> from defaults to string.encoding
<jhass> wut
AhabsBeard has quit [Max SendQ exceeded]
<fschuindt> jhass: hahaha
<apeiros> encoding matters in ==
Xeago has quit [Remote host closed the connection]
<jhass> meh
<apeiros> >> "".encode("UTF-16") == ""
<ruboto> apeiros # => true (https://eval.in/378380)
<apeiros> hm
AhabsBeard has joined #ruby
<apeiros> or was it that == is a binary comparison?
<apeiros> probably
caseypatrickdris has joined #ruby
denver has joined #ruby
<apeiros> >> "\xFE\xFF\x00h\x00i".b == "hi".encode('utf-16')
<ruboto> apeiros # => false (https://eval.in/378386)
sarink has joined #ruby
<apeiros> ok, seems it depends :D
<apeiros> anyway, bottom of the line is that you want to == only with same encoding.
<fschuindt> one script works, the other one dont. I think that is related to the line 32 @ splitter.rb. When I store the string in the array. I don't know, somewhere it mess up with the accents :((
ogpastaling has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
<jhass> I think it's the encode! line
<fschuindt> LOL
<fschuindt> it makes all the sense
<fschuindt> w8 hahahahaha
<apeiros> the strip is also relatively pointless
<apeiros> if those 6 chars contain spaces, then the string is necessarily NOT equal to "INSERT" ;-)
<jhass> File.new should convert to UTF-16LE to UTF-8 and then you interpret that UTF-8 as UTF-16LE and convert it to UTF-8, no?
<fschuindt> apeiros: yeah, thats right
mandarinkin has joined #ruby
<fschuindt> jhass: wait, what
ndrei has quit [Ping timeout: 256 seconds]
EllisTAA has quit [Quit: EllisTAA]
<_aeris_> jhass > trouble with ./wtf.rb, no trouble with bundle exec ./wtf.rb ><
<jhass> doesn't File.new convert to Encoding.default_internal?
<jhass> _aeris_: then just use that :P
ebbflowgo has joined #ruby
<fschuindt> whats the difference between enconde and encode!? the second changes the proper value, right?
<_aeris_> jhass > not a response :P
<apeiros> jhass: true
<jhass> _aeris_: else you're loosing the benefit of bundler anyway
banister has joined #ruby
mdw has joined #ruby
<apeiros> fschuindt: File.read(…, encoding: "UTF-16LE") translates to Encoding.default_internal
<jhass> _aeris_: you can also add said require "bundler/setup" as first require, which does the same thing
<apeiros> if you don't want it to be translated, you set external + internal encoding
<jhass> fschuindt: and .encode with two parameters the second parameter changes how it's interpreted again
<apeiros> another reason why 2-param encode is bad…
chinmay_dd has quit []
AhabsBeard has quit []
torpor has quit [Quit: Leaving.]
whippythellama has joined #ruby
bahar has joined #ruby
ebbflowgo has quit [Ping timeout: 252 seconds]
k3asd` has joined #ruby
pothibo has joined #ruby
ebbflowgo has joined #ruby
pothibo has quit [Client Quit]
pyo_ has quit []
<fschuindt> apeiros: jhass: I have changed the line 26 @ splitter.rb https://gist.github.com/fschuindt/7c5494e9386654d1cc1e but it stills messing the accents. :(
tenderlove has quit [Quit: Leaving...]
<fschuindt> line 29 *
Papierkorb has joined #ruby
<apeiros> line[0..5].encode("UTF-8") # that .encode is a no-op since the string already is in utf-8
<apeiros> assuming you use ruby 2.1+
<apeiros> sorry, 2.0+
<fschuindt> apeiros: the string is UTF-16LE
joaomdmoura has joined #ruby
<apeiros> fschuindt: no
<apeiros> add a `p line.encoding` before that line
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> see what it prints
<fschuindt> apeiros: UTF16-LE
<apeiros> fschuindt: https://gist.github.com/apeiros/39acc5b486f932403638 - I suggest you read this and tell me whether it helps you. and what's left missing.
kwd has quit [Quit: kwd]
<fschuindt> apeiros: ok
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> fschuindt: for real? what does `p Encoding.default_internal` print
Guest58610 has quit [Remote host closed the connection]
phat4life has joined #ruby
<jhass> I'm starting to think that UCS 2 might not be as UTF-16 compatible as thought...
<phat4life> how to i supress stdout when i am running rspec tests?
<jhass> phat4life: >/dev/null
nertzy has joined #ruby
<fschuindt> apeiros: p Encoding.default_internal prints nil
chipotle has joined #ruby
<jhass> fschuindt: how about "".encoding ?
bahar has quit [Ping timeout: 265 seconds]
<jhass> (p "".encoding)
AlphaAtom has joined #ruby
<apeiros> sorry, got to commute. back in ~45min
[1]abirazor has quit [Read error: Connection reset by peer]
<fschuindt> apeiros: no problem
<fschuindt> jhass: #<Encoding:UTF-8>
treehug88 has joined #ruby
Scroff has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
fabrice31 has quit [Remote host closed the connection]
<fschuindt> I am going out to the lunch time, see ya
iamninja has quit [Read error: Connection reset by peer]
<fschuindt> thank you guys
yekKhaste has joined #ruby
yekKhaste has left #ruby [#ruby]
AlphaAtom has joined #ruby
fiveseven_ has joined #ruby
sem__ has quit [Ping timeout: 246 seconds]
fiveseven_ has left #ruby ["=)"]
sarkyniin has joined #ruby
commondream has quit [Remote host closed the connection]
Scrofff has quit [Ping timeout: 272 seconds]
atm0sphere has joined #ruby
commondream has joined #ruby
avat has quit [Quit: Page closed]
Jinkins has joined #ruby
Porfa has joined #ruby
zz_barkerd427 is now known as barkerd427
<_aeris_> thanks jhass for the « non » help :P
AhabsBeard has joined #ruby
<jhass> apeiros: looks like we're wrong and it doesn't convert, at least not in the encoding: form
rubie has joined #ruby
<jhass> _aeris_: heh, educating on how to use bundler correctly is no help? :P
bahar has joined #ruby
rushed has quit [Quit: rushed]
startupality has quit [Read error: Connection reset by peer]
mase-chatter has quit [Quit: Leaving]
startupality has joined #ruby
dblessing has joined #ruby
atm0sphere has quit [Ping timeout: 246 seconds]
cdnsteve has joined #ruby
slawrenc_ has joined #ruby
someword has joined #ruby
<jhass> fschuindt: I think Ruby simply doesn't support UCS-2LE and it's not UTF-16LE compatible for your usecase, you'll have to resort to an external converter or look if there's a gem that provides UCS-2LE support
Seanzie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
datanois1 is now known as datanoise
sandstrom has joined #ruby
_seanc_ has joined #ruby
bMalum has quit [Quit: bMalum]
dgutierrez1287 has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
ta has quit [Remote host closed the connection]
_seanc__ has joined #ruby
<jhass> fschuindt: or since you only care about two specific tokens, INSERT and \n, you could look up the byte sequences for these in UCS-2LE and work with that
kobain has joined #ruby
Cache_Money has joined #ruby
fschuindt has quit [Ping timeout: 272 seconds]
mrsolo has joined #ruby
_seanc_ has quit [Ping timeout: 252 seconds]
_seanc__ is now known as _seanc_
<Porfa> hello guys...
<jhass> hi
<Porfa> haha whats up jhass ? :)
<Porfa> everythings ok?
starfox_sf has joined #ruby
<jhass> yeah
beneggett has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Porfa> there's to much heat in here some heatwave going on.. damn
<jhass> some concert outside not matching up well with my music, but that's all
dgutierrez1287 has quit [Ping timeout: 258 seconds]
doertedev has quit [Read error: Connection reset by peer]
<Porfa> hahah
ixti has joined #ruby
astrobunny has joined #ruby
iamjarvo has joined #ruby
<Porfa> so i've been looking around but i rather have the opinion of an user directly, rather than a blog….
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<phat4life> jhass: but i have an rspec test that expects stdout
<Porfa> i need to automate some page clicks and submits and wtv, i only have access to ssh to work on ruby… i've read about selenium and mechanize… if you could recumbent me one gem to start learning.. with one would it be?
kies has joined #ruby
mase-chatter has joined #ruby
startupality has quit [Quit: startupality]
keen___ has joined #ruby
<phat4life> expect { AccountManager.print_report }.to output(report).to_stdout, how can i suprress the output and have this test still pass?
<Porfa> what i want to so is to help out some employers.. i need my script to login at our company back office, select a couple of products, change the dates of the products availability, and expand the dates if required.. something like that.
hoey has quit [Quit: Connection closed for inactivity]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Porfa: heard good things about mechanize, pick that until it doesn't work for you
<sarkyniin> mechanize is pretty good
keen__ has quit [Ping timeout: 256 seconds]
<sarkyniin> using it to fetch some forum titles on a xenforo forum
xenog has left #ruby [#ruby]
solars has quit [Ping timeout: 256 seconds]
failshell has quit [Remote host closed the connection]
<Porfa> thanks! :) and i hope mechanize is text only.. because most of the selenium tutorials i've seen required an open webbrowser..
<sarkyniin> text only
freerobby has joined #ruby
<sarkyniin> yeah
<Porfa> ok, i'll make a mechanize tattoo then! thanks
starfox_sf has quit [Ping timeout: 265 seconds]
Zarthus has quit [Quit: This night will fall like any other, daylight subsides and shadows crawl.]
astrobunny has quit [Ping timeout: 246 seconds]
<jhass> !ban g0rx !T 1w unsolicited private messages
g0rx was kicked from #ruby by ChanServ [Banned: unsolicited private messages]
<hubcaps> lmao g0rx never learns huh?
laurentide has quit [Quit: Leaving]
Evidlo has quit [Ping timeout: 264 seconds]
Zarthus has joined #ruby
<jhass> nope
<ljarvis> Porfa: yep mechanize is what you want. Shout if you have any issues
<ljarvis> also wat tattoo
zombirx has joined #ruby
<Porfa> hahah languages and gems that help me put food on the table deserve a place in my body
sevenseacat has quit [Quit: Me dun like you no more.]
<ljarvis> Porfa: well, if you get a mechanize tattoo i will formally make it the mechanize logo
<ljarvis> (disclaimer: please dont do that)
zombirx is now known as g0r_
<phat4life> anyone know how to capture stdout for rspec, but suppressing printing?
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
<jhass> phat4life: just >/dev/null if you invoke it
commondream has quit [Remote host closed the connection]
balazs has joined #ruby
beneggett has joined #ruby
balazs has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 245 seconds]
balazs has joined #ruby
barkerd427 is now known as zz_barkerd427
<Porfa> let's see how it will work out haha
cdnsteve has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mello has joined #ruby
beneggett has quit [Client Quit]
fgo has joined #ruby
bahar has quit [Ping timeout: 272 seconds]
dhjondoh has quit [Remote host closed the connection]
A124 has joined #ruby
[H]unt3r has joined #ruby
livathinos has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
bluOxigen has joined #ruby
Xeago has joined #ruby
polysics has quit [Remote host closed the connection]
pothibo has joined #ruby
pothibo has quit [Client Quit]
polysics has joined #ruby
mello has quit [Ping timeout: 276 seconds]
hdev1 has quit [Ping timeout: 264 seconds]
snockerton has joined #ruby
g0r_ has quit []
fgo has quit [Ping timeout: 256 seconds]
hubcaps has quit [Ping timeout: 244 seconds]
allenn has quit [Ping timeout: 258 seconds]
__chris has quit [Quit: Leaving]
CalvinnHobbes has quit [Ping timeout: 246 seconds]
bahar has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
iwishiwerearobot has quit [Ping timeout: 258 seconds]
iwishiwerearobot has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
stoogenmeyer__ has quit [Ping timeout: 264 seconds]
withnale has quit [Quit: ZNC - http://znc.in]
yoongkang has joined #ruby
bryancp has joined #ruby
speakingcode has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
unshadow has joined #ruby
sandstrom has joined #ruby
moretti has joined #ruby
mister_s_ has quit [Ping timeout: 258 seconds]
alex88 has quit []
fujimura has joined #ruby
gkra has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
scripore has joined #ruby
Xeago has quit [Remote host closed the connection]
fschuindt has joined #ruby
KrzaQ has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
beneggett has joined #ruby
nixmaniack has joined #ruby
fujimura has quit [Ping timeout: 256 seconds]
niitotantei has left #ruby [#ruby]
OrbitalKitten has joined #ruby
SouL_|_ has quit [Ping timeout: 276 seconds]
KrzaQ has joined #ruby
kies has quit [Ping timeout: 265 seconds]
caseypatrickdris has quit [Read error: Connection reset by peer]
speaking1ode has joined #ruby
caseypatrickdris has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
n1x has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
speakingcode has quit [Ping timeout: 265 seconds]
tjbiddle has joined #ruby
cdnsteve has joined #ruby
mase-chatter has quit [Quit: Leaving]
symbol has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cmisenas has quit [Ping timeout: 258 seconds]
sanguisdex has quit [Ping timeout: 264 seconds]
cdnsteve has left #ruby [#ruby]
Scrofff has joined #ruby
starfox_sf has joined #ruby
zz_barkerd427 is now known as barkerd427
segfalt has quit [Quit: segfalt]
chrishough has joined #ruby
bronson has joined #ruby
cmisenas has joined #ruby
stan has quit [Ping timeout: 256 seconds]
<Sou|cutter> I think it's weird that you have a test which depends on stdout though
towski_ has joined #ruby
<Sou|cutter> I would write the class under test to use any stream, just $stdout by default
Scroff has quit [Ping timeout: 276 seconds]
dfockler has joined #ruby
strixd has quit [Quit: 500]
SouL_|_ has joined #ruby
joonty has quit [Quit: joonty]
sanguisdex has joined #ruby
fschuindt has quit [Ping timeout: 246 seconds]
Evidlo has joined #ruby
Limix has joined #ruby
_seanc_ has quit [Quit: _seanc_]
failshell has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
fschuindt has joined #ruby
ndrei has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fschuindt has quit [Ping timeout: 256 seconds]
ogpastaling has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
arooni-mobile has joined #ruby
ogpastaling has joined #ruby
gagrio has quit [Ping timeout: 246 seconds]
nixmaniack has quit [Quit: Ex-Chat]
hakunin has joined #ruby
kies has joined #ruby
commondream has joined #ruby
scripore has joined #ruby
bahar has quit [Quit: ZNC - http://znc.in]
tjbiddle has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
nmyster has quit [Quit: Connection closed for inactivity]
tjbiddle has joined #ruby
borodin has joined #ruby
<borodin> what is the current best way to get a modern ruby running in RHEL 6?
rhllor has joined #ruby
<treehug88> borodin: I presume rvm
ogpastaling has quit [Ping timeout: 250 seconds]
<borodin> I have root but I may not have visibiilty to the interwebs from the server
<borodin> so I don't think RVM is going to work
<havenwood> borodin: https://rvm.io/rvm/offline
<treehug88> hm, root not needed but access to the gems and tarballs needed
nahtnam has joined #ruby
<adaedra> borodin: package collections have 1.9.3 iirc, if that's modern enough for you...
<adaedra> s/package/software/
darkf has quit [Quit: Leaving]
<treehug88> nice, havenwood and adaedra
hoov has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<ljarvis> huh? they should have 2.2 as well..
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> ?
<ljarvis> lee@jarvo:~$ apt-cache search ruby2 | grep ^ruby
<ljarvis> ruby2.0
<ljarvis> meh, close enough
kedare has quit [Read error: Connection reset by peer]
<havenwood> In maintenance mode but at least not past end-of-life!
stef204 has joined #ruby
<adaedra> > RHEL
<adaedra> > apt-cache
<adaedra> uh
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
<ljarvis> o I missed that part
<adaedra> :)
<ljarvis> anyway, if you have yum/another package manager, then you can install rvm
iamninja has joined #ruby
NeverDie has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<borodin> how do you tell bundler to store all necessary gems for an app in vendor/cache?
fschuindt has joined #ruby
<adaedra> I don't want to imagine how old the RHEL6-provided rvm would be
<borodin> is it bundle install --deployment ?
<adaedra> borodin: --path ?
<ljarvis> bundle help install
<borodin> I need to check in my ap and have as a part of the check in a directory containing all the necessary gems
<borodin> my prod box doesn't have access to the internet to download gems
ahmetkapikiran has joined #ruby
tubuliferous_ has joined #ruby
NeverDie has quit [Max SendQ exceeded]
tjbiddle has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
seank_ has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
tjbiddle has joined #ruby
banister has joined #ruby
<borodin> ljarvis: bundle help install == http://bundler.io/bundle_install.html (minus the t-shirt ad0 right?
ahmetkapikiran has quit [Client Quit]
zoo-zed has joined #ruby
<ljarvis> looks like it
astrobunny has quit [Ping timeout: 276 seconds]
zoo-zed has quit [Client Quit]
zoo-zed has joined #ruby
zoo-zed has quit [Client Quit]
<borodin> so in dev, I can do bundle install--path vendor/bundle, then check in the code, then in prod I can do bundle install --path vendor/bundle, and it'll only search there for the needed gems?
<borodin> or bundle install --deployment?
bb010g has quit [Quit: Connection closed for inactivity]
shakes has joined #ruby
<adaedra> if you move the vendor/bundle with the project (don't put it in VCS please) and the system is the same, it should directly use the gems in the folder I guess
<adaedra> don't know how good of an idea it is though
tubuliferous_ has quit [Ping timeout: 245 seconds]
<borodin> I can't build a gem server, I can't see rubygems.org from the box. I have little choice than to move the gems locally with the install
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
iamninja has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
hdev1 has joined #ruby
baweaver has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
iamninja has joined #ruby
barkerd427 is now known as zz_barkerd427
ogpastaling has joined #ruby
rodferso1 has joined #ruby
rodferso1 has quit [Client Quit]
aaeron has joined #ruby
commondream has quit [Remote host closed the connection]
beneggett has joined #ruby
vikaton has joined #ruby
commondream has joined #ruby
aaeron_ has joined #ruby
polysics has joined #ruby
bgmarx has joined #ruby
apofis has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 255 seconds]
apofis has joined #ruby
rhllor has quit [Quit: rhllor]
chthon has quit [Ping timeout: 244 seconds]
bayed has joined #ruby
_seanc_ has joined #ruby
Soda has joined #ruby
ogpastaling has quit [Ping timeout: 265 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
aaeron has quit [Ping timeout: 264 seconds]
DoubleMalt has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
aaeron_ is now known as aaeron
RobertBirnie has joined #ruby
beneggett has quit [Ping timeout: 250 seconds]
iamninja has quit [Ping timeout: 272 seconds]
moretti has quit [Quit: Leaving...]
centrx has joined #ruby
lordkryss has joined #ruby
pengin has joined #ruby
lsmola has quit [Ping timeout: 265 seconds]
commondream has quit [Remote host closed the connection]
moretti has joined #ruby
apofis has quit [Ping timeout: 250 seconds]
ogpastaling has joined #ruby
anisha has quit [Quit: Leaving]
moretti has left #ruby [#ruby]
fschuindt has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: This computer has gone to sleep]
segfalt has joined #ruby
shock_one has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
imperator has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Remote host closed the connection]
imperator has joined #ruby
M-Technic has joined #ruby
intinig has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
joneshf-laptop has quit [Ping timeout: 246 seconds]
intinig has joined #ruby
Torsten` has joined #ruby
mello has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
yqt has joined #ruby
MatthewsFace has joined #ruby
aaeron has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
scripore has joined #ruby
SouL_|_ has quit [Remote host closed the connection]
Matthews_ has joined #ruby
jgoyon_ has joined #ruby
dumdedum has quit [Quit: foo]
MatthewsFace has quit [Read error: Connection reset by peer]
Evidlo has quit [Ping timeout: 258 seconds]
shock_one has joined #ruby
mello has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
spider-mario has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
pikos has joined #ruby
RobertBirnie has quit [Ping timeout: 244 seconds]
Limix has quit [Quit: Limix]
djbkd has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
pengin has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
chris2 has quit [Ping timeout: 276 seconds]
codenihal has joined #ruby
RobertBirnie has joined #ruby
Xeago has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 255 seconds]
withnale_ has quit [Quit: Be back later ...]
Filete has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zz_barkerd427 is now known as barkerd427
shock_one has quit [Ping timeout: 276 seconds]
Matthews_ has quit []
AlphaAtom has joined #ruby
polysics has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Read error: Connection reset by peer]
Spami has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
jcaho has joined #ruby
Dreamer3 has joined #ruby
stoogenmeyer__ has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
chris2 has joined #ruby
The_Phoenix has joined #ruby
tvw has joined #ruby
balazs has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
cmisenas has quit [Quit: cmisenas]
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
aapole has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
x1337807x has joined #ruby
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IanVorn has joined #ruby
barkerd427 is now known as zz_barkerd427
msnyon has joined #ruby
bricker has joined #ruby
balazs has joined #ruby
shakes has quit [Quit: Leaving]
ki0_ has joined #ruby
hdev1 has quit [Ping timeout: 255 seconds]
axl_ has quit [Remote host closed the connection]
n3k00n3 has joined #ruby
stamina has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 256 seconds]
pengin has joined #ruby
Pqi has joined #ruby
but3k4 has quit [Ping timeout: 264 seconds]
failshell has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
c0m0 has quit [Ping timeout: 244 seconds]
fschuindt has joined #ruby
edwinvdgraaf has joined #ruby
ki0 has quit [Ping timeout: 252 seconds]
<Pqi> Hello, What is the type of the object on which I can iterate such as " X.each do |key, value| " ? Is that an hashmap ? I tried to iterate on something like this: ['array'] = { x=>y, a=>b } but it doesnt seem to be the right type
mrsolo has quit [Quit: This computer has gone to sleep]
<drPoggs> Pqi: That's a Hash, yes
Eiam has quit [Disconnected by services]
<drPoggs> Pqi: On an Array, you could do ['foo', 'bar', 'baz'].each do |qux|...end
ki0_ has quit [Ping timeout: 276 seconds]
kerunaru has joined #ruby
<centrx> Pqi, Could also be any Enumerable of pairs
arooni-mobile has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
but3k4 has joined #ruby
failshell has joined #ruby
d0lph1n98 has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
mhoungbo has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sarink> is there an easy way to tell if a variable is a regex
OrbitalKitten has joined #ruby
Soda has quit [Remote host closed the connection]
<centrx> sarink, myvar.class
iamjarvo has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
dmolina has quit [Quit: Leaving.]
dmolina has joined #ruby
prereflect has joined #ruby
pengin has quit [Remote host closed the connection]
<Pqi> drPoggs: centrx okay thanks fine it's perfect
but3k4_ has joined #ruby
commondream has joined #ruby
rbowlby has joined #ruby
astrobunny has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
<hanmac> sarink: probably better: myvar.is_a?(Regexp)
RobertBi_ has joined #ruby
phat4life has left #ruby ["WeeChat 1.2"]
RobertBirnie has quit [Read error: Connection reset by peer]
banister has joined #ruby
Scrofff has quit [Ping timeout: 245 seconds]
Jinkins has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
commondr_ has joined #ruby
dmolina has quit [Ping timeout: 246 seconds]
pdoherty has quit [Ping timeout: 272 seconds]
PaulCapestany has quit [Quit: .]
nertzy has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
PaulCapestany has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<codenihal> Just joined, Ruby is awesome
commondream has quit [Ping timeout: 250 seconds]
<drPoggs> \o/
scripore has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
pengin has joined #ruby
torpor has joined #ruby
revath has joined #ruby
<sarink> minaswan
duderonomy has quit [Ping timeout: 246 seconds]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Senjai> sarink: variable.is_a?(Regex), but you should ducktype instead
ElkEater has joined #ruby
IanVorn has joined #ruby
ElkEater has left #ruby [#ruby]
commondr_ has quit [Ping timeout: 276 seconds]
IanVorn has quit [Max SendQ exceeded]
IanVorn has joined #ruby
bantic has quit [Quit: bantic]
Limix has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
hdev1 has joined #ruby
Evidlo has joined #ruby
mrsolo has joined #ruby
nonparfumee has joined #ruby
bronson has quit [Remote host closed the connection]
CloCkWeRX has left #ruby [#ruby]
codenihal has quit [Quit: Textual IRC Client: www.textualapp.com]
yqt has quit [Ping timeout: 246 seconds]
platzhirsch has quit [Quit: Leaving.]
ebbflowgo has joined #ruby
bgmarx has quit [Remote host closed the connection]
CloCkWeRX1 has joined #ruby
torpor has quit [Quit: Leaving.]
snockerton has quit [Quit: Leaving.]
snockerton has joined #ruby
hotpancakes has joined #ruby
fujimura has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chussenot has joined #ruby
ixti has quit [Read error: Connection reset by peer]
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
bootstrappm has joined #ruby
fujimura has quit [Ping timeout: 250 seconds]
snockerton has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: This computer has gone to sleep]
snockerton1 has joined #ruby
snockerton1 has quit [Client Quit]
OrbitalKitten has joined #ruby
AhabsBeard has quit []
Zai00 has quit [Quit: Zai00]
mdw has quit [Quit: Textual IRC Client: www.textualapp.com]
aryaching has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
mbeasley has joined #ruby
OrbitalKitten has quit [Client Quit]
mbeasley has left #ruby [#ruby]
lkba has joined #ruby
symm- has joined #ruby
hdev1 has quit [Ping timeout: 246 seconds]
but3k4 has joined #ruby
CloCkWeRX1 has quit [Read error: No route to host]
Ox0dea has joined #ruby
hinbody has quit [Quit: leaving]
cmisenas has joined #ruby
CloCkWeRX has joined #ruby
<Ox0dea> sarink: Regex ain't no Ruby class I ever heard of.
CamonZ has joined #ruby
<Ox0dea> They respond_to?(last_match) in Regex?
but3k4_ has quit [Ping timeout: 265 seconds]
kies has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
unshadow has quit [Remote host closed the connection]
bgmarx has joined #ruby
DLSteve has joined #ruby
slackbotgz has quit [Read error: Connection reset by peer]
<Diabolik> what would be the most efficient way of doing a buy one get one free method on items in an array, i.e. if there are 2 instances of item1 then only count 1
<Diabolik> (2, 4, 6 etc)
slackbotgz has joined #ruby
failshell has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
mc_fail has quit [Ping timeout: 256 seconds]
Soda has joined #ruby
<Ox0dea> Diabolik: Provide example input and desired output.
<apeiros> Diabolik: got an example?
shock_one has joined #ruby
CloCkWeRX has quit [Ping timeout: 255 seconds]
GnuYawk has quit [Read error: No route to host]
caconym has joined #ruby
mc_fail has joined #ruby
ghr has joined #ruby
kubunto has joined #ruby
Scroff has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
hinbody has joined #ruby
<kubunto> good idea or bad idea to use dropbox api to transfer files
<apeiros> kubunto: context
__butch__ has joined #ruby
shock_one has quit [Ping timeout: 265 seconds]
StephenOTT has joined #ruby
CloCkWeRX has joined #ruby
<kubunto> transfering pictures over the wire
<apeiros> -.-
<_seanc_> kubunto: what are you doing with the photos though?
<apeiros> that's not really context.
<_seanc_> if you’re storing them in Dropbox, then using Dropbox makes sense.
<_seanc_> If you’re displaying them on a website, Dropbox probably doesn’t make much sense.
<apeiros> anyway, there's much better ways than dropbox to copy data from one computer to another
<apeiros> so without context - bad idea.
<kubunto> midway point for file transfer
scripore has joined #ruby
symbol has joined #ruby
n3k00n3 has quit [Quit: Lost terminal]
gert7 has joined #ruby
wprice has quit [Quit: wprice]
zz_barkerd427 is now known as barkerd427
qwertme has joined #ruby
baweaver has quit [Remote host closed the connection]
jerius_ has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 265 seconds]
centrx has quit [Ping timeout: 252 seconds]
towski_ has quit [Ping timeout: 276 seconds]
d0lph1n98 has quit [Ping timeout: 265 seconds]
mdw has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
Porfa has quit [Ping timeout: 245 seconds]
<Ox0dea> kubunto: That would be the Atlantic Ocean, no?
* kubunto facepalms
polysics has joined #ruby
<miah> i'd recommend; http://www.whence.com/minimodem/ for pc -> pc transfers ;)
hotpancakes has quit [Remote host closed the connection]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Because rsync and scp aren't things.
<kubunto> what
<kubunto> Ox0dea: thats why i was asking
<miah> scp / rsync are my first choices; im just being silly.
<miah> also i want to walk into a office and hear people transfering data to each other over modems
troulouliou_dev has quit [Remote host closed the connection]
<apeiros> kubunto: you see, scp/rsync require ssh connection to the target. that's why *you providing context* would be important.
Miphix has quit [Quit: Leaving]
<kubunto> apeiros: i dont know the best way to do what i want
<miah> rsync doesnt require ssh
<kubunto> i only know i want to transfer files over the wire
<_seanc_> Just cause?
<apeiros> kubunto: no. that's why you come here. but if you want a good answer, provide good information about what you have.
kirun has joined #ruby
<_seanc_> You certainly have a reason to transfer those files, that’s what people are trying to figure out :]
nonparfumee has joined #ruby
<kubunto> _seanc_: reason is because i will be in germany but i want it in the states
<Ox0dea> So you do need the Atlantic!
<_seanc_> kubunto: Doesn’t sound like you need Ruby or an API at all.
scripore has quit [Quit: This computer has gone to sleep]
<_seanc_> Use Dropbox, Box, S3, Amazon Prime Photos, etc...
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang441 has joined #ruby
shadoi has joined #ruby
<Ox0dea> Use Sneakernet.
<kubunto> _seanc_: the thing is i will likely burst data limit on dropbox
tubuliferous_ has joined #ruby
<Ox0dea> kubunto: How many blank CDs do you have lying around?
commondream has joined #ruby
failshell has joined #ruby
<kubunto> why
<_seanc_> kubunto: Then don’t use Dropbox. Use S3.
<kubunto> _seanc_: also i dont like image hosting services
<kubunto> kills quality of my shot
<_seanc_> S3 is just a document storage.
barkerd427 is now known as zz_barkerd427
<_seanc_> You can put whatever image want up there, of any quality.
mello has joined #ruby
mello has joined #ruby
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
k3asd` has quit [Ping timeout: 252 seconds]
StephenOTT has quit [Quit: StephenOTT]
dgutierrez1287 has joined #ruby
duderonomy has joined #ruby
RobertBirnie has joined #ruby
twistedpixels is now known as zz_twistedpixels
<kubunto> _seanc_: s3 is moneys
<kubunto> and i have a pi i can leverage
scripore has joined #ruby
mikecmpbll has joined #ruby
<miah> setup rsyncd on pi and just write a small script to rsync your files to your pi rsyncd and store on local storage then? =)
tubuliferous_ has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
zz_twistedpixels is now known as twistedpixels
<miah> unless you truly want to write something in ruby
swgillespie has joined #ruby
tvw has joined #ruby
cmisenas has quit [Quit: cmisenas]
gert7 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
twistedpixels is now known as zz_twistedpixels
OrbitalKitten has joined #ruby
michael_mbp has joined #ruby
<kubunto> can rsync be run over an ssh connection
<drbrain> it usually is
dgutierrez1287 has quit [Ping timeout: 244 seconds]
jgoyon_ has quit []
<drbrain> it would be weird to run it over a non-ssh connection
ur5us has joined #ruby
sandelius has joined #ruby
zz_twistedpixels is now known as twistedpixels
<bougyman> public rsyncs are often non-ssh
<bougyman> software repositories and such.
<bougyman> debmirror uses this, as does void linux's mirroring system.
postmodern has joined #ruby
<bougyman> but for day-to-day use, it's almost always ssh-transport
baweaver has joined #ruby
astrobunny has joined #ruby
centrx has joined #ruby
<miah> if its totally internal; just run rsyncd
AlexRussia has quit [Ping timeout: 250 seconds]
<miah> and if you're rsycning over ssh a lot; disable compression
jerius_ has quit [Quit: /quit]
<miah> (compression in ssh)
hotpancakes has joined #ruby
<kubunto> totally internal?
IanVorn has joined #ruby
<miah> aka, a server in your house on your lan and not the public internet
<kubunto> this is over public internet
zz_Outlastsheep is now known as Outlastsheep
xxneolithicxx has quit [Ping timeout: 255 seconds]
<kubunto> germany to the states
<shevy> yeah, I also think germany should join the other US states
_seanc_ has quit [Ping timeout: 255 seconds]
pothibo has joined #ruby
<miah> you could still run rsyncd on the 'net. but make sure you use passwords on the account. i'd also probably set some firewall rules up =)
_aeris_ has quit [Ping timeout: 245 seconds]
<miah> its clearly safer if you do it over ssh
ex0ns has quit [Ping timeout: 250 seconds]
<miah> because youre limiting your inputs and putting all your trust in openbsd's sshd =)
polysics has quit [Remote host closed the connection]
<Aria> <3 sshd
AhabsBeard has joined #ruby
wprice has joined #ruby
jerius has joined #ruby
<miah> compiling ssh for sco openserver was not fun
apofis has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
<kubunto> dumb question: i can change the port that ssh runs on for a server yes?
<miah> ssh has come a long ways =)
<miah> kubunto: yes. but people are constantly scanning.
<miah> _firewall_
dopie has quit [Quit: This computer has gone to sleep]
apofis has quit [Read error: Connection reset by peer]
<miah> limit your inputs to select ip's / ranges
apofis has joined #ruby
centrx has quit [Ping timeout: 244 seconds]
<miah> and if you're using ssh for everything. disable password authentication and use ssh keys only.
Authenticator has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kubunto> i dunno my ip ahead of time
Scroff has quit [Remote host closed the connection]
_aeris_ has joined #ruby
revath has quit [Ping timeout: 256 seconds]
<kubunto> tho i may be able to get help on the american side with that
yfeldblum has quit [Ping timeout: 258 seconds]
sarink has quit [Remote host closed the connection]
kies has joined #ruby
<miah> also; we should move this discussion to #ruby-offtopic
<miah> should have a while ago, but its new =)
ex0ns has joined #ruby
<shevy> discuss here!
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
plashchynski has quit [Quit: plashchynski]
j4cknewt has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
timonv has joined #ruby
Scroff has joined #ruby
denver has quit [Read error: Connection reset by peer]
<jhass> borodin: a bit late, but what you actually want is bundle package
IanVorn has joined #ruby
<borodin> bundle package is different that bundle --path ?
snockerton has joined #ruby
AlexRussia has joined #ruby
centrx has joined #ruby
ledestin has joined #ruby
chussenot has quit [Quit: chussenot]
AhabsBeard has quit []
TheHodge has quit [Quit: Connection closed for inactivity]
AhabsBeard has joined #ruby
caiges has joined #ruby
hoey has joined #ruby
Scroff has quit [Remote host closed the connection]
pepperbreath has quit [Ping timeout: 252 seconds]
pothibo has quit [Quit: pothibo]
choke has joined #ruby
k3asd` has joined #ruby
quimrstorres has quit [Remote host closed the connection]
glcx has quit [Ping timeout: 265 seconds]
bantic has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
dopie has joined #ruby
<jhass> borodin: yes, quite
solars has joined #ruby
<jhass> bundle help package
glcx has joined #ruby
chussenot has joined #ruby
<borodin> thanks I'll read some more
bricker has quit [Ping timeout: 258 seconds]
fabrice31 has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
<_blizzy_> could anyone help me figure out why https://gist.github.com/NotBlizzard/27014eae384d2d9eeee6 is returning: "undefined method '[]' for nil:NilClass"
centrx has quit [Ping timeout: 256 seconds]
<drPoggs> _blizzy_: At which line? Line 2?
AhabsBeard has quit []
<kubunto> miah: thank you for the info
<jhass> _blizzy_: doesn't reproduce here
Zackio has quit [Ping timeout: 245 seconds]
<drPoggs> jhass: nor here on 2.1.5
<_blizzy_> hmm.
<_blizzy_> let me gist the real code then.
<ddv> _blizzy_, there is no :bar symbol in the hash?
AhabsBeard has joined #ruby
<_blizzy_> ddv, no.
<jhass> ddv: notice the block to Hash.new though
<ddv> oh it will create it anyways
tjbiddle has joined #ruby
x1337807x has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv> what is k supposed to refer to anyways?, isn't it nil?
<jhass> no, it's the missing key
nertzy has joined #ruby
<ddv> yeah
blackmesa has joined #ruby
<_blizzy_> I thought it auto creates the key?
<ddv> but k is nil right?
<jhass> ddv: no, :bar
<jhass> ddv: try it, that code has no issue
<ddv> jhass, ok
<_blizzy_> oh, sorry then.
Zackio has joined #ruby
<_blizzy_> IDK what I'm doing wrong then.
<jhass> _blizzy_ just presented an invalid reduction of their real problem
<jhass> _blizzy_: do what you said, show your real code
<jhass> + backtrace
kadoppe has quit [Ping timeout: 258 seconds]
* baweaver elbows Radar whilst smirking
sinkensabe has joined #ruby
kadoppe has joined #ruby
Jinkins has joined #ruby
<jhass> _blizzy_: backtrace?
<baweaver> Ohai sepp2k, keep forgetting you're on here.
shock_one has joined #ruby
<baweaver> (baweaver == lemur == keystonelemur)
<shevy> they are so silent
<shevy> jhass pulled them all the way here to - and they never say anything now :(
quimrstorres has joined #ruby
_cake has quit [Quit: leaving :c]
<baweaver> shevy: well you're talkative enough for the lot of them
sinkensabe has quit [Remote host closed the connection]
<shevy> yeah but quantity is not quality
* baweaver shrugs
<jhass> shevy: it wasn't different over in #ruby-lang, hence I wanted the newbies join here ;)
<baweaver> you said it, not me
jordanm has quit [Remote host closed the connection]
* shevy cuddles the great beaver coder
<_blizzy_> actually, I figured it out, jhass
<shevy> well, at least we won't have to explain "Why are there two channels?" anymore
<_blizzy_> I was trying to push to the wrong hash
<_blizzy_> thanks for the help, everyone.
<Ox0dea> "Push" isn't really the word you want there.
<_blizzy_> append
<Ox0dea> No.
<_blizzy_> then what is the word?
<Ox0dea> Store, I reckon.
<_blizzy_> thxs.
<Ox0dea> t005tes
baweaver has quit [Remote host closed the connection]
mhoungbo has joined #ruby
failshell has quit []
<jhass> shevy: right, reminds me of something
mhoungbo has quit [Max SendQ exceeded]
<shevy> we may still have to explain "What happened to #ruby-lang" :)
quimrstorres has quit [Ping timeout: 272 seconds]
Scroff has joined #ruby
mhoungbo has joined #ruby
<Ox0dea> Out of curiosity, why'd the merge go in this direction?
pothibo has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
<Aria> This is the more obvious channel name
millerti has joined #ruby
mhoungbo has quit [Max SendQ exceeded]
<Aria> (Was a problem all the way back to early days of #ruby-lang)
vikaton has quit [Quit: Connection closed for inactivity]
tvw has quit []
mhoungbo has joined #ruby
<shevy> and it's shorter to type too!
<jhass> Ox0dea: this one is also bigger, so change for less people
<miah> i never realised there was a #ruby-lang
<shevy> yeah we already are forgetting our dark past
<jhass> heh, it's still referred to at ruby-lang.org
<miah> lol
<jhass> slackers
bin_005 has joined #ruby
<shevy> I actually don't remember but I think I joined #ruby-lang first, because of the homepage (or the pickaxe mentioning it, probably)
jpfuentes2 has joined #ruby
<adaedra> jhass: sssh, no name calling :)
bronson has joined #ruby
<jhass> I didn't call anyone specific!
<jhass> :P
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> hehe
shock_one has quit [Remote host closed the connection]
hoov has quit [Quit: Leaving]
<jhass> wait, I see zzak has commit rights...
timonv has quit [Ping timeout: 276 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
lkba_ has joined #ruby
whippythellama has quit [Quit: whippythellama]
bronson has quit [Ping timeout: 264 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
arooni-mobile has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
metallicrwr has joined #ruby
affenhoden has joined #ruby
aryaching_ has joined #ruby
<shevy> another silent one
nfk has joined #ruby
<shevy> they are IRC ghosts
xxneolithicxx has joined #ruby
<jhass> yeah, dunno how apeiros got him talk
Scroff has quit [Remote host closed the connection]
whippythellama has joined #ruby
Scroff has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
pothibo has quit [Quit: pothibo]
aryaching has quit [Ping timeout: 276 seconds]
zotherstupidguy has joined #ruby
<drbrain> there was a time when #ruby didn't exist
vickleton has joined #ruby
bricker has joined #ruby
discord has joined #ruby
djbkd has quit [Remote host closed the connection]
a346 has quit [Quit: a346]
<drbrain> back when lilo (
metallicrwr has quit [Ping timeout: 276 seconds]
Scroff has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Scroff has joined #ruby
aryaching_ is now known as aryaching
yfeldblum has joined #ruby
arescorpio has joined #ruby
Scroff has quit [Remote host closed the connection]
agilenav has joined #ruby
SouL_|_ has joined #ruby
agilenav has left #ruby [#ruby]
yqt has joined #ruby
<dfockler> Jeremy Evans is my Ruby Hero
Scrofff has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
RobertBirnie has quit [Ping timeout: 264 seconds]
bilal has joined #ruby
discord has quit [Ping timeout: 255 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkope has quit [Quit: Leaving...]
kubunto has left #ruby [#ruby]
IanVorn has joined #ruby
arooni-mobile has quit [Ping timeout: 265 seconds]
<sts> yay!
<sts> :)
hotpancakes has quit [Remote host closed the connection]
astrobunny has joined #ruby
RobertBirnie has joined #ruby
discord has joined #ruby
pengin has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
<dfockler> what do people think of rubytogether?
bilal has left #ruby ["Leaving"]
hotpancakes has joined #ruby
SouL_|_ has quit [Remote host closed the connection]
bgmarx has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<dfockler> must be lunchtime in here
ebbflowgo has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fujimura has joined #ruby
n008f4g_ has joined #ruby
qwertme has joined #ruby
nertzy has joined #ruby
jefus_ has joined #ruby
cjbottaro has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
<cjbottaro> Hello. How come Socket.gethostbyname("blah.com") raises "Name or service not known", but `host blah.com` at the bash prompt resolves fine? Does Ruby does DNS resolution differently from the `host` command?
astrobunny has quit [Ping timeout: 272 seconds]
Scrofff has quit [Remote host closed the connection]
sandelius has joined #ruby
m8 has joined #ruby
chussenot has quit [Quit: chussenot]
<sts> cjbottaro: yes. host would for example evaluate /etc/hosts. 'dig blah.com' wouldn't
fujimura has quit [Ping timeout: 255 seconds]
<cjbottaro> sts: Ok, well blah.com isn't in my hosts file. Also `dig blah.com` resolved it, while Ruby's Socket.gethostbyname didn't. I'm worried that Ruby isn't using resolvconf or something... ?
djbkd has joined #ruby
ebbflowgo has quit [Ping timeout: 258 seconds]
<cjbottaro> Ruby's Socket.gethostbyname *eventually* resolves it (these are newly created DNS entries), but host and dig resolve them much faster.
<shevy> dfockler dunno; never even heard of rubytogether
j4cknewt has joined #ruby
<dfockler> oh wow, it's basically a non-profit that pays for ruby infrastructure
commondream has quit [Remote host closed the connection]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has joined #ruby
<dfockler> so people can work full time on bundler and rubygems and such
ebbflowgo has joined #ruby
<miah> i think its great
plashchynski has joined #ruby
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
dblessing has quit [Read error: Connection reset by peer]
AhabsBeard has quit []
<dfockler> me too
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dblessing has joined #ruby
ogpastaling has quit [Read error: Connection reset by peer]
ogpastal_ has joined #ruby
shock_one has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
<sepp2k> shevy: Not dead, just idling.
shock_one has quit [Remote host closed the connection]
shock_on_ has joined #ruby
commondream has quit [Ping timeout: 272 seconds]
Pqi has quit [Ping timeout: 246 seconds]
polysics has joined #ruby
centrx has joined #ruby
<dfockler> drbrain is my Unsung Ruby Hero
<sts> cjbottaro: I think the function also doesn't return AAAA records. Try using ruby's Resolv library instead.
rbowlby has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
<Ox0dea> The origin of some of Smalltalk's (and thus Ruby's) collection methods: http://genius.com/Arlo-guthrie-alices-restaurant-massacree-lyrics#note-2519068
<shevy> sepp2k is back!
IanVorn has joined #ruby
dblessing has joined #ruby
<Ox0dea> "Neglect" and "reject" are loosely synonymous, and #taint is OBJ_INFECT internally, so they're all covered!
jmhmccr has joined #ruby
<cjbottaro> sts: I'm using network client libraries (for example Cassandra client, Elasticsearch client). I don't have control over how they try to resolve DNS. Is there a way to say "globally" use this method for DNS resolution?
<sts> cjbottaro: resolv-replace.rb?
<cjbottaro> sts: Thank you, will look into that.
mhoungbo has quit [Read error: No route to host]
mhoungbo has joined #ruby
centrx has quit [Ping timeout: 255 seconds]
sandstrom has joined #ruby
mhoungbo has quit [Max SendQ exceeded]
rbowlby has quit [Ping timeout: 244 seconds]
<shevy> they should really unify on bundler and rubygems
jefus_ has quit [Quit: Leaving]
mhoungbo has joined #ruby
<dfockler> shevy: there are a few projects out there that don't use bundler with rubygems but I'm sure that option could be left open
mhoungbo has quit [Max SendQ exceeded]
<shevy> yeah
<shevy> I use rubygems and not bundler for instance :)
<dfockler> what do you mean unify then?
mhoungbo has joined #ruby
Xeago has joined #ruby
mhoungbo has quit [Max SendQ exceeded]
fschuindt has quit [Quit: WeeChat 1.1.1]
<dfockler> just put them together under the same project?
mhoungbo has joined #ruby
ta has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
<shevy> their functionality
robbyoconnor has joined #ruby
<Diabolik> if you check the readme
<shevy> or at the least the part that makes sense
<Diabolik> what's the most efficient way of implementing the math logic
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
Scroff has joined #ruby
OrbitalKitten has joined #ruby
_aeris_ has left #ruby ["Konversation terminated!"]
frem has joined #ruby
hotpancakes has quit []
adefa has quit [Ping timeout: 250 seconds]
<dfockler> Diabolik: usually checkout systems have a finished with transaction that generates the total
<Diabolik> yeah i was debating whether it was better to deduct at the ned
<Diabolik> *end
decoponio has quit [Quit: Leaving...]
<Diabolik> or to do it within the alog
<Diabolik> algo
yalue has quit [Read error: Connection reset by peer]
<dfockler> otherwise you have to check the current state against the discount rule on every scan
ta has quit [Ping timeout: 252 seconds]
<dfockler> which could work based on the item, just check rules related to that item
centrx has joined #ruby
chadwtaylor has joined #ruby
baweaver has joined #ruby
<dfockler> it gets harder when you have something mixing item discounts together
<Ox0dea> So strawberries are buy three, get 10% off instead of BOGO? That's practically a racket!
pikos has quit [Remote host closed the connection]
<dfockler> Ox0dea: at scale that would really add up
<Ox0dea> You should organize some sort of strike, and perhaps even motion to litigate.
premera has joined #ruby
finisherr has joined #ruby
<Ox0dea> dfockler: BOGO tends to be repeatedly applicable.
Iskarlar has joined #ruby
hplar has joined #ruby
<Ox0dea> So the "deal" on strawberries is really just turning the customer's discount from 50% to ten.
<Ox0dea> It's outrageous.
<Ox0dea> Diabolik: Do you have a lawyer?
tubuliferous_ has joined #ruby
bgmarx has joined #ruby
segfalt has quit [Quit: segfalt]
sinkensabe has quit [Remote host closed the connection]
willharr_ has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
<Diabolik> lol
choke has joined #ruby
<Ox0dea> I don't think you appreciate the gravity of the situation.
faitswulff1 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segfalt has joined #ruby
faitswulff1 has quit [Client Quit]
centrx has quit [Ping timeout: 252 seconds]
faitswulff1 has joined #ruby
bgmarx has quit [Remote host closed the connection]
sdwrage has joined #ruby
sarkyniin has quit [Read error: No route to host]
<Aria> Four inches.
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 256 seconds]
sarkyniin has joined #ruby
faitswulff1 has left #ruby [#ruby]
<Aria> But Diabolik, I don't think efficiency is the thing you have to worry about -- business computers have always done slow decimal math and been fine. What'd be good to focus on is clear logic for calculating, and figuring out if anything needs to be rule-driven. Ad hoc logic around discounts gets dicy.
slawrenc_ has quit [Ping timeout: 265 seconds]
stoogenmeyer__ has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
timonv has joined #ruby
centrx has quit [Remote host closed the connection]
<shevy> four inches.... hmmm
bgmarx has joined #ruby
centrx has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
polysics has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
AlphaAtom has joined #ruby
<Ox0dea> MRI used to have a function called Fdic_length().
<Ox0dea> Back when Hash was Dict.
AlphaAtom has quit [Max SendQ exceeded]
dseitz has joined #ruby
<Diabolik> Aria should i do a module called Rules
<Diabolik> with all this shit in there?
AlphaAtom has joined #ruby
<Aria> Perhaps. That gets into the business case and how this will actually change.
<Aria> And gets into user interface concerns.
cntrx has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
baweaver has joined #ruby
AlphaAtom has joined #ruby
Fooster has quit [Ping timeout: 265 seconds]
AhabsBeard has joined #ruby
ylla has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Max SendQ exceeded]
tjbiddle has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
AlphaAtom has joined #ruby
cntrx has quit [Client Quit]
cntrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
tjbiddle has joined #ruby
dfockler has quit [Remote host closed the connection]
jaycee_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarkyniin has quit [Ping timeout: 276 seconds]
ta has joined #ruby
rbowlby has joined #ruby
sarkyniin has joined #ruby
_ht has quit [Quit: Konversation terminated!]
baweaver has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nertzy has quit [Quit: This computer has gone to sleep]
cntrx has quit [Ping timeout: 244 seconds]
arooni-mobile has joined #ruby
doodleha_ has joined #ruby
mello has quit [Ping timeout: 272 seconds]
ckrailo has quit [Read error: Connection reset by peer]
zzak has quit [Read error: Connection reset by peer]
djbender has quit [Read error: Connection reset by peer]
Guest5307 has quit [Read error: Connection reset by peer]
zzak has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
astrobunny has joined #ruby
Guest5307 has joined #ruby
djbender has joined #ruby
ckrailo has joined #ruby
codeitagile has quit [Ping timeout: 256 seconds]
autrilla has quit [Ping timeout: 256 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nahtnam has quit [Ping timeout: 256 seconds]
willharrison has quit [Ping timeout: 256 seconds]
iamdevnul has quit [Ping timeout: 256 seconds]
pskosinski has quit [Ping timeout: 256 seconds]
lancetw has quit [Ping timeout: 256 seconds]
machty has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
snockerton has left #ruby [#ruby]
ebbflowgo has quit [Quit: ebbflowgo]
nahtnam has joined #ruby
autrilla has joined #ruby
hdev1 has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
pskosinski has joined #ruby
Xeago has quit [Remote host closed the connection]
allomov has joined #ruby
towski_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adefa has joined #ruby
skade has joined #ruby
willharrison has joined #ruby
iamdevnul has joined #ruby
lancetw has joined #ruby
<Diabolik> Aria this is only being used in a theoretical environment
<Diabolik> as in IRB
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
codeitagile has joined #ruby
pietr0 has joined #ruby
astrobunny has quit [Ping timeout: 258 seconds]
plashchynski has quit [Quit: plashchynski]
<Ox0dea> I assure you, irb is real.
caiges has quit [Quit: Textual IRC Client: www.textualapp.com]
tenderlove has joined #ruby
<Aria> Cool.
machty has joined #ruby
fabrice31 has joined #ruby
Limix has quit [Quit: Limix]
mhoungbo has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
bruno- has joined #ruby
swgillespie has joined #ruby
pengin has joined #ruby
plashchynski has joined #ruby
sandstrom has joined #ruby
OrbitalKitten has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
pikos has joined #ruby
AlphaAtom has joined #ruby
<shevy> irb is wonderland
AlphaAtom has quit [Max SendQ exceeded]
tjbiddle has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
<atomical> irb is a panacea
AlphaAtom has joined #ruby
ur5us has quit [Remote host closed the connection]
djbkd has joined #ruby
tjbiddle has joined #ruby
ogpastal_ has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
centrx has joined #ruby
dgutierrez1287 has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
<adaedra> pry, man, pry
alexherbo2 has quit [Quit: WeeChat 1.2]
nfk has quit [Quit: yawn]
hdev1 has quit [Ping timeout: 246 seconds]
<ponga> pry
zotherstupidguy has quit [Ping timeout: 276 seconds]
apofis_ has joined #ruby
<ponga> is there any technical difference between pry and irb other than highlighting?
zotherstupidguy has joined #ruby
abyss has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 264 seconds]
Cache_Money has joined #ruby
ogpastaling has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
ebbflowgo has joined #ruby
apofis has quit [Ping timeout: 276 seconds]
<atomical> stay pure, bro
apofis_ is now known as apofis
<Ox0dea> ponga: You can `cd` into anything and `ls` everything about it.
<ponga> interesting
<Ox0dea> Have you just... never tried it?
nonparfumee has joined #ruby
pikos has quit [Remote host closed the connection]
<havenwood> ponga: Pry can find a method's source or get the binding of a method's caller from higher up the call stack and eval from there.
<havenwood> ponga: In Pry check: help
axisys has joined #ruby
<havenwood> ponga: It isn't just a skinned irb.
<ponga> Ox0dea: havenwood i pretty much treated as coloured irb
pikos has joined #ruby
centrx has quit [Ping timeout: 252 seconds]
Fooster has joined #ruby
<Ox0dea> Why?
<havenwood> ponga: Try out some of the commands that `help` shows or check out their help, like: help ls
<havenwood> ponga: And if you haven't already: gem install pry-doc
balazs has joined #ruby
psyprus has joined #ruby
<havenwood> ponga: Try `ls`ing some stuff, like: ls 5
<havenwood> ponga: Or: ls []
<ponga> god damn it 'help' in pry's too long i can't end it
commondream has joined #ruby
kartouch has quit [Ping timeout: 256 seconds]
gregf has joined #ruby
gkra has quit [Ping timeout: 276 seconds]
victorko_ has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
victorko_ has quit [Max SendQ exceeded]
<ponga> havenwood: with help that text is too long, it kinda breaks my terminal
<ponga> damn it
<ponga> i can't get out of (END)
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> ponga: I put `Pry.pager = false` in my ~/.pryrc file, but you can press space to read on, or colon-q to move along.
<havenwood> ponga: :q
victorkohl has joined #ruby
bgmarx has quit [Remote host closed the connection]
bgmarx has joined #ruby
<ponga> havenwood: its weird, 'q' now works but it didn't work for my first attempt i had to restart terminal
Authenticator has quit [Quit: leaving]
<ponga> another weird mac exprience day
<Ox0dea> You probably paused your terminal.
TheHodge has joined #ruby
jacor_m has joined #ruby
Palmer11 has quit [Quit: Palmer11]
commondream has quit [Ping timeout: 258 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
shock_on_ has quit [Remote host closed the connection]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shock_one has joined #ruby
jcaho_m has joined #ruby
zotherstupidguy has joined #ruby
commondream has joined #ruby
balazs has quit [Remote host closed the connection]
skade has quit [Ping timeout: 244 seconds]
segfalt has quit [Quit: segfalt]
jacor_m has quit [Ping timeout: 244 seconds]
skade has joined #ruby
jefus_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
mdz_ has quit [Remote host closed the connection]
kartouch has joined #ruby
centrx has joined #ruby
commondr_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has quit [Read error: Connection reset by peer]
bin_005 has quit [Ping timeout: 248 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Outlastsheep is now known as zz_Outlastsheep
jcaho has quit [Read error: Connection reset by peer]
jcaho has joined #ruby
jefus has joined #ruby
jefus has quit [Remote host closed the connection]
pengin has quit [Read error: Connection reset by peer]
jefus_ is now known as jefus
jgpawletko has quit [Quit: jgpawletko]
pengin has joined #ruby
RobertBi_ has joined #ruby
adefa has quit [Ping timeout: 276 seconds]
phutchins has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
revoohc has quit [Quit: revoohc]
dfockler has joined #ruby
<hal_9000_> imperator: u there?
OrbitalK_ has joined #ruby
<imperator> yup
DLSteve has quit [Quit: Leaving]
<imperator> leaving soon, what's up?
ntln has joined #ruby
RobertBirnie has quit [Ping timeout: 258 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
thiagofm has joined #ruby
centrx has quit [Ping timeout: 244 seconds]
cntrx has joined #ruby
stephenh has quit [Ping timeout: 255 seconds]
rodfersou has quit [Quit: leaving]
OrbitalKitten has quit [Ping timeout: 252 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intinig has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fujimura has joined #ruby
choke has joined #ruby
wald0 has joined #ruby
kirun has quit [Quit: Client exiting]
cntrx has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Read error: Connection reset by peer]
thiagofm has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
Xeago has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
shock_one has quit [Remote host closed the connection]
mello has joined #ruby
mello has joined #ruby
vickleton has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
plashchynski has quit [Quit: plashchynski]
roolo_ has quit [Remote host closed the connection]
KC9YDN has quit [Remote host closed the connection]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uri_ has joined #ruby
Xeago has quit [Remote host closed the connection]
mello has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jwilson has joined #ruby
Fooster has quit [Ping timeout: 252 seconds]
kies has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
centrx has joined #ruby
jhooker has quit [Ping timeout: 245 seconds]
rubie has quit [Remote host closed the connection]
<adaedra> "expected true to respond to `true?`"
<adaedra> rspec, why u do this
<ljarvis> meh, eq > be_*
ur5us has joined #ruby
* havenwood coughs *minitest*
Xeago has joined #ruby
bin_005 has joined #ruby
<adaedra> meh
tjbiddle has joined #ruby
<adaedra> I tried, I was not conviced
zotherstupidguy has quit [Ping timeout: 256 seconds]
<ljarvis> minitest spec + assertions = delightful
dgutierrez1287 has joined #ruby
<ddfreyne> havenwood: I was a big minitest fan for a long time, but I found that RSpec, when used properly, can be really really awesome.
KC9YDN has joined #ruby
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
bgmarx_ has joined #ruby
<imperator> expect(marley) be_jammin
<ddfreyne> (One of my colleagues showed me how to properly use it. It's awesome.)
plashchynski has joined #ruby
<ddfreyne> So now for nanoc 4, I'm writing all new spec in RSpec.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
doodleha_ has quit [Remote host closed the connection]
<ljarvis> it's better now it has expect(); .should was awful
<ddfreyne> Agreed.
zotherstupidguy has joined #ruby
x1337807x has quit [Ping timeout: 265 seconds]
mdw has joined #ruby
<adaedra> so, minitest aside, I should rather `eq(true)` than `be_true`?
<Sou|cutter> it's funny how some people really got rubbed the wrong way by 'expect' when it was introduced
<ljarvis> adaedra: I prefer that myself
<imperator> dunno what advantage expect(x).to be_whatever has over assert_whatevever(x)
<havenwood> ddfreyne: Is it worth it? Minitest ships with Ruby and can't you get the same level of awesome but simpler and kinder to beginners?
<ljarvis> or you can; be_truthy I think
<ddfreyne> adaedra: Yes.
<bricker> does `be_true` work? That would just call a "true?" method which doesn't exist
<Sou|cutter> be_truthy or eq(true)
<Sou|cutter> be_truthy is looser
<ddfreyne> bricker: It doesn't
astrobunny has quit [Ping timeout: 264 seconds]
<ddfreyne> havenwood: I find that it is worth it.
<adaedra> yeah, be_truthy works
<adaedra> why does be_true exists if it doesn't works >_>
<ljarvis> adaedra: be aware that it'll be true for anything that isn't nil or false
bgmarx has quit [Ping timeout: 245 seconds]
<Sou|cutter> adaedra: it doesn't exist
<ljarvis> yeah, it used to exist
speaking1ode has quit [Ping timeout: 264 seconds]
<ljarvis> before truthy
<Sou|cutter> it did used to exist
<adaedra> ah
<Sou|cutter> you should get a deprecation warning if you try it on rspec 2.99
<adaedra> I'm on 3.2.3...
poguez_ has quit [Quit: Connection closed for inactivity]
tjbiddle_ has joined #ruby
<adaedra> I got a warning for eq vs equal, not this
<Sou|cutter> yeah, just mentioning for no reason that there was a warning
centrx has quit [Ping timeout: 246 seconds]
jerius has quit [Ping timeout: 276 seconds]
<adaedra> “no reason”
<adaedra> that was a good point
<adaedra> there should still be one
scripore has quit [Quit: This computer has gone to sleep]
<Sou|cutter> deprecation warnings don't live forever
<Sou|cutter> but that is one that would probably help a lot of people
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
deric_skibotn has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
<havenwood> ddfreyne: I think I'd rather go in the direction of Elixir's ExUnit, which I think is simple and elegant and sure has a heck of a lot fewer assertions.
<adaedra> Well, I guess "Don't use be_true" would be clearer than "Undefined true.true?"...
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
<ddfreyne> havenwood: Whatever works for you!
<ljarvis> meh, who defines true? and false? methods. Their expect object should just handle it
<Sou|cutter> why would somebody new to rspec at this point expect be_true to work in a different way than be_XXX ?
<Sou|cutter> I think that may be the argument
eggoez has quit [Ping timeout: 272 seconds]
<ddfreyne> I found RSpec's contexts quite useful for catching all cases, and shared_examples to verify that two objects that are supposed to behave the same, actually *do* behave the same.
<ddfreyne> I haven't found a good way to do that in minitest as nicely yet.
scripore has joined #ruby
<adaedra> The thing I don't like the most about rspec is that their HTML report is hideous.
michaeldeol has joined #ruby
<Sou|cutter> matchers also give you pretty good output for 'free' (not in terms of perf, but in terms of you having to think about it)
speakingcode has joined #ruby
duggiefresh has quit [Remote host closed the connection]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
abyss has joined #ruby
stephenh has joined #ruby
paulcsmith has joined #ruby
<ddfreyne> adaedra: Yup, true.
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
irk has quit [Remote host closed the connection]
<ddfreyne> Sou|cutter: matchers (and custom ones) are really really nice.
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IanVorn has joined #ruby
neanderslob has joined #ruby
IanVorn has quit [Client Quit]
ndrei has quit [Ping timeout: 272 seconds]
<adaedra> (I'm sorry, didn't want to start a war about test systems :x )
<adaedra> (I go back to my vim :x )
<michaeldeol> is #ruby-lang no more? and is there plans to update ruby-lang.org with the #ruby irc channel?
<ddfreyne> Why don't you use emacs?
Filete has joined #ruby
<jhass> michaeldeol: yes and yes
<ddfreyne> michaeldeol: #ruby and #ruby-lang were merged
<michaeldeol> nice!
<Ox0dea> adaedra: Why do you hate Neovim?
* adaedra whispers “success”
chrisgeorge has joined #ruby
<Ox0dea> I run Neovim inside of Spacemacs in the left pane of a tmux window, and Spacemacs inside of Neovim in the right pane.
EvangelistaT has joined #ruby
<jhass> where do you run screen though? and fish?
nateberkopec has joined #ruby
kriskropd has quit [Ping timeout: 255 seconds]
<miah> surely you have a tmux pane devoted to running a fish shell in a screen session ;)
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> jhass: Surely you misspelled tty1 and zsh.
<jhass> meh
sdwrage has joined #ruby
* jhass goes back to porting systemd to minix
<miah> lol
<Ox0dea> Would you want module and class definitions to evaluate to symbols or constants?
centrx has joined #ruby
<Ox0dea> Hypothetically, because parse.y is fucking scary.
<jhass> no, I'd like them to return the Module and Class instances
<Ox0dea> Which would be the constants, no?
sevvie has quit [Ping timeout: 264 seconds]
<jhass> yes
eggoez has joined #ruby
<Ox0dea> I agree.
<jhass> you can view class Foo as syntax sugar for Foo = Class.new, and an assignment returns its RHS
<adaedra> would you use eq() or equal() for symbols?
ValicekB has quit [Ping timeout: 255 seconds]
<jhass> I'd say default to eq until you need the difference equal provides
tjbiddle has quit [Quit: tjbiddle]
<adaedra> ok
d10n-work has quit [Quit: Connection closed for inactivity]
imperator has left #ruby ["Leaving"]
gkra has joined #ruby
pengin has quit [Remote host closed the connection]
CustosLimen has joined #ruby
<Ox0dea> jhass: How are they different for Symbols?
FernandoBasso has joined #ruby
maletor has joined #ruby
<jhass> I don't follow?
nateberkopec has quit [Read error: Connection reset by peer]
nateberkope has joined #ruby
<jhass> oh
<jhass> they probably aren't
sdwrage has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
<jhass> but the left side could fake it
EvangelistaT has left #ruby [#ruby]
<adaedra> you can fake object id?
<Ox0dea> Aye, that's why there's __id__.
<adaedra> I see
<adaedra> eq() it is then
<jhass> well, iirc eq maps to #== iirc and equal to #equal? and the latter is less likely to be overridden by a proxy object
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[H]unt3r has quit []
nonparfumee has joined #ruby
blt has joined #ruby
nonparfumee has quit [Remote host closed the connection]
blt has quit [Changing host]
blt has joined #ruby
terabytest has joined #ruby
<adaedra> double iirc :)
m8 has quit [Quit: Sto andando via]
<Ox0dea> No, #== and #equal? call the same function internally.
<Ox0dea> On Object, anyhow.
adefa has joined #ruby
centrx has quit [Ping timeout: 252 seconds]
Zai00 has joined #ruby
commondr_ has quit [Remote host closed the connection]
<adaedra> well, according to rspec warning, eq() is == and equal() is equal?, which uses the object id
aryaching has quit []
nateberkope has quit [Client Quit]
<adaedra> so eq("a", "a") is a yes but not equal("a", "a")
commondream has joined #ruby
<Ox0dea> adaedra: That's correct, but such a correspondence doesn't exist for Symbols.
<adaedra> yes, since the symbols have 'fixed' ids, so :a has always the same id
tubuliferous_ has quit [Ping timeout: 250 seconds]
<adaedra> hence my question, is there a preference for one or another, since they do basically the same?
irk has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<jhass> the contract is different
<jhass> eq means "an object that is like"
ValicekB has joined #ruby
<jhass> equal means "the very same object"
iamjarvo has joined #ruby
<jhass> hence proxy objects tend to override the former while keeping the later at the object identity comparison
malconis has quit [Ping timeout: 255 seconds]
pengin has joined #ruby
volty has joined #ruby
<adaedra> so for a symbol I want the very same object, no?
<jhass> I think it's not important hence my first suggestion
commondream has quit [Ping timeout: 265 seconds]
<jhass> which is also closer to duck typing, maybe you want to allow an object that just pretends to be a Symbol
blt has quit [Ping timeout: 250 seconds]
<adaedra> ok
startupality has joined #ruby
Scroff has quit [Remote host closed the connection]
lavros has quit [Quit: leaving]
apt-get_ has joined #ruby
deric_skibotn has joined #ruby
iamjarvo has quit [Client Quit]
kinduff has joined #ruby
kinduff has joined #ruby
scripore has joined #ruby
blackmesa has joined #ruby
sarkyniin has quit [Ping timeout: 245 seconds]
tak1n has quit [Remote host closed the connection]
pikos has quit [Remote host closed the connection]
ghr has left #ruby [#ruby]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
bgmarx_ has quit [Remote host closed the connection]
bgmarx has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Exponential has joined #ruby
davidhq has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
PaulCapestany has quit [Quit: .]
Sevelina has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has quit [Ping timeout: 255 seconds]
solars has quit [Ping timeout: 252 seconds]
jcaho_m has quit [Ping timeout: 276 seconds]
PaulCapestany has joined #ruby
Exponential has quit [Ping timeout: 256 seconds]
terabytest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
zotherstupidguy has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
k3asd` has quit [Quit: leaving]
bootstrappm has left #ruby [#ruby]
k3asd` has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Read error: Connection reset by peer]
A205B064 has joined #ruby
mdz_ has joined #ruby
qwertme has joined #ruby
pengin has quit [Remote host closed the connection]
Rickmasta has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<adaedra> 'night!
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
Jandre has joined #ruby
bantic has quit [Quit: bantic]
Jandre is now known as Guest18723
mister_solo has joined #ruby
plashchynski has quit [Quit: plashchynski]
shock_one has joined #ruby
plashchynski has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
axsuul has joined #ruby
agarie has quit []
plashchynski has quit [Client Quit]
lindii_ has joined #ruby
e1nh4nd3r has joined #ruby
pietr0 has quit [Quit: pietr0]
Maxed has joined #ruby
malconis has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
KillerFox has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
plashchynski has joined #ruby
k3asd` has quit [Remote host closed the connection]
choke has joined #ruby
axsuul_ has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axsuul_ has quit [Max SendQ exceeded]
astrobunny has joined #ruby
<lindii_> where is the syntax error here USER = [:name, profile_attributes: { :location, :status, :content }]
OrbitalK_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axsuul_ has joined #ruby
rubie has joined #ruby
<jhass> lindii_: [this, is, an, array], {this => is, a => hash}
bin_005 has quit [Ping timeout: 258 seconds]
<jhass> {or: this, is: a_hash}
axsuul has quit [Ping timeout: 256 seconds]
<jhass> but {this, is, nothing}
<lindii_> darn im lost with this ruby syntax
apt-get_ has quit [Quit: Quit]
choke has quit [Client Quit]
Guest18723 has quit [Ping timeout: 272 seconds]
<jhass> note that [:foo, bar: {baz: :quux}] is the same as [:foo, {bar: {baz: :quux}}]
axsuul_ has quit [Remote host closed the connection]
<jhass> the { } for the last argument to something are optional
wldcordeiro has joined #ruby
axsuul has joined #ruby
<lindii_> jhass: but in my example how is the correct way to write that
<Sevelina> lindii_: If you are lost with Ruby syntax, good luck with other languages syntax.
<Darkwater> []
<jhass> well, I'd have to guess what you actually want, but probably []
astrobunny has quit [Ping timeout: 246 seconds]
Jandre_ has joined #ruby
<Ox0dea> Sevelina: No, Ruby has one of the most complex syntaxes of any mainstream language.
Jandre_ is now known as Jandre
<Darkwater> I agree
Jandre has quit [Changing host]
Jandre has joined #ruby
dmolina has joined #ruby
<Ox0dea> It's... not an opinion.
<jhass> ruby has few keywords but it exhausts the symbol space pretty much, yeah
<Darkwater> this (isnt).the same(as,this
dmolina has quit [Client Quit]
<lindii_> im confused with symbols
<Darkwater> this (isnt).the same(as).this
<jhass> other languages tend to have more keywords instead
malconis has quit [Ping timeout: 256 seconds]
<eam> 10k loc parser not counting oniguruma
rubie has quit [Ping timeout: 265 seconds]
<Sevelina> lindii_: Just forget about Ruby and go with Elixir :)
<jhass> heh, wrong channel
<Darkwater> nah man lisp
<Darkwater> (its (just parentheses))
<Darkwater> (cant (go (wrong (am (i (right))))))
<lindii_> is that php?
<Sevelina> Darkwater: What are you even talking about?
<Darkwater> almost but no
fmcgeough has joined #ruby
<Darkwater> idk Sevelina, what are you talking about?
metallicrwr has joined #ruby
metallicrwr has quit [Client Quit]
wald0 has quit [Ping timeout: 250 seconds]
metallicrwr has joined #ruby
<Sevelina> Darkwater: You seem to be lost.
<Darkwater> I do not exist
WillAmes has quit [Remote host closed the connection]
<Sevelina> lindii_: What do you want to do?
bronson has joined #ruby
* Darkwater makes spooky arm movements
<Sevelina> Too much free time I guess
WillAmes has joined #ruby
<Darkwater> time to kill
<Darkwater> wanna go to bed but also wanna finish listening to this song
<Darkwater> and there we go, good night
endash has quit [Quit: endash]
<lindii_> im just trying ruby
commondream has joined #ruby
<jhass> >> [:name, profile_attributes: [:location, :status, :content]]
<ruboto> jhass # => [:name, {:profile_attributes=>[:location, :status, :content]}] (https://eval.in/378626)
<volty> you should learn it a bit, before trying it
<jhass> whether that's what you actually want, *shrug*
<lindii_> which one of both
<jhass> they're the same
rubie has joined #ruby
gambl0re has quit [Ping timeout: 245 seconds]
<Sevelina> lindii_: For what reason? Hobby/Job?
<Sevelina> There are called hashes, the => way is an older way.
<jhass> Sevelina: why's that important?
wald0 has joined #ruby
<jhass> s/older/general/
ur5us has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
<Sevelina> jhass: Older.
<jhass> general
bronson has quit [Ping timeout: 252 seconds]
<lindii_> Sevelina: hobby
OrbitalKitten has joined #ruby
<lindii_> im a lawyer.. nothing to do with programming
bkxd_ has joined #ruby
<Sevelina> lindii_: Then reconsider my advice.
bkxd_ has quit [Client Quit]
Palmer11 has joined #ruby
<Sevelina> lindii_: Learn both Ruby and Elixir.
<volty> why not another then of them ?
<volty> s/then/ten/
<jhass> Sevelina: it's great that you like Elixir, however they picked Ruby and came here for help with it, please respect their choice
bkxd has quit [Ping timeout: 264 seconds]
<lindii_> like they adopt too many conventions to do one thing
<lindii_> i dont like that
hinbody has quit [Quit: leaving]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Sevelina> jhass: You don't know that something exist before someone tells you or you find out.
paulcsmith has joined #ruby
iamninja has joined #ruby
AhabsBeard has quit []
<Sevelina> lindii_: What is it that you don't like?
<jhass> Sevelina: first time was mentioning it, second time is talking them out
c355E3B has joined #ruby
hotpancakes has joined #ruby
<jhass> (is that English? it's too late here)
KrzaQ has quit [Read error: Connection reset by peer]
<volty> it's small coinish :)
<lindii_> jhass: i want to define a constant with attributes and a profile object
<lindii_> looks like a profile array
<jhass> lindii_: perhaps you want two structs?
<Sevelina> jhass: Talking them out? I'm a professional Ruby developer for ~8 years. You should try and teach people from your own mistakes rather than whining about it.
<lindii_> jhass: by the way is something im trying with rails
<lindii_> jhass: nesting attributes
<jhass> uh
KrzaQ has joined #ruby
<Sevelina> lindii_: Do you understand the difference between hashes and arrays?
<jhass> lindii_: I agree with Sigma00, you're not having repetition there
<lindii_> yes
idafyaid has quit [Ping timeout: 265 seconds]
<lindii_> hashes = associative arrays
<jhass> well, map is the general term
<jhass> associative array is the PHP term
mikecmpbll has quit [Quit: i've nodded off.]
havenwood has joined #ruby
<lindii_> right.. same as dictionaries in python
scripore has joined #ruby
<dorei> isn't hashtable the general term? :p
<Sevelina> dorei: No.
shock_one has quit [Remote host closed the connection]
<eam> hash is a typical implementation of a dictionary and is what most people use to call it generally
<eam> arguably yes but the kids aren't doing it anymore
DEA7TH_ has quit [Ping timeout: 255 seconds]
hakunin has quit [Remote host closed the connection]
idafyaid has joined #ruby
<eam> iirc php doesn't have an array type
<jhass> dictionary is just what python (and perl I guess? :P) calls it
<eam> it's all an associative map
hakunin has joined #ruby
<Sevelina> jhass: And C#.
<eam> perl calls it hash
<volty> I call it «what's in a name?»
<eam> I think python ushered in the "dictionary" terminology, I guess they're trying to distinguish the function from the implementation
startupality has quit [Quit: startupality]
lacrosse__ has joined #ruby
bkxd has joined #ruby
<eam> php is crazy land, the "array" there is actually a hash
bluOxigen has quit [Ping timeout: 256 seconds]
<jhass> meh, WP why can't you be consistent http://en.wikipedia.org/wiki/Abstract_data_type#Examples_2
<Sevelina> Dictionary? You never hear that in the industry (if you don't work with C# developers).
plashchynski has joined #ruby
babykosh has joined #ruby
faitswulff has joined #ruby
blue_deref has joined #ruby
<eam> C#, VB
<jhass> "Map" links to "Associative array", sigh
startupality has joined #ruby
<eam> jhass: and wikipedia runs on php so there you go
<jhass> I guess
faitswulff has left #ruby [#ruby]
d0lph1n98 has joined #ruby
<jhass> naming things is hard
<jhass> I stick to map
<lindii_> so in ruby {name => "John", age => 37} is the same as {name: "John", age: 37}
asteros has joined #ruby
<Sevelina> As it says, it is more a CS term than PHP term. PHP just adopted it.
JoshGlzBrk has joined #ruby
<jhass> lindii_: almost, {:name => "John", :age => 37} is the same as {name: "John", age: 37}
<Sevelina> lindii_: Yes.
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> lindii_: the => is the general syntax that works for any object, foo: bar always creates Symbol keys
d0lph1n98 has quit [Client Quit]
adefa has quit [Ping timeout: 245 seconds]
avat has joined #ruby
aapole has quit [Ping timeout: 256 seconds]
<avat> Hi guys, I have a question - is this proper way to use dependency injection or not? https://gist.github.com/ZyzioZiom/c7bc2a9a25c38779307e
<lindii_> i see
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> so notice that {"name" => "John", "age" => 37} is a different hash compared to the former two
plashchynski has quit [Client Quit]
finisherr has quit [Quit: finisherr]
<lindii_> jhass: you mean :name is not the same as "name"
<volty> distinct keys
<jhass> lindii_: exactly
niko is now known as nilo
baweaver has joined #ruby
aaeron has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
<eam> >> [:name.class, "name".class]
<ruboto> eam # => [Symbol, String] (https://eval.in/378629)
<lindii_> though symbols work almost like strings
Rickmasta has joined #ruby
<aaeron> How shall I have nested threading in ruby?
<aaeron> I have a method
<jhass> lindii_: use Symbols to identify stuff, where you need a name as value. To represent user data use strings
<volty> symbols should be faster than strings
<eam> lindii_: yes it's trivial to convert between the two
<eam> volty: not always!
<volty> for the hashes yes @ea
adefa has joined #ruby
<Ox0dea> >> ['foo'.object_id, 'foo'.object_id, :foo.object_id, :foo.object_id]
<ruboto> Ox0dea # => [540651580, 540651680, 417458, 417458] (https://eval.in/378630)
<Sevelina> lindii_: Symbols are immutable. Strings, compared to symbols, when used are new objects. So if you use a string as a key 50 times, you are creating 50 different strings. With symbols, it's 1.
metallicrwr has quit [Ping timeout: 256 seconds]
<lindii_> got it
<volty> and encoded, so no comparison is necessary
<Ox0dea> volty: Interned.
wldcordeiro has quit [Quit: Konversation terminated!]
<avat> Is this proper way to use dependency injection? https://gist.github.com/ZyzioZiom/c7bc2a9a25c38779307e
jcaho_m has joined #ruby
<eam> volty: depends on what you're doing, there were a few bugs which made symbols much slower for certain operations
<miah> >> 'foo'.object_id; 'foo'.object_id
<ruboto> miah # => 546177070 (https://eval.in/378631)
<volty> Ox0dea: thx, all the same
<miah> easy way to show that =)
<miah> though my newline isnt working? werid.
<eam> miah: return a []
a1fa has joined #ruby
<miah> anyways, both 'foo' will have different id's; but :foo would always be the same
<volty> @eam: for example?
<a1fa> anyone else get headache from nokogiri?
<jhass> miah: also scroll up :P
<miah> ah, my window is tiny right now =)
<a1fa> i am trying to use nokogiri to paste a simple xml: http://pastebin.com/raw.php?i=RuwZfVfL
<ruboto> a1fa, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[H]unt3r has joined #ruby
mdz_ has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
<a1fa> i'm trying to print id,make,new,description
<jhass> a1fa: the bot didn't repost, that means it's at least the second time you used pastebin.com
<volty> a1fa: have not used it much; only headache is that I can't use it with qtruby (and don't know why)
mark[oz] has joined #ruby
Scroff has joined #ruby
<a1fa> jhass: repasting
<a1fa> so i tried with xpath(cars).each
Channel6 has joined #ruby
Jinkins has quit [Quit: Leaving]
<jhass> a1fa: literally? what did you define the local variable or method cars to?
<aaeron> jhass: My nested threads are running multiple times.
michaeldeol has quit [Ping timeout: 272 seconds]
chadwtaylor has joined #ruby
jenrzzz has joined #ruby
<a1fa> so with this i was able to print "cars" xmany times
<a1fa> but with xpath('cars') it would not work
<a1fa> or '/cars' for that matter
<jhass> a1fa: yes, because xpath works differently than CSS
<jhass> a1fa: if you know CSS, why use xpath?
pengin has joined #ruby
chrisgeorge has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 256 seconds]
<a1fa> because i keep going from tutorial to tutorial, and nothing wants to work right :(
pandaant has quit [Remote host closed the connection]
fujimura has joined #ruby
<jhass> aaeron: uh, my scrollback doesn't seem to have the context for that, so that means and so does my memory ;)
millerti has joined #ruby
<aaeron> Ok
tjbiddle has joined #ruby
<aaeron> jhass, I am getting the code
<aaeron> Will update you
<aaeron> in a moment
<jhass> a1fa: well, what's your actual problem?
<aaeron> thanks for the reply
someword has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
<volty> eam: thx, interesting.
<a1fa> jhass: not knowing how to read nokogiris documentation for the most part
fgo has joined #ruby
<kinduff> I'm developing this gem and I'm adding geocoder gem as a dependency inside my gemspec file. When I add it to my project it's not being grabbed. I'm calling `require 'geocoder'` from lib/gem_name.rb file. Any ideas?
chadwtaylor has quit [Ping timeout: 265 seconds]
dopie has quit [Quit: This computer has gone to sleep]
<jhass> a1fa: we can help you with an actual problem, teaching very general things from the ground up is a bit out of scope ;)
mandarinkin has quit [Ping timeout: 265 seconds]
<a1fa> so if i do doc.css and i loop through each car, how do i access id attribute in the car?
Iskarlar has joined #ruby
<jhass> a1fa: treat the node like a hash
<jhass> car["id"]
<a1fa> oO
djbkd has joined #ruby
* a1fa tests.
<eam> volty: it's fixed in newer rubies though, so :) but the cost of comparing contiguous areas of memory is so very small it's easy for other aspects of the VM to overshadow -- the trouble with micro-optimizing in a high level language like ruby
<jhass> well, n["id"] in your example
sandstrom has quit [Quit: My computer has gone to sleep.]
<jhass> a1fa: btw do you know pry? it's great to play and discover an API with it
<a1fa> i'll be damned ;)
<eam> I wrote a binding for a shared memory hash table a few weeks ago. The cost of looking up an ivar is about on par with the entire cost of doing the store/fetch operations entirely
<a1fa> i've heard of pry, have not used it -- i will look it up
RobertBirnie has joined #ruby
<jhass> ?pry a1fa
<ruboto> a1fa, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<eam> (because, you know, accessing a variable by name is itself a hashtable operation)
RobertBirnie has quit [Excess Flood]
<volty> a1fa: page.xpath('//cars')
fujimura has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
mrsolo has quit [Quit: Leaving]
mello has joined #ruby
mello has quit [Changing host]
mello has joined #ruby
<jhass> volty: not the same and not the best xpath (avoid // where possible, it's slow) ;)
<jhass> the xpath I'd go with is /cars/car, but why bother if the css selector works for them and is understood
<volty> jhass: I prefer css, but since I noticed he was indexing with only one / ...
RobertBi_ has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 256 seconds]
crus has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
mdz_ has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mello has quit [Ping timeout: 256 seconds]
<dorei> jhass: i use xpaths starting with // all the time without noticable delays. i think that more time is needed to fetch the page than run the xpath query
pengin has quit [Remote host closed the connection]
Fooster has joined #ruby
revoohc has joined #ruby
Langlands has joined #ruby
<jhass> yes, still it's good habit to avoid them and learn how to avoid them while doing that, since the day will come that running one on a big XML tree will screw you
axsuul has quit [Ping timeout: 255 seconds]
<volty> yap, it could matter only if running inside something like web server serving heavy traffic. Btw I do not have memory for slow vs fast — I usually (unintentionally) just ignore notions about what is slow or fast.
mary5030 has joined #ruby
millerti has quit [Ping timeout: 246 seconds]
<jhass> developing notions for cheap and expensive helped me
prereflect has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
<jhass> in this example consider how many nodes /cars/car needs to iterate over and how many nodes //car would need to iterate over to come to the conclusion that there's no match
<volty> «developing» is a quite wide paradigm — there are high level considerations that could be spoiled (distracted) by low level ones
<volty> never mind, the processors get cheaper and cheaper :)
spider-mario has quit [Ping timeout: 255 seconds]
mister_solo has quit [Ping timeout: 272 seconds]
<volty> and, otherwise, I could stay with c++ if the main purpose is the speed
<jhass> you mean crystal :P
avat has quit [Quit: Page closed]
spider-mario has joined #ruby
<volty> yap, could be a personal taste, at the end — I get distracted by that kind of considerations, other people could just have got used, without burden :)
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Changing host]
zotherstupidguy has joined #ruby
Ropeney has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
marr has quit [Ping timeout: 244 seconds]
<jhass> I'm not saying to desperately seek the cheapest solution all the time
<jhass> this was a case for a quite obvious one if you consider what amount of work each has to do
pengin has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<a1fa> this really sucks ;(
<volty> I know, I know. I remember you. And I appreciate the advice. The mines were more about some people that I find on scripting langs channels talking all the time about optimizing on speed, speed, speed :)
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<a1fa> so docs.xpath('//cars').each doesnt work eaither
<jhass> sigh
<jhass> dorei see what you did!
<jhass> :P
axsuul has joined #ruby
<jhass> a1fa: again, why not stick to the one that was working?
jack_rabbit has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
<jhass> dorei: oh, sorry, it was volty with the cars typo
astrobunny has joined #ruby
<a1fa> jhass: because i got other elements within it
vikaton has joined #ruby
<jhass> a1fa: the (correct) xpath won't change that
Maxed has quit [Quit: Maxed]
rubie has quit [Remote host closed the connection]
<al2o3-cr> o/
hahuang65 has quit [Ping timeout: 276 seconds]
<a1fa> so i want to loop through all cars, if i do what i posted
bkxd has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
<atmosx> aloha
<a1fa> i can only get the car id, cant go back down and get the type, unless i do another doc.css('type')
<a1fa> but then there is no guaruantee you are matching to the correct car
<volty> docs.xpath('//car')
<al2o3-cr> umadbro
<a1fa> volty: thast didnt work
<atmosx> how's everybody?
<jhass> volty: sigh, really?
<volty> car, singular
<a1fa> and if jhass says it wont help, it wont help :(
hahuang65 has joined #ruby
<jhass> a1fa: type = car.css('type') (or n.css('type') in your example)
<a1fa> within doc.css?
<jhass> yes
astrobunny has quit [Ping timeout: 256 seconds]
<al2o3-cr> yes nokogiri very nice
<a1fa> i hate you :)
<jhass> mh, may need a .first or you use car.at('type')
<jhass> I always forget about that
<a1fa> it worked just fine
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rubie has joined #ruby
<al2o3-cr> poker lies...
<a1fa> jhass: what is a good way to remove html from string?
<jhass> if you have nokogiri at hand, just use .text
rubie_ has joined #ruby
rubie has quit [Read error: Connection reset by peer]
jesterfraud has quit [Killed (herbert.freenode.net (Nickname regained by services))]
Guest72543 has joined #ruby
<a1fa> n.css('type').text ?
<a1fa> the <description> has html tags </
<jhass> .at('type').text
x1337807x has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ogpastal_ has joined #ruby
JoshGlzBrk has joined #ruby
<a1fa> its still doing it
<volty> doing what?
JoshGlzBrk has quit [Client Quit]
<a1fa> not stripping html
<jhass> so they're like &lt;em&gt; in the source or what?
<jhass> (I don't like all that guessing btw)
tubuliferous_ has joined #ruby
<a1fa> sorry
<a1fa> it stripped <p>
<a1fa> but it didnt strip </p?
<jhass> ?
<al2o3-cr> km
<jhass> what's the source
<jhass> source xml
<a1fa> one sec
mistermocha has joined #ruby
millerti has joined #ruby
tmoor has joined #ruby
ogpastaling has quit [Ping timeout: 250 seconds]
mistermo_ has joined #ruby
ogpastal_ has quit [Ping timeout: 246 seconds]
msnyon has quit [Read error: Connection reset by peer]
<volty> you cannot strip from CDATA that way
meph has joined #ruby
asteros has quit [Quit: asteros]
<jhass> could do Nokogiri::HTML(n.at('description').text).text
mark[oz] has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 265 seconds]
willharr_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<volty> though I'm curious why the need to strip from cdata
mistermocha has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
dorei has quit []
<a1fa> if i do .at
<a1fa> if i do .at - it only prints the first <description>
baweaver has quit [Remote host closed the connection]
<a1fa> eventhough i am looping through all cars by usind doc.css('cars')
<jhass> sounds like you do doc.at
<jhass> instead of n.at
ldnunes has quit [Quit: Leaving]
j4cknewt has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<a1fa> check
wald0 has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
<a1fa> ok this is now starting to make more sense
<volty> imho .text does not properly handle ctext. (though i am bit tired)
hotpancakes has quit [Remote host closed the connection]
victorkohl has quit []
<volty> though it shouldn't handle it at all
michael_mbp has quit [Excess Flood]
whippythellama has quit [Quit: whippythellama]
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zubov has joined #ruby
Yiota has joined #ruby
charliesome has joined #ruby
commondream has quit [Ping timeout: 258 seconds]
<ght> Quetsion: I have a ruby app and I need to launch a lightweight web server on the host to accept commands from a separate ruby app, just wondering on thoughts regarding that.
willharr_ has joined #ruby
mark[oz] has joined #ruby
michael_mbp has joined #ruby
<ruboto> volty, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/991b6ff6c413f39467a6
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
discord has quit [Ping timeout: 245 seconds]
mdz_ has quit [Remote host closed the connection]
kriskropd has joined #ruby
djbkd has joined #ruby
discord has joined #ruby
gambl0re has joined #ruby
<volty> get that cdata and do whatever with the text by other means
jbomo has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
kotk_ has joined #ruby
<volty> ght: could be that somebody is going to answer if you give an example. or at least what kind of commands (ipc, via web ....) ?
zotherstupidguy has quit [Ping timeout: 256 seconds]
<volty> or, in case of ipc, rpc, maybe just omit that one of the apps is a web server, irrelevant
commondream has joined #ruby
hotpancakes has joined #ruby
kotk has quit [Ping timeout: 265 seconds]
zotherstupidguy has joined #ruby
babykosh has quit [Quit: babykosh]
fmcgeough has quit [Quit: fmcgeough]
arooni-mobile has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
jwaldrip has quit [Quit: Be back later ...]
havenwood has joined #ruby