konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
BH23 has quit [Ping timeout: 260 seconds]
stdedos has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Eiam has joined #ruby
Eiam has quit [Client Quit]
schne1der has joined #ruby
xco has joined #ruby
konsolebox has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
BTRE has quit [Ping timeout: 258 seconds]
cd has quit [Quit: cd]
mnathani has quit []
mnathani has joined #ruby
BTRE has joined #ruby
ruurd has joined #ruby
bodie has quit [Quit: This computer has gone to sleep]
konsolebox has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
konsolebox has joined #ruby
fanta1 has joined #ruby
alfiemax has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
alfiemax has quit [Remote host closed the connection]
konsolebox has joined #ruby
Macrobiotic has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
BTRE has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
BTRE has joined #ruby
duderonomy has quit [Client Quit]
fanta1 has quit [Quit: fanta1]
alfiemax has joined #ruby
m3ow1605 has joined #ruby
chalkmonster has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
schne1der has quit [Ping timeout: 256 seconds]
BH23 has joined #ruby
oddp has joined #ruby
Axy has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
imode has quit [Ping timeout: 258 seconds]
akem_ has joined #ruby
akem has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
roshanavand has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
roshanavand_ has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
dionysus69 has joined #ruby
baojg_ has joined #ruby
roshanavand has joined #ruby
markong has joined #ruby
akem_ has quit [Read error: Connection reset by peer]
akem_ has joined #ruby
Nerium has joined #ruby
BH23 has quit [*.net *.split]
oddp has quit [*.net *.split]
bvdw has quit [*.net *.split]
zululee_ has quit [*.net *.split]
reaVer_ has quit [*.net *.split]
fmccann_ has quit [*.net *.split]
lmat has quit [*.net *.split]
darkstardevx has quit [*.net *.split]
TvL2386 has quit [*.net *.split]
havenwood has quit [*.net *.split]
KramerC has quit [*.net *.split]
cliluw has quit [*.net *.split]
cfjk has quit [*.net *.split]
hiroaki has quit [*.net *.split]
timwis has quit [*.net *.split]
rafadc has quit [*.net *.split]
ua_ has quit [*.net *.split]
DTZUZU has quit [*.net *.split]
sphex has quit [*.net *.split]
clemens3 has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
oddp has joined #ruby
reaVer_ has joined #ruby
BH23 has joined #ruby
bvdw has joined #ruby
lmat has joined #ruby
fmccann_ has joined #ruby
TvL2386 has joined #ruby
darkstardevx has joined #ruby
zululee_ has joined #ruby
havenwood has joined #ruby
hiroaki has joined #ruby
cliluw has joined #ruby
KramerC has joined #ruby
cfjk has joined #ruby
PaulePanter has joined #ruby
timwis has joined #ruby
DTZUZU has joined #ruby
rafadc has joined #ruby
ua_ has joined #ruby
sphex has joined #ruby
clemens3 has joined #ruby
bvdw has quit [Max SendQ exceeded]
clemens3 has quit [Max SendQ exceeded]
cliluw has quit [Max SendQ exceeded]
cfjk has quit [Max SendQ exceeded]
DTZUZU has quit [Max SendQ exceeded]
cliluw has joined #ruby
bvdw has joined #ruby
cfjk has joined #ruby
DTZUZU has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
clemens3 has joined #ruby
timwis has quit [Ping timeout: 255 seconds]
thecoffemaker has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
Nowaker has quit [Ping timeout: 246 seconds]
baweaver is now known as Guest68651
thecoffemaker has joined #ruby
timwis has joined #ruby
Nowaker has joined #ruby
Nowaker has quit [Ping timeout: 246 seconds]
Nerium has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 260 seconds]
Nowaker has joined #ruby
Macrobiotic has quit [Quit: Connection closed for inactivity]
fercell has joined #ruby
fercell has quit [Ping timeout: 265 seconds]
fercell has joined #ruby
hiroaki has quit [Ping timeout: 240 seconds]
m3ow1605 has quit [Quit: Leaving]
schne1der has joined #ruby
fercell has quit [Ping timeout: 265 seconds]
r3m has quit [Quit: WeeChat 2.9-rc1]
r3m has joined #ruby
fercell has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Nerium has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
vondruch_ has joined #ruby
vondruch_ has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
mossplix has joined #ruby
baojg has quit [Remote host closed the connection]
baojg_ has joined #ruby
fanta1 has joined #ruby
drincruz has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg_ has joined #ruby
Benett has quit [K-Lined]
Benett has joined #ruby
vondruch has quit [Quit: vondruch]
Nerium has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mossplix has quit [Remote host closed the connection]
stryek has joined #ruby
wymillerlinux has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
Technodrome has joined #ruby
alfiemax has joined #ruby
vondruch has joined #ruby
bodie has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
TomyWork has joined #ruby
roshanavand has quit [Remote host closed the connection]
Nerium has joined #ruby
Nerium has quit [Client Quit]
greengriminal has joined #ruby
Nerium has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
lightstalker has quit [Ping timeout: 272 seconds]
fanta1 has quit [Quit: fanta1]
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
fercell has quit [Quit: WeeChat 2.8]
ChmEarl has joined #ruby
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
mossplix has joined #ruby
ellcs has joined #ruby
baojg has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
baojg has quit [Remote host closed the connection]
baojg_ has joined #ruby
<rapha>
wow ... i've never seen a 10000+ lines code file before ... and it doesn't look generated, it looks like someone actually sat down and wrote it o_O
<apotheon>
rapha: That's a pretty big file. Please tell me that's not Ruby.
<apotheon>
. . . though I did see a 1K line Ruby method once.
lightstalker has joined #ruby
<adam12>
If you do any WordPress development, a fun thing to do is check how many lines are in the functions.php file of a theme. I've seen 50k+ in some themes (with one having 3 different image resizing libraries).
orbyt_ has joined #ruby
<rapha>
apotheon: I think .y are YACC files?
<rapha>
If you do any WordPress development, a more fun thing to do is to just drown yourself in your bathtub.
<rapha>
I still don't understand what a PEG is, though, and why the YACC file being so big means that Ruby probably can't be discombobulated by it.
<apotheon>
adam12: I avoid the *shit* out of WordPress these days.
<apotheon>
15:16 < rapha> If you do any WordPress development, a more fun thing to do is to just drown yourself in your bathtub.
<apotheon>
I don't disagree.
BH23 has quit [Ping timeout: 240 seconds]
<rapha>
I've walked out of project kickoff meetings when WordPress was insisted on a second time and I thank myself for it.
<rapha>
Same with Typo3, but that's probably not too well-known outside of Germany.
<rapha>
But there is this cute little CMS that was quite pleasurable to use ... Contao, neé TypoLight.
<apotheon>
That's a good policy (re: two strikes, you're out).
m27frogy has quit [Ping timeout: 260 seconds]
<apotheon>
If heard of Typo3.
<apotheon>
s/If/I've/
<apotheon>
wtf fingers, you betray me
mikhailnovikov has joined #ruby
<rapha>
:)
<havenwood>
rapha: Yaks are modern bison.
<havenwood>
PS Shaving them takes forever.
ruurd_ has joined #ruby
mossplix has quit [Remote host closed the connection]
ruurd has quit [Read error: Connection reset by peer]
<havenwood>
If you want some parse.y fun, see `--dump=yydebug` output for each line of parse.y as the grammar is parsed.
<adam12>
havenwood: Did you run that on master or does 2.7 have elipses?
<adam12>
havenwood: Indeed that's a nice solution.
<havenwood>
adam12: 2.7. has them!
<adam12>
havenwood: Nice. I didn't realize.
Eiam has joined #ruby
Nerium has quit [Client Quit]
troulouliou_dev has joined #ruby
Nerium has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
vondruch_ has joined #ruby
<al2o3-cr>
... reminds me lua's varargs
vondruch_ has left #ruby [#ruby]
vondruch has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nerium has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nerium has joined #ruby
leitz has joined #ruby
Nerium has quit [Client Quit]
Nerium has joined #ruby
Nerium has quit [Client Quit]
bodie has joined #ruby
bodie has quit [Client Quit]
bodie has joined #ruby
FrostCandy has joined #ruby
Nerium has joined #ruby
Nerium has quit [Client Quit]
<FrostCandy>
Hey I have a hash like @myhash when I do @myhash.inspect it shows a list of properties, but it doesn't show @myhash.secondhash. How can I know every property included in @myhash or @myobject? @myhash.secondhash.first_name produces results so it's there it's just not showing with .inspect
<FrostCandy>
pp is pretty cool, still @myhash.thing does not show up. But I can type @myhash.thing.inspect and see it. I wonder if there is code somewhere that creates thing on the fly when you call @myhash.thing
<apotheon>
Are you saying that "@myhash.thing" doesn't exist yet when you want to see it in the output of `pp @myhash`?
<apotheon>
It can't show you things that don't exist.
<FrostCandy>
I'm saying I don't know if it exists or not
<apotheon>
ah
<FrostCandy>
would calling @mhyhash.thing automatically create thing? I mean can that happen in Ruby?
<FrostCandy>
if I call a property like that, coudl that trigger an execution of some code?
<bodie__>
what kind of object is @myhash
<FrostCandy>
bodie__ it starts with #< so I think it's just a hash
<apotheon>
What kind of thing is @myhash.thing supposed to be?
<apotheon>
If it's supposed to be an element of the hash, you probably need @myhash[:thing] instead of @myhash.thing.
<leftylink>
well. first we can say that starting with #< makes it much less likely that it's a hash
<FrostCandy>
thing looks like this: #<thing:0x007f1768c50f90
<FrostCandy>
ok so its an object of an object maybe?
bodie__ has quit []
<leitz>
My "Ruby is cool" comment for the day. Doing a Koan for a mind break, and the challenge was to write a method that checked if the lengths of a triangle's sides made it equilateral, isosceles, or scalene.
<apotheon>
FrostCandy: Based on very limited info, it seems like maybe thing is a @myhash method that returns an object.
<leitz>
Since it gave the side lengths as a, b, c, then: case [ a, b, c ].uniq.count
<FrostCandy>
apotheon, yes i can access it with myobj.obj but I'm unable to see that obj belongs to myobj when i do a inspect. I was hoping to see all attached objects
<apotheon>
leitz: cool
<leitz>
A lot easier than several individual comparisons.
<FrostCandy>
ah ok, ya maybe it is a method of the objed tthen
<FrostCandy>
just have to track down where that is happening then thanks.
<apotheon>
yep
<bodie>
check out pry, it's quite helpful figuring this stuff out
<apotheon>
FrostCandy: If it's a documented library or something like that, you can check on it via ri.
<apotheon>
Yeah, pry could be helpful, too.
BH23 has joined #ruby
<FrostCandy>
ok i'll look into it.
<apotheon>
@myhash.methods.include? :thing
<apotheon>
That should at least clarify whether it's a method.
<apotheon>
same basic result:
<apotheon>
@myhash.respond_to? :thing
<FrostCandy>
yes, i wrote the if just to test and it shows thing is a method, which means @myhash is really @myObj :D
<FrostCandy>
I just have to hunt for the object in the code, unfortunatly the object is a comman word so searching the code base will be fun.
<leftylink>
well
<leftylink>
don't forget to use Method#source_location to help
imode has joined #ruby
schne1der has joined #ruby
orbyt_ has joined #ruby
bocaneri has quit [Ping timeout: 256 seconds]
wymillerlinux has joined #ruby
davispuh has joined #ruby
troulouliou_div2 has joined #ruby
SeepingN has joined #ruby
m27frogy has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
xMOPX is now known as XMoPX
dfucci has joined #ruby
cnsvc has joined #ruby
parallels has joined #ruby
pppktz has quit [Ping timeout: 272 seconds]
Nerium has joined #ruby
pppktz has joined #ruby
Nerium has quit [Client Quit]
leftylink has quit [Remote host closed the connection]
leftylink has joined #ruby
greengriminal has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
FrostCandy has quit []
konsolebox has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
<greengriminal>
How do I read a file that I've just opened for example: `file = File.open("test.txt", "wb"); file.write('Cool Story'); file.rewind; file.closed?; file.read`returns: "IOError: not opened for reading"
<greengriminal>
Can someone explain why I'd be getting this error, I came across: https://apidock.com/ruby/IOError which in the examples show that the file is closed.
<greengriminal>
but in the example line I posted above I'm not closing the file=.
dfucci has quit [Ping timeout: 256 seconds]
<al2o3-cr>
greengriminal: you'd need either w+ or wb+ for read/write