baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
alfiemax has quit [Ping timeout: 248 seconds]
dipnlik has joined #ruby
ged has quit [Read error: Connection reset by peer]
ged has joined #ruby
sanscoeu_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
bmurt has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
conta has joined #ruby
AJA4350 has quit [Quit: AJA4350]
hinbody has joined #ruby
AJA4350 has joined #ruby
hinbody has left #ruby [#ruby]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
conta has quit [Ping timeout: 264 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
ericmathison has quit [Quit: leaving]
AJA4350 has quit [Read error: Connection reset by peer]
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest57056 has quit [Ping timeout: 264 seconds]
RougeR has quit [Ping timeout: 265 seconds]
GodFather has joined #ruby
t0adst00l has quit [Ping timeout: 255 seconds]
conta has joined #ruby
wald0 has joined #ruby
alfiemax has joined #ruby
conta has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
conta has joined #ruby
amar has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
amar has joined #ruby
dr3w_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
qyliss has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
dipnlik has quit [Quit: Connection closed for inactivity]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
alfiemax has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
wald0 has quit [Quit: Lost terminal]
dviola has quit [Quit: WeeChat 2.1]
alfiemax has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
amar has quit [Ping timeout: 248 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
conta has joined #ruby
arescorpio has joined #ruby
conta has quit [Ping timeout: 264 seconds]
kapil___ has joined #ruby
Haradani has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Ethan has quit [Quit: ZNC 1.6.6+deb1 - http://znc.in]
Ethan has joined #ruby
sauvin has quit [Ping timeout: 264 seconds]
sauvin_ has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
armando has quit [Ping timeout: 264 seconds]
arescorpio has quit [Quit: Leaving.]
jamesaxl has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
sauvin_ is now known as Sauvin
conta has joined #ruby
govg has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 240 seconds]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
alfiemax has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
conta has joined #ruby
conta has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
jeen has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Defenestrate has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 240 seconds]
zautomata3 has quit [Ping timeout: 276 seconds]
zautomata3 has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
konsolebox has joined #ruby
Defenestrate has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has quit [Remote host closed the connection]
Defenestrate has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
c0ncealed1 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
jeen_ has joined #ruby
jeen has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
jeen__ has joined #ruby
jeen_ has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: Leaving]
conta has joined #ruby
conta has quit [Ping timeout: 240 seconds]
Defenestrate has quit [Quit: This computer has gone to sleep]
reber has joined #ruby
woodruffw has quit [Ping timeout: 268 seconds]
SuperLag has joined #ruby
conta has joined #ruby
roamingdog has joined #ruby
conta has quit [Ping timeout: 268 seconds]
roamingdog has quit [Ping timeout: 276 seconds]
alfiemax has quit [Remote host closed the connection]
zacts has quit [Quit: WeeChat 1.9.1]
ta_ has quit [Remote host closed the connection]
jeen__ has quit [Quit: This computer has gone to sleep]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
Asher has joined #ruby
aupadhye has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jeen__ has joined #ruby
eckhardt has joined #ruby
apeiros has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 240 seconds]
clemens3_ has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
RyanMcCoskrie has joined #ruby
kies^ has quit [Ping timeout: 260 seconds]
RyanMcCoskrie has quit [Remote host closed the connection]
konsolebox has joined #ruby
RyanMcCoskrie has joined #ruby
Mondongo has joined #ruby
alfiemax has joined #ruby
kies^ has joined #ruby
RyanMcCoskrie has quit [Remote host closed the connection]
kapil___ has joined #ruby
amar has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
hph^ has quit [Ping timeout: 240 seconds]
amar has quit [Ping timeout: 248 seconds]
Immune has quit [Ping timeout: 248 seconds]
ciscam has quit [Ping timeout: 260 seconds]
jeen_ has joined #ruby
conta has joined #ruby
ciscam has joined #ruby
jeen__ has quit [Ping timeout: 260 seconds]
clemens3_ has quit [Ping timeout: 240 seconds]
vondruch has quit [Ping timeout: 260 seconds]
jeen__ has joined #ruby
jeen_ has quit [Ping timeout: 256 seconds]
biberu has joined #ruby
sinduck has joined #ruby
schneider- has joined #ruby
Mondongo has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has quit [Ping timeout: 260 seconds]
clemens3_ has joined #ruby
andikr has joined #ruby
Asher has joined #ruby
ta_ has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
venmx has joined #ruby
alfiemax has quit [Remote host closed the connection]
suukim has joined #ruby
bipul has joined #ruby
<bipul> Hi, I would like to know? How ruby gem is different from rvm(ruby version management) ?
venmx has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
claudiuinberlin has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
dionysus69 has joined #ruby
schneider- has quit [Ping timeout: 240 seconds]
jeen__ has quit [Quit: This computer has gone to sleep]
zautomata3 has quit [Ping timeout: 240 seconds]
<dminuoso> bipul: gem does not manage ruby versions itself sadly
schleppel has joined #ruby
<dminuoso> bipul: rvm is for switching entire ruby versions (say between 2.5.1, 2.4.4 and 2.3.7) while gem is for packaging ruby libraries and managing dependencies.
<dminuoso> bipul: If you don't have a good reason to use rvm I recommend to use chruby for version switching instead.
zautomata3 has joined #ruby
alfiemax has joined #ruby
schneider- has joined #ruby
Haradani has quit []
<bipul> dminuoso, So it required both gem and bundler to manage ruby version?
tvw has joined #ruby
schneider- has quit [Ping timeout: 264 seconds]
<dminuoso> bipul: `gem` is a library/format to bundle ruby programs/libraries. It also brings `gem` the executable that allows installing packages and their dependencies.
<dminuoso> bipul: `bundle` is a program that manages gem sandboxes for programs
<dminuoso> bipul: `rvm/rbenv/chruby` are programs that switches between ruby versions.
<bipul> okay, great. I wish i could find diagram to see how rubygem , bundle and rvm works together with each other.
<bipul> To run ruby application.
<dminuoso> bipul: You don't need rvm at all.
<dminuoso> bipul: rvm/rbenv/chruby are only useful if you have some projects that need one Ruby version, while others need another.
<bipul> okay. dminuoso Thank you very much.
<dminuoso> bipul: bundler uses rubygems for you.
<dminuoso> bipul: so the regular way for a bundler project would be: `bundle exec ...`
<bipul> gem and rubygems both are same? right?
ur5us has quit [Remote host closed the connection]
schneider- has joined #ruby
<dminuoso> bipul: Okay so for more correctness: RubyGems is the name of the entire project. It consists of a format called `gem`, and brings a command line tool also called `gem`.
yohji has joined #ruby
ur5us has joined #ruby
<bipul> okay.
ur5us has quit [Read error: Connection reset by peer]
<dminuoso> bipul: gem is basically similar to npm or apt-get maybe.
schneider- has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
schneider- has joined #ruby
Burgestrand has joined #ruby
Raboo has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
schneider- has quit [Ping timeout: 260 seconds]
schneider- has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
tomphp has joined #ruby
mlkkk has joined #ruby
sysvalve has joined #ruby
schneider- has quit [Ping timeout: 248 seconds]
conta has quit [Quit: conta]
conta has joined #ruby
schneider- has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest54361 has quit [Changing host]
Guest54361 has joined #ruby
Guest54361 is now known as mnemon
schneider- has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
rahul_bajaj has joined #ruby
rahul_bajaj has quit [Client Quit]
schneider- has joined #ruby
amar has joined #ruby
galeido has joined #ruby
galeido has joined #ruby
galeido has quit [Changing host]
Burgestrand has quit [Quit: Closing time!]
s2013 has quit [Ping timeout: 255 seconds]
<dminuoso> tbuehlmann: Sometimes I ponder what this guy does all day long
mhoungbo1 has quit [Ping timeout: 240 seconds]
schneider- has quit [Ping timeout: 264 seconds]
nowhere_man has quit [Remote host closed the connection]
amar has quit [Ping timeout: 265 seconds]
nowhere_man has joined #ruby
qyliss has quit [Quit: bye]
schneider- has joined #ruby
venmx has joined #ruby
qyliss has joined #ruby
marr has joined #ruby
schneider- has quit [Ping timeout: 268 seconds]
schneider- has joined #ruby
karapetyan has joined #ruby
schneider- has quit [Ping timeout: 256 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
schneider- has joined #ruby
schneider- has quit [Ping timeout: 256 seconds]
mozzarella has quit [Ping timeout: 268 seconds]
Burgestrand has joined #ruby
drale2k_ has joined #ruby
schneider- has joined #ruby
ur5us has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tbuehlmann> :\
marr has quit [Ping timeout: 256 seconds]
mhoungbo1 has joined #ruby
sameerynho has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k_ has joined #ruby
roamingdog has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
roamingdog has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
InfinityFye has joined #ruby
venmx has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
InfinityFye has left #ruby ["Leaving"]
suukim has quit [Quit: Konversation terminated!]
guille-moe has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mhoungbo1 has quit [Quit: mhoungbo1]
Exagone313 has quit [Ping timeout: 240 seconds]
RoneDreamer has joined #ruby
tomphp has joined #ruby
mhoungbo1 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
kapil___ has joined #ruby
rabajaj has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
rabajaj has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has joined #ruby
rahul_bajaj has joined #ruby
za1b1tsu has joined #ruby
rabajaj has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
conta has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
rahul_bajaj has quit [Ping timeout: 240 seconds]
amar has joined #ruby
conta has joined #ruby
amar has quit [Ping timeout: 248 seconds]
conta has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
howdoi has joined #ruby
conta has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
karapetyan has quit []
shantanoo has joined #ruby
<shantanoo> hi, is there a way to find out whether the given string is ascii only or unicode?
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
<Burgestrand> >> "Hello".ascii_only?
<ruby[bot]> Burgestrand: # => true (https://eval.in/1000429)
<Burgestrand> >> "Åland".ascii_only?
<ruby[bot]> Burgestrand: # => false (https://eval.in/1000430)
alfiemax has joined #ruby
<shantanoo> thanks. i was looking at is_utf8? and it was always returning true...
jottr has joined #ruby
Burgestrand has quit [Quit: Closing time!]
GingerWho has joined #ruby
tvw has quit [Read error: Connection reset by peer]
rabajaj has quit [Ping timeout: 240 seconds]
yohji has quit [Ping timeout: 260 seconds]
Cavallari has joined #ruby
mostlybadfly has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
Cavallari has quit [Read error: Connection reset by peer]
Cavallari has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
AJA4350 has joined #ruby
rabajaj has joined #ruby
mhoungbo1 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
amar has joined #ruby
zautomata3 has quit [Quit: WeeChat 1.9.1]
shantanoo has quit [Quit: Computer has gone to sleep]
jeffreylevesque has quit [Ping timeout: 248 seconds]
GingerWho has quit [Quit: Leaving]
shantanoo has joined #ruby
rabajaj has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
shantanoo is now known as Guest55741
yohji has joined #ruby
zautomata has joined #ruby
ldnunes has joined #ruby
<dminuoso> > is7BitAscii = -> c { c < 128 }; "Hällo".codepoints.all?(&is7BitAscii)
<dminuoso> >> is7BitAscii = -> c { c < 128 }; "Hällo".codepoints.all?(&is7BitAscii)
<ruby[bot]> dminuoso: # => false (https://eval.in/1000472)
<dminuoso> >> is7BitAscii = -> c { c < 128 }; "Hello".codepoints.all?(&is7BitAscii)
<ruby[bot]> dminuoso: # => true (https://eval.in/1000473)
Guest55741 has quit [Ping timeout: 256 seconds]
rabajaj has joined #ruby
shantano1 has joined #ruby
rabajaj has quit [Ping timeout: 264 seconds]
anjen has joined #ruby
Guest48734 is now known as S007
S007 has quit [Changing host]
S007 has joined #ruby
VladGh has quit [Read error: Connection reset by peer]
rabajaj has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
VladGh has joined #ruby
samosaphile has joined #ruby
rabajaj has quit [Ping timeout: 240 seconds]
mhoungbo1 has joined #ruby
amatas has joined #ruby
rabajaj has joined #ruby
synthroid has joined #ruby
inerthia has joined #ruby
rabajaj has quit [Ping timeout: 265 seconds]
miah has quit [Remote host closed the connection]
meadmoon has joined #ruby
infernix has quit [Ping timeout: 276 seconds]
raynold has quit [Quit: Connection closed for inactivity]
VladGh has quit [Read error: Connection reset by peer]
VladGh has joined #ruby
clemens3_ has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ruby
rkazak has joined #ruby
Burgestrand has joined #ruby
rabajaj has joined #ruby
rabajaj has quit [Remote host closed the connection]
rabajaj has joined #ruby
mhoungbo1 has quit [Quit: mhoungbo1]
VladGh has quit [Ping timeout: 268 seconds]
rabajaj has quit [Ping timeout: 268 seconds]
dipnlik has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
mhoungbo1 has joined #ruby
VladGh has joined #ruby
meadmoon has quit [Quit: I am functioning within established parameters.]
johnny56 has joined #ruby
clemens3_ has joined #ruby
rabajaj has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
aufi has joined #ruby
johnny56 has quit [Remote host closed the connection]
bmurt has joined #ruby
amatas has quit [Quit: amatas]
Psybur has joined #ruby
johnny56 has joined #ruby
jottr has joined #ruby
Psybur_ has joined #ruby
Psybur has quit [Ping timeout: 264 seconds]
jeffreylevesque has joined #ruby
Burgestrand has quit [Quit: Closing time!]
jcalla has joined #ruby
mjolnird has quit [Ping timeout: 240 seconds]
mlehrer has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
Asher has joined #ruby
Asher is now known as Guest65821
Tempesta_ has joined #ruby
ipee has joined #ruby
amar_ has joined #ruby
roamingd_ has joined #ruby
schneider1 has joined #ruby
musl has joined #ruby
AJA4350 has quit [Ping timeout: 255 seconds]
argoneus_ has joined #ruby
moeSizlak has joined #ruby
rheddry has joined #ruby
Guest65821 has quit [Ping timeout: 256 seconds]
noizex has joined #ruby
<moeSizlak> if you have 2 versions of a gem installed, and 'require' the gem, which one will it use?
konsolebox_ has joined #ruby
ule_ has joined #ruby
DEac-_ has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
genta0 has joined #ruby
izaac_ has joined #ruby
ccooke_ has joined #ruby
reaVer_ has joined #ruby
pabs_ has joined #ruby
kiki_lam1 has joined #ruby
konsolebox_ has quit [Client Quit]
Tempesta_ has quit [Quit: See ya!]
Tempesta_ has joined #ruby
jottr has joined #ruby
mjolnird has joined #ruby
j0bk_ has joined #ruby
agit0 has joined #ruby
dyyylan has joined #ruby
Scientz has joined #ruby
chridal_ has joined #ruby
inoperable_ has joined #ruby
fuxx has joined #ruby
ianmalcolm_ has joined #ruby
Liothen- has joined #ruby
nielsk_ has joined #ruby
elementaru_ has joined #ruby
sirecote_ has joined #ruby
spk_ has joined #ruby
m27frogy_ has joined #ruby
thejoecarroll_ has joined #ruby
cyberRodent_ has joined #ruby
fuxx is now known as Guest52280
vinothvkr_ has joined #ruby
starship has joined #ruby
syndikate_ has joined #ruby
vondruch has quit [Quit: vondruch]
amar has quit [*.net *.split]
roamingdog has quit [*.net *.split]
schneider- has quit [*.net *.split]
claudiuinberlin has quit [*.net *.split]
kies^ has quit [*.net *.split]
konsolebox has quit [*.net *.split]
gizmore|2 has quit [*.net *.split]
pabs has quit [*.net *.split]
Tempesta has quit [*.net *.split]
ipe has quit [*.net *.split]
eb0t has quit [*.net *.split]
amelliaa has quit [*.net *.split]
duracrisis has quit [*.net *.split]
j0bk has quit [*.net *.split]
sirecote has quit [*.net *.split]
izaac has quit [*.net *.split]
nettie has quit [*.net *.split]
vinothvkr has quit [*.net *.split]
Lyubo1 has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
reaVer has quit [*.net *.split]
Guest341 has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
linduxed has quit [*.net *.split]
jpterry has quit [*.net *.split]
m27frogy has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
elementaru has quit [*.net *.split]
ule has quit [*.net *.split]
Scient has quit [*.net *.split]
nielsk has quit [*.net *.split]
cyberRodent has quit [*.net *.split]
Liothen has quit [*.net *.split]
ianmalcolm has quit [*.net *.split]
inoperable has quit [*.net *.split]
vald has quit [*.net *.split]
_musl_ has quit [*.net *.split]
chridal has quit [*.net *.split]
joast has quit [*.net *.split]
arahael has quit [*.net *.split]
argoneus has quit [*.net *.split]
ccooke has quit [*.net *.split]
spk has quit [*.net *.split]
dyyylan- has quit [*.net *.split]
genta has quit [*.net *.split]
syndikate has quit [*.net *.split]
DEac- has quit [*.net *.split]
sirecote_ is now known as sirecote
levifig has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
chridal_ is now known as chridal
chridal has joined #ruby
chridal has quit [Changing host]
jpterry_ has joined #ruby
Scientz is now known as Scient
cyberRodent_ is now known as cyberRodent
jpterry_ is now known as jpterry
<dminuoso> moeSizlak: If you actually care, use #gem (e.g. gem "foo", "=1.2.3"; require 'foo')
<dminuoso> moeSizlak: Or use bundler.
spk_ is now known as spk
<moeSizlak> will it default to newest otherwise?
vondruch has joined #ruby
<dminuoso> moeSizlak: I have never cared. If it matters to you, use bundler or pin like I asid.
Psybur_ has quit [Remote host closed the connection]
infernix has joined #ruby
Psybur has joined #ruby
agit0 has quit [Ping timeout: 240 seconds]
mhoungbo1 has quit [Ping timeout: 268 seconds]
ciscam has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
cyberg has joined #ruby
Lyubo1 has joined #ruby
ciscam has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
samosaphile has left #ruby [#ruby]
kies^ has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
arahael has joined #ruby
gizmore|2 has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
JoL1hAHN has joined #ruby
dionysus69 has joined #ruby
amelliaa has joined #ruby
linduxed has joined #ruby
eb0t has joined #ruby
jcalla has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
DTZUZO has joined #ruby
ule_ is now known as ule
ule has quit [Changing host]
ule has joined #ruby
alfiemax has joined #ruby
ipee has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
tomphp has joined #ruby
k0mpa has joined #ruby
jcalla has joined #ruby
tomphp has quit [Client Quit]
Burgestrand has quit [Quit: Closing time!]
ta_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
donofrio has joined #ruby
jeffreylevesque has quit [Ping timeout: 268 seconds]
jeffreylevesque has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
suukim has joined #ruby
amatas has joined #ruby
Burgestrand has joined #ruby
AJA4350 has joined #ruby
amatas has quit [Remote host closed the connection]
amatas has joined #ruby
amatas has quit [Read error: Connection reset by peer]
amatas has joined #ruby
GodFather has joined #ruby
Emmanuel_Chanel has joined #ruby
QCF has joined #ruby
QCF has quit [Client Quit]
gnufied has joined #ruby
ecnelises has joined #ruby
oleo has joined #ruby
joast has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
jeffreylevesque has quit [Ping timeout: 276 seconds]
amatas has quit [Quit: amatas]
ecnelises has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby
amatas has joined #ruby
jeffreylevesque has joined #ruby
marr has joined #ruby
alfiemax has joined #ruby
j0bk_ is now known as j0bk
j0bk has quit [Changing host]
j0bk has joined #ruby
vdl has quit [Quit: WeeChat 1.6]
alfiemax has quit [Ping timeout: 256 seconds]
vdl has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
jeffreylevesque has joined #ruby
jeffreylevesque has quit [Read error: Connection reset by peer]
jeffreylevesque has joined #ruby
claudiuinberlin has joined #ruby
mozzarella has joined #ruby
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
inerthia has joined #ruby
amatas has quit [Quit: amatas]
amatas has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
chouhoulis has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
samosaphile has joined #ruby
jeffreylevesque has joined #ruby
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
jeffreylevesque has quit [Remote host closed the connection]
ianmalcolm_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
ianmalcolm has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
pilne has quit [Quit: Leaving]
tomphp has joined #ruby
pskosinski has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
pskosinski has joined #ruby
shantano1 has quit [Quit: Computer has gone to sleep]
shantanoo has joined #ruby
shantanoo is now known as Guest74072
RedNifre has joined #ruby
synthroid has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 276 seconds]
chouhoulis has quit [Remote host closed the connection]
Guest74072 has quit [Ping timeout: 276 seconds]
synthroid has joined #ruby
chouhoulis has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
biberu has quit []
mhoungbo1 has joined #ruby
Asher has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 256 seconds]
<zxq2> if you're working with a library whose behavior wrt exceptions is poorly documented and may even change in the future, is it okay to catch all exceptions when calling a method, e.g.: recuse => e ...
mhoungbo1 has quit [Ping timeout: 264 seconds]
<Cork> zxq2: i question if you should use a lib that doesn't have a stable structure for there exceptions...
cschneid_ has joined #ruby
<Cork> exceptions shouldn't change more then rarely in a project...
moeSizlak has left #ruby ["Leaving"]
rippa has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> zxq2: When no class is specified after `rescue` it'll rescue StandardError.
tdy has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
<zxq2> yes i understand that
<havenwood> zxq2: StandardError is a reasonable thing to rescue.
<zxq2> does it subsume library defined exceptions?
mhoungbo1 has joined #ruby
Cavallari has quit [Quit: Cavallari]
<zxq2> *rescue
<havenwood> zxq2: if they inherit from StandardError, which is common practice
<zxq2> thanks
nettie has joined #ruby
kurko_ has joined #ruby
<zxq2> cork, fair point. i'm referring to openssl. i'
<zxq2> ve found bugs in the bindings already and the documentation is vague.
bmurt has joined #ruby
rahul_bajaj has joined #ruby
amar_ has quit [Remote host closed the connection]
GodFather has joined #ruby
amar has joined #ruby
<Cork> zxq2: ya, exceptions in openssl is special :)
rabajaj has quit [Ping timeout: 248 seconds]
govg has quit [Ping timeout: 240 seconds]
bmurt has quit [Ping timeout: 260 seconds]
n0m4d1c has quit [Remote host closed the connection]
govg has joined #ruby
conta has quit [Ping timeout: 240 seconds]
ellcs has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 256 seconds]
synthroid has quit [Remote host closed the connection]
yohji has quit [Ping timeout: 260 seconds]
RedNifre has quit [Ping timeout: 268 seconds]
CrazyEddy has joined #ruby
govg has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
coderphive has joined #ruby
alfiemax has joined #ruby
rahul_bajaj has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
hays_ has joined #ruby
hays_ has joined #ruby
hays_ has quit [Changing host]
rahul_bajaj has joined #ruby
yohji has joined #ruby
mhoungbo1 has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
cagomez has joined #ruby
jcarl43 has joined #ruby
konsolebox has quit [Max SendQ exceeded]
cagomez has quit [Remote host closed the connection]
argoneus_ is now known as argoneus
cagomez has joined #ruby
CrazyEddy has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
guille-moe has quit [Ping timeout: 248 seconds]
mhoungbo1 has joined #ruby
dionysus69 has joined #ruby
dr3w_ has joined #ruby
bmurt has joined #ruby
anjen has quit [Quit: anjen]
shantanoo has joined #ruby
eckhardt has joined #ruby
shantanoo is now known as Guest4170
Guest4170 is now known as shantanoo
shantanoo has quit [Changing host]
shantanoo has joined #ruby
mhoungbo1 has quit [Ping timeout: 256 seconds]
howdoi has joined #ruby
shantanoo has quit [Client Quit]
apeiros_ has joined #ruby
KeyJoo has quit [Ping timeout: 256 seconds]
dipnlik has quit [Quit: Connection closed for inactivity]
KeyJoo has joined #ruby
sysvalve has quit [Quit: Leaving]
conta has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
jcalla has quit [Remote host closed the connection]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Remote host closed the connection]
Quentinius has joined #ruby
vovs03 has joined #ruby
bmurt has joined #ruby
KeyJoo has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
Quentinius has quit [Client Quit]
jcalla has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
aufi has quit [Quit: Leaving]
GodFather has quit [Remote host closed the connection]
coderphive has quit [Quit: coderphive]
schneider1 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
cthu| has joined #ruby
schneider1 has joined #ruby
jamiejackson has joined #ruby
cthulchu has quit [Ping timeout: 276 seconds]
vovs03 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
schneider1 has quit [Ping timeout: 260 seconds]
yohji has quit [Remote host closed the connection]
cliluw has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
cliluw has joined #ruby
mlkkk has quit [Remote host closed the connection]
GodFather has joined #ruby
dipnlik has joined #ruby
ldnunes has joined #ruby
chris349 has joined #ruby
GodFather has quit [Remote host closed the connection]
clemens3_ has quit [Ping timeout: 248 seconds]
n0m4d1c has joined #ruby
Mike11 has joined #ruby
Exagone313 has joined #ruby
ccrow has joined #ruby
agent_white has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitric has joined #ruby
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
psychicist__ has joined #ruby
sanscoeur has joined #ruby
clemens3_ has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
ryzokuken has joined #ruby
clemens3_ has quit [Ping timeout: 255 seconds]
andikr has quit [Remote host closed the connection]
ccrow has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
alfiemax has joined #ruby
schneider1 has joined #ruby
suukim has quit [Remote host closed the connection]
ccrow has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
jamiejackson has quit [Ping timeout: 276 seconds]
schneider1 has joined #ruby
kurko_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider1 has quit [Ping timeout: 260 seconds]
<za1b1tsu> Hello, is ruby suitable for bash scripting?
<tobiasvl> za1b1tsu: what do you mean by "suitable for bash scripting"?
<tobiasvl> bash is its own language
<za1b1tsu> bash scripts
<tobiasvl> bash scripts are written in bash
<za1b1tsu> automated tasks that can be done in bash but you really should not
<tobiasvl> what am I not understanding here
<tobiasvl> ok, so just "scripts"?
<tobiasvl> then yes, sure
<za1b1tsu> I mean shell scripts
schneider1 has joined #ruby
<dminuoso> I regularly write Haskell code that generates Ruby code to do meta programming to generate bash scripts
<tobiasvl> heh
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
Liothen- has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen has joined #ruby
Liothen has joined #ruby
<za1b1tsu> sorry for the mixed terminlogy, what I ment to say was shell scripts and I see a lot of people recommending python for shells scripts. And if I know ruby, was wondering if I could use it instead.
<konsolebox> za1b1tsu: a bash script is a shell script that works in bash. ruby runs ruby scripts. and a ruby script is not a shell script. learn basic meaning of terms. also, the command-line interface or the terminal is not "bash".
<konsolebox> za1b1tsu: a python script is also not a shell script.
<baweaver> Be nice.
SeepingN has joined #ruby
schneider1 has quit [Ping timeout: 256 seconds]
<za1b1tsu> konsolebox: so let me reprhase, use ruby for scripts to perform shell operations so I can automate different tasks in the shell
BTRE has joined #ruby
gizmore|2 is now known as gizmore
alfiemax has quit [Remote host closed the connection]
<konsolebox> za1b1tsu: if tasks are too complicated to be written with a bash/shell script, you can choose to write a ruby script. or if you're a purist you can just write a ruby script.
schneider1 has joined #ruby
<za1b1tsu> konsolebox: I see, well python is mentioned a lot for writing these type of tasks and was curios if you guys still prefer to use ruby for this or use something else.
schneider1 has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
eckhardt has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
<konsolebox> za1b1tsu: python is more popular that i can say. and ruby in my opinion has steeper learning curve. python may also have better library support. but when it comes to ease of composing code in general, i'll always favor Ruby.
alfiemax has joined #ruby
<gizmore> ruby is almost flawless.... sadly activerecord sucks
<za1b1tsu> gizmore: wish it was used in game development :(
<gizmore> za1b1tsu: wanna see a game of mine? …/join #shadowlamb
roamingd_ has quit []
BTRE has quit [Read error: Connection reset by peer]
schneider1 has joined #ruby
roamingdog has joined #ruby
Immune has joined #ruby
miah has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
amelliaa has quit [Quit: -]
alfiemax has quit [Ping timeout: 240 seconds]
<gizmore> i got a better approach than activerecord/activebar
<gizmore> rails is like 6/10
schneider1 has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
hays_ has quit [Remote host closed the connection]
mhoungbo1 has joined #ruby
<cagomez> how do I create an object that responds to anything with an empty string?
alfiemax has joined #ruby
schneider1 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Asher has joined #ruby
<dminuoso> &ri method_missing
<dminuoso> ^- that.
<gizmore> <?=eval(eval("['a'=>'echo sandwich'])['a'])?>
nitric_ has joined #ruby
nitric has quit [Ping timeout: 255 seconds]
<gizmore> warning... assuming constant sandwich?
<dminuoso> Oh yeah. eval is quite good.
<gizmore> i use eval everywhere... so users can customize the app
<bougyman> hahaha
qyliss has left #ruby ["WeeChat 2.1"]
schneider1 has quit [Ping timeout: 240 seconds]
<gizmore> a customer once got hacked by DRI and Fairlight.. they made a beautiful index.php intro for they
<gizmore> (kiddings)
clemens3_ has joined #ruby
<dminuoso> class OnlyString; eval(%[def method_missing(*_); eval("\"\""); end]); end
<dminuoso> Something like this.
Asher has quit [Ping timeout: 255 seconds]
CrazyEddy has joined #ruby
mhoungbo1 has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider1 has joined #ruby
tomphp has joined #ruby
schneider1 has quit [Ping timeout: 268 seconds]
mhoungbo1 has joined #ruby
nadir has joined #ruby
alfiemax has quit [Remote host closed the connection]
schneider1 has joined #ruby
lytol has joined #ruby
Asher has joined #ruby
cyberg has quit [Remote host closed the connection]
amatas has quit [Quit: amatas]
orbyt_ has joined #ruby
RoneDreamer has quit []
schneider1 has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
alfiemax has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
Mike11 has quit [Quit: Leaving.]
schneider1 has joined #ruby
n0m4d1c has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
n0m4d1c has joined #ruby
schneider1 has quit [Ping timeout: 276 seconds]
schneider1 has joined #ruby
nima_m_ has joined #ruby
KeyJoo has joined #ruby
Eiam has joined #ruby
c_nick has joined #ruby
nima_m_ has quit [Client Quit]
nima_m_ has joined #ruby
schneider1 has quit [Ping timeout: 276 seconds]
mhoungbo1 has quit [Ping timeout: 240 seconds]
schneider1 has joined #ruby
weaksauce has joined #ruby
guille-moe has joined #ruby
alfiemax has joined #ruby
schneider1 has quit [Ping timeout: 240 seconds]
nima_m_ has quit [Quit: nima_m_]
nima_m_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c_nick has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Quit: dionysus69]
guille-moe has quit [Ping timeout: 265 seconds]
schneider1 has joined #ruby
dionysus69 has joined #ruby
nima_m_ has quit [Client Quit]
lunarkitty7 has quit [Quit: WeeChat 1.9.1]
mhoungbo1 has joined #ruby
oleo has quit [Remote host closed the connection]
orbyt_ has joined #ruby
quobo has joined #ruby
c_nick has joined #ruby
apeiros_ is now known as apeiros
mhoungbo1 has quit [Client Quit]
schneider1 has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 276 seconds]
pwnd_nsfw` has quit [Ping timeout: 276 seconds]
<z64> heya dminuoso. if i've been following right, you've been getting into haskell yeah? would you have any sage words for a rubyists approach to haskell? i understand its best to take a blank canvas to it, i'm just struggling to find it as engaging to dive into as ruby was.
lunarkitty7 has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
oleo has joined #ruby
schneider1 has joined #ruby
alfiemax has joined #ruby
Asher has joined #ruby
mhoungbo1 has joined #ruby
oleo has quit [Remote host closed the connection]
oleo has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
<tycoon177> does anyone here know of an alternative gem to rubyzip? we've been running into the same issue outlined here https://github.com/rubyzip/rubyzip/issues/249. Basically, *sometimes* the zip files generated by rubyzip can't be opened by the default archive utility on osx. I checked and all of the file names are unique. That was mentioned as a possible cause on that issue thread
Asher has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 265 seconds]
bmurt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore> tycoon177: an alternative might be to use an external program like zip
nowhere_man has joined #ruby
<tycoon177> gizmore: i might look into doing that. Thanks! I was just wanting to make sure that I wasn't just missing another gem. I tried searching but didn't find anything
schneider1 has joined #ruby
agent_white has quit [Remote host closed the connection]
Esa_ has quit []
<gizmore> tycoon177: yeah... never had problems zipping with ruby.... doubt there is more than 1 zip lib
<tycoon177> Thanks!
c_nick has quit [Read error: Connection reset by peer]
hph^ has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
schneider1 has joined #ruby
guille-moe has joined #ruby
tipyn has joined #ruby
bmurt has quit [Remote host closed the connection]
jottr has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
oleo has quit [Remote host closed the connection]
bmurt has joined #ruby
oleo has joined #ruby
oleo has quit [Remote host closed the connection]
<dminuoso> z64: Hard to say. For how long have you been learning Haskell?
schneider1 has joined #ruby
Mondongo has joined #ruby
<z64> dminuoso: i've been picking it up/down for maybe a year. its been a bucket list thing for longer. i've always been more of a static typing / compiled lang guy, so haskells world of purity / type safety is super intriguing
cschneid_ has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
Asher has joined #ruby
<z64> i feel like what i need is like to take a class or something. i always wind up with way too many questions when i dive in than would be reasonable to dump onto someone for free.. lmao
tomphp has joined #ruby
agent_white has joined #ruby
<dminuoso> z64: The #haskell channel here on freenode is incredibly active and helpful. They can also point you to a lot of resources (from academic papers to books, or even some great free learning things)
<dminuoso> z64: But at the end you basically need to solve problems and write programs with it to get comfortable with it. Or perhaps Haskell just isn't your thing.
<z64> yeah i think thats the thing really. i need something practical to *do* with it beyond academic exercises, and its tough finding something when i could immediately do it in another lang i already know
cschneid_ has quit [Ping timeout: 256 seconds]
<dminuoso> z64: What reasons do you want to learn Haskell for?
n0m4d1c has quit [Remote host closed the connection]
<samosaphile> i don't understand this obsession with haskell/function programming at all. I can't think of anything built with haskell that I've ever used
Asher has quit [Ping timeout: 240 seconds]
mhoungbo1 has quit [Ping timeout: 240 seconds]
<samosaphile> yet I've come across so many articles randomly searching for stuff about how to apply haskell/functional programming principles to x/y/z languages
n0m4d1c has joined #ruby
phaul has joined #ruby
<z64> dminuoso: compile time safety and strong typing is super valuable to me, in the kinds of bugs it eliminates from runtime entirely. and haskell seems to accomplish it in such a detailed, frighteningly interesting way lol.
dionysus69 has quit [Quit: dionysus69]
<dminuoso> z64: Haskell goes way beyond "strong typing" in that you have an advanced type system in which can express so many things.
<z64> it just seems like a tool i would exercise a lot, if i could grasp it :) lol
dionysus69 has joined #ruby
Mondongo has quit [Quit: Textual IRC Client: www.textualapp.com]
oleo has joined #ruby
miah has quit [Quit: DevOps? DerpOps maybe!]
miah has joined #ruby
orbyt_ has joined #ruby
rheddry is now known as levifig
<dminuoso> z64: If you're solving problems in your comfort zone you will not expand knowledge.
<Eiam> just follow along with the #haskell guide
<Eiam> I think its CS194
<Eiam> as a ruby person who did that course, it was fun and #haskell was very helpful. I didn't have any issues
<dminuoso> CIS194 is highly regarded by a lot of folks in there indeed :)
BTRE has quit [Quit: Leaving]
<dminuoso> z64: Learning requires accepting that it will take time, but it's an investment for the future. Me personally I just started solving typical day to day problems in Haskell.
<dminuoso> I've reached the point where the grand majority of "Hey I quickly need a program to do some data transformation" is just as quickly written in Haskell
<Eiam> z64: I did it to poke at Haskell and see what the fuss was about. I had fun, then I went back to mostly writing ruby but trying to be uhm, better about it?
<dminuoso> I think no matter whether you will stick to Haskell or not, it will make you a better programmer because it will teach you so many clean ways to think about problems and solve them.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<z64> dminuoso: yeah, i totally get that:) i tried cis194 a long time ago, i'll have to revisit it with gusto. and yeah, thats another reason why i was interested, from stories like those that i've heard ^^
piixal has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
<dminuoso> z64: The main thing to keep in mind is that a lot of the "traditional languages" are rather similar copies of another.
<dminuoso> So switching from say Python to Ruby doesn't really change how you are thinking, because the languages are basically the same with just some visual changes here and oddities there.
jottr has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
<dminuoso> But when you then pick up say.. Lisp, Prolog, Haskell, Idris or SML - you will notice that your "pattern recipes" stop working because you're toying around with different concepts
<dminuoso> Which is why these languages may seem so difficult to pick up compared to other languages, because they actually _are_ different.
tfitts has joined #ruby
cadillac_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<z64> right, exactly. hard to leave those "at the door", haha
mostlybadfly has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
<Eiam> thats why its called learning =0
plujon has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
schneider1 has quit [Ping timeout: 240 seconds]
sanscoeu_ has joined #ruby
TinkerT has joined #ruby
<z64> well, i gotta fly. thanks for the words guys :)! have a good one
roamingdog has quit [Remote host closed the connection]
piixal has quit [Remote host closed the connection]
piixal has joined #ruby
sanscoeur has quit [Ping timeout: 265 seconds]
tipyn has quit [Remote host closed the connection]
<kapil___> i want to strip last "_id" from a string
tipyn has joined #ruby
<dminuoso> kapil___: Then do that.
<Zarthus> I want a million euros.
<kapil___> dminuoso: is there a function for it?
<dminuoso> kapil___: What have you tried?
piixal has quit [Ping timeout: 256 seconds]
<kapil___> `a.gsub("_id", "") if a.last(3) == "_id"
tipyn has quit [Ping timeout: 260 seconds]
<dminuoso> kapil___: What is the if condition supposed to accomplish?
Asher has joined #ruby
<dminuoso> > a = "_id_bar_id"; a.gsub("_id", "") if a.last(3) == "_id"
<dminuoso> >> a = "_id_bar_id"; a.gsub("_id", "") if a.last(3) == "_id"
<ruby[bot]> dminuoso: # => undefined method `last' for "_id_bar_id":String (NoMethodError) ...check link for more (https://eval.in/1000648)
<kapil___> dminuoso: thanks
<konsolebox> >> "abc_id".dup.gsub(/_id$/, "")
<ruby[bot]> konsolebox: # => "abc" (https://eval.in/1000649)
Quentinius has joined #ruby
<dminuoso> kapil___: What makes you think .last(3) exists?
<dminuoso> konsolebox: Don't spoonfeed please.
<dminuoso> Especially not for kapil___.
<kapil___> i want to bu sure that _id is removed if at end
<kapil___> ^be
<konsolebox> dminuoso: it wasn't. i corrected/enhanced his method.
<kapil___> konsolebox: thanks a lot
<dminuoso> konsolebox: You allowed him to do what he has been doing for a year now. Drop into the channel and ask the most basic questions in hopes of people telling him how its done.
Quentinius has quit [Client Quit]
schleppel has quit [Quit: Konversation terminated!]
<konsolebox> dminuoso: what was your plan then?
sammi` has quit [Quit: Lost terminal]
bauruine has quit [Quit: ZNC - http://znc.in]
<kapil___> konsolebox: how to also check if last 3 characters is "_id" true or false?
<konsolebox> kapil___: you already have the regex. you just need to apply regex comparison to the string.
piixal has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<konsolebox> the other method is to use the substring function.
nadir has quit [Quit: Connection closed for inactivity]
<konsolebox> which i don't always try to remember
<konsolebox> kapil___: but in this case i don't see why you still need to check it
<kapil___> no i have other case
piixal has quit [Client Quit]
<kapil___> konsolebox: ok i will compare regex
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
cschneid_ has quit [Remote host closed the connection]
bauruine has joined #ruby
orbyt_ has joined #ruby
roamingdog has joined #ruby
Psybur has quit [Ping timeout: 276 seconds]
Sina has joined #ruby
minimalism has joined #ruby
tvw has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
k0mpa has quit [Ping timeout: 255 seconds]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #ruby
tipyn has joined #ruby
drale2k_ has joined #ruby
donofrio_ has joined #ruby
fyrril2 has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
fribmendes has joined #ruby
DTZUZO_ has joined #ruby
lesce_ has joined #ruby
raggi_ has joined #ruby
mroth_ has joined #ruby
Kilobyte22 has joined #ruby
arcturiaen_ has joined #ruby
fribmendes is now known as Guest46301
nuck_ has joined #ruby
mr-robert_ has joined #ruby
tfitts_ has joined #ruby
bweston92_ has joined #ruby
Chew_ has joined #ruby
Iambchop_ has joined #ruby
[diecast]_ has joined #ruby
HalcyonicStorm__ has joined #ruby
Yxhvd has joined #ruby
webhat_ has joined #ruby
voker57_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
kentnl has joined #ruby
justinmcp_ has joined #ruby
stairmast0r has quit [Quit: bye]
sunya7a__ has joined #ruby
marens_ has joined #ruby
jdeen has joined #ruby
stairmast0r has joined #ruby
agent_white has quit [Quit: brb]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit []
rawburtz has joined #ruby
sspreitzer has joined #ruby
sspreitzer has joined #ruby
sspreitzer has quit [Changing host]
mistym- has joined #ruby
hfp__work has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
drale2k_ has quit [*.net *.split]
tfitts has quit [*.net *.split]
tipyn has quit [*.net *.split]
hph^ has quit [*.net *.split]
ccrow has quit [*.net *.split]
Liothen has quit [*.net *.split]
donofrio has quit [*.net *.split]
DTZUZO has quit [*.net *.split]
Yxhuvud has quit [*.net *.split]
jdeen_ has quit [*.net *.split]
raggi has quit [*.net *.split]
Brak____________ has quit [*.net *.split]
kent\n has quit [*.net *.split]
webhat has quit [*.net *.split]
Guest97610 has quit [*.net *.split]
voker57 has quit [*.net *.split]
tpendragon has quit [*.net *.split]
jordanm has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
fyrril has quit [*.net *.split]
marens has quit [*.net *.split]
bweston92 has quit [*.net *.split]
turt2live has quit [*.net *.split]
hfp_work has quit [*.net *.split]
sspreitz has quit [*.net *.split]
clampy has quit [*.net *.split]
arcturiaen has quit [*.net *.split]
sunya7a has quit [*.net *.split]
mroth has quit [*.net *.split]
[diecast] has quit [*.net *.split]
kriskropd has quit [*.net *.split]
justinmcp has quit [*.net *.split]
lesce has quit [*.net *.split]
mr-robert has quit [*.net *.split]
Iambchop has quit [*.net *.split]
nuck has quit [*.net *.split]
HalcyonicStorm_ has quit [*.net *.split]
Chew has quit [*.net *.split]
soahccc has quit [*.net *.split]
mistym has quit [*.net *.split]
soahccc_ has joined #ruby
tfitts_ is now known as tfitts
raggi_ is now known as raggi
arcturiaen_ is now known as arcturiaen
Iambchop_ is now known as Iambchop
mroth_ is now known as mroth
soahccc_ is now known as soahccc
lesce_ is now known as lesce
[diecast]_ is now known as [diecast]
mr-robert_ is now known as mr-robert
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
bweston92_ is now known as bweston92
Brak____________ has joined #ruby
Chew_ is now known as Chew
nuck_ is now known as nuck
tpendragon has joined #ruby
clampy has joined #ruby
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
ccrow has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
Lyubo1 has quit [Ping timeout: 240 seconds]
Scient has quit [Ping timeout: 260 seconds]
nettie has quit [Ping timeout: 240 seconds]
cyberRodent has quit [Ping timeout: 240 seconds]
kriskropd has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
tipyn has joined #ruby
dionysus69 has joined #ruby
chridal has quit [Ping timeout: 240 seconds]
turt2live has joined #ruby
ciscam has quit [Ping timeout: 260 seconds]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
Lyubo1 has joined #ruby
hph^ has quit [Max SendQ exceeded]
ciscam has joined #ruby
chridal has joined #ruby
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
Scient has joined #ruby
cyberRodent has joined #ruby
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
rawburtz has quit [Remote host closed the connection]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
tipyn has quit [Remote host closed the connection]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
tipyn has joined #ruby
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ruby
hph^ has quit [Max SendQ exceeded]
<apeiros> !fixcon hph^
cschneid_ has joined #ruby
* dminuoso hands apeiros a weechat
<dminuoso> Here try this
<apeiros> why? is it dangerous to be out there alone?
<dminuoso> Yes
<apeiros> thank you
* apeiros goes off to find a shield
pwnd_nsfw has joined #ruby
gil_ has quit [Ping timeout: 256 seconds]
ccrow has quit [Ping timeout: 265 seconds]
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
Azure has joined #ruby
mahlon_ is now known as mahlon
jenrzzz has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jordanm has joined #ruby
Azure|dc has quit [Ping timeout: 248 seconds]
ccrow has joined #ruby
<Eiam> dminuoso: so https://xkcd.com/1988/ in practice basically? =)
ldnunes has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
Miron has quit [Ping timeout: 256 seconds]
cats has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
<garyserj> havenwood: thanks
chouhoulis has quit [Remote host closed the connection]
<garyserj> Why is it that when I do myFile=File.open("blah.txt","rb"); myFile.gets It interprets the new line. The myFile.gets shows the first line. Whereas isn't "rb" meant to be read-only, and binary. And wouldn't binary mean don't interpret new line? http://ruby-doc.org/core-2.5.0/IO.html#method-c-new "binary file mode Suppresses EOL <-> CRLF conversion on Windows"
Azure|dc has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jordanm> garyserj: "b" is essentially no-op on non-windows
<Eiam> hah that was my question
<Eiam> "whats it mean to be binary when you are .txt"
<garyserj> Eiam: extension is irrelevant. and if a file is plain text it's still possible to read it as one reads a binary file
<garyserj> File.open isn't about executing instructions
<Eiam> yes it may be possible but that doesn't mean thats what ruby has done...
Azure has quit [*.net *.split]
<Eiam> i could easily see a bug report that says "check magic header before opening files and ignore if the type doesn't match" or something
* Eiam shrugs
<garyserj> jordanm: so on unix it leaves \n as \n and in windows it converts \r\n to \n. ?
reber has quit [Remote host closed the connection]
<jordanm> all files are binary in *nix, regardless if the content is "text"
<jordanm> garyserj: on unix, "b" does literally nothing at all
<garyserj> yeah, thanks
<jordanm> it does some kind of conversion on windows if you don't use it, but I am not sure exactly what
<garyserj> yeah, \r\n to \n if you don't use it
<jordanm> using "b" on windows should cause it to match the behavior of other operating systems (with or without "b")
Miron has joined #ruby
cats has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pilne has joined #ruby
<garyserj> it looks like 'b' on windows (and presumably unix), does nothing. But the default is in windows when ruby reads a file it converts \r\n to \n
<garyserj> and 'b' leaves the file as it is so stops ruby doing that conversion.
<garyserj> if I wanted to treat new lines not as new lines but just as characters I suppose I could use .read instead of .open
alfiemax has quit [Remote host closed the connection]
orbyt_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
jamiejackson has joined #ruby
Yzguy has joined #ruby
alfiemax has joined #ruby
apeiros has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
mhoungbo1 has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
<eam> jordanm: garyserj: that is not true - text/binary influences the character encoding of strings read from a file
<eam> this can be enormously important -- I once had a (unix) ruby script which went from hours of runtime to seconds after changing to binary
jeffreylevesque has joined #ruby
amar has quit [Remote host closed the connection]
zmo is now known as guyzmal
jamiejackson has quit [Ping timeout: 240 seconds]
guyzmal is now known as guyz
rkazak has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
n0m4d1c has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
Bonjourm8 has joined #ruby
Yzguy has joined #ruby
mhoungbo1 has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
za1b1tsu has quit [Ping timeout: 276 seconds]
rahul_bajaj has quit [Quit: Leaving]
tipyn has quit [Remote host closed the connection]
apeiros has joined #ruby
<gizmore> do small gems need a gemfile or is gemspec enough?
apeiros has quit [Ping timeout: 240 seconds]
tvw has quit []
jeen__ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<baweaver> I just add everything to the gemspec on most of my smaller gems.
Eiam has quit [Ping timeout: 265 seconds]
jeen_ has joined #ruby
jeen__ has quit [Ping timeout: 260 seconds]
za1b1tsu has joined #ruby
mhoungbo1 has joined #ruby
emilford has joined #ruby
jeen__ has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
Bonjourm8 has quit [Remote host closed the connection]
jeen_ has quit [Ping timeout: 240 seconds]
<garyserj> eam: do you have any practical example that shows that 'b' interprets the encoding differently?
Sembei has joined #ruby
Bonjourm8 has joined #ruby
Bonjourm8 has quit [Remote host closed the connection]
plexigras has quit [Quit: WeeChat 2.1]
Pisuke has quit [Ping timeout: 260 seconds]
tipyn has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
jeen__ is now known as jeen
nettie has joined #ruby
jnollette has joined #ruby
<garyserj> I've noticed that "rb" can show an encoding of ASCII-8BIT and "r" can show it as CP850 but I don't see a difference.. and CP850 is a subset of ASCII-8BIT. Also one can specify an encoding e.g. myFile=File.open("blah.a","r:ASCII-8BIT") or myFile=File.open("blah.a","r:CP850") or myFile=File.open("blah.a","rb:ASCII-8BIT") or myFile=File.open("blah.a","rb:CP850") so when it even reports the same
<garyserj> encoding as specified then one can be even more sure that the 'b' or lack thereof is not influencing the encoding.
<garyserj> eam: ^
<garyserj> a=myFile.gets; a.encoding.name
tipyn has quit [Ping timeout: 256 seconds]
<lupine> http://ruby-doc.org/core-2.5.0/IO.html#method-c-new clearly documents the differences
<lupine> > Suppresses EOL <-> CRLF conversion on Windows. And sets external encoding to ASCII-8BIT unless explicitly specified.
Haradani has joined #ruby
Eiam has joined #ruby
jenrzzz has joined #ruby
apeiros has joined #ruby
<eam> garyserj: the difference is that a string will have indices access of O(n) instead of O(1) if the string uses a variable width encoding like UTF-8
<eam> many unix systems (most every linux system) will default to UTF-8 encoding
tfitts has quit [Quit: Connection closed for inactivity]
<eam> you can reproduce this by reading in a reasonably sized string, say 10MB or so
GodFather has joined #ruby
<eam> and then 10000.times { s[2**23] }
<eam> with a fixed character size and O(1) indexing, the above will complete almost instantly
jenrzzz has quit [Ping timeout: 240 seconds]
<eam> but if you do this when the string has a variable width encoding it will take a reeeeallly long time
sameerynho has quit [Ping timeout: 264 seconds]
kevinburke has joined #ruby
tipyn has joined #ruby
tipyn has quit [Remote host closed the connection]
<eam> worse, depending on the encoding, you may find yourself addressing the incorrect data because ruby strings have character semantics rather than byte semantics
GodFather has quit [Ping timeout: 248 seconds]
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
roamingdog has joined #ruby
za1b1tsu has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 260 seconds]
MzrE has joined #ruby
jeen has quit [Quit: Leaving]
jenrzzz has joined #ruby
clemens3_ has quit [Ping timeout: 264 seconds]
dipnlik has quit [Quit: Connection closed for inactivity]
ellcs has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Yzguy has quit [Quit: Zzz...]
ellcs has quit [Ping timeout: 260 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]