apeiros changed the topic of #ruby to: 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, other public logging is prohibited
zachrab has joined #ruby
djbkd has joined #ruby
zorak8 has quit [Ping timeout: 250 seconds]
sevenseacat has joined #ruby
gusrub has quit [Quit: Leaving]
krisquigley has quit [Ping timeout: 264 seconds]
dfinninger has quit [Remote host closed the connection]
<ismaelga> >>> puts 1
<ruboto> ismaelga # => /tmp/execpad-e4dcef85e3a4/source-e4dcef85e3a4:2: syntax error, unexpected '>' ...check link for more (https://eval.in/314698)
<ismaelga> > 1
<ismaelga> >> 1
<ruboto> ismaelga # => 1 (https://eval.in/314699)
zachrab has quit [Ping timeout: 248 seconds]
<ismaelga> 159.98 + 79.99
<ismaelga> >> 159.98 + 79.99
<ruboto> ismaelga # => 239.96999999999997 (https://eval.in/314700)
jeramy_s has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<ismaelga> do you guys think this is a bug?
<weaksauce> ismaelga no
<sevenseacat> no
<ismaelga> in ruby 1.9 and jruby it returns 139.97
<sevenseacat> welcome to floating point numbers
snockerton has quit [Quit: Leaving.]
<shevy> better than floating cats
<ismaelga> there shouldn't be any precision issues here since I'm only adding...
<ismaelga> lol
<jhass> ismaelga: addition totally has precision errors on floats too
<ismaelga> even ruby 1.9.3 giving the right results you guys think it's not a bug on ruby 2?
<sevenseacat> nope.
<ismaelga> ruby 2.0 also gives the right result
<weaksauce> I just did it on my machine and it gave the non extended
<weaksauce> 2.2
mroach has quit [Quit: mroach]
chipotle has joined #ruby
<jhass> 19>> 159.98 + 79.99
<ruboto> jhass # => 239.96999999999997 (https://eval.in/314701)
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> 32bit vs 64bit I I guess
zorak8 has joined #ruby
<weaksauce> hm I just did it on 2.1 and it did it the extended way
<ismaelga> whaat. It's working on the same console I was using before with 2.2.1 :o
<jhass> yeah, dunno, I get non-truncated everywhere
MyGreenP1 has joined #ruby
<ismaelga> So... Yeah. I will just ignore this. It's beyond my scope :p
djbkd has quit [Remote host closed the connection]
<weaksauce> well I get it for anything < 2.2
<ismaelga> black magic
psy_ has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
<jhass> http://en.wikipedia.org/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding goes a bit into the why
<weaksauce> look up floating point representation ismaelga
<weaksauce> ^
<ismaelga> ok, I guess it must depend on the actual SO or something
<ismaelga> I know I know. Thanks guys for the sanity check
nettoweb has joined #ruby
icebourg has quit []
<jhass> if it's money keep it in cents as long as possible or use BigDecimal or the money gem
aphprentice has quit [Remote host closed the connection]
bruno- has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
<ismaelga> jhass: You are right. I'm actually being stupid. I store it on the DB as cents but here in this specific case I was using float numbers =.=
MyGreenP1 has quit [Ping timeout: 246 seconds]
B1n4r10 has joined #ruby
psy_ has joined #ruby
zacts has joined #ruby
_Andres has joined #ruby
FernandoBasso has quit [Quit: leaving]
<eam> that would be non cents
djbkd has quit [Remote host closed the connection]
AlphaAtom has quit [Ping timeout: 245 seconds]
dseitz has joined #ruby
evanjs has joined #ruby
astrobunny has joined #ruby
tosbourn has joined #ruby
djbkd has joined #ruby
jottr_ has quit [Quit: WeeChat 1.1.1]
MatthewsFace has quit [Remote host closed the connection]
marr has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
jottr has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
tosbourn has quit [Ping timeout: 245 seconds]
evanjs has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 246 seconds]
icarus has quit [Remote host closed the connection]
Feyn has joined #ruby
failshell has quit [Remote host closed the connection]
musashi1 has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
chridal1 has joined #ruby
eytanfb has joined #ruby
psy_ has quit [Read error: No route to host]
psy_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
chridal1 has quit [Ping timeout: 265 seconds]
iotouch has joined #ruby
mroach has joined #ruby
happygilmoregent has joined #ruby
<happygilmoregent> anyone having issues with rails?
jottr has quit [Ping timeout: 256 seconds]
<jhass> no, I don't
<sevenseacat> thats bague.
<sevenseacat> vague even.
<havenwood> happygilmoregent: In #rubyonrails a higher percent of people would be.
<happygilmoregent> thnks
happygilmoregent has left #ruby [#ruby]
<jhass> we decided somwhere that I'm anyone. I currently don't have issues with Rails. I think their question is fully answered
hazelux has joined #ruby
lukec has quit [Quit: lukec]
havox has joined #ruby
wallerdev has joined #ruby
RegulationD has joined #ruby
benlieb has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
hazelux has quit [Ping timeout: 264 seconds]
keen__ has quit [Read error: Connection reset by peer]
keen__ has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
havenwood has quit [Ping timeout: 240 seconds]
iotouch has joined #ruby
havenwood has joined #ruby
oetjenj has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
ismaelga has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 250 seconds]
riskish has joined #ruby
arescorpio has joined #ruby
fxck has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
Guest9823 has joined #ruby
astrobunny has joined #ruby
lidenskap has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
ohaibbq has quit [Remote host closed the connection]
freerobby has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
jud has quit [Quit: Leaving]
mleung has quit [Quit: mleung]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
mrmargolis has joined #ruby
teddyp1cker has joined #ruby
oetjenj has joined #ruby
zachrab has joined #ruby
dfinninger has joined #ruby
longfeet has joined #ruby
mrmargol_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
Matix has quit [Quit: Leaving]
teddyp1cker has quit [Ping timeout: 244 seconds]
eytanfb has quit [Ping timeout: 256 seconds]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
zachrab has quit [Ping timeout: 250 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
MasterPiece has quit [Quit: Leaving]
astrobunny has joined #ruby
agent_white has joined #ruby
djbkd has quit [Remote host closed the connection]
oetjenj_ has joined #ruby
x77686d has quit [Quit: x77686d]
djbkd has joined #ruby
aphprentice has joined #ruby
Akagi201 has joined #ruby
doodlehaus has joined #ruby
oetjenj has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iotouch has joined #ruby
ringarin has joined #ruby
hazelux has joined #ruby
kblake has joined #ruby
bruno- has joined #ruby
Rapier- has joined #ruby
doodlehaus has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
oetjenj_ has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
ohaibbq has joined #ruby
djbkd has joined #ruby
kblake has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 264 seconds]
mcpierce has quit [Ping timeout: 256 seconds]
dodobrain has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
icebourg has joined #ruby
Trynemjoel has joined #ruby
ferz_ has quit [Quit: Leaving]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Ping timeout: 250 seconds]
mrmargol_ has quit [Remote host closed the connection]
oetjenj has joined #ruby
mrmargolis has joined #ruby
juanpaucar has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
joe128 has joined #ruby
<joe128> can someone reccomend the best guide to get good at ruby and rails and build stuff?
astrobunny has joined #ruby
jenrzzz has joined #ruby
x77686d has joined #ruby
<sevenseacat> I'm a little biased, but I think that Rails 4 in Action is one of the best resources for learning rails
juanpaucar has quit [Ping timeout: 244 seconds]
mcpierce` has joined #ruby
xtsee has quit [Quit: Changing server]
ebbflowgo has quit [Read error: Connection reset by peer]
failshell has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
ebbflowgo has joined #ruby
xtsee has joined #ruby
riotjones has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
xtsee has quit [Client Quit]
icebourg has quit []
xtsee has joined #ruby
Deele has joined #ruby
NightMonkey has joined #ruby
a346 has quit [Quit: a346]
failshell has quit [Ping timeout: 245 seconds]
iasoon has quit [Ping timeout: 245 seconds]
tubuliferous_ has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
Filete has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zorak8 has quit [Ping timeout: 276 seconds]
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
Asher has quit [Read error: No route to host]
Asher2 has joined #ruby
discypher has joined #ruby
havenn has joined #ruby
Asher2 has quit [Client Quit]
Asher has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
xtsee has quit [Quit: Reconnecting]
xtsee has joined #ruby
krisquigley has quit [Ping timeout: 248 seconds]
lessless has joined #ruby
astrobunny has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 248 seconds]
havenn has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
havenwood has joined #ruby
jeramy_s has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
Joufflu has joined #ruby
x77686d has quit [Quit: x77686d]
<agent_white> I am unbiased, and I know that R4iA IS the best resource! \o/
gaboesquivel has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
reinaldob has quit [Remote host closed the connection]
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
<sevenseacat> aw thanks.
<joe128> GO RAILS
joe128 has quit [Quit: Leaving]
<sevenseacat> if the stars align, there will be a final meap out any day, before the book goes into production.
hmsimha has joined #ruby
zacts has joined #ruby
<sevenseacat> though i've been saying that for nearly two weeks now.
xtsee has quit []
ParmesanCaesar has joined #ruby
xtsee has joined #ruby
Rapier- has quit [Quit: (null)]
ringarin has quit [Ping timeout: 252 seconds]
badhatter has joined #ruby
badhatter has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
jud has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
zachrab has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
moeabdol has joined #ruby
iamninja_ has joined #ruby
<agent_white> No rush :)
fabrice31 has joined #ruby
<agent_white> Never seen a 'rolling release' book before R4iA. It's pretty exciting to see all the changes happening as time goes on.
Pupeno_ has joined #ruby
rgb-one has joined #ruby
<sevenseacat> I've never written one either so there you go!
Rollabunna has quit [Remote host closed the connection]
Pupeno has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
nettoweb_ has joined #ruby
ujihisa has joined #ruby
xtsee has quit []
mistermo_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
nettoweb has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
tvw has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
reinaldob has joined #ruby
<xxneolithicxx> the pro git book was the first rolling release book ive read
Hijiri has quit [Ping timeout: 248 seconds]
xtsee has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has quit [Remote host closed the connection]
amdbcg has joined #ruby
growlove has quit [Quit: Leaving]
x77686d has joined #ruby
Hijiri has joined #ruby
mrmargolis has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 255 seconds]
GeorgeThompson has joined #ruby
mitchellhenke has joined #ruby
vdamewood has joined #ruby
willywos has joined #ruby
ringarin has joined #ruby
tvw has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
vivekananda has quit [Quit: Leaving]
vivekananda has joined #ruby
davedev24_ has joined #ruby
claptor has joined #ruby
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 240 seconds]
balazs_ has joined #ruby
PaulCapestany has quit [Quit: .]
mistermo_ has quit [Ping timeout: 250 seconds]
wilornel has joined #ruby
<wilornel> Hey guys. Is there no way to directly access an attribute of an object?
PaulCapestany has joined #ruby
plutonic has joined #ruby
<centrx> wilornel, what do you mean exactly?
<xxneolithicxx> mark it with attr_accessor, attr_writer, or attr_reader depending on your needs
arescorpio has quit [Excess Flood]
<centrx> wilornel, an @instance_variable is an attribute of an object, but it is accessible only within the methods of the object, unless a getter and/or setter is defined
<centrx> *getter/setter method
<wilornel> I solved it by adding `attr_accessor :my_attribute`
<wilornel> What's the idea behind this? All attributes should be private by default?
<wilornel> s/idea/reasoning/
<centrx> "encapsulation"
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> it's an important part of object-oriented programming
<centrx> each object has a well-defined interface to the outside
<wilornel> Yeah
oetjenj has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
<wilornel> It's just some languages don't have the attributes as private by default
claptor has quit [Quit: this channel is bakas]
<centrx> yeah Python is impure
<xxneolithicxx> and some have both (c++)
<xxneolithicxx> doesnt really matter just know the convention
<centrx> unclean!
babykosh has quit [Quit: babykosh]
<sevenseacat> soiled?
<wilornel> xxneolithicxx: Agreed!
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paradisaeidae has joined #ruby
vt102 has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
zerowaitstate has joined #ruby
blazes816 has quit []
ringarin has quit [Ping timeout: 245 seconds]
revoohc has joined #ruby
oetjenj has joined #ruby
<wilornel> how do I break at the first exception? `catch ..`?
ramfjord has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
GenghisKen has joined #ruby
GenghisKen has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
sohrab has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
sohrab has joined #ruby
dodobrain has quit [Quit: bye... o/]
BTRE has joined #ruby
teddyp1cker has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
sohrab has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sevenseacat has quit [Quit: Me dun like you no more.]
sohrab has joined #ruby
bruno- has joined #ruby
nettoweb_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
vdamewood has quit [Quit: Computer has gone to sleep.]
nettoweb has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
braincrash has joined #ruby
centrx has quit [Ping timeout: 256 seconds]
multi_io has quit [Ping timeout: 245 seconds]
plutonic_ has joined #ruby
plutonic has quit [Read error: Connection reset by peer]
plutonic_ is now known as plutonic
nettoweb has quit [Client Quit]
bruno- has quit [Ping timeout: 244 seconds]
dorei has quit []
mitchellhenke has quit [Quit: Computer has gone to sleep.]
x1337807x has joined #ruby
multi_io has joined #ruby
Akagi201 has quit []
djbkd has quit [Quit: My people need me...]
doodlehaus has joined #ruby
vivekananda has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
<paradisaeidae> Not sure where you're at with the ideas of exceptions, thing is catch is used for control flow outside of exceptions.
vulix has joined #ruby
oetjenj has quit [Ping timeout: 256 seconds]
ujihisa has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
juanpaucar has joined #ruby
reinaldob has joined #ruby
tus has quit []
doodlehaus has quit [Ping timeout: 265 seconds]
frem has quit [Quit: Connection closed for inactivity]
elfuego has quit [Quit: elfuego]
musashi1 has joined #ruby
jeramy_s has quit [Quit: Peace out!]
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
MXfive has joined #ruby
sevenseacat has joined #ruby
ebbflowgo has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
ianseyer has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
eones has joined #ruby
ianseyer has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
reinaldob has quit [Ping timeout: 256 seconds]
eones has quit [Client Quit]
moeabdol has quit [Quit: WeeChat 1.1.1]
failshell has joined #ruby
MXfive has quit [Ping timeout: 240 seconds]
ianseyer has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
scripore has joined #ruby
yfeldblum has joined #ruby
ianseyer has joined #ruby
havenn has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<musashi1> would anyone recommend a graphical git client for *nix?
failshell has quit [Ping timeout: 245 seconds]
<sevenseacat> i used giggle when i was on linux, but sparingly... typically just used the cli
krisquigley has joined #ruby
<Diabolik> musashi1 are you on osx?
Dreamer3 has quit [Read error: Connection reset by peer]
GenghisKen has quit [Ping timeout: 256 seconds]
<musashi1> no sir i am on ubuntu
<musashi1> i use atlassion's program on osx but i don't have my mac with me
Pupeno has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
<musashi1> sourcetree iirc
wwwbukolaycom has quit []
<wilornel> paradisaeidae: Some debuggers allow to break when there is an exception, such that you print out the values of some variables before exiting the debugger
Pupeno_ has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
<paradisaeidae> SOmetimes I use require 'pry';binding.pry in the rescue clause.
oetjenj has joined #ruby
mgberlin has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
davedev24_ has quit []
tosbourn has joined #ruby
revoohc has quit [Quit: revoohc]
turtil has quit [Quit: WeeChat 1.1.1]
kyrylo has joined #ruby
Fezzler has joined #ruby
RegulationD has joined #ruby
mary5030 has joined #ruby
havenwood has joined #ruby
zerowaitstate has quit [Quit: Lost terminal]
tosbourn has quit [Ping timeout: 264 seconds]
havenn has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
nonnatus has joined #ruby
arup_r has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
psy_ has joined #ruby
eones has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Remote host closed the connection]
zachrab has joined #ruby
x1337807x has joined #ruby
ujihisa has joined #ruby
<wilornel> [1, [2, 3]].join(" ") outputs "1 2 3"....
zorak8 has quit [Ping timeout: 265 seconds]
<wilornel> Can I get something to output the array as it is?
<wilornel> [1, [2, 3]].inspect!
lidenskap has joined #ruby
Irfan_A has joined #ruby
x1337807x has quit [Client Quit]
zorak8 has joined #ruby
zachrab has quit [Ping timeout: 248 seconds]
<shevy> did you just answer your own question
<arup_r> lol
<shevy> hey arup_r, still building awesome webstuff?
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
<arup_r> yes.. I switch between Rails projects to make my Boss happy! :D
<arup_r> shevy: I'll be flying today to my hometown
<arup_r> No work,, April 22 is my marriage date..
<arup_r> :D
fabrice31 has joined #ruby
<shevy> cool
DavidDudson has joined #ruby
<shevy> you are in the baby making process
Morkel has joined #ruby
Irfan_A has quit [Ping timeout: 240 seconds]
<arup_r> :p
sevenseacat has joined #ruby
vim_shimm has joined #ruby
Fezzler has quit [Quit: Leaving]
haxrbyte_ has quit [Ping timeout: 265 seconds]
<arup_r> shevy: Are you married ?
fabrice31 has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
paradisaeidae has quit [Ping timeout: 276 seconds]
A205B064 has quit [Ping timeout: 256 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
vim_shimm has quit [Ping timeout: 240 seconds]
icebourg has joined #ruby
paradisaeidae has joined #ruby
<shevy> nope
mary5030 has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
DavidDudson has joined #ruby
leafybasil has quit [Remote host closed the connection]
thumpba has joined #ruby
mary5030 has joined #ruby
michaeldeol has joined #ruby
thumpba has quit [Remote host closed the connection]
jgrevich has joined #ruby
ianseyer has quit [Read error: Connection reset by peer]
michaeldeol has quit [Client Quit]
bluOxigen has joined #ruby
paradisaeidae has quit [Ping timeout: 256 seconds]
<arup_r> ok
ianseyer has joined #ruby
paradisaeidae has joined #ruby
mengu has quit [Remote host closed the connection]
markholmes has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
mary5030 has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
gsd has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
DavidDudson has joined #ruby
casadei has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
mgberlin has quit [Remote host closed the connection]
swedishfish has joined #ruby
iotouch has joined #ruby
chipotle has quit [Quit: cheerio]
psy_ has quit [Ping timeout: 248 seconds]
tosbourn has joined #ruby
mistermocha has joined #ruby
Hijiri has joined #ruby
tosbourn has quit [Remote host closed the connection]
chipotle has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mistermo_ has joined #ruby
plutonic has quit [Quit: plutonic]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rkazak has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
Guest9823 has quit [Ping timeout: 255 seconds]
<vulix> you guys see matz started a new language called streem
fenzil has joined #ruby
eones has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<shevy> Vulix yeah
<shevy> he is getting bored with ruby :(
<shevy> last change 14 days ago
amdbcg has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
teddyp1cker has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
A205B064 has joined #ruby
mistermo_ has quit [Ping timeout: 240 seconds]
<vulix> i guess he will try to fold some of streem into ruby 3 if its successful
thatslifeson has joined #ruby
thatslifeson has quit [Client Quit]
tkuchiki has quit [Ping timeout: 245 seconds]
longfeet has quit [Quit: Leaving]
psy_ has joined #ruby
teddyp1cker has quit [Ping timeout: 256 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
tkuchiki has joined #ruby
droidburgundy has joined #ruby
juanpaucar has joined #ruby
rgb-one has quit [Read error: No route to host]
havenwood has quit [Remote host closed the connection]
chipotle has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
ebbflowgo has quit [Quit: ebbflowgo]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
chipotle_ has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
<shevy> but the syntax is non-ruby
sevvie has joined #ruby
<shevy> seq(100) | {x ->
<shevy> } | STDOUT
juanpaucar has quit [Ping timeout: 265 seconds]
chipotle has quit [Ping timeout: 256 seconds]
failshell has joined #ruby
zachrab has joined #ruby
doodlehaus has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
vdamewood has joined #ruby
krisquigley has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
DavidDudson has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
ianseyer has quit [Read error: Connection reset by peer]
ianseyer has joined #ruby
penzur has joined #ruby
anaeem1 has joined #ruby
ianseyer has quit [Read error: Connection reset by peer]
<penzur> sup bitches?
oetjenj has quit [Ping timeout: 256 seconds]
GenghisKen has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
penzur was kicked from #ruby by Radar [Your behavior is not conducive to the desired environment.]
sinkensabe has joined #ruby
<arup_r> The God showing off power :p
ianseyer has joined #ruby
<Radar> arup_r: Sure if that's the lie you want to tell yourself.
armyriad has joined #ruby
<Radar> maybe there are people here who don't like being called a bitch?
<xxneolithicxx> omg
<Radar> OMG
<xxneolithicxx> fuck that Powershell style syntax
<xxneolithicxx> burn it
<shevy> is that a standard kick message by the way? the "not conducive" thingy
<Radar> shevy: yeah
<shevy> xxneolithicxx didn't powershell promise pipeable objects?
Pupeno_ has joined #ruby
<xxneolithicxx> shevy: no idea, but ill show them where they can pipe it overall
<shevy> haha
armyriad has quit [Max SendQ exceeded]
sandelius has joined #ruby
penzur has joined #ruby
armyriad has joined #ruby
<arup_r> shevy: how many years you are away from PhP ? :D
fenzil has quit [Ping timeout: 265 seconds]
<arup_r> Radar: that's not what a moderator should do..
<arup_r> You should give couple of warning
<arup_r> then Kick
<xxneolithicxx> i remember reading the Powershell documentation somewhere and it was like an oxymoronic statement saying that Powershell was a scripting language *not* designed for scripting and this was on MS own site.
<Radar> Alright everyone, arup_r knows how to moderate channels
<Radar> Let him be in charge!
<xxneolithicxx> I read it and a wtf?
<Radar> ALL HAIL ARUP_R
<Radar> arup_r: Please don't trivialize managing communities.
<xxneolithicxx> *did
Pupeno has quit [Ping timeout: 256 seconds]
tosbourn has joined #ruby
RegulationD has joined #ruby
<arup_r> Radar: you don't know.. that's why teaching you..
<Radar> The kick *is* a warning
<Radar> arup_r: You are not teaching me anything. You are preaching to the choir.
<arup_r> come on.. grow up Man!
<arup_r> you are an author don't forget...
<Radar> arup_r: Now you're accusing me of being immature?
<Radar> Way to go.
<Radar> That's not going to anger me at all.
<penzur> calm down guys
<Radar> That's totally going to lead to a productive discussion.
tosbourn has quit [Remote host closed the connection]
<arup_r> That's your way to take my words
<Radar> arup_r: Short way of putting it: I don't care what you think.
<arup_r> You shouldn't .... I don't too...
<shevy> arup_r about ... 10 years I think
<shevy> or 8, not sure
<Radar> penzur: I'd appreciate it if you wouldn't call people bitches.
<shevy> I went to linux in 2004, started with perl, then php for ~3 years; then ruby
<penzur> sorry about that Radar
<arup_r> Until you are logged in the channel... you have to care Radar
<shevy> (give or take some months)
<arup_r> shevy: ok
<Radar> arup_r: shhhhh now
<shevy> I actually was more productive with PHP than I was with perl. :\
<Radar> arup_r: Either take this to PR where I can ignore you or I will +q you here.
<Radar> PM*
<arup_r> That's upto you
<shevy> you guys should be girls
<shevy> then you would not have to fight
<xxneolithicxx> php, the web language that should sit right up there next to Java for sec vulns and shitty coding
<shevy> php is like a melting pot
ohaibbq has quit [Ping timeout: 245 seconds]
<xxneolithicxx> *not that the shitty coding is necessarily PHP's fault
<shevy> you throw in good stuff, you throw in bad stuff, and nobody watches what is being cooked
<xxneolithicxx> its the mutt of web languages?
<shevy> python is like - they throw in only stuff that has been approved
<xxneolithicxx> i can accept that, good analogy
SOLDIERz has joined #ruby
<shevy> ruby is like, they put it a lot of stuff but it must be useful - pretty, or terse, or creative, or poetry
<shevy> well, semi-useful
<shevy> I still don't think @@vars are that useful
RegulationD has quit [Ping timeout: 245 seconds]
DerisiveLogic has joined #ruby
<penzur> why you guys hating php?
<shevy> penzur it is very inelegant
icebourg has quit []
<shevy> it also is not really designed
<agent_white> TAKE HIM TO THE GALLOWS!
<penzur> i know, but what's the point?
GnuYawk has joined #ruby
<shevy> what do you mean, what is the point
<shevy> do you need a point
<xxneolithicxx> you dont think class vars are useful?
<shevy> there are so many points
<arup_r> Radar: read what I said you in PM.. and do like that.. It is international channel.. So you HAVE to respect others Ego! That's it..
<shevy> xxneolithicxx yeah. I can't recall code that requires them
hazelux has quit [Read error: Connection reset by peer]
<shevy> that was misphrased - I meant, I can't recall code that would absolutely need class variables
<xxneolithicxx> its basically static variables or once per class stuff, thats critical to OOP
zorak8 has quit [Ping timeout: 240 seconds]
<shevy> yeah, like a counter. how many times a class was created
<shevy> how often did you really need that?
oetjenj has joined #ruby
<xxneolithicxx> well thats a simplified/dumbed down example of its use
<shevy> you can give better examples of course :)
<xxneolithicxx> i use it for creating class properties that are static and used once
<shevy> class properties?
<xxneolithicxx> sort of like enum type properties of a class
plutonic has joined #ruby
tagrudev has joined #ruby
<penzur> why do you want a class properties?
tkuchiki has quit [Ping timeout: 245 seconds]
<xxneolithicxx> because its values that are not going to change from instance to instance but need to be defined and accessible as properties of the class
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> would you have a short example?
<xxneolithicxx> its used quite commonly, even if you havent run into in your own code, although i find it quite odd that you havent lol
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
lidenskap has quit [Remote host closed the connection]
<xxneolithicxx> i have a RESTFUL API wrapper of two classes
<xxneolithicxx> one class is a toplevel represents the API itself, it contains instances of a second class that represent resources accessible in API
<shevy> awww Radar is weak :(
<Radar> shevy: I can't win, can I? :)
<xxneolithicxx> each resource instance has methods that are added dynamically based on the contents of a JSON file
<Radar> Get accused of being immature for exercising my powers, and then get accused of being weak when I show forgiveness.
<xxneolithicxx> so i can call api.resource.resource_method(params)
<shevy> xxneolithicxx I have to leave here soon... I'll try to grab-up onto it (class properties) when I'll be back, right now my head isn't quite ready to accept input (it's still too early)
<xxneolithicxx> the resource class has constants defined as class variables
<penzur> i think shevy misunderstood the -q flag Radar
<Radar> penzur: *shrug*
<xxneolithicxx> the constants are arrays like request/response types (two types of XML responses and URL Encoded data ie)
<xxneolithicxx> and other stuff
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
anaeem1 has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
Channel6 has quit [Quit: Leaving]
mengu has joined #ruby
ahmetkapikiran has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
iotouch has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
teddyp1cker has joined #ruby
riotjones has joined #ruby
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
Spami has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
lidenskap has joined #ruby
aganov has joined #ruby
tkuchiki_ has quit [Read error: Connection reset by peer]
polysics has quit [Ping timeout: 245 seconds]
Audiodude has joined #ruby
charliesome has joined #ruby
iotouch has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
tkuchiki has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
speakingcode has joined #ruby
Audiodude is now known as audiodude
vulix has quit [Ping timeout: 246 seconds]
werelivinginthef has joined #ruby
swedishfish has quit [Quit: WeeChat 1.1.1]
Zamyatin has joined #ruby
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
evanjs has joined #ruby
rippa has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
reinaldob has quit [Ping timeout: 245 seconds]
DerisiveLogic has quit [Ping timeout: 245 seconds]
DavidDudson has joined #ruby
penzur has quit [Quit: WeeChat 1.0]
evanjs has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
grindmodeon has joined #ruby
x1337807x has joined #ruby
lidenskap has quit [Remote host closed the connection]
last_staff has joined #ruby
colorisco has joined #ruby
grindmodeon has quit [Quit: Leaving.]
sevenseacat has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
ParmesanCaesar has quit [Ping timeout: 272 seconds]
balazs_ has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
werelivinginthef has quit [Read error: Connection reset by peer]
ujihisa has quit [Ping timeout: 255 seconds]
werelivinginthef has joined #ruby
mengu has quit [Remote host closed the connection]
moeabdol has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
fabrice31 has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
bMalum has joined #ruby
fabrice31_ has joined #ruby
vire has quit [Remote host closed the connection]
rdark has joined #ruby
werelivinginthef has quit [Ping timeout: 246 seconds]
Joufflu has quit [Read error: Connection reset by peer]
tosbourn has joined #ruby
polysics has joined #ruby
sigurding has joined #ruby
lkba has joined #ruby
ahmetkapikiran has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
grindmodeon has joined #ruby
<certainty> sup
tosbourn has quit [Ping timeout: 264 seconds]
hazelux has joined #ruby
crus has joined #ruby
codecop has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
sigurding has quit [Quit: sigurding]
gauke has joined #ruby
codecop has quit [Remote host closed the connection]
jeromelanteri has joined #ruby
swedishfish has joined #ruby
hazelux has quit [Ping timeout: 276 seconds]
moeabdol has quit [Read error: Connection reset by peer]
gagrio has joined #ruby
moeabdol has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
ki0 has joined #ruby
krz has joined #ruby
DEA7TH has joined #ruby
lidenskap has joined #ruby
yfeldblum has quit [Remote host closed the connection]
musashi1 has quit [Ping timeout: 244 seconds]
markholmes has quit [Quit: So it goes.]
hs366 has joined #ruby
Macaveli has joined #ruby
audiodude has quit [Remote host closed the connection]
pagios has quit [Ping timeout: 276 seconds]
gauke has quit [Ping timeout: 250 seconds]
juanpaucar has joined #ruby
HayesHimself has joined #ruby
gauke has joined #ruby
timonv has joined #ruby
x77686d has quit [Quit: x77686d]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
hanmac1 has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
failshell has joined #ruby
zachrab has joined #ruby
aphprentice has quit [Ping timeout: 245 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
failshell has quit [Ping timeout: 245 seconds]
nszceta has joined #ruby
anarang has joined #ruby
krisquigley has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
sohrab has quit [Ping timeout: 264 seconds]
psy_ has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
jschoolcraft has quit [Ping timeout: 276 seconds]
livathinos has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
doodlehaus has joined #ruby
fabrice31 has joined #ruby
tubuliferous_ has quit [Ping timeout: 245 seconds]
chridal1 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
RegulationD has joined #ruby
<flughafen> sup
fabrice31_ has joined #ruby
allenn has joined #ruby
marr has joined #ruby
doodlehaus has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chridal1 has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
riotjone_ has joined #ruby
tubuliferous_ has joined #ruby
allenn has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has quit [Ping timeout: 240 seconds]
werelivinginthef has joined #ruby
<tmadsen> zap
chridal1 has joined #ruby
<sevenseacat> pow! ha-hah
<certainty> flughafen: hackweek over?
SOLDIERz has joined #ruby
GreyHands has joined #ruby
ghr has joined #ruby
aphprentice has joined #ruby
amundj_ has joined #ruby
amundj has quit [Ping timeout: 255 seconds]
ta has joined #ruby
werelivinginthef has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 256 seconds]
oo_ has quit [Read error: Connection reset by peer]
<flughafen> certainty: today is the last day
rkazak has left #ruby [#ruby]
oo_ has joined #ruby
<flughafen> maybe I shouldn't have pasted 800kb of text in the python interperter
ta has quit [Ping timeout: 276 seconds]
<avril14th> moin
yfeldblum has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wpp has joined #ruby
krz has quit [Read error: Connection reset by peer]
hs366 has quit [Quit: Leaving]
cats has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
x77686d has joined #ruby
bruno- has joined #ruby
cats has joined #ruby
bruno- is now known as Guest46707
x77686d has quit [Client Quit]
<adaedra> moin
timonv has joined #ruby
<flughafen> moin
yfeldblu_ has joined #ruby
bayed has joined #ruby
grindmodeon has quit [Quit: Leaving.]
sigurding has joined #ruby
<sevenseacat> uıoɯ
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest46707 has quit [Ping timeout: 255 seconds]
<adaedra> /o\
<hanmac1> flughafen: be happy! i learned yesterday that the php interpreter in interactive mode like irb doesnt support "UTF-8" ... i mean how shitty is that!?
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<adaedra> PHP-shitty
yfeldblum has quit [Ping timeout: 264 seconds]
<adaedra> is it really a surprise for you?
shevy has quit [Ping timeout: 252 seconds]
<hanmac1> looking back yeah it shouldnt be a big suprise for me
<sevenseacat> unicode support was coming in php 6, wasnt it
quimrstorres has quit [Remote host closed the connection]
elfuego has joined #ruby
<hanmac1> sevenseacat: hm ok my php is still 5.5 ... but if i remember correctily isnt php6 skipped because of some older books with that title? and jumped directly to php7? ;p
<sevenseacat> something like that, they thought php6 was too hard
Nimf has joined #ruby
<adaedra> there shouldn't be new phps anymore :(
iamninja_ has quit [Ping timeout: 264 seconds]
<adaedra> just let it die :(
blackmesa has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
ta has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
<sevenseacat> looking that up led me to https://philsturgeon.uk/php/2014/07/23/neverending-muppet-debate-of-php-6-v-php-7/ which is many lols
sevvie has joined #ruby
krz has joined #ruby
<sevenseacat> admittedly, I've barely touched php in four years
mikecmpbll has joined #ruby
<sevenseacat> but before that I was a full-time php dev
krz has quit [Read error: Connection reset by peer]
<adaedra> I work as PHP dev :'(
iteratorP has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<sevenseacat> only php work I've done since 2011 was some awful butchery onto an old kohana app
<sevenseacat> which made me cry
bMalum_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
zzing has joined #ruby
michael_mbp has quit [Excess Flood]
swedishfish has quit [Quit: WeeChat 1.1.1]
oo_ has joined #ruby
<flughafen> hanmac1: that's super shitty
<flughafen> crap, it looks like i can't cancel out of this pasting
krz has joined #ruby
terlar has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 245 seconds]
<sevenseacat> https://philsturgeon.uk/blog/2013/09/t-paamayim-nekudotayim-v-sanity/ even though I don't do php anymore I am so subscribing to this guy's blog
bMalum has quit [Ping timeout: 255 seconds]
speakingcode has quit [Ping timeout: 255 seconds]
bMalum_ is now known as bMalum
chridal1 has left #ruby ["WeeChat 1.1.1"]
mikecmpbll has quit [Quit: ciao.]
chridal has joined #ruby
imanzarrabian has joined #ruby
michael_mbp has joined #ruby
sevvie has joined #ruby
bMalum_ has joined #ruby
mroach has quit [Quit: mroach]
iteratorP has joined #ruby
bMalum has quit [Ping timeout: 256 seconds]
bMalum_ is now known as bMalum
edwinvdgraaf has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
lidenskap has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
astrobunny has quit [Remote host closed the connection]
yfeldblum has joined #ruby
SOLDIERz has joined #ruby
sigurding has quit [Quit: sigurding]
tosbourn has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
dumdedum has joined #ruby
DavidDudson has joined #ruby
iteratorP has quit [Remote host closed the connection]
plutonic has quit [Quit: plutonic]
joonty has joined #ruby
edwinvdgraaf has joined #ruby
bMalum has quit [Quit: bMalum]
towski_ has quit [Remote host closed the connection]
bMalum has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
iteratorP has joined #ruby
oo__ has joined #ruby
ndrei has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 264 seconds]
bMalum has quit [Quit: bMalum]
hazelux has joined #ruby
edwinvdgraaf has joined #ruby
DavidDudson has joined #ruby
Zai00 has joined #ruby
Cust0sL1men has quit [Ping timeout: 264 seconds]
elaptics_away is now known as elaptics
ponga has quit [Remote host closed the connection]
huddy has joined #ruby
hazelux has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
granthatcher has joined #ruby
DrCode has joined #ruby
edwinvdg_ has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SOLDIERz has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
bMalum has joined #ruby
Soda has joined #ruby
grindmodeon has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
_Andres has joined #ruby
last_staff has quit [Ping timeout: 272 seconds]
_Andres has quit [Client Quit]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
DrCode has quit [Quit: ZNC - http://znc.in]
grindmodeon has quit [Client Quit]
mroach has joined #ruby
grindmodeon has joined #ruby
vivekananda has joined #ruby
mroach has quit [Client Quit]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
DrCode has joined #ruby
postmodern has quit [Quit: Leaving]
juanpaucar has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
universa1 is now known as universal
ianseyer has quit [Read error: Connection reset by peer]
universal is now known as universa1
bMalum_ has joined #ruby
ianseyer has joined #ruby
kp666 has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
nhhagen has joined #ruby
bMalum has quit [Ping timeout: 245 seconds]
bMalum_ is now known as bMalum
Pupeno has joined #ruby
ianseyer has quit [Read error: Connection reset by peer]
juanpaucar has quit [Ping timeout: 250 seconds]
DavidDudson has joined #ruby
krz has quit [Ping timeout: 250 seconds]
ianseyer has joined #ruby
DavidDudson has quit [Client Quit]
zachrab has joined #ruby
DavidDudson has joined #ruby
Igorshp has joined #ruby
withnale2_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
<withnale2_> For some reason I thought that ruby2.x introduced the ability to set an instance variable from a method parameter list... something like 'def method(@param)'. However that doesn't work. Did I imagine it, or is there a different syntax?
<sevenseacat> i havent seen that syntax
krisquigley has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
Cust0sL1men has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_Andres has joined #ruby
DavidDudson has quit [Ping timeout: 246 seconds]
zachrab has quit [Ping timeout: 255 seconds]
canton7 has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
mengu has quit [Remote host closed the connection]
wpp has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
vtunka has joined #ruby
canton7 has joined #ruby
canton7 has quit [Changing host]
canton7 has joined #ruby
quimrstorres has joined #ruby
_Andres has quit [Read error: No route to host]
krisquigley has quit [Ping timeout: 248 seconds]
iamninja_ has joined #ruby
<jhass> withnale2_: Crystal does that
tvw has joined #ruby
sevvie has joined #ruby
doritostains has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Remote host closed the connection]
<withnale2_> Whats crystal?
A205B064 has quit [Ping timeout: 248 seconds]
bMalum has quit [Ping timeout: 256 seconds]
canton7 has quit [Ping timeout: 265 seconds]
bMalum has joined #ruby
<gr33n7007h> crystal is awesome
Zai00 has quit [Quit: Zai00]
RegulationD has joined #ruby
<gr33n7007h> withnale2_: http://crystal-lang.org/
FernandoBasso has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
plutonic has joined #ruby
lidenskap has joined #ruby
haxrbyte has joined #ruby
bMalum has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
krz has joined #ruby
haxrbyte_ has joined #ruby
SOLDIERz has joined #ruby
demiurgen has joined #ruby
lloyd is now known as Lloyd
bMalum has joined #ruby
canton7 has joined #ruby
canton7 has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
lidenskap has quit [Ping timeout: 245 seconds]
musashi1 has joined #ruby
bhaak_ is now known as bhaak
mikecmpbll has joined #ruby
Lloyd is now known as lloyd
doodlehaus has joined #ruby
sevvie has joined #ruby
Akagi201 has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
Advocation has quit [Quit: Advocation]
livathinos has quit [Ping timeout: 252 seconds]
moeabdol has quit [Read error: Connection reset by peer]
iteratorP has quit [Quit: Leaving...]
lloyd is now known as Lloyd
moeabdol has joined #ruby
ntz has joined #ruby
<ntz> hello
doodlehaus has quit [Ping timeout: 264 seconds]
krz has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
<ntz> where am I supposed to put a `:suppress_content_length' in http://susepaste.org/view/raw/81988471
iteratorP has joined #ruby
<ntz> I tried to put it here: @client = OnStomp::Client.new("stomp://#{@host}:#{@port}", :login => @user, :passcode => @password.value)
<ntz> but it didn't work
roshanav1 has joined #ruby
sevenseacat has joined #ruby
elfuego has quit [Quit: elfuego]
bMalum has quit [Quit: bMalum]
krz has joined #ruby
nfk has joined #ruby
imanzarrabian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
ponga has joined #ruby
elfuego has joined #ruby
oo_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
astrobunny has joined #ruby
wald0 has joined #ruby
stef204 has joined #ruby
bkxd has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
oo__ has quit [Ping timeout: 256 seconds]
blueOxigen has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
iasoon has joined #ruby
Mon_Ouie has joined #ruby
sigurding has joined #ruby
sevvie has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
sevvie has joined #ruby
keen___ has joined #ruby
Nimf has quit [Ping timeout: 272 seconds]
doritostains has joined #ruby
astrobunny has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 255 seconds]
keen__ has quit [Ping timeout: 246 seconds]
elfuego has quit [Quit: elfuego]
MatthewsFace has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 264 seconds]
|RicharD| has joined #ruby
<|RicharD|> Hi
<|RicharD|> If I have an array example: [10,30,14,50,31,57,96,75,90] - how I can group this number in 3 arrays or subarray by range ? example I want in a array all number between 0 and 30, in another from 30 to 60 and in another from 60 to 100
<|RicharD|> How I can do that ?
<|RicharD|> (in theory I use rails, but I think this is a ruby problem, not rails)
sigurding has quit [Quit: sigurding]
Suge_Knight has joined #ruby
<Suge_Knight> whats better, ruby or python?
sigurding has joined #ruby
<sevenseacat> Suge_Knight: PHP.
<adaedra> .group_by { |e| e / 30 }.values |RicharD|
<Suge_Knight> sevenseacat: dont troll im serious
<sevenseacat> no, you dont troll
<Suge_Knight> like, why would someone pick python over ruby and vice versa
<Suge_Knight> (i've only been programming for a week)
<adaedra> Suge_Knight: for many reasons
<adaedra> But no one's better
<adaedra> They are different
<|RicharD|> they're different in syntax
<Suge_Knight> but ppl dont typically do both python and ruby, correct?
<|RicharD|> so you must choice what you like more
<|RicharD|> no
<Suge_Knight> well ruby's look cool but pythons are pretty badass snakes
<Suge_Knight> so, i guess if i have to i'll go with python
<|RicharD|> Honestly there are a lot of questions (performances etc...) but now you shouldn't worry about it
<|RicharD|> nice go with python
<adaedra> >> [10,30,14,50,31,57,96,75,90].group_by { |e| e / 30 }.values
<ruboto> adaedra # => [[10, 14], [30, 50, 31, 57], [96, 90], [75]] (https://eval.in/314815)
<Suge_Knight> (that was a joke of course :P)
pontiki has joined #ruby
<sevenseacat> adaedra: nice
<Suge_Knight> thats cool
<adaedra> is that what you want, |RicharD| ?
<Suge_Knight> i'll work on html first then go from there :]
<Suge_Knight> so python is a back end language right?
<Suge_Knight> just like ruby?
<|RicharD|> adaedra: yes
<adaedra> ah no, your ranges are not equal
<Suge_Knight> is perl in the same catagory?
<|RicharD|> I wonder if there is a way for choice the ranges
<adaedra> it depends on what you put in the block
<|RicharD|> instead of do always 3 group with range 30, use customs ranges
<|RicharD|> yes I think I know what to do now :) thx
<adaedra> use a case in the block with when (x..y) and assing a number in each range
<|RicharD|> yes thank you :)
mostlybadfly has joined #ruby
lessless has joined #ruby
<pontiki> hi o/
<|RicharD|> Suge_Knight: honestly here isn't the best place for ask about perl
<|RicharD|> Suge_Knight: you're trolling right ?
Mon_Ouie has joined #ruby
edwinvdg_ has joined #ruby
<adaedra> Suge_Knight: see http://ruby-community.com/faq
<certainty> pontiki: \o
<adaedra> pontiki: \o
<Suge_Knight> no |RicharD| im honestly just stupid
<Suge_Knight> i know a lot about banks and finance, nothing about programming
<Suge_Knight> currently learning html, dont even know what perl is
<Suge_Knight> just thought it was a backend language
vtunka has quit [Quit: Leaving]
<sevenseacat> you're not stupid, but you're asking irrelevant questions that have answers that are meaningless to you
serivich has joined #ruby
<|RicharD|> go with python, no kidding
fabrice31_ has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<pontiki> you'd also probably be better off reading wikipedia
<|RicharD|> (if you want do development related to finance/bank)
<sevenseacat> we could tell you all about perl, python, and ruby, but if you've been programming for a whole week it will go in one ear and out the other
<|RicharD|> btw if you want do web
<|RicharD|> development
Beliq has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<|RicharD|> I agree with sevenseacat...go with PHP
<|RicharD|> it's easy and you learn the basics
<sevenseacat> uh oh
shevy has joined #ruby
<adaedra> uh oh
<adaedra> |RicharD|: Have you considered the fact that maybe sevenseacat was using sarcasm?
<sevenseacat> immense sarcasm.
<Suge_Knight> lmao
<Suge_Knight> my friend is a fullstack dev
<Suge_Knight> and he says php is the fucking worst
<Suge_Knight> so im gonna pass on that lang
<sevenseacat> i'm not sure i'd go that far, but yeah, wouldnt recommend it.
bMalum has joined #ruby
<Suge_Knight> like perl, ruby, python -- these are all replacement backend languages that can substitute one another correct?
<sevenseacat> it does have a very low barrier of entry though
<Suge_Knight> but most people just learn and master 1?
<sevenseacat> much lower than anything decent
<Suge_Knight> what type of barrier to entry does ruby/python have?
<sevenseacat> if you want to use them for web development? much higher
<adaedra> Suge_Knight: it's good to see many languages (of different kinds), so you have large knowledge of things
tosbourn has quit [Remote host closed the connection]
<adaedra> Not necessary master them
<sevenseacat> dammit, got suckered in
oo_ has quit [Remote host closed the connection]
Advocation has joined #ruby
<adaedra> Then, I would oppose to begin the programmation through web development, as it has effectively a higher barrier – to do it efficiently, you have to grasp a lot of concepts
<|RicharD|> adaedra: yes but seriously, if he is learning right now, why it's a wrong choice PHP ?
<pontiki> it's so amazing to see one of my paintings on a sticker
<pontiki> oops, ww
duderonomy has joined #ruby
<|RicharD|> if he want to web development, imho it's the best choice for start...
<sevenseacat> pontiki: plz send stickers
<wasamasa> PHP is the worst choice to start
<|RicharD|> why ?
<adaedra> |RicharD|: because it's a shitty language which makes easy to learn bad practices and hard to learn good ones.
<wasamasa> it's like the worst popular language out there
<pontiki> sevenseacat: i can do that!
<|RicharD|> yes ok, but you get 'shit done'
tosbourn has joined #ruby
<wasamasa> best case: you'll learn to use a PHP framework
<|RicharD|> and this help you to continue to learn and improve
<pontiki> i've got a sheet of big ones and another of little ones
<wasamasa> worst case: you'll copypaste shit until it somehow works
<adaedra> and between getting 'shit done' and 'getting shit done right', what do you choose ?
<adaedra> It's not more difficult to create a site in python or ruby than in PHP nowadays
<wasamasa> better use a proper programming language and actually learn something you can apply for everything else
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<|RicharD|> guys I understand your point...BUT I see a lot of people that can't get the stuff done
felltir has joined #ruby
<|RicharD|> and they stop learning
sigurding has quit [Quit: sigurding]
<wasamasa> like that the file system and htaccess are no replacement for routing
<adaedra> Maybe because they didn't start at the right point
<toretore> well then maybe they shouldn't be programmers
<wasamasa> ^
<|RicharD|> um this can be true too
<adaedra> Web development is not really the best place for beginning
<wasamasa> if you're a programmer and aren't willing to teach yourself new stuff, you've chosen the wrong job :P
<pontiki> yeah, you should be doing kernel drivers first
<adaedra> Do some CLI programs, it's easy, you get shit done, and learn things that are useful nearly everywhere
<pontiki> do something fun, like write a game
<|RicharD|> honestly we don't know nothing about the OP
<Suge_Knight> ok
Igorshp has quit [Remote host closed the connection]
<Suge_Knight> i didnt want to start a war
<|RicharD|> for say that
hazelux has joined #ruby
<Suge_Knight> i appreciate the input
<Suge_Knight> back to css on codeacademy
<Suge_Knight> cheers
Advocation has quit [Client Quit]
<adaedra> Suge_Knight: it's because of things like that that you get asked "are you a troll" when you ask that
<|RicharD|> example: if he is a 13year old, that want do a simple page for his guild on wow etc.. maybe it's good that he start with web development
CloCkWeRX has joined #ruby
<|RicharD|> (btw my error :P he isn't a 14yr old...so you're right)
Rickmasta has joined #ruby
<adaedra> Or maybe he should start by the beginning
<toretore> Suge_Knight: if you're learning html, css, js at the same time, go with php. it's simple enough to not get in your way, and then you can move on to better things later
Beliq has quit [Read error: Connection reset by peer]
<adaedra> If I want to learn painting, I don't start by reproducing The Joconde
Beliq has joined #ruby
<pontiki> never ask a group of devs their opinion on language, editors, OSes, or really p.much *anything*
<sevenseacat> especially not editors
<adaedra> you can ask them what is their favorite color or animal
<toretore> Suge_Knight: make some shitty websites, write some shitty php; that's just something you're going to have to go through first
<Suge_Knight> i wouldnt ask which editor is best, i know notepad++ is superior
<sevenseacat> uh oh
<adaedra> !
<pontiki> and there ye have it
<Suge_Knight> (that was a troll)
<Suge_Knight> :]
<adaedra> I hope so
<adaedra> notepad.exe all the way
junglist has joined #ruby
junglist has left #ruby [#ruby]
<sevenseacat> yeah, we all know sublime text is clearly better
<sevenseacat> <_<
<adaedra> >_>
<felltir> post-its on the screen
<pontiki> butterflies, man
anaeem1_ has joined #ruby
<adaedra> M-x butterfly
hazelux has quit [Ping timeout: 265 seconds]
joonty has quit [Ping timeout: 256 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
teddyp1cker has quit [Read error: No route to host]
teddyp1cker has joined #ruby
Mia has quit [Read error: Connection reset by peer]
<adaedra> But we all know what is the best editor https://www.gnu.org/fun/jokes/ed-msg.html
FernandoBasso has quit [Quit: leaving]
Igorshp has joined #ruby
Advocation has joined #ruby
elfuego has joined #ruby
oo_ has joined #ruby
Beliq_ has joined #ruby
Beliq has quit [Read error: Connection reset by peer]
elfuego has quit [Client Quit]
Akagi201 has quit []
teddyp1cker has quit [Ping timeout: 276 seconds]
Joffily has joined #ruby
Cust0sL1men has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
<jhass> makes you wonder, what editor was used to write ed?
reinaldob has joined #ruby
mengu has joined #ruby
<pontiki> that's like asking "what was there before RNA?""
oo__ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<apeiros> what was there before RNA?
<pontiki> idk
<pontiki> i'm not a paleobiochemist, i'm just a mouse with a passion for coding :D
<jhass> underwater vulcans, no?
juanpaucar has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
<apeiros> I thought those pale aliens with the insane six packs
reinaldob has quit [Ping timeout: 256 seconds]
<pontiki> there was always punching in a program on the console buttons, one machine word at a time
Beliq_ has quit [Ping timeout: 246 seconds]
<DrForr> Toggling switches.
<pontiki> that's it
oo_ has joined #ruby
Beliq has joined #ruby
Beliq has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 240 seconds]
juanpaucar has quit [Ping timeout: 272 seconds]
failshell has joined #ruby
NinjaOps has joined #ruby
pontiki has quit [Quit: back to bed .. zzzzzzzzzzz]
gr33n7007h has joined #ruby
hmsimha has quit [Ping timeout: 256 seconds]
oo__ has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
sdothum has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
basiclaser has joined #ruby
livathinos has joined #ruby
krisquigley has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
Advocation has quit [Quit: Advocation]
dmst has joined #ruby
codecop has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
chridal has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
GeorgeThompson has joined #ruby
grindmodeon has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 250 seconds]
gaboesquivel has quit [Remote host closed the connection]
tosbourn has quit []
ponga has joined #ruby
nhhagen_ has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
iasoon has quit [Ping timeout: 252 seconds]
Advocation has joined #ruby
dmst has quit []
RegulationD has joined #ruby
rodfersou has joined #ruby
nhhagen has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
Advocation has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
Igorshp has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
konsolebox has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
nhhagen has joined #ruby
konsolebox has joined #ruby
lordkryss has joined #ruby
felltir has quit [Remote host closed the connection]
iasoon has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
<shevy> pontiki knows all the old stories
iasoon has quit [Quit: WeeChat 1.1.1]
nhhagen has quit [Remote host closed the connection]
sevvie has joined #ruby
duncannz has quit [Remote host closed the connection]
systemd0wn has joined #ruby
<systemd0wn> Question, (not a programmer) I've got a bit of code that has a while loop. Is there anyway to say "do this, but continue on with the loop"?
wald0 has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
<apeiros> systemd0wn: concurrently to the loop? you'd use a Thread for that
<toretore> systemd0wn: paste the code on gist.github.com and link it here
<systemd0wn> apeiros: got ya. Makes sense. toretore: will do.
bMalum has quit [Quit: bMalum]
Renich has quit [Quit: Lost terminal]
Rickmasta has joined #ruby
<systemd0wn> A friend of mine helped me get it started but he's gone to bed so I'm a bit stuck.
<apeiros> systemd0wn: if you want to write this yourself: beware, down the path of Threads be dragons
<systemd0wn> apeiros: haha. well if we're not talking a hooooribly long path I may be up for this ;)
willywos has joined #ruby
doodlehaus has quit [Ping timeout: 255 seconds]
<ntz> systemd0wn: you should have always use a ™ symbol if your nick contains a "systemd" string
<toretore> lol
<systemd0wn> hahaha.
<toretore> systemd0wn: so basically you want to emulate the -c arg of ab?
<systemd0wn> ntz, that's the first time anyone has made that joke. Toooo funny.
Cust0sL1men has joined #ruby
doodlehaus has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
<ntz> :P
<systemd0wn> toretore: yes. Because I want to specify to the load testing tool a very specific number of transactions per second.
* ntz wonders why ppl think that he's joking when he's serious and vice versa
ag4ve_ has quit [Ping timeout: 245 seconds]
<systemd0wn> haha
<toretore> rails is also a tm btw
<jhass> and what is it that you want to do in parallel?
<toretore> systemd0wn: why aren't you using siege or ab?
<systemd0wn> When I generate the POST it's waiting for a response. But I don't want waiting for a response to slow down the execution of the next POST.
Soda has quit [Remote host closed the connection]
ag4ve_ has joined #ruby
<systemd0wn> toretore: because I can't specify an exact number of transactions per second. I don't care how long the HTTP response takes to get to me. I'm actually timing how long it takes the backend to do junk asynchronously
<systemd0wn> Does that make sense?
dumdedum has quit [Quit: foo]
<toretore> you could just make a thread for each request, as you're making them, and make sure to join them all when you're done
lolmaus has joined #ruby
<systemd0wn> So I'm getting my real data from another monitoring tool on the backend. But I need to generate a constant numbre of POST/second so that my backend data has some correlating data.
nhhagen has joined #ruby
<systemd0wn> I wish I had any idea how to do that. It sounds logical but ya... Point a guy in the right direction?
AlphaAtom has joined #ruby
anemone has joined #ruby
<jhass> I feel like I'd use typhoeus hydra for this
<jhass> uses curl in the background and async callbacks
nhhagen has quit [Remote host closed the connection]
<toretore> that does exactly what you first asked for
philip1 has joined #ruby
avril14th has quit [Remote host closed the connection]
<anemone> Hey, beginner here, I want to run a small ruby script for the next couple of days, how to keep running it in a server?
<systemd0wn> toretore: wow! Thanks! Let me give this a test.
<systemd0wn> jhass: thanks I'll take a look at that too.
<jhass> anemone: what's the server OS?
ldnunes has joined #ruby
<jhass> systemd0wn: that is, if your tps is high enough that scheduling the new thread is too much work to fit it etc.
<toretore> screen, tmux or that other one that you put in front
vt102 has joined #ruby
<anemone> @jhass Ubuntu 14.04 i installed ruby and did a test run, But I want to keep it running even if i'm not online.
<jhass> +1 to tmux then
a5i has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> tmux to start a new session, Ctrl+B then D to detach, tmux at to reattach
<systemd0wn> Because the TPS is really low, at the moment, it shouldn't be a problem for a while.
lkba has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus_ has joined #ruby
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philip1 is now known as phutchins
<anemone> @jhass should I start tmux after sshing into the server?
<jhass> anemone: yes
<toretore> the server probably doesn't have tmux installed, but may have screen
sigurding has joined #ruby
<systemd0wn> Kinda impressed by the kindness of #ruby right now.
zz_Outlastsheep is now known as Outlastsheep
sigurding has quit [Client Quit]
<toretore> systemd0wn: you pasted your code and described the problem properly, making it easy to help you
<toretore> you'd be amazed how many people can't manage to do that
chridal has joined #ruby
<systemd0wn> I'll chalk that up to YEARS of IRC use. heh
<anemone> @jhass okay, let me try that, ty
ntz has left #ruby [#ruby]
sigurding has joined #ruby
iasoon has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<apeiros> systemd0wn: glad to hear. we always try to be nice. but as toretore said - being nice and helpful when asking goes a long way making that easy of course :)
<noobQ> hi jhass
ntln has quit [Ping timeout: 265 seconds]
<jhass> hi hector
<noobQ> jhass: hey dude forget my name
Soda has joined #ruby
<apeiros> heh
reinaldob has joined #ruby
<wasamasa> anemone: you should eventually let your init daemon control it
<wasamasa> anemone: it's trivial with systemd
phutchins has quit [Quit: WeeChat 1.1.1]
<apeiros> noobQ: just use your "real" nick. if you go far enough back in the logs, there'll be tons of stupid things I asked. so what. it's normal.
_ixti_ has joined #ruby
philip1 has joined #ruby
<anemone> @jhass that's cool, I only used tmux for multiple terminal windows, But this is totally cool, thank you
<systemd0wn> toretore: that worked perfectly. The exact number of POSTs in the exact amount of time I wanted. Thanks again.
ndrei has quit [Ping timeout: 255 seconds]
philip1 is now known as phutchins
<noobQ> apeiros: hehehe yeah It's not because I asked stupid question but i liked new nick
<noobQ> noobQ its good before I was using my name
cimenta has joined #ruby
nhhagen has joined #ruby
elaptics is now known as elaptics_away
ixti has quit [Ping timeout: 250 seconds]
iteratorP has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
GeorgeThompson has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
plutonic has quit [Quit: plutonic]
<cimenta> hi, could someone help me how to use salesforce_http_client
<cimenta> ? I am sure that most of you would know :-) https://github.com/apuruni/salesforce_http_client
imanzarrabian has joined #ruby
phutchins has quit [Client Quit]
sevenseacat has joined #ruby
nhhagen has quit [Remote host closed the connection]
bruno- has joined #ruby
philip1 has joined #ruby
philip1 is now known as phutchins
bMalum has joined #ruby
<apeiros> cimenta: if you're looking for help, the best to do is to phrase a question and ask it
<apeiros> make sure you include what you want to do, what you've done so far, where/how you failed.
renier_ has joined #ruby
<cimenta> how can I post the code I used and what error I got?
renier has quit [Ping timeout: 272 seconds]
<jhass> ?gist cimenta
<ruboto> cimenta, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
reinaldob has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
tus has joined #ruby
sevvie has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 264 seconds]
<cimenta> and in a comment is the error
<cimenta> I am using ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
RegulationD has joined #ruby
chridal has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
<jhass> cimenta: the gem fails to properly load its dependencies, open an issue with them. Meanwhile at require "httpclient" at the top of your file
<jhass> er, s/at/add/
turtil has joined #ruby
DerisiveLogic has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<cimenta> jhass: it helped :-) but there is another error in new comment
lidenskap has joined #ruby
Suge_Knight has quit [Ping timeout: 245 seconds]
<jhass> cimenta: basically the same issue, missing: require "fileutils"
withnale2_ has quit [Ping timeout: 256 seconds]
iotouch has joined #ruby
<cimenta> could it be my installation of ruby?
RegulationD has quit [Ping timeout: 245 seconds]
<jhass> it's really their fault, you adding those is just the workaround
<jhass> the gem has to require what it needs, they fail to do that and its their fault
<cimenta> ok
<cimenta> looks good. Finished without error. Now I am going to use real login credentials.
Rollabunna has quit [Remote host closed the connection]
<cimenta> thank you so much for your help
Rollabunna has joined #ruby
<jhass> yw, don't forget to report an issue to the gem
<jhass> at least it'll help others with the same problem
scripore has quit [Quit: This computer has gone to sleep]
DerisiveLogic has quit [Ping timeout: 272 seconds]
tvw has quit [Remote host closed the connection]
bruno- has joined #ruby
lidenskap has quit [Ping timeout: 256 seconds]
<ytti> => #(Element:0x1320158 {
<ytti> name = "queue",
<ytti> #(Text "\n"),
<ytti> children = [
<ytti> #(Element:0x13200a4 { name = "queue-number", children = [ #(Text "\n0\n")] }),
<ytti> #(Text "\n"),
<ytti> #(Element:0x1329f64 { name = "forwarding-class-name", children = [ #(Text "\nBE\n")] }),
<jhass> ytti: /topic!
<ytti> #(Text "\n"),
<ytti> this is my nokogiri object
<ytti> how do i get forwarding-class-name
<ytti> i thought xml.xpath('queue/forwarding-class-name'
<ytti> but nothing
<ytti> i don't want to '//queue/forwarding-class-name'
<ytti> as i'll then get nodes i don't want
plutonic has joined #ruby
nonnatus has quit [Ping timeout: 256 seconds]
<systemd0wn> toretore: Question, can you think of any reason why that code wouldn't be genertaing the number of transactions I think it should? When I tested your changes I told it to run 1trans/sec, ran it for 600sec and it ouput 600 trans. But when I did 1.5trans/sec it still output 600 trans, instead of 900.
<ytti> [38] pry(main)> q.path
<ytti> => "/rpc-reply/interface-information/interface-set/interface-set-queue-information/queue-counters/queue[1]"
scripore has joined #ruby
OrbitalKitten has joined #ruby
pika_pika has joined #ruby
<jhass> ytti: you call it on queue?
<ytti> jhass, sorry, i don't follow
<jhass> I take that as a yes
<ytti> q is xml.xpath('//queue').first
<ytti> now, from q, i want 'queue/forwarding-class-name'
plutonic has quit [Client Quit]
<jhass> ytti: .xpath("foo/bar") is the same as .xpath("./foo/bar"), so calling it on queue, searches for <queue>(.)<queue>(/queue)<forwarding-class-name>(/forwarding-class-name)
freerobby has joined #ruby
scripore has quit [Client Quit]
<ytti> what i really want to do, i itearate them
<ytti> so sometihng to the note of
robertt_dex has joined #ruby
robertt_dex has quit [Read error: Connection reset by peer]
<ytti> xml.xpath('//queue').each do |queue|
<jhass> doesn't change anything
<ytti> name = queue.at_xpath('queue/forwarding-class-name')
<ytti> ..
<ytti> something like that, but no idea how
krz has joined #ruby
<jhass> queue is already <queue>, why do you search for another <queue> nested into it?
<toretore> systemd0wn: did this change after the threads were added?
n80 has joined #ruby
<ytti> jhass, uhh
<ytti> unreal, you're right
<ytti> s/unhreal/uhh/
<ytti> jhass, thanks
iotouch has quit [Quit: This computer has gone to sleep]
<systemd0wn> toretore: well technically it was never generating the propper num trans/sec because it was waiting for the POST to finish before moving on.
chridal has joined #ruby
imanzarrabian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<systemd0wn> toretore: I just ran it again at 1.9trans/sec and it still sent 600. Is this a floating point issue? Going to run at 2trans/sec for 10min and see
<toretore> sleep(1.0/1.5) should work fine
<toretore> >> 1.0/1.5
<ruboto> toretore # => 0.6666666666666666 (https://eval.in/314866)
sevvie has quit [Ping timeout: 276 seconds]
demiurgen has left #ruby ["QUIT :Leaving."]
<toretore> systemd0wn: put a counter in the while loop, just to see that it loops 900 times?
<systemd0wn> ya. good idea.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jakolehm has joined #ruby
hiyosi has joined #ruby
doodlehaus has joined #ruby
joonty has joined #ruby
doodlehaus has quit [Remote host closed the connection]
anemone has quit [Ping timeout: 246 seconds]
<cimenta> anyone would know if I can use mechanize to log into Salesforce? I found people saying that it's not possible because SF uses javascript. But someone said that it is possible. Does anyone got any experience with that?
tgunr has quit [Ping timeout: 245 seconds]
revoohc has joined #ruby
<wasamasa> time to use selenium
Rapier- has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
Rollabunna has joined #ruby
tgunr has joined #ruby
<cimenta> I already wrote it in pure javascript. I have to be logged in to get the report. I thought I would use mechanize, I used to use it years ago.
quimrstorres has quit [Remote host closed the connection]
elaptics_away is now known as elaptics
juanpaucar has quit [Ping timeout: 264 seconds]
Zai00 has joined #ruby
sgambino has joined #ruby
decoponio has joined #ruby
tgunr has quit [Ping timeout: 276 seconds]
<systemd0wn> toretore: putting 1.5trans/sec results in the loop only going 60 times.
<systemd0wn> where it should have run 90 times.
vivekananda has quit [Ping timeout: 240 seconds]
zachrab has joined #ruby
<jhass> systemd0wn: print the return value of sleep, it returns how long it actually slept
tgunr has joined #ruby
<jhass> but I guess the thread scheduling overhead already bites you
<systemd0wn> I don't think it's the thread scheduling to be honest. I can remove it to check but I think there is some resolution issues. https://www.ruby-forum.com/topic/106209
mary5030 has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<systemd0wn> Hrm. I dunno, as I read that post maybe that's not it.
krisquigley has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
joonty has quit [Ping timeout: 256 seconds]
<jhass> do the requests have to be evenly distributed inside the second?
zachrab has quit [Ping timeout: 264 seconds]
<systemd0wn> jhass: would be best to get as close as possible but the total transactions gets pretty far off over a long period of time.
kubunto has joined #ruby
<systemd0wn> jhass: so, no. But the closer the better, and as long as the total transactions over time is accurate.
thumpba has joined #ruby
<systemd0wn> Ya, the threading was definitely helping because the time scew from waiting for the POST to finish is pretty bad.
<jhass> well, if the answer was no I'd suggested to fire off tps requests without delay, measure how long that takes with Process.clock_gettime and a monotonic clock and sleep for the remaining part of the second
thumpba_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 256 seconds]
anaeem1_ has quit [Ping timeout: 265 seconds]
Rollabunna has quit [Read error: Connection reset by peer]
lessless has joined #ruby
<systemd0wn> jhass: How far from an even distribution would that get me?
Rollabunna has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
<jhass> quite far
<jhass> something like [---____]
Advocation has joined #ruby
<jhass> [---___][---___][---___] with multiple seconds
scripore has joined #ruby
joonty has joined #ruby
<systemd0wn> hrm. How would it handle something like 1.5tps? Because I'm doing a very low number of tps. For instance 2tps is too high of a load. 1tps is smooth.
<kubunto> is it ok to ask for someone to look over what i wrote here?
thumpba has quit [Ping timeout: 248 seconds]
<jhass> kubunto: not someone specifically, but you can ask the channel for code review, yes
<jhass> systemd0wn: that'd probably end up like [-___][--__][-___][--___] I guess
BlackGear has joined #ruby
ponga has quit [Quit: Leaving...]
iotouch has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<systemd0wn> jhass: I think that would be acceptable to be honest. The longer the test the less impact really.
<systemd0wn> jhass: not that I have any idea how to do what you're suggesting. lol. but ya.
BlackGear has joined #ruby
<jhass> if you find a smart implementation, more like [---][___][---][___] for a naive approach of doubling the interval
sevvie has joined #ruby
scripore has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
<jhass> otoh the thread schedular might distribute it more evenly again by accident
<systemd0wn> So strange, if I ask it to do 2tps it does. So it definitely doesn't like non-integers.
Joffily has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
basiclaser has quit [Quit: Connection closed for inactivity]
riotjone_ has quit [Ping timeout: 276 seconds]
konsolebox has quit [Quit: Leaving]
scripore has joined #ruby
xmaddness has quit [Quit: Leaving]
mrmargolis has joined #ruby
<jhass> indeed
cimenta has quit [Quit: Leaving]
ta has quit [Remote host closed the connection]
<jhass> what a silly behavior
kubunto has quit [Quit: brb]
<jhass> systemd0wn: try sleep((1.0/tps.to_f).round(3))
<systemd0wn> ok
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
sankaber has joined #ruby
<systemd0wn> jhass: :( no diff
tgunr has quit [Ping timeout: 256 seconds]
reinaldob has joined #ruby
thumpba_ has quit [Ping timeout: 246 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
failshell has joined #ruby
<jhass> I'd still be interested in your actual sleep times
reinaldob has quit [Remote host closed the connection]
<jhass> b = Process.clock_gettime(Process::CLOCK_MONOTONIC); sleep (1.0/tpn.to_f); p Process::clock_gettime(Process::CLOCK_MONOTONIC)-b
<jhass> can you fetch some samples from what that outputs?
<DefV> jhass: I go to bed at 1am and get up at 7:30
<DefV> so I have about 6:30 of sleep time
<systemd0wn> hahaha
<DefV> but I'll try and give you a more details report next week
<jhass> DefV: th
<DefV> xD
<jhass> thanks!
imanzarrabian has joined #ruby
kobain has quit [Max SendQ exceeded]
<systemd0wn> jhass: just replace the sleep with that line?
towski_ has joined #ruby
<jhass> yeah
kobain has joined #ruby
<jhass> er, tpn -> tps of course
imanzarrabian has quit [Client Quit]
<systemd0wn> got ya.
Igorshp has quit [Remote host closed the connection]
AlphaAtom has quit [Ping timeout: 245 seconds]
kobain has quit [Max SendQ exceeded]
Outlastsheep is now known as zz_Outlastsheep
kobain has joined #ruby
imanzarrabian has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
<jhass> and maybe another run with b = ...; moved before the Thread.new
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<systemd0wn> k. standby
vivekananda has joined #ruby
kobain has quit [Max SendQ exceeded]
<systemd0wn> uninitialized constant "Process::CLOCK_MONOTONIC (NameError)"
kobain has joined #ruby
tgunr has joined #ruby
<jhass> wat
<jhass> ruby -v ?
towski_ has quit [Ping timeout: 255 seconds]
<systemd0wn> ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
kobain has quit [Max SendQ exceeded]
dblessing has joined #ruby
kobain has joined #ruby
nfk has quit [Quit: yawn]
<jhass> looks like it's new in 2.1 :/
<ytti> i really dislike that it's in Process
kobain has quit [Max SendQ exceeded]
<ytti> Time.monotonic would have been much more apt, imho
freerobby has quit [Quit: Leaving.]
kobain has joined #ruby
<ytti> but i'm sure there is argumen there, which i didn't consider, which makes Process better
<jhass> the whole Time API is pretty meh
d10n-work has joined #ruby
<jhass> I'd liked a Clock class for that stuff
kobain has quit [Max SendQ exceeded]
<systemd0wn> Let me see if I can grab a newer ver...
<jhass> that would be awesome
kobain has joined #ruby
<hanmac1> shevy:
<hanmac1> >> require "delegate"; class ExceptionDelegator < SimpleDelegator; def method_missing(*); super; rescue => e; on_exception(e); end; def on_exception(e); puts e.message; end;end; ExceptionDelegator.new(5) / 0
<ruboto> hanmac1 # => divided by 0 ...check link for more (https://eval.in/314907)
allcentury has joined #ruby
kobain has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
failshell has quit []
iotouch has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
<systemd0wn> jhass: which ver should I go with here? any pref other than >=2.1
<jhass> if you can freely pick, just 2.2.2, no reason to stay behind
pullphinger has joined #ruby
<systemd0wn> k
n80 has quit [Quit: n80]
QualityAddict has quit []
sanguisdex has quit [Quit: Leaving.]
quimrstorres has joined #ruby
<systemd0wn> ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux-gnu]
RegulationD has joined #ruby
krz has quit [Ping timeout: 245 seconds]
iamninja_ has quit [Quit: WeeChat 1.1.1]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<jhass> looks good
<systemd0wn> grr. now I don't have deps.
riotjones has quit [Remote host closed the connection]
riotjones has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
<systemd0wn> ah, that's better.
Morkel has quit [Quit: Morkel]
anaeem1_ has joined #ruby
sanguisdex has joined #ruby
ss has joined #ruby
pagios has joined #ruby
ss is now known as Guest20457
RegulationD has quit [Ping timeout: 256 seconds]
<systemd0wn> jhass: http://pastebin.com/kJTHY3bG
<ruboto> systemd0wn, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e68a0a27d8403cc407e9
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> systemd0wn: weird
<systemd0wn> Very.
<jhass> oh lol
<jhass> that we didn't notice...
<jhass> sigh
<systemd0wn> ?
<jhass> tps = ARGV[3].to_i
<jhass> >> "1.5".to_i
<ruboto> jhass # => 1 (https://eval.in/314951)
fmcgeough has joined #ruby
gauke_ has joined #ruby
<systemd0wn> lol.
<systemd0wn> :/
casadei has joined #ruby
<jhass> to_f it there already and remove the .to_f in the sleep
<systemd0wn> yup.
gauke has quit [Ping timeout: 256 seconds]
gauke_ is now known as gauke
Joffily has joined #ruby
n80 has joined #ruby
Spami has joined #ruby
<systemd0wn> heh. well whadya know:
<systemd0wn> 2015-04-17 08:26:07 -0500 200 OK
<systemd0wn> 0.6667414819821715
kobain has joined #ruby
ismaelga has joined #ruby
<jhass> :)
<systemd0wn> thanks so much.
<jhass> yw, was a nice adventure after all I guess :P
kobain has quit [Max SendQ exceeded]
<systemd0wn> Haha. I think we were walking in circles for a while but the path was found!
bruno- has joined #ruby
vdphks has joined #ruby
bigmac_ is now known as i8igmac
<systemd0wn> All I ever wanted was precision, all my dreams have come true.
AlphaAtom has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
amdbcg has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
imanzarrabian has quit [Ping timeout: 264 seconds]
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
sevenseacat has joined #ruby
uri_ has joined #ruby
Pupeno has quit [Quit: Leaving...]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
krz has joined #ruby
fryguy9 has joined #ruby
nettoweb has joined #ruby
SOLDIERz has joined #ruby
aryaching has joined #ruby
reinaldob has joined #ruby
balazs_ has joined #ruby
doodlehaus has joined #ruby
ahmetkapikiran has joined #ruby
bMalum has quit [Quit: bMalum]
freerobby has joined #ruby
Feyn has quit [Quit: Leaving]
kobain has joined #ruby
paulcsmith has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
balazs_ has quit [Ping timeout: 256 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
sinkensabe has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
spyderman4g63 has joined #ruby
<shevy> hmmm
<shevy> you found ruby
OrbitalKitten has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
OrbitalKitten has quit [Client Quit]
nhhagen_ has joined #ruby
anarang has quit [Quit: Leaving]
mary5030 has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
failshell has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
vim_shimm has joined #ruby
shellfu_afk is now known as shellfu
kobain has quit [Max SendQ exceeded]
ponga has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
kobain has joined #ruby
gaboesquivel has joined #ruby
nhhagen has quit [Ping timeout: 250 seconds]
kobain has quit [Max SendQ exceeded]
nhhagen_ has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
amundj_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
kobain has joined #ruby
Vivex has quit [Read error: Connection reset by peer]
hazelux has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
frem has joined #ruby
iotouch has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
evanjs has joined #ruby
balazs_ has joined #ruby
kobain has joined #ruby
sgambino has joined #ruby
bMalum has joined #ruby
werelivinginthef has joined #ruby
dcarmich has joined #ruby
joonty has quit [Ping timeout: 248 seconds]
vivekananda has quit [Quit: Leaving]
<shevy> damn
<shevy> >> "\xD6kologie"
<ruboto> shevy # => "\xD6kologie" (https://eval.in/314983)
vivekananda has joined #ruby
hazelux has quit [Ping timeout: 245 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vivex has joined #ruby
<shevy> is the "\xD6" valid? It is supposed to be Ö ... but if I apply .downcase... I do not get ö, I get Ö unchanged
djellemah has joined #ruby
B1n4r10 has joined #ruby
kobain has quit [Max SendQ exceeded]
paulcsmith has quit [Quit: Be back later ...]
vtunka has joined #ruby
kobain has joined #ruby
plashchynski has joined #ruby
kobain has quit [Max SendQ exceeded]
mgorbach has quit [Read error: Connection reset by peer]
DeBot has quit [Ping timeout: 272 seconds]
<shevy> weird... the string is "Encoding:US-ASCII"
kobain has joined #ruby
<shevy> but I have had set # Encoding: ASCII-8BIT
mgorbach has joined #ruby
pacMakaveli has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<dudedudeman> Happy friday to you and yours!
<dudedudeman> Hope today was pay day for all of you. lol
kobain has quit [Max SendQ exceeded]
rbennacer has joined #ruby
kobain has joined #ruby
djellemah_ has joined #ruby
vim_shimm has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
sevvie has joined #ruby
ismaelga has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
Kricir has joined #ruby
<DefV> I only get paid once a month :x
kobain has joined #ruby
havenwood has joined #ruby
<jhass> shevy: downcase only does ASCII afaik
lordkryss has quit [Quit: Connection closed for inactivity]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
RegulationD has joined #ruby
failshell has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
ascarter has joined #ruby
kobain has joined #ruby
<shevy> hmmm
GenghisKen has quit [Ping timeout: 245 seconds]
kobain has quit [Max SendQ exceeded]
djellemah has quit [Ping timeout: 246 seconds]
ascarter has quit [Max SendQ exceeded]
<shevy> I do seem to remember that it has worked in the past just fine
ta has joined #ruby
<shevy> but I am not sure
kobain has joined #ruby
djellemah_ is now known as djellemah
<shevy> I need to write those things down methodically, I can't trust my brain
ascarter has joined #ruby
Channel6 has joined #ruby
jud has quit [Quit: Leaving]
kobain has quit [Max SendQ exceeded]
ascarter has quit [Max SendQ exceeded]
kobain has joined #ruby
paulcsmith has joined #ruby
ascarter has joined #ruby
kobain has quit [Max SendQ exceeded]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
kobain has quit [Max SendQ exceeded]
<dudedudeman> If I'm pushing things to an array, I know I can do a = ["123", "456", "789"].
kobain has joined #ruby
<dudedudeman> but I also know that %w[123 456 789] works as well
<dudedudeman> is that something that is considered best practice? or frowned upon?
SOLDIERz has quit [Ping timeout: 256 seconds]
ascarter has quit [Max SendQ exceeded]
amdbcg has quit [Read error: No route to host]
kobain has quit [Max SendQ exceeded]
amdbcg has joined #ruby
ascarter has joined #ruby
<canton7> whatever's most clear
n80 has quit [Quit: n80]
kobain has joined #ruby
<ninjs> ruby means choices haha
<ninjs> I feel like a lot of people use whatever let's them make the least amount of comments in their code.. haha
<shevy> dudedudeman the second is simpler because you can omit the "," parts
Cust0sL1men has quit [Ping timeout: 248 seconds]
juanpaucar has joined #ruby
davedev24_ has joined #ruby
jlast has joined #ruby
jud has joined #ruby
jud has joined #ruby
kobain has quit [Max SendQ exceeded]
<shevy> and ruby people are extremely lazy alien a race
<dudedudeman> I do like it. and I know i can do things like a.to_hash and things like that
<dudedudeman> i'm ok with lazy aliens!
<dudedudeman> it's the proactive aliens i'm worried ao but
kobain has joined #ruby
<dudedudeman> about*
deuterium has joined #ruby
<shevy> there once was some strange TV series... Alien or something... they hated salt water
<dudedudeman> who doesn't hate salt water?
ahmetkapikiran has joined #ruby
<jhass> salt water is awesome
<dudedudeman> bar tender! One salt water cocktail for jhass, please!
<shevy> sadly I don't remember the name... and having seen it only in german also does not help remember
kobain has quit [Max SendQ exceeded]
sgambino has joined #ruby
<jhass> nobody said anything about drinking it
<shevy> aaah
<shevy> "Alien Nation" http://www.imdb.com/title/tt0096531/ ... damn... only ran for 2 years, could not have been a huge success :(
kobain has joined #ruby
<shevy> fate of twin peaks there :D
nateberkopec has joined #ruby
<shevy> which also ran for only 2 years
kobain has quit [Max SendQ exceeded]
ismaelga has joined #ruby
kobain has joined #ruby
mengu has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
kobain has quit [Max SendQ exceeded]
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
kobain has quit [Max SendQ exceeded]
endash has joined #ruby
kobain has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
izzol has joined #ruby
<izzol> hello ;-)
<dudedudeman> hello!
kobain has quit [Max SendQ exceeded]
mengu__ has joined #ruby
kobain has joined #ruby
<shevy> OLLEH
iotouch has quit [Quit: 离开]
Igorshp has joined #ruby
<izzol> of course I have a question :P
<shellfu> To which there are no answers :(
<dudedudeman> go ahead and ask!
mengu has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
<izzol> I have something like: string1 = "ABCDE" and string2 = "EDCBA" and I want to check if all letters in string1 are in string2
<izzol> and no idea how to deal with it :P
reinaldob has quit [Remote host closed the connection]
AlphaAtom has quit [Ping timeout: 250 seconds]
zachrab has joined #ruby
kobain has joined #ruby
<serivich> idea of the day: an android app that loads a demoscene program via QR or NFC
* hanmac1 learned once again why he hates eCommerce software ... or an html question: what is wrong with "<a><b><c>Text</c></a></b>" and then wondering why you cant style the page correct ...
kobain has quit [Max SendQ exceeded]
<dudedudeman> <a><b><c>duh</c></b></a>?
wwwbukolaycom has joined #ruby
krisquigley has joined #ruby
kobain has joined #ruby
GenghisKen has joined #ruby
ndrei has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<jhass> izzol: would you know how to do it if they're an array of characters?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<izzol> jhass: I think I will check each element from an array
havenwood has quit []
kobain has quit [Max SendQ exceeded]
<jhass> I have a present for you then: String#each_char
mrmargol_ has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
polysics has quit []
kobain has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
ta has quit [Remote host closed the connection]
Cust0sL1men has joined #ruby
kobain has quit [Max SendQ exceeded]
krisquigley has quit [Ping timeout: 252 seconds]
<izzol> jhass: thanks, this is what I was looking :-)
<jhass> izzol: come back if you have your solution working and we'll say if it's the most idiomatic one ;)
gaboesquivel has quit []
<izzol> ok ;-)
lxsameer has quit [Quit: Leaving]
<dudedudeman> DOn't forget to gist it!
krz has quit [Ping timeout: 250 seconds]
ianseyer has quit [Ping timeout: 240 seconds]
mtakkman has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<shevy> until you missed it!
<ninjs> I wish more people used ruby than python... some of the libraries in ruby are pretty rough. haha
davedev2_ has joined #ruby
* IceDragon tackles shevy out the door
livathinos is now known as livathinos|away
livathinos|away has quit []
<IceDragon> O: looks like I tackled the wrong person
<shevy> ninjs there is chaos in ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> it can be pretty or awful
<shellfu> Im out of coffee! I think today is lost!
reinaldob has joined #ruby
<shevy> grab beer
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<shellfu> hmmm. yeah ok., day SAVED!
<dudedudeman> i would argue that there can be beauty in chaos
<shellfu> mmm beer
jerius has joined #ruby
<ninjs> Agreed, but at least ruby makes sense.. as opposed to python
<IceDragon> there is chaos in every language, you just get used to it
<shevy> python made some weird decisions
<dudedudeman> i think code is chaotic because it doesn't mean anything until you tell it what to do. it is in the hands of the developer to make it beautiful
riotjones has quit [Remote host closed the connection]
<shevy> I still can't understand why they have explicit self
reinaldob has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
ujihisa has joined #ruby
juanpaucar has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
<IceDragon> shevy: Go has the same thing when you use struct functions
elfuego has joined #ruby
<ninjs> Their methods/functions confuse me too
<IceDragon> >.> except Go is saner with it
<shevy> dudedudeman yeah that is sort of true
<shevy> when I look at some code that I wrote
<shevy> it's not that pretty :(
|RicharD| has quit [Quit: Sto andando via]
<dudedudeman> shevy: how long have you been writing code?
<shevy> in ruby? about 10 years
sevenseacat has quit [Quit: Me dun like you no more.]
<dudedudeman> see, i think that has to be a cool place to be then. because you can look backwards and hopefully see ten years of growth in how you write code. you've seen the beauty develop from a seed to a flower
<shevy> oh god
axl_ has joined #ruby
<shevy> I don't want to look back at the code atrocities I have committed
<dudedudeman> ha
<shevy> the seed is cheating
<shevy> it has the instruction to become that very flower already inside
<ninjs> I feel like I write the best code when it's for a project that *I* want to do, and the worst code when there are time/budget constraints, or I'm not that interested in the final product
<IceDragon> you started from a piece of dirt, did some alchemy and made it into a seed
kblake has joined #ruby
<dudedudeman> it's true, sometimes you just have to make it work, not make it pretty
<shevy> when you have to write code anew, it's hard work! you don't know how it'll end up... how many bugs there will be... and you also know that you can't be arsed to write a lot of documentation after all that prior coding anyway
mengu__ has quit [Remote host closed the connection]
<ninjs> Yeah. If I know no one is going to be looking at my code... I do some pretty terrible things haha
* dudedudeman gets excited
<shevy> IceDragon how are baby dragons made
* dudedudeman excitement intensifies!!!!!!!
<shellfu> hey dont feel bad ninjs Im a sysadmin so my code isnt the quality of all you fine folks.
<IceDragon> You dun wanna know 3:
<shellfu> gets the job done though ha
<ninjs> shellfu: I was a sysadmin a year ago haha
<dudedudeman> a wild sysadmin appeared!
bruno- has quit [Ping timeout: 276 seconds]
<IceDragon> Back in my day, we used to find a lady dragon and let the fun happen, nowadays its all machines and science
<ninjs> in fact I was still as sysadmin while I got this job, and did both for a long time until they transitioned me over
<dudedudeman> a lady dragon. lmal
Advocation has quit [Quit: Advocation]
vtunka has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shellfu> Yeah. In another life id have been a dev, but meh. cards didnt get dealt that way
<IceDragon> Yes good sir, you didn't want just ANY female dragon, it had to be a LADY
<shellfu> I enjoy it though
mrmargolis has joined #ruby
n008f4g_ has joined #ruby
<ninjs> shellfu: you can do it. Just keep making stuff and eventually people will want to hire you
<ninjs> as a dev
<shellfu> yeah. I enjoy these days enabling you devs to do your job better. :)
* wwwbukolaycom :)
ascarter has joined #ruby
<ninjs> I enjoy dev so much that in my current company I went sysadmin > CTO > lead developer
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
ascarter has quit [Max SendQ exceeded]
<shellfu> I get a lot of my programming needs out by making android games with the wife. She's an artist, so it works out. Though I can't tell my unix buddies I work with C# in unity :P
krz has joined #ruby
<dudedudeman> ha. monetize those bad boys!
mrmargol_ has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
* IceDragon points @ shellfu and screams "we have a unix traitor!"
* shellfu hides
<shellfu> NOOOOOO!
* IceDragon sharpens the pickaxe
<shellfu> my wife made me do it? Yeah... that's it.
ascarter has quit [Max SendQ exceeded]
* IceDragon pickaxes shellfu's desk
reinaldob has quit [Remote host closed the connection]
<IceDragon> Hand slipped P:
maximski has joined #ruby
<jhass> izzol: okay, let's see. first of all you do want to write wrong for each char that's not included?
maximski has quit [Max SendQ exceeded]
kobain has joined #ruby
<shellfu> Heh I bet my desk could withstand a pickaxe. Its steel :P
ascarter has joined #ruby
<shellfu> but im a nerd and its a cockpit for star citizen lol
anaeem1__ has joined #ruby
<izzol> jhass: good point. No. I prefer to have just one information ;-)
<IceDragon> Hurp durp
<IceDragon> ;-; I wanna make a lisp for mruby
edwinvdg_ has quit [Remote host closed the connection]
maximski has joined #ruby
kobain has quit [Max SendQ exceeded]
<IceDragon> I just need to find a lisp parser, since I suck at making my own
maximski has quit [Max SendQ exceeded]
kobain has joined #ruby
<IceDragon> orz
<jhass> izzol: break aborts a loop, try updating your gist with it
maximski has joined #ruby
anaeem1_ has quit [Ping timeout: 248 seconds]
<shevy> dudedudeman what makes me wonder in ruby is whether it takes longer to write things that are API satisfiable
<dudedudeman> well, i wonder if the slightly extra time is worth it as it forces you to think through what your'e doing?
OrbitalKitten has joined #ruby
kobain has quit [Max SendQ exceeded]
<hanmac1> izzol: that reminds me of the oldschool "mastermind" game ;P
gagrio has quit [Ping timeout: 276 seconds]
* IceDragon waves to hanmac1
kobain has joined #ruby
GenghisKen has quit [Ping timeout: 250 seconds]
<IceDragon> hanmac1: You wouldn't happen to know any lisp parsers in C or pure ruby?
<shevy> dudedudeman not sure if it is just slight extra time
<hanmac1> no i never used lisp
<shevy> for instance, a while ago I started to fall in love with []
<dudedudeman> shevy: ah, think it's enough to make you hate yourself? lol
Crisix has joined #ruby
<IceDragon> sad >:
<shevy> so I have a gem then called, rainbow. So, there must be a Rainbow[] method. which often is... Rainbow.new
lidenskap has joined #ruby
<shevy> then I think there is in ruby-gtk, you can call methods like: .set_bla but also .bla =
mitchellhenke has joined #ruby
Crisix has quit [Max SendQ exceeded]
<ninjs> izzol: why not just puts "Wrong" if test2.chars.sort != test1.chars.sort
<shevy> then you have blocks available to every method, so you can use them as extra arguments all the time
<IceDragon> shevy: usually bindings have set_bla if their underlying api uses a similar convention, just so you can use the same constructs and easily move from the ruby binding to the underlying api (rbSFML does this by offering you ruby setters and set_ methods)
<shevy> :)
<shevy> dudedudeman now you see where complexity arises!
davedev2_ has quit []
<IceDragon> ninjs: I think you'd want to avoid creating 2 new array ;x
<IceDragon> *arrays
<dudedudeman> ha, tis true
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman> i'm still very young at this. but i try to glean wisdom and guidance from anyone i can in this field who has been doing it for a while
aganov has quit [Remote host closed the connection]
<shellfu> Standing on the shoulders of giants is bad for their posture dudedudeman
<ninjs> whoops that's supposed to say test2* not b
<IceDragon> still the same, now you've reconstructed the string
<ninjs> but same idea
<jhass> and there I wanted to slowly steer to the most idiomatic solution...
failshell has joined #ruby
<jhass> (test1.chars & test2.chars).empty?
aphprentice has quit [Remote host closed the connection]
hmsimha has joined #ruby
lidenskap has quit [Ping timeout: 245 seconds]
<ninjs> test1.size == test2.size && test1.delete(test2).empty?
<DefV> I'm going to whine about the most stupid thing
sohrab has joined #ruby
<DefV> but why would you require 'pp' just to pp "not the same length"
<dudedudeman> DefV: do it!
<DefV> THIS IS MADNESS
<IceDragon> ninjs: Thats a fancy way of doing it ;x
<IceDragon> DefV: THIS ABSOLUTE MADNESS, WHY WOULD YOU DO SUCH A THING (throw back to Doctor Strangelove)
<DefV> why join the arrays before comparison
thatslifeson_ has joined #ruby
livathinos has joined #ruby
<DefV> >> %w(a b).sort == %(b a).sort
<ruboto> DefV # => undefined method `sort' for "b a":String (NoMethodError) ...check link for more (https://eval.in/315030)
<DefV> >> %w(a b).sort == %w(b a).sort
<ruboto> DefV # => true (https://eval.in/315031)
<IceDragon> ninjs: In that test case you could just reverse one of the strings and then do == and all would be fine, that is, if the strings are always just the reverse of the other
ujihisa has quit [Ping timeout: 250 seconds]
<ninjs> IceDragon:
vt102 has quit [Remote host closed the connection]
<ninjs> I imagine he's building some kind of anagram thing, not a string reverse checker
rkazak has joined #ruby
<IceDragon> ninjs: yeah, thats what I figured
<IceDragon> oh yeah, each_char will return an enumerator O:
<IceDragon> str.each_char.all? { |a| str.include?(a) }
<IceDragon> haha
<IceDragon> >,>
livathinos has quit [Client Quit]
<IceDragon> I just don't think include? will scale nicely with large strings
Conner_A has quit [Ping timeout: 265 seconds]
gsd has joined #ruby
sigurding has quit [Quit: sigurding]
<hanmac1> IceDragon: maybe str.chars.uniq.all? might be better?
ta has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<IceDragon> hanmac1: Is there like a streaming uniq method (where it will like a Transducer version of it)?
<hanmac1> hm i dont think so :/
* IceDragon runs off to try implementing such a thing
<hanmac1> but you can do: data= {}; str1.each_char.all? { |a| data[a] || str2.include?(a) }
The_Phoenix has joined #ruby
<hanmac1> me also votes for a each_uniq method or something like that ;P
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
nettoweb has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<IceDragon> hanmac1: https://gist.github.com/IceDragon200/5b1c205b4b38665c308e # something like this :O
Advocation has joined #ruby
<ytti> IceDragon, wouldn't it be easier to pass the array to Set?
nettoweb has quit [Max SendQ exceeded]
davedev24_ has joined #ruby
<ytti> oh hmm
ndrei has joined #ruby
<ytti> maybe i'm missing something
<IceDragon> ytti: What if I don't have Set :3
vt102 has joined #ruby
<ytti> IceDragon, Array#uniq
<ytti> but i'm clearly missing something
GreyHands has quit [Quit: Textual IRC Client: www.textualapp.com]
<IceDragon> ytti: The idea is to cheat making a new array (though, in this case, I made a new Hash damn it all)
<ytti> aah streaming uniq, right
<ytti> fair enough
<IceDragon> =w=d
gsd has quit [Quit: Textual IRC Client: www.textualapp.com]
<hanmac1> hm a bit more comlicated would be an each_uniq_by method but we can keep that idea for later)
gauke has quit [Ping timeout: 252 seconds]
<IceDragon> hanmac1: Does that take a proc/symbol and then uses it as a filter?
edwinvdgraaf has joined #ruby
<hanmac1> IceDragon: it should be similar to chunk, means takes an block but still returns an enumerator (and doesnt work without block)
<IceDragon> I'll need to check chunk first then
bruno- has joined #ruby
snockerton has joined #ruby
Joffily has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
<IceDragon> and I forgot how to make Enumerators... >,> brb rubydoc
edwinvdgraaf has quit [Remote host closed the connection]
<hanmac1> apeiros: hm what would you think about a each_uniq and an each_uniq_by method?
icebourg has joined #ruby
ianseyer has joined #ruby
RegulationD has joined #ruby
nettoweb has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
hmsimha has quit [Ping timeout: 256 seconds]
ta has quit [Remote host closed the connection]
<IceDragon> hanmac1: https://gist.github.com/IceDragon200/5b1c205b4b38665c308e # did I do it right (I've added each_uniq_by)
dseitz has joined #ruby
BlackGear has quit [Remote host closed the connection]
BlackGear has joined #ruby
Aswebb_ has joined #ruby
tenseiten has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
<daxroc> Evening all
<IceDragon> hi
BlackGear has quit [Max SendQ exceeded]
<daxroc> Can I ignore sub group matches on a regex ?
<IceDragon> wait, its morning here D8<
<IceDragon> add a ?: in the group ()
BlackGear has joined #ruby
<jhass> /mode #ruby +q
<jhass> ups
<daxroc> trying to scan for mac addresses with a repeating group (([0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})
<adaedra> /mode jhass +fail
seitensei has quit [Ping timeout: 245 seconds]
BlackGear has quit [Max SendQ exceeded]
<jhass> yeah, for weeks by now
<hanmac1> daxroc: with ?: ?
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon> someone hand me a mac address quickly, lemme test it in rubular
danzilio has joined #ruby
lordkryss has joined #ruby
BlackGear has joined #ruby
danzilio has quit [Max SendQ exceeded]
<daxroc> It does match fine but also returns the last group as a second match for that line
BlackGear has quit [Max SendQ exceeded]
vim_shimm has joined #ruby
danzilio has joined #ruby
<IceDragon> too late, I made a thing
<IceDragon> :3
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
krz has quit [Quit: WeeChat 1.0.1]
<daxroc> Thanks appreciate it
vt102 has quit [Remote host closed the connection]
BlackGear has joined #ruby
Filete has joined #ruby
<DefV> ?: was the best thing about regexpes I ever discovered
BlackGear has quit [Max SendQ exceeded]
<DefV> that and the day when I knew how to write them instead of just copying from forums
Advocation has quit [Ping timeout: 265 seconds]
BlackGear has joined #ruby
jefus has joined #ruby
oddskill_away is now known as oddskill
BlackGear has quit [Max SendQ exceeded]
vt102 has joined #ruby
|RicharD| has joined #ruby
BlackGear has joined #ruby
riotjones has joined #ruby
juanpaucar has quit [Remote host closed the connection]
BlackGear has quit [Max SendQ exceeded]
n008f4g_ has quit [Ping timeout: 276 seconds]
BlackGear has joined #ruby
pacMakaveli has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
BlackGear has quit [Max SendQ exceeded]
hanmac1 has quit [Quit: Leaving.]
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
bkulbida has joined #ruby
BlackGear has joined #ruby
bMalum has quit [Quit: bMalum]
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
maximski has quit []
BlackGear has quit [Max SendQ exceeded]
teddyp1cker has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
BlackGear has joined #ruby
ParmesanCaesar has joined #ruby
hazelux has joined #ruby
* wwwbukolaycom :(
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
sts has joined #ruby
<havenwood> wwwBUKOLAYcom: Please tell both channels if you cross post. If someone in #ruby-lang answered your emoticon nobody here would know and might reduplicate the effort.
<catsoup> because the world is cruel, and promises are broken
<sts> I'd expect the first to not return NIL
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
<havenwood> sts: What did you expect it to return?
<adaedra> havenwood: haha
BlackGear has quit [Max SendQ exceeded]
<IceDragon> x:
teddyp1cker has quit [Client Quit]
x77686d has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
<IceDragon> havenwood: I can't feel my sides now
BlackGear has joined #ruby
bMalum has joined #ruby
<ytti> ytti@ytti ~> pry
<ytti> [1] pry(main)> if 0 == 1 ; 'foo' ; end
<ytti> => nil
<adaedra> yes, and ?
BlackGear has quit [Max SendQ exceeded]
<ytti> in reference to sts's question
<adaedra> ah, nvm
predator217 has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
BlackGear has joined #ruby
predator117 has joined #ruby
fryguy9 has joined #ruby
hazelux has quit [Ping timeout: 244 seconds]
vt102 has quit [Remote host closed the connection]
BlackGear has quit [Max SendQ exceeded]
<IceDragon> sts: 0 will never be equal to 1, unless your ruby interpreter is a politician...
lolmaus__ has joined #ruby
BlackGear has joined #ruby
<IceDragon> sts: I think you meant to get the element from the array
DerisiveLogic has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<IceDragon> sts: commented on the gist
lolmaus_ has quit [Ping timeout: 240 seconds]
<wasamasa> apeiros: that guy is pretty creative
<apeiros> wasamasa: datguy?
GnuYawk has quit [Ping timeout: 255 seconds]
<apeiros> our special friend?
<wasamasa> uhuh
<apeiros> I guess he must be really bored
ag4ve_ has quit [Ping timeout: 245 seconds]
<sts> IceDragon: i'm confused by [nil, nil]. I only want to get elements from the array which match a certain condition.
<wasamasa> mhh
<IceDragon> sts: Used select instead then :O
<IceDragon> sts: I'll update my comment with an example
<sts> arrr :)
<apeiros> sts: an `if … end` where the condition is not satisfied returns nil. as ytti demonstrated above.
Guest20457 has quit [Ping timeout: 245 seconds]
ag4ve_ has joined #ruby
<apeiros> sts: and with select, you can drop the if. your block just has to return a truthy value.
<IceDragon> sts: Updated, though I'd go into more detail, but /shrug
<sts> apeiros: I know that, that was just from debugging sorry :)
DerisiveLogic has quit [Ping timeout: 272 seconds]
<IceDragon> but if you wanted to map (collect) and select, I'd use each_with_object, or inject
<IceDragon> I prefer each_with_object
oddskill is now known as odd_the_medium
<IceDragon> sts: Added an each_with_object example -,-
speakingcode has joined #ruby
gaganjyot has joined #ruby
<sts> IceDragon: I just need to fetch elements which match a condition, so select should be fine.
odd_the_medium is now known as odd_the_skiller
sohrab has quit [Ping timeout: 250 seconds]
<IceDragon> sts: okie then
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goggy has joined #ruby
B1n4r10 has joined #ruby
B1n4r10 has quit [Client Quit]
Hijiri has quit [Quit: WeeChat 1.0.1]
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
<ytti> i didn't know about #each_with_object
<ytti> seems like it'll save 1 line in quite typical code
<sts> IceDragon: thank you, that works for me now: https://gist.github.com/sts/da08d3710704c6a64cab
<IceDragon> ytti: each_with_object is a saner #reduce or #inject
<sts> ytti! :) thanks
<ytti> when you're iterating over enumerable, but not every element goes into anothe robject
<adaedra> ytti: and have a better scope
<IceDragon> sts: np, glad to be of service
jottr has quit [Ping timeout: 255 seconds]
<ytti> IceDragon, i think it's totally different :) not saner
<ytti> like i might often do
<ytti> hash2 = {}
naftilos76 has joined #ruby
<ytti> hash1.each do |key, value|
mikecmpbll has quit [Ping timeout: 240 seconds]
<ytti> #sometimes insert something to hash2, but not for every key
<ytti> end
<ytti> it seems i can instead do
bkulbida has quit [Quit: leaving]
ki0 has quit [Read error: Connection reset by peer]
ki0_ has joined #ruby
bkulbida has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
<ytti> hash2 = hash1.each_with_object([]) do |(key, value), hash_temp|
<ytti> ..
<ytti> end
<ytti> or does it work with hash like that?
catcher has joined #ruby
<IceDragon> yup, unless your doing mruby, in which (key, value) expansion isn't supported (yet!)
bkulbida has quit [Client Quit]
<ytti> neat
bkulbida has joined #ruby
<catcher> Any php converts on? How long did it take you to become proficient with ruby?
<ytti> proficient seem vague
<ytti> i felt my ruby code was better than my perl code in about 3 weeks
<ytti> but i never tried to study perl, i just wrote it very opportunistically
<IceDragon> ytti: Dude its perl ;x
Guest52633 has joined #ruby
<ytti> and i spent some time trying to learn ruby, so it's not entirely fair comparison
ki0_ has quit [Remote host closed the connection]
<adaedra> catcher: it depends which level you want to achieve
<adaedra> and if you want to replace php, you have also to take account the web framework you'll use to replace PHP's web stack
<IceDragon> sinatra!
<IceDragon> >.>;
jakolehm has quit []
<adaedra> <.<;
<IceDragon> sinatra is da bestest &~&
Guest52633 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
GnuYawk has joined #ruby
<catcher> Indeed, I'm just trying to get a sense of how different the languages themselves are. Level-wise, let's say php expert -> ruby expert.
rbennacer has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> i'm obviously biased
<ytti> but i think php is one of the worst languages out there
bkulbida has quit [Quit: leaving]
bricker has joined #ruby
bkulbida has joined #ruby
jottr has joined #ruby
<ytti> i think only reason why it even 'happened' is because in mid 90's if you wanted cheap web hosting, it was php
<ytti> because php was super easy to get along with apache
Igorshp has quit [Remote host closed the connection]
<ytti> and everything else required bit more work
<catcher> The ruby documentation I've read is very good. I'm looking for real-world examples of how much time it took people to become truly proficient with backgrounds in other languages, including php.
<ytti> i think php is very complex to learn, because the level of consistency in design is low
scripore has joined #ruby
<ytti> it's hard to predict what function takes as an arguments, in what order and what does it return
<ytti> and how the funcition is named
duderonomy has quit [Ping timeout: 246 seconds]
<IceDragon> catcher: I started with ruby, coming from pascal (beginner level), took me roughly 3 years to get my bearings down (I started with 1.8.6, the days of the o so dreaded "RUBY IS SLOWWWWWWWwwwww")
<ytti> but again, i fully accept my views are biased and based on pre php5
<toretore> catcher: it depends on how much effort you put into it
* IceDragon prepares for pascal flaming
<catcher> ytti, I'd say you're right to an extent; I think the libraries are more flawed than the language itself, but same outcome.
Morkel has joined #ruby
<toretore> catcher: if you already know programming, it'll only take a few months
* wwwbukolaycom
zachrab has joined #ruby
<catcher> toretore, thanks, that was my guess based on the docs. 2-4 months if I'm using it a lot daily.
juanpablo_ has joined #ruby
michaeldeol has joined #ruby
<apeiros> wwwBUKOLAYcom: advertising here is not welcome. either you have something ruby related, or you leave the channel.
krisquigley has joined #ruby
sgambino has joined #ruby
werelivinginthef has quit [Ping timeout: 256 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
<IceDragon> apeiros: Why not warm up the old kick boot?
jottr has quit [Ping timeout: 272 seconds]
dotix has joined #ruby
dotix has joined #ruby
Zai00 has quit [Quit: Zai00]
<apeiros> IceDragon: it's warm enough as it is
<IceDragon> nah, needs to be smoldering hot
<IceDragon> To the point where it burns through metal!
<IceDragon> :3
rkazak has quit [Quit: Sleep.....ing....]
goggy has quit [Quit: Bye]
bkulbida has quit [Quit: leaving]
bkulbida has joined #ruby
<eam> IceDragon: pascal is fantastic
Aswebb__ has joined #ruby
<IceDragon> eam: Meh, I never liked pascal, I prefer C
bboss has joined #ruby
zachrab has quit [Ping timeout: 252 seconds]
Aswebb_ has quit [Ping timeout: 272 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<preyalone> How do I load 2.0 with chruby, where ruby 2.0 was installed with rvm?
<eam> I prefer C as well, but pascal is still a great language
Lucky__ has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
<adaedra> wowowowow
<adaedra> I leave #ruby 5 minutes
Stalkr_ has joined #ruby
<thomcom> I wish I knew pascal. Back when I was playing tons of BBS games there was nobody around to help me make the jump from BASIC.
<adaedra> And I come back, it speaks about C, pascal and BASIC
<eam> how can we make ruby more like pascal
<IceDragon> adaedra: also PHP
<sweeper> man pascal
<adaedra> ok, see ya
<sweeper> is it still tbt?
rbennacer has joined #ruby
* adaedra has quit the channel (Good bye)
i8igmac has quit [Ping timeout: 272 seconds]
* IceDragon successfully scared away adaedra
DerisiveLogic has joined #ruby
* IceDragon unlocks achievement "Mentioning evil languages in #ruby"
rodfersou has quit [Ping timeout: 264 seconds]
* wwwbukolaycom
<jhass> !mute wwwBUKOLAYcom
thatslifeson_ is now known as Conner_A
ghr has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
i8igmac has joined #ruby
<mg^> Pascal. That brings back uncomfortable memories.
ndrei has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
rodfersou has joined #ruby
<eam> why all the hate? :(
<IceDragon> eam: I was forced to learn pascal in school
<IceDragon> ;-;
<IceDragon> FORCED
<eam> me too, but it was fantastic
<mg^> Yeah that pretty much fits.
bigmac_ has joined #ruby
<thomcom> Man Land of Devastation was written in pascal
<thomcom> Legend of the Red Dragon was too I think
<mg^> Lots of BBS software was
zorak8 has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<thomcom> BBS was the height of human society :D
<mg^> However... I had to learn Pascal on an implementation designed for 80 columns on a 40-column computer...
<thomcom> Once the internet became prolific it was immediately hijacked by banks and NSA
<IceDragon> I remember pleading with my CS teacher to teach ruby instead of pascal
<mg^> I have a working telnet BBS with a working LoRD, too :)
maximski has joined #ruby
<thomcom> lol what
<mg^> running Renegade
<thomcom> there's no overlap between ruby and pascal IceDragon??
<thomcom> hehe
<thomcom> mg^ awesome!
<thomcom> can I telnet into your bbs?
<eam> yeah I thought schools had dumped pasal by the time ruby was in common use
<mg^> I map the telnet sessions to DosEMU instances that I dynamically spin up with the telnet sessions
<thomcom> 1995 Ruby First Appeared according to wikipedia
<thomcom> Pretty sure 1995 is when pascal was Dead and Buried
<thomcom> hehehe
<mg^> thomcom: unfortunately no, I'm not positive of the security of the thing so I haven't unleashed it to the world
<IceDragon> eam: Nope, they still teach Pascal, they used to do C and C++, buuuut, you know, shit happened, and teachers got sick of explaining the C-quirks
<thomcom> whoa
<thomcom> where were you taught pascal IceDragon?
<eam> thomcom: should be closer to 1999, which iirc is when the AP computer science programs in high school switched over to C++ nationwide
<havenwood> preyalone: Your question was answered in #chruby and #rvm. In the future please say in each channel if you crosspost so others can find the answers and not waste time with duplicate answers.
<mg^> AP computer science?
<eam> and then to java a few years later
<mg^> You kids got everything handed to you.
<IceDragon> thomcom: Eh em, first up, Jamaica, Manchester High School (before you go all AHHHHHH, yes Jamaica)
<mg^> :-)
i8igmac has quit [Ping timeout: 250 seconds]
<thomcom> I did C++ in CS #2 college in 1996
<mg^> Anyone here do Terrapin Logo?
<eam> I did logo
<thomcom> The most anybody knew about computers in high school for me was HyperCard
<thomcom> :'(
<apeiros> HyperCard… <3
<eam> logo on a commodore PET
rodfersou has quit [Ping timeout: 244 seconds]
<IceDragon> thomcom: Well, I was the top of the class, since everyone was lost to programming >,>
<IceDragon> almost felt like cheating
<mg^> When I was a CIS major we did mostly Java, but for some classes (networking and security) we did C.
bboss has quit [Quit: bb pipy]
<thomcom> still in Jamaica IceDragon?
<thomcom> mg^ Land of Devastation is still my favorite game of all time
qba73 has quit [Remote host closed the connection]
chridal has quit [Ping timeout: 240 seconds]
gregf1 has quit [Quit: WeeChat 1.0.1]
<mg^> I like TradeWars
<thomcom> TradeWars is awesome
sohrab has joined #ruby
<thomcom> The later versions of it got it wrong somehow and I fell out of using it.
<thomcom> Tradewars 2002?
<mg^> Yeah same here
<thomcom> Did they make a Tradewars 2003 or something?
ctOSconnected has joined #ruby
<mg^> Actually, that'd be a sweet one to clone in Ruby
goggy has joined #ruby
<shellfu> yeah sucked it was only windows. I was going to throw a server up a few months ago
<thomcom> I was writing a text adventure game in python - I think I'll switch it to ruby
<IceDragon> thomcom: born and raised in Jamaica, ^~^ so yep
<shellfu> ill donate servers to a trade wars project ;)
ctOSconnected has quit [Client Quit]
<thomcom> nice IceDragon you making a living now in Jamaica doing software?
<IceDragon> nope :(
dotix has quit [Ping timeout: 265 seconds]
<IceDragon> sadly
<IceDragon> thomcom: The languages used here are mostly C++ and Java
<thomcom> Hmm. Run Tradewars in a DOSBox emulator, pipe it into a ruby server
<IceDragon> especially Java
<mg^> I'm a good enough programmer that I could probably write a TW clone. However I am not a good enough programmer that it would be considered a very good implementation.
<IceDragon> o_O I'd like C#
michaeld_ has joined #ruby
jayeshsolanki has joined #ruby
<ytti> i don't know much about geography, but ice does not seem apt for jamaica :)
queequeg1 has quit [Ping timeout: 245 seconds]
<IceDragon> ytti: I just liked ice and dragons, and merged the 2 into a CamelCased union
granthatcher has quit []
djbkd has quit [Ping timeout: 256 seconds]
amdbcg has quit [Ping timeout: 248 seconds]
<ytti> maybe i should change nick to SleepFood
<IceDragon> ytti: You'd probably be SleepFood937
robertozimek has joined #ruby
jayeshsolanki has quit [Max SendQ exceeded]
<ytti> darn
vim_shimm has quit [Ping timeout: 250 seconds]
jayeshsolanki has joined #ruby
michaeldeol has quit [Ping timeout: 264 seconds]
ctOSconnected has joined #ruby
rdark has quit [Quit: leaving]
<ctOSconnected> how would you hack a database of a website using ruby
<ctOSconnected> i can do it in cmd
rkazak has joined #ruby
<wasamasa> lol
zzing has joined #ruby
<tobiasvl> wtf
<wasamasa> you must be either the worst hacker or troll ever present in #ruby
<ctOSconnected> why
<IceDragon> ctOSconnected: why?
<ctOSconnected> i'm trying to write a code to access the database of a website
<IceDragon> Just WHYYYYY
<tobiasvl> ctOSconnected: so is your name a watch_dogs reference? are you trying to be the protagonist of watch_dogs
kstuart_ has quit [Quit: WeeChat 1.1.1]
<ctOSconnected> so there's a software for it. not just cmd
failshell has quit [Remote host closed the connection]
<ctOSconnected> tobiasvl:yeah because I can hack websites
<ctOSconnected> me and my friend do it all the time
<IceDragon> apeiros: I'm scared ;-;
<shellfu> lol
mistermocha has joined #ruby
<ctOSconnected> i can access a vpn server i use using cmd
<ctOSconnected> but i dont know how to access that shell with ruby
mleung has joined #ruby
* shellfu thinks script kiddies are cute.
<ctOSconnected> ....?
<ctOSconnected> ok
<ctOSconnected> fuck yall
<shellfu> lol
ctOSconnected has left #ruby [#ruby]
<adaedra> they're cute until they fuck you, shellfu
MatthewsFace has joined #ruby
Cust0sL1men has quit [Ping timeout: 240 seconds]
GaryOak_ has joined #ruby
<shellfu> meh.
ramfjord has joined #ruby
centrx has joined #ruby
<apeiros> y'all didn't say hi to good old deathcode?
* apeiros afk for about an hour
<shellfu> I dont own my companies systems. If they do get into my personal stuff, all they will find is open source code I have given away anyhow :)
<IceDragon> I'm glad that's over
<IceDragon> shellfu: And kittens
<shellfu> I dunno. Mine may be fuzzy, but he bites like a son of a bitch
<IceDragon> Every programmer should have a directory filled with cat and duck pictures
<adaedra> I once saw one guy who got hand on a botnet and attacked an IRC network
ctOSconnected has joined #ruby
<ctOSconnected> do you guys hack?
vt102 has joined #ruby
<adaedra> One tried to kick him, he targeted and DDoS'd the client with notices, pm and ctcp...
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* shellfu has nothing to prove to anyone
<IceDragon> yeah, I hack together some code that somehow makes my system run >_>
<adaedra> "somehow"
<adaedra> see ya
<ctOSconnected> okay?
<ctOSconnected> why are you guys
mclee_ has quit [Ping timeout: 255 seconds]
<ctOSconnected> so condescending?
<ctOSconnected> i'm asking a serious question here
* shellfu remembers: Arrogance + Ignorance == Ego. Keep it in check or be embarrassed by it
<thomcom> you're asking how to commit a felony asshole
<IceDragon> adaedra: I know right, "somehow"
maximski has quit []
<thomcom> "Hey guys how do I goes to teh prisons?!?!"
<ctOSconnected> how is this a felony?
rbennacer has quit [Ping timeout: 256 seconds]
<IceDragon> break in and enter
izzol has quit [Quit: leaving]
<IceDragon> unlawful entry
<thomcom> accessing something on the internet that you haven't been given access to is a felony
<havenwood> be nice please.
<ctOSconnected> yeah on the computer. not someone's house
<ctOSconnected> I'm not mean
<ctOSconnected> ok
<IceDragon> Your invading personal property, a computer is someone's property
<thomcom> no, ctOSconnected, accessing remote servers is a more serious criminal offense than stealing somebody's tv
<ctOSconnected> so then i guess I'm going to prison then because I've done it multiple times
<thomcom> See what they will do to you, look up @weev
* IceDragon borrows thomcom's tv
<shellfu> god I wish someone would steal my TV. then maybe the wife will let me get a new one
The_Phoenix has joined #ruby
ianseyer has quit [Ping timeout: 276 seconds]
* IceDragon steals shellfu's tv and replaces it with a toaster
<shellfu> mmmmm toast
<sohrab> jhass: u here?
<IceDragon> Except I have no use for tvs
<ctOSconnected> weev is ugly
* IceDragon returns the tv to shellfu
<thomcom> I'm looking at a 50" 4k TV right now :D
<shellfu> awww :(
hazelux has joined #ruby
<IceDragon> Why have a TV when your laptop can do all it can and more ;3
<jhass> sohrab: sup?
<IceDragon> do it all*
<ctOSconnected> IceDragon:why get a girlfriend when your hand can do it all and more ;)
<IceDragon> jhass: *me points to backlog*
thejoecarroll has quit [Quit: ZNC - http://znc.in]
rkazak has quit [Ping timeout: 252 seconds]
<dudedudeman> someone say toast!??
<shellfu> jesus
<shellfu> hey suse
<ctOSconnected> he got roasted
queequeg1 has joined #ruby
<IceDragon> ctOSconnected: Cause its no fun alone
<shellfu> ^
ramfjord has quit [Ping timeout: 264 seconds]
<ctOSconnected> if you have nice tv, pretty soon you have nice gf
<ctOSconnected> confucious say
<jhass> !mute ctOSconnected
<ponga> i tried googling X is dead where X is programming language
<IceDragon> jhass: arigato *me bows*
<shellfu> ahhh silence is golden
<ponga> i found python is not dead
krisquigley has joined #ruby
Limix has joined #ruby
<havenwood> ponga: python 3?
<sohrab> jhass: remember http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150414_223346.png? i've been thinking about it. i don't think i said this earlier, but the quiz asked for unique fragments among different lines, but also within each line. am i right that this doesn't solve the problem bc the set wouldn't accept the same word twice (if the same fragment appeared on one line)
<IceDragon> ponga: It can't be, I'm still using ranger ;x
<noobQ> shellfu: u should not say God name without a purpose check 10 commandments
thejoecarroll has joined #ruby
<ponga> hi havenwood
<havenwood> ponga: hey
<ponga> nah i just searched for 'python is dead' and top page result didn't convince me enough it were dead
<IceDragon> ponga: check if pascal is dead!
<IceDragon> 3:
<noobQ> ponga: no language dies
<shellfu> noobQ, isn't the christian gods name Jahova? I spelled it wrong im sure, but darnit Indiana Jones taught me SOMETHING
<jhass> sohrab: yeah, you'd want an additional datastructure that maps line => unique framents in that line
<ponga> IceDragon: it seems to stay at schredinger state of dead
<thomcom> Jehova, ya
<tobiasvl> jehova/yahweh
<IceDragon> dang it!
<IceDragon> die already pascal!
<IceDragon> ;-;
fryguy9 has quit [Quit: Leaving.]
<ponga> IceDragon: you have to open the box sir
<IceDragon> ponga: pass the key then
<noobQ> shellfu: i gave advise and ur wish I am not too religious also
* IceDragon puts on gloves and gas mask
<ponga> somebody lost the key
<havenwood> ponga: Very popular languages and dead languages have no overlap. Any language in the first group that is rumored to be in the second, well it isn't.
hazelux has quit [Ping timeout: 252 seconds]
<ponga> its forever unknown
<noobQ> shellfu: I am hindu who believe in christianity
<noobQ> :-0
<IceDragon> "There are only 2 kinds of languages, the ones that everyone complains about and the ones that nobody uses"
DeBot has joined #ruby
<shellfu> To each their own. I dont judge someones belief system. Id be a damn fool to be that arrogant
<IceDragon> I forgot where this quote came from
<ponga> IceDragon: where does haskell fit in?
<havenwood> Ruby.
<IceDragon> ponga: Good point D:
* ponga raises hat
<IceDragon> Haskell is good, and people actually uses it
* IceDragon segfaults on unhandled exception
thomcom has quit [Quit: Textual IRC Client: www.textualapp.com]
<noobQ> haskel educational purposes? fully functional
krisquigley has quit [Ping timeout: 250 seconds]
thomcom has joined #ruby
thomcom has quit [Client Quit]
<ponga> I find C# doesn't receive much hate, and does it job too
amdbcg has joined #ruby
<havenwood> ponga: Why C# when you can F#?
x77686d has quit [Quit: x77686d]
<IceDragon> ponga: I still think C# is just Java done better
<ponga> havenwood: sorry i never heard of f# til now
<noobQ> AT present two best language 1) Python 20 Ruby then only java or c+= or any other
<ponga> IceDragon: exactly!
<ponga> java done better
<ponga> what would you want more?
Aristata has joined #ruby
<havenwood> ponga: Ruby.
<IceDragon> ^
<IceDragon> Typed Ruby 3;
<IceDragon> Systems Ruby!
<ponga> havenwood: i wanted ruby and C to have a child
<IceDragon> ;-;
<ponga> so i went to check crystal
<havenwood> ponga: mruby
<havenwood> ponga: or crystal
<ponga> crystal fit me than mruby
<havenwood> Or embed MRuby in your Crystal extension for Ruby: https://gist.github.com/havenwood/afc514180e9aa18caaf2
<Aristata> Hello, I need some help, I am trying to use the postgres COPY command, but am getting this error: DataObjects::SyntaxError: ERROR: must be superuser to COPY to or from a file. Now I have been told that I can replace #{path} here: affected_rows = DataMapper.repository.adapter.execute("copy factset_holdings from '#{path}' delimiter '|' null '\\N';").affected_rows with STDIN, my question, is how do I read the contents of my file to STD
predator117 has quit [Ping timeout: 264 seconds]
<havenwood> ponga: I just got some mruby working in crystal yesterday. Fun stuff. They're very different beasts so it's not an either or.
<sohrab> jhass: hmm, don't understand.
predator117 has joined #ruby
wwwbukolaycom has quit []
<ponga> havenwood: ruby extensions in crystal?
<ponga> im confused
paulcsmith has quit [Quit: Be back later ...]
<ponga> so you write something library in ruby and have it run on crystal?
<jhass> sohrab: maybe I don't get the assignment then
<IceDragon> ponga: More like using crystal in place of C to extend ruby for performance reasons
ctOSconnected has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> ponga: That's what I got working yesterday in the Hello, world! example I pasted above. Ruby embedded in Crystal. But you can then take that and use it as an extension in a Ruby gem. So Ruby in your Crystal in your Ruby.
<IceDragon> havenwood: INCEPTION
zachrab has joined #ruby
scripore has joined #ruby
<sohrab> jhass: i'm 99% sure you're right and idk what i'm doing. i'll spend some more time thinking about it. thanks for all the help :)
allcentury has joined #ruby
<ponga> havenwood: that is so inception i thought what you are suggesting is what IceDragon said
<sohrab> i already submitted the quiz... i'm just trying to deepen my understanding of data structures
chridal has joined #ruby
Andoriyu has joined #ruby
<sohrab> do people use trees and graphs in ruby?
<IceDragon> "yo dawg, we heard you like ruby, so we embed ruby in your ruby, so you can ruby while you ruby"
paulcsmith has joined #ruby
<sohrab> i mean regularly...
<IceDragon> sohrab: Gem uses a tree :3
<IceDragon> sohrab: Apart from that, nope, not really, not on the surface that I've seen
snockerton1 has joined #ruby
<sohrab> IceDragon: what do you mean Gem? gems in general?
snockerton1 has quit [Read error: Connection reset by peer]
<IceDragon> sohrab: rubygems, uses a Tree for storing gem specs and their deps
snockerton1 has joined #ruby
<sohrab> IceDragon: ah, interesting
thomcom has joined #ruby
goggy has quit [Ping timeout: 246 seconds]
<IceDragon> sohrab: Believe or not, you end up with a tree easily in ruby by using Hashes
spider-mario has joined #ruby
snockerton1 has quit [Client Quit]
snockerton1 has joined #ruby
snockerton has quit [Ping timeout: 250 seconds]
gaganjyot has quit [Read error: Connection reset by peer]
snockerton1 has quit [Client Quit]
fryguy9 has joined #ruby
<sohrab> IceDragon: hm. that kinda makes sense with my limited understanding
djbkd has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
tubuliferous_ has joined #ruby
scripore has joined #ruby
bnchrch has joined #ruby
gregf has joined #ruby
Lloyd is now known as lloyd
bnchrch has quit [Client Quit]
bnchrch has joined #ruby
bMalum has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
pietr0 has joined #ruby
adamjleonard has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
nszceta has joined #ruby
huddy has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
eighthbit has joined #ruby
axl__ has joined #ruby
axl_ has quit [Ping timeout: 264 seconds]
axl__ is now known as axl_
naftilos76 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
ponga has quit [Remote host closed the connection]
gsd has joined #ruby
towski_ has joined #ruby
tvw has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Read error: Connection reset by peer]
ModusPwnens has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
<ModusPwnens> In ruby, is there some sort of convention about how you should return data? For example, in Java, it's very common to make POJOs to return things since maps are kind of annoying. In ruby, is it more common to just return a hash?
<ModusPwnens> If the things you are returning don't have behaviour associated with them, should you return a hash or a 'poro'?
<jhass> a hash
<jhass> it's also common to return an array if you want to return multiple values
workmad3 has quit [Ping timeout: 256 seconds]
<jhass> the caller can do a, b = your_method
<ModusPwnens> Is there some document or article I can refer to talking about the convention?
<jhass> I'm not aware of any
wallerdev has joined #ruby
<ModusPwnens> Our team is sort of new to ruby and I kind of want to have SOME source to use as data to begin talking about it
<jhass> you can always just pick a popular gem and dig out an example where they do it that way
dcarmich has quit [Read error: Connection reset by peer]
<csmb> ModusPwnens: I've always liked Github's way of writing ruby https://github.com/styleguide/ruby
Limix has quit [Quit: Limix]
dcarmich has joined #ruby
lidenskap has joined #ruby
Parmesan1aesar has joined #ruby
adamjleonard has quit [Quit: Leaving...]
iceden has joined #ruby
dcarmich has quit [Client Quit]
reinaldob has joined #ruby
ParmesanCaesar has quit [Ping timeout: 248 seconds]
failshell has joined #ruby
<mg^> "Don't use parentheses around the condition of an if/unless/while." Yeah, that's kind of like quitting smoking. It doesn't go well for the first few weeks after switching from a language that requires them. :-)
OrbitalKitten has joined #ruby
riotjones has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
ponga has joined #ruby
<thomcom> i hate useless parens
adamjleonard has joined #ruby
<thomcom> parens that signify nothing
<thomcom> AN IF STATEMENT! I wonder what these symbols afterward signify?
Andoriyu has left #ruby ["Textual IRC Client: www.textualapp.com"]
reinaldob has quit [Remote host closed the connection]
<jhass> https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition I find that one the most ridiculous idea
a5i has quit [Quit: Connection closed for inactivity]
adamjleonard has quit [Client Quit]
ss has joined #ruby
<thomcom> I prefer the third case
ss is now known as Guest64554
<jhass> yup
<thomcom> The two earlier cases are both using a single line to perform two operations
riotjones has quit [Ping timeout: 276 seconds]
<thomcom> Packing multiple expressiosn onto a single line is an antipattern hehe
<jhass> more importantly I find the "this is bad but we ignore that by adding some useless noise" quite idiotic
CloCkWeRX has left #ruby [#ruby]
<thomcom> haha
<thomcom> "useless parens make this ok!"
<thomcom> don't forget!
dcarmich has joined #ruby
<thomcom> sigh
dcarmich has quit [Client Quit]
<thomcom> I'm reading google analytics APIs all day
<ModusPwnens> Hmm
<ModusPwnens> after some searching I can't find anything on hashes vs wrappers/poros except for https://lostechies.com/derickbailey/2011/05/25/sometimes-its-better-to-use-a-ruby-hash-than-create-a-custom-class/ which isn't all that informative
AngryGarbo has joined #ruby
rbennacer has joined #ruby
plashchynski has quit [Quit: plashchynski]
<thomcom> Are you talking about pure Ruby ModusPwnens or Railsy stuff?
<ModusPwnens> thomcom: just ruby. This just has to do with ruby conventions
x77686d has joined #ruby
<thomcom> Java uses so many POJOs because there are ten thousand different seralization Factories available for every possible data object layer.
<ModusPwnens> thomcom: I mean, my app is a rails app, but I think this is just a ruby question
<thomcom> If you're writing rails, then use a hash unless you're using an ActiveRecord object.
rbennacer has quit [Remote host closed the connection]
<thomcom> This is just my opinion but there's little reason for encapulsating data in Ruby objects, period.
<ModusPwnens> So it's totally conventional to just construct a hash at the end of a method and return it?
<thomcom> This comes from some Python experience, too.
<thomcom> I would.
<thomcom> Building a class to store data is The Wrong Tool For the Job in most cases.
x77686d has quit [Client Quit]
<thomcom> Classes are for encapsulating functionality, not data.
StephenOTT has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
Ziioynx has quit [Quit: Connection closed for inactivity]
<ModusPwnens> I figured. You don't have a source or something I can refer to by any chance do you?
<thomcom> Hashes are already fantastic at encapsulating data, ever hear of JSON? j/k
<jhass> ModusPwnens: how about a really popular database abstraction library that uses hashes in its core API http://www.rubydoc.info/gems/sequel
<ModusPwnens> I was thinking the same thing as you, but I'm trying to find something somewhere to support my position
<thomcom> Sorry, I'm just yammering out of my own hole and I'm sure there are plenty of people who would disagree with me :)
serivich has quit [Ping timeout: 255 seconds]
bnchrch has quit [Quit: Page closed]
ismaelga has quit [Remote host closed the connection]
duderonomy has joined #ruby
<ModusPwnens> Haha, yeah, that's why I want something to refer to so people don't accuse me of that
deuterium has quit [Ping timeout: 256 seconds]
Aristata has quit [Ping timeout: 246 seconds]
a5i has joined #ruby
<thomcom> MMmm. Well, in general in a rails app you aren't going to HAVE any data
<thomcom> Other than stuff coming out of ActiveRecord
<jhass> go with a hash unless you have a reason not to
<thomcom> Making up your own classes to mirror ActiveRecord is definitely bad practice.
<jhass> reason 1) you need to add logic to it
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
<jhass> reason 2) it becomes too large and confusing and you want some better key validation, especially when writing to it
<jhass> in the later case, use http://ruby-doc.org/core-2.2.1/Struct.html
bnchrch has joined #ruby
<thomcom> ModusPwnens tell them RubyIsNotJava :D
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
terlar has quit [Ping timeout: 246 seconds]
<thomcom> Send a tweet to Jamis Buck and ask him
ChoiKyuSang has joined #ruby
towski_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
kyrylo has quit [Ping timeout: 252 seconds]
sgambino has joined #ruby
kirun has joined #ruby
mikecmpbll has joined #ruby
sgambino has quit [Client Quit]
snockerton has joined #ruby
riskish has joined #ruby
swedishfish has joined #ruby
swedishfish has left #ruby [#ruby]
zz_AlphaTech has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics_away
vim_shimm has joined #ruby
zz_AlphaTech has joined #ruby
Squarepy has joined #ruby
quimrstorres has quit [Remote host closed the connection]
zz_AlphaTech is now known as AlphaTech
exadeci has quit [Quit: Connection closed for inactivity]
robertozimek has quit [Quit: Linkinus - http://linkinus.com]
quimrstorres has joined #ruby
sgambino has joined #ruby
DrShoggoth has joined #ruby
Hijiri has joined #ruby
vim_shimm has quit [Ping timeout: 245 seconds]
fryguy9 has quit [Quit: Leaving.]
uptownhr has joined #ruby
DrShoggoth has quit [Client Quit]
DrShoggoth has joined #ruby
ModusPwnens has quit [Quit: Page closed]
<uptownhr> what’s the reason I cannot call upon a model using ::Trans from within another lib class ?
<jhass> your question is lacking a metric ton of context
<uptownhr> :)
michael_mbp has quit [Excess Flood]
<uptownhr> yea, i’m having a hard time getting into words right now
<uptownhr> i’m using sequel with sinatra
<uptownhr> i have a lib file
<uptownhr> that is calling in a model that i have to query for all transactions
bnchrch has left #ruby [#ruby]
<uptownhr> looks like this, ::Trans.where(:type => ‘sale’)
bnchrch has joined #ruby
<uptownhr> when i run this within a controller, it works fine
wldcordeiro has joined #ruby
parduse has quit []
<uptownhr> inside my library though, the ::Trans is not calling the Trans model that i have and I’m getting an undefined method error ‘where'
<jhass> for what?
<uptownhr> sorry?
<jhass> the error message is incomplete
aryaching has quit [Ping timeout: 276 seconds]
parduse has joined #ruby
michael_mbp has joined #ruby
<uptownhr> you’re right
cjim_ has joined #ruby
<uptownhr> so ::Trans is not pointing to Trans model
<uptownhr> it’s pointing to a different Trans class that I have
<jhass> yeah, and the error message tells you what it's pointing to instead
<uptownhr> so in ruby, how do i point to the Trans?
<jhass> but you didn't share that part
<uptownhr> so i do have a conflict in name but the other is inside another module
<jhass> do you have a repo on github or something?
<jhass> it's still quite vague
<uptownhr> so I have Trans::Transaction and Transaction model
n008f4g_ has joined #ruby
spicerack has joined #ruby
spicerack has quit [Changing host]
spicerack has joined #ruby
<uptownhr> I’m trying to get to Transaction
<uptownhr> but ::Transaction points to Trans::Transaction
<jhass> I doubt that
paulcsmith has quit [Quit: Be back later ...]
<uptownhr> why is that?
<jhass> >> class Transaction; end; module Trans; class Transaction; end; [Transaction, ::Transaction] end;
<ruboto> jhass # => [Trans::Transaction, Transaction] (https://eval.in/315071)
<uptownhr> ok sorry
<uptownhr> it is pointing to Nil:NilClass
<jhass> >> Transaction
<ruboto> jhass # => uninitialized constant Transaction (NameError) ...check link for more (https://eval.in/315072)
<jhass> so you assign nil somewhere to it
<uptownhr> hmm
<uptownhr> i doubt that ..
towski_ has quit [Ping timeout: 252 seconds]
paulcsmith has joined #ruby
<uptownhr> jhass: so technically, i shouldn’t have any problem getting to ::Transaction from within another library right?
<jhass> if with library you mean module, ye
<jhass> s
jottr has joined #ruby
towski_ has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
nszceta has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tcrypt has joined #ruby
predator117 has joined #ruby
<uptownhr> how would one even assign it to a nil?
a1fa has joined #ruby
<jhass> >> Transaction = nil; Transaction
<ruboto> jhass # => nil (https://eval.in/315073)
<a1fa> whats the easiest way to extract first part of variable var = "5 abc def ge..."
<jhass> a1fa: you want the first number?
<a1fa> ^(d) would be fine
_djbkd has joined #ruby
<a1fa> yes
<jhass> >> "5 abc def"[/\d+/].to_i
<ruboto> jhass # => 5 (https://eval.in/315074)
<NinjaOps> anyone know how to search enviornments for a specific cookbook version?
<a1fa> .strip.to_i ?
<jhass> a1fa: why strip?
<NinjaOps> oops wrong channel
<a1fa> jhass: what if there is a number along the way?
<NinjaOps> Ninja got slcak
<a1fa> "5 def beef 6"
<a1fa> lol
bigkevmcd has quit [Quit: outta here]
<jhass> a1fa: it'll return 5
<jhass> >> "5 abc def 6"[/\d+/].to_i
<ruboto> jhass # => 5 (https://eval.in/315075)
<jhass> first number
<a1fa> nice - ezpz
<a1fa> thanks jhass
toretore has quit [Read error: Connection reset by peer]
<jhass> uptownhr: as said, code & full error message with trace would probably clarify your issue tremendously
toretore has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
<uptownhr> jhass: one sec
fryguy9 has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
rbennacer has joined #ruby
RegulationD has quit [Remote host closed the connection]
ikeike443 has quit [Read error: Connection reset by peer]
jayeshsolanki has quit [Quit: bye!]
reinaldob has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
<wallerdev> >> "5 abc def 6".to_i
<ruboto> wallerdev # => 5 (https://eval.in/315076)
adamjleonard has joined #ruby
deric_skibotn has joined #ruby
ikeike443 has joined #ruby
<jhass> wallerdev: yeah, description was vague enough for "abc 5 def" to be a valid case, so I went the safe way
<jhass> uptownhr: doesn't match up, line 76 is empty in the gist
vdphks has quit [Remote host closed the connection]
sgambino_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
predator117 has quit [Ping timeout: 245 seconds]
<uptownhr> i had some debug code that iremoved
<uptownhr> one sec
predator117 has joined #ruby
scripore has joined #ruby
reinaldob has quit [Remote host closed the connection]
ramfjord has joined #ruby
iamninja has joined #ruby
sgambino has quit [Ping timeout: 245 seconds]
<uptownhr> jhass: updated
<jhass> alright, first of all there are two where calls on that line, break them up into two to see which one it is
ponga has quit [Quit: Leaving...]
Deele has joined #ruby
<jhass> *two lines
justin_pdx has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
jvdp11 has quit [Quit: Textual IRC Client: www.textualapp.com]
<uptownhr> it is both
jvdp11 has joined #ruby
<uptownhr> i made it so it’s just single where
PaulCapestany has joined #ruby
<uptownhr> and same issue
<uptownhr> as you can see, it’s ::Transaction that is Nil
jblancett has joined #ruby
<uptownhr> but i will update so you can see
Kricir has quit [Remote host closed the connection]
amundj has joined #ruby
<thomcom> "5 abc def 6"[/\d+/].to_i jhass what's that regex for
<thomcom> first item?
<jhass> tomaw: extract the first number
<jhass> er thomcom ^
<jhass> sorry tomaw
maletor has joined #ruby
cefkamcau has joined #ruby
<thomcom> Can you get the second number that way?
spyderman4g63 has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 244 seconds]
justin_pdx has quit [Quit: justin_pdx]
chishiki has quit [Quit: WeeChat 1.1.1]
<jhass> not really
spyderman4g63 has joined #ruby
<jhass> I mean you can do [/\d+\D+(\d+)/, 1], but ugh
<jhass> if you want both, use .scan
Guest64554 has quit [Ping timeout: 248 seconds]
blt has joined #ruby
reinaldob has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
krisquigley has joined #ruby
eshiffob has quit [Ping timeout: 248 seconds]
chishiki has joined #ruby
rrichardsr3 has joined #ruby
grindmodeon has joined #ruby
lkba has joined #ruby
failshel_ has joined #ruby
zachrab has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
TerjeLarsen has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
failshell has quit [Ping timeout: 255 seconds]
work has joined #ruby
work has joined #ruby
rrichardsr3 has quit [Client Quit]
RegulationD has joined #ruby
ndrei has joined #ruby
thomcom has quit [Quit: Textual IRC Client: www.textualapp.com]
blt has quit [Read error: Connection reset by peer]
blt has joined #ruby
mclee_ has joined #ruby
juanpablo_ has joined #ruby
spyderman4g63 has joined #ruby
reinaldob has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
graydot has joined #ruby
Cust0sLim3n has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
reinaldob has joined #ruby
blt has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
blt has joined #ruby
CustosLimen has quit [Ping timeout: 245 seconds]
zachrab has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Zamyatin has joined #ruby
mrvovanness has joined #ruby
clyfe has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
blt has quit [Read error: Connection reset by peer]
blt has joined #ruby
Zamyatin has joined #ruby
clyfe has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
m8 has joined #ruby
reinaldob has quit [Remote host closed the connection]
ta has joined #ruby
<a1fa> jhass: would 5.1 be considered a float or integer?
<jhass> float
<apeiros> >> 5.1.class
<ruboto> apeiros # => Float (https://eval.in/315082)
<apeiros> a1fa: just ask ruby
rbennacer has quit [Remote host closed the connection]
tjbiddle has joined #ruby
willywos has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has quit [Quit: WeeChat 1.0.1]
zachrab has quit [Read error: Connection reset by peer]
blt has quit [Read error: Connection reset by peer]
blt has joined #ruby
Zamyatin has quit [Ping timeout: 276 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
zachrab has joined #ruby
reinaldob has joined #ruby
DEA7TH has joined #ruby
reinaldob has quit [Remote host closed the connection]
ta has quit [Quit: Leaving...]
blt has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
blt has joined #ruby
adamjleonard has quit [Quit: Leaving...]
cjim_ has quit [Quit: (null)]
hazelux has joined #ruby
RegulationD has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 264 seconds]
adamjleonard has joined #ruby
kadoppe has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
ta has joined #ruby
RegulationD has joined #ruby
Parmesan1aesar has quit [Ping timeout: 250 seconds]
maletor has quit [Read error: Connection reset by peer]
yqt has joined #ruby
jottr has joined #ruby
kadoppe has joined #ruby
thumpba_ has joined #ruby
mrvovanness has quit [Quit: Leaving]
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
blt has quit [Read error: Connection reset by peer]
blt has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
AlphaTech is now known as zz_AlphaTech
zz_AlphaTech is now known as AlphaTech
RegulationD has quit [Ping timeout: 255 seconds]
thumpba has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby
wallerdev has quit [Quit: wallerdev]
AngryGarbo has left #ruby [#ruby]
fryguy9 has quit [Quit: Leaving.]
yfeldblum has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
juanpablo_ has joined #ruby
AlphaTech has left #ruby [#ruby]
havenwood has quit [Ping timeout: 276 seconds]
cjim_ has joined #ruby
dreinull75 has joined #ruby
lidenskap has quit [Remote host closed the connection]
blt has quit [Read error: Connection reset by peer]
colorados has quit [Ping timeout: 246 seconds]
blt has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
rbennacer has joined #ruby
reinaldob has joined #ruby
DerisiveLogic has quit [Ping timeout: 264 seconds]
<ohcibi> why does bundle exec rake db:migrate tells me that rake is not part of the gemfile? it works locally and I'm using the same version of bundler on the server oO
reinaldob has quit [Remote host closed the connection]
<ohcibi> i never added rake to my Gemfile oO
<dreinull75> I have built a lib that basically accesses a db via Sequel with some sugar added to it. I don't trust this db because many fields are missing so I can't do all operations as expected (user.address.street problem). This is why I want to add a maybe monad to its classes. Is this a good idea? Can it be done? I was thinking of using the monads gem for that.
colorados has joined #ruby
<dreinull75> So I can just go ahead and chain all kinds of things and only in the end I'd get a nil. Not in between.
delianides has joined #ruby
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jhass> dreinull75: check the null object pattern
Aswebb_ has joined #ruby
blt has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
<dreinull75> jhass oh, forgot about that. One step back. I have read up on avdis naught gem
blt has joined #ruby
Aswebb__ has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
NinjaOps has quit [Remote host closed the connection]
kstuart has joined #ruby
michaeld_ is now known as michaeldeol
bricker has joined #ruby
TerjeLarsen has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
terlar has joined #ruby
x1337807x has joined #ruby
ParmesanCaesar has joined #ruby
reinaldob has joined #ruby
maletor has joined #ruby
lolmaus__ has quit [Remote host closed the connection]
maletor has quit [Client Quit]
eshiffob has joined #ruby
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
naftilos76 has quit [Remote host closed the connection]
lolmaus has joined #ruby
iotouch has joined #ruby
cefkamcau has quit [Ping timeout: 265 seconds]
blt has quit [Read error: Connection reset by peer]
Lucky__ has joined #ruby
blt has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
ozialien has joined #ruby
reinaldob has quit [Remote host closed the connection]
crdpink has quit [Quit: q term]
maximski has joined #ruby
wwwbukolaycom has joined #ruby
livathinos has joined #ruby
Rodya_ has joined #ruby
parduse has quit []
amdbcg has quit [Ping timeout: 245 seconds]
parduse has joined #ruby
pcp135 has quit [Read error: Connection reset by peer]
pcp135 has joined #ruby
Suge_Knight has joined #ruby
<sohrab> if you have a conditional nested inside an each block, if you put a break after a conditional, it applies to the each block?
timonv has quit [Ping timeout: 265 seconds]
blt has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
Rollabunna has quit [Quit: Leaving...]
<apeiros> sohrab: break never applies to conditionals, so yes, it will apply to the block
livathinos has quit []
delianides has quit []
zorak8 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
The_Phoenix has quit [Read error: Connection reset by peer]
<sohrab> k thanks i'm a dummy
musashi1 has quit [Ping timeout: 252 seconds]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
reinaldob has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
Rodya__ has joined #ruby
cjim_ has quit [Quit: (null)]
wallerdev has joined #ruby
Cust0sL1men has joined #ruby
wallerdev has quit [Client Quit]
Aswebb_ has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
A205B064 has joined #ruby
reinaldob has quit [Remote host closed the connection]
maletor has joined #ruby
quimrstorres has joined #ruby
cjim_ has joined #ruby
blt has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
sohrab has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
MatthewsFace has joined #ruby
GnuYawk has quit [Ping timeout: 250 seconds]
<dudedudeman> i have a class, and i was assuming that to list out all of the elements of that class, i would do, Class.all
<dudedudeman> but it seems that is not my answer
<dudedudeman> any suggestions?
_djbkd has quit [Remote host closed the connection]
babykosh has joined #ruby
Rodya__ has quit [Remote host closed the connection]
<dudedudeman> i've tried class.all { |class| puts class } and that didn't quite work, either
Rodya_ has joined #ruby
<jhass> "element"
<dudedudeman> Class.element?
<jhass> what's an element?
<dudedudeman> sorry
<dudedudeman> objects
<jhass> you make a new instance of your class with MyClass.new
maximski has quit []
<dudedudeman> hmm. perhaps i am asking my question incorrectly
MatthewsFace has quit [Ping timeout: 255 seconds]
<jhass> I guess
platzhirsch has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
blt has quit [Read error: Connection reset by peer]
blt has joined #ruby
fryguy9 has quit [Ping timeout: 250 seconds]
<dudedudeman> i'm trying to render that to an ERB template
maximski has joined #ruby
crdpink has joined #ruby
platzhirsch has left #ruby [#ruby]
maximski has quit [Max SendQ exceeded]
<jhass> where would the instances come from?
<jhass> is there some context you didn't provide, like your class inherits from some ORM base class?
ag4ve_ has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<dudedudeman> class DreamColorApp < Sinatra::Base
_djbkd has joined #ruby
<jhass> I have no idea where you expect any data to come from then
maximski has joined #ruby
<dudedudeman> are you looking for my requires?
pen-soldier has joined #ruby
jefus has quit [Remote host closed the connection]
<jhass> no
<jhass> requires load code, not data
<dudedudeman> ok
ag4ve_ has joined #ruby
<zenspider> why are you puts'ing in a sinatra action?
<dudedudeman> my data is coming from ActiveRecord
lidenskap has joined #ruby
<jhass> no it isn't
<jhass> you subclass Sinatra::Base, not ActiveRecord::Base
iotouch has quit [Quit: This computer has gone to sleep]
<weaksauce> dreamcolormonitor might be AR::Base though jhass
eighthbit has quit [Ping timeout: 256 seconds]
speakingcode has joined #ruby
<zenspider> jhass: DreamColorApp != DreamColorMonitor
sgambino_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dudedudeman> DreamColorMonitor is inheriting from AR::Base
<jhass> oh, sigh
dstarh has joined #ruby
* zenspider hands jhass an espresso
<jhass> so what's the error you're getting
<jhass> zenspider: thanks
<dudedudeman> i'm not getting an error, my erb is just rendering a #
<zenspider> I need another too :)
<weaksauce> dudedudeman gist the template
<zenspider> lvars vs ivars I'm betting
Joffily has joined #ruby
zachrab has quit [Remote host closed the connection]
<dudedudeman> zenspider: i'm not sure why. should i not puts there?
<zenspider> why would you?
MatthewsFace has joined #ruby
vim_shimm has joined #ruby
zachrab has joined #ruby
blt has quit [Read error: Connection reset by peer]
<dudedudeman> i want to iterate over the objects(noob here, i think they're objects?) and list them out
blt has joined #ruby
amdbcg has joined #ruby
<centrx> What objects?
<centrx> All the letters?
<toretore> chances are they're objects
<jhass> dudedudeman: where do you set @monitors
<dudedudeman> i know i'm using the instance variable @monitors and i know it is not currently connected to that get request
<zenspider> everything is an object
<dudedudeman> jhass: i know i should be setting it in my get request
<jhass> why don't you then
<zenspider> there's no "chances are" about it.
lidenskap has quit [Client Quit]
<dudedudeman> i do know vairables are not objects
<zenspider> dudedudeman: do you see ANYTHING connecting that request to @monitors?
pcp135 has quit [Read error: Connection reset by peer]
<zenspider> variables point at objects
<dreinull75> For method_missing I need case insensitive matching to existing methods. Is selecting via casecmp my choice or is there a better solution?
<zenspider> aka they're just a label for an object...
<dstarh> Anyone know if it's possible to properly stub the initialize method of a Singleton with Mocha?
<dudedudeman> labels. got it
<dudedudeman> zenspider: i currently am not sure what to point @monitors at. @montiros = DreamColorMonitor.all?
<zenspider> dstarh: I don't... but initialize is just a method, so probably
<jhass> dreinull75: sounds like you're down a very wrong path, do you know at least that all methods are downcase or something?
<zenspider> dudedudeman: that's up to you and how you're going to use it. looks like you only use it in the title, so that seems wrong
<toretore> dreinull75: you'll get better answers if you explain the problem that makes you want to do this
lidenskap has joined #ruby
mclee_ has quit [Ping timeout: 252 seconds]
<weaksauce> dudedudeman yes if you want to iterate over all the monitors and display them
<zenspider> dreinull75: seems like a code smell to me
<dstarh> zenspider this works NlpWrapper.stubs(:new).returns(nil) but then anything that later wants to use NlpWrapper.instance like NlpWrapper.instance.parse gets "can't call parse on null"
adamjleonard has quit [Quit: Leaving...]
<dstarh> s/null/nil
zachrab has quit [Ping timeout: 256 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> try @monitors = DreamColorMonitor.first to play around with it
amdbcg has quit [Ping timeout: 256 seconds]
<zenspider> dstarh: you have a singleton (bad idea) AND you want to stub initialize? that doesn't really make sense
vim_shimm has quit [Ping timeout: 244 seconds]
<zenspider> weaksauce: but, not plural?
spyderman4g63 has quit [Ping timeout: 255 seconds]
<weaksauce> ah yeah plural
zacts has joined #ruby
krisquigley has joined #ruby
<dudedudeman> that still returns my #
<weaksauce> gist the output
<toretore> look at the html source dudedudeman
<dstarh> zenspider it's a wrapper class calling off to java that takes a number of seconds to startup which is the reason for the singleton. I really only want to stub one method, parse but I don't want anything in the initialize to run
<zenspider> ah. he's to_s'ing an object, getting #<blahblah> and that's treated by the web browser
<zenspider> dstarh: first off... this sounds like a place where mocking is entirely unnecessary, just assign the singleton w/ a new object and use it. second, if you do insist on mocking, why not mock #instance?
<dreinull75> jhess and zenspider, it realtes to the DB question before. The database has tables with capital letter in it so when using Sequerl I have to use upper case methods as well: user.Address for example. Implementing the Null object I can add a proxy method that uses standard method names and add a Null object in case it's nil.
<dreinull75> yay, that English is bad today.
blt has quit [Read error: Connection reset by peer]
vectorhero has joined #ruby
adamjleonard has joined #ruby
blt has joined #ruby
<dstarh> all of the method calls are calling out to external services which may or may not be available at test time
<dstarh> zenspider ^
zachrab has joined #ruby
zachrab has quit [Client Quit]
reinaldob has joined #ruby
<toretore> dstarh: if you're going to mock something you also have to figure out how that mock should behave
<ytti> this is vague, but i remember some password replacement, which was perhaps some generated picture you click, does this sound familiar to anyone? I looking for an URL to it
<jhass> dreinull75: in the model do def address; Address || Address::Null.new; end
Suge_Knight is now known as apoplexy
<toretore> i.e. nil probably doesn't behave in the same way
<jhass> self.Address
<dudedudeman> ok. @monitors = DreamColorMonitor.find(1), hooked in to @monitors.tag in my erb template, return one value of what i'm looking for
wallerdev has joined #ruby
<dudedudeman> except, there are multiple tags in my table, and i'm trying to list all of them
ismaelga has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
vectorhero has left #ruby [#ruby]
<weaksauce> ytti you sure that wasn't a captcha alternative
<dreinull75> jhass there are lots of columns in those tables :( I want to short cut
<weaksauce> ytti something like select the cat from the pictures
<toretore> dudedudeman: what you want is to iterate through @monitors (=DCM.all), which is done using @monitors.each
krisquigley has quit [Ping timeout: 276 seconds]
sohrab has joined #ruby
<dudedudeman> toretore: I was just typing that out!!
Igorshp has joined #ruby
adamjleonard has quit [Client Quit]
<toretore> dudedudeman: inside erb this looks like <% @monitors.each do |monitor| %><%# use monitor here %><% end %>
<dudedudeman> toretore: except, when i do that and then put an inline block to iterate over them, i get [#, #, #]
<toretore> dudedudeman: code, not words
<toretore> i don't understand human, show me code
<jhass> dreinull75: shortcut with something like {address: :Address}.each do |name, column| define_method(name) { public_send(column) || const_get("#{name.capitalize}::Null.new"); end; end; then
<dudedudeman> toretore: <%= @monitors.each { |monitors| puts monitors } %>
<dudedudeman> i tried that
<toretore> why did you think that would work?
<jhass> dreinull75: er, .new in the wrong place, but you get the idea
<dudedudeman> because i'm green at this and you never know something until you try?
<jhass> be explicit, not smart
<toretore> dudedudeman: look at what i showed you above
<weaksauce> dudedudeman puts returns nil.
<dudedudeman> toretore: i'm typing that up now
failshel_ has quit []
<weaksauce> you will see that output in the console as #<DCM object id whatever>
<dreinull75> jhass ok, looks plausible. Thanks!
<toretore> dudedudeman: the only way to make something show up in the resulting html from an erb template is to use <%= %>
jottr has joined #ruby
<dudedudeman> <% @monitors.each do |monitor| %><%= monitor %><% end %>
maximski has quit []
freerobby has joined #ruby
<dudedudeman> i did that and got ###
<toretore> ok
<weaksauce> monitor.tag
<weaksauce> or monitor.name
<toretore> dudedudeman: what is `monitor` supposed to output?
<dudedudeman> oh good lord. there it is
musashi1 has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
<dudedudeman> well, except they are all in one string now
<dudedudeman> if that makes sense
<toretore> do you know html?
<weaksauce> dudedudeman you have to wrap it in html to make it work
Rapier- has quit [Quit: (null)]
roolo has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<dudedudeman> toretore: monitor has a tag attribute, so weaksauce was right in saying to add .tag. a tag is just the identifier i'm using for these monitors
blt has quit [Read error: Connection reset by peer]
<dudedudeman> and html, yes. i'm going to ul it
<ytti> weaksauce, i think it was password replacement
blt has joined #ruby
<weaksauce> ytti I have only seen it in relation to captchas sorry
<ytti> darn, no problem
<zenspider> dstarh: and? it's a singleton, but you are trying to mock new instead of instance. also, no mock necessary. just replace it with an object that does what you want. easy
<dudedudeman> weaksauce and toretore, you guys are awesome
<dudedudeman> <ul><% @monitors.each do |monitor| %><li><%= monitor.tag %></li><% end %></ul>
<toretore> dudedudeman: look at the html source and understand how the erb template becomes that. <% %> (without =) disappears; <%= v %> is replaced with whatever v is;
<weaksauce> dudedudeman RoR and sinatra are basically just fancy string replacer machines
paulcsmith has quit [Read error: Connection reset by peer]
paulcsmith has joined #ruby
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
rkazak_ has joined #ruby
<dudedudeman> toretore: right on. does the code i put in right above your comment seem correct? it's rendering what i want for now
<dudedudeman> weaksauce: so i'm learning. thanks for the .tag call there.
maximski has joined #ruby
DerisiveLogic has joined #ruby
maximski has quit [Max SendQ exceeded]
<toretore> dudedudeman: yes, it's correct; if what you want is a <ul> with <li>tag</li>
elfuego has left #ruby [#ruby]
<sohrab> IceDragon: you end up with a tree easily in ruby by using Hashes
<toretore> dudedudeman: again, look at the generated html; not at what the browser dsplays
<dstarh> zenspider thanks i was able to go with a stub of new and a mock and got it to work https://gist.github.com/dstarh/d2a196841a04ac9697c3
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
maximski has joined #ruby
<sohrab> IceDragon: ^^ how is that possible if hashes only allow 1 value
maximski has quit [Max SendQ exceeded]
<sohrab> (how does it branch?)
<IceDragon> sohrab: key value pairs, and sub hashes
<dudedudeman> toretore: i'll have to ask the dumb question, where should i be looking for the generated html?
blt has quit [Read error: Connection reset by peer]
<sohrab> IceDragon: oh, duh. the value can be a hash with multiple sub-hashes. got it ty
<IceDragon> sohrab: { a: { b: { c: { } } } }
<weaksauce> right click dudedudeman view source
<toretore> ^
<IceDragon> [:a][:b][:c]
blt has joined #ruby
<dudedudeman> ... i'm an idiot. i was thinking to look in the console
<dudedudeman> sorry, that is the obvious thing to be doing lol
StephenOTT has quit [Remote host closed the connection]
vim_shimm has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
GaryOak_ has joined #ruby
maximski has joined #ruby
<weaksauce> it's strings the whole way down
maximski has quit [Max SendQ exceeded]
hjkl01 has joined #ruby
thatslifeson_ has joined #ruby
<hjkl01> 1+1/2+1/3+1/4+ ... - log(n)
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
hazelux has quit [Remote host closed the connection]
ParmesanCaesar has quit [Ping timeout: 276 seconds]
allcentury has joined #ruby
maximski has joined #ruby
Igorshp has quit [Remote host closed the connection]
Conner_A has quit [Ping timeout: 265 seconds]
maximski has quit [Max SendQ exceeded]
adamjleonard has joined #ruby
codecop has quit [Remote host closed the connection]
blt has quit [Read error: Connection reset by peer]
maximski has joined #ruby
hjkl01 has left #ruby [#ruby]
blt has joined #ruby
revoohc has quit [Quit: revoohc]
odd_the_skiller is now known as oddskill_away
maximski has quit [Max SendQ exceeded]
fella7s has joined #ruby
pcp135 has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
pullphinger15 has joined #ruby
FernandoBasso has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
blt has quit [Client Quit]
allcentury has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
michaeld_ has joined #ruby
Hijiri has joined #ruby
segv has joined #ruby
devyn_ has joined #ruby
KramerC_ has joined #ruby
allcentury has joined #ruby
pullphinger has quit [Read error: Connection reset by peer]
MyGreenP1 has joined #ruby
JStoker has quit [Killed (holmes.freenode.net (Nickname regained by services))]
JStoker has joined #ruby
haroldwu has joined #ruby
adamjleonard has quit [Quit: Leaving...]
Kilobyte|StupidC has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
adzuci_ has joined #ruby
felixjet_ has joined #ruby
devyn has quit [Ping timeout: 264 seconds]
batm has quit [Ping timeout: 264 seconds]
KramerC has quit [Ping timeout: 264 seconds]
fella6s has quit [Ping timeout: 264 seconds]
Kilo`byte has quit [Ping timeout: 264 seconds]
thomcom has joined #ruby
michaeldeol has quit [Ping timeout: 264 seconds]
haroldwu_ has quit [Ping timeout: 264 seconds]
adzuci has quit [Ping timeout: 264 seconds]
kstuart_ has joined #ruby
KramerC_ is now known as KramerC
Contigi777 has quit [Quit: Leaving]
jottr has quit [Read error: Connection reset by peer]
DerisiveLogic has quit [Ping timeout: 250 seconds]
_djbkd has quit [Remote host closed the connection]
jottr has joined #ruby
Rodya_ has quit [Quit: Leaving...]
kstuart has quit [Ping timeout: 264 seconds]
pullphinger15 has quit []
felixjet has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
ponga has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
thatslifeson_ has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
mengu has joined #ruby
_djbkd has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
<apeiros> DeBot: hangman ruby
<apeiros> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<apeiros> aha!
<apeiros> DeBot: ertn
<DeBot> ␣n␣␣␣n␣␣et␣␣␣␣␣r␣t␣ [] 0/12
jlast has joined #ruby
<apeiros> DeBot: _:#
<DeBot> ␣n␣␣␣n␣␣et␣␣␣#␣r␣t␣ [_:] 2/12
<centrx> DeBot, potato_salad
<DeBot> ␣n␣o␣nd␣et␣od#ar␣t␣ [_:psl] 5/12
<apeiros> :<
<dudedudeman> Debot, anything
<Mon_Ouie> DeBot: iy
<DeBot> ␣n␣o␣nd␣et␣od#arity [_:psl] 5/12
<dudedudeman> what are we doing?
riskish has joined #ruby
<apeiros> DeBot: ub
<DeBot> Unbound␣et␣od#arity [_:psl] 5/12
<apeiros> DeBot: mh
<DeBot> UnboundMethod#arity [_:psl] 5/12 You won!
<wallerdev> lolol
charliesome has joined #ruby
Guest64554 has joined #ruby
chinmay_dd has joined #ruby
riotjones has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
babykosh has quit [Quit: babykosh]
ReK2 has quit [Remote host closed the connection]
MyGreenP1 has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
EminenceHC has joined #ruby
<dudedudeman> what the heck just happened
<centrx> a man was hung
riotjones has quit [Ping timeout: 255 seconds]
danzilio has quit [Remote host closed the connection]
* dudedudeman bows head in remembrance
<GaryOak_> hahahah
amdbcg has joined #ruby
<sonOfRa> centrx: but he wasn't hung
<sonOfRa> they saved him
DrShoggoth has quit [Ping timeout: 265 seconds]
<EminenceHC> What should I look into if I want to do something like: x = 1 30% of the time, x = 2 70% of the time?
<zenspider> how many bots? all the bots.
<sonOfRa> EminenceHC: get a random number between 1 and 100
<sonOfRa> if the number is between 1 and 30, x = 1
<sonOfRa> x=2 otherwise
<zenspider> or 1 to 10
<EminenceHC> sonOfRa: I want to set the percentage.
<sonOfRa> or 0 to 1, whatever
RegulationD has joined #ruby
ldnunes has quit [Quit: Leaving]
<zenspider> because reducing fractions is awesome
maximski has quit [Ping timeout: 248 seconds]
<sonOfRa> EminenceHC: only ever 2 numbers, or possibly more?
<zenspider> this sure sounds like homework...
<sonOfRa> it really does. Fun exercise, too
ozialien has quit [Ping timeout: 264 seconds]
<EminenceHC> sonOfRa: Only two numbers, but the two numbers can change. Sometimes it will be 60% 40%, sometimes 70% 30% etc.
Contigi has joined #ruby
lukec has joined #ruby
<zenspider> EminenceHC: you really should do your homework yourself. that's kinda the point.
pika_pika has quit [Ping timeout: 245 seconds]
<zenspider> we're happy to point you in the right direction, but that's it
<EminenceHC> zenspider: I want to, just not really sure where to start with a question like htat.
<sonOfRa> EminenceHC: I already told you how to do it, you can figure out the rest
rkazak_ has quit [Ping timeout: 256 seconds]
<EminenceHC> ok
kuiysdr has joined #ruby
_djbkd has joined #ruby
<EminenceHC> sonOfRa: That makes sense.
terlar has quit [Ping timeout: 245 seconds]
<sonOfRa> of course, you have to assume that your RNG is randomly distributed
<sonOfRa> if it's not, your distribution will vary if you run your program very often
RegulationD has quit [Ping timeout: 244 seconds]
vickleton has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<dreinull75> jhass: I don't quite get this part of your code: || const_get("#{name.capitalize}::Null.new"
<dreinull75> whats it used for?
kyrylo has joined #ruby
<jhass> const_get("#{name.capitalize}::Null").new
<jhass> get and instantiate the null variant of your class
<jhass> if you're lazy you can also do a generic Null object that returns self on all method calls
Hounddog has quit [Remote host closed the connection]
<jhass> though then you will likely have calls succeed with the null object that wouldn't succeed with the real one, thus potentially hiding errors
colorisco has quit [Quit: colorisco]
<jhass> so I'd recommend to write null classes that map them out explicitly
GameGear has joined #ruby
<GameGear> !balance
<GameGear> .balance
<GameGear> meh
_djbkd has quit [Remote host closed the connection]
huddy has quit [Quit: Connection closed for inactivity]
<jhass> GameGear: ?
<GameGear> lol
<GameGear> wrong room
<GameGear> XD
GameGear has left #ruby [#ruby]
ponga has quit [Remote host closed the connection]
<EminenceHC> sonOfRa: Yeah, I like that if I want to trust the random number but I am looking for more of a solution that will be closer. For instance 30% of time Create an object, 70% of the time create the same object with a different parameter. I thought about pushing a 1 into an array every time the first type is created, and after 3 1's are in the array(30%), create the other type of object and push a 0 into the array, until the array reaches 10
<EminenceHC> and resets.
<EminenceHC> sonOfRa: Something tells me I am overthinking this.
<EminenceHC> Count of 10.. not 10 total.
<sonOfRa> EminenceHC: you are. You can rely on the RNG being distributed properly
paulcsmith has quit [Quit: Be back later ...]
<EminenceHC> sonOfRa: Thanks
<sonOfRa> It would be quite valid if you had a percentage of 30% for "1" and 70% for "2"
<sonOfRa> and got 10 "1"s in 10 tries
<sonOfRa> this is how randomness works
Tuxero has joined #ruby
<sonOfRa> the probability of this happening is, of course, fairly low (you can calculate it, another good exercise!), but it can happen.
<sonOfRa> if you run it a million times, however, you will quite certainly see a distribution that shows your 30/70 pattern
shellfu is now known as shellfu_afk
sohrab has quit [Ping timeout: 265 seconds]
<dreinull75> jhass, sorry I'm a bit slow today. I basically CLASSNAME::Null.new? How does it create a new object? I'm not too familiar with the double colon assumed it's only used to access methods and consts from outside their usual scope.
reinaldob has quit [Remote host closed the connection]
jerius has quit [Quit: /quit]
Zai00 has joined #ruby
<sonOfRa> one thing you might want to watch though: You want to re-use the same RNG instance for all your tries. Don't re-initialize the RNG for each try.
hazelux has joined #ruby
<EminenceHC> sonOfRa: I understand that, but what if I want it to be a perfect 30%, 70% every ten times.
<jhass> dreinull75: you would define that class
ismaelga has quit []
<sonOfRa> EminenceHC: then you don't use an RNG at all
<jhass> class Address < Sequel::Model; class Null; def street; end; def city; end; ....
<sonOfRa> then you get an "amount" and a "distribution" parameter, calculate the correct distribution, and start creating objects
doodlehaus has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
DrShoggoth has joined #ruby
<dreinull75> jhass, oh, inside the other class you mean?
kuiysdr has quit [Quit: Page closed]
<jhass> yeah, a class is a namespace too
work is now known as fxck
<dreinull75> jhass, ok, gotcha.
<jhass> module Foo; class Bar; / class Foo; class Bar; essentially the same
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
<dreinull75> jhass, ok, that makes sense now.
cpt_yossarian has quit [Quit: And then he took off.]
cpt_yossarian has joined #ruby
freerobby has quit [Quit: Leaving.]
<EminenceHC> sonOfRa: Thank you son of sun god.
reinaldob has joined #ruby
hannahkoala has joined #ruby
reinaldob has quit [Remote host closed the connection]
DrShoggoth has quit [Client Quit]
chinmay_dd has quit [Ping timeout: 252 seconds]
ozialien has joined #ruby
balazs_ has quit [Ping timeout: 256 seconds]
byprdct has joined #ruby
grindmodeon has quit [Quit: Leaving.]
grindmodeon has joined #ruby
grindmodeon has quit [Client Quit]
allcentury has quit [Ping timeout: 248 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
amdbcg has quit [Ping timeout: 246 seconds]
n008f4g_ has joined #ruby
hannahkoala has quit []
<weaksauce> is there an easy way to tell if it's the last item in an .each block?
wallerdev has quit [Quit: wallerdev]
<adaedra> current == collection.last
<apeiros> weaksauce: why? just don't iterate over all items
<apeiros> ary[0..-2].each do … end; special(ary.last)
<apeiros> better than performing a test on every iteration
DEA7TH has quit [Ping timeout: 264 seconds]
<shadoi> weaksauce: you want each_with_index so you can check what index you're at.
<weaksauce> apeiros conditionally not adding a horizontal rule to a list.
pauly_oc has joined #ruby
<apeiros> weaksauce: good, then what I said. or use something like .join
timonv has quit [Ping timeout: 252 seconds]
<weaksauce> the each with index works and it's what I was going to use but I was curious if there was an easier way to do it without involving the index
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
<apeiros> weaksauce: if you already have code - gist. easiest way to get better written versions.
decoponio has quit [Quit: Leaving...]
chinmay_dd has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<thomcom> ugh google analytics apis
Aswebb_ has joined #ruby
bkulbida has quit [Ping timeout: 245 seconds]
kyrylo has quit [Ping timeout: 256 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
catcher has quit [Quit: Leaving]
spider-mario has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
roshanav1 has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass> I'd pivot
<jhass> first, *rest = customer.locations
mistermocha has joined #ruby
m8 has quit [Quit: Sto andando via]
<jhass> and %hr at the top of the loop
_djbkd has joined #ruby
vim_shimm has quit [Ping timeout: 276 seconds]
hannahkoala has joined #ruby
thomcom has quit [Quit: Textual IRC Client: www.textualapp.com]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<jhass> and probably extract rendering the location into a partial
mrmargolis has quit [Remote host closed the connection]
<jhass> or you don't do %hr and define the separators as a border-bottom
bkxd has joined #ruby
<jhass> with CSS
scripore has joined #ruby
<jhass> and skip the last one with the pseudo class, :last or whatever it was
Aswebb_ has quit [Ping timeout: 272 seconds]
<apeiros> weaksauce: hrm, templates - is it really only that little per location? or is it more? if it is more, I'd use a partial and what jhass said.
<apeiros> also, <hr>? I thought they died out in 1998…
<weaksauce> good suggestions, jhass. seems not worth the trouble.
KC9YDN has quit [Read error: Connection reset by peer]
<weaksauce> ha. apeiros just a quick separator for some data
kbarry has joined #ruby
<apeiros> weaksauce: .panel:not(:last-child) { border-bottom: 1px solid black } # or somesuch
<kbarry> Getting an error why trying to update a gem: "no such file or directory" /var/www/.gem/ruby/1.9.1/cache/bundler-1.9.4.gem
<kbarry> I'm concerned because the directory doesnt make any sense, its as if an environmental path is broken, but i am not seeing the 1.9.1 is my paths.
<jhass> hr:last_child { display: none; }
* jhass hides
<zenspider> what if first/last used negative indexing semantics like slice does? ary.first(-2) would be all but the last 2, etc.
<kbarry> how can i troubleshoot where this path is coming from?
<apeiros> zenspider: I'd find it both, useful and confusing
<zenspider> kbarry: env | grep GEM
<zenspider> apeiros: I'm thinking the same thing :)
<jhass> ?abi kbarry
<ruboto> kbarry, Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, for example 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's usually shared among one release series, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is
adamjleonard has joined #ruby
rbennacer has quit [Remote host closed the connection]
speakingcode has quit [Quit: leaving]
rbennacer has joined #ruby
<jhass> er,
badhatter has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
<apeiros> you killed it jhass, you killed it :<
<ninjs> it's funny that the ruby community gets such a bad rap when I feel like the python community is way more harsh/cold
vim_shimm has joined #ruby
badhatter has joined #ruby
martin_work has joined #ruby
<apeiros> ninjs: we're held to higher standards. and we're proud to.
kblake has quit [Read error: Connection reset by peer]
kblake has joined #ruby
<kbarry> zenspider thanks, not seeing anything as the user with the particular problem.
<ninjs> even just saying 'lol' in #python will get you grilled. It's so bizarre. Don't people have more important things to worry about than whether someone types 'lol' or 'haha'?
<kbarry> ie, env | grep GEM returns nothing.
<apeiros> wow, I actually got that selector right on first try (that .panel:not(:last-child) thingy - it works)
<kbarry> (It returns on the root user, but i'm not having a problem there)
<apeiros> I *always* mess up :last-child. I always want to write :last
freerobby has joined #ruby
hannahkoala has quit [Read error: Connection reset by peer]
hannahko_ has joined #ruby
<kbarry> The other issue is, as far as i knowso, we have 1.9.3 installed, but the error says no such directory (where it mentions 1.9.1 as part of the path.)
zacts` has joined #ruby
cats has quit [Quit: Wow, rude.]
<jhass> kbarry: the Ruby version 1.9.3 has the ABI version 1.9.1, which is used in the path
h00d has joined #ruby
Soda has quit [Remote host closed the connection]
<kbarry> Ahhhhh.
vim_shimm has quit [Ping timeout: 245 seconds]
lidenskap has joined #ruby
<h00d> Hi folks.
vdamewood has joined #ruby
<ruboto> kbarry, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/9cd2a53e1ea2beeebecf
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jhass> kbarry: did you post your gem env yet?
<apeiros> jhass: that repaste is really nice <3
<jhass> yeah, I love it!
vickleton has quit [Ping timeout: 250 seconds]
quimrstorres has quit [Remote host closed the connection]
<kbarry> jhass: As the user with the problem, there is no output to env | grep GEM
zacts has quit [Ping timeout: 256 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
<jhass> gem env is a command
<jhass> gives us all useful infos about your environment
<apeiros> kbarry: `gem env`, not `env`
<kbarry> gotcha
<kbarry> sorry
QualityAddict has joined #ruby
<kbarry> gotcha
vivekananda has quit [Quit: Leaving]
wallerdev has joined #ruby
reinaldob has quit [Remote host closed the connection]
<h00d> how to interpret this code literally?
jottr has quit [Quit: WeeChat 1.1.1]
<h00d> player.inventory << Item.new "Sword", "Espada", 50, nil
duncannz has joined #ruby
<jhass> kbarry: does /var/www exist?
GeorgeThompson has joined #ruby
<kbarry> yes
<kbarry> but there is no ".gem" under /var/www
<kbarry> it appears the gem-path is incorrect.
<kbarry> (BTW, thats for the help on this)
<jhass> well, everything below it should create automatically
rbennacer has quit [Remote host closed the connection]
somnia has joined #ruby
<ninjs> h00d you are creating a new item, 'Sword', with some other properties, 'Espada', '50', and nil, and adding it to the player.inventory array
phutchins has joined #ruby
<jhass> your versions are quite outdated, any chance you could update at least rubygems?
krisquigley has joined #ruby
somnia is now known as lmi3
apoplexy has quit [Ping timeout: 250 seconds]
blt has joined #ruby
<weaksauce> jhass perfect! it was last-child though
lmi3 has quit [Client Quit]
<weaksauce> and apeiros the reason I am using hr's is because they are already styled nicely with foundation and I don't really want to try to recreate that
<h00d> ninjs: ok,
<weaksauce> more of a backend programmer than a css guy.
<kbarry> jhass: thats part oft he problem we are working on :)
<kbarry> We know things are a bit "dated" here.
jlast has joined #ruby
<jhass> well, I guess you can try creating the directory path manually
hannahko_ has quit [Read error: Connection reset by peer]
<h00d> player.rb:20: syntax error, unexpected tSTRING_BEG, expecting end-of-input player.inventory << Item.new "Sword", "Espada", 50, nil
hannahkoala has joined #ruby
<centrx> Use parentheses to pass parameters to your methods
<adaedra> I would put parenthesis around this call
<adaedra> too slow
Deele has quit [Ping timeout: 256 seconds]
<h00d> is taking place this strange error
krisquigley has quit [Ping timeout: 256 seconds]
<centrx> oh...I didn't realize it was taking place
kubunto has joined #ruby
jottr has joined #ruby
kubunto has left #ruby [#ruby]
codefo has joined #ruby
_djbkd has quit [Remote host closed the connection]
Azure has quit [Quit: Blue Sky Fish]
jlast has quit [Ping timeout: 276 seconds]
reinaldob has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
reinaldob has quit [Client Quit]
<mwlang> ninjs: too bad for pythoners. :-p Didn’t a bunch of Rubyist abandon camp for Python 5 or 6 years ago?
_djbkd has joined #ruby
michaeld_ is now known as michaeldeol
toretore has quit [Quit: This computer has gone to sleep]
<ninjs> mwlang: I'm not sure, but that would make sense why the python community is so much larger
<mwlang> There was a lot of harshness back around that time — maybe the bad crowd went over there.
<ninjs> I'm really not sure why ruby isn't the language of choice for beginners... I think ruby is *way* easier to understand than python
gaboesquivel has joined #ruby
mclee_ has joined #ruby
<jhass> kbarry: gem list shows the version though?
blt has quit [Read error: Connection reset by peer]
<ninjs> especially because of the whole 2.7/3.4 thing
zacts` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hannahkoala has quit [Read error: Connection reset by peer]
blt has joined #ruby
<mwlang> what was that thing?
<kbarry> bundler (1.3.5, 1.1.4)
hannahkoala has joined #ruby
<jhass> kbarry: so that's a no
Squarepy has quit [Quit: Leaving]
<ninjs> mwlang: that the community is largely split between moving to python 3 or staying on python 2
<jhass> it said it installed 1.9.4 now though?
grindmodeon has joined #ruby
ponga has joined #ruby
<mwlang> ninjs: ah. lots of language growing pains lately. Perl 6, Python 3, Ruby 1.9+
<kbarry> no.
<kbarry> when i try to install, it says no such path or directory
<jhass> did you try creating the directory path?
<jhass> mkdir -p /var/www/.gem/ruby/1.9.1/cache/
<kbarry> not yet, just a minute
<ninjs> mwlang: yeah but I think the Ruby 1.9+ this is way less of a blow than the giant split in the python community
<ninjs> it's to the point where python is having trouble advancing because even a lot of new information is coming out aimed at python 2
hannahkoala has quit [Client Quit]
<hoelzro> ninjs: that was my thought as well
<mwlang> ninjs: I’m curious now as to what’s in python 3 (I’ve never even looked)
<hoelzro> mwlang: as far as new features go?
<mwlang> hoelzro: or more to the point, what’s so devisive about it?
badhatter has quit [Ping timeout: 255 seconds]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<hoelzro> I think that it's just that there were certain choices that were made that are backwards incompatible
ponga has quit [Ping timeout: 250 seconds]
<hoelzro> and the language didn't provide enough new things (or enough fixes for bad old things) to encourage people to move
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
badhatter has joined #ruby
Matachines has joined #ruby
blt has quit [Remote host closed the connection]
<mwlang> hoelzro: ah. that would be the difference between there and ruby’s painful switch to 1.9 from 1.8. lots of gains and speed improvements was plenty incentive.
pengin has quit [Read error: Connection reset by peer]
pengin has joined #ruby
Filete has joined #ruby
pauly_oc has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
sinequanon has joined #ruby
zacts has joined #ruby
freerobby has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
pietr0 has quit [Quit: pietr0]
MatthewsFace has quit [Remote host closed the connection]
RandyT has joined #ruby
ParmesanCaesar has joined #ruby
freerobby has quit [Client Quit]
RandyT_ has quit [Ping timeout: 245 seconds]
jefus has joined #ruby
grindmodeon has quit [Quit: Leaving.]
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
justin_pdx has joined #ruby
juanpablo_ has quit [Client Quit]
<ninjs> mwlang: I think there's a different mindset in the ruby community too. more people welcome change because they are familiar with needing to change to keep up. Ruby has a much faster/more breaking dev cycle
juanpablo_ has joined #ruby
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ParmesanCaesar has quit [Ping timeout: 250 seconds]
justin_pdx has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 256 seconds]
_djbkd has quit [Remote host closed the connection]
jottr has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
jottr has joined #ruby
sinequanon has quit []
shadoi has quit [Quit: Leaving.]
thumpba_ has quit [Ping timeout: 272 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
charliesome has quit [Quit: zzz]
turtil has quit [Quit: WeeChat 1.1.1]
_djbkd has quit [Ping timeout: 272 seconds]
quimrstorres has joined #ruby
riskish has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
mwlang has quit [Quit: mwlang]
sevvie has joined #ruby
mistermocha has joined #ruby
quimrstorres has quit [Ping timeout: 252 seconds]
predator217 has joined #ruby
workmad3 has joined #ruby
adamjleonard has quit [Quit: Leaving...]
bnchrch has quit [Ping timeout: 246 seconds]
predator117 has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
Deele has joined #ruby
RegulationD has joined #ruby
havenwood has joined #ruby
DerisiveLogic has joined #ruby
Zai00 has quit [Quit: Zai00]
cpt_yossarian has quit [Quit: And then he took off.]
mistermocha has quit [Ping timeout: 252 seconds]
aphprentice has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
pen-soldier has left #ruby ["Leaving"]
EminenceHC has quit [Remote host closed the connection]
hannahkoala has joined #ruby
hannahkoala has quit [Client Quit]
GaryOak_ has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
ianseyer has joined #ruby
<shevy> 1.8 to 1.9 was indeed annoying. I still hate the encoding stuff
<shevy> 1.9 to 2.x was however had smallish
<shevy> python2 to python3 is a total disaster. I have had xorg components fail or refuse to compile so I had to have to use both python versions :(
sohrab has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
<shevy> they should have flat-out banned python2 from the official site :)
deric_skibotn has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
graydot has quit [Remote host closed the connection]
_djbkd has joined #ruby
deric_skibotn has joined #ruby
ponga has joined #ruby
musashi1 has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
|RicharD| has quit [Quit: Sto andando via]
phigg has joined #ruby
havenwood has quit []
platzhirsch has joined #ruby
Melpaws has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 264 seconds]
rkazak has joined #ruby
bricker has joined #ruby
plashchynski has joined #ruby
Aswebb_ has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
Aswebb_ has quit [Ping timeout: 272 seconds]
_djbkd has quit [Remote host closed the connection]
Ellis has joined #ruby
mrmargolis has joined #ruby
Ellis has left #ruby [#ruby]
CorpusCallosum has quit [Excess Flood]
jlast has quit [Ping timeout: 245 seconds]
mrmargolis has quit [Remote host closed the connection]
mg^ has quit [Quit: Leaving]
charliesome has joined #ruby
nfk|laptop has joined #ruby
snockerton has quit [Quit: Leaving.]
sankaber has joined #ruby
<a5i> would greatly appreciate it if someone answer this: http://www.reddit.com/r/ruby/comments/32zadm/indexing_exact_string_tokenizers_twice/
workmad3 has quit [Ping timeout: 250 seconds]
<eam> a5i: the really correct answer is to use a gem and parse the html as structured data
uptownhr has quit [Quit: uptownhr]
duderonomy has joined #ruby
<a5i> eam, err, I'm not exactly using Ruby though :[
<eam> what are you using?
<a5i> Crystal
<eam> advice still holds
<eam> use an html parser
<a5i> That lib doesnt exist yet
<a5i> at least I dont think
MyGreenP1 has joined #ruby
<eam> >> "<title> hello </title>\n<title> world </title>".scan(/<title>(.*?)<\/title>/)
<ruboto> eam # => [[" hello "], [" world "]] (https://eval.in/315196)
<a5i> oh my god...
vt102 has quit [Ping timeout: 276 seconds]
<adaedra> Hold on
jeramy_s has joined #ruby
<a5i> eam, lmao: http://prntscr.com/6v1q3e
<eam> adaedra: that's the correct answer, but this is "in the absense of a reasonable library"
Rickmasta has joined #ruby
<eam> anyway it's not entirely correct that it can't be done in regex
<a5i> it's not an error, though the old version spits out the .inspect for some reason
<a5i> and the owner fixed it right when i tried it
iceyec has quit [Quit: iceyec]
<eam> :)
zorak8 has joined #ruby
iceyec has joined #ruby
<a5i> hilarious coincidence
iceyec has quit [Client Quit]
<eam> most of the soapboxing people do about regex applies to basic posix regex, which isn't what ruby uses
_djbkd has joined #ruby
plashchynski has quit [Quit: plashchynski]
<eam> PCRE is substantially more powerful
<a5i> eam, u think my code could all be replaced with .scan ?
zorak8 has quit [Client Quit]