havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Ox0dea> Prove it.
<shevy> go away
davedev has joined #ruby
Ox0dea has left #ruby ["WeeChat 1.4-dev"]
<shevy> hmm
spider-mario has quit [Remote host closed the connection]
<shevy> dwfait it compiled without error here, do you not get any errors?
<shevy> lots of warnings though... cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++
krobzaur has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
<nkwsy> Question on scraping data with nokogiri/mechanize. I am parcing a local document using xpath, and it works. Now I am trying to scrape from the live internets, now I have gotten the program to work using css tags, but when I try to scrape with xpath it says its undifined. my question is do I need the flie stored locally to scrape using xpath?
devoldmx has quit [Ping timeout: 260 seconds]
radgeRayden has joined #ruby
roshanavand has joined #ruby
funnel has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 246 seconds]
genpaku has quit [Ping timeout: 260 seconds]
<nkwsy> heres some relevent code to my question
<nkwsy> doc = Nokogiri::HTML(page)
genpaku has joined #ruby
funnel has joined #ruby
yokel has joined #ruby
<nkwsy> doc.xpath('//table/tbody/tr').each do |row|
<nkwsy> tarray = [] #.reject!
<nkwsy> row.xpath('td[@class="bodytextsmall"]').each do |cell|
<nkwsy>
<nkwsy> tarray << cells.text.strip
<nkwsy> #.gsub(/z+/, ' ')
kobain has joined #ruby
<bithon> nkwsy: gist.github.com
<adaedra> ^
roshanavand has quit [Ping timeout: 240 seconds]
asmodlol has quit [Ping timeout: 256 seconds]
Some-body_ has joined #ruby
dwfait has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
wavbounce has joined #ruby
sonOfRa_ has joined #ruby
abra0_ has joined #ruby
dexter__ has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
_fumk has joined #ruby
djbkd has joined #ruby
Rush has joined #ruby
boshhead_ has joined #ruby
kaspergrubbe has joined #ruby
peterhu_ has joined #ruby
charliesome has joined #ruby
klaas_ has joined #ruby
mayamai has joined #ruby
nirix_ has joined #ruby
lianj_ has joined #ruby
Affix-Phobos has joined #ruby
lianj_ has quit [Changing host]
lianj_ has joined #ruby
bakingbread has joined #ruby
bakingbread has quit [Changing host]
bakingbread has joined #ruby
martinbjeldbak_ has joined #ruby
chipotle_ has joined #ruby
LW_Luna has joined #ruby
dfoolz_ has joined #ruby
musl_ has joined #ruby
marcdel has joined #ruby
brixen_ has joined #ruby
nisstyre_ has joined #ruby
infernixx has joined #ruby
bodie__ has joined #ruby
andywojo has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
j0bk_ has joined #ruby
cats has joined #ruby
iamayam has quit [Ping timeout: 246 seconds]
nirix has quit [Ping timeout: 246 seconds]
Lorn has quit [Ping timeout: 246 seconds]
abra0 has quit [Ping timeout: 246 seconds]
<nkwsy> sorry will use
Affix has quit [Ping timeout: 246 seconds]
konopka_ has joined #ruby
infernix has quit [Ping timeout: 246 seconds]
brixen has quit [Ping timeout: 246 seconds]
martinbjeldbak has quit [Ping timeout: 246 seconds]
bodie_ has quit [Ping timeout: 246 seconds]
icedp has quit [Ping timeout: 246 seconds]
abra0_ is now known as abra0
bodie__ is now known as bodie_
infernixx is now known as infernix
Affix-Phobos is now known as Affix
samuelkadolph_ has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
peterhu has quit [Ping timeout: 246 seconds]
boshhead has quit [Ping timeout: 246 seconds]
dfoolz has quit [Ping timeout: 246 seconds]
Guest74293 has quit [Ping timeout: 246 seconds]
kaspergr1bbe has quit [Ping timeout: 246 seconds]
DarthGandalf has quit [Ping timeout: 246 seconds]
lianj has quit [Ping timeout: 246 seconds]
nisstyre has quit [Ping timeout: 246 seconds]
klaas has quit [Ping timeout: 246 seconds]
bakedb has quit [Ping timeout: 246 seconds]
musl has quit [Ping timeout: 246 seconds]
Luna_Moonfang has quit [Ping timeout: 246 seconds]
fumk has quit [Ping timeout: 246 seconds]
mrtomme has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Ping timeout: 246 seconds]
sonOfRa has quit [Ping timeout: 246 seconds]
samuelkadolph has quit [Ping timeout: 246 seconds]
sonne_ has quit [Ping timeout: 246 seconds]
catsmas has quit [Ping timeout: 246 seconds]
peitera has quit [Ping timeout: 246 seconds]
j0bk has quit [Ping timeout: 246 seconds]
konopka has quit [Ping timeout: 246 seconds]
timmow has quit [Ping timeout: 246 seconds]
konopka_ is now known as konopka
Some-body_ is now known as DarthGandalf
CloCkWeRX has quit [Ping timeout: 261 seconds]
samuelkadolph_ is now known as samuelkadolph
timmow_ has joined #ruby
peitera- has joined #ruby
Affix is now known as Guest72594
bakedb has joined #ruby
mrtomme has joined #ruby
[spoiler] has quit [Quit: Cheers!]
sonne has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
smactive has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
rgrmatt has quit [Remote host closed the connection]
dexter__ has joined #ruby
krobzaur has quit [Ping timeout: 260 seconds]
krobzaur has joined #ruby
[spoiler] has joined #ruby
smactive has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
ruby-lang769 has joined #ruby
peeja_ has quit [Ping timeout: 260 seconds]
wavbounce has quit []
nkwsy_ has joined #ruby
ruby-lang769 has quit [Ping timeout: 252 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
nkwsy has quit [Ping timeout: 246 seconds]
akem has quit [Quit: Bye]
rgrmatt has joined #ruby
^CrYpto^ has joined #ruby
^CrYpto^ has quit [Max SendQ exceeded]
CloCkWeRX has joined #ruby
nkwsy_ has quit [Ping timeout: 256 seconds]
^CrYpto^ has joined #ruby
nkwsy has joined #ruby
dlitvak has quit [Remote host closed the connection]
ascarter has joined #ruby
solars has quit [Ping timeout: 276 seconds]
rkazak_ has joined #ruby
Wsewolod has joined #ruby
nunchuck has quit [Ping timeout: 265 seconds]
trif has joined #ruby
PlasmaStar has quit [Ping timeout: 240 seconds]
waka has quit [Read error: Connection reset by peer]
tim_s007 has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
PlasmaStar has joined #ruby
tectonic has quit []
trif has left #ruby [#ruby]
asmodlol has joined #ruby
waka has joined #ruby
chouhoulis has joined #ruby
xyh has joined #ruby
DLSteve has joined #ruby
haraigo has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
kobain has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
waka has quit [Ping timeout: 246 seconds]
^CrYpto^ has quit [Quit: Leaving]
dwfait has joined #ruby
baweaver has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nkwsy> I am having trouble getting mechanize to allow me to parce using xpath. I can get it to work when I use nokogiri methods on a saved page. can anyone see where I am going worng
kirun has quit [Quit: Client exiting]
asmodlol has quit [Ping timeout: 256 seconds]
yfeldblu_ has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
asmodlol has joined #ruby
andywojo has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
treaki_ has joined #ruby
treaki_ has quit [Max SendQ exceeded]
dwfait has quit [Read error: Connection reset by peer]
xyh has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.39/20151206235742]]
duckpuppy has joined #ruby
scripore has joined #ruby
treaki has quit [Ping timeout: 260 seconds]
asmodlol has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
dorei has quit []
duckpuppy has quit [Ping timeout: 260 seconds]
asmodlol has joined #ruby
nirix_ is now known as nirix
boxofrox has quit [Ping timeout: 240 seconds]
sneakerhax has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
seitensei has joined #ruby
asmodlol has joined #ruby
_blizzy_ has joined #ruby
<_blizzy_> may anyone help me figure out why when I run this code, https://gist.github.com/NotBlizzard/5d0f5f406731911ac467 , when it tries to open the file, it returns "not in gzip format"
radgeRayden_ has joined #ruby
seitensei has quit [Ping timeout: 264 seconds]
<_blizzy_> however, if I download the file using chrome, and try to open it with ruby, it opens without errors.
radgeRayden has quit [Ping timeout: 256 seconds]
<sneakerhax> _blizzy_, possibly because you try to open it directly from the site. You said it when you download it and run it locally it works.
rrichardsr3 has joined #ruby
KnownSyntax has joined #ruby
<_blizzy_> sneakerhax, but I'm not trying to open it directly from the site.
<_blizzy_> Im saving it as hello.tar.gz, then I try to open hello.tar.gz
bkxd has joined #ruby
<_blizzy_> oh, sorry, I mean when I try to
<_blizzy_> open the local file
rrichardsr3 has quit [Max SendQ exceeded]
<_blizzy_> I can download the file with ruby without problems
<sneakerhax> You doing f.write and calling download_url
<sneakerhax> *Your
<_blizzy_> sneakerhax, yes, I have no problems with that. it's when I try to open the local file
rrichardsr3 has joined #ruby
<_blizzy_> wait
<_blizzy_> nvm Im sorrry
<sneakerhax> I"m just speculating on possibly issues
<sneakerhax> and taking what you said
chouhoulis has joined #ruby
dlitvak has joined #ruby
dwfait has joined #ruby
boxofrox has joined #ruby
<dwfait> shevy: sorry, afk for a bit. The error here is because ldflags is nil, therefore shellsplit can’t process it (from extconf.rb:64 in eventmachine)
symm- has quit [Quit: Leaving...]
bkxd has quit [Ping timeout: 260 seconds]
<dwfait> If I hack shellsplit to return empty array if nil, then I start to get C errors, because of a #define that’s not set correctly (HAVE_RB_THREAD_FD_SELECT)
chouhoulis has quit [Ping timeout: 240 seconds]
nkwsy has quit [Ping timeout: 272 seconds]
mikeric has joined #ruby
karapetyan has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
sonOfRa_ is now known as sonOfRa
<_blizzy_> ok, I updated the gist. https://gist.github.com/NotBlizzard/ad92f2c0320f879f202a at line 13, I get that the file is not in gzip format
<_blizzy_> I can download the file using ruby, I just can't open it using ruby.
devoldmx has joined #ruby
dfinninger has quit [Remote host closed the connection]
symm- has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
fantazo has quit [Ping timeout: 240 seconds]
krobzaur has quit [Read error: Connection reset by peer]
asmodlol has quit [Ping timeout: 240 seconds]
symm- has quit [Client Quit]
devoldmx has quit [Ping timeout: 260 seconds]
kegan_ has joined #ruby
davedev has quit []
nkwsy has joined #ruby
<shevy> dwfait weird... I don't have LDFLAGS set at all
asmodlol has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_> so anyway, I can't seem to open the file
<shevy> what do you mean
<shevy> can not open a file
<_blizzy_> I get the error "not in gzip format"
<shevy> are you even downloading it at all
<_blizzy_> yes, because I can open the file using winrar
<_blizzy_> well, the tar.gz file
<shevy> ah I see that now ok
<dwfait> shevy I think it’s something to do with my openssl install / setup. pkconfig is failing to get the information on the openssl package. I’ve configured my ruby install with the correct location to my openssl, maybe I’m not doing something to feed that through to the native extensions like ruby-install would? (I’m doing --with-openssl-dir=`brew --prefix openssl`)
<shevy> the file downloaded some 71MB
diegoviola has joined #ruby
dingman has quit [Ping timeout: 264 seconds]
<shevy> _blizzy_ would it work if it is .gz rather than .tar.gz ?
dlitvak has joined #ruby
<_blizzy_> shevy, trying it right now
<_blizzy_> nope, still get "not in gzip format"
<shevy> aha
<shevy> yeah
<shevy> I think the archive is not valid
<_blizzy_> then how can I open it in winrar?
<shevy> perhaps winrar has some extra code to detect invalidity ... hmm
<shevy> I can not unpack it here on linux
<shevy> file says "POSIX tar archive (GNU)"
<_blizzy_> hmm, maybe Im downloading the file wrong?
rrichardsr3 has quit [Quit: He who dares .... wins.]
devbug has joined #ruby
QualityAddict has left #ruby ["Leaving"]
<shevy> I'll play with this for a bit
<shevy> ah
<shevy> there is one thing I'd do if I were you
dlitvak has quit [Ping timeout: 276 seconds]
<shevy> I'd put this into separate actions
<shevy> (1) Download
<shevy> (2) after download, (re)package
ElFerna has joined #ruby
<_blizzy_> what do you mean by repackage
<shevy> I have no idea if this makes a difference but right now you seem to do both
<shevy> f.write(Zlib::GzipReader.new(open(download_url)).read)
shakes has joined #ruby
vikas027 has quit [Read error: Connection reset by peer]
<_blizzy_> I figured it out
<_blizzy_> f.write(open(download_url).read) works
<_blizzy_> thank you, shevy
<shevy> ah
<shevy> cool
<shevy> simplicity for the win
Edward90 has quit [Quit: Page closed]
sankaber has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
skcin7 has joined #ruby
nunchuck has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
diego1 has joined #ruby
mikeric has quit []
dwfait_ has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
dwfait has quit [Ping timeout: 250 seconds]
dwfait_ is now known as dwfait
ElFerna has quit [Quit: WeeChat 1.3]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
ElFerna has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diego1 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
dwfait has quit [Read error: Connection reset by peer]
dwfait has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
diego1 is now known as diegoviola
radgeRayden__ has joined #ruby
nkwsy has quit [Ping timeout: 276 seconds]
radgeRayden_ has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
dwfait has quit [Read error: Connection reset by peer]
dwfait_ has joined #ruby
dlitvak has joined #ruby
rasengan has joined #ruby
chouhoulis has joined #ruby
bkxd has joined #ruby
rgrmatt has quit [Remote host closed the connection]
rgrmatt has joined #ruby
woodruffw has quit [Quit: And then he took off.]
chouhoulis has quit [Ping timeout: 250 seconds]
woodruffw has joined #ruby
dwfait_ has quit [Ping timeout: 260 seconds]
dwfait has joined #ruby
fsdsdf has joined #ruby
<fsdsdf> hello
<fsdsdf> i'm having trouble using this code, it doesn't accept any file that i input. https://gist.githubusercontent.com/ttscoff/986f0dcda3d3dd4270f6/raw/cb583cd5660fc1b59b876b3b8ce79c3742a681f7/font_grabber.rb
drizze has quit [Remote host closed the connection]
radgeRayden__ has quit [Ping timeout: 250 seconds]
asmodlol has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
arescorpio has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
dwfait has quit [Quit: dwfait]
dfinninger has joined #ruby
fsdsdf has quit [Quit: Page closed]
rgrmatt has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 246 seconds]
tectonic has joined #ruby
dlitvak has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 255 seconds]
mikeric has joined #ruby
rgrmatt has joined #ruby
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
jgt has quit [Read error: No route to host]
duckpuppy has joined #ruby
rgrmatt has quit [Ping timeout: 246 seconds]
dlitvak has quit [Ping timeout: 255 seconds]
rkazak has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
shakes has quit [Quit: Leaving]
lidza_ has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
lidza__ has quit [Ping timeout: 260 seconds]
ruu_ has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
asmodlol has joined #ruby
charliesome has joined #ruby
ruu_ has quit [Ping timeout: 264 seconds]
seitensei has joined #ruby
dh64 has joined #ruby
nkwsy has joined #ruby
mikeric has quit []
wolffles has joined #ruby
seitensei has quit [Ping timeout: 255 seconds]
mezcan has quit [Remote host closed the connection]
dwfait has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
<dwfait> so a ruby ./configure && make && make install && gem install eventmachine gives output of https://gist.github.com/dwfait/9af1d6dbadac07da057a and a mkmf.log of https://gist.github.com/dwfait/8e2a7309550bbc93cbda
tectonic has quit [Ping timeout: 265 seconds]
<dwfait> things I’ve tried: without openssl support, config options of: --with-openssl-dir=`brew --prefix openssl` --with-opt-dir=/usr/local/opt/openssl
yqt has quit [Ping timeout: 240 seconds]
<dwfait> using chruby and ruby-install with 2.3, everything works OK. Any clues to where I’m going wrong?
tectonic has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
<shevy> does not ruby-install log output what it does? then you can trace back what it does differently
<shevy> havenwood should know a thing or two about ruby-install so perhaps he can help
devoldmx has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<dwfait> I’ve logged out how ruby-install configures ruby, which is where the configure flags I’ve tried come from. No luck, unfortunately
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
Hammy_Work has quit [Read error: Connection reset by peer]
<shevy> openssl is usually a pain anyway
braincrash has quit [Quit: bye bye]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
baweaver has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
Uptime has left #ruby [#ruby]
braincrash has joined #ruby
highsen has joined #ruby
rgrmatt has joined #ruby
nitrixmas is now known as nitrix
rgrmatt has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
dlitvak_ has quit [Ping timeout: 264 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
robh71 has joined #ruby
PaulCapestany has quit [Quit: .]
araujo has quit [Read error: Connection timed out]
shadoi has joined #ruby
araujo has joined #ruby
PaulCapestany has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
PsionTheory has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 272 seconds]
ruu_ has joined #ruby
nkwsy has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
marcdel has joined #ruby
devoldmx has joined #ruby
gizmore has quit [Ping timeout: 272 seconds]
shadoi has quit [Quit: Leaving.]
ruu_ has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 265 seconds]
chipotle_ has quit [Quit: cheerio]
Trynemjoel has joined #ruby
rkazak has joined #ruby
dlitvak has joined #ruby
adgtl has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
dwfait has quit [Quit: dwfait]
chouhoulis has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
skcin7 has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
<belak> Is rvm still the best way to install ruby? It was pretty much the only option when I was messing with ruby a few years ago, other than system packages.
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
domgetter has joined #ruby
robh71 has joined #ruby
adgtl_ has joined #ruby
colegatron has quit [Ping timeout: 272 seconds]
duckpuppy has joined #ruby
wildlander has quit [Quit: Saliendo]
adgtl has quit [Ping timeout: 260 seconds]
[spoiler] has quit [Ping timeout: 272 seconds]
_whitelogger has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
ammar has quit [Ping timeout: 240 seconds]
Drakevr has quit [Ping timeout: 240 seconds]
marwinism has quit [Ping timeout: 240 seconds]
lnx has quit [Ping timeout: 250 seconds]
oddmunds has quit [Ping timeout: 255 seconds]
Morrolan has quit [Ping timeout: 255 seconds]
canton7 has quit [Ping timeout: 276 seconds]
leslie has quit [Ping timeout: 264 seconds]
Takumo has quit [Ping timeout: 240 seconds]
lucas_ has quit [Ping timeout: 260 seconds]
voker57 has quit [Ping timeout: 240 seconds]
drPoggs has quit [Ping timeout: 240 seconds]
tekacs has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Ping timeout: 264 seconds]
plsk has quit [Ping timeout: 264 seconds]
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
drPoggs has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
scripore has quit [Quit: This computer has gone to sleep]
rkazak has quit [Quit: Sleep.....ing....]
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
tekacs has joined #ruby
CloCkWeRX has joined #ruby
dseitz has joined #ruby
[spoiler] has joined #ruby
colegatron has joined #ruby
bkxd has joined #ruby
arescorpio has quit [Quit: Leaving.]
PlasmaStar has quit [Ping timeout: 240 seconds]
dlitvak_ has joined #ruby
_whitelogger has joined #ruby
drPoggs has joined #ruby
tekacs has joined #ruby
JStoker has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
JoL1hAHN has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
EvilJStoker has joined #ruby
houhouli_ has joined #ruby
ruu_ has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
[spoiler] has joined #ruby
houhoulis has quit [Ping timeout: 255 seconds]
bjmllr_ has quit []
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
ruu_ has quit [Ping timeout: 256 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
CloCkWeRX has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
dlitvak_ has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
dingman has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
seitensei has quit [Ping timeout: 256 seconds]
marcdel has quit [Ping timeout: 240 seconds]
smactive has joined #ruby
charliesome has quit [Client Quit]
darkf has joined #ruby
dfinninger has quit [Remote host closed the connection]
charliesome has joined #ruby
bjmllr has joined #ruby
dfinninger has joined #ruby
smactive has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
chouhoulis has joined #ruby
Gadgetoid has quit [Ping timeout: 272 seconds]
<wolffles> hi
<domgetter> What's up?
<wolffles> just thought id say hi
<wolffles> was too quiet
bkxd has joined #ruby
dfinninger has quit [Ping timeout: 246 seconds]
Gadgetoid has joined #ruby
<domgetter> Perhaps everyone's busy enjoying their new Xmas presents
<wolffles> i got nothing for christmas
<wolffles> :/
andywojo has quit [Ping timeout: 265 seconds]
fantazo has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
<domgetter> That sucks :(
dlitvak has quit [Ping timeout: 245 seconds]
<wolffles> ehhh i havent gotten very many presents in years
<Radar> belak: no RVM isn't the best option.
dlitvak has joined #ruby
<shevy> domgetter I got only awful presents
<shevy> domgetter well, except for a new ruby
<domgetter> And a new Perl (if you're into that)
<pontiki> i got something pearlescent
<Radar> I gave my wife a pearl necklace
<pontiki> nice
<domgetter> nicccce
yfeldblum has joined #ruby
canton7 has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takumo has quit [Ping timeout: 240 seconds]
canton7 has quit [Ping timeout: 276 seconds]
PlasmaStar has quit [Ping timeout: 260 seconds]
PlasmaStar has joined #ruby
blackgoat has joined #ruby
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
bkxd has quit [Ping timeout: 256 seconds]
Antiarc has joined #ruby
bjmllr has quit [Quit: WeeChat 1.0.1]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 246 seconds]
rgrmatt has joined #ruby
bjmllr has joined #ruby
the_nick_me has joined #ruby
bjmllr has quit [Client Quit]
bjmllr has joined #ruby
rgrmatt has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
the_nic__ has joined #ruby
kaspergrubbe has joined #ruby
JStoker has quit [Ping timeout: 240 seconds]
tekacs has quit [Ping timeout: 240 seconds]
PlasmaStar has quit [Ping timeout: 260 seconds]
leslie has quit [Ping timeout: 240 seconds]
drPoggs has quit [Ping timeout: 240 seconds]
voker57 has quit [Read error: Connection reset by peer]
EvilJStoker has quit [Ping timeout: 250 seconds]
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
the_nick_me has quit [Ping timeout: 255 seconds]
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
tekacs has joined #ruby
drPoggs has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
dingman has quit [Ping timeout: 276 seconds]
JStoker has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
PlasmaStar has joined #ruby
ruu_ has joined #ruby
kegan_ has quit [Ping timeout: 272 seconds]
EvilJStoker has joined #ruby
kegan_ has joined #ruby
baweaver has joined #ruby
claw has quit [Ping timeout: 260 seconds]
ruu_ has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Quit: Leaving...]
cassioscabral has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
claw has joined #ruby
adgtl_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
dlitvak_ has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
baweaver has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
charliesome has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
duckpuppy has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
devoldmx has quit [Remote host closed the connection]
sp1rs has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
the_nick_me has joined #ruby
tectonic has quit []
the_nic__ has quit [Ping timeout: 240 seconds]
canton7 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
trwyth has joined #ruby
trwyth has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
canton7 has quit [Ping timeout: 265 seconds]
passerine has joined #ruby
dlitvak has joined #ruby
karapetyan has joined #ruby
ruu_ has joined #ruby
xet7 has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
themsay has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
rgrmatt has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
adgtl has joined #ruby
Dimik has joined #ruby
rgrmatt has quit [Ping timeout: 276 seconds]
_whitelogger has joined #ruby
drPoggs has joined #ruby
JoL1hAHN has joined #ruby
tekacs has joined #ruby
voker57 has joined #ruby
EvilJStoker has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
hagabaka has quit [Ping timeout: 260 seconds]
JStoker has joined #ruby
passerine has left #ruby [#ruby]
skcin7 has quit [Max SendQ exceeded]
skcin7 has joined #ruby
djbkd has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
[spoiler] has joined #ruby
RegulationD has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
arup_r has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
rkazak_ has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
gizless has joined #ruby
rkazak_ has quit [Client Quit]
_whitelogger_ has joined #ruby
kster has joined #ruby
chouhoulis has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
tekacs has joined #ruby
[spoiler] has joined #ruby
drPoggs has joined #ruby
charliesome has joined #ruby
<kster> question as an experienced developer but complete ruby noob. i've been given a ruby project with little knowledge of configuration. the "start" command that's in my docs is: bundle exec dl:start:all is there like a ...compiled build cache or something? i'm receiving an error referencing a change i was doing in one of the .rb fi
<kster> les, but i already undid that change and the error is still happening
leslie has joined #ruby
leslie has joined #ruby
<kster> i was trying to add in a new object member named short_order_id to be a truncated version of the original property order_id
charliesome has quit [Client Quit]
EvilJStoker has joined #ruby
<kster> but i've reverted the code back to original. but execution still throws an error referring to short_order_id
charliesome has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
gizmore has joined #ruby
_blizzy_ has quit [Quit: Leaving]
senayar has joined #ruby
senayar has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
baweaver has joined #ruby
gizless has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby
JStoker has joined #ruby
highsen has quit [Ping timeout: 260 seconds]
senayar has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
adgtl has quit [Remote host closed the connection]
cyfr0n has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
nkwsy has joined #ruby
PlasmaStar has quit [Ping timeout: 255 seconds]
highsen has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
agit0 has joined #ruby
canton7 has joined #ruby
Morrolan has joined #ruby
kaspergrubbe has joined #ruby
marwinism has joined #ruby
Drakevr has joined #ruby
ammar has joined #ruby
lnx has joined #ruby
_whitelogger has joined #ruby
marwinism has quit [Ping timeout: 265 seconds]
voker57 has joined #ruby
_whitelogger has joined #ruby
the_nick_me has quit [Remote host closed the connection]
Drakevr has joined #ruby
kaspergrubbe has joined #ruby
lnx has joined #ruby
djbkd_ has quit [Remote host closed the connection]
marwinism has joined #ruby
lucas has joined #ruby
sp1rs has quit [Read error: Connection reset by peer]
FernandoBasso has joined #ruby
vdamewood has joined #ruby
marr has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
Highsen has quit [Ping timeout: 246 seconds]
oddmunds has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
AlexRussia has joined #ruby
rgrmatt has joined #ruby
karapetyan has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
lacuna has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 256 seconds]
rgrmatt has quit [Ping timeout: 255 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
devbug_ has joined #ruby
duckpuppy has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
norc has joined #ruby
<norc> Hello folks.
<norc> I see, we have gotten our Christmas present. :)
Highsen has joined #ruby
axsuul has joined #ruby
seitensei has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
asmodlol has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
BrunoSaboia has joined #ruby
seitensei has quit [Ping timeout: 245 seconds]
cyfr0n has joined #ruby
BSaboia has quit [Ping timeout: 256 seconds]
<norc> So Im thinking about a feature request for our next Ruby version. "Source code comments everywhere".
<norc> And I'm just wondering about the countless variations of broken English this feature request will be denied with.
arup_r has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 260 seconds]
<domgetter> If you want to submit a feature request that will be denied, I'm sure we can get pretty creative...
Begi has joined #ruby
arup_r has joined #ruby
andywojo has joined #ruby
drPoggs has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
[spoiler] has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
rab00f has joined #ruby
andywojo has quit [Ping timeout: 240 seconds]
drPoggs has joined #ruby
[spoiler] has joined #ruby
_whitelogger has joined #ruby
wolffles has quit [Quit: wolffles]
postmodern has joined #ruby
EvilJStoker has joined #ruby
devoldmx has joined #ruby
hanmac has joined #ruby
SegFaultAX has quit [Ping timeout: 250 seconds]
Klumben has quit [Ping timeout: 240 seconds]
johnhamelink has quit [Ping timeout: 260 seconds]
Junaos_ has quit [Ping timeout: 260 seconds]
rcs has quit [Ping timeout: 240 seconds]
JStoker has joined #ruby
bmn has quit [Ping timeout: 246 seconds]
senayar has quit [Ping timeout: 240 seconds]
miah has quit [Ping timeout: 240 seconds]
platzhirsch has left #ruby [#ruby]
Sou|cutter has quit [Ping timeout: 250 seconds]
anekos has quit [Ping timeout: 240 seconds]
mblagden has quit [Ping timeout: 272 seconds]
kenichi has quit [Ping timeout: 240 seconds]
Liothen has quit [Ping timeout: 250 seconds]
papercode has quit [Ping timeout: 250 seconds]
G has quit [Ping timeout: 250 seconds]
alem0lars has quit [Ping timeout: 260 seconds]
klaas_ is now known as klaas
devoldmx has quit [Ping timeout: 265 seconds]
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
rcs has joined #ruby
spider-mario has joined #ruby
trwyth has joined #ruby
dkam has joined #ruby
rcs has quit [Ping timeout: 240 seconds]
Liothen has joined #ruby
Liothen has joined #ruby
kenichi has joined #ruby
Junaos has joined #ruby
G has joined #ruby
Sou|cutter has joined #ruby
kmckelvin has joined #ruby
papercode has joined #ruby
anekos has joined #ruby
rcs has joined #ruby
bmn has joined #ruby
rab00f has quit [Quit: Leaving]
SegFaultAX has joined #ruby
mblagden has joined #ruby
miah has joined #ruby
cyfr0n has quit [Ping timeout: 255 seconds]
axsuul has quit [Ping timeout: 272 seconds]
axsuul has joined #ruby
houhouli_ has quit [Remote host closed the connection]
djbkd has joined #ruby
DoubleMalt has joined #ruby
NightMonkey has quit [Ping timeout: 250 seconds]
jbrhbr has joined #ruby
snarkanoid has joined #ruby
Junaos has quit [Ping timeout: 246 seconds]
kenichi has quit [Ping timeout: 246 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anekos has quit [Ping timeout: 240 seconds]
bmn has quit [Ping timeout: 240 seconds]
rcs has quit [Ping timeout: 255 seconds]
Sou|cutter has quit [Ping timeout: 260 seconds]
miah has quit [Ping timeout: 265 seconds]
mblagden has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 276 seconds]
papercode has quit [Ping timeout: 264 seconds]
johnhamelink has joined #ruby
Junaos has joined #ruby
kmckelvin has quit [Ping timeout: 245 seconds]
dtordable has quit [Remote host closed the connection]
dtordable has joined #ruby
puria has quit [Ping timeout: 260 seconds]
steffkes has quit [Ping timeout: 272 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
skcin7 has joined #ruby
dtordable has quit [Read error: Connection reset by peer]
Pupeno has quit [Remote host closed the connection]
skcin7 has quit [Max SendQ exceeded]
trampi has joined #ruby
dtordable has joined #ruby
skcin7 has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
HANJIN has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
<norc> kegan_: Im not sure I understand your problem. Can you provide a sample document (haml/slim suffices) and describe it with that document?
<norc> domgetter: The difference is, I actually want that feature. ;-)
darkf has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
<norc> domgetter: Most European contributions that introduce new functions actually bring fairly extensive documentation, this really must be some Japanese thing.
puria has joined #ruby
Jackneill has joined #ruby
<domgetter> norc: Oh you meant comments in Ruby's source code?
<norc> Yes.
<domgetter> not just source code of programs written in Ruby
<norc> There are some C functions spanning up to thousands of lines of code, containing less than a dozen lines of comments - if any.
<norc> It is downright silly.
platzhirsch has joined #ruby
<domgetter> The function for puts uses goto :P
<norc> There is no such thing as goto.
<norc> On a serious note, goto is fine for some convuluted conditionals.
arup_r has joined #ruby
<norc> What is worse is the fact that Ruby makes heavy use of macros, which makes building call graphs really hard, which means it is really hard to figure out what a function does if it doesnt say.
dlitvak has joined #ruby
<norc> domgetter: Nothing wrong with that.
<domgetter> I... didn't say there was?
chouhoulis has quit [Ping timeout: 276 seconds]
<norc> Oh.
<domgetter> "norc
<domgetter> There is no such thing as goto. "
kegan_ has quit [Ping timeout: 256 seconds]
<norc> domgetter: Ah, it's a saying I used at work for a colleque that used it to great extend for control flow - needless to say, his libraries ended up being largely unmaintainable.
dlitvak has quit [Remote host closed the connection]
<domgetter> Ah, okay
<domgetter> My brother and I have a similar saying about how there's no such thing as plain text
darkf has joined #ruby
mdw has joined #ruby
<norc> What is interesting, is that Ruby - like most other languages, uses setjmp/longjmp for Exceptions as well as catch and throw - internally they are actually not that much different. :)
<norc> And you can abuse that fact to rescue from actual segmentation faults, there is a Ruby hacker here how found a really neat way for this.
<blub> call/cc is just goto done right
AlphaAtom has joined #ruby
colegatron has quit [Ping timeout: 256 seconds]
<domgetter> blub: isn't that deprecated and replaced with Fibers?
duckpuppy has joined #ruby
<blub> i forgot where i was sorry
m8 has joined #ruby
<norc> blub: Well they are completely different things. Goto is local, call/cc is not.
kegan_ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
<norc> Or wait, which language are we talking about.
<norc> Scheme? C? Ruby?
fantazo has joined #ruby
<domgetter> Smalltran
SCHAAP137 has joined #ruby
<domgetter> Algvascript
blackmesa has joined #ruby
<kegan_> norc: im exhausted, please excuse the lack of example here, i think i can explain well enough though. if not i'll just wait until after sleep: page contains numerous divs with class="categories", some have one child <a> with category text, others have multiples. as it stands, using nokogiri's xpath on the page w/ xpath= //div[@class="categories"] will give me, for the divs with multiple anchors,
<kegan_> all of the results mashed into one nodeset, whereas I want to be able to delineate between each match under that parent div so that I can separate them in some meaningful fashion
<norc> kegan_: Just write a sample HAML document please. It is fairly easy. :)
<norc> Or slim. Whatever
last_staff has joined #ruby
<norc> (Or a full XML example if you prefer, but HAML/SLIM is probably much faster to type :P)
kmckelvin has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<norc> The reason Im forcing you, is because I don't have the time to read and guess what you mean. If you give a sample document, we can use it to test various examples against.
<norc> Much faster and more reliable way of getting help. :)
<kegan_> norc, i get it, i would do the same. you're not being unreasonable, not in the slightest, I just... I can't. i respect the request and i'll come back after sleep when i can
colegatron has joined #ruby
<norc> Fair enough. :)
<norc> kegan_: Incidentally, you should have such sample documents anyway - because you test your application with RSpec/Minitest, am I right? ;-)
* norc hides
mostlybadfly has joined #ruby
anisha has joined #ruby
Feyn has joined #ruby
rgrmatt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
dearleader has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kegan_> ahaha, for a rails app? TDD w/ rspec. for a <80 line crawl script? no way
rgrmatt has quit [Ping timeout: 245 seconds]
anisha_ has joined #ruby
<kegan_> should i minitest those? for the sake of edification?
<kegan_> not sarcasm
rcs has joined #ruby
ta has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
<kegan_> i'm about to drop dead on my desk here, incapable of derision
anekos has joined #ruby
bmn has joined #ruby
kenichi has joined #ruby
anisha_ has quit [Client Quit]
axsuul has joined #ruby
<norc> kegan_: Never not write tests I say.
kp666 has joined #ruby
greenarrow has joined #ruby
kp666 has quit [Max SendQ exceeded]
<norc> Often the issue is that developers tend to be the test framework themselves. If you want to add something with an expected behavior, do not verify that behavior in the browser after writing it - verify it in the test.
anekos has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
rcs has quit [Ping timeout: 246 seconds]
kp666 has joined #ruby
kmckelvin has quit [Ping timeout: 245 seconds]
kp666 has quit [Max SendQ exceeded]
<norc> If you do it right, you end not not even needing the Browser at all during development, aside from styling.
bmn has quit [Ping timeout: 255 seconds]
kp666 has joined #ruby
kenichi has quit [Ping timeout: 276 seconds]
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
mdw has quit [Quit: Sleeping Zzzzz]
kp666 has joined #ruby
anisha__ has joined #ruby
kp666 has quit [Max SendQ exceeded]
anisha has quit [Quit: Leaving]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
toretore has joined #ruby
kp666 has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
mdw has joined #ruby
kp666 has quit [Max SendQ exceeded]
anisha has joined #ruby
kp666 has joined #ruby
Junaos has quit [Ping timeout: 264 seconds]
kp666 has quit [Max SendQ exceeded]
axsuul has quit [Ping timeout: 260 seconds]
johnhamelink has quit [Ping timeout: 250 seconds]
kp666 has joined #ruby
SegFaultAX has quit [Ping timeout: 240 seconds]
anisha__ has quit [Client Quit]
Liothen has quit [Ping timeout: 264 seconds]
G has quit [Ping timeout: 264 seconds]
seitensei has quit [Ping timeout: 240 seconds]
Begi has quit [Ping timeout: 256 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
trif has left #ruby [#ruby]
katxic has joined #ruby
marr has quit []
katxic has quit [Client Quit]
dfinninger has joined #ruby
Gnut has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
anisha__ has joined #ruby
TomyLobo has quit [Quit: Leaving]
dfinninger has quit [Ping timeout: 256 seconds]
anisha__ has quit [Client Quit]
anisha_ has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
anisha_ has quit [Client Quit]
anisha_ has joined #ruby
miah has joined #ruby
Mon_Ouie has joined #ruby
anekos has joined #ruby
kenichi has joined #ruby
Junaos has joined #ruby
anisha_ has quit [Client Quit]
anisha_ has joined #ruby
devoldmx has joined #ruby
bmn has joined #ruby
anisha_ has quit [Client Quit]
anisha_ has joined #ruby
rcs has joined #ruby
anisha_ has quit [Client Quit]
duckpuppy has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
G has joined #ruby
anisha__ has joined #ruby
anisha_ has quit [Remote host closed the connection]
anisha__ has quit [Remote host closed the connection]
mblagden has joined #ruby
anisha_ has joined #ruby
papercode has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
anisha_ has quit [Client Quit]
Sou|cutter has joined #ruby
anisha_ has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
norc has quit [Ping timeout: 252 seconds]
anisha_ has quit [Client Quit]
anisha_ has joined #ruby
kegan_ has quit [Ping timeout: 260 seconds]
SegFaultAX has joined #ruby
SegFaultAX has quit [Changing host]
SegFaultAX has joined #ruby
anisha_ has quit [Client Quit]
shredding has joined #ruby
FooMunki has joined #ruby
karapetyan has joined #ruby
rgrmatt has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 256 seconds]
booboo has joined #ruby
rgrmatt has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Ping timeout: 245 seconds]
<booboo> hi, I cannot compile eventmachine under ruby 2.3, here's the log: http://pastebin.com/evNP8WKS Is it just me or it should be reported ?
<ruboto> booboo, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
bkxd has joined #ruby
<Papierkorb> booboo: To see why this extension failed to compile, please check the mkmf.log which can be found here: /usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/eventmachine-1.0.8/mkmf.log
<Papierkorb> booboo: please !gist that file
<booboo> Papierkorb: yes, sorry
roshanavand has joined #ruby
<booboo> Papierkorb: mkmf.log says "dyld: Symbol not found: __cg_jpeg_resync_to_restart\n"
<Papierkorb> booboo: No idea about ruby2.3's API changes, nor Mac in general, but try googling for that method name
<booboo> Papierkorb: yes, I've just found something about it, thanks
roshanavand has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
anisha_ has joined #ruby
anisha_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
solocshaw has joined #ruby
anisha has quit [Ping timeout: 250 seconds]
skcin7_ has joined #ruby
BrunoSaboia has quit [Ping timeout: 256 seconds]
booboo has quit [Quit: Page closed]
alem0lars has joined #ruby
skcin7 has quit [Ping timeout: 246 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
dorei has joined #ruby
FernandoBasso has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
shredding has quit [Ping timeout: 276 seconds]
scripore has joined #ruby
dkam_ has joined #ruby
dfinninger has joined #ruby
chouhoulis has joined #ruby
dkam has quit [Ping timeout: 240 seconds]
gagrio has quit [Quit: Leaving...]
banister has joined #ruby
gagrio has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
FooMunki has quit [Quit: FooMunki]
SirCmpwn has quit [Ping timeout: 260 seconds]
FooMunki has joined #ruby
senayar has joined #ruby
ec has quit [Ping timeout: 240 seconds]
peterhu_ has quit [Ping timeout: 256 seconds]
pleiosaur has quit [Ping timeout: 260 seconds]
csaunders has quit [Ping timeout: 250 seconds]
janelleb has quit [Ping timeout: 246 seconds]
LBRapid_ has quit [Ping timeout: 240 seconds]
Nightmare has quit [Ping timeout: 240 seconds]
nonopposition is now known as CrazEd
j0bk_ has quit [Ping timeout: 256 seconds]
rasengan has quit [Ping timeout: 276 seconds]
Jello_Raptor has quit [Ping timeout: 276 seconds]
annomander has quit [Ping timeout: 264 seconds]
CrazEd is now known as Guest34080
roshanavand has quit [Remote host closed the connection]
dexter__ has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
Klumben has joined #ruby
sdothum has joined #ruby
yaewa has quit [Quit: Leaving...]
d0nn1e has quit [Ping timeout: 250 seconds]
c355e3b has joined #ruby
toretore has quit [Ping timeout: 272 seconds]
moei has joined #ruby
senayar has quit [Ping timeout: 250 seconds]
d0nn1e has joined #ruby
dexter__ has joined #ruby
c0ncealed has quit [Remote host closed the connection]
themsay has joined #ruby
c0ncealed has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
FernandoBasso has joined #ruby
robh71 has joined #ruby
dearleader has quit [Quit: Leaving]
cyfr0n has joined #ruby
krz has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
themsay has quit [Quit: AtomicIRC: The nuclear option.]
ghr has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
pawnbox has joined #ruby
AlphaAtom has joined #ruby
trwyth has joined #ruby
ghr has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
johnhamelink has joined #ruby
AlphaAtom has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug_ has quit [Read error: Connection reset by peer]
colegatron has quit [Ping timeout: 240 seconds]
AlphaAtom has quit [Ping timeout: 250 seconds]
seitensei has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
seitensei has quit [Ping timeout: 255 seconds]
Feyn has quit [Quit: Leaving]
duckpuppy has quit [Ping timeout: 250 seconds]
anisha has joined #ruby
AlphaAtom has joined #ruby
Highsen has quit [Ping timeout: 255 seconds]
Highsen has joined #ruby
colegatron has joined #ruby
elaptics`away is now known as elaptics
lxsameer has quit [Ping timeout: 260 seconds]
HANJIN has quit [Quit: HANJIN]
lxsameer has joined #ruby
Guest34080 is now known as CrazEd
CrazEd is now known as Guest6223
chouhoulis has joined #ruby
AlphaAtom has quit [Remote host closed the connection]
Highsen has quit [Ping timeout: 240 seconds]
Highsen has joined #ruby
pawnbox has quit [Remote host closed the connection]
roshanavand has joined #ruby
AlphaAtom has joined #ruby
j0bk has joined #ruby
pawnbox has joined #ruby
PedramT has joined #ruby
roshanavand has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
csaunders has joined #ruby
LBRapid has joined #ruby
SirCmpwn has joined #ruby
Jello_Raptor has joined #ruby
nfk has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
cyfr0n has quit [Quit: WeeChat 1.3]
scripore has joined #ruby
cyfr0n has joined #ruby
senayar has joined #ruby
pleiosaur has joined #ruby
peterhu has joined #ruby
anisha has quit [Ping timeout: 265 seconds]
rasengan has joined #ruby
ec has joined #ruby
scripore has quit [Read error: Connection reset by peer]
janelleb has joined #ruby
scripore has joined #ruby
csaunders has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
Salehi has joined #ruby
j0bk has quit [Ping timeout: 255 seconds]
Jello_Raptor has quit [Ping timeout: 245 seconds]
SirCmpwn has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 240 seconds]
peterhu has quit [Ping timeout: 240 seconds]
janelleb has quit [Ping timeout: 245 seconds]
pleiosaur has quit [Ping timeout: 245 seconds]
senayar has quit [Ping timeout: 256 seconds]
scripore has quit [Client Quit]
devoldmx has quit [Ping timeout: 240 seconds]
rasengan has quit [Ping timeout: 276 seconds]
scripore has joined #ruby
snarkanoid has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
Highsen has quit [Remote host closed the connection]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 260 seconds]
robh71 has joined #ruby
karapetyan has quit [Remote host closed the connection]
toretore has joined #ruby
last_staff has quit [Quit: last_staff]
roshanavand has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
asmodlol has quit [Ping timeout: 272 seconds]
Jardayn has joined #ruby
asmodlol has joined #ruby
kmckelvin has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
osiutino has joined #ruby
mary5030 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
fantazo has quit [Quit: Verlassend]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
jgt has joined #ruby
csaunders has joined #ruby
LBRapid has joined #ruby
duckpuppy has joined #ruby
Jello_Raptor has joined #ruby
peterhu has joined #ruby
ec has joined #ruby
janelleb has joined #ruby
kster has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
morfin has quit [Read error: Connection reset by peer]
pleiosaur has joined #ruby
rasengan has joined #ruby
morfin has joined #ruby
j0bk has joined #ruby
annomander has joined #ruby
SirCmpwn has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
curses has joined #ruby
boxofrox has quit [Quit: WeeChat 1.3]
skingsbu has joined #ruby
jgt1 has joined #ruby
FooMunki has quit [Quit: FooMunki]
Ox0dea has joined #ruby
FooMunki has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
<skingsbu> Hello all I am in the process of converting a legacy perl script to Ruby and have a question on how ruby reads a yaml file.
skcin7_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<skingsbu> i can read individual values fine but i have some that are in the following format
<skingsbu> name:
<skingsbu> -
<skingsbu> -
TheMoonMaster has quit [Ping timeout: 272 seconds]
<skingsbu> trying to pull that into an array
nullwarp has quit [Ping timeout: 250 seconds]
lianj_ is now known as lianj
alakra has quit [Ping timeout: 240 seconds]
robh71 has joined #ruby
Salehi has quit [Ping timeout: 256 seconds]
jgt1 has quit [Ping timeout: 255 seconds]
<Ox0dea> skingsbu: https://eval.in/493760
<pontiki> an array of nils?
<skingsbu> sorry - val1
<skingsbu> - val2
dfinninger has joined #ruby
<skingsbu> etc
chouhoulis has joined #ruby
Mon_Ouie has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
chipotle has joined #ruby
karapetyan has joined #ruby
<skingsbu> thanks for the quick response i appreciate it
xet7 has quit [Quit: Leaving]
dfinninger has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
karapety_ has joined #ruby
samgerber has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
senayar has joined #ruby
<Ox0dea> sum grep * %% (3|5), ^1000
pawnbox has quit [Remote host closed the connection]
scripore has joined #ruby
<Ox0dea> Bye, y'all.
<pontiki> bye <sniff>
krobzaur has joined #ruby
<Ox0dea> :'(
<Ox0dea> It's so nice!
pawnbox has joined #ruby
<pontiki> enjoy :)
<Ox0dea> The list of nifty (and useful) features just goes on and on.
<Ox0dea> There's a ponbiki in #perl6...
<pontiki> no relation. shevy already made hay about that
PedramT has quit [Remote host closed the connection]
cassioscabral has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
PedramT has joined #ruby
blackmesa has joined #ruby
PedramT has quit [Remote host closed the connection]
kam270 has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
kam270 has quit [Max SendQ exceeded]
edwinvdgraaf has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
skcin7 has joined #ruby
edwinvdg_ has joined #ruby
DoubleMalt has joined #ruby
edwinvdg_ has quit [Client Quit]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
dtordable has quit [Ping timeout: 272 seconds]
AlphaAtom has joined #ruby
PedramT has joined #ruby
nateberkopec has joined #ruby
mrtomme has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
mrtomme has joined #ruby
samgerber has quit [Ping timeout: 272 seconds]
codecop has joined #ruby
dtordable has joined #ruby
dtordable has quit [Client Quit]
dtordable has joined #ruby
peeja has joined #ruby
krobzaur has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Quit: Leaving...]
Encapsulation has joined #ruby
wildlander has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
wildlander has joined #ruby
arup_r has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
dexter__ has quit [Quit: WeeChat 1.3]
axsuul has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
Exce1l has joined #ruby
seitensei has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
<shevy> haha
krobzaur has joined #ruby
AlphaAtom has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
<arup_r> hehe
rab00f has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
snarkanoid has joined #ruby
dtordable has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
dwfait has joined #ruby
<Exce1l> heyhey
nullwarp has joined #ruby
alakra has joined #ruby
karapety_ has quit [Read error: Connection reset by peer]
<belak> Is there a big difference between rbenv, chruby and rvm?
karapetyan has joined #ruby
<adaedra> features, mainly
<adaedra> way of working, also.
<shevy> hmm what was the way to find out the common entries in two arrays? & ?
dwfait has quit [Client Quit]
<adaedra> chruby and rvm will modify your env to provide you correct paths while rbenv will provide binary "shims" calling the choosen versions
chipotle has quit [Quit: cheerio]
<adaedra> rvm will provide the most features (but is heavier), chruby is the lightest (do just one thing, choosing ruby versions – but do it well ;) )
TheMoonMaster has joined #ruby
jottr has joined #ruby
chouhoulis has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
osiutino has quit [Quit: Ex-Chat]
rippa has joined #ruby
jbrhbr has quit [Quit: Leaving.]
Wsewolod has joined #ruby
sp1rs has joined #ruby
Exce1l has quit [Quit: Exce1l]
chouhoulis has quit [Ping timeout: 245 seconds]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robh71 has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
robh71 has quit [Client Quit]
devoldmx has joined #ruby
senayar has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
lxsameer has quit [Quit: Leaving]
colegatron has quit [Ping timeout: 265 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
jordanm has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
karapetyan has quit [Ping timeout: 256 seconds]
dualbus has joined #ruby
dualbus has quit [Client Quit]
ElFerna has joined #ruby
Pupeno has quit [Remote host closed the connection]
Begi has joined #ruby
<arup_r> shevy: `Array#&`
<arup_r> >> puts [1,2] & [1]
<ruboto> arup_r # => 1 ...check link for more (https://eval.in/493779)
unreal_ is now known as unreal
<arup_r> I need to go through the Ruby core API.. they added lot of new methods.. :)
robh71 has joined #ruby
<shevy> they did?
<Ox0dea> arup_r: Array#& is a very old method.
<shevy> Ah yes #dig and such
<arup_r> Yes, I know
peeja has quit [Ping timeout: 250 seconds]
<shevy> I don't think I have used it yet
dualbus has joined #ruby
<pontiki> dig looks pretty cool
gagrio has quit [Remote host closed the connection]
<pontiki> i'm still not too sure about &.
<arup_r> Ox0dea: But they added some new things like #dig , and now some enumerable methods are added to Array also.. which was not before
hagabaka has joined #ruby
<Ox0dea> arup_r: Array got new methods in 2.3?
<arup_r> shevy: yes Array#dig
<Ox0dea> > and now some enumerable methods are added to Array also
<Ox0dea> arup_r: What did you mean there?
<shevy> yeah new
<arup_r> ok.. Yes, I saw it yesterday.. But now not able to remember .. A method may be in 2.3 or in 2.2.* ..
colegatron has joined #ruby
<shevy> arup_r also Hash#dig
Ilyes512 has joined #ruby
colegatron has quit [Max SendQ exceeded]
The_Phoenix1 has joined #ruby
colegatron has joined #ruby
sp1rs has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Ping timeout: 276 seconds]
<arup_r> I also read in a blog where authro shown we can check if a hash includes another hash .. now not able to recall the method .. :/
dtonal has joined #ruby
sp1rs has joined #ruby
<arup_r> there are series of comparisons..
bkxd has quit [Ping timeout: 260 seconds]
<blub> why are some of them hsh
<Ox0dea> hi blub
<blub> hi ox0dea
<Ox0dea> >> hash # blub
<ruboto> Ox0dea # => -508949562 (https://eval.in/493780)
<Ox0dea> People (mistakenly) think they need to be careful with that identifier.
hinbody has quit [Ping timeout: 265 seconds]
<Ox0dea> Or else it's just for symmetry with `ary`, `str`, and the like.
<belak> Is it possible to not have to install chruby locally? Similar to how rbenv works?
dtonal has left #ruby ["Konversation terminated!"]
_blizzy_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
<adaedra> You can put chruby anywhere you please
<belak> It seems like all the recommendations are to just run sudo make install
Darin_ has joined #ruby
<arup_r> Ox0dea: ok it is #any, but is is included in 2.2.1 not in 2.2.3 before 2.2.1 it was documented in Enumerable, but since 2.2.1 it is in Array API
karapetyan has joined #ruby
<Ox0dea> arup_r: Array#any? and Enumerable#any? are different methods.
<pontiki> hmm. what are the reasons for: https://github.com/ruby/ruby/blob/v2_3_0/NEWS#L307 ?
<arup_r> Nah, they are same.. see what I said
anisha has joined #ruby
<adaedra> belak: chruby is just a set of shell scripts, they don't really depend on a location.
<belak> Ah, o
<belak> *ok
FernandoBasso has quit [Quit: Leaving]
<Ox0dea> >> [].method(:all?).owner == [].method(:any?).owner # arup_r
<ruboto> Ox0dea # => false (https://eval.in/493781)
Rodya_ has joined #ruby
<Ox0dea> Array#any? is optimized specifically for Array.
<arup_r> ^^ That is my point
<_blizzy_> atm I'm making a ruby version manager for windows. it's a fun project.
mdw has joined #ruby
<Ox0dea> arup_r: Why are you talking about differences between 2.2.1 and 2.2.3?
howdoi has quit [Quit: Connection closed for inactivity]
<arup_r> nothing.. leave it :)
<Ox0dea> And why has documentation to do with any of this?
<Darin_> What good is a get_name method that asks for a name of a person, if the only way to print out a greeting you have to give the name of a person as an argument when you create a new person object?
pawnbox_ has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
<arup_r> See, when I was referring before the #any method, I need to read it from Enumerable API, since 2.2.1 it was added to the Array API ..
<arup_r> but I thought it is added 2.3 .. which I was wrong..
<Ox0dea> arup_r: But they're different methods...
<pontiki> ta, adaedra
sp1rs has quit [Read error: Connection reset by peer]
smactive has joined #ruby
<arup_r> Before 2.2.1 also they were different ?
<Ox0dea> No.
<arup_r> humm.. since 2.2.1 they are different..
<Ox0dea> Yes, Array#any? is optimized specifically for Array.
musl_ has quit [Quit: WeeChat 1.1.1]
<arup_r> I got it,, that is the point I want to made.. mistakenly said from 2.3
<Ox0dea> Fair enough.
<Ox0dea> 2.2 is EOL anyways. :P
musl has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
<pontiki> yay, time to install a new ruby
blackmesa has joined #ruby
<pontiki> starting with the project boxes
sp1rs has joined #ruby
smactive has quit [Ping timeout: 240 seconds]
<Ox0dea> $ ruby -v
<Ox0dea> ruby 2.4.0dev (2015-12-27 trunk 53351) [x86_64-linux]
<Ox0dea> (But don't tell anybody.)
musl has quit [Client Quit]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rab00f has quit [Ping timeout: 246 seconds]
BrunoSaboia has joined #ruby
krobzaur has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
CloCkWeRX has joined #ruby
duckpuppy has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
* adaedra tells EVERYONE
<shevy> so much geek
blackmesa has joined #ruby
DoubleMalt has quit [Max SendQ exceeded]
sandstrom has joined #ruby
<adaedra> Woohoo, tests passing! \o/
PedramT has quit [Remote host closed the connection]
<shevy> what are you testing
<adaedra> My code
lidza_ has quit [Read error: Connection reset by peer]
Darin_ has quit [Ping timeout: 252 seconds]
cajone_afk is now known as cajone
lidza_ has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
The_Phoenix1 has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
Trynemjoel has joined #ruby
jottr_ has quit [Quit: WeeChat 1.3]
postmodern has quit [Quit: Leaving]
jottr has joined #ruby
<shevy> hah
<shevy> did you mean gem strikes again
<_blizzy_> may anyone help me figure out why when ruby reaches line 10, it says "not in zip format"? https://gist.github.com/NotBlizzard/1e7df0aea2b595cb7607 I guess the file isn't downloading correctly.
<shevy> NoMethodError: undefined method `comment' for Colours:Module
<shevy> Did you mean? ecomment
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arup_r has quit [Remote host closed the connection]
<adaedra> zip != gzip
<_blizzy_> so is there anyway to open a zip using the standard library?
arup_r has joined #ruby
<pontiki> compiling!!
sp1rs has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
<Ox0dea> _blizzy_: Just use Rubyzip?
Trynemjoel has quit [Ping timeout: 264 seconds]
<_blizzy_> Ox0dea, for reasons, I'd rather try to make this without using 3rd party gems.
<Ox0dea> _blizzy_: Then you get to do some learning.
arup_r has joined #ruby
rab00f has joined #ruby
chouhoulis has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
<shevy> pontiki which version have you picked?
arup_r has joined #ruby
anisha has quit [Ping timeout: 276 seconds]
Trynemjoel has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
roshanavand has joined #ruby
<pontiki> 2.3.0
arup_r has quit [Read error: Connection reset by peer]
<pontiki> the fans are running!
samgerber has joined #ruby
<_blizzy_> hmm, IDK where to even start.
arup_r has joined #ruby
<pontiki> _blizzy_: is there some reason you refuse to use the Zlib::Inflate methods?
<_blizzy_> pontiki, no, but I didn't know about that until now. thanks.
samgerber has quit [Remote host closed the connection]
arup_r has quit [Read error: Connection reset by peer]
<pontiki> it's in the same library...
arup_r has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
arup_r has quit [Read error: Connection reset by peer]
roshanav_ has quit [Ping timeout: 246 seconds]
samgerber has joined #ruby
arup_r has joined #ruby
anisha has joined #ruby
xcesariox has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
roshanav_ has joined #ruby
arup_r has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<shevy> needle in a haystack, needle in a haaaaaaystack!
<_blizzy_> pontiki, https://gist.github.com/NotBlizzard/1d2a488f4ae39effa8ec , but now I get buffer error. I've tried changing read to read(10), no prevail.
Evan- is now known as EvanGuru
senayar has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
dwfait has joined #ruby
arup_r has joined #ruby
<_blizzy_> also, sorry, I didn't notice Zlib::Inflate in the Zlib library.
<Papierkorb> _blizzy_: ZLib only handles zlib compressed data, not zip archives ...
roshanav_ has quit [Ping timeout: 260 seconds]
arup_r has quit [Read error: Connection reset by peer]
<_blizzy_> so how would I open a zip file using the standard library ....
colegatron has quit [Ping timeout: 276 seconds]
<Papierkorb> _blizzy_: 'ZIP' is a file format. It's like you're trying to open a word document with notepad.exe
<_blizzy_> I can't find anything on Google.
<Papierkorb> _blizzy_: by implementing a ZIP-file reader
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
bytecrawler has quit [Quit: WeeChat 0.4.2]
arup_r has joined #ruby
<Papierkorb> (Or using rubyzip of course)
anisha has quit [Quit: Leaving]
ElFerna has quit [Ping timeout: 250 seconds]
ElFerna has joined #ruby
RegulationD has joined #ruby
<_blizzy_> ugh, screw it, I'll use rubyzip. thanks everyone.
senayar has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 256 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sp1rs has joined #ruby
Trynemjoel has joined #ruby
samgerber has quit [Ping timeout: 272 seconds]
CloCkWeRX has left #ruby [#ruby]
kster has joined #ruby
<kster> morning. anyone around for a noob ruby question?
<havenwood> kster: Ask away!
samgerber has joined #ruby
roshanavand has joined #ruby
colegatron has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kster> i'm an experienced dev. but complete ruby noob. but alas i had a ruby project dropped in my lap and i don't know what's going on with it. i started tinkering with the files but i screwd it up somehow. now whenever i execute the program, i get an error referring to a piece of code i modified but already reverted
<Ox0dea> Please tell us more.
<havenwood> Feed us code.
<kster> the command i execute to start the program is: bundle exec rake dl:start:all
<Ox0dea> And the error?
<kster> the error is methodnotfound "short_order_id" i was trying to add a new property to an order object
<kster> but apparently did it wrong
<Ox0dea> And now the code. :P
<kster> well..let me pull up the part i did edit
roshanavand has quit [Ping timeout: 246 seconds]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
wolffles has joined #ruby
<kster> i was thinking it was just adding a member property
<kster> but apparently not. i think it's actually referring to a mysql model instead
yqt has joined #ruby
<kster> the inheritence isn't that clear to me. this file assets.rb inherits from downloader:Asset
<dwfait> Could be that you need to migrate / do a db:schema:load if it’s a Rails model. The attributes on a model are loaded in from the database, so if your database is out of sync, your model won’t have the attribute on it.
<kster> and downloader:asset inherits from asset... which i dunno even know where that is
<kster> so i should update the db schema, add a new field short_order_id then run...what? bundle exec rake db:schema:load ?
<dwfait> Are you trying to add the new short_order_id field on the model?
<dwfait> If so, you’ll need to write a rails migration to do so and run it before your code will work: http://edgeguides.rubyonrails.org/active_record_migrations.html
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
<kster> what i would like is just a member property that's a truncated version of the full order_id
<kster> i don't need to necessarily have a db field for it
<kster> but if new db field makes it easier...then sure why not
<dwfait> Then you could just have a method in the model which truncates it on access (a getter)
<dwfait> No need to assign it that way.
<kster> are getters implicit across the board? i just didn't even see a decleartion for getters
<dwfait> For fields on the database, yes, they’re explicit
<dwfait> but if you want one for something calculated, not stored on the database, it’s quite easy
<kster> so if i... def short_order_id self.order_id.split('-')[1] that should do it...
Begi has quit [Ping timeout: 256 seconds]
<kster> sounds good....
Begi has joined #ruby
jottr has quit [Quit: WeeChat 1.3]
<dwfait> Yup, stick that in your model and you should be good.
adgtl has joined #ruby
<dwfait> Don’t need the self. there though I think.
<kster> do i still need the rails migration?
kalopsian has joined #ruby
<dwfait> No, you’re not creating any changes to the database schema, so you’re good.
<kster> cause something's stuck in memory right now. even upon recompilation, it's still thinking there's a short_order_id referred
<kster> is there like a make clean equiv?
<dwfait> But you won’t be able to assign it like the way you are in your rake task.
<kster> ugh omg kid just spilled half gallon of water
<kster> br
<dwfait> No make clean, it’s an interpreted language with no ahead of time compilation. If there’s an issue, means there’s something still causing trouble in your code
<kster> brb
devoldmx has joined #ruby
andywojo has joined #ruby
pawnbox has joined #ruby
Pupeno has joined #ruby
pawnbox_ has quit [Ping timeout: 264 seconds]
robh71 has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
PedramT has joined #ruby
Pupeno has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wolffles has quit [Quit: wolffles]
PedramT has joined #ruby
<dwfait> Anyone have any idea why require 'mkmf'; have_func('rb_thread_fd_select') returns false for me in ruby 2.3?
seitensei has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 1.2]
nertzy has joined #ruby
AlphaAtom has quit [Ping timeout: 246 seconds]
<Ox0dea> dwfait: That's very strange.
PedramT_ has joined #ruby
PedramT_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dwfait> It is. It’s causing native extensions to fail. It works fine on 2.3 installed with ruby-build, but when I compile ruby myself, it returns false.
Ilyes512 has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
PedramT has quit [Ping timeout: 272 seconds]
<Ox0dea> dwfait: That function isn't even conditionally defined. :/
Begi has quit [Ping timeout: 260 seconds]
jgt1 has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
PedramT has joined #ruby
chouhoulis has joined #ruby
tvw has joined #ruby
AlphaAtom has joined #ruby
norc has joined #ruby
rab00f has quit [Quit: Leaving]
jgt1 has joined #ruby
robh71 has joined #ruby
Ilyes512 has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
<kster> dang....no good. still getting error
<kster> undefined method `short_order_id=' for #<Downloader::Core::Asset:0x00000004c567b0>
<kster> next line in error: /lib/downloader/core/asset.rb:56:in `init_attributes'
JakFrist has joined #ruby
<kster> that's....so odd since that line doesn't exist with short_order_id
<norc> kster: Since I just hopped in - are you using some kind of app preloader like Spring perhaps (Rails?)
Pupeno has joined #ruby
<norc> kster: Also are you sure it is the complete stack trace?
<kster> norc: i have no idea. i'm a complete ruby noob
<kster> there's much more detail
niko has quit [Quit: leaving]
<kster> it just goes into the full stack
<norc> kster: Are you developing a Rails framework? Please post the related source code and the full stack trace in a gist please.
<norc> *in the
mdw has quit [Quit: Sleeping Zzzzz]
<dwfait> kster: we defined a getter, the short_order_id= is a setter that we haven’t defined
lacuna has quit [Remote host closed the connection]
adgtl has quit [Ping timeout: 240 seconds]
<dwfait> you don’t need to assign to the attribute, as the getter we created gets the value on the fly when called
niko has joined #ruby
<dwfait> so you can get rid of the line to assign to it in your rake task
<kster> dwfait, yea but....i'm not even sure why the error with the setter is even showing up?
<kster> i did. it's not even there anymore
mjw56 has joined #ruby
<dwfait> Something is still trying to assign to that field from somewhere…can you put the stacktrace up in a gist?
diegoviola has joined #ruby
<kster> yea i'll do
adgtl has joined #ruby
<dwfait> can you show the code of the `init_attributes' method in asset.rb?
<kster> this is nuts. i grepped for "short" in entire project folder...nothing
pnbeast has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
sonOfRa has quit [Quit: Bye!]
PaulCapestany has quit [Quit: .]
<dwfait> Are you using spring / guard / any other Rails preloader?
sonOfRa has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
<kster> ...don't think so? but don't really know
kster2 has joined #ruby
<kster2> entire asset.rb file
<kster2> lib/downloader/core/asset.rb that is
dseitz has quit [Ping timeout: 245 seconds]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yes`r has joined #ruby
trwyth has joined #ruby
stannard has joined #ruby
<kster> ok ...this is running something other than what i'm looking at
<norc> kster2: Is this part of a Rails application?
PaulCapestany has joined #ruby
<kster> i just renamed the downloader/core/asset.rb file to asset2.rb it should have crapped out. . but it didn't
samgerber has quit [Remote host closed the connection]
<kster> norc. how od i tell?
<kster> it's defeintley going to a mysql db
<norc> kster: You tell me... are you writing a Ruby on Rails application?
<kster> i got a ruby application dropped into my lap :P
<kster> support dev. it's the best *snicker*
<norc> kster: Look for the Gemfile in your project root directory, open it, and search for rails.
Rodya_ has quit [Remote host closed the connection]
<kster> no mention of rails
houhoulis has joined #ruby
<kster> gem beanstalkd_view
<kster> gem mysql2
<kster> gem database_cleaner
<kster> get bluepill
<_blizzy_> geez, all the ruby 2 exe projects are dead-ish.
<norc> gist maybe?
arup_r has quit [Remote host closed the connection]
<_blizzy_> guess I gotta write this in Go or something.
<kster> yea sure i'll put it up
<norc> Because if it somehow uses spring or zeus, you should probably restart that. ;-)
<norc> kster: Honestly though, we are not your tech support channel - we help people learn Ruby.
<norc> What you probably are looking for is a Ruby consultant.
nertzy has quit [Quit: This computer has gone to sleep]
santaclaus1 has quit [Remote host closed the connection]
<kster> quite understandable.
arup_r has joined #ruby
<kster> i'm just reaching out to anywhere for help.
samgerber has joined #ruby
<norc> Shall we talk about an hourly rate?
scripore has quit [Quit: This computer has gone to sleep]
sev4252 has joined #ruby
<shevy> usually if you have to make modifications to a project before you can get it to run, it's not worth to continue investing more time into it
arup_r has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 250 seconds]
<kster> no offense man, i don't get paid enough to pay out of my pocket for consulting :)
arup_r has joined #ruby
<norc> Have your company pay for it then.
<kster> yea i'll have to take it up to big heads
<norc> Nothing is worse than you trying to fix something that you dont understand. It gives them the wrong impression they can task you with more of this.
inanepenguin has joined #ruby
<norc> While you just ending up not knowing what you are doing.
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<kster> i'm not even normally in this area. i'm in the web applicaitons in php and coldfusion.
<kster> but hey...stuff gets broken, i'm the tech guy. this ruby was someone else's project
arup_r has quit [Read error: Connection reset by peer]
<norc> That is your chance to step up then.
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
<kster> i am trying to fix this problem. of course something that needed to be fixed 2 weeks ago. but that guy just done left on us
arup_r has joined #ruby
<norc> We are currently in the process of injecting lots of Ruby code across our IT infrastructure because of rapid prototyping - as part of this we looked for partners with Ruby developers - to have backup solutions in case I become unavailable.
sandstrom has quit [Quit: My computer has gone to sleep.]
samgerber has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
<norc> kster: All the more reason to show them that you need a reliable partner. Because it becomes only worse if you take over.
<norc> kster: Mind my asking which City is your company located in_
<kster> chicago
stannard has quit [Remote host closed the connection]
<kster> if you can refer anyone, i'd be grateflu
<kster> ful
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
stannard has joined #ruby
<norc> Personally I don't know anyone from Chicago, but from what I hear there is plenty of Ruby and/or Rails freelancers around there.
karapetyan has joined #ruby
jgt1 has quit [Ping timeout: 256 seconds]
<norc> Other people here might know (or even be) someone
sp1rs has quit [Ping timeout: 246 seconds]
Gnut has joined #ruby
sev4252 has quit [Quit: leaving]
sp1rs has joined #ruby
nkwsy has joined #ruby
<_blizzy_> yay for ocra
<kster> well. for the moment, i'll just go back to taking a production snapshot and loading it up on a vm and keep poking at it
<kster> thanks guys
DLSteve has joined #ruby
kster2 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kster has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
stannard has quit [Ping timeout: 260 seconds]
<havenwood> _blizzy_: You might take a look at releasy as well.
<_blizzy_> havenwood, I did, but the last commit was like in 2014.
sandstrom has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
<norc> _blizzy_: I still haven't tried it.
<norc> Is it really that decent?
<_blizzy_> norc, it's ok.
<norc> We are currently in the process of overhauling our server space, but are unsure which direction to pursue (We are heavily leavning towards Docker based provisioning)
<_blizzy_> I've never used Docker.
samgerber has joined #ruby
duckpuppy has joined #ruby
inanepenguin has quit [Quit: inanepenguin]
atomical has joined #ruby
nkwsy has quit [Ping timeout: 260 seconds]
domgetter has joined #ruby
devoldmx has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 246 seconds]
<_blizzy_> hmm, I need to find a list of precompiled binaries for windows
<_blizzy_> nvm.
queequeg2 has joined #ruby
sonOfRa has quit [Quit: Bye!]
ElFerna has joined #ruby
sonOfRa has joined #ruby
TomPeed has joined #ruby
chouhoulis has joined #ruby
dingman has joined #ruby
kalopsian has quit [Ping timeout: 255 seconds]
asmodlol has quit [Ping timeout: 260 seconds]
asmodlol has joined #ruby
jgt1 has joined #ruby
scottschecter has joined #ruby
tectonic has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
sp1rs has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
dwfait has quit [Quit: dwfait]
AlphaAtom has joined #ruby
tmtwd has joined #ruby
rodfersou has joined #ruby
skcin7 has joined #ruby
Rodya_ has joined #ruby
jbrhbr has joined #ruby
puria has quit [Ping timeout: 246 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
atomical_ has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 255 seconds]
atomical has quit [Ping timeout: 265 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
samgerber has quit [Ping timeout: 240 seconds]
ruid has joined #ruby
Rodya_ has joined #ruby
ta has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
AlphaAtom has joined #ruby
stannard has joined #ruby
Rickmast_ has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
puria has joined #ruby
pawnbox has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
Gnut has quit [Ping timeout: 246 seconds]
nkwsy has joined #ruby
asmodlol has joined #ruby
bause has joined #ruby
bause has quit []
dkelman has joined #ruby
ruid has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
pawnbox has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
pawnbox has joined #ruby
<dkelman> does anyone here know how to open an airplay socket in ruby?
<dkelman> and make it discoverable?
<Zarthus> Is it possible to create an OpenStruct that does not call k = k.to_sym? I'm using `OpenStruct.new('a' => 'b').to_h.to_yaml' but am not entirely fond of the ":a: b" syntax and would prefer if the leading colon is gone.
<Zarthus> I could do some string replacements but none of the solutions I can think of seem to be worth the readability / familiarity it might offer.
seitensei has joined #ruby
pnbeast has quit [Quit: leaving]
<norc> Zarthus: You could reimplement (or use if you have AS as a dependency already) stringify_keys and symbolize_keys
axsuul has quit [Ping timeout: 255 seconds]
<dkelman> norc: Thanks!!
<Zarthus> norc: I'll have a look at it. I'm currently experimenting with overriding to_h
<norc> Zarthus: Dont.
<norc> Doing that is likely going to break things.
<Zarthus> Even if I specifically have a different class that extends OpenStruct?
dingman has quit [Ping timeout: 260 seconds]
seitensei has quit [Ping timeout: 250 seconds]
adgtl has quit [Remote host closed the connection]
<shevy> monkey patching might work
<shevy> I think the conversion is done because method names are kept as symbols
mdw has joined #ruby
<shevy> >> OpenStruct.new('a' => 'b').to_h
<ruboto> shevy # => uninitialized constant OpenStruct (NameError) ...check link for more (https://eval.in/493824)
<shevy> ruboto is not a xmasbot!
<Zarthus> shevy: it is, OpenStruct calls k = k.to_sym in OpenStruct.new()
<Zarthus> which is great, but when outputting it as a yaml file I find it just looks ugly and might even confuse users.
Ox0dea has joined #ruby
<Ox0dea> Zarthus: Symbol keys are part of the YAML spec.
bause has joined #ruby
<Ox0dea> Any conforming implementation should handle them "sanely", and users should be aware of this feature.
<Ox0dea> Don't coddle the lowest common denominator.
dkelman has quit [Read error: Connection reset by peer]
agit0 has quit [Quit: zzzZZZ….]
<Zarthus> Ox0dea: I'd find it less of a problem if it was consistent. But:
<Zarthus> >> require 'ostruct'; OpenStruct.new('a' => {'b' => 'c'}).to_h
<ruboto> Zarthus # => {:a=>{"b"=>"c"}} (https://eval.in/493825)
<shevy> yeah
<Ox0dea> That's not inconsistent.
<Zarthus> It'll make a YAML file only have symbols on the earliest indentation level, and the hashes proceeding that are not "symbolized"
<Zarthus> as writing it goes or manually editing, I'd say it's easier to keep it all the same.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yqt has joined #ruby
<shevy> >> require 'ostruct'; OpenStruct.new({'a' => {'b' => 'c'}}).to_h == {'a' => {'b' => 'c'}}
<ruboto> shevy # => false (https://eval.in/493826)
chouhoulis has joined #ruby
<shevy> is intended and documented behaviour though http://ruby-doc.org/stdlib-2.3.0/libdoc/ostruct/rdoc/OpenStruct.html#method-i-to_h - other than monkey patching you could try to report to ruby core but only hanmac here gets changes into ruby core :D
<shevy> perhaps you want an OriginalStruct that does not do automagic conversions
<Zarthus> In my personal opinion, it's either everything or nothing. And it's (probably) both easier and looks better to have no preceeding colon. If anything, I'd expect the YAML library to read and write them in as symbols at all times, but the yaml library also seems very undocumented as far it's available options go. But anything else would be a bit overkill for what I am writing.
<Papierkorb> Zarthus: Just convert the result hash in the form you want it
<shevy> Zarthus yeah it should be user-controllable
chipotle has joined #ruby
<Zarthus> Papierkorb: I'm currently experimenting with ActiveSupport's stringify_keys method
<Ox0dea> Zarthus: Are you sure you need OpenStruct?
<shevy> Zarthus but I don't think .to_yaml is at fault, it already is a symbol before .to_yaml
<Zarthus> Ox0dea: Absolutely sure? nope. I'm writing a configuration file class though, that loads in and stores in yaml
<Ox0dea> Zarthus: So what's wrong with a Hash?
ur5us has joined #ruby
nunchuck has quit [Ping timeout: 272 seconds]
<shevy> Zarthus haha I did about the same thing for a custom Configuration object that I would use :D
<Papierkorb> Zarthus: See the 'config' gem
yfeldblum has joined #ruby
<Papierkorb> Zarthus: oh, we're not in #RubyOnRails. You can get it to work however without rails, it also does not depend on active support. But I don't know if it supports writing configs
chouhoulis has quit [Ping timeout: 265 seconds]
<norc> Zarthus: That method is like a 5 line method
<norc> So you can provide it zourself
<Zarthus> norc: I am,
<Ox0dea> norc: It should be one.
<shevy> Zarthus can indeed provite it for zourself
<Zarthus> Ox0dea: Haven't experimented with it. It's probably entirely possible to do it with a hash as well. I can't say I've experimented sufficiently with either approach to give a concise answer to your question.
<Ox0dea> Zarthus: Well, what made you reach for OpenStruct in the first place?
<Zarthus> Somebody else used it in their configuration class.
<Zarthus> :~D
<Ox0dea> OpenStruct is for when you want to say `foo.bar` instead of `foo[:bar]`.
<Ox0dea> It's a cosmetic library.
ruu_ has joined #ruby
existensil_ is now known as existensil
<shevy> lipstick on a pig
<Ox0dea> Zarthus: Tada! https://eval.in/493829
symm- has joined #ruby
<Ox0dea> Never mind.
<Zarthus> I didn't want to override initialize without calling super(), seemed like a bad thing to do on ruby-provided libraries
<Zarthus> If something changes in the future it'll possibly break.
<Ox0dea> It's already borked. The getters key into `@table` with Symbols.
<norc> Ox0dea: Honestly, somehow I expected more in 2.3 :(
* shevy fetches popcorn
<Ox0dea> norc: I'd've quite liked `%d[1 2 3]`, but I didn't figure out how to implement it in time. :(
<norc> I was a bit disappointed when all that was new was the neat #to_binary and #load from RubyVM::IS
nunchuck has joined #ruby
<Ox0dea> norc: I bet you'd like Perl 6.
<norc> Ox0dea: What is that syntax supposed to do?
<Ox0dea> norc: The obvious?
<norc> Ox0dea: Im asking because I prefer not to guess.
<Ox0dea> We have %w for array of "words" and %i for array of "interns"; why not %d for array of numerics?
<norc> See, I never even know that the letters had meanings. ;-)
<norc> I thought they were picked due to a resemblance to Kanji characters.
<norc> You knew know.
<norc> *You never know.
<Ox0dea> %d[2ri 3.14 4e2].all?(Numeric) #=> true
<Ox0dea> That should be made a reality.
<norc> Well, at least we have #dig now.
ur5us has quit [Remote host closed the connection]
<shevy> <norc> I thought they were picked due to a resemblance to Kanji characters.
<shevy> ^^^ one more for my epic IRC collection!
<Ox0dea> norc: %i[have some keys].reduce(hash, :[]) rescue nil
ur5us has joined #ruby
<norc> Im not sure I like Exceptions for that...
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> But that may just be me.
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea> Hm... it'd be nice if there were a way to stick safe navigation semantics in there.
BrunoSaboia has quit [Read error: Connection reset by peer]
<norc> Ox0dea: I have one for you though, you might have a way to solve this one (I couldnt see a way)
hahuang61 has quit [Ping timeout: 255 seconds]
BrunoSaboia has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
* Ox0dea whips out Fiddle.
decoponio has quit [Quit: Leaving...]
segmond has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 260 seconds]
darkf has quit [Quit: Leaving]
<norc> No, just wrap stdlib.
<norc> Any more elegant way that you can see_
stannard has joined #ruby
hahuang61 has joined #ruby
<norc> (It basically is a combination of limiting parameters to those specified, and mapping them to other names)
atomical has joined #ruby
<norc> Could have simply used strong params for one part, and did the other with a simple map, but that was boring.
nkwsy has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
xblade has joined #ruby
kalopsian has joined #ruby
yfeldblum has joined #ruby
atomical_ has quit [Ping timeout: 256 seconds]
mjw56 has quit [Ping timeout: 265 seconds]
stannard has quit [Ping timeout: 240 seconds]
<norc> I wish I had the time to write on blogs.
<Ox0dea> Oh. Well, that article is all about various ways to do this sort of thing.
<Ox0dea> Yours looks fine, though.
<pontiki> hi, again, after a morning nap that stretched to the afternoon
<pontiki> now installing 2.3 on the host machine
dtordable has joined #ruby
<pontiki> wheee!!
dtordable has quit [Remote host closed the connection]
dtordable has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<norc> Ox0dea: There is a couple gems linked in that blogs comment, I think Ill check those out.
<norc> I actually do this pattern in a few places where I have to work with our LDAP servers.
kalopsian has quit [Ping timeout: 265 seconds]
<shevy> pontiki lol
<shevy> pontiki that's actually funny... I thought you finished a long time ago with it by now
xblade has quit []
atomical has joined #ruby
<norc> Still no 2.3
<norc> What is this
ur5us has joined #ruby
<pontiki> well, the VM boxes, yeah. but then i started to poke at some other stuff, and some other stuff, and... and then i got a bit tired. old age does that you know
marr has joined #ruby
pawnbox has quit [Remote host closed the connection]
<pontiki> norc, is the NG in that name for nginx or angular?
arup_r has quit []
wolffles has joined #ruby
sandstrom has joined #ruby
<Ox0dea> pontiki: "NG" almost always indicates "next generation".
<norc> pontiki: Next generation, because Ubuntu has this old Debian disease where they add packages as quickly as Perl releases new versions.
<Ox0dea> Sick burn.
<pontiki> ah so
xblade has joined #ruby
xblade has quit [Client Quit]
pdoherty has joined #ruby
tildes has quit [Ping timeout: 265 seconds]
solocshaw has quit [Ping timeout: 265 seconds]
bradleyprice has joined #ruby
akem has joined #ruby
solocshaw has joined #ruby
dwfait has joined #ruby
atomical_ has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
ruu_ has quit []
duckpuppy has joined #ruby
bradleyprice has quit [Ping timeout: 276 seconds]
atomical has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
ChameleonSix has joined #ruby
<ChameleonSix> Hello
duckpuppy has quit [Ping timeout: 264 seconds]
<ChameleonSix> how do i define string length
<Ox0dea> ChameleonSix: Wat.
<ChameleonSix> for example if something is longer than letters in string
bause has quit [Remote host closed the connection]
<wolffles> string.length
<ChameleonSix> array = ["Tree", "House"] house = array.select { |key| key > 4 }
mdw has quit [Quit: Sleeping Zzzzz]
<ChameleonSix> i want key to be longer than 4 letters
<Ox0dea> ChameleonSix: Do you know about methods?
<ChameleonSix> def?
<ChameleonSix> yeah
<Ox0dea> ChameleonSix: No, like #select there. That's a method on Array.
<Ox0dea> String also has some methods.
<adaedra> Some.
<Ox0dea> What do you reckon the one that tells you how long the string is is called?
<ChameleonSix> key.length
<Ox0dea> Well done.
<ChameleonSix> yeah
chipotle has quit [Quit: cheerio]
<wolffles> so i have a line of code that works fine when i use { } but when “do end” is used it returns #enumerator
blackmesa has joined #ruby
<Ox0dea> wolffles: {} binds a little more tightly.
kalopsian has joined #ruby
<norc> Ox0dea: That sounds cuddly.
colegatron has quit [Ping timeout: 240 seconds]
<Ox0dea> wolffles: https://eval.in/493835
<Ox0dea> In the second case, the block is being passed to `p` (and ignored).
axsuul has joined #ruby
_seanc_ has joined #ruby
<wolffles> so is it just a general rule that { } is a safer bet?
<Ox0dea> No. Use Weirich's rule.
<Ox0dea> If you follow that convention, you'll never be printing the result of a `do/end`, so you'll be "safe".
<ChameleonSix> ruby vs python*
<ChameleonSix> ?
<Ox0dea> Get out.
<norc> The problem though stems from leaving optional parens Ox0dea.
<norc> It is the mother of 95% syntax errors I see here.
poguez_ has joined #ruby
<Ox0dea> Optional parens best parens.
ChameleonSix has quit [Quit: Page closed]
mdw has joined #ruby
<norc> Do you actually follow that style guide?
<wolffles> master debaters :P
atomical has joined #ruby
<Ox0dea> norc: Weirich's rule? Yes.
chouhoulis has joined #ruby
<norc> Well, I was just surprised you called it by its "author" - made me wonder whether you and that style guide are best buddies.
kubapol has joined #ruby
<Ox0dea> Just deference to a good man lost, really.
<norc> Fair enough.
<norc> >> 1 if 1 if 1 if
<ruboto> norc # => /tmp/execpad-7651d14240fb/source-7651d14240fb:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/493837)
<norc> >> 1 if 1 if 1 if 1
<ruboto> norc # => 1 (https://eval.in/493838)
<norc> Interesting.
<Ox0dea> >> defined? defined? defined?
<ruboto> Ox0dea # => /tmp/execpad-35a80baac7f8/source-35a80baac7f8:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/493839)
<Ox0dea> >> defined? defined? defined? 1
<ruboto> Ox0dea # => "expression" (https://eval.in/493840)
<Ox0dea> Interesting.
<norc> Well.
<wolffles> lol
<norc> What?
<Ox0dea> Why?
cassioscabral has quit [Quit: cassioscabral]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<blub> what an ugly rule
atomical_ has quit [Ping timeout: 250 seconds]
<norc> Ox0dea: Is this a parser thing?
<norc> That is the only way I can see this being possible.
<Ox0dea> norc: `defined?` is syntax, yes.
akem has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
jbrhbr has quit [Quit: Leaving.]
<Ox0dea> norc: https://eval.in/493852
<Ox0dea> One of the weirdest things in Ruby, I reckon.
colegatron has joined #ruby
<norc> Ox0dea: Im looking at the parser at the moment to figure this out.
boshhead_ is now known as boshhead
cassioscabral has joined #ruby
cassioscabral has quit [Client Quit]
<norc> Ox0dea: Ah no its in the compiler. :)
<Ox0dea> norc: In any case, `defined?` is most definitely a keyword.
<norc> Ox0dea: Sure, but it gets just inserted as a node in the AST.
<norc> >> defined? _=0
<ruboto> norc # => "assignment" (https://eval.in/493853)
<Ox0dea> norc: I did that too. :P
<norc> Ox0dea: Let me guess, you did some defined? _=$$ shenanigans to obtain a useful string for some obfuscated Ruby code?
<Ox0dea> norc: Nah, I'd just never seen `defined?` return "assignment".
<Ox0dea> `defined?` has way too many letters for it to be useful for my purposes in the suggested regard.
<Ox0dea> You might be onto something, though. :)
<norc> Though to the unknowing it would be a real surprise, seeing as anyone would expect this method to just return true or false.
<Ox0dea> It isn't a method.
<norc> Heh, was aobut to correct myself.
<norc> You beat me to it.
<Ox0dea> Fair.
kubapol has quit [Ping timeout: 252 seconds]
Exce1l has joined #ruby
<Ox0dea> >> C = c = Class.new; [defined? c, defined? C]
<ruboto> Ox0dea # => ["local-variable", "constant"] (https://eval.in/493854)
<Ox0dea> I bet eam would like to be made aware of `defined?`'s ability to look like a paren-less method invocation in an Array literal.
<norc> Ox0dea: Honestly that thing is about as disgusting as Kernel#test
wolffles has quit [Read error: Connection reset by peer]
<norc> Just doesn't fit very well.
<Ox0dea> I concur.
jbrhbr has joined #ruby
wolffles has joined #ruby
<norc> >> defined? _=0 unless false
<ruboto> norc # => "assignment" (https://eval.in/493870)
cassioscabral has joined #ruby
<norc> Now this is bizarre.
<norc> Or no it isnt.
<norc> >> defined?(_=0 unless false)
<ruboto> norc # => /tmp/execpad-a8e0975bda45/source-a8e0975bda45:2: syntax error, unexpected modifier_unless, expecting ...check link for more (https://eval.in/493871)
<norc> This is.
<norc> Though I suppose you cannot use a trailing conditional in an expression like that?
yfeldblum has quit [Ping timeout: 240 seconds]
<norc> >> a = (1 unless false);
<ruboto> norc # => 1 (https://eval.in/493873)
<norc> No apparently you can mmm.
<norc> >> a = puts(1 unless false);
<ruboto> norc # => /tmp/execpad-2ad5262b7c57/source-2ad5262b7c57:2: syntax error, unexpected modifier_unless, expecting ...check link for more (https://eval.in/493874)
<norc> No you cant.
<norc> Why is that
<Ox0dea> Looks like a bug to me?
<norc> Yea.
<Ox0dea> But to what should it evaluate?
<pontiki> nil
<norc> nil
<Ox0dea> Hmm, `defined?` having a conditional evaluation seems weird.
codecop has quit [Remote host closed the connection]
<Ox0dea> It *should*, I suppose, but it'd still be weird.
<havenwood> >> a = puts((1 unless false))
<ruboto> havenwood # => 1 ...check link for more (https://eval.in/493875)
<norc> Ox0dea: That is the thing - now that I have written a patch there I know that conditional gets optimized away entirely.
<Ox0dea> havenwood: `defined?` is not a method.
<havenwood> i know
<norc> Ox0dea: Which means that should actually evaluate to "assignment"
<norc> Which would be irritating.
<Ox0dea> Let's forget `defined?` is a thing.
<norc> No lets not!
<havenwood> done
<norc> This has just become too much fun!
<Ox0dea> >> Complex.constants nil # norc
<ruboto> Ox0dea # => [:compatible, :I] (https://eval.in/493876)
<Ox0dea> How might I get `defined?` to tell me that that first one is a constant?
<Ox0dea> I can't even think how to *try* to do it from C.
cassioscabral has quit [Ping timeout: 255 seconds]
<norc> >> defined? Kernel
<ruboto> norc # => "constant" (https://eval.in/493878)
<norc> mmm
ta has quit [Read error: Connection reset by peer]
<Ox0dea> That's a regular-ol' constant, though. I want the weird one.
<norc> weird?
ta has joined #ruby
<Ox0dea> It starts with a minuscule.
<Ox0dea> We can't access it with `Complex::compatible`, but it's definitely there and definitely a constant.
<norc> Ah.
mjw56_ has joined #ruby
<Ox0dea> It looks so suspicious.
<norc> Ox0dea: Best part is the trailing comment /* :nodoc: */
<norc> "This might look suspicious, and that is precisely why we are documenting that we are not documenting this"
<Ox0dea> Heh.
Nightmare has joined #ruby
Jackneill has quit [Ping timeout: 260 seconds]
davedev24 has joined #ruby
xcesariox has joined #ruby
Yzguy has joined #ruby
pawnbox has joined #ruby
fantazo has joined #ruby
<norc> Ox0dea: My example was a direct example of how useless defined? is though with parse time optimizations. The AST has become a completely meaningless structure since it neither reflects on the source code, nor on the bytecode.
gizless has joined #ruby
<norc> I dont see how defined? can know this to be a constant.
<norc> Even if you could use Complex::compatible that would just look like a method call
<norc> (Which still bugs me that its used for method dispatch)
gizmore has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 255 seconds]
rodfersou has quit [Remote host closed the connection]
seitensei has joined #ruby
atomical_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
seitensei has quit [Ping timeout: 246 seconds]
dr3w has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Ping timeout: 240 seconds]
atomica__ has joined #ruby
asmodlol has quit [Ping timeout: 260 seconds]
mezcan has joined #ruby
B1n4r10 has joined #ruby
davedev2_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bauruine has joined #ruby
Rodya_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vikas027 has joined #ruby
bauruine has quit [Remote host closed the connection]
asmodlol has joined #ruby
blackgoat has joined #ruby
rgtk has joined #ruby
atomical_ has quit [Ping timeout: 265 seconds]
stannard has joined #ruby
dr3w has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
AlphaAtom has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
_seanc_ has quit [Ping timeout: 272 seconds]
bauruine has joined #ruby
agit0 has quit [Read error: Connection reset by peer]
agit0 has joined #ruby
BrunoSaboia has quit [Ping timeout: 250 seconds]
stannard has quit [Ping timeout: 240 seconds]
fantazo has quit [Quit: Verlassend]
devoldmx has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ElFerna has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
<havenwood> Maybe defined? should be limited to REPLs. ;P
<norc> havenwood: That makes no difference still.
<havenwood> norc: A difference in that it won't make it into code that's run for reals.
<norc> The issue is not that it runs the code, but that it can be pretty inaccurate because Ruby 2.0 happened.
<havenwood> Not that you see it anyways.
pawnbox has joined #ruby
<norc> I dont need any additional hand holding.
<havenwood> norc: That it's return value won't be relied upon. Sure, shoot your eye out, it's fun!
<havenwood> its*
lubekpl has joined #ruby
AlphaAtom has quit [Ping timeout: 240 seconds]
<Ox0dea> Ruby: Every day is Look Like a Pirate Day.
<havenwood> Eye patch or you're not a Rubyist!
al2o3-cr has quit [Ping timeout: 260 seconds]
<norc> havenwood: I would just trash it entirely, together with ZSUPER
<norc> And Kernel#test.
AlphaAtom has joined #ruby
<havenwood> Does anyone use Kernel#test?
al2o3-cr has joined #ruby
<norc> Sure, since File#exists? is really cumbersome to use haha
<havenwood> ha
chouhoulis has quit [Ping timeout: 256 seconds]
<norc> Though trashing ZSUPEP would probably render the bulk of gems out there broken in a pinch.
<norc> *ZSUPER
Rickmast_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
xcesariox has quit [Read error: Connection reset by peer]
<norc> Ox0dea: That constant seems completely inaccessible from Rubyland.
<Ox0dea> norc: It is.
<norc> Im guessing that is another dispatch hack that filters out lower cased constants?
<norc> For "internal constants" ?
<Ox0dea> Aye, same as for ivars.
<norc> Gotcha.
<norc> Really interesting that it shows up then.
<norc> That is like blueballing kids with candy.
Yzguy has quit [Quit: Zzz...]
<Ox0dea> It's lame.
<norc> Well, we should be able to find the constant pretty quickly.
existensil has quit [Quit: WeeChat 0.4.2]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
Begi has joined #ruby
bensarz has joined #ruby
thejamespinto has quit [Ping timeout: 240 seconds]
mjw56_ has quit [Remote host closed the connection]
<norc> Ox0dea: All we have to do is to Fiddle our way into the const_tbl of the rb_classext_struct and look through that hash table.
kegan_ has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> ObjectSpace.each_object(Class).select { |c| c.to_s[':c'] } # norc
<ruboto> Ox0dea # => [Complex::compatible, Rational::compatible] (https://eval.in/493925)
<Ox0dea> Or that. :)
djbkd has joined #ruby
last_staff has joined #ruby
<Ox0dea> There's also a NameError::message class for whatever reason.
<Ox0dea> Probably did_you_mean.
KyloRenKillsSolo has joined #ruby
<KyloRenKillsSolo> why did kylo ren kill han solo?
AlphaAtom has quit [Remote host closed the connection]
norc has quit [Ping timeout: 252 seconds]
<havenwood> !mute KyloRenKillsSolo
KyloRenKillsSolo is now known as KyloRenKillsHan
KyloRenKillsHan is now known as KyloRenKillsHanS
d0nn1e has quit [Ping timeout: 265 seconds]
trwyth has joined #ruby
vikas027 has quit [Ping timeout: 264 seconds]
chipotle_ has joined #ruby
trwyth has quit [Client Quit]
KyloRenKillsHanS was banned on #ruby by havenwood [*!*@*66.214.91.245]
<darix> the * in front of the IP doesnt make much sense
ta has quit [Remote host closed the connection]
mary5030 has joined #ruby
d0nn1e has joined #ruby
<havenwood> darix: splat!
<havenwood> darix: like a bug...
KyloRenKillsHanS was kicked from #ruby by havenwood [Your behavior is not conducive to the desired environment.]
<dwfait> Would anyone have the time to help me figure out why a fresh ruby compile off trunk returns false for have_func('rb_thread_fd_select') ? I’ve hit a wall with this issue.
djbkd has quit [Remote host closed the connection]
SpleezeDos has quit [Ping timeout: 265 seconds]
BSaboia has quit [Ping timeout: 265 seconds]
ChameleonSix has joined #ruby
dkam__ has joined #ruby
skcin7 has joined #ruby
Guest49679 has joined #ruby
curses has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
gheegh has quit [Remote host closed the connection]
davedev2_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
Eiam has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
ur5us has joined #ruby
pwnd_nsfw has joined #ruby
Niall has joined #ruby
davedev24 has joined #ruby
JordanDoyle has joined #ruby
rgtk has joined #ruby
<darix> tomaw: ^
<adaedra> we're having fun in here I see
hahuang61 has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<Ox0dea> Guest49679: Why w4?
thejamespinto has joined #ruby
<ChameleonSix> Hello
* havenwood growls
<ChameleonSix> I need help
<ChameleonSix> As usually
<Ox0dea> ChameleonSix: You figured it out on your own last time.
yfeldblum has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
thejamespinto has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
<Ox0dea> I bet you could do it again.
juddey has joined #ruby
<Niall> rude
<ChameleonSix> I wont figure this out
ur5us has joined #ruby
Guest49679 has left #ruby [#ruby]
davedev24 has joined #ruby
Exce1l has left #ruby [#ruby]
<ChameleonSix> How do i make a script that opens my webcam via skype
<Ox0dea> Pfft.
<ChameleonSix> Hmm
<ChameleonSix> ...
<adaedra> ChameleonSix: what about you ask sensible questions?
<ChameleonSix> Sensible
<ChameleonSix> How do i access the program register
dkam_ has quit [Ping timeout: 272 seconds]
<ChameleonSix> ?
<adaedra> Do you even know what you're talking about?
<havenwood> ChameleonSix: Do you have a Ruby question?
<Ox0dea> ChameleonSix: Are you tired?
<ChameleonSix> Yeag
<ChameleonSix> I coded all day
zenlot2 has joined #ruby
<Ox0dea> Prove it.
<ChameleonSix> That would be hard since im on phone now
ur5us has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
<havenwood> ChameleonSix: Do you have a Ruby question?
<ChameleonSix> I was here few hours ago
<ChameleonSix> That is a ruby question
ur5us has joined #ruby
ChameleonSix was kicked from #ruby by ruboto [http://ruby-community.com/pages/user_rules#rule_2_3]
<Ox0dea> :"(
hakunin has joined #ruby
ChameleonSix has joined #ruby
<ChameleonSix> You kicked me for no reason
<ChameleonSix> ?
<pontiki> i know it's ridiculous of me for not having seen star wars VII eighteen times already, but now i'm really fucking sad
zenlot1 has quit [Ping timeout: 264 seconds]
<havenwood> ChameleonSix: You can discuss in #ruby-banned if you prefer. Otherwise ask Ruby-related questions and do your research first.
<adaedra> ?offtopic pontiki
<ruboto> pontiki, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Ox0dea> pontiki: Had you *really* not had it spoiled yet?
<ChameleonSix> Ok
hahuang61 has joined #ruby
<pontiki> piss off
pontiki has left #ruby [""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson"]
<ChameleonSix> You don't need to ban me
<ChameleonSix> Im a nice guy
<adaedra> That's what will happen if you keep asking random things without prior research.
d0nn1e has quit [Ping timeout: 260 seconds]
<ChameleonSix> Where should i ask that
<ChameleonSix> #cmd?
rkazak has joined #ruby
<ChameleonSix> Hmm #general programming
chipotle_ has quit [Quit: cheerio]
<adaedra> I'm still not sure you really know what you're talking about.
<havenwood> !ban ChameleonSix !T 10m "This isn't a general help channel."
ChameleonSix was banned on #ruby by ChanServ [ChameleonSix!*@*]
ChameleonSix was kicked from #ruby by ChanServ [User is banned from this channel]
Begi has quit [Ping timeout: 250 seconds]
hakunin has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
JordanDoyle was kicked from #ruby by adaedra [still no.]
ur5us has joined #ruby
davedev24 has joined #ruby
JordanDoyle has joined #ruby
dkelman has joined #ruby
ahhh has joined #ruby
duckpuppy has joined #ruby
davedev24 has quit [Remote host closed the connection]
<JordanDoyle> wasn't me :(
ur5us has quit [Remote host closed the connection]
hakunin has joined #ruby
ahhh has left #ruby [#ruby]
ur5us has joined #ruby
davedev24 has joined #ruby
thejamespinto has joined #ruby
mary5030 has quit [Remote host closed the connection]
wolffles has quit [Quit: wolffles]
rgtk has joined #ruby
dkam___ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Register and Identify with NickServ to talk || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
duckpuppy has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
dkam__ has quit [Ping timeout: 256 seconds]
dr3w has joined #ruby
<dwfait> have_header(‘ruby/intern.h’) returns true, which is where rb_thread_fd_select is defined. make install correctly placed it in /usr/local/include/ruby-2.4.0/ruby.
pawnbox has joined #ruby
dkam___ has quit [Quit: Lingo: www.lingoirc.com]
<Ox0dea> dwfait: The only relevant tidbit I can find is that that function used to be called rb_thread_select().
JordanDoyle has left #ruby ["Textual IRC Client: www.textualapp.com"]
ur5us has quit [Remote host closed the connection]
trwyth has joined #ruby
<dwfait> Yeah, pre 1.9
<Ox0dea> Right.
<Ox0dea> Is it possible there are demons in your machine?
<dwfait> Quite possible
trwyth has quit [Client Quit]
<adaedra> Ain't gonna be easy to debug.
pawnbox has quit [Ping timeout: 240 seconds]
<dwfait> Yeah, I’ve tried digging into have_func in lib/mkmf.rb. It’s attempting to link a program it generates to find out if the symbols are there. Quite ingenious, but as you said, not easy to debug.
guideX has left #ruby [#ruby]
<dwfait> My only hunch at the moment is something on my PATH isn’t quite right
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c-c has quit [Ping timeout: 240 seconds]
shaman42 has quit [Ping timeout: 250 seconds]
dkelman has quit [Ping timeout: 250 seconds]
dr3w has quit [Quit: WeeChat 1.2]
rgtk has quit [Remote host closed the connection]
sluukkonen has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
aspire has joined #ruby
jbrhbr has quit [Quit: Leaving.]
azgil has quit [Quit: Leaving]
DoubleMalt has joined #ruby
ahhh has joined #ruby
ahhh has quit []
skingsbu has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
Spleeze has joined #ruby
ChameleonSix has joined #ruby
<ChameleonSix> Hello
<ChameleonSix> I got a ruby question
ruid has joined #ruby
<ChameleonSix> (You don't need to insta ban someone)
<havenwood> ChameleonSix: Don't ask to ask, just ask.
lenwood has joined #ruby
<ChameleonSix> How do i make a script to press keyboard buttons
<ChameleonSix> Methods?
<ChameleonSix> And I/O
<ChameleonSix> ?
<havenwood> ChameleonSix: Please use a single line instead of hitting "return" so often.
<adaedra> What is your goal?
<ChameleonSix> Ok sorry
<havenwood> ChameleonSix: require 'io/console'; STDIN.getch
ta has joined #ruby
<ChameleonSix> My goal is to press P button 10times
<ChameleonSix> As fast as possible
<Ox0dea> ChameleonSix: Why Ruby?
<adaedra> To do what?
<ChameleonSix> Cause i know ruby
<Ox0dea> adaedra: To cheat at some game.
<ChameleonSix> Lol
<iszak> sounds legit
<havenwood> ChameleonSix: No Lols.
<ChameleonSix> Ok
<Ox0dea> ChameleonSix: No affirmations.
<adaedra> Ox0dea: sssh, I want them to tell it.
<shevy> ChameleonSix did you already write some ruby code
djbkd has joined #ruby
<ChameleonSix> Tons of it
<Ox0dea> ChameleonSix: OS?
<ChameleonSix> I have kali on laptop
<ChameleonSix> And windows 10 on pc
<Ox0dea> ChameleonSix: while:; xdotool key p; done
<ChameleonSix> Kali is a linux distro
<ChameleonSix> 10.times do?
<Ox0dea> ChameleonSix: xdotool is a program for scripting X11.
<Ox0dea> Ruby is not The Right Tool here.
<ChameleonSix> What do you mean
<ChameleonSix> What is?
<adaedra> He just told you...
<ChameleonSix> Hmm
<ChameleonSix> Sec
<Ox0dea> Oh, if you actually need to press it 10 times and none more: `xdotool type pppppppppp`
c-c has joined #ruby
<Ox0dea> But I can't imagine why you wouldn't want it to loop.
B1n4r10 has quit [Quit: Lost terminal]
lenwood has quit [Ping timeout: 255 seconds]
<ChameleonSix> Amazing program
shaman42 has joined #ruby
<Ox0dea> NO U
c-c is now known as Guest30656
sluukkonen has joined #ruby
wolffles has joined #ruby
<ChameleonSix> ?
yfeldblum has joined #ruby
<Ox0dea> -e:1: syntax error, unexpected '?'
<ChameleonSix> ?
DoubleMalt has quit [Ping timeout: 255 seconds]
thone has joined #ruby
<ChameleonSix> I dont seem to understand
ta has quit [Ping timeout: 260 seconds]
<Ox0dea> Nor I.
<adaedra> Ox0dea: you've found a living implementation of ed?
<Ox0dea> adaedra: I was gonna say something to that effect. :)
<ChameleonSix> Ok tnx
<ChameleonSix> I got tons of ruby questions
<Ox0dea> Prove it.
<ChameleonSix> But they have to be ruby specific and legal
<Ox0dea> ChameleonSix: No facetiousness.
<ChameleonSix> Ok
<ChameleonSix> This irc is full of rules
<ChameleonSix> Why are single line lols disallowed
jalopez has joined #ruby
<Ox0dea> Because they reflect poorly on you and the community of which you wish to be a part.
<adaedra> Because it's annoying, much like messages split on multiple lines.
<ChameleonSix> Ok
<ChameleonSix> Anyway is mac osx good for coding?
DoubleMalt has joined #ruby
_seanc_ has joined #ruby
<Ox0dea> ChameleonSix: I dare you to ask one of those Ruby questions you said you had.
<ChameleonSix> Ok
<Ox0dea> Do you accept the challenge?
<ChameleonSix> Change background
<ChameleonSix> Rb script
<ChameleonSix> Using system()?
<ChameleonSix> If im right
<adaedra> So it's not really ruby-related. You're looking for a general command.
<ChameleonSix> Ok
<ChameleonSix> Does it have to be 100% ruby related
<ChameleonSix> ....
<Ox0dea> No ellipses.
<ChameleonSix> Like seriously
<Ox0dea> No "like"s.
<adaedra> I feel like you don't really have ruby problems, just a bag of vague ideas of small utilities.
<Ox0dea> No seriousness.
spider-mario has quit [Remote host closed the connection]
<ChameleonSix> Exactly
<Ox0dea> No exactitude.
tmtwd has quit [Ping timeout: 264 seconds]
<ChameleonSix> Are you people some ruby experts
<Ox0dea> No interviews.
BTRE has quit [Ping timeout: 245 seconds]
<ChameleonSix> ...
<Ox0dea> NO ELLIPSES!
<adaedra> Ox0dea: ssssh, no feeding.
<ChameleonSix> No caps
ramortegui has joined #ruby
<adaedra> Enough of this, back to ruby.
<ChameleonSix> Yes
<ChameleonSix> Why doesnt gets.chomp work on my phone in ruboto
* Nilium is an expert in eating tortilla chips.
TheHodge has joined #ruby
<ChameleonSix> ?
<ChameleonSix> No answer.
<shevy> lol Nilium
DoubleMalt has quit [Ping timeout: 240 seconds]
<ChameleonSix> No lols
<shevy> ChameleonSix hey... I just realized... you are asking this now for the 3rd time
<ChameleonSix> 1st time actually
<shevy> <ChameleonSix> Using system()?
<shevy> ^^^
<ChameleonSix> No
<ChameleonSix> Using ruboto
<shevy> yes!
<ChameleonSix> That wasnt even a question
<ChameleonSix> Someone nice expalined that
<ChameleonSix> Can you help me to make game hacks using ruby?
<ChameleonSix> Probably not
<adaedra> You're asking for something too vague.
<ChameleonSix> Hm
DarkElement has joined #ruby
<adaedra> You don't have ruby projects, do you?
<ChameleonSix> Nope
<ChameleonSix> I started learning
<ChameleonSix> I wouldn't be here if i knew everything
<adaedra> Those two elements are not related.
Suntzu has quit [Ping timeout: 265 seconds]
<shevy> you did not write ruby code ChameleonSix :(
<ChameleonSix> Is there a way to translate ruby to python
<ChameleonSix> What code?
<shevy> exactly
<ChameleonSix> I made a calc
<adaedra> Code you could have questions upon.
<ChameleonSix> Ah
<ChameleonSix> I got no idea where to start
<ChameleonSix> ...
ledestin has joined #ruby
HANJIN has joined #ruby
<adaedra> So you're just poking around?
<Ox0dea> ChameleonSix: Try asking in #python.
<ChameleonSix> ...
<ChameleonSix> Python to ruby
<ChameleonSix> The point is in translation
<ChameleonSix> I see you answer to ruby strict questions
<ChameleonSix> I will come here if i need help with my code debugging
<bithon> i don't think such tool exists as Ruby and Python are both very different languages and their underling libraries are quite different. but I guess in some ways they do share certain similiarities and therefore some code could be 'appropriately' translated
<ChameleonSix> Ok
<ChameleonSix> Cya latet
<ChameleonSix> :)
sandstrom has quit [Quit: My computer has gone to sleep.]
<bithon> have a good one
ChameleonSix has left #ruby ["Quit"]
<adaedra> -_-
Darin_ has joined #ruby
rgrmatt has joined #ruby
HANJIN has quit [Client Quit]
<bithon> is there a proper way to delete a particular gem with all of its dependancies ?
Rodya_ has joined #ruby
devoldmx has joined #ruby
domgetter has joined #ruby
lidza_ has quit [Ping timeout: 260 seconds]
seitensei has joined #ruby
BTRE has joined #ruby
Darin_ has quit [Ping timeout: 252 seconds]
marcdel has quit [Ping timeout: 240 seconds]
<shevy> hmm "gem uninstall name" for single gem uninstalls... I am sure there must be some massive-purge command
postmodern has joined #ruby
TomPeed has joined #ruby
last_staff has quit [Quit: last_staff]
ElFerna has joined #ruby
seitensei has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
asmodlol has quit [Ping timeout: 272 seconds]