havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<haylon> lol
<haylon> So, you said you were developing your game in ruby -gtk
<jhass> I never said I' developing a game
<jhass> you're probably confusing me with shevy
Rickmasta has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
bonhoeffer has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
<haylon> Then I shall beckon shevy
<haylon> shevy
dfockler has quit [Quit: Leaving]
vigintas has quit [Ping timeout: 272 seconds]
<CooloutAC> so the hash rocket style is deprecated?
chopin has joined #ruby
tkuchiki has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 255 seconds]
<mloy> CooloutAC
<CooloutAC> tks
<mloy> :)
<CooloutAC> this is my first programmign language i ever learned i'm finding it fun
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
snath has joined #ruby
regreg has joined #ruby
<haylon> That's cool CooloutAC
bayed has quit [Quit: Connection closed for inactivity]
<haylon> Glad you enjoy it
swgillespie has joined #ruby
chopin has quit [Remote host closed the connection]
<BraddPitt> well, I've made the (possibly unfortunate) decision to use the Ruby curses bindings for this project. Does anyone know of good example projects or annotated source besides the docs? Just something to look around at for a better grasp
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<CooloutAC> braddpitt programs? thats awesome
snath has quit [Ping timeout: 246 seconds]
<BraddPitt> Yes
bruno- has quit [Ping timeout: 250 seconds]
BrunoSaboia has quit [Ping timeout: 246 seconds]
<BraddPitt> ah nevermind I found a pretty good set of projects linked in an SO answer
<BraddPitt> off to drown myself in C bindings
Coldblackice has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
roxtrong_ has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 272 seconds]
petricore has joined #ruby
gambl0re has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
riotjone_ has joined #ruby
dopamean_ has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
swgillespie has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjone_ has quit [Ping timeout: 260 seconds]
davedev24 has quit []
Akagi201 has joined #ruby
snath has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdavila has joined #ruby
choke has joined #ruby
Akagi201 has quit [Ping timeout: 272 seconds]
roxtrongo has joined #ruby
zenguy_pc has joined #ruby
marr has quit [Ping timeout: 250 seconds]
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
bryanray has joined #ruby
<haylon> Don't feel bad BraddPitt
<haylon> I'm starting to delve into Ruby/GTK
<haylon> and doing it on Windows
moeabdol has joined #ruby
<BraddPitt> oof, that does sound terrible haylon
<havenwood> haylon: How's that going? :O
symm- has quit [Ping timeout: 246 seconds]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
<haylon> So far, just gettind dependencies on windows blows.
<haylon> I had to decide whether I wanted to go with GTK, Qt, or something else. Regular old TK is bland.
<BraddPitt> any sort of software dev on windows is tough and annoying imo
hmsimha has quit [Ping timeout: 265 seconds]
<haylon> Then to get GTK on windows, I had to either use Cygwin, MinGW, or MSYS2
<haylon> MSYS2 looked interesting due to the Arch Style package manager
<haylon> and I just got the gtk2 gem installed. So we'll see how this goes now
jenrzzz has quit [Ping timeout: 272 seconds]
<haylon> If I had my way BraddPitt, I'd be using RHEL, or CentOS, or Debian for a work OS.
bonhoeffer has quit [Quit: bonhoeffer]
bigmac_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
d10n-work has quit [Quit: Connection closed for inactivity]
<bigmac_> "a".unpack("B*")=>["01100001"]
Lucky__ has joined #ruby
<bigmac_> how can i generate the list of binary data?
gusrub has quit [Remote host closed the connection]
pwnd_nfsw has quit [Ping timeout: 240 seconds]
<bigmac_> in some kind of order
Lucky__ has quit [Client Quit]
Akagi201 has joined #ruby
<havenwood> >> 'bigmac_'.bytes
<ruboto> havenwood # => [98, 105, 103, 109, 97, 99, 95] (https://eval.in/453603)
<havenwood> bigmac_: Say more about what you mean?
_blizzy_ has quit [Ping timeout: 255 seconds]
<bigmac_> um, i guess im looking for All combinations of 0-1 8 chars long
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has quit [Remote host closed the connection]
<bigmac_> i can do it randomly, but i cant see how to run threw in order
<bigmac_> 5.times { puts "%08b" % rand(128) }
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bryanray has joined #ruby
<bigmac_> i dont see how to go in order
<bigmac_> starting from 00000001 .. 11111111
dfinninger has quit [Remote host closed the connection]
<havenwood> bigmac_: [0, 1].repeated_permutation(8).map(&:join)
bonhoeffer_ has joined #ruby
<bigmac_> >>[0, 1].repeated_permutation(8).map(&:join)
eminencehc has quit [Remote host closed the connection]
<ruboto> bigmac_ # => ["00000000", "00000001", "00000010", "00000011", "00000100", "00000101", "00000110", "00000111", "00 ...check link for more (https://eval.in/453604)
<eam> >> (0..255).map { |x| "%08b" % x }
<ruboto> eam # => ["00000000", "00000001", "00000010", "00000011", "00000100", "00000101", "00000110", "00000111", "00 ...check link for more (https://eval.in/453605)
<havenwood> bigmac_: pick your poison ^
<bigmac_> what one is quicker?
<eam> bigmac_: I'm super confused you wrote a function for Fixnum -> string of binary, but couldn't do the loop part
<bigmac_> i just cant see it...
<eam> bigmac_: best thing is to benchmark if you're concerned about performance
<bigmac_> 0..1000 is simple enough, I would have gone Such a long way around to acomplish this
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
mleung has quit [Ping timeout: 250 seconds]
Lucky__ has joined #ruby
axl_ has quit [Client Quit]
Vile` has quit [Read error: Connection reset by peer]
saddad has joined #ruby
axl_ has joined #ruby
bonhoeffer_ has quit [Quit: bonhoeffer_]
<eam> havenwood: tricky, btw
<eam> I had to look up repeated_permutation, but it seems it doesn't specify order? (even though it obviously is in the right order in this implementation)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ngscheurich has quit [Ping timeout: 252 seconds]
FernandoBasso has quit [Quit: WeeChat 1.3]
roxtrongo has joined #ruby
roxtrongo has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
paulcsmith has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
<havenwood> eam: hem, interesting question whether order is an implementation detail?
<havenwood> relocating
finisherr has quit [Quit: finisherr]
<haylon> So, a so-far-so-good tutorial for Ruby/GTK2 is: http://ruby-gnome2.osdn.jp/hiki.cgi?tut-gtk
roxtrongo has joined #ruby
chop1n has joined #ruby
<eam> I mean, the docs explicitly say "The implementation makes no guarantees about the order"
j4cknewt_ has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
monq has quit [Quit: monq]
chopin has joined #ruby
j4cknewt has quit [Ping timeout: 264 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haraoka has joined #ruby
spuk has joined #ruby
icbm has joined #ruby
atomical has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> >> eval 2.times.map {Module.constants.shuffle.join ?,}.join ?=
<ruboto> eam # => (eval):1: warning: already initialized constant Method ...check link for more (https://eval.in/453609)
<eam> sigh
sdothum has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
<eam> >> $VERBOSE=nil,eval 2.times.map {Module.constants.shuffle.join ?,}.join ?=
<ruboto> eam # => /tmp/execpad-7f97565b9934/source-7f97565b9934:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/453610)
<eam> >> $VERBOSE=nil;eval 2.times.map {Module.constants.shuffle.join ?,}.join ?=
<ruboto> eam # => [Dir, ThreadError, {"LIBC_FATAL_STDERR_"=>"1", "LANG"=>"en_US.UTF-8", "HOME"=>"/tmp/execpad-4884832b ...check link for more (https://eval.in/453611)
<eam> o m g
yfeldblum has joined #ruby
solocshaw1 has joined #ruby
<eam> I'm surprised eval.in lived through that
snath has quit [Ping timeout: 272 seconds]
BTRE has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 is now known as solocshaw
sankaber has joined #ruby
platzhirsch has left #ruby [#ruby]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bonhoeffer_ has joined #ruby
jpfuentes2 has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
GriffinHeart has joined #ruby
slumos has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
slumos has left #ruby ["Textual IRC Client: www.textualapp.com"]
paulcsmith has joined #ruby
jpfuentes2 has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
BTRE has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
snath has joined #ruby
noethics has left #ruby ["Leaving"]
snath has left #ruby [#ruby]
GriffinHeart has quit [Ping timeout: 260 seconds]
joufflu has joined #ruby
bonhoeffer_ has quit [Quit: bonhoeffer_]
GriffinHeart has joined #ruby
finisherr has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
roxtrongo has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
fbidu has joined #ruby
bigmac_ has quit [Ping timeout: 260 seconds]
DroidBurgundy has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
yitsushi has joined #ruby
towski_ has quit [Remote host closed the connection]
eminencehc has joined #ruby
riotjone_ has joined #ruby
bigmac_ has joined #ruby
Bellthoven has joined #ruby
GriffinHeart has joined #ruby
Jason44 has joined #ruby
DroidBurgundy has quit []
baroquebobcat has quit [Quit: baroquebobcat]
riotjone_ has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
Bellthoven has quit [Ping timeout: 246 seconds]
doddok has quit [Ping timeout: 252 seconds]
<Jason44> Hi all, can someone tell me how do return my mofidied string with this problem/code? http://rubyfiddle.com/riddles/1fe1e
bonhoeffer_ has joined #ruby
baroquebobcat has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Jason44> I'm this close to solving it but when I return my string, its all wrong
haylon has quit [Quit: Leaving]
tmtwd has joined #ruby
BTRE has quit [Ping timeout: 264 seconds]
bb010g has joined #ruby
idefine has quit [Remote host closed the connection]
<jhass> Jason44: you don't modify the string, you modify strings you have created from it for each character
<jhass> &ri Array#map String#chars @Jason44
Ox0dea has joined #ruby
idefine has joined #ruby
grekkos has quit [Ping timeout: 252 seconds]
stannard has joined #ruby
idefine has quit [Remote host closed the connection]
<jhass> nvm, I'm tired
baroquebobcat has quit [Client Quit]
<jhass> you want to make sure you return the charater from your map and actually use the map's return value
idefine has joined #ruby
bonhoeffer_ has quit [Client Quit]
Bellthoven has joined #ruby
atomical has quit [Read error: No route to host]
Nirgali43 has quit [Quit: leaving]
<Jason44> jhass, well that character is the string Argument no?
stannard has quit [Ping timeout: 244 seconds]
linduxed has quit [Ping timeout: 250 seconds]
dorei has quit []
rdavila has joined #ruby
<jhass> >> [1, 2, 3].map { "bananas" }
<ruboto> jhass # => ["bananas", "bananas", "bananas"] (https://eval.in/453617)
<jhass> the map result comes from the blocks return value, the argument is just to aid you in computing it
atomical has joined #ruby
hmsimha has joined #ruby
<Jason44> wait, so should I return char?
<Ox0dea> Jason44: Could you briefly describe your understanding of the difference between `#next` and `#next!`?
<Jason44> I actually don't know. I'm just playing around on the IDE and I added the ! after the next
idefine has quit [Remote host closed the connection]
BTRE has joined #ruby
idefine has joined #ruby
dnewkerk has joined #ruby
<Ox0dea> Cool. Just keep randomly trying things until it works.
paulcsmith has quit [Quit: Be back later ...]
jessemcgilallen has quit [Quit: jessemcgilallen]
icbm has quit [Quit: Leaving]
<Jason44> Sure, but I still need help understanding my problem
dfinninger has quit [Remote host closed the connection]
NeverDie has joined #ruby
paulcsmith has joined #ruby
stamina has quit [Ping timeout: 255 seconds]
<Jason44> I mean, I spent a couple hours on this one problem today, I'm so close and I wanna see it through
hmsimha has quit [Ping timeout: 265 seconds]
BTRE has quit [Ping timeout: 250 seconds]
<agent_white> Sometimes just trying it out doesn't exactly make it apparent. Especially when relying on watching return values in a REPL.
<Ox0dea> Jason44: Given that your approach seems to be "fling sh^W things until something sticks", I'd argue you're barely there at all. :<
paulcsmith has quit [Ping timeout: 272 seconds]
moeabdol has quit [Read error: Connection reset by peer]
<agent_white> http://stackoverflow.com/questions/7179016/what-is-the-purpose-of-and-at-the-end-of-method-names For more. Or just do a quick google at "what does ! do to functions in ruby" as I did for the links I provided.
<Ox0dea> In any case, "bang methods" aren't really the problem here.
Derasi has quit [Remote host closed the connection]
<agent_white> ^ Pay attention to this guy for grammar. But know it's not needed to google stuff ;D
moeabdol has joined #ruby
devn_ has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
eminencehc has quit [Remote host closed the connection]
p0wn3d has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Jason44: Blocks return the last expression therein, and unsuccessful conditionals evaluate to`nil`.
<Ox0dea> >> 42 if false
<ruboto> Ox0dea # => nil (https://eval.in/453628)
<agent_white> Ox0dea: When do we get to vote for "bang" vs "pling" ? I heard many in the UK enunciate it as "pling"... sounds more like a good thing in pinball rather than a disaster. pling +1 for me.
cschneid has quit [Ping timeout: 240 seconds]
<weaksauce> self mutation can be dangerous so i vote for bang
<Ox0dea> agent_white: But "crunch bang" has come to have such a nice ring to my ears.
<agent_white> weaksauce: Ooo... very true! I take my vote back!
<Ox0dea> Jason44: Your #map is evaluating to `nil` for every non-vowel.
<agent_white> Ox0dea: Also true... 'crunch-pling'... yeah. I take my vote away twice.
<agent_white> :D
<Ox0dea> Jason44: Much more problematically, you're creating an Array, mapping over it, and then throwing it away.
Ropeney has joined #ruby
<Ox0dea> > How do I correctly return the modifed string?
<Ox0dea> You should start by modifying the string.
gexe_ has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 268 seconds]
swgillespie has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
<Ox0dea> >> 'z'.next # This is also a problem.
<ruboto> Ox0dea # => "aa" (https://eval.in/453639)
<agent_white> A wat
<Ox0dea> It's actually occasionally useful.
<Ox0dea> It's "human-friendly" or whatever.
BTRE has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
znz_jp has quit [Quit: kill -QUIT $$]
moeabdol1 has joined #ruby
<agent_white> Wierd.
<agent_white> >> 'ab'.next
<ruboto> agent_white # => "ac" (https://eval.in/453640)
moeabdol has quit [Ping timeout: 265 seconds]
<agent_white> >> 'az'.next
<ruboto> agent_white # => "ba" (https://eval.in/453641)
_djbkd has quit [Quit: My people need me...]
bryanray has joined #ruby
cschneid has joined #ruby
GriffinHeart has joined #ruby
davedev24 has joined #ruby
<Ox0dea> It's difficult to imagine a superior alternative.
p0wn3d has quit [Ping timeout: 246 seconds]
asi_ has joined #ruby
linduxed has joined #ruby
axl_ has quit [Quit: axl_]
grekkos has joined #ruby
gexe_ has joined #ruby
znz_jp has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
<agent_white> Oh I'm not quite there yet. Just enjoying finding a new function :)
zenguy_pc has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 240 seconds]
inteq has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
jessemcgilallen has joined #ruby
hmsimha has joined #ruby
nofxx has joined #ruby
davedev2_ has joined #ruby
stardiviner has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pathrocle has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 240 seconds]
Us54er has joined #ruby
chop1n has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chopin> Hi all, anyone ever used the ruby client for google to send emails via gmail?
freerobby has joined #ruby
Jason44 has quit [Quit: Page closed]
nateberkopec has joined #ruby
zenguy_pc has joined #ruby
Akagi201_ has joined #ruby
skweek has quit [Read error: Connection reset by peer]
skweek has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
gexe_ has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
certainty has joined #ruby
Akagi201 has quit [Ping timeout: 265 seconds]
diegoviola has joined #ruby
roxtrongo has quit [Remote host closed the connection]
fbidu has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
Musashi007 has joined #ruby
fbidu has joined #ruby
j4cknewt has joined #ruby
nateberkopec has quit [Ping timeout: 250 seconds]
fbidu has quit [Max SendQ exceeded]
ICantCook has joined #ruby
grekkos_ has joined #ruby
zotherst1 has joined #ruby
opensource_ninja has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Ping timeout: 240 seconds]
grekkos has quit [Ping timeout: 272 seconds]
voxxit has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
grekkos_ has quit [Ping timeout: 240 seconds]
tjbiddle has joined #ruby
DenSchub has quit [Quit: This should never happen.]
DenSchub has joined #ruby
darkf has joined #ruby
Soda has joined #ruby
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<agent_white> chopin: Best to ask your question instead of asking for a head-count :)
<chopin> agent_white: Hah, good point. Trying to work through sending mail through gmail with google's ruby client.
yitsushi has joined #ruby
<chopin> Mostly trying to discern exactly what is necessary to make an authenticated (oauth2) call to the gmail api
moeabdol1 has quit [Ping timeout: 260 seconds]
utkarsh has joined #ruby
bollullera has left #ruby [#ruby]
jessemcgilallen has quit [Quit: jessemcgilallen]
fbidu has joined #ruby
step1step2 has quit [Read error: Connection reset by peer]
favadi has joined #ruby
angelixd has quit [Remote host closed the connection]
gener1c has joined #ruby
eminencehc has joined #ruby
krz has joined #ruby
rideh has quit [Remote host closed the connection]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackoperat has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Read error: No route to host]
blackoperat has quit [Client Quit]
favadi has quit [Max SendQ exceeded]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest87202
diego1 is now known as diegoviola
gener1c_ has quit [Ping timeout: 250 seconds]
braincrash has quit [Quit: bye bye]
hmsimha has quit [Ping timeout: 265 seconds]
Guest87202 has quit [Ping timeout: 272 seconds]
blackoperat has joined #ruby
blackoperat has quit [Client Quit]
blackoperat has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
wldcordeiro has joined #ruby
blackoperat has quit [Client Quit]
diegoviola has joined #ruby
jpfuentes2 has joined #ruby
braincrash has joined #ruby
dopamean_ has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
rdavila has joined #ruby
stardiviner has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
<ledestin> avdi hey
diegoviola has quit [Quit: WeeChat 1.3]
diego1 is now known as diegoviola
<ledestin> avdi would you consider doing an episode on wrapping exceptions?
jpfuentes2 has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
NeverDie has quit [Remote host closed the connection]
<Ox0dea> ledestin: http://exceptionalruby.com/
blackoperat has joined #ruby
brook has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<ledestin> Ox0dea cheers! I even have the book
swgillespie has joined #ruby
achamian has joined #ruby
htmldrum has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
paulcsmith has joined #ruby
mondayrain has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
favadi has joined #ruby
nys- has joined #ruby
p0wn3d has joined #ruby
yfeldblum has joined #ruby
arescorpio has joined #ruby
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
gix has quit [Ping timeout: 272 seconds]
diegoviola is now known as Guest4088
diego1 is now known as diegoviola
riotjones has joined #ruby
Guest4088 has quit [Ping timeout: 250 seconds]
yitsushi has joined #ruby
Soda has quit [Remote host closed the connection]
Bellthoven has quit []
nateberkopec has joined #ruby
gix has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
speakingcode has joined #ruby
chopin has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 246 seconds]
shmilan has quit [Ping timeout: 240 seconds]
bradland has quit [Remote host closed the connection]
subscope has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
rideh has joined #ruby
postmodern has quit [Quit: Leaving]
fbidu has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Remote host closed the connection]
Asher has joined #ruby
grekkos has joined #ruby
towski_ has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troyready has quit [Ping timeout: 244 seconds]
beauby has quit [Ping timeout: 264 seconds]
saddad has quit [Ping timeout: 268 seconds]
based_pdev has joined #ruby
Xiti` has joined #ruby
troyready has joined #ruby
irk has joined #ruby
Rollabunna has joined #ruby
gambl0re has joined #ruby
grekkos has quit [Ping timeout: 255 seconds]
Xiti has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest69876
diego1 is now known as diegoviola
stannard has joined #ruby
Guest69876 has quit [Ping timeout: 256 seconds]
idefine has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
idefine has joined #ruby
spuk has quit [Ping timeout: 255 seconds]
lostinspace has joined #ruby
towski_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
stannard has quit [Ping timeout: 268 seconds]
roxtrongo has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
cndiv_ has quit [Quit: Be back later ...]
eminencehc has quit [Read error: No route to host]
p0wn3d has joined #ruby
lostinspace has left #ruby [#ruby]
saddad has joined #ruby
jatb has joined #ruby
finisherr has left #ruby [#ruby]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
IrishGringo has joined #ruby
arescorpio has quit [Quit: Leaving.]
arup_r has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
dikaio has joined #ruby
bigmac_ has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
bigmac_ has joined #ruby
mary5030 has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
banister has quit [Read error: Connection reset by peer]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
jessemcgilallen has joined #ruby
Rollabunna has quit [Remote host closed the connection]
EllisTAA has joined #ruby
nys- has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
nys- has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
_blizzy_ has quit [Read error: Connection reset by peer]
nickjj has quit [Read error: Connection reset by peer]
glenn_ has joined #ruby
tjbiddle has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 265 seconds]
_blizzy_ has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
Gnomethrower has joined #ruby
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has quit [Ping timeout: 268 seconds]
mrtomme_ has quit [Quit: bye]
p0wn3d has quit [Ping timeout: 240 seconds]
Uo9er_ has joined #ruby
TheRinger has joined #ruby
Eiam_ has joined #ruby
idefine has quit [Remote host closed the connection]
Us54er has quit [Ping timeout: 246 seconds]
jessemcgilallen has joined #ruby
techietrash has joined #ruby
mondayrain has quit [Ping timeout: 256 seconds]
finisherr has joined #ruby
<Eiam_> group_by groups each enumerable into one grouping; is there something that would group an item into every grouping it would match? hmm example: An fruit class has an array of people who like it. I have an array of fruits, like Apple, Banana, Orange and I want to group_by .people_who_like_me, so I could end up with {:george => [Apple, Banana], :sarah => [Apple, Orange], :ben => [Banana]}
mrtomme has joined #ruby
<Eiam_> I guess just do it manually with reduce?
tenzan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
mary5030 has joined #ruby
achamian has quit [Remote host closed the connection]
nateberkopec has joined #ruby
<Ox0dea> > manually with reduce
<Ox0dea> What a time to be alive.
<Eiam_> ?
lessless has joined #ruby
<Eiam_> group_by is a convenient shorthand for what I could obviously do "manually"
mrtomme has quit [Quit: bye]
mary5030 has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
j4cknewt has quit [Remote host closed the connection]
techietrash has quit [Quit: Bye! <(^_^<)]
finisherr has left #ruby [#ruby]
amclain has quit [Quit: Leaving]
nateberkopec has quit [Ping timeout: 252 seconds]
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
Gnomethrower has joined #ruby
j4cknewt has joined #ruby
zapata has quit [Quit: WeeChat 1.3]
j4cknewt has quit [Remote host closed the connection]
zapata has joined #ruby
freerobby has quit [Quit: Leaving.]
moeabdol1 has joined #ruby
moeabdol1 has quit [Client Quit]
saddad has quit [Ping timeout: 250 seconds]
mrtomme has joined #ruby
achamian has joined #ruby
armyriad has quit [Quit: Leaving]
krz has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
toy has joined #ruby
Rollabunna has quit [Remote host closed the connection]
nemo_ has joined #ruby
IrishGringo has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
krz has joined #ruby
achamian has quit [Remote host closed the connection]
alcipir has joined #ruby
krz has quit [Quit: WeeChat 1.2]
tenzan has joined #ruby
yosiat has joined #ruby
eminencehc has quit [Remote host closed the connection]
alcipir has quit [Client Quit]
grekkos_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pdoherty has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
alcipir has joined #ruby
eminencehc has joined #ruby
karapetyan has joined #ruby
paulcsmith has joined #ruby
grekkos_ has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Ping timeout: 250 seconds]
s00pcan has quit [Remote host closed the connection]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has joined #ruby
bruno- has joined #ruby
<Ox0dea> Eiam_: https://eval.in/453696
paulcsmith has quit [Ping timeout: 240 seconds]
<Ox0dea> It's certainly not the most straightforward approach, but it uses some nifty features.
<Eiam_> interesting
<Eiam_> funny how different our approaches were
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Hash#merge with collision resolution is one of my favorite Rubyisms.
<Eiam_> I used uhmm.. fetch with a default block
<Eiam_> inside a ternary =0
<Eiam_> yours feels a bit more elegant
Musashi007 has joined #ruby
<Eiam_> hmm not sure ive ever used that zip + cycle
favadi has joined #ruby
<Eiam_> http://ruby-doc.org/core-2.2.0/Array.html#method-i-cycle right? to force it to call it for each value in the array
<Ox0dea> I couldn't think of a cleaner way to "spread" the fruit amongst its proponents.
U7se6 has joined #ruby
<Ox0dea> I mucked about with #invert and #transpose to little avail.
zenguy_pc2 has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
<Eiam_> I still don't get why you jabbed at my comment about "manually with reduce" =)
<Ox0dea> I've been writing assembly of late.
dhjondoh has joined #ruby
Rollabunna has joined #ruby
<Ox0dea> Eiam_: Reduce is a pretty high-level abstraction was the point I meant to make.
Uo9er_ has quit [Ping timeout: 272 seconds]
zenguy_pc has quit [Ping timeout: 246 seconds]
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
meowz has quit [Ping timeout: 244 seconds]
GriffinHeart has quit [Remote host closed the connection]
Eiam_ has quit [Ping timeout: 252 seconds]
meowz has joined #ruby
ruurd has joined #ruby
aganov has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Eiam_ has joined #ruby
<Eiam_> whoops
yfeldblum has quit [Ping timeout: 246 seconds]
skade has joined #ruby
karapetyan has quit [Remote host closed the connection]
riotjones has joined #ruby
glenn_ has quit [Quit: Konversation terminated!]
_blizzy_ has quit [Ping timeout: 246 seconds]
eminencehc has quit [Remote host closed the connection]
tagrudev has joined #ruby
houhoulis has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
norc has joined #ruby
GriffinHeart has joined #ruby
Chaoborid has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
meowz has quit [Read error: Connection reset by peer]
faces has quit [Ping timeout: 255 seconds]
gsingh93 has quit [Quit: ZNC - http://znc.in]
nateberkopec has quit [Ping timeout: 265 seconds]
hmsimha has joined #ruby
GriffinHeart has joined #ruby
gsingh93 has joined #ruby
symbol has quit [Ping timeout: 268 seconds]
diegoviola has quit [Ping timeout: 268 seconds]
tjbiddle_ has joined #ruby
mary5030 has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
riotjones has joined #ruby
eaxxae has joined #ruby
Asher has quit [Quit: Leaving.]
achamian has joined #ruby
<eaxxae> how do you do bubble sort in ruby ?
diego1 has joined #ruby
<mloy> eaxxae http://aaronvb.com/articles/bubble-sort-in-ruby.html is an implementation
diego1 has quit [Changing host]
diego1 has joined #ruby
Melpaws has joined #ruby
Pupp3tm4st3r has joined #ruby
TheRinger has quit [Remote host closed the connection]
<eaxxae> thank you very much mloy
krz has joined #ruby
diego1 is now known as diegoviola
eminencehc has joined #ruby
faras has quit [Ping timeout: 252 seconds]
achamian has quit [Client Quit]
sanjayu has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
greenride has left #ruby [#ruby]
ruurd has quit [Quit: ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
[1]brook has joined #ruby
<eaxxae> mloy: is that your domain ?
relix has joined #ruby
lxsameer has joined #ruby
karapetyan has joined #ruby
roxtrongo has quit [Remote host closed the connection]
brook has quit [Ping timeout: 250 seconds]
trautwein has joined #ruby
kp666 has joined #ruby
karapetyan has quit [Remote host closed the connection]
Cyther_ has joined #ruby
karapetyan has joined #ruby
Cyther has quit [Read error: Connection reset by peer]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
alcipir has quit [Quit: leaving]
ramfjord has joined #ruby
favadi has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
eaxxae has quit [Ping timeout: 268 seconds]
roxtrongo has joined #ruby
agent_white has left #ruby [#ruby]
roxtrongo has quit [Remote host closed the connection]
Cyther has joined #ruby
s00pcan has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
tjbiddle has quit [Quit: tjbiddle]
Cyther_ has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
codecop has joined #ruby
Guest59218 is now known as nw
<mloy> eaxxae, you're welcome, and nah
ahmetkapikiran has joined #ruby
lsmola_ has joined #ruby
paulcsmith has joined #ruby
above has joined #ruby
bruno- has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
paulcsmith has quit [Ping timeout: 272 seconds]
TheRinger has joined #ruby
[k- has joined #ruby
aufi has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
joufflu has quit [Read error: Connection reset by peer]
Uo9er_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Eiam_ has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
U7se6 has quit [Ping timeout: 265 seconds]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
bigkevmcd has joined #ruby
eGGsha has joined #ruby
blackoperat has joined #ruby
kiddorails has joined #ruby
kwd has joined #ruby
bMalum has joined #ruby
ruurd has joined #ruby
jessemcgilallen has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
acke has joined #ruby
techsethi has joined #ruby
kwd has quit [Quit: kwd]
Musashi007 has quit [Quit: Musashi007]
benhuda has joined #ruby
idefine has joined #ruby
above has left #ruby [#ruby]
EllisTAA has quit [Quit: EllisTAA]
herbst has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
idefine has quit [Ping timeout: 268 seconds]
firstdayonthejob has joined #ruby
nateberkopec has joined #ruby
unshadow has joined #ruby
nys- has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinenelson has joined #ruby
dopie has joined #ruby
Igorshp has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
dagda1_ has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
dagda1 has joined #ruby
bigmac_ has quit [Ping timeout: 246 seconds]
SCHAAP137 has joined #ruby
lzx has joined #ruby
ahmetkapikiran has joined #ruby
willardg has joined #ruby
anekos has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
willardg has quit [Client Quit]
lea has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
unshadow has quit [Ping timeout: 255 seconds]
uber has quit [Ping timeout: 265 seconds]
mondayrain has joined #ruby
mondayrain has quit [Client Quit]
solars has joined #ruby
karapetyan has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
sinkensabe has quit []
Chaoborid has quit []
grekkos_ has joined #ruby
anekos has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
houhoulis has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grekkos_ has quit [Ping timeout: 250 seconds]
paulcsmith has joined #ruby
ruurd has joined #ruby
lea has joined #ruby
Musashi007 has joined #ruby
nfk|laptop has joined #ruby
jas02 has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
uber has joined #ruby
paulcsmith has quit [Ping timeout: 240 seconds]
jessemcgilallen has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
TheRinger has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
jessemcgilallen has quit [Client Quit]
bruno- has quit [Ping timeout: 272 seconds]
adac has joined #ruby
krz has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
TheRinger has joined #ruby
last_staff has joined #ruby
GriffinHeart has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
pepperbreath has quit [Ping timeout: 268 seconds]
Couch has quit [Ping timeout: 240 seconds]
ahmetkapikiran has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
MyMind has joined #ruby
gexe_ has joined #ruby
lessless has joined #ruby
troulouliou_div2 has joined #ruby
Couch has joined #ruby
it_tard has joined #ruby
Sembei has quit [Ping timeout: 272 seconds]
ahmetkapikiran has joined #ruby
pepperbreath has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
krz has joined #ruby
nfk|laptop has quit [Ping timeout: 268 seconds]
ruurd has quit [Quit: ZZZzzz…]
keen_____ has quit [Read error: Connection reset by peer]
blaxter has joined #ruby
GriffinHeart has joined #ruby
keen_____ has joined #ruby
andikr has joined #ruby
trosborn has quit [Quit: trosborn]
shay- has joined #ruby
<shay-> hi, how can I pass all ARGV arguments to a system call? My problem is that system() wants each parameter as a string, so I have to pass a dynamic amount of arguments
Igorshp has quit [Remote host closed the connection]
<Ox0dea> shay-: `system *ARGV`
<Ox0dea> That's called "splatting", incidentally.
Voker57 has joined #ruby
<tobiasvl> injection party time!
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<certainty> was going to say
lea has quit [Ping timeout: 240 seconds]
<Ox0dea> I think shay- is writing a toy shell.
DEA7TH has joined #ruby
<apeiros> tobiasvl: little bobby rm?
<Ox0dea> But yeah, dealing with parameter expansion is always fun.
ndrei has quit [Ping timeout: 250 seconds]
uber has quit [Ping timeout: 264 seconds]
haxrbyte_ has joined #ruby
<adaedra> Greetings
Musashi007 has joined #ruby
lipoqil has joined #ruby
nateberkopec has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
stardiviner has quit [Ping timeout: 250 seconds]
milton has joined #ruby
lzx has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 268 seconds]
lea has joined #ruby
<apeiros> <3 return enum_for(__method__) unless block_given?
uber has joined #ruby
ahmetkapikiran has joined #ruby
senayar has joined #ruby
Peg-leg has joined #ruby
<Ox0dea> On a slightly related note, is there a better way? https://eval.in/453818
joonty has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 250 seconds]
<Ox0dea> It just seems a little heavy-handed to build a class only to immediately "turn it into" an Enumerator.
nemo_ has quit [Remote host closed the connection]
stardiviner has joined #ruby
NeverDie has joined #ruby
<apeiros> Ox0dea: Enumerator.new?
helpa-bot has joined #ruby
<Ox0dea> apeiros: Sure, but the definition of #each is from an external source.
karapetyan has joined #ruby
<apeiros> Ox0dea: you mean you get the code as string input?
<Ox0dea> Aye.
shredding has joined #ruby
demonlove has joined #ruby
<apeiros> I don't see a need for const_set. also could do it with a custom base class.
demonlove has quit [Max SendQ exceeded]
helpa-bot has quit [Remote host closed the connection]
<Ox0dea> There will be many distinct definitions of #each.
<apeiros> class EnumGenerator; include Enumerable; def self.create(code); x = new; x.class_eval(code); x.to_enum; end; end
Akagi201 has joined #ruby
heathd has quit [Quit: Connection closed for inactivity]
khebbie has joined #ruby
Hounddog has joined #ruby
kalusn has joined #ruby
Akagi201_ has quit [Ping timeout: 264 seconds]
<apeiros> err, not class_eval directly. it's supposed to be in the singleton_class
demonlove has joined #ruby
stan has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> meh, not fully awake yet
<Ox0dea> Or just #instance_eval?
demonlove has quit [Max SendQ exceeded]
tomaz_b has joined #ruby
* apeiros also fighting with rugged to figure whether a branch is local or not
<apeiros> ah, wow, managed to overlook .remote?
tjbiddle has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
norc has quit [*.net *.split]
ebbflowgo has quit [*.net *.split]
demonlove has joined #ruby
demonlove has quit [Max SendQ exceeded]
helpa has quit [Remote host closed the connection]
lessless has joined #ruby
TheRinger has quit [Quit: Konversation terminated!]
VeryBewitching has quit [Quit: Konversation terminated!]
helpa has joined #ruby
demonlove has joined #ruby
ixti has joined #ruby
jschmid has joined #ruby
jxs_ has joined #ruby
jschmid has quit [Client Quit]
jxs_ has quit [Client Quit]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
jschmid has joined #ruby
jschmid has quit [Client Quit]
jxs_ has joined #ruby
skade has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
paulcsmith has joined #ruby
varunwachaspati has joined #ruby
ledestin has joined #ruby
hagabaka has quit [Read error: Connection reset by peer]
_mak has quit [Read error: Connection reset by peer]
hagabaka has joined #ruby
bruno- has joined #ruby
diegobiavati has joined #ruby
zenguy_pc2 has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Remote host closed the connection]
wnd has joined #ruby
diegobiavati_ has joined #ruby
_mak has joined #ruby
Pumukel has joined #ruby
kimegede has joined #ruby
jxs_ has quit [Quit: Leaving]
paulcsmith has quit [Ping timeout: 265 seconds]
uber has quit [Ping timeout: 260 seconds]
lea has quit [Ping timeout: 260 seconds]
tenzan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
Coldblackice has quit [Ping timeout: 268 seconds]
trosborn has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
trosborn has quit [Client Quit]
tesuji_ has quit [Read error: Connection reset by peer]
bubbys has joined #ruby
jxs__ has joined #ruby
U7se6 has joined #ruby
<apeiros> so, next challenge - figuring ahead/behind relative to remote using rugged :)
tenzan has joined #ruby
Uo9er_ has quit [Ping timeout: 265 seconds]
mark2 has joined #ruby
marr has joined #ruby
bayed has joined #ruby
tjbiddle has joined #ruby
nemo_ has joined #ruby
Coldblackice has joined #ruby
lea has joined #ruby
lewis1711 has joined #ruby
zenguy_pc2 has joined #ruby
trosborn has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
supergeek has joined #ruby
krz has quit [Read error: Connection reset by peer]
lewis1711 has left #ruby ["Ex-Chat"]
tjbiddle has quit [Ping timeout: 250 seconds]
cwong_on_irc has quit [Quit: Leaving.]
tjbiddle has joined #ruby
<yorickpeterse> morning
sdwrage has quit [Quit: This computer has gone to sleep]
<apeiros> moin yorickpeterse
BSaboia has joined #ruby
U7se6 has quit [Read error: Connection reset by peer]
lokulin has quit [Ping timeout: 240 seconds]
lee-jon has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
Chau has joined #ruby
MVPhelp has quit [Ping timeout: 265 seconds]
blaxter has quit [Quit: foo]
uber has joined #ruby
tjbiddle has quit [Ping timeout: 244 seconds]
dmolina has joined #ruby
houhoulis has quit [Remote host closed the connection]
lee-jon has left #ruby [#ruby]
tjbiddle has joined #ruby
dmolina has quit [Client Quit]
nateberkopec has joined #ruby
<apeiros> hrmpf, either Rugged::Walker#reset is buggy or I misunderstand it. at least I get different results with reset & just creating a new one.
face has joined #ruby
sdwrage has joined #ruby
diegobiavati_ has quit [Remote host closed the connection]
diegobiavati has quit [Read error: Connection reset by peer]
tjbiddle has quit [Read error: Connection reset by peer]
bigmac_ has joined #ruby
lokulin has joined #ruby
krz has joined #ruby
sdwrage has quit [Client Quit]
tno has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
Akagi201_ has joined #ruby
tenzan has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has joined #ruby
lea has quit [Ping timeout: 240 seconds]
unshadow has joined #ruby
Akagi201 has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Hobbyboy has quit [Quit: I think the BNC broke.]
uber has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
haasn has quit [Quit: haasn]
GriffinHeart has joined #ruby
nemo__ has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
nemo_ has quit [Read error: Connection reset by peer]
nemo_ has joined #ruby
Cyther has quit [Read error: Connection reset by peer]
skade has joined #ruby
karapetyan has joined #ruby
tomaz_b has quit [Quit: Leaving]
Musashi007 has quit [Quit: Musashi007]
nemo__ has quit [Ping timeout: 265 seconds]
Hobbyboy has joined #ruby
dANO_ has joined #ruby
unshadow has quit [Quit: Changing server]
trosborn has quit [Quit: trosborn]
grekkos_ has joined #ruby
dANO_ has quit []
dANO_ has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
trautwei_ has joined #ruby
rdark has joined #ruby
nofxx has quit [Read error: Connection timed out]
dmolina has joined #ruby
nofxx has joined #ruby
trautwein has quit [Ping timeout: 240 seconds]
grekkos_ has quit [Ping timeout: 240 seconds]
Tilldeath has joined #ruby
uber has joined #ruby
haraoka has quit [Remote host closed the connection]
lea has joined #ruby
montagne_goat has joined #ruby
<Tilldeath> Hey. I wrote a ruby script that calculates what time I'm supposed to wake up based on train times. I want to set my android alarm based on this information. What would be the best approach for this?
<toy> #javascript
blaxter has joined #ruby
<adaedra> Depends on how you can access your phone
paulcsmith has joined #ruby
napcae has joined #ruby
<Tilldeath> How do you mean?
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle has joined #ruby
ndrei has joined #ruby
paulcsmith has quit [Ping timeout: 252 seconds]
leafybasil has quit [Remote host closed the connection]
TheHodge has joined #ruby
lostduck has joined #ruby
freezevee has joined #ruby
Nanuq has quit [Quit: .]
mikecmpbll has joined #ruby
Cyther has joined #ruby
Tilldeath has quit [Quit: Leaving]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Nanuq has joined #ruby
nofxx has quit [Read error: Connection timed out]
tomaz_b has joined #ruby
dmolina has quit [Quit: Leaving.]
A124 has quit [Quit: '']
<DefV> /8
A124 has joined #ruby
bigmac_ has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 250 seconds]
iDavid has quit [Ping timeout: 250 seconds]
iDavid has joined #ruby
pwnd_nfsw has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
lxsameer has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
auzty has joined #ruby
astrobun_ has quit [Remote host closed the connection]
montagne_goat has quit [Remote host closed the connection]
cornerma1 has joined #ruby
DoubleMalt has quit [Ping timeout: 256 seconds]
tomaz_b has quit [Quit: Leaving]
DoubleMalt has joined #ruby
spider-mario has joined #ruby
naftilos76 has joined #ruby
pusewicz has quit [Quit: Bye! http://www.layer22.com]
bruno- has joined #ruby
cornerman has quit [Ping timeout: 268 seconds]
cornerma1 is now known as cornerman
leafybasil has joined #ruby
dmolina has joined #ruby
leafybas_ has joined #ruby
maxmanders has joined #ruby
milton has left #ruby [#ruby]
MVPhelp has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
gexe__ has joined #ruby
Igorshp has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
dmolina has quit [Client Quit]
dmolina has joined #ruby
pwnd_nfsw has quit [Ping timeout: 246 seconds]
dikaio has joined #ruby
gexe_ has quit [Ping timeout: 250 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
MVPhelp has quit [Max SendQ exceeded]
dmolina has quit [Client Quit]
MVPhelp has joined #ruby
K1MOS has joined #ruby
d34th4ck3r has joined #ruby
haasn has joined #ruby
K1MOS has quit [Client Quit]
MVPhelp has quit [Max SendQ exceeded]
jhass has quit [Ping timeout: 240 seconds]
hmsimha has quit [Ping timeout: 265 seconds]
jhass has joined #ruby
nateberkopec has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
MVPhelp has joined #ruby
khebbie has joined #ruby
lea has quit [Quit: bye]
lipoqil has quit [Quit: Connection closed for inactivity]
nemo_ has quit [Remote host closed the connection]
lkba_ has quit [Remote host closed the connection]
nemo_ has joined #ruby
karapetyan has joined #ruby
ruurd has joined #ruby
bubbys has quit [Ping timeout: 268 seconds]
doddok has joined #ruby
bubbys has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
<EdwardIII> that maglev looks curious
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MVPhelp has quit [Remote host closed the connection]
lzx has joined #ruby
AlexRussia has joined #ruby
astrobun_ has joined #ruby
Chau has quit [Quit: Leaving]
GriffinHeart has joined #ruby
lzx has quit [Ping timeout: 240 seconds]
subscope has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
MVPhelp has joined #ruby
glundgren has joined #ruby
dopie has quit [Read error: Connection reset by peer]
Coldblackice has quit [Ping timeout: 272 seconds]
dopie has joined #ruby
GriffinHeart has joined #ruby
nemo__ has joined #ruby
subscope has joined #ruby
subscope has quit [Read error: Connection reset by peer]
MVPhelp has quit [Remote host closed the connection]
nemo_ has quit [Ping timeout: 250 seconds]
jhass has quit [Ping timeout: 252 seconds]
lee-jon has joined #ruby
<manveru> isn't maglev long dead?
blackmesa has joined #ruby
<manveru> they released it, but nobody wanted to buy gemstone to run it on more than one core, or something like that?
<EdwardIII> yeah
<EdwardIII> hehe
vigintas has joined #ruby
<EdwardIII> the concept looks cute though
<EdwardIII> like ruby-as-smalltalk
<EdwardIII> (i did some reading up on this last night)
BSaboia has quit [Ping timeout: 255 seconds]
<EdwardIII> most of the ruby-compared-to-smalltalk stuff seemed to boil down to "smalltalk is the best, multiple blocks ftw!"
speakingcode has quit [Ping timeout: 268 seconds]
jhass has joined #ruby
<EdwardIII> which didn't matter much to me
<manveru> yeah, i'm using elixir atm, and the erlang vm is kinda like a smalltalk one... plus it gives me the whole range of neat things you could do with smalltalk blocks
<EdwardIII> but the VM idea is super cute i think. and storage being totally abstract, no impedence mismatch. don't even care about ORM
<EdwardIII> kind of bends my mind a bit though as i'm so used to the current workflow i have. migrations, file-based VCS, etc etc
<manveru> i really wish dabbledb was still around
Rickmasta has joined #ruby
<EdwardIII> i dislike GUI which means pharo was only ever "download, look, have a play, then ditch it"
<manveru> aye :|
<manveru> that's why i loved gnu smalltalk
<EdwardIII> however as someone mentioned yesterday there's gnu smalltalk
<manveru> but the ecosystem was mostly dead
<EdwardIII> yeah - maybe that was you even heh
MVPhelp has joined #ruby
<EdwardIII> you don't do stuff in it then? pet projects?
<manveru> it runs seaside though
<manveru> just played around, i never had a job where i could use smalltalk
paulcsmith has joined #ruby
<manveru> smalltalk used to be quite popular around here maybe 15-20 years ago, but java killed it
<EdwardIII> yeah it's not practical here either heh
GriffinHeart has quit [Remote host closed the connection]
<EdwardIII> much to the chargrin of alan kay & david west as far as i can see heh
<EdwardIII> the reason i started looking into it again was because some of this ruby stuff reminded me of it
zenguy_pc2 has quit [Ping timeout: 260 seconds]
<[k-> wow chargrin, such good English
<manveru> chagrin?
<EdwardIII> yes sorry
<[k-> indeed, i don't know the spelling but i knew the meaning :x
GriffinHeart has joined #ruby
<manveru> heh
<manveru> you looked at self?
bruno- has joined #ruby
<EdwardIII> no, i've seen it oft-mentioned though
DoubleMalt has quit [Remote host closed the connection]
<manveru> they got it to run on modern machines if you wanna try it
GriffinHeart has quit [Remote host closed the connection]
isene has joined #ruby
<manveru> it's even more turtles-all-the-way-down than smalltalk... such a pity it didn't become adopted instead of js
<workmad3> 'turtles all the way down' is fine once you allow turtles to stand on their own shell...
<darix> yorickpeterse: http://sourceforge.net/projects/pgformatter/ - JFYI
paulcsmith has quit [Ping timeout: 260 seconds]
<manveru> the whole objects-are-prototypes-with-properties-that-may-be-objects-or-functions thing is the same
<darix> manveru o.O ltns!
<manveru> :D
<manveru> just that they call it slots
<EdwardIII> tbh i don't really deeply feel like i understand js' prototype system
<manveru> yeah... js made it pretty muddy and half-assed
<EdwardIII> i just tend to use closures everywhere, Person = function(){ self = this; self.function...; edward = new Person()
<EdwardIII> i understand it has a perf penalty if you have a lot of methods and/or instantiate a lot of objects but i only ever tend to create them in their tens so i don't give it much consideration
<darix> manveru: i had some hard core erlang devs who really started to like how much more compact elixir code is^^
ahmetkapikiran has joined #ruby
<yorickpeterse> darix: heh, I usually do that by hand
ruurd has quit [Quit: ZZZzzz…]
<manveru> i wonder if brendan sometimes regrets what he's done
but3k4 has joined #ruby
<yorickpeterse> well, there's PHP and the people behind it don't seem to regret it
<EdwardIII> hehe
<manveru> darix: yeah, it's been a pleasure so far...
<manveru> stability of erlang, easier macros than lisp, and syntax neater than ruby...
<manveru> and clustering built in
<EdwardIII> what was that language for consultants to type out requirements in and build programs? simula? simultra? simuluclara?
<darix> manveru: regret - they created one of the most use languages in the world. they cant be wrong. ;)
<manveru> EdwardIII: shakespeare?
<EdwardIII> heh no i think it started with sim
<manveru> prolog?
<manveru> simula then
<manveru> but i never used that one
<manveru> doesn't look much like it?
<EdwardIII> simula yes, that's it
<EdwardIII> but yeah it doesn't look like it heh
<manveru> lol
lee-jon has left #ruby [#ruby]
varunwachaspati has quit [Quit: Connection closed for inactivity]
<EdwardIII> maybe i'm misremembering
<manveru> darix: my conjecture is that any language designer that doesn't abhor semicolons is a fraud :P
<yorickpeterse> ^
<manveru> same reason i don't use rust
<yorickpeterse> and commas where they're not needed
<yorickpeterse> manveru: eh, the semicolon is easy to get used to in Rust
<EdwardIII> i remember hearing a podcast with randal schwartz a while ago and they had the author of python gevent on and he was just like "no, nope, python doesn't have blocks."
<yorickpeterse> But yes, I dislike how they're using ; and ' for changes in behaviour
<yorickpeterse> especially the quotes for lifetimes really annoys me
karapetyan has quit []
<EdwardIII> well not no blocks, but like curly braces
<EdwardIII> and that was it
<EdwardIII> he sounded almost angry heh
<yorickpeterse> But Rust is probably one of the better compiled languages out there (that doesn't come with a GC)
zenguy_pc2 has joined #ruby
<manveru> yeah, i'd probably consider it instead of C...
<EdwardIII> moreso than objective C?
<yorickpeterse> Obj-C only really runs on OS X. There's a GNU version of it for Linux, but I don't think anybody uses it
<manveru> does anyone use objective c without a mac?
<manveru> for other stuff i'm ok with my current mix of ruby/go/elixir
lxsameer has quit [Ping timeout: 244 seconds]
<EdwardIII> the oolite guys wrote a cross-platform game in it from what i can see
Archyme has quit [Quit: Leaving]
Archyme has joined #ruby
<yorickpeterse> The Obj-C syntax is also....meh
GriffinHeart has joined #ruby
<EdwardIII> someone yesterday said they were using ipython to interface between ruby/python for matlab reporting stuff
<EdwardIII> i looked that up last night but i can't figure out how that would work heh
<avdi> Yeah, I could talk about that.
blackmesa has quit [Ping timeout: 244 seconds]
<EdwardIII> like... how the heck does that work heh? he said he wasn't using db or anything for ipc, just ipython?
nickjj has joined #ruby
<EdwardIII> i guess he means ipython notepad to do reporting and stuff?
lxsameer has joined #ruby
karapetyan has joined #ruby
<Ebok> Alright. https://eval.in/453889 this is a block of code that is part of a tutorial. This is the gem that needs to load, but isnt https://github.com/steveklabnik/sunlight-congress. How do I actually use this gem?
ruurd has joined #ruby
<manveru> Ebok: don't add api keys to pastes?
<yorickpeterse> Ebok: invalide that API key right now
<Ebok> Its a pasted one online.
toy_ has joined #ruby
<yorickpeterse> You also can't load Gems on eval.in
<Ebok> I'ts not one I ever validated to begin with
<Ebok> I know
<manveru> require 'sunlight-congress'
<manveru> not sunlight/congress
beauby has joined #ruby
<Ebok> Tried that too
<Ebok> also didnt trigger
<manveru> then you need to install the gem
tomaz_b has joined #ruby
futilegames has joined #ruby
<Ebok> in terminal, prior to lauching the file --> $ gem install sunlight-congress I typed this in, it installed, then I lauched the file and get the same error
futilegames has quit [Client Quit]
<Ebok> I know its a dumb question
<Ebok> >_>;
<manveru> how did you launch the file?
<Ebok> terminal navigate to the file then ruby "filename".rb
<manveru> what OS?
<Ebok> Windows10 Mac6.8 and Cloud9
<Ebok> >_>;
<[k-> yorickpeterse: you can in fact load gems on eval.in; havenwood showed me how, but i forgot :x
khebbie has quit [Ping timeout: 260 seconds]
<manveru> what does `gem which sunlight-congress` say?
BSaboia has joined #ruby
toy has quit [Ping timeout: 260 seconds]
<Ebok> manveru, type that into terminal after loading?
<manveru> after loading what?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ebok> I dont know what this 'gem which sunlight-congress' is
<manveru> it's a command like `gem install sunlight-congress`
<Ebok> Ah
<manveru> you can do that from your shell or irb
<Ebok> Alright sec
tomaz_b has quit [Client Quit]
<manveru> it shows you where sunlight-congress is installed
<manveru> also, what's your ruby version?
<Ebok> 2.2.1
<manveru> if you use something < 2.0 you have to require rubygems first
<yorickpeterse> [k-: I don't see how you can load any non installed Gems
DoubleMalt has joined #ruby
<yorickpeterse> since eval.in doesn't allow any form of network activity
<manveru> yorickpeterse: inline them
ldnunes has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
<manveru> eval DATA.read at the start and put your gems at __END__ :)
yitsushi has joined #ruby
unshadow has joined #ruby
<manveru> i wrote a tool to do that once...
futilegames has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<manveru> Ebok: and what does `gem which` say?
Gnomethrower has joined #ruby
<apeiros> man, using rugged is a tad more difficult than I expected :D
<yorickpeterse> then it's not really loading Gems any more
<unshadow> Hi guys, I'm making a choise between two Thread Pool project to use in a Proxy I made, 1) http://ruby-concurrency.github.io/concurrent-ruby/file.thread_pools.html 2) https://github.com/meh/ruby-thread What do you think ? any expireance with any of them ?
<Ebok> undefined method
<manveru> meh, just semantics :P
yashinbasement has joined #ruby
<Ebok> :/
<manveru> Ebok: what?
<manveru> if you run `gem which sunlight-congress`?
futilegames has quit [Client Quit]
<[k-> "you could use in in irb"
<Ebok> t reads NoMethodError: undefined method 'which' for main:Object
<[k-> note the back ticks
<Ebok> from (irb):1
<manveru> well, with the `
<Ebok> Right retyped that into irb
<Ebok> It returned it like a string
<Ebok> >_>
<manveru> are you german?
<Ebok> => "gem which sunlight-congress"
<manveru> not ', but `
<Ebok> I'm not. no. But I wish I could speak german
<Ebok> Oh
<Ebok> sorry sec
<manveru> :)
<Ebok> This is mean trying to learn gems I know its a stupid issue >_>
<Ebok> Error: Can
ndrei has joined #ruby
<manveru> can't find ruby library file
<manveru> ok
<Ebok> Cant find ruby library or shared lib
<Ebok> Right
<manveru> let's see wtf this gem is
<manveru> yeah, he's lying on the readme
<manveru> damn steve
<Ebok> >_>;
ahmetkapikiran has quit [Ping timeout: 240 seconds]
<manveru> `gem which sunlight/congress`
<manveru> that one works
<Ebok> So I use $ gem install 'sunlight-congress' in terminal, followed by require 'sunlight/congress' ?
<Ebok> followed by, as in within the ruby file being called
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
<manveru> yeah
diegoviola is now known as Guest106
<manveru> ruby -r sunlight/congress -e 'p Sunlight::Congress'
prestorium has joined #ruby
<manveru> that works here
Musashi007 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Guest106 has quit [Ping timeout: 268 seconds]
<manveru> i really gotta go, sorry
<Ebok> Sure
karapetyan has quit [Remote host closed the connection]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ebok> Yay! it works
supergeek has quit [Quit: WeeChat 1.3]
ruurd has joined #ruby
stamina has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
lptr_ has joined #ruby
diego1 is now known as diegoviola
<Ebok> manveru, Thankyou for dumbing through that for me. Next time I'll have to ask where you found the correct code, or how to locate the require call line despite the incorrect readme
d34th4ck3r has quit [Quit: zzz]
weihan has joined #ruby
d34th4ck3r has joined #ruby
<Ebok> Is there a way to have the ruby file load the gem itself into terminal? rather then needing to make this a two part command?
<Ebok> I ask this of anyone that happens to know
shredding has quit [Ping timeout: 255 seconds]
<[k-> require 'sunlight/congress'
SenpaiSilver has joined #ruby
<[k-> what's your ruby version?
d34th4ck3r has quit [Client Quit]
<Ebok> 2.2.1
tkuchiki has quit [Remote host closed the connection]
<[k-> try the require again
tvw has joined #ruby
<Ebok> hang on
beauby has quit [Ping timeout: 244 seconds]
<Ebok> Oh
<Ebok> Hey what do you know
nateberkopec has joined #ruby
Musashi007 has quit [Quit: Musashi007]
demonlove has quit [Remote host closed the connection]
<Ebok> I hadnt run it after fixing the method call without preloading the gem. Cool
<Ebok> Thanks ^^
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<lptr_> I have an issue with vagrant / ruby / gems
tubuliferous_ has quit [Ping timeout: 240 seconds]
<lptr_> it used to be working but somehow managed to break it
Rollabunna has joined #ruby
<lptr_> If someone would care to take a look, I have tried cleaning up my dotfile dirs, reinstalling everything but still no success
<ddv> lptr_: connection via http is made but apparently nothing is listening on that port
<lptr_> hmok
<lptr_> maybe that's the entire issue, I will see if I can reach the url manually
<lptr_> I had this working from home yesterday
<lptr_> same machine..
zotherst1 has quit [Ping timeout: 240 seconds]
pzb has joined #ruby
Rollabun_ has joined #ruby
toy has joined #ruby
hanmac has joined #ruby
krz has quit [Quit: WeeChat 1.2]
Rollabunna has quit [Read error: Connection reset by peer]
auzty has quit [Quit: Leaving]
hmsimha has joined #ruby
toy_ has quit [Ping timeout: 260 seconds]
Pupp3tm4st3r has joined #ruby
Igorshp has quit [Remote host closed the connection]
bkxd has joined #ruby
<stardiviner> How to check out a gem's doc?
uber has quit [Ping timeout: 240 seconds]
<adaedra> rubydoc.info/gems/
<stardiviner> adaedra: no way to check out installed gem locally?
<adaedra> With ri
minimalism has quit [Quit: leaving]
<apeiros> rubydoc.info might currently have issues, though. loren tweeted that linode is under critical xen maintenance.
<apeiros> oh, actually I missed a follow up which said it's back up :D nvm then
<stardiviner> adaedra: thanks
<adaedra> apeiros: tbf, rubydoc.info has issues every now and then
IceColdMax has joined #ruby
* apeiros usually prefers ri
TPBallbag has joined #ruby
krz has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
moei has quit [Quit: Leaving...]
Igorshp has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
but3k4_ has joined #ruby
_blizzy_ has joined #ruby
unshadow has quit [Quit: leaving]
unshadow has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
bigmac_ has joined #ruby
unshadow has quit [Client Quit]
blackmesa has joined #ruby
<shevy> ri... rick roll!
zotherstupidguy has joined #ruby
unshadow has joined #ruby
nofxx has joined #ruby
spuk has joined #ruby
<adaedra> Never gonna give you up ♪
<certainty> oh thanks now i have that stuck in my head
<adaedra> You're welcome
bkxd has quit [Ping timeout: 240 seconds]
<certainty> :p
<certainty> i blame shevy. He started it all
bruno- has joined #ruby
uber has joined #ruby
<adaedra> I'm listening to music right now, so it doesn't work
_blizzy_ has quit [Read error: Connection reset by peer]
<shevy> never gonna give you up!
blackmesa has quit [Ping timeout: 256 seconds]
dikaio has quit [Quit: ........]
prestorium_ has joined #ruby
<certainty> :)
<adaedra> You couldn't decide which one to link, could you?
_blizzy_ has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
<apeiros> adaedra: right :)
<apeiros> actually I was just too lazy to click one and get its url
lolmaus has joined #ruby
<[k-> ha! i rickrolled shevy in pm!
nettoweb has joined #ruby
sdothum has joined #ruby
<nemo__> Hi all.. Am getting dis error undefined method `remove_previously_stored_files_after_update' while updating the document with carrier wave
<shevy> upload some code nemo__ ?
<[k-> what country is the .ch tld from?
<shevy> should be the swiss
<nemo__> no upload document using carrier wave
<certainty> [k-: switzerland
<nemo__> How to keep a mount_uploader on the assosiated model in carrier wave with has_many assoc
skakri` is now known as skakri
prestorium has quit [Ping timeout: 246 seconds]
<[k-> i thought it was china
<shevy> I think china is .cn ?
<shevy> or is that canada
avril14th has joined #ruby
<adaedra> .ca canada
<adaedra> .ch is switzerland, [k-
<adaedra> .cn is china iirc
arup_r has quit [Ping timeout: 246 seconds]
<[k-> i was wondering what apeiros was doing in china
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest69284
Guest69284 has quit [Ping timeout: 246 seconds]
blackoperat has joined #ruby
diego1 is now known as diegoviola
<shevy> punching pandas
<nofxx> adaedra, Confederatio Helvetica or something like it
<nofxx> I remember the font...mnemonic heh
<adaedra> nofxx: yeah, I know, even if I use the french form (Confédération Helvétique) as it also works
<nofxx> adaedra, oh, the 'iirc' was on cn. Beg yr pardon. sleepy
<adaedra> No problem.
<nofxx> cn -> guess next consoant if already used?
zotherstupidguy has quit [Ping timeout: 250 seconds]
<shevy> .ce ... cheina!
yfeldblum has quit [Remote host closed the connection]
<adaedra> I guess it's based on ISO codes
Cyther_ has joined #ruby
symm- has joined #ruby
spuk has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
krz has quit [Ping timeout: 240 seconds]
<apeiros> .华
<apeiros> (wildly assuming from https://zh.wikipedia.org/wiki/中华人民共和国 + google translate :D)
<adaedra> .
<adaedra> the next generation of country tlds
<herbst> i would buy that
Cyther has quit [Ping timeout: 250 seconds]
<adaedra> mh, I don't have all flags here
<apeiros> .
pzb has quit []
<[k-> .中国 actually
<adaedra> I wonder how the client will react if I paste a non-supported flag
dmolina has joined #ruby
<apeiros> [k-: google translate translates that as "chinese", not "china"?
<[k-> 中国 is china
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eising> yeah, but 中华人民共和国 is People's Republic of China
<[k-> you can just find any chinese in your country and ask him/her what china is in chinese
Melpaws has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
<apeiros> oh, actually the english WP page lists .中国 as tld :D
<Eising> while 华 convers the cultural China (or something to that extend)
dmolina has quit [Client Quit]
pandaant has joined #ruby
<[k-> extent*?
dmolina has joined #ruby
<Eising> [k-: yeah
weihan has quit [Ping timeout: 265 seconds]
<Eising> I studied Chinese at uni, but it's been a while...
dmolina has quit [Client Quit]
keyvan has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
prestorium_ is now known as prestorium
uber has quit [Quit: bye]
hmsimha has quit [Ping timeout: 265 seconds]
alexblom has quit [Quit: ZNC - http://znc.in]
naftilos76 has quit [Ping timeout: 256 seconds]
zotherstupidguy has joined #ruby
idefine has quit [Ping timeout: 255 seconds]
lianj has quit [Changing host]
lianj has joined #ruby
pathrocle has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdavila has joined #ruby
freezevee has quit []
pdoherty has joined #ruby
caliostro has joined #ruby
solocshaw has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
gregf has quit [Quit: WeeChat 1.3]
arup_r has joined #ruby
lea has joined #ruby
bryanray has joined #ruby
lea has quit [Remote host closed the connection]
alexblom has joined #ruby
astrobun_ has quit [Remote host closed the connection]
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc2 has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
bkxd has joined #ruby
Kruppe has joined #ruby
gustav_ has joined #ruby
ruurd has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
ruurd has quit [Client Quit]
Bellthoven has joined #ruby
lea has joined #ruby
ruurd has joined #ruby
karapetyan has joined #ruby
zenguy_pc2 has joined #ruby
pathrocle has quit [Remote host closed the connection]
zenguy_pc2 has quit [Read error: Connection reset by peer]
d10n-work has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
gregf has joined #ruby
synthroid has joined #ruby
Melpaws has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
Bellthoven has quit []
dnewkerk has joined #ruby
blackmesa has joined #ruby
uber has joined #ruby
Rickmasta has joined #ruby
Melpaws1 has joined #ruby
<krisquig_> I can speak chinese if it's of any help
pathrocle has joined #ruby
Melpaws has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
<certainty> nope, we need someone fluid in klingon
tkuchiki has joined #ruby
haxrbyte_ has joined #ruby
unreal_ has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
unreal has quit [Ping timeout: 240 seconds]
pathrocle has quit [Client Quit]
step1step2 has joined #ruby
<[k-> you need someone fluent in k-?
bkxd has quit [Ping timeout: 264 seconds]
<ddv> aka moon language
haxrbyte has quit [Ping timeout: 255 seconds]
astrobun_ has joined #ruby
Guest50 has joined #ruby
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IrishGringo has joined #ruby
naftilos76 has joined #ruby
mag42c has joined #ruby
sdwrage has joined #ruby
diegoviola has joined #ruby
IrishGringo has quit [Remote host closed the connection]
s00pcan has joined #ruby
<DEA7TH> Is there a nicer way to map inner elements? Like so: [[1, 2], [10, 20], [50, 100]].map{|a| a.map{|e| e + 1}}
varunwachaspati has joined #ruby
<apeiros> DEA7TH: well, for this specific case: .map { |a,b| [a+1, b+1] }
SenpaiSilver has quit [Ping timeout: 244 seconds]
diegoviola has quit [Client Quit]
<apeiros> in case of arbitrary number of elements - I don't think there is a nicer way.
<DEA7TH> apeiros: I want the general case. Any number of elements
dravine has quit [Read error: Connection reset by peer]
dravine has joined #ruby
<[k-> your case is the general case
solocshaw has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
bonhoeffer has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cwong_on_irc has joined #ruby
solocshaw1 is now known as solocshaw
astrobun_ has quit [Remote host closed the connection]
JDiPierro has joined #ruby
rdavila has joined #ruby
<shay-> hi, I have a quiet complex printf statement, which works pretty well on stdout, but how can I write the output also in a file?
<certainty> shay-: tee(1)
JDiPierro has quit [Remote host closed the connection]
<yorickpeterse> that's not really Ruby
futilegames has joined #ruby
Igorshp has joined #ruby
<certainty> maybe ruby isn't needed
<yorickpeterse> shay-: you can just use printf on a File/IO object
<yorickpeterse> shay-: so something like `File.open('path/to/file', 'w') { |handle| handle.printf('something here') }`
<certainty> wouldn't they need a form of broadcast IO that forwards to $stdout and the file io?
<yorickpeterse> what?
victortyau has joined #ruby
<yorickpeterse> I think the question was pretty simple
<certainty> they want to *also* log to a file no?
Chaoborid has joined #ruby
TPBallbag has quit []
<shay-> certainty: i am not talking about printf on the shell but the ruby command like puts
<[k-> def puts puts to mah stdout, puts to mah file
<shay-> yorickpeterse: thank you I will give it a try :)
JDiPierro has joined #ruby
symbol has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
nemo__ has quit [Remote host closed the connection]
sgambino has joined #ruby
<certainty> shay-: neither did I
<[k-> was*
tkuchiki has quit [Remote host closed the connection]
<[k-> i should become an English teacher
<shay-> certainty: hmm ok well I dont know why you say that ruby is not needed
<[k-> marking compositions and circling all those mistakes
nys- has joined #ruby
<certainty> shay-: while you can do that in ruby you can also just run your app like so: $ /path/to/yourapp |tee /path/to/file
<certainty> same effect
<certainty> there are many solutions. This one might or might not suite your needs
<certainty> it was just a suggestion
<shay-> certainty: no because I want only this single statement in the file, not the whole output =)
diegoviola has joined #ruby
yeticry_ has joined #ruby
tkuchiki has joined #ruby
<certainty> shay-: ah, I see. Then it doesn't work for you.
kp666 has quit [Quit: Leaving]
`tim` has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
tkuchiki_ has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
astrobun_ has joined #ruby
sanjayu has quit [Ping timeout: 246 seconds]
techsethi has quit [Quit: techsethi]
tkuchiki has quit [Ping timeout: 246 seconds]
Chaobori_ has joined #ruby
moredhel has quit [Quit: byee]
pzb has joined #ruby
rwilcox has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
Melpaws1 has quit [Ping timeout: 255 seconds]
moredhel has joined #ruby
grekkos_ has joined #ruby
syath has joined #ruby
pepperbreath has left #ruby [#ruby]
freerobby has joined #ruby
blackmesa has joined #ruby
umgrosscol has joined #ruby
zenguy_pc has joined #ruby
Cyther has joined #ruby
grekkos_ has quit [Ping timeout: 240 seconds]
symbol has quit [Quit: WeeChat 1.1]
Cyther_ has quit [Ping timeout: 268 seconds]
khebbie has joined #ruby
haylon has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
bruno- has joined #ruby
GnuYawk has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
nys- has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
breadmonster has joined #ruby
<breadmonster> hey guys.
blackoperat has joined #ruby
<breadmonster> Is there a good Rails tutorial you could suggest?
blackoperat has quit [Client Quit]
<ddv> I'm not a guy
<breadmonster> ddv: Alright, hi girls. Is there a good rails tutorial you could suggest?
sankaber has joined #ruby
blackoperat has joined #ruby
<ddv> breadmonster: you're in the wrong channel
<ddv> so I can't suggest one
<apeiros> ?rails breadmonster
<ruboto> breadmonster, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<breadmonster> Ah okay.
<breadmonster> Didn't know that.
hfp_work has quit [Ping timeout: 264 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
sankaber has quit [Remote host closed the connection]
<[k-> you are not prohibited to discuss a teeny bit of rails here, but we do appreciate if you try to help if you can
<[k-> s/but/and/
sankaber has joined #ruby
hfp_work has joined #ruby
<breadmonster> [k-: Yeah, sure, that other channel seems to be dead though...
gambl0re has quit [Ping timeout: 246 seconds]
lessless has joined #ruby
<[k-> it will spring to life eventually
Chaobori_ has quit [Quit: Textual IRC Client: www.textualapp.com]
tjohnson has joined #ruby
Chaoborid has quit []
<apeiros> 600 users - should indeed. I'd guess the rails website has some links to resources.
davedev24 has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
techsethi has joined #ruby
dhjondoh has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 265 seconds]
prestorium has quit [Read error: Connection reset by peer]
whippythellama has joined #ruby
prestorium has joined #ruby
cdg has joined #ruby
karapetyan has quit [Remote host closed the connection]
idefine has joined #ruby
skweek has joined #ruby
riotjones has quit [Read error: No route to host]
riotjones has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
treehug88 has joined #ruby
karapetyan has quit [Remote host closed the connection]
cwong_on_irc has quit [Quit: Leaving.]
idefine has quit [Remote host closed the connection]
moredhel has quit [Quit: byee]
zotherst1 has joined #ruby
alexherbo2 has quit [Ping timeout: 244 seconds]
moredhel has joined #ruby
demonlove has joined #ruby
anisha has joined #ruby
zotherstupidguy has quit [Ping timeout: 268 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
stan has quit [Quit: Leaving]
khebbie_ has joined #ruby
mary5030 has joined #ruby
stannard has joined #ruby
Darryl___ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PlasmaStar has quit [Max SendQ exceeded]
weihan has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
colintherobot has joined #ruby
PlasmaStar has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
khebbie` has joined #ruby
mase-chatter has joined #ruby
devdazed has joined #ruby
idefine has joined #ruby
smooth_penguin has quit [Remote host closed the connection]
favadi has joined #ruby
khebbie` has quit [Client Quit]
DoubleMalt has joined #ruby
jxl180 has joined #ruby
khebbie` has joined #ruby
diegobiavati has joined #ruby
favadi has quit [Max SendQ exceeded]
moeabdol has quit [Read error: Connection reset by peer]
stan has joined #ruby
moeabdol has joined #ruby
favadi has joined #ruby
ruurd has quit [Ping timeout: 260 seconds]
rikkipitt has joined #ruby
cndiv_ has joined #ruby
paulcsmith has joined #ruby
nemo_ has joined #ruby
GnuYawk has joined #ruby
khebbie` has quit [Ping timeout: 264 seconds]
synthroid has quit []
aganov has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
moredhel has quit [Quit: byee]
moredhel has joined #ruby
tagrudev has quit [Remote host closed the connection]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mark2 has quit [Remote host closed the connection]
yashinbasement has quit [Quit: Leaving]
asxbr has joined #ruby
balazs has joined #ruby
hfp_work has quit [Ping timeout: 250 seconds]
moredhel has quit [Client Quit]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
moredhel has joined #ruby
alcipir has joined #ruby
BSaboia has joined #ruby
Jardayn has joined #ruby
futilegames has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Read error: Connection reset by peer]
techsethi has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
hfp_work has joined #ruby
favadi has joined #ruby
BrunoSaboia has joined #ruby
nys- has joined #ruby
_blizzy_ has joined #ruby
favadi has quit [Client Quit]
diegoviola has joined #ruby
bMalum has quit [Quit: bMalum]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<mehwork> how come 0..3.to_array doesn't work unless you add parens? I thought parens were option in ruby?
<mehwork> .to_a that is
karapetyan has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
<yorickpeterse> Because it's parsed as 0..(3.to_array)
krz has joined #ruby
<yorickpeterse> instead of (0..3).to_array
<mehwork> i see
<Ebok> probably because a range is define by the parenthesis as a single object
<Ebok> >_>
<Ebok> Or his answer
<ytti> precedence
<ytti> like yorick said
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
BLuEGoD has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nofxx has quit [Ping timeout: 252 seconds]
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
_wldcordeiro has joined #ruby
toy has quit [Quit: Leaving...]
bMalum has joined #ruby
Jardayn has quit [Quit: Leaving]
doublemalt_ has joined #ruby
yitsushi has joined #ruby
bonhoeffer has joined #ruby
treehug88 has joined #ruby
momomomomo has joined #ruby
alexherbo2 has joined #ruby
sdothum has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
balazs has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
favadi has joined #ruby
colintherobot has quit [Quit: leaving]
spider-mario has quit [Remote host closed the connection]
<[k-> >> 1..5 # Ebok
<ruboto> [k- # => 1..5 (https://eval.in/454129)
Guest99561 is now known as C0deMaver1ck
solocshaw has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 240 seconds]
<Ebok> fair
emilkarl has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
kies^ has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 240 seconds]
linuxboytoo has joined #ruby
favadi has quit [Client Quit]
kies has joined #ruby
diegoaguilar has joined #ruby
<eam> >> [*1..5]
<ruboto> eam # => [1, 2, 3, 4, 5] (https://eval.in/454134)
diego4 has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
cndiv_ has quit [Quit: Be back later ...]
bonhoeffer has quit [Ping timeout: 246 seconds]
rdavila has joined #ruby
khebbie` has joined #ruby
Gnomethrower has joined #ruby
Renich has joined #ruby
diego4 has quit [Changing host]
diego4 has joined #ruby
diego4 is now known as diegoviola
JDiPierro has quit [Remote host closed the connection]
BSaboia has joined #ruby
balazs has joined #ruby
khebbie` has quit [Client Quit]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
BrunoSaboia has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
eminencehc has quit [Read error: Connection reset by peer]
dymko has joined #ruby
eminencehc has joined #ruby
breadmonster has quit [Ping timeout: 246 seconds]
<ytti> if i like sequel, what python orm i'm likely to like?
<ytti> right now i'm thinkin peewee is my choice
jas02 has quit [Quit: jas02]
bmurt has joined #ruby
rdavila has quit [Quit: Textual IRC Client: www.textualapp.com]
eminencehc has quit [Remote host closed the connection]
lptr_ has left #ruby [#ruby]
astrobun_ has quit [Remote host closed the connection]
Kruppe has quit [Ping timeout: 255 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie` has joined #ruby
tuxero has joined #ruby
eminencehc has joined #ruby
khebbie` has quit [Client Quit]
favadi has joined #ruby
momomomomo_ has joined #ruby
shay- has left #ruby [#ruby]
favadi has quit [Max SendQ exceeded]
nemo_ has quit [Remote host closed the connection]
jcoe has joined #ruby
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
axl_ has joined #ruby
<[k-> what a weird name
jhass has quit [Quit: Bye]
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yitsushi has joined #ruby
<havenwood> [k-: Wolfeschlegelsteinhausenbergerdorff
<[k-> i spot no einstein therw
skweek has quit [Read error: Connection reset by peer]
Guest50 has joined #ruby
pzb has quit [Remote host closed the connection]
Kruppe has joined #ruby
GnuYawk has quit [Ping timeout: 260 seconds]
<havenwood> [k-: Ah, you're commenting that it's an odd name not trying to find one. My coffee levels aren't yet stabilized.
pzb has joined #ruby
St1gma has quit [Remote host closed the connection]
decoponio has joined #ruby
pzb has quit [Client Quit]
jas02 has joined #ruby
jhass has joined #ruby
banister has joined #ruby
tenderlove has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
<shevy> coffeeeeee
ponga has joined #ruby
<shevy> coffeewood
shinenelson has quit [Quit: Connection closed for inactivity]
khebbie_ has quit [Ping timeout: 256 seconds]
khebbie has quit [Ping timeout: 255 seconds]
beauby has joined #ruby
agentmeerkat has quit [Quit: leaving]
mleung has joined #ruby
<adaedra> ?coffee shevy
<ruboto> shevy, here's a coffee, you seem to need it: ☕
nemo_ has joined #ruby
blackope_ has joined #ruby
jhass has quit [Quit: Bye]
<[k-> ?coffee havenwood havenwood havenwood havenwood havenwood havenwood havenwood havenwood
<ruboto> havenwood, here's a coffee, you seem to need it: ☕
Jardayn has joined #ruby
dravine has quit [Quit: salut!]
slawrence00 has joined #ruby
hfp_work has quit [Ping timeout: 250 seconds]
dravine has joined #ruby
glundgren has quit [Ping timeout: 246 seconds]
<adaedra> so many hls
hfp_work has joined #ruby
dfinninger has joined #ruby
rpx has joined #ruby
lessless has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
dopie has joined #ruby
mleung has quit [Quit: mleung]
tenderlove has quit [Ping timeout: 252 seconds]
jhass has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
skade has quit [Quit: Computer has gone to sleep.]
devdazed has joined #ruby
tenderlove has joined #ruby
bigmac_ has quit [Ping timeout: 265 seconds]
<rpx> Can someone explain this out? https://eval.in/454163
karapetyan has quit [Remote host closed the connection]
polishdub has joined #ruby
it_tard has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<apeiros> rpx: main has its own
<apeiros> >> method(:define_method)
<ruboto> apeiros # => #<Method: main.define_method> (https://eval.in/454164)
<rpx> apeiros: Where is it defined?
<havenwood> >> method(:define_method).owner
<rpx> rpx: It's not in main's class nor it's superclass BasicObject.
<ruboto> havenwood # => #<Class:#<Object:0x41fb6e40>> (https://eval.in/454165)
Pupp3tm4st3r has quit [Remote host closed the connection]
<apeiros> rpx: as said, in main itself.
<apeiros> >> x = Object.new; def x.foo; "x.foo"; end; x.foo
<ruboto> apeiros # => "x.foo" (https://eval.in/454166)
<apeiros> no other instance of Object has this method 'foo'. only the one reference by x.
<rpx> rpx: How can it be defined in an object? That doesn't work out in the object model. Methods are only defined in classes.
<havenwood> >> class << self; remove_method :inspect end; self
<ruboto> havenwood # => #<Object:0x4058ae40> (https://eval.in/454167)
<apeiros> rpx: technically it's defined in the object's singleton_class
eminencehc has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 252 seconds]
shinenelson has joined #ruby
<apeiros> colloquially we say "it's defined on the object itself".
<apeiros> same as class methods btw.
riotjones has quit [Remote host closed the connection]
JDiPierro has joined #ruby
eminencehc has joined #ruby
Muz has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
hfp_work has quit [Ping timeout: 244 seconds]
sanguisdex has joined #ruby
eminence_ has joined #ruby
<theRoUS> i have a script that has a 'require "foo"'. the foo.rb file is on some systems, but not on others. for those where it's not present, i'd like the requiring file to just stop being interpreted. something like 'begin ; require "foo"; rescue LoadError => exc ; stop_processing_this_file ; end ; go_on_with_stuff_that_uses_foo'
soc42 has joined #ruby
kimegede has quit [Quit: Linkinus - http://linkinus.com]
nemo_ has quit [Remote host closed the connection]
[k- has quit [Read error: Connection reset by peer]
[k- has joined #ruby
nys- has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
dopie has joined #ruby
hfp_work has joined #ruby
finisherr has joined #ruby
futilegames has quit [Quit: futilegames]
<apeiros> theRoUS: and your question is?
pocketprotector- has joined #ruby
<jhass> theRoUS: I'd have load_foo.rb: begin; require "do_foo"; rescue LoadError; end; do_foo.rb: require "foo"; go_on_with_stuff_that_uses_foo
dravine has quit [Ping timeout: 240 seconds]
eminencehc has quit [Ping timeout: 240 seconds]
<jhass> or better yet extract go_on_with_stuff_that_uses_foo into a single entry point/class/whatever and just begin; require "foo"; FooHandler.new; rescue LoadError; end;
eminence_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
rpx has quit [Quit: Page closed]
Nilium has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<theRoUS> apeiros: my question is, is there any way to signal 'stop parsing'?
rikkipitt has quit [Quit: Leaving...]
<theRoUS> jhass: yeah, that may be where we go
benaiah has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
dravine has joined #ruby
kurzweil has quit [Ping timeout: 265 seconds]
RazorX has quit [Read error: Connection reset by peer]
<theRoUS> apeiros: like 'rescue LoadError ; eval("=cut") ; end'
The_Phoenix has joined #ruby
RazorX has joined #ruby
* theRoUS laughs at the insanity of that twisted bit of metaprograming
<apeiros> theRoUS: no. but you can either do what jhass said or put all code which requires 'foo' into the begin/end's else block.
kurzweil has joined #ruby
Nilium has joined #ruby
AlexRussia has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<theRoUS> apeiros: that's what i feared. :-(
<theRoUS> o well. thanks!
TomyWork has joined #ruby
<apeiros> why's that a fear?
rodfersou is now known as rodfersou|lunch
<apeiros> I mean, what's fearsome about it?
EllisTAA has joined #ruby
blackope_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Peg-leg has quit [Quit: Leaving.]
benaiah has joined #ruby
acke has quit [Remote host closed the connection]
<[k-> __END__?
<[k-> stop parsing?
grekkos_ has joined #ruby
<[k-> what is this?!
relix has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
<apeiros> [k-: that's unconditionally "stop parsing", though
<[k-> oh, he wants to make sure his code doesnt die when ruby throws a loaderror
psy_ has joined #ruby
<[k-> >> __END__
<ruboto> [k- # => undefined local variable or method `__END__' for main:Object (NameError) ...check link for more (https://eval.in/454168)
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> :/
<[k-> well, i guess there are only certain places you can put __END__
<[k-> makes sense
anisha has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
Gnomethrower has joined #ruby
chopin has joined #ruby
grekkos_ has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
<shevy> someone here once wanted to have multiple __END__
<shevy> either it was eam... or apeiros ... or ... hmmm
emilkarl has quit [Quit: emilkarl]
<apeiros> I don't want multiple __END__. but I have a lib to use the __END__ of any .rb file.
zwdr has joined #ruby
<apeiros> (as if it was an ordinary File)
<[k-> my battery dies quickly, i think i broke it
<[k-> oops
The_Phoenix has joined #ruby
<shevy> aha
Gnomethrower has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Max SendQ exceeded]
Gnomethrower has joined #ruby
The_Phoenix has joined #ruby
Kruppe has quit [Ping timeout: 255 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
nemo_ has joined #ruby
jas02 has quit [Quit: jas02]
nys- has joined #ruby
karapetyan has joined #ruby
momomomomo has joined #ruby
diegoviola has joined #ruby
aufi has quit [Quit: Konversation terminated!]
caliostro has quit [Remote host closed the connection]
skade has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
Muz has joined #ruby
pauly_oc has quit [Ping timeout: 255 seconds]
Kruppe has joined #ruby
The_Phoenix has joined #ruby
step1step2_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
step1step2_ has quit [Client Quit]
The_Phoenix has joined #ruby
clebrun has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
kaleido has joined #ruby
codecop has quit [Remote host closed the connection]
step1step2 has quit [Ping timeout: 265 seconds]
kiddorails has quit [Remote host closed the connection]
clebrun has quit [Client Quit]
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
dANO_ has quit []
_el_fer_ has joined #ruby
The_Phoenix has joined #ruby
solars has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Max SendQ exceeded]
psy_ has quit [Ping timeout: 252 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
cwong_on_irc has joined #ruby
_blizzy_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terlar has quit [Read error: No route to host]
deception1 has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<deception1> how popular is property based testing with ruby on rails community ?
s00pcan has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
<havenwood> deception1: you'll get more Rails folk in the #rubyonrails channel
ldnunes has quit [Read error: Connection reset by peer]
<havenwood> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<yorickpeterse> deception1: AFAIC not at all
<yorickpeterse> * AFAICT
moeabdol has quit [Ping timeout: 250 seconds]
<momomomomo> hey all, if ruby were rails, what would ruby really rube
<yorickpeterse> it took years for Rails to figure out foreign keys weren't so bad after all, I doubt they'd even look into property based testing
big|bad|wolf has joined #ruby
<yorickpeterse> :troll:
<momomomomo> yorickpeterse: that's not true, the implementation of them was held back by complexity
<zwdr> I only heard bad things about RoR :s
<momomomomo> the documentation IIRC stated that you had to add your own foreign keys due to this
<zwdr> Like, the legendary rant about it being a ghetto
arthurix has joined #ruby
s00pcan has joined #ruby
ldnunes has joined #ruby
The_Phoenix has joined #ruby
Asher has joined #ruby
baroquebobcat has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
herbst has quit [Remote host closed the connection]
diegoviola has quit [Read error: Connection reset by peer]
Asher has quit [Client Quit]
jxl180 has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
arthurix_ has quit [Ping timeout: 256 seconds]
lxsameer has quit [Quit: Leaving]
lee-jon has joined #ruby
faras has joined #ruby
gusrub has joined #ruby
chinmay_dd has joined #ruby
dravine_ has joined #ruby
dravine has quit [Ping timeout: 264 seconds]
dravine_ is now known as dravine
[Butch] has joined #ruby
gusrub has quit [Client Quit]
lkba has joined #ruby
<deception1> ok, then how popular is property based testing in ruby community ?
momomomomo has left #ruby [#ruby]
<shevy> I never heard the term before
p0wn3d has joined #ruby
dymko has quit [Ping timeout: 246 seconds]
<shevy> rspec, minitest and bacon - these are the ways
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 246 seconds]
djcp1 has joined #ruby
diego2 has joined #ruby
vigintas has quit [Quit: vigintas]
<shevy> wheee that's the gamebox author right
<zwdr> heh yea shevy, he's an expert in ranting, for sure
daffy_duck_2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
stan has quit [Ping timeout: 256 seconds]
Lucky__ has joined #ruby
<deception1> shevy: what is gamebox ??
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
Hounddog has quit [Read error: Connection reset by peer]
daffy_duck has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Read error: Connection timed out]
moredhel has quit [Quit: byee]
amclain has joined #ruby
<deception1> shevy: nvm I got it :)
Cyther_ has joined #ruby
IrishGringo has joined #ruby
NeverDie has joined #ruby
ruurd has joined #ruby
n008f4g_ has joined #ruby
demonlove has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
aryaching has joined #ruby
vigintas has joined #ruby
lolmaus has joined #ruby
Cyther has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
trautwei_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Max SendQ exceeded]
DroidBurgundy has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
The_Phoenix has joined #ruby
big|bad|wolf has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
diegoviola has quit [Read error: Connection reset by peer]
gustav_ has quit [Remote host closed the connection]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
big|bad|wolf has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
trautwein has joined #ruby
<shevy> deception1 he kinda wanted to write it for his kids
synthroid has quit [Remote host closed the connection]
<shevy> years ago I wanted to try it out! but I am so lazy that every time statement will have to be multiplied by *20 so in 20 years I may try it out
tommylommykins has quit [Remote host closed the connection]
trautwein has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
vasilakisfil has joined #ruby
karapetyan has joined #ruby
pdoherty has joined #ruby
rdavila has joined #ruby
tommylommykins has joined #ruby
kalusn has quit [Remote host closed the connection]
<vasilakisfil> if I have this array: [:id, :may_publish?, :likes, {:user=>[:username]}] how can I convert it in [:id, :may_publish?, :likes, user: [:username]] ?
lee-jon has left #ruby [#ruby]
snockerton has joined #ruby
<vasilakisfil> StrongParams does that but couldn't figure it out from the source code
zenguy_pc has joined #ruby
diego2 has joined #ruby
gustav_ has joined #ruby
jessemcgilallen has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
musl has quit [Quit: WeeChat 1.1.1]
karapetyan has quit [Ping timeout: 255 seconds]
musl has joined #ruby
aryaching has joined #ruby
musl has quit [Client Quit]
jxs__ has quit [Remote host closed the connection]
fmax has joined #ruby
<fmax> How does ruby execute the const_missing method here? https://eval.in/454180
diego2 has quit [Changing host]
diego2 has joined #ruby
andikr has quit [Remote host closed the connection]
musl has joined #ruby
musl has quit [Client Quit]
towski_ has joined #ruby
p0wn3d has quit [Ping timeout: 256 seconds]
<tubbo> fmax: it's kinda like a "callback"...ruby executes it when a constant is missing. much like how ruby executes method_missing on an object when a method is missing.
<havenwood> vasilakisfil: Are your examples as you intended? (They're the same.)
<havenwood> >> [:id, :may_publish?, :likes, user: [:username]]
<ruboto> havenwood # => [:id, :may_publish?, :likes, {:user=>[:username]}] (https://eval.in/454181)
<tubbo> vasilakisfil: it's identical.
<fmax> tubbo: So const missing isn't directly executed on self, correct?
moredhel has joined #ruby
musl has joined #ruby
<tubbo> vasilakisfil: [:id, :may_publish?, :likes, user: [:username]] is identical to [:id, :may_publish?, :likes, { user: [:username] }] is two ways of writing the same thing.
<tubbo> fmax: not sure. i think if you have module FmaxModule, and you have a self.const_missing method defined on that, then when someone calls FmaxModule::NOT_A_REAL_CONSTANT it will hit your method
<tubbo> fmax: pretty sure it has to be defined on the eigenclass because that's where the constants are defined, not on the instance.
musl has quit [Client Quit]
senayar has quit []
<tubbo> definitely have to define it as self.const_missing :)
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Quit: This computer has gone to sleep]
The_Phoenix1 has joined #ruby
<fmax> tubbo: So I guess const_method can only be defined for Class and Module instances
<fmax> tubbo: const_missing*
rismoney1 has quit [Remote host closed the connection]
GnuYawk has joined #ruby
blackmes1 has joined #ruby
The_Phoenix has quit [Ping timeout: 272 seconds]
p0wn3d has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
grekkos_ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
weihan has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
diegobiavati has quit [Remote host closed the connection]
chouhoulis has quit []
weihan has joined #ruby
nertzy has joined #ruby
sanjayu has joined #ruby
Igorshp has quit [Remote host closed the connection]
chouhoulis has joined #ruby
trautwein has joined #ruby
soc42 has quit [Remote host closed the connection]
mprelude has joined #ruby
Asher has joined #ruby
The_Phoenix1 has quit [Max SendQ exceeded]
weihan has quit [Ping timeout: 252 seconds]
<tubbo> fmax: it just has to be defined in the same lexical scope as you're expecting the actual constant
mikecmpbll has quit [Ping timeout: 250 seconds]
<tubbo> so if you define it on the eigenclass, it will only be run for constants called on your module, but if you define it in the main scope (Kernel), it will get run all the time
TomyWork has quit [Remote host closed the connection]
mprelude has quit [Client Quit]
dopamean_ has quit [Ping timeout: 260 seconds]
rodfersou|lunch is now known as rodfersou
djbkd has quit [Remote host closed the connection]
JimmyNeutron has left #ruby ["Leaving"]
speakingcode has joined #ruby
ddv has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
hahuang65 has joined #ruby
The_Phoenix has joined #ruby
nys- has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Max SendQ exceeded]
synthroid has joined #ruby
prestorium has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
The_Phoenix has joined #ruby
niftylettuce has joined #ruby
nys- has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
gexe__ has quit [Ping timeout: 265 seconds]
spider-mario has joined #ruby
idefine has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
Gnomethrower has joined #ruby
The_Phoenix has joined #ruby
mprelude has joined #ruby
tenderlove has joined #ruby
lkba has quit [Quit: Bye]
Soda has joined #ruby
ruurd has quit [Quit: Bye]
The_Phoenix has quit [Max SendQ exceeded]
ddv has joined #ruby
Pumukel has joined #ruby
s2013 has joined #ruby
Igorshp has quit [Remote host closed the connection]
karapetyan has joined #ruby
step1step2 has joined #ruby
musl has joined #ruby
psy_ has joined #ruby
The_Phoenix has joined #ruby
musl has quit [Client Quit]
The_Phoenix has quit [Max SendQ exceeded]
VeryBewitching has joined #ruby
dfockler has quit [Ping timeout: 260 seconds]
musl has joined #ruby
idefine has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
musl has quit [Client Quit]
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigmac_ has joined #ruby
yitsushi has joined #ruby
karapetyan has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eaxxae has joined #ruby
j4cknewt has joined #ruby
dfinninger has quit [Remote host closed the connection]
mprelude has quit [Quit: WeeChat 1.3]
pandaant has quit [Remote host closed the connection]
snockerton has quit [Quit: Leaving.]
dravine_ has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has quit [Quit: jessemcgilallen]
Igorshp has joined #ruby
dravine has quit [Ping timeout: 268 seconds]
dravine_ is now known as dravine
<adaedra> see ya all
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
bigkevmcd has joined #ruby
arthurnn has joined #ruby
bigkevmcd has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
arthurnn has quit [Client Quit]
The_Phoenix has joined #ruby
kalusn has joined #ruby
Cyther_ has quit [Quit: Leaving]
Cyther has joined #ruby
snockerton has joined #ruby
arthurnn has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
ramfjord has joined #ruby
riotjones has joined #ruby
tenderlove has joined #ruby
tkuchiki has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
bmurt has joined #ruby
rdavila has joined #ruby
dopie has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
skade has joined #ruby
darkf has quit [Quit: Leaving]
<shevy> no
solocshaw has joined #ruby
idefine has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 250 seconds]
<shevy> stay at work adaedra
fmax has quit [Quit: Page closed]
wallerdev has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
adac has quit [Ping timeout: 250 seconds]
diegoaguilar has quit [Ping timeout: 252 seconds]
<yorickpeterse> adaedra: yeah, be a proper sillicon valley nerd and stay at work until at least midnight
<yorickpeterse> otherwise no equity for you
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopamean_ has joined #ruby
The_Phoenix has joined #ruby
musl has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
eaxxae has quit [Ping timeout: 268 seconds]
<Eiam> lol
<Eiam> what
EllisTAA has quit [Quit: EllisTAA]
ngscheurich has joined #ruby
<Eiam> I mean, I did work until 1am last night
<Eiam> but by choice.. =0
<Eiam> hmm I do have equity. maybe yorickpeterse is right after all? =0
<shevy> this is why sillicon valley is so strong! you never sleep, you work all the time
<Eiam> shevy: only work the work is interesting tbh
<Eiam> I was working on something interesting last night and I really wanted to see it come together
<Ebok> I thought it was cause coding work is play
<Ebok> >_>
<Eiam> so I stayed up until it did
<xxneolithicxx> are we supposed to sleep if we arent in silicon valley? no one told me this!?!?
<shevy> not if you wanna make the big bucks
<xxneolithicxx> hi shevy :-)
<Eiam> I just really want to take the time to finish avdi's book
<Eiam> and apply it to something!
tenderlove has quit [Read error: Connection reset by peer]
rovo has joined #ruby
<rovo> When at the top-level, what's the lexically enclosing scope? Is it the Object Class?
musl has quit [Client Quit]
<Eiam> avdi -> is that him?
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eiam> yeah it is
<jhass> rovo: self is an anonymous instance of Object, the definee is Object, methods are private by default
The_Phoenix has quit [Max SendQ exceeded]
eaxxae has joined #ruby
<rovo> jhass: Since the definee is Object, a constant, C, for example, is searched inside the Object class correct?
eaxxae has quit [Client Quit]
<jhass> rovo: yup
<yorickpeterse> sleep is for scrubs
<jhass> Object is the root namespace
<yorickpeterse> real brogrammers just drink energy drinks
<jhass> >> Object::Object::Object # as such it contains itself
<ruboto> jhass # => Object (https://eval.in/454198)
avril14th has quit [Remote host closed the connection]
tenderlove has joined #ruby
yosiat has joined #ruby
Jackneill has joined #ruby
<rovo> jhass: When a file is required, all constants from that file get defined inside the Object class too?
<jhass> yes
musl has joined #ruby
leafybas_ has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
musl has quit [Client Quit]
<Eiam> yorickpeterse: fuck, I drink those too
<Eiam> yorickpeterse: I'm like 2 for 2 right now
<Eiam> you've got me figured out
nertzy has quit [Quit: This computer has gone to sleep]
<Eiam> next you are gonna tell me I take amphetamines and anti depressants
idefine has joined #ruby
nemo_ has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
<haylon> I must rant. I hate stupid co-workers.
diegoaguilar has joined #ruby
<Eiam> haylon: lay it down!
rgb-one has joined #ruby
<rgb-one> Hello
riceandbeans has left #ruby [#ruby]
<eam> is coffee an energy drink?
<jhass> haylon: we got an excellent offtopic channel for that, it's all hangman games and rants by yorick
<haylon> Trying to explain to them how hysterics works, and that there needs to be an escalation in notification instead of a bunch of false positives. because now I'm just junking all emails from that host.
<jhass> eam: depends on whether you add sugar or not
arup_r has joined #ruby
<eam> hm, no sugar please
<rgb-one> How can I implement a -o, --output flag which will allow me to output content to a file.
<jhass> eam: then not
<rgb-one> eg. progname infile.txt -o outfile.txt
<ytti> what a weird question
<yorickpeterse> Eiam: :P
<ytti> sounds homeworky
<yorickpeterse> Eiam: you might be more bro than you think
<ytti> programmer would ask either, how to read arguments from stdin
<ytti> or how to write to a fiel
<yorickpeterse> Eiam: do you also drive a Tesla?
<Eiam> yorickpeterse: refrained from purchasing
<Eiam> yorickpeterse: drive a prius c instead
<yorickpeterse> prrrffft
<yorickpeterse> pleb
<Eiam> yorickpeterse: I'm 100% bro through & through
iateadonut has quit [Quit: Leaving.]
<Eiam> yorickpeterse: I can't justify that kind of capex on a car
<Eiam> =)
iateadonut has joined #ruby
sharkman has joined #ruby
<yorickpeterse> then clearly you're not pushing enough code in the evenings just yet
<Eiam> =(
<ytti> car capex is one time
<ytti> for your lifetime
<Eiam> I'm not even a programmer by trade lol
<Eiam> ytti: oh yeah, those cars that last 90 years? =0
<ytti> nope
<ytti> you always pay loss of value monthly
<ytti> which is like 150eur/month for mid range car
<rgb-one> ytti: You have a point, it shouldn't be difficult to implement, but the major confusion I think is with using optparse.
mikecmpbll has joined #ruby
<ytti> so you can keep buying new mid range car pretty much when ever you want
<ytti> just add the loss of value
<rgb-one> Or maybe not
malcolmva has quit [Remote host closed the connection]
<rgb-one> I will attempt it first :p
gard has joined #ruby
idefine has quit [Ping timeout: 272 seconds]
GnuYawk has quit [Ping timeout: 264 seconds]
bonhoeffer has joined #ruby
bonhoeffer has quit [Client Quit]
Rollabun_ has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Eiam> ytti: and forever have a payment
<rgb-one> I have been using ARGV.shift to test if any arguments have been passed to the commandline. Any other approaches?
tuxero has quit [Ping timeout: 256 seconds]
<Eiam> ytti: I just paid off my car.. worth about $25k, owe $0
ramfjord has quit [Ping timeout: 252 seconds]
<Eiam> I like to not have debt, even when its 2% serviced debt
gustav_ has quit [Remote host closed the connection]
<Eiam> and ostensibly I could do 8-12% in S&P500
skade has joined #ruby
mase-chatter has quit [Quit: Leaving]
JDiPierro has joined #ruby
felltir has joined #ruby
<eam> s&p returns over the past decade are closer to 5%
based_pdev_ has joined #ruby
malcolmva has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
segfalt has quit [Quit: segfalt]
based_pdev has quit [Ping timeout: 260 seconds]
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby
bigmac_ has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
<rovo> jhass: When a file is required, where does it get executed? Does it get executed in the current scope or what?
treehug88 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> rovo: each file gets its own scope
bewie has joined #ruby
<jhass> rovo: from the file's perspective there's no difference to being loaded by ruby foo.rb or require "foo"
sharkman has quit [Ping timeout: 260 seconds]
agentmeerkat has joined #ruby
dfockler has joined #ruby
nemo_ has joined #ruby
leafybasil has joined #ruby
ivanskie has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
leafybasil has quit [Remote host closed the connection]
leafybas_ has joined #ruby
djbkd has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
kobain has joined #ruby
musl has joined #ruby
weemsledeux has joined #ruby
<Eiam> eam: still better than 2% ;)
diego2 has quit [Quit: WeeChat 1.3]
<Eiam> eam: I was thinking of my own portoflio which has been 12-17% over the past 10 years but, its not exactly S&P500
kobain has quit [Max SendQ exceeded]
<Eiam> anyway
segfalt has joined #ruby
kobain has joined #ruby
arthurix_ has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
trosborn has joined #ruby
<nys-> anybody in chicago trying to buy a couple bitcoin
nys- has left #ruby ["Textual IRC Client: www.textualapp.com"]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
musl has quit [Client Quit]
musl has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has joined #ruby
zenguy_pc has quit [Ping timeout: 264 seconds]
arthurix has quit [Ping timeout: 260 seconds]
tuxero has joined #ruby
eminencehc has quit [Remote host closed the connection]
sanjayu has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
<rovo> jhass: Why does this not work? https://eval.in/454204
<jhass> Scope::Object is not Object
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
musl_ has joined #ruby
<rovo> jhass: I'm trying to emulate what happens when a file is required, but I don't know if this is correct ...
eminencehc has joined #ruby
baroquebobcat has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
musl_ has quit [Client Quit]
<jhass> rovo: I don't think you can in Ruby
tenderlo_ has quit [Read error: Connection reset by peer]
solars has joined #ruby
tenderlove has joined #ruby
sharkman has joined #ruby
felltir has quit []
barhum2013 has joined #ruby
dravine has quit [Ping timeout: 264 seconds]
dravine has joined #ruby
zenguy_pc has joined #ruby
neohunter has joined #ruby
neohunter has quit [Client Quit]
zcreative has joined #ruby
choke has joined #ruby
zcreative_ has joined #ruby
zcreative__ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
zcreative___ has joined #ruby
zcreative____ has joined #ruby
zcreative_____ has joined #ruby
zcreative_____ has quit [Remote host closed the connection]
<adaedra> yorickpeterse: shevy: if I had a job worth it
zcreative_____ has joined #ruby
<shevy> hehe
zcreative______ has joined #ruby
jpfuentes2 has joined #ruby
zcreative_______ has joined #ruby
<yorickpeterse> adaedra: come work for GitLab
snockerton has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 240 seconds]
zcreative has quit [Ping timeout: 250 seconds]
<adaedra> yorickpeterse: bad timing, I accepted my next job today
<yorickpeterse> well you have your first month probation right?
<yorickpeterse> :D
abyss has quit [Ping timeout: 240 seconds]
zcreative_ has quit [Ping timeout: 240 seconds]
zcreative__ has quit [Ping timeout: 240 seconds]
abyss has joined #ruby
<adaedra> ahah
zcreative___ has quit [Ping timeout: 256 seconds]
zcreative_______ has quit [Remote host closed the connection]
sharkman has quit [Ping timeout: 265 seconds]
zcreative____ has quit [Ping timeout: 246 seconds]
<adaedra> I like how you propose to be hired to figure on the 'pets' page
<adaedra> Ah no, to get your owner hired, read too fast
<yorickpeterse> :P
blaxter has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
tenderlove has joined #ruby
zcreative______ has quit [Ping timeout: 264 seconds]
zcreative_____ has quit [Ping timeout: 272 seconds]
eminencehc has quit [Remote host closed the connection]
<adaedra> But thanks for the proposition
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
eminencehc has joined #ruby
trautwein has joined #ruby
treehug88 has joined #ruby
ramfjord has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
adac has joined #ruby
arthurix has joined #ruby
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackoperat has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
solars has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
arthurix_ has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
arup_r has quit [Read error: Connection reset by peer]
devdazed_ has joined #ruby
alcipir has quit [Ping timeout: 240 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
devdazed has quit [Ping timeout: 260 seconds]
abyss has quit [Ping timeout: 264 seconds]
abyss has joined #ruby
eminence_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`based_pdev` has joined #ruby
_blizzy_ has joined #ruby
devdazed_ has quit [Max SendQ exceeded]
_blizzy_ has quit [Max SendQ exceeded]
zcreative has joined #ruby
devdazed has joined #ruby
treehug88 has quit [Read error: Connection reset by peer]
arthurnn has quit [Quit: bye...]
<zcreative> does anybody know how to limit group sizes when using group_by ?
workmad3 has quit [Ping timeout: 265 seconds]
gustav__ has joined #ruby
jackjackdripper has joined #ruby
eminencehc has quit [Ping timeout: 240 seconds]
GnuYawk has joined #ruby
jlevine has joined #ruby
A124 has quit [Ping timeout: 268 seconds]
arup_r has joined #ruby
based_pdev_ has quit [Ping timeout: 260 seconds]
decoponyo has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
eminence_ has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
<zwdr> So uh, I've got a more general question-- what's considered best practices regarding braces, when calling functions?
iateadonut has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
<jhass> zcreative: I have a hunch that might be implementable with Enumerable#chunk, didn't try though
PlasmaStar has quit [Ping timeout: 240 seconds]
<zcreative> I'll give it a look
kalusn has quit [Ping timeout: 252 seconds]
<jhass> zcreative: though probably easier to just roll your own with each_with_object({})
treehug88 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has quit [Ping timeout: 250 seconds]
eminencehc has quit [Remote host closed the connection]
Liam` has quit [Quit: http://bouncer.ml]
eminencehc has joined #ruby
snockerton has joined #ruby
cwong_on_irc has joined #ruby
<craysiii> good day everyone, any recommendations for some ruby/rails podcasts/confs i can listen to while working today?
maletor has joined #ruby
craysiii has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Read error: Connection reset by peer]
msb_ has quit [Remote host closed the connection]
avdi has quit [Ping timeout: 250 seconds]
Lloyd has quit [Ping timeout: 250 seconds]
Liam` has joined #ruby
maletor has quit [Client Quit]
avdi has joined #ruby
Lloyd has joined #ruby
PlasmaStar has joined #ruby
kirun has joined #ruby
kalusn has joined #ruby
<craysiii> thanks :)
<craysiii> ive seen the first one, it was really good
eminencehc has quit [Remote host closed the connection]
techsethi has joined #ruby
arthurnn has joined #ruby
eminencehc has joined #ruby
deception1 has quit [Quit: Leaving.]
sanguisdex has quit [Ping timeout: 256 seconds]
tubuliferous_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
<darix> craysiii: if you want to mostly listen: the last 4 episodes of star talk radio
platzhirsch has left #ruby [#ruby]
<darix> not rails/ruby related but still pretty good.
<craysiii> thanks !
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
eminencehc has quit [Remote host closed the connection]
sanguisdex has joined #ruby
firstdayonthejob has joined #ruby
cdg has quit [Remote host closed the connection]
<jxl180> zwdr: This is really helpful https://github.com/bbatsov/ruby-style-guide
tenderlove has joined #ruby
<zwdr> thanks jxl180
<jxl180> zwdr: No problem. That's my bible
<zwdr> :v
A124 has joined #ruby
<zwdr> time to refactor my code I guess!
shinnya has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symbol has joined #ruby
rdavila has joined #ruby
rovo has quit [Quit: Page closed]
BrunoSaboia has joined #ruby
idefine has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 244 seconds]
diego2 has joined #ruby
diego2 is now known as diegoviola
DaniG2k has quit [Quit: leaving]
yfeldblum has joined #ruby
sharkman has joined #ruby
mwlang has joined #ruby
karapetyan has joined #ruby
Dairenn_ has joined #ruby
maletor has joined #ruby
weemsledeux has joined #ruby
zr2d2 has joined #ruby
<zr2d2> I have a ruby script that I want to do a security scan on. Is there a tool like breakman I can use on a non-rails app?
tenderlove has quit [Read error: Connection reset by peer]
opensource_ninja has joined #ruby
nfk has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
atomical has joined #ruby
riotjones has joined #ruby
tenderlove has joined #ruby
mag42c_ has joined #ruby
bruno- has joined #ruby
musl has quit [Quit: WeeChat 1.1.1]
Dairenn_ has quit [Read error: Connection reset by peer]
podman has joined #ruby
sharkman has quit [Ping timeout: 256 seconds]
musl has joined #ruby
musl has quit [Client Quit]
musl has joined #ruby
mag42c has quit [Ping timeout: 265 seconds]
mag42c_ is now known as mag42c
riotjones has quit [Ping timeout: 252 seconds]
<shevy> you could use rubocop to look for a style guide
tuxero has quit [Quit: tuxero]
<shevy> and perhaps extend one of the cops to show "security" problems
n_blownapart has joined #ruby
jobewan has joined #ruby
<Ox0dea> Cops are a security problem, you say?
<Ox0dea> Sounds a little antidisestablishmentarian.
tuxero has joined #ruby
<treehug88> minus the 'dis'
tenderlove has quit [Read error: Connection reset by peer]
<Ox0dea> Or the "anti-", I suppose.
<shevy> Or everything.
<zr2d2> @shevy maybe, I was hoping I could configure brakeman to not expect the rails framework
leafybasil has joined #ruby
<shevy> well rails has some kind of base structure
<shevy> regular ruby code out in the wild will be very different
tenderlove has joined #ruby
ruurd has joined #ruby
gustav__ has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
alcipir has joined #ruby
codecop has joined #ruby
leafybasil has quit [Ping timeout: 268 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
chopin_ has joined #ruby
`tim` has joined #ruby
alcipir has quit [Ping timeout: 246 seconds]
chopin has quit [Ping timeout: 268 seconds]
codecop has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
prefixed has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
Igorshp has quit [Remote host closed the connection]
Coldblackice has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
hectortrope has quit [Remote host closed the connection]
nemo_ has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
tenderlove has joined #ruby
hectortrope has joined #ruby
yitsushi is now known as yitsushi^away
yitsushi^away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Karunamon|2 is now known as Karunamon
arthurix_ has joined #ruby
bronson has joined #ruby
yitsushi has joined #ruby
alcipir has joined #ruby
deception1 has joined #ruby
arthurix has quit [Ping timeout: 255 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
alcipir has quit [Ping timeout: 252 seconds]
dmx has joined #ruby
jcoe has quit [Ping timeout: 244 seconds]
bigmac_ has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
Xiti` is now known as Xiti
momomomomo has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
platzhirsch has joined #ruby
<zr2d2> @shevy: that's my problem, is that brakeman makes assumptions about how your code is organized
arthurix has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sharkman has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
arthurix_ has quit [Ping timeout: 255 seconds]
tenderlove has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 246 seconds]
rdavila has joined #ruby
spuk has joined #ruby
tenderlove has joined #ruby
eminencehc has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
IrishGringo has quit [Ping timeout: 240 seconds]
QORRiE has joined #ruby
bruno- has joined #ruby
karapetyan has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
vigintas has joined #ruby
skweek has joined #ruby
allcentury has joined #ruby
jobewan has quit [Ping timeout: 264 seconds]
eminencehc has joined #ruby
cwong_on_irc has quit [Read error: Connection reset by peer]
alcipir has joined #ruby
cwong_on_irc has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
<Ebok> is there a regex match for any change in letter? such as /a+|b+|c+...z+/
shmilan has joined #ruby
cdg has joined #ruby
<Ox0dea> Ebok: Could you clarify?
techsethi has quit [Quit: techsethi]
cantaberry has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<canton7> any *change*? you mean, e.g., "an 'a' followed by any letter than isn't an 'a'"?
Pumukel has joined #ruby
<Ebok> lets say I have a string that reads ('1a2a3a4b5b6a7c') and I'd like a regex that reduces that to ['aaa','bb','a','c']
<Ebok> or that
bruno- has quit [Ping timeout: 268 seconds]
<Ebok> if aaazzzzcc would match to aaa zzzz cc
<canton7> oh, so you're splitting?
<Ebok> yup
martin290 has joined #ruby
<martin290> hey everyone
<canton7> oh, so filter all non-letter characters, then split
gustav__ has joined #ruby
<Ebok> I want an array of collective identitical letters
vigintas has quit [Ping timeout: 250 seconds]
<Ebok> That wont work canton, then I end up with a a a z z z z c c
bayed has quit [Quit: Connection closed for inactivity]
<canton7> as in.. split intelligently ;)
<iszak> sounds like a bunch of zombie computers
<Ebok> lol
yitsushi is now known as yitsushi^away
AlexRussia has quit [Quit: WeeChat 1.4-dev]
nettoweb has joined #ruby
jpfuentes2 has joined #ruby
oddmunds has quit [Quit: WeeChat 1.3]
speakingcode has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
axl_ has quit [Quit: axl_]
<Ebok> basically 'aaazzzzcc'.scan(/a+|z+|c+/) gives me the output that I want. But doing that for every letter a to x is a rather massive waste of space for a rexep
yitsushi^away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ebok> regex
alcipir has quit [Ping timeout: 268 seconds]
Morrolan has quit [Quit: ZNC: Shutting down.]
canton7 has quit [Quit: ZNC - http://znc.in]
<Ebok> It wouldve been nice if I couldve gone /[a+-z+]/ but alas
<Ox0dea> >> 'aaazzzzcc'.scan /((.)\2*)/ # Ebok
<ruboto> Ox0dea # => [["aaa", "a"], ["zzzz", "z"], ["cc", "c"]] (https://eval.in/454263)
<Ox0dea> I'm trying to finagle it into not capturing the inner match. :<
syath has quit [Quit: WeeChat 1.2]
<zwdr> why not use [A-Za-z]?
tenderlove has quit [Read error: Connection reset by peer]
<Ebok> Actually dont both, that works well Ox0dea.
<havenwood> >> '1a2a3a4b5b6a7c'.delete('^a-z').each_char.chunk(&:itself).map(&:last)
<ruboto> havenwood # => [["a", "a", "a"], ["b", "b"], ["a"], ["c"]] (https://eval.in/454264)
speakingcode has joined #ruby
axl_ has joined #ruby
<havenwood> Ebok: a requisite non-Regexp solution ^
hahuang65 has joined #ruby
<Ebok> #chunk is something I'm going to go look up now
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has joined #ruby
zenguy_pc has joined #ruby
martin290 has left #ruby [#ruby]
kadoppe has quit [Ping timeout: 240 seconds]
dmx has quit [Quit: Page closed]
krz has quit [Quit: WeeChat 1.2]
Drakevr has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
symbol has quit [Quit: WeeChat 1.1]
tuxero has quit [Read error: Connection reset by peer]
tuxero has joined #ruby
freerobby has quit [Quit: Leaving.]
<Ebok> just curious I've been seeing this and even using it for awhile... map(&:method). I just want to confirm it is doing what I think it's doing. The (& ) replaces {|i| i } the : replaces the dot, and the method follows.
kadoppe has joined #ruby
jobewan has joined #ruby
<jhass> Ebok: not quite, :method is the symbol, .map(&(:method))
tenderlove has joined #ruby
<Ebok> Ah
<jhass> & calls to_proc on its argument
<Ebok> That makes more sense
<jhass> Symbol#to_proc happens to have a handy implementation
Marsupermammal has joined #ruby
Musashi007 has quit [Quit: Musashi007]
_el_fer_ has quit [Ping timeout: 264 seconds]
<Ebok> Cool. I've been wondering exactly what I've been doing for awhile now xD
<jhass> the resulting proc is passed as the block to the method
tenderlove has quit [Client Quit]
diegoviola has quit [Quit: WeeChat 1.3]
yosiat has joined #ruby
yitsushi has joined #ruby
<adaedra> I'm discovering lita, it's neat
yitsushi has quit [Client Quit]
yitsushi has joined #ruby
ruby-lang045 has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
tuxero has quit [Client Quit]
duderonomy has joined #ruby
tuxero has joined #ruby
beast has joined #ruby
<Ox0dea> >> def inc n; n + 1; end; [1,2,3].map(&method(:inc)) # Ebok
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/454265)
dagda1 has joined #ruby
<Ox0dea> Some more food for thought.
<Ebok> what did inc stand for?
EllisTAA has joined #ruby
<adaedra> why not just &:inc ?
<adaedra> ah no
nettoweb has quit [Ping timeout: 240 seconds]
<adaedra> I think I see
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nettoweb has joined #ruby
platzhirsch has quit [Quit: Leaving.]
ldnunes has quit [Quit: Leaving]
<Ox0dea> >> [1,2,3].map(&Time.method(:new)) # adaedra
<ruboto> Ox0dea # => [0001-01-01 00:00:00 +0000, 0002-01-01 00:00:00 +0000, 0003-01-01 00:00:00 +0000] (https://eval.in/454267)
diegoaguilar has quit [Remote host closed the connection]
workmad3 has joined #ruby
<adaedra> yeah, I understood after
choke has joined #ruby
<Ox0dea> Copy.
hahuang65 has quit [Quit: WeeChat 1.3]
<adaedra> I read too fast -_-
parus has joined #ruby
faras has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
dfinninger has joined #ruby
sdothum has joined #ruby
adac has quit [Ping timeout: 240 seconds]
XxionxX has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
p0wn3d has quit [Ping timeout: 272 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FifthWall has joined #ruby
jpfuente_ has joined #ruby
duderonomy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 265 seconds]
Guest50 has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
Rollabunna has joined #ruby
Soda has quit [Remote host closed the connection]
prefixed has quit [Remote host closed the connection]
j4cknewt has joined #ruby
arthurix_ has joined #ruby
dagda1 has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
arthurix has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 255 seconds]
Voker57 has quit [Read error: Connection reset by peer]
adac has joined #ruby
rbowlby has joined #ruby
FernandoBasso has joined #ruby
eminencehc has quit [Remote host closed the connection]
colintherobot has joined #ruby
<colintherobot> Hey all! First time in here. I just discovered something about ruby while teaching a class that kind of blew my mind. Was wondering if it's a recent addition, orrrr what
<colintherobot> Specifics, defining a method inside a method. I vaguely remember trying this a year ago and having it just return nil in pry, or a weird error. Now though if you define a method in a method, you can call it.
prestorium has quit [Quit: Leaving]
<colintherobot> im working in 2.2.3 ^^
Pupeno has quit [Remote host closed the connection]
Icey has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
centrx has joined #ruby
<Ox0dea> colintherobot: It's not new, and the semantics haven't changed any time recently.
<shevy> >> 'Ö'.downcase
<ruboto> shevy # => "Ö" (https://eval.in/454269)
<colintherobot> interesting.
<shevy> hmmmm
<Ox0dea> The inner method is not "contained" in any meaningful sense; invoking the outer method causes the inner one to become defined.
<shevy> >> 'Ö'.downcase.encoding.to_s
<ruboto> shevy # => "UTF-8" (https://eval.in/454270)
<adaedra> It's not rreally nested, though
<adaedra> >> def a; def b; "hello"; end; end; a; b
<ruboto> adaedra # => "hello" (https://eval.in/454271)
<adaedra> shevy: you need something other than ruby internal function to take care of these characters.
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> I wonder something though.
<Ox0dea> colintherobot: Erm, you say that code works for you on 2.2.3?
<colintherobot> yeah! it's blowing my mind haha
dfdfdf has joined #ruby
<Ox0dea> It doesn't work on trunk.
<colintherobot> included a screen shot in the gist https://gist.github.com/ColinTheRobot/7cfb62fcd9016ee05746
<adaedra> >> 'öö'.upcase
<ruboto> adaedra # => "öÖ" (https://eval.in/454272)
<adaedra> aha
araujo_ has joined #ruby
<shevy> adaedra well 'Ö'.downcase did not work in my irb ... which surprised me. I could have sworn that it used to work in the past...
mordocai has joined #ruby
eminencehc has joined #ruby
Asher has quit [Quit: Leaving.]
spuk has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
<Ox0dea> colintherobot: What's happening is that the outer `person` method is being called, which defines `hello` on Object, which you're then calling on `:hello`, the return value of `person`, and of course Symbols are Objects.
<Ox0dea> `hello` should be private, though, and that has indeed been fixed in 2.3.
araujo has quit [Ping timeout: 265 seconds]
jxl180 has quit [Ping timeout: 256 seconds]
minimalism has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
gustav__ has quit [Remote host closed the connection]
Synthbread has joined #ruby
last_staff has quit [Quit: last_staff]
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #ruby
synthroid has quit []
BrunoSaboia has quit [Quit: Leaving]
gard has quit [Quit: Leaving]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
YankNYC has joined #ruby
rdavila has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
kirun has quit [Quit: Client exiting]
<colintherobot> @0x0dea interesting! thanks
mleung has joined #ruby
spider-mario has quit [Remote host closed the connection]
yfeldblum has joined #ruby
phutchins has joined #ruby
arup_r has quit [Quit: Leaving]
canton7 has joined #ruby
doddok has quit [Quit: Leaving]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has quit [Ping timeout: 264 seconds]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.2/20151014143721]]
dagda1 has joined #ruby
chouhoulis has quit []
JDiPierro has quit [Remote host closed the connection]
sdwrage has joined #ruby
oddmunds has joined #ruby
dfinninger has quit [Remote host closed the connection]
Cyther_ has joined #ruby
alcipir has joined #ruby
dfinninger has joined #ruby
riotjone_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 246 seconds]
Cyther has quit [Ping timeout: 246 seconds]
<drbrain> shevy: ruby doesn't yet support all of Unicode
adac has quit [Ping timeout: 250 seconds]
<drbrain> colintherobot: on IRC you don't need @ to mention nicks
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie_ has joined #ruby
htmldrum has joined #ruby
mordocai has quit [Remote host closed the connection]
NeverDie has quit [Read error: Connection reset by peer]
<Eiam> well to be fair, its up to the client...
NeverDie_ is now known as NeverDie
riotjone_ has quit [Ping timeout: 244 seconds]
colintherobot has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
choke has joined #ruby
mordocai has joined #ruby
<Ox0dea> 19>> def (def (def foo; end).bar; end).baz; end
<ruboto> Ox0dea # => nil (https://eval.in/454284)
yitsushi is now known as yitsushi^away
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
futilegames has joined #ruby
regreg has quit [Read error: Connection reset by peer]
Luna_Moonfang has joined #ruby
yitsushi^away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benaiah has left #ruby ["WeeChat 0.4.2"]
<Ox0dea> I wonder why it wasn't decided that classes and modules should return "themselves" around the same time that methods began to.
sdothum has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
colintherobot has joined #ruby
pocketprotector- has quit [Remote host closed the connection]
<Ox0dea> s/return/evaluate to/
chouhoulis has joined #ruby
eminencehc has joined #ruby
sdwrage has quit [Read error: Connection reset by peer]
futilegames has quit [Quit: futilegames]
kalusn has quit [Remote host closed the connection]
gettalong has joined #ruby
baweaver has joined #ruby
colintherobot has quit [Ping timeout: 240 seconds]
arthurix has joined #ruby
raphagodoi has joined #ruby
but3k4_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
sdwrage has joined #ruby
Musashi007 has joined #ruby
arthurix_ has quit [Ping timeout: 240 seconds]
n_blownapart has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 256 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
n_blownapart has joined #ruby
mjuszczak has joined #ruby
`tim` has joined #ruby
eminencehc has quit [Read error: Connection reset by peer]
gettalong has quit [Ping timeout: 260 seconds]
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
graft has joined #ruby
graft has joined #ruby
Synthbread has quit [Remote host closed the connection]
grekkos_ is now known as grekkos
ecksit has joined #ruby
moonman has joined #ruby
decoponyo has quit [Quit: Leaving...]
<jhass> maybe they didn't want private to accept Method objects for some reason
<jhass> and there's probably a whole bunch of code relying on classes to return their last expression
<drbrain> s/a whole bunch/enough/
<ecksit> hey, i'm upgrading to MRI 2.2 from 2.1.7 and now one of the specs is failing with a "ArgumentError: unexpected prefix: #<Pathname:test.txt>" whereas that wasn't happening before. does anyone know what is causing this?
<Ox0dea> jhass, drbrain: Fair.
Yzguy has joined #ruby
rwilcox has quit [Ping timeout: 272 seconds]
eminencehc has joined #ruby
aryaching has quit [Quit: Bye]
ecksit has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<drbrain> ecksit: can you put the code in a gist?
aryaching has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ecksit has joined #ruby
ecksit has quit [Client Quit]
arthurnn has quit [Quit: bye...]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arthurnn has joined #ruby
arthurix_ has joined #ruby
beast has quit [Quit: Leaving]
vigintas has joined #ruby
raphagodoi has quit []
<jhass> drbrain: connection dropped, your message, joined again, closed client 40 secs after
karapetyan has quit [Ping timeout: 240 seconds]
<drbrain> ??
<drbrain> oh
<drbrain> I should turn on quit/join notifications again maybe
podman has quit [Quit: Connection closed for inactivity]
arthurix has quit [Ping timeout: 260 seconds]
vigintas has quit [Ping timeout: 250 seconds]
<darix> drbrain: actually you dont. ;)
<darix> gets noisy really quickly
<drbrain> I will try it again
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> depends
<adaedra> I support them on Textual, not on weechat (maybe because they're more discrete in the former)
<adaedra> s/support/bear/
haylon has quit [Ping timeout: 246 seconds]
<jhass> adaedra: didn't turn on the smart filter on weechat?
<adaedra> yes
<jhass> you should
<adaedra> that's what I did
<jhass> sounded like you turned them off completely on weechat
<adaedra> ah no
<adaedra> I turned most of them off
Musashi007 has quit [Quit: Musashi007]
zrowe007 has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
pocketprotector- has joined #ruby
parus has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
_blizzy_ has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zr2d2 has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: Zzz...]
Pupeno has quit [Client Quit]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
barhum2013 has quit [Quit: barhum2013]
barhum2013 has joined #ruby
momomomomo has quit [Quit: momomomomo]
<slash_nick> Radar: MINASWANS, or the below the belt kicking?
<Radar> ?
victortyau has quit [Quit: Leaving]
* slash_nick was scrolled up god knows how many pages, sorry Radar
<pipework> slash_nick: What's the last capital 'S' mean?
<Radar> pipework: 'sometimes'
<Radar> slash_nick: That was a discussion from last night.
<pipework> Radar: !+1
<Radar> pipework: doesn't work in this channel due to politics.
hahuang65 has joined #ruby
adamholt has quit [Quit: ZNC - http://znc.sourceforge.net]
<pipework> Radar: politickery :(
tercenya has quit []
tno has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 255 seconds]
diegoaguilar has joined #ruby
Synthbread has joined #ruby
Synthbread is now known as Synthead
moonman has quit [Disconnected by services]
ruurd has quit [Quit: ZZZzzz…]
diegoaguilar has quit [Read error: Connection reset by peer]
gustav_ has joined #ruby
bastion has joined #ruby
<bastion> trying to install ruby 2.2.3 but when doing ruby -v getting ruby 1.9.3p484.....
<bastion> how to remove the older version
<bastion> because i amnot able to do gem install chef-solo
gustav_ has quit [Remote host closed the connection]
gustav_ has joined #ruby
zenguy_pc has joined #ruby
<jhass> bastion: how did you install ruby? both, the old and the new one
Jackneill has quit [Remote host closed the connection]
<bastion> the old one buy doing apt-get install ruby-full
opensource_ninja has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<bastion> the new one by some instructions on this website;https://gorails.com/setup/ubuntu/14.04
barhum2013 has quit [Quit: barhum2013]
blt has joined #ruby
<jhass> meh, rbenv
<bastion> yea
<bastion> so how do i fix it now?
<eam> by 2025 the world will have a reasonable software management system: true/false
msb_ has joined #ruby
diegoaguilar has joined #ruby
<pipework> eam: slackware has had the best system since forever ago.
tuxero has quit [Quit: tuxero]
<jhass> eam: maybe, but only if we go ternary based system by then (0, 0.5, 1)
<eam> hey I installed slack on a huge set of floppies back in the day and -- you've gotta be kidding me
yosiat has joined #ruby
<eam> slackware basically extracted tarballs and couldn't remove things
workmad3 has joined #ruby
colintherobot has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
<pipework> eam: I did too!
<pipework> The joke is that you don't need a fancy registry, you just need fancy build trees and fakeroots and stuff.
PlasmaStar has quit [Ping timeout: 240 seconds]
<bastion> jhass:any fix
<bastion> ?
naftilos76 has joined #ruby
<eam> or at least some kind of transactional system to apply and remove packages huh? But then the problem is dependency relationships
<jhass> bastion: idk rbenv
<havenwood> bastion: The only rbenv support is to tweet @DHH. (Maybe mention deprecating it in favor of chruby.) There's #chruby for chruby or #rvm for RVM.
momomomomo has joined #ruby
<jhass> not even havenwood know's rbenv!
shmilan has quit [Ping timeout: 240 seconds]
<havenwood> bastion: Usually the rbenv hangup seems to be somethiing about rehashing shims. :P
<havenwood> jhass: nefffer!
umgrosscol has quit [Quit: End of Line]
<havenwood> bastion: Setting up for dev or production?
<jhass> (while true; do; rbenv rehash; done) &
<Ox0dea> eam: Never used Arch?
QORRiE has quit [Quit: Leaving]
<eam> Ox0dea: I haven't, does it offer any substantial improvement here?
opensource_ninja has joined #ruby
tuxero has joined #ruby
PlasmaStar has joined #ruby
<havenwood> bastion: Production: https://www.brightbox.com/docs/ruby/ubuntu/
<bastion> havenwood:setting up to install gem install knife-solo
<bastion> actually chef
bruno-_ has joined #ruby
<eam> Ox0dea: generally the entire distro has to build the world against a consistent base container and that's the source of the woes
<pipework> bastion: Do you just want to get to working with chef, or do you actually want a functioning ruby environment to do anything with?
<Ox0dea> eam: You need only confess that the software world would be a better place if we all just used the bleeding edge.
<Ox0dea> Band-Aids optional.
<pipework> Cause, iirc, chef has a neat little package for just getting to chef.
<eam> mmmmmmmm, no way
<bastion> pipework:just install chef solo
<pipework> bastion: I'm thinking more like you should install the chefdk.
bruno- has quit [Ping timeout: 250 seconds]
<bastion> ookay pipework
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
programmerq has left #ruby ["WeeChat 1.2"]
doll has joined #ruby
psy_ has quit [Ping timeout: 244 seconds]
symbol has joined #ruby
psy_ has joined #ruby
arthurix has joined #ruby
<doll> could someone take a look at my homework? my output isn't working as intended and i'm not sure where i've goofed: http://pastie.org/private/l9ce7sb8gl5vlntxlystq
<pipework> doll: lines 30 and 31 look interesting.
yeticry_ has quit [Ping timeout: 255 seconds]
<doll> they're commented out for now, though
yeticry has joined #ruby
zcreative has quit [Quit: (null)]
bollullera has joined #ruby
arthurix_ has quit [Ping timeout: 272 seconds]
<eam> doll: what's your output, and how does it differ from what you expect?
<pipework> doll: What's ^
<doll> the idea is you put in a string of numbers, and it spits out a polynomial so the ^ is a to the nth power indicator
<doll> it's supposed to omit x^0, x^1, and 1x
loc22 has joined #ruby
Rollabunna has joined #ruby
n_blownapart has quit []
<pipework> doll: So, given what exact input, what are you expecting to see exactly?
<pipework> An example is necessitated.
<doll> for -2, -1, 0, 1, 2 it should read -2x-1x+2x^4
firstdayonthejob has quit [Ping timeout: 252 seconds]
doublemalt_ has quit [Ping timeout: 264 seconds]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<doll> so i put x^#{i} after every number you give it, any 1s are replaced with empty "", any 0s are deleted, and any +- are replaced with -
matugm has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
pocketprotector- has quit [Remote host closed the connection]
pocketprotector- has joined #ruby
<jhass> I don't get the logic, shouldn't it be -2-x+x^3+2x^4 rather?
solenoids has joined #ruby
Rollabunna has quit [Ping timeout: 268 seconds]
<doll> -2, -1, 0, 1, 2 becomes -2x-x+x^3+2x^4
QualityAddict has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
<doll> x is added to every number, 0s are deleted, powers of ^0 and ^1 do not display, each items is joined with +, but +- is replaced with just -
<doll> sorry if i haven't been clear
<doll> staring at this hasn't helped
<apeiros> doll: you start with ^1, not ^0
<apeiros> and I wonder the same as jhass if that isn't a mistake.
speakingcode has quit [Ping timeout: 260 seconds]
<apeiros> -2x^0 = -2
<apeiros> your second example seems wrong again as you actually have ^1 twice.
skade has quit [Quit: Computer has gone to sleep.]
<doll> let me load my working version, one second
CloCkWeRX has joined #ruby
mjuszczak has quit []
pathrocle has joined #ruby
CloCkWeRX has left #ruby [#ruby]
CloCkWeRX1 has joined #ruby
marr has joined #ruby
GriffinHeart has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
GnuYawk has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
freerobby has joined #ruby
axl_ has quit [Quit: axl_]
<doll> my .map! isn't working :/
mary5030 has joined #ruby
bastion has quit [Ping timeout: 250 seconds]
freerobby1 has joined #ruby
leat has quit [Ping timeout: 272 seconds]
vigintas has joined #ruby
symm- has quit [Quit: Leaving...]
CloCkWeRX1 has left #ruby [#ruby]
<doll> it's working as intended through line 21
freerobby has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
hal_9000__ has quit [Quit: hal_9000__]
hackerdude has quit [Quit: Bye, everyone]
freerobby has joined #ruby
symm- has joined #ruby
<doll> but i guess i need to add another line for x^0 and the x^1 map doesn't work
mordocai has quit [Remote host closed the connection]
jefus has quit [Ping timeout: 244 seconds]
freerobby2 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
GriffinHeart has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 244 seconds]
vigintas1 has joined #ruby
rdavila has joined #ruby
<jhass> doll: nobody will be able to help as long as the rules are unclear
freerobby1 has quit [Ping timeout: 260 seconds]
arthurix_ has joined #ruby
mag42c has quit [Quit: mag42c]
vigintas has quit [Ping timeout: 255 seconds]
XxionxX has quit [Quit: Leaving.]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
diegobiavati has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
loc22 has quit [Quit: Be back later ...]
mjuszczak has joined #ruby
arthurix has quit [Ping timeout: 250 seconds]
mjuszczak has quit [Client Quit]
symm- has quit [Quit: Leaving...]
vigintas1 has quit [Ping timeout: 260 seconds]
freerobby2 has quit [Remote host closed the connection]
jefus has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
jonnyro has joined #ruby
sepp2k has joined #ruby
polishdub has quit [Quit: Leaving]
<jonnyro> <- ruby newb. If i have a file in one of several possible locations, how can i load it from the first one that exists?
<jonnyro> I was thinking of some sort of loop over an array of the possible locations, but is there a better way?
<jhass> doll: that means -2 -1 0 1 2 should be -2x^4-x^3+x+2
tubuliferous_ has quit [Ping timeout: 268 seconds]
colintherobot has quit [Quit: leaving]
<doll> he said he doesn't care if the index iterates forwards or back
Ropeney has joined #ruby
sanjayu has joined #ruby
<jhass> well, I didn't hear that, I can only work from what you give me
<doll> i'm aware, sorry for the confusion
freerobby has joined #ruby
<jhass> but I've given you both variants, your interpretation just doesn't make sense, sorry
Yzguy has joined #ruby
<Ox0dea> jonnyro: Just append the candidate directories to $LOAD_PATH and let `require` do the heavy lifting?
<jhass> Ox0dea: was my first intuition too, but I don't think we're talking ruby file here
<jhass> jonnyro: ^ am I right? you mean a regular text file that you want to read?
<Ox0dea> > how can i load it
gambl0re has joined #ruby
<jonnyro> the file is a yaml file, intended to store configuration
<jonnyro> i think i'll just go with a loop over the possible locations
tubuliferous_ has joined #ruby
<jonnyro> i'll test File.exist?(p) on each loop iteration
<jhass> Ox0dea: YAML.load ;D
<Ox0dea> Fair enough.
<Ox0dea> jonnyro: Is there good rationale for the file's being in one of several places?
<doll> my first issue is that @poly.map! {|n| (n == "x^1") ? "x" : n } is not replacing instances of x^1 with x
naftilos76 has quit [Quit: Αποχώρησε]
<jhass> jonnyro: path = locations.map {|location| File.join location, filename }.find {|path| File.exists? path }; if path; config = YAML.load(path); else; abort "Configuration not found"; end;
<jonnyro> oooh, i'll definitely try that
<jonnyro> thanks
p7r has quit [Remote host closed the connection]
nertzy has joined #ruby
<Ox0dea> jonnyro: YAML.load(Gem.datadir('yourgem', 'foo.yml'))
<jhass> doll: then n isn't actually "x^1" at any point
<jhass> Ox0dea: not sure datadir makes a good configuration storage
<Ox0dea> Fine.
<doll> doesn't (n == "x^1") make in x^1?
<doll> *it
symm- has joined #ruby
<apeiros> YAML.load_file
<apeiros> YAML.load expects the yaml string, not a path
<jhass> eh, right
Thuik has joined #ruby
<Ox0dea> Not that the two are mutually exclusive.
Musashi007 has joined #ruby
<Thuik> Hi
BTRE has quit [Ping timeout: 272 seconds]
<jhass> doll: that does check whether n is "x^1", yes. I'm saying it never is then
<apeiros> !kick Thuik offtopic
Thuik was kicked from #ruby by ruboto [offtopic]
jonnyro has left #ruby [#ruby]
Melpaws has joined #ruby
<doll> I don't think I understand :/
mleung has quit [Quit: mleung]
riotjone_ has joined #ruby
tercenya has joined #ruby
jobewan has quit [Quit: Leaving]
blt has left #ruby ["WeeChat 1.3"]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
cschneid_ has quit [Remote host closed the connection]
mleung has joined #ruby
swgillespie has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
yitsushi has joined #ruby
michael_mbp has joined #ruby
riotjone_ has quit [Ping timeout: 250 seconds]
<jhass> >> [-3,-4,1,0,6].each_with_index.map {|factor, power| next if factor == 0; "#{"+" if factor > 0}#{factor unless factor == 1}#{"x" unless power == 0}#{"^#{power}" if power > 1}" }.join
<ruboto> jhass # => "-3-4x+x^2+6x^4" (https://eval.in/454357)
<jhass> >> [-2,-1,0,1,2].each_with_index.map {|factor, power| next if factor == 0; "#{"+" if factor > 0}#{factor unless factor == 1}#{"x" unless power == 0}#{"^#{power}" if power > 1}" }.join
<ruboto> jhass # => "-2-1x+x^3+2x^4" (https://eval.in/454360)
Vile` has joined #ruby
<jhass> mmh, that went wrong
Rickmasta has joined #ruby
rdavila_ has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
<jhass> >> [-2,-1,0,1,2].each_with_index.map {|factor, power| next if factor == 0; "#{"+" if factor > 0}#{"-" if factor == -1}#{factor unless factor.between?(-1, 1)}#{"x" unless power == 0}#{"^#{power}" if power > 1}" }.join
<ruboto> jhass # => "-2-x+x^3+2x^4" (https://eval.in/454363)
BTRE has joined #ruby
<doll> hmm
<jhass> don't use it though or at least add in doing it in reverse
saddad has joined #ruby
<jhass> well, I mean with descending powers
<doll> right
<doll> i'll play with it; thank you
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gustav_ has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
CloCkWeRX has quit [Client Quit]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
ngscheurich has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
diegoaguilar has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 265 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
`tim` has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spuk has joined #ruby
mleung has quit [Quit: mleung]
nertzy has joined #ruby
skweek has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<Ox0dea> Can something like this be done for `yield`?
<Ox0dea> It's not one of the TracePoint events.
DEA7TH has quit [Quit: DEA7TH]
workmad3 has quit [Ping timeout: 256 seconds]
<drbrain> can you track calls?
<drbrain> I think you'd have to do it on the call side looking for proc objects?
<drbrain> bleh
choke has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
pocketprotector- has quit [Quit: Konversation terminated!]
<Ox0dea> drbrain: And from there dig about in the RubyVM::InstructionSequence to determine whether the object of interest is being yielded, or did I miss something?
djcp1 has quit [Quit: WeeChat 1.0.1]
<drbrain> yeah, determining if you've been yielded-to is
diegoaguilar has joined #ruby
dfinninger has quit [Remote host closed the connection]
Renich has quit [Quit: leaving]
Renich has joined #ruby
Renich has quit [Client Quit]
Renich has joined #ruby
craysiii has quit [Remote host closed the connection]
tkuchiki has joined #ruby
bb010g has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
tuxero has quit [Ping timeout: 264 seconds]
blackoperat has joined #ruby
snockerton has quit [Quit: Leaving.]
blackoperat has quit [Client Quit]
<drbrain> Ox0dea: oh, I think I get it now, you want to see if an object is returned
blackoperat has joined #ruby
<drbrain> so you'd need to see if an object was a call-argument and that the call was made via yield
Icey has joined #ruby
blackoperat has quit [Client Quit]
<drbrain> bleh
KnownSyntax has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
ruisantos has quit [Remote host closed the connection]
_kfpratt has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.3]
Dairenn_ has joined #ruby
Asher has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
baweaver has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
<Ox0dea> drbrain: Yes, that's what I'd like to do, but TracePoint is being uncooperative.
zenguy_pc has quit [Ping timeout: 250 seconds]
<drbrain> I imagine yield isn't a TracePoint event because on the implementation side it is implemented as a call
<Ox0dea> I'm tracing all events and the `yield` isn't making an appearance. :<
<Dairenn_> Any idea how I can use the git ruby gem (ruby-git) to do the equivalent of a "git remote set-url origin" ?
nateberkopec has quit [Quit: Leaving...]
dfockler has quit [Ping timeout: 240 seconds]
<drbrain> Ox0dea: IIRC, TracePoint is based on set_trace_func which also doesn't have a yield
<Ox0dea> drbrain: Is there any sane alternative?
sanjayu has quit [Ping timeout: 265 seconds]
cwong_on_irc has quit [Quit: Leaving.]
<drbrain> other than adding yield events? I don't think so
doll has quit [Quit: Page closed]
mwlang has quit [Quit: mwlang]
lolmaus has joined #ruby