havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3 & 2.2.6 (2.4.0-rc1): https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
benlieb has quit [Quit: benlieb]
<jamiejackson> (i just updated the gist to fix the path in the comment at the top of the test file)
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
whathappens has quit [Remote host closed the connection]
benlieb has quit [Client Quit]
AndrewIsHere has joined #ruby
whathappens has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
tpendragon has quit [Ping timeout: 245 seconds]
benlieb has quit [Client Quit]
benlieb has joined #ruby
<Sh4D0wD_> jamiejackson: sound like RoR question to me
benlieb has quit [Client Quit]
jamiejackson has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
giraffe has quit [Ping timeout: 258 seconds]
<Sh4D0wD_> With that said we have brotherhood rails community that are specialized on rubyonrails. Ask the question there they could help you faster, link and channel name is in topic
<Radar> Sh4D0wD_: What if I told you that they were already asking there, but decided #ruby was a better fit?
guacamole has joined #ruby
pwnd_nsfw` has joined #ruby
<strass_> c-c yeah using bundler
VladGh has quit [Remote host closed the connection]
ncthom91 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
VladGh has joined #ruby
<Sh4D0wD_> Radar: well then we going refer you to each until we get stack overflow and world crash, just kidding, unless someone else can help you, I will once I get home, my hands freezing typing outside
gnufied has quit [Quit: Leaving]
<Sh4D0wD_> *each other
muelleme has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Remote host closed the connection]
yeticry has joined #ruby
reginvld has joined #ruby
muelleme has quit [Ping timeout: 250 seconds]
ryan_notabot has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 252 seconds]
ryan_notabot has joined #ruby
rwb has quit [Remote host closed the connection]
rwb has joined #ruby
whathappens has quit [Quit: Leaving...]
<strass_> c-c I `gem uninstall -all`'d and the re-`bundle install`'d
<strass_> and I think I'm set
preyalone has quit [Quit: Connection closed for inactivity]
<Sh4D0wD_> strass_: very good, look at you go!
<strass_> look at me now, dad ;)
gloscombe has quit [Quit: gloscombe]
rwb has quit [Remote host closed the connection]
rwb has joined #ruby
giraffe has joined #ruby
rwb1 has joined #ruby
rwb has quit [Ping timeout: 246 seconds]
fmcgeough has quit [Quit: fmcgeough]
m1911 has joined #ruby
mikecmpbll has joined #ruby
whathappens has joined #ruby
al2o3-cr has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jcao219 has joined #ruby
marr has quit [Remote host closed the connection]
rwb1 has quit [Ping timeout: 252 seconds]
pwnd_nsfw` has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
m1911 has quit [Client Quit]
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
montanonic has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
tpendragon has joined #ruby
cyclonis has joined #ruby
z64 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
pwnd_nsfw has joined #ruby
koooge has quit [Quit: Leaving...]
dnicole has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 245 seconds]
jaguarmagenta has joined #ruby
chouhoulis has joined #ruby
teclator has joined #ruby
teclator_ has quit [Ping timeout: 265 seconds]
jaguarmagenta has quit [Ping timeout: 264 seconds]
Derderderd has quit [Quit: leaving]
arescorpio has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
gbgdev has quit [Remote host closed the connection]
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
CloCkWeRX has joined #ruby
OTORelic has joined #ruby
xrlk has quit [Remote host closed the connection]
chopin has quit [Ping timeout: 268 seconds]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
A124 has quit [Ping timeout: 248 seconds]
A124 has joined #ruby
millerti has joined #ruby
mikeXsh has quit [Quit: Connection closed for inactivity]
maxmanders_ has quit [Ping timeout: 252 seconds]
millerti has quit [Client Quit]
h1fuelcell has quit [Remote host closed the connection]
millerti has joined #ruby
maxmanders has joined #ruby
whathappens has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
statelesscode has quit [Ping timeout: 250 seconds]
statelesscode_ has joined #ruby
whathappens has joined #ruby
chouhoulis has joined #ruby
harai_ has quit [Ping timeout: 248 seconds]
shayan has quit [Quit: shayan]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
strass_ has quit [Quit: Leaving]
pwnd_nsfw has joined #ruby
agent_white has quit [Quit: bbl]
whathappens has quit [Ping timeout: 268 seconds]
shayan has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
railssmith has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 256 seconds]
xlegoman has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
shayan has quit [Quit: shayan]
shayan has joined #ruby
yeticry has joined #ruby
JeanCarloMachado has joined #ruby
duderonomy has joined #ruby
duderonomy is now known as Guest60231
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
Guest60231 has quit [Client Quit]
yeticry has quit [Remote host closed the connection]
r3vDev has joined #ruby
yeticry has joined #ruby
r3vDev has quit [Client Quit]
r3vDev has joined #ruby
duderono_ has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
montanonic has joined #ruby
yeticry has joined #ruby
blackbom1 has quit [Ping timeout: 250 seconds]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
pwnd_nsfw` has joined #ruby
blackbom1 has joined #ruby
rwb has joined #ruby
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
r3vDev has quit [Ping timeout: 252 seconds]
mooe has quit [Quit: Connection closed for inactivity]
chopin has joined #ruby
antoniobeyah has joined #ruby
djbkd_ has quit [Quit: My people need me...]
jenrzzz has joined #ruby
preyalone has joined #ruby
doublemalt__ has joined #ruby
johnzorn has joined #ruby
duderono_ has joined #ruby
xrlk has joined #ruby
koooge has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
duderono_ has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
antoniobeyah has quit [Quit: antoniobeyah]
antoniobeyah has joined #ruby
sdothum has joined #ruby
AndrewIsHere has quit []
bturker has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
bayed has quit [Quit: Connection closed for inactivity]
whathappens has joined #ruby
duderono_ has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
enterprisey has joined #ruby
whathappens has quit [Ping timeout: 246 seconds]
kuSuSE has joined #ruby
d^sh has quit [Ping timeout: 250 seconds]
d^sh has joined #ruby
ruby-lang201 has joined #ruby
<ruby-lang201> if you have zero knowledge in javascript, can i just proceed to learn coffescript
<ruby-lang201> i like the syntax in coffescript
<ruby-lang201> looks more like ruby to me :)
ruby-lang201 has quit [Client Quit]
ruby-lang459 has joined #ruby
<ruby-lang459> ?
ascarter has joined #ruby
ncthom91 has joined #ruby
jamiejackson has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jamiejackson has quit [Client Quit]
bturker has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
reginvld has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
jaguarmagenta has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
splud has quit [Quit: splud]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
KnownSyntax has quit [Ping timeout: 245 seconds]
ruby-lang459 has quit [Ping timeout: 260 seconds]
bturker has quit [Ping timeout: 256 seconds]
jenrzzz_ has quit [Ping timeout: 250 seconds]
ascarter has joined #ruby
ascarter has quit [Remote host closed the connection]
ascarter has joined #ruby
osieln has joined #ruby
ascarter has quit [Client Quit]
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
ascarter has quit [Client Quit]
nankyokusei has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
ruby-lang106 has joined #ruby
<ruby-lang106> anyone know of any begineer book for coffescript?
AnoHito_ has joined #ruby
ascarter has joined #ruby
osieln has quit [Remote host closed the connection]
osieln has joined #ruby
osieln has joined #ruby
AnoHito has quit [Ping timeout: 244 seconds]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
osieln has quit [Client Quit]
harai_ has joined #ruby
<Radar> ruby-lang106: I would advise that you learn the ES6 syntax instead.
Lex_ has joined #ruby
beilabs has joined #ruby
<ruby-lang106> isn't coffescript easy?
<Radar> Yeah, it is... but it's not typically used anymore.
antoniobeyah has quit [Quit: antoniobeyah]
<ruby-lang106> wth?
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang106> @Radar any book resource or book to recommend?
<baweaver> NoStarch Press had an ES6 book out as well.
<baweaver> beat me to it
jokester has quit [Quit: upgrading]
<ruby-lang106> that only language i knew was coffescript and javascript
<ruby-lang106> haha
<Radar> Time to broaden your horizons
<baweaver> ES6 is Javascript
<baweaver> breakdown time
<baweaver> the official name of Javascript is Ecmascript
<baweaver> The current version that you typically use is ES5
jgt has quit [Ping timeout: 258 seconds]
raul782 has quit [Remote host closed the connection]
<baweaver> ES6 is the next one that's being rolled out to browsers (slowly, painfully)
<ruby-lang106> ES6 syntax like ruby?
<baweaver> and ES6 fixed a vast majority of the issues that Coffeescript wanted to fix
<ruby-lang106> when i learn ruby it's very intuitive
<baweaver> Give it a shot
<ruby-lang106> hope it's same as ES6 :)
jokester has joined #ruby
antoniobeyah has joined #ruby
b0mbnet has joined #ruby
wrkrcoop has joined #ruby
<wrkrcoop> is ruby object oriented?
<baweaver> Google
<wrkrcoop> ok thanks
<Radar> ?g ruby wikipedia
<ruby[bot]> Radar: I don't see no ruby, whom should I tell about g?
<Radar> ...
<Radar> "Ruby is a dynamic, reflective, object-oriented,"
<Radar> Literally the first sentence
<wrkrcoop> radar dont know shortcuts
<ruby-lang106> hais the book is not for begineer
<ruby-lang106> apprently i google it it's for someone who use javascipt before
pwnd_nsfw has joined #ruby
<nofxx> is there any lang more OO than ruby?
ryan_notabot has quit [Remote host closed the connection]
<baweaver> Debatably Smalltalk but it's rarely if ever used.
<wrkrcoop> small talk
ryan_notabot has joined #ruby
<nofxx> can it do 1000.odd? "foo".length ?
<wrkrcoop> idk
<baweaver> Google is magical
b0mbnet_ has joined #ruby
<nofxx> hm... methods on primitives?
b0mbnet has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
<Radar> nofxx: hey
<Radar> nofxx: Could you try launching IRB and experimenting?
<baweaver> in that case they're referring to Smalltalk
<nofxx> 2.8Mb, just installed smalltalk hehe... let me see if there's a REPL
<Radar> nofxx: There's probably even smalltalk tutorials on the internet!
wrkrcoop has quit [Quit: wrkrcoop]
<nofxx> Radar, there's no honor in that... ls and man ftw
jaguarmagenta has quit [Remote host closed the connection]
cyphase has joined #ruby
optiz0r has quit [Ping timeout: 268 seconds]
ruby-lang106 has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 258 seconds]
jz has joined #ruby
libastral has quit [Ping timeout: 248 seconds]
jz is now known as Guest60075
beilabs has quit [Ping timeout: 265 seconds]
h1fuelcell has joined #ruby
Anonymoose2 has joined #ruby
shakes has joined #ruby
johnzorn has quit [Ping timeout: 256 seconds]
swills has quit [Read error: Connection reset by peer]
dnicole has joined #ruby
kuSuSE has quit [Quit: Konversation terminated!]
libastral has joined #ruby
swills has joined #ruby
jtdowney has quit [Ping timeout: 245 seconds]
reverberations has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
vikaton has joined #ruby
h1fuelcell has quit [Ping timeout: 268 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
whathappens has joined #ruby
jtdowney has joined #ruby
jtdowney has joined #ruby
jtdowney has quit [Changing host]
r3vDev has joined #ruby
shakes has quit [Quit: Leaving]
enterprisey has quit [Remote host closed the connection]
dnicole has quit [Ping timeout: 240 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
aaronwedd has joined #ruby
r3vDev1 has joined #ruby
Lex_ has quit [Quit: Page closed]
r3vDev has quit [Read error: Connection reset by peer]
whathappens has quit [Ping timeout: 264 seconds]
beilabs has joined #ruby
jaguarmagenta has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
JoshS has joined #ruby
cdg has quit [Remote host closed the connection]
rakm has joined #ruby
Rodya_ has quit [Quit: Leaving...]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sh4D0wD_ has quit [Quit: Connection closed for inactivity]
raul782 has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
braincrash has quit [Ping timeout: 252 seconds]
hanmac has quit [Ping timeout: 258 seconds]
dnicole has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
OTORelic has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
astrobunny has joined #ruby
duderonomy has joined #ruby
dfockler has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
CloCkWeRX has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
arescorpio has quit [Quit: Leaving.]
Elorinako has joined #ruby
JoshS has quit [Quit: Leaving]
jaguarmagenta has quit [Remote host closed the connection]
antoniobeyah has quit [Quit: antoniobeyah]
rakm has joined #ruby
rakm has quit [Client Quit]
jaguarmagenta has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ryan_notabot has quit [Ping timeout: 250 seconds]
Ropeney has joined #ruby
pawnbox has joined #ruby
blackwind_123 has joined #ruby
whathappens has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
pwnd_nsfw has joined #ruby
whathappens has quit [Ping timeout: 265 seconds]
<zenspider> nofxx: which smalltalk?
dnicole has quit [Ping timeout: 258 seconds]
Elorinako has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pawnbox has quit [Remote host closed the connection]
jcao219 has joined #ruby
r3vDev1 has quit [Ping timeout: 268 seconds]
tdy has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
optiz0r has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
chouhoulis has joined #ruby
Rodya_ has joined #ruby
Semtex-H has quit []
nankyokusei has joined #ruby
treaki_ has joined #ruby
braincrash has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
treaki has quit [Ping timeout: 264 seconds]
blackwind_123 has quit [Ping timeout: 252 seconds]
Sh4D0wD_ has joined #ruby
shayan has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
shayan has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
c355e3b has quit [Quit: Connection closed for inactivity]
tdy has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
chouhoulis has joined #ruby
iMadper|afk has quit [Ping timeout: 252 seconds]
cyclonis has quit [Quit: Lost terminal]
astrobunny has joined #ruby
gix has joined #ruby
XV8 has joined #ruby
XV8 has quit [Client Quit]
montanonic has quit [Ping timeout: 258 seconds]
XV8 has joined #ruby
raul782 has quit [Remote host closed the connection]
Guest60075 is now known as johnzorn
astrobun_ has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
astrobun_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
antoniobeyah has joined #ruby
Guest92188 has quit [Quit: Connection closed for inactivity]
kaze__ has quit [Quit: Connection closed for inactivity]
tdy has joined #ruby
dnicole has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
pawnbox has joined #ruby
bradleyprice has quit [Ping timeout: 260 seconds]
ishigoya- has quit [Ping timeout: 258 seconds]
ishigoya has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jcao219 has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
pawnbox has joined #ruby
h1fuelcell has joined #ruby
maattdd has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
ascarter_ has joined #ruby
ascarter_ has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
jgt has joined #ruby
maattdd has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
camilasan has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
camilasan has joined #ruby
JoshS has quit [Quit: Leaving]
nettoweb1 has joined #ruby
bocaneri has joined #ruby
SteenJobs has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
whathappens has quit [Ping timeout: 248 seconds]
tim1874 has quit [Ping timeout: 240 seconds]
mt_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
charliesome has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
AnoHito has joined #ruby
reverberations has joined #ruby
bradleyprice has joined #ruby
pawnbox has joined #ruby
AnoHito_ has quit [Ping timeout: 258 seconds]
dnicole has quit [Ping timeout: 258 seconds]
cajone has joined #ruby
bradleyprice has quit [Remote host closed the connection]
jaruga___ has joined #ruby
Anonymoose2 has quit [Ping timeout: 258 seconds]
bradleyprice has joined #ruby
Dimik has quit [Ping timeout: 258 seconds]
aaronwedd has quit [Ping timeout: 260 seconds]
mt_ has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
e1z0 has joined #ruby
johnzorn has quit [Ping timeout: 265 seconds]
johnzorn has joined #ruby
grenierm has joined #ruby
e1z0 is now known as e1z0_
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
nankyokusei has joined #ruby
jaguarmagenta has joined #ruby
dfockler has quit [Quit: Leaving...]
reverberations has quit [Read error: Connection reset by peer]
reverberations has joined #ruby
inerkick has joined #ruby
chopin has quit [Ping timeout: 268 seconds]
SteenJobs has quit [Quit: SteenJobs]
nankyokusei has quit [Ping timeout: 245 seconds]
jaguarmagenta has quit [Ping timeout: 256 seconds]
rakm has joined #ruby
Rodya_ has quit [Remote host closed the connection]
testuser2 has joined #ruby
<testuser2> hi
<havenwood> testuser2: hi
CloCkWeRX has quit [Quit: Leaving.]
zapata has quit [Ping timeout: 250 seconds]
Sh4D0wD_ has quit [Quit: Connection closed for inactivity]
whathappens has joined #ruby
d0lph1n98 has joined #ruby
dionysus69 has joined #ruby
liulantao has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 248 seconds]
testuser2 has quit [Quit: leaving]
pawnbox has quit [Read error: Connection reset by peer]
zapata has joined #ruby
d0lph1n98 has quit [Quit: leaving]
saneax-_-|AFK is now known as saneax
Devalo has joined #ruby
pawnbox has joined #ruby
moei has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
moei has joined #ruby
pawnbox has quit [Remote host closed the connection]
nchambers has quit [Read error: Connection reset by peer]
nchambers has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
alireza has joined #ruby
<alireza> is there a better way to implement this? https://bpaste.net/show/53c129b1254c
iMadper has joined #ruby
hahuang62 has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
last_staff has joined #ruby
shayan has quit [Quit: shayan]
grenierm has quit [Quit: grenierm]
<alireza> c
inerkick has quit [Quit: Leaving]
conta has joined #ruby
b0mbnet_ has quit [Ping timeout: 260 seconds]
jgt has joined #ruby
jcomito has joined #ruby
tvw has joined #ruby
lacour has quit [Quit: Leaving]
teclator has quit [Remote host closed the connection]
antoniobeyah has quit [Quit: antoniobeyah]
e1z0_ has quit [Ping timeout: 268 seconds]
vuoto has joined #ruby
liulanta_ has joined #ruby
SpiffTR has joined #ruby
vuoto has quit [Remote host closed the connection]
liulantao has quit [Ping timeout: 250 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
teclator has joined #ruby
<al2o3-cr> good morning world it's a brand new day
tim1874 has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
andikr has joined #ruby
dnicole has joined #ruby
SpiffTR has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antoniobeyah has joined #ruby
xMopxShell has quit [Ping timeout: 248 seconds]
optiz0r has quit [Remote host closed the connection]
hinbody has quit [Ping timeout: 240 seconds]
lel has quit [Ping timeout: 265 seconds]
StoBrendo has quit [Ping timeout: 248 seconds]
optiz0r has joined #ruby
<al2o3-cr> is 0.2 sec timeout to low to check if a port is open?
<dminuoso> al2o3-cr: that depends..
<dminuoso> We are talking about TCP right?
<al2o3-cr> dminuoso: right
<al2o3-cr> i'm scanning ports 1-1024
_djbkd has quit [Remote host closed the connection]
bradleyprice has joined #ruby
_djbkd has joined #ruby
blaxter has joined #ruby
<dminuoso> al2o3-cr: What's the use case?
xMopxShell has joined #ruby
_djbkd has quit [Remote host closed the connection]
<al2o3-cr> i'm just scanning my local LAN for open ports
_djbkd has joined #ruby
<faces> sequentially or concurrently
<dminuoso> al2o3-cr: Any reason you are not using nmap?
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
<al2o3-cr> dminuoso: just getting more comfy with threads
<al2o3-cr> faces: concurrently
_djbkd has quit [Remote host closed the connection]
hinbody has joined #ruby
_djbkd has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
<dminuoso> al2o3-cr: 4 digits is when threads start becoming a burden though. You could use this to try out a thread pool perhaps.
charliesome has joined #ruby
_djbkd has quit [Remote host closed the connection]
<faces> if it's concurrent then there's not a huge reason to keep the timeout low
bradleyprice has joined #ruby
<dminuoso> ^- indeed.
_djbkd has joined #ruby
<al2o3-cr> this is what i have
_djbkd has quit [Remote host closed the connection]
<al2o3-cr> but it seems really slow
djbkd has quit [K-Lined]
<al2o3-cr> am i doing something wrong?
<dminuoso> al2o3-cr: Yes.
charliesome has quit [Client Quit]
<dminuoso> al2o3-cr: You are throwing all concurrency away by using a single mutex.
miguelfernandes has joined #ruby
<al2o3-cr> oh, ok
<dminuoso> al2o3-cr: All your thousand threads are busy waiting on a single mutex which every single one is trying to lock.
aganov has joined #ruby
ReK2 has quit [Remote host closed the connection]
<al2o3-cr> a thousand threads?
<dminuoso> oh, 8 threads.
SesMan has joined #ruby
<dminuoso> al2o3-cr: The only thing you need to synchronize is STDOUT really.
<al2o3-cr> ah, i see
<dminuoso> al2o3-cr: So just lock the mutex while you puts stuff.
hahuang62 has joined #ruby
<dminuoso> (Well and the queue, but that comes for free)
<al2o3-cr> ok, let me check
<alireza> c
johnzorn has quit [Ping timeout: 258 seconds]
alireza has quit [Quit: WeeChat 1.0.1]
bradleyprice has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
aufi has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
mark_66 has joined #ruby
claudiuinberlin has joined #ruby
<al2o3-cr> that's is a little better :)
aidalgol has joined #ruby
<al2o3-cr> thanks dminuoso :)
<dminuoso> al2o3-cr: Welcome to multinow you have two problemstheading. You use threads to solve a problem and
<dminuoso> :-)
hahuang62 has quit [Ping timeout: 245 seconds]
bihi has quit [Quit: Bye!]
hutch34 has quit [Ping timeout: 240 seconds]
bihi has joined #ruby
Madplatypus has joined #ruby
gbgdev has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 260 seconds]
AnoHito has quit [Quit: Leaving]
swills has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
swills has joined #ruby
* al2o3-cr is off to make a sausage butty with brown sauce
Snickers has joined #ruby
eightbitraptor has joined #ruby
jaguarmagenta has joined #ruby
Anonymoose2 has joined #ruby
<al2o3-cr> is `puts "port #{port}: #{r ? "open" : "closed"}."` frowned upon?
reverberations has quit [Ping timeout: 248 seconds]
dnicole has quit [Remote host closed the connection]
<dminuoso> al2o3-cr: Any code outside of a pure method call inside string interpolation is inelegant at best.
dnicole has joined #ruby
<dminuoso> status = r ? "open" : "closed"; puts "port #{port}: #{status}"
jaguarmagenta has quit [Ping timeout: 265 seconds]
<al2o3-cr> dminuoso: yes, i agree that does look better
pawnbox has quit [Remote host closed the connection]
<dminuoso> al2o3-cr: or perhaps STATE={true => "open", false => "closed" }; puts "port #{port}: #{STATE[r]}"
SuperLag_ has joined #ruby
<al2o3-cr> dminuoso: lovely, thanks again :)
Burgestrand has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
<al2o3-cr> yield is faster then block.call right?
<al2o3-cr> nvm i'll benchmark it
<dminuoso> al2o3-cr: Yes for several reasons.
<dminuoso> al2o3-cr: First binding a block to a proc/lambda itself is more expensive because it involves object creation. Next up yield is a keyword directly glued into Ruby, whereas block.call uses the generic method dispatch mechanism which is slow.
SuperLag has quit [Ping timeout: 256 seconds]
<dminuoso> Under the hood they end up doing the exact same thing, except binding the block to a proc costs overhead, and method calls cost overhead.
<dminuoso> (Effectively a proc/lambda is just an object with a block attached to it so...)
<al2o3-cr> dminuoso: ok great, thanks for the explaination i'm trying to really learn ruby to it's full potential
<al2o3-cr> not just messing about with bits and bobs
gbgdev has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 256 seconds]
lel has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antoniobeyah has quit [Quit: antoniobeyah]
charliesome has joined #ruby
Guest64909 has joined #ruby
beilabs_ has joined #ruby
bradleyprice has joined #ruby
b0mbnet has joined #ruby
beilabs has quit [Ping timeout: 264 seconds]
Humdai has joined #ruby
whathappens has joined #ruby
bradleyprice has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
mikecmpbll has joined #ruby
whathappens has quit [Ping timeout: 248 seconds]
Psy-Q has quit [Quit: ZNC - http://znc.in]
Psy-Q has joined #ruby
Psy-Q has quit [Client Quit]
aupadhye has joined #ruby
anthonym has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
GodFather has quit [Ping timeout: 260 seconds]
Psy-Q has joined #ruby
dnicole has joined #ruby
liulanta_ has quit []
lxsameer has joined #ruby
Silthias has joined #ruby
postmodern has quit [Quit: Leaving]
harai_ has quit [Ping timeout: 258 seconds]
<nofxx> zenspider, which as in /bin/which ? it's 'gst' gnu smalltalk
maattdd has joined #ruby
aero-224 has joined #ruby
ferr1 has joined #ruby
anthonym has left #ruby [#ruby]
montanonic has joined #ruby
SpiffTR has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
codfection has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
konsolebox has joined #ruby
Todiann has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
jsrn_ has joined #ruby
Todiann has quit [Client Quit]
pwnd_nsfw has joined #ruby
ponga has joined #ruby
SpiffTR has quit [Quit: Leaving.]
lenwood has joined #ruby
<zenspider> nofxx: I'd recommend pharo smalltalk
frozengeek____ has joined #ruby
<sts> I'd like to ship a ruby cli application including its gems in a package. How can I best load the required gems (eg. using bundler?) without installing them in a sytem wide ruby LOAD_PATH?
frozengeek____ has quit [Remote host closed the connection]
Anonymoose2 has quit [Ping timeout: 258 seconds]
aidalgol has quit [Remote host closed the connection]
tomphp has joined #ruby
reverberations has joined #ruby
chouhoulis has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
bruce_lee has joined #ruby
Fernando-Basso has joined #ruby
ddffg has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
shayan has joined #ruby
aaronwed1 has joined #ruby
shayan has quit [Client Quit]
shayan has joined #ruby
b0mbnet has quit [Quit: Page closed]
fenre has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Chair has joined #ruby
aero-224 has quit []
SesMan has joined #ruby
marr has joined #ruby
rodfersou has joined #ruby
toretore has joined #ruby
mniip has quit [Ping timeout: 624 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
biberu has joined #ruby
astrobunny has joined #ruby
jgt has quit [Quit: WeeChat 1.4]
SpiffTR has joined #ruby
astrobunny has quit [Remote host closed the connection]
GodFather has joined #ruby
<manveru> sts: you can set GEM_HOME for your app
<manveru> before you require anything
pawnbox has quit [Remote host closed the connection]
Salih has joined #ruby
mniip has joined #ruby
charliesome has joined #ruby
reverberations has quit [Read error: Connection reset by peer]
reverberations has joined #ruby
gbgdev has joined #ruby
Jackneill_ has joined #ruby
Beams has joined #ruby
shayan has quit [Quit: shayan]
shayan has joined #ruby
pawnbox has joined #ruby
jaiks has quit [Ping timeout: 258 seconds]
shayan has quit [Quit: shayan]
FredWest has joined #ruby
shayan has joined #ruby
hahuang62 has joined #ruby
ruby-lang426 has joined #ruby
FredWest has quit [Remote host closed the connection]
FredWest has joined #ruby
ruby-lang426 has quit [Client Quit]
hutch34 has joined #ruby
IotaSpencer has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
fxa90id has quit [Read error: Connection reset by peer]
fxa90id has joined #ruby
hahuang62 has quit [Ping timeout: 250 seconds]
eightbitraptor has quit [Ping timeout: 268 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 240 seconds]
jaiks has joined #ruby
bradleyprice has joined #ruby
ldnunes has joined #ruby
workmad3 has joined #ruby
Silox| has joined #ruby
FredWest is now known as IanHuntley
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
pawnbox has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
SpiffTR has quit [Quit: Leaving.]
fxa90id has quit [Quit: Leaving]
miguelfernandes has quit [Ping timeout: 268 seconds]
jaguarmagenta has quit [Ping timeout: 265 seconds]
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
terens has joined #ruby
<sts> manveru: meanwhile I found this works amazingly well :) https://gist.github.com/sts/88e0084b942bfcefe53c5663ef673777
bturker has joined #ruby
Cohedrin has joined #ruby
nankyokusei has joined #ruby
frozengeek____ has joined #ruby
pawnbox has joined #ruby
eightbitraptor has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
is_null has joined #ruby
is_null has quit [Quit: github.com/jpic]
is_null has joined #ruby
tens0r has joined #ruby
shayan has quit [Quit: shayan]
gbgdev_ has joined #ruby
gbgdev has quit [Ping timeout: 252 seconds]
shayan has joined #ruby
whathappens has joined #ruby
frozengeek____ has quit [Quit: frozengeek____]
frozengeek has joined #ruby
SpiffTR has joined #ruby
olspookishmagus has joined #ruby
whathappens has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
d0nn1e has quit [Ping timeout: 250 seconds]
graywolf has quit [Quit: Page closed]
pawnbox has joined #ruby
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d0nn1e has joined #ruby
Devalo has joined #ruby
montanonic has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
fenre has quit [Read error: Connection reset by peer]
fenre_ has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
bradleyprice has quit [Remote host closed the connection]
ryan_notabot has joined #ruby
bradleyprice has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fenre has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
fenre_ has quit [Ping timeout: 252 seconds]
dcluna has quit [Ping timeout: 245 seconds]
braincrash has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
shayan has quit [Quit: shayan]
shayan has joined #ruby
codfection has quit [Remote host closed the connection]
codfection has joined #ruby
shayan has quit [Client Quit]
eightbitraptor has quit [Ping timeout: 250 seconds]
SpiffTR has quit [Quit: Leaving.]
SpiffTR has joined #ruby
<is_null> hi all !! for some reason i still have the 1.13.5 version of bundler even though the explicit installation of 1.12.5 passes ! http://dpaste.com/3KNNYX7 any clue please ?
deadnull has joined #ruby
<toretore> is_null: gem list bundler
Jackneill_ has quit [Ping timeout: 246 seconds]
Jackneill_ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
<zenspider> is_null: 1.12.5 < 1.13.5... it always picks up the latest by default
<is_null> niceeee, thanks
GodFather has quit [Remote host closed the connection]
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
eightbitraptor has joined #ruby
maattdd has quit [Ping timeout: 264 seconds]
lenwood has joined #ruby
shayan has joined #ruby
Axy has joined #ruby
montanonic has quit [Ping timeout: 258 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
Mia has quit [Ping timeout: 265 seconds]
GodFather has joined #ruby
shayan has quit [Client Quit]
beilabs_ has quit [Ping timeout: 264 seconds]
pawnbox_ has joined #ruby
shayan has joined #ruby
whathappens has joined #ruby
marr has quit [Ping timeout: 248 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
whathappens has quit [Ping timeout: 248 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
shayan has quit [Quit: shayan]
shayan has joined #ruby
sparch has quit [Ping timeout: 268 seconds]
beilabs has joined #ruby
shayan has quit [Client Quit]
testuser2 has joined #ruby
<testuser2> hi
shayan has joined #ruby
<testuser2> i am doing array = [one, two, three] how can i add four and six onl if condition matches?
<testuser2> append*
Hink has quit [Quit: quit from client]
shayan has quit [Client Quit]
<agent_white> dminuoso: That little bit above about concurrency/blocks... +1. I got some learning listening to that.
<dminuoso> testuser2: I recommend a ruby book of your chosing.
<testuser2> ok
<dminuoso> ?books
<ruby[bot]> You can find a list of recommended books at http://ruby-community.com/pages/links
shayan has joined #ruby
Hink has joined #ruby
SesMan has joined #ruby
hahuang62 has joined #ruby
koooge has quit [Quit: Leaving...]
hutch34 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
shayan has quit [Quit: shayan]
hahuang62 has quit [Ping timeout: 246 seconds]
Burgestrand has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
shayan has joined #ruby
fenre_ has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
fenre has quit [Ping timeout: 248 seconds]
aaronwed1 has quit [Quit: Lost terminal]
shayan has quit [Client Quit]
maattdd has joined #ruby
jaguarmagenta has joined #ruby
shayan has joined #ruby
dcluna has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
marr has joined #ruby
jaguarmagenta has quit [Ping timeout: 268 seconds]
jaguarmagenta has joined #ruby
shayan has quit [Quit: shayan]
e1z0 has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
shayan has joined #ruby
fenre has joined #ruby
shinnya has joined #ruby
fenre_ has quit [Ping timeout: 256 seconds]
johnmccabe has joined #ruby
c355e3b has joined #ruby
whathappens has joined #ruby
prestorium has joined #ruby
rwb has quit [Ping timeout: 265 seconds]
e1z0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
XV8 has joined #ruby
sdothum has joined #ruby
codfection has quit [Remote host closed the connection]
johnmilton has joined #ruby
jaguarmagenta has joined #ruby
SpiffTR has quit [Quit: Leaving.]
jaguarmagenta has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnzorn has joined #ruby
workmad3 has joined #ruby
SpiffTR has joined #ruby
maattdd has quit [Ping timeout: 265 seconds]
Gravious has joined #ruby
Hyuk has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
maattdd has joined #ruby
workmad3 has joined #ruby
testuser2 has quit [Quit: leaving]
ineb has quit [Remote host closed the connection]
shayan has quit [Quit: shayan]
fmcgeough has joined #ruby
tdump has joined #ruby
eightbitraptor has quit [Read error: Connection reset by peer]
<tdump> I'm trying to solve a project euler problem. I thought it was straight forward, but my code is hanging during a while loop, and I'm just not seeing what the issue is. Could someone give me a hint? Code is at https://git.io/v1PNX
maattdd has quit [Ping timeout: 248 seconds]
brendan- has joined #ruby
sparch has joined #ruby
shayan has joined #ruby
<Gravious> tdump, the hanging issue is likely due to that being quite an inefficient way to calculate primes
<Gravious> tdump, if you add a puts(x) in the loop body, you'll see it's running
gnufied has joined #ruby
<tdump> Gravious cool. I should have thought of that. i thought there might have been something wrong with the logic or syntax. I'll try to make it more efficient. Thanks
<Gravious> tdump, that's ok glad it helped :)
tens0r has quit [Quit: tens0r]
minimalism has quit [Ping timeout: 250 seconds]
raul782 has joined #ruby
blackbom1 has quit [Ping timeout: 264 seconds]
codfection has joined #ruby
pwnd_nsfw` has joined #ruby
pawnbox has joined #ruby
<tdump> Gravious i changed the range to 2..(arg / 2) and it's way faster.
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
<Gravious> :)
blackbom1 has joined #ruby
minimalism has joined #ruby
SpiffTR has quit [Quit: Leaving.]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
ineb has joined #ruby
tyang has joined #ruby
wtf_rspec has joined #ruby
hightower3 has quit [Ping timeout: 252 seconds]
<wtf_rspec> If I run default rspec like `rspec --pattern "**{,/*/**}/*_spec.rb"` some of my (serverspec) tests fail. but if i run with a very specific .rb file such as `rspec spec/path/to/test__spec.rb` it passes. Does anyone have any insight on this?
cibs has quit [Ping timeout: 268 seconds]
<dminuoso> wtf_rspec: Do you do any test setup with missing or incorrect teardowns that provide tests with a bad state if run in the wrong order?
<dminuoso> (If that makes any sense)
hightower2 has joined #ruby
cibs has joined #ruby
<wtf_rspec> dminuoso: aha! yeah i just tried removing every other test and now the "broken" one is passing regardless
<wtf_rspec> so it is definitely some sort of dependency being messed with in another test
<wtf_rspec> thanks dminuoso :) sometimes it's right in front of you and you don't see it, ha
jhack has joined #ruby
<dminuoso> wtf_rspec: No worries. That was one of the first issues I had with rspec on my rails project - now I use transactional fixtures to ensure that every test is wrapped in a transaction that is rolled back at the end - to ensure that every test sees the same "initial seed state database" in the same way.
harai_ has joined #ruby
<dminuoso> Instead of a test leaving the database in a dirty state
Ken has joined #ruby
cdg has joined #ruby
Ken is now known as Guest14755
millerti has joined #ruby
ramortegui has joined #ruby
<wtf_rspec> oh nice. That sounds like something I should do especially now with these tests touching things I didn't expect. Probably should do it regardless ha
<dminuoso> wtf_rspec: Is this for a rails application?
<dminuoso> wtf_rspec: if so the generated rails_helper should set transactional fixtures by default.
maattdd has joined #ruby
harai_ has quit [Ping timeout: 258 seconds]
<wtf_rspec> dminuoso: No, it's for some docker containers that I'm validating through serverspec. But some tests are affecting more containers than I expected. Thanks for the link though. That might come in handy on some other stuff.
terens has quit [Remote host closed the connection]
hahuang62 has joined #ruby
raul782 has quit [Remote host closed the connection]
bmurt has joined #ruby
johnmilton has quit [Quit: Namaste]
lxsameer has quit [Quit: WeeChat 1.6]
hahuang62 has quit [Ping timeout: 258 seconds]
johnmilton has joined #ruby
saneax is now known as saneax-_-|AFK
jaruga___ has quit [Quit: jaruga___]
jaruga____ has joined #ruby
jaruga____ is now known as jaruga___
alxndr has left #ruby [#ruby]
DLSteve has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lenwood has quit [Ping timeout: 258 seconds]
armin_ has joined #ruby
armin_ is now known as armin
iMadper has quit [Remote host closed the connection]
millerti has joined #ruby
armin has quit [Client Quit]
armin has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
bradleyprice has joined #ruby
bturker has joined #ruby
armin has quit [Client Quit]
armin has joined #ruby
nankyokusei has joined #ruby
rodfersou is now known as rodfersou|afk
Axy has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
cdg has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
armin has quit [Quit: relate to the matter as i drop the bomb]
armin has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
nofxx has quit [Ping timeout: 240 seconds]
cats has quit [Remote host closed the connection]
XV8 has joined #ruby
<dminuoso> >> def m(arg=nil, key: val); p arg; end; m(key: :val)
<ruby[bot]> dminuoso: # => nil ...check link for more (https://eval.in/696407)
<dminuoso> Is there any official documentation in these rules?
<dminuoso> Something that covers the entirety of positional arguments, keyword arguments, rest arguments, default values...
griffindy has joined #ruby
whathappens has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Skarlso has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
yitsushi has quit [Ping timeout: 246 seconds]
OTORelic has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
Mia has quit [Ping timeout: 268 seconds]
jhack has quit [Quit: jhack]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
hoho has joined #ruby
Devalo has joined #ruby
Axy has quit [Ping timeout: 248 seconds]
<hoho> hello guys
Snickers has quit [Ping timeout: 248 seconds]
<hoho> i need help with a nested loop
<hoho> but my code is long
<hoho> answer
andikr has quit [Remote host closed the connection]
<hoho> apprently i managed to do it
<hoho> but am i writing an long code
<hoho> haha :)
Devalo has quit [Ping timeout: 258 seconds]
sts has left #ruby [#ruby]
<hoho> ?
OTORelic1 has joined #ruby
fenre has quit [Ping timeout: 258 seconds]
shinnya has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
OTORelic has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
Mia has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
antoniobeyah has joined #ruby
JoshS has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
hoho has quit [Quit: Page closed]
andrzeju_ has joined #ruby
<andrzeju_> hey
<andrzeju_> I cann't find doc about big number notation
<andrzeju_> ex. 2_123
brent__ has joined #ruby
<andrzeju_> why so?
braincrash has joined #ruby
haxrbyte has joined #ruby
gbgdev has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<Yxhuvud> 1___1 == 11
<jsaak> you can put as many _ as you want, it is only for you
<Yxhuvud> or well, 1_1 is.
gbgdev_ has quit [Ping timeout: 246 seconds]
jhack has joined #ruby
Mia has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
jhack_ has joined #ruby
konsolebox has joined #ruby
Axy has quit [Ping timeout: 258 seconds]
Guest64909 has quit [Remote host closed the connection]
antoniobeyah has quit [Quit: antoniobeyah]
jhack has quit [Ping timeout: 265 seconds]
aufi has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Remote host closed the connection]
jhack_ has quit [Ping timeout: 258 seconds]
[gmi] has joined #ruby
claudiuinberlin has quit []
nettoweb has joined #ruby
jt__ has joined #ruby
millerti has joined #ruby
slackbotgz has joined #ruby
raul782 has quit [Remote host closed the connection]
saneax-_-|AFK is now known as saneax
konsolebox has quit [Quit: Leaving]
AlexRussia has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
jhack has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
raul782 has quit [Remote host closed the connection]
andikr has joined #ruby
treaki_ has quit [Ping timeout: 258 seconds]
Snickers has joined #ruby
millerti has joined #ruby
Immune_ has joined #ruby
tercenya_ has joined #ruby
malconis has joined #ruby
tercenya has quit [Ping timeout: 248 seconds]
immune has quit [Ping timeout: 248 seconds]
Axy has joined #ruby
malconis has quit [Client Quit]
raul782 has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
synthroi_ has joined #ruby
conta has quit [Ping timeout: 245 seconds]
eightbitraptor has joined #ruby
enterprisey has joined #ruby
hahuang62 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
synthroid has quit [Ping timeout: 248 seconds]
Mia has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
mikecmpbll has joined #ruby
Axy has quit [Ping timeout: 265 seconds]
<baweaver> hoho: 5.times { |x| puts (1..10).map { |y| (x + 1) * y }.join(' ') }
hahuang62 has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
SpiffTR has quit [Quit: Leaving.]
pjaspers has quit [Ping timeout: 245 seconds]
antoniobeyah has joined #ruby
anuxivm has joined #ruby
tristanp has quit []
chopin has joined #ruby
tristanp has joined #ruby
Axy has joined #ruby
Mia has quit [Ping timeout: 265 seconds]
eightbitraptor has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
raatiniemi has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
teclator has quit [Remote host closed the connection]
pjaspers has joined #ruby
polishdub has joined #ruby
teclator has joined #ruby
newdan has joined #ruby
<newdan> Even though my Rakefile has require 'shellwords' at the top, I keep getting NoMethodError: undefined method `shelljoin' when I try to run tasks
dionysus69 has joined #ruby
<newdan> Even weirder, I can do load 'Rakefile' in irb, then Rrake::Task[:sometask].invoke and it all works as expected
<newdan> (well, assuming I spell Rake correctly)
harai_ has joined #ruby
sp4rrow has joined #ruby
bturker has joined #ruby
konsolebox has joined #ruby
cdg_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
cdg has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<newdan> Oh, huh. I guess newer versions of Rake just don't have FileList#shellwords
bturker has quit [Ping timeout: 256 seconds]
GinoManWrx has joined #ruby
<newdan> Or older versions. Versions different than the one I had been using
GinoManWrx has quit [Read error: Connection reset by peer]
GinoManWrx has joined #ruby
shayan has quit [Quit: shayan]
GinoManWrx has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 260 seconds]
raul782 has quit [Remote host closed the connection]
GinoManWrx has joined #ruby
GinoManWorks has quit [Ping timeout: 260 seconds]
jhack has quit [Ping timeout: 258 seconds]
raul782 has joined #ruby
shayan has joined #ruby
aufi has joined #ruby
last_staff has quit [Quit: last_staff]
[Butch] has joined #ruby
chouhoulis has joined #ruby
whathappens has joined #ruby
jhack has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
malconis has joined #ruby
amclain has joined #ruby
aryaching has joined #ruby
enterprisey has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 265 seconds]
jsrn_ has quit [Quit: Leaving]
Sidoniuns has joined #ruby
ponga has quit []
Sidoniuns has quit [Client Quit]
malconis has quit [Read error: Connection reset by peer]
raul782 has quit [Remote host closed the connection]
Sirithcam has joined #ruby
synthroi_ has quit [Remote host closed the connection]
jshjsh has joined #ruby
balazs has joined #ruby
raul782 has joined #ruby
JoshS has quit [Ping timeout: 248 seconds]
Dimik has joined #ruby
anuxivm has quit [Quit: ¡Saliendo!]
wtf_rspec has quit [Ping timeout: 260 seconds]
shayan has quit [Quit: shayan]
babblebre has joined #ruby
kuSuSE has joined #ruby
SpiffTR has joined #ruby
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Chair has quit [Ping timeout: 258 seconds]
jaguarmagenta has joined #ruby
mark_66 has quit [Remote host closed the connection]
crankharder has quit [Quit: leaving]
crankharder has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
Sirithcam has quit [Ping timeout: 248 seconds]
sparch has quit [Ping timeout: 248 seconds]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
Lucky_ABA has joined #ruby
Sirithcam has joined #ruby
raul782 has quit [Remote host closed the connection]
shayan has joined #ruby
Ishido has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
SpiffTR has quit [Quit: Leaving.]
sp4rrow has joined #ruby
synthroid has joined #ruby
preyalone has joined #ruby
cyphase has joined #ruby
sphex has quit [Ping timeout: 240 seconds]
tlaxkit has joined #ruby
raul782 has joined #ruby
jt__ has quit [Remote host closed the connection]
yaw has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
sparch has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
muelleme has joined #ruby
jaguarmagenta has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 258 seconds]
matugm has joined #ruby
matugm has quit [Changing host]
matugm has joined #ruby
muelleme has quit [Ping timeout: 248 seconds]
Mia has joined #ruby
<matugm> Hello, is there a way to step through the execution of the Ruby VM? I know you can see the instructions with InstructionSequence, but I want to be able to see the values on the stack.
jaguarmagenta has quit [Remote host closed the connection]
SeepingN has joined #ruby
Axy has quit [Ping timeout: 258 seconds]
Karunamon|2 is now known as Karunamon
jaguarmagenta has joined #ruby
maddmaxx has joined #ruby
aupadhye has quit [Quit: Leaving]
sphex has joined #ruby
lxsameer has joined #ruby
yaw has quit [Quit: Lost terminal]
<matugm> I'm looking for the low-level stuff, not just stepping through application code :)
ramunas_ has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
rodfersou|afk is now known as rodfersou
kith has joined #ruby
hahuang62 has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
ramunas_ has quit [Quit: leaving]
bradleyprice has joined #ruby
rakm has joined #ruby
marxarelli has joined #ruby
raul782 has quit [Remote host closed the connection]
<matugm> Been playing around with gdb all day, but not sure where should I set a breakpoint or where exactly I should be looking.
Humdai has quit [Quit: Leaving]
bradleyprice has quit [Ping timeout: 256 seconds]
sdwrage has quit [Quit: Leaving]
<dminuoso> matugm: Give me a moment, Ill show you.
mscs has quit [Ping timeout: 260 seconds]
<matugm> Ok :)
suchness has joined #ruby
<suchness> I am trying to install an app on a server and am running into quite a strange error. When trying to run migrations, I am getting this error: libruby.so.2.1: cannot open shared object file: No such file or directory - /srv/www/api/shared/vendor/bundle/ruby/2.2/extensions/x86_64-linux/2.2/tiny_tds-0.9.5.beta.10/tiny_tds/tiny_tds.so However when looking on the server the file does exist there. Does anyone have some insight on t
<suchness> his?
<suchness> xposted
millerti has joined #ruby
<dminuoso> matugm: the VMDEBUG macro is what you want to compile Ruby with.
frozengeek has quit [Quit: frozengeek]
ascarter has joined #ruby
jhack has quit [Ping timeout: 256 seconds]
<dminuoso> suchness: My first instinct: Is perhaps something like apparmor being annoying? What does syslog say?
whathappens has joined #ruby
dklima_ has joined #ruby
<dminuoso> suchness: also what does "file /srv/www/api/shared/vendor/bundle/ruby/2.2/extensions/x86_64-linux/2.2/tiny_tds-0.9.5.beta.10/tiny_tds/tiny_tds.so" return? Copy paste this - do not type or tab complete.
jhack has joined #ruby
<dminuoso> Nevermind.
<dminuoso> Crossposting at its finest.
sparch has quit [Ping timeout: 252 seconds]
aufi has quit [Quit: Leaving]
synthroi_ has joined #ruby
<dminuoso> matugm: This is what Ruby developers use.
<matugm> @dminuoso, Thanks. How do I enable it?
bocaneri has quit [Read error: Connection reset by peer]
<matugm> What flags do I need for ./configure?
lxsameer has quit [Ping timeout: 265 seconds]
synthroid has quit [Ping timeout: 248 seconds]
raul782 has joined #ruby
<dminuoso> matugm: just pass CFLAGS=-DVMDEBUG=2 (replace with whatever debug level you desire) to make
<matugm> @dminuoso: Thank you. I will try that :)
enterprisey has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
splud has joined #ruby
tdump has quit [Quit: Textual IRC Client: www.textualapp.com]
futilegames has quit [Quit: futilegames]
Beams has quit [Quit: .]
<suchness> dminuoso: I got the answer in the other chat, it's my ruby version looking in the wrong place.
<dminuoso> suchness: just dont crosspost. no issue can be *that* urgent you need to simultaneously ask in a gazillion places. if it was, hire a consultant.
<suchness> dminuoso: Fuck yourself asshole.
<dminuoso> !ops
<ruby[bot]> dminuoso: ops currently in #ruby: adaedra, Aria, havenwood, Radar, apeiros, baweaver, helpa, jhass, ljarvis, matthewd, miah, ruby[bot], workmad3, zenspider and zzak
<baweaver> !troll suchness
suchness was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
djbkd has joined #ruby
<baweaver> Hrm, maybe not troll, but still uncalled for.
Kazinho has joined #ruby
symm- has joined #ruby
scootaloo has joined #ruby
Sirithcam has quit [Ping timeout: 252 seconds]
symm- has quit [Client Quit]
Kazinho has quit [Client Quit]
Kazinho has joined #ruby
Kazinho has quit [Client Quit]
symm- has joined #ruby
lxsameer has joined #ruby
Sirithcam has joined #ruby
shayan has quit [Quit: shayan]
<baweaver> dminuoso: ?crosspost
zotherstupidguy has joined #ruby
<baweaver> ?crosspost
<ruby[bot]> Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<baweaver> use that next time.
<zotherstupidguy> how to mate the last occurence of a word in a file? gsub
<zotherstupidguy> match*
cschneid_ has joined #ruby
balazs_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<baweaver> How to give more details on what the problem is?
<dminuoso> baweaver: He kind of did tell, but neglecting to inform other channels that a solution has been found kind of angered me.
<dminuoso> zotherstupidguy: /\s(\w+)\Z/ ?
* baweaver shrugs
whathappens has joined #ruby
<zotherstupidguy> dminuoso ;)
frozengeek has joined #ruby
<dminuoso> might be \z though - I cant remember this stuff.
IanHuntley has quit [Remote host closed the connection]
<baweaver> rubular.com
<baweaver> yep, lowercase z
* baweaver can never remember either
mjuszczak has quit []
IanHuntley has joined #ruby
<dminuoso> baweaver: I wish it was consistent with beginning of string.
<dminuoso> Then I could remember.
<baweaver> It's regex
<baweaver> that's like asking for Javascript to be sane
balazs__ has joined #ruby
dvinciguerra has joined #ruby
<scootaloo> Ah, I arrive at the right moment for the troll on other languages.
<scootaloo> !popcorn
pawnbox has quit [Ping timeout: 260 seconds]
balazs has quit [Ping timeout: 248 seconds]
maattdd has joined #ruby
<scootaloo> For A-z, it's easy: you start by a capital letter and end with a lowercase letter, like your standard sentence.
balazs_ has quit [Ping timeout: 252 seconds]
<baweaver> It's Ez
* baweaver laughs at his own bad jokes
<scootaloo> At least one person'd have laughed.
c355e3b has joined #ruby
sp4rrow has quit [Quit: Textual]
IanHuntley has quit [Ping timeout: 264 seconds]
ruby-lang409 has joined #ruby
<ruby-lang409> can anyone gold this smaller?
malconis has joined #ruby
<ruby-lang409> gets;p gets.split.map(&:to_i).min_by{|y|[y.abs,-y]}.to_i
<ruby-lang409> what trick am I missing to reduce the char size here?
bturker has joined #ruby
<scootaloo> It's a code golf?
<ruby-lang409> (I have to have the 'empty' gets in front
<ruby-lang409> yeah
<ruby-lang409> there must be a way to shorted the map to_i
<ruby-lang409> but im stumped :D
<ruby-lang409> someone did it in 30 chars!
<baweaver> what's the problem?
<ruby-lang409> gets;p gets.split.map(&:to_i).min_by{|y|[y.abs,-y]}.to_i is too long :D
<baweaver> na, base problem
djbkd has quit [Read error: Connection reset by peer]
<baweaver> the end to_i is redundant
nankyokusei has joined #ruby
<ruby-lang409> no it isnt, if there are no values it forces a 0
sepp2k has joined #ruby
<ruby-lang409> i could use ""0 but its the same chars
<ruby-lang409> ||0
<baweaver> granted.
<scootaloo> .to_i
<scootaloo> it is?
<ruby-lang409> there is a test case for when there are no values to have a 0
<scootaloo> what's the original thing to be done here?
<ruby-lang409> p is short for puts
<ruby-lang409> but I dont see one for gets
<scootaloo> p != puts
<baweaver> p and puts are different
<ruby-lang409> 1 -2 -8 4 5
<baweaver> subtle in this case
<adam12> Maybe they are using $_ somehow
<ruby-lang409> p = puts without an endl
<ruby-lang409> :D
<scootaloo> no
raul782 has quit [Remote host closed the connection]
<scootaloo> p = .tap { |o| puts o.inspect }
<ruby-lang409> p is short for print
<baweaver> nope
<scootaloo> try p with a string
bturker has quit [Ping timeout: 256 seconds]
<baweaver> Anyways, the problem is to get the lowest number?
<ruby-lang409> closest to 0 favoring positive nums
<ruby-lang409> and in under 40 chars
Olipro has quit [Ping timeout: 260 seconds]
<baweaver> then why the abs?
nankyokusei has quit [Ping timeout: 252 seconds]
<ruby-lang409> without the abs it favors small
<ruby-lang409> negative
<ruby-lang409> it needs to favor positive
<ruby-lang409> so -1 and 1 would favor 1
Snickers has quit [Quit: Snickers]
<ruby-lang409> if you are interested, the problem is here https://www.codingame.com/ide/puzzle/temperature-code-golf
<baweaver> '1 -2 -8 4 5'.split.sort_by{|x|0-x.to_i}[0]
<baweaver> >>'1 -2 -8 4 5'.split.sort_by{|x|0-x.to_i}[0]
<ruby[bot]> baweaver: # => "5" (https://eval.in/696506)
<baweaver> heh, so no on that then.
<baweaver> I'd have to play with sort to make it do bad things
jtdoncas has joined #ruby
raul782 has joined #ruby
<baweaver> >>'1 -2 -8 4 5'.split.sort_by{|x|-(0-x.to_i)}[0]
<ruby[bot]> baweaver: # => "-8" (https://eval.in/696512)
<baweaver> yep, back to repl then
<ruby-lang409> yeah that returns strings
<ruby-lang409> which wont pass
<ruby-lang409> ty though
<baweaver> sort_by will probably help.
<baweaver> >>'1 -2 -8 4 5'.split.sort_by{|x|(0-x.to_i).abs}[0].to_i
<ruby[bot]> baweaver: # => 1 (https://eval.in/696513)
[Butch] has quit [Quit: I'm out . . .]
<z64> >>[-1, 5, 4, 2, 1, -5].reject { |i| i < 0 }.min
<ruby[bot]> z64: # => 1 (https://eval.in/696514)
djbkd has joined #ruby
Olipro has joined #ruby
<baweaver> -1 vs 2, no 1
<baweaver> it'll fail
<ruby-lang409> gets;p gets.split.sort_by{|x|(0-x.to_i).abs}[0].to_i
<ruby-lang409> 55 chars
<ruby-lang409> same :D
Lucky_ABA has quit [Read error: Connection reset by peer]
Olipro has quit [Max SendQ exceeded]
psychicist__ has joined #ruby
sp4rrow has joined #ruby
<baweaver> >>'1 -2 -8 4 5'.split.min_by{|x|(0-x.to_i).abs}[0].to_i
<ruby[bot]> baweaver: # => 1 (https://eval.in/696516)
<baweaver> one down :D
Olipro has joined #ruby
Olipro has quit [Max SendQ exceeded]
hotpancakes has joined #ruby
<antoniobeyah> >>''.split.min_by{|x|(0-x.to_i).abs}[0].to_i
<ruby[bot]> antoniobeyah: # => undefined method `[]' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/696517)
<antoniobeyah> “Display 0 (zero) if no temperatures are provided. Otherwise, display the temperature closest to 0.”
<baweaver> ack, did it wrong
<baweaver> >>'1 -2 -8 4 5'.split.min_by{|x|(0-x.to_i).abs}.to_i
<ruby[bot]> baweaver: # => 1 (https://eval.in/696518)
djbkd has quit [Read error: Connection reset by peer]
hotpancakes has quit [Client Quit]
djbkd has joined #ruby
<antoniobeyah> no temp case
ruby-lang409 has quit [Ping timeout: 260 seconds]
malconis has quit [Read error: Connection reset by peer]
<baweaver> >>''.split.min_by{|x|(0-x.to_i).abs}.to_i
<ruby[bot]> baweaver: # => 0 (https://eval.in/696519)
<antoniobeyah> hmm wonder why that failed when I pasted that
* antoniobeyah scratches head
<antoniobeyah> oh, you removed the array access
<antoniobeyah> ok back to work for me
<baweaver> $<.read[1].split.min_by{|x|(0-x.to_i).abs}[0].to_i
<antoniobeyah> back to “java.io.NotSerializableException: groovy.json.internal.LazyMap"
<antoniobeyah> fun fun
<baweaver> $_.split.min_by{|x|(0-x.to_i).abs}[0].to_i
raul782 has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<baweaver> >> 'p $_.split.min_by{|x|(0-x.to_i).abs}[0].to_i'.length
<ruby[bot]> baweaver: # => 44 (https://eval.in/696520)
<baweaver> >> 'p $_.split.min_by{|x|(0-x.to_i).abs}.to_i'.length
<ruby[bot]> baweaver: # => 41 (https://eval.in/696521)
malconis has joined #ruby
<baweaver> need to see about getting less than that
hotpanca_ has joined #ruby
Lord_of_Life has quit [Excess Flood]
whathappens has quit [Read error: Connection reset by peer]
malconis has quit [Read error: Connection reset by peer]
malconis has joined #ruby
whathappens has joined #ruby
Lord_of_Life has joined #ruby
[Butch] has joined #ruby
enterprisey has quit [Remote host closed the connection]
<hanmac> i am the only one that thinks that "(0-x.to_i).abs" doesn't make any sense?
<z64> o/
<baweaver> distance from 0
<hanmac> baweaver: why not just x.to_i.abs ?
<baweaver> (0 - 5).abs -> 5
<z64> wat
<ytti> 6/win 13
<al2o3-cr> +1 hanmac
<baweaver> true, not paying attention
<baweaver> >> 'p $_.split.min_by{|x|x.to_i.abs}.to_i'.length
<ruby[bot]> baweaver: # => 37 (https://eval.in/696523)
andikr has quit [Remote host closed the connection]
mjuszczak has joined #ruby
<al2o3-cr> #size
douglascorrea has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.6]
<baweaver> in this case I'm just checking length, not golfing, though point
<al2o3-cr> ah, k
raul782 has joined #ruby
Sirithcam has quit [Ping timeout: 250 seconds]
<baweaver> If there were a shorter split or to_i map...
<baweaver> the end to_i is for empty strings
<baweaver> >> 'p $_.split.min_by{|x|x.to_i.abs}||0'.length
<ruby[bot]> baweaver: # => 35 (https://eval.in/696524)
XV8 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
<hanmac> baweaver: only one char more:
<hanmac> >> 'p $_.split.map(&:to_i).min_by(&:abs)'.length
<ruby[bot]> hanmac: # => 36 (https://eval.in/696525)
raul782 has quit [Remote host closed the connection]
maattdd has quit [Ping timeout: 248 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> yeah, what I'd give for a make int list from string shortcut
hotpanca_ has quit []
<hanmac> baweaver: there is scanf but it isnt much what you want, ne?
<baweaver> some ruby-lang user shower up and asked how to shorten it
workmad3 has quit [Ping timeout: 264 seconds]
<baweaver> so in typical #ruby fashion it's now a game
duderonomy has joined #ruby
<baweaver> also hanmac, empty string case
Silox| has quit [Quit: Connection closed for inactivity]
sphex has quit [Ping timeout: 258 seconds]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sphex has joined #ruby
muelleme has joined #ruby
SuperLag_ is now known as SuperLag
SuperLag has quit [Changing host]
SuperLag has joined #ruby
scootaloo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jackneill_ has quit [Remote host closed the connection]
Slown has joined #ruby
<Slown> Hello guys
deadnull has quit [Quit: Bye]
<Slown> do you know a book to learn ruby fastly ?
<Slown> and simply ?
lenwood has joined #ruby
<dcluna> Slown: Eloquent Ruby is nice
<baweaver> Depends on your experience
<Slown> newbie
<Slown> :p
<baweaver> Then fast and simple is out of your reach more than likely.
nettoweb has joined #ruby
<baweaver> how long have you been programming and what other languages do you know?
<Slown> 5 years
<Slown> C, C#, C++, some python
<baweaver> 5 years with that background does not a newbie make
<Slown> with ruby I mean
<baweaver> professionally or as a hobby?
<Slown> the second answer
<baweaver> learnxinyminutes is the fastest route if you're a pro.
<baweaver> Eloquent Ruby is probably the best book to go through
gbgdev has quit [Remote host closed the connection]
scootaloo has joined #ruby
<baweaver> If you know Python then Ruby is fairly trivial.
<baweaver> scootaloo: new nick?
<hanmac> i compare python and ruby like twin sisters ;P (ruby is the more meaner one xD)
<scootaloo> Not really
<Slown> meaner ?
<Slown> why is that ?
Gravious has quit [Ping timeout: 258 seconds]
<baweaver> Python is the compulsively neat OCD one that has to have everything in order and done one way
<baweaver> Ruby is the laid back type B
nettoweb has quit [Max SendQ exceeded]
<baweaver> so not sure I get how it'd be "meaner"
<dminuoso> OCD is good for code though. You better not have me review your code if you slack.
<dminuoso> :-P
nettoweb has joined #ruby
pawnbox has joined #ruby
<baweaver> Not saying it isn't
<Slown> so why are your prefering ruby ?
<dminuoso> Slown: I dont.
<baweaver> just that Python and Ruby, while in the same domain and closely related, are two polar opposites in a lot of philosophy.
nettoweb has quit [Read error: Connection reset by peer]
<hanmac> i like this evil ruby thing https://github.com/yugui/evil-ruby even if its totally outdated
djbkd has quit [Remote host closed the connection]
nettoweb has joined #ruby
psychicist__ has quit [Ping timeout: 245 seconds]
<dminuoso> Slown: It's easy to get into, but it's inadequate for writing serious software projects. As such it's really awesome for tooling.
djbkd has joined #ruby
<Slown> ok
<dminuoso> That's my 2 seconds on it.
<dminuoso> cents.
<SeepingN> runs an entire web site which talks to millions of linux boxes every 5 minutes, here
djbkd has quit [Read error: Connection reset by peer]
<hanmac> isnt it in python "there is one way to do it" while in ruby "there are MANY ways to do it" ?
<SeepingN> (data storage had to be moved to Amazon's AWS and some java helpers, though)
djbkd has joined #ruby
malconis has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
jcao219 has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
IanHuntley has joined #ruby
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
nettoweb1 has joined #ruby
blackbom1 has quit [Ping timeout: 256 seconds]
kuSuSE has quit [Ping timeout: 250 seconds]
blackbombay has joined #ruby
malconis has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[gmi] has quit [Quit: Leaving]
<matugm> Any ideas on how can I fix this?
<matugm> /home/matu/. rubies/ruby-2.4.0- rc1/lib/fileutils. rb:90:in ‘<module: FileUtils>’ : method ‘inspect’ called on unexpected T_IMEMO object (0x00000001dc1af8 flags=0x701a) (NotlmplementedError)
symm- has quit [Quit: Leaving...]
hotpancakes has joined #ruby
<matugm> While compiling with VMDEBUG=3
splud has quit [Read error: Connection reset by peer]
scootaloo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
symm- has joined #ruby
splud has joined #ruby
djbkd_ has joined #ruby
djbkd has quit [Remote host closed the connection]
Olipro has joined #ruby
djbkd has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
Guest40 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
ascarter has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Snickers has joined #ruby
Devalo has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
synthroid has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
IanHuntley has quit [Quit: ragequit]
<Guest40> Hi. Anyone have suggestions for promoting a new gem prototype for feedback?
hotpancakes has joined #ruby
antoniobeyah has joined #ruby
synthroi_ has quit [Ping timeout: 258 seconds]
jshjsh has quit [Ping timeout: 268 seconds]
douglascorrea has quit [Remote host closed the connection]
douglascorrea has joined #ruby
Guest40 has quit [Ping timeout: 240 seconds]
reverberations has quit [Read error: Connection reset by peer]
maattdd has joined #ruby
reverberations has joined #ruby
cats has joined #ruby
scootaloo has joined #ruby
dklima_ has quit [Ping timeout: 265 seconds]
eggroll has joined #ruby
<eggroll> (repeat with name) Hi. Anyone have suggestions for promoting a new gem prototype for feedback?
<havenwood> eggroll: Give us a link and we'll give you some feedback!
douglascorrea has quit [Ping timeout: 248 seconds]
jaruga___ has quit [Quit: jaruga___]
psychicist__ has joined #ruby
maattdd has quit [Ping timeout: 264 seconds]
tildes has joined #ruby
<dminuoso> eggroll: Let me get this straight. This looks at my model, and then emits tests for its validations?
tercenya_ has quit [Remote host closed the connection]
tercenya has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<eggroll> dminuoso: It should emit tests for more than validations. It won't be turnkey because there are some values it won't be able to determine, but it should generate much more than a test shell and also provide some guidance as to what needs to be added by you.
whathappens has joined #ruby
moei has quit [Quit: Leaving...]
SesMan has joined #ruby
<eggroll> dminuoso: I'll try to put up a page in the repository wiki that shows what the generated tests look like. Can I post a screenshot here, though?
<dminuoso> eggroll: Let me be frank. I don't see the scope of it, but if it does mostly what I think it does, it's a fruitless excercise. It's the job of rails to test whether a validation does what it does. Tests should test behavior, not whether a validation really does what rails says it does.
<dminuoso> eggroll: Sure.
SesMan has quit [Client Quit]
<dminuoso> eggroll: Everything there seems to be an anti-pattern - the only effect of which is that it will dramatically decrease test suite performance, with no added value whatsoever.
<dminuoso> Other than feeling "good" about having a large number of tests that.. "do things"
ldnunes has quit [Quit: Leaving]
<eggroll> dminuoso: I think I get what you are saying. But what is the point of Shoulda Matchers then?
<dminuoso> eggroll: allow_value for example can make sense if you have complex validations, but you have some acceptance criteria on what it must (or must not) allow for input.
<dminuoso> eggroll: but most shoulda matchers are kind of worthless
lenwood has quit [Ping timeout: 250 seconds]
<dminuoso> eggroll: They try to enforce the meaning of a validation, but by writing "validates foo, presence: true" you already enforce the semantic of it. Whether this does what you want it do is rails job, not yours.
ecnalyr has joined #ruby
dvinciguerra has quit [Quit: dvinciguerra]
<dminuoso> eggroll: or let me rephrase, not most - but some of them are.
<dminuoso> eggroll: Just think about it. You have a model that "validates :foo, uniqueness: true" - now you add a test that asserts that your model validates uniqueness - what exact value have you gained?
<dminuoso> eggroll: Please think about it and respond to that question with your honest opinion.
<ecnalyr> How can I gsub the content between two html tags? I'm trying this, but it erases the tags as well: '<secret>stuff</secret>'.gsub(/<secret>.*<\/secret>/, '[FILTERED]') == '[FILTERED]'
<eggroll> dminuoso: You're testing what is essentially already a test
<dminuoso> eggroll: And the added value of this test in your testsuite?
<eggroll> dminuoso: I'm guessing nil or worse
<dminuoso> eggroll: Don't guess.
<dminuoso> eggroll: Think about it until you can answer this question. :)
<dminuoso> Maybe there is a value that I don't see.
<eggroll> dminuoso: Slower test suite.
<dminuoso> eggroll: We have established that, but what positive value does it { is_expected.to validate_uniqueness_of(:name) } yield?
<dminuoso> eggroll: What kind of errors are you hoping to catch?
<eggroll> dminuoso: It might help to know what this stems from in order to understand why it is what it is and why it may not be as useful as I hoped.
brucebag is now known as wbot
wbot is now known as brucebag
last_staff has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
<dminuoso> eggroll: Don't get me wrong. I'm not trying to prove your library useless. I'm trying to get you to argue what value it adds.
<dminuoso> If you can present an argument that it adds value - then great! Keep up the work.
nettoweb has joined #ruby
FerrouSX has joined #ruby
<dminuoso> eggroll: Generally you test the behavior of interfaces so that if you make changes to the implementation you don't break anything.
<dminuoso> eggroll: But there's no interface/implementation behind validates :foo, uniqueness: true to manipulate in an application, so testing it will reveal nothing.
<dminuoso> That's my perspective.
<eggroll> dminuoso: I completed prototyping a barebones SAAS application. I'm only two years in with RoR. So, the progression was learning, trial and error, etc. No TDD. I reach a point where I need to have tests, learn testing. I wondering how much can I automate. Discover the regressor gem and feel that is what I'm looking for, just updated. Thought by putting my time into it I could avoid more repetition in the future. But
<eggroll> you're right, if they are not adding value they are clutter. I think the issue is that I'm learning to determine what is valuable.
<eggroll> dminuoso: Your perrspective is incredibly helpful!
reverberations has quit [Read error: Connection reset by peer]
agit0 has joined #ruby
<eggroll> dminuoso: Btw, I wasn't looking at the regressor gem to be a magic wand that generates all my tests. Just an attempt to automate what was automatable. I know there is still tons of functionality within my SAAS that needs to be tested that aren't if touched by this gem.
agit0 has quit [Client Quit]
reverberations has joined #ruby
reverberations has quit [Max SendQ exceeded]
<dminuoso> eggroll: From my experience tests just can't be auto generated. You can probably generate some boiler plate, related code for setup/teardown, perhaps factory stuff.
<dminuoso> But actual tests are always hand-written - otherwise I don't see how they could possibly add value.
reverberations has joined #ruby
rodfersou has quit [Quit: leaving]
reverberations has quit [Max SendQ exceeded]
preyalone has quit [Quit: Connection closed for inactivity]
<dminuoso> eggroll: Fair enough.
reverberations has joined #ruby
johnmilton has quit [Remote host closed the connection]
reverberations has quit [Max SendQ exceeded]
<Slown> good bye
reverberations has joined #ruby
Slown has quit []
<eggroll> dminuoso: I thought there might be value in being able to generate more than just a shell, but it seems like it would only provide a false sense of security for the naive. Are there any of the matchers that it does create tests for that you could see having potential value.
bmurt has joined #ruby
nb_bez___ has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dminuoso> eggroll: Anything where you have behavior specified through code.
gigetoo has quit [Ping timeout: 246 seconds]
<dminuoso> eggroll: For example a custom validation using a lambda - that is something worth testing
<dminuoso> That lambda at least.
<dminuoso> (Though its probably less work if you test the validation in its entirety)
gigetoo has joined #ruby
tercenya has quit [Remote host closed the connection]
ecnalyr_ has joined #ruby
ecnalyr has quit [Ping timeout: 245 seconds]
pwnd_nsfw has joined #ruby
M-mistake has quit [Quit: Client limit exceeded: 5000]
<eggroll> dminuoso: And it seems, as you said, difficult to automate. Isn't parsing a lambda difficult, if parsing is the right verb here?
tercenya has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> eggroll: Right because the lambda may have some code that describes when a record is valid.
bturker has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
<eggroll> dminuoso: I really appreciate you taking the time. As I write the tests for my SAAS, my understanding of were the value in testing lies will evolve and I'll get a better sense of to what extent this gem could, in turn, provide value, if any.
Devalo has joined #ruby
<dminuoso> eggroll: let's say you have: validates :foo, uniqueness: true, if: ->(r) { r.number % 2 == 0 } ## now you have explicit behavior that you can test both ways against.
<dminuoso> eggroll: What such a tool might do, is generate stub tests for anything that seems to have an interface or behavior. (Ignoring how difficult the determination of this may be)
<dminuoso> That you then implement.
<dminuoso> Kind of like what rails generators do anyway.
nankyokusei has joined #ruby
tyang has quit [Ping timeout: 250 seconds]
<eggroll> dminuoso: Are you saying it's explicit behavior because it is dependent upon what the value of r.number is, which could vary?
<dminuoso> eggroll: it's dependent on *code*
<dminuoso> code that rails has not tested before.
bturker has quit [Ping timeout: 256 seconds]
enilsen16 has joined #ruby
tyang has joined #ruby
<dminuoso> the predicate -> (r) { r.number % 2 == 0 } has some meaning. Maybe you have lottery tickets, and you want to ensure that a ticket with an even number *must* be unique for some reason.
Devalo has quit [Ping timeout: 258 seconds]
<dminuoso> now perhaps at some point you modify this code and replace it with r.number.even?
<dminuoso> or maybe it gets changed to something else.
<dminuoso> Now you have a visible interface (the predicate) and an implementation.
<eggroll> dminuoso: The behavior has changed and you want to test that.
Olipro has quit [Ping timeout: 260 seconds]
nogic has joined #ruby
tildes has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
<eggroll> dminuoso: Actually, it's not so much the behavior has changed, but the implementation.
<dminuoso> eggroll: The tests ensure that no matter what you do the expected behavior (two lottery tickets with the same even number must not exist) remains intact.
<eggroll> dminuoso: Got it.
<dminuoso> Also I suck at coming up with good examples.
djbkd has quit [Ping timeout: 256 seconds]
enilsen16 has quit [Quit: enilsen16]
<eggroll> dminuoso: So, much of what the gem is doing is creating tests for Rails code which Rails already tests.
enilsen16 has joined #ruby
<dminuoso> eggroll: Exactly.
synthroi_ has joined #ruby
djbkd has joined #ruby
<eggroll> dminuoso: Does it matter that the tests it generates look pretty? :)
johnmccabe has quit [Ping timeout: 250 seconds]
arknemona has joined #ruby
<eggroll> dminuoso: perhaps I'll launch 'rubygemsaesthetics.org'
<arknemona> why does rubocop complain about class variables?
synthroid has quit [Ping timeout: 256 seconds]
<dminuoso> arknemona: because class variables have special semantics when it comes to inheritance
<dminuoso> arknemona: More often than not class instance variables are preferrable (or constants)
Cohedrin has joined #ruby
<arknemona> but the constant really belongs to the class and won't ever change, what should I do?
<dminuoso> arknemona: make it a constant.
<dminuoso> :|
dionysus69 has quit [Ping timeout: 256 seconds]
<arknemona> with .freeze and such?
<dminuoso> arknemona: Sure
<arknemona> alright, thx dminuoso
polishdub has quit [Quit: Leaving]
polishdub has joined #ruby
tildes has joined #ruby
<eggroll> dminuoso: Thanks so much for all of your help. It has been very educational.
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
hotpanca_ has joined #ruby
muelleme has quit [Ping timeout: 245 seconds]
mscs has joined #ruby
jhack has quit [Quit: jhack]
hotpancakes has quit [Ping timeout: 245 seconds]
eggroll has left #ruby ["Textual IRC Client: www.textualapp.com"]
Salih has quit [Quit: Leaving]
Lucky_ABA has joined #ruby
marxarelli is now known as marxarelli|afk
maattdd has joined #ruby
gbgdev has joined #ruby
millerti has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
graft has joined #ruby
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has quit [Quit: Lost terminal]
jhack has joined #ruby
smlocal has joined #ruby
malconis has quit [Read error: Connection reset by peer]
malconis has joined #ruby
douglascorrea has joined #ruby
brendan- has joined #ruby
gbgdev has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
nettoweb has joined #ruby
jtd has quit [Remote host closed the connection]
SpiffTR has joined #ruby
jtd has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
tildes has quit [Ping timeout: 250 seconds]
whathappens has quit [Quit: Leaving...]
jhack has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 268 seconds]
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
teclator has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SpiffTR has quit [Quit: Leaving.]
ys_ has joined #ruby
<ys_> hi
<ys_> Im in the process of trying to figure out why rbenv-gemset isnt install gems to the right gemset. Can anyone help me understand how Bundler determines where to install gems? Im assuming its a ENV var...
centrx has quit [Remote host closed the connection]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enilsen16 has quit [Quit: enilsen16]
ryan_notabot has quit [Remote host closed the connection]
moei has joined #ruby
Olipro has joined #ruby
douglascorrea has quit [Remote host closed the connection]
<ys_> dminuoso thanks! im looking into it right now. i appreciate it
douglascorrea has joined #ruby
SpiffTR has joined #ruby
rwb has joined #ruby
<ys_> ha, i have one parameter returned from bundle config..... BUNDLE_JOBS
izaac_ has quit [Ping timeout: 268 seconds]
douglascorrea has quit [Ping timeout: 258 seconds]
maattdd has quit [Ping timeout: 258 seconds]
izaac_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
wrkrcoop has joined #ruby
ecnalyr has joined #ruby
<wrkrcoop> in POODR it says “an object has a dependency when it knows the name of a message that it intends to send to someone other than self.Gear expects a Wheel instance to respond to diameter” … does that mean I can’t know the method of a class?
rakm has joined #ruby
ecnalyr_ has quit [Read error: Connection reset by peer]
<wrkrcoop> does that mean i can’t know the method of a class i want to call?
Fernando-Basso has quit [Quit: Leaving]
synthroi_ has quit []
nettoweb1 has joined #ruby
centrx has joined #ruby
nettoweb has quit [Ping timeout: 248 seconds]
nettoweb_ has joined #ruby
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
SpiffTR has quit [Quit: Leaving.]
nettoweb1 has quit [Ping timeout: 260 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
axisys has quit [Quit: leaving]
jhack has joined #ruby
ascarter has joined #ruby
ys_ has quit [Quit: Page closed]
<dminuoso> wrkrcoop: That sentence sounds broken
<dminuoso> wrkrcoop: Did you quote it correctly?
cdg_ has joined #ruby
malconis has quit [Read error: Connection reset by peer]
hahuang62 has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 258 seconds]
Sembei has joined #ruby
cdg has joined #ruby
Lucky_ABA has joined #ruby
<wrkrcoop> dminuoso: pretty much yes
axisys has joined #ruby
<wrkrcoop> maybe it references an example that preceds the sentence but thats what it says
frozengeek has quit [Quit: frozengeek]
cdg_ has quit [Ping timeout: 245 seconds]
enilsen16 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
<wrkrcoop> in OO, when we say message that refers the arguments right?
<wrkrcoop> and wht we return?
douglascorrea has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
<dminuoso> wrkrcoop: "[...] otherr than self.Gear expects a Wheel[...]" does not seem right
<dminuoso> wrkrcoop: And no.
<wrkrcoop> that refers to probably what precedes it
<wrkrcoop> dminuoso: then what is a message
<dminuoso> wrkrcoop: obj.message - and this kind of happens in Ruby (this is a result of the heavy smalltalk influence)
<wrkrcoop> so Person.greet … greet is a method and a message?
<wrkrcoop> or is the return value of greet the message?
<dminuoso> wrkrcoop: well view it separately
<dminuoso> wrkrcoop: the object "obj" receives a message "message" - you can catch this in "method_missing" (ignore the name of this for a moment)
<dminuoso> you can do whatever you want with this message - various DSLs and metaprogramming techniques use this.
<wrkrcoop> so the thing you pass the method is the message or is the method the msg?
<dminuoso> wrkrcoop: However Ruby has another default behavior: it looks if a method with the name of the message exists.
<dminuoso> asm>> obj.method()
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/696594
<dminuoso> wrkrcoop: ^- look at the assembly, and see what ruby actually does to a method call
<dminuoso> it "sends" a message to an object.
<dminuoso> and the object somehow responds (usually by either throwing an exception or calling a method)
<dminuoso> method_missing allows you to clearly distinguish between those two, since you can receive messages and do stuff with them without actually having methods
<wrkrcoop> im stupid or confused i dont get it
<dminuoso> wrkrcoop: let me make a clearer example
<wrkrcoop> much appreciate
<dminuoso> asm>> arr = []; arr.length() { ignore_this_block };
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/696595
<dminuoso> wrkrcoop: now look at the upper disassembly, the instruction 0008 loads "arr" ontop of the stack, and instruction 0012 does a: send message "length"
<dminuoso> it actually even says "send"
<dminuoso> err I messed the numbers up
<wrkrcoop> so the method is the message?
<dminuoso> 0006 loads arr and 0008 sends the message.
<dminuoso> wrkrcoop: ignore the fact that there is a method.
<dminuoso> there may not be a method
<wrkrcoop> makes no sense, a method is a verb, and a message is a noun
<dminuoso> what you think of a method call is actually sending a message to an object
<wrkrcoop> oh … interesting
<wrkrcoop> then who is doing the sending?
<dminuoso> You.
<wrkrcoop> *mind blown*
<dminuoso> wrkrcoop: now ruby also happens to by default try to call a matching method if an object receives a message
<wrkrcoop> interesting
<dminuoso> >> class Pony; def method_missing(message); puts "Received message: #{message}; end; end; a = Pony.new; a.hello
<ruby[bot]> dminuoso: # => /tmp/execpad-49b10462613b/source-49b10462613b:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/696596)
<dminuoso> err
<dminuoso> >> class Pony; def method_missing(message); puts "Received message: #{message}"; end; end; a = Pony.new; a.hello
<ruby[bot]> dminuoso: # => Received message: hello ...check link for more (https://eval.in/696597)
sp4rrow has joined #ruby
<wrkrcoop> thanks dminuoso
<wrkrcoop> im going to get bakc to reading POODR i appreciate the help … youve made me smarter
<dminuoso> wrkrcoop: Now Ruby did not invent this, it inherited this from smalltalk
wrkrcoop has left #ruby [#ruby]
marxarelli|afk is now known as marxarelli
claudiuinberlin has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loincloth has joined #ruby
Sh4D0wD_ has joined #ruby
shayan has joined #ruby
hahuang62 has joined #ruby
enoch85 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<enoch85> hey guys, I'm looking to extract the content of this output to only the words in it
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<enoch85> someone in #bash told me to go here
<havenwood> enoch85: This is a good place to be!
tvw has quit [Remote host closed the connection]
<dminuoso> enoch85: Have you tried using bash for it?
<konsolebox> enoch85: and i meant not only to extract, but also do other stuff
<dminuoso> I know just the place you could ask in.
<enoch85> dminuoso, no, I don't know where to start
<dminuoso> enoch85: #bash is great for helping you out!
<dminuoso> JSON ain't nothing that a good ol' GNU regex can't solve surely.
claudiuinberlin has quit [Remote host closed the connection]
<konsolebox> lol
<enoch85> dminuoso, tell greycat that in #bash
<enoch85> :)
<bougyman> jannson is for that, no?
<bougyman> or that other one... jq i think it is?
<bougyman> some two-character binary that starts with j
<dminuoso> enoch85: It's easy. All you need is a hand-written recursive descent parser.
<bougyman> I just use ruby, i'm lazy.
Asher has quit [Quit: Leaving.]
<enoch85> dminuoso, to explain a bit more... the old directory contains this: http://hastebin.com/iyiyilonad.hs and as you may notice there are directory names that isn't included in the json file... what I'm trying to do is to exclude all the directory names in the old directory so that I'm left with a list that contains only the directory names that isn't included in shipped.json. The purpose is to do a cp -R of those directory names to a exisitng directory
<enoch85> that looks like http://hastebin.com/iyiyilonad.hs but that only contains the shipped.json directories. Makes sense?
<enoch85> dminuoso, a hand written whuut
<dminuoso> A hand-written top down recursive descent parser.
<bougyman> enoch85: see https://stedolan.github.io/jq/
* dminuoso is wondering why nobody has told him to shut up
<havenwood> i do like jq
<enoch85> havenwood, THANKS
<bougyman> because he's trying.
<bougyman> and that's worth something.
<dminuoso> bougyman: Either he has a thick skin or really doesn't have a clue about what I'm saying.
<enoch85> havenwood, now, how do I get that into .txt?
<bougyman> you mean a thick skull, I think.
<dminuoso> Well, that speaks for enoch85.
<enoch85> the goal is to diff it in bash
<enoch85> dminuoso, very thick
<havenwood> enoch85: File.write 'enoch85.txt', words
<bougyman> you just want a json dif?
<bougyman> enoch85: do you have google there?
<enoch85> bougyman, uuh no
<havenwood> enoch85: it depends what you want written to txt. maybe you want?: words.join(' ')
<enoch85> bougyman, you should link a LMGTFY
ascarter has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
<dminuoso> enoch85: A recursive descent parser is a style of parser you can use to parse complex stuff with. Compilers for complicated programming languages usually use them. For something like JSON it would be absolute and total overkill, not only for the reason that the solution presented by havenwood can use the builtin Ruby JSON parser, but also because it's basically 2-3 lines of code.
<havenwood> enoch85: or: words.to_json
<bougyman> yeah well i'm not a prick like that.
arknemona has quit [Quit: SALETKEESYRAFLO]
<bougyman> (not on Tuesday, anyway)
<enoch85> bougyman, indeed
<bougyman> Monday, maybe.
<dminuoso> enoch85: Just to explain where I was pointing you towards. :-)
<enoch85> dminuoso, thanks for that :)
millerti has joined #ruby
ascarter has joined #ruby
claudiuinberlin has joined #ruby
sepp2k has quit [Quit: Leaving.]
<enoch85> havenwood, check what I wrote to dminuoso --^ that's what I want to do
<zenspider> dminuoso: I completely disagree with that assessment of RDP. _most_ compliers of complex languages use LR
bturker has joined #ruby
polishdub has quit [Quit: Leaving]
newdan has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<dminuoso> zenspider: Compilers with a decent degree of error recovery do.
<enoch85> and to be able to diff it I need to put it into txt or whatever
chouhoulis has quit [Remote host closed the connection]
maattdd has joined #ruby
<zenspider> without a lot of extra work, the set of languages that RDP can parse is vastly smaller than what LR(1) can parse
chouhoulis has joined #ruby
jhack has quit [Quit: jhack]
hightower2 has quit [Ping timeout: 264 seconds]
<dminuoso> zenspider: RDP can parse any LL(1) without backtracing, more with backtracing. That's enough to cover most languages I suppose.
antoniobeyah has quit [Quit: antoniobeyah]
maattdd has quit [Ping timeout: 252 seconds]
rakm has joined #ruby
gheegh has joined #ruby
<dminuoso> zenspider: Im not saying anything wrong here I hope.
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
nankyokusei has joined #ruby
antoniobeyah has joined #ruby
<dminuoso> zenspider: From what I understood is that it's much easier to write rescursive descent parsers than LR parsers (I implemented some for both, but not enough to really be the best juddge)
montanonic has joined #ruby
<dminuoso> And with LR usually requiring some form of parser generator any attempts to do error recovery are greatly hindered already.
<dminuoso> That's what I learned.
<dminuoso> I could be completely wrong.
sdwrage has joined #ruby
<zenspider> RDP _is_ LL(1) (assuming no tricks in the lexer)... but no, it doesn't cover most programming languages (that I know of)... it covers languages in the lisp, pascal, and generally unstructured families. It basically can't parse (real) C/++, ruby, perl, python (maybe?), and many other languages that have any forms of ambiguity.
<zenspider> oh, and my favorite, APL, which is the only RR language I know of
<dminuoso> zenspider: C and C++ must be parseable by an RDP, considering that's what the GCC frontend uses.
<dminuoso> Same goes for clang..
<zenspider> dminuoso: not last time I looked, no, GCC used yacc
* dminuoso shrugs
<dminuoso> zenspider: Not since a long time.
<dminuoso> over a decade
XV8 has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
antoniobeyah has quit [Ping timeout: 248 seconds]
frozengeek has joined #ruby
<dminuoso> zenspider: Everywhere I look yacc parsers are replaced with recursive descent parsers for maintainability and error recovery reasons.
antoniobeyah has joined #ruby
jhack has joined #ruby
Axy has joined #ruby
sp4rrow has joined #ruby
codfection has quit [Remote host closed the connection]
graft has quit [Quit: Lost terminal]
ecnalyr has quit [Ping timeout: 268 seconds]
Mia has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
maddmaxx has quit [Remote host closed the connection]
johnmccabe has joined #ruby
claudiuinberlin has quit []
Axy has quit [Ping timeout: 240 seconds]
centrx has quit []
Ropeney has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
ecnalyr has joined #ruby
<zenspider> holy shit. the C parser in gcc is 18284 lines long... also not sure how they deal with the ambiguity of type declarations and such. LR lent itself well to that.
<zenspider> huh... I wonder what's changed. I've tried to do an LR to LL flip on ruby a number of times and failed out on the complexity every time
n008f4g_ has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: My people need me...]
chris2 has quit [Ping timeout: 245 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso> zenspider: Were you the big ANTLR fan? Or was it one of the JRuby devs who sometimes hangs out in here?
cdg has joined #ruby
gloscombe has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
tyang has quit [Read error: Connection reset by peer]
<zenspider> dminuoso: I used to use antlr a fair amount, but I've pretty much hated it since it went java
<zenspider> the tooling is slow and terrible now, Terr slowly became a jackass, and their website is befuddling
nb_bez___ has quit [Quit: Connection closed for inactivity]
scootaloo has quit [Quit: Textual IRC Client: www.textualapp.com]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
nofxx has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
frozengeek has quit [Quit: frozengeek]
charliesome has joined #ruby
cdg has quit [Remote host closed the connection]
frozengeek has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Asher has joined #ruby
<headius> dminuoso: chrisseaton was writing a lot of antlr parsers for various grammars in Ruby
Asher has quit [Client Quit]
alan_w has quit [Quit: WeeChat 1.4]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 258 seconds]
hotpancakes has joined #ruby
hutch34 has joined #ruby
jhack has quit [Quit: jhack]
charliesome has joined #ruby
maattdd has joined #ruby
sonicspin has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
alan_w has joined #ruby
ecnalyr has quit [Ping timeout: 252 seconds]
Didac has quit [Ping timeout: 245 seconds]
ecnalyr has joined #ruby
Gasher has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Gasher> hello
<ruby[bot]> Gasher: as I told you already, please use https://gist.github.com
konsolebox has quit [Quit: Leaving]
<Gasher> do yo usee the link?
sneakers has joined #ruby
<Gasher> I'm getting that error when trying to do http post...
koooge has joined #ruby
<dminuoso> Gasher: You have not shared the code with us.
OTORelic2 has joined #ruby
<dminuoso> Gasher: At any rate you probably pass nil somewhere to net/http
<Gasher> ah, the bot prevented me from pasting the link, and I don't use gist
<Gasher> /usr/lib/ruby/2.3.0/net/http/generic_request.rb:18:in `dup': can't dup NilClass (TypeError)
<dminuoso> Gasher: No it did not, but it does not include your code.
<enoch85> not in ruby though
<Radar> Gasher: You don't use Gist? Why not?
OTORelic1 has quit [Ping timeout: 264 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
biberu has quit []
<Gasher> I was just worried about one thing, nevermind, I'll use gist then
<Gasher> just gimme a sec
<Radar> Thanks.
<Gasher> hm, now there is something else happening, I'm sorry to bother you
mjuszczak has quit []
JoshS has quit [Ping timeout: 268 seconds]
<Radar> np