havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
davidhq has joined #ruby
roxtrongo has joined #ruby
mghaig has joined #ruby
tenderlove has joined #ruby
mghaig has left #ruby [#ruby]
mary5030 has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
mxrguspxrt has joined #ruby
roxtrong_ has joined #ruby
aerozepplin has quit [Read error: Connection reset by peer]
mghaig has joined #ruby
n_blownapart has joined #ruby
ericjphillips has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
roxtrongo has quit [Ping timeout: 244 seconds]
<zenspider> to_c? oh... complex
<zenspider> I wrote Proc#to_c... that' different :P
n_blownapart has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
maletor has joined #ruby
iateadonut has joined #ruby
bklane has quit [Remote host closed the connection]
martin_work has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
axiomatic_345 has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby
eminencehc has joined #ruby
nicdev has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Connection reset by peer]
marr has quit []
arescorpio has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
Guest305 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
matp has joined #ruby
arooni has quit [Ping timeout: 246 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
howdoicomputer has quit [Quit: WeeChat 1.3]
martin_work has quit [Quit: martin_work]
tenderlove has quit [Ping timeout: 240 seconds]
korolyov has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
slawrence00 has quit [Ping timeout: 255 seconds]
korolyov has quit [Client Quit]
bronson has quit [Remote host closed the connection]
mghaig has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby
eminencehc has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest40241 has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
korolyov has joined #ruby
Ox0dea has quit [Ping timeout: 246 seconds]
Balzrael has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
cirenyc has quit [Quit: Linkinus - http://linkinus.com]
bruno- has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
dikaio has joined #ruby
jhn has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
mxrguspxrt has quit []
roxtrongo has joined #ruby
tenderlove has joined #ruby
hashrocket has quit [Quit: Connection closed for inactivity]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
average has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
<average> I am so bored
<average> do you know how bored I am ?
<average> jesus christ
<average> I'm bored
shmilan has joined #ruby
baweaver has quit [Remote host closed the connection]
average has left #ruby [#ruby]
bl0ndie has joined #ruby
Guest305 has quit [Ping timeout: 256 seconds]
cirenyc has joined #ruby
davidhq has quit [Quit: Textual IRC Client: www.textualapp.com]
dmolina1 has quit [Quit: Leaving.]
<eam> me too, let's write some ruby
goncalo has left #ruby [#ruby]
TomyLobo has quit [Ping timeout: 264 seconds]
allcentury has joined #ruby
mary5030 has quit [Remote host closed the connection]
korolyov has quit [Quit: ZNC - http://znc.in]
mary5030 has joined #ruby
bmurt has joined #ruby
maletor has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<jeffreylevesque> is there a package that will lint csv files?
mary5030 has quit [Ping timeout: 240 seconds]
axiomatic_345 has joined #ruby
Rickmasta has joined #ruby
ledestin has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
tenderlove has joined #ruby
mghaig has joined #ruby
axiomatic_345 has quit [Client Quit]
peterhu has quit [Remote host closed the connection]
korolyov has joined #ruby
bronson has quit [Remote host closed the connection]
odigity has joined #ruby
<odigity> What's the difference between this doc [http://ruby-doc.org/core-2.2.3/Time.html] and this doc [http://ruby-doc.org/stdlib-2.2.3/libdoc/time/rdoc/Time.html]?
vdamewood has joined #ruby
joufflu has joined #ruby
barhum2013 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 264 seconds]
mghaig has quit []
mghaig has joined #ruby
workmad3 has joined #ruby
cassioscabral has joined #ruby
bronson has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
Ox0dea has joined #ruby
tenderlo_ has joined #ruby
barhum2013 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<drbrain> odigity: poor parsing by ruby-doc.org, probably
<drbrain> odigity: part of Time is built into ruby, while the other part must be required
<drbrain> the second link is what you get from require 'time'
<Ox0dea> >> [Time.methods.size, require('time'), Time.methods.size] # odigity
<ruboto> Ox0dea # => [106, true, 114] (https://eval.in/442579)
Papierkorb has quit [Ping timeout: 240 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
tenderlove has quit [Ping timeout: 265 seconds]
symbol_ has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
guilherme has joined #ruby
guilherme is now known as Guest29226
CloCkWeRX has left #ruby [#ruby]
UtkarshRay has joined #ruby
ericjphillips has left #ruby [#ruby]
Papierkorb has joined #ruby
sankaber has joined #ruby
dravine has joined #ruby
korolyov has quit [Quit: ZNC - http://znc.in]
JDiPierro has joined #ruby
korolyov has joined #ruby
segfalt has quit [Quit: segfalt]
<jhn> what's the rails channel?
mary5030 has joined #ruby
<Ox0dea> ?rails jhn
<ruboto> jhn, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jhn> ty
<Ox0dea> You're welcome.
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
jhn has joined #ruby
jkladsf has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
blackmesa has joined #ruby
jkladsf has quit [Client Quit]
SCHAAP137 has quit [Quit: Leaving]
haraoka has joined #ruby
devoldmx has joined #ruby
drocsid has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
tenzan has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 252 seconds]
RegulationD has quit [Remote host closed the connection]
bmurt has quit []
swgillespie has joined #ruby
bruno- has joined #ruby
arooni has joined #ruby
eminencehc has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
solocshaw has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Ping timeout: 250 seconds]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
tenderlove has joined #ruby
tenderlo_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Ox0dea has joined #ruby
cmoel has joined #ruby
amystephen has quit [Quit: amystephen]
mary5030 has quit [Ping timeout: 272 seconds]
jcdesimp has joined #ruby
devbug has joined #ruby
bronson has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
korolyov has quit [Quit: ZNC - http://znc.in]
<tenzan> test
<dravine> nil
JDiPierro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
mghaig has left #ruby [#ruby]
agent_white has joined #ruby
korolyov has joined #ruby
ReK2 has quit [Ping timeout: 240 seconds]
maikowblue has quit [Quit: .]
korolyov has quit [Client Quit]
<Ox0dea> >> test(42) rescue $!
<ruboto> Ox0dea # => #<ArgumentError: unknown command '*'> (https://eval.in/442580)
<Ox0dea> Wat.
<Ox0dea> I know 42.chr == '*', but why does #test do that?
korolyov has joined #ruby
CpuID has joined #ruby
<Coraline> OK, the #test method is impossible to google for
EllisTAA has joined #ruby
barhum2013 has quit [Quit: barhum2013]
<Ox0dea> &ri Kernel#test
<Coraline> Weird
barhum2013 has joined #ruby
bmurt has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
<Ox0dea> I suspect it to be a holdover from before 1.9, when `?* == 42`.
<Ox0dea> 18>> ?* == 42
<ruboto> Ox0dea # => true (https://eval.in/442583)
<Ox0dea> The NUM2CHR() macro is poorly named; it coerces strings as well.
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
korolyov has quit [Quit: ZNC - http://znc.in]
_djbkd has quit [Quit: My people need me...]
dorei has quit []
barhum2013 has quit [Quit: barhum2013]
bmurt has quit []
tenderlove has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
freerobby has joined #ruby
freerobby has quit [Client Quit]
Azure has quit [Remote host closed the connection]
bl0ndie has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
symbol_ has quit [Ping timeout: 246 seconds]
yeticry has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
mary5030 has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
s00pcan has quit [Ping timeout: 272 seconds]
wldcordeiro has quit [Remote host closed the connection]
s00pcan has joined #ruby
ejnahc has quit [Remote host closed the connection]
nettoweb has joined #ruby
ejnahc has joined #ruby
bklane has joined #ruby
yeticry has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
shmilan has joined #ruby
wldcordeiro has joined #ruby
chouhoulis has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
jenrzzz has quit [Ping timeout: 250 seconds]
iateadonut has quit [Read error: No route to host]
wldcordeiro has quit [Read error: Connection reset by peer]
wldcordeiro has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghanima has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
bklane has quit [Remote host closed the connection]
<Ox0dea> How old do you want to be on the greatest day of your life?
blackjid has quit [Max SendQ exceeded]
Meow-J has joined #ruby
baweaver has joined #ruby
blackjid has joined #ruby
<Coraline> 20000 days old
blackmesa has quit [Ping timeout: 264 seconds]
<Ox0dea> >> 20000.divmod 365.25
<ruboto> Ox0dea # => [54, 276.5] (https://eval.in/442618)
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Right around lunchtime, then.
RegulationD has joined #ruby
nicdev is now known as nicdev_
TheRinger has quit [Ping timeout: 268 seconds]
<Ox0dea> That didn't make a great deal of sense, in hindsight.
cassioscabral has joined #ruby
s00pcan has quit [Ping timeout: 264 seconds]
<Coraline> I thought you were calling me old.
TheRinger has joined #ruby
<Ox0dea> I tried to do a funny about the fractional result.
RegulationD has quit [Ping timeout: 240 seconds]
<pipework> That would be rude and unlike Ox0dea!
wldcordeiro has quit [Quit: Konversation terminated!]
s00pcan has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
an0ma1y has joined #ruby
vdamewood has quit [Quit: Life beckons.]
wldcordeiro has joined #ruby
<Ox0dea> 20000 is a Saturday for me. Fingers crossed.
noethics has quit [Quit: Leaving]
EllisTAA has quit [Quit: EllisTAA]
wldcordeiro has quit [Read error: Connection reset by peer]
favadi has joined #ruby
bronson has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Guest29226 has quit [Ping timeout: 240 seconds]
wldcordeiro has joined #ruby
fullofcaffeine has joined #ruby
devoldmx has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
TheRinger has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jackjackdripper has quit [Quit: Leaving.]
TheRinger has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
sdothum has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
TheRinger has quit [Remote host closed the connection]
inteq has joined #ruby
wldcordeiro has quit [Quit: Konversation terminated!]
inteq has quit [Max SendQ exceeded]
inteq has joined #ruby
inteq has quit [Max SendQ exceeded]
inteq has joined #ruby
psy_ has joined #ruby
gener1c_ has quit [Ping timeout: 256 seconds]
iamninja_ has quit [Ping timeout: 250 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
braincrash has quit [Quit: bye bye]
TheRinger has joined #ruby
gener1c has joined #ruby
charliesome_ has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
edwardly has joined #ruby
edwardly has joined #ruby
braincrash has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
gambl0re has quit []
gambl0re has joined #ruby
gambl0re has quit [Client Quit]
gambl0re has joined #ruby
yeticry has joined #ruby
swgillespie has quit [Client Quit]
bklane has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
gambl0re has quit [Client Quit]
gambl0re has joined #ruby
<odigity> drbrain, ah ha -- hence the difference between 'core' and 'stdlib'. That makes sense. Thanks!
j___ has joined #ruby
zotherstupidguy has joined #ruby
fullofcaffeine has joined #ruby
evanjs has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
gix has quit [Ping timeout: 268 seconds]
TheRinger has quit [Read error: Connection reset by peer]
opensource_ninja has quit [Quit: opensource_ninja]
TheRinger has joined #ruby
bmurt has quit []
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
gix has joined #ruby
blackmesa has joined #ruby
bklane has quit []
jcdesimp has quit [Quit: Leaving...]
Ryzokuken has joined #ruby
cirenyc has quit [Quit: Leaving...]
<agent_white> Evenin' folks
<Ryzokuken> Hi!
amystephen has joined #ruby
<Ryzokuken> >> Marshal.dump "hello world"
<ruboto> Ryzokuken # => "\x04\bI\"\x10hello world\x06:\x06ET" (https://eval.in/442621)
blackmesa has quit [Ping timeout: 252 seconds]
yeticry has quit [Read error: Connection reset by peer]
amystephen has quit [Ping timeout: 246 seconds]
<drbrain> I can still read Marshal output
yeticry has joined #ruby
cirenyc has joined #ruby
bmurt has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
psy_ has quit [Ping timeout: 265 seconds]
Ox0dea has quit [Disconnected by services]
Ox0dea has joined #ruby
<pipework> drbrain: You're a funny guy.
rubybeginner has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
wldcordeiro has quit [Read error: Connection reset by peer]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest98154
diego1 is now known as diegoviola
Guest98154 has quit [Ping timeout: 272 seconds]
<Ox0dea> >> ObjectSpace.each_object.max_by { |o| Marshal.dump(o).size rescue 0 }.size
<ruboto> Ox0dea # => 226 (https://eval.in/442623)
evanjs has joined #ruby
Cyther_ has joined #ruby
lubarch has joined #ruby
arup_r has joined #ruby
<pipework> Ox0dea: Run that in a rails app context!
<pipework> :D
armyriad has quit [Ping timeout: 255 seconds]
<Ox0dea> pipework: I meant for it to show the size of the dump rather than the object itself. :/
maletor has joined #ruby
armyriad has joined #ruby
Cyther has quit [Ping timeout: 250 seconds]
<pipework> I don't know enough about Marshal to know what you're saying. :d
EasyCo has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
freerobby has joined #ruby
EllisTAA has joined #ruby
bmurt has quit []
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
evanjs has quit [Remote host closed the connection]
<Ox0dea> pipework: It's for persisting (some) objects to disk for later retrieval.
<pipework> Ox0dea: Oh, I know what it's used for.
DexterLB has quit [Ping timeout: 260 seconds]
<pipework> I just don't know enough about how it works.
<pipework> With regard for size of the dump vs the object itself.
michael_mbp has quit [Excess Flood]
<Ox0dea> Well, Hash#size is the number of key-value pairs, not internal memory, but I take your point.
cassioscabral has joined #ruby
DexterLB has joined #ruby
sdothum has joined #ruby
srruby has joined #ruby
michael_mbp has joined #ruby
bmurt has joined #ruby
<Ox0dea> I think the object with the largest dump length in a typical Rails app would still be this Hash of Gem::StubSpecifications.
<Ox0dea> Lots of instance variables on that class.
lubarch has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
<srruby> Anyone using aws instances for development ? Any advice ?
<ght> Question: I want to check if a number is within a range, such as 1..3
<ght> I know with case, it's when 1..3
<ght> can you simply do if x == 1..3
<ght> ?
<ght> Or what would the syntax be for that?
<ght> instead of having to write "if x == 1 || x == 2 || x == 3"
lubarch has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Coraline> (1..3).include?(2)
<Coraline> >> (1..3).include?(2)
<ruboto> Coraline # => true (https://eval.in/442624)
houhoulis has joined #ruby
<ght> so if (1..3).include?(x)
<Coraline> Yep
<ght> Thank you, very helpful.
<pipework> #cover? might be preferable.
<Coraline> http://ruby-doc.org/core-2.2.0/Range.html#method-i-include-3F has a lot of good stuff in it.
<pipework> #include?, iirc, expands the range.
<ght> What would the syntax for cover be in this scenario?
<pipework> Whereas #cover? checks if it's within the bounds of the range.
<pipework> ght: The docs will reveal all.
<ght> lol, ok. Thank you.
<Ox0dea> >> (1..3).include? 2.5 # pipework
<ruboto> Ox0dea # => true (https://eval.in/442625)
<pipework> >> (1..1_000_000_000).cover?(4)
<ruboto> pipework # => true (https://eval.in/442626)
<pipework> Being lazy can be good for you.
<Coraline> Good point pipework
<Ox0dea> pipework: I've just demonstrated that #include? doesn't "expand the range".
<pipework> Ox0dea: "Returns true if the given object is present in self (that is, if any element == object), otherwise returns false."
<pipework> That's for #include?
<Ox0dea> >> (1..3).include? 2.5 # And yet.
<ruboto> Ox0dea # => true (https://eval.in/442627)
<pipework> Returns true if obj is between the begin and end of the range.\n This tests begin <= obj <= end when exclude_end? is false and begin <= obj < end when exclude_end? is true.
ramfjord has quit [Quit: Lost terminal]
<pipework> Ox0dea: I'd have to look into the actual implementation to see whether #include? would be safe for extremely large ranges.
<pipework> I think for integers, it's optimized.
<pipework> But in general, I prefer cover? for ranges that might not have optimized codepaths for certain objects.
<BraddPitt> w 4
devoldmx has quit [Remote host closed the connection]
bmurt has quit []
Gnomethrower has quit [Ping timeout: 240 seconds]
<Ox0dea> BraddPitt: What's so special about Window 4?
lurkmast_ has joined #ruby
bmurt has joined #ruby
iamjarvo_ has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
<pipework> Maybe it's an optimization of thumb and index finger switching if they had keyboard shortcuts.
<Ox0dea> pipework: You posted Array's #include? documentation, not Range's, mind.
casadei has quit [Remote host closed the connection]
<pipework> Ah you're right, Dash forgot that I was scoped to Range the first time I looked.
cassioscabral has quit [Quit: cassioscabral]
<pipework> Returns true if obj is an element of the range, false otherwise. If begin and end are numeric, comparison is done according to the magnitude of the values.
<BraddPitt> can't tell you that, Ox0dea ;)
<Ox0dea> BraddPitt: Gross.
<Ox0dea> pipework: In any case, case equality is defined in terms of #include? for Ranges.
lurkmast_ has left #ruby [#ruby]
skweek has quit [Read error: Connection reset by peer]
<Ox0dea> ght: You asked if you could do `x == 1..3`; you can get pretty close:
<Ox0dea> >> x = 2; (1..3) === x
<ruboto> Ox0dea # => true (https://eval.in/442628)
<Ox0dea> Forget you ever saw this, though. :P
cschneid_ has quit [Remote host closed the connection]
<pipework> Ox0dea: ohlawdy
devoldmx has joined #ruby
<pipework> Nice for case statements I guess.
TvL2386 has quit [Ping timeout: 252 seconds]
cirenyc has quit [Quit: Leaving...]
<Ox0dea> And #grep.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> And #any? and friends some day.
jun_ has joined #ruby
chino has joined #ruby
<pipework> Ox0dea: Some cases are more equal than others?
<Ox0dea> Hm?
chino is now known as Guest50518
<Ox0dea> Case equality is equality on steroids.
lampshades has quit []
<pipework> Ox0dea: Was just an Animal Farm joke.
<Ox0dea> It "does the right thing" for primitive objects and so much in the "interesting" cases.
davedev24 has quit []
<Ox0dea> >> even = -> x { x & 1 == 0 }; even === 42
<ruboto> Ox0dea # => true (https://eval.in/442629)
<Ox0dea> >> odd = -> x { x & 1 == 1 }; (1..10).grep(odd)
<ruboto> Ox0dea # => [1, 3, 5, 7, 9] (https://eval.in/442630)
bmurt has quit []
sdwrage has quit [Quit: This computer has gone to sleep]
mjago has joined #ruby
bmurt has joined #ruby
tenzan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
poguez_ has quit [Quit: Connection closed for inactivity]
cmoel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit []
zotherstupidguy has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
michaeldeol has joined #ruby
zotherstupidguy has joined #ruby
<Guest50518> is there nothing like module_function for a class?
<Ox0dea> Guest50518: Classes are modules.
blackmesa has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
<Guest50518> yes but apparently module_function not available in classes
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest91123
diego1 is now known as diegoviola
<Ox0dea> Guest50518: Could you clarify why you think you need "class_function"?
<Guest50518> well I'm just playing around but stead of `def self.meth` for all the methods or having to use `class << self; ...` to wrap the whole thing I was curious if there is something like module_function
<Ox0dea> Fair enough. There isn't such a thing, to my knowledge.
CloCkWeRX has joined #ruby
Guest91123 has quit [Ping timeout: 272 seconds]
<Ox0dea> How rude.
<Guest50518> heh
<Guest50518> can't we just copy it back in?
<Ox0dea> Class.send :define_method, :module_function, Module.instance_method(:module_function)
<Ox0dea> `module_function': module_function must be called for modules (TypeError)
ejnahc has quit [Remote host closed the connection]
<Ox0dea> They knew we'd try that.
ejnahc has joined #ruby
workmad3 has joined #ruby
<Guest50518> heh trying to find the implementation fo it
tjbiddle has joined #ruby
<Guest50518> rb_mod_modfunc
diego1 has joined #ruby
<Ox0dea> It's not as simple as you might've expected.
pawnbox has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest20437
<Ox0dea> Well, in the nonary case, it just invokes rb_scope_module_func_set(), so that's the function you'll want to look into.
lubarch has quit [Ping timeout: 252 seconds]
diego1 is now known as diegoviola
[k- has joined #ruby
<Ox0dea> Still, it's setting members of an internal struct, so you won't be able to perfectly emulate it from Ruby.
<Guest50518> maybe there is a callback to listen for a method being defined and you could simply then copy it into the class
<Ox0dea> Ew.
<Guest50518> :]
psy_ has joined #ruby
Guest20437 has quit [Ping timeout: 268 seconds]
<Guest50518> i guess you could delete the instance method at that point too if that makes you feel better?
pawnbox_ has joined #ruby
lubarch has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
<Ox0dea> There is Class#method_added if you really want to go to such extremes.
workmad3 has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
<[k-> Ox0dea! I missed you!
<Ox0dea> [k-! I missed you too.
<[k-> where did you go?
tmtwd has joined #ruby
<Ox0dea> Saudi Arabia.
<[k-> :o
<[k-> that's pretty far from where you live
<Ox0dea> In more ways than one.
pawnbox has joined #ruby
<[k-> i see what you did there
<Guest50518> Ox0dea: stack level too deep which makes sense :]
<Ox0dea> Guest50518: Nah, you explicitly opened the singleton class, I think?
vdamewood has joined #ruby
havenwood has joined #ruby
<Ox0dea> `def self.foo` doesn't open a new "scope gate", so to speak, whereas `class << self` does.
bronson has quit [Ping timeout: 250 seconds]
pawnbox_ has quit [Ping timeout: 240 seconds]
<Ox0dea> Guest50518: I can't think how to do it without defining the class methods in terms of the instance methods, which means they can't be removed. :/
srruby has quit [Ping timeout: 265 seconds]
<Guest50518> yea I'm having issues trying to use method_added, define_method, instance_method
arescorpio has quit [Quit: Leaving.]
shmilan has quit [Ping timeout: 246 seconds]
<Ox0dea> Here's where I'm at: https://eval.in/442634
<Ox0dea> I think the best that can be done is to make the instance methods private. :<
auzty has joined #ruby
iamninja_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
<Ox0dea> Guest50518: https://eval.in/442635
<Ox0dea> I'd never used a visibility modifier on the return value of #define_singleton_method before now.
<Guest50518> I'm still looking at the old version trying to understand
<Guest50518> all you changed was setting it private?
<Guest50518> idk this is wicked confusing
<Ox0dea> Like, all of it, or?
bhaak has quit [Ping timeout: 240 seconds]
<Ox0dea> Just how the various scopes are interacting?
bhaak has joined #ruby
<[k-> private isn't even a keyword?
iamninja_ has quit [Ping timeout: 260 seconds]
<[k-> >> private
<ruboto> [k- # => Object (https://eval.in/442636)
<Ox0dea> >> private == self
<ruboto> Ox0dea # => false (https://eval.in/442637)
<Ox0dea> Huh.
yeticry_ has joined #ruby
<Ox0dea> Oh, right; the visibility modifiers return the module under modification.
<[k-> Object is not == to an instance of Object
yeticry has quit [Ping timeout: 255 seconds]
opensource_ninja has joined #ruby
<Ox0dea> >> class Foo; $p = private; end; $p
<ruboto> Ox0dea # => Foo (https://eval.in/442638)
<Ox0dea> >> defined? private
<ruboto> Ox0dea # => "method" (https://eval.in/442639)
jenrzzz has joined #ruby
<Guest50518> Ox0dea: so i changed your define_singleton_method to just define_method and it works too? part of me was thinking that it would be equivalent anyway?
diegoviola has quit [Ping timeout: 240 seconds]
<Ox0dea> Guest50518: Which? There are two.
tmtwd has quit [Ping timeout: 246 seconds]
<Guest50518> just the outer one
<Guest50518> oh wait now it says undefined not private
<Ox0dea> Right.
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
Lycanii has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
RobertBirnie has joined #ruby
diego1 is now known as diegoviola
<Guest50518> i was trying various versions of https://eval.in/442640
psy_ has quit [Read error: Connection reset by peer]
<Ox0dea> > Object is not == to an instance of Object
<Ox0dea> Guest50518: ^
pawnbox_ has joined #ruby
<Ox0dea> That's the crux of that error.
<Ox0dea> It's a bit like trying to finagle Ruby into invoking the #keys method on a String.
<Guest50518> but all I'm saying is give me an unbound method and set it to the class
<Guest50518> just like you did earlier
<Ox0dea> >> Hash.instance_method(:keys).bind(Hash) rescue $! # Guest50518
<ruboto> Ox0dea # => #<TypeError: bind argument must be an instance of Hash> (https://eval.in/442641)
Thr3d_ has quit [Read error: Connection reset by peer]
<Ox0dea> Instances of Hash can sensibly respond to #keys, but Hash itself cannot.
TvL2386 has joined #ruby
ruurd has joined #ruby
<Ox0dea> Ruby doesn't even let you bind such nonsensicalities, let alone invoke them.
<[k-> that's because of the instance variable required, the methods required, and the jungle and bananas needed
<Guest50518> so it's failing trying to analyze the content of the method given the bind target?
pawnbox has quit [Ping timeout: 240 seconds]
<Guest50518> like i didn't expect it to be that smart?
<Ox0dea> Guest50518: #define_singleton_method with an UnboundMethod attempts to bind the latter.
<Guest50518> hm but our simple example method isn't calling any instance vars or anything else...
<Ox0dea> [k- was being adorably unhelpful.
<Guest50518> heh
<Guest50518> confused by what you mean by, "attempts to bind the latter"
<Ox0dea> Guest50518: What do you think `Hash.keys` would return if it existed?
<Guest50518> Can't change the value of self self = class << self; self; end
<Guest50518> heh it was worth a short
<Guest50518> shot*
<Ox0dea> But `class << self` does change the value of `self` (to the caller's singleton class).
<Guest50518> well i don't think Hash.keys matters because it's a dynamic / interpreted (even byte code wise) language so I imagine that methods are invoked with `self` pointing to a given object and if it fails at runtime it fails...
<Guest50518> yea i was trying to grab the singleton and redefine the current self
pyon has quit [Quit: fix config]
tjbiddle has joined #ruby
<Ox0dea> I give you heaps of credit for being an explorer, but you might've been better off staying on the trail a bit longer. :x
Anti-Pizza has joined #ruby
tejasmanohar has quit [Ping timeout: 246 seconds]
tejasmanohar has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
<Guest50518> lol? well I have been using ruby go on 10 years now... this is just something that annoyed me at various points in past
minimalism has quit [Quit: leaving]
tejasmanohar has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
<Ox0dea> I wouldn't've said that had you not demonstrated a fundamental misunderstanding of `self` in Ruby.
<Ox0dea> I apologize for any offense taken, in any case.
<Guest50518> like in js for instance i can easily just o.send(meth,args) right... `this` gets bound while it executes and there isn't much else to it I thought
<Guest50518> well i mean you can use a language for a long time and now try to pry it apart like this :]
dhjondoh has joined #ruby
<Ox0dea> Guest50518: You used #send with an explicit receiver there, in which case `self` is largely irrelevant.
freerobby has quit [Quit: Leaving.]
<Ox0dea> JavaScript's `this` is much less sane than Ruby's `self`.
EllisTAA has joined #ruby
<Ox0dea> Method dispatch in Ruby is almost completely regular, which is no small feat given the depth of its object system.
<baweaver> I always want to say this is garbage, but I can never remember what this is
wldcordeiro has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
<Guest50518> I guess it's apply() been a while... (function(){ return this.x; }).apply({ x: 5 }) // 5
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
wottam has joined #ruby
<Ox0dea> Right, we have to more explicitly bind in Ruby, but that's arguably for the better.
<Guest50518> Ox0dea: your just saying that ruby actually analyze the function body to try and link the method calls and other details?
arup_r has quit [Quit: Leaving]
<Ox0dea> Guest50518: Yes, some bookkeeping takes place immediately at the invocation of, say, #define_singleton_method.
<Guest50518> yea but in the example I had my method literally just returned 5... it's not doing anything that couldn't work
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
wldcordeiro has quit [Ping timeout: 264 seconds]
<[k-> unless the property x didn't exist
<Ox0dea> Ruby doesn't need to look into the method body to determine that you're doing something wonky.
phutchins1 has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
<Ox0dea> It would be very strange if it did.
<Ox0dea> Outside of some weird Platonic ideal, a class is not its instances.
RegulationD has joined #ruby
<Ox0dea> I realize that's sort of what we're trying to finagle Ruby into believing for wanting #class_function, but the point remains.
Ryzokuken has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
boshhead has joined #ruby
<[k-> you can't pluck a gorilla out of a jungle without bringing the jungle and bananas too
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
<Guest50518> yea happens if I try to use that technique to copy a method from one class to another
<Ox0dea> Guest50518: And for the very same reason.
<Guest50518> I guess you could use one of those decompile/recompile tricks
<Guest50518> yea i was just testing
<Guest50518> to prove that would happen
<Ox0dea> Guest50518: RubyVM::InstructionSequence#load is disabled at present. :(
RegulationD has quit [Ping timeout: 252 seconds]
pyon has joined #ruby
<Ox0dea> They'd just have to uncomment the line.
sdwrage has joined #ruby
<Guest50518> hm strange?
<Ox0dea> "No verifier".
tagrudev has joined #ruby
<Ox0dea> This language used to let us play with scissors.
<Guest50518> i thought there was those sexpression dump/loaders
<Ox0dea> Aye, there's RubyVM::InstructionSequence#to_a for dumping.
roxtrongo has quit [Remote host closed the connection]
mondayrain has joined #ruby
Ademan has quit [Ping timeout: 256 seconds]
<Ox0dea> But here's what we've got for loading: https://github.com/ruby/ruby/blob/trunk/iseq.c#L2346-L2347
<Ox0dea> Oh, you could've gotten cheeky back there when I asked about `Hash.keys`: https://eval.in/442646
srruby has joined #ruby
Ademan has joined #ruby
<Guest50518> could always create 0xRuby :]
<Guest50518> what about this one https://eval.in/442651
<Ox0dea> What about it?
FrankD has quit [Ping timeout: 244 seconds]
<Guest50518> just find it odd that the foo method isn't available off of B at that point
araujo has quit [Quit: Leaving]
araujo has joined #ruby
roxtrongo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
last_staff has joined #ruby
shinnya has joined #ruby
jenrzzz has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
maletor has joined #ruby
piotrj has joined #ruby
codecop has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
<Guest50518> I always thought this looked pretty cool http://www.zenspider.com/ZSS/Products/RubyInline/
tkuchiki has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 246 seconds]
cih has joined #ruby
<Guest50518> well thanks for playing around it was fun
Guest50518 has quit [Quit: Page closed]
bronson has joined #ruby
YankNYC has quit [Quit: Connection closed for inactivity]
Musashi007 has quit [Quit: Musashi007]
Spami has joined #ruby
devoldmx has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
andikr has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
lsmola has joined #ruby
yardenbar has joined #ruby
sanjayu has joined #ruby
jxv has quit [Ping timeout: 264 seconds]
<certainty> moin fellows
ta has quit [Remote host closed the connection]
skade has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
bronson has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
arup_r has joined #ruby
bronson has joined #ruby
Yzguy has joined #ruby
tmtwd has joined #ruby
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
<certainty> shevy: https://youtu.be/48iKjUcENRE
pawnbox_ has quit [Remote host closed the connection]
Obfuscate has left #ruby [#ruby]
Macaveli has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
cih has quit [Remote host closed the connection]
riotjones has joined #ruby
baweaver has quit [Remote host closed the connection]
piotrj_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
piotrj has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 250 seconds]
eGGsha has joined #ruby
firstdayonthejob has joined #ruby
workmad3 has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
phutchins1 has joined #ruby
blackmesa has joined #ruby
<shevy> yay!
<shevy> ruby 3.0 !!!
<certainty> well not yet
lubarch has quit [Ping timeout: 255 seconds]
srruby has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
Lycanii has joined #ruby
<shevy> codenamed LightningSpeed
<shevy> I am slowly reaching the point of where I am asking myself, what to write next in ruby
<certainty> shevy: the answer is nothing. Try another language
<certainty> like prolog
workmad3 has quit [Ping timeout: 240 seconds]
qiukun has joined #ruby
<shevy> wow... :foo.class returned Fixnum
sanjayu has quit [Quit: Leaving]
ICantCook has joined #ruby
<shevy> dunno about prolog... the syntax puts me off :(
<certainty> where?
phutchins1 has quit [Ping timeout: 256 seconds]
<shevy> old rubies! as matz said
sanjayu has joined #ruby
solocshaw has joined #ruby
<certainty> shevy: what puts you off there? It doesn't have so much syntax
rubybeginner has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
sanjayu has quit [Client Quit]
<shevy> everything!
<certainty> then try elixir
<shevy> the trailing .
sanjayu has joined #ruby
<certainty> ah come on
<certainty> it's only syntax
<shevy> ruby spoiled me
<certainty> i recommend that talk
<shevy> hey I just woke up!!!
Trynemjoel has quit [Ping timeout: 250 seconds]
<certainty> what?
jenrzzz has quit [Ping timeout: 246 seconds]
<shevy> have to leave here soon :-)
<shevy> now you chain videos into me!
<shevy> I am at mark 03:33 of the matz video... 42 more minutes to go
Trynemjoel has joined #ruby
<certainty> shevy: you know about the secret browser feature? bookmarks
skade has quit [Quit: Computer has gone to sleep.]
<shevy> yeah
<certainty> shevy: :)
<shevy> this is the thing you add and add an add
<shevy> and never look at it again right?
<certainty> nope
rubybeginner has quit [Ping timeout: 252 seconds]
<certainty> i look at them
<shevy> haha
<shevy> I think I have about 150 already... 80% of them will never be looked at again
<certainty> also i post them in the #bookmarks channel in our slack :p
<certainty> you have to decide
<certainty> some talks are worth investing the time
<Ox0dea> certainty: Why'd you link directly to that Quicksort implementation?
pawnbox has joined #ruby
<certainty> Ox0dea: i didn't :)
<Ox0dea> Ah, that explains it. :P
qiukun has left #ruby [#ruby]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<Ox0dea> You're both the same color.
<certainty> yeah a beautiful purple
<certainty> at least that's how i imagine me
<certainty> :)
piotrj_ has quit [Ping timeout: 240 seconds]
<certainty> shevy: if you can effort it, really give the prolog talk i linked a try.
Yzguy has quit [Quit: Zzz...]
Musashi007 has joined #ruby
<certainty> i don't use prolog, but relations in for example mini kanren. Not often enough though :(
NeverDie has quit [Quit: http://radiux.io/]
dcarmich has joined #ruby
<Ox0dea> certainty: core.logic, then?
shevy has quit [Ping timeout: 252 seconds]
allomov has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
dcarmich has quit [Client Quit]
codecop has quit [Remote host closed the connection]
dcarmich has joined #ruby
<Ox0dea> certainty: Ruby + declarative programming = http://codon.com/hello-declarative-world
Yzguy has joined #ruby
towski_ has quit [Remote host closed the connection]
<certainty> Ox0dea: i've only toyed around with it. I rarely do clojure currently
Timba-as has joined #ruby
Yzguy has quit [Client Quit]
srruby has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
<Ox0dea> I'm a sucker for sugar, and core.logic makes logic programming so purdy.
<certainty> there is a paper. Damn i don't remember it. I believe it was the first that proposed functional relational programming
arooni has quit [Ping timeout: 240 seconds]
<certainty> Ox0dea: thanks for the link
darkf has joined #ruby
<certainty> ah there it is: "Out of the tar pit"
chrisco has joined #ruby
srruby has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
roxtrongo has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
<Ox0dea> 2006 was not the year "FRP" was born, of course.
ruurd has joined #ruby
SylarRuby has joined #ruby
chrisco has quit [Client Quit]
<Ox0dea> If you're really into that style, though, you might want to give Clojure a closer look.
codecop has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
dcarmich has joined #ruby
<certainty> Ox0dea: when did the reasoned schemer first appear? That was my first exposure to FRP
<Ox0dea> That wasn't the first "Schemer", though?
<certainty> Ox0dea: yeah i'd love to. So much to investigate, so few time
pawnbox has quit [Ping timeout: 240 seconds]
<certainty> nope it was the third
rushed has quit [Quit: rushed]
<certainty> the little and the seasoned came before if you mean that, but they didn't mention relations afair
<Ox0dea> Ah, fair enough.
<certainty> how old is FRP then? (not functional reactional)
livathinos has joined #ruby
<certainty> reactive
karapetyan has joined #ruby
ndrei has joined #ruby
<certainty> nvm, i should have a closer look again
<Ox0dea> Unless I've grossly misunderstood the term, it's just a new name for an old trick.
yeticry has quit [Ping timeout: 250 seconds]
GeissT has quit [Ping timeout: 240 seconds]
<Ox0dea> CLOS mostly fits under the umbrella, in my estimation.
<certainty> hmm in what regard?
yeticry has joined #ruby
<Ox0dea> Oh, sorry, that was my answer for when the R was "relational".
<Ox0dea> FRP, where the R is "reactive", is just ECS.
joufflu has quit [Ping timeout: 246 seconds]
trautwein has joined #ruby
<certainty> yeah i meant the relational part too. sorry for the confusion.
<Ox0dea> Too many TLAs.
shevy has joined #ruby
<certainty> CLOS doesn't have relations. So i suspect you mean something that i don't see
cih has joined #ruby
vdamewood has quit [Quit: Life beckons.]
<Ox0dea> No, you're right; I've got some unconflating to do.
iateadonut has quit [Quit: Leaving.]
freezevee has joined #ruby
iamninja_ has joined #ruby
nfk|laptop has joined #ruby
<freezevee> Hi all, can anyone please help me with Puma ? https://www.reddit.com/r/ruby/comments/3myo1s/puma_is_failing/
<certainty> Ox0dea: alright. always happy to chat about these kinds of things
<shevy> lisp!
<certainty> not only lisp :)
yeticry has quit [Ping timeout: 244 seconds]
<Ox0dea> There's a talk called "Clojure Is My Favorite Ruby".
Oka has quit [Quit: o/]
<Ox0dea> Ruby is my favorite Lisp. ^_^
cih has quit [Remote host closed the connection]
<certainty> scheme is my favorite lisp, but ruby is my favorite language when i'm not allowed to use my favorite lisp :)
<certainty> in the dynamic typing camp that is
houhoulis has quit [Remote host closed the connection]
yeticry has joined #ruby
SCHAAP137 has joined #ruby
iamninja_ has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
<shevy> (is(ruby(really(like(lisp?
fly1 has joined #ruby
<certainty> compared to other non lisp languages?
<Ox0dea> certainty: Chicken or Guile?
<certainty> Ox0dea: CHICKEN
<Ox0dea> That is incorrect.
<shevy> oh... next release be a xmas release
<certainty> though guile is a nice implementation
<certainty> Ox0dea: what is incorrect?
blackmesa has joined #ruby
<certainty> shevy: yeah just like perl 6 :)
<Ox0dea> certainty: I was facetiously voicing my opinion that Guile is the superior implementation.
<certainty> Ox0dea: hehe. That's totally alright. andywingo did and does a great job.
<shevy> certainty the perl 6 release after 15 years sounds like an armageddon release
<certainty> Ox0dea: I know CHICKEN has its flaws but i got somehow stuck there since 2005 now
<Ox0dea> Many (perhaps even most) die in shorter timespans than it's taken Perl 6 to be (still)born.
<Ox0dea> certainty: Is it "CHICKEN", then?
rdark has joined #ruby
<Ox0dea> All-caps is mostly a CL thing.
piotrj has joined #ruby
<certainty> yeah that's how the community agreed on the name
<Ox0dea> -1
<certainty> originally felix proposed that
roxtrongo has joined #ruby
<certainty> http://www.call-cc.org/ see the logo
<shevy> so the question is "chicken" versus "CHICKEN"
devbug has quit [Read error: Connection reset by peer]
<shevy> but not "why this name"
<certainty> shevy: yeah :)
<certainty> chicken are noble animals
<Ox0dea> shevy: It's so that modules could be called eggs.
<shevy> lol
jenrzzz has joined #ruby
<shevy> EGGS
<certainty> indeed :)
<Ox0dea> ~ $ guile -c '(use-modules (ice-9 session)) (apropos ".")' | grep -c '#<proc'
<Ox0dea> 1378
<Ox0dea> And they say Scheme is tiny.
<certainty> the interesting thing about CHICKEN is probably its compiler
<Ox0dea> Guile has a compiler.
<Ox0dea> It's quite good too.
<certainty> i know
<certainty> i mean the technology
<Ox0dea> Source-to-source, you mean?
allomov has quit [Remote host closed the connection]
<certainty> it's based on "Cheney on the M.T.A"
<certainty> it used to be the first compiler that actually used that technique
tuor has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 260 seconds]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deg_ has quit [Ping timeout: 250 seconds]
<certainty> shevy: felix (the creator of CHICKEN) had a plastic toy of Feathers McGraw on his desk when he thought of a working title for the compiler.
<certainty> so :)
firstdayonthejob has quit [Ping timeout: 240 seconds]
jun_ has quit [Remote host closed the connection]
<Ox0dea> Guile is just a pun on "scheme", but it's not terrible.
<Ox0dea> Not as good as Racket, admittedly.
deg_ has joined #ruby
aganov has joined #ruby
Couch has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
<shevy> those all caps freaks me out
<shevy> someone tell FELIX this
<Ox0dea> It's disgusting.
<shevy> lol
jenrzzz has quit [Ping timeout: 246 seconds]
<shevy> certainty hah I heard that explanation before
<Ox0dea> Common Lisp symbols are case-insensitive!
<Couch> What's a good library for calling rest style json api's ?
<shevy> someone picked a nick after toothpaste
<shevy> because it was nearby at the time of when a name had to be picked
<certainty> Ox0dea: speaking of racket. That's a decent implementation as well
<Ox0dea> certainty: Indeed it is.
sundhell has joined #ruby
<Couch> Ox0dea, thank!
<Ox0dea> Couch: Sure thing.
<Ox0dea> certainty: I fondly remember the pleasant coincidence of my learning Racket and discovering the joy of cellular automata.
ICantCook has quit [Quit: Leaving]
<Ox0dea> My n-color Langton's Ant GUI is lost to the ether, but it was ~30 lines of Racket. :<
tejasmanohar has joined #ruby
tuor has joined #ruby
solars has joined #ruby
<Ox0dea> shevy: Did you know Ruby was almost called Coral?
<tejasmanohar> wat
<Ox0dea> For seriously.
jenrzzz has joined #ruby
leafybasil has quit [Remote host closed the connection]
<shevy> wat
<tejasmanohar> shevy: :)
<Ox0dea> Coral because the language was kind of like Shell at the time.
yardenbar has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
<tejasmanohar> anyhow, time to pack for elixirconf :) - bet i'll see at least some rubyists from here there
<Ox0dea> > matz> But I want a smarter name. keiju> Toilet paper?
piotrj has joined #ruby
<tejasmanohar> Ox0dea: I guess that makes sense
bronson has joined #ruby
<shevy> lol
<tejasmanohar> lol tf
<tejasmanohar> was replying to your first comment :P
spotted has joined #ruby
<spotted> Hello
<spotted> I think I found an error on Codecademy
<Ox0dea> Not terribly unlikely.
<spotted> def display_balance(pin_number)
<spotted> puts pin_number == pin ? "Balance: $#{@balance}." : pin_error
<spotted> end
<spotted> Should be
<spotted> def display_balance(pin_number)
<spotted> pin_number == pin ? puts "Balance: #{@balance}" : pin_error
<spotted> end
herbst has joined #ruby
<spotted> But if I try this it gives me error on progress
<apeiros> ew, side effect in ternary
<apeiros> don't. just don't.
<Ox0dea> spotted: Is `pin_error` returning a string?
<spotted> yes
pawnbox_ has quit [Remote host closed the connection]
<Ox0dea> Then your suggested fix is incorrect.
<Ox0dea> You're calling `pin_error` and throwing away the return value.
pawnbox has joined #ruby
<spotted> why?
bronson has quit [Ping timeout: 240 seconds]
<Ox0dea> Computers are very, very stupid.
korolyov has joined #ruby
patchedmonkey has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
<shevy> and they will be until they'll become self-learning
<shevy> but skynet will also fail
S_Walker has quit [Quit: ZNC - http://znc.in]
<shevy> it was written in perl 5
<spotted> if pin_number == pin
<spotted> puts "Balance: #{@balance}"
<spotted> else
<spotted> pin_error
<spotted> end
<spotted> That works
skade has joined #ruby
<shevy> and you got away with ternary \o/
<spotted> But the ternary operator does not work on Codecademy
tejasmanohar has quit [Quit: tejasmanohar]
<spotted> I do not understand why this is correct to them:
<spotted> puts pin_number == pin ? "Balance: $#{@balance}." : pin_error
<spotted> the first part of the ternary is the condition
patchedmonkey has quit [Client Quit]
<Ox0dea> spotted: Because it is printing in either case.
patchedmonkey has joined #ruby
<Ox0dea> If the conditional is true, it's printing the balance, and if it's not, the string in `pin_error` is displayed instead.
maletor has quit [Quit: Computer has gone to sleep.]
<Ox0dea> The way you've rewritten it, `pin_error` is being called, but you're not printing its return value.
<spotted> Ox0dea, doesn't the return in the function print the result when the function is called, in this case a string with an error?
<Ox0dea> spotted: No, not unless you explicitly tell it to do so.
<spotted> Ok so it just returns a value that I have to either print or store in a variable eventually
<Ox0dea> That's right.
<spotted> Now I got it clear, thanks. :)
<Ox0dea> Happy to help.
<spotted> I am gonna stay on Ruby until everything is clear before to go to ROR which is what I need
<Ox0dea> > everything is clear
<Ox0dea> Tall order, that.
Xeago has joined #ruby
<spotted> Well, at least the basics... :))
pawnbox has quit [Remote host closed the connection]
<Ox0dea> Aye, I took your point. :) It certainly makes sense to learn to walk before you run.
pawnbox has joined #ruby
spotted is now known as Deviad
drptbl has joined #ruby
piotrj has quit [Remote host closed the connection]
<Ox0dea> Deviad: I've said it before, but this is what happens if you try to learn Rails before you've got a solid Ruby foundation: https://www.youtube.com/watch?v=TRqGmmCy8aU
ta has joined #ruby
<Deviad> Ox0dea, maybe instead of redoing all the course on Codecademy I should make the exercises on "Learn Ruby the hard way"
<Deviad> A book with exercises
dikaio has quit [Quit: ........]
piotrj has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
roxtrongo has quit [Remote host closed the connection]
<Ox0dea> Deviad: Do you know about the Koans?
<Deviad> Nope
<Ox0dea> I think it's lacking in a few places, but if you take the time to really understand why you got the okay instead of racing to the top of the mountain, you'll come out primed to start piling on the details.
beast has joined #ruby
TheHodge has joined #ruby
sjums has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
Anti-Pizza has quit [Read error: Connection reset by peer]
<Deviad> Ox0dea, thanks, I will install it on my VM with Ubuntu
joonty has joined #ruby
<Ox0dea> Deviad: There's an online facsimile, if you'd prefer: http://rubykoans.com/
<Ox0dea> But you shouldn't.
<Ox0dea> Running it locally is more likely to get you addicted to red-green-refactor.
<Deviad> Ox0dea, it's funny that here in Romania I did not find any programmer that wants to switch from PHP to Ruby for some projects (I'm Italian).
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> PHP's tendrils are long and sticky. :/
Anti-Pizza has joined #ruby
<Deviad> Ox0dea, as answers I got: Ruby is insecure, Ruy is slow...
charliesome has joined #ruby
mikecmpbll has joined #ruby
<Deviad> So I went to exploit repositories and it came out that PHP actually has a few bugs discovered in 2015 and actually it has a few refactoring tools
<Deviad> and Ruby has*
<adaedra> Hi
<Ox0dea> Deviad: It's true enough that PHP has gotten "better", for some definition.
<Deviad> Ox0dea, I cannot either disagree or agree on that given my knowledge of PHP, but if then I have to learn also Laravel and have twice the code I have with Ruby for the same app
<Ox0dea> That diatribe should help you make up your mind. :P
<Deviad> me I prefer Ruby then... the more you have to write the more mistake you are likely to make
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<Deviad> mistakes*
<Ox0dea> A perfectly sensible view of the thing.
<Deviad> Otherwise they would have not devised C once they devised Assembly...
<Ox0dea> Well, you're talking about abstraction more than lines of code.
devoldmx has joined #ruby
drptbl has joined #ruby
<Deviad> Also, ruby has keywords like unless that everyone can understand and it improves your readability so far I would not think about learning something else
<Ox0dea> Deviad: There are many such features which make Ruby a pleasant language to program in, but mind you don't become a Blub programmer. http://c2.com/cgi/wiki?BlubParadox
Hounddog has joined #ruby
krisquigley has joined #ruby
<yorickpeterse> morning
<Ox0dea> That said, Ruby is objectively the greatest programming language ever devised.
devoldmx has quit [Ping timeout: 246 seconds]
<Deviad> Ox0dea, once my 10' is over, I am instaling koans. :))
Nego_Fua has joined #ruby
<Ox0dea> Yay!
htmldrum has quit [Ping timeout: 240 seconds]
emilkarl has joined #ruby
qba73 has joined #ruby
tsujp has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
Hounddog has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
felixr has joined #ruby
karapetyan has quit [Remote host closed the connection]
workmad3 has joined #ruby
yfeldblum has joined #ruby
piotrj has quit [Remote host closed the connection]
Xeago has joined #ruby
tesuji has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
Kendos-Kenlen has joined #ruby
cih has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
zotherstupidguy has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
marr has joined #ruby
dhjondoh has joined #ruby
karapetyan has joined #ruby
<agent_white> Ox0dea: +1 for Blub. Never seen that before!
Ox0dea has quit [Read error: Connection reset by peer]
Cyther has joined #ruby
<certainty> agent_white: check out paul graham on that topic
<certainty> beating the average it was i believe
<agent_white> certainty: Yup! Looks like it! http://paulgraham.com/avg.html
<certainty> oh yeah it's linked there, sorry :)
vondruch has quit [Quit: Ex-Chat]
<agent_white> certainty: Ah no worries! You knowing it reinforces the fact it's a fairly important read :D
Pupeno has joined #ruby
roxtrongo has joined #ruby
ReK2 has joined #ruby
Balzrael has joined #ruby
Cyther_ has quit [Ping timeout: 268 seconds]
<certainty> agent_white: it has some good points but of course is quite biased
jwang has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
blackmesa has joined #ruby
Voker57 has joined #ruby
dmolina has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
Kendos-Kenlen has joined #ruby
UtkarshRay has joined #ruby
blaxter has joined #ruby
spotted has joined #ruby
cih has quit [Remote host closed the connection]
rfv_ is now known as rfv
bronson has quit [Ping timeout: 244 seconds]
<spotted> I just realized that in codecademy there is no mention to try catch kind of syntax
<adaedra> there's no "try" keyword, it's done with "begin ... rescue ... end" in ruby
cih has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
workmad3 has joined #ruby
sheperson has joined #ruby
piotrj has joined #ruby
zlogan has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
<bnagy> ruby has do, or do not. There is no try.
<adaedra> ssh, no try, only raise now.
karapetyan has joined #ruby
Porfa has joined #ruby
<certainty> spotted: probably throw and catch?
<certainty> that exists
<certainty> it allows you to have non local exits. Much like invoking continuations
workmad3 has quit [Ping timeout: 252 seconds]
karapetyan has quit [Remote host closed the connection]
rdark has quit [Changing host]
rdark has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
subshad has joined #ruby
SylarRuby has quit [Remote host closed the connection]
sheperson_ has joined #ruby
rdark has quit [Quit: leaving]
sheperson has quit [Ping timeout: 250 seconds]
sheperson_ is now known as sheperson
rdark has joined #ruby
rdark has quit [Changing host]
rdark has joined #ruby
j___ has quit [Ping timeout: 265 seconds]
Porfa has quit [Remote host closed the connection]
Porfa has joined #ruby
<certainty> shevy: matz mentions a quote from dave thomas that programming is the process of designing your own dsl. Turns out that's a core idea of lisp. Adding utilities that enrich the language so that you can express what you want to express in order to solve your problem
<spotted> adaedra: I was thinking about other exceptions, for example a user types a phone number in the wrong format
piotrj has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 264 seconds]
Macaveli_ has joined #ruby
piotrj has joined #ruby
<spotted> I had a look at throw and catch, it's like when a compiler finds an error, in an exam I was supposed to create a parser that did not stop at the first error
<adaedra> If it raises an exception, you catch it with rescue
<spotted> adaedra: OK, so begin and rescue are the tools in that case
<adaedra> You can restrict the exception you catch in rescue, i.e. `rescue MyApplication::FuckingUserIsNotCapableOfEnteringASimpleTelephoneNumber`
AlexRussia has quit [Ping timeout: 244 seconds]
piotrj has quit [Read error: Connection reset by peer]
piotrj_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
freezevee has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
colorisco has joined #ruby
<colorisco> how to fix such error? http://pastie.org/10453518
iamninja_ has joined #ruby
<zenspider> rawr
devoldmx has joined #ruby
<zenspider> colorisco: the file doesn't exist. either make it exist or load the file that does
lkba has quit [Remote host closed the connection]
<colorisco> which file?
<zenspider> colorisco: what does the error say?
<colorisco> i installed ruby and padrino and didn't change
mxrguspxrt has joined #ruby
<colorisco> any file
Pupeno has quit [Remote host closed the connection]
<zenspider> question for the channel: do you consider yourself a hacker (old school definition, not media def) and why?
Pupeno has joined #ruby
<zenspider> colorisco: no, the error doesn't say that
<herbst> zenspider: i do, because pretty much my whole free time is spent on geeky random technical projects
<atmosx> zenspider: absolutely not.
<bnagy> zenspider: yes
<zenspider> herbst: examples of said projects and motivations pls
devoldmx has quit [Ping timeout: 255 seconds]
<zenspider> bnagy: go on
<zenspider> atmosx: absolutely not what? and why?
<bnagy> because my full time job for the last X years has been software vulnerability research
<bnagy> so pretty squarely in the definition :P
<zenspider> mmmm... maybe I should start over with "what is your definition of hacker"?
sheperson has quit [Quit: sheperson]
<certainty> zenspider: yes. I'm constantly looking to expand my knowledge and working with people to actively share it. I'm striving for excellence. (i'm considering somewhat akin to the MIT hacker culture here)
<herbst> zenspider: from websites/services to "drivers" whatever comes to my mind. Like i found a LED strip cheap, so i bought it, wrote a custom driver in ruby and now have my custom led strip
<herbst> if thats not hacking, i have no idea what is
<bnagy> it's funny, the 90s definition was more or less either way
FrankD has joined #ruby
<bnagy> unexpected programming / actual (what's now called) hacking
<zenspider> certainty: MIT is the basis of my definition too.
<bnagy> the people writing breathless defences of the term gave up like 25 years ago
<atmosx> zenspider: to make it short, I don't have all the requirements: http://www.catb.org/esr/faqs/hacker-howto.html#basic_skills
<atmosx> I don't *fulfill*
<zenspider> do take esr w/ a grain of salt
mikecmpb_ has joined #ruby
<bnagy> there's also quite a lot of hacking involved in hacking, as it were
mikecmpbll has quit [Read error: Connection reset by peer]
<atmosx> zenspider: Yeah, I know. But that's what I call a hacker :-)
<zenspider> fair
<bnagy> for researchers, anyway. Lots of gnarly code to write to do weird stuff.
<zenspider> *nod*
<agent_white> I've heard "hacking" as "scrapping shit together" lately... I still think it means 'modifying something to do unintended things'.
<certainty> zenspider: may I know why you ask?
<zenspider> working on a talk
<certainty> what will it be about?
<zenspider> that's a damn good question.
<zenspider> the title is "mind of a hacker"... the actual outline? fuck if I know at this point
<certainty> :)
<adaedra> agent_white: lately?
<agent_white> Sounds like you had a goal in mind if you're asking the audience if they think they're a hacker.
<certainty> zenspider: but that's a central point. being a hacker is a mindset. It's most of the time associated with tech stuff but it needs not, as you know
blackmesa has joined #ruby
<agent_white> adaedra: As in the past few years or so. 'Weekend hack' or 'hacked together' are the phrases I've heard.
<zenspider> certainty: yup yup
<certainty> that's why i don't like those "you're a hacker if you know x,y" stuff
<funkenstrahlen> jhass: /close
funkenstrahlen has left #ruby ["WeeChat 1.1.1"]
<adaedra> ok
<zenspider> bnagy: hah! that's... well that's horrible. :) I guess mov is the nand/nor of the compiler world
<certainty> i guess many of the early hackers beside making hacks for the first computers had visions. They recognized what's lacking and found a way to provide it in a smart way
<certainty> rms for example
<bnagy> I think they followed up with compilers for XOR and SUB
<certainty> or wozniak
<zenspider> "The M/o/Vfuscator contains a complete mov-only floating point emulator." jesus ... wow
<bnagy> loaaads of hax in early unix
<bnagy> resource constraints will do that when you're inventing compilers
<certainty> rms also notes that being playful with your solutions to difficult tasks is somewhat characteristic
<certainty> anyway back to work :)
<bnagy> it might be reasonable to say that hacking is about making something do something it's not really supposed to do
<zenspider> certainty: thanks
<certainty> bnagy: yeah that's a good point
<certainty> zenspider: yw
<bnagy> which works just as well for hacking in the security sense
<zenspider> bnagy: yeah. I like that
<agent_white> certainty: I dunno. Is that being a 'hacker'? Filling a need?
<agent_white> Or is that just programming?
<zenspider> also: understanding systems you're not meant to understand... etc
<agent_white> Or... /shrug
<Deviad> Is it possible to use retry after rescue a defined number of times, let's say 3?
<bnagy> Deviad: just use a counter in the rescue block
<atmosx> zenspider: if I may ask, what kind of audience do you expect to face in this talk?
<atmosx> zenspider: ruby conf?
<zenspider> Deviad: don't understand your question... "defined" a number of times?
nfk|laptop has quit [Ping timeout: 240 seconds]
<zenspider> atmosx: LA ruby conf
<Deviad> zenspider, I read that retry loops infinitely
workmad3 has joined #ruby
<Deviad> until the user takes proper action
<agent_white> Aye, that's what I said. Modifying/manipulating a system to produce unintended results... aka, the de-facto example of the cap'n crunch whistle.
<certainty> agent_white: nope, i was unclear about that. It's about seeing that something doesn't provide what you want and make it possible
subshad has quit [Read error: No route to host]
<Deviad> but let's say I want to use this to let the user input his credit card number, normally he has got 3 tries
<zenspider> retry just jumps once
<agent_white> certainty: Ahhh.
<bnagy> man I can't stand that guy :( (crunch)
solocshaw has quit [Ping timeout: 240 seconds]
<zenspider> YOU tell it to keep jumping
<zenspider> bnagy: which?
<atmosx> Deviad: you set up a counter, a keep track. See here: http://stackoverflow.com/a/1746200/577133
mondayrain has quit [Quit: Leaving]
DoubleMalt has joined #ruby
<bnagy> zenspider: cap'n crunch, the whistle guy
<agent_white> bnagy: Me neither. But I thought it was interesting how he said 'It was the blind-kids who figured it out...'
<zenspider> I might be blissfully ignorant on this one
<colorisco> i updated rvm and problem was fixed
<colorisco> strange error
<agent_white> How they knew that frequency of 2600 just by ear... it's like it was meant to be (a blind person recognizing such a specific freq.)
nettoweb has joined #ruby
<atmosx> bnagy: you know him irl?
<bnagy> old hacker, used to use a slide whistle from cereal box to spoof phone network tones
<bnagy> atmosx: for some definition of "know" yeah
<atmosx> bnagy: really? heh
<Deviad> atmosx, thank you!
<atmosx> Deviad: :-)
<zenspider> ah ah ah... right. thanks.
<zenspider> my dad supposedly went to college with someone of the same caliber. timeframes match up pretty well too
<agent_white> Blow a cereal box whistle into a phone, initiate a new trunk... cool stuff.
<bnagy> opinions of his technical haxxing abilities (apart from the whistle) vary
<bnagy> but then again he was a contemporary (and once at least acquaintance) of woz
<atmosx> zenspider: but anyway, don't go *there* IMHO, since we're talking mainly about programmers, they will have a definition of hacker much closer to ESR (know more than 2 programming paradigms, invovled with open source, technically flawless on some fields, etc.).
<agent_white> Aye I bet. Like I said, he said he learned about it from 'the blind kids'. So he probably just ended up being the face of it all for whatever reason.
<certainty> the reversing community is a good example of hackers
<certainty> reverers
<bnagy> I don't think I can get behind a definition of hacking / hacker that is based on what you know
<certainty> ok i need to become a hacker at english
zeroDivisible has joined #ruby
<certainty> reversers
<marahin> ;-)
<bnagy> but I certainly think 'hackers' have things in common about approach / attitude etc
<bnagy> it's certainly not book larnin
<agent_white> Or the BGP hack... shit, definition of 'hacking'. They used the BGP protocol as programmed, without modifications, to encur undesired consequences.
<agent_white> s/programmed/defined/
<atmosx> IMHO it's a kind of "honor" that others should give t you. Going around saying "I'm a hacker" is ridiculous IMHO.
lxsameer has joined #ruby
<agent_white> ^
<certainty> i don't think that's necessarily true. But it certainly doesn't make you a hacker just by saying you are
<bnagy> I self identify as a hacker. Your argument is invalid.
<agent_white> _why's freakyfreaky sandbox also was a badass 'hack'. Redefining ruby internals/symtables/etc to make a sandbox? Kewl stuff.
<bnagy> it's >20 years to late to untangle 'hacking' from a security connotation
<atmosx> bnagy: well, you might be one. I don't know, I'm not familiar with your resume.
j___ has joined #ruby
<zenspider> atmosx: there seems little H about your IMHO declarations
phutchins1 has joined #ruby
<bnagy> I don't feel like it's _limited_ to security stuff, by any means
<zenspider> bnagy: of course not. but there is probably selection bias in that subfield
<bnagy> but I also don't feel like choosing the flight that has the most miles make you a travel hacker or whatever
<agent_white> bnagy: Aye. Very rhetorical.
<zenspider> haha
<zenspider> I'm the worst travel hacker ever then
jas02 has joined #ruby
<agent_white> zenspider: What's the aim for your talk, anyways?
c0m0 has joined #ruby
<zenspider> bnagy: I am trying to come at this from the "approach / attitude" perspective. at least mine. not the history of or notable hackers or whatnot.
<zenspider> agent_white: to educate and/or entertain for 30-45 minutes
colorisco has quit [Remote host closed the connection]
<agent_white> zenspider: Haha fair enough!
<atmosx> zenspider: can you identify 5 ppl that would you call 'hackers'? WIthout taking any kind of pointer for this discussion. Actually before this talk?
<bnagy> hackers I know of either stripe are self-directed, tend towards individualism, often maybe a bit obsessive, and favour results over form
phutchins1 has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
bronson has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
<herbst> RMS, Torvalds, early Gates, Jobs & Woznark. Those are classic hackers IMHO
colorisco has joined #ruby
<zenspider> atmosx: I believe we're done. I don't find any of your dialog to be constructive and you've already said you don't have a dog in this fight, so I don't see the point of it.
<certainty> jobs?
<certainty> i don't know
<agent_white> Jobs no way.
<atmosx> zenspider: ok
<herbst> notice the "early". He wasnt a code hacker tho, but for sure a mind hacker
<herbst> i am no fan of apple myself
<bnagy> I don't think iconic programmers are the best examples of hackers.
<zenspider> mind. hacker. so... david copperfield ?
<bnagy> I mean writing an OS for fun is not _not_ hacking, sure
<herbst> with mind i rather ment: marketing, design, feelings. he was good at that shit
<certainty> hmm i somewhat associate ethic with hackers
<certainty> i know that term is very fuzzy
<certainty> but jobs, well
tvw has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 264 seconds]
ruurd has quit [Quit: Bye]
colorisco has quit [Ping timeout: 250 seconds]
<bnagy> probably a certain degree of anti-authoritarianism has been fairly central to 'hacking / hackers' in all sense
<bnagy> s
<agent_white> ^
rubybeginner has joined #ruby
<zenspider> F.A.Q: Q: Why did you make this? A: I thought it would be funny.
<zenspider> from movfuscator
<agent_white> In the simplest forms... http://www.cultdeadcow.com/cDc_files/cDc-0334.html -- "how to be an anarchist at 7-11" -- "... stir your slurpee... you'll notice a cylindrical hole in the slurpee... core out the center multiple times and refill for max slurpee potential"
iateadonut has joined #ruby
karapetyan has joined #ruby
<agent_white> zenspider: From the same group... you might get some ideas from this one. "Confessions of a c0dez kid" http://www.cultdeadcow.com/cDc_files/cDc-0395.html
tsujp has joined #ruby
iateadonut has quit [Client Quit]
dhjondoh has quit [Ping timeout: 272 seconds]
keen___________1 has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
keen___________0 has quit [Ping timeout: 240 seconds]
colorisco has joined #ruby
Musashi007 has quit [Quit: Musashi007]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<Porfa> hahaha hello
<certainty> agent_white: haha haven't heard of them in a while. What was is back orifice?
<agent_white> certainty: Yup, same dudes who did back orifice :)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> i loved that when i was young
Jameser has joined #ruby
Cyther_ has joined #ruby
piotrj_ has quit [Remote host closed the connection]
Jameser has quit [Remote host closed the connection]
<certainty> that's also when i was doing crackmes all night
Jameser has joined #ruby
piotrj has joined #ruby
<Porfa> i have a problem in a loop… my loop creates an element, and fills in data from array, but these elements are named in a sequence (f04_0001, f04_0002, f04_0003 and so on..)
Cyther has quit [Ping timeout: 255 seconds]
<Porfa> the thing is, my loop can't fil the data to the element f04_0010, because my loop is saying to fill it to "f04_00010"
<zenspider> Porfa: lemme guess... you're STILL doing strings and abusing eval?
<Porfa> no no zenspider, i found the light
<zenspider> prove it. show some code
<Porfa> ok
<shevy> hah :)
<shevy> Porfa remember the [TIME STAMP] above? :>
<agent_white> certainty: I was a hackthissite kid myself :P
<Porfa> shevy: ahha ofcourse
<shevy> <Porfa> and everything is working now as expected
<shevy> <shevy> [TIME STAMP]
<shevy> tada!
blackmesa has quit [Ping timeout: 272 seconds]
Jameser` has joined #ruby
<shevy> Porfa you need to start to use methods
<shevy> ensure that the method returns the desired result
<shevy> such as the incrementing string "f04_0010" "f04_0011" and like starting one "f04_0001"
<[k-> >> "f04_%d4" % [1]
<ruboto> [k- # => "f04_14" (https://eval.in/442925)
<shevy> once you put the stuff into a method, it will be easier, since all you have to do is change your method if you need a change in the generating-pattern
<[k-> hm
<[k-> >> "f04_%4d" % [1]
<ruboto> [k- # => "f04_ 1" (https://eval.in/442926)
Jameser has quit [Ping timeout: 255 seconds]
<[k-> welp
<shevy> [k- look - Ox0dea was back. he is gone again though
<[k-> i knew
<[k-> you are slow
<[k-> slow slow slow
<shevy> hey I was not home!
<[k-> well ok, but can you prove it?
<zenspider> that sure looks like strings to me...
<[k-> &ri String#% @Porfa
<`derpy> Porfa: http://www.rubydoc.info/stdlib/core/String#%25-instance_method
<Porfa> remove the the '
<[k-> check the two links out
krz has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 256 seconds]
<zenspider> none of that makes any sense to me. all sorts of things that are confusing as fuck
blackmesa has joined #ruby
<Porfa> i guess i'll just limit the loop to 10 then
<[k-> * sighs *
<shevy> lol
<[k-> do you not read?
<shevy> Porfa quit being a noob man, ACCEPT THE CHALLENGES, IMPROVE THE CODE
<[k-> the problem is, f04_000 is hardcoded
<[k-> when ruby increments it, it just tacks it to the end
<zenspider> making an array of numbers from 1 to N, enumerating w/ each_with_index so you can ALSO have 0 to N-1. generating strings of code using index+1 ... what. the. fuck.
egrm has joined #ruby
<shevy> Porfa btw, if you want to use #{} in a string, you have to use "" not ''
<[k-> f04_000 + 1 = f04_0001
egrm has left #ruby [#ruby]
<zenspider> guys. the variable names don't matter
K1MOS has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<[k-> f04_000 + 10 = f04_00010
<zenspider> the lack of clarity of goal here does
<adaedra> [k-: it's a shame String#%'s documentation doesn't explain much.
<Porfa> k- yeah
<[k-> yeah, so we have to check two links :(
<zenspider> adaedra: sarcasm?
<Porfa> zenspider: met, i was doing hello world 2 months ago, EVER.
<Porfa> i was forced to learn how to use ruby to help my family company
<Porfa> and i have been learning as i go, I'm a total newb but i am being able to help them out
<Porfa> so I'm happy with that
skade has joined #ruby
<adaedra> zenspider: no. You have to go to Kernel::sprintf to have flags. So when you link to String#% doc, there's not too much.
nw1 is now known as nw
<zenspider> adaedra: except explicit instruction pointing you at sprintf
blackmesa has quit [Ping timeout: 260 seconds]
<zenspider> seems like the bases are covered
<adaedra> zenspider: I know
Xeago has joined #ruby
<adaedra> But that's another step!
<adaedra> Such a waste of time!
lubarch has joined #ruby
dhjondoh has joined #ruby
<zenspider> I'm going to pretend there's sarcasm
skade has quit [Client Quit]
<Porfa> they have been wasting massive amounts of time to manually open a product page from the supplier, copy paste every little info into our business back office, and then taking the images, resizing them, and uploading.. thanks to ruby i am able to do all of that in 2 minutes now, running "script.rb "url to site" from my terminal. i create products pretty fast this way.
<adaedra> In the last ones, yes, there is.
UtkarshRay has quit [Ping timeout: 240 seconds]
piotrj has quit [Remote host closed the connection]
<[k-> Porfa, see String#succ (workmad3)
<Porfa> ok
<Porfa> i will google that hopefully i will get there
<shevy> >> "b".succ
<ruboto> shevy # => "c" (https://eval.in/442934)
FrankD has quit [Ping timeout: 244 seconds]
<shevy> the next epic task for Porfa will be to learn how to use methods in ruby
<[k-> >> "0009".succ
<ruboto> [k- # => "0010" (https://eval.in/442936)
<adaedra> zenspider: note that I completely understand why it's done this way and have no problem with the documentation itself. Just the two steps which are minor annoyances. No offences intended.
<Porfa> just to read you saying that send shivers down my spine, wth is a method
<Porfa> i shoulda have learned ruby with the masters when i was in GNAA 10 years ago
terlar has joined #ruby
agentmeerkat has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby
<adaedra> "wth is a method"
<adaedra> this is ruby basics
eGGsha has joined #ruby
<shevy> Porfa methods/functions are everywhere, it won't matter from where you pick it up so you need to start doing so
dhjondoh has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
eGGsha has quit [Client Quit]
c3phalex1n has joined #ruby
bruno- has joined #ruby
dhjondoh has joined #ruby
<shevy> "installing `ruby2.0` results in ruby 1.9.3-p484 as default version"
<shevy> hmmmm
giuseppesolinas has joined #ruby
<Porfa> if i read Learn to Program by Chris Pine, will i be better? i will read it 5 times in a row before touching any other book
Azure has joined #ruby
giuseppesolinas_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Porfa> i only got that ruby book, i got it like two weeks ago, but i've been so filled with this stupid scripts that i haven't got the time to pick it up
dhjondoh1 has joined #ruby
<workmad3> Porfa: have you considered that if you took the time to read that book, you'd probably be able to sort out your script in a tiny fraction of the time you've already taken?
<Porfa> i know, but if i stop the business gets hit, I'm running out time to do my own stuff, and that own stuff isn't playing video games or drinking
<Porfa> but i guess i have to find a way
dhjondoh has quit [Ping timeout: 260 seconds]
<workmad3> Porfa: the business is getting hit anyway if you're spending way too long because you don't know the foundations
dhjondoh has joined #ruby
agentmeerkat has joined #ruby
karapetyan has joined #ruby
c3phalex1n has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
dhjondoh1 has quit [Ping timeout: 250 seconds]
Flying_Squirrel has joined #ruby
jenrzzz has joined #ruby
Prominent has joined #ruby
<shevy> you need to learn the basics
<shevy> then you'll be allowed to grow a beard like workmad3
<shevy> which will dignify you as a mighty hacker
<workmad3> shevy: my beard isn't @ mighty hacker lengths yet
<workmad3> more unix acolyte neckbeoard
<workmad3> *neckbeard
gener1c_ has joined #ruby
eGGsha has joined #ruby
<tuor> hi, what gem would you use for managing keepass databases? (I know there are multiple but which one do you recomend?)
<Porfa> weev had a nice beard :(
bronson has joined #ruby
gener1c has quit [Ping timeout: 268 seconds]
<Radar> tuor: There are many?
<tuor> "gem search --remote keepass" gives me 5
ndrei has quit [Ping timeout: 252 seconds]
Xeago has quit [Read error: Connection reset by peer]
<workmad3> tuor: check them out on rubygems
<tuor> ok
stoffus has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
allomov has joined #ruby
cek has quit []
lubarch has quit [Ping timeout: 256 seconds]
cek has joined #ruby
stoffus has quit [Client Quit]
vondruch has joined #ruby
deg_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
lubarch has joined #ruby
<Radar> I've never heard of keepass before now
<workmad3> Radar: it's a secure vault for asses... `keep-ass`
shevy has quit [Ping timeout: 252 seconds]
<certainty> make perfect sense
<workmad3> certainty: exactly... there's a growing need to keep donkeys safe!
felixr has quit [Ping timeout: 240 seconds]
<certainty> workmad3: and it's good to see that it gets adressed
<certainty> the world is changing for the better
zlogan has quit [Ping timeout: 264 seconds]
<certainty> for me it turned out that never stop learning the basics
<certainty> i'm always a beginner in something
allcentury has joined #ruby
<certainty> +I
pyon has quit [Quit: reboot]
<adaedra> but are you a beginner at being beginner ?
<certainty> adaedra: hmm, not if the experience i have with being a beginner makes me a non beginner
jeffreylevesque has quit [Ping timeout: 250 seconds]
zlogan has joined #ruby
ndrei has joined #ruby
stamina has joined #ruby
keen___________1 has quit [Read error: Connection reset by peer]
shevy has joined #ruby
keen___________1 has joined #ruby
sgambino has joined #ruby
Blaze_Boy has joined #ruby
sdothum has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
ndrei has quit [Ping timeout: 256 seconds]
dhjondoh1 has joined #ruby
ndrei has joined #ruby
dhjondoh1 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
dhjondoh has quit [Ping timeout: 264 seconds]
ponga has joined #ruby
emilkarl has quit [Quit: emilkarl]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> certainty: opened, just need to find 40 minutes of free time
devoldmx has quit [Ping timeout: 244 seconds]
wottam has quit [Ping timeout: 252 seconds]
<workmad3> or a transcript :)
casadei has joined #ruby
Xeago has joined #ruby
<certainty> workmad3: it's tenderlove. you'd miss the most fun part in a transcript
<workmad3> true
iamninja_ has quit [Read error: Connection reset by peer]
Macaveli_ has quit [Quit: Textual IRC Client: www.textualapp.com]
iamninja_ has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
skade has joined #ruby
tsujp has quit [Read error: No route to host]
tsujp has joined #ruby
<zenspider> certainty: the part where he laughs at his own jokes?
k3asd` has joined #ruby
deg_ has joined #ruby
KinderSpiel has joined #ruby
postmodern has quit [Quit: Leaving]
<certainty> zenspider: heh, yes. Basically how he presents the, erm, presentation
<KinderSpiel> What's up?
lxsameer has quit [Quit: Leaving]
<KinderSpiel> Can someone help me out with Generators?
<KinderSpiel> git@gist.github.com:2787c9823dccf09f4b5c.git
blackmesa has quit [Ping timeout: 256 seconds]
<KinderSpiel> I'm trying to convert some really old scripts, having some success
<KinderSpiel> bumped into the generators and it's getting to be a bit of a black howl
<KinderSpiel> *hole
ruurd has joined #ruby
<KinderSpiel> Ruby gods, come to me!
<KinderSpiel> er, more rails, really :-\
<bnagy> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
rodfersou has joined #ruby
Coldblackice has quit [Ping timeout: 246 seconds]
<jhass> also share the URL in your browser to gists ;)
lubarch has quit [Ping timeout: 244 seconds]
<bnagy> true Generators are still a bit hairy afaik
<zenspider> certainty: gah. I'm watching this and it's just painful.
syath has joined #ruby
charliesome has joined #ruby
<bnagy> rescue StopIteration is .. not the most elegant ruby api ever
nfk|laptop has joined #ruby
dhjondoh has joined #ruby
<certainty> zenspider: i had fun watching it :)
Cyther_ has quit [Read error: Connection reset by peer]
ericjphillips has joined #ruby
Cyther_ has joined #ruby
Caius is now known as Ca1us
Ca1us is now known as Caius
charliesome has quit [Client Quit]
<zenspider> I get enough terrible puns having lunch w/ him. I don't need more
dhjondoh1 has joined #ruby
<certainty> zenspider: heh, i totally get that. I get them in small dosis only through his talks
<certainty> there is always a level of "too much"
dhjondoh has quit [Ping timeout: 246 seconds]
dhjondoh1 is now known as dhjondoh
<KinderSpiel> check it out here: git@gist.github.com:2787c9823dccf09f4b5c.git
<certainty> dosis = doses
allcentury has quit [Ping timeout: 246 seconds]
tsujp has quit [Quit: tsujp is snoozing]
<adaedra> KinderSpiel: can you give the URL of the page, as the one in your address bar, instead of the git clone link?
charliesome has joined #ruby
adadada has joined #ruby
<adadada> hi
karapetyan has quit [Remote host closed the connection]
<adadada> does any1 know how to iterate over files in a directory in an erb template in ruby?
<certainty> now that'? going to be difficult to distinguish from adaedra
<KinderSpiel> don't really want links to my gh account to end up in archives, but I suppose there's no other way, is there?
<adadada> well sorry
<adadada> :p
<jhass> adadada: do you know how to do it outside of an erb template?
<adadada> yes
<adadada> I have several ways, I just cant seem to do it in the template
<adadada> i use Dir.glob('...').
<jhass> adadada: show your attempts
<adadada> ok, a sec plx
<bnagy> KinderSpiel: and it's still probably a better question for #rubyonrails
sepp2k has joined #ruby
Jameser` has quit [Ping timeout: 272 seconds]
dhjondoh1 has joined #ruby
<KinderSpiel> bnagy can't write anything on that window
<jhass> ?rails KinderSpiel
<ruboto> KinderSpiel, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Radar> KinderSpiel: Register with nickserv first.
<certainty> adadada: the long answer that you probably don't iterate in a template. there might be legitimate reasons but i'd think twice
<certainty> over directories
dhjondoh has quit [Ping timeout: 250 seconds]
dhjondoh1 is now known as dhjondoh
<adadada> uff what?
<jhass> adadada: just show your attempt ;)
dhjondoh1 has joined #ruby
mikecmpb_ has quit [Quit: ciao.]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
xet7 has joined #ruby
frmendes has joined #ruby
JimmyNeutron has quit [Ping timeout: 265 seconds]
apt-get has joined #ruby
Urocyon has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
dhjondoh has quit [Ping timeout: 260 seconds]
<adadada> ok so for example I tried this: http://pastebin.com/WfQyyC1b
<ruboto> adadada, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/8892b394ca700008d32f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
RegulationD has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adadada> but I get an unexpected ';'
<jhass> adadada: why .do? do you do that in regular Ruby code too?
dhjondoh1 has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
<adadada> no, i used reject in normal ruby code
bronson has joined #ruby
xet7 has quit [Client Quit]
<adadada> ok i put my first attempt
<jhass> well, this is about syntax, not which method you call
<adadada> a sec plx
krisquigley has quit [Ping timeout: 268 seconds]
Urocyon has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
xet7 has joined #ruby
<rubybeginner> Hey guys. Does anyone have Ruby essential training lynda com
RegulationD has quit [Ping timeout: 240 seconds]
<adadada> https://gist.github.com/anonymous/b58471e657de4709e420 I tried copying the original code from ruby as much as possible
<adadada> but it gives me all kinds of weird errors
dhjondoh has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
sdwrage has joined #ruby
unshadow has quit [Quit: leaving]
<adadada> syntax error, unexpected tSTRING_BEG, expecting ')'
cih has quit [Remote host closed the connection]
<[k-> eww so ugly
<[k-> erb is kill
<adadada> what, this code?
<adadada> yeah
<[k-> yes
<adadada> well
<adadada> I am trying to make it work
bigkevmcd has joined #ruby
bigkevmcd has quit [Excess Flood]
<[k-> it does not have &:itself?
<adadada> before beautifying
<jhass> adadada: that wouldn't work in regular code either
<adadada> I don´t know what that means
unshadow has joined #ruby
<jhass> [k-: turn a step down, we're at basics of how the syntax for blocks looks like
<[k-> doesn't adaedra know?!
<jhass> adadada: ".each |f|" do you write that in your regular code exactly like this too?
jalnt has joined #ruby
<adadada> no
<[k-> you need a do
<adaedra> know what ?
<[k-> .each do |f|
<jhass> adadada: so don't in erb
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> who is adadada
<adadada> sure, yes
charliesome has joined #ruby
<adadada> I understand this
<[k-> what
<[k-> what
<[k-> adaedra adadada?!
charliesome has quit [Client Quit]
<adaedra> What
<[k-> im confused
<adadada> however it gets already a synax error in the code that is like the ruby code
felixr has joined #ruby
<certainty> [k-: two different nicks
<[k-> i thought adadada was adaedea
<[k-> adaedra*
iceyec has joined #ruby
<adaedra> [k-: look at the hosts. I'm not in NL.
<[k-> no, i took mental shortcuts
<jhass> adaedra: we can't see your screen
<jhass> bah
<jhass> adadada: ^
<[k-> i saw many as and many ds
<adaedra> :D
<certainty> told you it's going to be confusing
Jameser` has joined #ruby
<jhass> you two are fucking up weechat's LRU
[k- is now known as adaedada
<adaedada> hello
tkuchiki has quit [Remote host closed the connection]
<certainty> ;)
<adaedada> XD
<adadada> omg lol
<adaedra> .
<jhass> I'll just kick two I guess
<adaedra> maybe we can go back to ruby, instead of making fun of our nicks?
AlexRussia has joined #ruby
<adadada> ok wait a minute, I will show the ruby code I try to use in the template
<adadada> or, maybe I can just write a method to retrieve my data and iterate over the output of hte method?
cih has joined #ruby
<adadada> maybe is better
<jhass> it probably is
<jhass> depends a bit on the context of all this
<adadada> yesh it is capistrano deployment stuff
<`derpy> I think it's better to keep operations in the erb at a minimum
<jhass> no idea how to structure these cleanly then
adaedada is now known as [k-
<adadada> anyway, I will try what I just said I guess
sankaber has joined #ruby
sdwrage has quit [Quit: Leaving]
<`derpy> [k-: don't you have colors in your IRC client to differentiate people?
Lycanii has quit [Remote host closed the connection]
janno_ has quit [Quit: leaving]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<adadada> thanks for hte help anyway!
monoprotic has joined #ruby
zlogan has quit [Ping timeout: 260 seconds]
cina has quit [Remote host closed the connection]
p0wn3d has joined #ruby
Sembei has joined #ruby
auzty has quit [Quit: Leaving]
zlogan has joined #ruby
Pisuke has quit [Ping timeout: 260 seconds]
Porfa has left #ruby [#ruby]
roger_rabbit has quit [Ping timeout: 264 seconds]
janno has joined #ruby
frmendes has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
tagrudev has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
krisquigley has joined #ruby
allomov has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 1.3]
<[k-> i do, that's why i was confused when there was another colour
DLSteve has joined #ruby
<[k-> that was how i found out adadada wasnt adaedra
krisquigley has quit [Ping timeout: 268 seconds]
tkuchiki has joined #ruby
Prominent has quit [Quit: Leaving]
allomov has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
p0wn3d has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
blackmesa has joined #ruby
phutchins1 has joined #ruby
hs366 has joined #ruby
frmendes has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Flying_Squirrel has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
KinderSpiel has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
SylarRuby has joined #ruby
skweek has joined #ruby
stamina has joined #ruby
davedev24 has joined #ruby
p0wn3d has joined #ruby
cassioscabral_ has joined #ruby
devoldmx has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 250 seconds]
lubarch has joined #ruby
apt-get has quit [Read error: Connection reset by peer]
phutchins1 has quit [Ping timeout: 240 seconds]
dmolina has quit [Quit: Leaving.]
jalnt has quit [Read error: Connection reset by peer]
<odigity> I just added bookmarks directly to all core and stdlib docs I might want to use in my broswer for convenience. Many, there is a ton of crap in there. I feel bad for the maintainers. I kind of wish they had used ruby 2 as an opportunity to kick out half of it (at least from core to stdlib).
ruurd has quit [Quit: ZZZzzz…]
atomical has joined #ruby
<odigity> It was both eye-opening an educational. For example, did you know 3/2 == 1? But when you require 'mathn' (which I didn't know existed before this), then 2/3 == 3/2?
roxtrongo has quit [Ping timeout: 240 seconds]
<shevy> [k- damn it, I thought it was adaedra
zlogan has quit [Ping timeout: 250 seconds]
roxtrongo has joined #ruby
Nego_Fua has quit [Ping timeout: 240 seconds]
KinderSpiel has joined #ruby
skweek has quit [Remote host closed the connection]
bronson has joined #ruby
<atmosx> >> require 'mathn'; 2/3 == 3/2
<ruboto> atmosx # => false (https://eval.in/443000)
yfeldblum has quit [Ping timeout: 246 seconds]
<atmosx> odigity: I'm not sure what you mean by 2/3 == 3/2
jhn has joined #ruby
S_Walker has joined #ruby
<odigity> atmosx, typo: I mean't 3/2 == 3/2 (diving 3 by 2 yields a Rational equal to 3/2)
bronson has quit [Ping timeout: 246 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
jhn has quit [Ping timeout: 260 seconds]
Voker57 has quit [Remote host closed the connection]
solocshaw has joined #ruby
<[k-> shevy: we all did
<[k-> even jhass's weechat
codecop has quit [Remote host closed the connection]
favadi has joined #ruby
<jhass> odigity: rational literal is (will be?) 3/2r
KinderSpiel has quit [Ping timeout: 246 seconds]
iamninja_ has quit [Quit: WeeChat 1.3]
<[k-> it is?
favadi has quit [Max SendQ exceeded]
Jameser` has quit [Ping timeout: 265 seconds]
CloCkWeRX has left #ruby [#ruby]
<jhass> >> (3/2r).class
<ruboto> jhass # => Rational (https://eval.in/443004)
<jhass> yup
sgambino has joined #ruby
s00pcan has quit [Quit: Lost terminal]
<[k-> >> [*1..5].each_cons(2).map { |a, b| (a/b.to_r) }
<ruboto> [k- # => [(1/2), (2/3), (3/4), (4/5)] (https://eval.in/443009)
s00pcan has joined #ruby
Jameser` has joined #ruby
dopie has quit [Ping timeout: 252 seconds]
dorei has joined #ruby
dcarmich has joined #ruby
pandaant has joined #ruby
cirenyc has joined #ruby
millerti has joined #ruby
dstarh has joined #ruby
j___ has quit [Quit: Lost terminal]
<[k-> By "it is?", i meant, it already is?
evanjs has joined #ruby
shredding has joined #ruby
Jameser` has quit [Ping timeout: 246 seconds]
zomgbie has joined #ruby
<[k-> >> 4.5/2r
<ruboto> [k- # => 2.25 (https://eval.in/443011)
millerti has quit [Client Quit]
<[k-> :/
<zomgbie> I would love to chat with anybody trying to shoot for a microservice architecture who wants to be dependent on as few gems as possible. Is Sinatra still a good way to go about this or does a Rack based application really suffice?
pepperbreath1 has joined #ruby
allomov has quit [Remote host closed the connection]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zomgbie> By suffice I mean still being practical... There is so much going on grape, volt (the whole opal stack is interesting from a UI perspective - i.e. building an API for a mobile app while still delivering a HTML based frontend)
roxtrong_ has joined #ruby
<zomgbie> React.rb... too many choices.
<zomgbie> (First world problems!:D)
sanjayu has quit [Ping timeout: 252 seconds]
prestorium has joined #ruby
pepperbreath has quit [Ping timeout: 240 seconds]
ericjphillips has quit [Quit: Leaving.]
<zomgbie> E.g. I always liked Rails :format json/html in controllers so that is something which speaks for Sinatra in my book... but I'm still undecided, supposedly you can (and should?) run Sinatra alongside grape (for REST api only)...
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
ksteck has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
JDiPierro has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
Ox0dea has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has quit [Ping timeout: 272 seconds]
<shevy> a zombie! run!
<Ox0dea> Zombies {do,ca}n't eat grapes.
charliesome has joined #ruby
InternetFriend has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
jeffreylevesque has joined #ruby
<[k-> {,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,}
<[k-> StackOverflow
<[k-> ha.
dhjondoh has quit [Remote host closed the connection]
tmtwd has joined #ruby
johnzorn has joined #ruby
<Ox0dea> >> `ls {,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,}`
<ruboto> Ox0dea # => (https://eval.in/443014)
cmoel has joined #ruby
iamninja has joined #ruby
Flying_Squirrel has joined #ruby
<johnzorn> I'm writing a method for a class and would like to do something like this: collection.select(self.even?) is this possible or do I have to create a block?
<adaedra> What are you trying to do, select even numbers in your collection?
<adaedra> collection.select(&:even?) # may be what you look for
vondruch has quit [Ping timeout: 268 seconds]
`tim` has joined #ruby
<johnzorn> no it's more like: possible_neighbours(cell).select(alive?)
mghaig has joined #ruby
<johnzorn> alive? being a method on the class
<zomgbie> haha
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby
<adaedra> johnzorn: so, as a block, .select { |e| e.alive? } ?
<zomgbie> shevz, Ox0dea BRRRRRRRRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIIIIIIIIIN!!!! ÖD
<adaedra> Er
allomov has joined #ruby
<Ox0dea> johnzorn: `select(&:alive?)` will do.
<Ox0dea> It's functionally equivalent to the block form adaedra suggested.
allomov has quit [Remote host closed the connection]
<adaedra> Ox0dea: I was trying to confirm if it's the need, actually.
allomov has joined #ruby
blackmesa has joined #ruby
arup_r has quit []
moeabdol has joined #ruby
K1MOS is now known as moos3
<johnzorn> ok thanks
ndrei has joined #ruby
<[k-> are you sure adaedra is speaking and not adadada?
<Ox0dea> adaedra: Well, johnzorn is clearly doing Conway's Game of Life, so it's quite likely Cell#alive? is the method he means to filter on.
<adaedra> Ox0dea: right.
<adaedra> [k-: stop that. You're highlighting two people for nothing.
<[k-> :<
<Ox0dea> >> 0 == 0.5 # adaedra
<ruboto> Ox0dea # => false (https://eval.in/443019)
Macaveli has joined #ruby
InternetFriend has joined #ruby
ta has quit [Remote host closed the connection]
<adaedra> Ox0dea: ?
kenpoint has joined #ruby
Hounddog has quit [Remote host closed the connection]
<Ox0dea> adaedra: It wasn't for "nothing"? Half of them responded.
EasyCo has quit [Quit: Connection closed for inactivity]
<johnzorn> hehe I haven't created a cell class yet, I'm going test by test
<adaedra> Ox0dea: >_>
<Ox0dea> johnzorn: So what has an #alive? method?
<johnzorn> Board
<Ox0dea> Wat.
allomov has quit [Remote host closed the connection]
<[k-> select boards which are alive?
Hounddog has joined #ruby
Cyther_ has quit [Read error: Connection reset by peer]
<johnzorn> board.alive? cell
<[k-> then you cant use &:alive?
<[k-> this is similar to grid...
<Ox0dea> johnzorn: You'll have to say `select(&Board.method(:alive?))`, but you really ought not.
Cyther has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
<Ox0dea> `select(&Foo.method(:bar))` == `select { |x| Foo.bar(x) }`
blackmesa has quit [Ping timeout: 250 seconds]
<[k-> check the length!
JaRe_Ax has joined #ruby
<Ox0dea> Eyeball it.
JaReAx has quit [Ping timeout: 240 seconds]
JaRe_Ax is now known as JaReAx
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> hmmmm
<Ox0dea> johnzorn: For what it's worth, "possible_neighbours" is a wordy misnomer; they're all neighbors.
<Ox0dea> Conway's Game of Life is secretly a graveyard.
<Ox0dea> Cheap profundity is best profundity.
Azure has quit [Remote host closed the connection]
symbol_ has joined #ruby
<[k-> i bet i could repurpose grid to conway's game of life after i finish it
zomgbie has quit [Read error: Connection reset by peer]
whippythellama has joined #ruby
yardenbar has quit [Read error: Connection reset by peer]
JaReAx has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
allcentury has joined #ruby
apt-get has joined #ruby
JaReAx has joined #ruby
Jackneill has joined #ruby
dopamean_ has quit [Ping timeout: 265 seconds]
NeverDie has joined #ruby
<johnzorn> Ox0dea: well the implementation I'm doing is a sparse implementation. So Board is just a set subclass with [x,y] pairs for the 'alive' cells and nothing more. possible_neighbours is given an x,y and returns all the [x,y]s around it not actually checking the board. I was using that in my neighbours method which actually did check those possible_neighbors if they where alive
roxtrong_ has quit [Remote host closed the connection]
moeabdol has quit [Quit: WeeChat 1.3]
shredding has quit [Remote host closed the connection]
zomgbie has joined #ruby
<Ox0dea> johnzorn: But how can a cell "possibly" neighbor another cell?
devdazed has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
piotrj has quit [Remote host closed the connection]
<Darkwater> easily
<Darkwater> the 'possibly' is just redundant
<Ox0dea> Mind we're discussing a cellular automaton.
malconis has joined #ruby
Flying_Squirrel has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Quit: dhjondoh]
TvL2386 has quit [Quit: Ex-Chat]
last_staff has quit [Quit: last_staff]
<Ox0dea> Darkwater: Which information is being unnecessarily duplicated?
<johnzorn> ok so possibly_alive_neighbours was what I meant
malconis has quit [Remote host closed the connection]
zomgbie has quit [Client Quit]
amystephen has joined #ruby
<johnzorn> ok surrounding_cells then
malconis has joined #ruby
<Ox0dea> So... neighbors?
piotrj has joined #ruby
DLSteve has quit [Ping timeout: 244 seconds]
spcmastertim has joined #ruby
jgpawletko has joined #ruby
bigkevmcd has joined #ruby
tesuji has quit [Ping timeout: 246 seconds]
<johnzorn> Ox0dea: in my head neighbours are the surrounding cells that are alive. I guess I'm thinking in terms of something is there or isn't and that's causing confusion
<Ox0dea> johnzorn: Yes, that does seem to be the case.
<Ox0dea> Refer to my graveyard joke from earlier.
ruby-lang123 has joined #ruby
<Ox0dea> It's sensible enough to use "dead" and "alive" to disambiguate.
<ruby-lang123> register passwd
ndrei has quit [Ping timeout: 265 seconds]
<Ox0dea> Well done.
<jhass> ruby-lang123: poor choice
ruby-lang123 has left #ruby [#ruby]
<Ox0dea> johnzorn: If I understand correctly, you're using an O(n) approach to determine live neighbors where an O(1) is available.
RegulationD has joined #ruby
JDiPierro has quit [Remote host closed the connection]
felixr has quit [Ping timeout: 255 seconds]
<Ox0dea> Iterating over every single pair to find live neighbors is a little silly. :x
ruby-lang123 has joined #ruby
<Ox0dea> Sure, you've got a sparse representation, but at what cost?
InternetFriend has joined #ruby
centipedefarmer has joined #ruby
moeabdol has joined #ruby
bronson has joined #ruby
<Ox0dea> Use Hash with a default to get the best of both worlds.
<[k-> at least it is better than O(n^2) :(
dopie has joined #ruby
ndrei has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
frmendes has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
SylarRuby has quit [Remote host closed the connection]
JDiPierro has joined #ruby
ngscheur1 has joined #ruby
KinderSpiel has joined #ruby
evanjs has quit [Remote host closed the connection]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has quit [Remote host closed the connection]
zomgbie has joined #ruby
Deviad has quit [Ping timeout: 246 seconds]
spotted has quit [Ping timeout: 268 seconds]
fly1 has quit [Quit: WeeChat 1.1.1]
minimalism has joined #ruby
spotted has joined #ruby
spotted1 has joined #ruby
neanderslob has quit [Remote host closed the connection]
luksaur has joined #ruby
casadei has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
victortyau has joined #ruby
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
allomov has joined #ruby
bronson has joined #ruby
allomov has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
allomov has joined #ruby
Cyther has quit [Read error: Connection reset by peer]
KinderSpiel has left #ruby [#ruby]
allomov has quit [Remote host closed the connection]
casadei has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
evanjs has joined #ruby
MyMind has joined #ruby
badadvicedevnul is now known as iamdevnul
segfalt has joined #ruby
charliesome has joined #ruby
Sembei has quit [Ping timeout: 255 seconds]
<karapetyan> what you think about it:
<karapetyan> http://fasten.com
charliesome has quit [Client Quit]
<karapetyan> Does anyone already try it?
pwnd_nsfw has quit [Remote host closed the connection]
evanjs has quit [Ping timeout: 244 seconds]
simplyianm has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 246 seconds]
allomov has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<[k-> ?ot karapetyan
<ruboto> karapetyan, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
yeticry has joined #ruby
charliesome has joined #ruby
karapetyan has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
charliesome has quit [Client Quit]
<Ox0dea> He doesn't usually spam.
stardiviner has joined #ruby
inteq has quit [Remote host closed the connection]
dopamean_ has joined #ruby
qba73_ has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
apt-get has quit [Ping timeout: 246 seconds]
InternetFriend has joined #ruby
InternetFriend has quit [Max SendQ exceeded]
jxv has joined #ruby
<[k-> i wouldn't have directed him to ?ot otherwise
stardiviner has quit [Ping timeout: 264 seconds]
bronson has quit [Remote host closed the connection]
<shevy> certainty one thing I like about the matz talk was that he explained why the "did you mean this" gem was added
centrx has joined #ruby
ruby-lang123 has quit [Quit: Page closed]
<Ox0dea> Because Ruby is severely lacking in the discoverability department.
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
SylarRuby has joined #ruby
SylarRuby has quit [Remote host closed the connection]
zomgbie has quit [Ping timeout: 264 seconds]
<shevy> it's the man-machine interface as matz explained!
SylarRuby has joined #ruby
zomgbie has joined #ruby
umgrosscol has joined #ruby
jas02 has quit [Quit: jas02]
unshadow has quit [Ping timeout: 250 seconds]
iateadonut has joined #ruby
kobain has joined #ruby
dhollinger has joined #ruby
UtkarshRay has joined #ruby
unshadow has joined #ruby
SylarRuby has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
<shevy> do you people sometimes approach your own code as being able to evolve on its own?
qba73_ has quit [Ping timeout: 256 seconds]
apt-get has joined #ruby
qba73 has joined #ruby
KinderSpiel has joined #ruby
ruby-lang744 has joined #ruby
<KinderSpiel> hey ruby-lang744
<KinderSpiel> word
constantinexvi has joined #ruby
<ruby-lang744> Hi KinderSpiel
<shevy> german nicks!
<KinderSpiel> lol
<KinderSpiel> I used it a long time ago, maybe I’ll get back to it
sundhell has quit [Ping timeout: 268 seconds]
<KinderSpiel> you in germany shevy?
n008f4g_ has joined #ruby
fullofcaffeine has joined #ruby
<ruby-lang744> What I'm asking is probably trivial. I'm fetching JSON and putting them into an array of hashes. The hashes have a key "type" and a selection of values. How can I filter, before I'm putting anything in the array, for the "type" value?
tkuchiki has quit [Remote host closed the connection]
karapetyan has joined #ruby
<ruby-lang744> let's say there are four key values that should pass, all the others should fail and not be put into the array
pawnbox has joined #ruby
<shevy> KinderSpiel austria
BrazenBraden has joined #ruby
terlar has quit [Ping timeout: 250 seconds]
<shevy> but #ruby is full of german nicks... Papierkorb ... flughafen (ok he is not here right now) ... platzhirsch ... in the past also brotspinne
favadi has joined #ruby
<KinderSpiel> lol, too funny
<adaedra> Aren't KinderSpiel forbidden in the US now?
otacon- has joined #ruby
<phreakocious> does it seem reasonable that spawning 200 ruby processes is faster than 200 threads for doing the same work? the only mutex locked activity is pushing items into an array..
favadi has quit [Max SendQ exceeded]
<jhass> phreakocious: on MRI if your operations are not IO bound, yes
<jhass> consider JRuby perhaps
banister has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<phreakocious> it's all just sending/receiving UDP packets
arup_r has quit [Max SendQ exceeded]
<jhass> well, the sending never blocks I guess
<KinderSpiel> adaedra that was something else i think
arup_r has joined #ruby
<KinderSpiel> some child candy
<KinderSpiel> off to the rails room, see ya
KinderSpiel has left #ruby [#ruby]
zomgbie has quit [Ping timeout: 260 seconds]
<Ox0dea> adaedra: Did you mean "KinderSurprise"?
ruurd has joined #ruby
mghaig has left #ruby [#ruby]
<adaedra> Ox0dea: well, iirc it was the toy that was problematic.
shmilan has joined #ruby
piotrj has joined #ruby
zomgbie has joined #ruby
<Ox0dea> What a world.
freerobby has joined #ruby
noethics has joined #ruby
mwlang has joined #ruby
ndrei has joined #ruby
dfockler has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
evanjs has joined #ruby
havenwood has joined #ruby
AlexRussia has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
evanjs has quit [Remote host closed the connection]
ksteck has quit [Quit: Textual IRC Client: www.textualapp.com]
loincloth has quit []
loincloth has joined #ruby
RegulationD has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
<ruby-lang744> hm. Is there a ruby help channel, by any chance?
<adaedra> just here
<ruby-lang744> I see. Then here it is again:
<ruby-lang744> What I'm asking is probably trivial. I'm fetching JSON and putting them into an array of hashes. The hashes have a key "type" and a selection of values. How can I filter, before I'm putting anything in the array, for the "type" value?
<shevy> man
<adaedra> shevy: ?
stryek_ has quit [Quit: leaving]
mary5030 has joined #ruby
<adaedra> ruby-lang744: use Enumerable#select on your hash
ruby523 has joined #ruby
<adaedra> &ri Hash#select
stryek has joined #ruby
mary5030 has quit [Remote host closed the connection]
_aeris_ has quit [Remote host closed the connection]
<Ox0dea> adaedra: I believe you've misinterpreted the thing.
_aeris_ has joined #ruby
mary5030 has joined #ruby
barhum2013 has joined #ruby
adadada has quit [Ping timeout: 250 seconds]
<Ox0dea> I suspect it wants `foo << hash if hash['type'].something`.
Voker57 has joined #ruby
<adaedra> Ox0dea: possible
<jhass> ruby-lang744: gotta show some code
<loincloth> unclear if type is a list or single string
decoponio has joined #ruby
<ruby-lang744> the type is a single string
pawnbox_ has joined #ruby
<loincloth> if whitelist.include? hash["type"] ?
<loincloth> or some such
<loincloth> ?
<ruby-lang744> if "type" is "employee" or "provider" or "visitor" or "security" then put into array
<ruby-lang744> in very bad pseudocode...
<Ox0dea> ruby-lang744: Then put the whole Hash into the Array?
<ruby-lang744> then put the whole hash into the array, yes
<Ox0dea> ruby-lang744: Then yes, see my `foo <<` above, and loincloth's suggestion for the predicate.
nfk|laptop has quit [Quit: yawn]
<ruby-lang744> I already am putting things in the array with <<, I just need some condition around it
KinderSpiel has joined #ruby
arup_r has quit [Ping timeout: 252 seconds]
<KinderSpiel> back
decoponio has quit [Read error: Connection reset by peer]
riotjones has quit [Remote host closed the connection]
decoponio has joined #ruby
<KinderSpiel> wasn’t getting any help from the rails room, maybe they thought I was trolling them, or my question was too basic
<Ox0dea> ruby-lang744: Then you can skip to the second part of my recommendation.
<KinderSpiel> jhass, wanna help me out with my gist here?
<KinderSpiel> or anyone, for that matter?
lolmaus has quit [Quit: Konversation terminated!]
pawnbox has quit [Ping timeout: 244 seconds]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jameser` has joined #ruby
bigkevmcd has joined #ruby
hashrocket has joined #ruby
<jhass> KinderSpiel: I don't see your question over at #RubyOnRails
y_gick has joined #ruby
Encapsulation has joined #ruby
<Ox0dea> He hasn't spoken in there today.
<y_gick> "We want to keep all feed experiences on Pinterest."
<jhass> KinderSpiel: NickServ (NickServ@services.): KinderSpiel has NOT COMPLETED registration verification
<KinderSpiel> damn
<havenwood> ?rails KinderSpiel
<ruboto> KinderSpiel, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jhass> you're not authenticated yet
<KinderSpiel> thanks jhass
<y_gick> pinterest engineer don't love sharing
<Ox0dea> KinderSpiel: Thanks for the Schadenfreude. :P
<jhass> y_gick: that's pretty normal, at least FB & twitter have the same policy
<KinderSpiel> lol Ox0dea
<KinderSpiel> be back take care
<jhass> it's what you get for using a proprietary SN :P
<y_gick> jhass: twitter let you make nearly everything
<Ox0dea> KinderSpiel: Wait!
KinderSpiel has left #ruby [#ruby]
<y_gick> jhass: ok for fb but not for twitter
<jhass> y_gick: they just don't enforce it yet, but I expect that to change pretty soon
KinderSpiel has joined #ruby
<shevy> dictators!
<KinderSpiel> say what Ox0dea?
<Ox0dea> Businesspeople!
<Ox0dea> KinderSpiel: You should learn how to be in multiple channels.
<shevy> lol
<ruby-lang744> so it's like: if JSON.parse(temp).["employee","provider","visitor","security"].include? hash["type"] ?
<Ox0dea> ruby-lang744: Whoa, no.
<Ox0dea> Sorry, I didn't mean for you to literally just mush mine and loincloth's advisements together like that.
<ruby-lang744> .... nobody ever managed to explain object oriented to me yet, so...
Jameser` has quit [Ping timeout: 246 seconds]
<shevy> yeah yeah
<KinderSpiel> Ox0dea yeeeah :)
<shevy> a "newbie" who comes up with this creative syntax ;)
mjago has quit [Read error: Connection reset by peer]
<ruby-lang744> look, so far I've only programmed in Fortran, sorry...
<ruby-lang744> it just sucks with web queries
mjago has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<shevy> nope
<loincloth> @ruby-lang744 you are on the path
decoponio has joined #ruby
* ruby-lang744 whistles "the long and winding road"
<Ox0dea> ruby-lang744: I've brought you a delicious snack.
y_gick has quit [Quit: WeeChat 1.1]
arup_r has joined #ruby
<ruby-lang744> those are nice libraries, though entirely unneccessary... I could code a JSON parser in Fortran alright. It's the HTTP/HTTPS connectivity that I've never done
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-lang744> and I read somewhere that ruby can be learned in 30 minutes. So far I'm clocking 31 hours...
<Ox0dea> I'll get the violin.
<adaedra> can != will
yardenbar has quit [Ping timeout: 272 seconds]
<adaedra> And I don't think a language can be learned in 30 minutes.
<adaedra> Except maybe brainfuck.
<ruby-lang744> or LOGO
<Ox0dea> For some definition of "learn".
<loincloth> ruby-lang744: https://gist.github.com/greatseth/04306f819f71883cd546 i think what you last pasted should look more like that
<shevy> ruby-lang744 hey can I look at your github page?
<Ox0dea> loincloth: Where'd you catch it?
<loincloth> some assumptions are made of course... that 'temp' is some JSON as a string... that 'array' is an array :D
<ruby-lang744> well, should I make one, shevy?
<shevy> ruby-lang744 come on, I want to peek at your stuff
<loincloth> Ox0dea: where'd i catch whut
<ruby-lang744> now that's just 18+...
<Ox0dea> loincloth: That fish you gave ruby-lang744.
<loincloth> i see what you did there
teslax has joined #ruby
<teslax> What is an "assertion"?
<shevy> a gateway attack
<jhass> teslax: any context? minitest?
<Ox0dea> teslax: A testament to the truth or falsity of some statement.
<loincloth> i guess i decided a few lines showing some new stuff would be easier on everyone than a more abstract lesson
<teslax> jhass: Yeah in unit testing.
<loincloth> i'm all for teaching in the big picture, tho
<loincloth> but you can learn through snippets, too
<jhass> teslax: a test that some expression is (usually) truthy
<Ox0dea> loincloth: But then whence the time-honored adage in the first place?
<loincloth> i started by just saying 'whitelist' tho... which only implied some things, etc.
inteq has joined #ruby
<shmilan> teslax: check out the ruby doc for Test::Unit:Assertions
<shmilan> They're pretty easy to understand
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> teslax: say you want to test that 1 + 2 is 2, assert 1+1 == 2, "1+1 wasn't 2"
hydrozen has joined #ruby
<Ox0dea> Needs more confusing.
<jhass> and then see ^ for less boilerplate and convenience wrappers around that
bronson has joined #ruby
<teslax> And I was wondering...I am just starting to learn about unit testing... how do the tests get executed automatically when a class inherits from Test::Unit::TestCase ?
<Ox0dea> teslax: at_exit.
<jhass> and def self.inherited I supposed
<jhass> in short Ruby provides some hooks that makes it possible
hs366 has quit [Read error: Connection reset by peer]
karapetyan has quit []
<teslax> where is test/unit normall stored? I want to look at the code
rippa has joined #ruby
<teslax> normally*
<ruby-lang744> c:\Users\<username>\Documents\<ruby script folder> is where it is stored
<jhass> teslax: run gem which test/unit on your shell
tvw has quit [Remote host closed the connection]
<loincloth> ooh fancy
KinderSpiel has quit [Quit: Audi. 5000.]
bronson has quit [Ping timeout: 250 seconds]
teslax has left #ruby [#ruby]
favadi has joined #ruby
jeadre has quit [Remote host closed the connection]
favadi has quit [Max SendQ exceeded]
Silicium has joined #ruby
<Silicium> hi there
<Ox0dea> Heya.
jeadre has joined #ruby
null_ref has joined #ruby
barhum2013 has quit [Read error: Connection reset by peer]
<Silicium> i have a strange problem, i pass env vars vor heap configuration to passenger (successfully, i verified that) but ruby (2.0) still initially allocates 1500 heaps. i set the min_slots to 2000000, our app needs 1800000 objects, so it seems that ruby ignores the env vars. can i somehow verify the GC/Heap Settings?
eminencehc has joined #ruby
<Ox0dea> &ri GC.stat @Silicium
<Ox0dea> Should have everything you might need.
deg_ has quit [Ping timeout: 252 seconds]
<Silicium> Ox0dea: stat does not show me the used configuration!
<Silicium> it does show me the current state but not the configuration :(
podman has joined #ruby
herbst has quit [Remote host closed the connection]
barhum2013 has joined #ruby
<Silicium> `derpy: :(
cjbottaro has joined #ruby
thebastl has joined #ruby
rcvalle has joined #ruby
<adaedra> Silicium: `derpy is only a bot.
teslax has joined #ruby
<teslax> what's the difference between a postive assertion and a negative assertion?
<Ox0dea> Prove it.
<Silicium> herp. derp.
SCHAAP137 has quit [Read error: Connection reset by peer]
<shevy> hahaha
darkf has quit [Quit: Leaving]
<shevy> adaedra oh is this a factoid about `derpy?
Prominent has joined #ruby
eGGsha has joined #ruby
<jhass> teslax: a negative assertion is inverting the outcome of the condition prior evaluation, so assert_not foo == assert !foo
<adaedra> shevy: would that make me a bot ?
Xeago has quit [Remote host closed the connection]
<shevy> adaedra I just want to trigger it!
Xeago has joined #ruby
<shevy> ?adaedra
<ruboto> don't be mean to adaedra
<Silicium> Ox0dea: prove what?
teslax has left #ruby [#ruby]
<Ox0dea> Prove that proving proves anything.
Blaze_Boy has quit [Quit: Page closed]
<shevy> Prove your existance!
<Silicium> i proved the prove
<Silicium> everything is probed until GC!
<Silicium> s/probed/proved
<shevy> GC is the big mighty cleaver
tkuchiki has joined #ruby
evanjs has joined #ruby
lokulin has quit [Ping timeout: 240 seconds]
dravine has quit [Quit: dravine]
<Silicium> however, since do i have to attach strace to the ruby process to identify the GC settings or is there a "normal" way? can i somehow read the actual used settings from my application?
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
slackbotgz has joined #ruby
<apeiros> any troubles with osx 10.11 (el capitan) and rvm/brew?
<apeiros> derp
* apeiros googles :D
Prominent has quit [Quit: Leaving]
dravine has joined #ruby
<Ox0dea> TIL apeiros doesn't read HN.
<adaedra> apeiros: software can't write in /usr (except /usr/local) anymore.
<shevy> come to linux man
<apeiros> Ox0dea: indeed, I don't
m8 has joined #ruby
<Todd> Brew didn't work when I first installed El Capitan (for things other than Ruby).
<apeiros> adaedra: yeah, I guess SIP will cause trouble with brew wanting to chown /usr/local
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<Todd> They didn't officially support it at the time.
<shevy> as far as I know it can be re-enabled
<adaedra> apeiros: iirc, this is not a problem.
<Todd> Not sure if it's officially supported now, but it's working for what I need it for.
tkuchiki has quit [Ping timeout: 246 seconds]
<ruby-lang744> how do I check if a key has a non-nil value in a hash? if hash["key"].nil?.! is the way to go?
bronson has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
<apeiros> ruby-lang744: unless hash[key].nil?
<Ox0dea> apeiros: What's wrong with `.!`? :P
paulcsmith has joined #ruby
<Ox0dea> >> false.!
<ruboto> Ox0dea # => true (https://eval.in/443066)
<Todd> That's weird.
<apeiros> *cough*
<Todd> I would ding a code review for that.
eminencehc has quit [Remote host closed the connection]
Jardayn has joined #ruby
<apeiros> ruby-lang744: note that non-nil value for key and key not existing are two different things
LBRapid has quit [Remote host closed the connection]
<ruby-lang744> yes well, there are cases when the key doesn't exist, or cases when it exists with a nil value, also cases when it exists but has a zero value. I want to exclude all three
<ruby-lang744> that's three ifs in each other
Hounddog has quit [Remote host closed the connection]
eminencehc has joined #ruby
<Todd> that doesn't sound like fun
<apeiros> that sounds like it could use some rethinking ;-)
<Todd> if he has control over the data.. sometimes you don't
<ruby-lang744> why, doesn't Ruby short circuit eval?
<shevy> people, ruby-lang744 has no problem. he also never showed any real code either.
<ruby-lang744> shevy, why are you so desperate in seeing the actual code?
<shevy> ruby-lang744 cuz you are so fake
sjums has joined #ruby
<ruby-lang744> what does being fake mean here?
<shevy> ruby-lang744 show code
JDiPierro has quit [Remote host closed the connection]
<apeiros> come on shevy, stay gentle
<Ox0dea> >> false && burn it down # ruby-lang744: Yes, it does.
<ruboto> Ox0dea # => /tmp/execpad-0edac8e4c72e/source-0edac8e4c72e:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/443068)
Silicium has left #ruby [#ruby]
<Ox0dea> Dammit.
HotGirl89 has joined #ruby
<HotGirl89> hi guys
<Ox0dea> I don't see why that shouldn't've worked.
favadi has joined #ruby
treehug88 has joined #ruby
<Ox0dea> apeiros: Act now!
<shevy> :D
<HotGirl89> i have a very strange problem, withruby
<Ox0dea> Liar.
<shevy> lol
<shevy> wait... perhaps code will be shown
<apeiros> what?
<Ox0dea> apeiros: A wild troll has appeared.
<Todd> omg.. I can't
<HotGirl89> can i somehow see the actual used heap/gc settings?
<shevy> oh dear
<Ox0dea> Poor thing.
<shevy> what is the "strange problem"?
favadi has quit [Max SendQ exceeded]
thebastl has quit [Remote host closed the connection]
<HotGirl89> stranger problem
<shevy> yeah, it's very strange
<Todd> HotGirl89: ##java :D
<Ox0dea> HotGirl89 is Silicium from earlier attempting to employ the (regrettably effective) "girls get help" strategy.
<HotGirl89> Todd: i can tell you how to do in java, but not in ruby!
ruurd has quit [Quit: ZZZzzz…]
<Todd> I made that assumption thus my reverse troll.
<shevy> lol
<Ox0dea> ruby-lang744: Ruby does short-circuit, but conditional trees are unpleasant.
<apeiros> Ox0dea: good to know. but not actually against any rules.
<HotGirl89> Ox0dea: jesus, how did you noticed that!
<shevy> Ox0dea has an advanced inbuilt troll detector... I would not have figured out that it was Silicium
<apeiros> unless silicium was trolling
slawrence00 has joined #ruby
<shevy> you have too much faith in the good of humanity apeiros!
<Ox0dea> ruby-lang744: In this particular case, it's much more sensibe to filter on what you want than what you don't.
<Ox0dea> `if hash["type"].present?`, perhaps.
HotGirl89 is now known as Silicium
karapetyan has joined #ruby
<apeiros> shevy: well, if silicium didn't get help but hotgirl89 does, then it's not them being wrong but the people who didn't help before
<ruby-lang744> Ox0dea, I think they aren't that bad. I can generally sight-read them to 3 levels' depth or so. Let's see this present?
<Ox0dea> It's from ActiveSupport.
<Ox0dea> It considers the empty string to be "falsy", which I assume is your zero value in this case.
anisha has quit [Quit: Leaving]
<shevy> apeiros yeah, I did not know that HotGirl89 was Silicium before though :)
<Ox0dea> Nifty.
<ruby-lang744> <>.rb:44:in `block in <main>': undefined method `present?' for nil:NilClass (NoMethodError)
<havenwood> ruby-lang744: That's Rails.
<Ox0dea> ActiveSupport.
<Ox0dea> ruby-lang744: You put angle brackets in your file names?
<ruby-lang744> Ox0dea, no, just blanked it out
<Todd> lol
<Ox0dea> Must be FBI.
piotrj has quit [Remote host closed the connection]
<havenwood> ruby-lang744: require 'active_support/core_ext/object/blank'
fullofcaffeine has quit [Remote host closed the connection]
<adaedra> Ox0dea: NSA.
<Todd> Even the NSA wouldn't use Fortran.
<Ox0dea> Otherwise unnamed TLA.
deg_ has joined #ruby
<Ox0dea> I bet the NSA does use Fortran.
bronson has quit [Remote host closed the connection]
<Todd> Possibly for something.
<Ox0dea> For all that HPC they're doing, I'd imagine.
<ruby-lang744> .... fiiiiine
eminencehc has quit [Remote host closed the connection]
<Ox0dea> He's gonna post code.
<ruby-lang744> HPC is fine for Fortran tho
<Ox0dea> What do you mean, "fine"?
<adaedra> Fortran Meade?
<ruby-lang744> C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' : cannot load such file -- active_support/core_ext/object/blank (LoadError) from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54 :in `require' from C:/Users/Peti/Documents/salvage seek/salvage seek.rb:6:in `<main>'
eminencehc has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
<shevy> he did not show code!
<ruby-lang744> Ox0dea, that it scales relatively well for a large number of cores
<Ox0dea> "Relatively well"?
shinnya has joined #ruby
<ruby-lang744> relatively well
<Todd> relative to?
evanjs has quit [Remote host closed the connection]
<Ox0dea> I think it's arguably the go-to language for HPC.
cornerma1 has joined #ruby
<Ox0dea> They still use LAPACK to rank the TOP500, no?
dseitz has joined #ruby
<Todd> Ox0dea: I think even in that area it depends on what you're referring to?
<ruby-lang744> well, let's see. Computational fluid dynamics routines, meteorology, astronomy etc... most libraries are still there.
<ruby-lang744> and they've been written in... hell, probably in the 70's
renderful has joined #ruby
<Ox0dea> This guy knows his shit.
diegoviola has joined #ruby
<ruby-lang744> nevertheless, they didn't do nothing with internets in Fortran
yardenbar has joined #ruby
<Todd> I worked at a warehouse in college that was managed with cobol. Worked great until the one guy who wrote it retired. ;)
<ruby-lang744> I worked as a cobol programmer for half a year, that was actually very fun
<centrx> TIOBE is junk
<havenwood> shevy: better to check the chicken bones
decoponio has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
<Todd> I moved to a devops roll right before we switched our CMS to Java. Sad days those. :(
riotjones has joined #ruby
<Todd> Told my boss I "refuse to learn anything unnecessary for my job assignment" in relation to Java and he didn't disagree.
<ruby-lang744> and if you were so hungry for code, shevy, then: if whitelist.include? hash["type"] # puts hash if hash["suffix_item_id"].present? puts hash if hash["suffix_item_id"]>0 item_data << hash puts hash end end elsif ["employee"].include? hash["type"] item_data << hash puts hash end
decoponio has joined #ruby
<havenwood> ?gist ruby-lang744
<ruboto> ruby-lang744, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<Ox0dea> I like the part where #include? was called on a single-element Array.
amclain has joined #ruby
Xeago has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
<Ox0dea> Yep, still my favorite part.
<ruby-lang744> I don't, but I don't know anything about object oriented programming, I assumed that was the way
<shevy> ruby-lang744 that is incomplete
towski_ has joined #ruby
yardenbar has quit [Remote host closed the connection]
<ruby-lang744> if it works for a list of more than one member, it should work with a list with a single member too
<Ox0dea> Yes, but it looks dumb.
<ruby-lang744> shevy, might I remind you that you asked for "code", not "all of the friggin' code"?
<ruby-lang744> so now, stuff it
ruurd has joined #ruby
Xeago has joined #ruby
<shevy> ruby-lang744 you are just trolling man
<Ox0dea> ruby-lang744: We ask for code in the interests of better assisting you, prick.
<ruby-lang744> fiiine, you want the whole code?
<Ox0dea> Nah.
<shevy> ruby-lang744 nobody wants your code :)
<Ox0dea> ^
<eam> ladies and gentlemen
yardenbar has joined #ruby
<eam> good evening
<shevy> hey eam
<Todd> That escalated quickly.
<jhass> ?ugt eam
<jhass> scnr
<Ox0dea> eam is in ~UGT.
<shevy> it's evening here!
<eam> jhass: it's always evening if you're a classy individual like me
<shevy> I am surprised it's evening at eam as well
behrz has joined #ruby
<eam> 9:07am and I'm wearing a tux
riotjones has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
deanodeano_ has joined #ruby
<shevy> a sombrero?
<eam> no, I'm told sombreros are racist
qba73 has quit [Ping timeout: 250 seconds]
<jhass> ruby-lang744: where does hash come from? probably should be a select instead of an each
<Ox0dea> A Linux mascot?
SCHAAP137 has joined #ruby
Sou|cutter is now known as Soulcutter
deanodeano_ has quit [Client Quit]
poguez_ has joined #ruby
<shevy> a beard!
<ruby-lang744> hash is pulled from a server with a https request, and is in JSOB format
bricker has joined #ruby
<Todd> ruby-lang744: select is awesome for filtering out only what you want
<Todd> ruby-lang744: also see reject
<ruby-lang744> https://gist.github.com/anonymous/712e64dfe940d7ab7b8d if to check. Much of the program won't be relevant, which is why I've snipped it out, but then I was called a prick for that
platzhirsch has left #ruby [#ruby]
<Todd> You're not handling HTTP exceptions.
<jhass> okay, gotta start with reformatting it
joonty has quit [Quit: joonty]
<ruby-lang744> Todd, nope, I'm not
stan has quit [Ping timeout: 246 seconds]
<ruby-lang744> what happens if an http exception is thrown in such a code? Doesn't the code just stop?
Xeago has quit [Remote host closed the connection]
but3k4 has quit [Quit: Textual IRC Client: www.textualapp.com]
barhum2013 has quit [Quit: barhum2013]
havenwood has quit [Ping timeout: 260 seconds]
<Todd> ruby-lang744: the body message would throw an exception.. so, yeah
<jhass> I don't think http throws any exception beyond the IO ones?
teslax has joined #ruby
barhum2013 has joined #ruby
<Todd> body would throw an exception for non-200 responses
lubarch has quit [Quit: leaving]
<ruby-lang744> well, that's just fine then
<Todd> Net::HTTP doesn't follow redirects by default
lubarch has joined #ruby
symbol_ has quit [Ping timeout: 264 seconds]
<ruby-lang744> and I need no redirects either
evanjs has quit [Ping timeout: 244 seconds]
Marsupermammal has joined #ruby
piotrj has joined #ruby
Uranio-235 has joined #ruby
ruurd_ has joined #ruby
<ruby-lang744> now I was told to load this active-support thing, but the program crashes on it with LoadError... another package to install, I take?
slackbotgz has quit [Remote host closed the connection]
ruurd has quit [Ping timeout: 244 seconds]
<Todd> gem install would install all dependencies required in the active_support gemspec
<teslax> When running the following test: "ruby -I path/to/app/lib path/to/app/test/test_roman.rb" what does the "-I" option do? http://ctrlv.it/id/2404/3838671279
Soulcutter is now known as Sou|cutter
<Ox0dea> teslax: It adds that directory to the load path.
<Todd> so.. you should never have to install any other gem unless the original gem's gemspec has a bug in it
<teslax> 0x0dea: It adds it inside test_roman.rb ?
<Todd> native gems are special cases.. they are compiled and require libs
finisherr has joined #ruby
<Todd> I need a smoke. brb
<Ox0dea> teslax: The -I flag is supposed to be given a directory argument, not a file.
<odigity> How can I print a list of all packages that have been 'require'-ed?
nateberkopec has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
evanjs has joined #ruby
<Ox0dea> odigity: $LOADED_FEATURES should do.
shmilan has joined #ruby
<teslax> 0x0dea: So it adds the lib directory to the load path so that it can be accessed from within test_roman.rb?
<odigity> Ox0dea, wow, that's a lot of output. :) Thanks!
<Ox0dea> teslax: Oh, sorry; I did misread your command line there.
<Ox0dea> teslax: The load path is the set of directories Ruby looks for 'foo' in when you require 'foo'.
skade has quit [Quit: Computer has gone to sleep.]
beast has quit [Quit: Leaving]
Uranio-235 has quit [Quit: Page closed]
pawnbox_ has quit [Remote host closed the connection]
<teslax> 0x0dea: So if I have a ruby script that requires 'foo.rb' which is inside path/app/, I can just run it using ruby -I path/app script.rb ? Correct?
<Ox0dea> odigity: Aye, it's quite a bit, and it's not all gems; you'll have to pare it down considerably.
barhum2013 has quit [Quit: barhum2013]
<odigity> Ox0dea, that's ok, I got what I needed from it.
<ruby-lang744> well, it doesn't seem to work with .present? at the moment....
Soda has joined #ruby
<Ox0dea> teslax: No, the command line doesn't interact with the load path.
p0wn3d has quit [Ping timeout: 252 seconds]
evanjs has quit [Remote host closed the connection]
<Ox0dea> ruby-lang744: #present? is overkill for this particular case; apologies for having you chase that goose.
otacon- has quit [Ping timeout: 240 seconds]
<ruby-lang744> naw, I just want it to finally work (somehow.)
Xeago has joined #ruby
<Ox0dea> teslax: Gah, sorry, I keep misreading you; yes, I think you've grokked the thing.
shmilan has quit [Quit: Leaving]
<teslax> 0x0dea: No problem!
<Ox0dea> teslax: For what it's worth, it's usually better to append to the load path directly from within Ruby.
ndrei has joined #ruby
ruby523 has quit [Ping timeout: 246 seconds]
<jhass> ruby-lang744: http://paste.mrzyx.de/pvs0ifbwv cleaned it somewhat up
<Ox0dea> It's just a plain-ol' Array into which you can shovel the additional directories you want searched.
weaksauce has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
robh71 has joined #ruby
tenderlove has joined #ruby
maletor has joined #ruby
<ruby-lang744> jhass, thanks, I'll check in a moment
<Ox0dea> jhass: L32-34 -> `items << item if item["suffix_item_id"].to_i > 0`.
thebastl has joined #ruby
casadei has quit [Remote host closed the connection]
p0wn3d has joined #ruby
behrz has quit [Quit: Leaving]
michael_mbp has joined #ruby
teslax has left #ruby [#ruby]
<jhass> Ox0dea: don't like relying on NilClass#to_i too much
ndrei has quit [Ping timeout: 246 seconds]
<Ox0dea> Might change someday.
behrz has joined #ruby
<jhass> Crystal just dropped it thankfully
<ruby-lang744> X| I... this is unreadable
baroquebobcat has joined #ruby
<ruby-lang744> can't figure anymore what any single line in the evaluation does
deg__ has joined #ruby
<jhass> 80% is just renaming to proper names and adding some whitespace
<ruby-lang744> you put weird things like #{} in there though
<ruby-lang744> have no clue what the heck that is
<jhass> >> "we prefer string #{"interpolation"} over string " + "concatenation"
<ruboto> jhass # => "we prefer string interpolation over string concatenation" (https://eval.in/443102)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<ruby-lang744> what is an interpolation?
<jhass> "#{foo} this is"
<ruby-lang744> .... okay
<jhass> you can put any ruby code inside #{} inside a string
<ruby-lang744> any?
<jhass> practically
<Ox0dea> >> "#{def foo; 42; end} #{foo}"
<ruboto> Ox0dea # => "foo 42" (https://eval.in/443103)
<Ox0dea> So sick.
<jhass> Ruby then calls to_s on the result for you and sticks that into the string
ndrei has joined #ruby
<jhass> >> "1 + 1 = #{1+1}"
<ruboto> jhass # => "1 + 1 = 2" (https://eval.in/443104)
<ruby-lang744> dunno, to_s is more readable to me
<ruby-lang744> it shows "to string"
<jhass> that'll change soon
zlogan has joined #ruby
<Ox0dea> ruby-lang744: Learn to see #{} as "to string".
<jhass> using #{} over + also allocates less strings
<Ox0dea> Fewer.
piotrj has quit [Remote host closed the connection]
<Ox0dea> > I can generally sight-read [nested conditionals] to 3 levels' depth or so.
deg_ has quit [Ping timeout: 264 seconds]
<Ox0dea> > But this string interpolation business is just too much.
giuseppesolinas has joined #ruby
ByronJohnson has quit [Ping timeout: 272 seconds]
giuseppesolinas_ has joined #ruby
<ruby-lang744> yep. Such as x.LT.7.OR.(x.GE.91.AND.(x.LT.100.OR.x.EQ.100))) etc
teslax has joined #ruby
<ruby-lang744> I can see immediately what values for x are accepted there
<Ox0dea> Go.
<shevy> D.
riotjones has joined #ruby
evanjs has joined #ruby
jpfuentes2 has joined #ruby
<Ox0dea> I don't know Fortran, but I don't think D is an acceptable value for x there.
pwnd_nsfw has joined #ruby
<ruby-lang744> no, it wouldn't be
<Ox0dea> How come?
thebastl has quit [Remote host closed the connection]
<ruby-lang744> since you define variables at the beginning of the program
segfalt has quit [Ping timeout: 240 seconds]
<ruby-lang744> it would not accept D into a real or integer
<ruby-lang744> in this comparison above, x is required to be an integer, it wouldn't work with reals either
bruno- has joined #ruby
RobertBirnie has joined #ruby
zlogan has quit [Ping timeout: 272 seconds]
last_staff has joined #ruby
petricore has joined #ruby
<Ox0dea> > [Fortran 2015] is intended to be a minor revision and is planned for release in mid-2018.
teslax has left #ruby [#ruby]
<adaedra> > 2015
trautwein has joined #ruby
<adaedra> > 2018
<adaedra> ok
<Ox0dea> And here I thought numerics were the language's strong suit.
<ruby-lang744> numerics are
<Ox0dea> >> 2015 == 2018
<ruboto> Ox0dea # => false (https://eval.in/443105)
iamdevnul is now known as grammarnazidevnu
grammarnazidevnu is now known as grammarnazidev
grammarnazidev is now known as iamdevnul
<ruby-lang744> but internet access isn't
<Ox0dea> It's not like you *can't* hit the network from Fortran.
<ruby-lang744> perhaps... let's see, can you pass parameters to a ruby in command line?
<ruby-lang744> to a ruby program*
<Ox0dea> I have no idea.
<jhass> this sounds like they plan to reimplement curl in Ruby
baroquebobcat has quit [Quit: baroquebobcat]
<ruby-lang744> well, if I had any single way to fetch an arbitrary HTTPS page, and get the response back without any further frills, I could of course program the rest in Fortran
evanjs has quit [Remote host closed the connection]
pawnbox has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
<ruby-lang744> but I still don't know about the overhead that it'd mean for the reason that you need to start up the external program likely hundreds of thousands of times
<ruby-lang744> which is why I went for a language that can fetch HTTPS on its own, and at the same time (supposedly) quick to learn
zomgbie has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
<Ox0dea> #! is the only unary operator that can be invoked like a regular method; why is that?
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-lang744> maybe because people didn't think it safe to include anything more complicated
<adaedra> You mean like the - in `-n`?
lubarch has quit [Ping timeout: 246 seconds]
<adaedra> >> 3.-@()
<ruboto> adaedra # => -3 (https://eval.in/443106)
<Ox0dea> Oh, right.
<ruby-lang744> SIN() is a unary operator. I don't know what a method means, though.
<Ox0dea> It's just a syntactic constraint, then.
<ruby-lang744> well, what is a method, anyhow?
<shevy> :)
<adaedra> that's basics
<ruby-lang744> you mean it's a subroutine?
<workmad3> Ox0dea: is it possible that ! is the only unary operator where the method isn't suffixed with @ ?
<Ox0dea> ruby-lang744: Methods are "subroutines" applied to specific objects, more or less.
<Ox0dea> workmad3: ~ isn't either.
lubarch has joined #ruby
<Ox0dea> But it can't be invoked without parentheses like #! can.
thebastl has joined #ruby
renderful has quit []
<adaedra> workmad3: well, the only one where there's no ambiguity with the binary operator
eminencehc has quit [Remote host closed the connection]
<adaedra> maybe
<Ox0dea> Yeah, that seems right.
eminencehc has joined #ruby
<workmad3> it'll be something like that
patchedmonkey has quit [Ping timeout: 246 seconds]
<ruby-lang744> well, in fortran it's called with CALL SUBROUTINE(A,B,C....). And the subroutine has its own variable declarations, so you can call the incoming values C, B and A if you wish, it doesn't quite matter for the caller program
pandaant has quit [Remote host closed the connection]
<Ox0dea> adaedra: Wait, what's binary ~?
<workmad3> I think ! was quite a recent addition to the available operator overrides too... so it could be that the parsing around it is cleaner and more 'correct'
wldcordeiro has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
zotherstupidguy has quit [Ping timeout: 246 seconds]
<adaedra> wow that's weird
<adaedra> ah no ok
<adaedra> well, seems it doesn't work with ~
verdoc has quit [K-Lined]
<adaedra> the exception to confirm the rule?
<ruby-lang744> and Ox0dea, what is an object? I mean, I can apply a subroutine to variables and/or constants. Is an object meaning "variable or constant"?
Xeago has quit [Remote host closed the connection]
<Ox0dea> >> def self.~ x; 42; end; [~(10), self.~(10)] # adaedra
<ruboto> Ox0dea # => [-11, 42] (https://eval.in/443109)
<adaedra> yeah, I saw that
kidoz has joined #ruby
TomyLobo has joined #ruby
bronson has joined #ruby
psy_ has joined #ruby
<adaedra> Now is time to `train << self`
<Ox0dea> There's the really weird one.
<Ox0dea> #! is like some kind of "unibinary" operator.
Xeago has joined #ruby
krisquigley has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
krisquigley has joined #ruby
evanjs has joined #ruby
<ruby-lang744> oh well... maybe later. Thank you for the source, I'll look into it and see if I can understand it.
ruby-lang744 has left #ruby [#ruby]
<Ox0dea> Where do you even add the argument for the second case?
tkuchiki has joined #ruby
firstdayonthejob has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
jeff_laplante has joined #ruby
Xeago has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
cih_ has joined #ruby
robh71 has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
mxrguspxrt has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 246 seconds]
thebastl has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 246 seconds]
VeryBewitching has joined #ruby
cih has quit [Ping timeout: 246 seconds]
cih_ has quit [Remote host closed the connection]
ruurd_ has quit [Quit: ZZZzzz…]
mxrguspxrt has joined #ruby
joufflu has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
wallerdev has joined #ruby
Eiam_ has joined #ruby
simplyianm has quit [Remote host closed the connection]
FrankD has joined #ruby
wallerdev has quit [Client Quit]
simplyianm has joined #ruby
lotherk has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
zeroDivisible has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
lotherk has joined #ruby
allomov has quit [Remote host closed the connection]
drptbl has joined #ruby
lubarch has quit [Quit: leaving]
SylarRuby has joined #ruby
thebastl has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
behrz has quit [Quit: Leaving]
bffff_ has joined #ruby
hanmac has joined #ruby
symbol_ has joined #ruby
KinderSpiel has joined #ruby
wallerdev has joined #ruby
weaksauce has joined #ruby
<rubybeginner> Hey guys
<rubybeginner> what is aptana studio for?
<rubybeginner> is it like sublime text or smthn?
<dfockler> rubybeginner: it's an IDE like Eclipse but for web stuff
bronson has joined #ruby
robh71 has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
<JDiPierro> WebStorm's better
c0m0 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
<workmad3> dfockler: heh :) 'like eclipse'... aptana *is* eclipse, but with some custom plugins aimed @ rails web dev
<JDiPierro> s/WebStorm/RubyMine/
The_Phoenix has quit [Read error: Connection reset by peer]
<dfockler> workmad3: oh haha, the last time I used Aptana it was an eclipse plugin :P, but their website seemed to state otherwise
lubarch has joined #ruby
<workmad3> and yes, I'd recommend JetBrain's IDEA based IDEs over eclipse from past history... but I stopped using either quite a while ago :)
<KinderSpiel> can some mod see what’s wrong with my account?
pwnd_nsfw has quit [Ping timeout: 246 seconds]
<KinderSpiel> I can’t write on #RubyOnRails
lubarch has quit [Client Quit]
Flyy7 has joined #ruby
yfeldblum has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
bb010g has joined #ruby
<mwlang> I don’t know about y’all but my TextMate 2.x toggle_ruby_hash_syntax to convert 1.8 to 2.x doesn’t work. I hacked it just now with this: https://gist.github.com/mwlang/50ef29f004a25c6d18eb
mghaig has joined #ruby
casadei has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
moeabdol has quit [Quit: WeeChat 1.3]
tubuliferous_ has joined #ruby
Flying_Squirrel has joined #ruby
nettoweb has joined #ruby
<Ox0dea> mwlang: You should be able to ignore the value?
casadei has quit [Ping timeout: 255 seconds]
eminencehc has quit [Remote host closed the connection]
<mwlang> Ox0dea: what do you mean by ignore it? If the string doesn’t match, it’s simply returned.
p0wn3d has quit [Ping timeout: 240 seconds]
<Ox0dea> mwlang: Sure, but why not just gsub(/:(\w+)=>/, '\1:') or some such?
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
mghaig has quit [Remote host closed the connection]
loc22 has joined #ruby
mghaig has joined #ruby
<mwlang> Ox0dea: Oh, that’s not a bad idea at all. Just didn’t think to gsub it.
mondayrain has joined #ruby
<mwlang> that would bring benefit of replacing all matches in a line if there happens to be more than one.
<Ox0dea> That the `=>` token only ever occurs in Hashes makes the conversion much easier than it might otherwise have been.
<Ox0dea> mwlang: The much greater benefit is that you get to completely ignore values, which can be arbitrarily complex.
<mwlang> Ox0dea: I like it…making the change now.
<Ox0dea> Huzzah!
pwnd_nsfw has joined #ruby
Rohanezio has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
cirenyc has quit [Quit: Leaving...]
Prominent has joined #ruby
<KinderSpiel> can anyone see whats wrong with my account, I can’t send messages to #RubyOnRails
baroquebobcat has joined #ruby
<apeiros> KinderSpiel: you're probably not registered or not identified
dionysus69 has quit [Remote host closed the connection]
havenwood has joined #ruby
karapetyan has quit [Remote host closed the connection]
moeabdol has joined #ruby
thebastl has quit [Quit: Leaving...]
nanoz has joined #ruby
Xeago has joined #ruby
casadei has joined #ruby
bronson has quit [Remote host closed the connection]
jxv has left #ruby ["Leaving"]
kirun has joined #ruby
moeabdol has quit [Client Quit]
<KinderSpiel> apeiros ‘/msg NickServ IDENTIFY help’ returns “You are already logged in as KinderSpiel.”
eminencehc has joined #ruby
Xeago_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
Meow-J has quit [Quit: Connection closed for inactivity]
DLSteve has joined #ruby
ValicekB has joined #ruby
<Ox0dea> mwlang: \S == [^\s]
<mwlang> learn something new every day...
_djbkd has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
centrx has quit [Remote host closed the connection]
mghaig has joined #ruby
centrx has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<Ox0dea> The second capture is superfluous, but everything else looks about right.
<Ox0dea> thatwaseasy.bmp
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<Ox0dea> >> :'but what about these?' # mwlang
Rohanezio has quit [Ping timeout: 255 seconds]
<ruboto> Ox0dea # => :"but what about these?" (https://eval.in/443140)
<mwlang> yeah, right you are…might as well take it all the way!
<Ox0dea> mwlang: Parsing Ruby strings requires a Ruby parser. :P
ndrei has joined #ruby
KinderSpiel has quit [Quit: Audi. 5000.]
<mwlang> Ox0dea: that example worked just fine for me.
shadoi has joined #ruby
<Ox0dea> Aye, it'll do for simple Hashes, which are the only kind that ought to exist.
_djbkd has quit [Ping timeout: 264 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
<mwlang> I’m not really interested in parsing Ruby…just highlight a block of code that has my 1.8 styled hashes and hit ^=
<Ox0dea> Don't wanna `sed -i *.rb`, you say?
eminencehc has quit [Remote host closed the connection]
<mwlang> yeah, I’m generally not going to be mucking with complex ones, or if I do, it’s simple enough highlighting simple portions at a time.
ruby-lang352 has joined #ruby
<mwlang> Ox0dea: :-S That way lies insanity
<Ox0dea> `-i` takes a backup extension, for what that's worth.
skade has joined #ruby
p0wn3d has joined #ruby
blackmesa has joined #ruby
_djbkd has joined #ruby
banjara has joined #ruby
Alina-malina has joined #ruby
cjbottaro has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
rindolf has joined #ruby
<rindolf> Hi all.
iateadonut has quit [Quit: Leaving.]
blackmesa has quit [Client Quit]
<Coraline> Hi rindolf
<rindolf> Coraline: how are you?
kobain has quit [Ping timeout: 240 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Coraline> Hanging in there.
ta has joined #ruby
Stalkr_ has joined #ruby
<mwlang> Ox0dea: hmmm..yeah, I just don’t like to change tons of files trivially, esp. those that have no test coverage.
wallerdev has quit [Quit: wallerdev]
moeabdol has joined #ruby
<Ox0dea> mwlang: Makes perfect sense.
ghr has quit [Read error: No route to host]
<mwlang> I write the tests, pass ‘em, then refactor and get back to green.
ghr has joined #ruby
ruurd has joined #ruby
Flying_Squirrel has quit [Ping timeout: 268 seconds]
banjara has quit [Quit: Leaving.]
v4n has joined #ruby
pwnd_nsfw has joined #ruby
Marsupermammal has quit [Ping timeout: 255 seconds]
<mwlang> Had to add one more piece to that regexp..sometimes the => is jammed against the identifier…only other scenario is “one” => and ‘two’ => but I don’t generally symbolize and switch these to 1.9 syntax, so YAGNI scenario there.
Flyy7 has quit [Ping timeout: 264 seconds]
Jameser` has joined #ruby
colorisco has quit [Quit: colorisco]
evanjs has quit [Remote host closed the connection]
<mwlang> so this is the final regexp: str.gsub /\:(\S|[^\=]+)d(\s*?\=\>\s?)/, '\1: '
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
podman has quit [Quit: Connection closed for inactivity]
prestorium_ has joined #ruby
<rindolf> mwlang: why do you use \= instead of =?
mjago has quit [Ping timeout: 250 seconds]
<mwlang> just didn’t look it up to see if = has meaning in regexps…if I’m ever not sure I prefix with \ and then later, remove the \ once I have a regexp working…forgot to in this case.
wallerdev has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
mghaig has quit [Remote host closed the connection]
Jameser` has quit [Ping timeout: 272 seconds]
<Ox0dea> mwlang: \w > \S|[^\=]
<Ox0dea> For this particular purpose.
krisquigley has joined #ruby
prestorium has quit [Ping timeout: 246 seconds]
<mwlang> Ox0dea: does \w include digits dashes, underscores, periods?
autojack has joined #ruby
peterhu has joined #ruby
tw1sted has quit [Changing host]
tw1sted has joined #ruby
baweaver has joined #ruby
<Ox0dea> >> 128.times.map(&:chr).grep(/\w/).join # mwlang
<ruboto> Ox0dea # => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz" (https://eval.in/443148)
<autojack> I've used rbenv for years, but on one of my systems it seems to be in a broken state, but I can't figure out why or how to fix it. my path is correct, I'm definitely hitting the rbenv shims, but when I try to 'gem install' something I get 'You don't have write permissions into the /usr/local directory.'
<Ox0dea> And hey, those are almost all of the valid identifier characters.
rgb-one has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
<autojack> it should be installing the gems under the .rbenv directory though.
<rgb-one> Hey
teslax has joined #ruby
<Ox0dea> autojack: Might be El Capitan?
<autojack> Ox0dea: no, this is Ubuntu.
<teslax> What's the benefit of using rspec over just say, Test::Unit ?
<Ox0dea> teslax: It's largely a personal thing.
moos3 has quit [Read error: Connection reset by peer]
<Antiarc> I like the syntax better, personally
<autojack> *oh* I might know what's up.
pwnd_nsfw has quit [Ping timeout: 246 seconds]
<autojack> yep. this system has a .gemrc.
<autojack> which is overriding gem_home.
krisquigley has quit [Ping timeout: 264 seconds]
<teslax> I don't know rspec. Should I learn it or can I just go by with using Test::Unit?
<autojack> that was it. damn.
<mwlang> teslax: rspec uses BDD’s vocabulary whereas Test::Unit uses TDD’s vocabulary and I do like rspec’s matchers a lot more, esp. when used with rspec-its. I also like the let and subject constructs rspec offers.
autojack has left #ruby [#ruby]
bronson has joined #ruby
<teslax> mwlang: What's used with Rails?
baweaver has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
Rohanezio has joined #ruby
cantaberry has joined #ruby
<mwlang> teslax: I actually don’t know any more. First thing I always do is set up rspec-rails on the project and delete the test folder. Somebody else here knows definitively.
kobain has joined #ruby
ElSif has quit [Read error: Connection reset by peer]
_aeris_ has quit [Remote host closed the connection]
yqt has joined #ruby
_aeris_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
dseitz has left #ruby ["Textual IRC Client: www.textualapp.com"]
<rgb-one> Ox0dea: Hey, I managed to construct a program from the all I learned from you sensei
teslax has left #ruby [#ruby]
Xiti has quit [Quit: Xiti]
tsujp has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
loc22 has quit [Quit: Be back later ...]
gusTester1 has quit [Quit: Leaving.]
glider has joined #ruby
cjbottaro has joined #ruby
loc22 has joined #ruby
evanjs has joined #ruby
<glider> What testing framework is used with Rails
baweaver has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
<havenwood> glider: Minitest ships with Ruby and is the Rails default.
<glider> havenwood: Alright.
pwnd_nsfw has joined #ruby
krz has joined #ruby
<havenwood> glider: The Rails channel is #RubyOnRails, you just have to register to talk.
skade has quit [Ping timeout: 268 seconds]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
Xiti has joined #ruby
firstdayonthejob has joined #ruby
shadeslayer has quit [Ping timeout: 240 seconds]
glider has left #ruby [#ruby]
shadeslayer has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
dfockler has joined #ruby
symm- has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
gusTester has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
kidoz has quit [Quit: Ухожу я от вас]
Macaveli has joined #ruby
skade has joined #ruby
dikaio has joined #ruby
Anti-Pizza has quit [Quit: Quit]
shinnya has quit [Ping timeout: 246 seconds]
Macaveli has quit [Client Quit]
DexterLB has quit [Read error: Connection reset by peer]
spotted has quit [Ping timeout: 246 seconds]
spotted1 has quit [Ping timeout: 255 seconds]
BrazenBraden has quit [Quit: Leaving]
verdoc has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
eminencehc has joined #ruby
richburroughs has joined #ruby
DexterLB has joined #ruby
yfeldblum has joined #ruby
podman has joined #ruby
qba73 has joined #ruby
ta has joined #ruby
jenrzzz has joined #ruby
pwnd_nsfw has joined #ruby
kadoppe has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kadoppe has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
BrazenBraden has joined #ruby
devoldmx has joined #ruby
freerobby has joined #ruby
blaxter has quit [Quit: foo]
<BrazenBraden> i am having major difficulties trying to bundle install. Getting errors "Gem::Ext::BuildError: ERROR: Failed to build gem native extension." | https://gist.github.com/brazenbraden/31371b65d535b546e023 . what am I missing?
<Ox0dea> rgb-one: Hey! I'm glad to see the program came to fruition.
<Ox0dea> rgb-one: Some of this code is very sexy. :P
jwaldrip has joined #ruby
v4n has quit []
freerobby has quit [Client Quit]
<Ox0dea> BrazenBraden: You're missing GMP, the multiple precision library Ruby uses for Bignum support and whatnot.
freerobby has joined #ruby
<havenwood> BrazenBraden: /usr/bin/ld: cannot find -lgmp
<BrazenBraden> im on Ubuntu 14.04 and have all the libraries I can think of
jenrzzz has quit [Ping timeout: 265 seconds]
<havenwood> BrazenBraden: The TravisCI folk messed up the precompiled build of Ruby 2.2.3 on Ubuntu.
<BrazenBraden> what should i try apt install?
<BrazenBraden> ahh fak really?
<Ox0dea> BrazenBraden: libgmp-dev.
jenrzzz has joined #ruby
<BrazenBraden> havenwood, so scrap it and back to 2.2.2 then?
TheNet has joined #ruby
prestorium_ is now known as prestorium
<havenwood> BrazenBraden: ^ just install the dep or install with: --disable-binary
<havenwood> BrazenBraden: sudo apt-get install libgmp-dev
<TheNet> Is there anything wrong with assigning a logger to a global variable?
<BrazenBraden> havenwood, --disable-binary via rvm?
Macaveli has joined #ruby
<havenwood> BrazenBraden: Yeah, that'd bypass the TravisCI binary and hence the errant link. They just build 2.2.3 dynamically linked to libgmp.
adadada has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ta has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> I've mentioned in the Travis channel but they're not very present on IRC.
codecop has joined #ruby
<BrazenBraden> havenwood, will give that a go. will let you know. thanks
<havenwood> BrazenBraden: Related: https://github.com/rvm/rvm/issues/3509
skade has quit [Quit: Computer has gone to sleep.]
v4n has joined #ruby
robh71 has joined #ruby
<BrazenBraden> havenwood, i have been googling for hours and never came across this github issue. installing without binaries now
davedev24 has quit [Ping timeout: 246 seconds]
Psi-Jack has left #ruby ["Konversation terminated!"]
<Rohanezio> hey, https://gist.github.com/rohanezio/166b69976dfcc0cc4d95 this gist is my code, but it's giving me a 1 for 0 error
doddok has joined #ruby
<havenwood> BrazenBraden: That should do the trick. If you've got the time you might consider reporting to Travis's githubs if it is't already. I've been meaning to but haven't had a chance (waaaay to much to do, gah!).
davedev24 has joined #ruby
ta has joined #ruby
<BrazenBraden> havenwood, havent done such things before lol
UnknownSoldier has joined #ruby
<BrazenBraden> havenwood, you are my hero
rubybeginner has quit [Ping timeout: 250 seconds]
<havenwood> BrazenBraden: It'd just be searching through issues here and starting a new one if one doesn't exist: https://github.com/travis-ci/travis-ci/issues
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby-lang352 has quit [Quit: Page closed]
rubybeginner has joined #ruby
mondayrain has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
<BrazenBraden> havenwood, right
Jardayn has quit [Ping timeout: 256 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenpoint has quit []
vdamewood has joined #ruby
luksaur has quit [Quit: gone]
pawnbox has quit [Remote host closed the connection]
FrankD has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
wallerdev has quit [Ping timeout: 268 seconds]
<shevy> what does this mean? "proc.c (proc_mark): block.ep of Proc from Symbol is now NULL."
RegulationD has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
xxneolithicxx has quit [Ping timeout: 255 seconds]
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
<rgb-one> Ox0dea: :)
<Ox0dea> shevy: `ep` is "environment pointer" there, for starters.
dikaio has quit [Quit: ........]
sargas has joined #ruby
<Ox0dea> The Patch Monster has been optimizing Symbol#to_proc as of late.
RegulationD has quit [Ping timeout: 268 seconds]
<Ox0dea> rgb-one: I have a few minor nitpicks if you'd like them.
dikaio has joined #ruby
man_on_couch has joined #ruby
SylarRuby has quit [Remote host closed the connection]
<rgb-one> Ox0dea: I would
<drbrain> I imagine the "environment pointer" ordinarily points to the closure if you created a do/end block
<Ox0dea> That sounds right.
<shevy> hmm
<drbrain> a proc created from a symbol doesn't need an environment pointer, though
<man_on_couch> is there documentation for the Object class' private methods? I can't find any on Omniref or RubyDoc, but I'm trying to learn about the methods in Object.new.private_methods
<shevy> Ox0dea lol at "Patch Monster"
v4n has quit []
<drbrain> since it can't pull any information from the closure
<drbrain> man_on_couch: most of them come from Kernel
arooni has joined #ruby
<Ox0dea> shevy: I believe that's Nakada-san's official title.
<drbrain> it is
mary5030 has quit [Remote host closed the connection]
<havenwood> >> Object.new.private_methods.map { |meth| method(meth).owner }.group_by(&:itself).map { |obj, a| [obj, a.size] }.to_h
<ruboto> havenwood # => {Kernel=>67, BasicObject=>5} (https://eval.in/443175)
<man_on_couch> !
<man_on_couch> thats cool
RegulationD has joined #ruby
blackmesa has joined #ruby
<drbrain> thanks havenwood
Prominent has quit [Ping timeout: 240 seconds]
lokulin has joined #ruby
mjuszczak has quit []
banister has joined #ruby
nettoweb has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
zeroDivisible has joined #ruby
krz has quit [Quit: WeeChat 1.2]
DLSteve has quit [Ping timeout: 244 seconds]
<BrazenBraden> havenwood, if you feel like debunking one more mystery, perhaps you could help me figure out why I get the error "libruby.so.2.2: cannot open shared object file: No such file or directory" | https://gist.github.com/brazenbraden/b4ef6839ac81fdd42a4a
banister has quit [Read error: Connection reset by peer]
<havenwood> drbrain: :D
oniMaker has left #ruby [#ruby]
<havenwood> BrazenBraden: Is MySQL installed?
qba73 has quit []
ta has quit [Remote host closed the connection]
Ademan has quit [Quit: leaving]
<Ox0dea> rgb-one: https://git.io/vcEhI
<BrazenBraden> havenwood, yes (well, i should update that gist.. i switched to postgres and do have libpq-dev added in the dockerfile).. if i remove pg / mysql, it fails with the same error on another gem (saw redcarpet fail too)
nordskald has joined #ruby
<Ox0dea> rgb-one: My quibbles were mostly stylistic, but #to_acronym was made much cleaner, and your exit codes were the wrong way round.
baweaver has joined #ruby
<shevy> you and your nibbles
banister has joined #ruby
zomgbie has joined #ruby
<Ox0dea> Printing usage and version strings aren't abnormal exit conditions.
toretore has joined #ruby
<Ox0dea> rgb-one: I'm curious how you intended to work MD5 into this.
<BrazenBraden> havenwood, always libruby.so
vdamewood is now known as vinleod
Uranio-235 has joined #ruby
<banister> wassup peeps
<havenwood> banister: hallooo
<Ox0dea> rgb-one: Uh-oh! It's just dawned on me: this is for generating "secure" passwords, isn't it?
<banister> wasaa
richburroughs has left #ruby ["Textual IRC Client: www.textualapp.com"]
xxneolithicxx has joined #ruby
prestorium has quit [Quit: Leaving]
xxneolithicxx has quit [Max SendQ exceeded]
jwaldrip has quit [Quit: Be back later ...]
<Ox0dea> havenwood: There's a vaguely unpleasant aroma coming from `map + group_by(&:itself)`.
TheNet has quit [Remote host closed the connection]
<shevy> you can smell code?!?!
<Ox0dea> Can't everybody?
<rgb-one> Ox0dea: To provide a MD5 checksum of each of the passwords generated.
<havenwood> Ox0dea: Coding while juggling makes me sweaty, which probably increases smell.
eminencehc has quit [Remote host closed the connection]
<Ox0dea> rgb-one: Fair enough, but do heed xkcd #936: https://xkcd.com/936/
Jardayn has joined #ruby
zomgbie_ has joined #ruby
stamina has quit [Ping timeout: 260 seconds]
jwaldrip has joined #ruby
cjbottaro has joined #ruby
K1MOS has joined #ruby
eminencehc has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
KinderSpiel has joined #ruby
<rgb-one> Ox0dea: Interesting
zomgbie has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
mbff has joined #ruby
evanjs_ has joined #ruby
TheNet has joined #ruby
vinleod is now known as vdamewood
baweaver has quit [Remote host closed the connection]
<mbff> Why is bundler not finding vendor/bundle ??? https://gist.github.com/marshallford/32a1745dd426d94695fb
<mbff> You can clearly see the mina command exists.
k3asd` has joined #ruby
patchedmonkey has joined #ruby
Macaveli has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
<adaedra> mbff: Are you gems installed with bundle install --path vendor/bundle?
<Ox0dea> A real-live person from Fargo?!
<mwlang> speaking of xkcd #936 — I hate websites that make me make up complicated passcodes that have to include capitalization, at least one number, at least one symbol, etc. and worse, limit the length to anything less than 10 — keeps one from using a nice long passphrase.
baweaver has joined #ruby
pocketprotector has quit [Ping timeout: 240 seconds]
TheNet has quit [Remote host closed the connection]
Coldblackice has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ponga has quit [Quit: Connection closed for inactivity]
<mbff> adaedra, no bundle --deployment ... i am using the mina bundler task if that helps
naftilos76 has joined #ruby
<havenwood> mbff: Check what if any Bundler config is set?: bundle config
TheNet has joined #ruby
<shevy> mwlang hah - I failed with the latest fedora installation because of password
<adaedra> mbff: so maybe bundler is not aware of your additional directory.
<Ox0dea> mwlang: And is indicative of a service which almost certainly stores passwords in the clear.
<mbff> does it matter where I run the bundle config from?
<mwlang> Ox0dea: well, latest one was MailChimp the other day.
<havenwood> mbff: yes
KensoDev has joined #ruby
skade has joined #ruby
<mwlang> I didn’t bother with a passphrase because it’s password requirements were so strict. So now that one’s written down somewhere because I surely cannot memorize it.
patchedmonkey has quit [Ping timeout: 240 seconds]
<shevy> hah
<shevy> the real purpose has been achieved
man_on_couch has quit [Ping timeout: 246 seconds]
ngscheur1 has quit [Quit: WeeChat 1.2]
<mbff> I updated the gist with the bundle config output https://gist.github.com/marshallford/32a1745dd426d94695fb
elperdut_ has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elperdut_ has quit [Client Quit]
KinderSpiel has quit [Quit: Audi. 5000.]
elperdut_ has joined #ruby
codecop has quit [Remote host closed the connection]
anisha has joined #ruby
TheNet has quit [Ping timeout: 260 seconds]
piotrj has joined #ruby
cjbottaro has joined #ruby
mghaig has joined #ruby
Jameser` has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
cjbottaro has quit [Client Quit]
simplyianm has quit [Remote host closed the connection]
EXID123 has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
simplyianm has joined #ruby
Zolotkey has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjbottaro has joined #ruby
Zolotkey has left #ruby ["Textual IRC Client: www.textualapp.com"]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has joined #ruby
<havenwood> mbff: Looks like the defaults I'd expect from: https://github.com/mina-deploy/mina/blob/master/lib/mina/bundler.rb#L30
<Rohanezio> would someone mind looking at this gist? the code works but it's the columns don't appear side by side
Pumukel has joined #ruby
cjbottaro has quit [Client Quit]
Jameser` has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cschneid_ has joined #ruby
Jameser` has joined #ruby
duddik has joined #ruby
pocketprotector has joined #ruby
rushed has joined #ruby
Prominent has joined #ruby
UnknownSoldier has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mbff> havenwood, so why does bundle exec mina unicorn:restart not work? Man this is frustrating
mghaig has quit [Remote host closed the connection]
CustosLimen is now known as CustosL1men
blackmesa has quit [Ping timeout: 268 seconds]
Ox0dea has quit [Ping timeout: 264 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loc22 has quit [Quit: Be back later ...]
CustosL1men is now known as CustosLimen
Soda has quit [Remote host closed the connection]
patchedmonkey has joined #ruby
iceyec has quit [Read error: No route to host]
Prominent has quit [Client Quit]
IceyEC_ has joined #ruby
Prominent has joined #ruby
mxrguspxrt has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
v4n has joined #ruby
lkba has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
Prominent has quit [Client Quit]
mjuszczak has quit [Client Quit]
<BrazenBraden> im at a loss. anyone know why Im stuck with the error "libruby.so.2.2: cannot open shared object file"? https://gist.github.com/brazenbraden/b4ef6839ac81fdd42a4a
ta has joined #ruby
cih has joined #ruby
PlasmaStar has quit [Ping timeout: 240 seconds]
<BrazenBraden> I have verified that the files which it "cannot find" do indeed exist. i know this involves a docker container but it seems to be a ruby issue...?
opensource_ninja has joined #ruby
tvw has joined #ruby
Oka has joined #ruby
karapetyan has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
Jameser` has quit [Ping timeout: 255 seconds]
Ox0dea has joined #ruby
hectortrope has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
stamina has joined #ruby
<havenwood> BrazenBraden: Try: libmysql-dev
<eam> BrazenBraden: the shared objects need to be in the path used by the linker
TheNet has joined #ruby
bl0ndie has joined #ruby
mjuszczak has joined #ruby
<BrazenBraden> havenwood, updated the gist to reflect current config. no mysql, just postgres, and I have libpq-dev included in build
JDiPierro has quit [Remote host closed the connection]
cih has quit [Ping timeout: 260 seconds]
<eam> BrazenBraden: dpkg -L libpq, where are the shared objects? Are they in /usr/lib?
<eam> the package may have put them elsewhere
sargas has joined #ruby
<havenwood> BrazenBraden: Ah, I was still looking at the old gist. I see.
<BrazenBraden> eam, i cannot check as I cannot start the container to see
karapetyan has quit [Remote host closed the connection]
hectortrope has joined #ruby
Jackneill has quit [Ping timeout: 246 seconds]
<BrazenBraden> eam, the path it specifies in the error is the correct path though
krisquigley has joined #ruby
karapetyan has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
TheNet has quit [Client Quit]
<BrazenBraden> as mentioned earlier, if i remove the pg gem, it fails with basically the same error on a different gem
<eam> it doesn't specify a path
<eam> BrazenBraden: the way the linker works is kind of like how the shell works
EXID123 has joined #ruby
Macaveli has joined #ruby
<eam> you run `foo` and it searches through every directory in $PATH until it fines "foo" in one of them, right?
jwaldrip_ has joined #ruby
<eam> same thing with ld.so - there's a search path, and it's looking for "libruby.so.2.2" and it can't find it
<BrazenBraden> eam, so what is "No such file or directory - /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg_ext.so" ?
<eam> right, that's a little confusing. "/app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg_ext.so" exists, but the shared object dependencies it has do not
snapcase has quit [Ping timeout: 246 seconds]
<eam> the error in this case is "no such file or directory" but it's not talking about that file
dikaio has quit [Ping timeout: 250 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
<eam> it's talking about the dependencies of that file, which might be anywhere in the linker paths
<BrazenBraden> hmmm ok?
<eam> blame unix for having a confusing standard error on this :)
krisquigley has quit [Ping timeout: 240 seconds]
SebastianThorn has quit [Ping timeout: 268 seconds]
duddik has quit [Remote host closed the connection]
<BrazenBraden> oh i have been cursing unix for 2 days now :P
RobertBirnie has joined #ruby
<eam> BrazenBraden: so, double check your stuff to make sure it's putting "libruby.so.2.2" into, say, /usr/lib or similar
jwaldrip has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
<BrazenBraden> i'll see if i can get that info out of the container by jimmying it. one sec
<eam> grab an ubuntu system that works and find it, and find out the package that owns it
Cyther has joined #ruby
blackmesa has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
<BrazenBraden> well, im on ubuntu so that shouldnt be too much of a problem
shinnya has joined #ruby
mghaig has joined #ruby
<eam> I have seen people go crazy over this error before, because it also happens for executables
<eam> so you can ls -l /bin/foo and it's there, and it's +x, but you run it and "no such file or directory"
<eam> hilarious ;)
Rohanezio has quit [Ping timeout: 250 seconds]
<eam> tends to mostly happen when building chroots and the like
futilegames has joined #ruby
blackjid has quit [Max SendQ exceeded]
mary5030 has joined #ruby
blackjid has joined #ruby
<BrazenBraden> eam, i thought the whole point of having these containers was to not have all these issues lol. i wonder if it has something to do with doing a bundle install --path
mghaig has quit [Read error: Connection reset by peer]
<eam> nah, the point is to isolate all this crap you're doing so you can easily repeat it while debugging :)
mghaig has joined #ruby
<eam> and not dedicate some horrible machine to run builds which you set up once over a period of time and now can no longer recreate
<BrazenBraden> that for sure
tangentstorm has quit [Ping timeout: 250 seconds]
<BrazenBraden> weird thing is that i have a container environment set up for another project and dont have any problems -.-
_djbkd has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 250 seconds]
uri_ has joined #ruby
BaNzounet has joined #ruby
moeabdol1 has joined #ruby
unshadow_ has joined #ruby
<BrazenBraden> eam, so, my libruby.so on my host machine is in my user folder .rvm as I use rvm to manage my rubies.. but the docker image my dockerfile is pulling builds it
poguez_ has quit [Quit: Connection closed for inactivity]
mbff has quit [Quit: Leaving]
Xeago has joined #ruby
jamesaxl has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
dfockler has quit [Remote host closed the connection]
unshadow has quit [Ping timeout: 250 seconds]
`tim` has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
dikaio has joined #ruby
Uranio-235 has quit [Quit: Page closed]
mbff has joined #ruby
Xeago has quit [Remote host closed the connection]
<mbff> havenwood, I am not a smart man. I solved my problem
<mbff> I run a script that makes all files 0644 and folders 0755.
syath has quit [Quit: WeeChat 1.2]
<mbff> It must have been setting the bins as non executables.
Musashi007 has joined #ruby
<havenwood> mbff: Oops, glad you solved that mystery!
_djbkd has joined #ruby
<BrazenBraden> eam, i am able to ls the files in the container but no clue where libruby.so is stored
<eam> you've gotta find that file
baweaver has joined #ruby
tier has joined #ruby
sdwrage has joined #ruby
<eam> BrazenBraden: you said you have an ubuntu system? Run `ldd $(which ruby)` and it will show you the libruby it uses
<eam> BrazenBraden: then I believe it's dpkg --search /path/to/libruby.whatever.so.2.2.0
bashrw has joined #ruby
<eam> to find the package that owns it
<eam> I'm not super great with debian
bl0ndie has quit [Ping timeout: 264 seconds]
<BrazenBraden> eam, umm.. when i run that in my container, I get "No such file or directory" O.o
claw has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
<eam> which?
mghaig has quit [Read error: Connection reset by peer]
<eam> the ldd?
drptbl has joined #ruby
<BrazenBraden> eam, yea the ldd
<eam> so then, do you even have ruby installed in there?
<BrazenBraden> yea, its a docker ruby image
<eam> libruby isn't found in the linker path, and ruby itself isn't found in $PATH
<BrazenBraden> FROM ruby:2.2.3
Trynemjoel has quit [Ping timeout: 264 seconds]
<eam> well, it seems it isn't installed
karapetyan has quit [Remote host closed the connection]
<eam> from here it looks like docker debugging
<BrazenBraden> that would be awfully strange for a ruby image lol
futilegames has quit [Quit: futilegames]
<eam> I agree, but I've seen stranger
mjuszczak has quit []
tangentstorm has joined #ruby
<eam> you can't run "ruby" at all in there right?
rushed has quit [Quit: rushed]
Trynemjoel has joined #ruby
superrorc has quit [Ping timeout: 240 seconds]
<BrazenBraden> eam, i can run ruby -v and I get ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> well then, where is that ruby file you ran? run ldd on it
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<eam> very odd that "which ruby" isn't working
dfockler has joined #ruby
<BrazenBraden> eam, the ldd didnt work.. but "which ruby" shows me /usr/local/bin/ruby
karapetyan has joined #ruby
<eam> oh, you don't have "ldd"?
<BrazenBraden> might be the case. these images supposed to be light weight
<eam> man, this image is missing some basic stuff, that ships with glibc
davedev24 has quit []
superrorc has joined #ruby
mbff has quit [Quit: Leaving]
zlogan has joined #ruby
mjago has joined #ruby
<BrazenBraden> and its not even the slim version lol
PlasmaStar has joined #ruby
<eam> BrazenBraden: install binutils (or whatever ubuntu calls it) and run readelf -d
<eam> on ruby
<eam> actually that won't do it
<BrazenBraden> will try.. dont know if the container will stay alive long enough
<eam> BrazenBraden: ldd is a shell script, try copying it over
<eam> I believe the actual executable it uses is the dynamic linker itself
unshadow_ has quit [Ping timeout: 240 seconds]
webopsx has joined #ruby
<BrazenBraden> eam, easier than that, will just re-provision the containers including binutils in the build. anything else i should include while im at it?
fullofcaffeine has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
jeffreylevesque has quit [Ping timeout: 268 seconds]
unshadow has joined #ruby
zlogan has quit [Ping timeout: 268 seconds]
webopsx has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
Macaveli has joined #ruby
c1v0 has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
p0wn3d has quit [Ping timeout: 255 seconds]
apt-get has quit [Remote host closed the connection]
Macaveli has quit [Client Quit]
snapcase has joined #ruby
ndrei has joined #ruby
SebastianThorn has joined #ruby
lokulin has quit [Ping timeout: 246 seconds]
ekinmur_ has joined #ruby
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
devoldmx has joined #ruby
baroquebobcat has joined #ruby
p0wn3d has joined #ruby
sepp2k has joined #ruby
ngscheurich has joined #ruby
davedev24 has joined #ruby
Xiti has quit [Quit: Xiti]
bmurt has quit []
Xiti has joined #ruby
davedev24 has quit [Client Quit]
ndrei has quit [Ping timeout: 264 seconds]
IceDragon has joined #ruby
adadada has quit [Ping timeout: 255 seconds]
IceDragon is now known as Guest55921
devoldmx has quit [Ping timeout: 246 seconds]
JDiPierro has joined #ruby
prestorium has joined #ruby
sargas has quit [Quit: Leaving]
<BrazenBraden> eam, i got the container up and running.. looks like doing bundle install --path my/path was the problem :S
bmurt has joined #ruby
eminencehc has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
p0wn3d__ has joined #ruby
krisquigley has joined #ruby
KensoDev has quit [Remote host closed the connection]
p0wn3d has quit [Ping timeout: 240 seconds]
tier has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
lokulin has joined #ruby
karapetyan has joined #ruby
KensoDev has joined #ruby
Guest55921 is now known as IceDragon
David27 has joined #ruby
eminencehc has joined #ruby
<shevy> ruby is sexy
krisquigley has quit [Ping timeout: 268 seconds]
last_staff has quit [Quit: last_staff]
simplyianm has quit [Remote host closed the connection]
evanjs_ has quit [Remote host closed the connection]
ruby-lang195 has joined #ruby
__main__ has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
Xeago has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> "Your language doesn't have to stay cool, but it does have to stay relevant in the minds of potential users."
baroquebobcat has joined #ruby
<dfockler> which ruby does
gusTester has left #ruby [#ruby]
<shevy> if they manage to transition along with version changes. I am curious for ruby 3.0
loechel has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
FrankD has joined #ruby
<dfockler> so am I, immutable strings will be an interesting shift
EllisTAA has quit [Quit: EllisTAA]
piotrj has quit []
yfeldblum has joined #ruby
TomyLobo has quit [Ping timeout: 272 seconds]
nanoz has quit [Read error: Connection reset by peer]
nfk has joined #ruby
<Ox0dea> > a.unfreeze # this is currently not possible
<Ox0dea> I thought that was cute.
m8 has quit [Quit: Sto andando via]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit []
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
p0wn3d__ has quit [Ping timeout: 264 seconds]
elperdut has joined #ruby
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elperdut has quit [Max SendQ exceeded]
elperdut has joined #ruby
barhum2013 has joined #ruby
spcmastertim has quit [Quit: Leaving]
elperdut has quit [Max SendQ exceeded]
KensoDev has quit [Remote host closed the connection]
elperdut has joined #ruby
KensoDev has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby-lang195 has quit [Ping timeout: 246 seconds]
sankaber has joined #ruby
robh71 has joined #ruby
jgt has joined #ruby
__main__ has joined #ruby
karapetyan has quit [Remote host closed the connection]
EllisTAA has joined #ruby
ngscheurich has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
naftilos76 has quit [Quit: Αποχώρησε]
__main__ has quit [Ping timeout: 256 seconds]
sepp2k1 has joined #ruby
opensource_ninja has quit [Ping timeout: 264 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
Ilyes512 has joined #ruby
spotted has joined #ruby
umgrosscol has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 272 seconds]
<shevy> Ox0dea have you finally welcomed immutable strings in your heart?
uri_ has quit [Ping timeout: 252 seconds]
yardenbar has joined #ruby
<Ox0dea> No, of course not.
prestorium has quit [Quit: Leaving]
spotted1 has joined #ruby
iamninja has quit [Quit: WeeChat 1.3]
<shevy> you grumpy old man!
<shevy> you'll never wear a santa claus costume
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
<Ox0dea> shevy: You remembered I'm old! <3
cih has joined #ruby
reprazent has quit [Ping timeout: 252 seconds]
mghaig has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reprazent has joined #ruby
moredhel has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
mghaig has quit [Client Quit]
<Ox0dea> DATA is an elegant way to get hold of the current file as a File, but it only exists if there's an __END__; is there some way to overcome that limitation?
Rohanezio has joined #ruby
jwaldrip_ has quit [Quit: Be back later ...]
baweaver has quit [Remote host closed the connection]
moredhel has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 268 seconds]
eminencehc has quit [Remote host closed the connection]
<shevy> that bugs me as well
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Read error: Connection reset by peer]
opensource_ninja has joined #ruby
mjago has quit [Read error: Connection reset by peer]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjago has joined #ruby
<dfockler> No, otherwise there would be an infinite loop!
<dfockler> It would keep grabbing the file until the end of time....
<Ox0dea> Wat.
<dfockler> I don't know what I'm talking about
ldnunes has quit [Quit: Leaving]
jwaldrip_ has joined #ruby
<dfockler> But I just learned about DATA and __END__, thanks ;)
psy_ has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
Oog has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
devoldmx has joined #ruby
Oog has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
drptbl has joined #ruby
_djbkd has quit [Remote host closed the connection]
eminencehc has joined #ruby
Rohanezio has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 256 seconds]
jwaldrip__ has joined #ruby
bronson has quit [Remote host closed the connection]
<shevy> it's nice to store configuration stuff on a per file basis
andikr has quit [Remote host closed the connection]
fuinho has joined #ruby
psy_ has joined #ruby
<shevy> I have no idea how to grab DATA from multiple different .rb files
Oog has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
fuinho has quit [Remote host closed the connection]
<dfockler> No I wrote the wrong 'too/to'
drptbl has quit [Ping timeout: 272 seconds]
jwaldrip_ has quit [Ping timeout: 265 seconds]
unshadow has quit [Ping timeout: 246 seconds]
Voker57 has quit [Read error: Connection reset by peer]
havenn has joined #ruby
jwaldrip__ has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 250 seconds]
_djbkd has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
Xeago has joined #ruby
<Ox0dea> dfockler: Well, sure, evaluating it will loop.
freerobby has joined #ruby
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Ox0dea> shevy: It's not possible except via manual extraction. :/
<Ox0dea> It happens while the "main" file is being parsed.
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robh71 has joined #ruby
ekinmur_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
victortyau has quit [Quit: Leaving]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robh71 has quit [Client Quit]
patchedmonkey has joined #ruby
yfeldblu_ has joined #ruby
cjbottaro has joined #ruby
diegoviola has joined #ruby
decoponio has joined #ruby
robh71 has joined #ruby
<shevy> scary
<shevy> rb_define_global_const("DATA", f);
<shevy> ruby gives me such a warm fuzzy feeling
<shevy> C scares me
tkuchiki has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
_main_ has joined #ruby
SCHAAP137 has joined #ruby
baweaver has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgb-one has quit [Read error: Connection reset by peer]
cantaberry has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
symbol_ has quit [Ping timeout: 256 seconds]
Stalkr_ has quit [Ping timeout: 264 seconds]
<diegoviola> shevy: why does C scares you?
jwaldrip__ has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
_main_ has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
* wasamasa lets diegoviola run into a segfault
robh71 has quit [Quit: Textual IRC Client: www.textualapp.com]
webhat has quit [Ping timeout: 240 seconds]
Oog has quit []
David27_ has joined #ruby
<diegoviola> segfault?
<wasamasa> uhuh
dopamean_ has quit [Quit: Lost terminal]
jinie has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
riotjone_ has joined #ruby
David27 has quit [Ping timeout: 240 seconds]
David27_ is now known as David27
<adaedra> who's having segfaults
freerobby has joined #ruby
s00pcan has quit [Ping timeout: 246 seconds]
casadei has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
riotjones has quit [Ping timeout: 244 seconds]
s00pcan has joined #ruby
rushed has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
<shevy> diegoviola can you write C?
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<diegoviola> shevy: no
postmodern has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
phutchins1 has joined #ruby
* havenn [BUG] Segmentation fault
<diegoviola> shevy: anyone can write C, a better question would be "do you want to write C?"
dhollinger has quit [Quit: Leaving]
jinie has joined #ruby
<diegoviola> shevy: I've wrote small C programs such as this one: https://github.com/diegoviola/examples/blob/master/c/ex2.c
symm- has quit [Ping timeout: 240 seconds]
<diegoviola> shevy: nothing too complex
s00pcan has quit [Ping timeout: 240 seconds]
nordskald has quit [Quit: Nettalk6 - www.ntalk.de]
jeffreylevesque has joined #ruby
s00pcan has joined #ruby
ta has joined #ruby
<shevy> you are missing the fun stuff
<shevy> pointers!
inoperable_ has quit [Quit: the many sings to us]
<phreakocious> I would like to make a nice thread-safe increment method that takes a class instance or global variable as a parameter.. is there a nice way to do this since you can't pass a reference to the variable?
<Ox0dea> diegoviola: What does `5[foo]` do and why?
baweaver has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
<phreakocious> something like .. def foo(var) ; $mutex.synchronize { var += 1 } ....
__main__ has joined #ruby
otacon- has joined #ruby
<diegoviola> Ox0dea: what do you mean
<Ox0dea> diegoviola: In C.
<Ox0dea> > anyone can write C
<diegoviola> Ox0dea: I don't know
<Ox0dea> phreakocious: It'd be easier not to use a primitive.
<phreakocious> how so?
blaxter has joined #ruby
<Ox0dea> phreakocious: Well, you can't get a "reference", so to speak, to a Fixnum.
<phreakocious> could it be done with (ick) eval?
<phreakocious> or some ruby equivalent
[k- has quit [Ping timeout: 250 seconds]
<diegoviola> Ox0dea: explain what it does
Xeago has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
<Ox0dea> diegoviola: In C, `foo[5]` is the sixth element of `foo`, just like in Ruby.
know has joined #ruby
<diegoviola> Ox0dea: ok ty
<jhass> phreakocious: do a thread safe Counter class instead
<Ox0dea> diegoviola: But `array[index]` in C is actually just syntactic sugar for `*(array + index)`.
<jhass> var = Counter.new(0); var.increment
<Ox0dea> Since addition is commutative, `array[index]` == `index[array]`.
<diegoviola> Ox0dea: why are you trying to test my skills or something?
<phreakocious> ahh jhass I see'
segmond has joined #ruby
<Ox0dea> diegoviola: Please calm down.
<diegoviola> Ox0dea: ok sorry
<Ox0dea> This is a learning experience.
eminencehc has joined #ruby
<diegoviola> ok
<phreakocious> I'm still stuck in a very functional way of thinking. :D thanks Ox0dea and jhass
<Ox0dea> phreakocious: Functional "mutation" is pretty nifty.
zlogan has joined #ruby
Rohanezio has joined #ruby
yardenbar has quit [Ping timeout: 264 seconds]
<Ox0dea> I'm looking at some C code where I did `(__compar_fn_t) strcmp` and it worked.
<Ox0dea> Very naughty.
c1v0 has quit [Quit: Page closed]
<phreakocious> that's pretty neat
evanjs has joined #ruby
leat has quit [Ping timeout: 255 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
barhum2013 has quit [Quit: barhum2013]
ruurd has quit [Quit: ZZZzzz…]
barhum2013 has joined #ruby
zlogan has quit [Ping timeout: 255 seconds]
leat has joined #ruby
xxneolithicxx has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
mary5030_ has joined #ruby
inteq has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
pepperbreath1 has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
<Ox0dea> Explain this. https://eval.in/443243
martinbjeldbak has quit [Ping timeout: 268 seconds]
pepperbreath has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
mnemon has quit [Remote host closed the connection]
deavid has quit [Ping timeout: 246 seconds]
abra1 has quit [Ping timeout: 265 seconds]
DenSchub has quit [Ping timeout: 246 seconds]
mnemon has joined #ruby
zeroDivisible has quit [Ping timeout: 252 seconds]
quarcu has quit [Ping timeout: 265 seconds]
ivanf has quit [Ping timeout: 255 seconds]
mary5030_ has quit [Ping timeout: 246 seconds]
snapcase has quit [Ping timeout: 246 seconds]
barhum2013 has quit [Quit: barhum2013]
martinbjeldbak has joined #ruby
elperdut_ has joined #ruby
zeroDivisible has joined #ruby
zomgbie_ has quit [Ping timeout: 272 seconds]
havenn has quit [Ping timeout: 252 seconds]
ivanf has joined #ruby
dfockler has quit [Remote host closed the connection]
snapcase has joined #ruby
Guest29226 has joined #ruby
quarcu has joined #ruby
elperdut_ has quit [Client Quit]
abra1 has joined #ruby
DenSchub has joined #ruby
bronson has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Ping timeout: 240 seconds]
deavid has joined #ruby
dfockler has joined #ruby
loechel has quit [Ping timeout: 252 seconds]
Eiam_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
Azure has joined #ruby
JimmyNeutron has joined #ruby
JimmyNeutron has quit [Max SendQ exceeded]
weemsledeux has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
JimmyNeutron has joined #ruby
baweaver has joined #ruby
SCHAAP137 has quit [Ping timeout: 260 seconds]
<jhass> A004090
stamina has quit [Ping timeout: 265 seconds]
cmoel has quit [Quit: Textual IRC Client: www.textualapp.com]
firstdayonthejob has quit [Ping timeout: 246 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
SCHAAP137 has joined #ruby
yfeldblum has joined #ruby
johnzorn has quit [Ping timeout: 240 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
code1o6 has joined #ruby
_djbkd has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
Fire1o6 has joined #ruby
<Ox0dea> How could I have forgotten?
<Ox0dea> jhass: It's actually https://oeis.org/A020995, though.
Rohanezio has quit [Ping timeout: 260 seconds]
jeff_laplante has quit [Ping timeout: 272 seconds]
<Ox0dea> Even spookier that 2222 is the largest such number.
rodfersou has quit [Quit: leaving]
<Ox0dea> Also that 251-252 pair.
<ytti> recommend me noise cancelling headphones
htmldrum has joined #ruby
FrankD has joined #ruby
rindolf has quit [Quit: Leaving]
giuseppesolinas_ has quit [Quit: Leaving]
giuseppesolinas has quit [Quit: Leaving]
skweek has joined #ruby
skweek has quit [Remote host closed the connection]
johnzorn has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
cschneid_ has quit [Remote host closed the connection]
_djbkd has joined #ruby
jeffreylevesque has quit [Ping timeout: 244 seconds]
s00pcan has joined #ruby
<BraddPitt> is it possible to shell out to an interactive shell, then return to ruby after exit status?
arooni has quit [Ping timeout: 240 seconds]
AlmightyA has joined #ruby
diegoviola has joined #ruby
havenwood has joined #ruby
Rickmasta has joined #ruby
minimalism has quit [Quit: leaving]
trautwein has quit [Ping timeout: 250 seconds]
dopie has quit [Quit: This computer has gone to sleep]
ozzloy_ is now known as ozzloy
ozzloy has quit [Changing host]
ozzloy has joined #ruby
tuxero has joined #ruby
<BraddPitt> neat, thank you Ox0dea
<Ox0dea> Sure thing.
<Ox0dea> That `c` is for "command", and I only put it in the parallel assignment so it would exist in time to be used in the post-while.
sanjayu has joined #ruby
`tim` has joined #ruby
allcentury has joined #ruby
<jhass> Ox0dea: but then https://eval.in/443250
n008f4g_ has quit [Ping timeout: 246 seconds]
<Ox0dea> jhass: What's this, then?
<jhass> A004090
chipotle has quit [Quit: cheerio]
arooni has joined #ruby
<Ox0dea> It's a considerably less interesting sequence, if you won't mind my saying so.
<BraddPitt> I'm trying to make a Rakefile that will install all my dotfiles/programs
<shevy> B005080
<BraddPitt> so this helps a lot with non handsfree installs (like Homebrew)
finisherr has quit [Quit: finisherr]
<Ox0dea> shevy: Go find your favorite integer sequence.
<Ox0dea> Everyone should have one.
<Ox0dea> BraddPitt: I'm not sure why you wanted something like what I wrote, then.
Cyther has quit [Quit: Leaving]
<shevy> I probably pick the one that includes the whole universe
Cyther has joined #ruby
<Ox0dea> shevy: The... surreals?
<shevy> they are totally real! chuck norris counted to Infinity
havenwood has quit [Ping timeout: 268 seconds]
vdamewood has joined #ruby
<jhass> shevy: https://oeis.org/A000796 is said to fulfill that
Azure has quit [Read error: Connection reset by peer]
<Ox0dea> I knew what it was gonna be, but I `u /1`'d anyway.
<Ox0dea> No, I didn't. I `/u 1`'d.
bronson has joined #ruby
<Ox0dea> How do you even go about proving something like the normality of pi?
<BraddPitt> Ox0dea Homebrew requires user prompt for installation
<BraddPitt> and I was using backticks to shell out that install command
<jhass> Ox0dea: the answer is somewhere written inside Pi
Azure has joined #ruby
<Ox0dea> Far more likely than not.
<Ox0dea> Also, Hofstadter would like a word.
<Ox0dea> BraddPitt: `yes | foo`, no?
know has quit [Remote host closed the connection]
ivanskie has joined #ruby
<BraddPitt> sorry?
<Ox0dea> BraddPitt: Do you need to say "yes" at the install prompt?
<BraddPitt> yeah, something like that
<BraddPitt> press enter, type [y]es, etc
<Ox0dea> BraddPitt: Then yeah, just pipe `yes` into the command.
<Ox0dea> It'll say "y" as often as necessary, but it does take an argument if you want it to say elsewise.
<BraddPitt> ah, but what about multiple prompts during install?
<Ox0dea> It loops.
<BraddPitt> oh
<Ox0dea> ?try
<ruboto> Why don't you try it and see for yourself?
wldcordeiro has joined #ruby
RegulationD has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<shevy> ?pain
<ruboto> I don't know anything about pain
allcentury has quit [Ping timeout: 244 seconds]
<Ox0dea> ruboto writes motivational posters now.
jenrzzz has quit [Ping timeout: 244 seconds]
<BraddPitt> ahaha
tejasmanohar has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
eminencehc has quit [Remote host closed the connection]
<shevy> he has some intelligence
<shevy> like warns people when he already told them once to not use pastebin
<shevy> he has attitude
<shevy> also, I determined that it's a he-bot
rcvalle has quit [Quit: rcvalle]
Azure has quit [Read error: Connection reset by peer]
<Ox0dea> How'd you manage the latter?
Azure has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> manage?
<shevy> look at how grumpy ruboto is when he has to tell someone to not use pastebin again
<shevy> he is literally on the verge of kicking when it happens a THIRD time
jenrzzz has joined #ruby
phutchins1 has quit [Ping timeout: 240 seconds]
<Ox0dea> Anger is for males?
freerobby has joined #ruby
juliojulio has joined #ruby
tuxero has quit [Ping timeout: 268 seconds]
cih has quit [Remote host closed the connection]
chipotle has joined #ruby
_djbkd has quit [Remote host closed the connection]
trautwein has joined #ruby
loc22 has joined #ruby
tier has joined #ruby
Azure has quit [Read error: Connection reset by peer]
FrankD has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
devoldmx has joined #ruby
rubybeginner has quit [Remote host closed the connection]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubybeginner has joined #ruby
<shevy> that anger surely
phutchins1 has joined #ruby
finisherr has joined #ruby
baweaver has quit [Remote host closed the connection]
umgrosscol has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
tejasmanohar has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
Balzrael has quit [Quit: Leaving]
dfockler has quit [Remote host closed the connection]
phutchins1 has quit [Quit: WeeChat 1.1.1]
tejasmanohar has quit [Client Quit]
tejasmanohar has joined #ruby
juliojulio has quit [Ping timeout: 246 seconds]