apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<weaksauce> remove count all together
MrSamuel_ has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
<weaksauce> remove the if statements
zachrab has quit [Read error: No route to host]
dspangenberg has joined #ruby
<shime> does anybody know nice and simple encrpytion/decryption method that uses salt? something better than base32, but simpler than AES-256-CBC?
zachrab has joined #ruby
nanoyak has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
MrSamuel has quit [Ping timeout: 246 seconds]
ponga has joined #ruby
kenneth has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
<d10n-work> Do all functions that mutate objects conventionally use ! or only methods?
ggherdov has quit []
ta_ has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
gattie has quit [Quit: Leaving...]
MrSamuel has joined #ruby
<weaksauce> d10n-work it's just a convention but there are many examples of things that mutate state (active record .save for instance) that don't use the !
x77686d has joined #ruby
<weaksauce> netuoso the count and times are reversed
<netuoso> weaksauce: ahh lol you hurt my brain suggesting to remove the ifs
shime_ has joined #ruby
scripore has joined #ruby
<d10n-work> how about functions not attached to the object they mutate?
sambao21 has joined #ruby
<netuoso> ahh weaksauce arr_1.times auto matically does that and count is the count of it
MrSamuel_ has quit [Ping timeout: 244 seconds]
<netuoso> i think i see, let me do that
<d10n-work> shime: I'd expect there to be a library that handles encryption for you. I wouldn't advertise encryption in what you're writing unless you're using something stronger than aes-256-ecb
<weaksauce> netuoso >> "test".length.times { |x| puts x }
<d10n-work> (sorry for the non-answer, just a thought and a bit of advice)
<weaksauce> >> "test".length.times { |x| puts x }
<eval-in_> weaksauce => 0 ... (https://eval.in/269957)
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
shime has quit [Ping timeout: 245 seconds]
MrSamuel_ has joined #ruby
<weaksauce> shime_ bcrypt?
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EvanFreeman has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
x77686d has quit [Client Quit]
DadoCe has quit [Remote host closed the connection]
MrSamuel has quit [Ping timeout: 276 seconds]
MrSamuel_ is now known as MrSamuel
jhass has quit [Quit: Bye]
<weaksauce> I guess that just does secure hashes
lkba_ has joined #ruby
EvanFreeman has joined #ruby
jhass has joined #ruby
fandi has quit [Ping timeout: 255 seconds]
x77686d has joined #ruby
ggherdov has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
neoxquick has quit [Read error: Connection reset by peer]
<shime_> weaksauce: yeah, I need something for encryption and decryption
jobewan has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 244 seconds]
<shime_> d10n-work: I want something simpler than aes-256-ecb
<weaksauce> and because you were so specific wrt the AES-256-ECB that you already looked at https://github.com/attr-encrypted/encryptor
<shime_> d10n-work: and base32 is too simple because it doesn't support salts :)
tkuchiki has joined #ruby
djbkd has quit [Remote host closed the connection]
<d10n-work> if I used software using aes-256-ecb or less and I used the software expecting the encryption to be good I would be an upset customer
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
theotherstupidgu has joined #ruby
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
acangiano has quit [Ping timeout: 240 seconds]
<weaksauce> ellisTAA I understand what you are trying to do but converting to strings is probably the most backward way to do it.
ych4k3r has joined #ruby
<ellisTAA> how would u do it
Aova has quit [Read error: Connection reset by peer]
razrunelord has joined #ruby
codeurge has joined #ruby
<shime_> d10n-work: I just need to mask email addresses
acangiano has joined #ruby
<weaksauce> ellisTAA it's a calculator... you should be using numbers
ndjaja has quit [Quit: ndjaja]
blackmesa has quit [Quit: WeeChat 1.1]
x77686d has quit [Quit: x77686d]
jenrzzz has joined #ruby
gilest has quit [Remote host closed the connection]
<netuoso> weaksauce: its getting prettier
Zai00 has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
<weaksauce> where's count netuoso?
<netuoso> i didnt implement it and it workd
<netuoso> maybe its not needed?
DEA7TH has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 255 seconds]
ndjaja has joined #ruby
Takle has joined #ruby
<weaksauce> perhaps... I'll check it out
LetErikTry has joined #ruby
<weaksauce> get rid of the arrays
bronson has joined #ruby
<netuoso> can i similarly pop a string
<netuoso> or should i rethink that logic
<weaksauce> yes rethink how to do it with indexes
ns4 has joined #ruby
<ns4> :)
Aova has joined #ruby
dspangenberg has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
<ns4> :)))))))))))
plashchynski has quit [Quit: plashchynski]
<ns4> Hello i have a one question
<weaksauce> and remove all the if statements netuoso
MrSamuel has quit [Ping timeout: 265 seconds]
<ns4> how to obtain http headers with Ruby On Rails?
postmodern has quit [Quit: Leaving]
gilest has joined #ruby
<weaksauce> ns4 try #rubyonrails
<weaksauce> ns4 it is part of the request object
<weaksauce> request.headers to be specific
<ellisTAA> weaksauce: help me out i’m stuck :\
<ns4> mm
astrobunny has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
Takle has quit [Ping timeout: 272 seconds]
<ns4> but you don't know RoR?
x77686d has quit [Client Quit]
dc has joined #ruby
LetErikTry has quit [Changing host]
LetErikTry has joined #ruby
<weaksauce> I do know RoR but the rails channel will help you out
<ns4> want to do somhething to what is done with curl -I
swgillespie has joined #ruby
MrSamuel has joined #ruby
Axy has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
edmz has joined #ruby
fandi has joined #ruby
Zai00 has left #ruby [#ruby]
<weaksauce> netuoso times shouldn't work for the count. it will just return the last value
<weaksauce> in the sequence
x77686d has joined #ruby
gilest has quit [Quit: Leaving...]
MrSamuel_ has joined #ruby
havenwood has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
MrSamuel has quit [Ping timeout: 246 seconds]
MrSamuel_ is now known as MrSamuel
<Crazy_Atheist> Having a friend install ruby and gosu, and the gem command 'couldn
theotherstupidgu has quit [Ping timeout: 256 seconds]
<Crazy_Atheist> er couldn't find the gem file
<Crazy_Atheist> er gimme a moment
ramfjord has joined #ruby
waynerade has quit [Ping timeout: 245 seconds]
x77686d has quit [Client Quit]
theotherstupidgu has joined #ruby
livingstn has quit [Ping timeout: 245 seconds]
<netuoso> weaksauce: we are down to one line of logic. but how do i assert the user puts two strings of matching lengths without an IF
<netuoso> the ruby-way
<weaksauce> the specs say that the strings will always be equal length
<weaksauce> but in general I like to do guard statements at the top of the method
<weaksauce> something like return -1 unless str_1.length == str_2.length
razrunelord has quit []
djbkd has joined #ruby
<weaksauce> that removes the need for indentation
<netuoso> weaksauce: thanks. makes sense
<netuoso> you went above and beyond good sir. and i learned a lot
<weaksauce> your code is almost correct
<weaksauce> ;) x-1 is off by one
adamjleonard has quit [Quit: Leaving...]
<netuoso> jsut leave it as x ? i was thinking about the 0 index
<netuoso> but i guess ruby handles that ?
<netuoso> both ways pass all texts. x and x-1
<weaksauce> >> puts "test"[0]
<eval-in_> weaksauce => t ... (https://eval.in/269990)
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> puts "test"[4]
<Crazy_Atheist> ok, is there a reason why a windows gem install wouldn't be able to find gems via the utility?
<weaksauce> >> puts "test"[4]
<eval-in_> weaksauce => ... (https://eval.in/269991)
scripore has joined #ruby
<weaksauce> >> puts "test"[-1]
<eval-in_> weaksauce => t ... (https://eval.in/269992)
fandi has quit [Ping timeout: 244 seconds]
<weaksauce> >> puts "tester"[-1]
<eval-in_> weaksauce => r ... (https://eval.in/269993)
uber has quit [Read error: Connection reset by peer]
<weaksauce> ^ why it "worked" netuoso
<netuoso> you are a great teacher
<netuoso> thanks AGAIN
<weaksauce> you can see why I said your code looked like c code now?
<weaksauce> no problem
<netuoso> yeah, and it did
<netuoso> probably performed like crap under heavy testing too
theotherstupidgu has quit [Ping timeout: 264 seconds]
<netuoso> im currently in a 2 month rails class and working on making my ruby top notch while at iut
chrishough has joined #ruby
<ellisTAA> netuoso: what class
theotherstupidgu has joined #ruby
<netuoso> TechTalentSouth Code Immersion program
triple_b has joined #ruby
<netuoso> ellisTAA: ^
knut has quit [Ping timeout: 244 seconds]
<ellisTAA> did u know how to code when u started the program?
ndjaja has quit [Quit: ndjaja]
GaryOak_ has quit [Remote host closed the connection]
hmsimha has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sevenseacat has joined #ruby
graydot has joined #ruby
graydot has quit [Client Quit]
_gautam_ has quit [Quit: Be back later ...]
<netuoso> ellisTAA: self taught. but yeah
arup_r has joined #ruby
<netuoso> the majority of the people did not. they are business people, entrepreneurs, start up people, etc. .. people that had a need for coding and are smart, but didnt really have prior exp
<shanlar> is there a good ruby doc site that works like the php doc site where i can do http://www.php.net/someFunction ?
<ellisTAA> netuoso: i see. i’m trying to get into a bootcamp so i’ve been trying to learn ruby for almost 2 months
<netuoso> by "knowing how to code" i can read it, understand it, but not exactly write it well
Spami has joined #ruby
arup_r has quit [Remote host closed the connection]
<netuoso> ellisTAA: Tech Talent South is amazing, but part-time is $4k full-time is $6k+
knut has joined #ruby
<ellisTAA> is that in the bay area?
juanpablo__ has joined #ruby
<netuoso> ellisTAA: im in new orleans. they have other campuses around
<jhass> shanlar: a sinatra app that guess ruby-doc.org URLs from that and redirects sounds like a fun starter project ;)
Ulrike_Rayne is now known as Ulrike
jbw_ has quit [Ping timeout: 245 seconds]
pdoherty has joined #ruby
ndjaja has joined #ruby
JDiPierro has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
JDiPierro has quit [Remote host closed the connection]
thumpba has joined #ruby
<ellisTAA> jhass: do u have any advice on how i can make my code work? for some reasons code in line 24 wont get evaluated as a fixnum … https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L24
Spami has quit [Client Quit]
astrobunny has quit []
happyface has quit [Quit: Connection closed for inactivity]
juanpablo__ has quit [Ping timeout: 245 seconds]
ns4 has quit [Quit: Lost terminal]
Hijiri has quit [Quit: WeeChat 1.0.1]
sevenseacat has quit [Read error: Connection reset by peer]
sevenseacat1 has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
<netuoso> weaksauce: https://raw.githubusercontent.com/netuoso/Prime/master/ruby/hamming/hamming.rb just so you can see the end result. thanks again, dinner time
standingcloud has joined #ruby
sevenseacat1 is now known as sevenseacat
pdoherty has quit [Ping timeout: 264 seconds]
<weaksauce> looking good netuoso
Landshark753 has joined #ruby
<shanlar> weaksauce: that didnt work so well with 'sort'
ponga has quit [Quit: Leaving...]
mitchellhenke has joined #ruby
<shanlar> oh i see what it is doing
<shanlar> yea that is my last resort, picks up a lot of garbage, just a basic google search on that page
netuoso has quit [Ping timeout: 246 seconds]
<jhass> ellisTAA: Fixnum is a Numeric
<shanlar> thanks
<jhass> >> 1.is_a? Numeric
<eval-in_> jhass => true (https://eval.in/270020)
theotherstupidgu has quit [Ping timeout: 265 seconds]
<jhass> oh, you check the previous one, mmh
leafybasil has quit [Ping timeout: 246 seconds]
crazydiamond_ has quit [Read error: Connection reset by peer]
theotherstupidgu has joined #ruby
<jhass> string and string2 are bad names, variables should describe the meaning, not the representation
Hijiri has joined #ruby
ddv has quit [Ping timeout: 272 seconds]
<jhass> anyway, I think it's actually running into that branch
freerobby has joined #ruby
jbw_ has joined #ruby
MrSamuel has joined #ruby
Deele has quit [Ping timeout: 245 seconds]
<jhass> it's just that it first runs into the else and then not again
netuoso has joined #ruby
<jhass> "#{x.to_sym}" is very odd
ddv has joined #ruby
edmz has left #ruby ["Textual IRC Client: www.textualapp.com"]
<jhass> #{} calls to_s
<jhass> so you do String#to_sym#to_s
zachrab has quit [Remote host closed the connection]
Joufflu has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
pika_pika has quit [Ping timeout: 265 seconds]
<jhass> then you map but don't actually want to build a new array
<weaksauce> shanlar you can always do ri methodname
<jhass> and there's .with_index /.each_with_index for index tracking
<weaksauce> or dash is a good utility if you are on os x
davedev24_ has joined #ruby
reinaldob has joined #ruby
zachrab has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
yellowgh0st has joined #ruby
vaneda has joined #ruby
it0a has joined #ruby
codeurge has joined #ruby
<ellisTAA> jhass: yeah i dont want to build a new array. do u think using map and each are whats causing my problem?
<jhass> nope
<jhass> I think you don't understand your own code and that's the problem, tbh
reinaldob has quit [Ping timeout: 245 seconds]
<jhass> see
<jhass> the test inputs numbers
<ellisTAA> yeah
<jhass> and it wants a number out
<jhass> why would that require a single string
<jhass> do you know what a stack is?
<ellisTAA> well i dont want an array, i’m putting the expression into a string bc that’s what i thought was a way to get what i want, then i will convert the string to non-string
<ellisTAA> stack refers to an array with an ability to push and pop, yaeh?
<jhass> that's one implementation, the concept is more important here
_gautam_ has joined #ruby
<ellisTAA> how so
wallerdev has quit [Quit: wallerdev]
_gautam_ has quit [Client Quit]
<jhass> because RPN is the classic example for using one
netuoso has quit [Ping timeout: 246 seconds]
<jhass> in fact, RPN was invented because back then it was easier to build calculators that way
<ellisTAA> so to solve this problem i should be using pop and push?
<jhass> because all you needed was a stack
ta_ has joined #ruby
<jhass> yes
adamjleonard has joined #ruby
<ellisTAA> a stack just refers to an array?
nii236|irssi has joined #ruby
<centrx> a stack is like an array where elements are added and removed only from the top end
<ellisTAA> i see
<jhass> as said, Ruby's array provides the interface of an stack, it's one implementation of it so to say
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> but it's more important to look at it like a stack
<Hijiri> a stack is basically a list with a head and a tail
wallerdev has joined #ruby
<Hijiri> you can get what's on top, you can get the rest of it, you can add more things on top
vjt has joined #ruby
codeurge has joined #ruby
<Hijiri> (it could be an array or something else under the hood if you wanted)
oleo__ has quit [Quit: Verlassend]
theotherstupidgu has quit [Ping timeout: 245 seconds]
ferr has quit [Remote host closed the connection]
ndjaja has quit [Quit: ndjaja]
<jhass> ellisTAA: if you still can't come up with it: https://www.youtube.com/watch?v=7ha78yWRDlE
__chris has joined #ruby
<ellisTAA> ahhh no i dont want to cheat
<centrx> dude no cheating
theotherstupidgu has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<jhass> the video has 0 code ;P
<ellisTAA> i thought my code was so cool : [
codeurge has quit [Client Quit]
ta_ has quit [Ping timeout: 276 seconds]
codeurge has joined #ruby
sankaber has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FooMunki_ has quit [Quit: FooMunki_]
_gautam_ has joined #ruby
jonr22 has joined #ruby
greenbagels has joined #ruby
thumpba has quit [Ping timeout: 264 seconds]
tunaCanBruh has joined #ruby
Aova has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
Aova has quit [Remote host closed the connection]
oleo has joined #ruby
<ellisTAA> sweet jesus, i got it to work, but now its returning the string. anyone know a way to turn the string into an expressoin?
adamjleonard has quit [Ping timeout: 276 seconds]
<sevenseacat> wat
robustus has quit [Ping timeout: 255 seconds]
<jhass> I'm telling you
<jhass> no need for a single string until the last two tests
<ellisTAA> jhass: how would u do it?
djcp has joined #ruby
<jhass> with a stack
robustus|Off has joined #ruby
robustus|Off is now known as robustus
fabrice31 has joined #ruby
<jhass> really, saying one more word would mean you can just watch the video
<ellisTAA> alright ill check it out
hmsimha has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 246 seconds]
beef-wellington has quit [Ping timeout: 276 seconds]
autococker_bud has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
ki0 has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
ponga has joined #ruby
adamjleonard has joined #ruby
freerobby has quit [Quit: Leaving.]
towski_ has joined #ruby
ki0 has quit [Ping timeout: 245 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vaneda has quit [Quit: Computer has gone to sleep.]
seal has joined #ruby
roolo has joined #ruby
oo_ has quit [Remote host closed the connection]
rcoulman has quit []
_gautam_ has quit [Quit: Be back later ...]
<ellisTAA> jhass: thanks for sharing that video. i now know hw to solve the problem
oo_ has joined #ruby
knut has quit [Quit: Verlassend]
nuck has quit [Quit: Computer has gone to sleep.]
spookah has quit [Ping timeout: 276 seconds]
theotherstupidgu has quit [Ping timeout: 255 seconds]
roolo has quit [Ping timeout: 246 seconds]
bricker has quit [Quit: leaving]
theotherstupidgu has joined #ruby
josephndenton has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
ta_ has joined #ruby
standingcloud has quit [Remote host closed the connection]
mmoretti has quit [Quit: Leaving...]
gsd has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has quit [Ping timeout: 276 seconds]
jonr22 has quit [Remote host closed the connection]
EvanFreeman has joined #ruby
hmsimha has joined #ruby
checkit has quit [Ping timeout: 256 seconds]
ellisTAA has left #ruby [#ruby]
theotherstupidgu has quit [Remote host closed the connection]
EvanFreeman has quit [Ping timeout: 244 seconds]
backhoe has joined #ruby
_gautam_ has joined #ruby
theotherstupidgu has joined #ruby
einarj has joined #ruby
uptownhr has quit [Quit: uptownhr]
devyn has quit [Ping timeout: 265 seconds]
dspangenberg has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
tmk1108 has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has joined #ruby
Hobogrammer has joined #ruby
dspangenberg has quit [Ping timeout: 245 seconds]
zachrab has quit [Remote host closed the connection]
djcp has quit [Quit: WeeChat 1.0.1]
_gautam_ has quit [Quit: Lingo: www.lingoirc.com]
zachrab has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
Channel6 has joined #ruby
zzzbra has joined #ruby
__chris has quit [Ping timeout: 264 seconds]
krz has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 264 seconds]
numberten has joined #ruby
amclain has joined #ruby
<numberten> if i have a |*| as the args for a lambda
<numberten> does that mean the function takes any number of arguments and ignores them?
zachrab has quit [Ping timeout: 276 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
fandi has joined #ruby
yellowgh0st has joined #ruby
yellowgh0st has quit [Client Quit]
juanpablo__ has joined #ruby
yellowgh0st has joined #ruby
yellowgh0st has quit [Client Quit]
<Rennex> can you recommend a GUI library for ruby? i want it to work on windows, no jruby/java nonsense, and native look would be nice but it's not a dealbreaker
juanpablo__ has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
beef-wellington has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
josephndenton has joined #ruby
paulfm has joined #ruby
beef-wellington has quit [Ping timeout: 265 seconds]
dc has quit [Remote host closed the connection]
adriancb has joined #ruby
wallerdev has quit [Quit: wallerdev]
scripore has joined #ruby
crueber has joined #ruby
arescorpio has joined #ruby
wallerdev has joined #ruby
VBlizzard has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 255 seconds]
blizzy has quit [Disconnected by services]
VBlizzard is now known as blizzy
jenrzzz has quit [Ping timeout: 244 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
zz has joined #ruby
crueber has quit [Ping timeout: 240 seconds]
theotherstupidgu has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
nuck has joined #ruby
nuck has quit [Max SendQ exceeded]
postmodern has joined #ruby
seal has quit [Quit: Ex-Chat]
nuck has joined #ruby
ta_ has joined #ruby
sent1nel has joined #ruby
sent1nel has quit [Remote host closed the connection]
ccolorado has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
comma8|BNC is now known as comma9
comma9 is now known as comma8
sent1nel has joined #ruby
<ccolorado> Does anyone knows if there is an equivalent to bundler for pyton ? asking here first since I may need to explain what bundler is on #python
<sevenseacat> you probably won't.
davedev2_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
davedev24_ has quit [Ping timeout: 256 seconds]
<ccolorado> sevenseacat: I am not disputing that.
ta_ has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
<postmodern> say I've already defined a query method that performs a DNS query and parses the response
<postmodern> and I want to extract the query logic from the parsing logic, what would be a good name for a method that _only_ does the DNS query
theotherstupidgu has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 255 seconds]
theotherstupidgu has joined #ruby
pdoherty has quit [Ping timeout: 255 seconds]
tunaCanBruh has joined #ruby
backhoe has left #ruby ["Leaving"]
fantazo has quit [Quit: Verlassend]
rcoulman has joined #ruby
adamjleonard has quit [Ping timeout: 264 seconds]
bzeu has joined #ruby
jlast has quit [Remote host closed the connection]
zzzbra has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
ccolorado has left #ruby [#ruby]
krz has quit [Ping timeout: 264 seconds]
paulfm has quit [Quit: Zzzzz...]
pu22l3r has joined #ruby
paulfm has joined #ruby
paulfm has quit [Client Quit]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
devyn has joined #ruby
LudicrousMango has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LudicrousMango has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
<bzeu> The initialize method inside a class is the "constructor" as in C++?
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
__main__ has quit [Ping timeout: 256 seconds]
<postmodern> bzeu, that is correct
<bzeu> Oh okey.
jaequery has joined #ruby
<bzeu> postmodern: And the destructor?
<postmodern> bzeu, there is also a initialize_copy method, which are like copy constructors
<bzeu> Ahh
<postmodern> bzeu, eh, no destructor, everything get's GCed
<postmodern> bzeu, there is an Object Finalizer, but it's not the same
codeurge has joined #ruby
centrx has quit [Quit: In the beginning there was nothing, which exploded. - Terry Pratchett]
<bzeu> postmodern: Oh okey I will have a read on that, thanks!
<postmodern> bzeu, basically you should use blocks or explicit methods to clean up your objects
dspangenberg has joined #ruby
<postmodern> bzeu, otherwise let the GC clean them out
<porfa> data.css('.span4 ul a')[5]['href'] <— this outputs me the link to the sixth image, can’t i so something like data.css('.span4 ul a’)[0..5][‘href'] so it outputs me the links for image 1 through 6 ?.. how to?
<porfa> sorry, discussion going on.
OrbitalKitten has joined #ruby
tkuchiki has joined #ruby
<rcoulman> porfa: You could try using map
LudicrousMango has quit [Ping timeout: 272 seconds]
triple_b has joined #ruby
djbkd has quit [Remote host closed the connection]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
josephndenton has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
dspangenberg has quit [Ping timeout: 245 seconds]
<porfa> rcoulman: thank you so much for the sugestion, a simple google search menaged to fix my problem!! :D
<rcoulman> cool
<porfa> data.css('.span4 ul a').map{ |a| [a['href']] }[0, 9]
<porfa> what do you call “map” ? a method? (still learning rubby as i make my scripts for my needs)
karmatr0_ has joined #ruby
<porfa> *ruby
eka has joined #ruby
<rcoulman> It’s a method defined on Array and other “Enumerable” classes
<rcoulman> The curly braces indicate a “block” which the map method evaluates once for each element in the array
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<rcoulman> the |a| part defines the variable that will refer to the element being processed
<porfa> (copy /pastes theese last line into rubynotes.txt)
karmatr0n has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
<porfa> thanks :)
eka has quit [Client Quit]
Sakens has joined #ruby
<rcoulman> Learning about map and the other methods in Enumerable is one of the keys to really understanding what makes Ruby special
theotherstupidgu has quit [Ping timeout: 265 seconds]
<rcoulman> bzeu: This blog post I wrote a while ago might help: http://randycoulman.com/blog/2013/06/18/affordances-deterministic-destruction/
__main__ has joined #ruby
<rcoulman> One of the differences between C++ and Ruby is that a Ruby class can only have one initialize method, where a C++ class can have multiple constructors
ki0 has joined #ruby
<rcoulman> More generally, C++ allows multiple methods of the same name with different signatures; Ruby does not
<rcoulman> Ruby has much more flexible argument syntax, though, which makes up for a lot of that
theotherstupidgu has joined #ruby
juanpablo__ has joined #ruby
Sakens has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
autococker_bud has quit [Remote host closed the connection]
scripore has joined #ruby
juanpablo__ has quit [Ping timeout: 265 seconds]
eka has joined #ruby
<porfa> hmm
patrick99e99 has quit [Ping timeout: 272 seconds]
Sakens has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
patrick99e99 has joined #ruby
jottr has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
agrinb has joined #ruby
theotherstupidgu has quit [Ping timeout: 245 seconds]
JDiPierro has joined #ruby
robbyoconnor has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
ajaiswal has joined #ruby
gtrak has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
LudicrousMango has joined #ruby
_reset has quit [Ping timeout: 255 seconds]
JDiPierro has quit [Ping timeout: 265 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
<porfa> im trying to .downcase some strings, but the ones that have special signs like HÉLLO output as HÉllo intead of Héllo … is there anyway around this or is it required for me to gem install unicode_utils ?
dseitz has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
anibara has joined #ruby
bzeu has quit [Ping timeout: 244 seconds]
timanema has joined #ruby
uptownhr has joined #ruby
<anibara> I’m trying to use twitter gem and getting Faraday::Builder is now Faraday::RackBuilder when I run the code. Anybody else got this or have idea how to resolve it
djbkd has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timanema has quit [Client Quit]
Hobogrammer has quit [Ping timeout: 272 seconds]
timanema has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
numberten has left #ruby [#ruby]
bzeu has joined #ruby
<bzeu> Sry back
<bzeu> rcoulman: I was afk ,thanks btw!
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
radic has quit [Ping timeout: 245 seconds]
<bzeu> rcoulman: A quick question. Do you think that Ruby and/or RoR is dying honestly?
mrmargolis has quit [Remote host closed the connection]
radic has joined #ruby
mrmargolis has joined #ruby
ki0 has quit [Remote host closed the connection]
Ankhers has joined #ruby
<anibara> don’t say that. I’m just starting
<mozzarella> yes, time to switch to nodejs
theotherstupidgu has joined #ruby
<mozzarella> it's the future
ponga has quit [Remote host closed the connection]
lioninawhat has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<mozzarella> my coffee machine runs in a browser and it's using javascript
karmatr0_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
sent1nel has quit [Remote host closed the connection]
oo_ has joined #ruby
<bzeu> mozzarella: So false
mrmargolis has quit [Ping timeout: 240 seconds]
zzzbra has joined #ruby
Hobogrammer has joined #ruby
<anibara> I’m trying to use twitter gem and getting Faraday::Builder is now Faraday::RackBuilder when I run the code. Anybody else got this or have idea how to resolve it
Mia has quit [Read error: Connection reset by peer]
nuck has quit [Quit: Computer has gone to sleep.]
MrSamuel has joined #ruby
Megtastique has quit []
yfeldblum has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ankhers has quit [Ping timeout: 250 seconds]
anibara has left #ruby [#ruby]
pontiki has joined #ruby
anibara has joined #ruby
<anibara> I’m trying to use twitter gem and getting Faraday::Builder is now Faraday::RackBuilder when I run the code. Anybody else got this or have idea how to resolve it
krz has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has joined #ruby
agjacome has quit [Quit: leaving]
oo_ has joined #ruby
codeurge has joined #ruby
ta_ has joined #ruby
Channel6 has quit [Quit: Leaving]
krz has quit [Ping timeout: 265 seconds]
Takle has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Ping timeout: 244 seconds]
theotherstupidgu has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 276 seconds]
marcdel has joined #ruby
braincrash has quit [Quit: bye bye]
iamjarvo has joined #ruby
marcdel_ has joined #ruby
marcdel has quit [Ping timeout: 244 seconds]
Cat_1 has quit []
beef-wellington has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
npgm has quit [Quit: Connection closed for inactivity]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has joined #ruby
braincrash has joined #ruby
tus has quit []
beef-wellington has quit [Ping timeout: 272 seconds]
zz has quit []
avahey has joined #ruby
ellisTAA has joined #ruby
freerobby has quit [Quit: Leaving.]
ellisTAA has quit [Client Quit]
freerobby has joined #ruby
standingcloud has joined #ruby
karmatr0n has joined #ruby
Hobogrammer has joined #ruby
JBreit has left #ruby ["Leaving"]
triple_b has joined #ruby
jottr has joined #ruby
triple_b has quit [Client Quit]
shum has quit [Quit: WeeChat 1.1.1]
kyb3r_ has joined #ruby
shum has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
sent1nel has joined #ruby
maximski has quit []
jerematic has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
josephndenton has joined #ruby
<agent_white> good evenin'
RastaqWhere has joined #ruby
RastaqWhere has quit [Client Quit]
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
aagdbl has joined #ruby
tyfighter has joined #ruby
ta_ has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
agent_white has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lampd1 has joined #ruby
aaas_ has joined #ruby
tunaCanBruh has joined #ruby
patric100e99 has joined #ruby
<pontiki> ping?
shime_ has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 265 seconds]
aaas has quit [Ping timeout: 265 seconds]
aaas_ is now known as aaas
deimos has joined #ruby
nuck has joined #ruby
wjimenez5271 has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
ta_ has quit [Ping timeout: 276 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
waynerade has joined #ruby
Megtastique has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
dc_ has joined #ruby
ponga has joined #ruby
pdoherty has joined #ruby
<nii236|irssi> pong
__main__ has quit [Ping timeout: 276 seconds]
aagdbl has quit [Quit: Leaving]
<deimos> Quick question, I have a repository with multiple sub dirs each with rspec tests, and its own spec_helper. I'd like to to run rspec from the root of the repo and use the spec_helper in each sub dir to run the tests. They run ok when running rspec in the sub dir itself, but one level above when using `rspec -r subdir/spec/spec_helper.rb subdir` it fails. Any
<deimos> direction on how to/a better way of doing that?
<deimos> I hate how irccloud splits text like that, sorry heh
shum has quit [Client Quit]
aapole has quit [Ping timeout: 276 seconds]
ponga has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
LudicrousMango has quit [Remote host closed the connection]
LudicrousMango has joined #ruby
freerobby has quit [Quit: Leaving.]
dspangenberg has joined #ruby
shum has joined #ruby
Cache_Money has joined #ruby
shum has quit [Client Quit]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
swgillespie has joined #ruby
dspangenberg has quit [Ping timeout: 240 seconds]
LudicrousMango has quit [Ping timeout: 264 seconds]
wldcordeiro has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
oo_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
nobitanobi has joined #ruby
oo_ has joined #ruby
jenrzzz has joined #ruby
postmodern has quit [Quit: Leaving]
theotherstupidgu has quit [Ping timeout: 256 seconds]
hgl has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
juanpablo__ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 245 seconds]
theotherstupidgu has joined #ruby
djbkd has quit [Quit: My people need me...]
philwantsfish has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 264 seconds]
MrSamuel has quit [Quit: MrSamuel]
juanpablo__ has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Ping timeout: 246 seconds]
__Kyle__ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
hgl has joined #ruby
ozialien has joined #ruby
fandi has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
arescorpio has quit [Excess Flood]
mitt3ns has joined #ruby
mitt3ns has left #ruby [#ruby]
tylersmith has quit []
shum has joined #ruby
oo_ has joined #ruby
theotherstupidgu has joined #ruby
jusmyth has joined #ruby
djbkd has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
ta_ has joined #ruby
lioninawhat has quit [Remote host closed the connection]
__Kyle__ has quit [Remote host closed the connection]
longfeet has joined #ruby
yfeldblum has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
xjiujiu has joined #ruby
<porfa> http://www.sex4fun.pt/pt/3406-2-pilhas-c-lr14-alcalinas-panasonic-5410853039242.html why can’t i get the breadcrumbs names? i only get “inicio” and “2 pilhas c lr14….”
<porfa> the stuff in between doesn’t come out from my irb console … wth, never came across this problem
ta_ has quit [Ping timeout: 276 seconds]
<porfa> data.css('.breadcrumb’).text nope.
d3v has joined #ruby
<pipework> Is this a rails application?
<porfa> no no, ruby
<pipework> Rails is ruby.
<porfa> why is there a Rails help channel then?
LudicrousMango has joined #ruby
<pipework> Because it's significant enough to warrant one.
<pipework> There's just not enough information about your problem for anyone to help you.
<porfa> i guess im sol then! i’ll keep on reading, thakns though!!
rcoulman_ has joined #ruby
mrmargolis has joined #ruby
fandi has joined #ruby
rcoulman has quit [Ping timeout: 246 seconds]
rcoulman_ is now known as rcoulman
theotherstupidgu has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
postmodern has joined #ruby
theotherstupidgu has joined #ruby
Hijiri has joined #ruby
towski_ has joined #ruby
zzzbra has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Ping timeout: 244 seconds]
shum has quit [Quit: WeeChat 1.1.1]
LetErikTry has quit [Quit: sleep]
Ankhers has joined #ruby
zwer has quit [Remote host closed the connection]
waynerade has quit [Ping timeout: 244 seconds]
zwer has joined #ruby
psy_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
<porfa> pipework: isn’t this really enough? http://www.sex4fun.pt/pt/2928-avental-sexy-5355000902698.html i just want to fetch the breadcrumbs names
<porfa> im making a small ruby script to scrap some data
arup_r has joined #ruby
<porfa> i can only get “Inicio” and “Avental Sexy” from the divclass “breadcrumb clearfix”
posixpascal has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
<porfa> i want to get the breacrumb name after “inicio” the one which reads “BRINCADEIRAS”
theotherstupidgu has joined #ruby
posixpascal has quit [Client Quit]
_maes_ has joined #ruby
dopie has quit [Remote host closed the connection]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ankhers has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
theotherstupidgu has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
webguynow has joined #ruby
ta_ has joined #ruby
ponga has joined #ruby
codeurge has joined #ruby
psy_ has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
<mozzarella> uh, where's the breadcrumb?
Takle has quit [Ping timeout: 256 seconds]
<mozzarella> I just see " Home SEXY APRON "
agrinb has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
theotherstupidgu has joined #ruby
dfinninger has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x77686d has joined #ruby
<porfa> wait, its translated, let me pt the shop in english here
arup_r has quit []
<porfa> mozzarella: can you go to language in the top and change to PT, in ENglish it doesnt have breadcrumbs! :o
agrinb has quit [Ping timeout: 265 seconds]
<porfa> they probably dont have all the products translated so thats why it’s no showing
<porfa> (in english there’s no breadcrumbs here too!)
thumpba has joined #ruby
tyfighter has quit [Quit: tyfighter]
<mozzarella> well, I get " Início AVENTAL SEXY "
<mozzarella> no sign of "BRINCADEIRAS" except in the menu
beef-wellington has joined #ruby
<porfa> Início > BRINCADEIRAS>AVENTAIS>AVENTAL SEXY
oleo has quit [Quit: Verlassend]
<mozzarella> no, only if I get there using the menu
<jidar> what's the deal with calling external applications that seems to break all over the place with ruby?
acangiano has quit [Quit: Nettalk6 - www.ntalk.de]
<jidar> it looks like anything to do with Vagrant that another application calling it just breaks
<porfa> where can i host a screenshot?
<gr33n7007h> porfa, imgur.com
beef-wellington has quit [Ping timeout: 272 seconds]
<porfa> http://imgur.com/1JUv5p7 can you see the breadcrumbs now? why don’t they appear there? :(
Ludicrou_ has joined #ruby
<porfa> div class="breadcrumb clearfix"
<porfa> i can’t seem to fetch the breadcrumbs names.. i guess i dont understand how breadcrumbs work
<mozzarella> porfa: because it follows your browsing "history", click on "inicio" and click on your own link, you'll see that the breadcrumb will change
<mozzarella> hence why you can't get it when fetching it with ruby
<porfa> hmmm i understand now… so, any methods to get the “Brincadeiras” text? the “aventais” text i can get because it’s in the top of the left column categories… but it’s a subcategory.. now.. the “brincadeiras” category is going to be a challenge uh?
enterprisedc has quit [Quit: enterprisedc]
<porfa> i input the product url into the script, it gets me the prod name, the subcategory from the top left menu text, but.. the MAIN category i have no idea how i can get it
LudicrousMango has quit [Ping timeout: 276 seconds]
abuzze has quit [Remote host closed the connection]
<porfa> i’ll do it manually! i dont’ care! :)
<porfa> but thanks for the lil info on how breadcrumbs work mozzarella !! :)
echevemaster has quit [Remote host closed the connection]
abuzze has joined #ruby
Megtastique has quit []
codeurge has joined #ruby
theotherstupidgu has quit [Ping timeout: 272 seconds]
abuzze_ has joined #ruby
Pharaoh2 has joined #ruby
{xenomorph} is now known as xenomorph
TinkerTyper has quit [Ping timeout: 255 seconds]
theotherstupidgu has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
sent1nel has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 245 seconds]
standingcloud has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
raphaelss has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
fandi has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
sent1nel has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
raphaelss has joined #ruby
jerematic has joined #ruby
ElderFain has left #ruby ["Textual IRC Client: www.textualapp.com"]
josephndenton has joined #ruby
sent1nel has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 276 seconds]
agrinb has joined #ruby
jerematic has quit [Ping timeout: 265 seconds]
josephndenton has quit [Ping timeout: 244 seconds]
crdpink2 has joined #ruby
<porfa> what methid should i use to remove EVERYTHING after a patern (incluiding the patern) from a string?
crdpink has quit [Ping timeout: 272 seconds]
zzzbra has joined #ruby
<mozzarella> str.split(/pattern/)[0]
jonatin has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
tunaCanBruh has joined #ruby
apeiros has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
elabs-developer has joined #ruby
apeiros_ has joined #ruby
<jhass> string[/(.+?)#{pattern}/, 1]
AlexRussia has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
apeiros_ has quit [Ping timeout: 240 seconds]
tunaCanBruh has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
thumpba has quit [Remote host closed the connection]
Aova has joined #ruby
Deele has joined #ruby
thumpba has joined #ruby
athan has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
fandi has joined #ruby
OrbitalKitten has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
lampd1 has quit []
<porfa> i am being unable to delete what i want after text
posixpascal has joined #ruby
<porfa> hmmm i can do puts des1[0..-3] but i am afraid that if someproducts dnt have that patern, it will delete stuff i dont want to.
krz has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dspangenberg has joined #ruby
ptrrr has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
Cache_Money has quit [Quit: Cache_Money]
tagrudev has joined #ruby
fandi has quit [Ping timeout: 245 seconds]
hvxgr has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
dspangenberg has quit [Ping timeout: 256 seconds]
pdoherty has joined #ruby
arup_r has joined #ruby
fabrice31 has joined #ruby
speaking1ode has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 276 seconds]
speakingcode has quit [Ping timeout: 272 seconds]
pdoherty has quit [Ping timeout: 246 seconds]
zachrab has quit [Remote host closed the connection]
GarbagePailKid has joined #ruby
zachrab has joined #ruby
juanpablo__ has joined #ruby
zzzbra has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Ping timeout: 276 seconds]
elaptics`away is now known as elaptics
zachrab has quit [Ping timeout: 255 seconds]
juanpablo__ has quit [Ping timeout: 276 seconds]
theotherstupidgu has quit [Ping timeout: 256 seconds]
towski_ has quit [Remote host closed the connection]
dopie has joined #ruby
theotherstupidgu has joined #ruby
beef-wellington has joined #ruby
lolmaus has joined #ruby
skinux has quit [Quit: skinux]
aswen has joined #ruby
apeiros_ has joined #ruby
elaptics is now known as elaptics`away
certaint1 is now known as certainty
Spami has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has joined #ruby
beef-wellington has quit [Ping timeout: 246 seconds]
uptownhr has quit [Quit: uptownhr]
theotherstupidgu has quit [Remote host closed the connection]
tobago has joined #ruby
theotherstupidgu has joined #ruby
psy_ has quit [Quit: Leaving]
codecop has joined #ruby
krz has quit [Ping timeout: 245 seconds]
rcoulman has quit [Quit: rcoulman]
jack_rabbit has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fandi has joined #ruby
Stoge88 has joined #ruby
ta_ has joined #ruby
theotherstupidgu has quit [Ping timeout: 246 seconds]
lioninawhat has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
theotherstupidgu has joined #ruby
ptrrr has quit [Quit: ptrrr]
jonatin has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has quit [Ping timeout: 276 seconds]
hvxgr has joined #ruby
lioninawhat has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
yfeldblum has quit [Remote host closed the connection]
terlar has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
agrinb has joined #ruby
x77686d has quit [Quit: x77686d]
Takle has quit [Ping timeout: 246 seconds]
mrmargolis has joined #ruby
sent1nel has joined #ruby
Soliah has quit [Quit: Soliah]
longfeet has quit [Ping timeout: 264 seconds]
Aova has quit [Read error: Connection reset by peer]
tyfighter has joined #ruby
theotherstupidgu has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Ping timeout: 245 seconds]
sent1nel has quit [Ping timeout: 265 seconds]
Aova has joined #ruby
tyfighter has quit [Ping timeout: 276 seconds]
dspangenberg has joined #ruby
tunaCanBruh has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
kyb3r_ has quit [Ping timeout: 255 seconds]
kyb3r_ has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
dspangenberg has quit [Ping timeout: 240 seconds]
noop has joined #ruby
theotherstupidgu has joined #ruby
chrishough has joined #ruby
Morkel has quit [Quit: Morkel]
thumpba has quit [Remote host closed the connection]
Joufflu has quit [Quit: Peace]
j0n3 has quit [Read error: Connection reset by peer]
Ankhers has joined #ruby
roolo has joined #ruby
sigurding has joined #ruby
LouisRoR has joined #ruby
jefus has quit [Ping timeout: 246 seconds]
Luyt_ has joined #ruby
ta_ has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 264 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
anarang has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
seal has joined #ruby
lele` is now known as lele
Pharaoh2 has joined #ruby
michael_mbp has quit [Excess Flood]
jack_rabbit has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
fabrice31 has joined #ruby
theotherstupidgu has quit [Ping timeout: 240 seconds]
porfa has quit [Quit: porfa]
theotherstupidgu has joined #ruby
zzzbra has joined #ruby
sigurding has quit [Quit: sigurding]
tokik has quit [Ping timeout: 272 seconds]
johnhamelink has quit [Ping timeout: 245 seconds]
lidaaa has quit [Ping timeout: 244 seconds]
siso has joined #ruby
tyfighter has joined #ruby
johnhamelink has joined #ruby
jefus has joined #ruby
zzzbra has quit [Ping timeout: 245 seconds]
thomas has quit [Quit: reconnecting]
Sakens has quit [Ping timeout: 264 seconds]
thomas has joined #ruby
BurningChrome_ has quit [Ping timeout: 276 seconds]
sigurding has joined #ruby
Parker0 has quit [Ping timeout: 245 seconds]
cstrahan_ has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 265 seconds]
lioninawhat has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
cstrahan_ has joined #ruby
jottr has joined #ruby
li0ninawhat has joined #ruby
ellisTAA has joined #ruby
godd2 has quit [Ping timeout: 264 seconds]
mjmac_ has quit [Ping timeout: 245 seconds]
theother1tupidgu has joined #ruby
theotherstupidgu has quit [Read error: Connection reset by peer]
<ellisTAA> what is the typical week like for a web developer / app developer? i’m learning ruby and then RoR, and was wondering what a job in this field would be like.
vdamewood has joined #ruby
lioninaw_ has joined #ruby
krz has joined #ruby
amclain has quit [Ping timeout: 245 seconds]
aganov has joined #ruby
lioninawhat has quit [Ping timeout: 265 seconds]
mjmac has joined #ruby
lioninawhat has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
li0ninawhat has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
posixpascal has joined #ruby
li0ninawhat has joined #ruby
gizmore has joined #ruby
sigurding has quit [Quit: sigurding]
lioninaw_ has quit [Ping timeout: 265 seconds]
<sevenseacat> 9-5 sitting in front of a computer working.
lioninaw_ has joined #ruby
<weaksauce> same thing you are doing now but you get paid for it and if you mess it up too many times or are too slow you get fired.
lioninawhat has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
josephndenton has joined #ruby
<sevenseacat> pretty much.
lioninawhat has joined #ruby
Xeago has joined #ruby
<sevenseacat> oh, and an hour for lunch.
<sevenseacat> woo.
theother1tupidgu has quit [Ping timeout: 245 seconds]
<quazimodo> hullo
agrinb has joined #ruby
<weaksauce> and free coffee usually
<quazimodo> hi sevenseacat
theotherstupidgu has joined #ruby
<sevenseacat> really good if you drink coffee *doesnt*
li0ninawhat has quit [Ping timeout: 272 seconds]
<sevenseacat> quazimodo: afternoon.
li0ninawhat has joined #ruby
<quazimodo> sevenseacat: i need a job :(
<sevenseacat> go get one.
<quazimodo> i'm interviewing/applying :)
<quazimodo> just... need to land the damn fish
bal has joined #ruby
oo_ has quit [Remote host closed the connection]
lioninaw_ has quit [Ping timeout: 272 seconds]
<sevenseacat> keep working at it
ta_ has joined #ruby
lioninaw_ has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
lioninawhat has quit [Ping timeout: 265 seconds]
Jackneill has joined #ruby
lioninawhat has joined #ruby
oo_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
kenneth has joined #ruby
li0ninawhat has quit [Ping timeout: 265 seconds]
li0ninawhat has joined #ruby
psy_ has joined #ruby
<Crazy_Atheist> anyone got an idea where some sort of ruby dev would be in cygwins packages?
Aova has quit [Read error: Connection reset by peer]
lioninaw_ has quit [Ping timeout: 265 seconds]
SixiS has joined #ruby
lioninaw_ has joined #ruby
lioninawhat has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 265 seconds]
lioninawhat has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 264 seconds]
li0ninawhat has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
dawkirst has joined #ruby
li0ninawhat has joined #ruby
Aova has joined #ruby
lioninaw_ has quit [Ping timeout: 265 seconds]
lioninaw_ has joined #ruby
danman has quit [Quit: danman]
tyfighter has quit [Ping timeout: 245 seconds]
Takle_ has joined #ruby
livathinos has joined #ruby
theotherstupidgu has quit [Ping timeout: 276 seconds]
Takle has quit [Read error: Connection reset by peer]
lioninawhat has quit [Ping timeout: 265 seconds]
lioninawhat has joined #ruby
li0ninawhat has quit [Ping timeout: 265 seconds]
theotherstupidgu has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
dspangenberg has joined #ruby
arup_r has quit [Remote host closed the connection]
li0ninawhat has joined #ruby
jusmyth has quit [Quit: Leaving.]
lioninaw_ has quit [Ping timeout: 265 seconds]
dawkirst has quit [Quit: Leaving...]
lioninaw_ has joined #ruby
lioninawhat has quit [Ping timeout: 272 seconds]
hs366 has joined #ruby
lioninawhat has joined #ruby
ixti has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
LouisRoR has quit [Ping timeout: 255 seconds]
theotherstupidgu has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
ponga has joined #ruby
dspangenberg has quit [Ping timeout: 264 seconds]
li0ninawhat has quit [Ping timeout: 272 seconds]
nuck has quit [Quit: Computer has gone to sleep.]
lioninaw_ has quit [Ping timeout: 265 seconds]
shredding has joined #ruby
jusmyth has joined #ruby
neoxquick has joined #ruby
kalusn has joined #ruby
lioninawhat has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
sent1nel has joined #ruby
<avril14th> morning
<gizmore> good morning :)
juanpablo__ has joined #ruby
Takle_ has quit [Remote host closed the connection]
dmolina has joined #ruby
nii236|irssi has quit [Quit: leaving]
tokik has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
theotherstupidgu has quit [Ping timeout: 244 seconds]
juanpablo__ has quit [Ping timeout: 244 seconds]
rdark has joined #ruby
cichol has joined #ruby
theotherstupidgu has joined #ruby
pdoherty has joined #ruby
beef-wellington has joined #ruby
kamilc__ has joined #ruby
jack_rabbit has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
zerolith has joined #ruby
bjornar has quit [Ping timeout: 264 seconds]
<agent_white> >> 3.times do; print "o"; end
<eval-in_> agent_white => ooo3 (https://eval.in/270719)
beef-wellington has quit [Ping timeout: 255 seconds]
<agent_white> >> 3.times do; puts "o"; end
<eval-in_> agent_white => o ... (https://eval.in/270720)
ixti has joined #ruby
krasnus has joined #ruby
CustosL1men has joined #ruby
tyfighter has joined #ruby
tesuji has joined #ruby
dmolina has quit [Quit: Leaving.]
ixti has quit [Client Quit]
arup_r has joined #ruby
djbkd has joined #ruby
<sevenseacat> seems legit
sigurding has quit [Quit: sigurding]
theotherstupidgu has quit [Ping timeout: 245 seconds]
Stoge88 has joined #ruby
dmolina has joined #ruby
theotherstupidgu has joined #ruby
sigurding has joined #ruby
neoxquick has quit [Ping timeout: 245 seconds]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
yfeldblum has joined #ruby
jack_rabbit has quit [Ping timeout: 245 seconds]
Luyt_ has quit [Ping timeout: 264 seconds]
wm3|away has quit [Ping timeout: 245 seconds]
Luyt_ has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
einarj has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
arup_r_ has joined #ruby
yfeldblu_ has joined #ruby
LouisRoR has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmolina has quit [Quit: Leaving.]
mrmargolis has joined #ruby
roolo has joined #ruby
<ellisTAA> thanks for sharing
ellisTAA has left #ruby [#ruby]
bjornar has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
tokik has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
jack_rabbit has joined #ruby
sigurding has quit [Quit: sigurding]
lessless has joined #ruby
nii236 has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Ping timeout: 245 seconds]
chthon has joined #ruby
oo_ has quit [Remote host closed the connection]
jerematic has joined #ruby
nuck has joined #ruby
oo_ has joined #ruby
luriv has joined #ruby
xrlabs has quit [Quit: Verlassend]
tunaCanBruh has joined #ruby
theotherstupidgu has quit [Ping timeout: 256 seconds]
jerematic has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
kenneth has joined #ruby
sigurding has joined #ruby
Aova has quit [Read error: Connection reset by peer]
kenneth has quit [Client Quit]
theotherstupidgu has joined #ruby
josephcs has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
ki0 has joined #ruby
razieliyo has joined #ruby
reinaldob has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 256 seconds]
razieliyo has quit [Changing host]
razieliyo has joined #ruby
ki0_ has joined #ruby
ki0 has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
mclee_ has quit [Ping timeout: 246 seconds]
Aova has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
nuck has joined #ruby
Ankhers has joined #ruby
chrishou_ has joined #ruby
zwer_l has joined #ruby
n008f4g_ has joined #ruby
terlar has quit [Ping timeout: 246 seconds]
chrishou_ has quit [Client Quit]
d10n-work has quit [Quit: Connection closed for inactivity]
tyfighter has quit [Ping timeout: 256 seconds]
AFKGeek has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
zwer has quit [Ping timeout: 250 seconds]
nisstyre has quit [Ping timeout: 272 seconds]
dspangenberg has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
dc_ has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
nisstyre has joined #ruby
elaptics`away is now known as elaptics
oo_ has quit [Remote host closed the connection]
uber has joined #ruby
kenneth has joined #ruby
theotherstupidgu has joined #ruby
oo_ has joined #ruby
<mikecmpbll> how would I define a class and use a variable from outside the class, for instance:
dspangenberg has quit [Ping timeout: 240 seconds]
<mikecmpbll> foo = "bar"; MyClass = Class.new { attr_accessor foo }
kenneth has quit [Client Quit]
<apeiros_> that would work
<mikecmpbll> oah
<apeiros_> >> foo = "bar"; MyClass = Class.new { attr_accessor foo }; MyClass.new.bar
<eval-in_> apeiros_ => nil (https://eval.in/270781)
avahey has quit [Quit: Connection closed for inactivity]
<apeiros_> with literals, symbols are to be preferred as identifiers.
tkuchiki has quit [Ping timeout: 244 seconds]
<mikecmpbll> hm.
<mikecmpbll> what about: foo = "bar"; MyClass = Class.new { def test; puts foo; end }
<mikecmpbll> and i want to puts the value of the attr_accessor that i just defined
<apeiros_> that would not work. you could use define_method. but seriously, this looks like a bad idea.
Zai00 has joined #ruby
<mikecmpbll> :D
<apeiros_> >> foo = "bar"; MyClass = Class.new { define_method(foo) do foo end }; MyClass.new.bar
<eval-in_> apeiros_ => "bar" (https://eval.in/270783)
hmsimha has quit [Ping timeout: 252 seconds]
kamilc__ has joined #ruby
agent_white is now known as agent_imposter
whoojemaflip has quit []
agent_imposter is now known as agent_white
whoojemaflip has joined #ruby
<mikecmpbll> i have a class which i would otherwise have to create multiple of, all identical bar some of the method names and instance vars
<mikecmpbll> just trying to figure out the best way to keep this dry.
sevenseacat has quit [Remote host closed the connection]
keen__________48 has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
keen__________47 has quit [Ping timeout: 256 seconds]
matled has joined #ruby
<apeiros_> DRY is not always a good leading principle. especially when it's about code duplication.
wallerdev has quit [Quit: wallerdev]
Grumelo has joined #ruby
jimms has joined #ruby
ta_ has joined #ruby
reinaldob has joined #ruby
jottr has joined #ruby
hgl has quit [Ping timeout: 256 seconds]
<mikecmpbll> that seems like an oxymoron, but mmkay
<zenspider> mikecmpbll: please go look up the real definition of DRY. it has little-to-nothing to do with code duplication
<mikecmpbll> don't prevent duplication, especially when it's about duplication.
<mikecmpbll> waat.
BurningChrome has joined #ruby
<zenspider> The DRY principle is stated as “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.”
<mikecmpbll> "don’t repeat yourself (DRY) is a principle of software development, aimed at reducing repetition of information of all kinds"
hgl has joined #ruby
seal has quit [Quit: Ex-Chat]
oo_ has quit [Remote host closed the connection]
<mikecmpbll> "Additionally, elements that are logically related all change predictably and uniformly, and are thus kept in sync."
oo_ has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<mikecmpbll> "DRY code is created by data transformation and code generators, which allows the software developer to avoid copy and paste operations."
<ddv> zenspider: It has a lot to do with code duplication
<mikecmpbll> we've all got quotes, mate.
<zenspider> no, it really doesn't... but have fun with that. I'm not here to argue. just help prevent unnecessary complexity.
<ddv> zenspider: explain to us why it has nothing to do with code duplication
<mikecmpbll> i think you probably think it's unnecessary because you don't understand what the situation is, which i'm not surprised by, it hasn't been explained in much depth
tyfighter has joined #ruby
<mikecmpbll> my initial approach, i'm certain, was ludicrous, but I'm looking for the right one and i don't believe that having 10 classes that are exactly the same bar one keyword in various places throughout the class.
<mikecmpbll> is the way to go *
<apeiros_> code duplication is/was one of the symptoms of not being dry. but people started to apply it to the symptom and thought "be DRY" meant "don't duplicate code" instead of understanding that less code duplication was a result of being dry.
<apeiros_> if it was all about code duplication - run your code through a compression algorithm
<mikecmpbll> i don't disagree.
jenrzzz has joined #ruby
josephndenton has joined #ruby
asmodlol has joined #ruby
cichol has quit [Remote host closed the connection]
<bzeu> What is an instance variable?
<zenspider> it is a variable that belongs to an object (instance). They start with "@".
<tobiasvl> bzeu: a variable belonging to an instance/object
<bzeu> Yes but what does that mean?
quimrstorres has joined #ruby
DEA7TH has joined #ruby
<tobiasvl> what does it *mean*… do you know what an object is?
<mikecmpbll> not sure how it can be broken down much more than that..
<tobiasvl> maybe read an intro ruby book?
<zenspider> bzeu: what does anything mean, really?
<bzeu> I know what an object is
<tobiasvl> and you know what a variable is?
<zenspider> might as well just eat cheetos
fandi has quit [Remote host closed the connection]
<mikecmpbll> :D
<ddv> he doesn't know what an instance is
josephndenton has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
<tobiasvl> bzeu: it's a variable that's local to an instance. it belongs to the instance. it's specific and unique to the instance.
<tobiasvl> bzeu: its scope is the instance.
quazimodo has quit [Ping timeout: 244 seconds]
wm3|away has joined #ruby
oo_ has quit [Remote host closed the connection]
<bzeu> ddv: I do
<zenspider> then you're going to have to get better at asking questions
<ddv> you don't know what a variable is, bzeu?
quimrstorres has joined #ruby
<bzeu> ddv: My programming experience are more than your age, so don't go there. This is just different from what I know
<ddv> ....
theotherstupidgu has quit [Ping timeout: 272 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> bzeu: aaaand maybe... just maybe you won't be an egotistical cock while you try to formulate an actual good question
<tobiasvl> bzeu: ok, so what do you want to know about instance variables? what's the problem here?
timonv has joined #ruby
<tobiasvl> where does your understanding stop
<mikecmpbll> !troll
<helpa> TROLL DETECTED!
<ddv> bzeu: /ignore
<tobiasvl> bzeu: if you've programmed for decades I'm guessing you're new to object oriented programming
<wm3|away> it must be friday... time for the weekly feeding of the trolls!
<bzeu> tobiasvl: So I was looking at some code and an instance variable was inside a method.
wm3|away is now known as workmad3
<bzeu> As you said @local_variable
joonty has joined #ruby
<tobiasvl> bzeu: sure. methods belong to instances too, so that's not very weird.
<bzeu> Yes. But shouldn't they be declared first in the class?
<workmad3> bzeu: no
<apeiros_> you lot are quick with the troll card
<bzeu> Or are there other variables for the class-scope?
<workmad3> bzeu: at least, not in ruby :)
<zenspider> and cock card... but I think that one was justified in this case. :P
<tobiasvl> bzeu: no, they don't need to be declared in the class definition first. @ means that its scope is the instance.
<bzeu> tobiasvl: Oh I see.
<ddv> apeiros_: you should ban that guy for being a dick to people who are trying to help him
<workmad3> bzeu: in fact, using '@some_variable' in ruby at the class level has a very different meaning
<zenspider> workmad3: not different at all
<zenspider> classes are instances too
<workmad3> bzeu: or rather, it has exactly the same meaning, but it's treating the class as the instance, not an instance of the class
<workmad3> zenspider: I was getting there
<workmad3> zenspider: but yes, I should have said 'using @some_var in ruby at the class level has a very different meaning to declaring instance variables for instances of the class'
<apeiros_> ddv: I haven't seen them being a dick. mind quoting one occasion?
<ddv> lol I feel like a child
<ddv> anyways
<ddv> apeiros_: <bzeu>ddv: My programming experience are more than your age, so don't go there. This is just different from what I know
<mikecmpbll> haha
<apeiros_> I see, missed that one
<mikecmpbll> i might use that one down the pub.
<mikecmpbll> if someone spills my drink.
<bzeu> self.var is also an instance variable?
<bzeu> ddv: If you want to play smart next time, find the right person.
<apeiros_> bzeu: please mind your behavior.
Morkel has joined #ruby
<bzeu> apeiros_: Maybe he should not open his mouth and talk s hit then and I will.
dawkirst has joined #ruby
<tobiasvl> come on guys. kiss and make up now and let's talk ruby instead of shit
<mikecmpbll> let's settle this with a codejam.
theotherstupidgu has joined #ruby
<bzeu> ddv: I hope you ask a question in ##c++ or ##c soon :)
<apeiros_> bzeu: pointing at other's behavior to justify your own misbehavior is childish and doesn't matter to me. so just don't.
<mikecmpbll> so you can pair?
<zenspider> apeiros_ I say he goes.
<ddv> bzeu: u mad bro? :)
<zenspider> douchebaggery shouldn't be tolerated here
<apeiros_> good thing xml imports take ages. *backlog consultation*
<bzeu> ddv: Why should I be mad?
<tobiasvl> I say they both go at this point… I'm trying to help here but it's hard when they insist on fighting
marcdel_ has quit []
<tobiasvl> I'll go eat lunch instead
<zenspider> ddv: stop poking the bear
<mikecmpbll> let's play a game, who can write my factory class the fastest.
<apeiros_> ok. ddv & bzeu: full stop here or shortban.
<zenspider> mikecmpbll: haha
<zenspider> mikecmpbll: Class.new BOOM
<mikecmpbll> :D
<ddv> apeiros_: this is pretty funny to be honest
<zenspider> apeiros_: thanks
<apeiros_> btw., anybody interested in reviving #ruby-pro?
<apeiros_> because I am, but I'm not going to do it alone.
<zenspider> do you get paid for being in there? :D
<apeiros_> o0
<apeiros_> no
<mikecmpbll> lol
<apeiros_> that would be an interesting concept, though.
<zenspider> so... pro is not short for professional... programming? :P
<ddv> but then bzeu cannot join....
theotherstupidgu has quit [Ping timeout: 246 seconds]
Aova has quit [Read error: Connection reset by peer]
<zenspider> ddv: dumbass
ddv was kicked from #ruby by apeiros_ [I told you to drop it]
<mikecmpbll> that was coming.
ddv has joined #ruby
withnale_ has joined #ruby
theotherstupidgu has joined #ruby
<ddv> :)
marr has joined #ruby
rodfersou has joined #ruby
lioninawhat has joined #ruby
dmoe has quit []
colli5ion has joined #ruby
Aova has joined #ruby
leafybasil has joined #ruby
ki0_ has quit []
dmoe has joined #ruby
<bzeu> apeiros_: I thought you said to stop? :)
asmodlol has quit [Ping timeout: 276 seconds]
<apeiros_> bzeu: yes, hence 11:20 apeiros_ has kicked ddv (I told you to drop it)
theotherstupidgu has quit [Ping timeout: 272 seconds]
theotherstupidgu has joined #ruby
asmodlol has joined #ruby
<ddv> You don't have to PM me, bzeu. I'm still here....
<ddv> [11:27:46] <bzeu>Hahahah goodbye :)
lioninawhat has quit [Ping timeout: 272 seconds]
gigetoo has quit [Ping timeout: 276 seconds]
<bzeu> What?
<tobiasvl> you guys
<bzeu> I didn't pm you
<zenspider> fucking hell... would you two kids grow the fuck up?
<mikecmpbll> [10:11:24] <ddv>lol I feel like a child
sent1nel has joined #ruby
<zenspider> relevant, yes :P
<ddv> zenspider: language....
<zenspider> English, mostly
<zenspider> then ruby
<ddv> apeiros_: ^
jack_rabbit has quit [Ping timeout: 264 seconds]
juanpablo__ has joined #ruby
bayed has joined #ruby
wottam has joined #ruby
abuzze_ has quit [Ping timeout: 272 seconds]
olleromo___ has quit []
dspangenberg has joined #ruby
olleromo___ has joined #ruby
<apeiros_> *sob* I don't police PM's and you're both aduls. use /ignore.
tyfighter has quit [Ping timeout: 245 seconds]
sent1nel has quit [Ping timeout: 272 seconds]
<ddv> apeiros_: zenspider was using foul language
ki0 has joined #ruby
<bzeu> How are global variables in Ruby? Are the considered evil as in C++?
<mikecmpbll> you can use whatever fucking language you like!
patronus_ has quit [Read error: Connection reset by peer]
juanpablo__ has quit [Ping timeout: 244 seconds]
ddv was banned on #ruby by apeiros_ [ddv!*@*]
bzeu was banned on #ruby by apeiros_ [ddv!*@*]
bzeu was kicked from #ruby by apeiros_ [ok, I've had it]
ddv was kicked from #ruby by apeiros_ [ok, I've had it]
<apeiros_> clarification: swearing is ok. swearing at people isn't.
ki0 has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
<zenspider> agent_white: haha. terribly apropros
dspangenberg has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bzeu_ has joined #ruby
theotherstupidgu has quit [Ping timeout: 265 seconds]
<workmad3> apeiros_: the more eloquent form is '"Fuck that" is ok, "Fuck you" isn't' right? :)
abuzze has joined #ruby
<agent_white> ;D
<zenspider> here's to hoping they migrate to #ruby-lang
<bzeu_> apeiros_: You kicked me for what reason?
<apeiros_> workmad3: about that
<zenspider> dense, this one is...
beef-wellington has joined #ruby
aagdbl has joined #ruby
thumpba has joined #ruby
bzeu_ was banned on #ruby by apeiros_ [*!*@*213.113.165.169]
bzeu_ was kicked from #ruby by apeiros_ [kicked before]
duncannz has quit [Ping timeout: 240 seconds]
frankS2 has quit []
patronus has joined #ruby
LiquidInsect has quit [Ping timeout: 276 seconds]
<workmad3> apeiros_: ok... so that's the rules for foul language clarified... how about the rules for fowl language?
<mikecmpbll> cluck
theotherstupidgu has joined #ruby
<mikecmpbll> you
<workmad3> :D
frankS2 has joined #ruby
* workmad3 is now wasting time while trying to get focussed enough to do something useful
LiquidInsect has joined #ruby
shime has joined #ruby
<agent_white> Teehee 'fowl language'... like fowl like ducks... ducktyping...
<zenspider> bok bok is the standard greeting in #chicken :P
* agent_white coughs and shuffles towards the door
<zenspider> they're kinda crazy tho
<zenspider> so many chicken puns
<workmad3> zenspider: I'd try to make one now... but I can't think of any :( guess I need to spend some time in #chicken
<zenspider> a little lisp is good for everyone
<zenspider> I'm partial to racket now... but chicken is good
tkuchiki has joined #ruby
joonty has quit [Quit: joonty]
beef-wellington has quit [Ping timeout: 255 seconds]
thumpba has quit [Ping timeout: 245 seconds]
ych_ has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
kyote has quit []
kyote has joined #ruby
greengriminal has joined #ruby
* agent_white hands apeiros a beer
joonty has joined #ruby
<workmad3> apeiros_: aww, there's no one in
<workmad3> #ruby-fix-your-connection atm
<certainty> no drink and ban
<apeiros_> workmad3: ##
<workmad3> bah, who put that return key there? :(
<agent_white> certainty: Unless drink, ban?
<workmad3> apeiros_: still empty :P
<certainty> agent_white: TrueClass
<apeiros_> workmad3: good thing :)
<agent_white> \o/
openscript has joined #ruby
<certainty> bah
* apeiros_ afk
* certainty puts another return in workmad3's way
ldnunes has joined #ruby
<workmad3> certainty: that's it, I'm off (to find coffee and attempt work) :P
<certainty> :p
<arup_r_> :)
<zenspider> bedtime for me as soon as cosmos is done
dimaursu16 has quit [Ping timeout: 264 seconds]
mjc_ has quit []
gccostabr has quit [Quit: See you later!]
pdoherty has joined #ruby
mjc_ has joined #ruby
arup_r_ has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 265 seconds]
shime has quit [Ping timeout: 246 seconds]
pdoherty has quit [Ping timeout: 244 seconds]
dimaursu16 has joined #ruby
Mia has joined #ruby
sigurding has quit [Quit: sigurding]
agrinb has joined #ruby
spider-mario has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<greengriminal> hey, all so i have somewhat of a weird task. I have some JSON that I'd like to convert to coffeescript and then write it to a file. is this possible?
mrmargolis has joined #ruby
<greengriminal> fyi the json is generated using ruby.
<zenspider> why not write it as JSON?
<zenspider> it is a nice intermediate data language
<zenspider> I'm not sure what you mean by convert to coffeescript
<greengriminal> zenspider, well the thing is i would if i could. But the purpose of my task is to generate some json that is written to a coffeescript file which is then used in an an angularjs app.
<zenspider> you might want https://github.com/bevry/cson
ypasmk has joined #ruby
arup_r has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<zenspider> but coffeescript IS just javascript... and so is JSON, hence my question
agrinb has quit [Ping timeout: 272 seconds]
chthon has quit [Quit: Ex-Chat]
<zenspider> json2cson filePath > out.cson
chthon has joined #ruby
<greengriminal> zenspider, that's cool
<zenspider> also relevant: "Just to clarify, almost all JSON or JavaScript object/array literals will work just fine when copy+pasted into CoffeeScript"
<zenspider> aaand cosmos is over. bedtime
mrmargolis has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
<greengriminal> but the thing is i need my rake task to convert the json to cson once it finishes generating.
tkuchiki has joined #ruby
Takle has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
<greengriminal> but thanks anyways
tyfighter has joined #ruby
dawkirst has quit [Quit: Leaving...]
<greengriminal> also that is a node package
tkuchiki has quit [Remote host closed the connection]
dimaursu16 has quit [Ping timeout: 264 seconds]
mambo has joined #ruby
yellowgh0st has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
ta_ has joined #ruby
tunaCanBruh has joined #ruby
drawingthesun has joined #ruby
drawingthesun has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
tunaCanBruh has quit [Ping timeout: 276 seconds]
openscript has quit [Remote host closed the connection]
Ankhers has joined #ruby
roshanavand has joined #ruby
thesheff17 has quit []
greengriminal has left #ruby ["Leaving"]
thesheff17 has joined #ruby
gemmy has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Ankhers has quit [Ping timeout: 250 seconds]
mclee_ has joined #ruby
shevy has quit [Ping timeout: 276 seconds]
quimrsto_ has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aova has joined #ruby
_KaszpiR__ has joined #ruby
_KaszpiR_ has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Ping timeout: 244 seconds]
abuzze has quit [Remote host closed the connection]
<apeiros_> n8 zenspider
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quimrsto_ has quit [Remote host closed the connection]
yellowgh0st has quit [Quit: yellowgh0st]
abuzze has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
joonty has quit [Quit: joonty]
ypasmk has quit [Quit: ypasmk]
joonty has joined #ruby
ajaiswal has quit [Read error: Connection reset by peer]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has joined #ruby
hanmac1 has joined #ruby
tyfighter has quit [Ping timeout: 240 seconds]
<hanmac1> (join #boost
abuzze has quit [Ping timeout: 245 seconds]
<jhass> hanmac1: noooo
dimaursu16 has joined #ruby
tvw has joined #ruby
aapole has joined #ruby
<hanmac1> jhass: i got the task to write something like http://de.wikipedia.org/wiki/Link_Aggregation ourselves ... are you want to do that without the help of boost or similar?
jottr has joined #ruby
FooMunki has joined #ruby
<jhass> sure
mambo has quit []
<jhass> let's use crystal
<hanmac1> ;P
<jhass> (j/k)
quimrstorres has joined #ruby
<jhass> but isn't boost slow?
<hanmac1> hm i dont know if that would be fast enough thats why i try to use C/C++ ... (its very time critical)
ikeike443 has quit [Quit: Leaving...]
nuck has quit [Quit: Computer has gone to sleep.]
jottr has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
gemmy has quit [Quit: Lost terminal]
asmodlol has quit [Ping timeout: 276 seconds]
antgel has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
GarbagePailKid has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
yfeldblum has joined #ruby
josephndenton has joined #ruby
quazimodo has joined #ruby
terlar has joined #ruby
agrinb has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
hs366 has quit [Quit: Leaving]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Morkel has quit [Quit: Morkel]
yfeldblum has quit [Ping timeout: 255 seconds]
<certainty> why would boost be slow?
hs366 has joined #ruby
<jhass> dunno, probably just some FUD I somewhere heard about it being bloated
daxroc has quit []
daxroc has joined #ruby
ta_ has joined #ruby
LiquidInsect has joined #ruby
josephndenton has quit [Ping timeout: 246 seconds]
jlebrech has joined #ruby
abuzze has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<jlebrech> does anyone know of a DSL to transform an api, say I'm using a terrible api and I want to make a nice api on top of it.
mwlang has joined #ruby
<hanmac1> jhass: problem description: one server with multiple "small" connections, bundle them to get a bigger one, and connect them to a other server with one big connection ... you got what mean so far right?
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlSquire has joined #ruby
Jake232 has joined #ruby
The_Phoenix has joined #ruby
<hanmac1> it seems the other tested implementations are not fast enough so they say write something your own
<mwlang> I’m working on a gem in which I’m providing some rake tasks as part of the gem’s features. I need to wrap these in unit tests. Can anyone point me to a good gem or example of unit testing your rake tasks?
Takle has quit [Remote host closed the connection]
<jhass> hanmac1: yeah. and channel bonding is no option?
<apeiros_> mwlang: if your rake tasks are just MyGem::Rake::TaskName.run then it's easy
<jhass> hanmac1: TCP or IP layer?
Ludicrou_ has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 240 seconds]
LudicrousMango has joined #ruby
<jhass> hanmac1: can you talk about what it's for specifically? Just curios :)
<mwlang> apeiros_: I don’t think I’m following that convention… https://github.com/mwlang/sequel_plus/blob/master/lib/tasks/sequel.rake is what I’m looking to wrap in tests.
<hanmac1> jhass: hm ok i wil do after eating
<hanmac1> but first i need to google "channel bonding"
asmodlol has joined #ruby
<jhass> mwlang: you can just load the rakefile and Rake::Task['name:here'].invoke
maasha has joined #ruby
posixpascal has joined #ruby
<jhass> iirc
jimms has quit [Remote host closed the connection]
antgel has quit [Quit: Lost terminal]
Takle has joined #ruby
LudicrousMango has quit [Ping timeout: 246 seconds]
Akuma has joined #ruby
scripore has joined #ruby
<maasha> My marshal serializer dont work! output is wrong! https://gist.github.com/maasha/5c20e629b91bcb97c2ee
shredding has quit [Quit: shredding]
kyb3r_ has quit [Read error: Connection reset by peer]
yellowgh0st has joined #ruby
Takle has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
<apeiros_> maasha: you should probably open the files as binary
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Ping timeout: 255 seconds]
<apeiros_> I don't spot any other obvious error in the code
<apeiros_> ah, right, and don't use "I" for pack. the native encoding is not portable.
<maasha> apeiros_: I am stuck :o/
<maasha> well, it should produce non-nil output even with "I" for pack template
MaciejCzyzewski has joined #ruby
tyfighter has joined #ruby
<apeiros_> oh, lol
<apeiros_> maasha: def <<(obj); data = Marshal.dump(data)
<apeiros_> spot the error ;-)
<jhass> hehe
aqabiz has joined #ruby
<apeiros_> your arg is `obj`, but you call `Marshal.dump(data)`
jimms has joined #ruby
<maasha> apeiros_: ahahahahaah! you are a genius! or I am stupid
<maasha> maybe both
__chris has joined #ruby
<maasha> thanks, gotit
<apeiros_> the other two points still apply, though ;-)
<jhass> I sometimes wonder if using the local you assign to in the assignment, if it's the first assignment to that local, should syntax error
last_staff has joined #ruby
<apeiros_> there are valid use cases
<apeiros_> x = proc { x.call } # creative infinite loop
<maasha> apeiros_: so what to use instead of "I" ?
shum has joined #ruby
<apeiros_> maasha: one of the two endians explicitly. e.g. N
<jhass> apeiros_: mmh, that code's not run on the assignment though
kapil__ has quit []
<apeiros_> jhass: ah, I see what you mean. might be worth a shot, yes
<maasha> apeiros_: you do know that in your fork code you use "I" !
<apeiros_> maybe ruby -w already picks it up
<maasha> :oD
maximski has joined #ruby
<apeiros_> maasha: yes, but there I don't persist
<apeiros_> i.e. the packed data is guaranteed to be evaluated on the same machine
josephcs has quit [Ping timeout: 246 seconds]
lioninawhat has joined #ruby
kapil__ has joined #ruby
<maasha> apeiros_: ah, sure
bayed has quit []
bayed has joined #ruby
psy_ has quit [Quit: Leaving]
plashchynski has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lioninawhat has quit [Ping timeout: 265 seconds]
sent1nel has joined #ruby
dspangenberg has joined #ruby
enterprisedc has joined #ruby
juanpablo__ has joined #ruby
Takle has joined #ruby
Aova has quit [Read error: Connection reset by peer]
theotherstupidgu has quit [Quit: leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theotherstupidgu has joined #ruby
ozialien has quit [Ping timeout: 255 seconds]
<theotherstupidgu> :q
sent1nel has quit [Ping timeout: 265 seconds]
dspangenberg has quit [Ping timeout: 272 seconds]
juanpablo__ has quit [Ping timeout: 255 seconds]
Takle has quit [Ping timeout: 246 seconds]
Aova has joined #ruby
beef-wellington has joined #ruby
<mwlang> jhass: apeiros_ thanks! Got it working. Now to write tests.
pkrzywicki_ has joined #ruby
dimaursu16 has quit [Ping timeout: 264 seconds]
pkrzywicki has quit [Ping timeout: 265 seconds]
jusmyth has quit [Quit: Leaving.]
ayaz has joined #ruby
zzzbra has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
aapole has quit [Ping timeout: 244 seconds]
nhhagen has joined #ruby
ayaz has quit [Remote host closed the connection]
shazaum has joined #ruby
dimaursu16 has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
n1lo has joined #ruby
JDiPierro has joined #ruby
tyfighter has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby
cpt_yossarian has quit [Ping timeout: 246 seconds]
lukeholder has joined #ruby
agent_white has quit [Quit: night]
ta_ has joined #ruby
lightstalker has quit [Ping timeout: 250 seconds]
<quazimodo> beep boop
mrmargolis has joined #ruby
Ankhers has joined #ruby
jottr has joined #ruby
lukeholder has quit [Max SendQ exceeded]
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukeholder has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
jlebrech has quit [Remote host closed the connection]
noop has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 276 seconds]
lukeholder has quit [Max SendQ exceeded]
Takle has joined #ruby
pdoherty has joined #ruby
DaniG2k has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
MaciejCzyzewski has joined #ruby
mrmargolis has quit [Ping timeout: 264 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
lukeholder has joined #ruby
zerolith is now known as zerolith_zzz
tunaCanBruh has joined #ruby
<DEA7TH> I get it that I can substitute array.map{|el| el.id} with array.map(&:id). But what can I do if I want instead the following: array.map{|el| el.booking.id} ?
lukeholder has quit [Max SendQ exceeded]
pika_pika has joined #ruby
lukeholder has joined #ruby
yellowgh0st has joined #ruby
yellowgh0st has quit [Client Quit]
seal has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
lukeholder has quit [Client Quit]
aqabiz has quit [Quit: aqabiz]
<certainty> DEA7TH: you add #booking_id to the class of el and do .map(&:booking_id) ... at least that's one way
sevenseacat has joined #ruby
<certainty> or you just leave it the way it is
<certainty> anyway
<certainty> gtg
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
last_staff has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 246 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
<DEA7TH> Is there another way? I don't like adding all those extra methods
shredding has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<certainty> DEA7TH: i'm not aware of any other. having el.booking.id can be a smell (it depends). you have 3 collaborators in there
x77686d has joined #ruby
robustus|Off has joined #ruby
<jhass> DEA7TH: is that ActiveRecord?
robustus|Off is now known as robustus
<DEA7TH> jhass: yes
<jhass> DEA7TH: you're sure .booking_id is not already available then? Also you might want #pluck if that's a query
<DEA7TH> certainty: I often have to go through multiple ActiveRecord associations in order to get a value, is that a smell?
spyderman4g63 has joined #ruby
<DEA7TH> sometimes i even go like trip_item.booking.customer.nickname
<DEA7TH> (TripItem has one Booking which has one Customer which has the attribute nickname)
jottr has quit [Ping timeout: 240 seconds]
spyderma_ has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
banister has joined #ruby
openscript has joined #ruby
aclearman037 has joined #ruby
chiel has joined #ruby
<waxjar> DEA7TH: this talk is about why it's bad (sometimes) and what to do about it https://www.youtube.com/watch?v=kXcrClJcfm8
<waxjar> it's pretty good
spyderman4g63 has quit [Ping timeout: 276 seconds]
<DEA7TH> I'll watch this
luriv has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
siso has quit [Quit: siso]
tyfighter has joined #ruby
railsForDaiz has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
<DEA7TH> Another question: I just wrote a 200 lines of code long function for data generation. Does it hurt that it's too long? Its components are independent 20-30-loc chunks, and separated with a comment explaining what each one does. Inner functions are also used.
<DEA7TH> I could split the function into multiple functions, and one which calls them one by one, but they would never be reused.
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> idiomatic ruby is lots of methods that are at most 10 lines long
<wasamasa> at least that's what rubocop tells me
last_staff has joined #ruby
<mwlang> DEA7TH: if you’re going to unit test that, then split into smaller methods so you can write focused unit tests on each chunk.
<DEA7TH> wasamasa: Hm. What if all of them are inner methods of one large method which contains them all? They're not going to be reused anyway.
sent1nel has joined #ruby
<mwlang> DEA7TH: are you writing a throwaway script? i.e. get some major task done and move on or are you writing production code that will have a long shelf life?
scripore has joined #ruby
<wasamasa> DEA7TH: well, my remark was aimed to demonstrate that it's no absolute truth
<wasamasa> DEA7TH: if it's a library, better rethink the design
<wasamasa> DEA7TH: if it's a rake script/test, don't bother
Aova has quit [Read error: Connection reset by peer]
<DEA7TH> mwlang: Mock data generator. I'll probably want to rerun it multiple times.
DaniG2k has quit [Quit: leaving]
<mwlang> when I’m doing the former, I’ll sometimes have long methods as long as there’s not a lot of conditional flow there, but if its production, I break it down to smaller methods and BDD the mess.
brb3 has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DEA7TH> It will also be extended when the project has new data generation needs, e.g. a new table with related functionality. It serves to demo my project without showing real data which I'm not allowed to show.
<mwlang> DEA7TH: something like that doesn’t need to be broken down — I rarely put tests around those sorts of scripts.
jusmyth has joined #ruby
shine_ has joined #ruby
abuzze_ has quit [Remote host closed the connection]
<wasamasa> what I'd check for is whether the code can be shortened by writing it to be more data-driven
<gregf_> DEA7TH: prolly array.map(&:booking).map(&:id)
<wasamasa> so, for instance by putting the data into a hash and using it for dispatch
<gregf_> bah :/ sorry . long back
<DEA7TH> gregf_: yeah, I tried that and it worked, but is too verbose :/
<hanmac1> jhass: back again: the problem is: one Server is multiple internet connections that needs to be connected to another server with one big connection ... there where some stuff used before but it didn't work, so i want to write some stuff my own ... currently i found http://stackoverflow.com/questions/11421678/how-to-make-a-proxy-server-in-c-using-boost
sent1nel has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
Aova has joined #ruby
<jhass> hanmac1: so, is that for a single port, multiple ports or all IP traffic?
<hanmac1> jhass: like PC-A has four IP connections, single port, each of them are connected to one big server, multiport (so each connection of PC-A is connected to one port of PC-B)
atomical has joined #ruby
joonty has quit [Quit: joonty]
<jhass> when I said port I mean TCP port, not ethernet port :
<jhass> )
arya_ching has joined #ruby
ych_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cantonic has quit [Read error: Connection reset by peer]
<hanmac1> jhass: hm yes ... and no ... each of the ethernet ports on PC-A is connected to one TCP-Port on PC-B
ypasmk has joined #ruby
<jhass> uh, that's odd
<arup_r> I want to calculate discount on the money object.. How to do so? https://github.com/RubyMoney/money#usage
<ypasmk> can I dynamically choose the action in an array for example p = ‘any?’ and then [‘value1’,’value2’].p { |v| v == ‘value1’ }
Stoge88 has joined #ruby
jerematic has joined #ruby
<jhass> hanmac1: just a specific port of the address that's on that port or do you then do TCP in IP in TCP?
cantonic has joined #ruby
<arup_r> Spree::Product.find_by_sap_code('0822018188A14005').display_price.money + 2 is giving Nomethod error
<arup_r> Don't know why
<jhass> hanmac1: if I should shut up, just say so, still just curiosity ;)
AlexRussia has joined #ruby
<jhass> ypasmk: yes, use #public_send
<hanmac1> jhass: hm currently i dont know much of myself ... (currently i am try to implement it like a proxy but that does split the data into multiple parts)
paulfm has joined #ruby
Grumelo has quit [Read error: Connection reset by peer]
<jhass> so if your just does some regular socket calls with ports, it's probably just the specific port case
beef-wellington has joined #ruby
kevr_ has joined #ruby
yfeldblum has joined #ruby
juanpablo__ has joined #ruby
__chris has quit [Ping timeout: 245 seconds]
<ypasmk> ruby is awesome
<hanmac1> jhass: i need to see if its fast enough for the customers
josephndenton has joined #ruby
agrinb has joined #ruby
paulfm_ has joined #ruby
<jhass> hanmac1: I sort of wonder if you can't just use an iptables rule to do such a thing. Don't know them too well but I feel like it's just masquerading, for example what your home router calls "port forwarding"
<jhass> if you can, it's in the kernel and won't get faster than that
pontiki has quit [Quit: off to workies!!]
<apeiros_> ypasmk: btw., re your yesterday "inject does not work with || or &&" - yes, it does. but || and && are not methods, so you can't use the abbreviated form.
<hanmac1> jhass: the task is that the four internet connections should work as one ... there might be some other implmentations but i for my self didnt find anything like that
MrSamuel has joined #ruby
danman has joined #ruby
tekku has joined #ruby
chthon has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
juanpablo__ has quit [Ping timeout: 272 seconds]
Olipro_ has joined #ruby
max96at_ has joined #ruby
fantazo has joined #ruby
posixpascal has quit [*.net *.split]
max96at has quit [*.net *.split]
Olipro has quit [*.net *.split]
kevr has quit [*.net *.split]
tekk has quit [*.net *.split]
alem0lars_ has quit [*.net *.split]
bl4ckdu5t has quit [*.net *.split]
max96at_ is now known as max96at
<ypasmk> apeiros_: yes … I used a different approach so no one liner winner there for me
<jhass> I'm still not sure I got you on what it's doing specifically
<apeiros_> ypasmk: what did you end up using?
Olipro_ is now known as Olipro
tyfighter has quit [Ping timeout: 256 seconds]
paulfm has quit [Ping timeout: 264 seconds]
<ypasmk> apeiros_: a loop thingy like the bubble algorithm
<mwlang> hanmac1 mulitple physical connections that act as one is called a bonded connection.
josephndenton has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 255 seconds]
<ypasmk> apeiros_: it was more complicated … for a missing value in the list (nil or empty) then the previous one should take its place to be compared with the next …
<apeiros_> ypasmk: sounds like you had a gross datastructure to begin with :-p
<apeiros_> but that'd just mean a grep before the map
pu22l3r has joined #ruby
<hanmac1> mwlang: hm yes ... but i need to ask why "channel bonding" is not used before for that ... i think it has something todo with "failure safety" ... hm like i said i maybe not deep enough into that project yet
pu22l3r has quit [Remote host closed the connection]
MrSamuel has quit [Remote host closed the connection]
<ypasmk> apeiros_: hmmm … please elaborate …
pu22l3r has joined #ruby
<apeiros_> ary.grep(/\A(?:true|false)\z/).map { |x| x == "true" }.inject { |a,v| a && v }
<jhass> hanmac1: say you have eth1 with 10.1.0.1, eth2 with 10.2.0.1 and so on and eth_internal with 192.168.0.1, the other server is at 192.168.0.2. The other server listens on 192.168.0.2:101, 192.168.0.2:102 and so on and you want connections to 10.1.0.1:100 go to 192.168.0.2:101, 10.2.0.1:100 go to 192.168.0.2:102 and so on
<jhass> is that what you want?
zzzbra has quit [Ping timeout: 255 seconds]
<ypasmk> apeiros_: hmmmm … interesting … I’ll give it a shoot see if it works in my case
<apeiros_> if it doesn't, then you didn't fully describe your problem :-p
<hanmac1> jhass: yes i think thats like they want it
lioninawhat has joined #ruby
<mwlang> hanmac1: Are you trying to host a server behind two different ISP’s or something?
<jhass> hanmac1: that's IP masquerading then, a few iptables rules should do it
LouisRoR has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
<hanmac1> mwlang: i dont 100% know what my company is trying todo ;P
dangerousdave has quit [Max SendQ exceeded]
shime has joined #ruby
<mwlang> hanmac1: well, if that is what they’re wanting for failover when one ISP goes down, then you’ll have to implement BGP which isn’t all that easy to do: http://en.wikipedia.org/wiki/Border_Gateway_Protocol for more info.
luriv has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
xrlabs has joined #ruby
<hanmac1> mwlang: hm ok good to know ... but i need to ask the others if thats what they want
AlSquire has joined #ruby
athan has joined #ruby
<jhass> yeah, I think you actually have no idea what they want, it might be better to clarify that first before spending too much effort
theotherstupidgu has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
<mwlang> hanmac1: maybe this helps as well: http://www.shorewall.net/MultiISP.html
ypasmk has quit [Quit: ypasmk]
dspangenberg has joined #ruby
workmad3 has quit [Quit: Lost terminal]
joonty has joined #ruby
shine_ is now known as fesotovi
sankaber has joined #ruby
workmad3 has joined #ruby
theotherstupidgu has joined #ruby
luriv has quit [Ping timeout: 256 seconds]
tier has joined #ruby
jusmyth has quit [Quit: Leaving.]
ypasmk has joined #ruby
LouisRoR has joined #ruby
nhhagen_ has joined #ruby
dspangenberg has quit [Ping timeout: 246 seconds]
chthon has joined #ruby
tunaCanBruh has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
arya_ching has quit []
dangerousdave has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
zzzbra has joined #ruby
Morkel has joined #ruby
<hanmac1> i will see what does might help me, but today is Fr means, as less work as possible ... ;P
nhhagen has quit [Ping timeout: 255 seconds]
cpt_yossarian has joined #ruby
sprihodko has joined #ruby
<workmad3> hanmac1: alright for some :P
tunaCanBruh has quit [Ping timeout: 244 seconds]
theotherstupidgu has quit [Ping timeout: 264 seconds]
cpt_yossarian has quit [Client Quit]
zzzbra has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ych4k3r has joined #ruby
nhhagen has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
nhhagen has quit [Remote host closed the connection]
luckyruby has quit [Ping timeout: 252 seconds]
dblessing has joined #ruby
psy_ has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
lioninawhat has quit [Remote host closed the connection]
kiddoboy has joined #ruby
<kiddoboy> Multiplataform application. What technologies to use? Web + Mobile + Desktop. Any opensource project as an example?
ki0_ has joined #ruby
luriv has joined #ruby
tyfighter has joined #ruby
philwantsfish has joined #ruby
<ypasmk> there no exclude? in ruby right?
<wasamasa> wikipedia is a multiplatform application
asmodlol has quit [Ping timeout: 255 seconds]
<xrlabs> what do you mean ypasmk
ki0 has quit [Ping timeout: 264 seconds]
iamninja has quit [Quit: ZZZzzz…]
LudicrousMango has joined #ruby
<ypasmk> ary.include?(‘somevalue’) and ary.exclude?(‘somevalue’)
<kiddoboy> wasamasa: Is it done with ruby?
<wasamasa> kiddoboy: no, PHP
<wasamasa> kiddoboy: still, doesn't matter
<xrlabs> you could do it after that, ypasmk
<xrlabs> wait a sec
<certainty> ypasmk: isn't exclude just? !include?
plashchynski has quit [Quit: plashchynski]
<certainty> erm, the ? went to the wrong place
<kiddoboy> wasamasa: What do you mean? I'm looking best practices for using ruby in a multiplataform way
<wasamasa> kiddoboy: do the backend in any language you like, do the frontend in the languages the browser supports, make everyone use a browser to access the thing
<wasamasa> kiddoboy: that's the easiest way for a simple- to medium-complex application
bunbury has joined #ruby
<wasamasa> kiddoboy: everything closer to native is a shitload more complex to do, especially if it has to be supported on more than one platform
Takle has joined #ruby
d3v has quit [Ping timeout: 256 seconds]
<wasamasa> kiddoboy: github is written in rails, is that enough for you?
<gregf_> ypasmk: [1,2,3].include?(3), ![1,2,3].include?(3)
<kiddoboy> wasamasa: I understand the browser thing
<ypasmk> gregf_: true … but I want to send it with public_send
<xrlabs> that's actually quite cool
<wasamasa> kiddoboy: well, good
tesuji has quit [Ping timeout: 245 seconds]
<kiddoboy> wasamasa: I would like to know what people use in order to extend the browser application to a desktop client and mobile client
<wasamasa> kiddoboy: a browser
<wasamasa> kiddoboy: browsers run everywhere!
<kiddoboy> wasamasa: I understand responsive css as well
<wasamasa> kiddoboy: browsers run on desktops, mobile phones, laptops
<ypasmk> I just extended the enumarable module with a method def exclude?(item) !include?(item) end
SolarSailor has joined #ruby
<ypasmk> but don’t know if that is condidered to be a good practise
<gregf_> ypasmk: p [1,2,3].public_send("include?",2), ![1,2,3].public_send("include?",2)
<kiddoboy> wasamasa, The thing is that my company wants to launch a desktop application and mobile application independent from the browser
<gregf_> ypasmk: its not as complicated as you're making it :/
<wasamasa> kiddoboy: tell them they're in for a world of pain
ki0_ has quit [Remote host closed the connection]
<ypasmk> gregf_: well it is because the ! goes in front of the method and the dynamic part goes to the public_send method
<ypasmk> I’m looking for one liner …
<kiddoboy> kiddoboy: they are looking for possible technologies
ki0 has joined #ruby
<ypasmk> otherwise I will need something like a condition to control the call
plashchynski has joined #ruby
kenneth has joined #ruby
<kiddoboy> So no QT neither FX with jruby?
<wasamasa> bwahaha
<wasamasa> I guess you're one of those who only understand once they've experienced it themselves :D
nhhagen has joined #ruby
<kiddoboy> wasamasa: But ruby as bindings for QT5 isn't this correct?
<gregf_> ypasmk: class Array; def exclude? val; return !self.include?(val);end;end;p [1,2,3].exclude?(2); <== like that
<gregf_> *cries*
<kiddoboy> wasama: literature is scarse though.
<wasamasa> kiddoboy: worse, QT has only C++ docs
<kiddoboy> wasamasa: It seems no one is using it
freerobby has joined #ruby
<wasamasa> no idea about FX
<wasamasa> I've only heard of it thanks to ruby
<kiddoboy> wasama: It's the replacement of Swift in Java world
kenneth has quit [Client Quit]
tiwillia has joined #ruby
arup_r has quit []
Aova has quit [Read error: Connection reset by peer]
* wasamasa retches
<kiddoboy> I guess rubymine is developed with that. Am I wrong?
kenneth has joined #ruby
nhhagen has quit [Remote host closed the connection]
<wasamasa> also, it's swing if anything
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<kiddoboy> wasamasa: I guess ruby community doesn't bother about destop and mobile. Just browsers like you say.
jdripper has joined #ruby
<wasamasa> kiddoboy: well, there are of course people who tried making solutions for those
nhhagen has joined #ruby
<wasamasa> kiddoboy: I'm just pointing out that even if you use those, you'll have more things to worry about than when just doing a web application
<kiddoboy> wasamasa: There Rhomobile for multi-mobile development with ruby. But also not to much buzz on it in the ruby community.
EvanFreeman has joined #ruby
terlar has quit [Read error: Connection reset by peer]
juanpablo__ has joined #ruby
<hanmac1> kiddoboy: hm i an writing a binding for wxWidgets ... you might like it, but its not finish yet
<kiddoboy> wasamasa: Totally agree with you, but our costumers demand desktop applications. Currently we use C++ to develop them. I am looking to ways of making use of ruby not just for the browser application.
nhhagen has quit [Remote host closed the connection]
icbm has joined #ruby
<wasamasa> kiddoboy: great, instead of just worrying about C++, you need to worry about C++ *and* ruby
<wasamasa> kiddoboy: the number of failing points has doubled!
<wasamasa> I wonder what management will think of this
Aova has joined #ruby
<kiddoboy> hanmac1: OK can you tell me more about it. Why wxWidgets over QT or TK? Can you point me out to the github repo?
<workmad3> kiddoboy: you could always use something like mruby to embed a ruby runtime into your C++ apps... then you can use ruby to script bits (or all) of your C++ desktop apps :)
blackoperat has joined #ruby
<hanmac1> kiddoboy: wxwidgets.org because it does look native on the different OS
<waxjar> rubymotion is a pretty big platform for doing ios (or android?) apps, no?
<kiddoboy> workmad3: Any literature on that?
bl4ckdu5t has joined #ruby
alem0lars has joined #ruby
posixpascal has joined #ruby
alem0lars has quit [Changing host]
alem0lars has joined #ruby
freerobby has quit [Quit: Leaving.]
bl4ckdu5t has quit [Max SendQ exceeded]
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> kiddoboy: there may be... I've never done it, but I believe that's the target aim of mruby
iamjarvo has joined #ruby
<kiddoboy> waxjar: You would have to pay for it right? I'm looking the open-source way of doing things.
<waxjar> ah, fair enough
<wasamasa> mruby is just a README, no?
king313 has joined #ruby
Stoge88 has joined #ruby
<wasamasa> oh and the API docs, fair enough
bl4ckdu5t has joined #ruby
<kiddoboy> I heard about using webkit interface for desktop applications as well. Do you know any open-source project that does it with ruby?
mrmargolis has joined #ruby
bl4ckdu5t is now known as Guest9343
<kiddoboy> hanmac1: The ruby bindings link there is broken?!
<hanmac1> kiddoboy: thats why https://github.com/Hanmac/rwx
<hanmac1> but like i said still in build
<kiddoboy> I read about some people using jruby. Any experience about it here?
cpruitt has joined #ruby
fesotovi has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby
<kiddoboy> hanmac1: Is it just you contributing? No one more interested on it?
RandyT has quit [Quit: ZNC - http://znc.in]
zenith_ has joined #ruby
<kiddoboy> hanmac1: Why are you taking the effort if no one is with you? What are the motivations? Will the library be reliable over time? What guarantees?
<wasamasa> kiddoboy: welcome to the world of opensource
<wasamasa> kiddoboy: where the majority of projects is done by one or two persons
<wasamasa> kiddoboy: even openssl
chthon has quit [Ping timeout: 245 seconds]
<wasamasa> kiddoboy: and gnupg and many more
<hanmac1> kiddoboy: i need it for some other project ... thats the main reason why i wrote bindings because i need it somewhere else
<kiddoboy> In my point of view the community needs to be involved to push ruby towards different boundaries. Don't you think so?
<wasamasa> kiddoboy: people start those projects mostly to scratch their own itch
scripore has quit [Quit: This computer has gone to sleep]
sent1nel has joined #ruby
<wasamasa> kiddoboy: not because someone tells them the community has to move forward or some other crock
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kiddoboy> hanmac1: So you are trying to develop a multiplataform application?
<hanmac1> yeah why not ;P
<wasamasa> kiddoboy: node-webkit is a thing, however since node is js, people use it with javascript
<wasamasa> kiddoboy: surprise, surprise
yfeldblum has joined #ruby
RandyT has joined #ruby
skj3gg has joined #ruby
skj3gg has quit [Client Quit]
<hanmac1> kiddoboy: and if you ask: my big plan is a new open RPGMaker in Ruby ;P ... but that will still take sometime for that :( (yes shevy i still didnt abandom that dream)
<waxjar> i really don't like the node-webkit stuff. it produces clunky, poorly-integrated memoryhungry beasts :P
<wasamasa> kiddoboy: browsers are complicated beasts, someone wrote javascript integration, people are lazy and use it
<kiddoboy> Ruby at enterprise level gets a bit behing due to this things in my point of view. Its hard to sell the idea when the technologies are limited to web development and back office work.
agrinb has quit [Ping timeout: 265 seconds]
<wasamasa> rofl, "Ruby at enterprise level"
kenneth has joined #ruby
<wasamasa> nobody at this level uses a single language for everything
skj3gg has joined #ruby
<wasamasa> even java people deal with having to use xml for config :P
browndawg has joined #ruby
browndawg has quit [Client Quit]
<certainty> starship enterprise?
<wasamasa> kiddoboy: technologies aren't limited, the ones being limited are people who believe they can't push those technologies forward
<IceDragon> eww xml :x
marr has quit [Ping timeout: 264 seconds]
* hanmac1 uses xml files for maps! ;P
kenneth has quit [Client Quit]
Renich has joined #ruby
<IceDragon> hanmac1: UR A BAD PERSON
<wasamasa> lol
* IceDragon points and cries
<workmad3> hanmac1: do you run that XML through an XSLT sheet to produce ruby though?
<wasamasa> workmad3: please stop the perversion
<certainty> workmad3: sick
<workmad3> wasamasa: :D
<workmad3> wasamasa: if I was perverted, I'd have said the XSLT should produce PHP ;)
<apeiros_> I thought you'd go the other way round. use enterprise ruby to convert ruby to xml too
<wasamasa> ಠ_ಠ
<certainty> of course it's xml -> yaml(with embedded objects) -> ruby
ych4k3r_ has joined #ruby
kenneth has joined #ruby
<hanmac1> workmad3: http://www.mapeditor.org/
<wasamasa> hmm, that reminds me of a fun talk
<apeiros_> and I'm sure you could convert images to xml as well
<apeiros_> in the end your whole game is all xml
<apeiros_> very professional
oleo has joined #ruby
ych4k3r has quit [Read error: Connection reset by peer]
<certainty> xml is the real enterprise language
AFKGeek has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
<workmad3> apeiros_: you sure can... just create lots of svg points as a 'vector bitmap'
<waxjar> html is just as bad :D
sent1nel has quit [Ping timeout: 272 seconds]
* waxjar hides
Takle_ has joined #ruby
josephndenton has joined #ruby
Renich has quit [Client Quit]
Renich has joined #ruby
_maes_ has joined #ruby
LudicrousMango has quit [Ping timeout: 255 seconds]
* IceDragon gives waxjar a thumbs up
<wasamasa> they've done an enterprise rails with xml
<wasamasa> IIRC
yfeldblum has quit [Ping timeout: 276 seconds]
<workmad3> apeiros_: I remember using an image format that was C-code in a lab @ uni...
Jackneill has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theotherstupidgu has joined #ruby
amil has joined #ruby
enebo has joined #ruby
kenneth has quit [Client Quit]
kamilc__ has quit [Ping timeout: 245 seconds]
nhhagen has quit [Remote host closed the connection]
<wasamasa> xpm?
michael_mbp has quit [Excess Flood]
<wasamasa> or xbm?
pdoherty has joined #ruby
<workmad3> wasamasa: those sound familiar
<wasamasa> those can be embedded in C code
Takle has quit [Ping timeout: 246 seconds]
werelivinginthef has joined #ruby
michael_mbp has joined #ruby
<wasamasa> which is actually pretty cool for tiny bitmaps, such as in UI toolkits
mleone has joined #ruby
<workmad3> yeah, these were the graphics for a bomberman clone
kenneth has joined #ruby
<workmad3> and I guess it meant they didn't need to provide us with image-loading code :)
<wasamasa> I can never remember which is which, there's at least three variants and two formats
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<kiddoboy> hanmac1: Talking about bindings. What is the current status of TK and QT bindings. Do you have any idea?
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
kenneth has quit [Client Quit]
AlexRussia has joined #ruby
mleone has quit [Client Quit]
jdripper has quit [Ping timeout: 255 seconds]
<hanmac1> sorry dont know but i thought that no one uses tk if they can use better
mleone has joined #ruby
<wasamasa> ^
kenneth has joined #ruby
<kiddoboy> hanmac1: From what I read TK and QT have now the same look and feel of the desktop as well. Is this wrong?
<apeiros_> workmad3: I thought more like this: <pixel x="0" y="0"><red>0</red><green>255</green><blue>128</blue></pixel>…
<wasamasa> nope
<wasamasa> that's totally wrong
mleone has quit [Client Quit]
<wasamasa> QT actually looks decent
<wasamasa> TK doesn't even have themes
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<apeiros_> I mean since that's plaintext, it can easily be gzipped. it will certainly be much smaller than e.g. a PNG!!!!1!1!!
<wasamasa> its only benefit is that you don't need to sacrifice a goat to program with it
tyfighter has quit [Ping timeout: 264 seconds]
<wasamasa> or a GUI designer
phoo1234567 has joined #ruby
<wasamasa> but it's as ugly as sin
chthon has joined #ruby
iamninja has joined #ruby
scripore has joined #ruby
mcpierce has joined #ruby
kenneth has quit [Client Quit]
rubyIsKillingME has joined #ruby
Jackneill has joined #ruby
<mcpierce> Hi, all. I'm looking for some help on writing a Ruby extension. I have VALUE that was created by a call to Data_Wrap_Struct and I want to add a mark function to it.
michael_mbp has quit [Excess Flood]
<rubyIsKillingME> What is the generic lexicology for method names in ruby? I'm writing a compiler
kenneth has joined #ruby
<mcpierce> I can't access the actual call to Data_Wrap_Struct so is it possible to modify that existing VALUE to add the function reference?
phoo1234567 has quit [Max SendQ exceeded]
<hanmac1> kiddoboy: wx itself is nice because it does look different on different systems ... like native
theotherstupidgu has quit [Ping timeout: 256 seconds]
<kiddoboy> Tk is the standard GUI not only for Tcl, but for many other dynamic languages, and can produce rich, native applications that run unchanged across Windows, Mac OS X, Linux and more.
<kiddoboy> What 'native applications' mean then?
pu22l3r_ has joined #ruby
phoo1234567 has joined #ruby
rubyIsKillingME has left #ruby [#ruby]
kenneth has quit [Client Quit]
<kiddoboy> hanmac1: oh I see now what do you mean
kenneth has joined #ruby
michael_mbp has joined #ruby
<kiddoboy> What about JRUBY and using java libraries?
agrinb has joined #ruby
davout has left #ruby ["kthxbye"]
ych4k3r has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
kenneth has quit [Client Quit]
terlar has joined #ruby
Luyt_ has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
<hanmac1> kiddoboy: i dont theat jruby as existent for me ;P (also because my bindings will never work for them)
ych4k3r_ has quit [Read error: Connection reset by peer]
<certainty> wasamasa: haha those slides are awesome
RandyT has quit [Ping timeout: 245 seconds]
kenneth has joined #ruby
RandyT_ has joined #ruby
michael_mbp has quit [Excess Flood]
RandyT_ is now known as RandyT
jusmyth has joined #ruby
fryguy9 has joined #ruby
sprihodko has quit [Quit: (null)]
sevenseacat has quit [Quit: Leaving.]
<kiddoboy> hanmac1: Is you're RPG planned to work in mobile as well?
kenneth has quit [Client Quit]
michael_mbp has joined #ruby
livingstn has joined #ruby
x77686d has quit [Quit: x77686d]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
mitchellhenke has joined #ruby
dspangenberg has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
brb3 has joined #ruby
kenneth has quit [Client Quit]
<kiddoboy> hanmac1: I thought wxWidgets was dead but it seams very active. Why the ruby bindings were gone? Do you have some idea of the reason?
kenneth has joined #ruby
chinmay_dd has joined #ruby
tunaCanBruh has joined #ruby
<hanmac1> kiddoboy: wxRuby wasnt conttinuted for years and it did only worked with wx2.8 and ruby1.8 ... my rebuild of it does work with recent of both
last_staff has quit [Quit: last_staff]
<kiddoboy> kiddoboy: I really would like to have a common framework for desktop development in which we could plugin what ever bindings. Is this something to utopic?
michael_mbp has quit [Excess Flood]
Xeago has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Xeago has joined #ruby
kenneth has quit [Client Quit]
<kiddoboy> The desktop bindings and mobile bindings would be just a new controller-view layer in top of the model layer.
<certainty> "just"
Luyt_ has joined #ruby
kenneth has joined #ruby
cpt_yossarian has joined #ruby
jusmyth has left #ruby [#ruby]
theotherstupidgu has joined #ruby
jdripper has joined #ruby
kenneth has quit [Client Quit]
<kiddoboy> certainty: Meaning we would be able to use the model layer cross-platform wise and deploy accordingly.
<wasamasa> certainty: yeah, I like the style
fmcgeough has joined #ruby
dspangenberg has quit [Ping timeout: 256 seconds]
<certainty> kiddoboy: that's too enterprisey for me. I don't know much about that stuff, so feel free to ignore my bitching ;)
<kiddoboy> All the cross-platform development in one single repository.
Xeago_ has joined #ruby
Jackneill has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
michael_mbp has quit [Excess Flood]
<kiddoboy> Rhomobile uses kind of the same logic, but it seems no one uses it. Which is a little bit weird for me. Specially when it is owned by Motorola.
michael_mbp has joined #ruby
fryguy9 has quit [Quit: Leaving.]
ki0 has quit [Remote host closed the connection]
<workmad3> apeiros_: looks kinda like I'd expect an SVG 'bitmap' to look :)
<kiddoboy> But Rhomobile is for the mobile market. I would like to see something open-source for all platforms.
nhhagen has joined #ruby
<kiddoboy> No one of you had the same idea? I can imagine so. Why it doesn't exist? Technology challenges? How hard is it to be accomplished?
kenneth has joined #ruby
lmickh has joined #ruby
Landshark753 has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
nhhagen_ has joined #ruby
<kiddoboy> My feeling is that the solution exists but its hidden under the entreprise protection layer. Companies do it but don't reveal the how to. Am I to far from the truth?
pierombaabu has joined #ruby
<kiddoboy> No question that there are plenty of entreprise frameworks out there not revealed to the world!
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<kiddoboy> Isn't it time to make an open-source one?
theotherstupidgu has quit [Ping timeout: 245 seconds]
<kiddoboy> Rails is great but is not enough for what I'm looking for to achieve.
Guest9343 is now known as bl4ckdu5t
plashchynski has quit [Quit: plashchynski]
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
shime has quit [Read error: Connection reset by peer]
DefV_ is now known as DefV
theotherstupidgu has joined #ruby
it0a has joined #ruby
shime has joined #ruby
jimms has quit [Ping timeout: 276 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
zzzbra has joined #ruby
michael_mbp has quit [Excess Flood]
ta_ has joined #ruby
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
<apeiros_> almost forgot to unban.
mbeasley has quit [Quit: WeeChat 0.4.2]
tyfighter has joined #ruby
tus has joined #ruby
xjiujiu has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
nhhagen_ has quit []
* apeiros_ yawns
<apeiros_> assets:precompile taking ages…
reelbk has joined #ruby
<apeiros_> soon weekend, hurray
duggiefresh has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
ta_ has quit [Ping timeout: 272 seconds]
plashchynski has joined #ruby
michael_mbp has quit [Excess Flood]
skj3gg has quit [Quit: ZZZzzz…]
<certainty> saturday is workday
jottr has quit [Ping timeout: 265 seconds]
Aova has quit [Read error: Connection reset by peer]
waynerade has joined #ruby
einarj has quit [Remote host closed the connection]
michael_mbp has joined #ruby
roshanavand has quit [Quit: roshanavand]
roshanavand has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
michael_mbp has quit [Excess Flood]
raphaelss has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Aova has joined #ruby
weems|mac has joined #ruby
josephnd1nton has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
tjohnson has joined #ruby
skj3gg has joined #ruby
banister has joined #ruby
mbeasley has joined #ruby
lessless has joined #ruby
michael_mbp has quit [Excess Flood]
ki0 has quit [Remote host closed the connection]
jottr has joined #ruby
michael_mbp has joined #ruby
josephnd1nton has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
iamjarvo has joined #ruby
shum1 has quit [Ping timeout: 244 seconds]
hanmac1 has quit [Quit: Leaving.]
theotherstupidgu has quit [Ping timeout: 240 seconds]
tiwillia has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki has quit [Quit: FooMunki]
arya_ching has joined #ruby
sent1nel has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
sigurding has joined #ruby
apeiros_ has quit [Ping timeout: 244 seconds]
theotherstupidgu has joined #ruby
SHyx0rmZ has joined #ruby
Takle_ has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Client Quit]
tiwillia has joined #ruby
scripore has joined #ruby
gtrak has joined #ruby
theotherstupidgu has joined #ruby
ypasmk has quit [Quit: ypasmk]
ki0 has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
theotherstupidgu has quit [Client Quit]
Takle has joined #ruby
theotherstupidgu has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
brb3 has joined #ruby
Alina-malina has joined #ruby
dspangenberg has joined #ruby
sent1nel has joined #ruby
Luyt__ has joined #ruby
uptownhr has joined #ruby
Ankhers has joined #ruby
kenneth has joined #ruby
fabrice31_ has joined #ruby
Luyt_ has quit [Ping timeout: 264 seconds]
theother1tupidgu has joined #ruby
naftilos76 has joined #ruby
theotherstupidgu has quit [Ping timeout: 265 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
amundj has quit [Ping timeout: 245 seconds]
kenneth has quit [Client Quit]
codeurge has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
noop has joined #ruby
snath has quit [Ping timeout: 244 seconds]
tiwillia has quit [Ping timeout: 264 seconds]
bal has quit [Quit: bal]
AlSquire has joined #ruby
tyfighter has quit [Ping timeout: 245 seconds]
bal has joined #ruby
bal has quit [Client Quit]
zachrab has joined #ruby
zenith_ has joined #ruby
lioninawhat has joined #ruby
mrmargolis has quit [Remote host closed the connection]
Jackneill has joined #ruby
lkba has joined #ruby
Jackneill has quit [Remote host closed the connection]
crueber has joined #ruby
bal has joined #ruby
bal has quit [Client Quit]
zzzbra has quit [Ping timeout: 240 seconds]
Jackneill has joined #ruby
railsForDaiz has quit [Quit: Textual IRC Client: www.textualapp.com]
jmcharnes has joined #ruby
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
tobago has quit [Remote host closed the connection]
colinstgeorge has quit [Quit: Hosed.]
tiwillia has joined #ruby
livathinos has quit []
colinstgeorge has joined #ruby
seal has quit [Quit: Ex-Chat]
lioninawhat has quit [Ping timeout: 272 seconds]
mpgarate has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theother1tupidgu has quit [Ping timeout: 245 seconds]
mpgarate has left #ruby [#ruby]
pandaant has quit [Quit: Lost terminal]
pandaant has joined #ruby
zzzbra has joined #ruby
sambao21 has joined #ruby
theotherstupidgu has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Squarepy has joined #ruby
sambao21 has quit [Client Quit]
fabrice31_ has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
jlast has joined #ruby
Jackneill has quit [Remote host closed the connection]
sambao21 has joined #ruby
lmickh has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
ki0 has quit [Remote host closed the connection]
tiwillia has quit [Ping timeout: 244 seconds]
bootstrappm has joined #ruby
tiwillia has joined #ruby
zenith_ has quit [Ping timeout: 245 seconds]
zB0hs has joined #ruby
juanpablo___ has joined #ruby
willgorman is now known as willgorman|away
klmlfl_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
withnale_ has quit [Ping timeout: 246 seconds]
Pharaoh2 has joined #ruby
georgesmith has quit [Quit: georgesmith]
djbkd has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
zwer_l has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 264 seconds]
klmlfl has quit [Ping timeout: 240 seconds]
zwer has joined #ruby
willgorman|away is now known as willgorman
uptownhr has quit [Quit: uptownhr]
pu22l3r_ has quit []
werelivinginthef has joined #ruby
havenwood has joined #ruby
linuxer1 has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
ixti has joined #ruby
Takle has joined #ruby
tyfighter has joined #ruby
bjornar has quit [Read error: Connection reset by peer]
bootstrappm has quit [Remote host closed the connection]
theotherstupidgu has quit [Ping timeout: 256 seconds]
stunder has joined #ruby
jlast has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
theotherstupidgu has joined #ruby
Luyt has joined #ruby
tiwillia has quit [Read error: Connection reset by peer]
eka has joined #ruby
tiwillia has joined #ruby
Luyt__ has quit [Ping timeout: 264 seconds]
tier has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
reinaldob has joined #ruby
tier has joined #ruby
ptrrr has joined #ruby
dfinninger has joined #ruby
tiwillia has quit [Read error: Connection reset by peer]
bootstrappm has joined #ruby
tiwillia has joined #ruby
pu22l3r has joined #ruby
yfeldblum has joined #ruby
michael_mbp has quit [Excess Flood]
Aova has joined #ruby
ypasmk has joined #ruby
pu22l3r has quit [Remote host closed the connection]
michael_mbp has joined #ruby
ych4k3r has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
amil has quit [Quit: Leaving...]
zzzbra has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
willgorman is now known as willgorman|away
zenith_ has joined #ruby
CustosL1men has quit [Ping timeout: 276 seconds]
ych4k3r_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 255 seconds]
karmatr0n has joined #ruby
asmodlol has joined #ruby
chrishough has joined #ruby
pu22l3r has joined #ruby
ych4k3r has quit [Read error: Connection reset by peer]
anarang has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
AlexRussia has quit [Ping timeout: 265 seconds]
ypasmk has quit [Ping timeout: 272 seconds]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
hs366 has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Pharaoh2 has joined #ruby
baroquebobcat has joined #ruby
sent1nel has quit [Remote host closed the connection]
ych4k3r has joined #ruby
sigurding has quit [Quit: sigurding]
nobitanobi has joined #ruby
cantonic has quit [Quit: cantonic]
Hobogrammer has joined #ruby
ych4k3r_ has quit [Ping timeout: 256 seconds]
mwlang has quit [Quit: mwlang]
cantonic has joined #ruby
sent1nel_ has joined #ruby
d10n-work has joined #ruby
Xeago_ has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 246 seconds]
georgesmith has joined #ruby
zachrab has quit [Remote host closed the connection]
cantonic has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
kenneth has joined #ruby
cantonic has joined #ruby
ych4k3r_ has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
mbwe has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
St1gma has joined #ruby
theotherstupidgu has joined #ruby
tyfighter has quit [Quit: tyfighter]
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_dev has joined #ruby
zachrab has quit [Ping timeout: 272 seconds]
pdoherty has quit [Remote host closed the connection]
georgesmith has quit [Quit: georgesmith]
cjim has joined #ruby
lampd1 has joined #ruby
shredding has quit [Quit: shredding]
nb_bez___ has joined #ruby
deric_skibotn has joined #ruby
iamjarvo has joined #ruby
nb_bez___ has quit [Client Quit]
nb_bez___ has joined #ruby
leafybasil has quit [Remote host closed the connection]
tjohnson has quit []
zenith_ has joined #ruby
tjohnson has joined #ruby
zzzbra has joined #ruby
Renich has quit [Quit: leaving]
arya_ching_ has joined #ruby
Renich has joined #ruby
tier has quit [Remote host closed the connection]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
Renich has quit [Client Quit]
ych4k3r has joined #ruby
Renich has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
josephnd1nton has joined #ruby
kiddoboy has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
arya_ching has quit [Ping timeout: 264 seconds]
Renich has quit [Client Quit]
Renich has joined #ruby
danjordan has quit [Quit: danjordan]
ych4k3r_ has quit [Ping timeout: 256 seconds]
xjiujiu has quit [Read error: Connection reset by peer]
lorn_ is now known as Lorn
Lorn has quit [Changing host]
Lorn has joined #ruby
ych4k3r has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
marcdel has joined #ruby
Takle has joined #ruby
ponga has quit [Remote host closed the connection]
josephnd1nton has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 245 seconds]
troulouliou_dev has quit [Quit: Leaving]
Hijiri has quit [Quit: WeeChat 1.0.1]
beneggett has joined #ruby
Renich has quit [Quit: leaving]
georgesmith has joined #ruby
ych4k3r has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
pdoherty has joined #ruby
sudog has joined #ruby
marcdel has quit [Client Quit]
aganov has quit [Remote host closed the connection]
pierombaabu has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
pierombaabu has joined #ruby
mary5030 has joined #ruby
zzzbra has quit [Read error: Connection reset by peer]
trufflesnout has joined #ruby
trufflesnout has quit [Client Quit]
georgesmith has quit [Client Quit]
Takle has quit [Remote host closed the connection]
Kharma has quit []
Kharma has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sent1nel_ has quit [Remote host closed the connection]
jdripper has quit [Quit: Leaving.]
snath has joined #ruby
sambao21 has joined #ruby
AlexRussia has joined #ruby
pierombaabu has quit [Ping timeout: 272 seconds]
porfa has joined #ruby
yellowgh0st has joined #ruby
michael_mbp has quit [Excess Flood]
marcdel has joined #ruby
michael_mbp has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
godd2 has joined #ruby
Morkel has quit [Quit: Morkel]
marcdel has quit [Client Quit]
MuffinPimp has joined #ruby
MuffinPimp has quit [Remote host closed the connection]
<bhaak> has omniref really written an email to every ruby gem owner?
Aova has quit [Read error: Connection reset by peer]
elabs-developer has quit [Quit: elabs-developer]
maletor has joined #ruby
chthon has quit [Quit: Ex-Chat]
sent1nel has joined #ruby
MuffinPimp has joined #ruby
sent1nel has quit [Remote host closed the connection]
sent1nel has joined #ruby
swgillespie has joined #ruby
mikecmpbll has joined #ruby
<gregf_> my, django-rest is probably the easiest framework out there :/
michael_mbp has quit [Excess Flood]
Aova has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
Alayde has joined #ruby
<apeiros_> gregf_: only for another 11 months.
bricker has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
<gregf_> well, spring is far more complicated :/
jaequery has joined #ruby
<Alayde> Can someone lend me a hand with merging ruby hashes? I've tried a fair bit of googling but can't seem to work out how I'd merge the two hashes here: http://pastebin.com/Wxcx8ctq
<gregf_> ror is very good too :)
<Alayde> well...merge them and get the data structure I want
uptownhr has joined #ruby
konsolebox has joined #ruby
raphaelss has joined #ruby
maximski has quit []
_chs_ has quit []
_chs_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Alayde: One option would be Hashie: https://github.com/intridea/hashie#deepmerge
tyfighter has joined #ruby
_chs_ is now known as Guest87185
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
sent1nel has quit [Remote host closed the connection]
fryguy9 has joined #ruby
Hobogrammer_ has joined #ruby
crack has quit [Read error: Connection reset by peer]
<havenwood> Alayde: Or: require 'active_support/core_ext/hash/deep_merge'
sent1nel has joined #ruby
klmlfl_ has quit [Remote host closed the connection]
beneggett has joined #ruby
<havenwood> Alayde: Or there're other small gems that implement just Hash#deep_merge.
Xeago has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pietr0 has joined #ruby
iamjarvo has joined #ruby
cpt_yossarian has quit [Ping timeout: 265 seconds]
DrShoggoth has quit [Ping timeout: 245 seconds]
zenith_ has quit [Ping timeout: 240 seconds]
danman has quit [Quit: danman]
timonv has quit [Ping timeout: 264 seconds]
ndjaja has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
Xeago has quit [Read error: Connection reset by peer]
noop has quit [Quit: Leaving]
trufflesnout has joined #ruby
trufflesnout has quit [Client Quit]
ndjaja has quit [Client Quit]
sdwrage has quit [Ping timeout: 244 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgarstang has joined #ruby
ndjaja has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
Zai00 has quit [Quit: Zai00]
lioninawhat has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Megtastique has quit []
galeido_ has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: ciao.]
sdwrage has joined #ruby
sent1nel has quit [Remote host closed the connection]
lioninawhat has quit [Ping timeout: 265 seconds]
zachrab has joined #ruby
nobitanobi has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
mrevd has joined #ruby
skj3gg has joined #ruby
mrevd has left #ruby [#ruby]
LouisRoR has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
tyfighter has quit [Quit: tyfighter]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
SolarSailor has joined #ruby
plashchynski has quit [Quit: plashchynski]
tyfighter has joined #ruby
<Alayde> havenwood: I see. Unfortunately for myself this is being used within puppet, so external libraries (AFAIK) won't do me much good :(
MaciejCzyzewski has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
hoelzro has joined #ruby
beneggett has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
ych4k3r has quit [Ping timeout: 256 seconds]
ptrrr has joined #ruby
ptrrr has quit [Client Quit]
ych4k3r has joined #ruby
nanoyak has joined #ruby
nanoyak has quit [Remote host closed the connection]
EvanFreeman has quit [Remote host closed the connection]
x77686d has joined #ruby
nanoyak has joined #ruby
tyfighter has quit [Quit: tyfighter]
colli5ion has quit []
tier has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Ping timeout: 246 seconds]
Hijiri has joined #ruby
colli5ion has joined #ruby
zipkid has quit []
zipkid has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nheinrich has joined #ruby
nheinrich has quit [Client Quit]
colli5ion has quit [Client Quit]
DrShoggoth has joined #ruby
<Alayde> havenwood: I did find this stack overflow article that passes a block to the merge method, but in my ignorance I'm not entirely sure if it could be altered to accomplish what I want: http://stackoverflow.com/questions/15173182/merge-hashes-and-dont-overwrite-lists-inside
<Alayde> Or if I'm going down an entirely crazy path, let me know lol
martiniu_ has joined #ruby
martiniu_ has joined #ruby
martiniu_ has quit [Changing host]
martinium has quit [Ping timeout: 244 seconds]
dgarstang has quit [Quit: WeeChat 0.4.3]
Jackneill has joined #ruby
tier has quit [Ping timeout: 245 seconds]
athan has quit [Read error: Connection reset by peer]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
djbkd has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
ych4k3r has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
ych4k3r has joined #ruby
shime has quit [Read error: Connection reset by peer]
scripore has joined #ruby
shime has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
wow has joined #ruby
<wow> hey guys, just a quick question, i'm using net/smtp
<wow> do i have to connect to a said smtp server in order to send mails?
<tobiasvl> yes that's what smtp is for
<wow> i.e, to send a mail to someone using hotmail, do i need to connect to the hotmail server?
krisleech has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
<tobiasvl> oh
<tobiasvl> no.
<wow> so what do i do
<tobiasvl> any smtp server will do
<wow> so i can just host my own?
qpls has quit [Ping timeout: 252 seconds]
zenspider has quit [Ping timeout: 252 seconds]
<tobiasvl> well not necessarily any, depends on what they allow
<tobiasvl> yes sure
<wow> so
Kharma has quit [Read error: Connection reset by peer]
<wow> Net::SMTP.start should work
hfp_work has quit [Ping timeout: 252 seconds]
gremax has quit [Ping timeout: 252 seconds]
ponga has quit [Ping timeout: 255 seconds]
Lucky___ has quit [Ping timeout: 252 seconds]
fredsir has quit [Ping timeout: 252 seconds]
suy has quit [Remote host closed the connection]
<tobiasvl> yes
suy has joined #ruby
jaredrhine_ has quit [Remote host closed the connection]
WillAmes has quit [Ping timeout: 252 seconds]
Scient has quit [Ping timeout: 252 seconds]
angryzor has quit [Ping timeout: 252 seconds]
<eam> wow: you can connect to the remote server directly, or you can run your own server which will act as a queue and then IT will make the remote connection
jaredrhine has joined #ruby
Ulrike has quit [Read error: Connection reset by peer]
Guest87185 is now known as _chs_
eval-in__ has joined #ruby
<eam> generally better to do the latter, but you'll need to learn a bit about how to manage it
moshee has quit [Ping timeout: 252 seconds]
<wow> hm
zenspider has joined #ruby
<wow> do i need my own email as well?
Ulrike has joined #ruby
tommylommykins has quit [Ping timeout: 252 seconds]
kke has quit [Ping timeout: 252 seconds]
gkra has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
<wow> to specify an argument to smtp.send_message
ghr has quit []
<eam> you need a source address, yes
<wow> no i mean
sanguisdex has quit [Ping timeout: 252 seconds]
ValicekB has quit [Ping timeout: 252 seconds]
unreal has quit [Ping timeout: 252 seconds]
wang has quit [Ping timeout: 252 seconds]
hightower4 has quit [Ping timeout: 252 seconds]
waxjar has quit [Ping timeout: 252 seconds]
lynxman has quit [Ping timeout: 252 seconds]
PaulePanter has quit [Ping timeout: 252 seconds]
coco___ has quit [Ping timeout: 252 seconds]
roger_rabbit has quit [Ping timeout: 252 seconds]
KramerC has quit [Ping timeout: 252 seconds]
jerrett has quit [Ping timeout: 252 seconds]
nevans has quit [Ping timeout: 252 seconds]
dandrade_ has quit [Ping timeout: 252 seconds]
chuck has quit [Ping timeout: 252 seconds]
<wow> can i use literally any address without authentication
plashchynski has joined #ruby
<eam> yes and no
tommylommykins has joined #ruby
<wow> why no?
ght has quit [Ping timeout: 252 seconds]
dualbus has quit [Ping timeout: 252 seconds]
Koshian has quit [Ping timeout: 252 seconds]
hackeron has quit [Ping timeout: 252 seconds]
bakis has quit [Ping timeout: 252 seconds]
Sp4rKy has quit [Ping timeout: 252 seconds]
eythorium has quit [Ping timeout: 252 seconds]
dazeddev has quit [Ping timeout: 252 seconds]
zmyrgel has quit [Ping timeout: 252 seconds]
ixx has quit [Ping timeout: 252 seconds]
kke has joined #ruby
PaulePanter has joined #ruby
gkra has joined #ruby
chuck has joined #ruby
chuck has quit [Changing host]
chuck has joined #ruby
jerrett has joined #ruby
coco_ has joined #ruby
wang has joined #ruby
dandrade has joined #ruby
unreal has joined #ruby
shellfu has joined #ruby
ixx has joined #ruby
hackeron has joined #ruby
ght has joined #ruby
<eam> ancillary stuff like SPF or DKIM can be used to indicate that only trusted senders may transmit mail for a given domain
dazeddev has joined #ruby
eythorium has joined #ruby
<eam> a given domain may or may not use these
ixx is now known as Guest5532
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lynxman has joined #ruby
kaspertidemann has joined #ruby
<wow> well eam
<wow> i don't need the person who receives it to know it's valid
<wow> will it still work though
<godd2> very advice. much rubyist. wow
ghr has joined #ruby
<eam> it may or may not, because the receiving SMTP server may or may not test and reject your mail based on these
Darryl___ has joined #ruby
<wow> hm
tvw has quit []
<eam> most popular providers, say gmail, will reject invalid SPF/DKIM
MaciejCzyzewski has joined #ruby
<eam> and will also enable it for their domains
ghr has quit [Client Quit]
<eam> but if you register your own domain name and set up your own SMTP server you can accept anything you like
eval-in_ has quit [Ping timeout: 252 seconds]
yasu has quit [Read error: Connection reset by peer]
tier has joined #ruby
kenneth has joined #ruby
yasu has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
scripore has quit [Quit: This computer has gone to sleep]
elaptics is now known as elaptics`away
waxjar has joined #ruby
fredsir has joined #ruby
moshee has joined #ruby
freerobby has joined #ruby
hfp_work has joined #ruby
yfeldblum has joined #ruby
qpls has joined #ruby
<eam> if you're doing something for myapp.com, you totally can just not configure SPF or DKIM and then send unauthenticated. That should work
gremax has joined #ruby
krisleech has joined #ruby
GaryOak_ has joined #ruby
Scient has joined #ruby
KramerC has joined #ruby
angryzor has joined #ruby
<wow> ok
theRoUS has joined #ruby
zmyrgel has joined #ruby
<wow> how long will it take to send 1000000 to someone
<wow> emails that is
<eam> but myapp.com might also be spoofed by spammers, and potentially lower your mail reputation
adamjleonard has joined #ruby
<tobiasvl> wow: one million emails
<wow> yep
quimrsto_ has joined #ruby
<tobiasvl> well it will take a while because you will get ratelimited/graylisted
<eam> wow: it depends, SMTP deliverability is super complicated
quimrsto_ has quit [Remote host closed the connection]
<tobiasvl> and possibly blacklisted
tunaCanBruh has joined #ruby
<wow> tobiasvl: by the receiver or the server
ndjaja has quit [Quit: ndjaja]
<eam> one million emails to one million different providers could be sent instantly
scripore has joined #ruby
Landshark753 has joined #ruby
Sp4rKy has joined #ruby
<eam> but one million emails all to @gmail.com addresses will take a long time
<wow> not gmail
<wow> some other provider
<eam> to any particular provider
last_staff has joined #ruby
tier has quit [Read error: Connection reset by peer]
<eam> depending on what kind of anti-spam controls they have
plashchynski has quit [Ping timeout: 265 seconds]
tier has joined #ruby
Patabugen has joined #ruby
<wow> hm
<wow> im gonna test sending around 5 emails on myself first
<tobiasvl> start small
<Patabugen> Hey, I know nothing about Ruby but I'd like to use Mailcatcher which is distributed as a RubyGem. Is it feasable for me to just intall Ruby and the Gem or does it need to be part of a projject/filesystem?
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ych4k3r has quit [Ping timeout: 256 seconds]
galeido has joined #ruby
Pharaoh2 has joined #ruby
The_Phoenix has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Ping timeout: 240 seconds]
ndjaja has joined #ruby
ValicekB has joined #ruby
<wow> this is a load of baloney
<wow> this doesnt work at all
yfeldblum has quit [Ping timeout: 240 seconds]
<apeiros_> Patabugen: you can just install ruby + mailcatcher
<wow> not for hotmail anyways
<Patabugen> Super, thanks apeiros_!
ych4k3r has joined #ruby
<tobiasvl> wow: hotmail probably has SPF/DKIM activated?
<wow> ;(
<wow> well the other provider though dunno
<apeiros_> I'd hope so
<apeiros_> DKIM is M$ brainchild after all
<tobiasvl> yeah true
towski_ has joined #ruby
<tobiasvl> wow: so are you actually planning to spam?
<tobiasvl> or what
<wow> well he did steal my gf
plashchynski has joined #ruby
<apeiros_> that said, M$ and dogfeeding wasn't always a thing
<wow> that's the least i can do
<eam> bwahahaa
openscript has quit [Ping timeout: 264 seconds]
The_Phoenix has joined #ruby
<eam> wow: you should be aware that the civil liabilities for spam are rather severe
mostlybadfly has joined #ruby
Megtastique has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<wow> good luck
<wow> i'm under 9 proxies
<eam> unless you really know what you're doing (and it appears you don't really) you might be on the hook for let's see what's $500 times one million dollars?
<wow> lol don't worry
<wow> he's 16 years old
hightower4 has joined #ruby
<wow> what can he do
marr has joined #ruby
mediocregopher has joined #ruby
<eam> wow: microsoft isn't 16 years old
nevans has joined #ruby
<wow> i didnt send it to hotmail though
<eam> I guess I messed up my units, that'd leave me with dollars squared
<wow> some other provider
<wow> if it's a local provider in my country can i get arrested easier?
<apeiros_> huh? I think I should read the backlog, I seem to have missed some fun?
scripore has quit [Quit: This computer has gone to sleep]
<mediocregopher> Hi all! I'm getting the following when trying to "gem install": ERROR:  While executing gem ... (ArgumentError)  IPv6 address must be 16 bytes
<mediocregopher>
<tobiasvl> wow: maybe you should ask ruby related questions, not criminal ones
<wow> I'm sorry
<wow> i'm just angry
<mediocregopher> I get it both inside and outside rvm, with multiple versions
roger_rabbit has joined #ruby
<mediocregopher> has anyone else had this problem?
<eam> wow: the best revenge is living well
mostlybadfly has quit [Client Quit]
einarj has joined #ruby
sanguisdex has joined #ruby
bakis has joined #ruby
scripore has joined #ruby
<eam> go write a ruby app and make a bazillion dollars
Koshian has joined #ruby
mostlybadfly has joined #ruby
<wow> I don't notably program in Ruby
<eam> now's the time to start!
<wow> sometimes I do
<wow> well I mostly program in C
Squarepy has quit [Quit: Leaving]
<eam> wow: me too!
<wow> sorry i just can't move to a big language like ruby
n1lo has quit [Ping timeout: 265 seconds]
<wasamasa> lol
<tobiasvl> why did you pick ruby for your spam generator then
<wow> short code
<wasamasa> wow was in here a few days ago
dualbus has joined #ruby
Jackneill has quit [Remote host closed the connection]
<wasamasa> wow: please leave
<wow> wasamasa: why?
<wow> what did I do?
<tobiasvl> what did he ask about then? how to use ruby to DDoS a service?
<wasamasa> wow: you won't get any help with unlawful activities on freenode
<wow> hey im not ddosing
<wow> it's just me
n008f4g_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Aova has joined #ruby
djbkd has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
nobitanobi has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<wow> so wasamasa
<wow> if i make my own channel and talk about hacking in it
<wow> i will get banned by freenode?
<wasamasa> if they check upon it and deem it unlawful, yes
<wow> fuck that
avahey has joined #ruby
<wasamasa> you have the freedoms to join another network that doesn't care
<wow> no
<wasamasa> you do
<wow> i came on freenode and i'm here for 9 years
<wow> i'm not going to leave because of someone telling me that email bombing is unlawful
OrbitalKitten has joined #ruby
<wasamasa> for 9 years you sure did learn very little
<tobiasvl> 9 years! and your gf left you for a 16 year old
* wasamasa smells a bad trolling attempt
<wow> me too
<wow> i smell it real bad
scripore has joined #ruby
<tobiasvl> apeiros_: plz
lmickh has joined #ruby
<wow> i came here to get some help with SMTP and then you pop out of nowhere and want me banned
<wow> fuck off
<apeiros_> tobiasvl: funny timing. I was just pondering.
jenrzzz has joined #ruby
<apeiros_> wow: "help with smtp" != "help with spamming"
<wow> using SMTP
avahey has quit [Client Quit]
thumpba has joined #ruby
avahey has joined #ruby
<gregf_> wow: you dont need to use swear words :/
<apeiros_> dude, we're not stupid.
<wasamasa> "I want to get help with bombing people, but it's alright since I'm using fluids!"
Soda has joined #ruby
<wow> I do if someone wants to get me banned for no absolute reason.
<wow> I just asked a couple of questions regarding SMTP servers and methods from net/smtp
wow was kicked from #ruby by apeiros_ [no, we don't provide help for this kind of thing]
wow has joined #ruby
<wow> okay, i'm sorry
mediocregopher has left #ruby [#ruby]
<apeiros_> wow: go visit a friend and have a chat. don't be stupid and commit a crime just because you're upset.
ndjaja has quit [Quit: ndjaja]
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wow> but this was regarding ruby
<wow> i don't see why i was kicked
<apeiros_> and don't even think about asking for help with regards to that in here again. I'll longterm ban you otherwise.
<apeiros_> wow: stop being stupid. you made your intention quite clear. that you want to use ruby to commit a crime doesn't make it acceptable.
<apeiros_> wow: this discussion is over. continuing it will result in a ban.
klmlfl has joined #ruby
kalusn has quit [Remote host closed the connection]
m8 has joined #ruby
LouisRoR has joined #ruby
spookah has joined #ruby
klmlfl has quit [Ping timeout: 265 seconds]
rdark has quit [Quit: leaving]
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
<shellfu> lol well that discussion lifted my spirits. Bad mood is now gone
n1lo has joined #ruby
ndjaja has joined #ruby
<shellfu> children are hilarious sometimes. "IM INVINCIBLE!!"
* shellfu thinks of the russian from golden eye
<apeiros_> boris
<apeiros_> there's plenty of russians in most bond movies ;-p
<shellfu> Yeah the pen clicker :) Boris thats right
klmlfl has joined #ruby
<shellfu> probably more than one Boris also heh
adamjleonard has quit [Quit: Leaving...]
<wow> What do you tell someone when they're annoying you and you need to leave?
theotherstupidgu has quit [Ping timeout: 276 seconds]
Patabugen has quit [Ping timeout: 245 seconds]
thatslifeson_ has joined #ruby
<klap> haha
<klap> that is one ban i do agree with
<shellfu> You assume a fighting position, and say "Whatchu got!?"
<wow> Whatchu got!?
wow has left #ruby [#ruby]
zenith_ has joined #ruby
<klap> oh he's back
<klap> lol
theotherstupidgu has joined #ruby
<apeiros_> he's gone
* shellfu writes down wow on his death note
<shellfu> NOW he's gone
FaresKAlaboud has quit [Quit: Quit~]
Conner__ has joined #ruby
thatslifeson has quit [Ping timeout: 256 seconds]
josephnd1nton has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
FaresKAlaboud has joined #ruby
djbkd has quit [Remote host closed the connection]
tmk1108 has joined #ruby
mrmargolis has joined #ruby
Takle has joined #ruby
kirun has joined #ruby
n1lo has quit [Ping timeout: 255 seconds]
ellisTAA has joined #ruby
shredding has joined #ruby
thatslifeson_ has quit [Ping timeout: 264 seconds]
tmk1108 has quit [Remote host closed the connection]
josephnd1nton has quit [Ping timeout: 265 seconds]
beef-wellington has quit [Ping timeout: 276 seconds]
<ellisTAA> the ‘x’ in this line is causing an error. anyone know why? i want it to be the thing provided by the argument https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L13
EvanFreeman has joined #ruby
<wallerdev> maybe you want *
<wallerdev> oh
<wallerdev> lol
Rayford has joined #ruby
roshanavand has joined #ruby
<wallerdev> you probably want @calculator[...].send(x, @calculator[...])
<ellisTAA> yeah x could be + or - or / or *
wldcordeiro has joined #ruby
maximski has joined #ruby
<ellisTAA> i see. what does send do?
<wallerdev> if you want to call a method stored in a variable, send lets you do that
deol has joined #ruby
<ellisTAA> oh i see
Miron has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
<wallerdev> >> x = :+; 5.send(x, 10)
<eval-in__> wallerdev => 15 (https://eval.in/271642)
<wallerdev> and since + is a method
<wallerdev> it works
* apeiros_ smacks wallerdev with a public_send
bestie has quit []
jacks_spleen has quit [Quit: Leaving]
bestie has joined #ruby
<wallerdev> haha
<wallerdev> send is more versatile ;)
<wallerdev> and shorter
shime has quit [Ping timeout: 256 seconds]
<theRoUS> i'm writing cucumber tests for a class that can send output to arbitrary files/streams. i'm trying to use aruba to test that it's getting to $stderr, but 'Then the stderr should contain exactly' is failing, saying that $stderr got ""
<apeiros_> wallerdev's family name is "danger" :-p
* apeiros_ humms "highway to the danger zone"
<theRoUS> it works when i run my class' methods interactively in irb
thumpba_ has joined #ruby
ych4k3r has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
Hijiri has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
ych4k3r has joined #ruby
<ellisTAA> wallerdev: ty
<wallerdev> :p
shellfu has quit [Remote host closed the connection]
<wallerdev> whoaaa
thumpba has quit [Ping timeout: 256 seconds]
<wallerdev> just typed ir instead of irb on accident
<wallerdev> took me into IronRuby
<wallerdev> by microsoft
<wallerdev> how did this get on my system haha
<tobiasvl> should we send help?
djbkd has joined #ruby
<GaryOak_> installed by default
<wasamasa> wat
<wallerdev> ah looks like it's installed with the mono framework
klmlfl_ has joined #ruby
<GaryOak_> instead of drunk texting, drunk installing ruby versions
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
<wallerdev> :p
shellfu has joined #ruby
reset has joined #ruby
Zai00 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
martiniu_ has quit [Ping timeout: 255 seconds]
danman has joined #ruby
x1337807x has joined #ruby
tunaCanBruh has quit [Ping timeout: 244 seconds]
ndjaja has left #ruby [#ruby]
klmlfl has quit [Ping timeout: 245 seconds]
openscript has joined #ruby
* theRoUS wonders if apeiros_ will be as catastrophically helpful as in the past
djbkd has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
* apeiros_ wonders about the meaning of "catastrophically helpful"
wottam has joined #ruby
wottam has quit [Client Quit]
<theRoUS> apeiros_: 'helpful to a fault' ? :-D you've always been a great help to me when i've had questions.
tunaCanBruh has joined #ruby
<apeiros_> I could be cataclysmically unhelpful: I haven't used cucumber in years
uptownhr has quit [Quit: uptownhr]
Hijiri has joined #ruby
tiwillia has quit [Read error: Connection reset by peer]
tiwillia has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<wallerdev> what do you guys think of go
Morkel has joined #ruby
<wallerdev> seems to be gaining popularity
<apeiros_> it's on the higher spots of my "languages to finally take a look at"
<theRoUS> wallerdev: go? fish.
* theRoUS quacks and clangs
<wallerdev> haha yeah
<wallerdev> i looked at it a couple years ago i think, but never wrote anything in it
<theRoUS> apeiros_: well, even that response is helpful. what testing framework(s) do you prefer?
<wallerdev> looked interesting but didnt have a lot of library support
<apeiros_> theRoUS: minitest
<theRoUS> wallerdev: the beauty of FLOSS: no support? add it!
theotherstupidgu has quit [Ping timeout: 264 seconds]
<apeiros_> and every time I use it, I'm reminded of failing to finish baretest 0.5. :'(
<wallerdev> lol i dont want to implement everything just to get a project off the ground
athan has joined #ruby
<apeiros_> ETOOMANYPROJECTS, damit
<wallerdev> seems like there's a lot more support now though
Rayford has quit [Quit: Rayford]
<apeiros_> go is years old already?
GarbagePailKid has joined #ruby
<apeiros_> damit
<ellisTAA> wallerdev: i tried to use send, but i’m getting a syntax error message, something about a comma or what comes after the comma https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L13
<wallerdev> it's apparently 6 years old
<apeiros_> 2009, first stable version 2012
<apeiros_> time flies
<apeiros_> I'm old
<wallerdev> yeah haha
theotherstupidgu has joined #ruby
<apeiros_> soon the sun will devour our tiny innocent earth
<wallerdev> um
<wallerdev> if you have methods for plus minus divide and times
<wallerdev> why not just use the actual symbols
<wallerdev> instead of using send
kyb3r_ has joined #ruby
<ellisTAA> *embarassed*
<ellisTAA> thanks ...
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Remote host closed the connection]
<wallerdev> anyway if you wanted to use send you need to surround it in quotes or write it as a symbol
<wallerdev> like "+" or :+
cpruitt has quit [Quit: cpruitt]
<ellisTAA> ah well thanks for introducing me to the send method
cpruitt has joined #ruby
<wallerdev> yeah send is fun since you can do like
galeido has quit [Ping timeout: 255 seconds]
zachrab has joined #ruby
djbkd has joined #ruby
<wallerdev> >> [:+, :-, :/, :*].map { |x| 5.send(x, 8) }
<eval-in__> wallerdev => [13, -3, 0, 40] (https://eval.in/271687)
beef-wellington has joined #ruby
ta_ has joined #ruby
porfa has quit [Ping timeout: 245 seconds]
ych4k3r has quit [Read error: Connection reset by peer]
<odigity> Is there a way to create a Module (intended for inclusion in a class) to have private instance methods that don't get imported into the class but are still accessible by the non-private instance methods in that module?
klmlfl_ has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<apeiros_> odigity: just mark them as private
Aova has quit [Read error: Connection reset by peer]
theotherstupidgu has quit [Ping timeout: 272 seconds]
<apeiros_> works the same as methods defined as private in the class you include the module in
<odigity> apeiros_, but they'll still be accessible by instance methods in the class itself. in other words, they'll be polluting the namespace, even though they're only needed by other instance methods in the module
ych4k3r has joined #ruby
<odigity> won't they?
<apeiros_> yes
<odigity> so they're not really private to the module
kyb3r_ has joined #ruby
<apeiros_> the concept you wish for does not exist in ruby
djbkd has quit [Ping timeout: 244 seconds]
<wallerdev> just dont tell anyone about the methods, no one will know
<odigity> I'm guessing it's a concept that doesn't exist in Ruby, but I thought I'd ask, because if there was a way, it would reduce namespace pollution
patrick99e99 has quit [Ping timeout: 240 seconds]
<odigity> ok
<odigity> I'll just stick to using long descriptive method names to minimize the problem :)
Akuma has quit [Read error: Connection reset by peer]
<odigity> everyone loves method names like validate_sufficient_funds_for_membership and validate_purchaseable_start_date...
ta_ has quit [Ping timeout: 245 seconds]
<wallerdev> you could do def self. in the module, then they wont get included or called by accident
rajeshchawla has joined #ruby
lmickh has quit [Remote host closed the connection]
Aova has joined #ruby
rajeshchawla has quit [Client Quit]
zenith_ has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
The_Phoenix has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
shredding has quit [Quit: shredding]
theotherstupidgu has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
deric_skibotn has quit [Ping timeout: 245 seconds]
lioninawhat has joined #ruby
thumpba has joined #ruby
thumpba_ has quit [Remote host closed the connection]
shredding has joined #ruby
chinmay_dd has joined #ruby
fantazo has quit [Quit: Verlassend]
martinium has quit [Remote host closed the connection]
dc_ has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
ych4k3r_ has joined #ruby
galeido has joined #ruby
Fusl_ has joined #ruby
_maes_ has joined #ruby
ta_ has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
lioninawhat has quit [Ping timeout: 265 seconds]
Fusl has quit [Disconnected by services]
Fusl_ is now known as Fusl
jottr has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
quimrstorres has quit [Remote host closed the connection]
maximski has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
jottr has joined #ruby
djbkd has joined #ruby
fabrice31 has joined #ruby
failshell has joined #ruby
galeido has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
deric_skibotn has joined #ruby
reinaldob has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
klmlfl has joined #ruby
josephnd1nton has joined #ruby
galeido has joined #ruby
ta_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has joined #ruby
plashchynski has quit [Quit: plashchynski]
klmlfl has quit [Ping timeout: 264 seconds]
josephnd1nton has quit [Ping timeout: 245 seconds]
martinium has joined #ruby
martinium has joined #ruby
punkrawkR has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martinium has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
jxf has quit []
cantonic has quit [Quit: cantonic]
ta_ has quit [Ping timeout: 245 seconds]
jxf has joined #ruby
n1lo has joined #ruby
plashchynski has joined #ruby
klmlfl has joined #ruby
gfawcettpq has quit [Quit: Leaving.]
punkrawkR has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
trampi has quit [Remote host closed the connection]
paulfm_ has quit [Ping timeout: 272 seconds]
Lucky___ has joined #ruby
jottr_ has joined #ruby
aapole has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
ych4k3r_ has quit [Ping timeout: 240 seconds]
Akuma has joined #ruby
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danjordan has joined #ruby
plashchynski has quit [Quit: plashchynski]
Pharaoh2 has joined #ruby
blackoperat has quit [Ping timeout: 265 seconds]
jobewan has quit [Quit: Leaving]
alekst_ has quit []
alekst_ has joined #ruby
kobain has joined #ruby
Pharaoh2 has quit [Client Quit]
jottr has quit [Ping timeout: 244 seconds]
rodfersou has quit [Quit: leaving]
lioninawhat has joined #ruby
quimrstorres has joined #ruby
klmlfl has quit [Remote host closed the connection]
Akuma has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
agjacome has joined #ruby
Akuma has joined #ruby
kamilc__ has joined #ruby
fmcgeough has joined #ruby
klmlfl_ has joined #ruby
ych4k3r has joined #ruby
fryguy9 has quit [Quit: Leaving.]
m8 has quit [Quit: Sto andando via]
quimrstorres has quit [Remote host closed the connection]
klmlfl_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
jenrzzz has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
linuxer1 has quit [Quit: linuxer1]
nobitanobi has quit [Remote host closed the connection]
paulfm has joined #ruby
zenith_ has joined #ruby
wallerdev has joined #ruby
nobitanobi has joined #ruby
tmk1108 has joined #ruby
towski_ has joined #ruby
nanoyak has joined #ruby
nobitanobi has quit [Remote host closed the connection]
livingstn has quit [Ping timeout: 246 seconds]
cphrmky has joined #ruby
greenbagels has joined #ruby
klmlfl has joined #ruby
martinium has joined #ruby
spider-mario has joined #ruby
uptownhr has joined #ruby
failshel_ has joined #ruby
karmatr0n has quit []
Landshark753 has joined #ruby
martinium has quit [Remote host closed the connection]
Landshark753 has quit [Max SendQ exceeded]
Landshark753 has joined #ruby
chipotle has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
livingstn has joined #ruby
Landshark753 has joined #ruby
multi_io has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 246 seconds]
dc_ has joined #ruby
multi_io has joined #ruby
theotherstupidgu has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
maletor has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
ldnunes has quit [Quit: Leaving]
theotherstupidgu has joined #ruby
plashchynski has joined #ruby
ych4k3r has joined #ruby
maximski has joined #ruby
livingstn has quit [Ping timeout: 245 seconds]
lioninawhat has quit [Remote host closed the connection]
ellisTAA has quit [Quit: ellisTAA]
dspangen1erg has joined #ruby
Aova has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 264 seconds]
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
dspangenberg has quit [Ping timeout: 256 seconds]
wldcordeiro has joined #ruby
sent1nel has joined #ruby
timonv has joined #ruby
fryguy9 has joined #ruby
jenrzzz has joined #ruby
wmoxam_ is now known as wmoxam
LudicrousMango has joined #ruby
wmoxam has joined #ruby
wmoxam has quit [Changing host]
Aova has joined #ruby
iceden has joined #ruby
livingstn has joined #ruby
nobitanobi has quit [Remote host closed the connection]
shazaum has quit [Quit: Leaving]
nobitanobi has joined #ruby
maximski has quit []
djbkd has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
freerobby has quit [Quit: Leaving.]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
last_staff has quit [Remote host closed the connection]
Megtastique has quit []
livingstn has quit [Ping timeout: 265 seconds]
zachrab has quit [Remote host closed the connection]
sent1nel has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
siso has joined #ruby
thumpba_ has joined #ruby
thumpba has quit [Remote host closed the connection]
ych4k3r has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
failshel_ has quit []
terlar has quit [Ping timeout: 276 seconds]
einarj has joined #ruby
ych4k3r has joined #ruby
elaptics`away is now known as elaptics
zenith_ has quit [Ping timeout: 244 seconds]
thatslifeson_ has joined #ruby
zwer has quit [Remote host closed the connection]
zwer has joined #ruby
Megtastique has joined #ruby
davedev24_ has quit []
theotherstupidgu has quit [Ping timeout: 244 seconds]
tier has quit [Remote host closed the connection]
n1lo has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
Conner__ has quit [Ping timeout: 264 seconds]
fryguy9 has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
kostitas has joined #ruby
havenwood has joined #ruby
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
martinium has joined #ruby
martinium has joined #ruby
denym_G has quit [Ping timeout: 245 seconds]
Kharma has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
ych4k3r has joined #ruby
swgillespie has joined #ruby
reinaldob has joined #ruby
vikram_ has quit []
vikram_ has joined #ruby
blackmesa has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
tmk1108 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RubyRonin has joined #ruby
shredding has quit [Quit: shredding]
checkit has joined #ruby
randiman has joined #ruby
pika_pika has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
<RubyRonin> Greetings all! attempting to use the &&...not clear on what I'm dong wrong http://pastebin.com/NfMw3Rzb
reinaldob has quit [Ping timeout: 245 seconds]
ndjaja has joined #ruby
ponga has joined #ruby
<canton7> 1) don't use for loops 2) there are no numbers between 1 and 10 which are divisible both by 5 and 3
rajeshchawla has joined #ruby
<RubyRonin> good point. So it does,. Sorry I dropped the number down for an example.
<canton7> (`use (1..10).each do |num| ... end` or `1.upto(10) do |num| ... end`)
<RubyRonin> caton7: why not use a for loop?
<canton7> it's un-idiomatic, and has a surprising gotcha
<RubyRonin> can you provide a 1..16.each do example?
denym_OFF has joined #ruby
ta_ has joined #ruby
yfeldblum has joined #ruby
<apeiros_> RubyRonin: uh, use his 1..10 example and replace the 10 with the 16?
Peterman_ has joined #ruby
Peterman_ has quit [Remote host closed the connection]
<godd2> Hey guys, I decided I'm gonna use one language for everything I do: http://i.imgur.com/2Nf4x7X.jpg
<apeiros_> godd2: hehe, nice one
<RubyRonin> canton7 thanks
fantazo has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
<RubyRonin> apeiros_ they use that language at SpaceX
<apeiros_> RubyRonin: ?
<apeiros_> non-sequitur?
livingstn has joined #ruby
blizzy has quit [Ping timeout: 264 seconds]
<RubyRonin> apeiros_ sorry glanced at the monitor thought you posted http://i.imgur.com/2Nf4x7X.jpg
tyfighter has joined #ruby
tier has joined #ruby
tvw has joined #ruby
tier has quit [Read error: Connection reset by peer]
<pizzaops> Is there a reason why the conditional logic in this — https://gist.github.com/pizzaops/c7ea2def34c4306a0bc7 — returns `undefined local variable or method `ensurevalue'`? Ensurevalue is definitely an empty string before the loop returns.
tier has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
<pizzaops> Does ruby treat that as undefined once the loop exits or something?
<Guest94125> where's the rest?
Guest94125 is now known as graft
<graft> ^^ pizzaops
blizzy has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
<graft> i don't see ensurevalue in there
<graft> before the loop
kstuart_ has quit [Quit: WeeChat 1.1]
openscript has quit [Ping timeout: 264 seconds]
<pizzaops> It doesn't exist before the loop, I create it in the loop? Is that how that works? I have to create it before the loop or it exists only inside?
<graft> you have to create it before the loop
<pizzaops> Ah ok, I didn't know that.
<apeiros_> pizzaops: local variables defined within a block are local to that block
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shime has joined #ruby
<apeiros_> and "defined" in ruby means "are assigned to for the first time"
<pizzaops> apeiros_: but I can still set local variables that are defined before the block, inside the block?
<graft> pizzaops: yes
<apeiros_> yes
<pizzaops> w00t ok thanks
<apeiros_> blocks close over the lexical context
livingstn has quit [Client Quit]
ych4k3r has joined #ruby
shredding has joined #ruby
thumpba_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
shredding has quit [Client Quit]
CustosLimen has quit [Quit: Leaving]
rajeshchawla has quit [Remote host closed the connection]
duggiefresh has quit []
JDiPierro has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
razieliyo has quit [Ping timeout: 264 seconds]
ekem_`d`_mekekem is now known as ekem_`d`_meke
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rajeshchawla has joined #ruby
yellowgh0st has joined #ruby
m8 has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
bdamos has quit [Remote host closed the connection]
claw__ has quit [Ping timeout: 240 seconds]
theotherstupidgu has joined #ruby
plashchynski has quit [Quit: plashchynski]
claw__ has joined #ruby
martinium has quit []
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Patabugen has joined #ruby
eka has joined #ruby
maximski has joined #ruby
blizzy has quit [Ping timeout: 244 seconds]
raphaelss has quit [Quit: leaving]
claw___ has joined #ruby
wallerdev has joined #ruby
shredding has joined #ruby
shredding has quit [Client Quit]
claw__ has quit [Ping timeout: 276 seconds]
siso has quit [Quit: siso]
uptownhr has quit [Quit: uptownhr]
cantonic has joined #ruby
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
tier has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
tier has joined #ruby
tunaCanBruh has quit [Ping timeout: 265 seconds]
ellisTAA has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
shime has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
copy0401 has quit []
blizzy has joined #ruby
copy0401 has joined #ruby
rajeshch_ has joined #ruby
average has joined #ruby
rajeshchawla has quit [Ping timeout: 256 seconds]
pika_pika has joined #ruby
fantazo has quit [Quit: Verlassend]
djbkd has joined #ruby
Aova has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
JDiPierro has joined #ruby
ta_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
pontiki has joined #ruby
arya_ching_ has quit [Ping timeout: 240 seconds]
ych4k3r has quit [Read error: Connection reset by peer]
Aova has joined #ruby
leslie has joined #ruby
leslie is now known as Guest56771
x1337807x has joined #ruby
mrmargolis has joined #ruby
GarbagePailKid has quit [Quit: leaving]
fabrice31 has joined #ruby
ych4k3r has joined #ruby
naftilos76 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Patabugen has quit [Ping timeout: 255 seconds]
ndjaja has quit [Quit: ndjaja]
nanoyak has joined #ruby
freerobby has joined #ruby
zachrab has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has quit [Ping timeout: 276 seconds]
thumpba has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
josephndenton has quit [Ping timeout: 245 seconds]
Guest56771 is now known as lesleh
lesleh has quit [Changing host]
lesleh has joined #ruby
x1337807x has joined #ruby
dc_ has quit [Remote host closed the connection]
josephndenton has joined #ruby
zachrab has quit [Ping timeout: 255 seconds]
cpruitt has quit [Quit: cpruitt]
patrick99e99 has quit [Quit: Lost terminal]
rajeshch_ has quit [Remote host closed the connection]
paulfm_ has joined #ruby
quimrstorres has joined #ruby
shredding has quit [Quit: shredding]
cpruitt has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
Wolfram74 has joined #ruby
<Wolfram74> I have a regex problem
thumpba has joined #ruby
paulfm has quit [Ping timeout: 265 seconds]
<Wolfram74> I'm trying to parse a potentially large string into a series of arrays
thumpba has quit [Remote host closed the connection]
<Wolfram74> I though the regex would work like this, but i'm pretty new at it
Hijiri has quit [Quit: WeeChat 1.0.1]
tunaCanBruh has joined #ruby
zachrab has joined #ruby
Channel6 has joined #ruby
swgillespie has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
randiman has quit [Quit: (null)]
<wallerdev> >> 'afm100ajdep1000'.scan(/((?:\w{2}+?))([pm])(\d+)/)
<eval-in__> wallerdev => [["af", "m", "100"], ["ajde", "p", "1000"]] (https://eval.in/271884)
<wallerdev> idk
<wallerdev> lol
yellowgh0st has quit [Quit: yellowgh0st]
paulfm_ has quit [Quit: Goodbye]
tier has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
<Wolfram74> hrmmm
<Wolfram74> oh, a ? for the whole expression?
<wallerdev> just non greedy
endash has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
<Wolfram74> hrmmm
<wallerdev> + or * followed by ? makes them not greedy
JDiPierro has quit [Remote host closed the connection]
<Wolfram74> rubular doesn't recognize the :
<wallerdev> oh that just means dont save it in a capture group
freerobby has quit [Quit: Leaving.]
zachrab has quit [Remote host closed the connection]
chrishough has joined #ruby
<apeiros_> rubular should
<endash> Is there a built-in inverse of Module#included_modules, e.g. a list of classes or modules that include the given mod, as opposed to a list of modules that are included by the given mod
<apeiros_> just checked. (?:…) works fine in rubular
maximski has quit []
Megtastique has quit []
Morkel has quit [Quit: Morkel]
<apeiros_> endash: not really. you can use ObjectSpace.each_object(Class). but for obvious reasons, you should only use this for development/debugging
CustosLimen has joined #ruby
<endash> Gotcha. Since I'm implementing the module myself I can keep track via #included, so no biggie
<pontiki> is there a preferred idiom for making a method both an instance method and a class method?
<wallerdev> does objectspace.each_object add new objects created to it if you create objects in the block, so you could make it run forever?
<wallerdev> call the class method from the instance method i guess
<wallerdev> seems kinda pointless
<pontiki> saves on doing crap like this: self.class.method_name
fmcgeough has quit [Quit: fmcgeough]
thumpba has joined #ruby
shredding has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
lesleh has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
LudicrousMango has quit [Remote host closed the connection]
thumpba_ has joined #ruby
LudicrousMango has joined #ruby
skj3gg has quit [Quit: welp, see you later.]
zzzbra has joined #ruby
<apeiros_> pontiki: meta programming to the rescue!
lioninawhat has joined #ruby
james_ has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
james_ is now known as Guest94035
Guest94035 is now known as KingJames
KingJames is now known as DukeJames
LudicrousMango has quit [Ping timeout: 255 seconds]
<ellisTAA> i’m trying to rescue an exception … and i’m getting this error message “class or module required for rescue clause> with backtrace:” do i need to require something if i’m going to use rescue?
Wolfram74 has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
Loplin has joined #ruby
decoponio has joined #ruby
<Loplin> Hello. I had some code, 'eval(IO.read(machine_file), binding)' that I decided to move to a little function, but realized that the new 'binding' was for inside of the function.
<Loplin> Is there a way to refer to the caller's binding without explicitly passing it, or to make my function behave more like a macro?
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
thumpba has joined #ruby
<Loplin> (not a ruby programmer, so in case ruby macros are something else, I mean for something like a C macro)
dfinninger has quit [Remote host closed the connection]
DadoCe has joined #ruby
thumpba__ has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
klmlfl has quit [Ping timeout: 256 seconds]
nanoyak has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
<wallerdev> ellisTAA: you probably have the syntax wrong or something
<wallerdev> >> begin; rescue; end
<eval-in__> wallerdev => nil (https://eval.in/271923)
rajeshchawla has joined #ruby
<ellisTAA> wallerdev: ty
djbkd_ has joined #ruby
Akuma has joined #ruby
beef-wellington has joined #ruby
<apeiros_> Loplin: not without hacks (there's a binding_of_caller gem)
thumpba_ has quit [Ping timeout: 240 seconds]
Alayde has left #ruby ["WeeChat 1.0"]
aclearman037 has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
lkba_ has joined #ruby
cphrmky has quit [Read error: Connection reset by peer]
thumpba has quit [Ping timeout: 265 seconds]
DadoCe has quit [Ping timeout: 272 seconds]
zachrab has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
theotherstupidgu has quit [Ping timeout: 244 seconds]
fmcgeough has joined #ruby
theotherstupidgu has joined #ruby
Renich has joined #ruby
openscript has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
djbkd_ has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Read error: No route to host]
bootstrappm has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
brb3 has quit [Quit: <.<]
jottr_ has quit [Quit: WeeChat 1.1.1]
agent_white has joined #ruby
<agent_white> Afternoon!
<apeiros_> night!
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
thumpba has joined #ruby
oleo has quit [Ping timeout: 264 seconds]
tyfighter has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
tyfighter has joined #ruby
<wallerdev> afternoon :)
<wallerdev> west coast best coast
openscript has quit [Ping timeout: 264 seconds]
demophoon has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
Pharaoh2 has quit [Quit: Byebye]
bootstrappm has quit [Quit: bootstrappm]
thumpba has quit [Remote host closed the connection]
bootstrappm has joined #ruby
dstarh has joined #ruby
thumpba__ has quit [Ping timeout: 264 seconds]
thumpba has joined #ruby
yeticry has joined #ruby
quimrstorres has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zzzbra has quit [Ping timeout: 255 seconds]
mrmargolis has quit [Remote host closed the connection]
bootstrappm has quit [Client Quit]
bootstrappm has joined #ruby
DadoCe has joined #ruby
Aova has quit [Read error: Connection reset by peer]
oleo has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
anibara has quit [Quit: anibara]
testcore has quit [Ping timeout: 250 seconds]
jcdesimp has joined #ruby
cphrmky has joined #ruby
Dolphi has joined #ruby
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
fmcgeough has quit [Quit: fmcgeough]
thumpba has quit [Ping timeout: 264 seconds]
Aova has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
it0a has quit [Quit: WeeChat 1.1.1]
<ellisTAA> it’s my first time working with exceptions, but i’m not sure if the problem i’m trying to pass is actually an exception because it uses the expect … can someone help me understand what the spec is saying: https://gist.github.com/ellisTAA/96b11be7258cb5327517#file-spec-rb-L74-L90
nanoyak has joined #ruby
mahlon has quit [Quit: nine foot long outhouse ladle]
nanoyak has quit [Client Quit]
siso has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
nanoyak has joined #ruby
enebo has quit [Quit: enebo]
tercenya_ is now known as tercenya
quimrstorres has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
theotherstupidgu has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
nanoyak has quit [Client Quit]
LouisRoR has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
tunaCanBruh has quit [Ping timeout: 272 seconds]
<mitchellhenke> @ellisTAA don't remember exactly, but should raise_error take an Exception class, not a string?
quimrstorres has quit [Ping timeout: 244 seconds]
shredding has quit [Quit: shredding]
mitt3ns has joined #ruby
<ellisTAA> mitchellhenke: i didn’t write the test
mitt3ns has left #ruby [#ruby]
<ellisTAA> so i’m not sure
theotherstupidgu has joined #ruby
nanoyak has joined #ruby
SolarSailor has quit [Max SendQ exceeded]
kaspertidemann has quit []
tunaCanBruh has joined #ruby
beef-wellington has quit [Ping timeout: 256 seconds]
<mitchellhenke> looks like it holds an array, so I'm guessing it's supposed to be raising an error related to the empty array
blizzy has quit [Ping timeout: 244 seconds]
chrishough has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
nanoyak has quit [Client Quit]
<ellisTAA> my understanding is the empty array should return “calculator is empty” but i’m not sure if i’m dealing with exceptions ...
nanoyak has joined #ruby
cphrmky has left #ruby ["Textual IRC Client: www.textualapp.com"]
cphrmky has joined #ruby
chrishough has joined #ruby
<havenwood> ellisTAA: expect { raise "calculator is empty" }.to raise_error "calculator is empty"
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chrishough has quit [Read error: Connection reset by peer]
<ellisTAA> what does expect mean?
chrishough has joined #ruby
blizzy has joined #ruby
<average> ellisTAA: it depends on your expectations
nanoyak has quit [Client Quit]
rfi has joined #ruby
<havenwood> ellisTAA: You expect `raise "calculator is empty" to raise with the message `"calculator is empty"`.
<ellisTAA> ahh i see
<havenwood> ellisTAA: Have you read up on exception in Ruby and the raise_error matcher in RSpec?
<havenwood> ellisTAA: It reads like English, no?
<havenwood> expect { raise "calculator is empty" }.to raise_error "calculator is empty"
<ellisTAA> i haven’t read about the raise_error match in RSpec but i’m raeding about exceptions now. this spec is telling me to rescue an exception?
timonv has joined #ruby
<havenwood> no
<average> sperare { aumento "calcolatrice e vuoto" }.per aumentare_errore "calcolatrice e vuoto"
<average> havenwood: maybe he's italian
<havenwood> it expects, ...well it says what it expects--that calling a particular method will raise a particular error.
<ellisTAA> so it’s saying calculator.plus should raise the error “calculator is empty”?
theotherstupidgu has quit [Ping timeout: 265 seconds]
<havenwood> ellisTAA: that is how it reads
<havenwood> in English
<ellisTAA> ok gotcha
aboudreault has quit [Quit: damn]
<ellisTAA> so what does it want me to do? based on what that says it doesn’t seem to be asking me to do anything? or is it asking me to return that message when calculator.plus raises an error?
<ellisTAA> havenwood: ty
<havenwood> ellisTAA: when you call the method it expects an error to be raised, like it says
theotherstupidgu has joined #ruby
<ellisTAA> and it wants me to define the error that is returned?
dotix has quit [Ping timeout: 256 seconds]
<havenwood> ellisTAA: Study Exceptions in Ruby and the `raise_error` matcher in RSpec for enlightenment.
<ellisTAA> cool i will
elaptics is now known as elaptics`away
bootstrappm has quit [Quit: bootstrappm]
<rfi> win 6
<havenwood> >> >> 'win 6'.next
<eval-in__> havenwood => /tmp/execpad-d3c2668fb01b/source-d3c2668fb01b:2: syntax error, unexpected >> ... (https://eval.in/271976)
<havenwood> :O
<havenwood> >> 'win 6'.next
<eval-in__> havenwood => "win 7" (https://eval.in/271977)
pdoherty has quit [Remote host closed the connection]
jerematic has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 244 seconds]
mrmargolis has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<tunaCanBruh> "something".capitalize
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
maximski has joined #ruby
Pharaoh2 has joined #ruby
maximski has quit [Max SendQ exceeded]
bdamos has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
zachrab has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
mitchellhenke has joined #ruby
bootstrappm has joined #ruby
blackmes1 has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
lioninawhat has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
beef-wellington has joined #ruby
maximski has joined #ruby
shime has joined #ruby
codecop has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmsimha has joined #ruby
hiyosi has joined #ruby
Hijiri has joined #ruby
maximski has joined #ruby
lioninawhat has joined #ruby
maximski has quit [Max SendQ exceeded]
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
nanoyak has joined #ruby
maximski has quit [Max SendQ exceeded]
siso has quit [Quit: siso]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 272 seconds]
mitchellhenke has quit [Client Quit]
maximski has joined #ruby
kostitas has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
ta_ has joined #ruby
maximski has joined #ruby
jenrzzz has joined #ruby
maximski has quit [Max SendQ exceeded]
wallerdev has quit [Ping timeout: 265 seconds]
silkfox has joined #ruby
beef-wellington has quit [Ping timeout: 255 seconds]
Jetchisel has quit [Ping timeout: 244 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 240 seconds]
<agent_white> >> "o_o".capitalize
<eval-in__> agent_white => "O_o" (https://eval.in/272004)
ta_ has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
<odigity> ruby-doc.org does a great job of providing docs for the core class and modules, but there's nothing for the language itself. trying to understand the rescue keyword better...
nanoyak has joined #ruby
TheNumb has quit [Quit: ZNC - http://znc.in]
<atmosx> odigity: google it
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> odigity: it's called "exception handling"
<odigity> I'm familiar with the concept. What I'm trying to find is an authoritative ruby reference.
ta_ has joined #ruby
<ellisTAA> havenwood: i’m getting an error message, but can you tell me if i’m on the right track? https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L13-L20
<atmosx> that's 1.9, current version is light years ahead 2.2
<agent_white> The ruby documentation is sub-par. Best is to find a blog post :)
<odigity> atmosx, I know. I'm on 1.9 at the moment. Going to upgrade in a few weeks.
<atmosx> odigity: yearh ruby official docs suck unfortunately :-(
juanpablo___ has quit [Quit: (null)]
<odigity> that's unfortunate
<havenwood> ellisTAA: Nope, that's not the right track.
<atmosx> odigity: okay, good luck. Yeah it is.
<ellisTAA> :(
juanpablo___ has joined #ruby
DadoCe has quit [Remote host closed the connection]
<ellisTAA> havenwood: thanks
nobitanobi has quit [Remote host closed the connection]
zachrab has joined #ruby
eka has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
ptrrr has joined #ruby
<havenwood> ellisTAA: in irb type: raise "calculator is empty"
TheNumb has joined #ruby
TheNumb has quit [Changing host]
TheNumb has joined #ruby
nanoyak has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
<havenwood> ellisTAA: what does it say?
<ellisTAA> havewood: RuntimeError: calculator is empty
<ellisTAA> in quotes
ghostmoth has joined #ruby
<havenwood> ellisTAA: You've raised a RuntimeError with the message "calculator is empty".
<ellisTAA> ok ..
djbkd has quit [Remote host closed the connection]
<havenwood> ellisTAA: now in irb try rescuing the error you raised: raise "calculator is empty" rescue "whew, saved!"
ta_ has quit [Ping timeout: 276 seconds]
graft has quit [Quit: Lost terminal]
<ellisTAA> ahh r u saying the type of error i use in my code is wrong?
ptrrr has quit [Client Quit]
x77686d has quit [Quit: x77686d]
riotjone_ has joined #ruby
djbkd has joined #ruby
<havenwood> ellisTAA: For starters, the test is asking you to raise an error and you're trying to rescue an unrelated class of errors.
juanpablo___ has quit [Ping timeout: 264 seconds]
<ellisTAA> result = “whew, saved!"
pontiki has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<havenwood> ellisTAA: so you wrote code that would rescue NoMethodErrors inside your method, when the test asks for an error to be raised when the method is called a certain way.
<ellisTAA> ahhh i see. what i read online told me to use rescue for exceptions ..
jlast has quit [Remote host closed the connection]
<havenwood> ellisTAA: Read more about exceptions.
DrShoggoth has quit [Quit: Leaving]
nobitanobi has joined #ruby
<ellisTAA> ok
<havenwood> ellisTAA: You can raise them. You can rescue them. The two are not the same.
jlast has joined #ruby
aboudreault has joined #ruby
<ellisTAA> i see. do u know a good source about exceptions? the one’s i’ve come across seem to suck
<havenwood> ellisTAA: Read a whole book on Ruby. :)
riotjones has quit [Ping timeout: 240 seconds]
<ellisTAA> ha. peter cooper’s book doesn’t talk about exceptions i think ...
<ellisTAA> maybe it does ..
blackmes1 has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
_honning_ has joined #ruby
mrmargolis has quit [Remote host closed the connection]
<ellisTAA> cool ty
diegoviola has joined #ruby
lessless has joined #ruby
yellowgh0st has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
ellisTAA has quit [Quit: ellisTAA]
jlast has quit [Ping timeout: 245 seconds]
shellfu has quit [Remote host closed the connection]
aboudreault has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
Aova has joined #ruby
thumpba_ has quit [Ping timeout: 276 seconds]
asmodlol has joined #ruby
asmodlol has quit [Remote host closed the connection]
nanoyak has quit [Remote host closed the connection]
enterprisedc has quit [Quit: enterprisedc]
nanoyak has joined #ruby
wallerdev has joined #ruby
djbkd has quit [Remote host closed the connection]
tvw has quit []
enterprisedc has joined #ruby
mahlon has joined #ruby
thumpba has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
dling` is now known as dling
shum1 has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
aboudreault has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
cpruitt has quit [Quit: cpruitt]
crazed has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
tunaCanBruh has quit [Ping timeout: 265 seconds]
phoo1234567 has quit [Quit: Leaving]
crazed has joined #ruby
longfeet has joined #ruby
peterhu has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
peterhu has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
mleung has joined #ruby
anarang has joined #ruby
Takle has joined #ruby
anarang has quit [Client Quit]
cphrmky has quit [Read error: Connection reset by peer]
aboudreault has quit [Quit: damn]
aclearman037 has joined #ruby
ta_ has joined #ruby
ych4k3r has joined #ruby
cjim has quit [Quit: (null)]
m8 has quit [Quit: Sto andando via]
rajeshchawla has quit []
agent_wh1te has joined #ruby
PaulCape_ has joined #ruby
RandyT has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
<zenspider> flay version 2.6.1 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2015/01/flay-version-2-6-1-has-been-released.html
ta_ has quit [Ping timeout: 276 seconds]
RandyT has joined #ruby
tmtwd has joined #ruby
Dolphi has quit [Ping timeout: 264 seconds]
agent_white has quit [Ping timeout: 245 seconds]
PaulCapestany has quit [Ping timeout: 245 seconds]
<zenspider> flog version 4.3.2 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2015/01/flog-version-4-3-2-has-been-released.html
jottr has joined #ruby
scripore has joined #ruby
aapole has quit [Ping timeout: 264 seconds]
Hijiri has quit [Quit: stuff]
ellisTAA has joined #ruby
djbkd has joined #ruby
_honning_ has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
waynerade has quit [Ping timeout: 276 seconds]
nobitanobi has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]