jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
mondok has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit []
eregi has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
jeanlinux has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 260 seconds]
peteyg has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
pawnbox has joined #ruby
jeanlinux has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Read error: Connection reset by peer]
shellie_ has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Ping timeout: 248 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
chouhoulis has quit []
arlek has joined #ruby
LoneHerm_ has joined #ruby
chouhoulis has joined #ruby
TomyLobo has joined #ruby
tristanp has quit [Remote host closed the connection]
pibby has joined #ruby
FooMunki has quit [Quit: FooMunki]
[ace]_ is now known as [ace]
bry4n has joined #ruby
jyaworski has joined #ruby
tristanp has joined #ruby
intrigueD has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
pawnbox has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
TomyLobo has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
freerobby has quit [Client Quit]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jinette has joined #ruby
idefine has quit [Remote host closed the connection]
rmulligan has joined #ruby
idefine has joined #ruby
bob434 has joined #ruby
tristanp has quit [Remote host closed the connection]
darkxploit has quit [Ping timeout: 264 seconds]
Rodya_ has joined #ruby
rizenine has joined #ruby
<jinette> hello everyone, I am trying to tweak a site that is a Ruby on Rails app that is mostly based on SCSS, amazon_flex_pay gem, and a bit of CoffeeScript. it suggested heroku for deployment, so I've been using it since this morning. but I got stuck with adding some font files to embed in the site. after hours of css-focused wrestling, I was hinted that the font files might not have been on heroku at all. I am new to all this. could you help me know what
<jinette> the problem here could be, and how I could solve it?
polyidus has quit [Quit: Later]
rmulligan has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
bob434 has quit [Read error: Connection reset by peer]
bob434 has joined #ruby
InternetFriend has joined #ruby
idefine has quit [Remote host closed the connection]
nanoz has joined #ruby
ur5us has joined #ruby
idefine has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
tonyynot has joined #ruby
duckpuppy has joined #ruby
chipotle has quit [Quit: cheerio]
sondr3 has joined #ruby
freerobby has joined #ruby
bob434 has quit [Quit: Leaving]
idefine has quit [Remote host closed the connection]
darkxploit has joined #ruby
eregi has joined #ruby
hnagamin has quit [Quit: さようなら]
lvn has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
sondr3 has quit [Ping timeout: 248 seconds]
hgl has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
Jardayn has quit [Quit: Leaving]
idefine has joined #ruby
Guest34101 has quit [Ping timeout: 244 seconds]
idefine has quit [Remote host closed the connection]
BtcBen has quit [Ping timeout: 252 seconds]
jeanlinux has joined #ruby
arescorpio has joined #ruby
myntcake has quit [Ping timeout: 240 seconds]
Limix has quit [Quit: Limix]
idefine has joined #ruby
alandala has quit [Quit: Leaving]
godzillaenlacasa has joined #ruby
pawnbox has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
Kryptonical has quit [Ping timeout: 252 seconds]
mattwildig has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
<havenwood> jinette: I think font files tend to not get included in the asset pipeline. I'd suggest checking with the #rubyonrails channel.
n008f4g_ has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
mattwildig has left #ruby [#ruby]
lvn has quit [Ping timeout: 244 seconds]
tvon has quit [Quit: tvon]
Musashi007 has quit [Quit: Musashi007]
<jinette> havenwood, sure, I would go join there. do you mean I might not be able to add them at all?
<havenwood> jinette: I vaguely recall you can append additional specific fonts or font file types in your Rails config.
InternetFriend has quit [Ping timeout: 248 seconds]
jeanlinux has quit [Ping timeout: 240 seconds]
<havenwood> jinette: The #rubyonrails channel is probably the best place to ask how.
Guest34101 has joined #ruby
<havenwood> jinette: Something like: config.assets.precompile += %w[.svg .ttf]
freerobby has quit [Quit: Leaving.]
<havenwood> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
synthroid has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
synthroid has quit [Client Quit]
ebbflowgo has joined #ruby
rmulligan has joined #ruby
hgl has quit [Ping timeout: 248 seconds]
<jinette> havenwood, seems a great link, thank you!! 'The problem is, simply adding a fonts directory isn't picked up by the pipeline.' this is what didnt work in my case, either
<jinette> havent tried yet, but seems just what I needed
A124 has quit [Quit: '']
hgl has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
d0nn1e has quit [Ping timeout: 244 seconds]
A124 has joined #ruby
TinkerTyper has joined #ruby
sp4rrow has joined #ruby
d0nn1e has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
tungd has joined #ruby
djbkd has quit [Remote host closed the connection]
InternetFriend has joined #ruby
Rodya_ has joined #ruby
djbkd has joined #ruby
marr has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Ping timeout: 248 seconds]
baweaver has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
eregi has joined #ruby
kam270 has quit [Quit: Leaving]
stannard has joined #ruby
lyoshajapan has joined #ruby
tungd has quit [Quit: Dreaming...]
tungd has joined #ruby
InternetFriend has quit [Ping timeout: 264 seconds]
stannard has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
Rodya_ has joined #ruby
jinette has left #ruby ["Leaving"]
ziyadb has quit [Quit: Connection closed for inactivity]
winfli_ has joined #ruby
TinkerTyper has quit [Quit: ZNC - http://znc.in]
pawnbox has quit [Ping timeout: 244 seconds]
winfli has quit [Ping timeout: 250 seconds]
x77686d has quit [Quit: x77686d]
braincrash has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
dravine has quit [Quit: dravine]
braincras has quit [Ping timeout: 276 seconds]
crowell has quit [Ping timeout: 240 seconds]
crowell has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
cdg has joined #ruby
InternetFriend has joined #ruby
arlek has quit [Ping timeout: 244 seconds]
swills has quit [Remote host closed the connection]
s1kx has joined #ruby
dubek has joined #ruby
elifoster has quit [Ping timeout: 246 seconds]
s1kx has quit [Client Quit]
darkf has joined #ruby
razieliyo has quit [Quit: Leaving]
tungd has quit [Quit: Dreaming...]
tungd has joined #ruby
jenrzzz has joined #ruby
rmulligan has joined #ruby
chipotle has quit [Quit: cheerio]
Rodya_ has quit [Remote host closed the connection]
chipotle has joined #ruby
nando293921 has joined #ruby
<shevy> does anyone know why .delete() does not accept Regexp as input?
rmulligan has quit [Ping timeout: 252 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
jenrzzz has quit [Ping timeout: 244 seconds]
circ-user-53WM5 has joined #ruby
s1kx has joined #ruby
circ-user-53WM5 is now known as graphettion
InternetFriend has quit [Ping timeout: 248 seconds]
<Radar> shevy: in what context?
norc_ has joined #ruby
baweaver has quit [Remote host closed the connection]
winfli_ is now known as winfli
winfli has quit [Quit: Saliendo]
<havenwood> >> 'TIMTOWTDI'.delete 'a-zA-Z', '^aeiouAEIOU'
<ruby[bot]> havenwood: # => "IOI" (https://eval.in/531504)
norc__ has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
<shevy> Radar for instance when rejecting numbers
<havenwood> shevy: What's the receiver?
<havenwood> shevy: String, Hash, Array, other?
<shevy> havenwood well, user input in a String
<havenwood> rgr
c355e3b has quit [Quit: Connection closed for inactivity]
tristanp has joined #ruby
<havenwood> hackeron_: Regexp match per char with the intersection of its optional arg Regexp deleted sounds interesting - but the per-char thing is odd.
<havenwood> hackeron_: sorry MT
<havenwood> shevy: ^
chouhoulis has quit [Remote host closed the connection]
<havenwood> shevy: String#delete has been about globbing. How would the details work with Regexp? Is it worth proposing?
chouhoulis has joined #ruby
duckpuppy has joined #ruby
charliesome has joined #ruby
diego2 has joined #ruby
<baweaver> sub/gsub?
sondr3 has joined #ruby
<havenwood> >> class String; alias old_delete delete; def delete arg; if arg.is_a?(String); old_delete(arg); else; self.gsub(arg, ''); end; end; end
<ruby[bot]> havenwood: # => :delete (https://eval.in/531505)
<havenwood> class String; alias old_delete delete; def delete arg; if arg.is_a?(String); old_delete(arg); else; self.gsub(arg, ''); end; end; end
<havenwood> oops
diego2 has quit [Changing host]
diego2 has joined #ruby
<havenwood> but yeah, second optional arg
<havenwood> have to decide how that'd work
diegoviola has quit [Ping timeout: 240 seconds]
johnmilton has quit [Ping timeout: 246 seconds]
A124 has quit [Read error: Connection reset by peer]
<havenwood> (didn't mean to paste twice, silly code, relocating)
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
diego2 is now known as diegoviola
duckpuppy has quit [Ping timeout: 240 seconds]
sondr3 has quit [Ping timeout: 244 seconds]
<shevy> havenwood well I just used .gsub but I was wondering why .delete does not want regexes
duckpuppy has joined #ruby
A124 has joined #ruby
<shevy> havenwood yeah, perhaps there is a reason why it does not accept regexes. I don't want to suggest to ruby-core when it is likely to not get accepted anyway
LoneHerm_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
skweek has quit [Remote host closed the connection]
C_W has joined #ruby
C_W has quit [Client Quit]
C_W has joined #ruby
Channel6 has quit [Quit: Leaving]
C_W has quit [Max SendQ exceeded]
C_W has joined #ruby
<havenwood> shevy: the historical method takes globs for first and second arguments. Maybe there should be a String#scan_v, then it could function for the second arg of the Regexp version.
<havenwood> shevy: but yeah, I get wanting to feed it regex
baweaver has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 248 seconds]
<havenwood> shevy: gsub
CloCkWeRX has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
<havenwood> shevy: now String#scan_v is one to propose. :D
<havenwood> inversed scan
<shevy> hmm
InternetFriend has joined #ruby
<shevy> verbose scan!
arlek has joined #ruby
<shevy> notice the cute little v ... :D
pawnbox has joined #ruby
C_W has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> shevy: -v, --invert-match
<havenwood> "Invert the sense of matching, to select non-matching lines. (-v is specified by POSIX.)"
<shevy> verbose!!!
peteyg has joined #ruby
<havenwood> shevy: -V
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> shevy: -V, --version
<havenwood> "Print the version number of grep to the standard output stream. This version number should be included in all bug reports."
<shevy> you mean like in "ruby -V" :D
<havenwood> shevy: Ruby uses lowercase -v
rmulligan has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
<havenwood> shevy: The GNU coding standards require --help and --version but don't require that the short form be either -v or -V, afaik.
<havenwood> shevy: verbose, version, other, it varies
<shevy> aha
<havenwood> shevy: also --asign, --vanilla-operation, --version-control, --vgrind and --volume as standard options
jeanlinux has joined #ruby
<shevy> oh my god that's a lot of long options
rmulligan has quit [Ping timeout: 252 seconds]
tristanp has quit [Remote host closed the connection]
<shevy> did some poor person go through all of these!
<havenwood> shevy: When you create a command line tool, that's the place to look to make sure you choose an existing option if applicable.
<havenwood> shevy: Considering submitting a new --latest option for updating metadata without updating the tool itself.
<shevy> hmm
Guest121 is now known as cyrus
cyrus is now known as Cyrus
ivanskie_ has joined #ruby
Cyrus has quit [Changing host]
Cyrus has joined #ruby
pawnbox has joined #ruby
jeanlinux has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
hgl has quit [Ping timeout: 276 seconds]
meunierd has joined #ruby
IrishGringo has joined #ruby
hgl has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
nisstyre has joined #ruby
tjbiddle has joined #ruby
howdoi has joined #ruby
paatalaBhairavi has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
tokik has quit [Quit: leaving]
solocshaw has quit [Ping timeout: 276 seconds]
tonyynot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoz has quit [Read error: Connection reset by peer]
DmitryBochkarev has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
uglybandersnatch has joined #ruby
arlek has quit [Ping timeout: 248 seconds]
idefine has joined #ruby
justbleed has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
abucha has joined #ruby
<zacts> hi rubyists
pwnd_nsfw` has quit [Read error: Connection reset by peer]
tungd has quit [Quit: Dreaming...]
pwnd_nsfw` has joined #ruby
Ebok has quit [Quit: Leaving]
tungd has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
idefine has quit [Ping timeout: 260 seconds]
<shevy> yo zacts the tacts
<zacts> yo yo
<zacts> =)
ledestin has joined #ruby
pawnbox has joined #ruby
blackmesa has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
krz has joined #ruby
j416 has joined #ruby
gix has quit [Ping timeout: 246 seconds]
braincrash has quit [Read error: Connection reset by peer]
abucha has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
abucha has joined #ruby
tristanp has joined #ruby
Limix has joined #ruby
InternetFriend has quit [Ping timeout: 248 seconds]
Limix has quit [Client Quit]
blackmesa has quit [Ping timeout: 244 seconds]
gix has joined #ruby
mallu has joined #ruby
mallu has quit [Client Quit]
meunierd has quit [Ping timeout: 260 seconds]
mallu has joined #ruby
abucha_ has joined #ruby
abucha has quit [Ping timeout: 248 seconds]
braincrash has joined #ruby
llua has left #ruby [#ruby]
llua has joined #ruby
baweaver has joined #ruby
rmulligan has joined #ruby
LoneHerm_ has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has joined #ruby
LoneHerm_ has quit [Ping timeout: 244 seconds]
cmckee has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
BtcBen has joined #ruby
tungd has quit [Quit: Dreaming...]
jeanlinux has quit [Ping timeout: 248 seconds]
dx has joined #ruby
Rodya_ has joined #ruby
cdg has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.4]
treaki_ has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
treaki__ has quit [Ping timeout: 260 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
BTRE has joined #ruby
<dx> hi. i have some commandline tools like t or jekyll installed, and every time a major ruby upgrade happens (like 2.2->2.3) running their binaries breaks with Gem::LoadError
<dx> am i doing something wrong or is this the intended behavior? i see the directories are versioned...
adgtl has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
ivanskie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> what is the specific error
eregi has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<shevy> hmm so the executable is called "t" ?
<dx> yeah. also the name of the gem. jekyll does the same thing
<shevy> ok I see it now https://rubygems.org/gems/t
<shevy> I just did a "gem install t"
<shevy> running "t" from the commandline, shows the options fine: https://gist.github.com/shevegen/be5f17077e41743df68c
<shevy> dx so whatever it is on your system, the t gem could not be found
<dx> the problem is that i had it installed for 2.2 (and also for 2.1, and for 2.0, and for 1.9), and every single time that a major ruby version was released i got that error and had to reinstall it
<dx> the same thing for other gems that i stopped using it
<shevy> yeah, the gems are usually installed in a directory for the respective ruby version
<dx> so, is this pain in the ass the intended behavior?
<shevy> for instance, I have ruby 2.3.0p0 and my gem dir is at: /Programs/Ruby/Current/lib/ruby/gems/2.3.0
<dx> is there anything that can be done to make this suck less?
<shevy> dx well, all gems are also kept locally in that directory
<shevy> sure
<shevy> collect all gems
<shevy> gem install ./*.gem
<dx> gotta catch em all
<dx> how do i do that step?
<shevy> yes, they are all in the cache/ subdirectory too
<shevy> well locate that cache/ subdirectory first of your older ruby version
<shevy> mine is at /Programs/Ruby/Current/lib/ruby/gems/2.3.0/cache/
<dx> neat, that helps
<shevy> 53 gems are there; I also keep a local copy of all gems that I use... about 300 gems or so
<shevy> btw, if you do not need to compile anything, you could possibly even just do a cp -rv (recursive copy) and it should work... but using .gem files is probably easier and more reliable
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<dx> sadly compiling is needed http://dump.dequis.org/HpYv5.txt
<dx> but this did the job "gem install ~/.gem/ruby/2.2.0/cache/*.gem"
<dx> thanks!
<shevy> aha
<shevy> t works now?
pawnbox has quit [Remote host closed the connection]
Guest34101 has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
lyoshajapan has joined #ruby
safe has joined #ruby
arescorpio has quit [Quit: Leaving.]
meunierd has joined #ruby
adgtl has quit [Remote host closed the connection]
<dx> yep all good now
<shevy> \o/
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
lyoshajapan has quit [Ping timeout: 248 seconds]
meunierd has quit [Ping timeout: 244 seconds]
deuxclique has joined #ruby
Guest34101 has joined #ruby
deuxclique has quit [Client Quit]
rmulligan has joined #ruby
DmitryBochkarev has joined #ruby
DmitryBochkarev has quit [Client Quit]
uglybandersnatch has joined #ruby
eregi has quit [Ping timeout: 260 seconds]
DmitryBochkarev has joined #ruby
duncannz has joined #ruby
dubalubdub has quit [Read error: Connection reset by peer]
rmulligan has quit [Ping timeout: 252 seconds]
elifoster has joined #ruby
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
thegunbuster has joined #ruby
mistym- is now known as mistym
mistym has joined #ruby
mistym has quit [Changing host]
supplication has quit [Read error: Connection reset by peer]
lyoshajapan has joined #ruby
ICantCook has joined #ruby
saneax_AFK is now known as saneax
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jyaworski has quit [Quit: jyaworski]
hk238 has joined #ruby
djbkd has joined #ruby
chouhoulis has quit [Remote host closed the connection]
adgtl has joined #ruby
graphettion has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
adgtl has quit [Client Quit]
dkk has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
<dkk> hi
Guest34101 has quit [Ping timeout: 250 seconds]
thegunbuster has quit [Ping timeout: 252 seconds]
<dkk> i have an array a = [1, 2.0, 2] and i want to get the index of 2 using a.index(2) but i returns 1. Is there any way to get different indexes for 2 and 2.0??
Rodya_ has joined #ruby
<[ace]> a.index {|x| x.eql? 2 }
<[ace]> => 2
<[ace]> >> a.index {|x| x.eql? 2.0 }
<[ace]> => 1
<[ace]> not sure if it should be eql? or equal?, but you get the idea
uglybandersnatch has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<dkk> yes, will there be any efficiency losses or gains using this instead of a.index(2) ? I suppose a.index(2) also iterates over all the items and a.index {|x| x.eql? 2 } is also doing the same??
Rodya_ has quit [Ping timeout: 260 seconds]
vdamewood has quit [Quit: Life beckons.]
Zggb has joined #ruby
colegatron has quit [Ping timeout: 248 seconds]
colegatron has joined #ruby
pawnbox has quit [Remote host closed the connection]
baweaver has joined #ruby
pawnbox has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
InternetFriend has joined #ruby
eregi has joined #ruby
baweaver has joined #ruby
InternetFriend has quit [Ping timeout: 264 seconds]
abucha_ has quit [Quit: Leaving...]
blackmesa has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
rmulligan has joined #ruby
ur5us has joined #ruby
LoneHermit has joined #ruby
meunierd has joined #ruby
jwang has joined #ruby
system64 has joined #ruby
kirillzh has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
dkk has quit [Ping timeout: 252 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
LoneHermit has quit [Ping timeout: 268 seconds]
meunierd has quit [Ping timeout: 260 seconds]
astrobun_ has joined #ruby
tjbiddle has joined #ruby
<kirillzh> Is there a way to check if string contains hours and minutes using Time or Date parser? For example "2016-03-13" doesn't contains hours and minutes whereas "2016-03-13 10:00AM" does.
Moosashi has joined #ruby
skade has joined #ruby
<kirillzh> doesn't contain*
cmckee has quit [Quit: cmckee]
rizenine has quit [Remote host closed the connection]
ArtursL has joined #ruby
kgirthofer has quit [Ping timeout: 276 seconds]
ArtursL has quit [Remote host closed the connection]
ArtursL has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
Moosashi has quit [Quit: Moosashi]
ur5us has quit [Remote host closed the connection]
x77686d has joined #ruby
atmosx has joined #ruby
chouhoulis has joined #ruby
Rickmasta has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
elifoster has joined #ruby
jeanlinux has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 260 seconds]
Guest34101 has joined #ruby
skade has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
ta_ has quit [Remote host closed the connection]
Darmani has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
ta_ has joined #ruby
ArtursL has quit [Quit: Leaving]
ArtursL has joined #ruby
jeanlinux has quit [Ping timeout: 260 seconds]
ArtursL has quit [Client Quit]
ArtursL has joined #ruby
Guest34101 has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 276 seconds]
charliesome has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
eregi has quit [Ping timeout: 264 seconds]
scepticulous has joined #ruby
ArtursL has quit [Ping timeout: 244 seconds]
vF3hNGxc47h8 has quit [Ping timeout: 240 seconds]
lyoshajapan has joined #ruby
Rodya_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
scepticulous has quit [Ping timeout: 246 seconds]
skade has joined #ruby
skade has quit [Read error: Connection reset by peer]
supplication has joined #ruby
elifoster has quit [Ping timeout: 250 seconds]
eregi has joined #ruby
elifoster has joined #ruby
rippa has joined #ruby
scepticulous has joined #ruby
ponga has joined #ruby
aufi has joined #ruby
eregi has quit [Ping timeout: 250 seconds]
skade has joined #ruby
eregi has joined #ruby
vF3hNGxc47h8 has joined #ruby
nfk has joined #ruby
rmulligan has joined #ruby
scepticulous has quit [Ping timeout: 260 seconds]
idletask has quit [Quit: Leaving]
rmulligan has quit [Ping timeout: 252 seconds]
Don_John_ has quit [Read error: Connection reset by peer]
aufi has quit [Quit: Konversation terminated!]
blackmesa has joined #ruby
x77686d has quit [Quit: x77686d]
safe has quit [Quit: Leaving]
aufi has joined #ruby
SenpaiSilver_ has quit [Read error: Connection reset by peer]
x77686d has joined #ruby
nerium has joined #ruby
the_drow has joined #ruby
x77686d has quit [Client Quit]
SenpaiSilver_ has joined #ruby
SenpaiSilver_ has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 246 seconds]
SenpaiSilver_ has joined #ruby
LoneHerm_ has joined #ruby
SenpaiSilver_ has quit [Max SendQ exceeded]
kohvihoor has joined #ruby
SenpaiSilver_ has joined #ruby
SenpaiSilver_ has quit [Max SendQ exceeded]
SenpaiSilver_ has joined #ruby
sandstrom has joined #ruby
SenpaiSilver_ has quit [Max SendQ exceeded]
skade has quit [Read error: Connection reset by peer]
SenpaiSilver_ has joined #ruby
djbkd has quit [Remote host closed the connection]
devbug_ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
Xeago has joined #ruby
jameswatling has joined #ruby
fedexo has quit [Ping timeout: 268 seconds]
solars has joined #ruby
firstdayonthejob has joined #ruby
djbkd has joined #ruby
idletask has joined #ruby
jas02 has joined #ruby
chouhoulis has joined #ruby
Xeago has quit [Remote host closed the connection]
kgirthofer has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
Moosashi has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
DmitryBochkarev has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
ur5us has quit []
chouhoulis has quit [Ping timeout: 276 seconds]
aganov has joined #ruby
kirillzh has quit [Quit: Textual IRC Client: www.textualapp.com]
elifoster has quit [Ping timeout: 252 seconds]
lyoshajapan has quit [Remote host closed the connection]
charlemagne has joined #ruby
lyoshajapan has joined #ruby
TomyLobo has joined #ruby
steffkes has joined #ruby
andikr has joined #ruby
Rodya_ has joined #ruby
last_staff has joined #ruby
solocshaw has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
eregi has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
<idletask> Ox0dea: are you here?
ziyadb has joined #ruby
vondruch has quit [Ping timeout: 244 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
baweaver has quit [Ping timeout: 250 seconds]
siaw has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
jaruga has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rmulligan has joined #ruby
lxsameer has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
charlemagne has quit [Remote host closed the connection]
DmitryBochkarev has quit [Ping timeout: 268 seconds]
charlemagne has joined #ruby
armyriad has joined #ruby
nerium has quit [Quit: nerium]
vali has quit [Quit: Leaving]
scepticulous has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
skade has joined #ruby
charlemagne has quit [Ping timeout: 276 seconds]
danjam has joined #ruby
ta_ has joined #ruby
Guest34101 has joined #ruby
biberu has joined #ruby
<flughafen> hello everybody
danjam has quit [Ping timeout: 250 seconds]
psmolen has quit [Ping timeout: 276 seconds]
SCHAAP137 has joined #ruby
mfaeh has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
meunierd has joined #ruby
T7rees has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
ohaibbq has quit [Remote host closed the connection]
Rickmasta has joined #ruby
Couch has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
Mia has joined #ruby
meunierd has quit [Ping timeout: 260 seconds]
ropeney has quit [Remote host closed the connection]
Axy has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
Moosashi has quit [Quit: Moosashi]
TTilus has joined #ruby
psmolen has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
moeabdol4 has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
godzillaenlacasa has joined #ruby
moeabdol has joined #ruby
godzillaenlacasa has quit [Client Quit]
mondok has joined #ruby
moeabdol4 has quit [Ping timeout: 276 seconds]
shredding has joined #ruby
mts_forever has joined #ruby
<mts_forever> Hi...
<jhass> hi
<mts_forever> in ROR context , setting a mongoid model class with rails g model .... I get "field" keywords, where can I find documentation on this keyword?
antgel has joined #ruby
<tobiasvl> mts_forever: on #rubyonrails
chouhoulis has joined #ruby
<mts_forever> ah thx
<jhass> and in the mongoid docs of course
hs366 has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
anisha has joined #ruby
roshanavand has joined #ruby
jeanlinux has joined #ruby
Zggb has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
lyoshajapan has joined #ruby
SenpaiSilver_ has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
moeabdol1 has joined #ruby
SenpaiSilver_ has joined #ruby
jaruga has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
jeanlinux has quit [Ping timeout: 248 seconds]
scepticulous has quit [Remote host closed the connection]
mondok has quit [Ping timeout: 268 seconds]
charlemagne has joined #ruby
kam270 has joined #ruby
thevaliantx has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
tulak has joined #ruby
<thevaliantx> i am trying to get Ruby installed on Linux Mint 17, and two problems. #1 when I install the ruby package it's just 1.9.x ... #2 when I install using internet tutorials (ie, rvm), as root since sudo apt-get install is needed, nothing sticks. as soon as i close the terminal and re-open the terminal and run rvm it says that it's not found.
Rodya_ has joined #ruby
Moosashi has joined #ruby
siaw_ has joined #ruby
siaw has quit [Read error: Connection reset by peer]
siaw_ is now known as siaw
jbrhbr has joined #ruby
jbrhbr has quit [Client Quit]
<jhass> you shouldn't install RVM as root, it's a lot harder to use in that mode
<jhass> do you have a /usr/local/rvm already?
<hanmac> thevaliantx: #1 check the software packages for newer ruby ... it should have packages for the 2.* too, you can switch them with update-alternative #2 if you add install rvm as user from https://rvm.io/rvm/install you need to add it to your .bash_profile as seen there
diver_dv has joined #ruby
Rodya_ has quit [Ping timeout: 248 seconds]
<hanmac> jhass: it depends, i use rvm as root, and it does work as it should too
<jhass> yes but there are a few more loops to jump through which IME are too confusing to newcomers
ready has quit [Remote host closed the connection]
<thevaliantx> jhass i have no idea. the tutorial i was using said nothing about switching out of root after running the sudo apt-get install commands.
eregi has joined #ruby
Macaveli has joined #ruby
<jhass> weird tutorial to make you run any at all, RVM does that for you
pawnbox has quit [Remote host closed the connection]
<jhass> but just check whether that directory exists please?
pawnbox has joined #ruby
rmulligan has joined #ruby
<thevaliantx> checking now, jhass
<thevaliantx> jhass there is a /usr/local/rvm
<jhass> yeah okay throw that tutorial away and let's purge that and get you back to a clean state
<jhass> https://rvm.io/support/troubleshooting run the commands from the second to last entry please
<apeiros> that tutorial doesn't seem to tell you to install rvm as root.
<thevaliantx> apeiros: correct, but it never told me to switch out of root after running the apt-get commands, either. that's where the confusion was.
darkxploit has quit [Ping timeout: 248 seconds]
<apeiros> thevaliantx: it never told you to use root to do apt-get either
<apeiros> it told you to use sudo
mikhael_k33hl has joined #ruby
<thevaliantx> apeiros: i typed "sudo apt-get install..."
djbkd has quit []
<mikhael_k33hl> WHen using the attr_accessor, attr_reader, and attr_writer, how do I determine what kind of variables are set for it or is it automatically considered an instance variable?
<apeiros> yes, that's a) not the same as being root and b) drops the elevated privileges right after that call
eregi has quit [Ping timeout: 248 seconds]
kp666 has joined #ruby
ramfjord has joined #ruby
<thevaliantx> apeiros: okay. getting off track here.
rmulligan has quit [Ping timeout: 252 seconds]
<jhass> mikhael_k33hl: always instance variables
<mikhael_k33hl> jhass, oh okay thanks
<jhass> thevaliantx: ping back when you purged RVM using above guide
<thevaliantx> jhass i'm not sure which command i should start with. "rvm get head"?
BtcBen has quit [Read error: Connection reset by peer]
<apeiros> thevaliantx: it's difficult to help you if what you say you did is not what you actually did.
<jhass> thevaliantx: the second to last entry on the page I linked you
* apeiros afk, jhass got you covered
<jhass> all the commands there
rdark has joined #ruby
pawnbox has quit [Remote host closed the connection]
<thevaliantx> jhass okay. ran the commands and then ran rvm ... no rvm found
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
<jhass> we just purged all traces of it, quite expected, don't you think?
pawnbox has joined #ruby
<thevaliantx> yes :D
<jhass> close your terminal emulator and get a new one please
<thevaliantx> okay
<jhass> as your normal working user, not as root, not prepending sudo, run gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
mrknip has joined #ruby
<thevaliantx> okay. complete
<jhass> as your normal working user, not as root, not prepending sudo, run \curl -sSL https://get.rvm.io | bash -s latest
<flughafen> hey shevy
<thevaliantx> okay. completed.
tesuji has joined #ruby
terlar has joined #ruby
diver_dv has quit [Quit: Leaving]
<jhass> good, now go to your terminal emulators settings and there configure it use a login shell
<thevaliantx> am i the only in here up at 4am?
Moosashi has quit [Quit: Moosashi]
mrknip has quit []
tvw has joined #ruby
darkxploit has joined #ruby
<thevaliantx> i don't see an option in LXTerminal to configure that. xterm doesn't have any options
f4cl3y has joined #ruby
igam has joined #ruby
Moosashi has joined #ruby
ropeney has joined #ruby
araujo has joined #ruby
charlemagne has quit [Remote host closed the connection]
charlemagne has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
jenrzzz has joined #ruby
blackmesa has joined #ruby
<thevaliantx> jhass thanks. i ran the first step on that page for configuring lxterminal. it suggested i might have to log out of the session and back in.
moeabdol1 has quit [Quit: WeeChat 1.4]
<jhass> silly system, but okay
codecop_ has quit [Client Quit]
<adaedra> Greetings.
<apeiros> bonjour adaedra
vondruch has quit [Quit: Ex-Chat]
<thevaliantx> hi adaedra
drptbl has joined #ruby
<jhass> thevaliantx: so after having done that, check what rvm current reports, if it says system run rvm install 2.3.0 (still not as root or using sudo, but if that asks you for your sudo password, give it)
charlemagne has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
n008f4g_ has joined #ruby
jeanlinux has joined #ruby
_main_ has joined #ruby
<thevaliantx> jhass ... said system ... no password required.
Xeago has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
<jhass> once that's through run rvm use --default 2.3.0 and check rvm current again
charlemagne has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
__main__ has quit [Ping timeout: 260 seconds]
<idletask> Yay, I can actually parse pretty complex expressions now
_main_ is now known as __main__
<thevaliantx> no woman can conquer you now :)
jenrzzz has quit [Ping timeout: 264 seconds]
moeabdol has joined #ruby
Moosashi has quit [Quit: Moosashi]
the_drow has joined #ruby
<thevaliantx> idletask: feel free to throw tomatoes, but that was intended for you :)
nocontrol has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<thevaliantx> jhass: rvm current shows it running ruby-2.3.0
<jhass> congratulations, that's all
<thevaliantx> wow. thank you very much :) is it gems that i need to install for modules? i read about something called "shoes" today.
<jhass> yes
jeanlinux has quit [Ping timeout: 248 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snowy has joined #ruby
<jhass> simply run gem install shoes4 (I think that was the last active one)
<jhass> again, no sudo, no root
vishwa has quit [Ping timeout: 252 seconds]
<thevaliantx> says shoes4 not found in repository
svkurowski has quit [Remote host closed the connection]
<nocontrol> I am receiving a string by an http request which is in this form https://gist.github.com/anonymous/4e67261b71df6aa7e554. When I am try to parse it, ruby sees it as a String and not a Hash. Is there any way I could parse it or am I thinking completely wrong ?
<baweaver> nocontrol: ^
<baweaver> Then just look up JSON in Ruby.
adac has joined #ruby
mark2 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<nocontrol> baweaver: I know how to use json, but I am receiving a string by an http request
<nocontrol> baweaver: do you suggest to convert it to json format ?
svkurowski has joined #ruby
Anderson69s_Deb has quit [Remote host closed the connection]
<thevaliantx> the exercises i've been doing in python are here => http://www.ling.gu.se/~lager/python_exercises.html
Anderson69s_Deb has joined #ruby
<thevaliantx> they might be useful to beginner ruby programmers
<thevaliantx> that's what i'm going to use to help me learn ruby. if anyone knows of other programming exercises sites i'd love to hear about htem
elaptics`away is now known as elaptics
<jhass> thevaliantx: exercism.io is nice, once you know the basic syntax that is
<thevaliantx> jhass true
<jhass> nocontrol: that is json, just parse it
chouhoulis has joined #ruby
drptbl has quit [Quit: See you later!]
drptbl has joined #ruby
jenrzzz has joined #ruby
scepticulous has joined #ruby
Xeago has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
mfaeh has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 248 seconds]
marr has joined #ruby
siaw has quit [Quit: siaw]
ramfjord has quit [Ping timeout: 244 seconds]
marr has quit [Client Quit]
mfaeh has joined #ruby
marr has joined #ruby
scepticulous has quit [Quit: Konversation terminated!]
scepticulous has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
__main__ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
__main__ has joined #ruby
duderonomy has joined #ruby
rmulligan has joined #ruby
roshanavand has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
sandstrom has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
eregi has quit [Ping timeout: 276 seconds]
ferr has joined #ruby
uglybandersnatch has joined #ruby
DJ_Spies has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby
ensyde__ has joined #ruby
duncannz has quit [Remote host closed the connection]
lyoshajapan has quit [Remote host closed the connection]
aryaching has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sandstrom has joined #ruby
<thevaliantx> thanks for the help, jhass. going to bed (5am here)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
thevaliantx has quit [Quit: Leaving]
lipoqil has joined #ruby
adac has quit [Quit: Leaving]
dgncn has quit [Excess Flood]
<gregf_> >> require "json"; JSON.parse(%|{"192.168.1.2":true,"192.168.1.3":true,"192.168.1.7":false,"192.168.1.1":true}|).select{|_,v| v }.keys
<ruby[bot]> gregf_: # => ["192.168.1.2", "192.168.1.3", "192.168.1.1"] (https://eval.in/531702)
<gregf_> ^^ nocontrol # you need to have more control :|
<nocontrol> gregf_: I believe I got something
<nocontrol> gregf_: thank you
<gregf_> dont wish *begs*
blackmesa has joined #ruby
meunierd has joined #ruby
dgncn has joined #ruby
BSaboia has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
meunierd has quit [Ping timeout: 244 seconds]
rkazak has quit [Quit: Sleep.....ing....]
joonty has joined #ruby
jameswatling has quit []
mfaeh has quit [Remote host closed the connection]
MyMind has joined #ruby
pandaant has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
tulak has quit [Remote host closed the connection]
blackmesa has joined #ruby
tulak has joined #ruby
binaryplease has joined #ruby
nocontrol has quit []
kam270 has quit [Quit: Leaving]
chouhoulis has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
chouhoulis has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
blackms has joined #ruby
FooMunki has joined #ruby
Ishido has joined #ruby
mts_forever has quit [Quit: Page closed]
rmulligan has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
baweaver has joined #ruby
workmad3 has joined #ruby
sandstrom has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
SenpaiSilver_ has quit [Read error: Connection reset by peer]
SenpaiSilver_ has joined #ruby
sandstrom has quit [Client Quit]
Rodya_ has quit [Ping timeout: 246 seconds]
xue has joined #ruby
sandstrom has joined #ruby
SenpaiSilver_ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 250 seconds]
eregi has joined #ruby
sandstrom has quit [Client Quit]
sandstrom has joined #ruby
skakri has quit [Ping timeout: 252 seconds]
scepticulous has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
eregi has quit [Ping timeout: 276 seconds]
skakri has joined #ruby
jenrzzz has joined #ruby
Tempesta has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
zipace has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
InternetFriend has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
ropeney has joined #ruby
mfaeh has joined #ruby
joonty has joined #ruby
InternetFriend has quit [Ping timeout: 276 seconds]
rabbel has joined #ruby
rabbel has left #ruby [#ruby]
charlemagne has quit [Remote host closed the connection]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 244 seconds]
charlemagne has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
chocoelho has joined #ruby
konsolebox has quit [Quit: Leaving]
ziyadb has joined #ruby
rodfersou has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
paatalaBhairavi has quit [Quit: Leaving]
volty has joined #ruby
ldnunes has joined #ruby
Abrin_AWAY has quit [Ping timeout: 250 seconds]
ziprar has joined #ruby
DmitryBochkarev has joined #ruby
binaryplease has quit [Ping timeout: 268 seconds]
c355e3b has joined #ruby
bluOxigen_ has joined #ruby
krz has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
zipace has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
jottr has joined #ruby
shredding has quit [Ping timeout: 260 seconds]
e4xit has quit [Ping timeout: 264 seconds]
maner has joined #ruby
e4xit has joined #ruby
fsapo has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
paatalaBhairavi has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
Patrezze has joined #ruby
mfaeh has quit [Remote host closed the connection]
charlemagne has quit [Remote host closed the connection]
Rodya_ has joined #ruby
charliesome has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
but3k4 has joined #ruby
darkxploit has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Ping timeout: 244 seconds]
eregi has joined #ruby
arlek has joined #ruby
drptbl has joined #ruby
T7rees has quit [Quit: Connection closed for inactivity]
eregi has quit [Ping timeout: 268 seconds]
uglybandersnatch has quit [Ping timeout: 268 seconds]
saneax is now known as saneax_AFK
sdothum has joined #ruby
skade has joined #ruby
evidex has joined #ruby
Merry__ has joined #ruby
armyriad has quit [Ping timeout: 268 seconds]
darkxploit has joined #ruby
Pathfinder has joined #ruby
bweston92 has joined #ruby
binaryplease has joined #ruby
Merry__ has quit [Quit: Page closed]
aeontech has joined #ruby
meunierd has joined #ruby
mfaeh has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Ping timeout: 240 seconds]
meunierd has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
tungd has joined #ruby
johnmilton has joined #ruby
marr has quit [Ping timeout: 244 seconds]
joonty has quit [Quit: Leaving]
cyclonis has quit [Ping timeout: 244 seconds]
mfaeh has quit [Remote host closed the connection]
joonty has joined #ruby
rmulligan has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
siaw has joined #ruby
Sp4rKy has quit [Remote host closed the connection]
Shaboum has joined #ruby
lyoshajapan has joined #ruby
stannard has joined #ruby
blackmesa has joined #ruby
Gasher has joined #ruby
jeanlinux has joined #ruby
kobain has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
lyoshajapan has quit [Ping timeout: 248 seconds]
kirun has joined #ruby
armyriad has joined #ruby
SCHAAP137 has quit [Ping timeout: 268 seconds]
scepticulous has joined #ruby
chouhoulis has joined #ruby
tulak_ has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
tulak has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
KnownSyntax has quit [Ping timeout: 240 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
SCHAAP137 has joined #ruby
nettoweb has joined #ruby
tungd has quit [Quit: Dreaming...]
paatalaBhairavi has quit [Quit: Leaving]
BSaboia has quit [Ping timeout: 244 seconds]
joonty has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
tungd has joined #ruby
bry4n has quit [Ping timeout: 268 seconds]
BSaboia has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Sp4rKy has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Ping timeout: 248 seconds]
eregi has joined #ruby
arlek has quit [Ping timeout: 248 seconds]
augcesar has joined #ruby
shredding has joined #ruby
eregi has quit [Ping timeout: 246 seconds]
volty has quit [Ping timeout: 276 seconds]
Patrezze has quit [Ping timeout: 244 seconds]
quaristice has joined #ruby
quaristice has quit [Client Quit]
sandstrom has joined #ruby
siaw has quit [Quit: siaw]
CloCkWeRX has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
swills has joined #ruby
blackmesa has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
aryaching has joined #ruby
evidex has quit [Quit: leaving]
evidex has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
Gasher has quit [Ping timeout: 276 seconds]
swills has quit [Ping timeout: 276 seconds]
CloCkWeRX has joined #ruby
synthroid has joined #ruby
mfaeh has joined #ruby
stannard has quit [Remote host closed the connection]
gbgdev has joined #ruby
rmulligan has joined #ruby
brunto has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
Gasher has joined #ruby
krz has joined #ruby
mostlybadfly has joined #ruby
Optimus__ has joined #ruby
Xeago has quit [Remote host closed the connection]
shanemcd has joined #ruby
freerobby has joined #ruby
Xeago has joined #ruby
Optimus__ has left #ruby [#ruby]
marr has joined #ruby
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
justbleed has joined #ruby
freerobby has quit [Client Quit]
tungd has quit [Quit: Dreaming...]
justbleed is now known as TomPeed
chouhoulis has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
howdoi has quit [Quit: Connection closed for inactivity]
tungd has joined #ruby
InternetFriend has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
ESpiney has joined #ruby
mfaeh has quit [Remote host closed the connection]
stannard has joined #ruby
bry4n has joined #ruby
sandstrom has joined #ruby
last_staff has quit [Quit: last_staff]
mfaeh has joined #ruby
siaw has quit [Quit: siaw]
stannard has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
cajone has left #ruby [#ruby]
bry4n has quit [Ping timeout: 250 seconds]
nanoz has joined #ruby
cajone has joined #ruby
eregi has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
pawnbox has quit [Remote host closed the connection]
czerasz has joined #ruby
aryaching has quit [Ping timeout: 268 seconds]
aryaching has joined #ruby
tulak_ has quit [Remote host closed the connection]
ramortegui has joined #ruby
tulak has joined #ruby
eregi has quit [Ping timeout: 276 seconds]
failshell has joined #ruby
TomPeed is now known as dream_of_pdev
failshell has quit [Remote host closed the connection]
mfaeh has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
Pisuke has joined #ruby
dede has joined #ruby
pawnbox has joined #ruby
chipotle has quit [Max SendQ exceeded]
swills has joined #ruby
MyMind has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
chipotle has joined #ruby
idle_task has joined #ruby
idletask has quit [Ping timeout: 260 seconds]
jottr has quit [Quit: WeeChat 1.4]
idle_task is now known as idletask
djcp has joined #ruby
nerium has joined #ruby
Hammy_Work has joined #ruby
duckpuppy has joined #ruby
failshell has joined #ruby
jaruga has quit [Quit: jaruga]
sepp2k has joined #ruby
nanoz has quit [Ping timeout: 260 seconds]
moos3 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
binaryplease has quit [Ping timeout: 250 seconds]
rmulligan has joined #ruby
czerasz has quit [Remote host closed the connection]
failshell has quit []
sgambino has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
idefine has joined #ruby
czerasz has joined #ruby
aegis3121 has joined #ruby
kies has quit [Ping timeout: 248 seconds]
siaw has joined #ruby
roshanavand has joined #ruby
volty has joined #ruby
binaryplease has joined #ruby
binaryplease has quit [Client Quit]
binaryplease has joined #ruby
malconis has joined #ruby
nerium has quit [Quit: nerium]
chouhoulis has joined #ruby
scepticulous has quit [Remote host closed the connection]
sandstrom has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
gbgdev has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
konsolebox has joined #ruby
SCHAAP137 has quit [Ping timeout: 244 seconds]
konsolebox has quit [Max SendQ exceeded]
quaristice has joined #ruby
quaristice has quit [Client Quit]
moss has quit [Changing host]
moss has joined #ruby
bMalum has joined #ruby
scepticulous has joined #ruby
fmcgeough has joined #ruby
antgel has quit [Quit: leaving]
BrunoSaboia has joined #ruby
BSaboia has quit [Ping timeout: 268 seconds]
aegis3121 has quit [Ping timeout: 276 seconds]
DmitryBochkarev has joined #ruby
StyXman has joined #ruby
jeanlinux has joined #ruby
baweaver has joined #ruby
bry4n has joined #ruby
<StyXman> I'm trying to install a gem for which I already have most of the deps installed in the system (via my distro's packages), but even with --minimal-deps, it tries to install ffi-yajl-2.2.3 (which it is on the versoin 2.2.0-1+b3 on the system). my question is how can I figure out if the gem I'm trying to install is asking for 2.2.3 specifically or is it ignoring/not finding the one in the system. this is the wh
<StyXman> ole command I'm using: gem install ...
<StyXman> ... --install-dir $HOME/local/lib/ruby --minimal-deps knife-draw
<StyXman> this one: gem install --install-dir $HOME/local/lib/ruby --minimal-deps knife-draw
cmckee has joined #ruby
aegis3121 has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
jeanlinux has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
aryaching has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
<adaedra> StyXman: inspect the file gemspec. What's the gem?
nfk has joined #ruby
<adaedra> ah, didn't see it
bry4n has quit [Ping timeout: 264 seconds]
shredding has quit [Ping timeout: 246 seconds]
InternetFriend has quit [Quit: Lost terminal]
<adaedra> knife-draw depends on chef which depends on ffi-yajl ~> 2.2
trosborn has joined #ruby
eregi has joined #ruby
ta_ has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
<darix> well ~> 2.2 does allow 2.2.0
<adaedra> It's the b3 that tickles me
ta_ has joined #ruby
haylon has joined #ruby
<darix> StyXman: you want --conservative
<darix> i think
<adaedra> I wonder if it's the gem version or some sort of debian-added version number
stannard has joined #ruby
<darix> adaedra: notice the "-" in the name ... that is release tag of the distro
<adaedra> k
Rodya_ has quit [Ping timeout: 240 seconds]
hgl has quit [Ping timeout: 244 seconds]
pandaant has quit [Remote host closed the connection]
montyboy has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
nicnilov has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
lyoshajapan has quit [Ping timeout: 240 seconds]
<StyXman> but che is installed
eregi has quit [Ping timeout: 264 seconds]
<StyXman> darix: --conservative did a similar thing too
<StyXman> cehf*
ta_ has quit [Ping timeout: 260 seconds]
<darix> StyXman: well... is the debian chef package installed via "gem"?
<darix> as in the .deb also has all the gem metadata files?
<darix> if not ... gem does not see your installed chef
<StyXman> it should, I guess
<StyXman> let me see
<darix> neither your installed ffi-yajl
<darix> so it will need to pull it again
dopamean_ has quit [Ping timeout: 276 seconds]
<StyXman> this? /usr/share/rubygems-integration/all/specifications/chef-12.3.0.gemspec
<darix> main reason why on opensuse i force all ruby libraries to go via gems
<darix> yes
<StyXman> (sorry, I'm rather new to ruby, as you can see)
<StyXman> so probably is not finsding it becasue of the path?
griffindy has joined #ruby
<darix> gem search --local
<StyXman> chef (12.3.0)
<StyXman> chef-zero (4.5.0)
<StyXman> wat about the other one...
babblebre has joined #ruby
fsapo has quit [Remote host closed the connection]
<StyXman> ffi-yajl (2.2.0)
steffkes has quit [Ping timeout: 264 seconds]
idefine has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
tvon has quit [Quit: tvon]
dopamean_ has joined #ruby
whippythellama has joined #ruby
IrishGringo has joined #ruby
HalcyonicStorm has joined #ruby
<Takumo> Hi all, anyone recently had issues with openssl on ruby-2.0.0-p353 (via RVM)
shanemcd has quit [Remote host closed the connection]
<jhass> ?anyone
<ruby[bot]> Just ask your question, if anyone has or can, they will respond.
n008f4g_ has joined #ruby
<Takumo> jhass: that *is* my question.
<jhass> okay, then my personal answer is no, as I don't use RVM
<jhass> why the survey?
<shevy> I don't use RVM either! and neither 2.0.0-p353!!!
trosborn has quit [Quit: trosborn]
<Takumo> Because I've started having issues and wanted to know if it was an actual issue or an issue with my setup
<shevy> what openssl do you use?
<Takumo> currently on 1.0.2g
nicnilov has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> we probably could answer that directly if we knew the issue...
<shevy> wow that is recent
<shevy> I am on 1.0.2e right now
<Takumo> well my issue is that now I can't recompile 2.0.0-p353 on rvm. "Target 'build-ext' failed" when running the main build
rmulligan has joined #ruby
<StyXman> did it gave any reasons?
<Takumo> shevy: seems it, full output is "OpenSSL 1.0.2g 1 Mar 2016"
mfaeh has joined #ruby
atmosx has quit [Quit: Computer went to sleep... Zzzzz..]
chouhoulis has quit [Remote host closed the connection]
<Takumo> otherwise its time to move this app to 2.2.2
eurialo has joined #ruby
bry4n has joined #ruby
<Takumo> StyXman: http://ix.io/pzE that's the full output
shanemcd has joined #ruby
aeontech has quit [Quit: aeontech]
<Takumo> oh wait there's a p643, lets try that! derp
x77686d has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
<havenwood> Takumo: It is time to upgrade, since 2.0 is past end-of-life! 2.2 or 2.3 is a good idea since 2.1 goes into maintenance mode this month.
aeontech has joined #ruby
<havenwood> "We highly recommend that you upgrade to Ruby 2.3 or 2.2 as soon as possible."
Dragooon has quit [Ping timeout: 260 seconds]
<havenwood> *security maintenance mode
<Takumo> havenwood: I know, its just that I kinda need to get 2.0 working on my machine until I can test the app against 2.2 before redeploying
<havenwood> Takumo: aha!
sandstrom has quit [Quit: My computer has gone to sleep.]
<Takumo> don't want to suddently be like "Here's a patch obtw it now needs to run on ruby-2.3"
<havenwood> Watch the last patch level version of Ruby go poof: ruby-install --latest
shanemcd has quit [Remote host closed the connection]
sandstrom has joined #ruby
idefine has quit [Remote host closed the connection]
tvon has joined #ruby
idefine has joined #ruby
<jhass> I guess the sslv3 removal patch wasn't backported to 2.0 anymore?
stannard has quit [Remote host closed the connection]
<jhass> we still didn't see the real error so it's only guesswork if that's the issue of course
StyXman has left #ruby [#ruby]
volty has left #ruby ["Konversation terminated!"]
stannard has joined #ruby
<jhass> but if the guess is right, you can try if https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff applies to 2.0 still
<Takumo> jhass: I don't see the real error either, that's all the output I've got... I'm sorta gietting
B1n4r10 has joined #ruby
statelesscode has joined #ruby
Jardayn has joined #ruby
axl_ has joined #ruby
<jhass> sorry if I doubt that
<jhass> fairly confident it'd at least point you to a log
<Takumo> nope, that's literally all it printed to stdout and stderr
dopamean_ has quit [Ping timeout: 276 seconds]
DoubleMalt has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 244 seconds]
anisha has quit [Quit: Leaving]
<jhass> havenwood: ^ how do we make RVM more verbose?
andikr has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dEPy has joined #ruby
<jhass> actually if that's the case, how do you even knew it's openssl that's causing issues?
<havenwood> --debug
lyoshajapan has joined #ruby
mallu has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
stannard has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
ponga has quit []
Mon_Ouie has joined #ruby
<shevy> good programmers need not debug!
<adaedra> ah, here's shevy and the misplaced quote.
mary5030 has joined #ruby
<jhass> where would that be well placed?
Pathfinder has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
<jhass> besides the trash can
Rodya_ has joined #ruby
mary5030 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
idefine has joined #ruby
poguez_ has joined #ruby
amargherio has joined #ruby
stannard has joined #ruby
dEPy has quit [Quit: (null)]
idefine has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 248 seconds]
aganov has quit [Remote host closed the connection]
papachan has joined #ruby
<papachan> hi
<havenwood> papachan: hi
mostlybadfly has quit [Quit: Connection closed for inactivity]
<papachan> i am on archlinux. and we received a new upgrade with openssl and bundle install start to complain about ssl
<papachan> now we want to install some ruby version and it start to fail
<papachan> we are using ruby-build with rbenv
<Takumo> papachan: I'm having the exact same issue!
<Takumo> but on rvm
<papachan> ah
vishwa has joined #ruby
<havenwood> papachan: rbenv's ruby-build actually ships with it's own openssl instead of using the package manager's
haylon has quit [Quit: WeeChat 1.4]
rodfersou is now known as rodfersou|lunch
terlar has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
binaryplease has joined #ruby
<papachan> ha
<Takumo> is rbenv preverred over RVM these days?
tungd has quit [Quit: Dreaming...]
atmosx has joined #ruby
<havenwood> papachan: The 2.3.0 definition for example downloads openssl-1.0.2g: https://github.com/rbenv/ruby-build/blob/master/share/ruby-build/2.3.0#L1
hs366 has quit [Read error: Connection reset by peer]
<Takumo> I've been using RVM for so long I don't know if something's superceeded it
gbgdev has joined #ruby
<jhass> Takumo: I prefer rbenv the least. a small and often recommended setup these days is chruby & ruby-install
<havenwood> Takumo: I think most folk around here will point you to chruby/ruby-install but they're all in wide use.
AlexRussia has quit [Ping timeout: 276 seconds]
diegoviola has joined #ruby
<papachan> havenwood: so we hace to use openssl-1.0.2g in that case?
<tuelz> I would point you to getting a home server and having a VM for each version of ruby, but I'm a terrible person
eregi has joined #ruby
<Takumo> tuelz: nah, custom chruby thing which spins up ec2 instances and runs there
<havenwood> papachan: The ruby-build tool hardcodes openssl and relies on you to install other deps. You could try using ruby-install to install for rbenv (it will build against your package manager openssl): https://github.com/postmodern/ruby-install#integration
<Takumo> or docker...
cmckee has quit [Quit: cmckee]
<tuelz> Takumo: but but they might have a free tier and I want them to waste money...
<havenwood> papachan: Or there may be a ruby-build flag to specify openssl, I dunno. AFAIK they always hardcode.
<papachan> havenwood: is there already a github issue to see how people resolve it?
<Takumo> tuelz: default to i2.8xlarge
<havenwood> papachan: I don't follow ruby-build issues, but they're here: https://github.com/rbenv/ruby-build/issues
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
mfaeh has quit [Remote host closed the connection]
<havenwood> papachan: Maybe gist the full error you're getting?
<havenwood> papachan: I'm curious.
eregi has quit [Ping timeout: 268 seconds]
mfaeh has joined #ruby
BrunoSaboia has quit [Ping timeout: 268 seconds]
rindolf has joined #ruby
Xiti has quit [Quit: Xiti]
<rindolf> Hi all. Sup?
Xiti has joined #ruby
<papachan> havenwood: sure
zast has joined #ruby
<havenwood> rindolf: good mornin'
<rindolf> havenwood: top of the localtime()!
<rindolf> havenwood: sup?
dhollinger has joined #ruby
Pathfinder has joined #ruby
Xiti has quit [Remote host closed the connection]
Xiti has joined #ruby
<papachan> sorry my desktop manage spanish log
<shevy> Zorro-desktop!
<papachan> lol
cmckee has joined #ruby
axisys has joined #ruby
idefine has joined #ruby
<havenwood> papachan: Ah, 2.2.3, OSSL_SSL_METHOD_ENTRY(SSLv3). Try with Ruby 2.2.4.
<papachan> ok
<jhass> or just upgrade to 2.2.4, yeah
<havenwood> papachan: Or ^
sepp2k has joined #ruby
uglybandersnatch has joined #ruby
idefine_ has joined #ruby
hxegon has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haylon has joined #ruby
freerobby has quit [Quit: Leaving.]
stannard has quit [Remote host closed the connection]
eurialo has quit [Ping timeout: 248 seconds]
stannard has joined #ruby
idefine has quit [Ping timeout: 264 seconds]
uglybandersnatch has quit [Ping timeout: 240 seconds]
jas02 has quit [Quit: jas02]
cmckee has quit [Quit: cmckee]
fostertheweb has joined #ruby
kappy has joined #ruby
|ifei5g00d has joined #ruby
rmulligan has joined #ruby
shredding has joined #ruby
Es0teric has joined #ruby
B1n4r10 has quit [Ping timeout: 276 seconds]
rkazak has joined #ruby
scepticulous has quit [Quit: Konversation terminated!]
scepticulous has joined #ruby
<papachan> it work with 2.2.4
sandstrom has quit [Quit: My computer has gone to sleep.]
rmulligan has quit [Ping timeout: 252 seconds]
LastWhisper____ has joined #ruby
sandstrom has joined #ruby
<havenwood> papachan: nice
<LastWhisper____> hey guys, i wrote a script that compares some computed values to an array of values... but since my list of values I'm iterating over is near ~6 million, I was wondering if I can do anything different that speed up the process?
<LastWhisper____> I'm comparing it this way: elsif !(KNOWN_HASHES.include? digested) && counter <= NUM_OF_TRIES
<jhass> &ri Set
<jhass> LastWhisper____: ^
shanemcd has joined #ruby
<LastWhisper____> so I would declare KNOWN_HASHES as a set, and then to compare just do KNOWN_HASHES.subset? digested
<LastWhisper____> ?
troulouliou_div2 has joined #ruby
<jhass> still include?, but using a set makes include? O(1) instead of O(n)
<LastWhisper____> excellent
<LastWhisper____> thank you jhass
eregi has joined #ruby
<LastWhisper____> I'll report back with the speed difference :D
elifoster has joined #ruby
<jhass> if that's still too slow port it to Crystal :P
<Takumo> Well I upgrade to 2.2.4 but I'm getting the following error: ruby: symbol lookup error: /home/leo/development/projects/ke-api/vendor/ruby/2.2.0/gems/tiny_tds-0.6.2/lib/tiny_tds/tiny_tds.so: undefined symbol: rb_thread_blocking_region
<Takumo> is this something which is known to have changed in ruby? (rb_thread_blocking_region)
chouhoulis has joined #ruby
<LastWhisper____> jhass you're blowing my mind. I had no idea about Crystal
AlexRussia has joined #ruby
nerium has joined #ruby
shredding has quit [Ping timeout: 248 seconds]
<Takumo> derp
mfaeh has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
Rodya_ has joined #ruby
scepticulous has quit [Ping timeout: 240 seconds]
Jardayn_two has joined #ruby
Tricon has joined #ruby
<LastWhisper____> jhass: Time it took = 1.495285
Jardayn_two has quit [Remote host closed the connection]
<LastWhisper____> original was: Time it took = 4.415288
<LastWhisper____> :))
the_drow has quit [Quit: This computer has gone to sleep]
codecop has quit [Remote host closed the connection]
jmignault has joined #ruby
shinnya has joined #ruby
<jhass> cool
rcvalle has joined #ruby
marr has quit [Remote host closed the connection]
tomchapin has joined #ruby
Sucks has joined #ruby
bry4n has quit [Quit: WeeChat 1.4]
sandstrom has quit [Quit: My computer has gone to sleep.]
cmckee has joined #ruby
<LastWhisper____> Do you use crystal-lang ?
<jhass> yes
<LastWhisper____> can you import general c libraries? such as the sha256 encryption stuff?
terlar has quit [Ping timeout: 246 seconds]
<jhass> kinda, you can link against them but atm you still have to write the binding by hand
<jhass> which is pretty easy otoh
<Takumo> lol there's too many awesome languages now :(
<jhass> btw sha256 is a digest/hash algorithm, not encryption
<LastWhisper____> right
<LastWhisper____> i mispoke :)
tvon has quit [Quit: tvon]
<LastWhisper____> i'll have to read through the docs tonight
KensoDev has joined #ruby
<LastWhisper____> this looks like a refreshing thing to learn
<jhass> LastWhisper____: https://carc.in/#/r/tuv
synthroid has quit [Remote host closed the connection]
tvon has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<LastWhisper____> -_- that's how easy it is lol
<jhass> well, basic OpenSSL binding is in stdlib ;)
<LastWhisper____> Maybe I'll bump up my "tonight" plan to lunch today to get this ported over to Crystal
<LastWhisper____> to see the time difference
<jhass> <3
sneakerhax has quit [Ping timeout: 250 seconds]
<Takumo> so Crystal is a fully compiled language with a ruby-like syntax?
mfaeh has joined #ruby
<jhass> yes
shanemcd has quit [Remote host closed the connection]
<adaedra> I think they even have their own channel.
idefine_ has quit [Remote host closed the connection]
<Takumo> I imagine they do... im sorta niterested but also there's too many other languages I'm trying to do projects in like Golang and Clojure
zack6849 has quit [Quit: Leaving]
aufi has quit [Ping timeout: 244 seconds]
davejlong has joined #ruby
<x77686d> With Ruby 2.2.4 I seem to be seeing exponential slowdown with string[n] = "x", as n grows. Is this a known problem?
Hammy_Work has quit [Quit: Leaving]
<x77686d> I don't see it with 1.9.3
Hammy_Work has joined #ruby
<shevy> come to 2.3.0 and be a happier person
niksrc has joined #ruby
Rodya_ has joined #ruby
cdg has joined #ruby
cpup has quit [Ping timeout: 268 seconds]
elaptics is now known as elaptics`away
binaryplease has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
Dragooon has joined #ruby
aeontech has quit [Quit: aeontech]
symm- has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie> Exponential? Not linear in n? (since the whole string needs to be iterated over if the encoding is something like UTF-8)
siaw has quit [Quit: siaw]
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
cpup has joined #ruby
czerasz has quit [Ping timeout: 276 seconds]
<hxegon> how do I split a hash into an array of hashes? google/docs aren't cooperating today :\
eregi has quit [Ping timeout: 276 seconds]
<hxegon> nvm, just remembered hash includes Enumerable, so has #group_by
<jhass> .group_by ? the question is kind of vague
rippa has joined #ruby
<hxegon> I got it, thanks jhass
<x77686d> Mon_Ouie: Ah, probably an encoding issue!
Couch has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
<LastWhisper____> jhass random question: I currently have a loop that runs 100k times, where i sha256 the keyword, and then after it's digested, I check the array (now a set), to see if it matches. Would it be more efficient to create a set of the 100k digested ones, and then verify after the keyword has been looped 100k times?
<jhass> no
<jhass> I'd expect that to be slower since you need to allocate the array/set for the 100k
baweaver has joined #ruby
Macaveli has joined #ruby
solars has quit [Ping timeout: 246 seconds]
fedexo has joined #ruby
ramfjord has joined #ruby
eurialo has joined #ruby
nanoz has joined #ruby
idefine has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
tvon has quit [Quit: tvon]
baweaver has quit [Ping timeout: 248 seconds]
tvon has joined #ruby
freerobby has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Don_John has joined #ruby
brunto has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
shanemcd has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
rmulligan has joined #ruby
cmckee has quit [Quit: cmckee]
ljames has joined #ruby
LoneHerm_ has joined #ruby
<x77686d> Mon_Ouie: I see the same slowdown with 'ruby -E US-ASCII:US-ASCII ...'
marxarelli has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Don_John has quit [Read error: Connection reset by peer]
KensoDev has joined #ruby
amclain has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
dx has left #ruby [#ruby]
configged has quit [Read error: Connection reset by peer]
terminalrecluse has joined #ruby
paul98_ is now known as paul98
shanemcd has quit [Remote host closed the connection]
jmignault has quit [Ping timeout: 268 seconds]
arthurix_ has joined #ruby
zack6849 has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
jyaworski has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Remote host closed the connection]
arthurix has quit [Ping timeout: 246 seconds]
kies has joined #ruby
idefine has joined #ruby
dream_of_pdev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<x77686d> I'd be curious to hear comments on https://gist.github.com/x77686d/be8027586f24428d0cee -- I see exponential behavior with string[n] = "x" as n grows, even with US-ASCII encoding.
<idletask> Ox0dea: I've made quite some strides in the parsing; after all, it's not that hard
<idletask> It's just a matter of decluttering the language grammars
B1n4r10 has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
eregi has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
rkazak has quit [Quit: Sleep.....ing....]
sandstrom has joined #ruby
idefine has joined #ruby
Alayde has joined #ruby
skade has joined #ruby
kies has quit [Ping timeout: 246 seconds]
peteykun has joined #ruby
Alayde has left #ruby [#ruby]
tuelz has quit [Quit: WeeChat 1.5-dev]
shinnya has quit [Ping timeout: 240 seconds]
justbleed has joined #ruby
rkazak has joined #ruby
Snowy has quit [Remote host closed the connection]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
chouhoulis has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
chouhoulis has joined #ruby
crystal77 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Guest38 has joined #ruby
rkazak has quit [Ping timeout: 248 seconds]
rodfersou|lunch is now known as rodfersou
shanemcd has joined #ruby
vF3hNGxc47h8 has joined #ruby
pietr0 has joined #ruby
mostlybadfly has joined #ruby
maletor has joined #ruby
LastWhisper____ has quit [Ping timeout: 260 seconds]
justbleed is now known as pdev_prodigy
<workmad3> x77686d: looking at it, I'm pretty sure you accidentally introduced an O(n^2) aspect into your test... `string[n]` is O(n), and you're repeating that n times for your input, so your test for n is doing n lookups of O(n) for a total test run of O(n^2) time
pdev_prodigy is now known as TomPeed
olspookishmagus has quit [Ping timeout: 260 seconds]
<apeiros> workmad3: with 1byte=1char encodings like us-ascii string[n] should be O(1)
nanoz has quit [Read error: Connection reset by peer]
sandstrom has quit [Quit: My computer has gone to sleep.]
mclong has joined #ruby
<apeiros> weird code style to put |i| on the next line
cpup has quit [Ping timeout: 246 seconds]
<workmad3> apeiros: ah, true...
<apeiros> and I was actually pretty sure they optimized for that. might be that they only do for binary, though.
marr has joined #ruby
<apeiros> would be bad, though
f4cl3y has quit [Ping timeout: 244 seconds]
Xeago has quit [Read error: Connection reset by peer]
cpup has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sneakerhax has joined #ruby
<apeiros> but reading that gist I'm not quite sure why x77686d thinks it was exponential
MarcWebe1 has joined #ruby
<apeiros> linear from 1000=0.6s would be 10_000=6s, 100_000=60s
SCHAAP137 has joined #ruby
<workmad3> yeah... I only see linear once each string is accessed the same number of times (and going from the end of the string) :) https://gist.github.com/workmad3/fb2f6f5b3459858a5e7f
<apeiros> but it's faster than that. probably due to things like call-site caching
<MarcWebe1> Which PDF library supports spot colors and is suitable for creating print media thus has basic table support and similar?
snockerton has joined #ruby
<workmad3> I also only see linear once the string is over a certain size
<apeiros> ah, I see, I read it wrong. it's two args for outer/inner loop.
<apeiros> uh, what? outer/inner loop *plus* string size
joonty has quit [Ping timeout: 276 seconds]
Guest34101 has quit [Ping timeout: 248 seconds]
shanemcd has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<apeiros> hm, gotta take a look at that again when I took a shower and recovered a bit from training
ramfjord has joined #ruby
czerasz has joined #ruby
<apeiros> the difference between ruby 1.9 and 2.2 with the same arguments is certainly suspicious
fostertheweb has joined #ruby
<apeiros> oooh
lxsameer has joined #ruby
* apeiros checks something
<apeiros> yeah
<apeiros> x77686d: -E does NOT affect string literals
n008f4g_ has quit [Ping timeout: 276 seconds]
<apeiros> those are still utf-8 in 2.2.4
<apeiros> so you're not testing String#[] with an US-ASCII string but with a UTF-8 string
<apeiros> you can verify by adding `p string.encoding` after line 57 in your gist
* apeiros afk
<apeiros> /nick apeiros|mysterysolver
<workmad3> apeiros: that drops the times, but I still see linear increases in time
dkk has joined #ruby
<dkk> hi
Sucks has quit [Quit: No Ping reply in 180 seconds.]
<dkk> i have an array a=[1,2,2.0] and i want to get the index of 2.0. Doing a.index(2.0) returns 1. How to fix this?
mclong has quit [Quit: Leaving]
<workmad3> apeiros: when you're back, just updated my gist with a modified benchmark showing times after re-encoding strings as ASCII :)
tenderlove has quit [Remote host closed the connection]
Kryptonical has joined #ruby
Sucks has joined #ruby
tenderlove has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
fostertheweb has joined #ruby
Kryptonical has quit [Ping timeout: 250 seconds]
LastWhisper____ has joined #ruby
sandstrom has joined #ruby
olspookishmagus has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
olspookishmagus is now known as Guest84380
aryaching has quit [Ping timeout: 252 seconds]
Kryptonical has joined #ruby
rmulligan has joined #ruby
mclong has joined #ruby
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
davejlong has quit [Remote host closed the connection]
<gregf_> dkk: prolly do a value.to_s =~ /2.0/?
tvon has quit [Quit: tvon]
davejlong has joined #ruby
fostertheweb has quit [Client Quit]
<gregf_> >> a=[1,2,2.0];search = "2.0"; p a.each_with_index.select { |v,i| v.to_s =~ /#{search}/ }.map(&:first) # like that?
<ruby[bot]> gregf_: # => [2.0] ...check link for more (https://eval.in/532133)
fostertheweb has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
niksrc has quit [Quit: Leaving]
<jhass> ugh, no
<dkk> gregf_: will a.index{|x| x.eql? 2.0} work?
davejlong has quit [Read error: Connection reset by peer]
<jhass> dkk: I expect so, looks better
<gregf_> dkk: well jhass says that a terrible idea *mine*
<gregf_> oh, nice
davejlong has joined #ruby
<gregf_> a=[1,2,2.0]; a.index{|x| x.eql? 2.0}
<gregf_> >> a=[1,2,2.0]; a.index{|x| x.eql? 2.0}
<ruby[bot]> gregf_: # => 2 (https://eval.in/532137)
tvon has joined #ruby
statelesscode has quit [Quit: statelesscode]
davejlong has quit [Read error: Connection reset by peer]
<gregf_> dkk: doesn't ... apparently :|
davejlong has joined #ruby
jackjackdripper has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
rmulligan has quit [Ping timeout: 252 seconds]
Kryptonical has quit [Ping timeout: 248 seconds]
VeryBewitching has joined #ruby
davejlong has joined #ruby
<VeryBewitching> G'day folks.
<gregf_> oh my bad.... it does *ignore me*
davejlong has quit [Read error: Connection reset by peer]
<dkk> gregf_ isn’t it working?
<dkk> yes :P
<gregf_> ;) *bulls eye*
krz has quit [Read error: Connection reset by peer]
Kryptonical has joined #ruby
fedexo has quit [Ping timeout: 268 seconds]
<jhass> dkk: equal? then
davejlong has joined #ruby
<jhass> >> [1, 2, 2.0].index {|n| n.equal? 2.0 }
<ruby[bot]> jhass: # => nil (https://eval.in/532141)
<jhass> mh
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
<jhass> eh nvm, eql? did work
<jhass> kinda dizzy here
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
cwarner has joined #ruby
LoneHerm_ has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
binaryplease has joined #ruby
ravster has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
davejlong has quit [Read error: Connection reset by peer]
<cwarner> I'm trying to understand how recursive functions in ruby work with varirables and the stack.. if you call a recursive function how does ruby handle external vars from that function.. I'm looking at an example where it keeps the scope of that var on the stack
davejlong has joined #ruby
<ravster> hello all
<ravster> I would like my binstubs to not specify the ruby version (2.3 in my case). I can't find a flag on the binstubs command to do something like this. Right now the binstubs start with the magic comment '#!/usr/bin/env ruby2.3'. I would like it to be just 'ruby'. Is there a way to do this without manually changing the binstubs?
davejlong has quit [Read error: Connection reset by peer]
<cwarner> ehhh let me just look
davejlong has joined #ruby
djbkd has joined #ruby
<jhass> "the binstub command"?
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
<Sigma00> rbenv
<jhass> cwarner: I don't quite follow, it probably doesn't do anything like that
<x77686d> apeiros: I was away for a bit. Thanks for those thoughts.
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
<ravster> jhass: 'bundle binstubs gem-name' - http://bundler.io/v1.11/bundle_binstubs.html
Kryptonical has quit [Ping timeout: 248 seconds]
aegis3121 has joined #ruby
djbkd has quit [Remote host closed the connection]
davejlong has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
davejlong has joined #ruby
<dkk> jhass: What does it mean when a function returns two values?
davejlong has quit [Read error: Connection reset by peer]
evidex has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 246 seconds]
davejlong has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
<gregf_> cwarner: do you mean something alond these lines: https://gist.github.com/anonymous/32b4c2b016ec7921bb82
davejlong has quit [Read error: Connection reset by peer]
<gregf_> s/alond/along/
chevdor has joined #ruby
davejlong has joined #ruby
<jhass> dkk: it returns an array
davejlong has quit [Read error: Connection reset by peer]
<cwarner> gregf_: hrmm yes
moeabdol1 has joined #ruby
<gregf_> cwarner: well, i managed to trick you :).. the function gets called once i guess :|
davejlong has joined #ruby
<cwarner> so basically I have to explicitly terminate
davejlong has quit [Read error: Connection reset by peer]
Sucks has quit [Read error: Connection reset by peer]
<dkk> jhass: will this also return an array? a.index{|x| x.equal? 2}
davejlong has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ochkoffein has joined #ruby
<chevdor> hello, I dont have much experience with ruby. I am trying to run a ‘bundle install’ which fails telling me that recog needs ruby 2.1. I have ruby 2.3… gem install recog works all fine. I found an older ruby 2.0.x on my system in /usr/bin. I removed it and symlinked to ruby 2.3. What can I check to move on ?
davejlong has quit [Read error: Connection reset by peer]
<cwarner> ok so make static, explicitly terminate
kies has joined #ruby
peteykun has quit [Quit: Leaving]
<cwarner> ughh
davejlong has joined #ruby
Shapeshi1ter has quit [Quit: leaving]
davejlong has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
<shevy> chevdor that's quite annoying if bundler tells you that you must use an older ruby version
lxsameer has quit [Ping timeout: 244 seconds]
mfaeh has quit []
shanemcd has joined #ruby
davejlong has joined #ruby
ItSANgo has quit [Ping timeout: 264 seconds]
IrishGringo has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
steffkes has joined #ruby
<chevdor> shevy: what I confusing is that it tells me that I need 2.1 or above and I have 2.3 which, if my math is correct, should be ok :)
davejlong has quit [Read error: Connection reset by peer]
igam has quit [Ping timeout: 260 seconds]
davejlong has joined #ruby
<shevy> well, it's bundler
davejlong has quit [Read error: Connection reset by peer]
<shevy> 2 + 2 is sometimes 5
davejlong has joined #ruby
<chevdor> shevy: any idea how I can fix that? Is there a cache to cleanup ? I did run a gem cleanup already
scepticulous has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gregf_> cwarner: https://gist.github.com/anonymous/a63b531bb9c3d6c4e81f <== something like that i guess :| *gtg*
davejlong has quit [Read error: Connection reset by peer]
<jhass> dkk: no?
<shevy> chevdor no idea sorry
zack6849 has joined #ruby
zack6849 has joined #ruby
davejlong has joined #ruby
<jhass> ?pry dkk
<ruby[bot]> dkk: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<chevdor> shevy: ok, no problem. Thanks for your input.
davejlon_ has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
<idletask> Ox0dea: ping
<cwarner> gregf_: mmmmmm I guess my use case is more simple but I get it..
davejlon_ has quit [Read error: Connection reset by peer]
<gregf_> cwarner: if i may ask, what is your usecase like?
<jhass> so bundle config shebang should you allow to override it
ixti has joined #ruby
<apeiros> workmad3: I <3 .b
davejlong has joined #ruby
<apeiros> easy and quick
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> f.ex. " ".b * 100
davejlong has quit [Read error: Connection reset by peer]
LastWhisper____ has joined #ruby
idefine has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 260 seconds]
ohaibbq has joined #ruby
idefine has joined #ruby
fostertheweb has joined #ruby
davejlong has joined #ruby
<cwarner> gregf_: in the specific case it's a simple recursive function that checks a the type of param passed and does some work.. but as a call it back it keeps the value types from the previous scope so even though we check type it doesn't stop.. pretty simple stuff I don't have to really care about pushing on the stack really
ochkoffein has quit [Quit: -----------------------------------------------]
rikkipitt has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
blackgoat has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
davejlong has joined #ruby
LW___ has joined #ruby
mclong has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
gbgdev has quit [Remote host closed the connection]
davejlong has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
davejlong has joined #ruby
<x77686d> Re string encodings, is there a simple way to say "I want all strings to be US-ASCII?"
<gregf_> hrm.. looks slightly complicated :|...but possible ;)... not sure about recursion tho.. could be solved without it... possibly
joonty has joined #ruby
fostertheweb has quit [Client Quit]
davejlong has quit [Read error: Connection reset by peer]
LastWhisper____ has quit [Ping timeout: 246 seconds]
<cwarner> gregf_: naaa shouldn't be what i will do is just make the pass param static and try that.. infact let me see here
<workmad3> apeiros: nice :) still seeing some linear increases though
davejlong has joined #ruby
cpup has quit [Ping timeout: 268 seconds]
BrunoSaboia has joined #ruby
tvon has quit [Quit: tvon]
davejlong has quit [Read error: Connection reset by peer]
<workmad3> x77686d: if you want string literals to be ascii, you can add `# encoding: US-ASCII` at the top of your source file(s)
<apeiros> workmad3: hm. hmmm. that's bad.
<apeiros> I haven't actually read your gist until yet.
<apeiros> you always do 1000 lookups and only the stringsize varies, right? so the expected time should be always the same?
shanemcd has quit [Remote host closed the connection]
<apeiros> I meant 10_000 lookups
davejlong has joined #ruby
<idletask> x77686d: do you realize that there is no such thing as "ASCII strings" to begin with?
<workmad3> apeiros: yeah
cpup has joined #ruby
<workmad3> apeiros: oh wow... adding an encoding comment suddenly drops the time :/
vdamewood has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
<x77686d> tell me more re "no such thing as 'ASCII strings'" :)
<idletask> apeiros: by the way, any comments on my post you read?
<cwarner> yeah a static var and a return.. straight
<apeiros> idletask: nothing beyond what I already said
arlek has joined #ruby
davejlong has joined #ruby
<apeiros> idletask: us-ascii encoded strings in ruby are binary
tvon has joined #ruby
<idletask> x77686d: text, and their byte representation, are two separate things
gizmore has joined #ruby
davejlong has quit [Read error: Connection reset by peer]
davejlong has joined #ruby
<apeiros> and while I'm not fond of the name it's somewhat instructive in that the lower 7 bits are to be interpreted/presented as ascii
<idletask> apeiros: it depends on the encoding of your _source file_ to begin with, in most languages; and, if I'm not mistaken, including Ruby
Guest38 is now known as adit
joonty has quit [Ping timeout: 276 seconds]
shanemcd has joined #ruby
<apeiros> idletask: ruby assumes a source file to be utf-8 unless you tell it otherwise. and it will accordingly set the encoding attribute.
<apeiros> but of course you can mislabel the encoding just like from any other source
<idletask> OK, I haven't tested, but what happens if you _do_ declare at the beginning of your .rb file, that "# encoding: US-ASCII", that your editor saves in UTF-8 and that your string literal is "Mémé dans les orties" (note the 'é')?
<apeiros> and using escapes, you can write strings in other encodings
<idletask> 'é' is not even _representable_ in ASCII
shanemcd has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 240 seconds]
<apeiros> idletask: oh wait, I confused us-ascii and ascii-8bit
<apeiros> with us-ascii you probably get a conversion error
chevdor has quit [Quit: Greets to you guys]
<apeiros> you can try, though :)
<idletask> Even though this is a Ruby room, I can tell what happens in Java... And what happens is that in Java, strings are stored in class files independently of the encoding of your source files
stunder001 has joined #ruby
<apeiros> in ruby, strings are always stored as a bytearray
<idletask> It is therefore the role of the compiler to figure out all this, and this is the file.encoding property
<idletask> apeiros: in Java, ultimately, this is also the case
mark2 has quit [Remote host closed the connection]
<idletask> In fact, in class files, string constants are stored in what is called "modified UTF"
<idletask> (rather ugly; it happens that it works)
<apeiros> idletask: actually, I revert my previous statement
aeontech has joined #ruby
arlek has quit [Ping timeout: 248 seconds]
<apeiros> you won't get an encoding error
<apeiros> ruby doesn't care whether the byte array is valid with regards to the encoding
<idletask> Erm
<apeiros> you'll only get an error once you try to perform anything on it which requires character representation of the data
<idletask> Ah
<apeiros> >> "\xff".b.force_encoding('us-ascii') # works just fine
<ruby[bot]> apeiros: # => "\xFF" (https://eval.in/532170)
<apeiros> >> "\xff".b.force_encoding('us-ascii').valid_encoding? # but ruby knows it's not valid
<ruby[bot]> apeiros: # => false (https://eval.in/532172)
shanemcd has joined #ruby
<apeiros> this is useful as it means you can still salvage the data
<idletask> Yeah, I see that
lyoshajapan has quit [Remote host closed the connection]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<apeiros> >> x = "\xff".b.force_encoding('us-ascii'); x = x.force_encoding('binary') unless x.valid_encoding?; x
<ruby[bot]> apeiros: # => "\xFF" (https://eval.in/532173)
shanemcd has quit [Remote host closed the connection]
<apeiros> sorry, I'm still a bit exhausted from training and catching on slowly :)
idefine has quit [Remote host closed the connection]
<idletask> >>0x1f4ae.to_s.force_encoding("us-ascii")
<ruby[bot]> idletask: # => "128174" (https://eval.in/532175)
<idletask> Wat?
idefine has joined #ruby
<idletask> OK, I'm doing something wrong
<apeiros> force_encoding does not perform any operation on the bytearray. it only changes the encoding attribute.
<idletask> >>0x1f4ae.to_s
<ruby[bot]> idletask: # => "128174" (https://eval.in/532176)
<idletask> Ah
<idletask> OK, given an int which is a code point, how do I get its "string" representation?
<apeiros> .chr
<apeiros> >> 255.chr('us-ascii')
<ruby[bot]> apeiros: # => invalid codepoint 0xFF in US-ASCII (RangeError) ...check link for more (https://eval.in/532177)
<apeiros> >> 67.chr('us-ascii')
<ruby[bot]> apeiros: # => "C" (https://eval.in/532178)
diegoviola has quit [Ping timeout: 240 seconds]
<apeiros> I guess that's what you expected?
IrishGringo has joined #ruby
idefine has quit [Remote host closed the connection]
<apeiros> >> 127881.chr('utf-8')
<ruby[bot]> apeiros: # => "
<idletask> >>0x1f4a9.chr("us-ascii")
<ruby[bot]> idletask: # => 128169 out of char range (RangeError) ...check link for more (https://eval.in/532180)
<idletask> OK
n1colas has quit [Quit: WeeChat 1.4]
<idletask> >>0x1f4a9.chr("utf8")
idefine has joined #ruby
<ruby[bot]> idletask: # => unknown encoding name - utf8 (ArgumentError) ...check link for more (https://eval.in/532181)
agent_white has quit [Quit: backinabit]
<idletask> >>0x1f4a9.chr("utf-8")
<ruby[bot]> idletask: # => "
<idletask> damn you
elifoster has quit [Ping timeout: 246 seconds]
<idletask> My favorite code point
<idletask> OK, so .chr does mean in fact any Unicode glyph
<apeiros> it means codepoint
<idletask> Strange name though
neohunter has joined #ruby
<apeiros> for most encodings thats 1:1 the binary value
<idletask> I'd have called it, I don't know, as_codepoint?
<apeiros> well, I think the method is older than unicode :)
<idletask> Yes, but not all
Es0teric has joined #ruby
<idletask> Older than _Unicode_?
tristanp_ has quit []
<apeiros> it is definitively older than encodings in ruby
<idletask> When was Ruby born?
<idletask> Waaay after Java, right?
<apeiros> no
<apeiros> about a year or two after java
<apeiros> somewhen between 1993 and 1995 iirc
<idletask> Well, by the time Java was born, Unicode was already born
<apeiros> ok, unicode is older
bluOxigen_ has quit [Remote host closed the connection]
Vile` has joined #ruby
bluOxigen has joined #ruby
<apeiros> but it's older than utf-8 :)
<idletask> OK, a little history lesson here, maybe that explains things for ruby as well :)
tristanp has joined #ruby
<ravster> jhass: thanks, that link helps.
<apeiros> re history lessen: up until ruby 1.9, ruby didn't know about encodings
<apeiros> *lesson even
<idletask> Java was born when Unicode already existed (and UTF-8 too, by the way); and at this time, Unicode only defined code points below what is now known as the BMP, ie code points less than, or equal to, U+FFFF
<idletask> As a result, Java's char is an unsigned, 16bit integer (and the only unsigned primitive in Java)
<apeiros> idletask: um, wikipedia shows rfc2044 as oldest rfc and that's from 1996
<idletask> But since then Unicode has defined code points outside U+FFFF
zack6849 has quit [Ping timeout: 250 seconds]
<idletask> apeiros: that is about the time when Java was born
tvon has quit [Quit: tvon]
<idletask> In fact it was born a litte earlier than that
ASTP001 has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
<apeiros> WP says 1995
<apeiros> ruby is 1995 too btw.
<idletask> But anyway, as time went, Unicode defined code points greater than U+FFFF
ASTP001 has left #ruby [#ruby]
fostertheweb has joined #ruby
<idletask> As a result, char couldn't fit anymore; the result? Code points outside the BMP take two chars
<idletask> And a char is now a UTF-16 code unit
<idletask> I guess that Ruby's chr name bears a somewhat resemblant history
<apeiros> well, I guess .chr is simply a bad abbreviation for char
<apeiros> (which in turn is of course an abbreviation of character)
<idletask> Yep... Just as char in Java is now misnamed
Limix has joined #ruby
<apeiros> o0
mclong has joined #ruby
dkk has quit [Quit: dkk]
<idletask> Well it is
rmulligan has joined #ruby
<apeiros> how'd it be misnamed? just because java needs 2 chars for a single codepoint?
ruby-lang291 has joined #ruby
<idletask> At first it was supposed to be a primitive to hold a code point
<idletask> Now it cannot do so anymore
<apeiros> so?
<apeiros> that single codepoint is still a single character
<idletask> No
<apeiros> java's capabilities are irrelevant to that
fostertheweb has quit [Client Quit]
<idletask> Not for code points outside the BMP
<apeiros> um
<apeiros> you're arguing that
IrishGringo has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
<idletask> I am arguing that while it is a single Unicode code point, it is not an atomic entity with regards to Java
Vile` has quit [Quit: brb]
<apeiros> as said, java's capabilities are irrelevant outside of java
cantaberry has joined #ruby
gbgdev has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
<apeiros> and for a method called "character", what matters is whether its result is a character.
<apeiros> the better venue to call it a misnomer would IMO be - what was their name again - surrogates, I think?
shanemcd has joined #ruby
<apeiros> where you use multiple codepoints to form a single character, iirc only in D normalization
chouhoulis has joined #ruby
jottr has joined #ruby
<idletask> Erm, no, for a single glyph there is only ever a single code point :p
<adaedra> ç ?
<apeiros> idletask: wrong
<apeiros> >> "ä".unpack("U*")
<ruby[bot]> apeiros: # => [97, 776] (https://eval.in/532186)
<apeiros> two codepoints. one character.
chouhoul_ has quit [Ping timeout: 240 seconds]
<apeiros> note that "ä" != "ä"
diego3 has joined #ruby
Cohedrin has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
<adaedra>
shanemcd has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Vile` has joined #ruby
idefine has quit [Remote host closed the connection]
codecop has joined #ruby
codecop_ has joined #ruby
shanemcd has joined #ruby
ArtursL has joined #ruby
codecop has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
aegis3121 has quit [Ping timeout: 240 seconds]
SenpaiSilver has joined #ruby
kknight has joined #ruby
tvon has joined #ruby
shanemcd has quit [Remote host closed the connection]
jmignault has joined #ruby
eurialo has quit [Ping timeout: 244 seconds]
fostertheweb has joined #ruby
Musashi007 has joined #ruby
aegis3121 has joined #ruby
shanemcd has joined #ruby
jmignault has quit [Remote host closed the connection]
<dostoyevsky>
<dostoyevsky> Not sure if that works yet :)
idefine has joined #ruby
<dostoyevsky> I do not get why we need symbols like this in unicode, though
fostertheweb has quit [Client Quit]
kies has quit [Ping timeout: 264 seconds]
shanemcd has quit [Remote host closed the connection]
rdark has joined #ruby
rikkipitt has quit [Remote host closed the connection]
eregi_ has joined #ruby
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
<Sigma00> because someone thought it'd be neat to have a standard for emojis
<Sigma00> and other people agreed
djbkd has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
sauvin has quit [Read error: Connection reset by peer]
zeroDivisible has joined #ruby
zast has quit [Remote host closed the connection]
sp4rrow has joined #ruby
_djbkd has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
eregi_ has quit [Ping timeout: 248 seconds]
Abrin_AWAY has joined #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> dostoyevsky: I totally see that.
Es0teric has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
<adaedra> !
<xpt> I have Rakefile that is spawning test cases for me. I have this Rakefile http://sprunge.us/RbGj, when i run rake test sometimes I get this output: http://sprunge.us/KFaJ (very same output as running rake test with tests directory empty). How can I debug what is the problem?
<xpt> When i run `rake test` again it's back to normal
aeontech has quit [Quit: aeontech]
Mattx has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
dopie has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
Mattx has left #ruby [#ruby]
shanemcd has quit [Remote host closed the connection]
ruby-lang291 has quit [Ping timeout: 252 seconds]
mclong has quit [Remote host closed the connection]
ivanskie has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
intrigueD has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
I has joined #ruby
baweaver has joined #ruby
I has quit [Client Quit]
fostertheweb has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cpup has joined #ruby
dopie has joined #ruby
diego3 is now known as diegoviola
chouhoulis has joined #ruby
ivanskie has joined #ruby
Rasi has quit [Ping timeout: 240 seconds]
shanemcd has joined #ruby
dtordable has quit [Quit: leaving]
lvn has joined #ruby
Rasi has joined #ruby
idefine has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
idefine has joined #ruby
n1colas has joined #ruby
solocshaw1 has joined #ruby
tjohnson has joined #ruby
solocshaw has quit [Ping timeout: 268 seconds]
solocshaw1 is now known as solocshaw
aeontech has joined #ruby
lyoshajapan has quit [Ping timeout: 248 seconds]
_djbkd has quit [Remote host closed the connection]
rmulligan has joined #ruby
Musashi007 has quit [Quit: Musashi007]
blackmesa has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
baweaver has quit [Remote host closed the connection]
maner has quit [Read error: Connection reset by peer]
rmulligan has quit [Ping timeout: 252 seconds]
Guest84380 is now known as olspookishmagus
shanemcd has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 264 seconds]
aeontech has quit [Ping timeout: 252 seconds]
shanemcd has joined #ruby
idefine has quit [Remote host closed the connection]
Somelauw has joined #ruby
rdark has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
spider-mario has joined #ruby
idefine has quit [Remote host closed the connection]
inoic has joined #ruby
<Somelauw> I have a script that does require 'optionparser', doing em search optionparser says OptionParser (0.5.1), running gem install --local OptionParser says ERROR: Could not find a valid gem 'OptionParser' (>= 0) in any repository
<Somelauw> s/em/gem
friendofkiwi has joined #ruby
<Somelauw> what's wrong?
aeontech has joined #ruby
lyoshajapan has joined #ruby
friendofkiwi has left #ruby [#ruby]
<xpt> Somelauw: try gem install --remote OptionParser
<xpt> or simply gem install OptionParser
<Somelauw> what does that do
<Somelauw> i'm not going to install in system directories
e4xit has left #ruby [#ruby]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
idefine has joined #ruby
<Somelauw> --remote tries /var/lib/gems
<Somelauw> why is it that this package won't install with --local?
Yiota has quit [Max SendQ exceeded]
uglybandersnatch has joined #ruby
lyoshajapan has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
StyXman has joined #ruby
<xpt> Somelauw: --local means that gem is trying to locate gem on your LOCAL repository. --remote says that it looks for in "on the internet".
<StyXman> I'm using Riper to read chef files. why this doesn't work?
<StyXman> irb(main):002:0> Ripper.parse (IO.read ('roles/spike-01.rb'))
<StyXman> => nil
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<xpt> Somelauw: You want to use '-i' parameter
<xpt> Somelauw: try reading output of 'gem help install'
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
firstdayonthejob has joined #ruby
shanemcd has quit [Remote host closed the connection]
asd has joined #ruby
gatman has joined #ruby
gatman has quit [Client Quit]
OReilly has quit [Remote host closed the connection]
gbgdev has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<Somelauw> xpt: the correct one is --user-install
djbkd has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 268 seconds]
<Somelauw> I was confused with --local
<Somelauw> because .local is a sane location for such sort of thing
cwarner has left #ruby [#ruby]
<Somelauw> still I'm getting the following error: /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -
<Somelauw> - optionparser (LoadError)
<Somelauw> from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
konsolebox has quit [Quit: Leaving]
swills has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Sammitch has joined #ruby
Rasi has quit [Read error: Connection reset by peer]
rikkipitt has joined #ruby
Rasi has joined #ruby
<Sammitch> so when using the Mysql2 gem, prepared statements, and passing a string containing hex-encoded binary data destined for a VARCHAR column it appears that somewhere between the `execute()` and the actual query the data is being converted from a hex string to an integer.
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gizmore has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
mary5030 has quit [Ping timeout: 268 seconds]
DylanJ has quit [Quit: ggwp]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
pawnbox has joined #ruby
eregi has joined #ruby
jeanlinux has joined #ruby
robbyoconnor has joined #ruby
swills has joined #ruby
sp4rrow has joined #ruby
copperb0lt has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Ping timeout: 250 seconds]
eregi has quit [Ping timeout: 244 seconds]
gbgdev has joined #ruby
fostertheweb has joined #ruby
eregi has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
robbyoconnor has joined #ruby
ohaibbq has quit [Quit: Leaving...]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Xeago has joined #ruby
gbgdev has quit [Remote host closed the connection]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
aegis3121 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
aeon_ has joined #ruby
aeontech has quit [Ping timeout: 252 seconds]
lyoshajapan has joined #ruby
stunder001 has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
mdw has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
hxegon is now known as hxegon_AFK
gizmore has joined #ruby
KensoDev has joined #ruby
KensoDev has quit [Remote host closed the connection]
KensoDev has joined #ruby
paul98 has quit [Read error: Connection reset by peer]
joonty has quit [Ping timeout: 250 seconds]
lyoshajapan has quit [Ping timeout: 244 seconds]
paul98 has joined #ruby
blackgoat has quit [Ping timeout: 260 seconds]
inoic has left #ruby ["Textual IRC Client: www.textualapp.com"]
nicoulaj has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has joined #ruby
ixti has quit [Read error: Connection reset by peer]
lyoshajapan has joined #ruby
Cesarecf has joined #ruby
aldodelgado has joined #ruby
aeon_ has quit [Quit: aeon_]
nando293921 has joined #ruby
rmulligan has joined #ruby
bronson has joined #ruby
stunder001 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
eurialo has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
djbkd has joined #ruby
Es0teric has joined #ruby
lyoshajapan has quit [Ping timeout: 264 seconds]
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Rodya_ has joined #ruby
Es0teric has quit [Max SendQ exceeded]
blackmesa has joined #ruby
ensyde__ has quit [Quit: Leaving]
Es0teric has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
stunder001 has quit [Ping timeout: 276 seconds]
hxegon_AFK is now known as hxegon
nobitanobi has joined #ruby
last_staff has joined #ruby
yqt has joined #ruby
sp4rrow has joined #ruby
pawnbox has joined #ruby
<xpt> Somelauw: on my environment i have no GEM_HOME so my home directory is default.
aeontech has joined #ruby
<xpt> seems like you messed something with require statement
<Ox0dea> Somelauw: OptionParser is part of the standard library.
<Ox0dea> >> require 'optparse'; OptionParser
<ruby[bot]> Ox0dea: # => OptionParser (https://eval.in/532207)
jottr has quit [Quit: WeeChat 1.4]
baweaver has joined #ruby
binaryplease1 has joined #ruby
x77686d has quit [Quit: x77686d]
pawnbox has quit [Ping timeout: 240 seconds]
skade has joined #ruby
stunder001 has joined #ruby
one63 has joined #ruby
binaryplease has quit [Ping timeout: 246 seconds]
codecop_ has quit [Remote host closed the connection]
x77686d has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
shanemcd has joined #ruby
baweaver has joined #ruby
aeontech has quit [Quit: aeontech]
kknight has quit [Quit: Leaving]
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
one63 has left #ruby [#ruby]
slash_nick is now known as slash_quit
idefine has quit [Ping timeout: 244 seconds]
ivanskie has quit [Quit: Going offline, see ya! (www.adiirc.com)]
shanemcd has quit [Ping timeout: 268 seconds]
chocoelho has quit [Quit: Connection closed for inactivity]
copperb0lt has left #ruby ["WeeChat 1.4"]
baweaver has quit [Ping timeout: 250 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
arlek has joined #ruby
B1n4r10 has quit [Ping timeout: 252 seconds]
the_drow has joined #ruby
ravster has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
chipotle has quit [Quit: cheerio]
B1n4r10 has joined #ruby
Jardayn_two has joined #ruby
Jardayn has quit [Disconnected by services]
Jardayn_two is now known as Jardayn
DmitryBochkarev has quit [Client Quit]
davejlong has quit []
Es0teric has quit [Quit: Computer has gone to sleep.]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tulak has quit [Read error: Connection reset by peer]
intrigueD has quit [Remote host closed the connection]
idefine has joined #ruby
tulak has joined #ruby
<Sammitch> cool beans. I used the wrong variable name in my execute statment so instead of doing literally *anything* sane relating to an undefined or nil variable it appears to have used god-knows-what from god-knows-where
BrunoSaboia has quit [Ping timeout: 252 seconds]
griffindy has joined #ruby
bakedb_ has quit [Read error: Connection reset by peer]
gypsydave5 has quit [Ping timeout: 248 seconds]
djbkd has quit [Remote host closed the connection]
ixti has joined #ruby
rindolf has quit [Ping timeout: 248 seconds]
jmdade has quit [Ping timeout: 248 seconds]
ahammond has joined #ruby
gypsydave5 has joined #ruby
rindolf has joined #ruby
<ahammond> In python, I can say foo.get(key, default). What is the ruby equivilant?
<Radar> proof plz
<Radar> ahammond: foo.fetch(key, default)
<ahammond> Thanks @Radar
<adaedra> ahammond: better explain what it does, not everyone here knows python.
Shaboum has quit [Quit: WeeChat 1.4]
bakedb has joined #ruby
<Radar> adaedra: I think I have a pretty good idea. ahammond: it gets the key if it exists, otherwise returns a default value?
<ahammond> yup, exactly that.
BSaboia has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
<adaedra> Radar: I suspected it too, but it's better with a full explanation.
<Radar> adaedra: agree
BSaboia has quit [Max SendQ exceeded]
<xpt> so it's like ${foo:=default} in shell?
BSaboia has joined #ruby
HdInThKld has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: This computer has gone to sleep]
synthroid has quit []
lyoshajapan has joined #ruby
Rodya_ has joined #ruby
cippaciong has joined #ruby
<Somelauw> Is there anyone here why does understand how gems work?
<adaedra> ?anyone
<ruby[bot]> Just ask your question, if anyone has or can, they will respond.
ivanskie has joined #ruby
<Sammitch> Radar: I'll see if I can whip up a self-contained example.
fostertheweb has joined #ruby
djbkd has joined #ruby
ziyadb has joined #ruby
mondok has joined #ruby
the_drow has joined #ruby
rodfersou has quit [Quit: leaving]
skade has quit [Quit: Computer has gone to sleep.]
lyoshajapan has quit [Ping timeout: 268 seconds]
rikkipitt has quit [Quit: Leaving...]
skade has joined #ruby
Es0teric has joined #ruby
nobitanobi has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
mary5030 has joined #ruby
Somelauw has left #ruby ["WeeChat 1.4"]
Musashi007 has joined #ruby
czerasz has quit [Quit: Leaving]
ArtursL has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
Moosashi has joined #ruby
djbkd has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
<cippaciong> Hello, I'm fiddling a bit the bson gem and I started creating a simple, one line, document. When I try to "puts" the document though, which should be in hex format, some of its hex codes are replaced by the corresponding ascii chars
FooMunki has joined #ruby
<cippaciong> Is there a way to prevent this?
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
sandstrom has quit [Quit: My computer has gone to sleep.]
djbkd has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
Don_John has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
yuung has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
StyXman has left #ruby [#ruby]
Vile` has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
scepticulous has quit [Ping timeout: 244 seconds]
intrigueD has joined #ruby
LW___ has quit [Ping timeout: 260 seconds]
system64 has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
HdInThKld has left #ruby [#ruby]
rmulligan has joined #ruby
skade has joined #ruby
LastWhisper____ has joined #ruby
<weaksauce> Sammitch puts hash.class
ESpiney has quit [Ping timeout: 264 seconds]
BrunoSaboia has joined #ruby
<Sammitch> weaksauce: the terrible hashing method is not something I have control over, nor the problem at hand.
<Sammitch> oh wait, I see what you're getting at
<weaksauce> ;)
skade has quit [Client Quit]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<Sammitch> weaksauce: Fixnum
uglybandersnatch has quit [Ping timeout: 240 seconds]
<Sammitch> so `hash` is... what? a random global constant?
<weaksauce> self.hash
<weaksauce> it's the hash of the Object instance
BSaboia has quit [Ping timeout: 268 seconds]
sandstrom has joined #ruby
<weaksauce> self.class == Object ; self.hash == hash
snockerton1 has joined #ruby
<Sammitch> why is that even a thing?!
TomPeed has quit [Read error: Connection reset by peer]
snockerton1 has quit [Read error: Connection reset by peer]
<adaedra> why is what even a thing
rmulligan has quit [Ping timeout: 252 seconds]
snockerton1 has joined #ruby
<weaksauce> it's just a method on Object instances
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
veduardo has joined #ruby
snockerton has quit [Ping timeout: 252 seconds]
<weaksauce> Sammitch you just got unlucky and passed in a misspelled function name
steffkes has quit [Ping timeout: 276 seconds]
snockerton has joined #ruby
aeontech has joined #ruby
<weaksauce> not sure there is a way to prevent that other than automated testing
<adaedra> Sammitch: you have to remember that you are ALWAYS in the context of some object.
snockerton1 has quit [Read error: Connection reset by peer]
<Sammitch> I am trying to contain my disdain for this language's syntax, and it is currently causing me actual PHYSICAL DISTRESS
veduardo has quit [Client Quit]
<adaedra> meh.
<tubbo> Sammitch: grow up
<weaksauce> Sammitch it's pretty elegant once you get past the learning curve
<tubbo> j/k
<tubbo> i get physically distressed at all programming so i have no room to talk
Cesarecf has quit [Quit: Leaving]
johnmilton has quit [Ping timeout: 276 seconds]
<Sammitch> the fact that you can call methods without braces and the scopes have virtually no distinction
yuung has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
LoneHerm_ has joined #ruby
<weaksauce> > the scopes have virtually no distinction?
veduardo has joined #ruby
ItSANgo has joined #ruby
<Sammitch> how is someone supposed to distinguish betwee local and object scope, say when calling a particularly-named variable like 'hash'
<tubbo> Sammitch: you actually called a particuarly-named method called `hash`. not a variable.
WIN_ has joined #ruby
BrunoSaboia has quit [Quit: Leaving]
<Sammitch> tubbo: and how am I supposed to know that I called a method rather than a variable?
<tubbo> in ruby it's harder to make that distinction, but in general it's encouraged to make use of method calls that return values rather than saving values off into local variables.
yuung has joined #ruby
<apeiros> Sammitch: did you assign to a local variable named hash? no? ok, not an lvar.
* baweaver scratches head
hangelo has joined #ruby
<apeiros> and knowing your current local scope should be trivial. if not, your local lexical scope is too long.
<adaedra> You usually have scopes small enough to be able to see what are your variables, yeah.
<tubbo> Sammitch: from syntax alone? you can't always make that distinction. but in the way that ruby is canonically written, you don't have to know that information all the time.
<tubbo> Sammitch: just like when you're in any dynamic language, you don't need to know where exactly in RAM each object is being stored.
<tubbo> or in most dynamic languages, what type the object is
_dev has joined #ruby
<_dev> hey all, is there a way that I can force gem to only install from one source via command line?
<apeiros> Sammitch: and while you've been bitten by this now, from experience it is *exceedingly rare* that you get bitten by lvars & methods looking the same.
LoneHerm_ has quit [Ping timeout: 240 seconds]
<_dev> im trying with gem install --source http://x.y.z.a/rubygems $gem_name, but it still tries to query rubygems
<weaksauce> Sammitch eloquent ruby is a great book if you are interested in learning the idioms
<_dev> behind a firewall that blocks rubygems.org, so it just hangs until it times out.
Es0teric has quit [Quit: Computer has gone to sleep.]
<adaedra> _dev: if you're never going to use rubygems, you can remove the source, I guess.
skade has joined #ruby
<_dev> Unfortunately, removing the source for some reason still tries to reach to rubygems
<_dev> I'm not really sure why.
railsForDaiz has joined #ruby
tulak has quit []
<tubbo> _dev: because rubygems installs default gem source configuration to https://rubygems.org and it is A BITCH to get it out :D
<tubbo> _dev: unfortunately rubygems assumes you have a public internet connection :(
robbyoconnor has quit [Quit: Konversation terminated!]
<Sammitch> apeiros: IMHO it should not simply be "rare" it should be *impossible*. I know that complaining about language syntax is more or less pissing in the wind, but... [incoherent rant comprised of mostly expletives]
robbyoconnor has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
WIN_ has left #ruby ["Leaving"]
last_staff has quit [Quit: last_staff]
<adaedra> I hope you're just angry because of a stupid error (we all do those, they're all maddening) and not just come here to rant endlessly about Ruby.
<tubbo> just python things :D
<apeiros> Sammitch: yeah, no. writing bugs is always possible in all languages in all possible and impossible ways.
<apeiros> so no, you won't get that wish granted.
<cippaciong> _dev I don't know if it would work and it's kind of hacky, but what about trying to resolve rubygems.org as x.y.z.a through the hosts file?
<apeiros> and it's just a matter of where you're coming from which decides what venues to introduce bugs one considers acceptable
<tubbo> python is way better for that kind of thing but the language itself isn't as expressive. it just looks ugly comparatively, but in many cases python can be easier to grok immediately.
<tubbo> like i'm not even a python dev and i've contributed to Sick-Beard as well as written ableton live remote scripts. it can't be THAT hard ;)
<adaedra> tssk tssk tssk, we're not going into language wars.
<weaksauce> python is nice. ruby is nice. end.
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<adaedra> Thank you.
swills has quit [Ping timeout: 240 seconds]
kknight has joined #ruby
binaryplease1 has quit [Ping timeout: 246 seconds]
<machty_> what comparison operator does Ruby use for group_by?
<apeiros> machty_: it's based on Hash, so .hash and .eql?
lyoshajapan has joined #ruby
<apeiros> and I suspect that's in the documentation ;-)
<machty_> wow really, ok i'll try that
<machty_> i looked!
<machty_> i assumed <=> or ==
<apeiros> that'd be quite slow
<apeiros> as it'd have to compare with all groups
trinaldi has joined #ruby
baweaver has quit [Remote host closed the connection]
<apeiros> machty_: well, it returns a Hash with the group_by result as keys. and Hash says "Two objects refer to the same hash key when their hash value is identical and the two objects are eql? to each other."
cippaciong has quit [Quit: WeeChat 1.4]
jenrzzz has joined #ruby
<machty_> apeiros: wahoo i got it!
<machty_> thank you
<apeiros> yw
nobitanobi has quit [Remote host closed the connection]
lyoshajapan has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
krobzaur has joined #ruby
jeanlinux has quit [Remote host closed the connection]
eurialo has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
Prominent has joined #ruby
asd has quit [Ping timeout: 276 seconds]
justbleed has joined #ruby
justbleed is now known as TomPeed
pawnbox has joined #ruby
ivanskie_work has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
atmosx has quit [Quit: This is aparting message!]
maletor_ has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
sneakerhax has quit [Quit: back later]
robbyoconnor has quit [Excess Flood]
mondok has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
ivanskie_work_ has joined #ruby
ivanskie has quit [Ping timeout: 264 seconds]
stunder001 has quit [Ping timeout: 246 seconds]
gizmore has quit [Ping timeout: 240 seconds]
ivanskie_work has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
rindolf has quit [Quit: Leaving]
shadoi has joined #ruby
nicoulaj has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 276 seconds]
siaw has joined #ruby
LastWhisper____ has quit [Remote host closed the connection]
LastWhisper____ has joined #ruby
sepp2k has quit [Quit: Leaving.]
openstruct has joined #ruby
lvn has quit [Ping timeout: 244 seconds]
stunder001 has joined #ruby
yuung has quit [Ping timeout: 248 seconds]
floatingpoint has joined #ruby
<floatingpoint> does LoadError output any information about the error in question, and if so, how can I access said information?
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> >> require "foo"
<ruby[bot]> jhass: # => cannot load such file -- foo (LoadError) ...check link for more (https://eval.in/532217)
<apeiros> floatingpoint: like all exceptions it has .message and .backtrace
<jhass> normally it's right in the message
<apeiros> what else are you looking for?
siaw has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
<Radar> ?popcorn
<ruby[bot]> It's popcorn time!
<Radar> oh I was scrolled up :(
B1n4r10 has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
olspookishmagus has quit [Ping timeout: 248 seconds]
<Ox0dea> floatingpoint: LoadError#path
<Ox0dea> >> begin; require 'foo'; rescue LoadError => e; e.path; end
<ruby[bot]> Ox0dea: # => "foo" (https://eval.in/532218)
blackgoat has joined #ruby
yuung has joined #ruby
krobzaur has quit [Ping timeout: 252 seconds]
olspookishmagus has joined #ruby
tvon has quit [Quit: tvon]
olspookishmagus is now known as Guest2698
idefine has quit [Remote host closed the connection]
idefine_ has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 264 seconds]
rattatmatt has joined #ruby
Wicaeed has joined #ruby
ivanskie_work_ has quit [Ping timeout: 268 seconds]
Sammitch has left #ruby [#ruby]
Xeago has joined #ruby
Guest2698 has quit [Ping timeout: 244 seconds]
<yuung> exit
<yuung> whoops.
yuung has quit [Quit: leaving]
mdw has quit [Ping timeout: 260 seconds]
idefine_ has quit [Remote host closed the connection]
ta_ has joined #ruby
pookie_ has joined #ruby
openstruct has quit [Remote host closed the connection]
rmulligan has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
marxarelli is now known as marxarelli|afk
eurialo has joined #ruby
openstruct has joined #ruby
ivanskie_work_ has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
gizmore has joined #ruby
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has quit [Remote host closed the connection]
slash_quit is now known as slash_join
ta_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 252 seconds]
siaw has joined #ruby
biberu has quit []
gizless has quit [Ping timeout: 252 seconds]
<baweaver> You can log out any time you like, but you can never leave.
openstruct has quit [Ping timeout: 244 seconds]
<adaedra> *cue guitar solo*
baweaver is now known as shevy_
<Ox0dea> ;)
<siaw> hello friends
shevy_ is now known as baweaver
idefine has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 244 seconds]
<Ox0dea> Hi, siaw. <3
<siaw> i have a text file that i want to iterate each line and pick ONLY emails from each line
the_drow has quit [Quit: This computer has gone to sleep]
<siaw> this is what i got so far
<Radar> Sounds bad
<siaw> obviously it’s not working
<Radar> siaw: That is not a regex that matches all email addresses.
<siaw> Radar: how come?
marxarelli|afk is now known as marxarelli
<Radar> siaw: here you go http://emailregex.com/
<siaw> i picked that regex from that site
pawnbox has joined #ruby
<Radar> Which one?
<siaw> Ruby (simpler version)
A124 has quit [Quit: '']
<Radar> Right.
<Radar> Show us the text file?
<siaw> ok
<Radar> It's CSV.
Rodya_ has quit [Read error: Connection reset by peer]
<Radar> So parse it with the CSV stdlib package?
A124 has joined #ruby
uglybandersnatch has joined #ruby
snockerton has quit [Read error: Connection reset by peer]
snockerton1 has joined #ruby
<siaw> buut
<siaw> if the content is a txt
<siaw> regex shouldn’t care right?
trosborn has joined #ruby
snockerton1 has quit [Read error: Connection reset by peer]
<siaw> it should still be able to pick the email from the line of text
snockerton has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
snockerton has quit [Read error: Connection reset by peer]
snockerton has joined #ruby
<jhass> that it's possible to solve the problem, doesn't make it the right tool
aldodelgado has quit [Quit: aldodelgado]
jenrzzz_ has joined #ruby
<jhass> parse it as CSV
tonyynot has joined #ruby
chipotle has joined #ruby
snockerton has quit [Read error: Connection reset by peer]
snockerton has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 264 seconds]
<siaw> always looking for shorter ways :p
uglybandersnatch has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
skade has quit [Quit: Computer has gone to sleep.]
snockerton has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
Pathfinder has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
skade has joined #ruby
jenrzzz_ has quit [Client Quit]
jenrzzz has joined #ruby
<apeiros> siaw: parsing it as csv is quite likely the shortest way which is still correct
zenlot has joined #ruby
<apeiros> CSV.read(file).to_a.transpose.first # might work, depends a bit on what CSV.read returns. don't know by heart.
<Radar> siaw: Parse it as a CSV.
gizless has joined #ruby
haylon has quit [Ping timeout: 250 seconds]
<apeiros> tell me if you can get it shorter than ^
<apeiros> from CSV.read docs it seems to be correct.
<siaw> well it’s working
<siaw> :D
<siaw> buuuuuut
<siaw> what if i wanted the first 2 values of the csv fiel?
zenlot6 has quit [Ping timeout: 264 seconds]
justbleed has joined #ruby
<apeiros> then you use your knowledge about coding and adapt the code.
hahuang65 has quit [Quit: WeeChat 1.4]
<Radar> siaw: please stop being lazy
hahuang65 has joined #ruby
<Radar> siaw: If you want the emails and the first names well I'm sure you can figure out how to do that with the gist I just made for you.
<Radar> ps my paypal is radarlistener@gmail.com
<siaw> yeap
<siaw> easy now
<siaw> paypal email
<siaw> hahahahaaaaa
gizmore has quit [Ping timeout: 248 seconds]
<Radar> Consider it a "laziness tax"
idefine has joined #ruby
tvon has joined #ruby
gizmore has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<siaw> if it only it worked :p
<siaw> it’s not
griffindy has joined #ruby
<Radar> ?didntwork
<ruby[bot]> What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
Rodya_ has joined #ruby
<Ox0dea> The second one. I ran `rvm implode` and it must've been in one of its literal moods.
<Ox0dea> Is there some sort of rollback mechanism for un-exploding my computer?
gizless has quit [Ping timeout: 260 seconds]
<siaw> Radar: i’m trying to get the email and first name of each line, is this wrong?
idefine has quit [Ping timeout: 260 seconds]
<Radar> siaw: Is what wrong?
<Radar> That you are trying to do that?
<idletask> Ox0dea: fwiw, I am 40% done in parsing full Ruby expressions; tokenization still bears wrong names, however (that is my belief)
<siaw> was getting link
<Radar> Yes it is wrong
<Radar> Try to figure it out for yourself for 15 mins
idefine has joined #ruby
kknight has quit [Quit: Leaving]
shanemcd has joined #ruby
griffindy has quit [Ping timeout: 252 seconds]
mlehrer has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
lemur has joined #ruby
<siaw> already did
<siaw> ;)
<Radar> MAGIC
mlehrer has joined #ruby
Prominent has quit [Ping timeout: 244 seconds]
vdamewood has quit [Quit: Life beckons.]
robbyoconnor has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
snockerton has joined #ruby
hahuang61 has joined #ruby
<Radar> Issue is now that you'll need to pick all the odd elements to get the email addresses, and even elements to get the first names
<Radar> you can probably do a better job than that if you apply yourself
snockerton has quit [Client Quit]
robbyoconnor has joined #ruby
<Ox0dea> idletask: Well done, I suppose. :)
hahuang65 has quit [Ping timeout: 248 seconds]
<Ox0dea> Are you using the exact same tokens as defined in parse.y?
sandstrom has quit [Quit: My computer has gone to sleep.]
trosborn has quit [Quit: trosborn]
ledestin has joined #ruby
baweaver has quit [Ping timeout: 268 seconds]
vdamewood has joined #ruby
mdw has joined #ruby
Nahra has joined #ruby
Moosashi has joined #ruby
lemur has quit [Remote host closed the connection]
<idletask> Ox0dea: given that I don't know that "parse.y" you are talking about, my guess would be no :p
kirun has quit [Quit: Client exiting]
<idletask> Note that I did save that BNF representation of Ruby you pointed to
<Ox0dea> Ah, well, those would be the same tokens, then, yeah.
<idletask> Is that what you referred to?
stunder001 has quit [Ping timeout: 244 seconds]
<Ox0dea> More or less.
<Ox0dea> The BNF I linked was generated from that Bison grammar.
moeabdol2 has joined #ruby
<idletask> OK, then no, definitely not that
<idletask> My grammars are more... Let's say... Practical
pawnbox has joined #ruby
moeabdol1 has quit [Ping timeout: 260 seconds]
<Ox0dea> I'm not sure I follow.
trosborn has joined #ruby
idefine has quit [Remote host closed the connection]
trosborn has quit [Client Quit]
djbkd has joined #ruby
idefine has joined #ruby
<idletask> SonarQube's API requires that ungodly syntax
<idletask> Well, anyway, the "state of the art" plugin at the moment is at https://github.com/litesolutions/sonar-ruby; by the end of the week there will be a basic plugin running
<idletask> But the advantage is that the desing is fully extensible
<idletask> So, as I go, I'll find more stuff that I don't parse, add tokens, grammar rules, and parser rules
pawnbox has quit [Ping timeout: 244 seconds]
idefine has quit [Remote host closed the connection]
<Ox0dea> Sounds good. Kudos for not reaching for XML in the interests of extensibility. :P
Moosashi has quit [Quit: Moosashi]
<idletask> XML is like violence; it doesn't work? Just use more
<idletask> No thanks
vishwa has quit [Ping timeout: 260 seconds]
<idletask> After all, I _am_ the author of the current JSON Schema IETF drafts, so I stay away from XML as far as I can :p
shanemcd has quit [Remote host closed the connection]
mwlang has joined #ruby
ensyde_ has joined #ruby
shadeslayer has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
<Wicaeed> In a case statement, if a value is matched more than once, which value is returned by the statement, the first instance of the match, or the last?
<idletask> Wicaeed: the first -- that would be logical
<Ox0dea> Wicaeed: Aye, first match wins.
stunder001 has joined #ruby
<idletask> (wait, can you have boolean expressions with "case" in ruby?)
<Wicaeed> Makes sense :)
<Ox0dea> Wicaeed: https://eval.in/532226
<Ox0dea> I could conceive of an argument for matching the most specific rather than the first, but that's hard to pin down.
joonty has quit [Ping timeout: 244 seconds]
lyoshajapan has joined #ruby
gizless has joined #ruby
<Ox0dea> idletask: `case` tries each clause's #=== method against the "subject" and evaluates the body of the first one for which that evaluation returns truthy.
<Ox0dea> #=== has a useful custom definition on several classes, to include Class, Regexp, and Proc.
rmulligan has joined #ruby
stannard has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 244 seconds]
spider-mario has quit [Remote host closed the connection]
<idletask> Ox0dea: I was misled; in fact, ruby's case/when is what I thought was switch/case in other languages
gizmore has quit [Ping timeout: 244 seconds]
<idletask> It appears not
<Ox0dea> It is, it's just much better. :)
<idletask> Meh, I still have a s*load to learn
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<siaw> if i have an array how to i print each pair on a line?
<Ox0dea> Ruby is a massive language.
<idletask> Yup, and much older than I thought at first
lyoshajapan has quit [Ping timeout: 248 seconds]
<idletask> In fact, it's nearly as old as Java
<idletask> And that is saying something in 2016
baweaver has joined #ruby
<Ox0dea> Is it?
<idletask> I'm going to enjoy learning it, I think!
<idletask> Yup
stunder001 has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
<idletask> Java and Ruby were both born in 1995
<Ox0dea> Well, if it's "saying something", I'm not sure what.
idefine has quit [Remote host closed the connection]
<idletask> It means that it has a history behind it, and that history has influenced the language
shadeslayer has joined #ruby
BtcBen has joined #ruby
<Ox0dea> That sounds like a tautology, frankly.
veduardo has quit [Ping timeout: 250 seconds]
stunder001 has joined #ruby
<idletask> Take chr
rmulligan has quit [Ping timeout: 252 seconds]
<Ox0dea> Loads of languages use "chr" and "ord" as and where appropriate, irrespective of their age.
<idletask> Ruby, like Java, was born at a time where Unicode didn't define code points outside the BMP
<idletask> Had it been born after this period, would that function be named chr?
<Ox0dea> Er, why not?
Hammy_Work has quit [Quit: Leaving]
<Ox0dea> It's short for "character", and Ruby has long been okay with the fact that "characters" can be constructed from more than one byte.
<idletask> It would have been named glyph -- and org, codepoint
<idletask> You seem to be mixing code points with byte representation
<idletask> ord, sorry
<Ox0dea> Yes, I guess I see how you mean now, but #glyph would still be kinda surprising.
<Ox0dea> Every codepoint maps to an individual character, no?
<idletask> Yes
<Ox0dea> So why would Fixnum#glyph be the more appropriate name?
<idletask> In fact, Unicode goes even further than that and calls glyphs "graphemes"
<idletask> Because glyphs are visual representations
<idletask> What you see in your editor, in fac
<idletask> s,$,t,
<idletask> Anyway, enough with that
<idletask> All I know is that I'm going to enjoy that
<Canar> Technically correct.
<Canar> The best kind of correct! <3
railsFor_ has joined #ruby
<idletask> I love learning new languages
<idletask> And parsing them to boot, it's heaven :p
n008f4g_ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
<idletask> But I want to get that language plugin to a useful state
skade has quit [Quit: Computer has gone to sleep.]
aspiers has quit [Ping timeout: 264 seconds]
railsForDaiz has quit [Ping timeout: 244 seconds]
KliKK has joined #ruby
but3k4 has joined #ruby
gizless has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 248 seconds]
LastWhisper____ has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
LuckyRawApe has joined #ruby
djbkd has joined #ruby
but3k4 has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
saneax_AFK is now known as saneax
pawnbox has quit [Ping timeout: 246 seconds]
Alayde has joined #ruby
BSaboia has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Alayde has left #ruby [#ruby]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
charliesome has joined #ruby
LuckyRawApe has left #ruby ["WeeChat 1.4"]
workmad3 has quit [Ping timeout: 240 seconds]
Wicaeed has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
Nahra has quit [Quit: leaving]
firstdayonthejob has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
idefine has joined #ruby
baweaver has quit [Remote host closed the connection]
trosborn has joined #ruby
brunto has joined #ruby
brunto has quit [Changing host]
brunto has joined #ruby
astrobun_ has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
elifoster has joined #ruby
shanemcd has joined #ruby
eurialo has quit [Ping timeout: 248 seconds]
idefine has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 240 seconds]
brunto has quit [Quit: Lost terminal]
cdg has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
cdg has joined #ruby