havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: 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 || Books: https://goo.gl/wpGhoQ
jrabe has quit []
cagomez has quit [Remote host closed the connection]
jrabe has joined #ruby
cagomez has joined #ruby
ahurst has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
live__ has quit [Ping timeout: 246 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
enterprisey has quit [Ping timeout: 240 seconds]
marxarelli is now known as marxarelli|afk
cagomez has quit [Ping timeout: 240 seconds]
ahurst has joined #ruby
live__ has joined #ruby
ahurst has quit [Client Quit]
shinnya has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
jhack has joined #ruby
jhack has left #ruby [#ruby]
cdg has quit [Ping timeout: 248 seconds]
tcopeland has joined #ruby
rivalomega has joined #ruby
enterprisey has joined #ruby
Renich_ has joined #ruby
rivalome_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
live__ has quit [Ping timeout: 258 seconds]
Renich_ has quit [Client Quit]
Renich_ has joined #ruby
rivalomega has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
Renich_ has quit [Client Quit]
Renich_ has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
_whitelogger has joined #ruby
Renich_ has quit [Quit: leaving]
kaitlyn has joined #ruby
memo1 has quit [Ping timeout: 248 seconds]
goyox86 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
milardovich has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
Technodrome has joined #ruby
orbyt_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
mson has joined #ruby
enterprisey has quit [Remote host closed the connection]
troys is now known as troys_
mim1k has joined #ruby
borodin has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
borodin has quit [Client Quit]
s3nd1v0g1us has joined #ruby
wald0 has quit [Quit: Lost terminal]
alnewkirk has joined #ruby
sucks_ has joined #ruby
apparition has joined #ruby
sucks has quit [Ping timeout: 255 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
cam27 has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
quiller has quit [Ping timeout: 260 seconds]
quiller has joined #ruby
pb122 has joined #ruby
milardovich has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
alnewkirk has joined #ruby
Rodya_ has joined #ruby
bdonnahue has joined #ruby
eclm has joined #ruby
milardovich has joined #ruby
mjolnird has joined #ruby
noobineer has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
noobineer has quit [Max SendQ exceeded]
alnewkirk has joined #ruby
marr has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
guardianx has quit [Remote host closed the connection]
rivalome_ has quit []
milardovich has quit [Remote host closed the connection]
dviola has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 248 seconds]
darkmorph has quit [Ping timeout: 252 seconds]
alnewkirk has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
yabbes has joined #ruby
Rodya_ has quit [Remote host closed the connection]
alnewkirk has joined #ruby
jenrzzz has joined #ruby
Rodya_ has joined #ruby
cdg has joined #ruby
jottr has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 240 seconds]
d^sh_ has quit [Ping timeout: 248 seconds]
d^sh has joined #ruby
alnewkirk has joined #ruby
John___ has quit [Read error: Connection reset by peer]
ahrs has quit [Remote host closed the connection]
sucks_ has quit [Read error: Connection reset by peer]
ahrs has joined #ruby
troulouliou_div2 has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
ramfjord has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
Rodya_ has joined #ruby
kies has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
neo95 has joined #ruby
neo95 has quit [Remote host closed the connection]
alnewkirk has joined #ruby
cam27 has quit [Quit: cam27]
alan_w has joined #ruby
oleo2 has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
eclm has quit [Ping timeout: 248 seconds]
yabbes has quit [Ping timeout: 240 seconds]
soloscshaw has joined #ruby
alnewkirk has joined #ruby
Rodya_ has quit [Remote host closed the connection]
alan_w has quit [Read error: Connection reset by peer]
alan_w has joined #ruby
Rodya_ has joined #ruby
alan_w has quit [Client Quit]
alnewkirk has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
ahurst has joined #ruby
alnewkirk has joined #ruby
oleo2 has quit [Quit: Leaving]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
gizmore|2 has joined #ruby
oleo2 has joined #ruby
alnewkirk has quit [Ping timeout: 258 seconds]
dopie has joined #ruby
oleo2 has quit [Remote host closed the connection]
<dopie> hey guys how can I put this epoch format into a readable date / time format?
<dopie> 1509989400000
gizmore has quit [Ping timeout: 240 seconds]
oleo2 has joined #ruby
<dopie> milliseconds
oleo2 has quit [Client Quit]
jackjackdripper has joined #ruby
alnewkirk has joined #ruby
oleo2 has joined #ruby
<elomatreb> dopie: Divide by 1000 to turn it into a regular unix timestamp and use Time.at and strftime?
ramfjord has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
<havenwood> >> Time.at(1509989400000/1000r).to_s
<ruby[bot]> havenwood: # => "2017-11-06 17:30:00 +0000" (https://eval.in/892786)
ramfjord has quit [Ping timeout: 260 seconds]
<RickHull> 1000r ?
<havenwood> >> 1000r.class
<ruby[bot]> havenwood: # => Rational (https://eval.in/892787)
shinnya has joined #ruby
<havenwood> dopie: Time#at also takes microseconds as a second argument - if you want to give seconds then microseconds.
alnewkirk has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 240 seconds]
<havenwood> RickHull: A handy thing about Rational is they can handle accurate nanosecond values since Epoch, unlike Float.
soloscshaw has quit [Quit: leaving]
<havenwood> "IEEE 754 double is not accurate enough to represent the number of nanoseconds since the Epoch."
<havenwood> (Float.)
<RickHull> I like more handy support for rationals. floats for decimals is usually not what people actually want
<havenwood> RickHull: aye
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> floats are good for geometry, scientific computing, umm...
nofxx_ has joined #ruby
<RickHull> >> Math::PI.to_r
<ruby[bot]> RickHull: # => (884279719003555/281474976710656) (https://eval.in/892788)
<RickHull> wrong, it's 22/7
nofxx has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
enterprisey has joined #ruby
ahurst has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 252 seconds]
alex`` has joined #ruby
uZiel has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
troulouliou_div2 has joined #ruby
kies has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
Rodya_ has joined #ruby
alnewkirk has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
alnewkirk has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
alexertech has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
alnewkirk has joined #ruby
nowhereman has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
eb0t has joined #ruby
eblip has joined #ruby
alexertech has joined #ruby
eb0t_ has quit [Ping timeout: 248 seconds]
def_jam has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
alnewkirk has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 240 seconds]
alexertech has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
govg has joined #ruby
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
Kug3lis is now known as Kug3lis_off
redondos has joined #ruby
Kug3lis_off is now known as Kug3lis
Kug3lis is now known as Kug3lis_off
jottr has joined #ruby
mr_rich101 has quit [Quit: ZNC - http://znc.in]
mr_rich101 has joined #ruby
AnoHito_ has quit [Quit: Leaving]
Xiti has quit [Quit: Xiti]
mim1k has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 260 seconds]
goyox86 has quit [Quit: goyox86]
mim1k has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
Sammichmaker has joined #ruby
cdg has joined #ruby
wolakkk has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
ryzokuken has joined #ruby
podlech has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
troys is now known as troys_
Rodya_ has joined #ruby
alnewkirk has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Ping timeout: 258 seconds]
oleo2 has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
alnewkirk has joined #ruby
gix has quit [Ping timeout: 240 seconds]
AnoHito has joined #ruby
AnoHito_ has joined #ruby
AnoHito_ has quit [Client Quit]
AnoHito has quit [Client Quit]
AnoHito has joined #ruby
gix has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
_whitelogger has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
|ifei5good has joined #ruby
podlech has quit [Quit: WeeChat 1.9.1]
milardovich has joined #ruby
|ifei5g00d has quit [Ping timeout: 248 seconds]
dopie has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
alex`` has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
alnewkirk has joined #ruby
<RickHull> it occurs to me, wouldn't it be much simpler and more efficient to specify the gem/package and not just the filename?
<RickHull> simpler on the back-end rather than searching
<RickHull> from('foo').require('stuff') # or w/e
<RickHull> from('stdlib').require('set')
<RickHull> this also prevents the problem of one gem clobbering another
<RickHull> in terms of dir names
s3nd1v0g1us has quit [Ping timeout: 252 seconds]
<matthewd> Yes.. though the search could also be avoided by remembering which files are in which gems
wolakkk has quit [Ping timeout: 248 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
texasmynsted has quit [Read error: Connection reset by peer]
texasmynsted has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
alnewkirk has joined #ruby
<RickHull> drbrain: surely this has been proposed before...
<RickHull> it seems like it could be pretty easily supported on an optional / transitional basis
<RickHull> notwithstanding filesystem layout hurdles
<matthewd> That's quite the "notwithstanding"
<RickHull> just a SMOP ;)
<RickHull> small matter of programming
<RickHull> i'm guessing you could give each gem its own lib
<RickHull> symlink them all into the pit of despair
<RickHull> and stop doing naked requires for gems in ruby 3.0
alfiemax has joined #ruby
Rodya_ has joined #ruby
<matthewd> "could", yes -- but you're pretty fundamentally redefining how ruby loads code
alnewkirk has quit [Ping timeout: 248 seconds]
<matthewd> And you don't need to go that far; track files in gems, and that's all you need... if you're prepared to give up current load order
milardovich has joined #ruby
LocaMocha has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
guacamole has joined #ruby
mkroman has quit [Ping timeout: 240 seconds]
guacamole has quit [Client Quit]
alnewkirk has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
<waveprop> do folks unit test client-side code such as jquery and (shudders) react?
alnewkirk has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<RickHull> i would hope so
c0ncealed has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx_ has quit [Ping timeout: 240 seconds]
k3rn31 has joined #ruby
<RickHull> i think code loading in javascript is 10x gnarlier than ruby/require
<RickHull> i wonder what languages and code loadings will be viable
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
jottr has joined #ruby
<RickHull> the compiler output is e.g. a single html file -- so i don't think it adds any runtime loading semantics beyond js, if at all
jottr has quit [Ping timeout: 240 seconds]
<waveprop> thanks RickHull
neo95_ has joined #ruby
Azure has joined #ruby
<baweaver> If it's code and it runs you should probably test it
<waveprop> agreed. didn't learn this until today
alnewkirk has quit [Ping timeout: 240 seconds]
<waveprop> now i'm doing it
<baweaver> that said, I think it's an interesting assertion that React is scary and jQuery isn't :P
<RickHull> isn't jquery in javascript: the good parts?
<RickHull> my copy is like 5 years old
<waveprop> baweaver: fair enough. my fear is due to my ignorance of React. jquery is very easy to use
<waveprop> RickHull: i don't have that book yet
<baweaver> larger applications with jquery will switch that opinion pretty quick :)
<baweaver> One piece of advice though I never really took to heart as a Junior: code more, read less
mikecmpbll has quit [Quit: inabit. zz.]
<havenwood> Spaghetti code isn't messy when it's a single, uncooked noodle.
<waveprop> ha. i believe you. and i'll take you up on that advice
<baweaver> you could read every book out there but until you practically apply it it's going to suck
<waveprop> haha
neo95_ has quit [Remote host closed the connection]
<baweaver> Not to say you shouldn't read books, but remember to actually do something with the info :)
<waveprop> well, i started writing web apps with naked javascript and procedural php (coming from bash) many years ago, they were of course horrid
<baweaver> Everyone starts somewhere
<waveprop> eventually i collected books, and they help
<waveprop> just agreeing with you.
<baweaver> though you want to know the dark secret of Senior level code and how it's different than Junior?
<waveprop> please!
<baweaver> It's boring
<waveprop> the code? or the secret
<baweaver> It doesn't try and be clever or use every edge feature, it's just boring
alnewkirk has joined #ruby
<RickHull> I've found that I generally don't understand something -- truly understand it -- until I've implemented it
<waveprop> mhm i see what you mean
dionysus69 has joined #ruby
<RickHull> so it's worthwhile to implement interesting things, at least make a spike, no need to follow thru once you appreciate it
<waveprop> yeah i have to implement it several times incorrectly, then find writings by someone who knows what they're doing, and then implement it again
<baweaver> Do note though that I'm also frequently wrong on things :P
<baweaver> havenwood can speak to that one XD
<waveprop> :)
<baweaver> Note though I do a lot of Javascript as of late and I fully admit it's a mess
<baweaver> mainly around excess tooling because reasons
<baweaver> mostly that JS was never intended to be as big as it is so they never thought of a module system, and not everyone agrees on exactly how that should work
Immune has quit [Ping timeout: 248 seconds]
<RickHull> lacking a filesystem on the runtime platform makes things tough, it seems
<baweaver> indeed
<RickHull> it does seem that the script/js target should be built, and have one of those per page
<RickHull> i think that's how most webpack things work right?
Dimik has quit [Remote host closed the connection]
<RickHull> what's the top couple nowadays?
<RickHull> node.js? browserify?
<baweaver> Webpack, Browserify, and Rollup tend to be the top 3
<baweaver> Webpack took the lead though
<baweaver> Browserify is the simplest
alnewkirk has quit [Ping timeout: 248 seconds]
AnoHito has quit [Quit: Leaving]
<RickHull> once you're building-slash-compiling a single js file target, it seems you're not too far from WebAssembly
<baweaver> probably
claudiuinberlin has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
<RickHull> i "learned" javascript back when it was dhtml and revolved around DOM manipulation. due to the goofy object model, strange type decisions, annoyance with the DOM, I've found js distasteful
<RickHull> but I did read js the good parts, and I like coffeescript
<baweaver> ES6 has been a nice addition
<baweaver> Typescript above it if you want some extras
alnewkirk has joined #ruby
AnoHito has joined #ruby
<baweaver> If you combine that with Ramda you get some great stuff
Azure has quit [Read error: Connection reset by peer]
<RickHull> reading about those testing frameworks, it's straight ruby spec stuff :)
<baweaver> Pretty much
<baweaver> Pivotal made Jasmine which was basically RSpec
<baweaver> then Mocha/Chai/Sinnon were the same but they migrated a bit differently
<baweaver> BDD QUnit does much of the same
<baweaver> which is what Ember uses
alfiemax has quit [Ping timeout: 252 seconds]
<baweaver> which is basically Rails in JS XD
<RickHull> I love it when the new gen does the best 80% of the old gen :)
alnewkirk has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
<RickHull> interesting comments here https://github.com/WebAssembly/design/issues/1126
<RickHull> I forgot about Opal til just now
alnewkirk has joined #ruby
<RickHull> looks interesting more than useful https://github.com/opal/opal
konsolebox has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
alnewkirk has joined #ruby
snickers has joined #ruby
minimalism has quit [Quit: minimalism]
nopoliti1 has joined #ruby
rippa has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
troys_ is now known as troys
jarnalyrkar has joined #ruby
jarnalyrkar has quit [Client Quit]
alnewkirk has joined #ruby
troys has quit [Quit: Bye]
Freshnuts has quit [Quit: Leaving]
alveric1 has joined #ruby
michael1 has joined #ruby
blackwind_123 has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
alnewkirk has joined #ruby
Dimik has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Ping timeout: 252 seconds]
Dimik has quit []
alnewkirk has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
_whitelogger has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
reber has joined #ruby
uZiel has joined #ruby
nadir has joined #ruby
alnewkirk has joined #ruby
jottr has joined #ruby
ramfjord has joined #ruby
anonymus88 has joined #ruby
<anonymus88> hi
ramfjord has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
Hexafox[I] has joined #ruby
<anonymus88> could anyone describe me the difference between singleton_class.methods and singleton_methods of a class?
<anonymus88> please
<matthewd> anonymus88: singleton_methods are the methods provided to the instance by the singleton class
<matthewd> singleton_class.methods are the methods on the singleton class itself
<matthewd> singleton_methods is more closely related to singleton_class.instance_methods
alnewkirk has joined #ruby
<anonymus88> matthewd:
<anonymus88> so C.methods = C.singleton_class.instance_methods
<anonymus88> ?
cdg has joined #ruby
alex`` has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
<matthewd> Yes
<anonymus88> danke!
<anonymus88> thanx
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
ramfjord has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
ju5t has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
alnewkirk has joined #ruby
tobiasvl has quit [Ping timeout: 246 seconds]
enterprisey has joined #ruby
Rodya_ has joined #ruby
jenrzzz has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
ryzokuken has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
uZiel has joined #ruby
alnewkirk has joined #ruby
remix2000_asleep is now known as remix2000
milardovich has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
c0ncealed has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 264 seconds]
c0ncealed has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
alfiemax_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
alfiemax_ has joined #ruby
jottr has joined #ruby
jphase has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
alfiemax_ has quit [Ping timeout: 258 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
nowhereman has joined #ruby
apeiros_ has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
alfiemax has joined #ruby
ski4x7 has joined #ruby
ski4x7 has quit [Client Quit]
milardovich has quit [Ping timeout: 240 seconds]
ski7777 has quit [Ping timeout: 248 seconds]
isec has joined #ruby
Rodya_ has joined #ruby
imode has quit [Ping timeout: 246 seconds]
ski7777 has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
apeiros_ has joined #ruby
nardul has left #ruby ["WeeChat 1.0.1"]
troulouliou_div2 has joined #ruby
blackbaba has joined #ruby
TvL2386_ has joined #ruby
TvL2386 has quit [Ping timeout: 252 seconds]
blackbaba has quit [Quit: Going offline, see ya! (www.adiirc.com)]
blackbaba has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael1 has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 258 seconds]
heftig has quit [Remote host closed the connection]
heftig has joined #ruby
milardovich has joined #ruby
isec has quit [Quit: Computer has gone to sleep.]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FahmeF_ has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
cdg has joined #ruby
michael1 has joined #ruby
FahmeF has quit [Ping timeout: 258 seconds]
milardovich has quit [Ping timeout: 240 seconds]
RickHull has quit [Ping timeout: 260 seconds]
FahmeF_ has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 252 seconds]
FahmeF_ has joined #ruby
Kug3lis_off is now known as Kug3lis
marr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
Kug3lis is now known as Kug3lis_off
conta has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
conta has quit [Client Quit]
michael1 has quit [Ping timeout: 264 seconds]
Sembei has joined #ruby
xsdg has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
uZiel has quit [Ping timeout: 246 seconds]
uZiel has joined #ruby
Technodrome has joined #ruby
blackwind_123 has quit [Ping timeout: 248 seconds]
blackwind_123 has joined #ruby
blackbaaba has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
blackbaaba_ has joined #ruby
blackbaba_ has joined #ruby
alfiemax has joined #ruby
dionysus69 has joined #ruby
raatiniemi has quit [Ping timeout: 240 seconds]
raatiniemi has joined #ruby
dionysus69 has quit [Client Quit]
blackbaba_ is now known as blakebaba
milardovich has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FahmeF_ has quit [Ping timeout: 248 seconds]
FahmeF has joined #ruby
blackbaaba has quit [Disconnected by services]
blackbaba has quit [Disconnected by services]
blakebaba is now known as blackbaba
blackbaaba_ has quit [Disconnected by services]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Technodrome has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
blackwind_123 has joined #ruby
biberu has joined #ruby
selim has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 240 seconds]
selim has joined #ruby
uZiel has joined #ruby
Rodya_ has joined #ruby
FahmeF_ has joined #ruby
FahmeF has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 258 seconds]
karapetyan has joined #ruby
blackbaba has quit [Quit: Going offline, see ya! (www.adiirc.com)]
snickers has joined #ruby
blackbaba has joined #ruby
uZiel has joined #ruby
gheegh has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anonymus88 has quit [Ping timeout: 252 seconds]
Psybur has joined #ruby
karapetyan has quit []
AnoHito_ has joined #ruby
AnoHito_ has quit [Client Quit]
AnoHito has quit [Ping timeout: 248 seconds]
Psybur has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
darkmorph has joined #ruby
_aeris_ has quit [Remote host closed the connection]
michael1 has joined #ruby
_aeris_ has joined #ruby
Technodrome has joined #ruby
GodFather has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
uptownjimmy has joined #ruby
FahmeF_ has quit [Ping timeout: 248 seconds]
FahmeF has joined #ruby
darkmorph has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Rodya_ has joined #ruby
guille-moe has joined #ruby
Rodya_ has quit [Ping timeout: 252 seconds]
Psybur has joined #ruby
<pskosinski> Any tip why gem update fails? https://paste.fedoraproject.org/paste/MTD4TBDRnj98hwlBAtP14w
<pskosinski> Oh damn, nvm
halt has quit [Quit: ZNC 1.6.5 - http://znc.in]
chmurifree has quit [Ping timeout: 252 seconds]
FahmeF has quit [Ping timeout: 240 seconds]
halt- has joined #ruby
Psybur has quit [Ping timeout: 260 seconds]
naprimer2 has quit [Remote host closed the connection]
Psybur has joined #ruby
Kug3lis_off is now known as Kug3lis
naprimer has joined #ruby
anonymus88 has joined #ruby
chmurifree has joined #ruby
marr has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
InfinityFye has joined #ruby
blackbaba has quit [Quit: Going offline, see ya! (www.adiirc.com)]
yqt has joined #ruby
dopie has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkam has joined #ruby
c0ncealed has quit [Remote host closed the connection]
dkam has quit [Client Quit]
c0ncealed has joined #ruby
dkam_ has joined #ruby
FahmeF has joined #ruby
dkam_ has quit [Client Quit]
phlebas_ has joined #ruby
tomphp has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
im0nde has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: brb]
dopie has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
phlebas_ has quit [Quit: Be back later ...]
Rodya_ has joined #ruby
michael4 has joined #ruby
dopie has joined #ruby
Rodya_ has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
michael1 has quit [Ping timeout: 240 seconds]
ta has joined #ruby
agent_white has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
chouhoulis has joined #ruby
JsilveR has joined #ruby
JsilveR has quit [Client Quit]
JsilveR has joined #ruby
alfiemax_ has joined #ruby
oleo2 has joined #ruby
Hexafox[I] has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 258 seconds]
InfinityFye has quit [Ping timeout: 248 seconds]
JsilveR has quit [Ping timeout: 255 seconds]
DLSteve has joined #ruby
guille-moe has quit [Remote host closed the connection]
dextrey has joined #ruby
leah2 has quit [Ping timeout: 264 seconds]
quobo has joined #ruby
oleo2 has quit [Ping timeout: 255 seconds]
Psybur has quit [Remote host closed the connection]
Psybur has joined #ruby
leah2 has joined #ruby
quuxman has joined #ruby
Quentinius has joined #ruby
Quentinius has quit [Client Quit]
dionysus69 has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
lxnr has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
_sfiguser has joined #ruby
_aeris has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris is now known as _aeris_
Technodrome has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
Rodya_ has joined #ruby
minimalism has joined #ruby
nikhgupta has joined #ruby
Rodya_ has quit [Ping timeout: 252 seconds]
garyserj has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
guille-moe has joined #ruby
[[thufir]] has joined #ruby
darkmorph has joined #ruby
dextrey has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
ledestin has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
mson has joined #ruby
xsdg has joined #ruby
guille-moe has quit [Ping timeout: 255 seconds]
apparition has quit [Quit: Bye]
lxnr has quit [Ping timeout: 258 seconds]
John___ has joined #ruby
banisterfiend has joined #ruby
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
steffes has joined #ruby
Psybur has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
kaitlyn has left #ruby [#ruby]
chouhoulis has quit [Remote host closed the connection]
Axy has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
chouhoulis has joined #ruby
michael1 has joined #ruby
lxnr has joined #ruby
michael4 has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 248 seconds]
lxnr has quit [Ping timeout: 246 seconds]
troulouliou_div2 has quit [Quit: Leaving]
troulouliou_div2 has joined #ruby
anonymus88 has quit [Remote host closed the connection]
uptownjimmy has quit [Quit: Page closed]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
mjolnird has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
troulouliou_div2 has joined #ruby
GodFather has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
lxnr has joined #ruby
swills has quit [Remote host closed the connection]
yqt has joined #ruby
steffes has quit []
lxnr has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Ping timeout: 248 seconds]
im0nde has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
thinkpad has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
swills has joined #ruby
swills has joined #ruby
swills_ has joined #ruby
malice has joined #ruby
<malice> Hi! Given a string(i.e. "hello"), how can I call a function with the same name, probably passing some arguments?
<malice> i.e. (call_function :hello 2) would be equivalent to hello(2)
<Papierkorb> What's your use-case?
<malice> umm, call(function(:hello, 2), sorry for my lisp there
<malice> Papierkorb: actually partially curious if you can do that. I'd get input from user and execute the function if it exists. I am aware that it's a terrible idea.
<malice> I've seen send, wondering if I can avoid eval.
darkmorph has quit [Ping timeout: 246 seconds]
<Papierkorb> This is ruby, you can do almost anything. Inclduing what you want. `Object#public_send` if you want to call only public methods, or `Object#send` if you want to call "anything" regardless if it's public or not. Always prefer the former if possible.
<Papierkorb> malice: Other solutions for real-world stuff would be using a Hash going from the string to a Proc you can call (Like `{ "foo" => ->(x, *y){ x.foo(*y) } }`), or using a `case` statement. I'd prefer the latter, but both are better than `#send` if you can avoid it :)
<malice> I see. Thanks!
mikhael_k33hl has joined #ruby
banisterfiend has joined #ruby
<mikhael_k33hl> Anyone here read the Pragmatic Programming Ruby? Foreword seems to be for third edition in the fourth edition
<malice> Papierkorb: Yeah, I know. I'd go with hash probably, or better yet - something more sophisticated like Command pattern
<malice> I don't really like the "case" because it's hard to change the behavior of your commands
<malice> or at least I don't know any
<Papierkorb> malice: Don't overcomplicate simple things. If e.g. a `case` or a Hash does the job, why make it more complicated?
goyox86 has joined #ruby
<Papierkorb> Yes that's the good thing about `case`: It's more static.
troulouliou_div2 has quit [Quit: Leaving]
goyox86 has quit [Client Quit]
goyox86 has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
DLSteve has joined #ruby
lxnr has joined #ruby
memo1 has joined #ruby
<memo1> exit
memo1 has left #ruby [#ruby]
memo1 has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
alfiemax has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
imode has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
lxnr has quit [Ping timeout: 258 seconds]
troulouliou_div2 has joined #ruby
michael1 has quit [Ping timeout: 260 seconds]
conta1 has joined #ruby
chouhoulis has joined #ruby
alnewkirk has joined #ruby
gizmore|2 is now known as gizmore
oncall-pokemon has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 248 seconds]
guille-moe has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
PaulCape_ has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
lxnr has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
guille-moe has quit [Ping timeout: 260 seconds]
alnewkirk has joined #ruby
weird_error has joined #ruby
jottr has joined #ruby
jottr has quit [Client Quit]
jottr has joined #ruby
enterprisey has joined #ruby
weird_error has quit [Quit: Lost terminal]
alnewkirk has quit [Ping timeout: 260 seconds]
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
ss_much has joined #ruby
alnewkirk has joined #ruby
cam27 has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
alnewkirk has quit [Ping timeout: 252 seconds]
Azure has quit [Read error: Connection reset by peer]
ResidentBiscuit has joined #ruby
goyox86 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
alnewkirk has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
enterprisey has joined #ruby
eb0t has quit [Quit: WeeChat 1.9.1]
eb0t has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
alnewkirk has quit [Ping timeout: 264 seconds]
TinkerTyper has joined #ruby
<darix> Papierkorb: because more LOC == better ;)
alnewkirk has joined #ruby
[[thufir]] has quit [Ping timeout: 248 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
goyox86 has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
alfiemax has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
alnewkirk has joined #ruby
Qommand0r has joined #ruby
Rodya_ has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 240 seconds]
cam27 has quit [Quit: cam27]
[[thufir]] has joined #ruby
michael1 has joined #ruby
konsolebox has joined #ruby
alnewkirk has quit [Ping timeout: 246 seconds]
guacamole has joined #ruby
alnewkirk has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 248 seconds]
duderonomy has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
alnewkirk has quit [Ping timeout: 246 seconds]
<waveprop> Lines Of Coin
nikhgupta has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
nikhgupta has joined #ruby
alnewkirk has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
memo1 has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
RickHull has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
meadmoon has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
meadmoon has quit [Client Quit]
alnewkirk has quit [Ping timeout: 248 seconds]
nikhgupta has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
millz has joined #ruby
nikhgupta has joined #ruby
<millz> hi friends
alnewkirk has joined #ruby
Dimik has joined #ruby
uneeb has joined #ruby
dviola has joined #ruby
conta1 has quit [Ping timeout: 240 seconds]
nikhgupta1 has joined #ruby
<texasmynsted> hi millz
hdeshev has joined #ruby
nikhgupta has quit [Ping timeout: 258 seconds]
guille-moe has joined #ruby
nikhgupta1 has quit [Ping timeout: 248 seconds]
uneeb has quit [Ping timeout: 240 seconds]
conta has joined #ruby
hdeshev has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
guille-moe has quit [Ping timeout: 252 seconds]
guille-moe has joined #ruby
alnewkirk has quit [Ping timeout: 252 seconds]
malice has quit [Remote host closed the connection]
michael1 has quit [Ping timeout: 248 seconds]
sucks has joined #ruby
alnewkirk has joined #ruby
banisterfiend has joined #ruby
apeiros_ has joined #ruby
nikhgupta1 has joined #ruby
nikhgupta2 has joined #ruby
blackwind_123 has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
nikhgupta1 has quit [Ping timeout: 264 seconds]
Rodya_ has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
alnewkirk has joined #ruby
banisterfiend has joined #ruby
Psybur has joined #ruby
banisterfiend has quit [Client Quit]
milardovich has quit [Ping timeout: 248 seconds]
michael1 has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
cdg has joined #ruby
alnewkirk has quit [Ping timeout: 246 seconds]
zapata has quit [Quit: WeeChat 1.9.1]
postmodern has joined #ruby
alnewkirk has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
tomaw has quit [Ping timeout: 622 seconds]
ur5us has joined #ruby
nikhgupta2 has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 252 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
ur5us has quit []
guacamole has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
memo1 has joined #ruby
alnewkirk has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
gigetoo has joined #ruby
tomphp has quit [Client Quit]
sucks has quit [Ping timeout: 264 seconds]
dviola has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
dviola has joined #ruby
John___ has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
Psybur has quit [Ping timeout: 246 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
JsilveR has joined #ruby
charliesome has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
dznet has joined #ruby
alnewkirk has joined #ruby
m27frogy has quit [Ping timeout: 258 seconds]
dznet has left #ruby ["Leaving"]
m27frogy has joined #ruby
Psybur has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
apeiros_ is now known as apeiros
[[thufir]] has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
[[thufir]] has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
Psybur has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
webguynow has quit [Ping timeout: 248 seconds]
synstack_ has joined #ruby
synstack_ has quit [Changing host]
synstack_ has joined #ruby
marxarelli|afk has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
synstack has quit [Ping timeout: 258 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
alnewkirk has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
michael1 has quit [Ping timeout: 258 seconds]
Technodrome has joined #ruby
banisterfiend has quit [Client Quit]
raynold has quit [Quit: Connection closed for inactivity]
alnewkirk has joined #ruby
Puffball has quit [Remote host closed the connection]
guille-moe has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
Puffball has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
alnewkirk has quit [Ping timeout: 264 seconds]
marr has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
<mikecmpbll> if i can see that there's a variable (Float) existing in ObjectSpace, is there any way i can see somehow what is referencing it?
cschneid_ has joined #ruby
<mikecmpbll> i.e. maybe there's an instance variable in an instance of Foo class that holds a reference to the float
<mikecmpbll> that would be the kind of info that would really help me debug this :D
<apeiros> I don't think vanilla ruby provides a way :(
<apeiros> vanilla ruby can help you figure out when stuff starts to be referenced via objspace, but afaik, that's about it
conta has quit [Read error: Connection reset by peer]
alnewkirk has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
[[thufir]]1 has joined #ruby
<mikecmpbll> okay thanks apeiros :)
<apeiros> well… sorry :-(
<apeiros> you might be able to pull something off using dprobes. but I got no experience to provide support with that.
biberu has quit []
memo1 has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guille-moe has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
Lyubo1 has quit [Read error: Connection reset by peer]
Lyubo1 has joined #ruby
alnewkirk has joined #ruby
reber has quit [Quit: Leaving]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
quobo has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
<RickHull> what about hooking into some GC methods?
<RickHull> (wild stab)
Emmanuel_Chanel has joined #ruby
<RickHull> there might be something fruitful in here http://ruby-doc.org/core-2.4.2/GC.html
guacamole has joined #ruby
<RickHull> this looks interesting https://ruby-hacking-guide.github.io/gc.html
alnewkirk has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
guacamole has quit [Client Quit]
k3rn31_ has joined #ruby
raynold has joined #ruby
k3rn31 has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
<RickHull> i'm guessing the GC reference tracking is internal to the runtime
houhoulis has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
<mikecmpbll> RickHull : interesting, though not sure i've any way of getting at that info
cschneid_ has joined #ruby
<mikecmpbll> (object references)
<mikecmpbll> the memory_profiler gem tracks where it was initialised, but i can't for the life of me work out why it's being held on to.
<RickHull> paste some code / examples?
<RickHull> may be more trouble than it's worth
alnewkirk has quit [Ping timeout: 246 seconds]
<RickHull> two difficult avenues that might not pay off could be 1. try to hack GC / ObjSpace stuff to tell you what you want 2. try to distill your behavior to a simpler test case
jphase has quit [Remote host closed the connection]
<mikecmpbll> yeah, i'm working on the latter
<_aeris_> hello #ruby !
<apeiros> moin _aeris_
<RickHull> aloha _aeris_
<_aeris_> i hit a very trick behavior with Kernel.exec… I don't understand at all the problem :'(
<RickHull> what is the symptom?
dviola has quit [Ping timeout: 252 seconds]
<_aeris_> I develop a SSH client to isolate ssh-agent, and I use exec to invoke real SSH with custom parameter
<_aeris_> when I run a SSH command with "-N" and then I put the ssh command in background
<_aeris_> my terminal is totaly borked
<RickHull> what is -N ? and how are you putting it in background?
<_aeris_> only some key press lead to a letter print
<_aeris_> like if a process swallow input
<_aeris_> ssh server -N &
<_aeris_> after that, input/output is borked
alnewkirk has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_aeris_> 1 letter out of 2 or 3 is printed on the term after that, the other "vanished" somewhere
<_aeris_> I debug a lot this night, but seems it's exec :(
tomphp has joined #ruby
<RickHull> can you confirm the behavior without ruby code?
<_aeris_> no, native SSH command, no trouble
<RickHull> also put some debug print statements before the exec to confirm exactly what is being execd
<_aeris_> that's what I do
<_aeris_> the command is good
<_aeris_> the same run outside ruby is ok
<RickHull> paste some examples with output and such if you can
mim1k has joined #ruby
<_aeris_> I notice a "mesg: ttyname failed: Ioctl() inappropriate ioctl for device" too
alnewkirk has quit [Ping timeout: 240 seconds]
<_aeris_> here is the debug
JsilveR has quit [Ping timeout: 252 seconds]
guacamole has joined #ruby
<_aeris_> and here is the output
<_aeris_> the last line is what I got when I try to write "testtesttesttest"
guacamole has quit [Client Quit]
miromanyth has joined #ruby
<miromanyth> Anyone try writing a roguelike in Ruby?
alnewkirk has joined #ruby
<RickHull> _aeris_: the last paste -- is that showing naked ssh or your ruby-wrapped ssh?
<_aeris_> ruby-wrapped
dviola has joined #ruby
<RickHull> _aeris_: I probably can't help much further, maybe someone else can
tomaw_ has joined #ruby
<miromanyth> RickHull, Thanks!
<RickHull> i would maybe try testing without `&` -- that may not be the best way to keep your tunnel going
tomaw_ is now known as tomaw
<_aeris_> hum… seems i have the trouble with naked ssh in some case…
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> it's my uber minimal version of keychain for maintaining the ssh-agent sock details
<_aeris_> ssh-ident allow multiple agent
<_aeris_> 1 per identity
<RickHull> yeah, I haven't messed with that ever
<_aeris_> so your personal key is not mixed with work key, even when SSH agent forward
<RickHull> my thing is pretty much a hack -- only tested on debian
<_aeris_> (and you can split your ssh config too)
<RickHull> i wonder why ssh-agent doesn't do what I'm doing by default though
<_aeris_> all seems good, but i have some trouble with io when wrapped :'(
<_aeris_> i have another trouble with this wrapper and Popen3.capture3
cdg has quit [Remote host closed the connection]
<_aeris_> seems stderr is never closed
zapata has joined #ruby
<RickHull> ah yeah
<RickHull> :thinking:
cdg has joined #ruby
<RickHull> I ran into this before too -- it's something to do with strict tty/shell behavior and that ssh only seems like a remote terminal
<_aeris_> seems exec "swallow" io
<_aeris_> (or at least is not totally transparent from the outside)
miromanyth has left #ruby ["Leaving"]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> consider this, there is a STDOUT/STDERR on the server; but I don't think these are maintained in the tunnel back to your client
<RickHull> I may be barking up the wrong tree (english idiom :)
cdg has quit [Ping timeout: 258 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
<_aeris_> with -N, there is no stdout/err open
alnewkirk has joined #ruby
<RickHull> i think what I ran into was: when invoking a remote process, that process has to explicitly close STDERR or else something wrapping it does
<RickHull> or else the remote process and tunnel just hang
<RickHull> something like that
<RickHull> sorry, these are fuzzy memories :)
<_aeris_> even running "ssh some-host true" hang capture3…
<_aeris_> ssh process is really destroyed, but capture3 hangs on e.read
<RickHull> yes, I think this is by design / spec
<RickHull> try true 2>&1 maybe? i think there was some other shell way to close STDERR explicitly
<RickHull> I had all this notated and figured out, in code and docs, 2 employers ago :/
<_aeris_> native ssh comman doen's hang :( only the wrapped one
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lacour has joined #ruby
<RickHull> also, are you using -v -vv -vvv etc ?
<_aeris_> yep
<_aeris_> but no difference with or without…
<_aeris_> hum…
<_aeris_> seems I found a better guilty guy !
<_aeris_> with -o ControlMaster, no trouble !
kapil___ has quit [Quit: Connection closed for inactivity]
alnewkirk has quit [Ping timeout: 240 seconds]
<_aeris_> hum… no reproductible /o\
Technodrome has joined #ruby
phlebas_ has joined #ruby
alnewkirk has joined #ruby
troulouliou_dev has joined #ruby
ivanskie has joined #ruby
milardovich has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<pppktz> exit
alnewkirk has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
phlebas_ has quit [Quit: Lingo: www.lingoirc.com]
dkam_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[[thufir]] has joined #ruby
[[thufir]]1 has quit [Quit: Leaving.]
charliesome has joined #ruby
thinkpad has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 260 seconds]
[[thufir]]1 has joined #ruby
[[thufir]] has quit [Client Quit]
mtkd has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
<RickHull> no u
troulouliou_dev has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
dopie has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
houhoulis has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
cdg has joined #ruby
[[thufir]]1 has quit [Quit: Leaving.]
[[thufir]] has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
[[thufir]] has quit [Client Quit]
[[thufir]] has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
darkmorph has joined #ruby
mgorbach has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
alex`` has quit [Ping timeout: 240 seconds]
goyox86 has quit [Ping timeout: 258 seconds]
goyox86 has joined #ruby
Asher has joined #ruby
goyox86 has quit [Client Quit]
goyox86 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
nopoliti1 has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
goyox86 has quit [Read error: Connection reset by peer]
alnewkirk has quit [Ping timeout: 255 seconds]
goyox86 has joined #ruby
ahrs has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
alnewkirk has joined #ruby
<RickHull> what's a slick way to determine if X is a power of N (both integers)? e.g. is 5 a power of 2?
<RickHull> Math.log(x, n) surely helps
<apeiros> what's wrong with Math.log?
<RickHull> >> [Math.log(5, 2), Math.log(8, 2)]
<ruby[bot]> RickHull: # => [2.321928094887362, 3.0] (https://eval.in/893070)
<RickHull> what's the test?
<apeiros> either % 1 == 0, or base ** result.round == value
Technodrome has joined #ruby
<RickHull> ooh, % 1 == 0
<apeiros> I'd probably use the latter to avoid issues with floats
<RickHull> thanks
<RickHull> the latter is decidedly not slick
xtexx has joined #ruby
<RickHull> >> [Math.log(5, 2), Math.log(8, 2)].map(&:to_r)
<ruby[bot]> RickHull: # => [(5228517251457905/2251799813685248), (3/1)] (https://eval.in/893071)
<RickHull> i wonder though, once the Math.log value has been reified as a float
<RickHull> can't you lose precision and not get your clean integer back?
Technodrome has quit [Client Quit]
<RickHull> is that the same problem with % 1 == 0 ?
<apeiros> conversion to float is lossy except for values representable by float.
<RickHull> I'm not sure how to apply that to Math.log(x, n)
<apeiros> "that"?
guacamole has joined #ruby
AnoHito has joined #ruby
<RickHull> one way to read your last statement is that the result of Math.log(x, n) is not generally representable by a float
<RickHull> but yet that's what it returns
<apeiros> Math.log returns a float
alnewkirk has quit [Ping timeout: 240 seconds]
<apeiros> it might not be precise enough for % 1 to be zero, even though it should be
moei has quit [Quit: Leaving...]
<apeiros> cf.:
<apeiros> >> ((0.1 + 0.2) - 0.3) % 1 == 0
<ruby[bot]> apeiros: # => false (https://eval.in/893073)
<elomatreb> Any way to get it to return Rationals? I feel like it should do that if one or more of the arguments are Rationals
<apeiros> hence I'd use the **round approach. less brittle wrt float approximations.
<apeiros> no. no way to get it to return rationals.
<apeiros> you'd have to implement it yourself and even then afair log is an infinite series expansion (I hope I translated that correctly)
<apeiros> been a while since I learned how to do log by hand. so I might be wrong :)
dviola has quit [Ping timeout: 258 seconds]
John___ has joined #ruby
alnewkirk has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]