havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || 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/
tejasmanohar_ has joined #ruby
blackmesa has joined #ruby
Technodrome has quit [Ping timeout: 240 seconds]
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
ramfjord has quit [Ping timeout: 264 seconds]
tejasmanohar has quit [Ping timeout: 265 seconds]
tejasmanohar_ is now known as tejasmanohar
Timba-as has joined #ruby
ruby-lang691 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara has quit [Quit: Leaving.]
nettoweb has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
nettoweb has quit [Client Quit]
Juanchito has quit [Quit: Connection closed for inactivity]
benlieb has quit [Quit: benlieb]
stardiviner has joined #ruby
<wkoszek> shevy: Thanks man. Will check #rack. Wrt. middleman: I use it for my website https://circleci.com/gh/wkoszek/me/70, and I added 1 article the same way as always, and it is not picked up.
otacon- has joined #ruby
ramfjord has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
Timba-as has quit [Ping timeout: 260 seconds]
<wkoszek> So I did simple debugging: copied the content from YYYYMMDD-new-article-here.md to YYYYMMDD-existing-....md and it rendered OK.
kidoz_ has joined #ruby
<wkoszek> (this eliminated my suspicionnthat I got frontmatter messed up). Then I copied existing article to a new file, changed the date in the frontmatter and it still doesn't render.
Sembei has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
Alina-malina has joined #ruby
pepperbreath has quit [Ping timeout: 240 seconds]
pepperbreath has joined #ruby
m4rCsi has quit [Read error: Connection reset by peer]
Morrolan has quit [Ping timeout: 240 seconds]
m4rCsi has joined #ruby
cantaberry has joined #ruby
kidoz has quit [Ping timeout: 240 seconds]
tockitj has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
Pisuke has quit [Ping timeout: 240 seconds]
reprazent has quit [Ping timeout: 240 seconds]
tockitj has joined #ruby
Morrolan has joined #ruby
reprazent has joined #ruby
hfp_work has quit [Ping timeout: 252 seconds]
SCHAAP137 has joined #ruby
firoxer has quit [Ping timeout: 252 seconds]
redlegion has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
firoxer has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
edwardly has quit [Ping timeout: 252 seconds]
renderful has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
ruisantos has quit [Ping timeout: 244 seconds]
Biohazard has quit [Ping timeout: 252 seconds]
Newtonianb has joined #ruby
Musashi007 has quit [Quit: Musashi007]
CrazyEddy has quit [Ping timeout: 252 seconds]
chrisarcand has quit [Ping timeout: 252 seconds]
ruisantos has joined #ruby
howdoico1 has quit [Ping timeout: 256 seconds]
jgt1 has joined #ruby
chrisarcand has joined #ruby
snockerton has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 240 seconds]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Biohazard has joined #ruby
redlegion has joined #ruby
allcentury has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hfp_work has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
jxv has quit [Quit: Leaving]
CrazyEddy has joined #ruby
hinbody has quit [Quit: leaving]
bruno- has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
bnagy has quit [Ping timeout: 240 seconds]
jso has quit [Ping timeout: 240 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kloeri_ has joined #ruby
bnagy has joined #ruby
ericjphillips has joined #ruby
bender_unit has quit [Quit: Textual IRC Client: www.textualapp.com]
tobukiah has quit [Remote host closed the connection]
Narzew has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
jso has joined #ruby
inteq has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
ragingcake has quit [Quit: ragingcake]
kloeri has quit [Ping timeout: 600 seconds]
bigmac has quit [Ping timeout: 256 seconds]
roxtrongo has joined #ruby
hfp_work has quit [Ping timeout: 272 seconds]
maletor has quit []
hfp_work has joined #ruby
Musashi007 has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
AlphaAtom has quit [Ping timeout: 250 seconds]
marr has quit [Ping timeout: 250 seconds]
doublemalt_ has joined #ruby
roxtrong_ has quit [Ping timeout: 256 seconds]
ckuhn has joined #ruby
brandon has quit [Disconnected by services]
casadei_ has joined #ruby
dorei has quit []
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ckuhn> baweaver: nvm what I said about Java earlier... lol just started working in it again. Hate it
DoubleMalt has quit [Ping timeout: 240 seconds]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby
<pwnd_nsfw> I'd probably only go as far as JRuby
<pwnd_nsfw> And thats' close enough to that fire...
bigmac has joined #ruby
<ckuhn> Java != JVM tho
<ckuhn> The problem is not the JVM
<baweaver> Scala is fine, Clojure is fine, JRuby I have no real experience with.
<baweaver> Frege is.... interesting
Wolland_ has quit [Remote host closed the connection]
Keil has joined #ruby
BlackCoyote has joined #ruby
<ckuhn> not really familiar with Haskell... or functional programming
tjbiddle has joined #ruby
infernix has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
casadei_ has quit [Ping timeout: 256 seconds]
barhum2013 has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
Keil has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
solocshaw has quit [Remote host closed the connection]
polly_wog has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
<shevy> ckuhn you must start to love java like people loved big brother in the novel 1984
* ckuhn running away
<ckuhn> The only thing worse than Java is HTML/JS
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I dunno
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<shevy> I don't like that javascript has a monopoly :(
bigmac has quit [Ping timeout: 268 seconds]
<pwnd_nsfw> Do something about it
barhum2013 has quit [Quit: barhum2013]
michael_mbp has joined #ruby
eminencehc has quit [Remote host closed the connection]
sp4rrow has joined #ruby
glundgren has quit []
jackjackdripper has quit [Quit: Leaving.]
<shevy> yeah, I will single-handedly change the world
freerobby has joined #ruby
<ramfjord> java 8 has at least added a lot of good new features
hashrocket has quit [Quit: Connection closed for inactivity]
<ramfjord> default method implementation on interfaces (mixins), lambdas
<ckuhn> Still sucks to write
<shevy> hehehe
AckZ has quit []
<Ox0dea> ckuhn: I would wager more Java code has been auto-generated/tab-completed than hand-written.
<Ox0dea> By a sizeable margin, even.
<ramfjord> I think in my experience it's about 50-50
<Ox0dea> ramfjord: Sounds like you need a better IDE. :P
<ckuhn> Ox0dea: Agreed
<ramfjord> but the pros can probably autogenerate a lot more
JDiPierro has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<baweaver> If your language requires an IDE, something is horribly wrong
<ckuhn> My Java build setup is so fckd that I can't build it successfully outside of eclipse
<baweaver> IntelliJ tends to be a nicer editor
bigmac has joined #ruby
infernix has joined #ruby
<ramfjord> Yeah, I really miss my Gemfile.lock files in ivy
<ramfjord> configuring things to take the latest version is dangerous - every time you build it will update it
<shevy> ckuhn this has always scared me in java... that I need an IDE...
<ckuhn> baweaver: Except I can't change as of now lol
<ckuhn> shevy: ya it really sucks
<ckuhn> I have a entry level CS class that's in Java
EllisTAA has joined #ruby
sphex has quit [Ping timeout: 264 seconds]
<shevy> ewww so you must pass some java exam right
<ckuhn> shevy: probably. but im not an entry level java programmer
<Ox0dea> ckuhn: You should see what happens if you write your assignment in a JVM-backed language and just submit the disassemby.
<Ox0dea> *disassembly
<Ox0dea> Even better, run it through something that tries to reconstruct it into Java. :P
<ckuhn> Ox0dea: we have to submit eclipse projects. like wtf
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> That's not necessarily a deal-breaker.
paradisaeidae has joined #ruby
swgillespie has joined #ruby
<ckuhn> Will eclipse compile any other jvm languages otb?
<Ox0dea> I would imagine so.
SCHAAP137 has quit [Quit: Leaving]
hays_ is now known as hays
<Ox0dea> Damn, it looks like not; are plugins strictly off-limits?
<ckuhn> Obviously with plugins but not sure about fresh install
<ckuhn> Yes probably
<Ox0dea> Probably strictly?
<ckuhn> I think im gonna ask if I can just be a TA
lxsameer has quit [Quit: Leaving]
<ckuhn> Ya, no plugins
<Ox0dea> You want to read code instead of write it?
<ckuhn> Maybe I could submit binaries tho
<Ox0dea> Masochism.
<ckuhn> I like teaching people. so maybe
bffff_ has joined #ruby
<Ox0dea> I also like teaching, but I've never been able to pinpoint precisely why.
<ckuhn> Agreed. Helps you learn better too
<Ox0dea> Well, it solidifies what you've already learned.
<ckuhn> Anyone else have that one IT guy that they hate?
bigmac has quit [Ping timeout: 250 seconds]
<baweaver> It will, at least with Scala
sphex has joined #ruby
Soda has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
Yzguy has quit [Quit: Zzz...]
Soda has quit [Remote host closed the connection]
<ckuhn> baweaver: How?
DanKnox has quit [Ping timeout: 250 seconds]
sphex has quit [Remote host closed the connection]
<baweaver> Plugins
workmad3 has joined #ruby
momon has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
howdoico1 has joined #ruby
momon has left #ruby [#ruby]
benlovell has joined #ruby
chris6131 has joined #ruby
baweaver has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
bigmac has joined #ruby
<chris6131> Hi y'all. I've been using rjr to do RPC over websockets but have a service where I need to use TLS (wss://) which AFAICT the underlying em-websocket library does not support. Can anyone recomend an alternative RPC over websockets implementation I should try? Having trouble searching one out
Newtonianb has quit [Ping timeout: 250 seconds]
<ckuhn> baweaver: no plugins
evanjs has quit [Remote host closed the connection]
bkulbida has joined #ruby
blackmesa has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
PaulCapestany has quit [Quit: .]
jenrzzz has joined #ruby
sphex has joined #ruby
towski_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
PaulCapestany has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 268 seconds]
chipotle has joined #ruby
PaulCapestany has joined #ruby
<chris6131> Ox0dea: Well I'll be damned. Thank you and sorry for the silliness.
* chris6131 will try this immediately
howdoicomputer has joined #ruby
ckuhn_ has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
howdoico1 has quit [Ping timeout: 255 seconds]
solocshaw1 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
doritostains has quit [Quit: WeeChat 1.1.1]
howdoico1 has joined #ruby
ckuhn has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
<chris6131> Ox0dea: That is for accepting TLS connections. I'm concerned with this "At this time, the wss (WebSocket over SSL) protocol is not supported." (https://github.com/mwylde/em-websocket-client) I take back my silliness remark - it was LATE last night, but I was not hallucinating :)
ckuhn_ has quit [Read error: Connection reset by peer]
<chris6131> em-websocket != em-websocket-client, though :P
howdoicomputer has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
<Ox0dea> chris6131: Ah, that's unfortunate.
<Ox0dea> How about Faye?
devoldmx has joined #ruby
<chris6131> Yeah I was really liking rjr. If I can't find anything maybe I can just try adding it.
<chris6131> I saw Faye but it looks like I'd need something else to add the json-rpc unless I wanted to rewrite that
<chris6131> Thanks for the suggestions
v0n has quit [Ping timeout: 256 seconds]
v0n has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
cb_ has quit [Remote host closed the connection]
gambl0re has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
renderful has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
<shevy> hmm
maletor has joined #ruby
NeverDie has joined #ruby
casadei_ has joined #ruby
<shevy> what ways exist to disable checks like: class Foo; end; puts 'it exists' if Object.const_defined? :Foo
<shevy> doing Foo = nil in irb afterwards does not seem to work
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<toretore> what do you mean disable?
<toretore> make it return false?
<shevy> I guess to get completely rid of that constant
<toretore> remove_const
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
<shevy> oh yes... I tried Object.const_remove :D
renderful has quit [Ping timeout: 240 seconds]
rodfersou has quit [Quit: leaving]
maletor has quit [Client Quit]
casadei_ has quit [Ping timeout: 246 seconds]
keen__ has quit [Read error: Connection reset by peer]
keen__ has joined #ruby
jgt1 has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
<Ox0dea> shevy: #const_{g,s}et led you astray! :/
workmad3 has joined #ruby
havenwood has joined #ruby
<shevy> yeah
devbug has joined #ruby
evanjs has joined #ruby
j4cknewt has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
ruby-lang691 has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
eminencehc has joined #ruby
<Ox0dea> shevy: #const_remove won't actually destroy the class.
workmad3 has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
<Ox0dea> *#remove_const
<Ox0dea> So derp.
deject3d has joined #ruby
mary5030 has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
<Ox0dea> I wonder how to completely destroy a class.
mary5030_ has joined #ruby
<shevy> hidden in the deepness of ObjectSpace
mary5030 has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Read error: Connection reset by peer]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
evanjs has quit [Remote host closed the connection]
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
j4cknewt has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
deject3d has quit [Remote host closed the connection]
Musashi007 has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
<shevy> you like to tinker
j4cknewt has joined #ruby
deject3d has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
lubuntu has joined #ruby
mary5030_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
lubuntu is now known as Guest41422
banjara has joined #ruby
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chills42 has joined #ruby
rgb-one has joined #ruby
bmurt has quit []
<rgb-one> Hello
modern has quit [Quit: Leaving]
drewvanstone has joined #ruby
<rgb-one> I would be grateful for you help with this problem: https://gist.github.com/rgb-one/6a97e96b9732c837c025
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
zenguy_pc has joined #ruby
havenn has joined #ruby
<rgb-one> Ox0dea: You available?
j4cknewt has quit [Read error: Connection reset by peer]
roxtrongo has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
j4cknewt has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<shevy> why does the changelog https://github.com/ruby/ruby/blob/trunk/ChangeLog reach back to 2014 only?
Feyn has joined #ruby
chills42 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
bigmac has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Ping timeout: 246 seconds]
ddrmanxbxfr has joined #ruby
ericjphillips has quit [Quit: Leaving.]
tjohnson has quit [Quit: Connection closed for inactivity]
<Ox0dea> shevy: Because there are other ChangeLogs in /doc.
<Ox0dea> rgb-one: You want to combine Hash#values_at, #reduce, and #product.
nateberkopec has joined #ruby
arescorpio has quit [Quit: Leaving.]
wkoszek has quit [Quit: leaving]
roxtrongo has joined #ruby
Musashi007 has joined #ruby
howdoico1 has quit [Ping timeout: 260 seconds]
bigmac has joined #ruby
cb_ has joined #ruby
cb_ has joined #ruby
beast has quit [Quit: Leaving]
<Ox0dea> >> foo = {a: 1, b: 2}; bar = %i[a b b a]; foo.values_at *bar # rgb-one
<ruboto> Ox0dea # => [1, 2, 2, 1] (https://eval.in/437062)
tiagonobre has quit [Quit: Connection closed for inactivity]
nateberkopec has quit [Quit: Leaving...]
drewvanstone has joined #ruby
ebragaparah has quit [Remote host closed the connection]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt_ has joined #ruby
vipaca has joined #ruby
vipaca has quit [Client Quit]
bmurt has joined #ruby
<Ox0dea> rgb-one: Never mind about #reduce, though.
drewvanstone has quit [Ping timeout: 250 seconds]
<rgb-one> Ox0dea: %i means integer?
<rgb-one> or is it symbols
<Ox0dea> >> %i[foo bar] # rgb-one
<ruboto> Ox0dea # => [:foo, :bar] (https://eval.in/437063)
<rgb-one> Si, the latter
<Ox0dea> For "intern".
<Ox0dea> >> 'foo'.to_sym == 'foo'.intern
<ruboto> Ox0dea # => true (https://eval.in/437064)
<Ox0dea> rgb-one: I do think something like %d for numeric arrays would be nice.
<rgb-one> Ox0dea: Yea
casadei_ has joined #ruby
<Ox0dea> rgb-one: Have you got a solid hold on how #product works?
cb_ has quit [Remote host closed the connection]
<rgb-one> Ox0dea: I have a basic understanding I think but would appreciate some more information
cb_ has joined #ruby
cb_ has quit [Changing host]
cb_ has joined #ruby
rbennacer has joined #ruby
opensource_ninja has joined #ruby
Kricir has quit [Remote host closed the connection]
tejasmanohar has quit [Quit: tejasmanohar]
amystephen has quit [Quit: amystephen]
<Ox0dea> >> ([1,2,3] + [4,5,6]).size == 3 + 3
<Ox0dea> ruboto?
ramfjord has joined #ruby
patronus_ has quit [Read error: Connection reset by peer]
patronus has joined #ruby
<ruboto> Ox0dea # => true (https://eval.in/437065)
<Ox0dea> >> ([1,2,3].product [4,5,6]).size == 3 * 3
<ruboto> Ox0dea # => true (https://eval.in/437066)
sonne has quit [Ping timeout: 240 seconds]
<Ox0dea> rgb-one: #product really is like "multiplication" for arrays.
davidcelis has quit [Ping timeout: 260 seconds]
<Ox0dea> The arguments are "distributed", as it were, over the receiver.
martinbjeldbak has quit [Ping timeout: 240 seconds]
sarlalian has quit [Ping timeout: 240 seconds]
sarlalian has joined #ruby
kith_ has joined #ruby
swgillespie has quit [Ping timeout: 260 seconds]
swgillespie has joined #ruby
martinbjeldbak has joined #ruby
mkosaki has joined #ruby
KervyN has quit [Ping timeout: 240 seconds]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
KervyN has joined #ruby
sonne has joined #ruby
j4cknewt_ has quit [Ping timeout: 240 seconds]
<Ox0dea> rgb-one: A permutation is all of the ways to arrange a single array, and a product is all of the ways to "combine" one or more of them.
Meeh has quit [Read error: Connection reset by peer]
mkosaki_ has quit [Ping timeout: 240 seconds]
lhz has quit [Ping timeout: 240 seconds]
kith has quit [Ping timeout: 240 seconds]
lhz has joined #ruby
Meeh has joined #ruby
ledestin has joined #ruby
<Ox0dea> rgb-one: The latter sounds like just the thing for your current problem, eh?
<rgb-one> Indeed
karapetyan has joined #ruby
mooe has joined #ruby
oitnelis has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
nofxx has quit [Ping timeout: 268 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
davedev24 has quit []
<gambl0re> what is ruby's runtime environment?
RobertBirnie has joined #ruby
tkuchiki has joined #ruby
rbennacer has quit [Remote host closed the connection]
<Ox0dea> >> %w[b c].product(%w[a u], %w[d t]).map(&:join) # rgb-one
<ruboto> Ox0dea # => ["bad", "bat", "bud", "but", "cad", "cat", "cud", "cut"] (https://eval.in/437072)
Musashi007 has quit [Quit: Musashi007]
baweaver has joined #ruby
agent_white has joined #ruby
<agent_white> Evenin'
gener1c has joined #ruby
benlovell has joined #ruby
<Ox0dea> Ahoy.
workmad3 has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
iamninja has quit [Read error: Connection reset by peer]
bmurt has quit []
iamninja has joined #ruby
gener1c_ has quit [Ping timeout: 240 seconds]
<nofxx> gambl0re, REPL?
<nofxx> irb
<nofxx> Ox0dea, yo!
benlovell has quit [Ping timeout: 252 seconds]
braincrash has quit [Quit: bye bye]
workmad3 has quit [Ping timeout: 252 seconds]
<gambl0re> what?
<gambl0re> irb?
deavid has quit [Ping timeout: 244 seconds]
tjbiddle has quit [Quit: tjbiddle]
benlieb has quit [Quit: benlieb]
braincrash has joined #ruby
<havenn> gambl0re: It depends on the implementation of Ruby. The reference implementation is YARV (Yet Another Ruby VM) or there's JRuby on the JVM or Rubinius with an LLVM-base JIT, etc.
<havenn> gambl0re: man irb
<havenn> (If you really don't know what irb is?)
ddrmanxbxfr has quit [Quit: This computer has gone to sleep]
favadi has joined #ruby
banjara has quit [Quit: Leaving.]
<gambl0re> i know irb
<havenn> ah, k
<gambl0re> nodejs is a run time environment for javscript?
aghalarp has joined #ruby
<havenn> gambl0re: So Ruby has multiple runtime environments. I mentioned some prominent ones above.
beauby has joined #ruby
aghalarp has quit [Max SendQ exceeded]
<gambl0re> oh ok, i guess those werent the answers i was looking for
j4cknewt has joined #ruby
<havenn> gambl0re: So like the JRE (Java Runtime Environment).
<shevy> these are not the passports you are looking for *waves hand like a jedi*
<gambl0re> the guys in #web said that Ruby MRI was ruby's runtime environment..
aghalarp has joined #ruby
<shevy> matz ruby
<havenn> gambl0re: MRI (Matz' Ruby Interpreter) was back in the days of Ruby 1.8. Then with Ruby 1.9 Ruby got a VM (YARV).
<gambl0re> why is it called node + express and not javascirpt + express....why not YARU + Rails then?
<havenn> gambl0re: The meaning of MRI is foggy. But YARV is the CRuby's VM these days.
<havenn> People mean different things when they say MRI.
<gambl0re> so its more of a general term?
yfeldblum has joined #ruby
<havenn> gambl0re: It generally means CRuby or more specifically the historical interpreter from Ruby 1.8 and prior.
vipaca has joined #ruby
tjbiddle has joined #ruby
<gambl0re> oh ok thanks
<havenn> gambl0re: But with Java "Runtime Environment" is even in the name. So there there's no debating. :P
<havenn> gambl0re: And it's a first class citizen for Ruby.
<havenn> gambl0re: There are more than one ways to do it. :)
BlackCoyote has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
djbkd has joined #ruby
polly_wog has joined #ruby
<gambl0re> cool
<havenn> gambl0re: I agree with the person in #web. MRI is the reference implementation. Or more specifically YARV.
darkf has joined #ruby
<havenn> gambl0re: But we're lucky to have multiple production-ready Ruby environments.
polly_wog has quit [Client Quit]
<rgb-one> Ox0dea: >> hash = {a: "Aa@", b: "Bb8"}; leet = %[a b b a]; hash.values_at *leet
michaeldeol has joined #ruby
<rgb-one> >> hash = {a: "Aa@", b: "Bb8"}; leet = %[a b b a]; hash.values_at *leet
<ruboto> rgb-one # => [nil] (https://eval.in/437077)
RobertBi_ has joined #ruby
devoldmx has joined #ruby
gix has quit [Ping timeout: 240 seconds]
<rgb-one> >> hash = {a: "Aa@", b: "Bb8"}; leet = %i[a b b a]; hash.values_at *leet
<ruboto> rgb-one # => ["Aa@", "Bb8", "Bb8", "Aa@"] (https://eval.in/437082)
<rgb-one> Ox0dea: is there a way to use product on that dataset?
jenrzzz has quit [Ping timeout: 260 seconds]
shadoi has quit [Quit: Leaving.]
RobertBirnie has quit [Ping timeout: 265 seconds]
minimalism has joined #ruby
<rgb-one> Ox0dea: Without having to specify them in the form %w"A a @".product(%w"B b 8", %w"B b 8", %w"A a @") where I have to explicitly set the arrays to combine
<rgb-one> ?
gix has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> rgb-one: Of course there is.
dima_ has joined #ruby
<Ox0dea> They're just values, after all.
<Ox0dea> rgb-one: Do you know how to go from "Aa@" to %w"A a @"?
aghalarp has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<rgb-one> Ox0dea: split("")
<Ox0dea> That'd do, but we have the #chars method to say the same thing slightly more meaningfully.
j4cknewt has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 268 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SylarRuby has joined #ruby
<rgb-one> >> "Aa@".chars
<ruboto> rgb-one # => ["A", "a", "@"] (https://eval.in/437094)
eminencehc has joined #ruby
jenrzzz has joined #ruby
dopie has joined #ruby
<Ox0dea> rgb-one: So, do you know how to take the first element of an Array?
jgpawletko has joined #ruby
sdfgsdfg has joined #ruby
amoeba has quit [Quit: Leaving]
dima_ has quit [Quit: This computer has gone to sleep]
<rgb-one> >> s = "abvca".chars; s[0]
<ruboto> rgb-one # => "a" (https://eval.in/437095)
<Ox0dea> And how about to get all the rest?
<Ox0dea> That is, every element but the first.
j4cknewt has joined #ruby
<Ox0dea> You want to be able to say `first.product(and, the, rest)`.
jt__ has quit [Ping timeout: 246 seconds]
<rgb-one> >> s = "abvca".chars; s.tail
<ruboto> rgb-one # => undefined method `tail' for ["a", "b", "v", "c", "a"]:Array (NoMethodError) ...check link for more (https://eval.in/437097)
<Ox0dea> If only. :/
tjbiddle has quit [Quit: tjbiddle]
jgt1 has joined #ruby
<rgb-one> >> s = "abvca".chars; s.first
<ruboto> rgb-one # => "a" (https://eval.in/437098)
arescorpio has joined #ruby
<Ox0dea> There are many, many ways to skin the same cat in Ruby.
sdfgsdfg has quit [Read error: Connection reset by peer]
jgpawletko has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
<Ox0dea> rgb-one: `drop 1` is a pretty common way to spell `tail` in Ruby.
j4cknewt_ has joined #ruby
<Ox0dea> >> foo = [1,2,3,4]; foo[1..-1] # Here's another spelling.
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/437099)
<Ox0dea> >> first, *rest = [1,2,3,4]; [first, rest]; # And one more.
<ruboto> Ox0dea # => [1, [2, 3, 4]] (https://eval.in/437100)
Technodrome has joined #ruby
<Ox0dea> A slightly neater approach presents itself if you're interested in the first and the rest, and you don't mind mutating the receiver.
VeryBewitching has quit [Quit: Konversation terminated!]
<Ox0dea> The #shift method is like #first, with the side effect that it actually removes the element from the Array before returning it.
j4cknewt_ has quit [Read error: Connection reset by peer]
tejasmanohar has joined #ruby
jgt1 has quit [Ping timeout: 272 seconds]
j4cknewt_ has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
HAL2328 has joined #ruby
pontiki has joined #ruby
jobewan has quit [Ping timeout: 268 seconds]
j4cknewt_ has quit [Remote host closed the connection]
mghaig has joined #ruby
wldcordeiro has joined #ruby
fedexo has joined #ruby
tkuchiki has joined #ruby
banister_ has joined #ruby
mghaig has quit [Client Quit]
tlolczyk has joined #ruby
deavid has joined #ruby
Lucky__ has joined #ruby
Wolland has joined #ruby
Wolland has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
dseitz has quit [Max SendQ exceeded]
pen has quit [Remote host closed the connection]
dseitz has joined #ruby
<tlolczyk> I'm having trouble doing something. I want to take a string and create a new string. The old string will have a number in it. I want to replace the with a right justified version.
banister has quit [Ping timeout: 244 seconds]
<Ox0dea> &ri String#rjust @tlolczyk
<pontiki> oh hey
weemsledeux has joined #ruby
<pontiki> i just asked about that last night, Ox0dea
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vipaca has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> Fancy that.
pen has joined #ruby
favadi has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
<pontiki> who runs `derpy ?
<Ox0dea> adaedra.
<pontiki> awesome
freerobby has quit [Quit: Leaving.]
<Ox0dea> >> '%*d' % [5, 42] # This is kinda nice too.
<ruboto> Ox0dea # => " 42" (https://eval.in/437101)
Technodrome has quit [Quit: Technodrome]
jobewan has joined #ruby
bruno- has joined #ruby
<rgb-one> >> hash = {a: "Aa@", b: "Bb8"}; acronym = "aabb"; leet = acronym.chars; x = hash.value at *leet; first, *rest = x; [first, rest]
<ruboto> rgb-one # => undefined method `at' for main:Object (NoMethodError) ...check link for more (https://eval.in/437102)
<rgb-one> >> hash = {a: "Aa@", b: "Bb8"}; acronym = "aabb"; leet = acronym.chars; x = hash.values_at *leet; first, *rest = x; [first, rest]
<ruboto> rgb-one # => [nil, [nil, nil, nil]] (https://eval.in/437103)
whippythellama has quit [Quit: WeeChat 1.3]
<tlolczyk> Example: I want in a program: to take the string "foo :appears in line 15 of x.txt" I'm assuming that "foo :" is already justified I want 15 justified on 4 characters.
<rgb-one> >> hash = {a: "Aa@", b: "Bb8"}; acronym = "aabb"; leet = acronym.chars; x = hash.values_at *leet; leet.map! {|y| y.to_sym}; first, *rest = x; [first, rest]
<ruboto> rgb-one # => [nil, [nil, nil, nil]] (https://eval.in/437104)
<rgb-one> >> hash = {a: "Aa@", b: "Bb8"}; acronym = "aabb"; leet = acronym.chars; leet.map! {|y| y.to_sym}; x = hash.values_at *leet; first, *rest = x; [first, rest]
<ruboto> rgb-one # => ["Aa@", ["Aa@", "Bb8", "Bb8"]] (https://eval.in/437105)
<pontiki> rgb-one: please use pry to experiment
<tlolczyk> Ox0dea, nope. See example above.
<pontiki> flooding the channel is a bit much
<rgb-one> pontiki: My apologies
<baweaver> +1
Technodrome has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Ping timeout: 265 seconds]
braincra- has joined #ruby
nanoz has joined #ruby
casadei_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
<Ox0dea> rgb-one: Looks like you've just about got it.
braincrash has quit [Ping timeout: 240 seconds]
cb_ has quit [Remote host closed the connection]
<rgb-one> Ox0dea: Not quite
<Ox0dea> "Just about", mind. :)
<Ox0dea> Better to just make your keys Strings instead of mapping, I think.
banjara has joined #ruby
Pathfinder has quit [Ping timeout: 260 seconds]
<Ox0dea> rgb-one: Also, your values should be Arrays, since those're the things to which you'll be applying #product.
bnizzle1 has joined #ruby
<rgb-one> Ox0dea: Yea
<Ox0dea> You *could* do all these conversions each time, but it's better to just do it the once up-front.
banjara has quit [Client Quit]
<rgb-one> hash = {a: ['A', 'a', '@'], b: ['B' ,'b', '8']}; acronym = "aabb"; leet = acronym.chars; leet.map! {|y| y.to_sym}; x = hash.values_at *leet; first, *rest = x; rest.split(",")
<rgb-one> is what I have so far
bnizzle has quit [Ping timeout: 252 seconds]
<Ox0dea> What's up with that #split?
<Ox0dea> Also, you've used %w to good effect elsewhere; why not here?
<rgb-one> rest is an array of arrays so I am trying to remove the first array so what will be remaining are the three sub arrays
<rgb-one> indeed
<Ox0dea> rgb-one: That's why I told you about #shift earlier.
amystephen has joined #ruby
<Ox0dea> Sorry, disregard that.
<Ox0dea> #shift is just an alternative approach to `first, *rest = ` in this particular case.
<Ox0dea> rgb-one: `rest` is the Array of Arrays you want to use as the arguments to #product.
<rgb-one> Ox0dea: Yea
cb_ has joined #ruby
<Ox0dea> rgb-one: Just one last piece to the puzzle, then: do you know about the splat operator?
<rgb-one> Ox0dea: No
amystephen has quit [Ping timeout: 240 seconds]
<Ox0dea> >> def sum3(a, b, c); a + b + c; end; nums = [2, 17, 23]; foo *nums # rgb-one
<ruboto> Ox0dea # => undefined method `foo' for main:Object (NoMethodError) ...check link for more (https://eval.in/437107)
<Ox0dea> >> def sum3(a, b, c); a + b + c; end; nums = [2, 17, 23]; sum3 *nums # rgb-one
<ruboto> Ox0dea # => 42 (https://eval.in/437108)
<pontiki> up above, if rest is an Array, how can you apply .split to it?
pen has quit [Remote host closed the connection]
pen has joined #ruby
HAL2328 has quit [Quit: Leaving]
<Ox0dea> rgb-one: See how #sum3 expects three separate arguments? I was able to use the elements of the Array as individual arguments with * (the splat operator).
roxtrong_ has joined #ruby
roxtrongo has quit [Ping timeout: 255 seconds]
beauby has quit [Ping timeout: 240 seconds]
<rgb-one> Ox0dea: :)
<Ox0dea> rgb-one: Did you win?!
bb010g has joined #ruby
<rgb-one> Ox0dea: Big time
eminencehc has quit [Remote host closed the connection]
<Ox0dea> Yus!
benlovell has joined #ruby
cb_ has quit [Remote host closed the connection]
<rgb-one> hash = {a: %w'A a @', b: %w'B b 8'}; acronym = "aabb"; leet = acronym.chars; leet.map! {|y| y.to_sym}; x = hash.values_at *leet; first, *rest = x; first.product(*rest).map(&:join)
<rgb-one> >> hash = {a: %w'A a @', b: %w'B b 8'}; acronym = "aabb"; leet = acronym.chars; leet.map! {|y| y.to_sym}; x = hash.values_at *leet; first, *rest = x; first.product(*rest).map(&:join)
<ruboto> rgb-one # => ["AABB", "AABb", "AAB8", "AAbB", "AAbb", "AAb8", "AA8B", "AA8b", "AA88", "AaBB", "AaBb", "AaB8", "Aa ...check link for more (https://eval.in/437110)
<Ox0dea> rgb-one: Looks good. <3
<rgb-one> Ox0dea: :D
<Ox0dea> Instead of extracting with `first, *rest`, you could just say `x.shift.product(x)`.
<Ox0dea> That's why I mentioned #shift earlier.
NeverDie has quit [Quit: http://radiux.io/]
<Ox0dea> Mind that it mutates the receiver, of course, but that's exactly what you want here.
Rickmasta has joined #ruby
<rgb-one> The reciever means the original array?
benlovell has quit [Ping timeout: 265 seconds]
<Ox0dea> That's right.
<Ox0dea> The object on which you've called #shift.
slackbotgz has joined #ruby
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has quit [Ping timeout: 264 seconds]
EllisTAA has joined #ruby
eminencehc has joined #ruby
Kricir has joined #ruby
bkulbida has quit [Ping timeout: 244 seconds]
<rgb-one> >> hash = {"a" => %w'A a @', "b" => %w'B b 8'}; acronym = "aab"; leet = acronym.chars; x = hash.values_at *leet; x.shift.product(*x)
<ruboto> rgb-one # => [["A", "A", "B"], ["A", "A", "b"], ["A", "A", "8"], ["A", "a", "B"], ["A", "a", "b"], ["A", "a", "8" ...check link for more (https://eval.in/437113)
nanoz has quit [Quit: <3]
<Ox0dea> xet7: Ah, whoops. I did forget to splat the `x` up there, didn't I? Good catch. :P
pawnbox has joined #ruby
<Ox0dea> rgb-one: ^
<rgb-one> Ox0dea: :)
<Ox0dea> Not sure how that happened.
<Ox0dea> rgb-one: But yeah, you can just `map(&:join)` those results, and that'll be the thing done.
tejasmanohar has quit [Quit: tejasmanohar]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
workmad3 has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
<Ox0dea> And now we wait for you to try to run this thing on complete sentences.
<Ox0dea> Then again, I suppose that's why you switched to just leeting the initials. :P
chipotle has quit [Quit: cheerio]
pawnbox has quit [Remote host closed the connection]
<rgb-one> Ox0dea: Yea, the results would be quite a bit on full sentences
diego1 has joined #ruby
<Ox0dea> rgb-one: Just generating every combination for practice, then, or are you up to some mischief?
drewvanstone has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest61737
diego1 is now known as diegoviola
<rgb-one> Ox0dea: Both :)
<Ox0dea> rgb-one: Perfect. <3
Guest61737 has quit [Ping timeout: 252 seconds]
Narzew has joined #ruby
danman has quit [Quit: danman]
jobewan has joined #ruby
drewvanstone has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
opensource_ninja has quit [Quit: opensource_ninja]
wldcordeiro has joined #ruby
jackjackdripper has joined #ruby
asi_ has quit [Remote host closed the connection]
jackjackdripper has quit [Client Quit]
fedexo has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 256 seconds]
howdoico1 has joined #ruby
SOLDIERz has joined #ruby
jenrzzz has joined #ruby
Azure has joined #ruby
wldcordeiro has joined #ruby
sanjayu has joined #ruby
Narzew has quit [Ping timeout: 252 seconds]
slackbotgz has quit [Remote host closed the connection]
bigmac has joined #ruby
krz has joined #ruby
tangentstorm has joined #ruby
<tangentstorm> i need to make my own version of someone else's gem so i can patch it. how do i do that, and get my rails app to see my custom version?
<tangentstorm> i mean where do i put it? i know what to change in the gem. :)
dhjondoh has joined #ruby
asi_ has joined #ruby
<Ox0dea> tangentstorm: Are you sure you can't patch it "programmatically"?
<Ox0dea> Whoops. Those quotes should be on "patch".
howdoi has joined #ruby
<tangentstorm> you mean by opening the class? no. i tried that, but i may not have done it right.
<Ox0dea> I mean, that's one way, but prepending a Module would be better.
arescorpio has quit [Quit: Leaving.]
<Ox0dea> Are you able to be more specific about what you're trying to do?
<tangentstorm> i'm using opal-phaser in a rails app. it's a wrapper for a javascript game library, but i doesn't wrap one of the functions i need.
<Ox0dea> tangentstorm: Your thing isn't intended for public export, then?
bluOxigen has joined #ruby
<tangentstorm> i'm not sure what that means, Ox0dea
<tangentstorm> okay, i know how to build local gems now. do i have to run the 'build' step every time i change it?
dopamean_ has joined #ruby
<Ox0dea> tangentstorm: Not if you've got Bundler properly set up.
krz has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
* tangentstorm experiments
<Ox0dea> tangentstorm: It seems you just need to remove the << on Line 11?
Stalkr_ has joined #ruby
<tangentstorm> doesn't that let me re-open the existing class?
<Ox0dea> You're opening GameObjectFactory's singleton class.
<Ox0dea> Nix the << to reopen the class itself.
codenapper has joined #ruby
Musashi007 has joined #ruby
<tangentstorm> and it won't replace the whole class?
* tangentstorm tries it
roxtrong_ has quit [Ping timeout: 264 seconds]
<Ox0dea> That's why it's called "reopening" and not "redefining".
eminencehc has quit [Remote host closed the connection]
<tangentstorm> hrm. can you redefine it?
<tangentstorm> i come from a faraway land called #python. :)
<tangentstorm> your ways are strange to me. :)
<tangentstorm> (that worked, thank you!)
<Ox0dea> tangentstorm: Happy to have helped.
<Ox0dea> Are Python classes actually immutable?
<tangentstorm> no, but if you wanted to add / change a method you'd say ClassName.newMethod = whatever
pawnbox has joined #ruby
<Ox0dea> tangentstorm: Well, you can say `ClassName.define_method(:foo) { bar }` for something similar.
<Ox0dea> Of course, our lambdae aren't limited to a single expression. ^_^
arup_r has joined #ruby
gener1c_ has joined #ruby
roxtrongo has joined #ruby
gener1c has quit [Ping timeout: 246 seconds]
<tangentstorm> yeah, lambdas are the worst part of python.
khebbie has joined #ruby
SylarRuby has quit []
niemcu has joined #ruby
jgt1 has joined #ruby
<Ox0dea> And arguably the best part of Ruby.
<tangentstorm> :)
<Ox0dea> Small wonder the journey can be so treacherous.
pontiki has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
Timba-as has joined #ruby
deject3d has joined #ruby
sp4rrow has joined #ruby
kaliwanagan has joined #ruby
last_staff has joined #ruby
eminencehc has joined #ruby
Timba-as has quit [Quit: Be back later ...]
AlexRussia has quit [Quit: WeeChat 1.3-dev]
allomov has joined #ruby
vdamewood has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 255 seconds]
eminencehc has quit [Ping timeout: 250 seconds]
chris6131 has quit [Quit: Leaving.]
schlubbi has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
Stalkr^ has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
<rgb-one> Ox0dea: Thanks teacher, im off for now
<Ox0dea> rgb-one: My pleasure. :)
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<Ox0dea> Now don't go forgettin' all these learnin's on a night's sleep.
ta has quit [Remote host closed the connection]
culturelabs has quit [Ping timeout: 256 seconds]
codecop has joined #ruby
culturelabs has joined #ruby
howdoico1 has quit [Ping timeout: 260 seconds]
kaliwanagan has quit [Ping timeout: 240 seconds]
kloeri_ is now known as kloeri
rgb-one has left #ruby [#ruby]
yfeldblum has joined #ruby
emilkarl has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
banjara has quit [Quit: Leaving.]
devoldmx has quit [Remote host closed the connection]
eGGsha has joined #ruby
emilkarl has quit [Client Quit]
bigmac has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
moeabdol1 has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stalkr^ has quit [Read error: Connection reset by peer]
otacon- has quit [Ping timeout: 255 seconds]
toretore has quit [Quit: This computer has gone to sleep]
howdoico1 has joined #ruby
beauby has joined #ruby
timonv has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
amclain has quit [Quit: Leaving]
weemsledeux has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
beauby has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
iateadonut has joined #ruby
RobertBirnie has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
dhjondoh has joined #ruby
djbkd has quit [Quit: My people need me...]
bigmac has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
wldcordeiro has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
cb_ has joined #ruby
pxlsinmotion has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
pxlsinmotion has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
Kricir has quit [Remote host closed the connection]
auzty has joined #ruby
havenn has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has quit [Remote host closed the connection]
solocshaw has joined #ruby
pxlsinmotion has joined #ruby
solocshaw has quit [Remote host closed the connection]
karapetyan has joined #ruby
solocshaw has joined #ruby
pxlsinmotion has quit [Remote host closed the connection]
SenpaiSilver has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
pxlsinmotion has joined #ruby
<pxlsinmotion> can anyone help me with a regex to parse the key:value string: key:[[value_1, value_2],[value_3, value4]], 5:10:00AM
jgt1 has joined #ruby
blackmesa has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
jenrzzz has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
Coldblackice_ is now known as Coldblackice
<pxlsinmotion> can anyone help me with a regex to parse the key:value string: key:[[value_1, value_2],[value_3, value4]], 5:10:00AM
<pxlsinmotion> sorry didn't mean to send that a second time
deject3d has quit [Quit: Computer has gone to sleep.]
hs366 has joined #ruby
karapetyan has joined #ruby
Technodrome has quit [Quit: Technodrome]
stan has joined #ruby
Technodrome has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
Juanchito has joined #ruby
Balzrael has joined #ruby
framling has joined #ruby
tkuchiki has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
mondayrain has joined #ruby
VeryBewitching has joined #ruby
skullcrasher has joined #ruby
ta has joined #ruby
yfeldblum has joined #ruby
Timba-as has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solars has joined #ruby
subscope has quit [Quit: Leaving]
<karapetyan> what returns while loop in ruby? nil?
<apeiros> yes
<nofxx> pxlsinmotion, you want only the array?
tkuchiki has quit [Ping timeout: 240 seconds]
wldcordeiro has joined #ruby
<pxlsinmotion> i need to create a hash that would look something like {"key": [[value_1, value_2],[value_3, value4]], "5": '10:00AM'}
<Ox0dea> >> foo = while true; break 42; end; foo # karapetyan
<ruboto> Ox0dea # => 42 (https://eval.in/437154)
<pxlsinmotion> i assume regex is the best way to solve this. i've been attempting to use StringScanner and only put myself in a worse condition that i started i think lol
<baweaver> pxlsinmotion: ?xy
<baweaver> pxlsinmotion: !xy
<Ox0dea> ?xy pxlsinmotion
<ruboto> pxlsinmotion, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<baweaver> come now ruboto
<havenwood> >> /(?<key>[^:]+):\[\[(?<value_1>[^,]+),\s(?<value_2>[^\]]+)\],\[(?<value_3>[^,]+),\s(?<value_4>[^\]]+)/ =~ 'pie:[[strawberr_rhubarb, cherry],[blackberry, key_lime]], 5:10:00AM'; {key => [value_1, value_2, value_3, value_4]}
<ruboto> havenwood # => {"pie"=>["strawberr_rhubarb", "cherry", "blackberry", "key_lime"]} (https://eval.in/437156)
cfloare has quit [Ping timeout: 240 seconds]
<nofxx> pxlsinmotion, isn't that json?
cgfbee has quit [Ping timeout: 244 seconds]
<Ox0dea> JSON without quoted keys.
<baweaver> hence xy
<havenwood> JSONesque
cfloare has joined #ruby
<Ox0dea> Elseways known as "the end of reason".
<apeiros> it doesn't handle your notation, but you should be able to use it as a starting point for your parser
SCHAAP137 has joined #ruby
duncannz has joined #ruby
<apeiros> if you can change the serialization however, I'd strongly recommend that over rolling your own.
psy_ has joined #ruby
<pxlsinmotion> the problem i have is the text file i'm parsing is formated as above and when i try using JSON.parse it fails because the key 5 does not have the quotes around the time and causes the parser to fail
<Ox0dea> pxlsinmotion: Why doesn't it have quotes around it?
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
<pxlsinmotion> i wish i knew....client provided an export of the data and this is how it's formatted guessing whoever created the internal program they are using didn't think to wrap dates with quotes on export
lxsameer has joined #ruby
<apeiros> smack your client with a cluebat
<Ox0dea> pxlsinmotion: Do you know their current whereabouts?
<apeiros> tell them the cost difference between a custom rolled format and using a proper standard
<pxlsinmotion> trust me they are going to pay extra for me dealing with this insanity
sp4rrow has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> on the other hand - you might just leave it as is and charge them for the hour :-D
cgfbee has joined #ruby
<karapetyan> should i define &block in method header? def hello(&block) as i understand it works without explicit definition block?
<apeiros> karapetyan: no, you should not. you only use &block when you have to either pass it on or store it somewhere.
<apeiros> in the other cases, you use yield & block_given?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bayed has joined #ruby
<Ox0dea> Or defined?(yield). ;)
jas02 has joined #ruby
<Ox0dea> But not actually.
<karapetyan> ok, thx
MichaelJJackson has joined #ruby
<pxlsinmotion> thanks for the help. after i find the developer that made my life hell today i'm going to brush up on my regex i find myself needing it more and more
<MichaelJJackson> hello little boys
<Ox0dea> !cops
blackmesa has joined #ruby
<apeiros> don't drop the baby!
<karapetyan> Ox0dea: is thx is not ok? :)
<Ox0dea> pxlsinmotion: What are value_1, &c.?
VeryBewitching has quit [Quit: Konversation terminated!]
<baweaver> No?
<baweaver> Fine
<baweaver> !mute MichaelJJackson
drewvanstone has joined #ruby
<Ox0dea> karapetyan: Are you kidding? It even has its own logo.
<pxlsinmotion> they are string values like first and last name
<karapetyan> ;)
<karapetyan> ))))
firstdayonthejob has quit [Ping timeout: 268 seconds]
weemsledeux has joined #ruby
drewvanstone has quit [Ping timeout: 250 seconds]
<Ox0dea> >> a, b, c = while true; break 1, 2, 3; end; a + b + c
<ruboto> Ox0dea # => 6 (https://eval.in/437159)
<Ox0dea> TIL.
<Ox0dea> Re-realized, more likely.
MichaelJJackson has quit [K-Lined]
karapetyan has quit [Remote host closed the connection]
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
<Ox0dea> pxlsinmotion: In that case, StringScanner isn't the worst approach.
pawnbox has quit [Remote host closed the connection]
bronson has joined #ruby
pawnbox has joined #ruby
scoot has joined #ruby
<pxlsinmotion> Ox0dea: thanks i'll keep going down the StringScanner route to solve the problem. after typing out my problem i think i know how to solve it now
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
<Ox0dea> You could probably get away with just tokenizing on /\w+|[\[:\]]/ or some such, but then you're pretty much writing a parser for Lisp.
<apeiros> pxlsinmotion: you've seen my github link? might help as a starting point
benlovell has joined #ruby
<pxlsinmotion> aperiros: yeah i'm looking at the link for the LiteralParser now
<apeiros> ?tabnick pxlsinmotion
<ruboto> pxlsinmotion, pro-tip - use tab completion for nicks. avoids typos in nicks.
* apeiros should have this auto-trigger…
<pxlsinmotion> ruboto: haha thanks...been a long time since i've used IRC
<baweaver> ruboto is a bot
keen___ has joined #ruby
dionysus69 has joined #ruby
<pxlsinmotion> haha
bronson has quit [Ping timeout: 265 seconds]
<baweaver> really long time eh?
<pxlsinmotion> i think it's bed time lol
<apeiros> or caffeine-infusion time
keen__ has quit [Ping timeout: 240 seconds]
<pxlsinmotion> but then i'll never go to bed its 12:30am already
ankr has joined #ruby
beauby has joined #ruby
renderful has joined #ruby
jschmid has joined #ruby
howdoi has quit [K-Lined]
exadeci has quit [K-Lined]
joaomdmoura has quit [K-Lined]
iamdevnul has quit [K-Lined]
jmhmccr has quit [K-Lined]
Guest85414______ has quit [K-Lined]
heidar has quit [K-Lined]
jeregrine has quit [K-Lined]
pfg has quit [K-Lined]
pizzaops has quit [K-Lined]
djbender has quit [K-Lined]
PhilK has quit [K-Lined]
dmoe has quit [K-Lined]
knowtheory has quit [K-Lined]
jpinnix______ has quit [K-Lined]
Eleeleth has quit [K-Lined]
jlyndon has quit [K-Lined]
ELCALOR has quit [K-Lined]
mjc_ has quit [K-Lined]
yo61 has quit [K-Lined]
bove has quit [K-Lined]
lacrosse has quit [K-Lined]
neersighted has quit [K-Lined]
ELLIOTTCABLE has quit [K-Lined]
bayed has quit [K-Lined]
Heero has quit [K-Lined]
keyvan has quit [K-Lined]
im0b has quit [K-Lined]
krainboltgreene has quit [K-Lined]
Juanchito has quit [K-Lined]
codeitagile has quit [K-Lined]
Lloyd has quit [K-Lined]
preyalone has quit [K-Lined]
twodayslate has quit [K-Lined]
pmarreck has quit [K-Lined]
bffff_ has quit [K-Lined]
makufiru has quit [K-Lined]
machty has quit [K-Lined]
frankS2 has quit [K-Lined]
jxf has quit [K-Lined]
AdamMeghji has quit [K-Lined]
gyre007 has quit [K-Lined]
ArchRogem has quit [K-Lined]
danzilio has quit [K-Lined]
glowcoil has quit [K-Lined]
nyandoge has quit [K-Lined]
jabreity has quit [K-Lined]
prosodyC has quit [K-Lined]
benlakey has quit [K-Lined]
lancetw has quit [K-Lined]
varunwachaspati has quit [K-Lined]
dirtyonekanobi has quit [K-Lined]
neektza has quit [K-Lined]
colstrom has quit [K-Lined]
zipkid has quit [K-Lined]
frode15243 has quit [K-Lined]
ggherdov has quit [K-Lined]
culturelabs has quit [K-Lined]
bb010g has quit [K-Lined]
countryHick has quit [K-Lined]
akitada has quit [K-Lined]
shelling__ has quit [K-Lined]
calleerlandsson has quit [K-Lined]
bjmllr has quit [K-Lined]
zzak has quit [K-Lined]
alekst_ has quit [K-Lined]
cbednarski has quit [K-Lined]
apipkin has quit [K-Lined]
bryancp has quit [K-Lined]
bestie has quit [K-Lined]
daxroc has quit [K-Lined]
jmcc has quit [K-Lined]
nickfausnight has quit [K-Lined]
holsee_ has quit [K-Lined]
chrisseaton has quit [K-Lined]
dukedave has quit [K-Lined]
zemmihates has quit [K-Lined]
spastorino has quit [K-Lined]
petems has quit [K-Lined]
amitchellbullard has quit [K-Lined]
akahn has quit [K-Lined]
ckrailo has quit [K-Lined]
mroth has quit [K-Lined]
skmp has quit [K-Lined]
bcavileer has quit [K-Lined]
charles81 has quit [K-Lined]
deimos_ has quit [K-Lined]
adambeynon has quit [K-Lined]
schaary has quit [K-Lined]
avdi has quit [K-Lined]
vcoinminer has quit [K-Lined]
HashNuke has quit [K-Lined]
bttf has quit [K-Lined]
hellschreiber has quit [K-Lined]
alxndr has quit [K-Lined]
rflot has quit [K-Lined]
cbetta has quit [K-Lined]
jevs has quit [K-Lined]
thesheff17 has quit [K-Lined]
cstrahan has quit [K-Lined]
andersh has quit [K-Lined]
manveru has quit [K-Lined]
tonini has quit [K-Lined]
bjeanes has quit [K-Lined]
troter___ has quit [K-Lined]
ramblinpeck has quit [K-Lined]
zrl has quit [K-Lined]
cardoni has quit [K-Lined]
grubernaut has quit [K-Lined]
MiracleBlue has quit [K-Lined]
rfv has quit [K-Lined]
halfdan has quit [K-Lined]
n1ftyn8_ has quit [K-Lined]
renderful has quit [Ping timeout: 240 seconds]
mrsolow has quit [K-Lined]
Kharma has quit [K-Lined]
Technodrome has quit [Quit: Technodrome]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrCode has joined #ruby
HashNuke has joined #ruby
thesheff17 has joined #ruby
alxndr has joined #ruby
MiracleBlue has joined #ruby
cstrahan has joined #ruby
tonini has joined #ruby
cardoni has joined #ruby
bjeanes has joined #ruby
bttf has joined #ruby
manveru has joined #ruby
dirtyonekanobi has joined #ruby
colstrom has joined #ruby
troter___ has joined #ruby
rflot has joined #ruby
startupality has joined #ruby
zemmihates has joined #ruby
hellschreiber has joined #ruby
drewvanstone has joined #ruby
tjbiddle has joined #ruby
Technodrome has joined #ruby
varunwachaspati has joined #ruby
pxlsinmotion has quit [Quit: Textual IRC Client: www.textualapp.com]
beauby has quit [Ping timeout: 260 seconds]
lancetw has joined #ruby
Juanchito has joined #ruby
maasha has joined #ruby
startupality has quit [Client Quit]
dhjondoh has quit [Quit: dhjondoh]
<maasha> I am experiencing what appears to be a memory leak or a problem with GC. I am filtering huge amounts of strings using a hash lookup to pick candidates. Ruby 2.1.2p95
<maasha> Memory use exeeds 6Gb
prosodyC has joined #ruby
drewvanstone has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
<maasha> The hash is build from an ascii table ~60M and the data is streamed.
zipkid has joined #ruby
<apeiros> wow, what's with that K-Line orgy?
<baweaver> probably blacklisted part of DO again by accident
<baweaver> they do that.
tkuchiki has joined #ruby
<apeiros> maasha: with such bugs it's advisable to start by upgrading to at least the newest patchlevel of the version you're using
arup_r has quit [Remote host closed the connection]
<baweaver> maasha: upgrade to 2.2.x if possible, see if it still happens.
<baweaver> GC improvements were made.
lipoqil has joined #ruby
<maasha> yeah, I am compiling and reading what Sam Saffron has blogged on
<baweaver> fairly sure that was on 2.0.x, but I'd have to look
<baweaver> and now is most certainly time for bed.
<baweaver> 'night.
<apeiros> n8 baweaver
baweaver has quit [Remote host closed the connection]
<maasha> So I am also using Set and wonder if it may be better to use Google Hash where GC is disabled.
skade has joined #ruby
cb_ has quit []
blackmesa has quit [Ping timeout: 252 seconds]
scoot has quit [Remote host closed the connection]
skade has quit [Client Quit]
jschmid has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
wldcordeiro has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 268 seconds]
wldcordeiro has joined #ruby
scoot has joined #ruby
bruno- has joined #ruby
hadrig has joined #ruby
anisha has joined #ruby
krainboltgreene has joined #ruby
Hounddog has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
startupality has joined #ruby
ndrei has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
pecpec has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt1 has quit [Ping timeout: 246 seconds]
Hounddog has joined #ruby
blackmesa has joined #ruby
nanoz has joined #ruby
Technodrome has quit [Quit: Technodrome]
wldcordeiro has joined #ruby
michael_mbp has quit [Excess Flood]
startupality has quit [Quit: startupality]
michael_mbp has joined #ruby
SenpaiSilver has joined #ruby
<maasha> Hm, Set is also 25% slower than Hash, really?
blaxter has joined #ruby
michael_mbp has quit [Excess Flood]
ndrei has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
rdark has joined #ruby
Kendos-Kenlen has joined #ruby
bigmac has quit [Ping timeout: 260 seconds]
doublemalt_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
<apeiros> maasha: Set uses a Hash
<apeiros> so it's Hash performance + overhead
Zai00 has joined #ruby
<maasha> apeiros: but that is a lot of overhead :o(
devbug has quit [Remote host closed the connection]
<maasha> apeiros: I would expect it could be optimized to run at the same speed as Hash?
<apeiros> sure
krisquigley has joined #ruby
kith_ is now known as kith
<apeiros> reimplement it in C using the Hash source
<maasha> apeiros: hm, wonder if that is a feature request @ rubylang?
arup_r has joined #ruby
youngbaks has joined #ruby
<apeiros> go ahead and implement it?
TheHodge has joined #ruby
weemsledeux has joined #ruby
<adaedra> Bonjour
<maasha> apeiros: I wonder if I could.
beauby has joined #ruby
<apeiros> you'll know once you tried :)
wldcordeiro has quit [Ping timeout: 240 seconds]
Zai00 has quit [Client Quit]
dmolina has joined #ruby
<maasha> apeiros: how wise
<maasha> :o)
workmad3 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
merlinp has joined #ruby
scoot has quit []
<maasha> apeiros: looking at the source in set.rb it looks sort of OK, until you get to SortedSet
beauby has quit [Ping timeout: 265 seconds]
lele|w has quit [Ping timeout: 240 seconds]
<maasha> apeiros: of cause it is all ruby, and would benefit from using the C API
workmad3 has quit [Ping timeout: 250 seconds]
hmnhf has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
quazimodo has joined #ruby
DrCode has quit [Remote host closed the connection]
hmnhf has quit [Remote host closed the connection]
hmnhf has joined #ruby
bigmac has joined #ruby
leafybasil has quit [Remote host closed the connection]
sectoral has joined #ruby
leafybasil has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
<yorickpeterse> morning
rattatmatt has quit [Quit: Leaving]
<sectoral> morning
andikr has joined #ruby
marr has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
hmnhf has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
hmnhf has joined #ruby
lele|w has joined #ruby
<apeiros> moin
<sectoral> afternoon in indo
<sectoral> :)
<apeiros> ?ugt sectoral
<ruboto> sectoral, it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
<apeiros> ;-)
leafybasil has quit [Ping timeout: 252 seconds]
yottanami has joined #ruby
<yottanami> Hey all
dennis__ is now known as scepticulous
<apeiros> moin yottanami
<yottanami> I want to use WSDL API as client I find Savon but it can not handle import wsdl
<yottanami> Is there any usefull option? Is it bad Idea to work with it useing Net::HTTP?
<apeiros> ?toolbox yottanami
<ruboto> yottanami, https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
<apeiros> maybe you find something there
sectoral has left #ruby [#ruby]
hmnhf has quit [Remote host closed the connection]
hmnhf has joined #ruby
<yottanami> apeiros, I searched there but there is no active WSDL client project
<apeiros> yottanami: then maybe patch wsdl import support into savon
beauby has joined #ruby
<yottanami> apeiros, So you think using Net::HTTP is bad idea?
<apeiros> it depends
<yottanami> to?
<apeiros> on ;-)
<yottanami> :D
<yottanami> on
<apeiros> it depends on your requirements, your context
<yottanami> apeiros, I just needs to send an Parlay 2 XML and recieve an XML result to an API
<apeiros> I use hand-built clients for the SOAP APIs we serve. but mostly for two reasons: savon wasn't multi-tenancy capable back when I needed it, and many of the SOAP services we interact with have, lets say, bad wsdls
codenapp_ has joined #ruby
<apeiros> so it's possible to do. but it can be annoying and a lot of work
<apeiros> whether it's more work to make savon do what you need or build a custom soap client depends on the specifics of your task.
jishankai has joined #ruby
shredding has joined #ruby
hmnhf_ has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
codenapper has quit [Ping timeout: 264 seconds]
hmnhf has quit [Ping timeout: 268 seconds]
jishankai has quit [Remote host closed the connection]
beauby has joined #ruby
<yottanami> apeiros, As I checked unstable version of Savon can support WSDL imports
<yottanami> Is it risky to use it?
jishankai has joined #ruby
jishankai has left #ruby [#ruby]
<apeiros> yottanami: no idea
leafybasil has joined #ruby
hmnhf__ has joined #ruby
jgt1 has joined #ruby
yosafbridge has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
krz has joined #ruby
hmnhf_ has quit [Ping timeout: 244 seconds]
beauby has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
hmnhf has joined #ruby
codenapper has joined #ruby
yosafbridge has joined #ruby
ByronJohnson has joined #ruby
allomov has joined #ruby
codenapp_ has quit [Ping timeout: 268 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
platzhirsch has joined #ruby
hmnhf__ has quit [Ping timeout: 264 seconds]
hmnhf_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
exadeci has joined #ruby
beauby has joined #ruby
yardenbar has joined #ruby
hmnhf has quit [Ping timeout: 264 seconds]
hmnhf_ has quit [Remote host closed the connection]
hmnhf_ has joined #ruby
mikecmpbll has joined #ruby
mrityunjay has joined #ruby
subshad has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
beauby has quit [Ping timeout: 268 seconds]
ndrei has joined #ruby
hmnhf__ has joined #ruby
<yottanami> I am trying to use Savon unstable version like this : client = Savon.client(wsdl: "URL")
devoldmx has joined #ruby
<yottanami> and I got this error NoMethodError: undefined method `client' for Savon:Class
<yottanami> But it works in stable version
<apeiros> yottanami: so the API changed
Voker57 has joined #ruby
<apeiros> generate the docs for your current version and see how it works there
hmnhf__ has quit [Remote host closed the connection]
hmnhf__ has joined #ruby
hmnhf_ has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
jgt1 has quit [Quit: WeeChat 1.2]
jgt has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
hmnhf__ has quit [Remote host closed the connection]
hmnhf__ has joined #ruby
ELCALOR has joined #ruby
karapetyan has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
hmnhf__ has quit [Remote host closed the connection]
hmnhf__ has joined #ruby
c0m0 has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 246 seconds]
karapetyan has quit [Remote host closed the connection]
<shevy> long live ruby!
hmnhf__ has quit [Remote host closed the connection]
hmnhf__ has joined #ruby
dhjondoh has joined #ruby
hmnhf has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
charliesome has joined #ruby
<tbuehlmann> ... that shalt be king hereafter!
postmodern has quit [Quit: Leaving]
<tbuehlmann> wait, wrong play
hmnhf__ has quit [Ping timeout: 265 seconds]
anisha has quit [Quit: Leaving]
hadrig has quit []
hadrig has joined #ruby
OrbitalKitten has joined #ruby
hmnhf_ has joined #ruby
Gnomethr_ has joined #ruby
Gnomethr_ is now known as R\vv\c
suchness has joined #ruby
Gnomethrower has quit [Disconnected by services]
robinboening has joined #ruby
pontiki has joined #ruby
Gnomethrower has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
R\vv\c has quit [Client Quit]
hmnhf has quit [Ping timeout: 255 seconds]
hmnhf__ has joined #ruby
stamina has joined #ruby
<yottanami> I am trying to use Savon and I got this error client.operations NoMethodError: undefined method `element_children' for nil:NilClass from /home/.../wasabi-3.5.0/lib/wasabi/parser.rb:311:in `sections'
<yottanami> How should I fix it?
cbednarski has joined #ruby
apipkin has joined #ruby
Kharma has joined #ruby
danzilio has joined #ruby
jpinnix______ has joined #ruby
frode15243 has joined #ruby
<suchness> yottanami: You should vim /home/.../wasabi-3.5.0/lib/wasabi/parser.rb and look at line 311 for what would be nil.
bffff_ has joined #ruby
daxroc has joined #ruby
Eleeleth has joined #ruby
youngbaks has quit [Ping timeout: 240 seconds]
alekst_ has joined #ruby
pontiki has quit [Ping timeout: 252 seconds]
glowcoil has joined #ruby
dmoe has joined #ruby
knowtheory has joined #ruby
cbetta has joined #ruby
hmnhf_ has quit [Ping timeout: 250 seconds]
hmnhf__ has quit [Remote host closed the connection]
bayed has joined #ruby
jevs has joined #ruby
hmnhf__ has joined #ruby
jxf has joined #ruby
bestie has joined #ruby
jmcc has joined #ruby
holsee_ has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
jlyndon has joined #ruby
mjc_ has joined #ruby
frankS2 has joined #ruby
mroth has joined #ruby
<yottanami> suchness, Here is line 113 but I can not find out https://github.com/savonrb/wasabi/blob/master/lib/wasabi/parser.rb#L113
nickfausnight has joined #ruby
akahn has joined #ruby
<suchness> yottanami: Wrong line.
dyleted has joined #ruby
dyleted has joined #ruby
andersh has joined #ruby
ckrailo has joined #ruby
zrl has joined #ruby
amitchellbullard has joined #ruby
im0b has joined #ruby
bove has joined #ruby
PhilK has joined #ruby
adambeynon has joined #ruby
jmhmccr has joined #ruby
gyre007 has joined #ruby
culturelabs has joined #ruby
halfdan has joined #ruby
bjmllr has joined #ruby
<suchness> yottanami: So not only have you not even attempted to look at this yourself in the first place, you don't even care enough to check the right line number?
Guest85414______ has joined #ruby
twodayslate has joined #ruby
bcavileer has joined #ruby
benlakey has joined #ruby
bryancp has joined #ruby
makufiru has joined #ruby
petems has joined #ruby
ELLIOTTCABLE has joined #ruby
lacrosse has joined #ruby
rfv has joined #ruby
avdi has joined #ruby
pfg has joined #ruby
keyvan has joined #ruby
nyandoge has joined #ruby
pmarreck has joined #ruby
pizzaops has joined #ruby
ggherdov has joined #ruby
bb010g has joined #ruby
vcoinminer has joined #ruby
deimos_ has joined #ruby
chrisseaton has joined #ruby
schaary has joined #ruby
ArchRogem has joined #ruby
<yottanami> suchness, I taged wrong number on github but I am reading the correct lines in local, it seams document.root is nill
djbender has joined #ruby
calleerlandsson has joined #ruby
akitada has joined #ruby
<suchness> yottanami: You just said you couldn't figure it out.
charles81 has joined #ruby
skmp has joined #ruby
AdamMeghji has joined #ruby
grubernaut has joined #ruby
zzak has joined #ruby
<yottanami> I can not figure out why it is null
jeregrine has joined #ruby
n1ftyn8_ has joined #ruby
<suchness> yottanami: That aside you're right, your document has no root.
hmnhf__ has quit [Ping timeout: 244 seconds]
yo61 has joined #ruby
codeitagile has joined #ruby
shelling__ has joined #ruby
preyalone has joined #ruby
merlinp has quit [Remote host closed the connection]
ramblinpeck has joined #ruby
spastorino has joined #ruby
mrsolow has joined #ruby
dukedave has joined #ruby
jabreity has joined #ruby
<yottanami> suchness, You mean it should be <head> in WSDL?
beauby has joined #ruby
unop has joined #ruby
heidar has joined #ruby
jgt has joined #ruby
neektza has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
machty has joined #ruby
Igorshp has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neersighted has joined #ruby
armyriad has joined #ruby
charliesome has joined #ruby
Heero has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
Oka has joined #ruby
schlubbi has quit [Remote host closed the connection]
howdoi has joined #ruby
iamdevnul has joined #ruby
countryHick has joined #ruby
Lloyd has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest97938
diego1 is now known as diegoviola
Feyn has quit [Quit: Leaving]
joaomdmoura has joined #ruby
subshad has quit [Remote host closed the connection]
mllkm4n has joined #ruby
Guest97938 has quit [Ping timeout: 256 seconds]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
Coldblackice has quit [Ping timeout: 240 seconds]
robinboening has quit [Quit: robinboening]
robinboening has joined #ruby
drewvanstone has joined #ruby
robinboening has quit [Client Quit]
psy_ has quit [Ping timeout: 265 seconds]
bnizzle1 has left #ruby [#ruby]
workmad3 has joined #ruby
devoldmx has joined #ruby
<suchness> yottanami: I have no idea, I have never used Savon and I am not familiar with what it does.
mllkm4n has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
<suchness> yottanami: You might look at what exactly the document object consists of, and what the root method called on it does.
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewvanstone has quit [Ping timeout: 268 seconds]
bigkevmcd has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
dyleted has quit [Ping timeout: 250 seconds]
<yottanami> suchness, I think it is because it can not parse wsdl import. I find this https://github.com/savonrb/wasabi/issues/1
<yottanami> Should I have to use version3?
Rickmasta has joined #ruby
pawnbox has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
bigkevmcd has quit [Client Quit]
Igorshp has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
<platzhirsch> apeiros: just thinking.. how you said the bijective_encode and bijective_decode is redundant in the code I linked yesterday
krz has quit [Ping timeout: 240 seconds]
<platzhirsch> is it though? It gives out information that the method used is actually bijective, where else would you put that, except let's say docs
sanjayu has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 260 seconds]
chills42 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tvw has joined #ruby
sanjayu has joined #ruby
nettoweb has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
<shevy> what the hell is bijective, is this like .inject
soc42 has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
crack_user has joined #ruby
mondayrain has quit [Ping timeout: 250 seconds]
<apeiros> platzhirsch: encode implies it can be decoded and vice versa
<platzhirsch> fair enough
<platzhirsch> shevy: mathematical term
<platzhirsch> means both directions
<shevy> aha
<apeiros> shevy: basically a function f(x) is bijective iff a function f'(y) exists for all x with x == f'(f(x))
<apeiros> or at least that's how I remember. been a while :D
tockitj has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
greenarrow has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
lulzmachine has joined #ruby
skweek has quit [Remote host closed the connection]
howdoico1 has quit [Ping timeout: 240 seconds]
favadi has joined #ruby
rurik has joined #ruby
allcentury has joined #ruby
duncannz has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
tockitj has joined #ruby
rodfersou has joined #ruby
chouhoulis has quit [Remote host closed the connection]
nateberkopec has joined #ruby
andikr has quit [Ping timeout: 268 seconds]
prestorium has joined #ruby
andikr has joined #ruby
shredding has quit [Ping timeout: 260 seconds]
rurik has quit [Ping timeout: 265 seconds]
sylvain31 has joined #ruby
rurik has joined #ruby
iateadonut has quit [Ping timeout: 246 seconds]
framling has quit [Ping timeout: 260 seconds]
chills42 has quit [Remote host closed the connection]
karapetyan has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
<sylvain31> Hi, I would like to unittest my ruby task in my Rakefile. What lib must I require in my ruby file which wrap my task's code into a class to have access to rake method over filesystem like rm
nateberkopec has quit [Quit: Leaving...]
<sylvain31> I got: NoMethodError(<undefined method `rm' for RCommand:Class>)
yardenbar has quit [Quit: Leaving]
<arup_r> Why `"09/24/2015 09:59".to_datetime.strftime("%m/%d/%Y %H:%M")` Invalidate error giving ?
deject3d has joined #ruby
chills42 has joined #ruby
<adaedra> From where does this to_datetime comes from
<adaedra> Ah, rails.
<adaedra> Looks like it wants dd/mm/yyyy, and you have mm/dd/yyyy, arup_r
schlubbi has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
<sylvain31> rake-10.4.2 may add
juzmach has left #ruby [#ruby]
pecpec has quit [Remote host closed the connection]
tjbiddle has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
<arup_r> No. adaedra I have what I shown you
<adaedra> ?
mikecmpbll has joined #ruby
<arup_r> one min
<apeiros> and that would be why you don't use DateTime.parse (which backs String#to_datetime)
<apeiros> arup_r: yes, you have what you've shown. and that's mm/dd/yyyy - unless you're telling us that there's a month 24.
dhjondoh has joined #ruby
<adaedra> (Also known as the "America wtf"-format)
<adaedra> :p
benlovell has quit [Ping timeout: 250 seconds]
<apeiros> aka "who needs big- or little-endian?!?"
<apeiros> -format
<karapetyan> guys
<apeiros> yo girl?
<karapetyan> oh
<karapetyan> folks!
<karapetyan> sorry ! :)
stan has quit [Ping timeout: 246 seconds]
<adaedra> yo ga!
<karapetyan> i really don't understand difference between block.call and yield
jenrzzz has joined #ruby
<apeiros> karapetyan: one requires a variable (block) which references an object which responds to call
<apeiros> the other works with the block passed to the method
<certainty> moin
<arup_r> apeiros: You are right.. wrong paste. But actuall issue is "09/24/2015 09:59".to_datetime
<apeiros> there's no *functional* difference between `def foo(&b); b.call; end` and `def foo; yield; end`. it's a difference in performance.
<apeiros> arup_r: you may want to read what you just wrote.
<arup_r> dunno what you meant
<adaedra> arup_r: How is the 24th month called?
<certainty> apeiros: what's the performance difference?
chills42 has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
<apeiros> certainty: no object allocated, no method call overhead
<ccooke> arup_r: the problem is that you are using the US date layout, with the day between month and year, while to_datetime uses the more common international format, and expects the month to be in the middle
<apeiros> certainty: oh, and no object GC'ed
<jeffreylevesque> whats the most used ruby linter?
<arup_r> adaedra: leave that part,, to_datetime don't accept the format I gave
<ccooke> to_datetime thinks that you want the 9th day of the 24th month
<arup_r> ccooke: U are right
<certainty> apeiros: ruby checks if a block yields and only then creates the proc, whereas an explicit argument is always allocated?
but3k4 has joined #ruby
<adaedra> arup_r: because there are not 24 months in a year
<apeiros> certainty: it doesn't create a proc at all
<arup_r> ccooke: I need to format it first using strptime
<apeiros> certainty: it only creates one if you have def foo(&block)
<arup_r> then it will be done
<jhass> jeffreylevesque: rubocop I'm afraid
<apeiros> at that point the difference is only the method call vs. syntax (yield isn't a method)
<jeffreylevesque> rubocop or ruby-lint?
<yorickpeterse> rubocop is more popular
<jeffreylevesque> which one is preferred?
<jeffreylevesque> ok
<jeffreylevesque> thank
<yorickpeterse> Both serve different purposes too
<certainty> apeiros: hmm! i didn't know that. Where can I read more about this? Do you have specific resources or will googling be fine?
krz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
chills42 has joined #ruby
<certainty> i could check the ruby sources i guess
aswen has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<apeiros> certainty: I don't have any specific resources, sorry. last I've seen it discussed in detail was in some rails issue years ago.
youngbaks has joined #ruby
<certainty> apeiros: thanks. I'll do a search and dig deeper
codecop has quit [Remote host closed the connection]
<apeiros> certainty: and of course, this applies to MRI. any other implementation may not have that difference.
stan has joined #ruby
<certainty> apeiros: yeah I assumed that
<jeffreylevesque> yorickpeterse: can i use rubocop to lint a Puppetfile, what's the syntax?
<yorickpeterse> No idea, I don't use rubocop
<jeffreylevesque> `rubocop Puppetfile`
karapetyan has quit [Remote host closed the connection]
<jeffreylevesque> ok
syath has joined #ruby
Rollabunna has joined #ruby
<shevy> isn't a puppetfile just ruby code anyway
karapetyan has joined #ruby
<jeffreylevesque> yeah
schlubbi has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
karapetyan has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
mrityunjay has quit [Quit: Leaving]
schlubbi has joined #ruby
rikkipitt has joined #ruby
<sylvain31> in Rakefile I can use filesytem method wrapper, like rm 'filename'. Do you know which lib is providing those method? If I would use such method outside of a Rakefile.
<adaedra> FileUtils
but3k4 has quit [Read error: Connection reset by peer]
y0da has joined #ruby
<jhass> sylvain31: method(:rm).owner
<adaedra> It's in the stdlib
workmad3 has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
<arup_r> boring!
<adaedra> ?
<shevy> people know rakefiles but no longer core ruby :)
<arup_r> adaedra: saying myself.. :D
<suchness> yottanami: Maybe
phutchins has joined #ruby
[k- has joined #ruby
karapetyan has joined #ruby
<sylvain31> jhass, Rake::FileUtilsExt
workmad3 has quit [Ping timeout: 240 seconds]
<jhass> now check what that does
ndrei has joined #ruby
jgt has joined #ruby
<shevy> looks ugly
<certainty> apeiros: ok found a somewhat old thread, but it doesn't seem to have changed since then. I have no idea about the internal reification of methods in mri, but i can see that just calling some code which is probably really just a function call, costs less memory wise than haveing to instantiate/allocate a full proc object with all it needs
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
elperdut has joined #ruby
elperdut has quit [Client Quit]
<certainty> oh sorry s/methods/blocks/
<yorickpeterse> certainty: generally you just want to use `yield` without &block
<yorickpeterse> &block is useful when you want to pass the block to another method
ldnunes has joined #ruby
krisquigley has quit [Remote host closed the connection]
<certainty> yorickpeterse: yepp. sometimes i can't though. for example in recursive methods
<certainty> exactly
robinboening has joined #ruby
bnizzle has joined #ruby
<certainty> yepp thanks
benlovell has joined #ruby
rurik has quit [Read error: Connection reset by peer]
elperdut has joined #ruby
Xiti has quit [Ping timeout: 252 seconds]
rurik has joined #ruby
rurik has quit [Changing host]
rurik has joined #ruby
greenarrow has quit [Quit: 500]
<sylvain31> jhass, thanks no mention of rm yet. I must check further in the inheritance path, thanks for the hint
elperdut has quit [Client Quit]
jgt has quit [Ping timeout: 264 seconds]
<adaedra> FileUtils
<[k-> Tempfile
benlovell has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
krz has quit [Ping timeout: 246 seconds]
iamninja has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: night]
emilkarl has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby
startupality has joined #ruby
xMopxShell has quit [Ping timeout: 240 seconds]
iceyec has quit [Remote host closed the connection]
bruno- has quit [Quit: Lost terminal]
devoldmx has joined #ruby
<shevy> damn... does autoload make it harder to check against runtime errors when something is unavailable?
karapetyan has quit [Ping timeout: 250 seconds]
greenarrow has joined #ruby
shredding has joined #ruby
<shevy> I suddenly get a LoadError from a line that in itself does not require anything
jeffreylevesque has quit [Ping timeout: 250 seconds]
<adaedra> if you know how it works, no.
yqt has joined #ruby
<shevy> from precisely something like: autoload :Foo, 'foo'
nateberkopec has joined #ruby
Klamber|ext has joined #ruby
karapetyan has joined #ruby
bruno- has joined #ruby
<shevy> yeah... now I removed autoload, and the error message is different
<shevy> uninitialized constant Foo
<shevy> I should have listened to jhass
devoldmx has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
<Klamber|ext> Hey! I recently (24 hours ago) started learning a bit of Ruby for some custom stuff on Jekyll. Now when I loop over some array caontaining for example pages then I get the error "cant convert nil to string". This is understandable but when I use to_s every string is as it should be. Why is that ?
Guest41422 has quit [Remote host closed the connection]
<jhass> what line was raising that?
<suchness> Klamber|ext: nil.to_s
ulak has joined #ruby
cornerman has joined #ruby
<Klamber|ext> suchness: What do you mean ?
<terabytes> .to_s
<jhass> Klamber|ext: it's way easier to explain on your real code
arian0n has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
jgt has joined #ruby
<terabytes> the var in nil... you don't can onvert nil to string
<Klamber|ext> Heh. :D What I'm saying is that the array element is not empty.. but it complains and to_s outputs the string inside that element.
<suchness> Klamber|ext: You would need to show your code. Presumably you are trying to use a method on the elements of the array that require the object to be a string. You also have a nil object in the array that is not a string, hence the error. When you call to_s on your nil, it turns it into a string.
ulak has quit [Client Quit]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 240 seconds]
<vondruch> zenspider, ping ... hi ... how about this? https://bugs.ruby-lang.org/issues/11540
workmad3 has joined #ruby
bruno- has quit [Quit: Lost terminal]
robinboening has quit [Quit: robinboening]
ndrei has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
krz has joined #ruby
arian0n has joined #ruby
<Klamber|ext> Ok. Here's the code: http://pastebin.com/z9QEp5YE
<ruboto> Klamber|ext, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Klamber|ext> Ok.
workmad3 has quit [Ping timeout: 255 seconds]
<sylvain31> Thanks about FileUtils modules hint. I make it working, require 'fileutils' and also import method into current namespace with include FileUtils.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Klamber|ext> I want to understand this in Ruby. When someting is nil in other languages it's usually really empty. Then this has to do something with "everything is object" mentality.
Xiti has quit [Quit: Xiti]
deject3d has quit [Quit: Computer has gone to sleep.]
krisquigley has joined #ruby
<shevy> nil is an object too :)
<[k-> vondruch: zenspider is asleep
<shevy> you can assume for the most part to just treat nil as false
rikkipitt has quit [Remote host closed the connection]
<vondruch> [k-, np ... i can wait for answer :)
<shevy> def initialize; @config = nil; load_config # may manipulate @config and set it to another value than nil
<shevy> btw if you append to a string, you could use << rather than output +=
<shevy> the += will create a new string object, << will just append to the existing string object
nanoz has quit [Ping timeout: 260 seconds]
<[k-> i think Ruby is smarter in manipulating strings now
futilegames has joined #ruby
<[k-> i think Ruby actually shares the string
<[k-> am i right?
andyrs has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
<Klamber|ext> shevy: goot to know..
Salehi has joined #ruby
<Klamber|ext> So yes, nil is an object, but how dows nil contain my string then ?
<jhass> Klamber|ext: so page.data["title"] may return nil
<Klamber|ext> jhass: yes.
nzst has joined #ruby
cball has quit [Ping timeout: 246 seconds]
<jhass> Klamber|ext: use this form which calls to_s for you: output << %(<li><a href="#{page.url}">s: #{page.data['title']}</a></li>)
<Klamber|ext> There are 7 elements in pages array, all are outputed. Where is the nil element ?
JDiPierro has joined #ruby
sgambino has joined #ruby
lkba has joined #ruby
<jhass> try output << %(<li><a href="#{page.url}">s: #{page.data['title'] || "TITLE IS NIL!"}</a></li>)
<Klamber|ext> jhass: I have..
<Klamber|ext> With ifs and elses and with OR operator.
<Klamber|ext> It tests for nil never come true.
<jhass> the version you showed works and removing to_s does not, then your testing was flawed, sorry
<jhass> *if the
sgambino has quit [Client Quit]
last_staff has quit [Quit: last_staff]
startupality has quit [Quit: startupality]
<jhass> Klamber|ext: you can built your pages array like this btw: site.pages.select {|page| current_page["category"] == page.data["category" }
roxtrongo has quit [Remote host closed the connection]
<jhass> pages = ...
<Klamber|ext> jhass: I will look into those Ryby style stuff later on. I started using it last night.
pecpec has joined #ruby
JDiPierro has quit [Client Quit]
<Klamber|ext> What I now whant to understand is how does array element be nil and also contain my string. But testing it for nil never comes true.
<shevy> if it is nil
<shevy> it is not your string
krisquigley has joined #ruby
pecpec_ has joined #ruby
<apeiros> Klamber|ext: it can't.
roxtrongo has joined #ruby
lkba_ has joined #ruby
futilegames has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
<shevy> the [] are method calls too, page.data['some_key']; if page is nil, or page.data is nil, or if page.data['this_key_does_not_exist'], may all give you nil
charliesome has joined #ruby
<Klamber|ext> From 7 elements all 7 are outputed. If there would be an empty element there should be 8 or more leemnts in array then. array.length gives me 7.
<shevy> btw nil.to_s will give you '' # empty string
SylarRuby has joined #ruby
<Klamber|ext> But no empty string is outputed.
<Klamber|ext> There is no empty string.
<Klamber|ext> Forgive me for being such a whiny cunt but that is just suprising to me right now.
Xiti has joined #ruby
last_staff has joined #ruby
<shevy> .length will return the amount of elements you have there
<jhass> it's impossible and that's all we can say from the information you have given
<shevy> >> [nil, nil, ''].length
<ruboto> shevy # => 3 (https://eval.in/437402)
<Klamber|ext> I understand what length does.
pecpec has quit [Ping timeout: 256 seconds]
pontiki has joined #ruby
<shevy> I am not so sure ;-)
lkba has quit [Ping timeout: 240 seconds]
greenarrow has quit [Quit: 500]
<[k-> an empty string does not add any characters to the screen
<Klamber|ext> shevy: Ruby is not my first language.
<[k-> maybe a newline with puts
<shevy> yeah but other languages have nil/null/0 so
<pontiki> o/
<Klamber|ext> Yes they do.
auzty has quit [Quit: Leaving]
<shevy> jhass what do you think of this proposal here: https://bugs.ruby-lang.org/issues/11537
<Klamber|ext> Ok. If you say my tests were flawd. How do i actually test for nil ?
<Klamber|ext> I'll test it again.
<[k-> >> [1.nil?, nil.nil?]
<ruboto> [k- # => [false, true] (https://eval.in/437403)
<shevy> \o/
quazimodo has joined #ruby
<Klamber|ext> :D
<[k-> >> [1,2,3,nil,4].compact.length
<ruboto> [k- # => 4 (https://eval.in/437404)
<[k-> see, the array lost 1 element
cball has joined #ruby
<jhass> Klamber|ext: again, you never confirmed the assumptions I posed above, but if the version you showed works and removing the to_s breaks it again, the last version I gave must return "TITLE IS NIL!" somewhere
greenarrow has joined #ruby
decoponio has joined #ruby
Jardayn has joined #ruby
<jhass> shevy: I think that was proposed a couple of times already
lkba_ has quit [Ping timeout: 272 seconds]
<shevy> yeah but the syntax suggestion seemed new... u.?profile.?thumbnails.?large
phutchins has quit [Ping timeout: 264 seconds]
<shevy> really weird to my eyes
phutchins2 has joined #ruby
<shevy> I hope I will be able to append ? too so that I can have u.?profile?.?thumbnails?.?large?
<shevy> I am sure [k- and Ox0dea will make heavy use of it
<[k-> no
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yosafbridge has quit [Ping timeout: 240 seconds]
<[k-> that is horrible
<[k-> i reject.
<shevy> lol
<[k-> it would break my ternaries
<shevy> really?
<shevy> could you not combine them?
<[k-> true?false.istripledog:tripleno
<shevy> u.?profile?.?thumbnails?.?large? ? method1? : method2?
centrx has joined #ruby
<[k-> im talking about non significant whitespace here
<[k-> how dare you suggest a breaking change!
kirun has joined #ruby
<shevy> hey I did not suggest that syntax!
<apeiros> [k-: in what situation is a . valid in front of ? from ternary now?
devoldmx has joined #ruby
sylvain31 has quit [Quit: Leaving]
but3k4 has joined #ruby
shinnya has joined #ruby
OrbitalKitten has joined #ruby
<[k-> is there a dot before a question mark?
y0da has quit [Read error: Connection reset by peer]
jmignault has joined #ruby
<apeiros> ok, let me rephrase: which expression which is now valid would work differently with .? being a thing?
bronson has joined #ruby
<shevy> I want a method called .
<Klamber|ext> jhass: SO now i have tested both ways: Your example using || operator never returns "Title is nil" but when I test it with .inil? in a IF before outputing then there is no error but the .nil? (true) instrunction also never executes. So what ever I do on nil case it's not executed.
<shevy> .inil?
<Klamber|ext> nil? sorry.
<jhass> that sounds rather unlikely
<Klamber|ext> I'll show you my code..
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> probably missing that they're doing another method call
<apeiros> yes please :)
<jhass> yeah, can you make a runnable github repo or so?
yosafbridge has joined #ruby
<shevy> code that shows the error!
<[k-> shevy, you can . in Ruby
<Klamber|ext> This is a jekyll module so I would probably have to make a jekyll site ?
<shevy> ack
roxtrong_ has joined #ruby
<Klamber|ext> So yes ?
<jhass> whatever you do to produce your error, I want to be able to do the same
chills42 has quit [Remote host closed the connection]
crack_user has quit [Quit: Leaving.]
<[k-> >> class Foo; def call(*args); args; end end; Foo.new.("hi", "shevy")
<ruboto> [k- # => ["hi", "shevy"] (https://eval.in/437407)
<[k-> notice the last part
<jhass> I think this is beyond staring upon it, gotta throw a debugger into it
bigmac has quit [Ping timeout: 252 seconds]
bigkevmcd has joined #ruby
elperdut has joined #ruby
Rickmasta has joined #ruby
moeabdol1 has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
elperdut has quit [Max SendQ exceeded]
roxtrongo has quit [Ping timeout: 246 seconds]
bigmac has joined #ruby
elperdut has joined #ruby
allcentury has joined #ruby
<shevy> [k- hmm
skweek has joined #ruby
chris6131 has joined #ruby
<[k-> don't you hmmm me!
Olipro has joined #ruby
banister_ has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ArnaudM has joined #ruby
Macaveli has joined #ruby
rurik has left #ruby ["Leaving"]
<ArnaudM> Hey I can't join #rails
<ArnaudM> any idea about that ?
<jhass> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ArnaudM> damned thx
Musashi007 has joined #ruby
<shevy> ruboto is like the bot in Interstellar
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Skelz0r_ has quit [Ping timeout: 255 seconds]
OrbitalKitten has joined #ruby
charliesome has joined #ruby
yottanami has quit [Ping timeout: 252 seconds]
<shevy> but in shiny red :>
iceyec has joined #ruby
<certainty> ??
<certainty> worth a try xD
karapetyan has quit [Ping timeout: 264 seconds]
<[k-> that is a valid String
<[k-> >> ??
<ruboto> [k- # => "?" (https://eval.in/437414)
<[k-> tada!
<shevy> damn
bigmac has quit [Ping timeout: 244 seconds]
<certainty> hmm?
sharkman has quit [Ping timeout: 240 seconds]
jgt has quit [Ping timeout: 246 seconds]
yottanami has joined #ruby
sepp2k has joined #ruby
sanjayu has quit [Ping timeout: 240 seconds]
SOLDIERz_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
karapetyan has joined #ruby
bigmac has joined #ruby
sgambino has joined #ruby
devoldmx has quit [Remote host closed the connection]
startupality has joined #ruby
jgt has joined #ruby
favadi has joined #ruby
SOLDIERz has quit [Ping timeout: 268 seconds]
<shevy> the ?? is a string
<shevy> I would not have noticed that with my eyes alone
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
iceyec has quit [Remote host closed the connection]
<shevy> certainty wish me luck
<certainty> shevy: what for?
<shevy> I have to generate a dump from a .cgi file, into .html, into .pdf
<certainty> >> ?a
<ruboto> certainty # => "a" (https://eval.in/437415)
<certainty> see shevy
iceyec has joined #ruby
<certainty> shevy: good luck!
xet7 has quit [Quit: Leaving]
<shevy> yeah but that was less surprising strangely enough
chouhoulis has joined #ruby
<shevy> since there was another character
<shevy> >> ?!
<ruboto> shevy # => "!" (https://eval.in/437416)
<shevy> hmm
<[k-> ruby can do anything
<[k-> >> [?$, ?™, ?℅, ?♪, ?/, ?\]
<ruboto> [k- # => /tmp/execpad-e289d4eb3807/source-e289d4eb3807:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/437417)
<certainty> xD
<[k-> dumb \
s00pcan has quit [Ping timeout: 252 seconds]
<certainty> ?\] is the problem
<[k-> [?$, ?™, ?℅, ?♪, ?/, ?,]
<certainty> probably
jgt has quit [Ping timeout: 250 seconds]
<[k-> >> [?$, ?™, ?℅, ?♪, ?/, ?,]
<ruboto> [k- # => ["$", "™", "℅", "♪", "/", ","] (https://eval.in/437418)
<certainty> >> [?$, ?™, ?℅, ?♪, ?/, ?\ ]
<ruboto> certainty # => ["$", "™", "℅", "♪", "/", " "] (https://eval.in/437419)
<certainty> the parser chokes on that one
CloCkWeRX has joined #ruby
<jhass> >> [?\\]
<ruboto> jhass # => ["\\"] (https://eval.in/437420)
<certainty> yepp
s00pcan has joined #ruby
tkuchiki has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
p0wn3d__ has joined #ruby
kidoz_ has quit [Quit: Ухожу я от вас]
dhjondoh has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 240 seconds]
ArnaudM is now known as ArnaudM_
OrbitalKitten has joined #ruby
bruno- has joined #ruby
soc42 has quit [Remote host closed the connection]
mprelude has joined #ruby
User458764 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
amystephen has joined #ruby
tkuchiki has joined #ruby
DmitryBochkarev has quit [Read error: Connection reset by peer]
jcoe has joined #ruby
ebragaparah has joined #ruby
ebragaparah has quit [Remote host closed the connection]
sharkman has joined #ruby
favadi has joined #ruby
favadi has quit [Client Quit]
ebragaparah has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
DmitryBochkarev has joined #ruby
jgt has joined #ruby
p0wn3d__ has quit [Ping timeout: 240 seconds]
JoshL has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
tkuchiki has joined #ruby
<shevy> ewww
chris6131 has quit [Quit: Leaving.]
<[k-> your face is ewww!
workmad3 has joined #ruby
devoldmx has quit [Remote host closed the connection]
gremly has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
kirun_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
niro has joined #ruby
ta has quit [Ping timeout: 264 seconds]
kirun has quit [Ping timeout: 252 seconds]
allcentury has quit [Ping timeout: 246 seconds]
bruno- has quit [Quit: Lost terminal]
iceyec has quit [Remote host closed the connection]
nettoweb has joined #ruby
bruno- has joined #ruby
evanjs has joined #ruby
rikkipitt has joined #ruby
krz has quit [Ping timeout: 255 seconds]
benlovell has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
tjbiddle has joined #ruby
iceyec has joined #ruby
arup_r has quit []
jeffreylevesque has joined #ruby
whippythellama has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
emilkarl has quit [Quit: emilkarl]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
suchness has quit [Remote host closed the connection]
suchness has joined #ruby
bkulbida has joined #ruby
casadei_ has joined #ruby
mrrobot_ has joined #ruby
<mrrobot_> Hi. Can someone explain what symbols are in Ruby in the simplest way possible?
<[k-> strings that save memory (from repetition)
Kendos-Kenlen_ has joined #ruby
<[k-> basically, immutable strings
Kendos-Kenlen has quit [Ping timeout: 256 seconds]
<mrrobot_> [k-: Why are they used in hashes?
ta has joined #ruby
Kendos-Kenlen_ has quit [Client Quit]
andyrs has quit [Quit: I'm leaving now, bye.]
emilkarl has joined #ruby
<yorickpeterse> mrrobot_: because Hash keys often re-occur
<yorickpeterse> it's also a tad shorter to type
<mrrobot_> yorickpeterse: So a symbol is basically like an integer but it's a string?
Ropeney has joined #ruby
lidenbrock has joined #ruby
iamninja has joined #ruby
emilkarl has quit [Client Quit]
Ropeney has quit [Client Quit]
spcmastertim has joined #ruby
<Sou|cutter> also it's bad to mutate a hash key, at least if it changes its hash
jeffreylevesque_ has joined #ruby
<yorickpeterse> mrrobot_: that's a with like comparing apples and pears
victortyau has joined #ruby
<yorickpeterse> Symbols are immutable strings of which the memory is not freed prior to 2.2.0
renderful has joined #ruby
<yorickpeterse> Even starting with 2.2.0 the memory of some symbols may be freed
sanguisdex has joined #ruby
sanguisdex has left #ruby [#ruby]
emilkarl has joined #ruby
chris6131 has joined #ruby
<[k-> it might be worthy to mention that this was done because people were carrying out dos attacks on ruby servers by exploiting the creation of symbols
lidenbrock has quit [Client Quit]
<mrrobot_> yorickpeterse: So if I have a hash with a key of :sample_key, there's only 1 of this key in memory regardless of how many times it's mentioned in the code?
jeffreylevesque has quit [Ping timeout: 260 seconds]
<[k-> Sou|cutter: hash stores a frozen copy of the key
<[k-> it cannot be modified
<[k-> by copy i mean a copy
<hoylemd> Hey, quick question: do blocks return values? e.g. `result = do\n a = 5\n b = 3\n a + b\nend`
<[k-> an actual copy
<Sou|cutter> [k-: is that right...
<[k-> yes, the last expression is returned
jeffreylevesque_ is now known as jeffreylevesque
allcentury has joined #ruby
<[k-> do you question my knowledge?!??!!
<Sou|cutter> [k-: nope!
<centrx> moran
<[k-> tell him yorickpeterse!
<hoylemd> test
mrrobot_ has quit [Quit: Page closed]
iceyec has quit [Remote host closed the connection]
hoylemd has left #ruby [#ruby]
iamninja has quit [Ping timeout: 264 seconds]
hoylemd has joined #ruby
<hoylemd> Hey, quick question: do blocks return values? e.g. `result = do\n a = 5\n b = 3\n a + b\nend`
<jhass> >> {Object.new => 1}.keys.first.frozen? # Sou|cutter always question [k-'s knowledge
<ruboto> jhass # => false (https://eval.in/437456)
<apeiros> [k-: Hash only copies and freezes string keys
renderful has quit [Ping timeout: 240 seconds]
iceyec has joined #ruby
<apeiros> >> {"foo" => 1}.keys.first.frozen?
<ruboto> apeiros # => true (https://eval.in/437457)
<apeiros> and jhass showed the other part :)
<jhass> hoylemd: yes but they're not a standalone construct like that, they need to be passed to a method
iceyec has quit [Client Quit]
<jhass> hoylemd: you begin/end to group expressions like that
<Sou|cutter> I feel betrayed
iceyec has joined #ruby
<Sou|cutter> thanks apeiros / jhass
<apeiros> (and no, I've no idea why String keys are special cased like that in ruby)
<apeiros> *in ruby hashes
Narzew has joined #ruby
<hoylemd> ah, darn. I was hoping they could be like super convenient inline lambdas. This makes sense though. Thanks!
<Sou|cutter> TBH I think Strings should be immutable by default, like in Java
<[k-> i was partially right!
last_staff has quit [Quit: last_staff]
<jhass> hoylemd: lambda literal is -> { ... } btw
<[k-> i think it's because you can't dup certain things with certainty :)
<certainty> apeiros: because they're not immutable :) messing with the string used as a key would make them address a different record
iceyec has quit [Remote host closed the connection]
<certainty> sure you can dup with me
iceyec has joined #ruby
Kendos-Kenlen has joined #ruby
<[k-> in the literal meaning
darkf has quit [Quit: Leaving]
iceyec has quit [Remote host closed the connection]
<certainty> apeiros: sorry misinterpreted your last sentence. Now that i read the backlog :/
<apeiros> certainty: it's still a special casing. no other object is treated like that.
<certainty> yepp, just figured that that is what you were saying
<apeiros> :)
<jhass> apeiros: guess somebody contrived a benchmark demonstrating the benefit or something
iceyec has joined #ruby
<[k-> also, strings are so common
<[k-> (and lightweight)
<Sou|cutter> I never trust microbenchmarks
bruno- has quit [Quit: Lost terminal]
lkba has joined #ruby
<[k-> so they won't blow up the memory
<[k-> like some database
beauby has joined #ruby
dopie has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
benlieb has joined #ruby
<hoylemd> jhass: Oh, that might be what I'm looking for, actually...
yottanami has quit [Ping timeout: 264 seconds]
Joffily has joined #ruby
duggiefresh has joined #ruby
Joffily has quit [Max SendQ exceeded]
bigmac has quit [Ping timeout: 250 seconds]
iceyec has quit [Remote host closed the connection]
hadrig has quit []
iceyec has joined #ruby
Salehi has quit [Quit: Leaving]
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
iceyec has quit [Remote host closed the connection]
jcoe has quit [Read error: Connection reset by peer]
iceyec has joined #ruby
<Klamber|ext> Ok. I'm back now with a simple Jekyll site that demonstrates my problem. In the _plugins directory is my code that has the comments and explanations.
terabytes has quit []
bigmac has joined #ruby
<Klamber|ext> Wait.. copy paste misfortune
prestorium has quit [Ping timeout: 272 seconds]
<[k-> ?fortunecookie -> $my?cookie
<ruboto> ->, I don't know anything about fortunecookie
jeffreylevesque_ has joined #ruby
<certainty> apeiros: it might be because strings actually change the value of #hash if the content changes. Other objects don't do this. You can set ivars or add/remove methods, it will not affect the value of #hash on that object afair
<certainty> so it's kind of reasonable to special case for strings
davedev24 has joined #ruby
bruno- has joined #ruby
<certainty> first copy then make sure it never changes
<certainty> because it would mess with the internal consistency of the hashtable
<certainty> am i talking bs?
<[k-> what's that - doing over there by itself near the end?
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
<[k-> >> str = "1"; [str.object_id, str.hash, str.replace("2").object_id, str.hash]
<ruboto> [k- # => [544552890, -537927102, 544552890, 1016155920] (https://eval.in/437460)
workmad3 has joined #ruby
<[k-> interesting, interesting
jeffreylevesque has quit [Ping timeout: 255 seconds]
dcarmich has joined #ruby
NeverDie has joined #ruby
<[k-> oooo dear, Klamber|ext, dont use tabs!
Musashi007 has quit [Quit: Musashi007]
<[k-> ^ apeiros, do you have a case for that?
moeabdol1 has quit [Quit: WeeChat 1.3]
tjohnson has joined #ruby
bigbadbear has joined #ruby
Joffily has joined #ruby
<[k-> ok, now to impart some good coding skills!
Exuma has joined #ruby
iceyec has quit [Remote host closed the connection]
<jhass> current_page is {"layout"=>"default", "title"=>"Page 6", "content"=>"Does not belong to the testcat category.\n", "dir"=>"/some-pages", "name"=>"6-page.md", "path"=>"some-pages/6-page.md", "url"=>"/some-pages/6-page.html"}
<apeiros> [k-: what do you mean, case for what?
iceyec has joined #ruby
Joffily has left #ruby [#ruby]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 250 seconds]
dopamean_ has quit [Ping timeout: 252 seconds]
yottanami has joined #ruby
<[k-> the nick!
<apeiros> I don't follow
<Klamber|ext> [k-: Not really sure. Jekyll has the example like that. Removing it makes no difference also not an expert on YAML.
tacit7 has joined #ruby
paulcsmith has joined #ruby
<[k-> apeiros: the nick detecting regexp!
<jhass> Klamber|ext: http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150922_161005.png there's your "TITLE IS NIL"
<[k-> &ri Array#select @Klambler|ext
<apeiros> [k-: it'll not count as "addressed person", but it'll be in the "mentions" list
<[k-> but im addressing him!
<Klamber|ext> [k-: Why not use tabs ?
<[k-> ?tabs
<ruboto> I don't know anything about tabs
<[k-> why dont we have that?!
<[k-> it's a common source of mistakes!
<Klamber|ext> jhass: Is this running in Jekyll ?
iceyec has quit [Remote host closed the connection]
<jhass> yes
yosafbridge has quit [Ping timeout: 246 seconds]
iceyec has joined #ruby
Kricir has joined #ruby
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
yottanami_ has joined #ruby
kies^ has joined #ruby
<Klamber|ext> (So mutch scrolling... )
<certainty> apeiros: does my guess about why strings are special cased like that sound reasonable or am i wrong here?
krisquigley has quit [Remote host closed the connection]
<apeiros> certainty: sorry, I might have missed it. lemme see…
<Klamber|ext> [k-: So Tabs are source of mistakes in Ruby ?
<apeiros> 16:01 certainty: apeiros: it might be because strings actually change the value of #hash if the content changes. Other objects don't do this. You can set ivars or add/remove methods, it will not affect the value of #hash on that object afair
<apeiros> this?
<certainty> yeah this one
<apeiros> ok, no. that's wrong.
<apeiros> other objects change their #hash too
bigmac has quit [Ping timeout: 250 seconds]
yottanami has quit [Ping timeout: 240 seconds]
<apeiros> #hash and #eql? are in tandem
sharky has joined #ruby
freerobby has joined #ruby
jenrzzz has joined #ruby
<apeiros> if an object's #eql? changes depending on its attributes, then so will its #hash
<certainty> hmm i thought i've checked that
<sharky> i am a sharkman
jeffreylevesque has joined #ruby
AlphaAtom has joined #ruby
<apeiros> certainty: note that Object#eql? uses identity, i.e. is an alias of equal?
<apeiros> so Object#eql? and Object#hash won't change when attributes change
devoldmx has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 246 seconds]
<[k-> Klamber|ext: tabs are a source of mistake in, like, almost everywhere
tkuchiki_ has quit [Remote host closed the connection]
Meow-J has joined #ruby
<certainty> apeiros: can you give a case when it changes?
yosafbridge has joined #ruby
<[k-> why would Object use eql? as equal?
<[k-> that makes no sense
iceyec has quit [Remote host closed the connection]
<Klamber|ext> [k-: How can tab cause error as it's a character like a space.
<apeiros> >> a = [1,2,3]; before = a.hash; a.pop; after = a.hash; [before, after]
<ruboto> apeiros # => [220937709, -319247676] (https://eval.in/437463)
<apeiros> certainty: ^
iceyec has joined #ruby
<certainty> apeiros: ok i see
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Klamber|ext> [k-: yes YAMS don't like them... thats the only case I have seen tabs not liked... or some GNU style guides..
<apeiros> [k-: makes perfect sense
<[k-> howwww
<[k-> whyyyyy
<apeiros> it's the strictest kind of comparison
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> so if you want less strict comparison, you have to implement it
<Klamber|ext> [k-: And also the problem on page 6 is that I have not accounted for categorys being nill yet. Why does it give me the nil error on page 1 for example ?
<apeiros> sane default.
jenrzzz has quit [Ping timeout: 260 seconds]
sharkman has quit [Quit: Leaving]
<[k-> ohhhhhh
tkuchiki has joined #ruby
AlphaAtom has quit [Ping timeout: 268 seconds]
<[k-> Klamber|ext: you'd have to ask jhass!
alphaatom|pc has joined #ruby
jeffreylevesque_ has joined #ruby
<Klamber|ext> Sorry...
devoldmx has quit [Ping timeout: 272 seconds]
<jhass> Klamber|ext: it doesn't, it compiles all pages
dorei has joined #ruby
jcoe has joined #ruby
jeffreylevesque has quit [Ping timeout: 252 seconds]
yottanami__ has joined #ruby
<Klamber|ext> But the TEST 3 has no output that says "TITLE IS NIL" ...
<jhass> so?
bigmac has joined #ruby
<Klamber|ext> Does that TEST 3 compile aswell ?
araujo_ has joined #ruby
tejasmanohar has joined #ruby
araujo_ has quit [Max SendQ exceeded]
chouhoulis has joined #ruby
<certainty> apeiros: it's rather unusual for an object to change its #hash though right? the examples i can think of are hash,set,array etc. which are kind of defined by their structure. Not so much in terms of ivars. So it's kind of intuitive that these kinds of objects change
<certainty> don't know how to phrase that better
yottanami_ has quit [Ping timeout: 240 seconds]
<certainty> thanks for the explanation
araujo_ has joined #ruby
rbennacer has joined #ruby
araujo_ has quit [Read error: Connection reset by peer]
<jhass> Klamber|ext: test 3 is not in the same "category"
<Klamber|ext> jhass: Why so ?
<jhass> because the category is the there's no category
<jhass> and the only items of it are feed.yml and page 6
jas02 has quit [Quit: jas02]
havenwood has joined #ruby
<apeiros> certainty: not the least unusual. I expect every mutable object to change its #hash.
araujo has quit [Ping timeout: 244 seconds]
<Klamber|ext> jhass: Wait.. so since feed.yml and Page 6 belong to category nil (let's say so) and feed toes not have title then it gives me the error ?
Gachr has joined #ruby
<apeiros> as said, if a change to the object means it's not considered to be eql? to a copy of its previous state, then its #hash *must* change.
UtkarshRay has joined #ruby
jeffreylevesque has joined #ruby
<Gachr> Hi everyone.
araujo has joined #ruby
<apeiros> hi Gachr
voltalio has joined #ruby
araujo has quit [Max SendQ exceeded]
ckuhn has joined #ruby
ckuhn has quit [Client Quit]
<[k-> sometimes i wish Object was just called Obj (i just thought of this today)
jeffreylevesque_ has quit [Ping timeout: 246 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Klamber|ext> Man, i feel sutch an Idiot right now. Thanks everyone for putting up with this. (I'll look more into how jekyll does what it's doing.)
banister has joined #ruby
araujo has joined #ruby
ckuhn has joined #ruby
<ckuhn> ls
<ckuhn> Oops, this isnt bash
araujo has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
alexUaN has quit [Ping timeout: 246 seconds]
Exuma has quit [Read error: Connection reset by peer]
<jhass> Klamber|ext: yes
<Klamber|ext> jhass: Thanks.
araujo has joined #ruby
alexUaN has joined #ruby
freerobby has joined #ruby
araujo has quit [Read error: Connection reset by peer]
<jhass> Klamber|ext: http://paste.mrzyx.de/pnyxkcrfw clean code version
skweek has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has quit [Ping timeout: 250 seconds]
Kendos-Kenlen has joined #ruby
UtkarshRay has quit [Ping timeout: 240 seconds]
<Klamber|ext> jhass: I'll learn on it.
tjbiddle has quit [Quit: tjbiddle]
tejasmanohar_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
araujo has joined #ruby
karapetyan has joined #ruby
Respek has joined #ruby
dopamean_ has joined #ruby
elperdut has joined #ruby
yottanami__ has quit [Quit: Leaving]
tejasmanohar has quit [Ping timeout: 240 seconds]
tejasmanohar_ is now known as tejasmanohar
JoshL has quit []
workmad3 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
rvchangue has joined #ruby
skweek has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
webguynow has quit [Ping timeout: 260 seconds]
platzhirsch has left #ruby [#ruby]
jeffreylevesque has quit [Read error: Connection reset by peer]
krz has joined #ruby
<shevy> if you people have several include statements
<shevy> do you sort them alphabetically? :D
emilkarl has quit [Quit: emilkarl]
<ankr> yes
<[k-> no, too much worj
<[k-> k
beauby has quit [Ping timeout: 260 seconds]
decoponio has quit [Ping timeout: 250 seconds]
<Klamber|ext> shevy: Your editor can probably do that
youngbaks has quit [Ping timeout: 252 seconds]
karapetyan has quit [Remote host closed the connection]
<Klamber|ext> I select a block and press F9 - all work done..
<Papierkorb> shevy: I sort them first by length and then in alphabetical order. Doing that since C++. Helps to quickly find if something is included if you know its name and thus can estimate its position based on the names length
moeabdol has joined #ruby
jcoe has quit [Read error: Connection reset by peer]
momon has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momon has left #ruby [#ruby]
EllisTAA has joined #ruby
ckuhn has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 264 seconds]
kristofferR has joined #ruby
but3k4_ has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
SOLDIERz_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
rippa has joined #ruby
hashrocket has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bronson has joined #ruby
decoponio has joined #ruby
Rodya_ has joined #ruby
tomphp has joined #ruby
jeffreylevesque has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
dopie has joined #ruby
<shevy> Papierkorb lol
<shevy> well ok that is also sorting
<shevy> one could also just randomly add includes
workmad3 has joined #ruby
beauby has joined #ruby
ebragaparah has quit [Remote host closed the connection]
deject3d has joined #ruby
<[k-> you can definitely do that in Ruby
alexUaN has quit [Quit: alexUaN]
solars has quit [Ping timeout: 255 seconds]
<Papierkorb> Well here most things are autoloaded, so less need to put structure into it
<Papierkorb> You think differently when you need to #include much stuff manually in a lot of files
<sharky> how do i access the text in this matchdata object, /^.+Top of 2nd/i.match(self.plays)
<sharky> oh its like an array, [0]. weird
ankr has quit [Quit: bye bye]
pawnbox has quit [Remote host closed the connection]
iceyec has quit [Remote host closed the connection]
drewvanstone has joined #ruby
nuck has quit [Ping timeout: 252 seconds]
iceyec has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
roxtrong_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
karapetyan has joined #ruby
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
codecop has joined #ruby
nettoweb has quit [Ping timeout: 255 seconds]
banister has quit [Read error: Connection reset by peer]
andikr has quit [Read error: Connection reset by peer]
<apeiros> sharky: it's a MatchData instance. you can use .class to figure that out.
<sharky> oh i see
fertapric has joined #ruby
fierycatnet has joined #ruby
vjdhama has joined #ruby
fertapric has quit [Remote host closed the connection]
eminencehc has joined #ruby
nettoweb has joined #ruby
bronson has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
lulzmachine has quit [Quit: Connection closed for inactivity]
vjdhama has quit [Remote host closed the connection]
andrew-l has joined #ruby
krisquigley has joined #ruby
psy has joined #ruby
rikkipitt has quit [Ping timeout: 264 seconds]
psy has quit [Max SendQ exceeded]
vjdhama has joined #ruby
psy has joined #ruby
snockerton has joined #ruby
pecpec_ has quit [Remote host closed the connection]
pecpec has joined #ruby
SylarRuby has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
<sharky> dummies/.scan(irc ruby channel)
<sharky> hold on the page is about to overflow with text
User458764 has joined #ruby
SenpaiSilver has joined #ruby
nickjj has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
andyrs has joined #ruby
schlubbi has quit [Remote host closed the connection]
polishdub has joined #ruby
vjdhama has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
pecpec has quit [Ping timeout: 268 seconds]
hs366 has quit [Read error: Connection reset by peer]
mwlang has joined #ruby
eminencehc has joined #ruby
rcvalle has joined #ruby
<andrew-l> hi, is anyone here familiar with ruby Threads? I'm looking for an explanation of code i'm using
[k- has quit [Ping timeout: 256 seconds]
evanjs has quit [Remote host closed the connection]
<havenwood> andrew-l: Yes, there are folk here who are familiar with Threads. Ask away!
platzhirsch has joined #ruby
evanjs has joined #ruby
circ-user-7dItm has joined #ruby
<havenwood> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<andrew-l> I'm working with this code: https://github.com/heroku-examples/ruby-websockets-chat-demo/blob/master/middlewares/chat_backend.rb and just not sure how Thread.new is running (or not running) with the redis.subscribe part
dfockler has joined #ruby
<andrew-l> at line 17
<sharky> whats the VIM command to delete all the white space going backwards until i reach non-whitespace
karapetyan has quit [Remote host closed the connection]
<havenwood> sharky: Wrong channel?
<sharky> oh sorry i thought it was related
<sharky> i thought maybe people coded ruby in VIM
karapetyan has joined #ruby
<andrew-l> I understand Thread.new creates a new thread, but it doesn't look like it's running, but when i throw a message into the redis channel, the message is processed.
ArnaudM_ has left #ruby ["."]
<andrew-l> sharky: emacs user checking in :-)
<suchness> sharky: d^ will delete from current backward to first non-white-space character
<andrew-l> (from erc = emacs irc)
<havenwood> sharky: We also drink coffee and tea and eat chunky bacon. But only the bacon is ontopic.
<shevy> use a better editor people
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<andrew-l> shevy: uh oh... editor flame war on?! :-)
SCHAAP137 has quit [Remote host closed the connection]
<shevy> what flame war
iamninja has joined #ruby
<Sou|cutter> >> class A; class B; end; end; A.const_defined?(:B, false)
<ruboto> Sou|cutter # => true (https://eval.in/437534)
<andrew-l> shevy: nvm. i'm happy with mine.
<dfockler> andrew-l: Are you using Thread#join?
<Sou|cutter> >> Class.new { class B; end }.const_defined?(:B, false)
<ruboto> Sou|cutter # => false (https://eval.in/437535)
zenguy_pc has quit [Ping timeout: 255 seconds]
<havenwood> andrew-l: A new thread is created that executes the block between `do` and `end`.
tkuchiki has joined #ruby
<havenwood> andrew-l: Have more specific questions? Or just wondering about threading in general?
<andrew-l> havenwood: yes, wondering about threading in general.
<andrew-l> just want to get a better understanding of the code
<Sou|cutter> ^^ where is B defined that it's inherited?
<Sou|cutter> (in the 2nd example)
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<havenwood> andrew-l: Here's an ebook if you're looking for a well-written introduction: http://www.jstorimer.com/products/working-with-ruby-threads
momomomomo has quit [Quit: momomomomo]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<andrew-l> havenwood: thanks. i'll check it out too.
<andrew-l> but in this case, the thread is running even though it's not explictly called?
<havenwood> andrew-l: The docs are worth reading but are pretty cryptic if you're not familiar: http://ruby-doc.org/core/Thread.html
<havenwood> andrew-l: See the docs for Thread::new: http://ruby-doc.org/core/Thread.html#method-c-new
karapetyan has quit [Remote host closed the connection]
<Sou|cutter> Whoa, it's defined at the top-level
<shevy> alais string dataset
<shevy> who spots the error!!!
karapetyan has joined #ruby
<andrew-l> havenwood: aaah ok. thanks, i see what's going on. the thread is just running all the time on the redis.subscribe method.
tkuchiki has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 264 seconds]
<Sou|cutter> Is there a way to define a nested class within an anonymous class?
<havenwood> andrew-l: Some good rules for threading to keep in mind: https://github.com/jruby/jruby/wiki/Concurrency-in-jruby#concurrency-basics
<andrew-l> havenwood: thanks!
<havenwood> andrew-l: Yeah, a single new Thread is created when ChatDemo::ChatBackend.new is called. You're welcome!
yfeldblum has joined #ruby
jobewan has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
<andrew-l> havenwood: just wondering, if there were multiple instances, each would have its own thread for the redis.subscribe and each would process whatever message published into that redis queue?
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Narzew has quit [Ping timeout: 246 seconds]
<andrew-l> (i'm wondering when there's multiple rails server with this app, would they be synchronized using this method or would i have to implement another method to sync/execute)
vjdhama has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
startupality has quit [Quit: startupality]
psy has quit [Ping timeout: 246 seconds]
InternetFriend has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 272 seconds]
<Sou|cutter> ah ha! I got it
Asher has quit [Quit: Leaving.]
rbennacer has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
<Sou|cutter> >> Class.new { const_set(:B, Class.new) }.const_defined?(:B, false)
<ruboto> Sou|cutter # => true (https://eval.in/437542)
<Sou|cutter> not sure if there's a better way
<havenwood> andrew-l: Are they sharing unsynchronized access to mutable data? I'm not sure I understand what you're asking. Do make sure there are fewer threads spawned at a given time than the number of maximum system threads allowed.
<havenwood> andrew-l: To illustrate in irb try: 1.upto(Float::INFINITY) { |n| puts "Spawning Thread #{n} ..."; Thread.new { sleep } }
<havenwood> andrew-l: On this box I get to: Spawning Thread 2047 ...
<havenwood> andrew-l: Then: ThreadError: can't create Thread: Resource temporarily unavailable
mjuszczak has joined #ruby
<havenwood> exit
<andrew-l> havenwood: well, not about the threads themselves, but synchronizing message sending across instances.
<havenwood> andrew-l: Looks like you're using Redis for that? Or this demo is rather.
startupality has joined #ruby
<andrew-l> havenwood: yes, i've based my implementation on this demo.
<havenwood> aha
<andrew-l> and was wondering about when we get more instances, will the instances be in sync
karapetyan has quit [Remote host closed the connection]
<andrew-l> (i.e. on heroku)
<havenwood> andrew-l: What do you mean by sync?
blackmesa has joined #ruby
<andrew-l> will each websocket client receive the message published to the redis, even if the clients are connected different instances
<andrew-l> ?
<havenwood> andrew-l: I've got to go (call then must relocate) but keep asking here and I'm sure you'll find answers.
ebragaparah has joined #ruby
<andrew-l> havenwood: thanks for the help!
<havenwood> andrew-l: Or ask me again later, but I'm sure someone will beat me to it.
<andrew-l> it's nice to get pointed in the right direction.
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Quit: Leaving.]
but3k4_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
rikkipitt has joined #ruby
<shevy> when you use .cgi ... does anyone remember how to find out the name of the file that is requested? like index.cgi
<shevy> I think I may have found it ... SCRIPT_NAME
<dfockler> andrew-l: from the looks of the code, each client will receive the message if it's sent to the correct channel
Kendos-Kenlen has quit [Quit: Konversation terminated!]
NeverDie has quit [Quit: http://radiux.io/]
eminencehc has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 256 seconds]
<andrew-l> dfockler: thanks. I reasoned that out but just wanted to double check my reasoning
Klamber|ext has quit [Quit: Lost terminal]
towski_ has joined #ruby
bricker has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
pwnd_nfsw has joined #ruby
Rodya_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
Narzew has joined #ruby
iceyec has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
rodfersou has quit [Quit: leaving]
eminencehc has joined #ruby
rbennacer has joined #ruby
dima_ has joined #ruby
iceyec has joined #ruby
amclain has joined #ruby
tacit7 has quit [Ping timeout: 255 seconds]
Gachr has quit [Quit: Leaving]
beast has joined #ruby
andyrs has quit [Ping timeout: 240 seconds]
<shevy> alright so my experiment did not work
garyst1981 has joined #ruby
<shevy> I have a big html string... is there any simple way to convert this into a .pdf that will at least look somewhat familiar to the layout?
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stan has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
<andrew-l> shevy: have you tried Prawn?
deject3d has quit [Quit: Computer has gone to sleep.]
<shevy> yeah I am using it to generate the .pdf in question
SCHAAP137 has joined #ruby
<andrew-l> and you only have HTML strings to work from?
Klamber|ext has joined #ruby
<shevy> yeah, with the css style and classes all in the file
CloCkWeRX has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
<andrew-l> hmm... is this from sinatra or rails?
VeryBewitching has joined #ruby
<shevy> no
<andrew-l> just ruby?
<shevy> erm
<shevy> I am using ruby; the html is generated. I just need a conversion from html to pdf :D
n008f4g_ has joined #ruby
<Klamber|ext> N00b question coming through: How do you call this in Ruby %( <text> ) so I could go and read about it.
<andrew-l> hmm... let me look in an old project. i might have had the same problem
<shevy> Klamber|ext I think this is %Q
<shevy> might be another shortcut though
<shevy> >> %( <text> )
<ruboto> shevy # => " <text> " (https://eval.in/437543)
User458764 has joined #ruby
<shevy> so you have a string there
<shevy> >> %Q( <text> )
<ruboto> shevy # => " <text> " (https://eval.in/437544)
User458764 has quit [Max SendQ exceeded]
<shevy> yay I was right \o/
rikkipitt has quit [Remote host closed the connection]
<shevy> I guess they are format specifiers? not sure what their official name is
<shevy> you have %w() for array... %i or so for symbols.... and some more
eminencehc has quit [Remote host closed the connection]
mjuszczak has quit []
User458764 has joined #ruby
but3k4 has joined #ruby
rikkipitt has joined #ruby
<Klamber|ext> I can see in a code that it outputs text, but what is it and why is it useful. Give me a starting point for learning more ..
Lucky__ has joined #ruby
xMopxShell has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
mjuszczak has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
tuxero has joined #ruby
evanjs has quit [Remote host closed the connection]
<shevy> it may be useful when you have to use a lot of elements
<shevy> compare:
<shevy> ['abc','def','ghi']
<shevy> %w( abc def ghi )
<shevy> so which variant do you prefer to type!
devoldmx has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
<shevy> I don't know why in your case the person used %( <text> ), he could have just done ' <text> '
andyrs has joined #ruby
<shevy> I also don't know why he wanted to preserve the ' '
<shevy> or perhaps he was a noob
meatherly has quit [Ping timeout: 244 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<andrew-l> shevy: have you tried: http://wkhtmltopdf.org/
<andrew-l> it basically takes the webkit rendering engine, renders it and outputs a PDF
maletor has joined #ruby
<Klamber|ext> shevy: I made just an example..
<shevy> andrew-l have not yet tried that
<shevy> I'll have a look thanks
<andrew-l> np
blackmesa has joined #ruby
einarj has quit [Remote host closed the connection]
garyst1981 has left #ruby [#ruby]
garyst1981 has joined #ruby
eminencehc has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
nanoz has joined #ruby
<shevy> wxkhtmltopdf is a funny dude
<Klamber|ext> dfockler: Thanks.
<shevy> that is the python install script he uses: https://gist.github.com/shevegen/88029a587d3c955d4d20
<shevy> people seem so happy to try and avoid GNU autoconfigure these days :)
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
Jackneill has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
eregon_ is now known as eregon
andyrs has quit [Ping timeout: 240 seconds]
<darix> shevy: that script is a bit more than the usual things covered in autotools things
blackmesa has quit [Ping timeout: 240 seconds]
NeverDie has joined #ruby
<shevy> yeah... almost 1300 lines :D
InternetFriend has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
ragingcake has joined #ruby
ngscheurich has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
rikkipitt has quit [Remote host closed the connection]
andyrs has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
renderful has joined #ruby
Soda has quit [Remote host closed the connection]
Technodrome has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> cool
mondayrain has joined #ruby
mondayrain has quit [Client Quit]
<shevy> andrew-l that seems to have worked
<platzhirsch> shevy: so you're studying biology?
dmolina has quit [Quit: Leaving.]
howdoico1 has joined #ruby
<andrew-l> shevy: awesome. that was pretty fast... and painless ;-)
<shevy> platzhirsch sorta, more in the past, currently more biochemistry/biotech/chemistry
<platzhirsch> nice
<shevy> andrew-l yeah... let me try to look at the .pdf first...
<shevy> I just realized that a black background is not ideal to read in a .pdf :\
<dfockler> haha
whippythellama has quit [Ping timeout: 250 seconds]
nzst has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<shevy> andrew-l - but, all the minor glitches aside... that is already better than what I have been able to come up with via html->prawn->pdf on my own... here is the rendered output... I can easily change the rest, it's css for the most part... http://shevegen.square7.ch/dia.pdf
krisquigley has joined #ruby
<shevy> but now I'm going to grab some food
freerobby has quit [Quit: Leaving.]
podman has joined #ruby
<centrx> shevy, glhf
stamina has quit [Quit: WeeChat 1.3]
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/]
psy_ has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
Kendos-Kenlen has joined #ruby
Kendos-Kenlen has quit [Client Quit]
greenarrow has quit [Quit: 500]
RobertBirnie has joined #ruby
zotherstupidguy has joined #ruby
nzst has joined #ruby
NeverDie has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
jeffreylevesque has quit [Ping timeout: 244 seconds]
nanoz has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
dima_ has quit [Quit: Leaving]
dima_ has joined #ruby
dima_ has quit [Client Quit]
tomphp has joined #ruby
dima_ has joined #ruby
dima_ has quit [Remote host closed the connection]
dima_ has joined #ruby
elperdut has joined #ruby
Balzrael has quit [Quit: Leaving]
whippythellama has joined #ruby
yqt has joined #ruby
Musashi007 has joined #ruby
cschnei__ has joined #ruby
imperator has joined #ruby
paulcsmith has joined #ruby
tacit7 has joined #ruby
workmad3 has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
evanjs has joined #ruby
ruurd has joined #ruby
skullcrasher has quit [Remote host closed the connection]
djbkd has joined #ruby
last_staff has quit [Quit: last_staff]
skweek has joined #ruby
voltalio has joined #ruby
evanjs has quit [Remote host closed the connection]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
iamninja has joined #ruby
ta has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
rakm has joined #ruby
casadei_ has quit [Remote host closed the connection]
leafybas_ has joined #ruby
AccordLTN has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
snockerton1 has joined #ruby
symm- has joined #ruby
FernandoBasso has joined #ruby
otacon- has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
jeffreylevesque has joined #ruby
fedexo has joined #ruby
InternetFriend has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
snockerton has quit [Ping timeout: 265 seconds]
rakm has quit [Ping timeout: 264 seconds]
leafybas_ has quit [Ping timeout: 246 seconds]
doddok has joined #ruby
jeffreylevesque_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
Rickmasta has joined #ruby
gregf has joined #ruby
dionysus69 has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
roxtrongo has joined #ruby
jeffreylevesque has quit [Ping timeout: 264 seconds]
jcoe has joined #ruby
dima_ has quit [Quit: Leaving]
AccordLTN has joined #ruby
mjuszczak has quit []
jschmid has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
SylarRuby has joined #ruby
FernandoBasso1 has joined #ruby
rbennacer has joined #ruby
<beauby> Let's say I'm inside a class method `self.m(x)` of a class `A`: what's a sound way to bind a new class named `"Class#{x}"`, namespaced inside `A`? I've been toying with stuff like `c = Class.new() do ... end; const_set("Class#{x}", c)` Is there an other way?
<platzhirsch> Interesting, why does
<platzhirsch> statement rescue 'success' not rescue on Interrupt?
<centrx> beauby, That seems like the best way
apt-get has joined #ruby
<centrx> platzhirsch, StandardError -- default for rescue
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx> platzhirsch, So rescue by default only gets Exceptions under StandardError
<platzhirsch> ah that makes sense
FernandoBasso has quit [Ping timeout: 255 seconds]
<beauby> Cool, now what if I'm doing this inside a module `M` included in the class `A`, and I want to define `"A::Class#{x}"`?
allomov has quit [Remote host closed the connection]
<beauby> Basically, how do I get ahold of the namespace of "execution"?
c0m0 has quit [Ping timeout: 240 seconds]
Billias has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
yeticry has joined #ruby
InternetFriend has joined #ruby
leafybasil has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
Billias has joined #ruby
jenrzzz has joined #ruby
devoldmx has joined #ruby
jeffreylevesque has joined #ruby
wildlander has joined #ruby
petricore has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
yfeldblum has joined #ruby
bruno- has joined #ruby
hanmac has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
cschnei__ has quit [Remote host closed the connection]
<Ox0dea> >> module Foo; class Bar; singleton_class.nesting; end end # beauby
<ruboto> Ox0dea # => [Foo::Bar, Foo] (https://eval.in/437621)
blackmesa has joined #ruby
eminencehc has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
jeffreylevesque_ has joined #ruby
<Ox0dea> I missed that you asked about a Module inside a Class, but that's largely moot.
yfeldblum has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
ekain has joined #ruby
<beauby> >> module Foo; def m(x); c = Class.new(); const_set("Class#{x}", c); end; end; class A; include Foo; def initialize; m("Hello"); p const_get("ClassHello").name; end; end; # Ox0dea
<ruboto> beauby # => :initialize (https://eval.in/437625)
bruno- has quit [Ping timeout: 246 seconds]
jeffreylevesque has quit [Ping timeout: 240 seconds]
Kruppe has quit [Quit: ZNC - http://znc.in]
bronson has joined #ruby
nickjj has joined #ruby
Kruppe has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
eminencehc has joined #ruby
skweek has joined #ruby
jcoe has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: Technodrome]
shinnya has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
ramfjord has joined #ruby
startupality has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
postmodern has joined #ruby
rehat has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
<Ox0dea> beauby: How's this? https://eval.in/437634
armyriad has joined #ruby
linduxed has quit [Ping timeout: 250 seconds]
<Ox0dea> I think I've missed some nuance of what exactly you're trying to do, but that should get you most of the way there.
bluntman has joined #ruby
PaulCapestany has quit [Quit: .]
wldcordeiro has joined #ruby
SylarRuby has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
Musashi007 has quit [Quit: Musashi007]
bruno- has joined #ruby
PaulCapestany has joined #ruby
Musashi007 has joined #ruby
jgt has joined #ruby
workmad3 has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 268 seconds]
futilegames has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
Steve_Jobs has joined #ruby
casadei_ has joined #ruby
tkuchiki has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
unop has quit [Ping timeout: 268 seconds]
<beauby> Ox0dea: Thanks, here is a more specific version of what I'm trying to achieve: https://eval.in/437650 (although it doesn't work)
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
howdoico1 has quit [Ping timeout: 255 seconds]
roxtrongo has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
hinbody has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 240 seconds]
bigmac has quit [Ping timeout: 256 seconds]
jeffreylevesque has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
yqt has quit [Ping timeout: 240 seconds]
willywos has joined #ruby
zotherstupidguy has quit [Client Quit]
<Ox0dea> beauby: Swapping `include Foo` for `extend Foo::ClassMethods` "works", but I suspect that's not the behavior you actually want.
segfalt has quit [Quit: segfalt]
<Ox0dea> Maybe say more about what exactly you're doing? Whence all this convolution?
blaxter has quit [Quit: foo]
symm- has quit [Quit: Leaving...]
NeverDie has quit [Quit: http://radiux.io/]
havenwood has joined #ruby
dyleted has joined #ruby
michaeldeol has joined #ruby
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
jeffreylevesque has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
NeverDie has joined #ruby
<beauby> Ox0dea: So Associations (https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model/serializer/associations.rb) is included in Serializer (https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model/serializer.rb). Usage is: Serializer is subclassed into, say, PostSerializer, in the definition of which `has_many` is called, and I want to define PostSerializer::My
jgt has quit [Ping timeout: 244 seconds]
<beauby> Class, dynamically from whithin `has_many`
dasher00 has joined #ruby
evanjs has joined #ruby
jeffreylevesque has joined #ruby
futilegames has left #ruby [#ruby]
<callumacrae> heya! i have previous experience in coding (but not ruby), can anyone recommend me a book that is short and concise that will teach me ruby?
freerobby has joined #ruby
<callumacrae> emphasis on short. I don't need a comprehensive explanation of absolutely everything, I just need to know enough that I can figure the rest out myself
<Ox0dea> callumacrae: learnxinyminutes.com/docs/ruby/
<beauby> callumacrae: I personally find books useful only once you have some experience with a techno, so I'd recommend you start building stuff in ruby/follow tutorials, but that's just my 2cts
jcoe has joined #ruby
<Ox0dea> beauby: I'm trying to see if there's some clever way to get everything in place with Module#prepend.
<beauby> Ox0dea: Awesome, thanks for taking the time
<callumacrae> Ox0dea: Thanks!
<callumacrae> beauby: I've been working at a ruby shop for over a year now so I've read my fair share of ruby, and written a few erb files myself, so the syntax isn't that unfamiliar anymore
eminencehc has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
bigmac has joined #ruby
<callumacrae> Also did tryruby.com or whatever it's called a while back
evanjs has quit [Ping timeout: 244 seconds]
<beauby> Ox0dea: Note that I don't want to override has_many, I actually want to do my stuff from within has_many
User458764 has joined #ruby
<Ox0dea> beauby: Module#prepend lets you "decorate" methods, so to speak.
casadei_ has quit [Remote host closed the connection]
shadoi has joined #ruby
<Ox0dea> You do your custom thing and then usually invoke `super`.
<beauby> Ox0dea: I see. I can actually modify the Associations file though, I just don't want to modify the structure of the file too much
<Ox0dea> Oh, I see.
TheHodge has quit [Quit: Connection closed for inactivity]
<beauby> Currently, when I do what we discussed it defines MyClass like ActiveModel::Serializer::Associations:ClassMethods::MyClass
imperator has quit [Quit: This computer has gone to sleep]
<Ox0dea> beauby: And you're sure it's not Module#nesting you're looking for?
karapetyan has joined #ruby
agent_meerkat has joined #ruby
face has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
face has joined #ruby
<beauby> Ox0dea: Well, no, because I'm calling has_many as follows: class PostSerializer < ActiveModel::Serializer; has_many :stuff; end, and PostSerializer is not present in the nesting chain
hahuang65 has joined #ruby
platzhirsch has quit [Remote host closed the connection]
<beauby> (ActiveModel::Serializer is, though)
dasher00 has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 255 seconds]
dasher00 has joined #ruby
decuser has joined #ruby
[Butch] has joined #ruby
<beauby> (Hence my initial question about the "namespace of the execution context")
Musashi007 has quit [Quit: Musashi007]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
youngbaks has joined #ruby
User458764 has joined #ruby
baweaver has joined #ruby
renderful has joined #ruby
einarj has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
segfalt has joined #ruby
einarj has quit [Remote host closed the connection]
ruurd has joined #ruby
krisquigley has joined #ruby
howdoico1 has joined #ruby
jenrzzz has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
jeffreylevesque_ has joined #ruby
decuser has quit [Quit: Leaving]
Hounddog has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
warreng has left #ruby [#ruby]
jeffreylevesque has quit [Ping timeout: 256 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
skweek has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
segfalt has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
yqt has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kadoppe has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
myotkyaw has joined #ruby
<myotkyaw> hello everyone
rezzack has joined #ruby
Wolland has joined #ruby
yfeldblum has quit [Remote host closed the connection]
polly_wog has joined #ruby
myotkyaw has left #ruby [#ruby]
kadoppe has joined #ruby
jcoe has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
suchness has quit [Ping timeout: 250 seconds]
evanjs has joined #ruby
snockerton1 has quit [Quit: Leaving.]
segfalt has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
dseitz has quit [Ping timeout: 268 seconds]
snockerton has joined #ruby
djbkd has joined #ruby
Xeago_ has joined #ruby
eminencehc has joined #ruby
Xeago_ has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
<beauby> Ox0dea: Nevermind, it actually works, I was probably doing something else wrong. Thanks for the time and the examples though!
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
dfockler has quit [Remote host closed the connection]
dseitz has joined #ruby
<Ox0dea> beauby: Ha. All right, then.
Musashi007 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
elperdut has joined #ruby
djbkd has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
DexterLB has quit [Ping timeout: 260 seconds]
DexterLB has joined #ruby
Andrey_ has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
andyrs has quit [Quit: leaving]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ericjphillips has joined #ruby
noethics has joined #ruby
imperator has joined #ruby
jeffreylevesque has quit [Ping timeout: 264 seconds]
roxtrongo has joined #ruby
j4cknewt has joined #ruby
tkuchiki has joined #ruby
allomov has joined #ruby
Xeago has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
freerobby has joined #ruby
michael_mbp has quit [Excess Flood]
EllisTAA has joined #ruby
EllisTAA has quit [Client Quit]
atmosx_laptop has joined #ruby
Konstruktionist has joined #ruby
cndiv has joined #ruby
tomaz_b has joined #ruby
rbennacer has quit [Remote host closed the connection]
michael_mbp has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
sanjayu has joined #ruby
pen has quit [Remote host closed the connection]
eminencehc has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has joined #ruby
cndiv has quit [Ping timeout: 250 seconds]
jeffreylevesque has joined #ruby
jenrzzz has joined #ruby
Andrey_ has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
ItSANgo has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 272 seconds]
ItSANgo has joined #ruby
cndiv has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
cyklOpz has joined #ruby
jeffreylevesque_ has joined #ruby
cyklOpz has quit []
benlovell has joined #ruby
dstarh has joined #ruby
Technodrome has quit [Quit: Technodrome]
sshuff|gone is now known as sshuff
jeffreylevesque has quit [Ping timeout: 240 seconds]
shadow has joined #ruby
j4cknewt_ has joined #ruby
shadow is now known as Guest69987
blackmesa has joined #ruby
<Guest69987> Hello
voltalio has joined #ruby
<adaedra> Hi
evanjs has quit [Remote host closed the connection]
<agent_meerkat> hi
djbkd has quit [Remote host closed the connection]
phutchins2 has quit [Ping timeout: 272 seconds]
Coldblackice has joined #ruby
lxsameer has joined #ruby
jeffreylevesque has joined #ruby
SylarRuby has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
jgt has joined #ruby
User458764 has joined #ruby
frmendes has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
dyleted has quit [Ping timeout: 240 seconds]
<atmosx_laptop> hello
ndrei has joined #ruby
Macaveli has joined #ruby
skweek has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
<Guest69987> Hello I forked a file from github then cloned it, I edited the view-layout file and am unable to view the results. I can't do rails s to see the server running nor push it back to github repository.
<centrx> atmosx_laptop, Are you related to atmosx?
<Guest69987> any idea why? Thanks
<atmosx_laptop> centrx: we're extremely close, but don't tell.
eminencehc has joined #ruby
spider-mario has joined #ruby
Soda has joined #ruby
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
HAL2328 has joined #ruby
HAL2328 has quit [Max SendQ exceeded]
djbkd has joined #ruby
jeffreylevesque has quit [Ping timeout: 272 seconds]
agent_meerkat has left #ruby [#ruby]
pen has joined #ruby
rbennacer has joined #ruby
j4cknewt_ has quit [Read error: Connection reset by peer]
Guest69987 is now known as chicagob2
Macaveli has quit [Ping timeout: 264 seconds]
cmisenas has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
<chicagob2> Hello I forked a file from github then cloned it, I edited the view-layout file and am unable to view the results. I can't do rails s to see the server running nor push it back to github repository.
<chicagob2> any idea why? Thanks
sharky has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby
pencilcheck has joined #ruby
cyklOpz has joined #ruby
pen has quit [Ping timeout: 240 seconds]
Stalkr_ has joined #ruby
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
<Sou|cutter> chicagob2: Are you a designer working with a team?
cyklOpz has quit [Client Quit]
cyklOpz has joined #ruby
casadei_ has joined #ruby
jenrzzz has joined #ruby
dfockler has joined #ruby
beast has quit [Quit: Leaving]
EmeraldExplorer has joined #ruby
craysiii has joined #ruby
<EmeraldExplorer> Hi
pwnd_nfsw has quit [Remote host closed the connection]
<dfockler> Hello
evanjs has joined #ruby
banjara has quit [Quit: Leaving.]
wldcordeiro has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
<EmeraldExplorer> I bet this is a stupid question, but what exactly does the colon mean (what is it called) in this situation: create_table :employees do |t| t.column :name, :string
Stalkr_ has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
<dfockler> EmeraldExplorer: It's ruby's syntax for a symbol
Pupeno has joined #ruby
<Sou|cutter> It's the same at "employees".to_sym
<Sou|cutter> end result, anyway
<EmeraldExplorer> Oh wait... I think I was interpreting it the wrong way... sorry I'm from Java. It is basically like this, right? create_table( :employees ) do |t| {}
djbkd has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 260 seconds]
<centrx> Yes
t_mmyv has joined #ruby
<jhass> no idea where the {} comes from all of the sudden, but up to that, yes
<Sou|cutter> EmeraldExplorer: yeah. Except in ruby you wouldn't have those braces. do/end is the start/end of a block
Xeago has quit [Read error: Connection reset by peer]
<Synthead> is there a way I can put a function in an rc file somewhere so I can run a special function when needed (instead of declaring it every time I open a prompt)?
<bazbing80> sooo...how are you meant to pass an argument chain to a method in rspec? I know rspec isn't pure ruby but it's a pure ruby question.. | def method *args | let(:args){ 4,5,6 } #=> syntax error, unexpected ',' | see my probs?
<Sou|cutter> let(:args) { [4, 5, 6] } method(*args)
Pupeno has quit [Ping timeout: 244 seconds]
<havenwood> Synthead: Using IRB or Pry?
bruno- has joined #ruby
<Synthead> havenwood: pry
iceyec has quit [Read error: No route to host]
<havenwood> Synthead: .pryrc
iceyec has joined #ruby
<Sou|cutter> bazbing80: you use an array and the splat operator
j4cknewt has quit [Read error: Connection reset by peer]
<bazbing80> Sou|cutter: but if you use an array, doesn't the splat operator put the entire array in the first entry of the array?
<Synthead> havenwood: excellent! thank you!
j4cknewt has joined #ruby
<havenwood> Synthead: you're welcome
Macaveli has joined #ruby
<bazbing80> Sou|cutter: the array you pass it goes in the first entry of the array created by the splat operator
<dorei> i'm about to write yard documentation for the first time :) do you know of any well documented ruby projects to get ideas?
banjara has joined #ruby
workmad3 has joined #ruby
j4cknewt_ has joined #ruby
<Sou|cutter> bazbing80: Nope, you are misunderstanding the splat operator
<Sou|cutter> bazbing80: method(args) <-- would pass an array as one argument method(*args) passes 3 arguments to method
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
segfalt has quit [Ping timeout: 252 seconds]
youngbaks has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
j4cknewt has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<EmeraldExplorer> So do you think it is good practice to use ()s in Ruby for the sake of the reader?
HAL2328 has joined #ruby
<bricker> EmeraldExplorer: yes
<havenwood> EmeraldExplorer: no
<dfockler> haha
<EmeraldExplorer> let's debate! ;)
workmad3 has quit [Ping timeout: 268 seconds]
<bricker> let's not
<bazbing80> Sou|cutter: see the difference? https://gist.github.com/anonymous/332ea566809e72714267
<bazbing80> so how should I encapsulate 3 arguments, not in array, in a proc i,e.
<bazbing80> let(:args){ 3,4,5 }
Kricir has quit [Remote host closed the connection]
BlackCoyote has joined #ruby
codecop has quit [Remote host closed the connection]
workmad3 has joined #ruby
einarj has joined #ruby
`based_pdev` has joined #ruby
jmignault has quit [Ping timeout: 265 seconds]
evanjs has quit [Remote host closed the connection]
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
howdoico1 has quit [Ping timeout: 255 seconds]
timonv has quit [Ping timeout: 240 seconds]
<bazbing80> any ideas? nothing online... :S
AlxAltea has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
Konstruktionist has quit [Quit: Textual IRC Client: www.textualapp.com]
einarj has quit [Remote host closed the connection]
tkuchiki has joined #ruby
vdamewood has joined #ruby
Pupeno has joined #ruby
j4cknewt has joined #ruby
youngbaks has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
j4cknewt_ has quit [Read error: Connection reset by peer]
Pupeno has quit [Remote host closed the connection]
youngbaks has quit [Client Quit]
eminencehc has quit [Quit: Leaving...]
howdoico1 has joined #ruby
<jhass> bazbing80: let(:args) { [3, 4, 5] } ... foo(*args)
baweaver has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
tkuchiki has quit [Ping timeout: 256 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
michael_mbp has quit [Excess Flood]
SCHAAP137 has quit [Quit: Leaving]
<Sou|cutter> bazbing80: Not in the method definition, in the way you call it
<Sou|cutter> bazbing80: def foo(a, b, c); end; args = [1, 2, 3]; foo(*args)
havenn has joined #ruby
SCHAAP137 has joined #ruby
ItSANgo has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
breadmonster has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
<breadmonster> Hey everyone.
<havenn> breadmonster: hi
<breadmonster> I'm really new to programming and a friend recommended Ruby to me for web development.
<breadmonster> Could anyone help me out with resources?
cmisenas has quit [Quit: cmisenas]
prestorium has joined #ruby
<havenn> breadmonster: Here's a list of links from this channels website: http://ruby-community.com/pages/links
ruurd has quit [Quit: ZZZzzz…]
karapetyan has joined #ruby
ItSANgo_ has joined #ruby
bronson has quit [Remote host closed the connection]
<havenn> breadmonster: There are some duplicate links but here're more from the Ruby website: https://www.ruby-lang.org/en/documentation/
<breadmonster> Alright thanks.
<breadmonster> I was wondering where to learn about Rails.
bronson has joined #ruby
<havenn> breadmonster: Are you new to programming or coming to Ruby from other languages?
duggiefresh has quit []
<EmeraldExplorer> What exactly does class CreateEmployees < ActiveRecord::Migration mean? (The < )
<centrx> inherits from
<jhass> EmeraldExplorer: what's your background? any other languages we can relate to?
<EmeraldExplorer> jhass: Java
<jhass> extends
sanjayu has quit [Ping timeout: 240 seconds]
<jhass> < is extends
drptbl_ has joined #ruby
tiagonobre has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
j4cknewt_ has joined #ruby
<EmeraldExplorer> jhass: Ok thanks. Sorry for my newb questions... Google just doesn't like strange symbols :,(
ItSANg___ has joined #ruby
Xeago has joined #ruby
<jhass> symbolhound.com ;)
vjdhama has quit [Remote host closed the connection]
<bazbing80> EmeraldExplorer: it's weird why google doesnt do non-word/digit characters!
<EmeraldExplorer> jhass: tried that too but then it went to << which is not < :o
garyst1981 has quit [Quit: Leaving.]
pencilcheck has quit [Remote host closed the connection]
<breadmonster> havenn: I've used one other language before.
evanjs has quit [Ping timeout: 244 seconds]
<jhass> ?quickref
<EmeraldExplorer> bazbing80: probably is more efficient with word/digit chars
RandyT has quit [Quit: ZNC - http://znc.in]
<breadmonster> havenn: It's called Haskell, it's not very well known.
<breadmonster> But I like the community and so on.
benlieb has joined #ruby
<centrx> ha ha
garyst1981 has joined #ruby
<shevy> :-)
<breadmonster> A lot of people told me that Ruby is a great language for object oriented and web based programming.
unop has joined #ruby
<havenn> breadmonster: Here's a very brief Ruby-from-Java rundown: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-java/
<breadmonster> Though I'm not sure what the former is.
<centrx> They are right!
<shevy> our webchatter is back in action again
ItSANgo_ has quit [Ping timeout: 264 seconds]
<jhass> havenn: hit the wrong user there I think ;)
<havenn> Oops.
j4cknewt has quit [Ping timeout: 240 seconds]
<havenn> breadmonster: I got confuzled, nevermind me.
evanjs has joined #ruby
<shevy> coffee time again
<havenn> shevy: I'm not sure coffee will help me today. I'm in a haze!
<shevy> hah
RandyT has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 264 seconds]
InternetFriend has joined #ruby
havenn is now known as havenhaze
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ItSANgo has joined #ruby
zendrix has joined #ruby
tomaz_b has quit [Ping timeout: 240 seconds]
giuseppesolinas_ has joined #ruby
giuseppesolinas has joined #ruby
deject3d has joined #ruby
<inoperable> wish coffee would still work for me
<inoperable> i can gulp a bucket of coffee and fall asleep instantly
<centrx> you're addicted
<inoperable> not addicted
<inoperable> i just have a tolerance to caffeine :>
<inoperable> my liver knows it like a muscle memory ;>
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
drptbl_ has quit [Quit: See you later!]
ItSANg___ has quit [Ping timeout: 264 seconds]
sharkman has joined #ruby
drptbl has joined #ruby
<bricker> inoperable: probably your colon too :)
baweaver has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
p0wn3d_ has joined #ruby
havenhaze has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has quit [Read error: Connection reset by peer]
<otacon-> have you tried amphetamines?
<centrx> Step it up!
bmurt has joined #ruby
<dfockler> lel
jschmid has quit [Ping timeout: 268 seconds]
Pupeno has joined #ruby
ekain has quit [Ping timeout: 265 seconds]
<shevy> inoperable caffeine had a mild effect of inducing vomit for me
<adaedra> it's the coffee you should drink, not the mug.
nuck has joined #ruby
<baweaver> adaedra: but an early morning mugging really gets the blood flowing.
j4cknewt_ has quit [Read error: Connection reset by peer]
heidar has quit [Quit: Connection closed for inactivity]
j4cknewt has joined #ruby
momomomomo has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
krisquigley has joined #ruby
zendrix has quit []
devoldmx has joined #ruby
dionysus69 has quit [Quit: dionysus69]
krz has quit [Quit: WeeChat 1.2]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
Igorshp has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jschmid has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
bmurt has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
jackjackdripper has joined #ruby
FernandoBasso1 has quit [Quit: Leaving]
DLSteve has joined #ruby
<breadmonster> Is there something like Ruby for Haskell programmers?
bruno- has joined #ruby
devbug has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
youngbaks has joined #ruby
jackjackdripper has quit [Client Quit]
<wmoxam> breadmonster: wat
jackjackdripper has joined #ruby
mattprelude has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
<dfockler> lol
solocshaw has joined #ruby
moshef has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
pulgolino has joined #ruby
havenwood has joined #ruby
cndiv has quit [Quit: Quit]
chouhoulis has quit [Remote host closed the connection]
pencilcheck has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
drptbl has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
bruno- has quit [Ping timeout: 246 seconds]
p0wn3d_ has quit [Ping timeout: 246 seconds]
<dfockler> breadmonster: there's the opposite direction guides
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
drptbl has quit [Ping timeout: 264 seconds]
irctc894 has joined #ruby
<baweaver> I still think X for Y developers is a bad idea.
NeverDie has joined #ruby
<baweaver> The more metaphors you try and carry over, the worse it'll be.
<dfockler> That's partially true
<baweaver> It works for similar languages well enough
michael_mbp has quit [Excess Flood]
<baweaver> Java -> Ruby is nasty ugly
j4cknewt_ has joined #ruby
irctc337 has joined #ruby
<baweaver> Speaking of which, still need to write that Ruby accents guide some time
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<dfockler> I was a java dev that switched to ruby and my old code looked like bad ruby and worse java
<irctc337> hello, i want to be able to use this http://www.avalara.com/ in my iOS app, my question is do i make it server side or on the iOS side?
baweaver has quit [Remote host closed the connection]
<oddmunds> baweaver: X for Y devs could be documenting what metaphors you need to "forget"
kinduff has joined #ruby
irctc894 has quit [Ping timeout: 246 seconds]
youngbaks has quit [Ping timeout: 240 seconds]
michael_mbp has joined #ruby
ekleog has quit [Ping timeout: 272 seconds]
unop has quit [Ping timeout: 240 seconds]
<dfockler> I think OOP should be taught from the POODR/messaging perspective, it certainly makes a lot more sense than 'this is a class, etc'
lapide_viridi has joined #ruby
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
<HAL2328> i suggest chris pine's learn to program
Torrieri has joined #ruby
<jhass> irctc337: welcome to the Ruby programming language channel. Are you writing your app with Ruby?
elperdut has joined #ruby
<irctc337> no my app is iOS
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> I don't follow how your question relates to Ruby then
benlovell has joined #ruby
phutchins2 has joined #ruby
Spami has joined #ruby
ekleog has joined #ruby
<irctc337> dont i integrate avalara.com api in ruby? then somehow communicate back to iOS ?
<jhass> So you wrote a backend in Ruby for your app?
Exuma has joined #ruby
<irctc337> i actually used Parse.com for ios
shinnya has joined #ruby
<adaedra> So what is in Ruby then?
<bricker> irctc337: you're asking if you should point the iOS client to avaltara directly, or make a proxy API on your servers?
<irctc337> yes
lapide_viridi has quit [Quit: Leaving]
benlovell has quit [Ping timeout: 244 seconds]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
_blizzy_ has joined #ruby
arup_r has quit [Quit: Leaving]
<bricker> irctc337: Hard to say for sure without having some knowledge of your business and future plans, but generally for iOS I would just connect directly to avaltara's servers.
Exuma has quit [Client Quit]
<bricker> irctc337: anyways, there is already an official iOS SDK for that service: https://github.com/avadev/AvaTax-Calc-SDK-iOS
<irctc337> oh i didnt see this, thanks.
noethics has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
syath has quit [Quit: WeeChat 1.2]
ruby-lang354 has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
lipoqil has joined #ruby
polysics has joined #ruby
benlieb has quit [Ping timeout: 250 seconds]
deject3d has joined #ruby
djbkd has joined #ruby
crunk_bear has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
j4cknewt_ has joined #ruby
benlieb has joined #ruby
atmosx_laptop has quit [Quit: Lost in trance]
ruby-lang354 has quit [Ping timeout: 246 seconds]
jher has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Wolland has quit []
j4cknewt has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
sshuff is now known as sshuff|gone
<imperator> alright golfers
benlieb has quit [Client Quit]
<imperator> got: ["restype:container", "comp:list", "include:snapshots", "include:metadata", "include:uncommittedblobs"]
vdamewood has quit [Quit: Life beckons.]
breadmonster has quit [Ping timeout: 246 seconds]
<imperator> need: comp:list\ninclude:metadata,snapshots,uncommittedblobs\nrestype:container
<imperator> note: alphabetical key:value
nzst has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
yfeldblu_ has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kappy has quit [Quit: leaving]
ramfjord has quit [Ping timeout: 268 seconds]
Asher has joined #ruby
<baweaver> you're up first.
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Not really difficult. You can use a hash to collect all values and then some joins.
kappy has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
<jhass> .each_with_object(Hash.new {|k, v| k[v] = [] }) {|e, hash| k, v = e.split(":"); hash[k] << v }.map {|k, v| "k:#{v.sort.join(",")}" }.sort.join("\n") ?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renancarvalho has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
<imperator> adaedra, i know, just thought it would be an interesting golf challenge
<dfockler> Your 3rd block needs a #{} around the k
<dfockler> jhass
<jhass> right
RegulationD has quit []
Lucky__ has quit [Ping timeout: 244 seconds]
<dfockler> can we give you a medal or something?
krisquigley has joined #ruby
robinboening has joined #ruby
<imperator> jhass, nice
<baweaver> each_with_object({}){|e,h|k,v=e.split(':');h[k]<<v}.map{|k,v|k+':'+v.sort*','}.sort*"\n"
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
<baweaver> >>%w(one two three) * "\n"
<ruboto> baweaver # => "one\ntwo\nthree" (https://eval.in/437754)
moshef has quit [Quit: moshef]
RegulationD has joined #ruby
tomphp has joined #ruby
<baweaver> derp
<baweaver> each_with_object({}){|e,h|k,v=e.split(':');(h[k]||=[])<<v}.map{|k,v|k+':'+v.sort*','}.sort*"\n"
ericjphillips has quit [Quit: Leaving.]
bruno- has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<imperator> baweaver, impressive
paracr4ck has joined #ruby
<baweaver> probably some dirty regex way to go lower.
<baweaver> Ox0dea: ping
voltalio has joined #ruby
j4cknewt_ has quit [Read error: Connection reset by peer]
<baweaver> Ox0dea: there's code golf, tee up mate.
j4cknewt has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
<adaedra> Maybe he's sleeping.
tomphp has quit [Client Quit]
<adaedra> I never figured Ox0dea's operating times.
<adaedra> </confession>
<baweaver> Roughly Eastern Time Zone
michael_mbp has quit [Excess Flood]
ldnunes has quit [Quit: Leaving]
<adaedra> Eastern America Time Zone?
jher has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<baweaver> yeah
michael_mbp has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jschmid has quit [Remote host closed the connection]
jamesaxl has joined #ruby
Soda has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
petricore has quit [Ping timeout: 264 seconds]
<shevy> beaver time
tomeara has joined #ruby
FernandoBasso has joined #ruby
swgillespie has joined #ruby
renancarvalho 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]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cyklOpz has quit []
User458764 has joined #ruby
chicagob2 has quit [Ping timeout: 246 seconds]
spcmastertim has quit [Quit: Leaving]
workmad3 has joined #ruby
j4cknewt_ has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
tomeara has quit [Quit: (null)]
yfeldblu_ has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
ngscheurich has quit [Ping timeout: 255 seconds]
jt__ has joined #ruby
BlackCoyote has quit [Quit: Leaving]
j4cknewt has quit [Ping timeout: 240 seconds]
momomomomo has quit [Ping timeout: 244 seconds]
sepp2k has quit [Quit: Leaving.]
pheuko has joined #ruby
dfockler has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
rezzack1 has joined #ruby
giuseppesolinas_ has joined #ruby
giuseppesolinas has joined #ruby
kinduff has quit []
kinduff has joined #ruby
rezzack has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
momomomomo has joined #ruby
Technodrome has joined #ruby
HAL2328 has quit [Quit: Leaving]
kinduff has quit [Client Quit]
petricore has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
casadei_ has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
evanjs has quit [Remote host closed the connection]
dfockler has joined #ruby
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
Skelz0r has joined #ruby
<bricker> this would be an odd time for someone in Florida to be sleeping on a weekday
jenrzzz has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
<bricker> or maybe not? I don't know I've never lived in Florida, maybe they take siestas
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
freerobby has quit [Quit: Leaving.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
beauby has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
casadei_ has joined #ruby
<shevy> they have to fend off crocodiles early morning, so they have to sleep in the middle of the day
sargas has joined #ruby
rikkipitt has joined #ruby
<centrx> ^ Science
deject3d has joined #ruby
otacon- has quit [Quit: Lost terminal]
jenrzzz has joined #ruby
<bricker> shevy: ah, of course
NeverDie has quit [Quit: http://radiux.io/]
paulcsmith has quit [Quit: Be back later ...]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
agent_meerkat has joined #ruby
Beoran_ has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
garyst1981 has left #ruby [#ruby]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 246 seconds]
ebragaparah has quit [Remote host closed the connection]
tacit7 has quit [Ping timeout: 255 seconds]
irctc337 has quit [Ping timeout: 246 seconds]
victortyau has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponyo has joined #ruby
casadei_ has quit [Remote host closed the connection]
malconis_ has joined #ruby
decoponio has quit [Ping timeout: 240 seconds]
imperator has quit [Quit: Leaving]
workmad3 has joined #ruby
malconis has quit [Ping timeout: 240 seconds]
dravine has quit [Quit: zzz]
einarj has joined #ruby
superrorc has quit [Ping timeout: 252 seconds]
Jackneill has quit [Ping timeout: 264 seconds]
Nilium has quit [Ping timeout: 252 seconds]
Nilium has joined #ruby
Beoran_ has joined #ruby
zipkid has quit [Ping timeout: 252 seconds]
pizzaops has quit [Ping timeout: 252 seconds]
yo61 has quit [Ping timeout: 252 seconds]
Mekkis has quit [Ping timeout: 252 seconds]
edenc has quit [Ping timeout: 252 seconds]
levifig has quit [Ping timeout: 252 seconds]
kies^ has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
shelling___ has joined #ruby
shelling__ has quit [Ping timeout: 252 seconds]
GarethAdams has quit [Ping timeout: 252 seconds]
crayfishx has quit [Ping timeout: 252 seconds]
sethetter has quit [Ping timeout: 252 seconds]
sethetter has joined #ruby
superrorc has joined #ruby
shelling___ is now known as shelling__
pizzaops has joined #ruby
crayfishx has joined #ruby
hobodave has joined #ruby
karapetyan has joined #ruby
zipkid has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
edenc has joined #ruby
Jardayn_two has joined #ruby
GarethAdams has joined #ruby
einarj has quit [Remote host closed the connection]
polly_wog has quit [Ping timeout: 252 seconds]
sparr has quit [Ping timeout: 252 seconds]
shortdudey123 has quit [Ping timeout: 252 seconds]
Mekkis has joined #ruby
sparr has joined #ruby
yo61 has joined #ruby
levifig has joined #ruby
jtdowney has quit [Ping timeout: 252 seconds]
bcavileer has quit [Ping timeout: 252 seconds]
FernandoBasso has quit [Ping timeout: 255 seconds]
frankS2 has quit [Ping timeout: 252 seconds]
marahin has quit [Ping timeout: 252 seconds]
yeltzooo has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 244 seconds]
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
Torrieri has quit [Quit: Be back later ...]
twodayslate has quit [Ping timeout: 252 seconds]
bkulbida has quit [Ping timeout: 265 seconds]
marahin_ has joined #ruby
marahin_ is now known as marahin
bcavileer has joined #ruby
yeltzooo has joined #ruby
Yzguy has joined #ruby
Torrieri has joined #ruby
marahin is now known as Guest40864
Jardayn has quit [Ping timeout: 252 seconds]
preyalone has quit [Ping timeout: 252 seconds]
braincra- has quit [Ping timeout: 252 seconds]
camilasan has quit [Ping timeout: 252 seconds]
wlanboy has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
j4cknewt_ has joined #ruby
AccordLTN has quit [Ping timeout: 264 seconds]
dbussink has quit [Ping timeout: 252 seconds]
shortdudey123 has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
gf3 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
twodayslate has joined #ruby
alekst_ has quit [Ping timeout: 252 seconds]
Evan_ has quit [Ping timeout: 252 seconds]
varesa has quit [Ping timeout: 252 seconds]
Silex has quit [Ping timeout: 252 seconds]
amitchellbullard has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
gf3 has joined #ruby
Jardayn_two is now known as Jardayn
Silex^^ has joined #ruby
Mekkis has quit [Ping timeout: 252 seconds]
tangentstorm has quit [Ping timeout: 252 seconds]
Nirgali42 has quit [Ping timeout: 252 seconds]
heftig has quit [Ping timeout: 252 seconds]
heftig has joined #ruby
wlanboy has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
alekst_ has joined #ruby
dbussink has joined #ruby
akkad has quit [Ping timeout: 252 seconds]
spider-mario has quit [Remote host closed the connection]
Leef_ has joined #ruby
AccordLTN has joined #ruby
frmendes has quit [Remote host closed the connection]
lkba has joined #ruby
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Leef_ has quit [Max SendQ exceeded]
tangentstorm has joined #ruby
ghoti has quit [Remote host closed the connection]
amitchellbullard has joined #ruby
camilasan has joined #ruby
ghoti has joined #ruby
varesa has joined #ruby
G has quit [Remote host closed the connection]
Mekkis has joined #ruby
Nirgali42 has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
frankS2 has joined #ruby
G__ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
torpig has quit [Ping timeout: 252 seconds]
prasselpikachu has quit [Ping timeout: 252 seconds]
Torrieri has quit [Ping timeout: 256 seconds]
Leef_ has joined #ruby
prasselpikachu_ has joined #ruby
mistym has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
apt-get has quit [Remote host closed the connection]
voltalio has joined #ruby
Evan_ has joined #ruby
prasselpikachu_ is now known as prasselpikachu
polly_wog has joined #ruby
rikkipitt has quit [Remote host closed the connection]
Leef90 has joined #ruby
bodgix has quit [Ping timeout: 252 seconds]
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
casadei_ has joined #ruby
akkad has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
spider-mario has joined #ruby
preyalone has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<Ox0dea> I was helping a mate with some moving and we took an early lunch.
FernandoBasso has joined #ruby
mattprelude has quit [Ping timeout: 264 seconds]
SylarRuby has quit []
sepp2k has joined #ruby
<Ox0dea> shevy: It's true about the crocs, though.
bodgix has joined #ruby
michael_mbp has quit [Excess Flood]
Leef_ has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
rfv has quit [Ping timeout: 252 seconds]
mondayrain has joined #ruby
workmad3 has joined #ruby
einarj has joined #ruby
deject3d has joined #ruby
Makorak has joined #ruby
<snockerton> how do i get data out of a data bag within a recipe?
jokke| has joined #ruby
<snockerton> oops, sry wrong channel
einarj has quit [Remote host closed the connection]
jokke- has quit [Ping timeout: 252 seconds]
hyperdrive has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
deavid has quit [Ping timeout: 252 seconds]
MeMoc has joined #ruby
Makorak has quit [Client Quit]
rfv has joined #ruby
unop has joined #ruby
deject3d has quit [Client Quit]
deavid has joined #ruby
dopamean_ has quit [Ping timeout: 250 seconds]
Bish has quit [Ping timeout: 252 seconds]
dravine has joined #ruby
michael_mbp has joined #ruby
hyperdrive has joined #ruby
mary5030 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
mary5030 has joined #ruby
Bish_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
<dfockler> Who ran off with my data bags!?
<shevy> don't leave your data unattended
ElSif has quit [Ping timeout: 252 seconds]
<Ox0dea> baweaver: Yours is 94; I've got it down to 65. ^_^
<dfockler> How will be able to fly on Chef airlines without my data bags?
<baweaver> This surprises me not
<Ox0dea> <3
<baweaver> Show?
<Ox0dea> group_by{|s|s[/\w+/]}.map{|k,v|k+?:+v.map{|x|x[/\w+$/]}*?,}.sort*?\n
<Ox0dea> You called it regarding Regexp.
casadei_ has quit [Remote host closed the connection]
<dfockler> we still doing that golf example?
andrew-l has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<Ox0dea> ?c characters pared it down a fair bit as well.
<ruboto> characters, I don't know anything about c
<adaedra> Ox0dea was late, dfockler
<zenspider> sweet jesus
<baweaver> except it's grouping by the keys
<baweaver> zenspider: that's actually pretty tame for him.
<baweaver> have you seen FizzBuzz yet?
<zenspider> not sure what I walked into
<Ox0dea> baweaver: Yes, it's supposed to be grouping by the keys?
<baweaver> got: ["restype:container", "comp:list", "include:snapshots", "include:metadata", "include:uncommittedblobs"]
<baweaver> need: comp:list\ninclude:metadata,snapshots,uncommittedblobs\nrestype:container
<baweaver> note, include:metadata,snapshots
<baweaver> missed one, but you get what I was going for.
<baweaver> ah
<baweaver> \w doesn't match ?: does it
blackmesa has joined #ruby
<zenspider> nope
<baweaver> that'd do it
j4cknewt_ has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby
<baweaver> more of a derp and realization comment
<Ox0dea> Ah, I did forget to sort the values, though.
Respek has quit [Quit: gone to sleep. ZZZzzz…]
benlovell has joined #ruby
workmad3 has joined #ruby
<Ox0dea> baweaver: Yours borked Vim's highlighting, and mine eval.in's.
EllisTAA has joined #ruby
<baweaver> eh, twas a five minute hack
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> I'll have to say 5 Hail Matz's for that transgression.
devbug_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Leef90 has quit [Quit: Leaving]
beauby has quit [Ping timeout: 256 seconds]
<Ox0dea> Wait, what actually happened there?
<Ox0dea> What are the red boxes meant to indicate?
<baweaver> No idea.
modern has joined #ruby
<baweaver> https://gist.github.com/baweaver/b7a376f81e9bbf2ac2cf - For those wishing to repent transgressions against Ruby
<dfockler> Why?! Why does join have a shorthand!?
<baweaver> why not?
devbug has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
casadei_ has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
<dfockler> I'll never know all the syntax in ruby will I?
ngscheurich has joined #ruby
Lucky__ has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
<jackjackdripper> new to ruby here how can I escape a nil value?
<baweaver> code?
<jhass> jackjackdripper: "escape"? what context? what's your code? what's your error?
<dfockler> where were you on the night of April 23rd!
<jackjackdripper> undefined method `[]' for nil:NilClass (NoMethodError)
j4cknewt has quit [Read error: Connection reset by peer]
<baweaver> then don't call it on nil
<Ox0dea> dfockler: It's dangerous to go alone! Here, take this:
<jackjackdripper> i'll sanitize the code since it's an erb
<Ox0dea> >> ->*{[]}::()
<ruboto> Ox0dea # => [] (https://eval.in/437771)
<Ox0dea> (It's some kind of sword.)
[k- has joined #ruby
<jhass> wait, .() works for :: too?
<Ox0dea> Indeed.
<[k-> Ox0dea!
dravine has quit [Quit: zzz]
<baweaver> TIL
<jhass> omg, why matz, why
<adaedra> because ruby.
rezzack1 has quit [Quit: Leaving.]
Wolland has joined #ruby
<Ox0dea> >> class Array; alias call reduce; end; [1,2,3]::(:+)
<ruboto> Ox0dea # => 6 (https://eval.in/437772)
<Ox0dea> The parentheses being necessary is lame.
<Ox0dea> Triple-colon would probably be unique to Ruby.
opensource_ninja has joined #ruby
<dfockler> What is that splat doing?
<Ox0dea> dfockler: Adding to the confusion.
<baweaver> *args effectively.
<Ox0dea> It permits the lambda to receive any number of arguments, but they're inaccessible without a name.
<dfockler> It's doing it's job admirably
torpig has joined #ruby
<Ox0dea> Well, "inaccessible".
<Ox0dea> This is Ruby, after all.
NeverDie has quit [Quit: http://radiux.io/]
howdoico1 has quit [Ping timeout: 240 seconds]
<sharkman> test
mondayrain has quit [Ping timeout: 265 seconds]
<jhass> 0
<Ox0dea> F
<baweaver> don't tempt me.
<jackjackdripper> here is the code
<ruboto> jackjackdripper, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/491845019b3d14ad1940
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jhass> oh wait test without arguments returns 1
<jhass> jackjackdripper: ohai_hash (unlikely, only if your json is "null") or ohai_hash["core"] returns nil
<[k-> puts *cores.compact
<[k-> so clever
<Ox0dea> [k-: No need to splat.
<[k-> that was just in case!
<dfockler> wow immediately called procs!
j4cknewt has joined #ruby
<Ox0dea> dfockler: IIFEs in Ruby!
<Ox0dea> ~ $ chruby-exec 1.8 -- ruby -e 'puts [1,2,3]' | wc -l
<Ox0dea> 3
<Ox0dea> [k-: In case he's running 1.7?
<jackjackdripper> i'm trying to escape it if it returns null
<jackjackdripper> how do I go about it?
chouhoulis has quit [Ping timeout: 250 seconds]
* [k- nods slowly
<Ox0dea> jackjackdripper: Define "escape".
<jhass> jackjackdripper: first verify which of the two issues it is
RickHull has joined #ruby
<jhass> use `p ohai_hash` to inspect it
<jhass> before line 5
kirun_ has quit [Ping timeout: 272 seconds]
banister has joined #ruby
<dfockler> >> ->{[]}.call #A more boring version
<ruboto> dfockler # => [] (https://eval.in/437773)
ericjphillips has joined #ruby
<Ox0dea> dfockler: -> can be made much more boring.
<dfockler> haha
<Ox0dea> `->{}` == `lambda do end`.
<[k-> Inlined version: [[
<[k-> []*
startupality has quit [Quit: startupality]
<Ox0dea> [k-: Can we use you as a Ruby compiler?
chouhoulis has joined #ruby
* dfockler compiling any program "That uhhh does some stuff"
whippythellama has quit [Quit: WeeChat 1.3]
<jhass> >> require "json"; JSON.parse("1") # weird, what might the reason for that?
<[k-> i won't look through your code!
<ruboto> jhass # => A JSON text must at least contain two octets! (JSON::ParserError) ...check link for more (https://eval.in/437774)
<jhass> ah they still didn't update to the new spec I guess
swgillespie has joined #ruby
<dfockler> Is that valid JSON?
<Ox0dea> Nope.
NeverDie has joined #ruby
<Ox0dea> The outermost JSON value must be a collection.
<jackjackdripper> ohai_hash is not nil but ohai_hash["core"]["cores"] was nil. I essentially would prefer that it ignores the nil value from the hash and set the ' ' value
<jhass> Ox0dea: no longer
<Ox0dea> Is that so?
<jhass> yeah
<jhass> root grammar is value now, not object
<Ox0dea> Where's the video footage of Crockford eating a crow?
<jhass> jackjackdripper: the error message indicates that ohai_hash["core"] is nil (null or not existent), so check that before calling ["cores"] on it
<drbrain> pro-tip: if an element in a Hash is nullable, use Hash#fetch
j4cknewt_ has joined #ruby
<dfockler> >> {"":->*{[]}}[:""]::()
<ruboto> dfockler # => [] (https://eval.in/437775)
<Ox0dea> Ooh, that's purdy.
<drbrain> ohai_hash.fetch 'core' # raises KeyError if the element is not found
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
AccordLTN has quit [Ping timeout: 240 seconds]
<Narzew> Why data=File.read(x) don't work with binary data on windows? It works with binary data well on Linux (tested on Zlib compression); I use working but complicated equivalent on Windows: data=lambda{File.open(x,'rb'){|r|return r.read}}.call
<jhass> Narzew: might need the File.read(x, "rb") explicitly
<Ox0dea> >> -~-~-~->{$.}[]
<ruboto> Ox0dea # => 3 (https://eval.in/437780)
<jackjackdripper> i'll revise this further
<Ox0dea> It's a program that counts the number of squigglies.
<jackjackdripper> thanks
<Narzew> jhass: thanks ;)
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
<drbrain> Narzew: or File.binread
j4cknewt has quit [Ping timeout: 240 seconds]
dravine has joined #ruby
agent_meerkat has quit [Ping timeout: 250 seconds]
<drbrain> Narzew: windows is special and does newline conversion for historical reasons
<Ox0dea> Are they really "historical" if they'll be with us forever?
zenspider has quit [Ping timeout: 250 seconds]
<drbrain> the reasons are historical, but that is separate from when the behavior will change
<drbrain> or even if
<Narzew> I use windows only for playing games - almost all programming work I do on Linux
<dorei> from an old typewritter perspective the windows approach to newlines seams correct xD
<Narzew> i have some encoding errors, when I read contents to gsub from file all works ok, but when I type str.gsub("ąćę","ace") for example I get error in that line; #encoding: utf-8 is my first line of script, any ideas ?
ngscheurich has quit [Quit: WeeChat 1.2]
ngscheurich has joined #ruby
<jhass> does that actually reflect your file encoding?
<jhass> given windows...
<RickHull> dorei: from files as a stream of bytes perspective, the windows approach is hilarious
<jhass> declaring it as utf-8 doesn't make your editor save it as such
tvon has joined #ruby
tvon has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
<Narzew> So I need to use UTF-8 encoding for script file, yeah ? Is the way to fix ASCII-8BIT and UTF-8 incompatibility on the fly?
<jhass> yes, try to use UTF-8 always and everywhere
<jhass> especially for code these days
dfockler has quit []
EllisTAA has quit [Quit: EllisTAA]
mikecmpbll has quit [Quit: i've nodded off.]
beauby has joined #ruby
<jhass> wait, is str the thing you read with File.binread / File.read(, "rb") ?
firstdayonthejob has quit [Ping timeout: 240 seconds]
NeverDie has quit [Quit: http://radiux.io/]
yfeldblum has quit [Ping timeout: 240 seconds]
<Narzew> no, this is two separate questions; I use File.binread to read compressed data: Zlib ( Marshal.dump large table )
ragingcake has quit [Quit: ragingcake]
j4cknewt_ has quit [Read error: Connection reset by peer]
Gachr has joined #ruby
weemsledeux has joined #ruby
<Narzew> and I sometimes get encoding compatibility errors where I parse .html to generate these tables
<Gachr> Hi guys, I can't find how it is possible to make hidden enter field in a cmd.
<jhass> cmd like windows cmd?
<Gachr> I mean bash.
j4cknewt has joined #ruby
<Gachr> If you for example log in to a user in Linux, you type but you don't see that/
<eam> Gachr: you want to unset the echo flag on your terminal
mwlang has quit [Quit: mwlang]
fullofcaffeine has joined #ruby
<jhass> Narzew: sounds like you read your HTML in the wrong encoding then
NeverDie has joined #ruby
<Gachr> jhass; Thanks, however I never used STDIN instead of gets before tho.
<jhass> specifically in no encoding (ASCII-8bit is just bytes)
<jhass> Gachr: don't worry, just try it
<Narzew> jhass: most of files work fine, but sometimes I get problem with encoding, so I guess some of .html are ASCII-8BIT encoded
voltalio has joined #ruby
<jhass> Narzew: ASCII-8bit is no encoding, hence it's also aliases as "binary". It's there for things that are just sequences of bytes
<jhass> *aliased
charliesome has joined #ruby
rikkipitt has joined #ruby
<jhass> a html document can't really be ASCII-8bit encoded, you just read it with that (and thus effectively with no encoding)
platzhirsch has joined #ruby
<Gachr> jhass; It works after playing with it, thanks. The only issue is that it doesn't insert a newline, can I do it with the STDIN thingy or do I need to just print a newline separately?
Spami has quit [Quit: This computer has gone to sleep]
<platzhirsch> apeiros: Another funny fact about the posted code with the bijective function
<Ox0dea> Gachr: Do take some time to clarify your understanding of this "STDIN thingy"; it's quite important.
<platzhirsch> this can be shortened by using Fixnum#to_s(base)
<platzhirsch> Ruby has it all
<Ox0dea> platzhirsch: It doesn't have Unicode character name literals. :/
<jhass> Gachr: stdin is where you read from, the newline should go to stdout, so a regular puts is fine
<Gachr> Ox0dea; I do understand it.
<platzhirsch> Ox0dea: say that again?
r00ster has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
DLSteve has quit [Quit: Leaving]
<Ox0dea> platzhirsch: You can, for instance, say '\N{PILE OF POO' in Python.
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> *'\N{PILE OF POO}'
<Gachr> jhass; I just inserted it in the beginning of the next puts, thanks, you helped me create an app for evil purposes.
<Gachr> ;D
<platzhirsch> mhmm
<platzhirsch> and the semantic of it is what?
<Ox0dea> Perl and LOLCODE too, but not Ruby. :(
<Ox0dea> platzhirsch: PILE OF POO is a Unicode character.
mjs2600 has joined #ruby
<platzhirsch> oh right!
<Ox0dea> We have to say "\u{1f4a9}" in Ruby.
<Ox0dea> And I think that's a damned shame.
<platzhirsch> The name literal for the Unicode
<platzhirsch> why didn't you say so
shpoont has joined #ruby
<Ox0dea> > Unicode character name literals
<platzhirsch> yeah that kinda sucks, I agree
<Narzew> Hidden Input in Ruby Example: https://pastebin.com/K3dbtAbj
<ruboto> Narzew, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c010a8b20de83264b8fb
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
pengin has joined #ruby
<[k->
<sp_> magical.
spider-mario has quit [Remote host closed the connection]
dravine has quit [Quit: zzz]
<platzhirsch> Ox0dea: what could it be used for?
shpoont has quit [Max SendQ exceeded]
<Ox0dea> platzhirsch: You know how "magic numbers" are frowned upon?
<platzhirsch> magic numbers?
voltalio has joined #ruby
<platzhirsch> You mean complex numbers?
<Ox0dea> No.
Jardayn has quit [Quit: Leaving]
<Gachr> Thanks and cya guys.
Gachr has quit [Quit: Leaving]
<platzhirsch> cya? This isn't 1999
shpoont has joined #ruby
casadei_ has quit [Remote host closed the connection]
<platzhirsch> ah yeah
polysics has quit [Remote host closed the connection]
<platzhirsch> Well, wasn't that a necessity back than due to memory limitations?
<sp_> platzhirsch, magic numbers refer to literal values, as opposed to any sort of constant - where you directly use a `number` of no significant meaning in code.
<Ox0dea> platzhirsch: Not really.
<Ox0dea> Naming things is hard.
<Ox0dea> But the Unicode Consortium has already done the hard part for us in this case.
j4cknewt has quit [Read error: Connection reset by peer]
<sp_> platzhirsch, i think 0 and 1 are mostly the only sort of exceptions to this.
<Ox0dea> And yet <stdbool> is a thing.
<sp_> but hardcoded values are bad mojos.
j4cknewt has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch> As a UNIX user I don't frown too much upon it ;) but I get it
EllisTAA has joined #ruby
<sp_> platzhirsch, which UNIX do you use?
<Ox0dea> Got 'em.
<platzhirsch> Linux/Ubuntu
<Ox0dea> platzhirsch: That's not a UNIX.
Narzew has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
j4cknewt has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 260 seconds]
shpoont has quit [Max SendQ exceeded]
<platzhirsch> As a UNIX-like user I don't frown too much upon it ;) but I get it
CloCkWeRX has joined #ruby
<platzhirsch> I want to call my lawyer!
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
r00ster has quit [Quit: Peace]
CloCkWeRX has left #ruby [#ruby]
Narzew has joined #ruby
<RickHull> It's a Gnu's Not Unix / Linux
<sp_> I wonder how many people use Linux think they're using UNIX.
[k- has quit [Ping timeout: 250 seconds]
Pupeno has quit [Remote host closed the connection]
<RickHull> linux is a unix in some sense
<RickHull> the categories are fuzzy
blackmesa has joined #ruby
Technodrome has quit [Quit: Technodrome]
<platzhirsch> Well, insisting that there is a big difference is surely farting into the gravel
<RickHull> better than a straw, I suppose
<platzhirsch> but I can sympathize, I also insist on differentiating methods vs. functions
circ-user-7dItm has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
<Ox0dea> platzhirsch: Which language do we have to thank for that colorful expression?
<platzhirsch> German
pwnd_nfsw has joined #ruby
<RickHull> reminiscent of pissing into the wind
<Ox0dea> Except there are repercussions there.
<platzhirsch> Surely is some very niche phrase even in that language
<Ox0dea> "Pissing into the wind" isn't terribly obscure.
iamninja has quit [Ping timeout: 240 seconds]
<Ox0dea> platzhirsch: Does Ruby have functions?
vF3hNGxc47h8 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<platzhirsch> oh it has actually a different meaning, it means something a long the lines of building upon sand, basically misjudgement of a situation
j4cknewt has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
slackbotgz has joined #ruby
<platzhirsch> Ox0dea: I just tell people to inhabit the language's name convention
<Ox0dea> platzhirsch: So methods vs. functions is about naming?
bigmac has quit [Read error: Connection reset by peer]
<platzhirsch> from a CS point of view I'd always argue, it's not a function unless it evaluates to a result
bigmac has joined #ruby
Technodrome has joined #ruby
RickHull has left #ruby [#ruby]
<Ox0dea> It should be a crime to so thoroughly beat around a bush.
<platzhirsch> I didn't mean names as in naming things, but rather how constructs like sub-routines are normally called in a particular language
SCHAAP137 has quit [Quit: Leaving]
rehat has quit [Remote host closed the connection]
<centrx> Ox0dea, You could call a method defined outside of a class in a simple script, a function
j4cknewt has quit [Read error: Connection reset by peer]
<centrx> Ox0dea, Or things like lambda or procs
<platzhirsch> I personally wouldn't
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby
<platzhirsch> though I get the point, because methods are often seen in a OOP related concept
pabs has quit [Ping timeout: 246 seconds]
pabs has joined #ruby
michael_mbp has quit [Excess Flood]
Moblin has joined #ruby
ericjphillips has quit [Quit: Leaving.]
<Ox0dea> platzhirsch: The notion of a method doesn't make sense outside of object-orientation.
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<platzhirsch> yeah
michael_mbp has joined #ruby
j4cknewt_ has joined #ruby
snockerton has quit [Quit: Leaving.]
renderful has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jdawgaz has joined #ruby
baweaver has joined #ruby
Ebok has quit [Ping timeout: 240 seconds]
sargas has quit [Quit: Leaving]
j4cknewt has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
<Ox0dea> centrx: Yes, Procs are functions, but methods defined at the top level are not, technically (and even definitionally, in Ruby's case).
rcvalle has quit [Quit: rcvalle]
tmtwd has joined #ruby
<centrx> Would a rose by any other name execute as efficiently?
yfeldblum has quit [Read error: Connection reset by peer]
<Ox0dea> Precision matters.
<platzhirsch> As does farting into the gravel.
yfeldblum has joined #ruby
<platzhirsch> Procs are first and foremost objects
ramfjord has quit [Ping timeout: 260 seconds]
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
<Ox0dea> No, that Procs are objects is an implementation detail.
drewvanstone has quit [Ping timeout: 240 seconds]
prestorium has quit [Quit: Konversation terminated!]
maletor has joined #ruby
<platzhirsch> Proc for me is an implementation of a concept that is called subroutine
baweaver has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch> Because Proc is such a Ruby-specific thing if you want to go down that route
<Ox0dea> It's really not, though.
<Ox0dea> A Proc is just a closure.
<platzhirsch> Then you have a different definition of subroutine than me
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<Ox0dea> platzhirsch: Do subroutines have an environment?
<bazbing80> is it possible to use matchers that support block expectations like this: | it{ is_expected.to raise_error } | Because that fails. I only get block matchers to work if using the specify method: | specify{ expect{ foo }.to raise_error } | Is that normal?
<bazbing80> I hope the next version of rspec will support it{ is_expected.to raise_error } for block matchers if this is indeed normal!
<platzhirsch> That again is implementation detail
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch> oh that's cool Closures go back to functional programming, lambda calculus, how dare you mixing lambda calculus with something so procedural like Ruby
<platzhirsch> ;-P
<Ox0dea> platzhirsch: Your misconstrual is almost painful to behold.
aghalarp has joined #ruby
duncannz has joined #ruby
<Ox0dea> Ruby is quite "functional", precisely because of things like Proc and blocks.