<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…]
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?
<ruboto>
eam # => /tmp/execpad-7f97565b9934/source-7f97565b9934:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/453610)
<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…]
<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…]
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]
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.
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]
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...
<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. ;)
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?
<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
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
<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'
<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__
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]
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.)
<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.
<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]
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
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…]
<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]
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>
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
<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.
<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?
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
<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
<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
<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