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/
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
jesterfraud_ has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
axsuul has joined #ruby
mrmargolis has joined #ruby
HotCoder has joined #ruby
kobain has quit [Ping timeout: 255 seconds]
autrilla_ has joined #ruby
white_magic has quit [Quit: Page closed]
segfalt has quit [Read error: Connection reset by peer]
vikaton has joined #ruby
intinig has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 256 seconds]
balazs has joined #ruby
drew0 has quit [Quit: WeeChat 1.2]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
HotCoder has quit [Client Quit]
autrilla_ has quit [Client Quit]
autrilla_ has joined #ruby
drewo has joined #ruby
cndiv has quit []
dgutierrez1287 has joined #ruby
nikhgupta has joined #ruby
autrilla_ has quit [Client Quit]
autrilla has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
Lucky__ has joined #ruby
blue_deref has quit [Quit: bbn]
rdark has quit [Ping timeout: 252 seconds]
kotk has quit [Quit: Leaving...]
intinig has quit [Remote host closed the connection]
intinig has joined #ruby
wildroman3 has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
intinig has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
michaeldeol has joined #ruby
havenwood has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
FernandoBasso has quit [Quit: WeeChat 1.2]
ixti has quit [Quit: WeeChat 1.2]
simplyianm has joined #ruby
voxxit has quit [Remote host closed the connection]
simplyia_ has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
x1337807_ has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
keen___ has quit [Read error: Connection reset by peer]
bronson has joined #ruby
keen___ has joined #ruby
Befine has joined #ruby
apofis_ has quit [Remote host closed the connection]
NeverDie has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
apofis has joined #ruby
nobitanobi has quit []
nobitanobi has joined #ruby
bosnia is now known as bosma
bricker_ has quit [Quit: leaving]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
krisquigley has joined #ruby
nikhgupta has quit [Remote host closed the connection]
wallerdev has joined #ruby
nikhgupta has joined #ruby
apofis has quit [Ping timeout: 272 seconds]
nonparfumee has joined #ruby
dj-amel has joined #ruby
ramfjord has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
RegulationD has quit [Remote host closed the connection]
bmurt has joined #ruby
scottschecter has joined #ruby
sharpmachine has quit [Remote host closed the connection]
nikhgupta has quit [Remote host closed the connection]
JoshL has quit []
nikhgupta has joined #ruby
fgo has joined #ruby
bronson has quit [Remote host closed the connection]
nikhgupta has quit [Remote host closed the connection]
nikhgupta has joined #ruby
simplyianm has quit [Remote host closed the connection]
joaomdmoura has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
simplyianm has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
drocsid has quit [Ping timeout: 272 seconds]
vyorkin2 has quit [Ping timeout: 264 seconds]
fgo has quit [Client Quit]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simplyianm has quit [Ping timeout: 244 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
asteros has joined #ruby
asteros has quit [Client Quit]
joelataylor_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
noname1 has quit [Ping timeout: 256 seconds]
_seanc_ has quit [Quit: _seanc_]
nofxx has quit [Remote host closed the connection]
bin_005 has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
balazs has quit [Remote host closed the connection]
x1337807x has quit [Client Quit]
deric_skibotn has quit [Ping timeout: 246 seconds]
balazs has joined #ruby
bgmarx has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has quit [Ping timeout: 265 seconds]
jschoolcraft has quit [Quit: peace]
jschoolcraft has joined #ruby
zotherstupidguy has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
zendrix has quit []
drocsid has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
CyborgCygnus has joined #ruby
chipotle has joined #ruby
aspiers has joined #ruby
j4cknewt has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
scottschecter has quit [Ping timeout: 246 seconds]
Filete has joined #ruby
Yiota has joined #ruby
drewo has quit [Ping timeout: 252 seconds]
chipotle has quit [Ping timeout: 276 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aphprentice has joined #ruby
CyborgCygnus has quit [Quit: I hath quit]
bkxd has quit [Ping timeout: 256 seconds]
CyborgCygnus has joined #ruby
jpfuentes2 has joined #ruby
mkosaki has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
_seanc_ has joined #ruby
mrmargolis has quit [Remote host closed the connection]
dj-amel has quit []
scottschecter has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
hakunin has joined #ruby
hahuang65 has joined #ruby
djdarkbeat has quit [Ping timeout: 256 seconds]
railsraider has joined #ruby
pwattstbd has joined #ruby
CyborgCygnus has quit [Read error: Connection reset by peer]
CyborgCygnus has joined #ruby
j4cknewt has joined #ruby
keernel has quit [Quit: Leaving.]
Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
lfox has joined #ruby
blackmesa has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
auzty has joined #ruby
x1337807x has joined #ruby
WillAmes has quit [Ping timeout: 258 seconds]
tsvenson has quit [Read error: Connection reset by peer]
tsvenson has joined #ruby
Yiota has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
sdothum has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
railsraider has quit [Quit: railsraider]
workmad3 has joined #ruby
unreal_ has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
unreal has quit [Ping timeout: 255 seconds]
dgutierrez1287 has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
nikhgupta` has joined #ruby
arthurcolle has joined #ruby
sharpmachine has joined #ruby
<arthurcolle> What are the coolest methods in the ruby standard lib?
GnuYawk has quit [Ping timeout: 245 seconds]
<eam> arthurcolle: #freeze
<nikhgupta`> `lambda` & `proc`
hakunin has quit [Remote host closed the connection]
<arthurcolle> the #elixir channel has a cool bot that runs code, do they have that here?
nikhgupta has quit [Ping timeout: 252 seconds]
<mozzarella> >> "yes"
<ruboto> mozzarella # => "yes" (https://eval.in/380260)
hakunin has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
<Aeyrix> Ugh come on Cavs
<arthurcolle> >> lambda{puts "test"}.()
<ruboto> arthurcolle # => test ...check link for more (https://eval.in/380261)
<Aeyrix> baweaver: Do you into basketball?
sharpmachine has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<baweaver> I'm pretty well anti-sport-watching in general
<nikhgupta`> >> (1..5).times.inject(0,:+)
<ruboto> nikhgupta` # => undefined method `times' for 1..5:Range (NoMethodError) ...check link for more (https://eval.in/380262)
Channel6 has quit [Quit: Leaving]
<nikhgupta`> lol
dgutierrez1287 has joined #ruby
<Aeyrix> baweaver: ;_;
unreal has joined #ruby
unreal has quit [Changing host]
unreal has joined #ruby
djbkd has quit [Remote host closed the connection]
<baweaver> >> (1..5).reduce(0, :+) # nikhgupta`
<ruboto> baweaver # => 15 (https://eval.in/380263)
<nikhgupta`> >> 1.upto(5).inject(0,:+)
<ruboto> nikhgupta` # => 15 (https://eval.in/380264)
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Remote host closed the connection]
<nikhgupta`> `reduce`. nice :) ty for the nit-pick :)
<baweaver> Preference from Haskell / JS
unreal_ has quit [Ping timeout: 264 seconds]
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
dfockler has quit [Ping timeout: 252 seconds]
jphenow has joined #ruby
tkuchiki has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
x1337807x has joined #ruby
jphenow has quit [Client Quit]
Agoldfish has quit [Quit: G'Bye]
commondream has joined #ruby
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has quit [Ping timeout: 245 seconds]
zotherstupidguy has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
CyborgCygnus has quit [Quit: I hath quit]
serivich has quit [Ping timeout: 244 seconds]
CyborgCygnus has joined #ruby
Domon has quit [Quit: Connection closed for inactivity]
CyborgCygnus has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby
znz_jp has quit [Quit: kill -QUIT $$]
tenderlove has quit [Read error: Connection reset by peer]
powersurge has joined #ruby
nikhgupta` has quit [Remote host closed the connection]
powersurge has left #ruby ["WeeChat 0.4.3"]
nikhgupta has joined #ruby
znz_jp has joined #ruby
towski_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 252 seconds]
<Ox0dea> The origin of `inject`: http://genius.com/2519068
<Ox0dea> It's still not very sensible, but I was happy to finally have that mystery cleared up the other day.
ramfjord has joined #ruby
freerobby has joined #ruby
j4cknewt has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Ping timeout: 264 seconds]
avahey has joined #ruby
darkf has joined #ruby
Rickmasta has quit [Ping timeout: 255 seconds]
arthurcolle has quit [Quit: arthurcolle]
finisherr has joined #ruby
cnngimenez has joined #ruby
pengin has quit [Remote host closed the connection]
RegulationD has joined #ruby
lessless has joined #ruby
porglezomp has quit [Ping timeout: 265 seconds]
krisquigley has joined #ruby
konsolebox has joined #ruby
g0bl1n has quit [Ping timeout: 245 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
swgillespie has joined #ruby
lele has quit [Ping timeout: 272 seconds]
grp066 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 252 seconds]
phutchins has quit [Ping timeout: 256 seconds]
swgillespie has quit [Max SendQ exceeded]
<cj> okay, I just changed a bunch of node['ipr_portal']['foo'] to node['default']['ipr_portal']['foo'] and similar. Is there anything wrong with that syntax change?
swgillespie has joined #ruby
bgmarx has joined #ruby
bgmarx has quit [Remote host closed the connection]
lele has joined #ruby
sharpmachine has joined #ruby
bruno- has joined #ruby
freerobby has quit [Quit: Leaving.]
sharpmachine has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
axsuul_ has joined #ruby
dgutierrez1287 has joined #ruby
hakunin has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
arthurcolle has joined #ruby
hakunin has joined #ruby
axsuul has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
<Ox0dea> cj: %w[default ipr_portal foo].reduce(node, :[]) is another option.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> Of course, it's only really useful if the keys and/or access depth are dynamic values.
bogdanteleaga has quit [Ping timeout: 276 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
sdothum has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
bmurt has quit []
zenguy_pc has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
<ramfjord> does anyone have an idea how to do what I'm trying to do here
<ramfjord> basically I would like to define class getter/setter methods when a module is included
mike___1234 has quit [Ping timeout: 265 seconds]
zotherstupidguy has quit [Ping timeout: 252 seconds]
mike___1234 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
djbkd has joined #ruby
<ramfjord> really I'd just like to have class X include the module, call `set_var 3` in X's definition, and have var accessible as an instance method on any X
zotherstupidguy has joined #ruby
jack_rabbit has joined #ruby
michael_mbp has joined #ruby
rkazak has joined #ruby
<Ox0dea> ramfjord: Why an instance method?
zenguy_pc has joined #ruby
bogdanteleaga has joined #ruby
duderonomy has joined #ruby
jamesaxl has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 246 seconds]
<ramfjord> nm, I'm dumb - I just had the self.included in the ClassMethods module
baweaver has quit [Remote host closed the connection]
<ramfjord> not necessarily an instance method - it just needs to be available to an instance
<ramfjord> (instead of in the Test module)
<Ox0dea> You don't need to specify ClassMethods there; self will suffice.
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramfjord> well, it should be that when Test is included the class including it also extends ClassMethods
jamesaxl has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
chouhoulis has quit [Remote host closed the connection]
zekriad has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
veduardo has joined #ruby
bb010g has joined #ruby
nikhgupta has quit [Remote host closed the connection]
sdothum has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
drocsid has quit [Changing host]
drocsid has joined #ruby
braincrash has quit [Quit: bye bye]
baweaver has joined #ruby
datanoise has joined #ruby
joaomdmoura has quit [Read error: Connection reset by peer]
joaomdmoura_ has joined #ruby
CalvinnHobbes has joined #ruby
rbowlby has joined #ruby
dented42 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
braincrash has joined #ruby
nikhgupta has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
endash has quit [Quit: endash]
baweaver has joined #ruby
nikhgupta has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
nikhgupta has joined #ruby
iBloodLust has joined #ruby
<iBloodLust> how does byte manipulation work in ruby?
<iBloodLust> i want to have a variable that can store up to 2 bytes
yfeldblum has quit [Remote host closed the connection]
Ox0dea has joined #ruby
<Ox0dea> iBloodLust: That's almost never how things are done in Ruby.
nikhgupta has quit [Ping timeout: 276 seconds]
<Ox0dea> Ruby's integers are of arbitrary precision and grow and shrink automatically as necessary.
Eiam has joined #ruby
scripore has joined #ruby
Eiam has quit [Client Quit]
eggoez has joined #ruby
jamesaxl has quit [Remote host closed the connection]
Yzguy has joined #ruby
mfranzwa has joined #ruby
<duderonomy> iBloodLust: Can you break down the essence of the problem or goal with the bytes? Are you seeking bit field for storage?
balazs has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
balazs has joined #ruby
<iBloodLust> nothing, just that i want to get into emulating. i know its recommended that i do this in c or c++
blue_deref has joined #ruby
<baweaver> recommended nothing
Eiam has joined #ruby
<baweaver> ruby is a bad idea for this
Bulat has joined #ruby
<Ox0dea> Still, you can access an integer's individual bits with Numeric#[] should the need ever truly arise.
<Ox0dea> >> [6[0], 6[1], 6[2]]
<ruboto> Ox0dea # => [0, 1, 1] (https://eval.in/380268)
allomov has joined #ruby
joaomdmoura_ has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 1.2]
<Ox0dea> Also, [min, x, max].sort[1] is a pretty handy approach to clamping.
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
mfranzwa has quit [Quit: mfranzwa]
finisherr has quit [Quit: finisherr]
workmad3 has joined #ruby
someword has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
<iBloodLust> sort of what gave me the idea to even attempt to get into emulating in ruby
<Ox0dea> iBloodLust: JavaScript is a lot faster than Ruby. :/
endorphine_ has quit []
allomov has quit [Ping timeout: 264 seconds]
Eiam has quit [Changing host]
Eiam has joined #ruby
<iBloodLust> any benchmarks? i dont know one thing about javascript, but i guess you can say i dont know alot about ruby either
yfeldblum has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
simplyianm has joined #ruby
<Ox0dea> Aeyrix: Remember McGrady's 13-in-30?
<Aeyrix> Ox0dea: ?
<Ox0dea> What are you, twelve? It was the greatest scoring performance in modern NBA history.
<Aeyrix> I'm thinking about a lot of things at once, sorry.
GnuYawk has joined #ruby
<Ox0dea> Apologies for troubling you, then.
<iBloodLust> wow ruby is pretty slow compared to javascript,were other ruby implementations tested? are the other implementation such as mruby and rubinius even faster than ruby mri?
<Ox0dea> Warriors in six, though.
<Aeyrix> Ox0dea: Get out.
<Aeyrix> Cavs in 6, there's always this year.
<Ox0dea> > mfw cavs = champs
<cnngimenez> iBloodLust: really? is that slow? :-/
Cache_Money has joined #ruby
<Aeyrix> Ox0dea: mfw Irving is busy healing from gettin rekt
<cnngimenez> iBloodLust: Are you trying the Ruby interpreter from the ruby-lang.org page?
mike___1234 has quit [Ping timeout: 265 seconds]
<iBloodLust> 2.1.2 to be exact
<iBloodLust> yes
aaeron has quit [Quit: Leaving.]
<cnngimenez> on GNU/Linux, right?
<Aeyrix> GNU/Freedom.
<cnngimenez> better :-)
<Aeyrix> I'm using GNU/OS X.
<Aeyrix> Means I can't get viruses.
<Aeyrix> Ox0dea: Got a home team?
<cnngimenez> that's odd... JS faster than Ruby... Maybe I can do some tests...
<Aeyrix> Uh
<Ox0dea> Aeyrix: Not particularly anymore, but I'd like to see Curry get his.
<Aeyrix> of course JS is faster.
victomina has joined #ruby
<cnngimenez> but, I cannot compare against the language itself... I hate programming in JS!
<iBloodLust> im using gnu/linuxc
<Ox0dea> cnngimenez: Why?
mike___1234 has joined #ruby
<Aeyrix> The JS interpreters are worked on incessantly because they're build into web browsers.
jphenow has joined #ruby
<Aeyrix> They have literally the *top* minds in language VMs working on them.
ramfjord has joined #ruby
<Aeyrix> Ox0dea: muh cavs
<cnngimenez> I don't know...
<Aeyrix> Celtics disappointed me too much.
<cnngimenez> Ox0dea: I think its syntax and that thing of globals variables everywhere... Ruby implements visibility a bit better :-P
<Ox0dea> cnngimenez: You are ill-informed.
ferr has quit [Quit: WeeChat 1.2]
bgmarx has joined #ruby
<cnngimenez> I hope... I have only used JS on Web only
<cnngimenez> And also CoffeeScript...
Jarboe has joined #ruby
<Ox0dea> Aeyrix: Looks like your boy won't be pulling an Oscar Robertson this series.
<Ox0dea> I would've liked to see that, to be honest.
<Aeyrix> From his hospital bed?
<Ox0dea> I meant LeBron averaging a triple.
<Aeyrix> Current score is making me upset.
<Aeyrix> GSW 100 : 79 CLE
<RickHull> blackjack!
<Ox0dea> Spoiler alert: it's 102-81 here.
<Aeyrix> 102 : 80
<Aeyrix> yeah
<cnngimenez> have to go! :-) bye! :-)
<Aeyrix> Today is just not my day, tbh.
bgmarx has quit [Ping timeout: 265 seconds]
<iBloodLust> why do people use C# over other great languages
<iBloodLust> delphi is one
<RickHull> .NET libs
gix has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
<Aeyrix> >delphi
<Aeyrix> mods
cnngimenez has quit [Quit: Konversation terminated!]
<iBloodLust> but .net libs is expensive in a way
rbowlby has quit [Remote host closed the connection]
freerobby has joined #ruby
ledestin has joined #ruby
gix has joined #ruby
oo_ has joined #ruby
nym has quit [Quit: Connection closed for inactivity]
aytch has quit [Ping timeout: 265 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
aytch has joined #ruby
Paradox has quit [Ping timeout: 265 seconds]
whoami has joined #ruby
theery has joined #ruby
bin_005 has quit [Remote host closed the connection]
whoami is now known as Guest98386
bin_005 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Paradox has joined #ruby
<bosma> Anyone get ZeroMQ / Ruby on Windows?
justintv90 has quit [Remote host closed the connection]
WildBamboo-Josh has quit [Ping timeout: 265 seconds]
scottstamp has joined #ruby
WildBamboo-Josh has joined #ruby
<Aeyrix> Ox0dea: idk what happened to LeBron that game.
<Aeyrix> 20pts.
oo_ has quit [Ping timeout: 256 seconds]
scottstamp has quit [Max SendQ exceeded]
scottstamp has joined #ruby
<RickHull> did he crack 50% in free throw pctg?
<arthurcolle> ruby on windows is a real nightmare
<bosma> yes
Bulat has quit [Quit: Leaving.]
<bosma> lots of things are
<Ox0dea> Aeyrix: I wonder if his uncharacteristically scrub-tacular performance had anything to do with him learning that he accidentally whipped his penis out on live television.
<Aeyrix> Ox0dea: lmao
<Aeyrix> He was already doing avg though.
iBloodLust has quit [Quit: Page closed]
<bosma> I'd just like to pass messages from my C# application to my ruby IRC bot.
<bosma> any ideas?
<Ox0dea> Either way, the mojo got out and he never recovered it.
oo_ has joined #ruby
<Aeyrix> Hopefully we get a recovery for next game.
<Aeyrix> bosma: Unix sockets.
<RickHull> i blame the leg rub guy
baweaver has quit [Remote host closed the connection]
fedexo has joined #ruby
bantic has joined #ruby
aaeron has joined #ruby
Rickmasta has joined #ruby
houhoulis has joined #ruby
pepperbreath has joined #ruby
gambl0re has joined #ruby
aaeron1 has joined #ruby
nobitanobi has joined #ruby
aaeron has quit [Client Quit]
<RickHull> if it sounds like I'm gloating, it's because I'm gloating xD
aaeron1 has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
pepperbreath1 has quit [Ping timeout: 276 seconds]
sdothum has quit [Ping timeout: 246 seconds]
<Aeyrix> :(
RobertBirnie has joined #ruby
veduardo has quit [Quit: WeeChat 0.4.2]
someword has quit [Quit: Leaving.]
krisquigley has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
RobertBirnie has quit [Client Quit]
braincra- has joined #ruby
victomina has quit [Quit: Leaving]
victomina has joined #ruby
victomina has quit [Read error: Connection reset by peer]
mattp__ has quit [Read error: Connection reset by peer]
simplyianm has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 245 seconds]
krisquigley has quit [Ping timeout: 276 seconds]
<ajaiswal> any help, i need first three blocks only, can't figure out the regex https://gist.github.com/anonymous/db4433d785df2878f2ef
<ajaiswal> like "role::appeng::tomcat"
gianlucadv has joined #ruby
<RickHull> doesn't look like ruby
<Ox0dea> ajaiswal: Why not foo.split('::')[0, 3]?
<RickHull> oh, ^
<ajaiswal> Ox0dea: hmm it converts it into array.. i would like it to be string
<RickHull> >> "role::appeng::tomcat::foo".split('::')[0, 3].join('::')
<ruboto> RickHull # => "role::appeng::tomcat" (https://eval.in/380271)
<ajaiswal> ["role", "webframeworks", "wordpress"]
<ajaiswal> ruboto: you are the hero :)
<ajaiswal> thanks
<RickHull> gj ruboto
bruno- has joined #ruby
<Ox0dea> ruboto: Nice!
<RickHull> ruboto: botsnack
<Ox0dea> ajaiswal: For what it's worth, the Regexp would be as simple as /\w+::\w+::\w+/, and you might consider using it if you're sure you only need the first three components.
<Befine> Radar: ping
<ajaiswal> yep. i need only first three block.
<ajaiswal> Ox0dea: thanks
<Ox0dea> Sure thing.
simplyianm has joined #ruby
skade has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
chiel_ has quit [Remote host closed the connection]
axsuul_ has quit [Ping timeout: 246 seconds]
valeri_ufo has quit [Quit: ...]
<Aeyrix> Just overheard "meme" being pronounced as "me me".
<Aeyrix> Help.
I has joined #ruby
I is now known as Guest3710
finisherr has joined #ruby
<Befine> Is Ruby/Rails even worth learning now when Elixir/Phoenix is out. If it's not for job but for web development itself.
<shevy> Aeyrix lol
munen has joined #ruby
<RickHull> Befine: sure. just for ecosystem
Guest98386 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> gem install ecosystem
M-Technic has joined #ruby
<RickHull> # this boils the ocean
<Befine> Ox0dea: There is similar things in Elixir/Phoenix.
<Befine> are*
Spami has joined #ruby
rbowlby has joined #ruby
<Aeyrix> *shrugs*S
<Aeyrix> Elixir isn't the mass migration of Ruby users.
<Ox0dea> Yet.
<Aeyrix> I personally can't get over some of the syntax quirks.
<Ox0dea> It's not like Crystal is gonna take off.
<RickHull> i like Elixir better than Ruby at this point, but I don't see the Elixir stack taking over anytime soon
yfeldblum has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
Guest3710 has quit [Quit: Leaving]
<Ox0dea> RickHull: Why?
<Aeyrix> Convenience of interpreted languages.
<RickHull> i've drifted away from OOP towards FP
dseitz has joined #ruby
growlove has joined #ruby
<Ox0dea> Ruby is pretty FP.
<Befine> Aeyrix: The syntax is very easy lol.
<RickHull> most of my ruby these days looks more like FP than OOP
<Aeyrix> Ox0dea: wat
<Aeyrix> Ruby is the purest OO you can get.
<Aeyrix> Literally everything is an object.
<Befine> Aeyrix: You are not a progrmmer, are you?
<Ox0dea> And yet we #map and #reduce all day.
<Aeyrix> Befine: No, I'm a security consultant.
<Aeyrix> Ox0dea: You might.
<RickHull> Ox0dea: yeah, basically i've drifted towards FP-style approaches in my ruby, and Elixir is the natural continuation, with some nice guarantees that fall out of sticking to FP
<RickHull> which ruby doesn't offer
rdavila has joined #ruby
<Befine> Aeyrix: I could figure it out from 3-4 sentence you said.
<Aeyrix> Befine: That's a pretty cool story.
dented42 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<Aeyrix> Ox0dea: So uh, what is Crystal?
<Aeyrix> It looks exactly like Ruby.
<Aeyrix> Oh it's compiled Ruby basically.
<Ox0dea> Oui.
<Aeyrix> haha i remember when I had problems with ruby's `|x|` syntax.
<Befine> Aeyrix: Not familiar with lambdas?
<Befine> Back then when you were learning Ruby.
<RickHull> sheepdas > lambdas
<Radar> Befine: Not here. At Railscamp.
autrilla has quit [Quit: Connection closed for inactivity]
<Ox0dea> I prefer to to_proc my stabby lambdas instead of using blocks.
<Ox0dea> >> [1, 2, 3].map &-> x { x + 1 }
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/380277)
<Radar> Befine: Yes it's worth learning because Ruby/Rails has a much more mature ecosystem.
araujo_ has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> that said, if you find Elixir exciting, then you should probably start with Phoenix rather than Rails
<RickHull> but Rails is definitely "worth" learning
<RickHull> though even in Ruby I'd start with Sinatra first
<Befine> I love Elixir.
<Ox0dea> Befine: Whatcha doin' here?
<Befine> Ox0dea: What?
<RickHull> being judgmental and kindling flamewars
towski_ has joined #ruby
<Befine> Radar: Alright great, because I have your book right here waiting.
<Radar> It's *all* worth learning.
<Ox0dea> LOLCODE might not be worth learning.
RegulationD has joined #ruby
<Befine> Radar: Do you see Phoenix replacing your Rails projects in the future or will you be using both?
<Radar> Not sure yet. I am still a Rails programmer :)
<RickHull> Visual Basic is not worth learning. there, i said it
<Befine> RickHull: I'm an experience programmer, not an experienced web programmer tho. :)
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Befine> RickHull: You can't start a way by saying VB is not worth learning, because everyone knows that's true heh
<Befine> r/way/war
justintv90 has joined #ruby
<Ox0dea> Befine: How many NAND gates does it take to invert a binary tree?
<RickHull> bbbbut it's visual. you just drag and drop and the tooling does all the hard stuff like thinking for you
justintv90 has quit [Max SendQ exceeded]
balazs has quit [Ping timeout: 272 seconds]
justintv90 has joined #ruby
<RickHull> NAND gates can't melt steel beams
<Befine> Ox0dea: What's the time complexity of an insert/delete in a segmented contiguous array?
mooe has joined #ruby
<Ox0dea> "Depends on the size of the chair."
RegulationD has quit [Ping timeout: 250 seconds]
<Befine> huh?
<Ox0dea> > segmented contiguous
<Ox0dea> I thought we were being silly.
paradisaeidae has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
hdev1 has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
<Aeyrix> Ox0dea: I think that's a markov chain bot.
<Aeyrix> Also ffs Radar
<Radar> wat
<Aeyrix> I buy your book and you start evangelising another language.
<Aeyrix> Next book purchase better be on you.
<Radar> ok
<Aeyrix> Wow that was easy.
Cache_Money has quit [Quit: Cache_Money]
<RickHull> just write a book and make Radar buy it
<Radar> ^
<Aeyrix> I have nothing interesting to say.
<RickHull> i find that hard to believe
<RickHull> not because it's false, mind you
<Aeyrix> Anything interesting has already all been said by someone probably better at it. :P
bantic has quit [Quit: bantic]
mary5030_ has quit [Remote host closed the connection]
<Aeyrix> Radar: Did you ever look at Haskell¿
<Radar> Aeyrix: The category of the monoid endfunctors put me off tbh
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aeyrix> You what
nobitanobi has quit [Remote host closed the connection]
x1337807x has joined #ruby
<Ox0dea> Aeyrix: Do you even liftM?
<Aeyrix> No.
hakunin has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Miphix has quit [Quit: Leaving]
<Ox0dea> Well, there's your burrito.
<Aeyrix> Oh.
Musashi007 has quit [Quit: Musashi007]
Deele has joined #ruby
davedev2_ has quit []
<Aeyrix> "The booleans true and false are, in fact, atoms"
<Aeyrix> Great.
<RickHull> sure, but what about those of us doing fictional programming?
revath has joined #ruby
<RickHull> what are true and false in fiction?
<Ox0dea> Stranger than.
<RickHull> i'm adding fictional programming to my CV
<RickHull> also noting that i'm really good at it
<Ox0dea> Does a language not cease to be fictional the first time it's used?
<RickHull> only if it falls in the forest
nobitanobi has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
commondream has joined #ruby
havenwood has quit [Ping timeout: 258 seconds]
<Befine> Aeyrix: Do you even know what booleans really are behind the scene? Just because you are used to one way, doesn't mean it's the right way.
<RickHull> do you even binary?
theery has quit [Remote host closed the connection]
<Aeyrix> Befine: I'd appreciate you not talking to me.
<Aeyrix> Half of the things you've said to me don't really make any sense or are completely irrelevant.
<Befine> RickHull: No joke, we had to do binary in a hedge fund I was working on few years back
<Ox0dea> > do binary
<Befine> Ox0dea: Do you even bitfields?
_ht has joined #ruby
<Ox0dea> They are almost never worth the while, but sure.
<Befine> What did I just hear.
<RickHull> i keep asking the sales girls if they do binary but i only get puzzled looks
<Befine> Aeyrix: Would you like som bread with the whine?
<Befine> some*
commondream has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
theery has joined #ruby
<shevy> and then the mandatory spanking
<shevy> we learned that in Monty Python's The Holy Grail
balazs has joined #ruby
growlove has quit [Quit: Leaving]
towski_ has quit [Remote host closed the connection]
jphenow has quit [Quit: Be back later ...]
baweaver has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
Ox0dea has quit [Ping timeout: 255 seconds]
theery_ has joined #ruby
hdev1 has joined #ruby
Befine has quit [Quit: Page closed]
workmad3 has joined #ruby
ylla has joined #ruby
theery has quit [Ping timeout: 276 seconds]
LicHacker has quit [Ping timeout: 256 seconds]
hyperjuice has joined #ruby
balazs has quit [Remote host closed the connection]
balazs has joined #ruby
axsuul has joined #ruby
datanoise has left #ruby ["WeeChat 1.2"]
arescorpio has quit [Quit: Leaving.]
theery_ has quit [Ping timeout: 256 seconds]
mleung has joined #ruby
rdavila has quit [Quit: rdavila]
workmad3 has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
tagrudev has joined #ruby
hakunin has joined #ruby
theery has joined #ruby
michaeldeol has joined #ruby
baweaver has joined #ruby
munen has quit [Quit: munen]
codecop has joined #ruby
aganov has joined #ruby
yfeldblum has joined #ruby
codecop has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Skelz0r has quit [Ping timeout: 272 seconds]
Skelz0r has joined #ruby
j4cknewt has joined #ruby
paradisaeidae has quit [Ping timeout: 276 seconds]
hdev1 has quit [Ping timeout: 244 seconds]
astrobun_ has joined #ruby
matugm has quit [Ping timeout: 252 seconds]
BTRE has quit [Quit: Leaving]
matugm has joined #ruby
Jarboe has quit []
ylla has quit [Ping timeout: 258 seconds]
hdev1 has joined #ruby
polysics has quit [Remote host closed the connection]
hahuang65 has joined #ruby
bronson has joined #ruby
nonparfumee has joined #ruby
GPrime has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
CyborgCygnus has joined #ruby
nobitanobi has quit []
moshee has quit [Quit: 囧]
bronson has quit [Ping timeout: 272 seconds]
scottschecter has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
skade has quit [Quit: Computer has gone to sleep.]
vikaton has quit [Quit: Connection closed for inactivity]
Zen-Zen has joined #ruby
mleung has quit [Quit: mleung]
Zen-Zen has quit [Client Quit]
astrobun_ has quit [Remote host closed the connection]
apofis has joined #ruby
j4cknewt has quit [Remote host closed the connection]
bin_005 has quit [Remote host closed the connection]
hyperjuice has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
bin_005 has joined #ruby
hyperjuice has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
Macaveli has joined #ruby
ylla has joined #ruby
ziprar has joined #ruby
ziprar has joined #ruby
banister has quit [Ping timeout: 252 seconds]
hyperjuice has quit [Ping timeout: 256 seconds]
krisquigley has quit [Ping timeout: 246 seconds]
zipace has quit [Ping timeout: 244 seconds]
<weaksauce> >> 983247.to_s(2)
<ruboto> weaksauce # => "11110000000011001111" (https://eval.in/380301)
<weaksauce> fun with binary
avahey has quit [Quit: Connection closed for inactivity]
ylla has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
balazs has quit [Remote host closed the connection]
djbkd_ has joined #ruby
bruno- has joined #ruby
GGMethos has quit [Quit: WeeChat 1.1.1]
roolo has joined #ruby
<Aeyrix> >> 256.to_s(8)
<ruboto> Aeyrix # => "400" (https://eval.in/380305)
Filete has quit [Write error: Connection reset by peer]
kerunaru has joined #ruby
GGMethos has joined #ruby
rdark has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
aaeron has joined #ruby
apofis has quit [Remote host closed the connection]
balazs has joined #ruby
<RickHull> >> "chmod #{493.to_s(8)} ~/script.rb"
<ruboto> RickHull # => "chmod 755 ~/script.rb" (https://eval.in/380306)
bruno- has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby
djbkd has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
emilkarl has joined #ruby
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
Shu has joined #ruby
tvw has joined #ruby
RazorX_ has quit [Remote host closed the connection]
<flughafen> ahoy
stan has joined #ruby
RazorX has joined #ruby
RazorX has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
RazorX has joined #ruby
balazs has quit [Remote host closed the connection]
aaeron1 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
rippa has joined #ruby
Mia has joined #ruby
DEA7TH_ has joined #ruby
<GPrime> hi :]
RegulationD has joined #ruby
mattp__ has joined #ruby
Axy has quit [Ping timeout: 244 seconds]
aaeron has quit [Ping timeout: 252 seconds]
<weaksauce> that feature is pretty useful for binary and hex
jmhmccr has joined #ruby
lolmaus has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
solars has joined #ruby
polysics has joined #ruby
sinkensabe has joined #ruby
ndrei has joined #ruby
andikr has joined #ruby
affenh0den has quit [Remote host closed the connection]
<Aeyrix> I use it for hex a lot. :P
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pragmatism has joined #ruby
railsraider has joined #ruby
<shevy> hex-magician
GnuYawk has quit [Ping timeout: 250 seconds]
astrobun_ has joined #ruby
drocsid has quit [Quit: zzZZzz]
Zen-Zen has joined #ruby
ylla has joined #ruby
simplyianm has quit [Remote host closed the connection]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ni291187 has joined #ruby
bayed has joined #ruby
baweaver has quit [Remote host closed the connection]
simplyianm has joined #ruby
hubcaps has joined #ruby
skade has joined #ruby
<ni291187> I love ruby. it's a bit harder than Python but it's a great language. are you guys developers of the language?
ni291187 is now known as NIGhtGERald
railsraider has quit [Client Quit]
dcarmich has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<GPrime> I'm just learning it from scratch haha
vedwin has joined #ruby
simplyianm has quit [Ping timeout: 255 seconds]
casadei has quit [Remote host closed the connection]
apofis has joined #ruby
allenn has joined #ruby
vedwin has quit [Client Quit]
vedwin has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allenn has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
trollface has joined #ruby
dopie has joined #ruby
arup_r has joined #ruby
revath1 has joined #ruby
Xeago has joined #ruby
baweaver has joined #ruby
<NIGhtGERald> does everyone here have a penis?
theery has quit [Remote host closed the connection]
mike___1234 has quit [Ping timeout: 276 seconds]
revath has quit [Ping timeout: 245 seconds]
<baweaver> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
balazs has joined #ruby
trollface has quit [Client Quit]
djbkd_ has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 252 seconds]
<ljarvis> !ban NIGhtGERald
<NIGhtGERald> why?
<NIGhtGERald> why is everyone here such a dick?
<baweaver> Well bot is off again
NIGhtGERald was banned on #ruby by ljarvis [NIGhtGERald!*@*]
NIGhtGERald was kicked from #ruby by ljarvis [NIGhtGERald]
<ljarvis> thanks baweaver
<shevy> lol
<baweaver> np mate.
wald0 has joined #ruby
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> ruboto: wtf bro
<ljarvis> don't leave me hanging like that
* baweaver was staring expectantly
workmad3 has joined #ruby
<baweaver> Eh, at least I have bot access in Rails to kick them if they show up there
balazs has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
commondream has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
musashi1 has joined #ruby
arooni-mobile has quit [Ping timeout: 256 seconds]
jbomo has quit [Ping timeout: 272 seconds]
<flughafen> still no delivery!
<flughafen> sup baweaver
<baweaver> hackathon, making magic happen
workmad3 has quit [Ping timeout: 265 seconds]
<shevy> I wonder why that webchat dude keeps on doing it
micmus has joined #ruby
<baweaver> never underestimate the boredom of teenagers in conjunction with too much time to piss away.
commondream has quit [Ping timeout: 272 seconds]
jph98 has joined #ruby
troulouliou_dev has joined #ruby
musashi1 has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
ReK2 has joined #ruby
ReK2 has joined #ruby
<apeiros> ljarvis: syntax :-/
Xeago has quit [Read error: Connection reset by peer]
x44x45x41x4E has joined #ruby
<apeiros> I have to make the bot more robust wrt syntax
fedexo has quit [Read error: Connection reset by peer]
<ljarvis> I needed to add !T ?
<apeiros> and reason I think
<ljarvis> alright
<apeiros> I intend to make `!ban foo` work on its own and ask for specifics via pm
sarlalian has quit [Quit: WeeChat 0.4.2]
<shevy> "Do you really want to do this?"
fedexo has joined #ruby
<shevy> "Are you absolutely sure?"
<shevy> "It might not be a good idea."
<apeiros> shevy: are you clippy?
<shevy> lol
<shevy> I hated clippy so much
starfox_sf has quit [Ping timeout: 255 seconds]
<baweaver> shevy: consider the irony that Steve Balmer bought the Clippers
<shevy> lol
jgt3 has joined #ruby
strixd has joined #ruby
strixd has quit [Excess Flood]
strixd has joined #ruby
djbkd has joined #ruby
krz has joined #ruby
vyorkin2 has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
autrilla_ has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
pragmatism has joined #ruby
pragmatism has quit [Client Quit]
vyorkin2 has quit [Ping timeout: 276 seconds]
francoi__ has joined #ruby
francoi__ has quit [Remote host closed the connection]
terlar has joined #ruby
Rubennn has joined #ruby
hanmac has joined #ruby
anisha has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<ajaiswal> some help here. it returns data in a string, even after converting it into array, the uniq is somehow not working https://gist.github.com/ashish1099/30df0685aa3966281eb8
houhoulis has quit [Remote host closed the connection]
dseitz has quit [Quit: g'nite!]
sdwrage has quit [Quit: This computer has gone to sleep]
dhjondoh has joined #ruby
wallerdev has joined #ruby
benlovell has joined #ruby
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> ajaiswal: "the uniq" -- which does not exist in your code?
k3asd` has joined #ruby
<zenspider> I'm off my game. I miss all the banning fun
<baweaver> zenspider: You all could keep a scoreboard for jollies.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Read error: Connection reset by peer]
<zenspider> should I point out that the whole script could be a curl | sort -u ?
dopie has quit [Quit: This computer has gone to sleep]
vedwin has quit [Read error: Connection reset by peer]
<zenspider> no, I probably shouldn't. disregard that previous line
<zenspider> I was busy converting rack's tests to minitest
* baweaver shrugs
<ljarvis> zenspider: no i thought that but the file is output, we dont know what the input is
<ljarvis> well..
<ljarvis> I mean JSON.parse the body does give it a way a bit
livathinos has joined #ruby
<zenspider> the input? It's a plain get w/ basic_auth
<zenspider> oh. oops. I missed that part. right. so curl | jq | sort -u
<baweaver> :thumbsup:
<baweaver> ....dangit slack
ramfjord has quit [Ping timeout: 252 seconds]
<ajaiswal> zenspider: its a plain basic auth.
krz has joined #ruby
ki0 has joined #ruby
<baweaver> Ah, so he did get banned last night. Wondered how that went down
* baweaver thumbs back through the logs
lolmaus has quit [Ping timeout: 256 seconds]
<zenspider> who?
<zenspider> ajaiswal: and?
<baweaver> morissette
<zenspider> alanis? NOOOOO
<baweaver> started to get a little belligerent from too many drinks before I left off for the night
<ajaiswal> its a basic http quer fires and get in respone a json, so i'm parsing that json with hash | key, value |
<ajaiswal> they key is a string, the whole thing is into string which should be n array , so i can iterate over it
simplyianm has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> ajaiswal: yup. again. `curl | jq | sort -u` is the short version
bin_005 has quit [Ping timeout: 265 seconds]
bin_005_c has joined #ruby
<zenspider> yay. conversion is done. now to see if the CI is happy with it
<zenspider> 10k line diff
sarlalian has joined #ruby
j4cknewt has joined #ruby
sarlalian has quit [Client Quit]
sarlalian has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
jcaho has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
Spami has quit [Quit: This computer has gone to sleep]
terlar has joined #ruby
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
simplyianm has quit [Ping timeout: 246 seconds]
neanderslob has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
Scrofff has joined #ruby
pyo_ has joined #ruby
keen____ has joined #ruby
dgutierrez1287 has joined #ruby
neanderslob has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
keen___ has quit [Read error: Connection reset by peer]
iamninja has quit [Quit: WeeChat 1.2]
fedexo has quit [Ping timeout: 256 seconds]
iamninja has joined #ruby
bruno- has joined #ruby
s2013 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
munen has joined #ruby
imanzarrabian has joined #ruby
Zen-Zen has quit [Ping timeout: 265 seconds]
krisquigley has joined #ruby
munen has quit [Client Quit]
bruno- has quit [Ping timeout: 258 seconds]
aapole has joined #ruby
neanderslob has quit [Remote host closed the connection]
veinofstars has quit [Quit: veinofstars]
<zenspider> green!
<zenspider> yay for easy automation
baweaver has quit [Remote host closed the connection]
tomphp has joined #ruby
neanderslob has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
iamninja has quit [Quit: WeeChat 1.2]
iamninja has joined #ruby
iamninja has quit [Client Quit]
Billias has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
<shevy> hanmac, did you update the rxw gem?
mister_solo has joined #ruby
aaeron1 has quit [Ping timeout: 256 seconds]
Billias has joined #ruby
proteusx is now known as jollytime
Scroff has joined #ruby
Miphix has joined #ruby
Hounddog has joined #ruby
jollytime is now known as proteusx
Scrofff has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
jenrzzz has joined #ruby
munen has joined #ruby
AlphaAtom has joined #ruby
marr has joined #ruby
RegulationD has joined #ruby
AlphaAtom has quit [Client Quit]
chussenot has joined #ruby
munen has quit [Client Quit]
imanzarrabian has quit [Ping timeout: 246 seconds]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli_ has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253]]
edwinvdgraaf has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
ahmadsoe has joined #ruby
francoi__ has joined #ruby
Zai00 has joined #ruby
skade has joined #ruby
davidhq has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
<flughafen> my package stil isn't being delivered
sleungcy has joined #ruby
bmurt has joined #ruby
benlovell has joined #ruby
Macaveli_ has quit [Read error: Connection reset by peer]
davidhq has quit [Client Quit]
Macaveli has joined #ruby
Xeago has joined #ruby
<flughafen> yo shevy
axl_ has joined #ruby
francoi__ has quit [Ping timeout: 252 seconds]
<shevy> lol
<flughafen> it'll be faster for me to walk to dhl and pick it up myselvcf
<shevy> I have hopes flughafen - one day that flughafen in berlin will be built
<shevy> it is actually no longer in the news since quite a while, so I have no idea about it's present day status
<flughafen> you would
apofis has quit [Remote host closed the connection]
<shevy> hmm *its
apofis has joined #ruby
intinig has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<flughafen> shevy: ^^
blue_deref has quit [Quit: bbn]
<adaedra> so many .de
Papierkorb has joined #ruby
<flughafen> de ist die beste!
<adaedra> they didn't do airport.berlin yet?
<flughafen> i should register it aaand sell it for millions of pennies
revath has joined #ruby
<adaedra> :D
ndrei has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> lol flughafen
Macaveli has joined #ruby
revath1 has quit [Ping timeout: 252 seconds]
<shevy> so they aim for 2017
CyborgCygnus has quit [Quit: I hath quit]
<shevy> how long did it take them like then... a decade?
lkba has quit [Ping timeout: 245 seconds]
<flughafen> shevy: i have no idea
<shevy> they would be faster by BUYING another airport and transferring it piece by piece
<flughafen> ha, yeah
s2013 has joined #ruby
wallerdev has quit [Quit: wallerdev]
vyorkin2 has joined #ruby
SalexW has joined #ruby
ahmetkapikiran has joined #ruby
nhhagen has joined #ruby
jwilson has quit [Read error: Connection reset by peer]
jwilson has joined #ruby
<hefest> i can't force thinking-sphinx to search in match_mode any. any ideas? i can post the sample query.
MyMind has quit [Excess Flood]
astrobun_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 265 seconds]
simplyianm has joined #ruby
astrobun_ has joined #ruby
vyorkin2 has quit [Ping timeout: 258 seconds]
hedgecore has quit [Read error: Connection reset by peer]
hedgecore has joined #ruby
Papierkorb has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
Papierkorb has joined #ruby
lolmaus has joined #ruby
nizmow has quit [Ping timeout: 265 seconds]
terlar has quit [Ping timeout: 244 seconds]
Aria has quit [Ping timeout: 272 seconds]
ByronJohnson has quit [Ping timeout: 264 seconds]
CustosLimen has quit [Ping timeout: 258 seconds]
MyMind has joined #ruby
CalvinnHobbes has quit [Ping timeout: 264 seconds]
mclee has quit [Ping timeout: 264 seconds]
nhhagen has quit [Remote host closed the connection]
mattp__ has quit [Ping timeout: 258 seconds]
doertedev has joined #ruby
jsaak has quit [Ping timeout: 265 seconds]
mattp__ has joined #ruby
ByronJohnson has joined #ruby
benlovell has quit [Ping timeout: 276 seconds]
jsaak has joined #ruby
aep has quit [Ping timeout: 252 seconds]
weaksauce has quit [Ping timeout: 264 seconds]
TheHodge has joined #ruby
aredridel has joined #ruby
workmad3 has joined #ruby
TheBrayn has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Shu has quit [Quit: Page closed]
allomov has joined #ruby
simplyianm has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 272 seconds]
nizmow_ has joined #ruby
SalexW has quit []
rkazak has quit [Ping timeout: 256 seconds]
Evidlo has quit [Ping timeout: 250 seconds]
tchebb has quit [Ping timeout: 245 seconds]
gf3 has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
intinig has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
TheBrayn has joined #ruby
gf3 has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
aep has joined #ruby
CalvinnHobbes has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
nhhagen has joined #ruby
tchebb has joined #ruby
arthurcolle has quit [Quit: arthurcolle]
CustosLimen has joined #ruby
hdev1 has quit [Remote host closed the connection]
balazs has joined #ruby
elev has joined #ruby
rkazak has joined #ruby
elev is now known as master44
yfeldblum has quit [Ping timeout: 256 seconds]
hdev1 has joined #ruby
starfox_sf has joined #ruby
dfockler has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ziprar is now known as zipace
postmodern has quit [Quit: Leaving]
master44 has quit [Client Quit]
mist has quit [Quit: leaving]
balazs has quit [Ping timeout: 246 seconds]
pontiki has joined #ruby
<bosma> If I have two threads, one is setting a class variable, one occasionally reads it, is that safe to do?
<ljarvis> no
<bosma> Mutex?
<ljarvis> yep
<bosma> cheers
senayar has joined #ruby
senayar has joined #ruby
<bosma> what could go wrong?
ta has quit [Remote host closed the connection]
<pontiki> yolo
<adaedra> :@
starfox_sf has quit [Ping timeout: 256 seconds]
<Darkwater> what's unsafe about that
<ljarvis> actually a mutex won't help you
senayar has quit [Remote host closed the connection]
intinig has joined #ruby
<bosma> Yeah I'm not seeing what's wrong.
<ljarvis> well, "safe" is probably the wrong way to describe it
dfockler has quit [Ping timeout: 265 seconds]
<ljarvis> of course it's safe
<Darkwater> yeah it doesn't kill me
<Darkwater> hopefully
<Darkwater> (depends on where it's used)
<bosma> is it guaranteed to not result in my program crashing
<bosma> is really the question
<ljarvis> i don't know the implementation so who knows
<ljarvis> probably not
<ljarvis> but you can't except any guarentees
<apeiros> bosma: depends on how setting and reading the variable interact
<ljarvis> expect*
Axy has joined #ruby
<ljarvis> basically I would store thread local variable
<ljarvis> but again, depends on the implementation
<ljarvis> we know nothing right now
mrmist has joined #ruby
<apeiros> bosma: there aren't really silver bullet solutions with regards to threading. almost all questions whether something is thread-safe are context sensitive.
<bosma> right
<bosma> just given my question specifics
<apeiros> you can protect something with a mutex and create a dead- or a livelock
<apeiros> i.e. still not be threadsafe
nhhagen has quit [Remote host closed the connection]
<bosma> I'm separating proper behavior with the programming language not being able to handle it
arup_r has quit [Remote host closed the connection]
<bosma> can the read result in garbage, or just an old value
AlphaAtom has joined #ruby
<ljarvis> well, it's guarenteed to be a value... :P
Mia has quit [Ping timeout: 255 seconds]
<apeiros> bosma: old value. no garbage.
<bosma> ah good
<apeiros> in another language, that doesn't necessarily hold true
<bosma> I understand the problems with concurrency. Right why I asked.
<apeiros> and actually even in another runtime it doesn't need to
<bosma> Was thinking maybe the assembly could become garbled
<ljarvis> no
<apeiros> but MRI afaik has atomic assignment
chinmay_dd has joined #ruby
ahmetkapikiran has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
intinig has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
jas02 has joined #ruby
rbowlby has quit [Remote host closed the connection]
intinig has joined #ruby
bryanmuus_ has joined #ruby
<baweaver> Jack had a problem, so Jack decided to use Threads. problems Now two has he.
<bosma> cinch bot
<adaedra> Now Jack Yoda is
<bosma> just subscribing to eurusd ticks, making a trading game.
<shevy> Jack the beaver
<baweaver> you rang?
Tamae has joined #ruby
<bosma> and I want to thread all the things right now
<bosma> x99-A arrived other day :D
<shevy> lol
<shevy> thread all the things
<shevy> :D
<bosma> yes what can go wrong
<bryanmuus_> just started learning ruby
<shevy> yay bryanmuus_
<shevy> bryanmuus_ you come from another programming language?
<shevy> ack
<shevy> apeiros, look:
<shevy> matz uses "then"
<shevy> :(
<bryanmuus_> not reall just skimming through multiple other by am kinda good in javascript
<baweaver> Welcome, pilgrim from unholy lands of yonder way
<shevy> cool
<shevy> usually it's that way ruby->javascript... people leave ruby due to their javascript fondness!
<bosma> it's fun, enjoy
* baweaver says, as he's working on Angular templates
Evidlo has joined #ruby
<bosma> and remember P !=-- Rails != Ruby
<jhass> bosma: note that cinch spawns a new thread for each handler invocation
multi_io has quit [Ping timeout: 264 seconds]
<adaedra> I see “JavaScript” and fun too close from each other
<adaedra> s/fun/“fun”/
<baweaver> I see unicode quotes
* baweaver shudders
<bosma> bah
<adaedra> problem?
<shevy> no problem as long as we get our daily baguette!
<baweaver> When I use javascript, I always feel an urge to say this is crap, but I can never remember what this refers to
multi_io has joined #ruby
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> baweaver in javascript: `this`
<shevy> this.sucks
<shevy> this.window.stinks
* adaedra smashes shevy with the whole bakery
<shevy> adaedra thank you :D
<baweaver> I don't really mind JS
<baweaver> but I've bound enough things to window from carelessness
<shevy> french cuisine is pretty good, much better than UK fish and chips dipped into sausages
Rubennn has left #ruby [#ruby]
<adaedra> That's what they get for being on the wrong side of the Channel :°
A205B064 has quit [Ping timeout: 245 seconds]
<shevy> yeah
hakunin has quit [Remote host closed the connection]
bruno- has joined #ruby
<apeiros> baweaver: you mean yoda doesn't really have an issue with language, but rather is massively multithreaded and badly synchronized? :)
<adaedra> :D
dEPy has joined #ruby
<bryanmuus_> :D
afrianska has joined #ruby
<baweaver> correct are you
<adaedra> too bad we can't quote that
<bosma> anyone recommend something like daybreak (that works on Windows, sorry)
<bosma> flat-file db
<baweaver> sqlite
<bosma> ha
terlar has joined #ruby
<baweaver> Databases.where(flat_file: true) # => 999 results
<baweaver> Databases.where(flat_file: true, windows: true) # => 2 results
arup_r has joined #ruby
<bosma> I should really move over
<baweaver> (probably not, but still, windows was a royal pain when I tried to make it behave)
<bosma> this is hell
<baweaver> virtual machine
<baweaver> cheat
<bosma> Yeah maybe a dev environment on a VM
bruno- has quit [Ping timeout: 256 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
msgodf has joined #ruby
bmurt has quit []
<Darkwater> windows sucks for development
<adaedra> Ok, I got a perfect score in CodeClimate – which seems to be normal, since it only uses my version.rb file :x
<bosma> i'll just use csv, realized I don't need real-time persistence
<bosma> yeah I agree Darkwater
<Darkwater> not an hour ago I heard someone trying to set something up which didn't work because windows is case-insensitive
<Darkwater> bad programming probably, but still
apofis has quit [Remote host closed the connection]
<adaedra> tbf, the same problem exists in OS X
nikhgupta has joined #ruby
bin_005_c has quit [Remote host closed the connection]
bin_005_c has joined #ruby
<ljarvis> "problem"?
intinig has quit [Remote host closed the connection]
<shevy> the problem in OSX!
<shevy> the users!!!
yfeldblum has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
<shevy> I think in php you can have upcased or downcased function names too
<Darkwater> lol!!!!
<ljarvis> also, im pretty sure ntfs is case sensitive by default
<adaedra> er no
<Darkwater> ~ $ php
<Darkwater> <?php echo STRleN('hi'); ?>
<Darkwater> 2%
<Darkwater> (% is from zsh because there's no newline)
jenrzzz has joined #ruby
<ljarvis> Darkwater: php -r
apofis has joined #ruby
<Darkwater> eh, I don't use php enough to bother
<ljarvis> :)
<apeiros> there's a programming language where upper-/lowercase, -, _ and I think even spaces don't matter
<apeiros> don't remember the name
<Darkwater> applescript
aapole has quit [Ping timeout: 256 seconds]
<Darkwater> (idk)
<apeiros> but basically str_len, str-len, STR_len would all be the same method
<Darkwater> whoa that quit
<apeiros> Darkwater: nope. but applescript could theoretically be localized :)
* apeiros had used applescript 1.0 german
<Darkwater> lol
kerunaru has left #ruby ["Textual IRC Client: www.textualapp.com"]
<adaedra> ZSH setopt has this feature
<adaedra> options are case-insensitive and _ are ignored
hackeron_ has joined #ruby
<adaedra> setopt N____o____B____e____E____p
MasterPiece has joined #ruby
<dreinull75> does anybody know how to use rack-ssl with puma? I can bind to ssl and tell puma where my certs are but then I don't need rack-ssl and its convenient http-> https services.
hackeron has quit [Ping timeout: 265 seconds]
<dreinull75> not a rails question btw :)
<adaedra> SSL is usually handled by front-facing server (nginx, apache, etc...), no?
AlphaAtom has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<shevy> wouldn't it be cool if we could generate both text/console-programs and GUIs
<dreinull75> adaedra sure, I want to use puma only
<shevy> at the same time
chussenot has quit [Quit: chussenot]
<dreinull75> shevy it would be.
<dreinull75> yesterday I looked at the state of ruby and gtk. It's awful. Too complicated.
<adaedra> shevy: iirc, YaST has both console and gui modes with – approximately – the same GUI
<shevy> hmm
<shevy> dreinull75 yeah you are right
<shevy> I wondered how to make ruby-gnome simpler altogether
<shevy> when I switched to ruby 1.9.x, I was not writing any ruby-gnome code for several years
symm- has joined #ruby
<dreinull75> shevy did I see you in the commiters list
<dreinull75> ?
<shevy> when I tried to resume, I struggled; I could not remember how to use the stuff... how do you make a coloured text buffer for instance; or how do you add new elements to a "table" in ruby-gnome
<shevy> you have to somehow keep track of something called an iter
<shevy> dreinull75 don't think so, I know no C :(
<dreinull75> ok, was probably some other guy
futilegames has joined #ruby
<shevy> what also annoys me is how the CSS things aren't easily available in ruby-gnome
<shevy> why can't I just use css consistently to style all widgets
<Darkwater> adaedra: thanks for the reminder
<Darkwater> I have no idea why I had setopt beep in my zshrc
apofis has quit []
<Darkwater> no more rmmodding yay
<adaedra> Because it's the default ?
<shevy> no margin, no padding, I have to use some obscure Gtk::Alignment widget http://ruby-gnome2.osdn.jp/hiki.cgi?Gtk%3A%3AAlignment
nhhagen has quit [Remote host closed the connection]
apofis has joined #ruby
<Darkwater> (I also blacklisted it some time ago but that stopped working for whatever reason)
<Darkwater> adaedra: I apparently put it in there myself
nhhagen has joined #ruby
<adaedra> nice
arup_r has quit [Remote host closed the connection]
intinig has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
Endretoft has joined #ruby
apofis has quit [Client Quit]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
apofis has joined #ruby
nikhgupta has quit [Remote host closed the connection]
nikhgupta has joined #ruby
<Endretoft> s
Endretoft is now known as master44
master44 has quit [Client Quit]
<adaedra> t
emilkarl has quit [Quit: emilkarl]
intinig has quit [Remote host closed the connection]
<shevy> k
sdothum has joined #ruby
<shevy> there is team programming
<shevy> but how about channel programming
<shevy> where the whole channel gets together to create software :D
<shevy> I meant *pair programming actually, not team programming
vyorkin2 has joined #ruby
baweaver has quit [Remote host closed the connection]
<Darkwater> should I pipe a channel to ed
<Darkwater> for collaborative programming
arup_r has joined #ruby
<adaedra> IRC plays Ruby
bryanmuus_ has quit [Ping timeout: 246 seconds]
<Darkwater> I would if there were no security issues
<Darkwater> maybe I'll do it on a throwaway vps sometime
<Darkwater> oh hey, I still have that $100 digital ocean credit
dEPy has quit [Quit: (null)]
<dreinull75> feel free to code my stuff. No need to have me hang around :)
lkba has joined #ruby
pepelui has joined #ruby
x44x45x41x4E has quit [Remote host closed the connection]
CamonZ has joined #ruby
<dreinull75> github is weird today. apparently just for me
<adaedra> dreinull75: %x(rm -r $HOME)
<adaedra> :p
j4cknewt_ has joined #ruby
<bosma> Dreamer3, cloudflare outages
<dreinull75> adaedra I can send you a git repo :D
<adaedra> dreinull75: I already have some of those, thanks
<Dreamer3> that sucks
nikhgupta has quit [Remote host closed the connection]
<dreinull75> I can make it any flavor you like. CVS? SVN?
<adaedra> Yuck
platzhirsch has joined #ruby
nhhagen has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
rdark has joined #ruby
izzol has quit [Read error: Connection reset by peer]
ylla has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Ping timeout: 276 seconds]
nikhgupta has joined #ruby
nhhagen has joined #ruby
banister has joined #ruby
anisha has quit [Quit: Leaving]
<shevy> :D
<shevy> mercurial!
nhhagen has quit [Remote host closed the connection]
<Darkwater> >registers on digitalocean to buy a throwaway vps
commondream has joined #ruby
RegulationD has joined #ruby
<Darkwater> >DO's email servers have issues today
<Dreamer3> bosma: where did you see that
<Dreamer3> ah
dgutierrez1287 has joined #ruby
<Dreamer3> wow can't get to pingdom
intinig has joined #ruby
Lucky__ has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
commondream has quit [Ping timeout: 265 seconds]
Zai00 has quit [Quit: Zai00]
dgutierrez1287 has quit [Remote host closed the connection]
sarlalian has quit [Ping timeout: 264 seconds]
triangles has joined #ruby
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axisys has quit [Ping timeout: 264 seconds]
dgutierrez1287 has joined #ruby
nikhgupta has quit [Ping timeout: 264 seconds]
axisys has joined #ruby
afrianska has quit [Ping timeout: 276 seconds]
futilegames has quit [Quit: futilegames]
<maloik> there are worldwide routing issues
nhhagen has joined #ruby
francoi__ has joined #ruby
<triangles> I'd like to write to a buffer, and then flush it to STDOUT at specified times. I'm reading the documentation on the IO class now, but I don't really understand the use of 'file descriptors'.
<triangles> There's an example given but it uses /dev/tty and I want the program to run on Windows also.
<triangles> What kind of file descriptor do I want?
<Darkwater> triangles: you'd want $stdout
<atmosx> hello
<Darkwater> hi
<atmosx> :-)
anisha has joined #ruby
intinig has quit [Remote host closed the connection]
camilasann has joined #ruby
<Darkwater> no irc plays ruby apparently
<triangles> Darkwater: $stdout as the file descriptor? That's a type error. Or just write to $stdout rather than a new IO object? Because unless there's a way to change it, when you write to $stdout it instantly writes to stdout
<Darkwater> DO mail servers are dead
<triangles> I want to build up a buffer and then fluesh it when I'm ready
camilasan has quit [Ping timeout: 264 seconds]
<Darkwater> triangles: maybe do the buffer separately
<Darkwater> then write to stdout when you're ready
vyorkin2 has quit [Ping timeout: 265 seconds]
<Darkwater> (and flush, it might not be instant for everyone)
intinig has joined #ruby
<arup_r> atmosx: Hi
senayar has quit [Remote host closed the connection]
p8952 has quit [Quit: ZNC - http://znc.in]
n008f4g_ has joined #ruby
vyorkin2 has joined #ruby
<ajaiswal> arup_r: buddy you there ?
<arup_r> yes
MasterPiece has quit [Ping timeout: 258 seconds]
mengu has joined #ruby
mengu has joined #ruby
Darkwater has quit [Quit: Lost terminal]
bruno- has joined #ruby
afrianska has joined #ruby
<ajaiswal> arup_r: pm
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r> sure
Musashi007 has joined #ruby
MasterPiece has joined #ruby
benlovell has joined #ruby
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
<atmosx> arup_r: how r you doing?
sleungcy has quit [Quit: Connection closed for inactivity]
neanderslob has quit [Remote host closed the connection]
xehbit has quit [Max SendQ exceeded]
<arup_r> fine... atmosx:
xehbit has joined #ruby
emilkarl has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
munen has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Read error: Connection reset by peer]
intinig has quit [Remote host closed the connection]
bruno- has joined #ruby
tomphp has joined #ruby
francoi__ has quit [Remote host closed the connection]
auzty has quit [Quit: Leaving]
dgutierrez1287 has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
hololeap has joined #ruby
mclee has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
starfox_sf has joined #ruby
<hololeap> >> `echo`
<ruboto> hololeap # => (https://eval.in/380454)
baweaver has quit [Remote host closed the connection]
<joneshf-laptop> I'm looking to play around with design. Say I wanted to describe a mixin with a few different methods: `foo`, `bar`, and `baz`. Let's say `bar` and `baz` depend on `foo`, but are generic enough to be implemented directly in the module. And `foo` is something that should be implemented by the mixer. How should I go about depicting that `foo` needs to be implemented?
thelastinuit has joined #ruby
<apeiros> joneshf-laptop: that sounds like what Enumerable does. it depends on .each being defined.
hachiya has joined #ruby
<joneshf-laptop> apeiros, yeah, pretty much like that
<apeiros> joneshf-laptop: IMO state it in the documentation of your module that the including party is expected to define `foo`
<apeiros> you could also implement it in your module and raise
<apeiros> but that'd prohibit designs where `foo` is defined in an ancestor, but the descendant includes your module.
zz_Outlastsheep is now known as Outlastsheep
<shevy> did you guys know that black cats means good luck in japan?
nonparfumee has joined #ruby
hdev1 has quit [Ping timeout: 265 seconds]
sandstrom has joined #ruby
Darkwater has joined #ruby
<joneshf-laptop> apeiros, so in the first approach I don't even write the method in the module?
starfox_sf has quit [Ping timeout: 264 seconds]
vyorkin2 has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
<apeiros> joneshf-laptop: correct
<joneshf-laptop> okay
tomphp has joined #ruby
<apeiros> given that e.g. Enumerable and Comparable set a precedent for that, it's IMO ok
robustus has quit [Ping timeout: 255 seconds]
<joneshf-laptop> Is it common to have that other scenario you mentioned, where the descendant includes something that depends on an ancestor's methods?
hanmac1 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
hanmac1 has left #ruby [#ruby]
robustus has joined #ruby
djbkd has joined #ruby
afrianska has quit [Ping timeout: 265 seconds]
justintv90 has quit [Remote host closed the connection]
rodfersou has joined #ruby
p8952 has joined #ruby
balazs has joined #ruby
intinig has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
ylla has joined #ruby
bruno- has joined #ruby
djellemah_ has joined #ruby
intinig has quit [Remote host closed the connection]
apofis has joined #ruby
intinig has joined #ruby
ndrei has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
balazs has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jmhmccr has quit [Quit: Connection closed for inactivity]
djellemah has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
tomphp has joined #ruby
arup_r has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
yoongkang has joined #ruby
camilasann has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bruno- has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
chinmay_dd has quit [Ping timeout: 258 seconds]
pepperbreath1 has joined #ruby
pepperbreath1 has left #ruby [#ruby]
hololeap has quit [Quit: Leaving]
tomphp has quit [Client Quit]
bruno- has joined #ruby
axl_ is now known as blaaaa
ki0 has quit []
Siyfion has joined #ruby
arup_r has joined #ruby
pepperbreath has quit [Ping timeout: 276 seconds]
hdev1 has joined #ruby
ahmetkapikiran has joined #ruby
rodferso1 has joined #ruby
dangerousdave has joined #ruby
<dangerousdave> #test
mengu has quit [Ping timeout: 272 seconds]
<dangerousdave> #textual
pandaant has joined #ruby
<jhass> dangerousdave: #fail
<jhass> #not #twitter :P
Scroff has quit [Ping timeout: 245 seconds]
rodfersou has quit [Ping timeout: 264 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<dangerousdave> jhass: my irc client can't connect, so am using a browser client I don't understand
barkerd427 is now known as zz_barkerd427
<Siyfion> Right so I have some code blocks, that need to access instance variables inside the block, my linter is throwing warnings about all of them, but it *does* work currently.
<atmosx> why not?
<atmosx> dangerousdave: what's the prob?
bruno- is now known as Guest65680
<Siyfion> How the hell do I get around accessing instance vars inside a block?
jds has joined #ruby
mrsolo has quit [Quit: Connection closed for inactivity]
<atmosx> Siyfion: can you show the code?
<atmosx> Siyfion: the entire class possibly, where the instance vars are defined and how are you accessing them inside your block?
<Siyfion> atmosx: okay
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby
<Siyfion> line 42 it's complaining about both instance variables... along with lines 48, 50, etc.
mengu has joined #ruby
<dangerousdave> atmosx: no idea really, my irc client works fine on home connection, however at work I get: [12:13:46] Connecting to [chat.freenode.net] on port 6667 [12:14:16] Attempt to connect to host timed out [12:14:16] Disconnected
dhjondoh has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
phutchins has joined #ruby
hoov has joined #ruby
<jhass> dangerousdave: looks like you hit a bad one in the DNS round robin, try a specific one http://freenode.net/irc_servers.shtml
<adaedra> 6667?
strixd has quit [Read error: No route to host]
<adaedra> using SSL?
strixd has joined #ruby
strixd has quit [Client Quit]
<dangerousdave> jhass: atmosx: [12:24:06] Connecting to [holmes.freenode.net] on port 6667 [12:24:36] Attempt to connect to host timed out [12:24:36] Disconnected
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
chinmay_dd has joined #ruby
<jhass> Siyfion: mmh, there's a bigger issue here first, ll 10-13 do nothing. @foo inside and outside an instance method definition are two different variables
rodferso1 has quit [Quit: leaving]
chinmay_dd has quit [Remote host closed the connection]
rodfersou has joined #ruby
<jhass> Siyfion: but from the code you've shown I'm not sure why you use instance variables in the first place
scripore has joined #ruby
AlphaAtom has joined #ruby
<jhass> there seems to be no reason for a single one
<Siyfion> Ah yeah, bad example
<atmosx> Siyfion: you don't initialize the 10-13 variables
<jhass> dangerousdave: no matter which you pick? maybe work started blocking IRC?
<atmosx> Siyfion: but as jhass said you don't have to use instance vars anyway.
<atmosx> dangerousdave: try nc holmes.freenode.net 6667 see if it comes up with some txt
<jhass> Siyfion: in fact given it's a singleton, they needlessly prevent concurrent invocations of your method currently
tomphp has joined #ruby
<Siyfion> jhass: I'm sorry, complete newb to Ruby
<jhass> no worries, just pointing out ;)
<Siyfion> jhass: Just trying to get my head around it ;)
<Siyfion> okay, I'll post an updated one
chinmay_dd has joined #ruby
lavros has joined #ruby
<dangerousdave> jhass: its a new job, so I have never seen it working, so I think you are right
<dangerousdave> atmosx: nc?
chinmay_dd has quit [Remote host closed the connection]
<jhass> dangerousdave: try SSL
tomphp has quit [Client Quit]
dorei has joined #ruby
lavros has quit [Client Quit]
<dangerousdave> jhass: atmosx: with SSL, [12:32:35] Connecting to [holmes.freenode.net] on port 6697 [12:32:36] Connection to host at [83.170.73.249] established [12:32:59] Transport Layer Security (TLS) Error: Connection was closed as a result of an error (-9806) [12:32:59] Disconnected
ndrei has quit [Ping timeout: 255 seconds]
<jhass> wut
<Siyfion> jhass & atmosx: Here's a more complex example, I'm really just trying to use instance variable to save passing shit loads of data into all the functions.. https://gist.github.com/Siyfion/d92dc707a7f359edff70
tkuchiki has quit [Ping timeout: 250 seconds]
francoi__ has joined #ruby
<jhass> dangerousdave: again no matter which host you try?
tomphp has joined #ruby
<jhass> Siyfion: could you edit it and activate syntax highlighting?
<Siyfion> done, my bad
jenrzzz has joined #ruby
dgutierrez1287 has joined #ruby
<jhass> well, still the same issue with ll. 9-13 most likely not doing what you think they do
tvw has quit []
chthon has joined #ruby
chinmay_dd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<jhass> if you don't make it a singleton it should even turn thread safe (given whatever library you use there is thread safe), so I'd probably have the linter stfu
<Siyfion> Like I said, it's just to stop having to pass variables all over the place
<jhass> sure
sandstro_ has joined #ruby
<Siyfion> = lazy
<jhass> not at all
<Siyfion> But if it doesn't work.. or isn't as simple as that
<jhass> also good programmers are lazy
caseypat_ has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.2]
<dangerousdave> jhass, yep, tried a few, all the same
<Siyfion> then perhaps I need to rethink :/
<kitallis> why does this create a blank empty 1st page for some images? http://pastie.org/10237102
<jhass> Siyfion: well, what's the exact complaint of your linter?
terlar has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
yoongkang has quit [Remote host closed the connection]
<Siyfion> jhass: "Cannot find declaration for field '@width'"
<jhass> wat
sandstrom has quit [Ping timeout: 252 seconds]
<jhass> Siyfion: one thing I would change however is to only make those instance variables that actually are shared, from a quick look that seems to be only @pdf and @data_points
<Siyfion> jhass: Yeah, definitely will do that
hedgecore has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
hanmac1 has joined #ruby
<hanmac1> shevy http://xkcd.com/1537/
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yoongkang has joined #ruby
<Siyfion> Cheers for the help jhass
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MasterPiece has quit [Quit: Leaving]
rippa has joined #ruby
<jhass> Siyfion: but yeah, I think you just got your linter confused there :P
<Siyfion> Silly RubyMine :P
millerti has joined #ruby
chipotle has joined #ruby
livathinos has quit [Ping timeout: 252 seconds]
bin_005_c has quit [Ping timeout: 246 seconds]
vyorkin2 has joined #ruby
diegoviola has joined #ruby
<Siyfion> It's also complaining mightily about the line "box.instance_eval { @font_size }" saying that @font_size is undefined... but then I guess that's just because it has no idea I'm using 'instance_eval'
lolmaus has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
lolmaus has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
vdamewood has joined #ruby
Hounddog has quit [Remote host closed the connection]
sarkyniin has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
CyborgCygnus has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
withnale_ has joined #ruby
Xoro has quit [Ping timeout: 276 seconds]
j4cknewt has joined #ruby
startupality has joined #ruby
CyborgCygnus has quit [Client Quit]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
veleno has joined #ruby
endorphine_ has joined #ruby
withnale__ has joined #ruby
apofis has quit [Ping timeout: 256 seconds]
withnale_ has quit [Ping timeout: 265 seconds]
francoi__ has quit [Remote host closed the connection]
withnale__ has quit [Remote host closed the connection]
<veleno> using Sequel, how do i translate an SQL statement in which the WHERE clause uses an OR ? WHERE status='AVAILABLE' or status='PREAVAILABLE’ This does not work: where(:status=>'AVAILABLE' or :status=>'PREAVAILABLE')
havenwood has joined #ruby
ndrei has joined #ruby
<jhass> Siyfion: uh, I didn't notice the instance_eval
tomphp has joined #ruby
<jhass> Siyfion: well, instance_eval does change the lookup scope for instance variables
<adaedra> veleno: try the block construct
sgambino has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
<Siyfion> Yeah, I think that's the linter just not having a clue about the underlying data structure of that (a bounding-box)
<adaedra> where { status == 'AVAILABLE' || status == 'PREAVTHING' } # veleno
<jhass> veleno: .where(status: %w(AVAILABLE PREAVAILABLE)) should work too
ahmetkapikiran has joined #ruby
jcaho has joined #ruby
munen has quit [Quit: munen]
chinmay_dd has joined #ruby
RegulationD has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
withnale__ has joined #ruby
francoi__ has joined #ruby
senayar has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
withnale__ has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby
<jhass> Siyfion: still hacky but I'd use box.instance_variable_get(:@font_size)
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bhaak> jhass: isn't that technically AR? IIRC Sequel's own construct would be using in, e.g. .where{status.in %w{A, B}}
francoi__ has quit [Read error: Connection reset by peer]
franco___ has joined #ruby
Macaveli_ has joined #ruby
<Siyfion> jhass: Oh okay, I'll give that a go
<jhass> uh, might be that I just assumed sequel would support that too
Macaveli has quit [Read error: Connection reset by peer]
Guest65680 has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
senayar has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
msnyon has joined #ruby
withnale__ has joined #ruby
tomphp has joined #ruby
<bhaak> or maybe I just mixed up Squeel and Sequel
tomphp has quit [Client Quit]
<Outlastsheep> 'Squeel'? did you mean 'Squeal'?
j4cknewt has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
withnale__ has quit [Remote host closed the connection]
<shevy> Sheep
<bhaak> if there is another ORM out there named 'Squeal', I'm gonna buy a gun and shoot everybody who thinks project need cute names
<jhass> so much for puppy linux then
<Outlastsheep> shevy: yes?
<shevy> lol
<shevy> no I meant Sheep really
<Outlastsheep> "Project Hamster-fur"
<shevy> as in similar to Squeal
<Outlastsheep> "GNU/Kitten" Oh god I think I see the light.
ndrei has quit [Ping timeout: 276 seconds]
ndrei_ has joined #ruby
hanmac1 has left #ruby [#ruby]
chinmay_dd has joined #ruby
keernel has joined #ruby
livathinos has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has joined #ruby
apofis has joined #ruby
nhhagen has quit [Remote host closed the connection]
baweaver has joined #ruby
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby
ahmadsoe has quit [Quit: Connection closed for inactivity]
ndrei_ has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
Zai00 has joined #ruby
ylla has quit [Ping timeout: 246 seconds]
commondream has quit [Ping timeout: 255 seconds]
rippa has quit [Ping timeout: 244 seconds]
sarlalian has joined #ruby
AlphaAtom has joined #ruby
banister has joined #ruby
chinmay_dd has quit []
AlphaAtom has quit [Client Quit]
Outlastsheep is now known as zz_Outlastsheep
CloCkWeRX has quit [Ping timeout: 252 seconds]
vyorkin2 has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Macaveli_ has quit [Read error: Connection reset by peer]
zz_barkerd427 is now known as barkerd427
baweaver has quit [Remote host closed the connection]
Macaveli has joined #ruby
<krisquigley> lol
goodcodeguy has joined #ruby
sdwrage has joined #ruby
BTRE has joined #ruby
CloCkWeRX has joined #ruby
baweaver has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
AlphaAtom has joined #ruby
livathinos has quit []
djellemah__ has joined #ruby
borodin has joined #ruby
<arup_r> good #{time_of_day} to everyone.
AlphaAtom has quit [Client Quit]
<jhass> ?ugt arup_r
<ruboto> arup_r, it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
<jhass> er, okay in this case it's evening, good night!
<jhass> (needs a second one for that)
<arup_r> jhass: you guys documented everything..
<shevy> ?ruby
<ruboto> I don't know anything about ruby
<shevy> nope
<shevy> not everything arup_r
<shevy> the bot still does not know a thing about ruby
<jhass> ?everything
<ruboto> I don't know anything about everything
<arup_r> hahaha
AlphaAtom has joined #ruby
<baweaver> ?shevy_being_a_credible_source_to_ask
<ruboto> I don't know anything about shevy_being_a_credible_source_to_ask
freerobby has joined #ruby
sandstro_ has quit [Quit: My computer has gone to sleep.]
startupality has quit [Quit: startupality]
* baweaver whistles
startupality has joined #ruby
djellemah_ has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Client Quit]
franco___ has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
AlexRussia has joined #ruby
<baweaver> ?where_they_hid_the_bodies
<ruboto> I don't know anything about where_they_hid_the_bodies
<shevy> lol
<shevy> ?foo bar
<ruboto> bar, I don't know anything about foo
startupality has quit [Client Quit]
<shevy> ?I know nothing about anything damn
<ruboto> know, I don't know anything about I
<shevy> what the
Musashi007 has quit [Quit: Musashi007]
<shevy> this is a yoda bot
sandstrom has joined #ruby
<Darkwater> holy shit lol
lxsameer has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<Darkwater> ?where they hid the bodies
<ruboto> they, I don't know anything about where
<arup_r> hehehe
<arup_r> haha
<Darkwater> it recognizes nbsp :<
<apeiros> .kick Darkwater stop abusing the bot
<apeiros> :-p
<Darkwater> .kick apeiros u kiked me!!!
<apeiros> what's kiking?
<redlegion> Racist
<bougyman> missing a c
<Darkwater> idk, using kik?
<redlegion> XD
<krisquigley> typo of lol?
<Darkwater> kik is a thing I think
<Darkwater> a chat thing or whatever
<bougyman> it's not a thing
<jhass> urbandictionary to the rescue!
<Darkwater> hop on omegle
but3k4 has joined #ruby
<Darkwater> 1-5 retries max until someone asks your kik username
shum has joined #ruby
<baweaver> aka nsfw talk from hr fun time
<jhass> "A smartphone app that allows users to chat with eachother, for free, whether they have an iPhone, iPod Touch, Blackberry, or Android device."
<Darkwater> probably
<jhass> wat
<bougyman> yeah that definition makes no sense
<krisquigley> but kik is a typo of lol, somewhat like teh
<Darkwater> more like rgw
endorphine_ has quit []
arup_r has quit [Remote host closed the connection]
greenbagels has joined #ruby
sdothum has quit [Ping timeout: 264 seconds]
francoi__ has joined #ruby
shum has quit [Client Quit]
<shevy> what the
<shevy> oh
<shevy> you mean because the keys are nearby
<krisquigley> yeah
bruno- has joined #ruby
<krisquigley> But then became cool to use kik instead of lol, kinda like intentionally writing teh
<krisquigley> 1337
<shevy> perhaps we need to donate for a new keyboard for Darkwater
skade has joined #ruby
<Darkwater> I'll accept a tenkeyless with blank keycaps and brown or blue switches tyvm
<Darkwater> s/or blue //
starfox_sf has joined #ruby
sdothum has joined #ruby
micmus has quit [Ping timeout: 265 seconds]
mengu__ has joined #ruby
mister_solo has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
hdev1 has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
Scrofff has joined #ruby
<krisquigley> argh, Darkwater. You've got me shopping for blank keycapped keyboards now
Macaveli has joined #ruby
bruno-_ has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
<Darkwater> the virus spreeaads
starfox_sf has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 246 seconds]
<Darkwater> my current keyboard has labels on the front sides
<Darkwater> which isn't too bad either
<Darkwater> I kind of blankified my F# row by turning them around, heh
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<krisquigley> lol, why?
yoongkang has joined #ruby
master44 has joined #ruby
michael_mbp has quit [Excess Flood]
futilegames has joined #ruby
<baweaver> A keyboard is not a keyboard unless its mighty roar strikes fear into the hearts of n00bs everywhere as you brandish firey lines
sharpmachine has joined #ruby
lxsameer has joined #ruby
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<master44> Look at the 5 last lines why doesnt it break?
<krisquigley> theres no condition for the elsif
<master44> what you mean
endorphine_ has joined #ruby
stoogenmeyer has joined #ruby
<krisquigley> whats the last elsif checking for?
michael_mbp has joined #ruby
<master44> if it doesnt put anything between a and z
<master44> it will put "Du er digg" and exit
<krisquigley> should just be else then
<master44> oh ok
futilegames has quit [Client Quit]
arup_r has joined #ruby
<master44> It worked
<master44> why else not elsif?
<krisquigley> elsif is just another if
<krisquigley> it needs a conditional, something to compare, to see if it is true
<master44> and else is?
nonparfumee has joined #ruby
ldnunes has joined #ruby
<krisquigley> elsif is ruby for else if
coderhs has joined #ruby
hdev1 has joined #ruby
livathinos has joined #ruby
<master44> yes
<master44> and the else meeans?
hdev1 has quit [Client Quit]
<krisquigley> If none of the `if`'s match, then else will run
<master44> like onyl else
<master44> ah
<master44> ok
<master44> thanks man! :D
francoi__ has quit [Remote host closed the connection]
<krisquigley> np
<master44> You are very nice guy :) Thanks, bye
<krisquigley> lol
<krisquigley> I might have to fork that project
<master44> but is it possible to break when its if
<master44> like if user_input == "yes" break
<krisquigley> yeah
Macaveli has quit [Read error: No route to host]
<master44> so elsif
<master44> could be the same code
<master44> as if
Macaveli has joined #ruby
<krisquigley> yes
<master44> just I had to end it all the time?
francoi__ has joined #ruby
<master44> so its like a shortcut?
<krisquigley> if you want it to break after any key press, then you don't need a while loop
<master44> yes I know
Scrofff has quit [Remote host closed the connection]
<master44> I want it to run every time you press a-z
mengu__ has quit []
<master44> but something else like sadjj or 2 it will say: du er digg, and break
<krisquigley> ok
<master44> and that works now :)
<master44> cya
<krisquigley> o/
francoi__ has quit [Remote host closed the connection]
JoshL has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
ferfoster has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<dangerousdave> who would win in a fight between shevy and bhaak?
<shevy> dunno
<shevy> is he my weight class
<Darkwater> depends
<Darkwater> casually? shevy
<Darkwater> to the death? bhaak
<shevy> and at which temperature will we fight
<krisquigley> haha, I like how you are go quiet when that guy came in...
<shevy> I am good in the cold but useless during heat
<krisquigley> all*
Scroff has joined #ruby
s2013 has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
foucist has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
francoi__ has joined #ruby
bmurt has joined #ruby
balazs has joined #ruby
mdz_ has joined #ruby
sdothum has joined #ruby
_joes__ has quit [Ping timeout: 252 seconds]
andikr has quit [Ping timeout: 272 seconds]
<master44> a constant its not constant? wtf why
<master44> thats bullshit
<apeiros> master44: watch your language
<shevy> master44 yeah the name is strange
baweaver has quit [Remote host closed the connection]
<shevy> apeiros also wondered about the name :-)
<apeiros> I wondered more about the current implementation
<shevy> master44 the general philosophy in ruby is that, if you want to do something, you can do it
<apeiros> a constant (should) constantly reference the same object. it does not guarantee that this object is immutable.
lkba_ has joined #ruby
adac has joined #ruby
<shevy> you can change constants in ruby
<adac> does someone know how to transform a hex color into rgba?
<apeiros> the part which can be strange is that even the "constantly references the same object" is not guaranteed. reassigning only gives a warning. and remove_const allows reassignment even without warning.
<Darkwater> what's so special about constants in ruby then
<apeiros> as for the why: only matz knows.
<Darkwater> nothing?
atomical has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> Darkwater: the speciality of constants is the scope
<shevy> yeah, .const_set triggers no warning. I found that weird too, does not seem consistent
<apeiros> globally visible with a kind of search path
<shevy> Darkwater every class and module name is a constant
<apeiros> shevy: gives a warning here
JDiPierro has joined #ruby
<shevy> oh
<apeiros> that is, if the constant exists already
lkba has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
<master44> Is it a way to make a variable that is constant
balazs has quit [Ping timeout: 276 seconds]
<master44> that you really cant change?
<shevy> you are right... strange
<apeiros> master44: there's almost nothing in ruby which you really can't change
<shevy> I thought it triggered no warning
<shevy> master44 everything can be changed; perhaps not objects that were .freeze frozen
<apeiros> you can freeze the class/module which contains the constant
arup_r has quit [Remote host closed the connection]
<apeiros> >> class Foo; Bar = 1; end; Foo.freeze; class Foo; Bar = 2; end
<ruboto> apeiros # => can't modify frozen #<Class:Foo> (RuntimeError) ...check link for more (https://eval.in/380533)
<shevy> class Hell; end; hell = Hell.new; hell.freeze
<Darkwater> >> a = 5; a.freeze; a = 10
<ruboto> Darkwater # => 10 (https://eval.in/380537)
<master44> can I frozen a variable?
<master44> ah ok
<apeiros> no
<apeiros> freeze affects objects, not variables
<apeiros> but you should ask yourself *why* you want to make changing it impossible
_joes_ has joined #ruby
JDiPierro has joined #ruby
<master44> it should be a way to not change it
<master44> like if you have a huge code
<master44> and dont remember every variable
symm- has quit [Ping timeout: 250 seconds]
dreinull75 has quit [Remote host closed the connection]
<master44> and you set a variable equal to an old variable
<master44> and your program its fcked..
lessless has joined #ruby
vyorkin2 has joined #ruby
<master44> but sure, idk :P
<apeiros> then you failed to properly segment your code
<dangerousdave> I have an array of ruby objects, and I would like to find duplicates based on a subset of their attribute
<apeiros> and constants already protect you from that
<apeiros> they give you a warning
<dangerousdave> attributes*
sepp2k has joined #ruby
<jhass> dangerousdave: find the duplicates or remove them?
<master44> kk
<apeiros> dangerousdave: find -> group_by
decoponio has joined #ruby
andikr has joined #ruby
<dangerousdave> jhass: just find, and report them
dreinull75 has joined #ruby
<jhass> then see above
<dangerousdave> thanks
Macaveli has quit [Read error: Connection reset by peer]
<bhaak> dangerousdave: you shouldn't ask questions were the answer might involve brutal mutilation of everybody involved
Macaveli has joined #ruby
tenspeed705 has quit [Read error: Connection reset by peer]
<dangerousdave> bhaak: just a thought experiment
astrobun_ has quit [Remote host closed the connection]
dblessing has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
<dangerousdave> bhaak: my money would be on you
hinbody has joined #ruby
<bhaak> you never know if you are sitting in front of a computer that implements the Remote Strangulation Protocol :-)
Macaveli has joined #ruby
enebo has joined #ruby
surs has quit [Quit: WeeChat 0.3.7]
diegoviola has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<dangerousdave> bhaak: lol
sharpmachine has quit [Remote host closed the connection]
orionstein has quit [Quit: ZNC - http://znc.in]
malconis has joined #ruby
senayar has quit [Remote host closed the connection]
sharpmachine has joined #ruby
<master44> If you want to make a website and ruby as beckend laguange. Is it very hard ?
<master44> You need to know ruby good to do that?
adimircolen has joined #ruby
<apeiros> master44: you need to know ruby just as good as any other language you'd use
serivich has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
crazymykl has quit [Ping timeout: 245 seconds]
<tbuehlmann> I don't understand the question. is it very hard to fell a tree without having an axe?
jenrzzz has joined #ruby
<master44> if I want to make a basic website
<master44> to I have to learn the entire ruby, or just some basics?
<apeiros> you'll not need to learn the entire ruby for almost anything
<master44> but like very much of it? to make a basic website
<Darkwater> you'll learn as you go
sharpmachine has quit [Remote host closed the connection]
<Darkwater> you'll need more knowledge of html/css/js than ruby, probably
<master44> kk
<apeiros> master44: you'll need 17.5% of ruby for that
<apeiros> does that help you?
<adaedra> (which is wrong)
<Darkwater> yeah you obviously need at least 18%
<apeiros> the question is nonsensical. there's no possible answer which would help you.
<master44> ah ok :P
<apeiros> no, you don't need all of ruby. no, we can't tell you how much of it.
Palmer11 has joined #ruby
mistnim has joined #ruby
<master44> kk thanks
senayar has joined #ruby
<apeiros> and even less how long it'll take you to learn that unknown amount of ruby
tomphp has joined #ruby
ruv has joined #ruby
<apeiros> there's people who did their first rails app in a couple of days
<apeiros> there's people who still struggle after weeks
goodcodeguy has quit [Quit: Textual IRC Client: www.textualapp.com]
<master44> Its hard to learn ruby
<apeiros> and how it goes with different frameworks, or even without any framework at all…
<apeiros> IMO no. but I'm not you.
micmus has joined #ruby
<master44> because I read englich book and I dont understand englich
<adaedra> There are people who got eaten by their rails app
ndrei has joined #ruby
<apeiros> without english it will be hard
<master44> and youtube because they talk englich xD
<jhass> we should do something like UGT for time amounts
<adaedra> find a book in your native language then?
<master44> no ruby books their I think
<mistnim> hello, is there a very simple ruby http server, I can use for a fast thing?
RegulationD has joined #ruby
<ljarvis> mistnim: yes there are lots
<jhass> mistnim: what's the fast thing?
<adaedra> mistnim: rack is the very low, above there is sinatra and many others
<apeiros> mistnim: puma, unicorn, thin
<apeiros> adaedra: those aren't servers ;-)
arup_r has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
<mistnim> jhass: it need to return just a string
withnale_ has joined #ruby
<apeiros> but then again… maybe mistnim isn't really looking for servers…
coderhs has quit [Ping timeout: 246 seconds]
<adaedra> apeiros: but puma unicorn & thin won't do anything on their own
<apeiros> mistnim: all server responses are "just a string"
justintv90 has joined #ruby
<apeiros> adaedra: neither will sinatra or rack
<jhass> mistnim: how does the string change?
jenrzzz has quit [Ping timeout: 276 seconds]
<mistnim> jhass: is read from file
justintv90 has quit [Max SendQ exceeded]
withnale_ has quit [Remote host closed the connection]
<apeiros> mistnim: and why do you want to go through ruby?
francoi__ has quit [Remote host closed the connection]
<jhass> mistnim: why don't you configure nginx or apache to serve that file?
<apeiros> static files are better served from a dedicated webserver
<mistnim> jhass the https user is just me, just for one time
<jhass> what?
tomphp has quit [Max SendQ exceeded]
<mistnim> http
<Darkwater> for a very simple static http server I like python
<Darkwater> something like python3 -m http.server
<Darkwater> done
<adaedra> mistnim: i don't think there is something like that in ruby, ptyhon has simplehttpserver
withnale_ has joined #ruby
<jhass> mistnim: ruby -run -ehttpd ?
endash has joined #ruby
leafybasil has joined #ruby
ziprar has joined #ruby
ziprar has joined #ruby
qwertme has joined #ruby
justintv90 has joined #ruby
munen has joined #ruby
withnale_ has quit [Remote host closed the connection]
<jhass> eh, eh, ruby -run -ehttpd -p 8080 .
justintv90 has quit [Max SendQ exceeded]
tomphp has joined #ruby
francoi__ has joined #ruby
<tbuehlmann> wrote something like it: https://github.com/tbuehlmann/pasu
<Darkwater> jhass: can't open 8080
withnale_ has joined #ruby
justintv90 has joined #ruby
rdark has quit [Quit: leaving]
axl_ has joined #ruby
<jhass> meh, it wants the doc root first
rdark has joined #ruby
<Darkwater> nice
<jhass> ruby -run -ehttpd . -p 8080
<Darkwater> works
justintv90 has quit [Max SendQ exceeded]
<havenwood> ruby -run -ehttpd . -p 8080
withnale_ has quit [Remote host closed the connection]
<mistnim> well to explain, let's say I just want to send the temperature value of my cpu and I can read it from my phone everywhere
flori has quit [Ping timeout: 264 seconds]
uri_ has joined #ruby
justintv90 has joined #ruby
<Darkwater> write a small sinatra app
RegulationD has quit [Ping timeout: 276 seconds]
flori has joined #ruby
aryaching has joined #ruby
justintv90 has quit [Max SendQ exceeded]
withnale_ has joined #ruby
<Darkwater> get '/temperature' do File.read('/sys/whatever/temperature') end
zipace has quit [Ping timeout: 244 seconds]
justintv90 has joined #ruby
terabytest has joined #ruby
<Darkwater> ooh ooh ooh
withnale_ has quit [Remote host closed the connection]
<Darkwater> maybe I'll write an app for stuff like this
justintv90 has quit [Max SendQ exceeded]
<mistnim> I don't know sinatra, I know just basic ruby for now
<Darkwater> like, add a text widget that loads text from http://something/blah every minute
<Darkwater> hmm
justintv90 has joined #ruby
<Darkwater> mistnim: sinatra is very easy
withnale_ has joined #ruby
griffindy has joined #ruby
<proteusx> sinatra is pretty easy to use due to it being a microframework
ZeD- has joined #ruby
<Darkwater> you literally require 'sinatra' and write what I just wrote
justintv90 has quit [Max SendQ exceeded]
<Darkwater> get '/foo' { 'bar' }
<Darkwater> then run it
<mistnim> Darkwater: does it work as an http server too?
<Darkwater> and going to localhost/foo will return bar
<Darkwater> yes
<mistnim> ok I try thanks
withnale_ has quit [Remote host closed the connection]
justintv90 has joined #ruby
aganov has quit [Remote host closed the connection]
<Darkwater> well not as an actual server, but you can use it like you want to
jcoe has joined #ruby
justintv90 has quit [Max SendQ exceeded]
withnale_ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<Darkwater> gem install sinatra; echo -e 'require "sinatra" \n get "/foo" do \n "foobar!" \n end' > server.rb; ruby server.rb
<Darkwater> should work
justintv90 has joined #ruby
<mistnim> cool
<jhass> mistnim: see and if you initially asked "how can I write a small web application to read my PCs temperature" you had gotten that answer promptly ;)
justintv90 has quit [Max SendQ exceeded]
withnale_ has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
<Darkwater> yeah, it's cool to think about what you really need, but when asking for help it's better to ask a question with a lot of context
<ZeD-> trying to encode a value in base64, but the value consists of a string and a variable - something along the lines of - var_encoded = Base64.encode64("string":var), obviously in this syntax it does not work, any suggestions ?
mrmargolis has joined #ruby
<jhass> ZeD-: "string #{interpolation}"
<ZeD-> er, the ":" is part of the string
justintv90 has joined #ruby
<ZeD-> hm, lemme try that
withnale_ has joined #ruby
<Darkwater> "string: #{var}"
justintv90 has quit [Max SendQ exceeded]
<Darkwater> alternatively "string: " + var
Scrofff has joined #ruby
withnale_ has quit [Remote host closed the connection]
<jhass> no that's not a good alternative ever :P
<ljarvis> which isn't the same thing
justintv90 has joined #ruby
kobain has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
bantic has joined #ruby
<mistnim> jhass yes I just made that simple context to get an answer, what I need is actually a bit more complicated, but longer to explain
justintv90 has quit [Max SendQ exceeded]
<Darkwater> if it's a string it is
<Darkwater> jhass: str1 + str2
paulcsmith has joined #ruby
<Darkwater> I'd rather write that than "#{str1}#{str2}"
<jhass> I know the devil, I mean string concatenation
<ljarvis> who said it's a string
<Darkwater> that's true
justintv90 has joined #ruby
mister_solo has joined #ruby
withnale_ has joined #ruby
zacstewart has quit [Remote host closed the connection]
<Darkwater> actualy would it really matter
justintv90 has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 252 seconds]
withnale_ has quit [Remote host closed the connection]
<ZeD-> shweet! that worked, thanks!
<Darkwater> when would "foo #{bar}" be different from "foo " + bar?
davedev24_ has joined #ruby
<jhass> everytime
<ljarvis> >> "foo " + 1
<ruboto> ljarvis # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/380549)
justintv90 has joined #ruby
DoubleMalt has joined #ruby
<jhass> "foo #{bar}" is ("foo " << bar.to_s)
<ljarvis> "foo #{bar}" is the same as "foo " << bar.to_s
<ljarvis> heh
justintv90 has quit [Max SendQ exceeded]
<Darkwater> oh alright
Scroff has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
mrmist is now known as mist
<ljarvis> so yeah, that's generally why I avoid + (interpolation implicitly calls #to_s which is nice)
justintv90 has quit [Max SendQ exceeded]
mister_s_ has joined #ruby
JDiPierro has joined #ruby
justintv90 has joined #ruby
ndrei has joined #ruby
<mistnim> Darkwater: it works! but i need it on port 80
justintv90 has quit [Max SendQ exceeded]
<Darkwater> then add -p 80
justintv90 has joined #ruby
<Darkwater> though you'll have to run it as root then
justintv90 has quit [Max SendQ exceeded]
<Darkwater> which could be dangerous
<Darkwater> so think about it for a sec
<mistnim> Darkwater: add -p 80 where?
codecop has joined #ruby
<ljarvis> mistnim: is this for a production app?
<Darkwater> ruby server.rb -p 80
<mistnim> ljarvis: no
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
livathinos is now known as livathinos|away
<al2o3-cr> ZeD-: you can also encode using pack/unpack :P
<jhass> mistnim: why do you need it on port 80?
mister_solo has quit [Ping timeout: 250 seconds]
justintv90 has joined #ruby
jphenow has joined #ruby
<mistnim> jhass: connect from my phone
justintv90 has quit [Max SendQ exceeded]
banister has joined #ruby
<adaedra> you can connect to a different port using :port in the URI
<jhass> mistnim: I see no reason why that would require that
<adaedra> i.e. example.org:1337
<mistnim> ops, I actually the server has only some open ports
tagrudev has quit [Remote host closed the connection]
<jhass> open another one then?
<ljarvis> i have pliers
simplyianm has joined #ruby
<jhass> if we're talking about network internal port forwarding also note that the external and internal port can differ
momomomomo has joined #ruby
<ljarvis> this is screaming for a reverse proxy but im scared to suggest it
<jhass> boxcars <3
<Darkwater> ljarvis: it's probably just a small project that's not worth overengineering
<mistnim> not my server, I can't change open ports
<jhass> but you can run stuff as root? oO
<mistnim> jhass yes, it's, how do you call it? Virtual server
revath1 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> you're in a container/VM/jail?
<mistnim> yes
<ljarvis> jhass: that looks pretty nice
aapole has joined #ruby
coderhs has joined #ruby
<jhass> yeah, use it as dev proxy
<jhass> I should write a wrapper so I can do bxctl add foo.dev 1337
<ljarvis> I use pow locally heh
<jhass> I let my DNS respond with 127.0.0.1 for *.dev
revath has quit [Ping timeout: 276 seconds]
<jhass> -> magic free pow on linux :P
ndrei has quit [Ping timeout: 265 seconds]
<ljarvis> yeah i use that and nginx on linux
<ljarvis> bit overboard but i love nginx
startupality has joined #ruby
slawrence00 has joined #ruby
casadei has joined #ruby
freerobby has quit [Quit: Leaving.]
BlueProtoman has joined #ruby
ndrei has joined #ruby
francoi__ has quit [Remote host closed the connection]
<BlueProtoman> I'm trying to install jekyll in Ubuntu 14.04, but I get this error when compiling native extensions. http://pastebin.com/YXxE1DA0 Any thoughts?
<ruboto> BlueProtoman, 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
simplyianm has quit [Ping timeout: 252 seconds]
terabytest has quit [Quit: Textual IRC Client: www.textualapp.com]
hsps_ has joined #ruby
a1fa has left #ruby [#ruby]
francoi__ has joined #ruby
hsps_ has quit [Client Quit]
coderhs has quit [Ping timeout: 258 seconds]
<mistnim> btw, server has 8000 open, and that doesn't require root, I can write my little app, thanks all :)
livathinos|away is now known as livathinos
livathinos has quit []
sarkyniin has joined #ruby
iBloodLust has joined #ruby
aapole has quit [Ping timeout: 256 seconds]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli_ has joined #ruby
commondream has joined #ruby
rikkipitt has joined #ruby
zacstewart has joined #ruby
jphenow has quit [Quit: Be back later ...]
DexterLB has quit [Read error: Connection reset by peer]
<master44> what does this mean: % in ruby math?
xehbit has quit [Max SendQ exceeded]
<apeiros> modulo
<BlueProtoman> Same for just about every language
<master44> same as **
<master44> ?
<apeiros> master44: you can look that up in the docs: `ri Fixnum#%` for example
<apeiros> master44: no, ** is exponentiation
xehbit has joined #ruby
xehbit has quit [Max SendQ exceeded]
<iBloodLust> modulo returns the remainder instead of the quotient
RegulationD has joined #ruby
<master44> ok
<master44> remaider of what?
Scroff has joined #ruby
<iBloodLust> of a division problem
<apeiros> of the division
<iBloodLust> like 5 % 3 = 2
xehbit has joined #ruby
<iBloodLust> while 5 / 3 = 1
xehbit has left #ruby [#ruby]
<master44> k ty
msnyon_ has joined #ruby
msnyon has quit [Ping timeout: 250 seconds]
roolo_ has joined #ruby
baweaver has joined #ruby
c355E3B has joined #ruby
startupality has quit [Quit: startupality]
yqt has joined #ruby
Scrofff has quit [Ping timeout: 252 seconds]
msnyon_ is now known as msnyon
paulcsmith has quit [Quit: Be back later ...]
polysics has joined #ruby
vikaton has joined #ruby
ZeD- has left #ruby [#ruby]
jhooker has joined #ruby
axl_ has quit [Quit: axl_]
axl_ has joined #ruby
roolo has quit [Ping timeout: 276 seconds]
Kovensky has quit [Ping timeout: 264 seconds]
axl_ has quit [Client Quit]
francoi__ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 245 seconds]
aphprentice has quit [Remote host closed the connection]
axl_ has joined #ruby
livathinos has joined #ruby
livathinos has quit [Client Quit]
roger_rabbit has quit [Quit: WeeChat 0.3.8]
francoi__ has joined #ruby
arup_r has quit []
allcentury has joined #ruby
oo_ has quit [Remote host closed the connection]
jerius has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
chinmay_dd has joined #ruby
tsou has quit [Ping timeout: 256 seconds]
<master44> ahh
Macaveli_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ahmetkapikiran has joined #ruby
podman has joined #ruby
mujou has joined #ruby
<master44> in ruby, its gets.chomp and gets automaticly read as a string?
tsou has joined #ruby
<Darkwater> gets returns a string (or nil), yes
freerobby has joined #ruby
hinbody has quit [Quit: leaving]
strixd has joined #ruby
<master44> ok
<master44> ?
<master44> can I asign variable to a variable=
CamonZ has quit [Read error: Connection reset by peer]
<Darkwater> a = b
riotjones has quit [Remote host closed the connection]
baweaver has joined #ruby
nertzy has joined #ruby
evanjs has quit [Remote host closed the connection]
Spami has joined #ruby
starfox_sf has joined #ruby
<master44> ok
<master44> so I can do m = gets.chomp
<master44> and go if user_input = m puts ".."
evanjs has joined #ruby
francoi__ has quit [Remote host closed the connection]
hinbody has joined #ruby
dfockler has joined #ruby
dANO_ has joined #ruby
<Darkwater> that probably doesn't do what you want
mrmargol_ has joined #ruby
<master44> When the quiz its done I want the program to tell how many correct answers they made
<Darkwater> yeah okay that works
ndrei has quit [Ping timeout: 265 seconds]
<Darkwater> well, == not =
<Darkwater> = sets, == compares
<al2o3-cr> master44: use counter variable
ebbflowgo has quit [Quit: ebbflowgo]
mimrock has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
hoov has quit [Ping timeout: 264 seconds]
<master44> anyone?
<mimrock> exit
mimrock has quit [Client Quit]
mdz_ has quit [Remote host closed the connection]
dopie has joined #ruby
<Darkwater> master44: hm?
starfox_sf has quit [Ping timeout: 255 seconds]
mdz_ has joined #ruby
mrmargolis has quit [Ping timeout: 244 seconds]
<master44> anyone can help me with this? I want it to come up how many answers they have correct
dfockler has quit [Ping timeout: 252 seconds]
devdazed has joined #ruby
francoi__ has joined #ruby
pyo_ has quit [Read error: Connection reset by peer]
iBloodLust has quit [Ping timeout: 246 seconds]
<Darkwater> oh like that
<Darkwater> yeah, set something to 0
emilkarl has quit [Quit: emilkarl]
<Darkwater> then something += 1 each time it's correct
<Darkwater> counter = 0
<Darkwater> counter += 1
<Darkwater> puts counter
<Darkwater> # => 1
mleung has joined #ruby
<master44> anyone?
mleung has quit [Client Quit]
war_pigs has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
jhooker has joined #ruby
alex88 has joined #ruby
war_pigs has quit [Max SendQ exceeded]
<master44> darkwater
<Darkwater> hi
war_pigs has joined #ruby
<master44> darkwater can you gist it?
<master44> I am like really bad with ruby
<master44> can you gisthub the code I can do
<Darkwater> try your best
<Darkwater> put this on top: counter = 0
greenbagels has quit [Read error: Connection reset by peer]
BlueProtoman has left #ruby [#ruby]
<Darkwater> put this in each if block, right after telling the user they're correct: counter += 1
terlar has quit [Ping timeout: 252 seconds]
<Darkwater> at the very end, do something like this: puts "Correct answers: #{counter}"
<master44> cause I dont really understand
<Darkwater> then you don't understand the code you've got right now
AhabsBeard has joined #ruby
<master44> DW?
jphenow has joined #ruby
foucist has left #ruby [#ruby]
<master44> yes I understand but not the block thing, undertsand now thanks! :D
Scrofff has joined #ruby
mdz_ has quit [Ping timeout: 250 seconds]
AhabsBeard has quit [Client Quit]
allomov has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 245 seconds]
AhabsBeard has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
tvw has joined #ruby
Scrofff has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
jas02 has quit [Quit: jas02]
egrm has joined #ruby
<egrm> hi
mistnim has quit [Ping timeout: 265 seconds]
Agoldfish has joined #ruby
war_pigs has quit [Quit: laters.. I'm out.]
master44 has quit [Ping timeout: 255 seconds]
master44 has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Agoldfish has quit [Client Quit]
JakFrist has joined #ruby
NeverDie has joined #ruby
Agoldfish has joined #ruby
qwertme has quit [Read error: Connection reset by peer]
<Darkwater> hi egrm
revath1 has quit [Ping timeout: 246 seconds]
qwertme has joined #ruby
<egrm> what's up?
<egrm> Darkwater
<Darkwater> screw internships
<egrm> CS ?
jhooker has quit [Ping timeout: 246 seconds]
<Darkwater> yeah
<Darkwater> the work is fun
<Darkwater> writing reports for school isn't
<egrm> which year are you?
Guest5307 is now known as _chs_
<Darkwater> 3rd out of 4
<egrm> cool
<Darkwater> college in NL
qiukun has joined #ruby
<qiukun> hi all
<Darkwater> probably works different from your local school system
<Darkwater> hi qiukun
AhabsBeard has quit []
<egrm> hi qiukun
<qiukun> how could i write a method named eval which calls eval inside?
cmisenas has joined #ruby
<baweaver> ...why?
<egrm> yeah, why would you?
<qiukun> to open a ultimate backdoor
<Darkwater> burn the witch!
dgutierrez1287 has joined #ruby
<egrm> Darkwater is your program outdated?
mrmargol_ has quit [Ping timeout: 267 seconds]
<egrm> Darkwater I mean the internship.
AhabsBeard has joined #ruby
Scroff has joined #ruby
<Darkwater> what program do you mean?
<Darkwater> school program?
<qiukun> well there would be chance that you're writing a method named A which call a builtin A right
<al2o3-cr> Could you do something like define_method(:initialize) { |@arg1, @arg2| } in earlier versions of ruby?
evanjs has quit [Remote host closed the connection]
mdw has joined #ruby
<master44> darkwater?
<Darkwater> hi master44
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<master44> I still dont get it
<master44> LOL
<master44> do I need to have the :
fuzzyhorns has joined #ruby
<fuzzyhorns> confused about something
<Darkwater> what :?
<fuzzyhorns> main » Time.now.getlocal("-09:00") => 2015-06-12 05:56:31 -0900
<master44> I dont get that thing
_seanc_ has joined #ruby
<master44> do I have to create another if block?
<fuzzyhorns> but main » Time.now.getlocal(-9) => 2015-06-12 14:56:31 -0000
<master44> or just paste the code after the if block=
<Darkwater> master44: what code
senayar has quit [Remote host closed the connection]
<fuzzyhorns> why would -9 and "-09:00" behave differently?
finisherr has joined #ruby
<Darkwater> fuzzyhorns: welcome to the world of programming with times
_seanc_ has quit [Client Quit]
<fuzzyhorns> working with time always sucks, i agree
dgutierrez1287 has quit [Ping timeout: 246 seconds]
<fuzzyhorns> but this to me seems like a Ruby lang level inconsistency
<master44> i was the quiz guy code
francoi__ has quit [Remote host closed the connection]
emilkarl has joined #ruby
mrmargolis has joined #ruby
apofis has joined #ruby
<master44> + 1 point every time
<Darkwater> master44: I know, but what code are you talking about specifically
<Darkwater> I sent you three lines
<Darkwater> and told you where each one goes
<redlegion> fuzzyhorns, that's probably why Unix time is simply the number of seconds elapsed since 1970
<master44> I will gist it
<fuzzyhorns> redlegion: lol if only i could always use that!
francoi__ has joined #ruby
AhabsBeard has quit []
<fuzzyhorns> anyone know where i can look up the official ruby spec to see what params it is meant to support and how?
<fuzzyhorns> this seems wrong to me, and if it is, ill report it to core team
<master44> darkwater what is my mistake
dfinninger has joined #ruby
casadei has quit [Remote host closed the connection]
AhabsBeard has joined #ruby
<al2o3-cr> master44: I gisted how'd you do it, but I think you pinged out
<al2o3-cr> master44: https://gist.github.com/anonymous/c422364d691147338007 # with a counter variable
<Darkwater> master44: first off, num += 1 goes on its own line
<egrm> now that's completely stupid https://github.com/egrm/random-name-generator
AhabsBeard has quit [Max SendQ exceeded]
<Darkwater> second off, there's a lone += near the end which is a syntax error
<Darkwater> think you mispasted it there
alex88 has quit []
AhabsBeard has joined #ruby
davidhq has joined #ruby
davidhq has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
<master44> ok thanks guys !! :D
keernel has quit [Quit: Leaving.]
ogpastaling has joined #ruby
dgarstang has joined #ruby
<dgarstang> Can someone point me to an example of using the aws-sdk v2 in ruby to scan and filter ec2 instances? I can't find examples anywhere. :(
theery has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
hoov has joined #ruby
ItSANgo has joined #ruby
ahmetkapikiran has joined #ruby
solars has quit [Ping timeout: 276 seconds]
<dgarstang> Can someone point me to an example of using the aws-sdk v2 in ruby to scan and filter ec2 instances? I can't find examples anywhere. :(
theery_ has joined #ruby
theery has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
arooni-mobile has joined #ruby
bootstrappm has joined #ruby
master44 has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
The_Phoenix has joined #ruby
<bootstrappm> morning
<dudedudeman> bootstrappm: can you make my bootstrap work?
mdz_ has joined #ruby
The_Phoenix has quit [Client Quit]
<bootstrappm> bootstrap CSS?
<dudedudeman> :P
<bootstrappm> :P
<bootstrappm> if yes then the answer is no :P :P
finisherr has quit [Quit: finisherr]
<dgarstang> Can someone point me to an example of using the aws-sdk v2 in ruby to scan and filter ec2 instances? I can't find examples anywhere. :(
<ljarvis> dgarstang: please stop spamming
<bootstrappm> dgarstang: hey i just did this!
Eiam has joined #ruby
jpfuentes2 has joined #ruby
theery_ has quit [Remote host closed the connection]
<dgarstang> bootstrappm: did what? easily irritated ljarvis ?
<bootstrappm> you've angered the gods dgarstang
<dgarstang> nothing ever works in ruby. makes my blood pressure go up. :(
jenrzzz has joined #ruby
<bootstrappm> and no, worked with the aws sdk
<bootstrappm> and the problem is likely between the keyboard and the chair ;)
tvw has quit [Ping timeout: 255 seconds]
<dgarstang> bootstrappm: v2?
<bootstrappm> yes, v2
<bootstrappm> hold on, I'll pass you a gist
<dgarstang> bootstrappm: any examples? it's 8:15am and ruby already makes me want to slash my wrists
<bootstrappm> if you're at work at 8:15am i think your wrist slashing tendencies are independent of ruby
<dgarstang> bootstrappm: bay area traffic...
<bootstrappm> i meant too early, not too late ;)
<bootstrappm> 9:15 here, i usually start at 10
<dgarstang> bootstrappm: i know... gotta leave by 7am to avoid the traffic
<bootstrappm> ah, gotcha
<bootstrappm> rough life
<bootstrappm> so here's the stuff i wrote a bit back to interface w/ s3: https://gist.github.com/frankpinto/4c5cc7d8272f994ea509
<dgarstang> bootstrappm: would be less rough if I could use python instead of ruby
adac has quit [Ping timeout: 276 seconds]
<bootstrappm> uff now you're just trying to annoy people
pontiki has joined #ruby
<dgarstang> ruby makes my eyes bleed. 16 years in tech and nothing grates my skull like ruby does. Thanks bootstrappm but I need an ec2 example. None of the examples out there work, so I pretty much just have to copy and paste
* dudedudeman raises hand for being at work at 8am... :/
startupality has joined #ruby
pontiki has quit [Client Quit]
<ljarvis> dgarstang: or do the research and implement it properly
mary5030 has joined #ruby
<bootstrappm> dgarstang, I know, we're using it as a starting point
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<dgarstang> ljarvis: I am trying. i need examples.
<ljarvis> bootstrappm has offered you help, insulting Ruby isn't going to help you
mary5030 has quit [Remote host closed the connection]
<bootstrappm> all you _need_ to do is read the documentation ;), one sec and i'll send it to you
<bootstrappm> and yes please don't insult ruby, its near and dear to my heart
<dgarstang> bootstrappm: i dont use it by choice
baweaver has joined #ruby
<bootstrappm> it helped me get into an ivy league school at one point
mary5030 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
<dgarstang> for some reason googling "aws-sdk v2 describe_instances" just gets me API references.
<dudedudeman> dgarstang: what's your language of choice?
<dgarstang> or... v1 examples, which don't work
<dgarstang> dudedudeman: python
<bootstrappm> so here's likely what you're looking for dgarstang http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html
<bootstrappm> well thats because you need to use the API ... ?
benlovell has quit [Ping timeout: 272 seconds]
<dgarstang> bootstrappm: api references aren't much use without a context
jhooker has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
<bootstrappm> they are if you're actually good at coding ;)
<bootstrappm> give me two seconds and i'll whip something up for you
<dgarstang> ec2 = Aws::EC2::Client.new(region:'us-west-2', credentials: creds) ... ec2.instances() ... gets me "undefined method `instances' for #<Aws::EC2::Client> (NoMethodError)"
baweaver has quit [Remote host closed the connection]
<dgarstang> or maybe I need Aws::EC2::Resource.new()? I have no idea
ndrei has joined #ruby
<bootstrappm> so there's a client interface and a resource interface
<bootstrappm> the client interface is more low level. the resource interface is the one with the instances method
<dgarstang> which would I need to return ec2 instances?
<dgarstang> ok, lemme try that again
imperator has joined #ruby
<dgarstang> ok, better
rcvalle has joined #ruby
Cache_Money has joined #ruby
<dgarstang> would I apply a filter to ec2.instances() or something else?
<ljarvis> read the docs
MuffinPimp is now known as Kosuzu
<dgarstang> ljarvis: that doc has ec2.instances() with no contextual information aboout how ec2 was derived.
<ljarvis> there's a "filters" hash key
<ljarvis> dgarstang: you don't need to care about ec2, you already have that part working
<bootstrappm> correct, filters hash key
<dgarstang> ljarvis: not until bootstrappm told me I needed Resource instead of Client. I don't know how you'd determine that from the API reference
<bootstrappm> so ec2.instances({filters: {name: 'blah'}})
<dgarstang> bootstrappm: k, thanks for your help
jhooker has quit [Ping timeout: 256 seconds]
<bootstrappm> then you do an each on it to get every instance
bruno-_ has quit [Ping timeout: 244 seconds]
jhooker has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bootstrappm> now there's A BUNCH of possible filter parameters, you'll have to choose the ones that make sense for your use case from ljarvis's link
<dgarstang> bootstrappm: ah, each. for each {}!<{}[{{] of whatever it is
<imperator> looking at forwarding/delegation again for the first time in a while
<bootstrappm> correct. to get all instances: ec2.instances.each {|instance| instance.do_something }
<imperator> how do I delegate all the things to an object, instead of listing methods individually?
riotjones has joined #ruby
<ljarvis> imperator: Delegator?
<bootstrappm> also all of this won't work if you don't have your credentials setup in environment variables
<dgarstang> bootstrappm: no matter how many times I read stuff like that in ruby it makes no sense. might as well be russian. python ... for var in thing.. ruby for var in some horrible list of symbols and squiggles
<bootstrappm> ah, you might want to learn Perl or Smalltalk then dgarstang
<ljarvis> imperator: SimpleDelegator will "just work(tm)"
<bootstrappm> or just take the time to understand how Ruby woks
<dgarstang> bootstrappm: i started with perl in 1992
<bootstrappm> works*
* imperator looks
<dgarstang> bootstrappm: i've been trying for several years.
<bootstrappm> have you used map dgarstang?
<bootstrappm> that takes a block as a parameter in perl
k3asd` has quit [Remote host closed the connection]
<dgarstang> bootstrappm: sure, and that's one of many reasons I moved beyond perl. perl, and ruby, same thing.
casadei has joined #ruby
bantic has quit [Read error: Connection reset by peer]
Kosuzu is now known as MuffinPimp
<bootstrappm> you moved beyond perl because you didn't like their closure syntax + use of iterators ... to another language with the same syntax and constructs?
<dgarstang> bootstrappm: because it's totally unreadable
bantic has joined #ruby
zacstewart has quit [Remote host closed the connection]
<imperator> ljarvis, hm, not getting it, looks like i need two classes?
<bootstrappm> well see, the thing with reading is ... everything is totally unreadable until you learn to read
ixti has quit [Ping timeout: 264 seconds]
<bootstrappm> i think there's a substantial community over here that would beg to differ with you
<ljarvis> imperator: do you want customer behaviour as well?
<bootstrappm> but hey, to each his own, let me know if you need any more help with that AWS thing
umgrosscol has joined #ruby
<dgarstang> bootstrappm: i generally read left to right, so var.each is very unintuitive
adimircolen has quit [Remote host closed the connection]
<dgarstang> bootstrappm: whereas FOR var IN something is very intuitive
<bootstrappm> that's because that's how you've learned to read, time to learn a different way to read ;)
riotjones has quit [Ping timeout: 245 seconds]
<bootstrappm> read like a computer, they read right to left! :P
dANO_ has quit []
wildroman2 has joined #ruby
<dgarstang> bootstrappm: english generally reads left ro right. anyway thanks again
k3asd` has joined #ruby
<bootstrappm> no prob, gluck!
dstarh has joined #ruby
<dgarstang> i guess ruby lets me do for var in something. ... but finding an example is tough
<havenwood> dgarstang: Your gauge of a language seems to be how easy it is to copy/paste.
<imperator> ljarvis, not sure what you mean; here's a snippet of what I'm trying to do: https://gist.github.com/djberg96/0ce360f7bd111c85cb02
baweaver has joined #ruby
<dgarstang> havenwood: how easy it is to read
peteykun has joined #ruby
<havenwood> dgarstang: I, like you, have been doing Ruby for several years and it reads quite easily to me.
arooni-mobile has quit [Ping timeout: 256 seconds]
dcarmich has joined #ruby
<dgarstang> havenwood: you can read squiggle ok?
zacstewart has joined #ruby
sandstrom has joined #ruby
djbkd has joined #ruby
<imperator> ljarvis, sweet, thanks!
doertedev has quit [Quit: Lost terminal]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
<egrm> how're you doing guys. good morning indeed.
varunwachaspati has joined #ruby
qiukun has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
leafybas_ has joined #ruby
<imperator> ljarvis, interesting, if i make __getobj__ private it bombs
<imperator> protected works ok though
mistermocha has joined #ruby
<bootstrappm> egrm: today IS a good morning! Been a rough week but I woke up ready to keep on kickin
<ljarvis> imperator: yeah it uses respond_to? which returns false if the method is private (by default)
mdw has quit [Ping timeout: 264 seconds]
shaderslayer is now known as shadeslayer
paulcsmith has joined #ruby
<egrm> bootstrappm cool man
commondream has quit [Remote host closed the connection]
<imperator> ah, right; wouldn't expect a nested call bombout though
<imperator> anyway, this works great, thank you
commondream has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 272 seconds]
dagda1 has joined #ruby
leafybasil has quit [Ping timeout: 252 seconds]
commondream has quit [Remote host closed the connection]
tomphp has joined #ruby
commondream has joined #ruby
theery has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
rikkipitt has quit [Quit: Leaving...]
hubcaps has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
startupality has quit [Ping timeout: 265 seconds]
commondream has quit [Remote host closed the connection]
simplyianm has joined #ruby
yoongkang has quit [Remote host closed the connection]
startupality has joined #ruby
_seanc_ has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
daveg__ has joined #ruby
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
<dgarstang> sigh... ec2.instances(filter: [{}]).each {|instance| puts instance } ... `validate!': unexpected value at params[:filter] (ArgumentError) Why?
bruceleez has joined #ruby
jphenow has quit [Read error: Connection reset by peer]
polysics has quit [Read error: Connection reset by peer]
<bootstrappm> it looks like the writer of that method didn't expect anybody to use it with an empty (but set) filter dgarstang
<bootstrappm> if you're not gonna put info there just do ec2.instances.each
gamename has joined #ruby
<bootstrappm> or actually, no. they DID expect it but its an incorrect way to use it, hence the ArgumentError instead of runtime error
AhabsBeard has quit []
<apeiros> POLL: should it be A) #ruby.COUNTRY or B) #ruby-COUNTRY ?
<dgarstang> bootstrappm: ok, now I'm getting "`missing_credentials?': undefined method `set?'" .... but I've set credentials
<ljarvis> there must be others already?
krisquigley has quit [Remote host closed the connection]
jbomo has joined #ruby
<bootstrappm> how did you set them?
simplyianm has quit [Ping timeout: 250 seconds]
<bootstrappm> environment variables or passing them to the AWS config?
<dgarstang> Aws.config[:credentials] = Aws::Credentials.new(creds['AccessKeyId'], creds['SecretAccessKey']) hmmm i dunno how that connects with ec2
<apeiros> ljarvis: referring to me?
<dgarstang> and I put the creds into creds {}
<hanmac> shevy i didnt update the rwx gem yet ... maybe i should do it again, but its currently better to build rwx from source
<bootstrappm> that looks right
<ljarvis> apeiros: si
<apeiros> ljarvis: yes. there are already others. the question is whether what we suggest on ruby-community.com
<apeiros> I want to release today and amend the channel list with country channels + a suggestion for how to name a new one
<ljarvis> apeiros: sure, but if all the others used one way I'd probably be more inclined to suggest that
<apeiros> that's the problem
ixti has joined #ruby
dfockler has joined #ruby
<apeiros> all the existing others don't agree :)
<bootstrappm> dgarstang: include the full error / stack trace in a gist and send it over
Zai00 has quit [Quit: Zai00]
AhabsBeard has joined #ruby
<ljarvis> apeiros: I'd go with -
<apeiros> ok
sandstrom has quit [Quit: My computer has gone to sleep.]
<apeiros> so #ruby-COUNTRY: 1, #ruby.COUNTRY: 0
<apeiros> nobody else want to give their vote? :)
<bootstrappm> oo this applies to me! i'm in guatemala
JakFrist has joined #ruby
<bootstrappm> hm. is it gonna be country and not language?
egrm has quit [Remote host closed the connection]
<bootstrappm> so #ruby-gt not #ruby-es?
<ljarvis> dgarstang: they're not supposed to be hashes
<apeiros> bootstrappm: good question
djbkd has quit [Remote host closed the connection]
<dgarstang> ljarvis: ic.
RegulationD has quit [Remote host closed the connection]
<apeiros> bootstrappm: I don't have an answer to it tbh :)
* imperator votes #ruby-COUNTRY
<dgarstang> ljarvis: the document I was reading did not say, so I assumed hash
mrsolo has joined #ruby
<ljarvis> dgarstang: yeah that would be sensible, seems like that could be used here though: https://github.com/aws/aws-sdk-ruby/issues/635
<apeiros> bootstrappm: probably both. i.e. COUNTRY can be either lang or country
<dgarstang> ljarvis: so, I've been at this about 15 min and already hit two issues.
<apeiros> #ruby-COUNTRY: 2, #ruby.COUNTRY: 0
<bootstrappm> the # of folks that use IRC is small in these countries. I say that should just redirect to a language one
<ljarvis> dgarstang: I think the second example in that issue should do what you want
<al2o3-cr> #ruby-COUNTRY dislikes . in rooms :P
<ljarvis> dgarstang: ec2.instances.filter('filter-name', ['filter-value']).each { |instance| ... }
<bootstrappm> and then folks in the language can self-organize and create country ones
<dfockler> are there going to be ruby channels for other countries?
daveg__ has quit [Ping timeout: 245 seconds]
<ljarvis> dgarstang: there already are
<ljarvis> dfockler: ^
simplyianm has joined #ruby
<dfockler> ahh ok
<dgarstang> ljarvis: my issue is with creds tho
<ljarvis> dgarstang: oh, that's not the gist you showed
<dgarstang> ljarvis: yes it is... it says "`missing_credentials?'"
ramfjord has joined #ruby
ebbflowgo has joined #ruby
anisha has quit [Ping timeout: 244 seconds]
<ljarvis> dgarstang: did you try with the example I linked to? and if so, you're still having the same issue?
cndiv has joined #ruby
<dgarstang> ljarvis: no, because it says missing credentials...
Soda has joined #ruby
<ljarvis> that's just the same of the method
JDiPierro has quit [Remote host closed the connection]
<dgarstang> ljarvis: seriously?
<ljarvis> the error is "undefined method `set?' for #<Hash:0x007f8219240a48>"
<ljarvis> yes
Dingus has joined #ruby
<dgarstang> om
<dgarstang> ... g
Dingus has quit [Client Quit]
<apeiros> #ruby-COUNTRY: 3, #ruby.COUNTRY: 0
<apeiros> any other votes? :)
<dgarstang> ruby... i dont understand you at all. one error message apparently means something else in ruby
<dgarstang> it's gonna be an uphill battle
<bootstrappm> hahah you'll live dgarstang
tsou has quit [Quit: off]
ItSANgo has quit [Quit: Leaving...]
strixd has quit [Quit: 500]
* jhass votes #ruby-LANGUAGE
<dgarstang> https://github.com/aws/aws-sdk-ruby/issues/635 ... "If you are using the resource interface, you can use the #filter method:" ... yet now I get " `method_missing': undefined method `filter' fo"
<bootstrappm> I don't think that's your prob though dgarstang. Try this:
startupality has quit [Ping timeout: 256 seconds]
<jhass> (which is not the same as country)
dfinninger has quit [Remote host closed the connection]
<bootstrappm> ohhh dgarstang, can you double check what aws sdk version you're using?
simplyianm has quit [Ping timeout: 264 seconds]
<adaedra> jhass: what about the existing?
<dgarstang> bootstrappm: v2
<ljarvis> yes I agree it should be language
<bootstrappm> well, no its the Aws namespace, its def v2
<bootstrappm> language +1!
<dgarstang> boto ain't this hard. :-\
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<jhass> adaedra: like?
stoogenmeyer has quit [Ping timeout: 264 seconds]
<adaedra> apeiros: what about the existing?*
<bootstrappm> anyways dgarstang take the credentials off of line 10
<adaedra> jhass: #ruby.fr
<bootstrappm> just set it on the cnofig
<jhass> ah
<jhass> well, fr is the language code too
towski_ has joined #ruby
<adaedra> (which is not really alive, but there are people in it)
<adaedra> no, but - vs .
<dgarstang> cbootstrappm: sorry, how?
mistermocha has quit [Remote host closed the connection]
<dgarstang> bootstrappm: so you think it IS a credentials issue?
<apeiros> adaedra: nothing. we might contact their founders and suggest them to use the "standard". but totally up to them what they'll do.
fuzzyhorns has quit [Remote host closed the connection]
<adaedra> 'k
shakes has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
<adaedra> apeiros: anyway, - > .
<bootstrappm> no its def an error on a Hash ... its just at first it seemed to be the filters hash but i actually think its the credentials hash
ebbflowgo has quit [Ping timeout: 250 seconds]
<bootstrappm> missing_credentials is the name of the method where this error happens, not an error message, no doubt
__butch__ has joined #ruby
<dgarstang> if I could just find a complete example of listing ec2 instances with ruby, it would help, but I'm yet to find that still.
<dgarstang> bootstrappm: then why can't the stack trace tell me that?
<bootstrappm> it is, well its telling me that
allomov has joined #ruby
<apeiros> adaedra: you already voted! don't cheat! ;-p
<bootstrappm> my theory dgarstang is that you passed the credentials hash to the Resource constructor on line 10 instead of an Aws::Credentials object like the documentation told you to
<adaedra> apeiros: I did?
<bootstrappm> so its calling set? (a method that exists on Aws::Credentials) on a Hash and throwing an error because it doesn't have that method
<ljarvis> dgarstang: ec2 = AWS::EC2.new(access_key_id: "...", secret_access_key: "..."); ec2.instances
<dgarstang> I did this... bootstrappm ec2 = Aws::EC2::Resource.new(region:'us-east-1', credentials: creds) which is what one set of docs said to do
<dgarstang> ljarvis: ok, i'll try that
<apeiros> adaedra: oh, you didn't?
unshadow has joined #ruby
<apeiros> well, I guess then it's 6:0 already
<adaedra> Don't remember to
<adaedra> have*
jcaho has quit [Read error: Connection reset by peer]
<apeiros> I guess I'll put - as recommendation on the page then
<bootstrappm> dgarstang just take the creds of line 10 and see what happens, yeah?
ebbflowgo has joined #ruby
noname2 has quit [Ping timeout: 265 seconds]
jcaho has joined #ruby
<dgarstang> Is it ec2 = AWS::EC2.new(access_key_id: "...", secret_access_key: "...") or ... ec2 = AWS::EC2.Resource.new(access_key_id: "...", secret_access_key: "...") ?
<ljarvis> use the first one
<ljarvis> oh wait, what version are you using?
<bootstrappm> v2 ljarvis
<ljarvis> o
* ljarvis slowly walks away
<bootstrappm> hahahha
<dgarstang> require 'aws-sdk' ; ec2 = AWS::EC2.new(access_key_id: "..", secret_access_key: "..") gets me "./scan.rb:8:in `<main>': uninitialized constant AWS (NameError)"
<bootstrappm> dgarstang lets start again
<dgarstang> Sigh
Zen-Zen has joined #ruby
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
<bootstrappm> start from the gist you sent me and remove the creds from line 10
startupality has joined #ruby
<bootstrappm> just leave them on line 9
<bootstrappm> of scan.rb
<ljarvis> tbh though.. it really is all on the main docs page http://docs.aws.amazon.com/sdkforruby/api/index.html
<ljarvis> this kind of gives it away: credentials: Aws::Credentials.new('akid', 'secret'),
dangerousdave has quit [Ping timeout: 246 seconds]
<bootstrappm> yup! ^ that
mister_s_ has quit [Ping timeout: 250 seconds]
chthon has quit [Ping timeout: 244 seconds]
<bootstrappm> credentials are supposed to be object, not Hash
<bootstrappm> so can you listen to me -_-
pdoherty has joined #ruby
senayar has quit []
Channel6 has joined #ruby
<Darkwater> adaedra: ready for irc plays ruby?
maletor has joined #ruby
<Darkwater> well, I'll be back in an hour or two
<Darkwater> join #ruby-ed
<bootstrappm> what's that one for?
<bootstrappm> erectile disfunction?
dfinninger has joined #ruby
skade has quit [Ping timeout: 265 seconds]
<bootstrappm> dgarstang: see me last few comments, credentials hash vs object
<Darkwater> bootstrappm: no, ed
hinbody has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 256 seconds]
hinbody has joined #ruby
<bootstrappm> ed...ucation Darkwater? or maybe http://www.rubyanded.co.uk/
<Darkwater> no, ed
<bootstrappm> Ruby + Ed!
Zen-Zen has quit []
<bootstrappm> ah, well, that cleared that up
<Darkwater> meh, it doesn't work
<Darkwater> whatever, will fix it later
<Darkwater> o/
starfox_sf has joined #ruby
xcesariox has joined #ruby
daveg_ has joined #ruby
rkazak has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
startupality has quit [Ping timeout: 250 seconds]
simplyianm has joined #ruby
startupality has joined #ruby
<xcesariox> is there any one there can help me with my error? " Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/shaunstanislaus/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/binding_of_caller-0.7.2" after bundling install.
zotherstupidguy has quit [Ping timeout: 276 seconds]
bgmarx has joined #ruby
platzhirsch has left #ruby [#ruby]
<jhass> bundle install as which user?
ascarter has quit [Max SendQ exceeded]
<dgarstang> screw it. I just put the creds into environment variables
pandaant has quit [Remote host closed the connection]
ascarter has joined #ruby
aapole has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
<dgarstang> ok, now we have no consistency on what the filters look like. This page http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html#instances-instance_method says it's a hash, and this page https://github.com/aws/aws-sdk-ruby/issues/635 says to use a method and pass.. strings?
ascarter has quit [Max SendQ exceeded]
sandstrom has joined #ruby
ascarter has joined #ruby
starfox_sf has quit [Ping timeout: 258 seconds]
zotherstupidguy has joined #ruby
<jhass> xcesariox: bundle install as which user?
<dgarstang> but, of course I can't even get the filter() method to work
msgodf has quit [Ping timeout: 252 seconds]
<xcesariox> jhass: how do i check bundle install as which user?
<jhass> run whoami on the same shell
<xcesariox> jhass: i didn't know that doing bundle install you need to set a user.
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> you don't
<xcesariox> jhass: shaunstanislaus <-
slackbotgz has quit [Remote host closed the connection]
<xcesariox> jhass: how do i fix this error of permission?
slackbotgz has joined #ruby
<jhass> xcesariox: try sudo chown -R shaunstanislaus ~/.rbenv and don't run sudo bundle install or sudo gem install under rbenv
endash has quit [Quit: endash]
apofis has joined #ruby
<xcesariox> jhass: right , okay.
scripore has quit [Quit: This computer has gone to sleep]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xcesariox> jhass: chown already, trying to bundle install again.
<dgarstang> Theres no mention whatsoever of filter at http://docs.aws.amazon.com/sdkforruby/api/index.html
towski_ has quit [Ping timeout: 272 seconds]
<bootstrappm> dgarstang: if you pass filters in with the instances method its a hash, if you use the method .filters then its name, value as first and second argument
<bootstrappm> not complicated, just the name and the val of the filter
<dgarstang> bootstrappm: k, cuz it says the filters method doesn't exist
<bootstrappm> filter singular dgarstang, sorry
<bootstrappm> that's why its name, value in first, second param and not an array
allcentury has quit [Ping timeout: 276 seconds]
<xcesariox> jhass: you are genius , working like a blaze.
<dgarstang> bootstrappm: ec2 = Aws::EC2::Resource.new(region:'us-east-1') ; ec2.instances.filter("tag:role", "web").each { |instance| puts instance } == "undefined method `filter'".
mrmargol_ has joined #ruby
allcentury has joined #ruby
apofis has quit [Ping timeout: 256 seconds]
mleung has joined #ruby
<bootstrappm> then you're outta look w/ using the method dgarstang, just use the param to instances
<dgarstang> and ... if I replace Resource with Client ... "undefined method `instances' " Sigh
yqt has quit [Ping timeout: 276 seconds]
<dgarstang> ok
JDiPierro has joined #ruby
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
towski_ has joined #ruby
DoubleMalt has quit [Ping timeout: 272 seconds]
shakes has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
soulcake has quit [Quit: Quack.]
<dgarstang> ec2 = Aws::EC2::Resource.new(region:'us-east-1') ; filters = [{ name: "String", values: ["String"] }] ; ec2.instances(filters: filters).each {|instance| puts instance } == "`call': The filter 'String' is invalid" ... that filter string is straight from http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html#instances-instance_method
scripore has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
<dgarstang> boto ain't this hard.
<dgarstang> just sayin'
blackmesa has joined #ruby
soulcake has joined #ruby
tskogberg has quit [Ping timeout: 250 seconds]
<bootstrappm> dgarstang: what's boto mean? and String is a placeholder. The allowable filter values are right in that link you pasted
nobitanobi has joined #ruby
<dgarstang> bootstrappm: boto is the python aws api. i see... so their example don't work. ok, thanks
endorphine_ has quit []
<bootstrappm> correct, their examples are examples. They do not work
endorphine_ has joined #ruby
tskogberg has joined #ruby
<bootstrappm> give this a shot:
<bootstrappm> filters = [{ name: "architecture", values: ["i386", "x86_64"] }]
<bootstrappm> that's obviously not filtering anything, but it will run
GnuYawk has joined #ruby
sinkensabe has quit [Remote host closed the connection]
JDiPierro has quit [Ping timeout: 250 seconds]
aapole has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
cmisenas has quit [Ping timeout: 252 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 245 seconds]
phutchins has quit [Ping timeout: 245 seconds]
<bootstrappm> ^ dgarstang
[H]unt3r has joined #ruby
momomomomo has quit [Quit: momomomomo]
<dgarstang> tanx
deric_skibotn has joined #ruby
joaomdmoura has joined #ruby
yqt has joined #ruby
evanjs has joined #ruby
baweaver has joined #ruby
mc_fail has joined #ruby
cmisenas has joined #ruby
yoongkang has joined #ruby
DexterLB has joined #ruby
endorphine_ has quit []
gusrub has joined #ruby
starfox_sf has joined #ruby
pengin has joined #ruby
emilkarl has quit [Quit: emilkarl]
rdavila has joined #ruby
whiskystig has quit [Quit: ZNC - http://znc.in]
keernel has joined #ruby
jackjackdripper has joined #ruby
daveg_ has quit [Ping timeout: 255 seconds]
symm- has joined #ruby
mcclurmc has quit [Ping timeout: 265 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
towski_ has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 276 seconds]
simplyianm has joined #ruby
adac has joined #ruby
blackmes1 has joined #ruby
sandelius has joined #ruby
keernel has quit [Quit: Leaving.]
pengin has quit [Remote host closed the connection]
AhabsBeard has quit []
baweaver has quit [Remote host closed the connection]
blackmes2 has joined #ruby
lordkryss has joined #ruby
<sandelius> PHP reads the whole codebase on each request it seems. How in the name of (whoever you want) can that scale on large codebases?
blackmesa has quit [Ping timeout: 244 seconds]
pengin has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
freerobby has joined #ruby
<livcd> offtopic: what code editor do you prefer guys ?
baweaver has joined #ruby
krisquigley has joined #ruby
<sandelius> livcd sublime text / vim
simplyianm has quit [Remote host closed the connection]
arup_r has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
boverall has joined #ruby
<bootstrappm> vim
RegulationD has joined #ruby
<arup_r> hey guys I am using openSUSE 13.1 and Rvm .. I did rvm get stable and then rvm list known ... but Ruby 2.2.2 is not coming in the list.. any hints how to grab that ?
qwertme has joined #ruby
mc_fail has quit [Ping timeout: 264 seconds]
Scroff has quit [Ping timeout: 245 seconds]
casadei has quit [Remote host closed the connection]
mrmargolis has joined #ruby
endash has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 244 seconds]
peteykun has quit [Quit: Leaving]
mrmargol_ has quit [Ping timeout: 246 seconds]
<havenwood> arup_r: rvm get head
<arup_r> ok
<havenwood> arup_r: or even though it isn't listed: rvm install ruby-2.2.2
<arup_r> ahh! is it? I didn't know that..
Yiota has joined #ruby
<arup_r> no I get it now.. havenwood after doing rvm get head
<arup_r> thanls
ramfjord has joined #ruby
<arup_r> let me install and do some real work with it
krisquigley has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
wallerdev has joined #ruby
JDiPierro has joined #ruby
francoi__ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Lucky__ has joined #ruby
fuzzyhorns has joined #ruby
bantic has quit [Quit: bantic]
bricker has joined #ruby
imperator has quit [Quit: Leaving]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 265 seconds]
arup_r has quit [Ping timeout: 244 seconds]
adac has quit [Ping timeout: 244 seconds]
<heftig> does anyone know of a good implementation of a tree for finding neighbors in a metric space with a custom distance function?
jds has quit [Quit: Connection closed for inactivity]
postmodern has joined #ruby
horsecowdog has joined #ruby
<heftig> trying to deduplicate images. found a hasher that produces integers that can be compared via hamming distance; now i just need a way of indexing them efficiently
mcclurmc has joined #ruby
duderonomy has quit [Ping timeout: 272 seconds]
NeverDie has joined #ruby
autrilla_ has quit [Quit: Connection closed for inactivity]
zotherstupidguy has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
zotherstupidguy has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
ReK2 has quit [Remote host closed the connection]
<bruceleez> I'm trying to find a solution to a problem from a book. Only a few lines of code is required but I'm struggling - is there anyone here who can help?
x1337807x has joined #ruby
<heftig> bruceleez: don't ask to ask, just ask
x1337807x has quit [Max SendQ exceeded]
DexterLB has quit [Read error: Connection reset by peer]
Spami has joined #ruby
x1337807x has joined #ruby
<bruceleez> it's from a book by Chris Pine called "How to Program" - it's online here https://pine.fm/LearnToProgram/chap_07.html
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bruceleez> the relevant chapter looks at arrays and iterators and the problem is at the bottom of this page. I'll copy/paste
<bruceleez> basically i want to write a program which asks us to type in as many words as we want (one word per line, continuing until we just press Enter on an empty line), and which then repeats the words back to us in alphabetical order. OK? I cannot use the sort method though
<apeiros> heftig: kd-tree? but what kind of algorithm uses a tree with neighbors in metric space to find duplicate images? o0
weaksauce has joined #ruby
<apeiros> or is it a "similar images" algorithm?
<heftig> apeiros: exactly
<heftig> i need something like a bk-tree, vp-tree or m-tree
<apeiros> I think somebody wrote an implementation of a proximity hash for that already. phash or so…
<heftig> yes, that's what i'm using
<bruceleez> can i paste code here?
pdoherty has joined #ruby
x1337807x has quit [Client Quit]
<apeiros> heftig: ah, and that can use different distance methods? didn't know :)
<apeiros> ?gist bruceleez
<ruboto> bruceleez, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<heftig> no, the problem is that it's just hashing, not indexing
DexterLB has joined #ruby
<apeiros> heftig: not sure I follow
<apeiros> oooh
<apeiros> coin fell
<apeiros> you'd still have to do N*N-1 comparisons
serivich has quit [Ping timeout: 272 seconds]
<heftig> right now i'm just doing pairwise comparison, but that sucks as it's O(n^2)
rdavila has quit [Quit: rdavila]
<heftig> and i'm really feeling that O
endorphine_ has joined #ruby
x1337807x has joined #ruby
mistermocha has joined #ruby
anisha has joined #ruby
adimircolen has joined #ruby
<apeiros> surprised he didn't include something to compare a list of files…
xcesariox has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
<bruceleez> thanks apeiros
<bruceleez> here is a paste of the code - I'm not sure what I'm doing wrong https://gist.github.com/0adbce66cf1449032a4a.git
rbowlby has joined #ruby
<jhass> bruceleez: in future copy the URL in your addressbar, not the clone URL ;)
<apeiros> ruboto feature? (relink and explain)
<bruceleez> the solution is easy if I use the sort method with an array, but without it it is proving tricky
aaeron has joined #ruby
<apeiros> (and YES, I'm aware I'm the bottleneck :(
<apeiros> )
blaaaa has quit [Quit: Leaving]
iBloodLust has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bgmarx has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
<jhass> bruceleez: how about inserting the new word at the right place in the array? so after the user entered a word, find the right place to insert the word
<bruceleez> what it all comes down to is, how does the sort method work? what is the code behind it?
<iBloodLust> am i cool yet
<apeiros> iBloodLust: dunno. use a thermometer?
<jhass> bruceleez: if you do want to implement a sort algorithm, the most simple one is called bubble sort
scripore has joined #ruby
<apeiros> bruceleez: there's a ton of different sorting algorithms. wikipedia probably lists most of them.
rbowlby_ has joined #ruby
drew has joined #ruby
<jhass> ruby's sort uses quicksort, but you don't want to implement that just yet I think ;)
<iBloodLust> question
<bruceleez> my attempt at writing a sort algorith starts on line 12 in the github link i shared.....using too many loops i suspect
whoami has joined #ruby
<iBloodLust> get ready
<iBloodLust> is mruby just got c and c++
<apeiros> actually it uses qsort, which likely (but not necessarily) uses quicksort (despite its name) :)
<iBloodLust> can i pair it with a language like, lets say, D?
<apeiros> (totally relevant)
AlphaAtom has joined #ruby
whoami is now known as Guest22661
momomomomo has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
Guest22661 has quit [Max SendQ exceeded]
vyorkin2 has quit [Ping timeout: 264 seconds]
AlphaAtom has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
bronson has joined #ruby
nikhgupta has joined #ruby
AlphaAtom has joined #ruby
<bruceleez> i've just find the bubble algorith here http://www.sitepoint.com/sorting-algorithms-ruby/ - nice, thanks
rbowlby has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
<bootstrappm> is iBloodLust the same dude that shows up as the KKK?
momomomomo has joined #ruby
<iBloodLust> but im black irl
<iBloodLust> so what does that make me
sarkyniin has quit [Read error: Connection reset by peer]
<iBloodLust> black panther?
<jhass> ?ot iBloodLust
<ruboto> iBloodLust, this seems to be off-topic. please move your discussion to #ruby-offtopic, to keep this channel free for ruby related problems. Thanks!
phutchins has joined #ruby
<iBloodLust> sry
<bootstrappm> ...and is also fond of irony
whoami_ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_seanc_ has quit [Quit: _seanc_]
aapole has joined #ruby
symbol has joined #ruby
nikhgupta has quit [Ping timeout: 245 seconds]
djbkd_ has joined #ruby
Scroff has joined #ruby
tomphp has joined #ruby
bgmarx has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agarie has joined #ruby
marr has joined #ruby
nikhgupta has joined #ruby
tvw has quit [Read error: Connection reset by peer]
bgmarx has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
lavros has joined #ruby
jsaak has quit [Ping timeout: 255 seconds]
leafybasil has joined #ruby
tvw has joined #ruby
agarie has quit [Remote host closed the connection]
Kruppe has quit [Ping timeout: 255 seconds]
<bruceleez> jhass, with respect to your comment regarding finding the "right place in the array", could you please explain that bit more. I'm bashing my head here
bgmarx has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
<jhass> bruceleez: if you keep order, inserting while keeping order is just a matter of finding the place of the element bigger than the element you want to insert and inserting before that
jsaak has joined #ruby
leafybas_ has quit [Ping timeout: 256 seconds]
<bruceleez> ? - You lost me there
leafybasil has quit [Ping timeout: 258 seconds]
yqt has quit [Ping timeout: 252 seconds]
<jhass> bruceleez: [] insert "b" -> ["b"] insert "d" -> run to end, ["b", "d"] insert "c", "d" > "c", insert at 1 -> ["b", "c", "d"] insert "a", "b" > "a" insert at 0 -> ["a", "b", "c", "d"]
mdz_ has quit [Remote host closed the connection]
mdz_ has joined #ruby
vickleton has joined #ruby
qwertme has joined #ruby
rubie has joined #ruby
<apeiros> bruceleez: essentially - when the user inserts "d", and you have (sorted already) ["a","b","c","e","f","g"] - where do you insert the "d" so the array remains sorted?
fuzzyhorns has left #ruby ["later nerds"]
<apeiros> figure out how you find out. once you know how you find out, express that in code. done :)
ebbflowgo has quit [Read error: Connection reset by peer]
<jhass> bruceleez: which is actually basically your sort algorithm but doing it on insertion will actually work
ebbflowgo has joined #ruby
JamesDH has joined #ruby
hoov has quit [Quit: Leaving]
<apeiros> insertion-sort can be implemented as O(n) optimal case and O(nlogn) worst case. it's actually a pretty nice algorithm.
_seanc_ has joined #ruby
freerobby has quit [Quit: Leaving.]
commondream has joined #ruby
djellemah__ has quit [Remote host closed the connection]
bgmarx has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox0dea has joined #ruby
alexherbo2 has joined #ruby
<Ox0dea> apeiros: Every sorting algorithm is O(n) in the optimal case, no?
bgmarx has joined #ruby
mcclurmc has quit [Remote host closed the connection]
<weaksauce> apeiros worst and average case seems to be O(n^2) for insertion sort according to wikipedia.
<apeiros> Ox0dea: nope
iBloodLust has quit [Quit: am i cool yet?(thank you havenwood)]
<apeiros> weaksauce: o0
aapole has quit [Ping timeout: 245 seconds]
bgmarx has quit [Read error: Connection reset by peer]
agarie has joined #ruby
<apeiros> weaksauce: that's only if you use linear search…
<bruceleez> sorry im really new to Ruby and a lot of what's being written is going past my head. Can someone point to specifically which line in my code I should change?
whoami_ has quit [Read error: Connection reset by peer]
bgmarx has joined #ruby
<apeiros> searching the right place using binary search is logn
<Ox0dea> Insertion sort is great if you're wanting to keep a stream of data in order.
<apeiros> and searching n times the right spot is n*logn
troulouliou_dev has quit [Quit: Leaving]
veinofstars has joined #ruby
finisherr has joined #ruby
<weaksauce> what about moving the elements in the array?
commondream has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
skade has joined #ruby
<apeiros> usually memcpy and not considered as its overhead is low
x1337807x has quit [Max SendQ exceeded]
<weaksauce> worst case would be reverse order sorted
sandelius has joined #ruby
<apeiros> comparison is the expensive part
mdz_ has quit [Ping timeout: 252 seconds]
nikhgupta` has joined #ruby
<apeiros> worst case depends on your search algorithm
atomical has quit [Ping timeout: 248 seconds]
<apeiros> but with linear search - yes, reversed
<weaksauce> I was talking about insertion sort
x1337807x has joined #ruby
<apeiros> yes, me too
<apeiros> you may remember that insertion sort needs a search ;-)
x1337807x has quit [Max SendQ exceeded]
JakFrist has joined #ruby
<apeiros> and you can search linearly, binary or by any other means
<apeiros> (though, I guess linear and binary are the most common ways to search a sorted structure)
x1337807x has joined #ruby
<Ox0dea> You guess?
x1337807x has quit [Max SendQ exceeded]
<apeiros> I don't have data on it, therefore I guess :-p
<apeiros> all the other search algorithms I know are rather involved.
x1337807x has joined #ruby
<apeiros> and unless you have a very specific case, they don't offer a real benefit over binary
<Ox0dea> Anecdata is best data.
casadei has joined #ruby
<apeiros> o0
AhabsBeard has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
barkerd427 is now known as zz_barkerd427
<adaedra> No data is best data.
* jhass adjusts apeiros irony detector
gheegh has joined #ruby
<adaedra> Instant to sort, instant to search in.
robbyoconnor has joined #ruby
<apeiros> jhass: I hope you can find it
<adaedra> No risk of data corruption, always backup'd.
ruv has quit [Ping timeout: 276 seconds]
<jhass> "adjust" means "give it a big kick" of course
jaycee has joined #ruby
<apeiros> good luck hitting it. and don't you dare missing it and kicking me instead!
xxneolithicxx has joined #ruby
<adaedra> technically, your irony detector should be part of you
boverall has quit []
<jhass> uh, what do you think I kick, gotta be in there somewhere
<adaedra> so kicking it would kick you
sandstrom has quit [Quit: My computer has gone to sleep.]
<apeiros> what? no. I outsourced my irony detection.
<Ox0dea> >> '%c' % 'ab'
<ruboto> Ox0dea # => %c requires a character (ArgumentError) ...check link for more (https://eval.in/380785)
wildroman2 has quit [Remote host closed the connection]
<Ox0dea> Should this be considered a vestigial leftover from the time when Ruby had characters?
<weaksauce> apeiros just dusted off my old textbook and insertion sort got its running time from not the search but the insertion
<jhass> apeiros: that explains a lot
<Ox0dea> >> ['ab'.chr, 'ab'.ord] # No complaints.
<ruboto> Ox0dea # => ["a", 97] (https://eval.in/380789)
workmad3 has quit [Ping timeout: 256 seconds]
<weaksauce> I think putting the onus onto memcpy as a way around that doesn't really work that well with large datasets
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<apeiros> weaksauce: was that textbook written when they still used punch cards?
<weaksauce> heh
<weaksauce> did you just call me old :P
<apeiros> no, I gently asked whether you're old :-D
codenihal has joined #ruby
<codenihal> ls
<weaksauce> not punch card old :)
<jhass> . .. #ruby
mdz_ has joined #ruby
<Ox0dea> ls -al
keslerm has joined #ruby
jacaballero has joined #ruby
<apeiros> weaksauce: yeah, sure. depending on datasets and architectures, specific offsets may change.
zz_barkerd427 is now known as barkerd427
<apeiros> and I don't have enough experience with such low level implementations to know where those boundaries are
jhooker has quit [Read error: Connection timed out]
codenihal has quit [Client Quit]
<Ox0dea> Must be getting used to his window manager.
blackmes2 has quit [Ping timeout: 264 seconds]
<weaksauce> that said. who writes sorting algorithms unless you need something really specific?
bricker has quit [Read error: Connection reset by peer]
<Ox0dea> Interviewees.
NeverDie has joined #ruby
<apeiros> in cases where insertion (and hence moving) is the bottleneck - I wonder whether it could be improved by changing how the structure is being filled. especially if you're not sorting a stream (i.e. when you know the number of elements, and can find minmax in O(n))
tvw has quit [Ping timeout: 272 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
<alanjf> Does anyone know why this is happening? http://pastebin.com/GLd6yTCw (This is under 32-bit linux, most things build from source tarball on this systemm like openssl-1.0.2c.)
<ruboto> alanjf, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a5441ea9a216ddb7cc31
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<apeiros> weaksauce: the only time I did was when I worked on a statistics engine and indeed had specific needs. and even then it was mostly for funsies and figuring limits :)
<apeiros> oh, and of course university
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> exactly
momomomomo has quit [Quit: momomomomo]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
<alanjf> Ruby says "undefined symbol: rb_Digest_SHA1_Init" but `strings '/pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so' | grep 'rb_Digest_SHA1_Init'` says it's there.
<apeiros> that's when I experimented with search algorithms as well btw. ;-)
ruv has joined #ruby
timonv has joined #ruby
<alanjf> ruboto: Sorry about that, I thought I was using pastbin.org, not .com
<apeiros> ?ruboto alanjf
<ruboto> alanjf, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
<alanjf> Right
<apeiros> no need to apologize to a bot ;-)
<Ox0dea> alanjf: You have a /pkg directory at the root of your filesystem?
<alanjf> So does anyone have any idea what could be causing this problem? Google indicates a lot of people have had this problem but I can't find any solutions.
<alanjf> Ox0dea: On this system, yes.
<Ox0dea> Why?
casadei has quit [Remote host closed the connection]
<alanjf> IT was something that started before me, it's where everythign built from source lives.
simplyianm has joined #ruby
<Ox0dea> Well, I suspect your standards-flouting shenanigans are the cause of your troubles.
horsecowdog has quit [Remote host closed the connection]
<alanjf> (seems when the channel bot reposted my paste to gist it turned on ruby highlighting and turned everything orange :|)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
akkad has quit [Excess Flood]
bantic has joined #ruby
<apeiros> jhass: ruby -c the paste and gist as .rb when syntax is ok, as .txt when not?
<alanjf> Ox0dea: I'm nto so sure, as everything builds nad works as expected on this system. For example, NET::SSLeay for Perl built against the same openssl lib works flawlessly, as does everything else on the system that depends on it.
<jhass> apeiros: if you can be bothered
<jhass> :P
<apeiros> hehehe
<apeiros> ok
<apeiros> much to do tonight. sadly the rest of the week-end is already occupied by other stuff :(
<apeiros> but at the very least I'll release the current PRs
rippa has joined #ruby
<alanjf> Does the strace there show anything useful? It shows that it finds libssl and libcryoto
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkad has joined #ruby
dgarstang has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
<alanjf> strings '/pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so' | grep 'rb_Digest_SHA' shows that it IS defined there, so I'm really not sure what ruby's problem is here?!
dgarstang has joined #ruby
finisherr has quit [Quit: finisherr]
jhooker has joined #ruby
skade has quit [Read error: Connection reset by peer]
niemcu has joined #ruby
<jhass> looks like many people solved it by straight recompiling ruby
<adaedra> recompile ALL THE THINGS
<alanjf> jhass: Thanks but I tried that 4 times already with no change.
<adaedra> So hot outside -_-"
<alanjf> I also build openssl-1.0.2c
<jhass> are you on gcc 5.1 already?
<jhass> might cause issues too
Scroff has quit [Remote host closed the connection]
jwilson has quit [Read error: Connection reset by peer]
<alanjf> jhass: gcc-4.6.1
jwilson has joined #ruby
<jhass> mmh
Miphix has quit [Quit: Leaving]
pengin has quit [Remote host closed the connection]
MVPhelp has quit [Remote host closed the connection]
Vitor has joined #ruby
MVPhelp has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
<alanjf> jhass: Before this, I never had any trouble what so ever with anything that it successfully compiled before.
<alanjf> And pretty much every source package I've thrown at it since 2011 has compiled without trouble (baring problems with the source code itself of course.)
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
ValicekB has quit [Ping timeout: 276 seconds]
Jackneill has joined #ruby
cmisenas has quit [Quit: cmisenas]
<alanjf> So I'm left with feeling like this is something ruby is doing odd.
<jhass> https://github.com/rvm/rvm/issues/3299 seems interesting
intinig has quit [Remote host closed the connection]
finisherr has joined #ruby
baweaver has joined #ruby
AhabsBeard has quit []
intinig has joined #ruby
Channel6 has quit [Quit: Leaving]
blue_deref has joined #ruby
<alanjf> jhass: I do have C_INCLUDE_PATH and CPLUS_INCLUDE_PATH defined, though just a couple entries that ruby wouldn't need most like, such as /usr/X11R7/include
Guest100 has joined #ruby
commondream has joined #ruby
<alanjf> I'll rebuild ruby with them unset.
nobitanobi has quit [Remote host closed the connection]
<jhass> maybe some header files conflicts, maybe it's some similar thing like LD_LIBRARY_PATH pointing to strange things whatever, interesting as in that it could be caused by such things
sinkensabe has joined #ruby
<Ox0dea> alanjf: If you're gonna rebuild, why not try trunk?
Channel6 has joined #ruby
<alanjf> jhass: Well that post seems to indicate that the problem arose from the leading ":" chatacter in C_INCLUDE_PATH, as it compiled and worked fine without it there. I also had the leading ":" in mine.
<Ox0dea> Hash#fetch_values is pretty nice.
leafybasil has joined #ruby
<alanjf> Ox0dea: Because it's too hot and cramped in there. IT's over 100F outside. :p
nobitanobi has joined #ruby
intinig has quit [Ping timeout: 276 seconds]
<alanjf> It's compiling. I'll be surprised if nuking my C_INCLUDE_PATH and CPLUS_INCLUDE_PATH vars will solve this. Those vars have been set like they are for at least 10 years. If it works I'll also try the latest git trunk.
revath has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
lavros has quit [Quit: leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mcclurmc has joined #ruby
m8 has joined #ruby
kirun has joined #ruby
allcentury has joined #ruby
hakunin has joined #ruby
pengin has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alem0lars has quit [Ping timeout: 252 seconds]
bl4ckdu5t has quit [Ping timeout: 252 seconds]
bl4ckdu5t has joined #ruby
Yiota has joined #ruby
horsecowdog has joined #ruby
someword has joined #ruby
bl4ckdu5t is now known as Guest80523
lucianosousa has joined #ruby
a346 has joined #ruby
alem0lars has joined #ruby
Vasa has joined #ruby
djbkd has quit [Remote host closed the connection]
nikhgupta has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
yqt has joined #ruby
<dgarstang> how on earth do I use the filters with the aws ruby sdk? filters = [{ name: "tag-key", values: ["enironment"] }] ?
caseypatrickdris has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<alanjf> jhass, Ox0dea: Still getting the same error.
<jhass> meh, worth a shot
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renier has joined #ruby
miah has quit [Ping timeout: 276 seconds]
nikhgupta` has quit [Ping timeout: 264 seconds]
nym has joined #ruby
<alanjf> jhass: Indeed.
<dgarstang> everything in ruby is so hard, not the least of which there are so few code examples available
simplyianm has quit [Remote host closed the connection]
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
<jhass> I actually have a similar issue https://github.com/hyperic/sigar/issues/60
lavros has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<jhass> dgarstang: s/ruby/aws-sdk/
<jhass> the docs of that suck indeed
<dgarstang> ^ maybe
edwinvdgraaf has joined #ruby
<dgarstang> i mean... there's just NO examples
<dgarstang> I'd get more matches on google for 'toothpaste aliens' than "tag-key" "tag-value" aws ruby
<dgarstang> i woudn't have to use it all if I wasn't forced to by ohai
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simplyianm has joined #ruby
horsecowdog has quit [Remote host closed the connection]
<jhass> maybe try github code search?
dopie has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
krisquigley has joined #ruby
miah has joined #ruby
tomeara has joined #ruby
timonv has joined #ruby
nertzy has joined #ruby
<alanjf> jhass, Ox0dea: Looks like I figured out a fix on my own. I was looking in src/ruby/2.2.2/ext/digest/sha1 and I noticed that there was no sha1.o, just sha1init.o and sha1ssl.o
simplyianm has quit [Remote host closed the connection]
dionysus69 has joined #ruby
lavros has quit [Quit: leaving]
dstarh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<alanjf> jhass, Ox0dea: So I looked in my make logs (good thing I enabled VERBOSE) and ran the same gcc command that built sha1init.o and sha1ssl.o adjusted to use -o sha1.o -c sha1.c instead
francoi__ has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
<jhass> odd
<Ox0dea> alanjf: You should build outside the source tree.
<jhass> anyway, might save a few poor souls by adding that to one of the stack overflow posts
<alanjf> Ten I copied the gcc line that produced sha1.so and added sha1.o to it, copied it to /pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so, and now `ruby -rdigest/sha1 -e '1'` runs without errors.
<alanjf> Seems this is a problem with the Makefile for sha1 (and sha2 and md5)
rdavila has joined #ruby
horsecowdog has joined #ruby
bruceleez has quit [Read error: Connection reset by peer]
<alanjf> Ox0dea: I know, but I was mimiking what the build process had done.
Pupeno has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
bruceleez has joined #ruby
neanderslob has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
havenwood has quit [Ping timeout: 265 seconds]
<Ox0dea> alanjf: Not what I meant; I meant that you should have invoked the initial build process from elsewhere.
<Ox0dea> It's standard practice to avoid cluttering up the source tree with compilation output.
francoi__ has quit [Ping timeout: 258 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<joneshf-laptop> So I went through poodr, and noticed something very interesting. Metz talks about using hooks as a good design practice. This does seem like a good idea (at least as presented), is this used often in practice?
havenwood has joined #ruby
<shevy> alanjf, you could comment on https://bugs.ruby-lang.org/projects/ruby-trunk/issues?set_filter=1&tracker_id=1 so that others won't run into the same bug; I also had problems related to building openssl stuff in ruby manually
balazs has joined #ruby
blackmes2 has joined #ruby
shum has joined #ruby
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
autrilla_ has joined #ruby
autrilla_ has quit [Client Quit]
Pupeno has joined #ruby
sdothum has quit [Ping timeout: 276 seconds]
<Ox0dea> joneshf-laptop: Often enough as to be worth knowing.
chinmay_dd has joined #ruby
balazs has quit [Ping timeout: 244 seconds]
duderonomy has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
bgmarx has quit [Remote host closed the connection]
<joneshf-laptop> Ox0dea, do you have any examples off hand that use this sort of design?
chinmay_dd has quit [Client Quit]
kadoppe has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
kadoppe has joined #ruby
qwertme has joined #ruby
hotpancakes has quit [Remote host closed the connection]
casadei has joined #ruby
DLSteve has joined #ruby
bin_005 has joined #ruby
mathie has quit [Ping timeout: 272 seconds]
sharpmachine has joined #ruby
Trieste has quit [Ping timeout: 272 seconds]
jackjackdripper1 has quit [Read error: Connection reset by peer]
dbussink has quit [Ping timeout: 252 seconds]
jackjackdripper has joined #ruby
revath has quit [Ping timeout: 244 seconds]
lavros has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
Mekkis has quit [Quit: ZNC - http://znc.in]
wallerdev has quit [Quit: wallerdev]
<Ox0dea> joneshf-laptop: Sequel uses extension hooks pretty heavily.
knikolov has quit [Ping timeout: 252 seconds]
Trieste has joined #ruby
Andriamanitra has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
sinkensabe has joined #ruby
ddfreyne has quit [Ping timeout: 272 seconds]
Mekkis has joined #ruby
ElderFain has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 264 seconds]
Jarboe has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
dbussink has joined #ruby
ElderFain has joined #ruby
mathie has joined #ruby
<alanjf> Ox0dea: back; yeah I know what you mean, nad yes that is better practice and it is what I tend to do and probably what I should have done with ruby here.
marr has quit [Ping timeout: 256 seconds]
ddfreyne has joined #ruby
<Ox0dea> Using them as the core of a design is probably ill-advised, but hooks are good for sprinkling in a bit of dynamic behavior where mere inheritance won't do the trick.
momomomomo has joined #ruby
knikolov has joined #ruby
Andriamanitra has joined #ruby
revath has joined #ruby
<alanjf> shevy: Thanks for the link, I'll post a comment as you suggested.
<joneshf-laptop> Ox0dea, thanks for the link, and makes sense
<shevy> alanjf \o/
<shevy> for the good of the other people
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
AlphaAtom has joined #ruby
paulcsmith has joined #ruby
pen has joined #ruby
konsolebox has quit [Remote host closed the connection]
paulcsmith has quit [Client Quit]
Vitor has quit [Remote host closed the connection]
AlphaAtom has quit [Client Quit]
mrmargol_ has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
yqt has joined #ruby
sharpmachine has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 252 seconds]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
mrmargolis has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
revath has quit [Ping timeout: 272 seconds]
bin_005_p has joined #ruby
sinkensabe has joined #ruby
sharpmachine has joined #ruby
sinkensabe has quit [Remote host closed the connection]
stoogenmeyer has joined #ruby
revath has joined #ruby
Pupeno has quit [Remote host closed the connection]
bin_005 has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
avelldiroll has quit [Ping timeout: 245 seconds]
endorphine_ has quit []
momomomomo_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<shevy> and the good of the ruby
sharpmachine has quit [Remote host closed the connection]
toretore has joined #ruby
k3asd` has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo_ is now known as momomomomo
endorphine_ has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
dopie has joined #ruby
voxxit has joined #ruby
jbomo has quit []
jacaballero has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
tomphp has joined #ruby
blackmes2 has quit [Ping timeout: 244 seconds]
jacaballero has joined #ruby
jenrzzz has joined #ruby
casadei has joined #ruby
nertzy has joined #ruby
commondream has quit [Ping timeout: 258 seconds]
anisha has quit [Quit: Leaving]
anisha has joined #ruby
finisherr has quit [Quit: finisherr]
djbkd has joined #ruby
joaomdmoura_ has joined #ruby
stoogenmeyer has quit [Ping timeout: 264 seconds]
commondream has joined #ruby
joaomdmoura has quit [Ping timeout: 276 seconds]
finisherr has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
rbowlby_ has quit [Remote host closed the connection]
mistnim has joined #ruby
<mistnim> is it normal that pry takes a lot to load? Like 2 seconds for me?
<Ox0dea> mistnim: Nah, that's about right. It does a lot.
qwertme has joined #ruby
veleno has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
nertzy has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
nobitanobi has joined #ruby
msnyon has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
joaomdmoura_ has quit [Max SendQ exceeded]
djbkd_ has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
suffice has joined #ruby
<diegoviola> my coworker: "Do you write code with Vim?", me: "Yes"
<shevy> yeah diegoviola - nobody is perfect
Guest100 has quit [Ping timeout: 252 seconds]
<RickHull> mistnim: i had require times go from 30s for one gem down to 1/2 sec after `gem clean`
<diegoviola> shevy: what do you use?
workmad3 has quit [Ping timeout: 258 seconds]
allomov has quit [Remote host closed the connection]
genpaku has quit [Ping timeout: 276 seconds]
<diegoviola> shevy: I never said I was perfect, don't ad hominem me :)
<jgt3> anyone know how to make validate_presence_of work with strict validations?
genpaku has joined #ruby
<jgt3> it’s a method from the Shoulda gem
<shevy> diegoviola nono that is not what I meant with perfect
<diegoviola> shevy: oh, sorry, I misunderstood :)
<shevy> diegoviola I meant that you use non-perfect software, hence you aren't perfect ;P
<diegoviola> lol
<shevy> I use a slightly modified bluefish 1.x variant; it's also far from perfect
<diegoviola> Vim is perfect
hinbody has quit [Quit: leaving]
<shevy> that vim extension thing is so ugly
djbkd_ has quit [Ping timeout: 276 seconds]
<diegoviola> vim source code is definitely ugly
<shevy> endif
<shevy> if &filetype
<diegoviola> but I thought the goal of neovim was to make vim's code not ugly
<shevy> if a:Forward
<shevy> endfunction
<diegoviola> one of its goals
<shevy> echohl
<jgt3> diegoviola: No, the goal of neovim is mostly to work around Bram being a stick in the mud
frem has joined #ruby
<jgt3> (iirc)
<shevy> did you want to use the word "mud"
<shevy> or another 3-character word :)
ledestin has joined #ruby
<jgt3> shevy: I’m not sure what you do with sticks in your free time
<shevy> hahaha
<mistnim> rubysts use emacs?
<diegoviola> jgt3: I'm not sure why Bram is so hard to deal with
<shevy> mistnim matz is an emacs user
<jgt3> diegoviola: I think I get it. He’s older and battle-weary
dfockler has quit [Remote host closed the connection]
francoi__ has joined #ruby
<shevy> people become generally less fun the older they get
<jgt3> and in many respects, tech should move slower than it currently is
chussenot has joined #ruby
<diegoviola> jgt3: so is Linus and I don't see people complaining too much about him
munen has quit [Quit: munen]
<jgt3> look at the current JS ecosystem
tomeara has quit [Quit: (null)]
jordanm has quit [Quit: Konversation terminated!]
<jgt3> everything is broken
blackmes2 has joined #ruby
<jgt3> but nobody cares
<jgt3> because it’s “cool”
bgmarx has joined #ruby
<dorei> jgt3: it's backward compatible broken :D
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<diegoviola> lots of people complains about Linus because he can use strong language, but I don't see a problem about patches being submitted in the linux kernel
NeverDie has quit [Read error: Connection reset by peer]
<jgt3> people complaining about Linus’ strong language should grow a pair
davedev2_ has joined #ruby
NeverDie_ has joined #ruby
<jgt3> or grow a pear
<shevy> linus does not complain about many things
qwertme has joined #ruby
<shevy> usually he complains about C++ or gnome
<diegoviola> watch that
<shevy> that covers 90% of the complaints
davedev24_ has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
munen has joined #ruby
<shevy> damn
<shevy> he has gotten a belly :(
jschoolcraft has quit [Quit: peace]
<diegoviola> shevy: he complains about crappy code too
<shevy> yeah
revath has quit [Ping timeout: 252 seconds]
<shevy> didn't I say it
<diegoviola> shevy: now you're complaining about his belly
<shevy> C++ and gnome
<shevy> :)
<diegoviola> shevy: everyone complains about things
<shevy> yes
<shevy> he has gotten fat
<shevy> look at matz, he is still slender
bootstrappm has quit [Ping timeout: 250 seconds]
<mistnim> do you think following Odin is good to learn ruby?
<shevy> what is Odin, is that a dog?
jamesaxl has joined #ruby
umgrosscol has quit [Remote host closed the connection]
<shevy> or is that a Norse god
<shevy> like Thor Wauki and Loki
<atmosx> hello
<shevy> yo atmosx
<atmosx> how's life shevy
<shevy> atmosx it is damn hot, today it was around 31°C
<shevy> the heat kills me and knocks me down :(
<jhass> jgt3: regarding your question, you're better of in #RubyOnRails
qwertme has quit [*.net *.split]
mistnim has quit [*.net *.split]
dopie has quit [*.net *.split]
Jarboe has quit [*.net *.split]
blue_deref has quit [*.net *.split]
niemcu has quit [*.net *.split]
n008f4g_ has quit [*.net *.split]
postmodern has quit [*.net *.split]
symm- has quit [*.net *.split]
diegoviola has quit [*.net *.split]
sarlalian has quit [*.net *.split]
nizmow_ has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
hectortrope has quit [*.net *.split]
stephenh has quit [*.net *.split]
existensil has quit [*.net *.split]
ss_much has quit [*.net *.split]
code_ has quit [*.net *.split]
iamayam has quit [*.net *.split]
`Nibble has quit [*.net *.split]
dualbus has quit [*.net *.split]
martinbmadsen has quit [*.net *.split]
Obfuscate has quit [*.net *.split]
Luyt_ has quit [*.net *.split]
adeponte has quit [*.net *.split]
nickjj has quit [*.net *.split]
Guest27228 has quit [*.net *.split]
j416 has quit [*.net *.split]
bhaak has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
brandon has joined #ruby
`Nibble_ has joined #ruby
francoi__ has quit [Ping timeout: 264 seconds]
bhaak has joined #ruby
sharpmachine has joined #ruby
mistnim has joined #ruby
n008f4g_ has joined #ruby
dopie has joined #ruby
Luyt_ has joined #ruby
nizmow_ has joined #ruby
brandon is now known as Guest45180
SirCmpwn has joined #ruby
qwertme has joined #ruby
mr_rich101 has joined #ruby
postmodern has joined #ruby
stephenh has joined #ruby
sarlalian has joined #ruby
hectortrope has joined #ruby
iamayam has joined #ruby
existensil has joined #ruby
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
martinbmadsen has joined #ruby
<jgt3> jhass: ah, good point. Cheers.
Obfuscate has joined #ruby
Jarboe has joined #ruby
<mistnim> it teaches you rspec from the very beginning
finisherr has quit [Quit: finisherr]
symm- has joined #ruby
simplyianm has joined #ruby
j416 has joined #ruby
<atmosx> shevy: buy a house at Ithaca, should be cheap right now.
<shevy> hehe
dualbus has joined #ruby
<shevy> but it's even hotter there!
<atmosx> NOt really, the breeze is strong... It's a wind actually.
<atmosx> the weather changes extremely fast there, it's spectular watching the clouds moving at ithaca... And hte sea is as good as any I've seen
adeponte has joined #ruby
ss_much has joined #ruby
<dudedudeman> i want to move somewhere cool :(
scottymeuk has joined #ruby
hyperjuice has joined #ruby
rbowlby has joined #ruby
<dudedudeman> texas is too damn hot
<shevy> dudedudeman go to California
<shevy> are there any really cold places in the USA actually?
wallerdev has joined #ruby
hyperjuice has quit [Remote host closed the connection]
<mistnim> north dakota
<shevy> atmosx I'd like to have access to an ocean
code_ has joined #ruby
hyperjuice has joined #ruby
sharpmachine has quit [Remote host closed the connection]
<dudedudeman> i mean, upstate newyork gets frigid, and colorado
pen has quit [Remote host closed the connection]
<dudedudeman> i guess it depends on whether or not you mean cold year round, or stupid cold during the winters
barkerd427 is now known as zz_barkerd427
<dudedudeman> most states do get all 4 seasons though
<shevy> well I guess it's hotter in Texas and California all the time
<mistnim> why not alaska?
<shevy> that should belong to canada rightfully :)
jcaho has quit [Read error: Connection reset by peer]
blackmes2 has quit [Ping timeout: 256 seconds]
jcaho has joined #ruby
stoogenmeyer has joined #ruby
duncannz has joined #ruby
_seanc_ has quit [Quit: _seanc_]
duncannz has quit [Max SendQ exceeded]
hyperjuice has quit [Ping timeout: 240 seconds]
<dudedudeman> mistnim: i wouldn't mind alaska. it's getting my wife to move there with me that would be the problem :P
bronson has quit [Remote host closed the connection]
ItSANgo has joined #ruby
lessless has joined #ruby
<atmosx> wow just got a "twelve south" typing stand. it seemed like a toy, but truth to be told it's amazing.
<atmosx> and it's attached to the macbook air so I can bring it with me everywhere withoug detaching, which is +100.
finisherr has joined #ruby
vyorkin2 has joined #ruby
<atmosx> shevy: Boston is cold IIRC
blackmes2 has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
simplyianm has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
<shevy> atmosx I have a good heat indicator
theery has quit []
<shevy> atmosx my cat. she just walked out of a room... and fell down to one side flat
<shevy> alanjf \o/ cool
<dudedudeman> bost is cold as f*4K!!!
bgmarx has quit [Remote host closed the connection]
paulcsmith has joined #ruby
<atmosx> lol
bgmarx has joined #ruby
<dudedudeman> boston is*
<alanjf> shevy: Hope it helps others.
blue_deref has joined #ruby
hotpanca_ has joined #ruby
<shevy> I hope it will; perhaps in some days you'll see a guy with a japanese name added a change at https://github.com/ruby/ruby/blob/trunk/ChangeLog
niemcu has joined #ruby
commondream has quit [Remote host closed the connection]
drew has quit [Disconnected by services]
drewo has joined #ruby
spider-mario has joined #ruby
<mistnim> do you really need to learn rspec to do web development?
allcentury has quit [Ping timeout: 276 seconds]
<yxhuvud> lol no
jgpawletko has quit [Quit: jgpawletko]
<alanjf> shevy: ah
<jhass> mistnim: but it doesn't harm at all
<alanjf> are all the ruby maintainers japanese?
<agarie> no
<alanjf> Are the founders japanese?
<atmosx> mistnim: no, but it's not hard. It doesn't even have a learning cure. Use it two days and you know everything there is to know about it.
<atmosx> mistnim: rails default is minitest though
<alanjf> (Whoever is equivilent of PErl's LArry Wall is for Ruby I mean.)
<alanjf> (bah stupid shift key)
<atmosx> alanjf: zenspider <--
<jhass> alanjf: yes
<alanjf> atmosx: For about a millisecond I nearly read hat as zend...
<atmosx> alanjf: Ryan Davis, but there are others. The original author is called Matz (Yukihiro Matsumoto o rsomething)
<alanjf> read that*
<alanjf> ah
lucianosousa_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
finisherr has quit [Quit: finisherr]
nofxx has joined #ruby
nofxx has joined #ruby
x1337807x has joined #ruby
<diegoviola> sqlalchemy in python looks more complicated than activerecord/sequel in ruby
timonv has quit [Ping timeout: 256 seconds]
lucianosousa has quit [Ping timeout: 256 seconds]
lucianosousa_ is now known as lucianosousa
<diegoviola> and I have to use it
<diegoviola> help please
<jhass> #python ?
<alanjf> Snakes.... why'd it have ot be snakes....
<diegoviola> ok
<diegoviola> my boss wants me to work on some python project
<jhass> happens
<jhass> could be worse
mrmargolis has joined #ruby
<alanjf> Could have been PHP or VB6.
* alanjf shudders violently
<diegoviola> vb6... ugh
<diegoviola> does that even exist still?
<alanjf> (or VB.NET to a lesser extent...)
ascarter has joined #ruby
<alanjf> diegoviola: Unfortunately, there is still a ton of legact VB code around.
<diegoviola> remove it all
<miah> im sure is tons of it
<alanjf> diegoviola: I have a couple of clients still using code originally written in the mid 90s or so.
<miah> no,.. what about Foxpro? =)
<diegoviola> alanjf: you should remove them all
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alanjf> IF it were up to me I'd thorw it all into the nearest /dev/null abyss
<miah> or Delphi for that matter
jenrzzz has joined #ruby
sandelius has joined #ruby
<alanjf> miah: Please don't, I thought I finally removed every last remnant of that strosity from my mind...
<alanjf> atrosity*
mrmargol_ has quit [Ping timeout: 276 seconds]
<alanjf> foxpro that is
<alanjf> Delphi was never that bad. C++ Builder was alright for it's time.
<diegoviola> alanjf: they should at the very least run that crap inside a VM on Linux and rewrite it in the mean time, then get rid of the VM
<Ox0dea> >> Symbol.all_symbols.size
<ruboto> Ox0dea # => 2511 (https://eval.in/380826)
<miah> my first job was all about netware ad foxpro
<alanjf> Both were far better than VB at any rate.
<alanjf> miah: I know your pain far too well.
<miah> s/ad/and
jackjackdripper1 has quit [Quit: Leaving.]
<miah> im thankful i dont have to install the netware client on windows95 anymore
<alanjf> Frightening.
mandarinkin has joined #ruby
<alanjf> Like a B horror film fro mthe 70s/80s but far more terrifying
<miah> was always a 50/50 chance the netware client would render the system unbootable
<alanjf> yeah
<miah> all the bizarre windows errors and then... uninstalling it.. IMPOSSIBLE
stoogenmeyer has quit [Ping timeout: 256 seconds]
<alanjf> I remember using netware client on 3.11/WFW still.
<miah> yes
<miah> we did a ton of boot off floppy netware clients
<alanjf> yep
<miah> most of our clients were small businesses like collections agencies or nursery
<miah> learned TONS. thankful its history
<alanjf> Back then I remember using it in schools a lot, like high school near me then.
AlphaAtom has joined #ruby
<alanjf> And the local community college.
<atmosx> miah: what was the netware client about?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alanjf> And a couple small offices.
* atmosx didn't have a computer in 1995, suddenly it feels like "young"
AlphaAtom has quit [Max SendQ exceeded]
<alanjf> atmosx: At the time, having a network login system
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> alanjf: ah, like ldap?
<miah> netware was a file/print/network thing in the days of 10base2 and dos
* apeiros had a computer back in 1987, fond memories
<atmosx> a centralize login scheme?
<alanjf> Sorta useful for systems loike 3.x and 9x that didn't have a good login system with their own.
<miah> yup
<alanjf> miah: Yeah exactly
havenwood has joined #ruby
AlphaAtom has joined #ruby
<atmosx> apeiros: how old where you, you're 1 year younger than IIRC.
<miah> you could do ldapish kinda stuff, and scripts to run during login
<miah> mount remote disk paths and printers
<apeiros> atmosx: 5
<apeiros> it wasn't *my* computer, mind you
<yorickpeterse> ah, some sweet home
pengin has quit [Remote host closed the connection]
<atmosx> I had a couple of friends who had some computers in lates 80s, ATARI, Commodore 64 and an Armstrad (or something).
<atmosx> apeiros: oh it figures.
<apeiros> I remember my tries to understand wtf was going on with that device :D
<Sou|cutter> apeiros: thank goodness for parents who were early computer adopters eh?
<alanjf> heh
<miah> i didnt have a computer until my teens, but i had lots of exposure to them outside of the home
<apeiros> Sou|cutter: yupp. father worked in dtp, so it was even a mac.
<miah> nice
<atmosx> apeiros: my parents were basically keeping me away from anything digital because I was kinda attracted to these things, whiel they hated them and believed that they would harm me.
workmad3 has joined #ruby
<atmosx> hence my first computer came in 1999 when I was 17, 1st year in univ.
<yorickpeterse> amazing how cat milk, some treats and combing can turn a very grumpy cat into a very content cat
gianlucadv has quit [Ping timeout: 264 seconds]
<apeiros> heh, my parents only limited the time we could use those things. and in retrospect, I think that was a good choice.
<yorickpeterse> "Oh you're back? Well, you have 3 weeks of attention to catch up on"
StephenOTT has joined #ruby
<atmosx> apeiros: you were using them just to play game right? Or did you start programming at a younger age?
<Sou|cutter> yorickpeterse: where do you get cat milk? are you milking cats?
<apeiros> atmosx: I started using hypercard very early. also did my first steps with C. but C having only english manuals, and no internet back then, ended rather quickly.
<Sou|cutter> atmosx: I was programming LogoWriter at age 6 :)
<atmosx> Sou|cutter: and what do you program now, age...?
<yorickpeterse> Sou|cutter: at the grocery store
<yorickpeterse> it's milk for cats
<atmosx> apeiros: cool
<jhass> it sounds like you people all want to fill #ruby-offtopic with some life ;P
<yorickpeterse> not milk _from_ cats
<miah> logo was fun
<Sou|cutter> atmosx: Still LogoWriter, and I'm 7 now
<apeiros> jhass: aaahaha, yes, totally :D
<miah> jhass: lol ya it was quiet in here
<atmosx> jhass: anther # ...jesus we're not *that* many.
<Sou|cutter> j/k. I'm in my early thirties
<atmosx> Sou|cutter: programmer?
nobitanobi has quit []
<Sou|cutter> I'm in #ruby right? :) (sorry for the OT btw)
nobitanobi has joined #ruby
<atmosx> Sou|cutter: I knew you were a Haskell programmer.
krisquigley has joined #ruby
Vasa has quit [Quit: ChatZilla 0.9.91.1 [Pale Moon 25.5.0/20150607220353]]
baweaver has quit []
rhllor has joined #ruby
claw_ has joined #ruby
claw has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
momomomomo has joined #ruby
towski_ has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 252 seconds]
bootstrappm has joined #ruby
<shevy> he gave his soul away to monads
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has joined #ruby
A124 has joined #ruby
momomomomo has quit [Client Quit]
failshell has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
sdwrage has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
learath has left #ruby [#ruby]
allomov has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
munen has quit [Quit: munen]
jackjackdripper has joined #ruby
aryaching has quit []
wildroman2 has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 252 seconds]
munen has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes2 has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
blackmes2 has joined #ruby
bronson has joined #ruby
griffindy has quit [Client Quit]
mdz_ has quit [Remote host closed the connection]
munen has quit [Ping timeout: 264 seconds]
horsecowdog has quit [Remote host closed the connection]
bmurt has quit []
ascarter has joined #ruby
jerius has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
<diegoviola> "You use Linux? You use Vim to write code?" -- Why do I always get these type of questions from coworkers
bgmarx has quit [Remote host closed the connection]
casadei has joined #ruby
dfockler has joined #ruby
swgillespie has joined #ruby
<apeiros> diegoviola: because those questions allow you to spread insight and knowledge
Musashi007 has joined #ruby
sepp2k has quit [Quit: Leaving.]
bin_005_p has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
hedgecore has joined #ruby
<Ox0dea> diegoviola: What's in your @a?
diegoviola has quit [Quit: WeeChat 1.2]
sandstrom has joined #ruby
balazs has joined #ruby
<Ox0dea> A macro to quit WeeChat? That doesn't seem very useful.
casadei has quit [Ping timeout: 276 seconds]
endorphine_ has quit []
blue_deref has quit [Quit: bbn]
<atmosx> lol
rodfersou has quit [Quit: leaving]
_ht has quit [Quit: Konversation terminated!]
<atmosx> What might have been is an abstraction, Remaining a perpetual possibility, Only in a world of speculation.
ndrei has quit [Ping timeout: 264 seconds]
<mozzarella> what's your uptime, bruh?
sandstrom has quit [Client Quit]
<atmosx> who's uptime?
<mozzarella> you mean whose?
<atmosx> yes, sorry
bgmarx has joined #ruby
pen has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lavros has quit [Read error: Connection reset by peer]
<cj> I'm uptime!
dopie has quit [Quit: Leaving]
balazs has quit [Ping timeout: 255 seconds]
<mozzarella> I found your guy
banister has joined #ruby
lavros has joined #ruby
<dfockler> What's up time?
<dfockler> What's the best way to share a db connection between multiple files in a library?
<cj> chillin' smokin' a bud
<dfockler> cj: that is one way to do it I guess
sandstrom has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jphenow has joined #ruby
<RickHull> don't bogart that db handle
<cj> what kind of files are these? .rb files that have a libmysqlclient-type interface to the db?
ldnunes has quit [Quit: Leaving]
<dfockler> .arbys files
<dfockler> using the Sequel gem
<apeiros> dfockler: pass it around
<apeiros> whatever uses your library being responsible
<cj> I'm not a ruby guy, but let me think... do these .arbys files share the same process execution scope?
[H]unt3r has quit []
rippa has quit [Ping timeout: 276 seconds]
<dfockler> apeiros: as a constant, or a method call? does it matter?
Marsupermammal has joined #ruby
endorphine_ has joined #ruby
<apeiros> dfockler: as an argument to the constructor
<cj> constants are not good for db connections. use the instance of the db access object to issue queries.
<apeiros> dfockler: but given that you talk about "files in a library" instead of "classes in a library", I'd assume you're just starting to code ruby?
paulcsmith has quit [Quit: Be back later ...]
<dfockler> in a sense
<atmosx> dfockler: you create an instead of a ConnectToDatabase class and you pass it around. See Sequel as already mentioned.
<atmosx> s/instead/instance
* atmosx needs to get some sleep
<shevy> dfockler possibly via distributed ruby drb http://ruby-doc.org/stdlib-1.9.3/libdoc/drb/rdoc/DRb.html
dagda1_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> shevy: isn't that an overkill?
<apeiros> dfockler: you can always put your stuff on github and ask for review
<shevy> atmosx overkill would be to use java!
codecop has quit [Remote host closed the connection]
bantic has quit [Quit: bantic]
<toretore> sharing db connection via drb sounds like a great idea
m8 has quit [Quit: Sto andando via]
bin_005 has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
<apeiros> sarcasm, I hope?
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfockler> I just need to allow different classes to make calls to the database, and I don't want to have the connection code in every class
<toretore> indeed apeiros
<apeiros> dfockler: as said - argument to the constructor
hotpanca_ has quit [Remote host closed the connection]
<toretore> dfockler: how about gisting the code you have now so we can see what you're working with?
jpfuentes2 has quit [Ping timeout: 250 seconds]
<dfockler> I can, it's not a true gem, just a lib that's getting used by an API, I'll put up a gist
endorphine_ has quit []
<atmosx> dfockler: what kind of DB? mysql?
dagda1_ has quit [Client Quit]
<dfockler> postgresql
robbyoconnor has joined #ruby
<dfockler> atmosx: Oh I said I was using that :)
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmes2 has quit [Quit: WeeChat 1.2]
preyalone has quit [Quit: Connection closed for inactivity]
mistnim has quit [Remote host closed the connection]
<atmosx> dfockler: okay, so you create the connection, require that file and you have access to that object.. you just pass the object around and that's about it.
x1337807x has joined #ruby
crdpink2 has quit [Quit: q term]
arturmartins has joined #ruby
<toretore> gotta inverse that control tho
x1337807x has quit [Client Quit]
<apeiros> the library user should control the connection
<dfockler> atmosx: right now I have it as a class constant so like MyClass::DB, and then require the myclass.rb file
code1o6 has joined #ruby
vyorkin2 has quit [Quit: WeeChat 1.1.1]
duggiefresh has quit [Remote host closed the connection]
nertzy has joined #ruby
idafyaid has quit [Ping timeout: 256 seconds]
crdpink has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 276 seconds]
agarie has quit []
<atmosx> shevy: no :-P
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> dfockler: that works too but it's not thread-safe, if I'm getting what you did.
Apocalypse has quit [Quit: Input/Output Error]
failshell has quit [Remote host closed the connection]
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
Marsupermammal has joined #ruby
nickjj has joined #ruby
<atmosx> night all
<dfockler> atmosx: thanks for the help
hotpancakes has joined #ruby
pengin has joined #ruby
_seanc_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
bantic has joined #ruby
commondream has joined #ruby
mary5030 has quit [Remote host closed the connection]
joaomdmoura has joined #ruby
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
avelldiroll has joined #ruby
Scroff has joined #ruby
<Ox0dea> >> 6.to_s(1) == '||||||'
<ruboto> Ox0dea # => invalid radix 1 (ArgumentError) ...check link for more (https://eval.in/380840)
DEA7TH_ has quit [Ping timeout: 272 seconds]
<Ox0dea> Ruby is anti-caveman.
<jhass> the issue with base 1 is how to present 0
hinbody has joined #ruby
<Ox0dea> Empty string seems like it ought to do.
<jhass> yeah but then none of the other bases returns empty string
<jhass> also math heads disagree about it greatly afaik :P
<Ox0dea> >> ''.to_i(10)
<ruboto> Ox0dea # => 0 (https://eval.in/380842)
Notte has joined #ruby
<jhass> >> '☃'.to_i
<ruboto> jhass # => 0 (https://eval.in/380844)
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> we need a UNICODE_SNOWMAN constant.
pietr0 has joined #ruby
<apeiros> Ox0dea: space would just be a different representation of 0, so base2 again
<adaedra> Let's make a gem for that.
FernandoBasso has joined #ruby
<apeiros> and you'd need to introduce a new boundary character for numbers in text :)
<Ox0dea> I just want ∀ n ∈ ℝ: 10ₙ = n₁₀ to hold, dammit. :/
babykosh has joined #ruby
<dfockler> here is a simplified example of what I'm doing https://gist.github.com/dfockler/9a8c252eac69cc7b4f82
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dfockler> Is this a good idea, or should I do something different?
<Ox0dea> It's like the Euler's identity of programming.
<toretore> don't do require('./job'), do require('job') and set the path accordingly
zz_barkerd427 is now known as barkerd427
scripore has quit [Quit: This computer has gone to sleep]
<dfockler> toretore: how do you do that for local files?
wldcordeiro has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> adaedra: Fun fact: LOLCODE has "constants" for every Unicode character.
<toretore> dfockler: ruby -I. file.rb
veinofstars has quit [Quit: veinofstars]
<adaedra> Given that every unicode character has a name, seems normal
robbyoconnor has quit [Quit: Konversation terminated!]
<toretore> dfockler: def initialize(jobs, db);
<Ox0dea> adaedra: You can do VISIBLE ":[BLACK SNOWMAN]" in LOLCODE.
<toretore> Batch.new(jobs, Sequel.connect(...))
tomphp has joined #ruby
<Ox0dea> Not exactly "normal".
jenrzzz has quit [Ping timeout: 240 seconds]
jgt3 has joined #ruby
axl_ has quit [Quit: axl_]
ruv has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
veinofstars has joined #ruby
lavros has quit [Quit: leaving]
mister_solo has joined #ruby
chussenot has quit [Quit: chussenot]
<dfockler> toretore: so like apeiros said, just pass it in as an argument
<toretore> yes
commondream has quit [Remote host closed the connection]
<toretore> i'd probably not interact with the db from inside those classes in the first place
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
kaleido has joined #ruby
<toretore> seems to me like the Job class should only be tasked with fetching the remote data
jgt3 has quit [Ping timeout: 276 seconds]
<dfockler> toretore: should I pass the results to another class to do database storage?
tomphp_ has joined #ruby
<toretore> that's what i'd do
commondream has joined #ruby
spyderman4g63 has quit []
bgmarx_ has joined #ruby
rhllor has quit [Quit: rhllor]
tomphp_ has quit [Client Quit]
tomphp has quit [Ping timeout: 256 seconds]
<toretore> this way, any thread-unsafetyness of the db client doesn't matter either if you decide to parallelize later
<dfockler> toretore: sure, it just seems weird if there are multiple different classes to pass different kinds of data to be stored
mister_solo has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
th_masv has joined #ruby
<toretore> you can still have the concept of a "job" that knows how to talk to the db, just separate from the other stuff
bgmarx has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
decoponyo has joined #ruby
dronov has joined #ruby
anisha has quit [Quit: Leaving]
dronov has quit [Quit: WeeChat 1.2]
decoponio has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
mrmargolis has quit [Remote host closed the connection]
jphenow has quit [Quit: Be back later ...]
adimircolen has quit []
xxneolithicxx has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
nertzy has joined #ruby
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbowlby has quit [Remote host closed the connection]
gamename has quit [Remote host closed the connection]
dgarstang has quit [Ping timeout: 250 seconds]
rbowlby has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
jphenow has joined #ruby
rbowlby has quit [Remote host closed the connection]
niemcu has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
hinbody has quit [Quit: leaving]
devdazed has quit [Ping timeout: 276 seconds]
JakFrist has joined #ruby
axl_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
axl_ has quit [Client Quit]
iamninja has joined #ruby
qwertme has joined #ruby
rbowlby has joined #ruby
JamesDH has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
mandarinkin has quit [Quit: Leaving]
someword has quit [Quit: Leaving.]
<adaedra> :3
centrx has joined #ruby
Marsupermammal has joined #ruby
dented42 has joined #ruby
endash has quit [Ping timeout: 265 seconds]
idafyaid has joined #ruby
endash has joined #ruby
jenrzzz has joined #ruby
commondream has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> havenwood: postmodern: i'm having some issues with gems that I think is related to chruby
Deele has quit [Ping timeout: 256 seconds]
<RickHull> require times are super high for some combinations of gems and files. profiling, I see a lot of Gem::Specification#conflicts
<RickHull> my setup is a little quirky, so i'm probably doing something "wrong"
Pupeno has joined #ruby
<RickHull> my main user is using rubies installed to /opt/rubies, and this user does a lot of development, and likes to be able to install gems locally to homedir
skade has joined #ruby
<RickHull> this machine also supports other users that aren't doing development, but want to use the "app" i'm running. so that's why i'm even using chruby at system level
xxneolithicxx has joined #ruby
<RickHull> as such, my user has a GEM_HOME pointing to homedir, but GEM_PATH has one entry corresponding to GEM_HOME, and also another corresponding to /opt/rubies
tubuliferous_ has joined #ruby
A205B064 has joined #ruby
<RickHull> I think the two GEM_PATH entries are related to the Specification#conflicts
sdothum has joined #ruby
<RickHull> If I login as root, just using system ruby and gems, none of this manifests
grzywacz has joined #ruby
<RickHull> ah, found #chruby
shum has quit [Ping timeout: 276 seconds]
jphenow has quit [Quit: Be back later ...]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aaeron has quit [Quit: Leaving.]
aaeron has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
munen has joined #ruby
gusrub has quit [Ping timeout: 250 seconds]
j4cknewt has joined #ruby
varunwachaspati has quit [Ping timeout: 264 seconds]
bgmarx_ has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
krisquigley has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
kodnin has joined #ruby
munen has quit [Client Quit]
failshell has joined #ruby
casadei has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
lolmaus has quit [Ping timeout: 256 seconds]
<Ox0dea> adaedra: Come on, guy.
Pupeno has quit [Remote host closed the connection]
<adaedra> :3
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
pragmatism has joined #ruby
Soda has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
<pragmatism> When the hell did the #rubylang channel become private?
x1337807x has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
idafyaid has quit [Remote host closed the connection]
<RickHull> about 2 weeks ago when #ruby-lang was merged into here
<RickHull> assuming you mean #ruby-lang
idafyaid has joined #ruby
arooni-mobile has joined #ruby
munen has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
<Ox0dea> pragmatism: "Grant me the serenity to accept the things I cannot change."
<pragmatism> Ox0dea What?
<pragmatism> RickHull Thanks.
casadei has quit [Ping timeout: 272 seconds]
<pragmatism> Glad the channels finally merged.
scripore has joined #ruby
JakFrist has joined #ruby
<Ox0dea> pragmatism: Then why has #ruby-lang's becoming private perturbed you so?
Cache_Money has quit [Quit: Cache_Money]
jacaballero has joined #ruby
kodnin has quit [Quit: leaving]
vdamewood has joined #ruby
Spami_ has joined #ruby
a346 has quit [Quit: a346]
rippa has joined #ruby
rubie_ has joined #ruby
bantic has quit [Quit: bantic]
wookiehangover has quit [Ping timeout: 246 seconds]
mcclurmc_ has joined #ruby
commondream has joined #ruby
JakFrist has quit [Client Quit]
Spami has quit [Read error: Connection reset by peer]
joaomdmoura has joined #ruby
j4cknewt has quit [Ping timeout: 256 seconds]
DLSteve has quit [Ping timeout: 246 seconds]
rubie has quit [Read error: Connection reset by peer]
<RickHull> Ox0dea: If i had to guess, the perturbation became serenity upon learning of the merge
Asher has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
Filete has joined #ruby
mistermo_ has joined #ruby
<shevy> pragmatism Ox0dea is the channel philosopher
wookiehangover has joined #ruby
<shevy> pragmatism the initial proposal to unify the two has happened by jhass here
<shevy> (the two channels, that is)
<pragmatism> thanks shevy
blue_deref has joined #ruby
<shevy> adaedra I see you are extending ruby's usefulness https://github.com/adaedra/unicode-snowman
<RickHull> not getting any help in #chruby yet. can anyone tell me if my `gem env` is sane? https://gist.github.com/rickhull/eb94929874636a0cbbf6
munen has quit [Quit: munen]
<adaedra> shevy: ;)
freerobby has joined #ruby
<Ox0dea> "ARABIC LIGATURE UIGHUR KIRGHIZ YEH WITH HAMZA ABOVE WITH ALEF MAKSURA ISOLATED FORM"
<Ox0dea> Go home, Unicode.
<adaedra> :D
munen has joined #ruby
dionysus69 has quit [Quit: dionysus69]
hardlin3r has joined #ruby
<lucianosousa> RickHull: looks fine. what is happening?
<adaedra> So, CodeClimate keeps examining only my version file
mistermocha has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
<Ox0dea> adaedra: For unicode-snowman, or?
JDiPierro has quit [Remote host closed the connection]
<adaedra> no, another project
DLSteve has joined #ruby
Asher has joined #ruby
<RickHull> lucianosousa: see the profiler output
Scroff has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
<adaedra> Ox0dea: codeclimate.com/github/adaedra/tramway/code
ogpastaling has quit [Remote host closed the connection]
<RickHull> lucianosousa: basically doing some requires as root in a cleaner environment, takes well under a second
<RickHull> as my normal user, it takes 13 seconds
<RickHull> and with profiler on, 50 seconds
evanjs has quit [Remote host closed the connection]
<lucianosousa> I see
jgt3 has joined #ruby
<RickHull> the big slowdown is rubygems trying to handle Gem::Specification#conflicts
<RickHull> (to my reading)
<RickHull> let me post the same output for root user, where things are normal
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
towski__ has joined #ruby
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lucianosousa> I do not have any shell path config in my one
thelastinuit has quit [Remote host closed the connection]
M-Technic has quit [Ping timeout: 252 seconds]
pocketprotector has quit [Ping timeout: 252 seconds]
<lucianosousa> in yours looks like you have 3 different paths for bin files
rubie_ has quit [Ping timeout: 265 seconds]
rubie has joined #ruby
<RickHull> yeah
towski_ has quit [Ping timeout: 272 seconds]
<lucianosousa> I can imagine that happens some strange problem about it
M-Technic has joined #ruby
<lucianosousa> conflict with ruby in your system and rvm
<lucianosousa> are you using linux, right?
jgt3 has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
<lucianosousa> can you check if you have a system ruby pack installed?
ruurd has joined #ruby
<lucianosousa> in your root it works fine because u do not have rvm there
<lucianosousa> or chruby
<RickHull> using linux and chruby
kirun has quit [Quit: Client exiting]
<RickHull> and root is using chruby's ruby
pocketprotector has joined #ruby
francois_ has joined #ruby
<ruurd> why? why oh why?
<RickHull> on debian, no ruby packages installed
sandstrom has quit [Quit: My computer has gone to sleep.]
<ruurd> if it does not work on a regular user it's almost always a rights problem
bruno- has joined #ruby
<lucianosousa> it means, two chruby installations?
<jhass> RickHull: btw you should tell where you crosspost and keep all sides updated about made suggestions
<RickHull> chruby is installed once, to a system location. /usr/local/share or something
<RickHull> ruby-install to install multiple rubies to system location
ruurd has quit [Client Quit]
<lucianosousa> but you have another ruby installation in your user path
<shevy> my brain is currently not working. if I have a file that could be called "foo.png" but also "foo.jpg", and I want to obtain only "foo", what to use?
gusrub has quit [Ping timeout: 245 seconds]
<lucianosousa> - /home/rwh/.gem/ruby/2.1.3/bin
hightower4 has joined #ruby
<RickHull> lucianosousa: that's just for gems i believe? i did have a ruby installed to homedir
<RickHull> but removed it
CloCkWeRX has left #ruby [#ruby]
<jhass> shevy: nested File.basename?
<adaedra> shevy: a brain
<lucianosousa> for gems I think is the gem path
<lucianosousa> gems, sorry
<RickHull> jhass: thx, will do
francois_ has quit [Ping timeout: 256 seconds]
rdavila has quit [Quit: rdavila]
skade has quit [Quit: Computer has gone to sleep.]
<jhass> >> File.basename(File.basename("foo.png", ".jpg"), ".png")
<ruboto> jhass # => "foo" (https://eval.in/380864)
<jhass> >> File.basename(File.basename("foo.jpg", ".jpg"), ".png")
<ruboto> jhass # => "foo" (https://eval.in/380865)
<havenwood> When there are more gems available it takes longer to do conflict resolution. Especially in RubyGems 2.2.2 since it doesn't have the 2.3.0 cache resolution speed fix: https://github.com/rubygems/rubygems/pull/842
mistergibson has quit [Quit: Leaving]
JDiPierro has joined #ruby
<hightower4> Hey btw, we're a Ruby/Perl/Python shop and are looking for a couple Ruby (not Rails) developers to join the team. If interested, please msg me in private.
<shevy> jhass aaah that was it indeed, thanks
<havenwood> As mentioned in #chruby, update RubyGems to the latest version for security fixes as well as bug fixes.
<RickHull> havenwood: yes, thanks, i will try the newer rubygems
<RickHull> i'm still not convinced there isn't something wrong with my setup though
<lucianosousa> you guys like chruby?
<havenwood> lucianosousa: yup
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lucianosousa> I never had a chance to it :)
ruurd has joined #ruby
<lucianosousa> always with rvm
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
babykosh has quit [Quit: babykosh]
<ruurd> RickHull: don't run things as root if you do not absolutely need to.
sandstrom has joined #ruby
<RickHull> ruurd: thanks for the tip :) but when installing things at the system level, you need to
<havenwood> lucianosousa: RVM actually does support using chruby for switching Rubies.
crdpink has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
crdpink has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink has quit [Client Quit]
crdpink has joined #ruby
<RickHull> havenwood: ok, by only using a single GEM_PATH, I get expected behavior
jenrzzz has joined #ruby
<ruurd> installing is a different thing, yes, some dependencies can need root rights but that is really different from running some application you made in ruby or whatever as root which is a bad plan
<RickHull> ruurd: thanks, i'm not running my app as root
<ruurd> Good.
baweaver has joined #ruby
<havenwood> RickHull: The more gems the more it slows down. Check the benchmark on the PR I linked.
JDiPierro has quit [Remote host closed the connection]
<ruurd> What happens if you move things around in de GEM_PATH?
<RickHull> havenwood: i suspect it's not just gem count
<RickHull> but literally having multiple GEM_PATH entries
baweaver has quit [Remote host closed the connection]
<RickHull> that generates all the conflicts
nobitanobi has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
<havenwood> RickHull: Try some empty GEM_PATHS, I doubt you can reproduce.
someword has joined #ruby
<ruurd> Rick do you have a log or backtrace or console message I can look ar?
<ruurd> r>t?
<havenwood> RickHull: Though installing latest RubyGems is the best way to confirm. ;)
mistermo_ has quit [Remote host closed the connection]
<RickHull> havenwood: what i'm getting at is, it might better to avoid the conflicts rather than resolve them
qwertme has joined #ruby
balazs has joined #ruby
<RickHull> i think having to scan multiple paths, where the same gem (and various versions) are installed to both, generates the vast bulk of conflicts
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> that multiple GEM_PATH entries is a feature that comes with a cost, the cost of which is reduced in 2.2.2
rbowlby has quit [Remote host closed the connection]
<RickHull> anyways, updating :)
bgmarx has joined #ruby
NeverDie_ has quit [Ping timeout: 265 seconds]
<dfockler> So after changing things around with the shared DB, I have something like this https://gist.github.com/dfockler/9a8c252eac69cc7b4f82
<havenwood> Everyone else upgrade RubyGems too if you haven't already! CVEs!!: gem update --system
<dfockler> toretore: is this what you were talking about?
<havenwood> (Unless you're using some package manager RubyGems. >.>)
Marsupermammal has joined #ruby
roolo_ has quit [Remote host closed the connection]
crdpink has quit [Ping timeout: 256 seconds]
balazs has quit [Ping timeout: 245 seconds]
crdpink has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
crdpink has joined #ruby
someword has quit [Quit: Leaving.]
x1337807x has joined #ruby
hyperjuice has joined #ruby
JDiPierro has joined #ruby
hyperjuice has quit [Client Quit]
gusrub has joined #ruby
<shevy> what is the gemv
<shevy> I am on 2.4.7
<dfockler> 2.4.8
<shevy> ok
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> there we go: 2.4.8 is now installed here \o/
jpfuentes2 has joined #ruby
<centrx> I knew you could do it!
<shevy> yeah
nofxx has quit [Remote host closed the connection]
<shevy> I just do "urla rubygems" and it opens the link to rubygems
<shevy> then I fetch the URL, and do "ue rubygems" and it updates with said link
senayar has joined #ruby
<centrx> hmm, so much magic it sounds like rails
<Ox0dea> Does main not being a Module make it impossible to "globally refine" const_missing?
<shevy> then "ecompile rubygems" and it installs it
<shevy> centrx oh it's almost perfect! that I have to manually fetch the URL is bad, I have to write something that checks for updates in a reliable way
jhooker has quit [Ping timeout: 252 seconds]
jhooker has joined #ruby
ruurd has quit [Quit: Zzzzz z zz ...]
<Ox0dea> method_missing can be refined on Object to do one's black magic in a box, but what about const_missing?
<Ox0dea> >> [method(:method_missing), method(:const_missing)]
<ruboto> Ox0dea # => undefined method `const_missing' for class `Object' (NameError) ...check link for more (https://eval.in/380866)
<centrx> Ox0dea, It looks like const_missing is only called when used with the scope resolution operator? ::
veinofstars has quit [Quit: veinofstars]
<Ox0dea> But...
<Ox0dea> >> def Object.const_missing(c) :ok end; Foo
<ruboto> Ox0dea # => :ok (https://eval.in/380867)
<Ox0dea> I'd like it to be a Refinement, though, so I can't define it directly on Object.
NeverDie has joined #ruby
k3asd` has quit [Ping timeout: 276 seconds]
pietr0 has quit [Quit: pietr0]
bin_005 has quit [Ping timeout: 256 seconds]
<centrx> I don't follow, can't you make a refinement that refines Object?
c355E3B has quit [Quit: Connection closed for inactivity]
bin_005 has joined #ruby
<Ox0dea> const_missing comes from Module, not Object.
arooni-mobile has quit [Ping timeout: 256 seconds]
<Ox0dea> But it's not like that prevents it being called at the top level, as indicated in the example above.
<Ox0dea> Despite main not being a Module.
RobertBirnie has joined #ruby
<centrx> but the :: is not used on plain Objects
<centrx> MyClass::TEST
Deele has joined #ruby
<centrx> MyModule::TEST
<centrx> Class includes Module
grzywacz has quit [Ping timeout: 256 seconds]
<centrx> or descends from rather
<centrx> It seems like just running "MYCONST" in irb (main) does something different
<centrx> not calling const_missing?
lucianosousa has quit [Quit: lucianosousa]
<Ox0dea> I don't see how irb has anything to do with it.
<centrx> ok sorry I just meant main
michael_mbp has quit [Excess Flood]
<centrx> I never write plain scripts like that
michael_mbp has joined #ruby
<Ox0dea> Huh?
<Ox0dea> >> self
arooni-mobile has joined #ruby
<ruboto> Ox0dea # => main (https://eval.in/380868)
<centrx> Normally use classes/object-oriented programming
nahtnam has joined #ruby
<centrx> that may make more sense for what you're doing
<centrx> Then you don't need to concern yourself with main
<centrx> you can just make a module/class
<Ox0dea> What handles missing constants at the top level?
<Ox0dea> Whose const_missing method gets called here?
<Ox0dea> >> Foo
<ruboto> Ox0dea # => uninitialized constant Foo (NameError) ...check link for more (https://eval.in/380869)
<jhass> Object's?
munen has quit [Quit: munen]
<Ox0dea> >> method(:const_missing)
<ruboto> Ox0dea # => undefined method `const_missing' for class `Object' (NameError) ...check link for more (https://eval.in/380870)
<centrx> it might just be local scope, so no handling
<centrx> >> self::FOO
<ruboto> centrx # => main is not a class/module (TypeError) ...check link for more (https://eval.in/380871)
Spami_ has quit [Quit: Leaving]
someword has joined #ruby
<Ox0dea> We all appear to be out of our depth.
<centrx> at least we're not drowning
Spami has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> >> class Object; def self.const_missing(const); puts "hi"; super; end; end; Foo
<ruboto> jhass # => hi ...check link for more (https://eval.in/380872)
<Ox0dea> jhass: Now how do I do that inside a refinement?
<jhass> refine Object? no idea if that works
<Ox0dea> It works for method_missing, but not const_missing. :/
rbowlby has joined #ruby
<jhass> mmh, BasicObject's gets called too if defined
someword has quit [Client Quit]
<jhass> does something like refine Object.singleton_class work?
nobitanobi has joined #ruby
bronson has quit [Remote host closed the connection]
<gambl0re> what do you call those people at popular tourist places trying to sell you stuff?
<Ox0dea> gambl0re: Hawkers?
claw_ has quit [Read error: No route to host]
<Ox0dea> jhass: I suspect it's just another limitation of refinements. :/
<dfockler> is require_relative ok to use for relative files?
nobitanobi has quit [Remote host closed the connection]
<jhass> if there's a strong reason you can't properly setup $LOAD_PATH, yes
edwinvdg_ has quit [Remote host closed the connection]
<dfockler> alright, thanks
arooni-mobile has quit [Ping timeout: 246 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
Musashi007 has joined #ruby
nobitanobi has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
podman has quit [Quit: Connection closed for inactivity]
bgmarx has quit [Remote host closed the connection]
bronson has joined #ruby
rhllor has joined #ruby
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
JDiPierro has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
JoshL has quit []
bruceleez has quit [Ping timeout: 245 seconds]
vdamewood has quit [Quit: Life beckons.]
dfinninger has quit []
dfockler has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
pengin has quit [Remote host closed the connection]
jenrzzz has joined #ruby
LicHacker has joined #ruby
NeverDie has quit [Ping timeout: 250 seconds]
vickleton has quit [Quit: Ex-Chat]
vdamewood has joined #ruby
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babykosh has joined #ruby
babykosh has quit [Client Quit]
bkxd has joined #ruby
cmisenas has joined #ruby