havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
<Radar> al2o3-cr: ban must've expired. It won't happen again.
Tempesta has quit [Ping timeout: 240 seconds]
<al2o3-cr> Radar: Ok.
kies has joined #ruby
nofxx has quit [Remote host closed the connection]
<al2o3-cr> Radar: first class, if you know what i mean.
solocshaw has quit [Ping timeout: 250 seconds]
danostrowski has joined #ruby
<al2o3-cr> Radar: mind a PM?
<Radar> al2o3-cr: go ahead
Akagi201 has joined #ruby
danostrowski has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
chouhoulis has joined #ruby
CoderPuppy has quit [Ping timeout: 246 seconds]
cpup has joined #ruby
Akagi201 has quit [Ping timeout: 250 seconds]
aryanayra has joined #ruby
mattwashere has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
jancel has quit [Ping timeout: 272 seconds]
roamingdog has quit [Remote host closed the connection]
jackjackdripper1 has quit [Read error: Connection reset by peer]
zapata has quit [Ping timeout: 260 seconds]
aryanayra has quit [Ping timeout: 250 seconds]
dkam has quit [Quit: Be back later ...]
blackmesa has quit [Quit: WeeChat 1.5]
gnufied has quit [Quit: Leaving]
vikaton has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
Rickmast_ has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
gnarld_ is now known as nug
roamingdog has joined #ruby
aupadhye has joined #ruby
mesamoo has joined #ruby
Rickmasta has joined #ruby
nat2610 has joined #ruby
whathappens has quit [Quit: Leaving...]
blaxter has quit [Read error: Connection reset by peer]
zapata has joined #ruby
mleung has quit [Quit: mleung]
nankyokusei has joined #ruby
lightt has joined #ruby
lightt has quit [Max SendQ exceeded]
lightt has joined #ruby
lightt has quit [Client Quit]
<shevy> al2o3-cr I use ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]; in general these days I can use the latest official ruby release without problem
<shevy> oddly enough, after the 1.8.x to 1.9.x to 2.x, I actually don't really have any need for multiple different ruby versions. I got sorta complacent though, my code makes use of new syntax-featurs too, like foo: :bar for hashes. Sometimes I think that this is actually more readable than the => or perhaps just shorter - I use => too though
nankyokusei has quit [Ping timeout: 276 seconds]
<al2o3-cr> shevy: totally agree if you do
jhack has quit [Quit: jhack]
CloCkWeRX has joined #ruby
martee has quit [Quit: martee]
maletor3 has joined #ruby
nat2610 has quit [Quit: Leaving.]
GodFather has quit [Ping timeout: 258 seconds]
<Radar> I use { symbol: value } where I can, but I find oftentimes switching back to "
<Radar> "string" => value when parsing stuff like JSON
RegulationD has joined #ruby
roamingdog has quit [Remote host closed the connection]
nat2610 has joined #ruby
idefine has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
cd83x has joined #ruby
maletor3 has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
ocbtec has quit [Quit: leaving]
<Phaenix> How could I improve this implementation so I don't need to provide multiple fields? https://gist.github.com/phaenix/f0508014f6e95f517c21463e5b4d0fc7
RegulationD has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
cd83x has quit [Ping timeout: 244 seconds]
roamingdog has quit [Remote host closed the connection]
ReK2 has quit [Remote host closed the connection]
hahuang61 has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
nettoweb has joined #ruby
ReK2 has joined #ruby
hahuang61 has quit [Ping timeout: 272 seconds]
tenderlo_ has joined #ruby
rodfersou has quit [Quit: leaving]
<Radar> ?rails Phaenix
<ruby[bot]> Phaenix: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Phaenix> Kay, cheers!
tenderlove has quit [Ping timeout: 244 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frem_ has quit [Quit: Connection closed for inactivity]
lightt has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
solocshaw has joined #ruby
agent_white has joined #ruby
roamingdog has quit [Remote host closed the connection]
<agent_white> Evenin'
<shevy> agent white is in the house
<agent_white> \o/ woopwoop
roamingdog has joined #ruby
<al2o3-cr> agent_white: big bird calling big bird
<agent_white> al2o3-cr: Droppin' dinner in 2
douglasc_ has joined #ruby
* agent_white doesn't know army things
<al2o3-cr> big bird only eats seed
martee has joined #ruby
douglascorrea has quit [Ping timeout: 260 seconds]
lightt has quit [Remote host closed the connection]
JJM has joined #ruby
roamingdog has quit [Remote host closed the connection]
martee has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
JJM has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
jrafanie has joined #ruby
djbkd has joined #ruby
douglasc_ has quit [Ping timeout: 276 seconds]
Ropeney has joined #ruby
<al2o3-cr> >> require 'fiddle'; x = "*"*23; Fiddle::Pointer[Fiddle.dlwrap(x)][16,x.size]
<ruby[bot]> al2o3-cr: # => "\x17\x00\x00\x00e(\x90 \x90\x80\x12A\x11\x00\x00\x00xI\x19A\x11\x00\x00" (https://eval.in/581697)
<al2o3-cr> hmm. 32bit
amclain has quit [Quit: Leaving]
ramfjord has joined #ruby
roamingdog has joined #ruby
uberbrodt has joined #ruby
roamingdog has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
Spami_ has quit [Quit: This computer has gone to sleep]
rafadc has joined #ruby
nat2610 has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Spami_ has joined #ruby
tildes_ has quit [Ping timeout: 264 seconds]
jancel has joined #ruby
roamingdog has joined #ruby
rafadc has quit [Ping timeout: 244 seconds]
electrostat has quit [Remote host closed the connection]
jenrzzz has joined #ruby
roamingdog has quit [Remote host closed the connection]
infinitone has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd83x has joined #ruby
jeyraof has joined #ruby
jancel has quit [Ping timeout: 240 seconds]
diegoaguilar has joined #ruby
electrostat has joined #ruby
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
snockerton has quit [Quit: Leaving.]
arlek has joined #ruby
maletor3 has joined #ruby
Yiota has joined #ruby
roamingdog has joined #ruby
karmatr0n has joined #ruby
devbug has joined #ruby
cd83x has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby
hugoxrosa has quit [Ping timeout: 272 seconds]
maletor3 has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
Spami_ has joined #ruby
Spami_ has quit [Client Quit]
infinitone has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
agent_white is now known as agent__
cd83x has joined #ruby
davedev2_ has quit [Ping timeout: 260 seconds]
agent__ is now known as _agent
_agent is now known as agent_white
infinitone has quit [Max SendQ exceeded]
flashpoint9 has joined #ruby
Akagi201 has joined #ruby
nat2610 has quit [Quit: Leaving.]
davedev24 has joined #ruby
linc01n_ has quit [Quit: - Bye]
rkazak has joined #ruby
ssiris has quit [Quit: End of Line]
karmatr0n has quit [Ping timeout: 276 seconds]
<jphase> Radar: I seem to have forgotten to bookmark the link you gave me to your book the other day. Help a brother out?
CloCkWeRX has left #ruby [#ruby]
<jphase> Radar: thank you sir
<jphase> sir/maam/gender neutral
c355e3b has quit [Quit: Connection closed for inactivity]
der-landgraf has joined #ruby
jerematic has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
mattwashere has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
gtsai has joined #ruby
Vingador_ has joined #ruby
jphase has quit [Remote host closed the connection]
<benzrf> :)
Vingador has quit [Ping timeout: 260 seconds]
arlek has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has joined #ruby
jphase has joined #ruby
watersoul has quit [Remote host closed the connection]
vikaton has quit [Quit: Connection closed for inactivity]
Devalo has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: My people need me...]
watersoul has joined #ruby
watersoul has quit [Max SendQ exceeded]
jrafanie has joined #ruby
jaguarmagenta has joined #ruby
SilverKey has joined #ruby
watersoul has joined #ruby
snockerton has joined #ruby
nankyokusei has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
rkazak has quit [Quit: Sleep.....ing....]
JesseH has quit [Quit: Leaving]
nat2610 has joined #ruby
gtsai has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
czerasz has quit [Ping timeout: 252 seconds]
maletor3 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord_ has joined #ruby
sorah has quit [Ping timeout: 258 seconds]
nat2610 has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 244 seconds]
gtsai has joined #ruby
maletor3 has quit [Ping timeout: 272 seconds]
kraken has joined #ruby
kraken is now known as kraken_
ramfjord_ has quit [Ping timeout: 244 seconds]
<kraken_> When do you guys use a double space and when do you guys use tabs? Do you use double space for methods and tabs for conditionals and for loops?
Eiam_ has joined #ruby
arescorpio has joined #ruby
nat2610 has joined #ruby
<jphase> ?tabs kraken_
hahuang61 has joined #ruby
<ruby[bot]> kraken_: Ruby community standards recommend using 2 spaces as indentation (see https://github.com/bbatsov/ruby-style-guide#spaces-indentation and https://ukupat.github.io/tabs-or-spaces/).
<kraken_> ah so 2 spacse
crystal77 has joined #ruby
RobertBirnie has quit [Ping timeout: 250 seconds]
chip__ has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kraken_> gracias!
kraken_ has quit [Quit: Leaving]
nat2610 has quit [Client Quit]
hahuang61 has quit [Ping timeout: 258 seconds]
sorah has joined #ruby
scottschecter has quit [Remote host closed the connection]
<jnoob22> Weird thing I've found .... should 2.2.0 be 3 times faster than 2.3.1? my script is only going through a demo of array methods with a very small size array but should it be that much faster going over the same code?
arescorpio has quit [Quit: Leaving.]
scottschecter has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
Cohedrin has joined #ruby
|meta has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
braincrash has joined #ruby
yfeldblum has quit [Remote host closed the connection]
idefine has joined #ruby
yfeldblum has joined #ruby
launch has joined #ruby
nat2610 has joined #ruby
k3rn31 has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
idefine has quit [Read error: Connection reset by peer]
launch has quit [Quit: leaving]
chouhoulis has joined #ruby
floatingpoint has joined #ruby
arlek has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoz has joined #ruby
nat2610 has quit [Quit: Leaving.]
crystal77 has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
domgetter has joined #ruby
<Radar> jnoob22: no that shouldn't be the case at all. Do you have some example code?
rafadc has joined #ruby
chipotle has joined #ruby
davedev24 has quit [Remote host closed the connection]
rafadc has quit [Ping timeout: 264 seconds]
maletor3 has joined #ruby
jancel has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 244 seconds]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
<jnoob22> Radar, yeah just a sec... ill post on a paste bin
<jnoob22> you guys here have one you prefer?
aries_liuxueyang has joined #ruby
<Radar> ?gist jnoob22
<ruby[bot]> jnoob22: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
idefine has joined #ruby
<jnoob22> Radar, how about this -> http://paste.ofcode.org/TmtdqGiviJ5iU9JMap3YjM
<jnoob22> Radar, let me get the versions for you
<jnoob22> $ ruby --version
<jnoob22> ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
<jnoob22> $ ruby2 --version
<jnoob22> ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
maletor3 has quit [Ping timeout: 252 seconds]
nat2610 has joined #ruby
<Radar> jnoob22: And how are you timing it?
Corrosive__ has joined #ruby
<jnoob22> 2.2.0 is faster by a longshot on my laptop
<jnoob22> about 3x time faster
AnoHito_ has joined #ruby
<jnoob22> just using Linux `time`
<Radar> right
chouhoul_ has joined #ruby
<Radar> What output do you see?
<jnoob22> just a sec
<Radar> on 2.2.3, this is what I see: ruby jnoob.rb 0.04s user 0.01s system 93% cpu 0.051 total
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jnoob22> this is ... 2.3.1 ...
<jnoob22> real0m0.191s
<jnoob22> user0m0.103s
<jnoob22> sys0m0.094s
beilabs has joined #ruby
<Radar> On 2.3.1, I see this: ruby jnoob.rb 0.06s user 0.01s system 94% cpu 0.076 total
Vingador has joined #ruby
<jnoob22> this is 2.2.0 ...
<jnoob22> real0m0.071s
<jnoob22> user0m0.064s
<jnoob22> sys0m0.004s
Seich has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<Radar> Yeah, I can see this code running about 0.026 faster under Ruby 2.2.3 than Ruby 2.3.1 on my machine.
<Radar> I'd advise you to file a bug about it on https://bugs.ruby-lang.org/
chouhoulis has quit [Ping timeout: 260 seconds]
<jnoob22> when I saw the 0.071 compared to a very equal python script at .200, I was impressed since I'm more of a Python guy
<jnoob22> but the .200 for ruby 2.3.1, i thought there was something very odd.
yfeldblum has quit [Ping timeout: 260 seconds]
AnoHito has quit [Ping timeout: 260 seconds]
<jnoob22> Radar, you think that's unexpected behavior?
Vingador_ has quit [Ping timeout: 260 seconds]
Corrosive_ has quit [Ping timeout: 260 seconds]
<Radar> jnoob22: yes I think it is
aries_liuxueyang has quit [Ping timeout: 272 seconds]
<Radar> Ruby should be getting faster, not slower!
aries_liuxueyang has joined #ruby
Seich has joined #ruby
gix has quit [Ping timeout: 272 seconds]
<jnoob22> yeah my thoughts too .... have been looking through release notes to see if there was possibly some new functionality in array methods to account for this but haven't seen anything even close to compelling yet.
<jnoob22> thanks much for the sanity check.
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Radar> np
freerobby has quit [Quit: Leaving.]
yfeldblum has joined #ruby
jancel has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
matp has quit [Remote host closed the connection]
gix has joined #ruby
karmatr0n has joined #ruby
SilverKey has quit [Quit: Cheerio!]
karmatr0n has quit [Ping timeout: 258 seconds]
nando293921 has joined #ruby
<jnoob22> Radar, there we go -> https://bugs.ruby-lang.org/issues/12453
Noxilex has quit [Ping timeout: 250 seconds]
snsei has joined #ruby
<Radar> jnoob22: great, thanks :)
kareeoleez has joined #ruby
nat2610 has quit [Quit: Leaving.]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JesseH has joined #ruby
Vingador has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
craigp has quit [Ping timeout: 250 seconds]
ketherah has joined #ruby
matp has joined #ruby
<jnoob22> Is there a Ruby dev channel by any chance?
nando293921 has quit [Ping timeout: 264 seconds]
yfeldblu_ has joined #ruby
nat2610 has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
scepticulous has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AnoHito_ has quit [Read error: Connection reset by peer]
Sammichmaker has quit [Read error: Connection reset by peer]
AnoHito_ has joined #ruby
CrazyEddy has quit [Read error: Connection reset by peer]
monoprotic has quit [Read error: Connection reset by peer]
nanoz has quit [Quit: <3]
monoprotic has joined #ruby
monoprotic has quit [Changing host]
monoprotic has joined #ruby
grassass has joined #ruby
shortdudey123 has quit [Ping timeout: 260 seconds]
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
maletor has joined #ruby
finisherr has quit [Read error: Connection reset by peer]
finisherr has joined #ruby
beilabs has quit [Ping timeout: 250 seconds]
neanderslob has joined #ruby
hinbody has quit [Ping timeout: 250 seconds]
mg^ has quit [Ping timeout: 250 seconds]
beilabs has joined #ruby
jnoob22 has quit [Ping timeout: 272 seconds]
shortdudey123 has joined #ruby
sk_0 has quit [Remote host closed the connection]
hinbody has joined #ruby
sk_0 has joined #ruby
mg^ has joined #ruby
<al2o3-cr> ~?
jnoob22 has joined #ruby
tax has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
nat2610 has quit [Quit: Leaving.]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nat2610 has joined #ruby
mattwashere has quit [Remote host closed the connection]
SpikeMaster has joined #ruby
djbkd has joined #ruby
elifoster has joined #ruby
SpikeMaster has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
nankyokusei has joined #ruby
pawnbox has joined #ruby
k3rn31 has joined #ruby
JakFrist has joined #ruby
davedev24 has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
pat has quit [Remote host closed the connection]
cajone has left #ruby [#ruby]
beilabs has quit [Ping timeout: 276 seconds]
maletor3 has joined #ruby
davedev24 has quit [Ping timeout: 272 seconds]
hahuang61 has joined #ruby
CorOne has joined #ruby
RegulationD has joined #ruby
<agent_white> jnoob22: I don't believe so. Mailing lists/user groups are your closest bet to that. I _thought_ #ruby-lang was for that, but apparently it's invite-only now.
Corrosive__ has quit [Ping timeout: 244 seconds]
beilabs has joined #ruby
maletor3 has quit [Ping timeout: 240 seconds]
bobbycvi_ has quit [Quit: ...]
hahuang61 has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
Coldblackice has joined #ruby
<jnoob22> np, thanks agent_white
ur5us has quit [Remote host closed the connection]
tax has joined #ruby
jphase has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
BlackHatJack has quit [Ping timeout: 260 seconds]
idefine has quit [Remote host closed the connection]
nomadic has quit [Quit: -bye-]
solocshaw has quit [Ping timeout: 258 seconds]
cd83x has quit [Remote host closed the connection]
LoneHermit has joined #ruby
karmatr0n has joined #ruby
nomadic has joined #ruby
nomadic has quit [Client Quit]
jancel has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
nickjj_ has joined #ruby
idefine has joined #ruby
nickjj has quit [Ping timeout: 252 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
ledestin has joined #ruby
craigp has joined #ruby
bluOxigen has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Remote host closed the connection]
arlek has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
mleung has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jancel has joined #ruby
rafadc has joined #ruby
maletor has joined #ruby
arlek has joined #ruby
Caerus|Away is now known as Caerus
snockerton has quit [Quit: Leaving.]
mleung has quit [Client Quit]
ta_ has joined #ruby
sauvin has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
matp has quit [Remote host closed the connection]
matp has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
ur5us has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
jancel has quit [Remote host closed the connection]
limelacroix has joined #ruby
Es0teric has joined #ruby
safe has quit [Quit: Leaving]
meatflaps has quit [Quit: Later, cunts]
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
arlek has quit [Read error: Connection reset by peer]
Es0teric has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
rafadc has quit []
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
ur5us has quit [Remote host closed the connection]
phredus has joined #ruby
Pupeno has joined #ruby
tildes_ has joined #ruby
uberbrodt has quit [Quit: leaving]
scepticulous has quit [Ping timeout: 240 seconds]
uberbrodt has joined #ruby
SilverKey has joined #ruby
phredus has quit [Remote host closed the connection]
maletor3 has joined #ruby
Yiota has joined #ruby
anisha has joined #ruby
LoneHermit has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd83x has joined #ruby
LoneHerm_ has joined #ruby
Yiota has quit [Client Quit]
maletor3 has quit [Ping timeout: 252 seconds]
last_staff has joined #ruby
joonty has joined #ruby
elifoster has quit [Ping timeout: 258 seconds]
cd83x has quit [Ping timeout: 252 seconds]
wald0 has joined #ruby
electrostat has quit [Read error: Connection reset by peer]
<wald0> ok so im learning C (K&R book), but i found something missing, i need to learn all those linking, cflags, make, autotools stuff so commonly used in linux*, suggestions?
beilabs has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
infra-red has joined #ruby
phredus has joined #ruby
TomyLobo has joined #ruby
codecop has joined #ruby
moeabdol has joined #ruby
karmatr0n has joined #ruby
beilabs has joined #ruby
phredus has quit [Remote host closed the connection]
<Caerus> wald0, maybe ask around in C## and ##Linux. also, stackoverflow is usually a good source for information, most likely someone has already asked your questions there.
_aeris_ has quit [Remote host closed the connection]
kareeoleez has joined #ruby
_aeris_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
infra-red has quit [Remote host closed the connection]
electrostat has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
infra-red has joined #ruby
kareeoleez has joined #ruby
<wald0> duh, im in #ruby? sorry
Macaveli has joined #ruby
ur5us has joined #ruby
eGGshke has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
finisherr has quit [Quit: finisherr]
Robtop__ has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
SilverKey has quit [Quit: Halted.]
gtsai has quit [Ping timeout: 276 seconds]
tildes_ has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
jetpackjoe has joined #ruby
Macaveli has joined #ruby
gtsai has joined #ruby
devbug_ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
devbug has quit [Ping timeout: 258 seconds]
fenre has joined #ruby
andikr has joined #ruby
agent_white has quit [Quit: backinabit]
Dimik has joined #ruby
jetpackjoe has quit [Quit: jetpackjoe]
n1x-nz has joined #ruby
devbug_ has quit [Ping timeout: 260 seconds]
nat2610 has quit [Quit: Leaving.]
davedev24 has joined #ruby
last_staff has quit [Remote host closed the connection]
sauvin has quit [Read error: Connection reset by peer]
davedev24 has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
pepee has quit [Quit: bye $IRC]
phredus has joined #ruby
sauvin has joined #ruby
djbkd has quit [Quit: My people need me...]
certainty has joined #ruby
ffgghhj has joined #ruby
gtsai has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
TomyLobo has quit [Ping timeout: 252 seconds]
joonty has quit [Quit: This computer has gone to sleep]
wald0 has quit [Ping timeout: 244 seconds]
cd83x has joined #ruby
yfeldblum has quit [Remote host closed the connection]
wald0 has joined #ruby
infra-red has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
maletor3 has joined #ruby
scepticulous has joined #ruby
phredus has quit [Remote host closed the connection]
cd83x has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
maletor3 has quit [Ping timeout: 264 seconds]
Yiota has quit [Client Quit]
jetpackjoe has joined #ruby
jetpackjoe has quit [Client Quit]
CausaMortis has joined #ruby
Guest18391 is now known as awk
n1x-nz has quit [Read error: Connection reset by peer]
<flughafen> hey shevy
Spami_ has joined #ruby
iamvery has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
Yiota has joined #ruby
karmatr0n has joined #ruby
snsei has quit [Remote host closed the connection]
n1x-nz has joined #ruby
Yiota has quit [Client Quit]
scepticulous has quit [Ping timeout: 246 seconds]
kali2 has joined #ruby
scepticulous has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
kali2 has quit [Quit: Leaving]
Insty is now known as Insti
Akagi201 has quit [Ping timeout: 258 seconds]
Akagi201 has joined #ruby
beilabs has quit [Ping timeout: 264 seconds]
n1x-nz has quit [Quit: Computer says no]
ferr has joined #ruby
hightower2 has quit [Ping timeout: 276 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
infra-red has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ffgghhj has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
ur5us has joined #ruby
isxek has joined #ruby
wald0 has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
Couch has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
norc has joined #ruby
LoneHerm_ is now known as sendpass
certainty has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
<adaedra> Hello
cd83x has joined #ruby
<norc> Greetings adaedra
<flughafen> hey adaedra
sendpass is now known as LoneHermit_
davedev24 has joined #ruby
mark_66 has joined #ruby
n1x-nz has joined #ruby
wald0 has joined #ruby
beilabs has joined #ruby
phredus has joined #ruby
cd83x has quit [Ping timeout: 260 seconds]
ry4nn has quit [Ping timeout: 252 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
Akagi201 has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
Akagi201 has joined #ruby
davedev24 has quit [Ping timeout: 272 seconds]
certainty has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
aganov has joined #ruby
aufi has joined #ruby
maletor3 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digneety has joined #ruby
digneety has quit [Changing host]
digneety has joined #ruby
maletor3 has quit [Ping timeout: 276 seconds]
codecop has quit [Remote host closed the connection]
alfiemax has joined #ruby
czerasz has joined #ruby
bobix has joined #ruby
<norc> Mmm, so I feel like installing Rails5 side by side with Rails4. What is the flavour of the month using chruby to switch between gem sets? gem_home?
andikr has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
Billias has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 244 seconds]
bobix_ has joined #ruby
LoneHermit_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
bobix_ has quit [Client Quit]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnDoe111^ has joined #ruby
johnDoe111 has quit [Ping timeout: 264 seconds]
bobix has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
karmatr0n has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
Yiota has joined #ruby
jenrzzz has joined #ruby
Billias has joined #ruby
raeoks has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
Yiota has quit [Client Quit]
k3rn31 has quit [Quit: Computer has gone to sleep.]
lightt has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
<flughafen> whats the signifigance of a variable with @
beilabs has quit [Ping timeout: 240 seconds]
johnDoe111^ has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
beilabs has joined #ruby
kareeole_ has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
kareeole_ is now known as kareeoleez_
<norc> flughafen: It is an instance variable.
kareeoleez_ is now known as kareeoleez__
kareeoleez has quit [Disconnected by services]
<norc> flughafen: Note that @ is still part of the name, so it is not a magic modifier.
domgetter has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
<norc> So you would use instance_variable_get(:@foo)
johnDoe111 has joined #ruby
kareeoleez__ is now known as kareeoleez
Yiota has joined #ruby
<flughafen> norc: and if it's not part of a class?
beilabs_ has joined #ruby
<norc> flughafen: It can be.
<norc> flughafen: Everything is an object, even a class.
Yiota has quit [Max SendQ exceeded]
<flughafen> right. ok.
<norc> flughafen: That also means that everything, including a class, can have instance variables.
Pupeno has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
<norc> >> a = "a"; a.instance_variable_set(:@foo, 42); puts a.instance_variables
<ruby[bot]> norc: # => @foo ...check link for more (https://eval.in/581810)
beilabs has quit [Ping timeout: 276 seconds]
wald0 has quit [Ping timeout: 276 seconds]
<norc> >> Kernel.instance_variable_set(:@foo, 42); Kernel.instance_variables
<ruby[bot]> norc: # => [:@foo] (https://eval.in/581811)
Yiota has joined #ruby
wald0 has joined #ruby
<norc> >> class A; @a = 1; def foo; puts @a; end; end; A.new.foo # flughafen: Note that this means you have to be careful in which context you are. Here one is about an instance variable of the class, the other about instance variables of that classes objects.
<ruby[bot]> norc: # => ...check link for more (https://eval.in/581812)
toretore has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
n1x-nz has quit [Ping timeout: 258 seconds]
Yiota has quit [Ping timeout: 240 seconds]
n1x-nz has joined #ruby
joonty has joined #ruby
startupality has joined #ruby
<flughafen> thanks norc
<norc> have a good flight.
fumk has quit [Quit: It wasn't me, it was the papers :(]
codecop has joined #ruby
fumk has joined #ruby
konsolebox has joined #ruby
<flughafen> i'm still grounded norc
Gasher has joined #ruby
certainty has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
Pupeno has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
marr has joined #ruby
raeoks has quit [Read error: Connection reset by peer]
troulouliou_div2 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
johnDoe111 has joined #ruby
Yiota has joined #ruby
<iooner> Hi!
Yiota has quit [Client Quit]
maletor3 has joined #ruby
madgen has joined #ruby
eGGshke has quit [Quit: Leaving...]
maletor3 has quit [Ping timeout: 272 seconds]
jackjackdripper has joined #ruby
certainty has joined #ruby
pawnbox has quit [Remote host closed the connection]
johnDoe111 has quit [Remote host closed the connection]
n1x-nz has quit [Quit: Computer says no]
swartzcr has joined #ruby
blaxter has joined #ruby
<swartzcr> I'm having a lot of trouble with dependencies in ruby 2.2.4 even while using rvm, especially with something called psych, would anyone be willing to help me debug?
blackmesa has quit [Quit: WeeChat 1.5]
idefine has joined #ruby
phredus has quit [Read error: Connection reset by peer]
phredus has joined #ruby
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
pawnbox has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
phredus has quit [Remote host closed the connection]
Yiota has quit [Max SendQ exceeded]
<hanmac> swartzcr: what is your operating system?
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
karmatr0n has quit [Ping timeout: 240 seconds]
<swartzcr> I'm on debian stable
idefine has joined #ruby
<hanmac> swartzcr: "apt-get build-dep ruby" and/or "apt-get build-dep ruby2.2" (or what exist as package on your system)
<swartzcr> nope
<swartzcr> or maybe I've already done that for ruby
freija_ has joined #ruby
<swartzcr> well so I unsinstalled everything and re-installed it and now at least I'm getting a new error
lightt has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wald0 has quit [Ping timeout: 260 seconds]
nagaraj has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
Oclair has joined #ruby
wald0 has joined #ruby
madgen has joined #ruby
TvL2386 has joined #ruby
cd83x has joined #ruby
platzhirsch has joined #ruby
wald0 has quit [Ping timeout: 244 seconds]
phredus has joined #ruby
wald0 has joined #ruby
<jhass> swartzcr: you seem to be mixing a system ruby and a rvm ruby
<jhass> what command does produce that?
cd83x has quit [Ping timeout: 246 seconds]
beilabs_ has quit [Read error: Connection reset by peer]
aupadhye has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
<swartzcr> oh I'm running tests through rvm
<swartzcr> errr
<swartzcr> npm
Helox has joined #ruby
<swartzcr> that could make sense that it's calling the wrong ruby?
jenrzzz has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
einarj has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
wald0 has quit [Ping timeout: 246 seconds]
<jhass> yeah
wald0 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
beilabs has joined #ruby
jackjackdripper has joined #ruby
webhat has joined #ruby
wald0 has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Quit: Leaving.]
wald0 has joined #ruby
jackjackdripper has quit [Client Quit]
triangles2 has joined #ruby
triangles has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
nando293921 has joined #ruby
Helox has quit [Quit: Ex-Chat]
sid_fules has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
certainty has quit [Ping timeout: 240 seconds]
c0mrad3 has joined #ruby
maletor3 has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
maletor3 has quit [Ping timeout: 276 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
beilabs has quit [Ping timeout: 244 seconds]
beilabs has joined #ruby
Yiota has joined #ruby
wald0 has quit [Ping timeout: 264 seconds]
johnmilton has quit [Quit: Namaste]
wald0 has joined #ruby
ur5us has quit [Remote host closed the connection]
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
Yiota has quit [Ping timeout: 240 seconds]
Gasher has quit [Ping timeout: 260 seconds]
<norc> asm>> a, b = b, a
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/581863
<adaedra> ?experiment
<ruby[bot]> Please use your local irb or pry (see ?pry) to experiment, ruby[bot]'s eval functionality is for demonstration purposes only.
<adaedra> You can also talk to the bot in PMs
karmatr0n has joined #ruby
wald0 has quit [Quit: Lost terminal]
c355e3b has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
Akagi201 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
Akagi201 has joined #ruby
phoo1234567 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
Pupeno has quit [Read error: Connection reset by peer]
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
weckl has joined #ruby
Pupeno has joined #ruby
certainty has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
cd83x has joined #ruby
the_drow has joined #ruby
Pupeno has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
nickjj_ has quit [Quit: Leaving]
nickjj_ has joined #ruby
Trynemjoel has joined #ruby
davedev24 has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
cd83x has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
guardianJ has joined #ruby
beilabs has quit [Ping timeout: 244 seconds]
hk238 has joined #ruby
Gasher has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
ocbtec has joined #ruby
guardianJ has left #ruby [#ruby]
sepp2k has joined #ruby
anisha has quit [Quit: Leaving]
alfiemax has joined #ruby
MrBusiness3 has joined #ruby
nankyokusei has joined #ruby
colegatron has joined #ruby
<shevy> lol
GriffinHeart has joined #ruby
<shevy> and send them flowers
GriffinHeart has quit [Remote host closed the connection]
mrmortondk has quit [Ping timeout: 272 seconds]
MrBusiness2 has quit [Ping timeout: 258 seconds]
agit0 has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
beilabs has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
<yorickpeterse> who dare disturb my slumber by pinging me
<yorickpeterse> oh, people just linking to Oga
nickjj_ is now known as nickjj
ur5us has joined #ruby
<adaedra> You're so famous.
pawnbox has quit [Ping timeout: 264 seconds]
sdothum has joined #ruby
maletor3 has joined #ruby
beilabs has joined #ruby
CausaMortis has quit [Ping timeout: 272 seconds]
phredus has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
<flughafen> adaedra: i'm really famous!
ur5us has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
craigp has joined #ruby
Pupeno has joined #ruby
sid_fules has quit [Ping timeout: 260 seconds]
maletor3 has quit [Ping timeout: 260 seconds]
unreal_ is now known as unreal
hutch34 has joined #ruby
isxek has quit [Quit: Leaving]
edwinvdgraaf has quit [Remote host closed the connection]
Madplatypus has quit [Quit: Connection closed for inactivity]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnDoe111 has joined #ruby
rodfersou has joined #ruby
Yiota has joined #ruby
hellyeah has joined #ruby
<hellyeah> hey there
<hellyeah> why should i learn ruby?
johnDoe111 has quit [Remote host closed the connection]
karmatr0n has joined #ruby
johnDoe111 has joined #ruby
<tobiasvl> hellyeah: why not?
<tobiasvl> should you?
<hellyeah> i dont know what can i do with ruby?
<hellyeah> is it oop language?
<tobiasvl> yes
<alfiemax> why wouldn't you?
<alfiemax> yes
<alfiemax> don't think there's much you can't do with it
sid_fules has joined #ruby
<tobiasvl> it's turing complete :P
<hellyeah> nfa, dfa
<hellyeah> hmm
<hellyeah> is it easy to learn :D
tlaxkit has joined #ruby
<alfiemax> oh yeah
chip__ has joined #ruby
GodFather has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
futilegames has joined #ruby
Noxilex has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
Ropeney has joined #ruby
GodFather has quit [Client Quit]
GodFather has joined #ruby
CausaMortis has joined #ruby
GodFather has quit [Remote host closed the connection]
cd83x has joined #ruby
guardianJ has joined #ruby
Ropeney has quit [Client Quit]
sid_fules has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
certainty has joined #ruby
johnmilton has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fernando-Basso has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
ishe_ua has joined #ruby
tenderlo_ has quit [Remote host closed the connection]
beilabs has joined #ruby
<norc> tobiasvl: Clearly I should recommend building a robust web server using this technology then: https://upload.wikimedia.org/wikipedia/commons/7/7b/Lego_Turing_Machine.jpg
<norc> It is not even turing complete. It is a turing machine!
postmodern has quit [Quit: Leaving]
cd83x has quit [Ping timeout: 240 seconds]
<norc> Ill see what my bosses think. :)
hutch34 has joined #ruby
nhhc has joined #ruby
roamingdog has joined #ruby
Pupeno has quit [Remote host closed the connection]
<tobiasvl> do it!
Pupeno has joined #ruby
freija_ has quit [Read error: Connection reset by peer]
<shevy> hellyeah beer is easier to drink than is learning a programming language!
emilkarl has joined #ruby
k3rn31 has joined #ruby
<hellyeah> shevy: i have some backgrounds like c, java, c#, javascript, drracket, php ..
beilabs has quit [Read error: Connection reset by peer]
<shevy> then this will be very easy. I used php before ruby
Vile` has joined #ruby
millerti has joined #ruby
Yiota has joined #ruby
guardianJ has quit [Remote host closed the connection]
<hellyeah> but ruby and php are not on same leage right i mean
<hellyeah> afaik you have to learn ruby on rails for web stuff
idefine has joined #ruby
deadnull_ has joined #ruby
beilabs has joined #ruby
Yiota has quit [Ping timeout: 244 seconds]
sid_fules has joined #ruby
rkazak has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
idefine has quit [Ping timeout: 240 seconds]
<shevy> ruby and php are not very similar at all anywhere
ldnunes has joined #ruby
hutch34 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
<norc> hellyeah: Ruby on Rails is just one out of many ways to do web stuff.
<norc> hellyeah: You could do also use Sinatra (or perhaps even your own Rack middleware)
<solars> is there any helper to round to something like the nearest 0.05? e.g. 1.22 -> 1.20 1.24 -> 1.25 etc?
sid_fules has quit [Read error: Connection reset by peer]
romistrub has joined #ruby
hutch34 has joined #ruby
<adaedra> do *2, round at 0.1, then /2?
<solars> ok in this case I need to round up to the next 0.05
johnDoe111 has quit [Remote host closed the connection]
<romistrub> Hi everybody. I'm running a TCPSocket.recv(2) to get the first couple of bits from a stream, and Ruby proceeds past the recv, but when I check the length of the received string, it's 0... can anybody explain this?
k3rn31 has joined #ruby
<adaedra> first, it's more likely you're getting the first couple of bytes
<romistrub> yes, bytes, sorry
<romistrub> brain fart
hanmac has quit [Ping timeout: 258 seconds]
<adaedra> it may indicate you're at the end of the stream
startupality has joined #ruby
<romistrub> for some reason I thought ruby was supposed to stick at the recv call until it received the bytes specified
<romistrub> is there a way to check how many more bytes are "still in the tube"?
sid_fules has joined #ruby
<adaedra> if the stream is closed, there's no point of waiting, so it returns empty
<adaedra> even if I think it raises in this case
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<romistrub> so I should be waiting to recv until the stream is open... how do I do that?
<norc> &ri recv_nonblock
johnDoe111 has joined #ruby
<adaedra> romistrub well, are you sure the stream is still valid (i.e. remote server did not close connection)?
<norc> Look at the example even.
<norc> And there should indeed exceptions be thrown.
Gasher has quit [Ping timeout: 272 seconds]
johnDoe111 has quit [Remote host closed the connection]
Gasher has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
maletor3 has joined #ruby
romistrub_ has joined #ruby
<solars> adaedra, figured out to round up to the next 0.05 it's (n*20).ceil/20.0
<romistrub_> sorry about that, had to reopen this window
<romistrub_> so I lost everything you guys send me :(
<romistrub_> basically, what I'm doing is running a websocket server. The handshake is complete, now I'm listening for the incoming messages
<norc> romistrub_: check topic, we have logs.
romistrub has quit [Ping timeout: 250 seconds]
<romistrub_> oh awesome
hutch34 has quit [Read error: Connection reset by peer]
iamvery has joined #ruby
<romistrub_> okay, didn't miss much, I'll give what you sent me a mull-over
<norc> romistrub_: Note that I recommend starting with non-blocking IO from the beginning.
<romistrub_> norc: why's that, if I may ask
<adaedra> it can be completely fine to be doing blocking IO.
allcentury has joined #ruby
johnDoe111 has joined #ruby
<romistrub_> and, uh, sorry, newbie question, what *is* non-blocking IO :P
hutch34 has joined #ruby
<romistrub_> oh, self-explanatory
<romistrub_> doesn't block up the system while it waits for the bytes, right?
duckpuppy has joined #ruby
<adaedra> returns immediatly if nothing is available, yes.
nando293921 has quit [Ping timeout: 240 seconds]
maletor3 has quit [Ping timeout: 276 seconds]
<romistrub_> so would I run that in a loop, if I'm waiting for a message?
<norc> romistrub_: The only advantage that blocking IO has is that its far simpler to implement.
<romistrub_> norc: gotcha
<adaedra> If you have only one socket to work with, socket IO is surely the simplest path.
<adaedra> er, blocking IO*
<romistrub_> potentially multiple sockets, working my way up to that
<romistrub_> it'll be a multiplayer websocket-based game, to be specific
<romistrub_> er, websocket-enabled :P
<adaedra> if you have multiple sockets, you can use threads, select/poll
<romistrub_> adaedra: yeah, that's what I've been doing
Ropeney has joined #ruby
<romistrub_> so maybe I'm misunderstanding, under what circumstances can recv end up with a return value of zero length
gnufied has joined #ruby
Ropeney has quit [Client Quit]
hanmac has joined #ruby
Vingador has joined #ruby
nando293921 has joined #ruby
CloCkWeRX has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
<Darkwater> I'm using Open3::popen3, how do I read from stdout and stderr at the same time?
idefine has joined #ruby
qasaur has joined #ruby
<ytti> technically you never do anything at the same time in mri
sid_fules has joined #ruby
last_staff has quit [Quit: last_staff]
<ytti> i think your expectation is to produce output were stderr and stdout are outputted in order
<romistrub_> norc: adaedra: thanks for your help!
last_staff has joined #ruby
<ytti> but there is probaboly additional requirement you didn't thinkg of, is taht you want to read at least to a linefeed
<ytti> as you don't want to multiplex partial lines of stdout and stderr
<apeiros> Darkwater: use Kernel#spawn instead, that allows you to redirect IOs
<norc> romistrub_: Im thinking that you reached EOF.
<ytti> so read stdout and stderr ina loop, one line at a time
hutch34 has quit [Ping timeout: 246 seconds]
<norc> romistrub_: But then again I dont understand sockets all too well.
<romistrub_> norc: nope, I'm waiting for a message that hasn't been sent yet :P
sid_fules has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
Gasher has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
<norc> romistrub_: Which Ruby version and on which operating system?
qasaur has quit [Read error: Connection reset by peer]
scepticulous has quit [Read error: Connection reset by peer]
<norc> And which Ruby flavour? (MRI, JRuby)
<romistrub_> Ruby 2.2.3 on Windows 10
<romistrub_> is has flavours? lol... I have no idea which flavour
hellyeah has quit [Ping timeout: 258 seconds]
sid_fules has joined #ruby
<norc> romistrub_: There are different implementations, yes.
<romistrub_> Just... vanilla Ruby
<norc> Fair enough. We call that MRI (or CRuby)
qasaur has joined #ruby
<romistrub_> Okay :)
CloCkWeRX has quit [Ping timeout: 244 seconds]
<romistrub_> For "Mainstream Ruby Implementation"? hehe
<apeiros> matz' ruby interpreter
<romistrub_> ah, okay
<apeiros> though your version would make sense ;-)
<romistrub_> heh :)
<Darkwater> ytti: I want to read stdout and stderr in order, but I also want to prefix the lines with their origin
<Darkwater> so eg. ERR: foo went wrong \n OUT: bar is ok
<norc> romistrub_: and it returns 0?
<Darkwater> apeiros: can I do that ^ with spawn?
cd83x has joined #ruby
<ytti> Darkwater, just read line a a time in a loop
<apeiros> Darkwater: no
<apeiros> Darkwater: in that case you have to read them separately
<romistrub_> norc: I just switched recv to read, let me test it, one sec
ramfjord has quit [Ping timeout: 244 seconds]
<apeiros> and then you'd either use threads or Kernel#select
<Darkwater> does select look harder than it is?
<ytti> yes
<ytti> it's simples
<Darkwater> then I'll try that
duckpuppy has quit [Ping timeout: 250 seconds]
<ytti> jsut give array if IO objets and timeout (your case 0)
synthroid has joined #ruby
<apeiros> I don't know. I think it looks simple.
<ytti> and it'll return object which is ready for read/write
<apeiros> so IMO it doesn't look harder than it is :)
nagaraj has quit [Ping timeout: 252 seconds]
<ytti> by question i extrapolated that it looks hard
binaryplease1 has joined #ruby
<ytti> which obviously is subjective
<norc> romistrub_: Id say gist your code.
<romistrub_> norc: I'd say I have no idea what that means :P
<norc> romistrub_: https://gist.github.com/
<apeiros> ?gist romistrub_
<ruby[bot]> romistrub_: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
millerti has joined #ruby
cd83x has quit [Ping timeout: 240 seconds]
<norc> romistrub_: the offending line in question?
futilegames has quit [Quit: futilegames]
duckpuppy has joined #ruby
<romistrub_> line 39 throws the error...
fclausen_ has joined #ruby
futilegames has joined #ruby
<norc> romistrub_: Okay, did some digging. It seems like recv does not necessarily wait to get LEN bytes.
<romistrub_> norc, well gosh darn
<romistrub_> does it need a flag or something?
<apeiros> read(n) type of instructions are usually "at *max* n bytes"
<norc> romistrub_: No. The best choice is to use #select (with a loop if necessary)
<apeiros> not "precisely n bytes"
<romistrub_> apeiros: sorry, that was dumb of me, I pasted the wrong one
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<romistrub_> this is the real one, where the real error is thrown at line 39
scepticulous has joined #ruby
<apeiros> `opcode = byteone-128`?
<romistrub_> the only difference in the source is that "read" is changed back to "recv"
fclausen has quit [Ping timeout: 240 seconds]
<norc> romistrub_: As I said. Use select() in a loop.
<norc> That is your best bet.
<romistrub_> hahaha, this is ancient code, I have to look back over my websocket manual to remember why that works
<romistrub_> okay, I'll try that, thanks norc
tvw has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
<norc> romistrub_: And I meant IO#select of course
binaryplease1 has quit [Ping timeout: 260 seconds]
<norc> romistrub_: On an unrelated note, if you do Ruby coding - I highly recommend you switch to expanded tabs with 2 space tab/shift width.
<norc> People will thank you.
startupality has quit [Quit: startupality]
<apeiros> norc: you mean IO.select
<romistrub_> I'm being a real treat today, sorry for another silly question, what are "expanded tabs"?
startupality has joined #ruby
<apeiros> (which is btw. the same as plain select(), aka Kernel#select())
<norc> apeiros: Oh! My bad.
<apeiros> totally! :D
futilegames has quit [Quit: futilegames]
<apeiros> romistrub_: it means "replace the tabs with spaces"
<romistrub_> Forgive me. It's been two years since I've done any Ruby programming. Just trying to get back into it.
<norc> apeiros: Well, I wanted to make sure he didn't end up trying to include Enumerable or some other nonsense.
nagaraj has joined #ruby
moredhel_ has joined #ruby
<norc> romistrub_: It's just a recommendation, please take it as such.
<apeiros> norc: eh, I'm just staying true to being the resident pedant
<romistrub_> norc, will do, thanks
<apeiros> though oxbad1dea made a good job of that too. wonder where he is.
k3rn31 has quit [Quit: Computer has gone to sleep.]
CloCkWeRX has joined #ruby
<norc> You mean Oxdea
<norc> Ox0dea
<norc> In fact.
<apeiros> ah right
<apeiros> see, it's been such a long time, I don't even remember his nick!
<norc> Perhaps he got his finger stuck in an assembler.
rkazak has quit [Quit: Sleep.....ing....]
alfiemax has left #ruby ["Leaving"]
Vile` has quit [Quit: .]
<norc> apeiros: Man I love how Rails is making people violate the law of demeter like crazy!
<Darkwater> ytti: after select, how do I read everything that's available/
<norc> Never before has a.b&.c&.d&.e&.f been so much fun.
<ytti> Darkwater, select retursn array of anything available
JJM has joined #ruby
<ytti> Darkwater, iterate thorugh that array and read line at a time, in order, until they are no longer available, then return to select
<Darkwater> yeah but how do I read until they're no longer available?
<ytti> ask io if has something
<ytti> if it has, read line
<norc> See apeiros?
<norc> I just did it.
<norc> Oh wait you cant.
<norc> But take my word for it.
moredhel_ has quit [Client Quit]
JJM has quit [Client Quit]
k3rn31 has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
dling` has quit []
chip__ has quit [Ping timeout: 260 seconds]
edwinvdgraaf has joined #ruby
flashpoint9 has joined #ruby
<apeiros> norc: I'm not quite sure I'd agree that chaining is violating the law of demeter. though I've never really put much energy into thinking it through :)
nankyokusei has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
minimalism has quit [Quit: minimalism]
hutch34 has joined #ruby
<romistrub_> norc: tried your solution using IO.select; didn't work, because the Socket is already open (was used for the Websocket handshake already)
tomphp has joined #ruby
<Caerus> see ya later #ruby
<romistrub_> bye Caerus
nankyokusei has quit [Ping timeout: 272 seconds]
Caerus is now known as Caerus|Away
idefine has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
beilabs has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 276 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
e4xit_ has joined #ruby
Oclair has quit [Quit: Bye Bye]
<norc> romistrub_: What were you doing?
diegoaguilar has joined #ruby
d0nn1e has joined #ruby
<romistrub_> norc: just added the IO.select before the recv call
<norc> romistrub_: Did you just blindly ignore the other part I mentioned?
diegoaguilar has quit [Read error: Connection reset by peer]
<romistrub_> norc: I might've missed it, sorry
daguilaraguilar has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
e4xit has quit [Ping timeout: 272 seconds]
e4xit_ is now known as e4xit
<romistrub_> norc: what was the other part?
madgen has quit [Ping timeout: 246 seconds]
<norc> romistrub_: Read up.
maletor3 has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<romistrub_> you mean the tabs to spaces?
<norc> No.
<norc> romistrub_: But just use #read if you must.
<norc> That will block until the bytes have been read.
<romistrub_> let me try that
nando293921 has quit [Ping timeout: 258 seconds]
<norc> romistrub_: It just has that nasty side effect that it will block until the socket closes the connection if the bytes have not been sent.
Akagi201 has quit [Remote host closed the connection]
karmatr0n has joined #ruby
tomphp has joined #ruby
idefine has joined #ruby
nando293921 has joined #ruby
<romistrub_> norc: but if it's threaded, it shouldn't be a problem, right?
maletor3 has quit [Ping timeout: 250 seconds]
<norc> romistrub_: If you already have threads, you might as well use non blocking IO.
freerobby has joined #ruby
<romistrub_> isn't there overhead for the constantly running loop?
fmcgeough has joined #ruby
startupality has quit [Quit: startupality]
joonty has quit [Quit: This computer has gone to sleep]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
<norc> romistrub_: The thing that non blocking IO offers is that you could for example handle multiple sockets at the same time.
<norc> Overlapped IO
icey_ has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
<norc> romistrub_: also by practicing non-blocking IO, you will be getting experience for when you want to do something real with any IO
sid_fules has joined #ruby
<romistrub_> norc: okay, thanks :)
jerematic has joined #ruby
icey has quit [Ping timeout: 276 seconds]
Pupeno_ has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
certainty has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 276 seconds]
karmatr0n has joined #ruby
norc has quit [Ping timeout: 250 seconds]
ramortegui has joined #ruby
vondruch has quit [Ping timeout: 244 seconds]
ChiefAlexander has joined #ruby
mikecmpbll has joined #ruby
joonty has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tk has joined #ruby
tk is now known as Guest4208
norc has joined #ruby
duckpuppy has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
liri has joined #ruby
<liri> hi all
aegis3121 has joined #ruby
ceyhun has joined #ruby
emilkarl is now known as emilkarl[away]
<apeiros> hi liri
<liri> does anyone can think of a reason for which module can be not included into a class?
Yiota has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
Yiota has quit [Max SendQ exceeded]
<liri> or at least it looks as it is not included, as ancestor list dos not contain included module..
tinnvec has quit [Remote host closed the connection]
Yiota has joined #ruby
<liri> unfortunately I have no small snippet to reproduce it, it only shows up when I run it altogether with sinatra gem.
ceyhun has quit [Client Quit]
<liri> And I am just wondering what steps should I take to track down process of building class hierarchy.
<apeiros> liri: if it's already included further down
<apeiros> other than that - there shouldn't be any
rafael_ has joined #ruby
rafael_ has quit [Client Quit]
tinnvec has joined #ruby
<liri> What if module M is included in class A, which inherits from class B which also includes module M,
<liri> is module M going to be shown in ancestor list twice?
<apeiros> no. that's what I was referring to
<apeiros> it'll only be included once
allcentury has quit [Ping timeout: 240 seconds]
<liri> hmm
hutch34 has joined #ruby
bkxd has joined #ruby
<liri> So having two times the same module in ancestor list shouldn't happen
<apeiros> afaik s/shouldn't/can't/
<liri> when I run some script it shows:ruby -I../lib -e "require 'web-runner/lib/input_file_manager'; include Pbp::Run; puts InputPreparator.ancestors" InputPreparator Pbp::Run Monitor MonitorMixin Object Pbp::Run Log4r Kernel BasicObject
<liri> InputPreparator inherits from Monitor ( which includes MonitorMixin)
gagrio is now known as gagrio-brb
<liri> but Pbp::Run module shows up twice.
<apeiros> you can make two classes with the same name
<liri> it is included in InputPreparator and also included at top level
idefine has quit [Read error: Connection reset by peer]
<apeiros> only one will be able to be resolved at that "constant path", though
<liri> so you suggest that these are two differents entities?
<apeiros> you can check
<apeiros> object_id should differ
<apeiros> and .equal? should return false
<mc_fail> guys, is there any way to set conflicts with OptionParser ?
<mc_fail> like, to say that -i cannot be passed together with -m
kareeoleez has quit [Remote host closed the connection]
<liri> by saying "<apeiros> you can make two classes with the same name" you also mean 'modules' not only 'classes' ?
domgetter has joined #ruby
<apeiros> any constant
<apeiros> though only modules and classes set their name property according to the first constant they get assigned to
Xentil has joined #ruby
Yiota has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
<apeiros> >> class A; end; x = A; Object.send(:remove_const, :A); class A; end; [x, A, x.object_id, A.object_id]
<ruby[bot]> apeiros: # => [A, A, 543386790, 543386750] (https://eval.in/581950)
<apeiros> contrived, but possible
howdoi has quit [Quit: Connection closed for inactivity]
Xentil has quit [Client Quit]
fclausen_ has quit [Ping timeout: 240 seconds]
<norc> liri: You have to differentiate between "name" and "object".
<liri> hmm, what I received is
<liri> 47102552085160 InputPreparator 47102553593700 Pbp::Run 47102554097160 Monitor 47102554097380 MonitorMixin 47102552159800 Object 47102553593700 Pbp::Run 47102555926780 Log4r 47102552159640 Kernel 47102552159840 BasicObject
duckpuppy has quit [Ping timeout: 240 seconds]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
<apeiros> also funny:
<apeiros> >> class A; end; class B; def self.inspect; "A"; end; end; [A, B, A.object_id, B.object_id]
<liri> these are object_ids,
<ruby[bot]> apeiros: # => [A, A, 554249260, 554249230] (https://eval.in/581952)
<liri> and class.names in ancestors list.
karmatr0n has joined #ruby
<apeiros> liri: so two different objects… 47102554097160 != 47102555926780
malconis has joined #ruby
<liri> what about Pbp::Run
<apeiros> ah, you have oid first
<liri> 47102553593700
<liri> yes
<apeiros> ok, this looks suspicious
<liri> it looks like the same entity.
Yiota has joined #ruby
<apeiros> gist your full code please
Yiota has quit [Max SendQ exceeded]
moos3 has joined #ruby
<norc> liri: There is only 2 ways to shadow identifiers with others, and that is a) refinements and b) some bizarre feature that noone uses.
JakFrist has joined #ruby
<liri> ok, I need to extract some short part ;)
Yiota has joined #ruby
<Darkwater> urgh, I hate programming with terminals
Yiota has quit [Client Quit]
<Darkwater> I can read stdout and stderr now sure but now the problem is with buffering
Xentil has joined #ruby
<liri> well, actually I have made some changes to web app which I support and the problem which I came across is little bit different but I am just in the middle of investigation
* apeiros afk
ta_ has quit [Remote host closed the connection]
cdg has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
jrafanie has joined #ruby
noobsu has joined #ruby
Macaveli_ has joined #ruby
jas02 has joined #ruby
duckpuppy has joined #ruby
k3rn31 has joined #ruby
JJM has joined #ruby
allcentury has joined #ruby
madgen has joined #ruby
Macaveli has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
fenre has quit [Ping timeout: 260 seconds]
Macaveli_ has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
nagaraj has quit [Remote host closed the connection]
emilkarl[away] is now known as emilkarl
sid_fules has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Read error: Connection reset by peer]
hiennaj has joined #ruby
mikecmpbll has joined #ruby
pawnbox has joined #ruby
Macaveli has joined #ruby
Akagi201 has joined #ruby
freerobby has quit [Quit: Leaving.]
freija_ has joined #ruby
norc has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
nando293921 has quit [Ping timeout: 276 seconds]
ChiefAlexander has quit [Remote host closed the connection]
k3rn31_ has joined #ruby
<liri> What I am actually trying to solve is issue causing that when active_record is added our method is being shadowed by one defined in active_record sources (named try)
k3rn31 has quit [Read error: Connection reset by peer]
maletor3 has joined #ruby
<liri> It looks like, during method lookup, method try from Object (active_record) is invoked instead of out method defined in our module
<liri> when I show ancestor list, in the scope from where try method is called, it shows that Object is before our module where try is defined.
moos3 has quit [Quit: leaving]
<liri> and I have no idea why as I use include within body of class from which call is made.
<liri> List should show, something like, OurObject, OurModule, ... Object ...
<liri> but it shows OurObject ... Object ... OurModule
sid_fules has joined #ruby
<liri> what has to be said is the fact that, OurModule is included at two levels, one is within class OurObject, and also at the top level .
ChiefAlexander has joined #ruby
<liri> is there some way to track down what happens when ancestors are built ?
crystal77 has joined #ruby
maletor3 has quit [Ping timeout: 260 seconds]
<liri> So I could see, at what lines ancestor list for given object changes ?
<liri> So I could see, at what lines ancestor list for given class changes ?
eljimmy has joined #ruby
agent_white has joined #ruby
cd83x has joined #ruby
<agent_white> Mornin
JesseH has quit [Quit: Leaving]
<pontiki> hello agent_white
<agent_white> pontiki: \o How goes it?
<pontiki> not bad, agent_white
mattwashere has joined #ruby
certainty has joined #ruby
Macaveli_ has joined #ruby
konsolebox has quit [Quit: Leaving]
cd83x has quit [Ping timeout: 264 seconds]
<liri> when playing little bit with the code, it gives some interesting results: https://gist.github.com/mateuszef/0f8e373ad9e6770207f10c75e4134b64
Macaveli has quit [Ping timeout: 240 seconds]
<liri> namely it looks, like if including module takes a place at top level, and afterwards class includes the same level, then in ancestor list included module is after Object (is treated as included to Object)
certainty has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Quit: Leaving.]
floatingpoint has joined #ruby
<liri> however, when first including it in class A, and afterwards including at top level, then module is present twice in ancestor list...
yqt has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Noxilex has quit [Ping timeout: 258 seconds]
SilverKey has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
tomphp has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
tomphp has quit [Client Quit]
gtsai has joined #ruby
gtsai_ has joined #ruby
JesseH has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
ishe_ua has quit [Remote host closed the connection]
<liri> is there some way to check in what order files are required when startin VM ?
dhollinger has joined #ruby
gtsai has quit [Ping timeout: 244 seconds]
tvw has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
jnoob22 has quit [Quit: Leaving]
fedexo has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
ocbtec has quit [Quit: leaving]
edwinvdgraaf has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaruga___ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
jaruga____ has quit [Ping timeout: 244 seconds]
sid_fules has joined #ruby
aganov has quit [Remote host closed the connection]
kgrz has joined #ruby
gtsai_ has quit [Remote host closed the connection]
gtsai has joined #ruby
fclausen has joined #ruby
moeabdol has quit [Ping timeout: 258 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
mattwashere has quit [Remote host closed the connection]
tomphp has joined #ruby
tomphp has quit [Client Quit]
ta_ has joined #ruby
<jokke> hello
<jokke> i'm having some trouble with dotenv
<jokke> it seems to override env vars passed from the command line
mikecmpb_ has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 252 seconds]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
Guest4208 has quit [Quit: ばいばい]
Azure has quit [Remote host closed the connection]
CJKinni has joined #ruby
nankyokusei has joined #ruby
bnjf has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
<jokke> hmm
sid_fules has joined #ruby
cd83x has joined #ruby
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
Sansa994 has joined #ruby
<jhass> personally I just use https://github.com/horosgrisa/autoenv
nankyokusei has quit [Ping timeout: 246 seconds]
Sansa994 has quit [Excess Flood]
duoi has quit [Ping timeout: 258 seconds]
icey_ has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
Xiti has quit [Quit: Xiti]
duoi has joined #ruby
<apeiros> autoenv is only for zsh?
snockerton has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
Devalo has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
norc has joined #ruby
icey has joined #ruby
SilverKey has quit [Quit: Halted.]
certainty has joined #ruby
<shevy> elitists!
Xiti has joined #ruby
hxegon_afk is now known as hxegon
maletor3 has joined #ruby
SilverKey has joined #ruby
jas02 has quit [Quit: jas02]
maletor3 has quit [Ping timeout: 252 seconds]
sid_fules has joined #ruby
digneety has quit [Quit: digneety]
smathy has joined #ruby
last_staff has quit [Quit: last_staff]
aegis3121 has quit [Ping timeout: 272 seconds]
skolman has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
ljames has quit []
sid_fules has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
frem_ has joined #ruby
VeryBewitching has joined #ruby
Pupeno_ has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Pupeno has joined #ruby
zero7 has quit [Ping timeout: 264 seconds]
[diecast] has quit [Ping timeout: 264 seconds]
rodfersou is now known as rodfersou|lunch
[diecast] has joined #ruby
cstrahan has quit [Ping timeout: 264 seconds]
digitalfiz has quit [Ping timeout: 264 seconds]
deimos__ has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
terlar has joined #ruby
zero7 has joined #ruby
yfeldblum has joined #ruby
cstrahan has joined #ruby
deimos__ has joined #ruby
digitalfiz has joined #ruby
qasaur has joined #ruby
sid_fules has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaruga___ has quit [Remote host closed the connection]
jaruga___ has joined #ruby
certainty has quit [Ping timeout: 252 seconds]
Devalo has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
Akagi201 has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
TvL2386 has quit [Remote host closed the connection]
tomphp has joined #ruby
sid_fules has joined #ruby
Pisuke has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
wazzat has joined #ruby
wazzat has left #ruby [#ruby]
wazzat has joined #ruby
mattwashere has joined #ruby
freija_ has quit [Quit: freija_]
k3rn31 has joined #ruby
wazzat has left #ruby [#ruby]
k3rn31_ has quit [Read error: Connection reset by peer]
wazzat has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
polishdub has joined #ruby
aegis3121 has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
fclausen has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
GinoManWorks has quit [Read error: Connection reset by peer]
mello has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GinoManWorks has joined #ruby
skolman has quit [Remote host closed the connection]
SilverKey has joined #ruby
moeabdol has joined #ruby
skade has joined #ruby
koooge has quit [Quit: Leaving...]
symm- has joined #ruby
mattwashere has quit [Remote host closed the connection]
jaruga___ has quit [Quit: jaruga___]
mattwashere has joined #ruby
RegulationD has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
symm- has quit [Client Quit]
moeabdol has quit [Ping timeout: 272 seconds]
JJM has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
davedev24 has quit []
RegulationD has quit [Remote host closed the connection]
deadnull_ has quit [Quit: Bye]
palms has joined #ruby
<jokke> who uses anything else than zsh?
scepticulous has quit [Ping timeout: 260 seconds]
sid_fules has quit [Read error: Connection reset by peer]
<apeiros> I do
<domgetter> jokke I use bash. Mostly out of laziness, though. Also, I don't really know enough about the differences to switch
<xpt> Noone uses irb as shell? (:
darkxploit has joined #ruby
<jokke> xpt: heh
jaguarmagenta has quit [Ping timeout: 276 seconds]
<jokke> xpt: pry actually has somekind of shell mode
eljimmy has joined #ruby
slackr has joined #ruby
* xpt watches pry intro screencast
mattwashere has quit [Remote host closed the connection]
craigp has joined #ruby
chorgi has joined #ruby
xsdg has quit [Remote host closed the connection]
davedev24 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
[Butch] has joined #ruby
mattwashere has joined #ruby
k3rn31 has quit [Read error: Connection reset by peer]
k3rn31_ has joined #ruby
<smathy> domgetter, just a couple of additional niceties on top of bash.
sid_fules has joined #ruby
<domgetter> smathy like posix non-compliance? :P
<shevy> I am a basher too
RegulationD has joined #ruby
maletor has joined #ruby
goeast has joined #ruby
<goeast> Hello ! I am creating a music library. The artist and the song name should be stored in a Hash. So that for example :
<goeast> Adele(key) => Hello, Skyfall (values).
<goeast> Today I have {"Adele"=>[], nil=>"Hello"}
<goeast> Can you help me ?
martee has joined #ruby
danostrowski has joined #ruby
ponga has joined #ruby
scottschecter has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
scottschecter has joined #ruby
chip__ has joined #ruby
nofacade has joined #ruby
<domgetter> goeast: on line 36, you refer to @artist, but since you never stored anything in that instance variable, it comes up as nil, and so nil points to your song in the hash
<goeast> Yes I know and I am not able to store something in it
<goeast> :(
hypercube32 has joined #ruby
<domgetter> goeast: add_song probably needs to be send both the artist and the song, so that you can add the song to the list of songs for that artist.
SilverKey has quit [Quit: Halted.]
<domgetter> needs to be sent*
maletor has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
maletor3 has joined #ruby
aep has joined #ruby
<aep> any idea why bundler is saying: Bundler::HTTPError: Network error while fetching ?
aufi has quit [Ping timeout: 260 seconds]
danostrowski has quit [Ping timeout: 244 seconds]
<goeast> domgetter : I am checking
<aep> this is gems version 2.6.4
<aep> on ruby 2.3.1p112
kareeoleez has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
<aep> actually looks like gem itself is broken too:
<aep> Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org
symm- has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
blandflakes has joined #ruby
SilverKey has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
<goeast> domgetter : https://gist.github.com/go-east/063eb95bb960bf029404e5461b533fdc still doesn't work or I might do something wrong ?
rodfersou|lunch is now known as rodfersou
pepee has joined #ruby
<domgetter> goeast: on line 36, you want @artist to just be artist. artist is what you put in the parameter list on line 35, so artist is what you want on line 36
nofacade has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor3 has quit [Ping timeout: 246 seconds]
agit0 has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
tildes_ has joined #ruby
noobsu has quit [Ping timeout: 244 seconds]
MyMind has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sid_fules has quit [Read error: Connection reset by peer]
amclain has joined #ruby
<domgetter> goeast: when there's an @ sign in front of a variable name, it's a different variable than if it doesn't have the @ sign in front of it. so @my_number and my_number are two different variables
infra-red has quit [Remote host closed the connection]
Yiota has joined #ruby
chip__ has quit [Quit: Quitte]
hutch34_ has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
hiennaj has quit [Quit: Textual IRC Client: www.textualapp.com]
<goeast> domgetter : Thank you I slowy starting to get it :)
sid_fules has joined #ruby
<domgetter> goeast: no problem, we're all at different places on the path :)
jas02 has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
agentmeerkat has joined #ruby
<jokke> jhass: seems to be a docker problem
Noxilex has joined #ruby
<jokke> jhass: i use both, environment and env_file in my docker-compose.yml
<jokke> it doesn't seem to load the env_file
Pupeno has joined #ruby
synthroid has joined #ruby
Ishido has joined #ruby
hutch34 has joined #ruby
mleung has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
certainty has joined #ruby
Evan_ has quit [Quit: Oh shit the geek died!]
Couch has quit [Ping timeout: 252 seconds]
hutch34_ has quit [Ping timeout: 240 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omphe has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
hiennaj has joined #ruby
kgrz has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
Yiota has quit [Max SendQ exceeded]
aegis3121 has quit [Ping timeout: 264 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
noobsu has joined #ruby
tildes_ has quit [Ping timeout: 260 seconds]
dionysus70 has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
k3rn31_ has quit [Quit: Computer has gone to sleep.]
Yiota has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
Evan_ has joined #ruby
Yiota has quit [Max SendQ exceeded]
last_staff has quit [Quit: last_staff]
whathappens has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
mattwashere has quit [Remote host closed the connection]
banister has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
mattwashere has joined #ruby
maletor3 has joined #ruby
startupality has joined #ruby
fclausen has joined #ruby
bfrizzle has joined #ruby
<bfrizzle> hey, does anyone have experience making TUI (e.g. ncurses-style) apps with ruby?
slackr has quit [Ping timeout: 272 seconds]
symm- has quit [Ping timeout: 260 seconds]
domgetter has quit [Ping timeout: 244 seconds]
fclausen has quit [Ping timeout: 240 seconds]
zacsek has joined #ruby
Cohedrin has joined #ruby
jottr has joined #ruby
CausaMortis has quit [Ping timeout: 252 seconds]
bruce_lee has joined #ruby
TomyLobo has joined #ruby
mikecmpb_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sammichmaker has joined #ruby
tildes_ has joined #ruby
weckl has quit [Remote host closed the connection]
<shevy> bfrizzle the poor souls who tried, abandoned it :)
<shevy> I think manveru wrote a ruby rogue ncurses game thing once
RobertBirnie has joined #ruby
nankyokusei has joined #ruby
flashpoint9 has joined #ruby
<jhass> probably a fault of ncurses though, less so ruby
czerasz has quit [Ping timeout: 260 seconds]
goeast has quit [Read error: Connection reset by peer]
goeast has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
<agent_white> I wrote a IRC client using ncursesw.
<agent_white> Then developed a drinking problem shortly after.
<goeast> domgetter : Thank you sooooo much. Just your little explanation was soooo useful. I just moved to the next step !
nankyokusei has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
infra-red has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
fedexo has quit [Ping timeout: 250 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has joined #ruby
andikr has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 252 seconds]
tristanp has quit [Read error: Connection reset by peer]
goeast has quit [Read error: Connection reset by peer]
wldcordeiro has joined #ruby
tristanp has joined #ruby
zacsek has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
SilverKey has quit [Quit: Halted.]
RegulationD has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 272 seconds]
gregf has quit [Quit: WeeChat 1.5]
mark_66 has quit [Remote host closed the connection]
cd83x has quit []
colegatron has quit [Remote host closed the connection]
GodFather has joined #ruby
goeast has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
<atmosx> aloha
gregf has joined #ruby
yqt has joined #ruby
ips|malc has joined #ruby
sid_fules has joined #ruby
mattwashere has quit [Remote host closed the connection]
nose has joined #ruby
cyfr0n has joined #ruby
cyfr0n has quit [Client Quit]
nando293921 has quit [Ping timeout: 264 seconds]
mattwashere has joined #ruby
cyfr0n has joined #ruby
skolman has joined #ruby
djbkd has joined #ruby
nose has quit [Remote host closed the connection]
CJKinni` has joined #ruby
Coldblackice has joined #ruby
marr123 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
CJKinni has quit [Ping timeout: 240 seconds]
Gasher has joined #ruby
aegis3121 has joined #ruby
Es0teric has joined #ruby
[gmi] has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
goeast has quit [Read error: No route to host]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cd83x has joined #ruby
Eiam_ has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Mattx has joined #ruby
minimalism has joined #ruby
ocbtec has joined #ruby
<Mattx> hey people!
[gmi] has quit [Client Quit]
Eiam_ has quit [Client Quit]
<Mattx> I'm getting some weird resuls with this. I'm running whois from Ruby, and I'm trying to read the exitcode so that I know when it failed (sometimes the connection is reseted, the domain is malformed or whatever)
GodFather has quit [Ping timeout: 276 seconds]
<Mattx> for instance, how do you get the exitcode of `whois foo.com` ?
certainty has joined #ruby
hahuang61 has joined #ruby
<kaleido> very carefully?
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mattx> I've tried with $?.exitstatus, which seems to work, but I think errors with that code while using system(), I'm double checking now
<elomatreb> The numerical exit code is available using $?.exitstatus
<Mattx> err, think I've seen *
RegulationD has joined #ruby
yebyen has joined #ruby
<Mattx> ah, I know what happens
<Mattx> whois returns exit code 1 when the domain is invalid, or when the domain is not registered
<Mattx> for instance `whois oasnfosanf.com`; $?.exitstatus == 1
skweek has quit [Ping timeout: 240 seconds]
<elomatreb> Isn't a tool like dig more suitable?
platzhirsch has quit [Quit: WeeChat 1.4]
mattwashere has quit [Remote host closed the connection]
<elomatreb> nevermind; misread what you're trying to do
certainty has quit [Ping timeout: 276 seconds]
mattwashere has joined #ruby
rcvalle has joined #ruby
<yebyen> does anyone use mariadb client library with mysql2 gem in windows?
marr123 is now known as marr
<Mattx> elomatreb, I'm trying to know when whois returns an error because there was a problem with the connection (I sometimes get "connection reset" or fgets problems), or because the domain is not registered
RegulationD has quit [Remote host closed the connection]
eljimmy has quit [Quit: Leaving]
<yebyen> i am obviously getting malformed packet errors because my mysql2 gem was compiled against mysql client lib (not maria lib)
sneakerhax has joined #ruby
David_H_Smith has joined #ruby
<yebyen> i let ShoesRB compile the gem for me (or however it fetches, looked like it was compiling)
<yebyen> and it doesn't present a lot of options
Yiota has joined #ruby
mozzarel1 is now known as mozzarella
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
moeabdol has joined #ruby
Yiota has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
Yiota has quit [Max SendQ exceeded]
fclausen has joined #ruby
Wolland has joined #ruby
Yiota has joined #ruby
CausaMortis has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eljimmy has joined #ruby
ips|malc has joined #ruby
hiennaj has quit [Quit: Textual IRC Client: www.textualapp.com]
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
startupality has quit [Quit: startupality]
fclausen has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
startupality has joined #ruby
lacuna has joined #ruby
Mia has quit [Read error: Connection reset by peer]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
CoderPuppy has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
nat2610 has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
choke has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jaguarmagenta has joined #ruby
kareeoleez has joined #ruby
ferr has joined #ruby
<shevy> hanmac yippie, I got the sample at rwx-master/samples/widgets/widgets.rb to work - ctrl-c SIGINT does not seem to work though, I will file at github
jottr_ has joined #ruby
<hanmac> shevy yeah when i test it in irb Ctrl-c seems to prevented ... (i dont know why and also not how to fix it) ... probably some Event i need to add
<shevy> ah ok
hahuang61 has joined #ruby
goeast has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 244 seconds]
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwashere has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
mattwashere has joined #ruby
djbkd has quit [Quit: My people need me...]
<kspencer> This may sound stupid, but I'm trying var = a + b + c / but I need it to not care about
CoderPuppy has quit [Ping timeout: 276 seconds]
<kspencer> er lets try again
Snowy has quit [Remote host closed the connection]
<kspencer> This may sound stupid, but I'm trying arrayvar = a-array + b-array + c-array / but I need it to not care about a variable being nil
agentmeerkat has quit [Read error: Connection reset by peer]
jottr has joined #ruby
agentmeerkat has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
agentmeerkat has quit [Read error: Connection reset by peer]
<jhass> 0/1 as "booleans"?
* jhass slowly moves away
tildes_ has joined #ruby
<jhass> also waaaaay too much logic to embed into a template
blaxter has quit [Read error: Connection reset by peer]
JonasOSDever has quit [Quit: *Running away*]
<kspencer> that's also literally the template though, I have the main page post to an iframe with that, so that I can have an 'instant' generation, instead of having it generate a whole page/window for it
nat26101 has joined #ruby
haxrbyte has joined #ruby
<jhass> I don't even want to know what you mean with that
agentmeerkat has joined #ruby
nat2610 has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
Macaveli has joined #ruby
gtsai has quit [Ping timeout: 258 seconds]
einarj has quit [Remote host closed the connection]
Siegfried has joined #ruby
ffgghhj has joined #ruby
<Siegfried> Hi all, would greately appreciate some help. Friend of mine is getting into programming and is coding on windows, and we're trying to figure out which version of ruby to install
<ffgghhj> could you show how to use bundle as gemset
<Siegfried> Sidebar says the 64bit versions may have issues, so is the 2.2.4 regular version best choice?
Macaveli_ has quit [Ping timeout: 240 seconds]
maletor has quit [Ping timeout: 260 seconds]
<jhass> kspencer: https://p.jhass.eu/29.rb
flashpoint9 has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
<jhass> ffgghhj: bundle --path vendor/bundle for dev, bundle --deployment on prod
hutch34 has quit [Ping timeout: 276 seconds]
<jhass> Siegfried: for windows probably still, most of the community is not on windows
<Siegfried> jhass: Yeah I get that
yqt has quit [Ping timeout: 240 seconds]
<Siegfried> I'm just trying to figure out which bundle of ruby to install
<jhass> 2.2.4 should be just fine for learning, although 2.3's integration of did_you_mean comes in handy
crystal77 has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
infra-red has quit []
SilverKey has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
mattwashere has quit [Remote host closed the connection]
workmad3 has joined #ruby
cd83x has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 276 seconds]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
_cj_ has joined #ruby
goeast has quit [Ping timeout: 276 seconds]
<_cj_> :)
Eiam_ has joined #ruby
craigp has quit [Quit: WeeChat 1.5]
<_cj_> anybody up to helping a guy who's just starting out on ruby?
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has quit [Read error: Connection reset by peer]
choke has joined #ruby
certainty has joined #ruby
binaryplease1 has joined #ruby
<shevy> are you on linux
<tobiasvl> _cj_: just ask your question and someone will answer if they can!
workmad3 has quit [Ping timeout: 250 seconds]
binaryplease has quit [Ping timeout: 260 seconds]
certainty has quit [Ping timeout: 252 seconds]
Dimik has joined #ruby
kristianpaul has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
smathy_ has joined #ruby
<manveru> ah... ncurses... the name really does it justice
nettoweb has joined #ruby
RegulationD has joined #ruby
jenrzzz has joined #ruby
anisha has joined #ruby
smathy has quit [Ping timeout: 246 seconds]
<manveru> speaking of which, i should update the ffi-tk gem sometime
kristianpaul has left #ruby [#ruby]
mattwashere has joined #ruby
binaryplease1 is now known as binaryplease
gregf has quit [Quit: WeeChat 1.5]
flashpoint9 has quit []
codecop has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
fclausen has joined #ruby
sauvin has quit [Remote host closed the connection]
madgen has joined #ruby
edwinvdgraaf has joined #ruby
Robtop__ has quit [Ping timeout: 260 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Siegfried has quit [Quit: Page closed]
<_cj_> Hello?
<manveru> _cj_: hey?
fclausen has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 250 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
kgrz has joined #ruby
symm- has joined #ruby
nat26101 has quit [Read error: Connection reset by peer]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
postmodern has joined #ruby
nat2610 has joined #ruby
edwinvdg_ has joined #ruby
<matt_d> Hi
multi_io has quit [Ping timeout: 260 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
allcentury has quit [Ping timeout: 244 seconds]
hutch34_ has joined #ruby
<kspencer> jhass: a bit more help, sorry, but I'm getting an argument error with the 'gen random content' which I renamed gen_pass
hutch34 has quit [Ping timeout: 276 seconds]
<jhass> I used keyword arguments
mgorbach has joined #ruby
multi_io has joined #ruby
choke has joined #ruby
<kspencer> #{gen_pass(length,use_uppercase: use_upper, use_lowercase: use_lower, use_numerics: use_numerics, remove_ambiguous: no_ambi)}
CoderPuppy has joined #ruby
kgrz has quit [Ping timeout: 240 seconds]
<jhass> yup
MrBusiness2 has joined #ruby
RegulationD has joined #ruby
edwinvdgraaf has quit [Ping timeout: 258 seconds]
gtsai has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
Phoeynix has joined #ruby
GBrawl has joined #ruby
Phoeynix has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<kspencer> @ jhass right, that's what i'm using, but I got 5 for 1 when using regular arguments, then 26 for 1 when using the keywords
aegis3121 has joined #ruby
<kspencer> oh wait
<kspencer> i read it wrong, the 26 for 1 is with concat
MrBusiness3 has quit [Ping timeout: 272 seconds]
<jhass> oh right, shouldn't have used * there
cpup has quit [Ping timeout: 264 seconds]
<jhass> still have to to_a there unfortunately
tildes_ has quit [Ping timeout: 244 seconds]
<kspencer> added those in and will check it
nankyokusei has joined #ruby
<hanmac> shevy playing with SIGINT does show that ruby doesn'T get the trigger anymore and wx does monopolize it ... hm maybe i need some junk to fix that
allcentury has joined #ruby
<kspencer> there it all works now :D
CausaMortis-LT has joined #ruby
startupality has quit [Quit: startupality]
noobsu has quit [Remote host closed the connection]
CausaMortis has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
nofacade has joined #ruby
<shevy> hehe "some junk"
skolman has quit [Remote host closed the connection]
<_cj_> in your trunk?
<_cj_> I can share some of mine
sid_fules has joined #ruby
miqlas-H has joined #ruby
<miqlas-H> Hi Guys!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hxegon> *.-/\/ <- junk trunk -> (_|_)
<hxegon> Hey miqlas-H
cd83x has joined #ruby
Snowy has joined #ruby
Snowy has quit [Remote host closed the connection]
omphe has joined #ruby
CausaMortis-LT has quit [Ping timeout: 276 seconds]
kirun has joined #ruby
cd83x has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 258 seconds]
nettoweb has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
freerobby has quit [Client Quit]
CausaMortis-LT has joined #ruby
jottr has joined #ruby
freerobby has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miqlas-H> Hi Guys!
mynameisbrian has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
<miqlas-H> I'm working on updating the ruby port for Haiku (latest, with gcc5 and all the shiny things). But i have some problems with it.
nettoweb has quit [Client Quit]
<miqlas-H> I got it compiled with some terminal hacks (without source changes), but i don't think that all this magic required. There need to be a problem with the configure script i think.
<norc> miqlas-H, I hope not that there need to be a problem with it.
<norc> Would make configuring just more painful!
beneggett has joined #ruby
<miqlas-H> You can find my recipe for ruby here: http://termbin.com/5k2gd
joonty has joined #ruby
<mynameisbrian> anyone read "Design patterns in Ruby"?
<mynameisbrian> is that a good first Ruby book to read
<miqlas-H> As you can see, i had to define some things in the build section.
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
<mynameisbrian> for someone who knows how to program
gregf has joined #ruby
scepticulous has joined #ruby
<miqlas-H> CFLAGS, CXXFLAGS and so on shouldn't be required, i suppose.
<mynameisbrian> I'm looking for a book to learn Ruby. I know a tiny bit of it and want to expand. I was going to use Eloquent Ruby but now I'm seeing that it should be the second book you read
choke has joined #ruby
<miqlas-H> norc :) English is not my native language, sorry.
Pupeno has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 250 seconds]
<norc> miqlas-H, I'm just teasing.
Pupeno has joined #ruby
CausaMortis-LT has quit [Ping timeout: 244 seconds]
<hxegon> mynameisbrian: Can't say much about design pattern in ruby, or eloquent ruby, but 'practical object-oriented design in ruby' is my jams
<norc> mynameisbrian, eloquent ruby is very frequently mentioned in this channel.
<mynameisbrian> norc, eloquent ruby is one that you read second though. it's covering syntax I haven't learned yet.
<miqlas-H> norc: then let me rework my sentence: I think, this defines shouldn't be needed, if the configure script would be able to handle the platform differences properly. Or maybe i'm who doing something wrong.
<mynameisbrian> thanks hxegon ill take a look
ffgghhj has quit [Quit: Leaving]
<norc> mynameisbrian, ah nevermind then. :)
palms has quit [Ping timeout: 252 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
palms has joined #ruby
smathy_ is now known as smathy
GodFather has joined #ruby
last_staff has joined #ruby
dfockler has joined #ruby
<shevy> I forgot ... pp foo is calling ... which method again? .to_str ?
<shevy> or .inspect
soc42 has joined #ruby
<mynameisbrian> p calls inspect
yqt has joined #ruby
<mynameisbrian> so maybe pp calls to_str
soc42 has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mclong has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
certainty has joined #ruby
mynameisbrian has quit [Quit: Page closed]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
whathappens has quit [Quit: Leaving...]
nat2610 has quit [Quit: Leaving.]
CausaMortis-LT has joined #ruby
ocbtec has quit [Quit: leaving]
blaxter has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
CausaMortis-LT has quit [Read error: Connection reset by peer]
certainty has quit [Ping timeout: 260 seconds]
<toretore> pp calls pretty_print
johnmilton has quit [Remote host closed the connection]
CausaMortis has joined #ruby
roamingdog has joined #ruby
codecop has quit [Remote host closed the connection]
sid_fules has joined #ruby
hahuang61 has joined #ruby
whathappens has joined #ruby
hahuang61 has quit [Client Quit]
hahuang65 has joined #ruby
soc42 has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
noobsu has joined #ruby
Ragen has joined #ruby
fclausen has joined #ruby
blaxter has quit [Quit: KTHXBYE]
<Ragen> Hi I get this errr --->> make: *** [do-install-all] Error 1
<Ragen> !!! Installation of ruby 2.3.0 failed!
<norc> Ragen, can you also include details as to how you tried installing ruby?
<norc> Ragen, all (!) the commands you used.
ramfjord has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
fclausen has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
Noxilex has quit [Ping timeout: 272 seconds]
<Ragen> apt-get update
<Ragen> apt-get install build-essential
<Ragen> wget -O ruby-install-0.6.0.tar.gz \
<Ragen> tar -xzvf ruby-install-0.6.0.tar.gz
<elomatreb> Ragen: Is there a reason you are compiling from source? If you're on debian or ubuntu there should be prebuilt packages available
<norc> elomatreb, if you have ever been on debian and ubuntu you would know why. ;-)
<norc> The packages there are grossly outdated.
<elomatreb> I usually use RVM to install ruby, which downloads prebuilt ruby packages even for the latest versions
<havenwood> Ragen: An aside, but Brightbox maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
<elomatreb> But you're right I guess, I've grown accustomed to Arch :D
<norc> elomatreb, rvm has kind of become obsolete with chruby/ruby-install as rvm is just too intrusive.
<havenwood> elomatreb: Here's a nice example of using chruby with archlinux: https://gist.github.com/jhass/8839655bb038e829fba1
jaguarmagenta has joined #ruby
<elomatreb> norc: I guess I could agree, but it makes everything so easy. I usually don't have to deal with missing libraries when building most native extensions
tildes_ has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.5]
<Ragen> I was told to try that link in rubyonrails channell
<havenwood> Ragen: Can you update the openssl package through apt-get and try again?
nando293921 has joined #ruby
<norc> electrostat, yeah. This is a rare case, generally ruby-install manages to install all ruby types without trouble.
<norc> (Assuming you are not on some exotic system)
hahuang65 has joined #ruby
<Ragen> ok will try now
<havenwood> And it's easier to fix bugs in hundreds of lines of shell than it is in tens of thousands of lines of shell.
<norc> electrostat, building native extensions usually happens with gems though, and rvm does not make this any better.
jaguarmagenta has quit [Ping timeout: 258 seconds]
<Ragen> openssl is already the newest version.
freerobby has quit [Ping timeout: 260 seconds]
whathappens has quit [Remote host closed the connection]
martee has quit [Quit: martee]
freerobby has joined #ruby
mclong has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 260 seconds]
smathy has quit [Read error: Connection reset by peer]
cd83x has joined #ruby
shinnya has joined #ruby
jottr_ has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
tildes_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
jenrzzz has joined #ruby
nhhc has quit [Remote host closed the connection]
skolman_ has joined #ruby
jas02 has quit [Ping timeout: 252 seconds]
mclong has joined #ruby
GBrawl has quit [Quit: (null)]
cd83x has quit [Ping timeout: 246 seconds]
smathy has joined #ruby
nofacade has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 264 seconds]
dfockler has quit [Quit: Leaving]
nat2610 has joined #ruby
ryann has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
_cj_ has quit [Read error: Connection reset by peer]
scepticulous has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
tgeeky has quit [Quit: leaving]
blackgoat has joined #ruby
palms has quit [Ping timeout: 252 seconds]
Mattx has quit [Quit: Leaving]
Vingador has quit [Ping timeout: 260 seconds]
iceden has quit [Ping timeout: 260 seconds]
adamf has joined #ruby
iceden has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
nat2610 has quit [Quit: Leaving.]
gtsai has quit [Remote host closed the connection]
arooni has joined #ruby
gtsai has joined #ruby
agentmee1kat has joined #ruby
mclong has quit [Ping timeout: 258 seconds]
certainty has joined #ruby
johnmilton has joined #ruby
n_blownapart has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
ur5us has joined #ruby
mclong has joined #ruby
mclong has quit [Client Quit]
agentmeerkat has quit [Ping timeout: 272 seconds]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
hutch34_ has quit [Ping timeout: 250 seconds]
boboc has joined #ruby
joskei2 has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
gtsai has quit [Ping timeout: 244 seconds]
iceden has quit [Ping timeout: 244 seconds]
soc42 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
qasaur has joined #ruby
synthroid has quit []
<miqlas-H> Bye!
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
martee has joined #ruby
hinokata has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hutch34_ has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd83x has joined #ruby
pzb has joined #ruby
joskei2 has quit [Ping timeout: 260 seconds]
BigRonnieRon has joined #ruby
emilkarl has joined #ruby
CausaMortis has quit [Ping timeout: 276 seconds]
pwnd_nsfw has joined #ruby
omphe has joined #ruby
jas02 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hutch34_ has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
hutch34_ has joined #ruby
hahuang65 has joined #ruby
ryann has quit [Remote host closed the connection]
iceden has joined #ruby
jas02 has quit [Ping timeout: 240 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
crdpink has quit [Quit: q term]
mgorbach has joined #ruby
Asher has quit [Ping timeout: 252 seconds]
pkrnj has joined #ruby
<hanmac> ping shevy
robbyoconnor has joined #ruby
pzb has quit []
peitur has joined #ruby
Asher has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nat2610 has joined #ruby
<shevy> yeah
mgorbach has quit [Quit: ZNC - http://znc.in]
crdpink has joined #ruby
platzhirsch has joined #ruby
mgorbach has joined #ruby
nankyokusei has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
prestorium has quit [Quit: Leaving]
<hanmac> shevy SIGINT fixed
<shevy> yay!
<shevy> what was it? what signal stole it?
Amylookemil has joined #ruby
Amylookemil has left #ruby [#ruby]
eljimmy has quit [Quit: This computer has gone to sleep]
anisha has quit [Quit: Leaving]
<hanmac> shevy: wxWidgets has own signal handler ... so ruby didnt get it ... for now i have it that SIGINT does close the wxApp with wxExit (which also closes the program)
nankyokusei has quit [Ping timeout: 246 seconds]
<hanmac> probably it would be an idea to send all signals back to ruby, but for now your sigint problem is fixed
hahuang65 has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
omphe has quit [Read error: Connection reset by peer]
peitur has quit []
Devalo has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
tgeeky has joined #ruby
johnmilton has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
robbyoconnor has quit [Max SendQ exceeded]
nat2610 has quit [Quit: Leaving.]
robbyoconnor has joined #ruby
robbyoconnor has quit [Client Quit]
Asher has quit [Quit: Leaving.]
CausaMortis has joined #ruby
nadir has joined #ruby
Snowy has joined #ruby
martee has quit [Quit: martee]
ryann has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
scepticulous has joined #ruby
nat2610 has joined #ruby
Devalo has quit [Remote host closed the connection]
martee has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
benegget_ has joined #ruby
beneggett has quit [Ping timeout: 272 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
bruce_lee has quit [Ping timeout: 240 seconds]
martee has quit [Client Quit]
firstdayonthejob has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
zenspider has quit [Quit: bye]
sid_fules has joined #ruby
SilverKey has quit [Quit: Halted.]
scepticulous has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving]
zenspider has joined #ruby
certainty has joined #ruby
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CJKinni` has quit [Read error: Connection reset by peer]
zenspider has quit [Client Quit]
rodfersou has quit [Quit: leaving]
certainty has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
ldnunes has quit [Quit: Leaving]
nettoweb has joined #ruby
cpup has joined #ruby
jgrevich has joined #ruby
scepticulous has joined #ruby
jas02 has joined #ruby
CoderPuppy has quit [Ping timeout: 260 seconds]
martee has joined #ruby
martee has quit [Client Quit]
roamingdog has quit [Remote host closed the connection]
aries_liuxueyang has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
jas02 has quit [Ping timeout: 276 seconds]
fclausen has joined #ruby
whathappens has joined #ruby
aries_liuxueyang has joined #ruby
haxrbyte_ has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
eljimmy has joined #ruby
Pupeno has joined #ruby
kies has quit [Ping timeout: 260 seconds]
skolman_ has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
zeroDi has joined #ruby
fclausen has quit [Ping timeout: 240 seconds]
skolman_ has joined #ruby
TomyLobo has quit [Ping timeout: 276 seconds]
martee has joined #ruby
ryann has quit [Remote host closed the connection]
ryann has joined #ruby
hahuang65 has joined #ruby
pawnbox has quit [Remote host closed the connection]
norc has quit [Quit: Leaving]
CoderPuppy has joined #ruby
pawnbox has joined #ruby
kareeoleez has quit [Remote host closed the connection]
aswen has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
jaguarmagenta has joined #ruby
LoneHermit has joined #ruby
duckpuppy has quit [Ping timeout: 258 seconds]
cpup has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 260 seconds]
alexio has joined #ruby
snockerton has quit [Quit: Leaving.]
jaguarmagenta has quit [Ping timeout: 260 seconds]
Ragen has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
roamingdog has quit [Remote host closed the connection]
ramortegui has quit [Remote host closed the connection]
workmad3 has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
scepticulous has quit [Ping timeout: 258 seconds]
cpup has joined #ruby
hutch34_ has quit [Ping timeout: 244 seconds]
hutch34_ has joined #ruby
CoderPuppy has quit [Ping timeout: 264 seconds]
blackgoat has quit [Ping timeout: 244 seconds]
bobbycvi has joined #ruby
LoneHermit has quit [Remote host closed the connection]
postmodern has joined #ruby
yqt has joined #ruby
ferr has quit [Ping timeout: 276 seconds]
sid_fules has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
sid_fules has joined #ruby
kraken has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
kraken is now known as Guest40903
ta_ has joined #ruby
Guest40903 is now known as Kraken_
<Kraken_> if (class A) inherits from (class B), and (class B) inherits from (class C), does (class A) inherit from (class C)?
floatingpoint has quit [Quit: Textual IRC Client: www.textualapp.com]
sid_fules has quit [Read error: Connection reset by peer]
matp has joined #ruby
noobsu has quit [Remote host closed the connection]
skade has quit [Ping timeout: 272 seconds]
<havenwood> >> class C end; class B < C; end; class A < B; end
<ruby[bot]> havenwood: # => nil (https://eval.in/582240)
blackgoat has joined #ruby
<havenwood> Kraken_: Try that in irb or pry then check: A < C
<havenwood> Kraken_: And take a look at: A.ancestors
benegget_ has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
ryann has quit [Remote host closed the connection]
noobsu has joined #ruby
<Kraken_> Will do!
et09 has joined #ruby
n_blownapart has quit []
<et09> how do i do String#split('foo') except preserving foo at the beginning of each segment?
<et09> is there a nice way?
polishdub has quit [Quit: Leaving]
<jhass> et09: more than one foo in your string?
<et09> it's "scan"
<et09> n/m thanks
<et09> yes
<jhass> well if scan works for you then
skade has joined #ruby
<et09> well if there is afaster way
<jhass> not quite what you described though, no?
jenrzzz_ has joined #ruby
<shevy> fast fast fast!
<et09> i do need it fast
<et09> run-time wise
<et09> like i'd prefer not to use regex like i'd have to do with scan
boboc has quit []
matp has quit [Ping timeout: 260 seconds]
<jhass> >> ["af foo af foo".scan("foo"), "af foo af foo".split(/(?<=foo)/)]
<ruby[bot]> jhass: # => [["foo", "foo"], ["af foo", " af foo"]] (https://eval.in/582241)
<jhass> >> "af foo af foo".split(/(?=foo)/)
<ruby[bot]> jhass: # => ["af ", "foo af ", "foo"] (https://eval.in/582242)
<jhass> not sure what you want exactly
<jhass> but there's the variants
am55 has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
am55 has joined #ruby
am55 has quit [Changing host]
am55 has joined #ruby
<et09> a non-regex version of variant 2 basically
zeroDi has quit [Ping timeout: 244 seconds]
<et09> well to be accurate
Gasher has quit [Quit: Leaving]
<et09> aaaaaaFOObbbbbbFOOcccccFOOddddddFOOeeeee would give me ['FOObbbbbb','FOOccccc','FOOddddddd','FOOeeeee']
CausaMortis has quit [Ping timeout: 244 seconds]
<et09> or i could also deal with:
n_blownapart has joined #ruby
noobsu has quit [Remote host closed the connection]
<et09> aaaaaaFOObbbbbbFOOcccccFOOddddddFOOeeeee would give me ['aaaaa','FOObbbbbb','FOOccccc','FOOddddddd','FOOeeeee']
<havenwood> >> 'aaaaaaFOObbbbbbFOOcccccFOOddddddFOOeeeee'.scan /FOO[^F]+/
<ruby[bot]> havenwood: # => ["FOObbbbbb", "FOOccccc", "FOOdddddd", "FOOeeeee"] (https://eval.in/582252)
<et09> if i were writing C i would just run a state machine over the string. but something tells me that'd be super slow in ruby
beneggett has joined #ruby
<et09> and again i don't want to use regex cause one of these files might be like 20mb
<et09> unless that's not a huge performance hit. idk
<et09> sounds like it would be
<jhass> ah well crafted regex (no backtracking) should be close enough to the state machine actually
Zighuatl has joined #ruby
<jhass> *a
<et09> yeah?
<jhass> yeah
<et09> i don't even have access to the file right now, lol, so i can't test
<et09> have to find an example online
jenrzzz_ has quit [Ping timeout: 244 seconds]
<et09> but i can see how that'd work
<aegis3121> Regex =~ Regular Languages =~ finite state machine IIRC
<jhass> a backtracking regex is potentially infinite I think
David_H_Smith has quit [Remote host closed the connection]
<jhass> et09: anyway, real values would be needed to assist in crafting a good regex
certainty has joined #ruby
<et09> it's a preset three char string so FOO is fine here
<et09> er, four
skade has quit [Ping timeout: 258 seconds]
<jhass> can any of the four chars occur before the four chars occur again?
jas02 has joined #ruby
Azure has joined #ruby
<et09> what?
Zighuatl has quit [Quit: Leaving]
hahuang65 has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
<jhass> is FOOaaaFaFOObbbbObbb possible and should extract "FOOaaaFa" and "FOObbbbObbb"?
ryann has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
skade has quit [Client Quit]
<havenwood> et09: FOOaaOaFOO # a O occurred before another FOO
<et09> the string never starts with FOO
<et09> oh.
<jhass> irrelevant to the question
<et09> yeah, that is the case
<et09> that will happen
banister has joined #ruby
certainty has quit [Ping timeout: 252 seconds]
gtsai has joined #ruby
startupality has joined #ruby
<jhass> .scan(/FOO.+?(?=FOO|$)/) should be good enough
<jhass> making it non-greedy should not backtrack
jas02 has quit [Ping timeout: 240 seconds]
aswen has quit [Quit: WeeChat 1.5]
sid_fules has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
zeroDi has joined #ruby
<et09> oh it needs to traverse \r too
sepp2k has quit [Ping timeout: 244 seconds]
ta_ has quit [Remote host closed the connection]
webnanners has joined #ruby
Parko has joined #ruby
mattwashere has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 272 seconds]
<et09> guess that's not s flag like i thought
n_blownapart has quit []
<et09> oh [\s\S]. got it
blandflakes has joined #ruby
finisherr has joined #ruby
nando293921 has joined #ruby
mattwashere has joined #ruby
aegis3121 has quit [Ping timeout: 252 seconds]
<et09> ok, thanks
et09 has quit [Quit: leaving]
skweek has joined #ruby
<jhass> oh, . doesn't match \r either without m? interesting
<jhass> mmh, does here actually
mattwashere has quit [Ping timeout: 272 seconds]
Pupeno has quit [Remote host closed the connection]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Zighuatl has joined #ruby
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
duckpuppy has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
millerti has joined #ruby
blandflakes has joined #ruby
nat2610 has quit [Client Quit]
dhollinger has quit [Quit: WeeChat 1.4]
sepp2k has joined #ruby
saneax is now known as saneax_AFK
rkazak has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
CausaMortis has joined #ruby
Zighuatl has quit [Quit: Leaving]
Pupeno has joined #ruby
dagelf has joined #ruby
phredus has joined #ruby
Phaenix has quit [Quit: leaving]
nankyokusei has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
xlegoman has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
gtsai has quit [Ping timeout: 258 seconds]
nando293921 has joined #ruby
hahuang65 has joined #ruby
solocshaw has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
SCHAAP137 has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
[Butch] has quit [Quit: I'm out . . .]
roamingdog has joined #ruby
agent_white has quit [Quit: brb]
ta_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
spudowiar is now known as spudowiar-banned
sid_fules has joined #ruby
druonysus has joined #ruby
spudowiar-banned has quit [Quit: WeeChat 0.4.3]
kirun has quit [Quit: Client exiting]
roamingdog has quit [Ping timeout: 264 seconds]
bmorrison has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
ta_ has quit [Ping timeout: 260 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
solocshaw has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
madgen has quit [Ping timeout: 250 seconds]
webnanners has left #ruby ["Textual IRC Client: www.textualapp.com"]
spudowiar has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
skolman_ has joined #ruby
neanderslob has quit [Remote host closed the connection]
tildes_ has joined #ruby
startupality has quit [Quit: startupality]
ryann has quit [Remote host closed the connection]
ryann has joined #ruby
David_H_Smith has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
<jokke> hi
<jokke> i'm playing around with celluloid and i don't know why my code isn't behaving the way i think it should: https://p.jreinert.com/m-sch/
<jokke> i'd expect all of the segment values to update
<jokke> but only the first one does
<jokke> all the others stay ''
JesseH has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
matp has joined #ruby
<jokke> what am i doing wrong?
blandflakes has joined #ruby
RobertBirnie has quit [Ping timeout: 244 seconds]
BackEndCoder has quit [Ping timeout: 264 seconds]
beneggett has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
mattwashere has joined #ruby
skolman_ has quit [Ping timeout: 246 seconds]
neanderslob has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
cd83x has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
smathy is now known as smathy_afk
tildes_ has quit [Read error: Connection reset by peer]
jas02 has joined #ruby
skolman_ has joined #ruby
palms has joined #ruby
tildes_ has joined #ruby
BackEndCoder has joined #ruby
rkazak has quit [Ping timeout: 264 seconds]
noobsu has joined #ruby
Wolland has quit []
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<jhass> looks like there's a #celluloid
hutch34_ has quit [Ping timeout: 260 seconds]
spider-mario has quit [Remote host closed the connection]
jas02 has quit [Ping timeout: 252 seconds]
PlasmaStar has joined #ruby
certainty has joined #ruby
noobsu has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
phoo1234567 has quit [Quit: Gotta go]
roamingdog has quit [Ping timeout: 240 seconds]
mattwashere has quit [Remote host closed the connection]
dtoast has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
spudowiar is now known as spudowiar-ban
sid_fules has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
dtoast has left #ruby ["Textual IRC Client: www.textualapp.com"]
certainty has quit [Ping timeout: 264 seconds]
dtoast has joined #ruby
spudowiar-ban is now known as spudowiar
edwinvdgraaf has joined #ruby
kies has joined #ruby
mattwashere has joined #ruby
jphase has joined #ruby
koooge has joined #ruby
ramfjord has joined #ruby
mattwashere has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 276 seconds]
David_H_Smith has quit [Remote host closed the connection]
hahuang65 has joined #ruby
CausaMortis has quit [Ping timeout: 258 seconds]
skweek has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 276 seconds]
sid_fules has joined #ruby
jaguarmagenta has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
sid_fules has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 264 seconds]
Snowy has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
toretore has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
roamingdog has joined #ruby
edwardly has quit [Quit: ??????????]
fclausen has joined #ruby
cdg has quit [Remote host closed the connection]
jnoob22 has joined #ruby
Pupeno has joined #ruby
RegulationD has quit []
moeabdol has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
madgen has joined #ruby
dagelf has quit [Ping timeout: 276 seconds]
CloCkWeRX has joined #ruby
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
Xentil has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]