<havenwood>
crystal77: Or if you like rbenv maybe search their docs for how to enable the autorehashing? I don't think there's an rbenv irc channel. There are #rvm or #chruby channels.
<crystal77>
is this like rbenv? never heard of it
pawnbox has joined #ruby
mlakewood has quit [Quit: mlakewood]
<havenwood>
crystal77: chruby sets env variables like GEM_HOME and GEM_PATH instead of maintaining shims for rubies and gems like rbenv
<havenwood>
It's simpler and faster. No need to create a C extension for a shell builtin like rbenv.
bradleyprice has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 276 seconds]
jackjackdripper has joined #ruby
hxegon has quit [Ping timeout: 252 seconds]
noobsu has joined #ruby
x77686d has quit [Quit: x77686d]
rahult has joined #ruby
astrobunny has joined #ruby
rahult_ has quit [Read error: Connection reset by peer]
noobsu has quit [Ping timeout: 244 seconds]
jenenliu has joined #ruby
bradleyprice has joined #ruby
ropeney has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
bradleyprice has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
yfeldblum has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
Cohedrin_ has quit [Ping timeout: 246 seconds]
<jenenliu>
hi guys, my os is windows 7, I want to write a ruby script to open many instances of the same exe file
<jenenliu>
how can I do that ?
<Arcaire>
jenenliu: Install Ruby and write a for loop.
<jenenliu>
I don't want to click so many times of the exe file
<jenenliu>
can I write a script to click for me ?
<Arcaire>
You can write a script to open the program yeah
<jenenliu>
I mean, many cmd terminals open
bruno- has joined #ruby
pawnbox has joined #ruby
<jenenliu>
are you sure ? I am afraid it will not pop up a new window
<Arcaire>
Why wouldn't it?
<jenenliu>
just run the program on the terminal I run ruby script
<Arcaire>
Was that supposed to be an answer to my question?
vdamewood has quit [Ping timeout: 252 seconds]
<Arcaire>
If not: Yeah, that's what I'd do in this case. You want to write a Ruby script that opens the application a certain amount of times, not one that clicks for you.
<Arcaire>
Since all you're doing when you're clicking is opening the application, you can skip the click step.
rkazak has joined #ruby
replay has quit []
<jenenliu>
but I want to do that
<Arcaire>
Why do you want to click?
<Arcaire>
You can just open the program without clicking.
Chagel has joined #ruby
rahult_ has joined #ruby
hxegon has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
<jenenliu>
the app is a network client, and show many outputs, I want to see the output
rkazak has quit [Client Quit]
davedev2_ has quit [Ping timeout: 268 seconds]
rahult has quit [Ping timeout: 252 seconds]
vdamewood has joined #ruby
bronson has joined #ruby
davedev24 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
A124 has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
htmldrum has quit [Quit: Lost terminal]
bradleyprice has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A124 has joined #ruby
BSab has quit [Ping timeout: 252 seconds]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
droptone has joined #ruby
flashpoint9 has joined #ruby
<droptone>
Question: I use constants when declaring my logger instance so I can easily alter various components. For some reason though, despite me setting a constant to "monthly", when I declare my logger instance it does not generate a new log file every month.
<droptone>
I'd gist this but it's two lines of code.
<droptone>
Can someone see why this wouldn't work?
charliesome has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
arescorpio has joined #ruby
charliesome_ has quit [Client Quit]
chipotle has quit [Quit: cheerio]
freerobby has quit [Quit: Leaving.]
impermanence has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<impermanence>
What does "${::some_string}" in ruby, please?
davedev2_ has quit []
test has joined #ruby
mdih has joined #ruby
test is now known as Guest44238
<impermanence>
anybody?
chipotle has joined #ruby
<Guest44238>
test
solocshaw has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
jaguarmagenta has joined #ruby
<impermanence>
What does "${::some_string}" mean in ruby?
goodroot has quit [Ping timeout: 252 seconds]
<impermanence>
fuck so after five this room is fucking dead, eh?
<impermanence>
fuck I guess everybody is off work and just chilling. good.
<ropeney>
nice attitude, did you try researching?
<ropeney>
did you try testing in irb?
<ropeney>
or post questions in here, swear when people don't stop their jobs and help you
neha_ has joined #ruby
<impermanence>
Ha!
<impermanence>
I got you to respond.
<impermanence>
Relax man.
<impermanence>
I was just kicking up the juice for a sec to see if anyone was actually here.
<impermanence>
I posted my very basic question twice.
<impermanence>
No response.
jaguarmagenta has quit [Ping timeout: 244 seconds]
<impermanence>
So I figured I'd get ignorant for a second.
<impermanence>
Sorry if I was offensive.
<ropeney>
well your on your own from me now
<impermanence>
shuckles. have a good night, then.
neha_ has quit [Client Quit]
neha- has joined #ruby
devbug has quit [Quit: ZZZzzz…]
<impermanence>
hmm. seems like it is ruby syntax.
<impermanence>
yeah. yeah.
<impermanence>
I thought the double colons were for accessing stuff from outside something or other...
peter has joined #ruby
last_staff has joined #ruby
<peter>
hi
<peter>
how do I declare a gem wide utility function?
<peter>
specifically, I have a gem, which has a top level module MyGem
<peter>
and I'd like to make a set of puts_color methods global, within that module
<peter>
such that in any methods or classes within the module I can simply use puts_red
hxegon has joined #ruby
x77686d has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rkazak has joined #ruby
<peter>
I declared the methods on the top level module, and other module methods (including submodules) can access them, but not classes defined within the modules
braincrash has joined #ruby
rkazak has quit [Client Quit]
zacstewart has joined #ruby
braincras has quit [Ping timeout: 240 seconds]
<peter>
actually is there _any_ way a class within a module can access the module methods without including the module?
<peter>
I'm beginning to think not
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 260 seconds]
gooodroot has joined #ruby
antgel has joined #ruby
william3 has joined #ruby
goodroot has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Ping timeout: 276 seconds]
william3 has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
TheMoonMaster has quit [Ping timeout: 250 seconds]
TomyLobo has quit [Read error: Connection reset by peer]
jud has joined #ruby
Mia has quit [Read error: Connection reset by peer]
polysics_ has quit [Remote host closed the connection]
CausaMortis has joined #ruby
solars has joined #ruby
Caelum has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
astrobunny has joined #ruby
djbkd_ has quit []
null__ has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 250 seconds]
myntcake has quit [Quit: Leaving]
polysics has joined #ruby
TheMoonMaster has joined #ruby
Chagel_ has joined #ruby
Chagel has quit [Ping timeout: 250 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
null__ has joined #ruby
tessi has quit [Quit: tessi]
agentmee1kat has quit [Ping timeout: 250 seconds]
null__ has quit [Ping timeout: 268 seconds]
sameerynho has joined #ruby
gagrio has quit [Remote host closed the connection]
TheMoonMaster has quit [Ping timeout: 276 seconds]
mark_66 has joined #ruby
xue has quit [Ping timeout: 244 seconds]
neanderslob has joined #ruby
CausaMortis has quit [Ping timeout: 276 seconds]
Caelum has joined #ruby
TheMoonMaster has joined #ruby
TheMoonMaster has joined #ruby
LoneHerm_ has joined #ruby
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
aiguu__ has joined #ruby
agentmeerkat has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
anisha has joined #ruby
tagaulap_ has joined #ruby
vondruch has joined #ruby
tagaulap_ has quit [Client Quit]
tagaulap has joined #ruby
Caelum has quit [Ping timeout: 260 seconds]
conta has joined #ruby
aiguu__ is now known as aiguu
conta has quit [Client Quit]
LoneHerm_ has quit [Ping timeout: 252 seconds]
jaruga___ has joined #ruby
anisha_ has joined #ruby
Caelum has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
antgel has quit [Ping timeout: 276 seconds]
navneet__ has quit [Remote host closed the connection]
TomyWork has joined #ruby
aiguu has quit [Quit: WeeChat 1.4]
Couch has joined #ruby
navneet_ has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
navneet_ has quit [Remote host closed the connection]
last_staff has joined #ruby
Moosashi has joined #ruby
thejamespinto has quit []
blaxter has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
sinanislekdemir has joined #ruby
terlar has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
marr has joined #ruby
howdoi has joined #ruby
Snowy has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
mikecmpbll has joined #ruby
navneet_ has joined #ruby
navneet_ has quit [Remote host closed the connection]
navneet_ has joined #ruby
bruno- has joined #ruby
igam has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bruno- has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
kareeole_ has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
victortyau has joined #ruby
benlieb has joined #ruby
DoubleMalt has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
sepp2k has joined #ruby
bronson has joined #ruby
mikecmpbll has joined #ruby
karivolas has joined #ruby
maneken has quit [Disconnected by services]
karivolas is now known as maneken
maneken has quit [Changing host]
maneken has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
karate has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
drptbl has joined #ruby
null__ has joined #ruby
bsinhy has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
goooodroot has joined #ruby
null__ has quit [Quit: Shutting down until Linode fixes their network]
MagePsycho has joined #ruby
gooodroot has quit [Ping timeout: 260 seconds]
poerror has joined #ruby
poerror has left #ruby [#ruby]
postmodern has joined #ruby
Coldblackice_ has quit [Ping timeout: 260 seconds]
noobsu has joined #ruby
william3 has joined #ruby
william3_ has joined #ruby
william3 has quit [Read error: Connection reset by peer]
navneet_ has quit [Remote host closed the connection]
noobsu has quit [Remote host closed the connection]
yeticry has quit [Read error: Connection reset by peer]
william3_ has quit [Remote host closed the connection]
william3 has joined #ruby
jaguarmagenta has joined #ruby
Dimik1 has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
william3 has quit [Ping timeout: 268 seconds]
tessi has joined #ruby
shredding has joined #ruby
davidrsmorris has joined #ruby
evidex has joined #ruby
<davidrsmorris>
Hi, I'm using IO.popen, and I noticed that when I gets a certain program, it hangs. When I call the program from bash, it gives lines of output to stdout. What could be the problem?
skislak has joined #ruby
<apeiros>
davidrsmorris: the program might wait for stdin to be closed
benlieb has quit [Quit: benlieb]
<davidrsmorris>
bash does this? This program gives multiple lines, as the data becomes available. It is written in C++.
pawnbox has quit [Remote host closed the connection]
<davidrsmorris>
How would I do this with popen or other non-blocking ruby IO?
<davidrsmorris>
would opening with a mode of 'r' and no io.close_write simulate calling it from bash with no pipes?
<apeiros>
no idea
<Moosashi>
anyone ever set up a bot for slack
Dimik has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
pandaant has joined #ruby
MagePsycho has quit [Quit: MagePsycho]
sameerynho has quit [Ping timeout: 244 seconds]
<apeiros>
Moosashi: no. no one. ever.
<Moosashi>
damn not a single person ever
MagePsycho has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
<davidrsmorris>
I'm not sure that's my problem, since I can wrap it in bash -c and it still won't feed its output up. What could cause this?
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
gooooodroot has joined #ruby
<jhass>
davidrsmorris: if you redirect the output to a file and tail -f the file at the same time, does it update live?
astrobunny has quit [Remote host closed the connection]
<jhass>
so we know it doesn't behave differently when stdout isn't a tty
<davidrsmorris>
it does not update live, I am now mad at my prof.
sid_fules has joined #ruby
<davidrsmorris>
it updates when the gui is killed
<jhass>
we don't even want to know, do we?
goooodroot has quit [Ping timeout: 276 seconds]
william3 has quit [Ping timeout: 250 seconds]
<davidrsmorris>
roboticist. So is there some option for popen, or should I figure out how to do it with the script command?
benlieb has joined #ruby
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
sid_fules has quit [Remote host closed the connection]
william3 has joined #ruby
sid_fules has joined #ruby
workmad3 has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
<jhass>
option for what?
<jhass>
what script command?
raeoks has quit [Ping timeout: 244 seconds]
ddv has quit [Ping timeout: 268 seconds]
<davidrsmorris>
script -c can be used to simulate having an interactive session, and I'm wondering if ruby has a built-in thing for doing that because apparently doing that is not straightforward
mikenovikov has joined #ruby
Weavel has joined #ruby
mikenovikov has quit [Max SendQ exceeded]
<jhass>
script's manpage says specifically that with -c stdout won't be a tty either
ferr has joined #ruby
<jhass>
Run the command rather than an interactive shell. This makes it easy for a script to capture the output of a program that behaves differently when its
<jhass>
stdout is not a tty.
Aerik has joined #ruby
sid_fules has quit [Remote host closed the connection]
darkxploit has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
sid_fules has joined #ruby
ddv has joined #ruby
blackmesa has joined #ruby
binaryplease has quit [Quit: Goodbye cruel world]
binaryplease has joined #ruby
nisstyre_ has joined #ruby
Aerik has quit [Read error: Connection reset by peer]
doublemalt_ has joined #ruby
Khaki has joined #ruby
Moosashi has quit [Quit: Moosashi]
DoubleMalt has quit [Ping timeout: 252 seconds]
ayonkhan has joined #ruby
victortyau has joined #ruby
goodroot has joined #ruby
MagePsycho has quit [Ping timeout: 276 seconds]
darkxploit has joined #ruby
gooooodroot has quit [Ping timeout: 250 seconds]
<shredding>
i need to compare page loads of various pages.
<shredding>
e.g. including assets loaded (the "Finish" value in chrome network tab.
<shredding>
is there a way to do that with capybara / waitr or so?
sid_fules has quit [Read error: Connection reset by peer]
gooodroot has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 244 seconds]
goodroot has quit [Ping timeout: 240 seconds]
william3 has quit [Read error: Connection reset by peer]
william3 has joined #ruby
benlieb has quit [Quit: benlieb]
kareeole_ is now known as kareeoleez
<davidrsmorris>
jhass: script seems to be the only thing this joe code will output to in realtime
karapetyan has joined #ruby
tildes has quit [Remote host closed the connection]
MagePsycho has joined #ruby
noobsu has joined #ruby
al2o3-cr has joined #ruby
DaniG2k has joined #ruby
blaxter has joined #ruby
navneet has joined #ruby
tax has quit [Ping timeout: 250 seconds]
idletask has quit [Quit: .]
karapetyan has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Remote host closed the connection]
MagePsycho has quit [Ping timeout: 246 seconds]
Nahra has joined #ruby
TheMoonMaster has quit [Ping timeout: 268 seconds]
idletask has joined #ruby
navneet_ has joined #ruby
navneet has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
hk238 has joined #ruby
Caelum has quit [Ping timeout: 250 seconds]
TheMoonMaster has joined #ruby
TheMoonMaster has joined #ruby
bronson has joined #ruby
Caelum has joined #ruby
troulouliou_div2 has joined #ruby
aeterne has joined #ruby
bruno- has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
norc has joined #ruby
<shevy>
what is the route to epicness
william3 has quit [Remote host closed the connection]
baweaver has joined #ruby
polysics has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 276 seconds]
<shevy>
hmm... I think I'll slowly start a ruby-gtk games project on rubygems
william3 has joined #ruby
Caelum has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
davidrsmorris has quit [Ping timeout: 250 seconds]
bsinhy has quit [Ping timeout: 276 seconds]
gnufied has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
p0p0pr37 has joined #ruby
TheMoonMaster has quit [Read error: Connection timed out]
agentmeerkat has quit [Ping timeout: 252 seconds]
n008f4g_ has joined #ruby
DaniG2k_ has joined #ruby
sxjnsy has joined #ruby
TheMoonMaster has joined #ruby
sid_fules has joined #ruby
TheMoonMaster has quit [Changing host]
TheMoonMaster has joined #ruby
<shevy>
is there a way to jump back in an iteration? like on http://pastie.org/10808033 if the user enters "p" or "previous", to "reset" the .each loop to the element before (or the element -2)
MagePsycho has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
ruby-lang400 has joined #ruby
<ruby-lang400>
morning all,
<Ox0dea>
Good morning, ruby-lang400.
<ruby-lang400>
is there a way we can reset the .each method on an array to reloop from the start?
<ruby-lang400>
(like java cursors of sort)
<Ox0dea>
ruby-lang400: You'll have to make it an Enumerator, and then you can #rewind it.
<Ox0dea>
There's #to_enum for that first part.
<ruby-lang400>
awesome, that's what I needed
<ruby-lang400>
thanks
<Ox0dea>
No worries.
jaguarmagenta has joined #ruby
ocbtec has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
blackmesa has joined #ruby
sxjnsy has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
Caelum has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
mikeiniowa has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
terlar has quit [Ping timeout: 260 seconds]
shredding has quit [Ping timeout: 276 seconds]
elaptics`away is now known as elaptics
tvw has joined #ruby
karapetyan has quit [Remote host closed the connection]
terlar has joined #ruby
karapetyan has joined #ruby
william3 has quit [Read error: Connection reset by peer]
MagePsycho has quit [Quit: MagePsycho]
qrvljf has joined #ruby
dezull has joined #ruby
sdothum has joined #ruby
troulouliou_div2 has joined #ruby
william3 has joined #ruby
jaguarmagenta has joined #ruby
gooodroot has quit [Ping timeout: 252 seconds]
sid_fules has joined #ruby
ruby-lang400 has quit [Quit: Page closed]
sid_fules has quit [Remote host closed the connection]
ur5us has joined #ruby
karapetyan has quit [Remote host closed the connection]
william3 has quit [Read error: Connection reset by peer]
terlar has quit [Quit: WeeChat 1.4]
william3 has joined #ruby
johnmilton has joined #ruby
carella has quit [Read error: Connection timed out]
sid_fules has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anisha_ has quit [Quit: This computer has gone to sleep]
carella has joined #ruby
silverdust has quit [Quit: leaving]
JagaJaga has joined #ruby
bruno- has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
william3 has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
sdothum has joined #ruby
william3 has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
william3 has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
tubuliferous has joined #ruby
drptbl has quit [Quit: See you later!]
jaguarmagenta has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has quit [Ping timeout: 260 seconds]
jaguarma_ has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snowy has quit [Quit: ragequit]
william3 has quit [Ping timeout: 276 seconds]
Fernando-Basso has joined #ruby
ropeney has joined #ruby
Chagel has quit [Ping timeout: 246 seconds]
gooodroot has joined #ruby
ldnunes has joined #ruby
stardiviner has quit [Ping timeout: 246 seconds]
dezull has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
DaniG2k_ has quit [Quit: leaving]
terlar has joined #ruby
GodFather has joined #ruby
kfpratt has joined #ruby
Xeago has joined #ruby
banister has joined #ruby
rodfersou has joined #ruby
stardiviner has joined #ruby
MagePsycho has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
william3 has joined #ruby
minimalism has quit [Quit: minimalism]
sdothum has joined #ruby
Khaki has quit [Quit: Leaving]
kfpratt has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
navneet_ has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 276 seconds]
william3 has quit [Ping timeout: 276 seconds]
<Fernando-Basso>
I have a class/singleton method define like "def self.foo". I want to call it inside "initialize". It seems I must do "self.class.foo". Why "class" has to be there?
moeabdol has joined #ruby
Weavel has quit [Quit: Few women admit their age. Few men act theirs.]
Weavel has joined #ruby
<Fernando-Basso>
I mean, insin't `self` already referencing the class itself?
<apeiros>
Fernando-Basso: because without .class you'd call it on self which is the instance of the class and not the class itself.
<alexherbo2>
Hi guys
<apeiros>
Fernando-Basso: no. self in initialize is the instance. remember, initialize is an instance method (you didn't define it as def self.initialize after all, right?)
<apeiros>
alexherbo2: hi gal
Xzanron has joined #ruby
<alexherbo2>
How get named arguments in a hash form?, and convert hash to named arguments.
Xeago has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
<alexherbo2>
Use case is to implement a bind method with named argument support.
<apeiros>
>> def foo(**kwargs); p kwargs; end; foo bar: 1, baz: 2 # alexherbo2
<ruby[bot]>
apeiros: # => {:bar=>1, :baz=>2} ...check link for more (https://eval.in/557997)
<alexherbo2>
Nice !
null__ has joined #ruby
rkazak has joined #ruby
<alexherbo2>
apeiros: I guess foo **{ bar: 1, baz: 2 } will convert hash to named arguments?
<Fernando-Basso>
apeiros: Makes sense. Since `initialize` is called when creating an _instance_, `self` references the _instance_, not the class. Got it.
<Fernando-Basso>
I just want to find where in the docs that is mentioned.
charliesome has joined #ruby
<apeiros>
alexherbo2: yes, but it's not necessary. last hash in the args is treated as named args already.
<Fernando-Basso>
It seems strange that I have to ask these type of questions...
<Fernando-Basso>
:D
<Fernando-Basso>
08:53:21 alexherbo2 | Hi guys
<Fernando-Basso>
Sorry.
<apeiros>
Fernando-Basso: it'd also be difficult to initialize ivars if it wasn't an instance method ;-) (you'd access the class' ivars otherwise)
Weavel has quit [Quit: I used to think I was indecisive, but now I'm not too sure.]
<alexherbo2>
apeiros: What is the built-in equivalent of #bind I try to implement?
rkazak has quit [Client Quit]
Madplatypus has quit [Quit: Connection closed for inactivity]
<apeiros>
binded -> bound
dezull has joined #ruby
<apeiros>
not quite sure what you're trying to do there
MagePsycho has quit [Read error: Connection reset by peer]
<workmad3>
alexherbo2: no, nothing to the level of boost's implementation... but then, you can just use a proc or lambda in ruby for that sort of thing
trinaldi has joined #ruby
<workmad3>
so instead of doing `bind(f, _1, _1)` you'd do `->(x) {f(x,x)}`
<Fernando-Basso>
"Returns the class of obj. This method must always be called with an explicit receiver, as class is also a reserved word in Ruby."
<Ox0dea>
Fernando-Basso: That tells you why you have to say `self.class`, but not why `self` is the instance being constructed in #initialize.
<Fernando-Basso>
Yeah, that is what I was wondering.
<Ox0dea>
It's really just that #initialize is an instance method.
<Ox0dea>
The VM allocates the memory for your Object, assigns it a class, then invokes the relevant #initialize method to construct it.
navneet has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
Fernando-Basso: what you're asking for is documentation of the language scoping rules... such docs exist in the form of a language overview (as given by countless tutorials, etc.), but you won't find them attached to a specific item like `Object` because it's a global property of the language
<roelof>
yes. I learned a lot . In 2 weeeks I have a job interview and I want to be prepared. So practice a lot, Ox0dea
<Fernando-Basso>
My goal is to increment a counter every time I instantiate a class. Instead of using self.class.increment_counter (to call a method that increments @count), I could just as well have used @@count += 1 inside `initialize`, I suppose.
jaguarmagenta has quit [Remote host closed the connection]
<Ox0dea>
Fernando-Basso: Are you perfectly certain that you'll never subclass this class?
flashpoint9 has joined #ruby
<Fernando-Basso>
Ox0dea: I am just making some study cases, not a real project.
<impermanence>
Will upgrading my ruby.x86_64 package from 2 to 2.3 break all of my other ruby packages and everything else that depends on ruby? OS is CentOS.
terlar has quit [Ping timeout: 240 seconds]
victortyau has joined #ruby
charliesome has joined #ruby
roelof has quit [Quit: Page closed]
Arcaire has quit [Quit: wew lad]
Arcaire has joined #ruby
<dsimon>
impermanence, maybe? that depends on how CentOS packages things
crameth has joined #ruby
<dsimon>
however, it might be possible to install 2.3 in addition to the current ruby, if you only need it for certain things
crameth has quit [Max SendQ exceeded]
<Arcaire>
totally possible, but not through the OS package manager
dionysus69 has joined #ruby
<Arcaire>
sorry, i missed all chat prior to my reconnection, my bouncer wasn't logging properly
<dsimon>
yeah, or if you don't want to or can't use CentOS packaging to do it, you could use rvm
<dsimon>
however that can be tricky to set up upfront
<Arcaire>
well, you *can't* do it otherwise
<Arcaire>
not cleanly
<Arcaire>
and chruby/ruby-install is definitely the best way, and not too hard to set up
trinaldi has joined #ruby
crystal77 has joined #ruby
hxegon has joined #ruby
sudoubuntu has joined #ruby
godzillaenlacasa has joined #ruby
sgambino has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
impermanence has quit [Ping timeout: 250 seconds]
swills has joined #ruby
ItSANgo has quit [Quit: Leaving...]
codecop has quit [Remote host closed the connection]
impermanence has joined #ruby
<impermanence>
Sorry. Did anybody answer my question? I quit but accident before I looked...
<Arcaire>
13:17 <impermanence> Will upgrading my ruby.x86_64 package from 2 to 2.3 break all of my other ruby packages and everything else that depends on ruby? OS is CentOS.
<Arcaire>
probably
<impermanence>
Arcaire: damn.
<Arcaire>
Linux is notoriously shite for installation of languages like Ruby and Python.
<Arcaire>
You need to make use of chruby/ruby-install and pyenv.
pawnbox_ has quit [Remote host closed the connection]
<Arcaire>
Otherwise you end up with an awful mess.
<Ox0dea>
Wat.
<impermanence>
Arcaire: wait, wait? If Linux is shite then what OS isn't?
<Arcaire>
All of them are pretty bad lmao
<Ox0dea>
Nice cop-out.
ljames has quit []
<impermanence>
Arcaire: Going with 0x0dea on this one, boss...
<Arcaire>
*shrugs*
<Arcaire>
Don't really need validation. :)
<Ox0dea>
"I don't need my beliefs to square with reality."
<Arcaire>
That's a behaviour endemic to #ruby, Ox0dea. :)
<Arcaire>
But for real, impermanence: A lot of issues come up using systemwide Ruby.
tubuliferous has joined #ruby
<shevy>
nah
WaqasA has joined #ruby
<Arcaire>
The issue is across Linux and BSD/OSX, and less so on Windows but Windows has its own issues with Ruby installation sometimes.
<shevy>
it comes because of most distributions using the FHS so they can't have multiple versions at /usr/bin/ruby and so on
<Arcaire>
I figured there was no real need to get into the technical details of why, but sure. :^)
<Arcaire>
It's less so on Windows due to the fact that it's *usually* single user.
<impermanence>
Here's the deal. I didn't know that all of these other ruby packages were installed on my centos box like rubygem-psych and a bunch of others. I'm just trying to figure out if upgrading to 2.3 will render all these other packages useless, basically.
<apeiros>
I'd say that's the same for desktop linux
<Arcaire>
But if you have two Ruby apps that need different versions of Ruby (lol), unless you're using something like chruby or RVM or whatever flavour of the month tool, you're in a tight spot.
<impermanence>
I mean...what am I supposed to do...? Upgrade all of the others?
<impermanence>
And the repos only offer ruby.x86_64 2.0 so WTF?
<impermanence>
I'm about to lose connection because I'm almost at work. I'll be back most likely. Thanks Arcaire. I ain't runnin' no Mac though unfort.
impermanence has quit [Quit: leaving]
<Arcaire>
I run pretty much everything so it's ok.
<Arcaire>
wow they cut that close.
<mustmodify>
Arcaire: Are you saying it's odd that you have two different apps that require different versions of Ruby? If so, were you thinking that all languages were forward compatible?
<Arcaire>
Nah.
<shevy>
Arcaire where is the other ruby installed btw? the first one
Dry_Lips has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
ibba has joined #ruby
pawnbox has joined #ruby
davedev2_ has joined #ruby
<ibba>
Hiya sysadmin looking at learning ruby to make life deautiful
<Arcaire>
learn python instead
<ibba>
what resources can i look into to learn ruby to make my sysadmin life easier
davedev__ has joined #ruby
<Arcaire>
ibba: Depends really, are you looking at sticking with general sysadmin-y tasks?
<tobiasvl>
Arcaire: heresy!
<ibba>
i here you Arcaire, with a lof of work "to be done" in puppet ppl tell me ruby is the way to go
<Arcaire>
tobiasvl: I agree. Mixing snake case and camel case in the standard library alone should bring the death penalty to the language.
<Arcaire>
ibba: Yeah.
<alexherbo2>
`derpy: Thanks!
<shevy>
ibba depends on your prior knowledge too. starting irb and work through https://pine.fm/LearnToProgram/chap_01.html - it should not take longer than an hour or so if you are concentrated
<ibba>
yeah...something i can't do on shell i would like to look at Ruby. What ever task that's complicated to de done in shell i like to use Ruby
<ibba>
You folks are amazing
akem has joined #ruby
davedev24 has quit [Ping timeout: 276 seconds]
<ibba>
you folks don't sympathise any ruby books ?
<shevy>
yeah I do so too, don't have a need to write shell scripts much at all anymore. I only keep them for legacy purposes mostly or when I am in weird restricted environments
davedev2_ has quit [Ping timeout: 268 seconds]
n008f4g_ has quit [Ping timeout: 268 seconds]
crime has joined #ruby
<shevy>
I used the pickaxe back then, not sure about other good books
<havenwood>
ibba: The Well-Grounded Rubyist, Second Edition
<crime>
WGR is really good, and once you have a basic handle on ruby semantics, Sandi Metz POODR book is fantastic for learning how to actually organize
<shevy>
the good old poodle book
<crime>
yeah, I got introduced to it for the first time a few months ago, and it has blown my mind
baweaver has joined #ruby
<crime>
the way that sandi is able to convey her wisdom so concisely is just amazing. you can just hear the years of experience in her words, I think my code has really grown from the whole ordeal
<ibba>
havenwood: wellgrounded rubyist, published in 2009 isn't that dated ? or is that ruby syntax semantics in what i'm looking at ( sysadminy ) work will still be current in dated releases ?
gigetoo has quit [Ping timeout: 246 seconds]
<Ox0dea>
ibba: The second edition is much more recent, but the first would suffice in a pinch.
sinanislekdemir has quit [Remote host closed the connection]
gigetoo has joined #ruby
Xzanron has quit [Quit: Leaving]
<ibba>
0x0dea, ty
<norc>
Ox0dea: So I was thinking about how shadowing lvars could be created to really obfuscate the heck out of code.
<norc>
*used I mean.
baweaver has quit [Ping timeout: 250 seconds]
* ibba
slaps ibba around a bit with a large trout
<neha->
can anyone recommend an advanced ruby book
<Ox0dea>
norc: With block parameters and such?
<norc>
Ox0dea: Mmm no with dead code.
<Ox0dea>
norc: I'm having trouble seeing it.
r0b3rt has joined #ruby
<Ox0dea>
As soon as you find out it's dead, elide it and the shadows go with it, no?
bluOxigen has quit [Ping timeout: 260 seconds]
yude has joined #ruby
<norc>
Ox0dea: a; if false a = $1; a;
<norc>
Ox0dea: The first will attempt a method invocation whereas the the second will not.
<Ox0dea>
norc: Sure, but "obfuscate the heck out of" means something different to me by now. :P
MagePsycho has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
<norc>
Ox0dea: Well, maybe Im still in the state of mind I was yesterday. :S
<shevy>
Statler and Waldorf are at it again!
<norc>
Thinking in terms of lexer time is still disgusting.
<Ox0dea>
norc: Having to use lambdae for everything makes for some remarkably tortuous code.
mrmortondk has joined #ruby
<Ox0dea>
I inadvertently gave myself deobfuscation practice material a while back.
chouhoulis has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
chouhoul_ has joined #ruby
davedev__ has quit [Ping timeout: 276 seconds]
newjersey has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
synthroid has quit [Remote host closed the connection]
chridal_ is now known as chridal
chridal has quit [Changing host]
chridal has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
freerobby has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
freerobby has quit [Client Quit]
mdih has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby
bluOxigen has joined #ruby
newjersey has joined #ruby
newjersey has quit [Max SendQ exceeded]
freerobby has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
aegis3121 has joined #ruby
newjersey has joined #ruby
william3 has quit [Remote host closed the connection]
davedev24 has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
ropeney has joined #ruby
mlakewood has joined #ruby
tubuliferous has joined #ruby
infernix has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gagrio_ has quit [Quit: Leaving...]
last_staff has quit [Quit: last_staff]
johnmilton has quit [Ping timeout: 260 seconds]
hxegon has quit [Ping timeout: 260 seconds]
bradleyprice has quit [Remote host closed the connection]
rubeegginor has joined #ruby
moeabdol has quit [Ping timeout: 268 seconds]
x77686d has joined #ruby
<ibba>
what would be the tooling to start ruby on linux/unix ? emacs/vi customisations some modules ?
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<tvon>
ibba: I don't understand the question
william3 has joined #ruby
polishdub has joined #ruby
<smathy>
ibba, both of those editors have decent ruby support/plugins, just google for whichever is your preferred editor. Then the other thing that will make your life easier is to use a version manager to actually install ruby itself, take a look at chruby and it's installation helpers ruby-install or ruby-build
<shevy>
roelof just a symbol that he used at the "Example Code:" part
tristanp has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
eric____ has joined #ruby
r0b3rt has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
<roelof>
oke, so irl zig is defined somewhere ? , shevy
PedramT has quit [Remote host closed the connection]
MagePsycho has quit [Ping timeout: 252 seconds]
<shevy>
roelof in this case, it actually equals to nil
firstdayonthejob has joined #ruby
karapetyan has joined #ruby
<shevy>
no, the hash does not have a key like that - I have no idea why he picked that example
mfb2 has joined #ruby
<shevy>
was there no explanation in that tutorial how hashes work?
davedev24 has joined #ruby
freerobby has joined #ruby
<smathy>
roelof, he's showing the default value function of a ruby hash, see the second last sentence preceding that example.
<smathy>
(why you took his example and put it in a separate paste for your question thereby destroying all context, I'll never understand)
<roelof>
oke, so :zig contains what the hash.new provides , in the first there is only hash.new so :zig is nill. in the second one it's Hash.new("brown") so :zig is "brown"
hakunin has quit [Remote host closed the connection]
eric____ has quit [Remote host closed the connection]
<roelof>
smathy: sorry, so the next time I schould paste the whole chapter part ?
<shevy>
:D
<smathy>
roelof, it's not really right to say that :zig contains anything, it doesn't exist in the hash, no keys do.
william3 has joined #ruby
<shevy>
the RUN functionality is cool though
MagePsycho has joined #ruby
<smathy>
roelof, don't be a smart ass, but you took the example out of context, instead you should have just pasted the first link and explained where the example was.
nando293921 has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
<roelof>
oke, I will do that the next time
gregf has quit [Quit: WeeChat 1.4]
<smathy>
roelof, you understand the default value thing now?
mfb2 has quit [Ping timeout: 268 seconds]
iwmrby has quit [Quit: WeeChat 1.4]
karate has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 260 seconds]
<roelof>
smathy: yes, I do
Silox| has joined #ruby
<tobiasvl>
smathy: did you mean "not to be a smart ass"?
<tobiasvl>
carries a different meaning than what you wrote ;)
<smathy>
tobiasvl, no, I meant what I said.
<tobiasvl>
ah, all right.
<smathy>
roelof, cool, what's really mind bending is that you can provide a proc as well, and that proc can create a hash on the fly.
patrick_star_2 has joined #ruby
hakunin has joined #ruby
<shevy>
roelof has earned a beer now
karmatr0n has joined #ruby
<roelof>
smathy: I hope I wil learn that in the ruby monk course later
kasisnu has joined #ruby
pawnbox has joined #ruby
* roelof
is now drunk. He is not used to alcohol
moeabdol has quit [Ping timeout: 260 seconds]
mfb2 has joined #ruby
<smathy>
roelof, I hope so too, but I'm not sure it does. Enjoy.
csharper has quit [Remote host closed the connection]
aegis3121 has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
sepp2k has quit [Quit: Leaving.]
<roelof>
thanks
SilverKey has quit [Quit: Halted.]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<roelof>
I m doing to ruby monk another time. The first time I did it too fast. After that I think I will do the codingame challenges or the codewars challenges
UlisesG has joined #ruby
naftilos76 has joined #ruby
hakunin has quit [Ping timeout: 246 seconds]
Amnez777 has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
monoprotic has quit [Remote host closed the connection]
bluOxigen has joined #ruby
PedramT has quit [Remote host closed the connection]
valeri_ufo has quit [Ping timeout: 276 seconds]
monoprotic has joined #ruby
monoprotic has joined #ruby
agent_white has quit [Ping timeout: 244 seconds]
priodev has quit [Ping timeout: 244 seconds]
spacemud has quit [Ping timeout: 244 seconds]
tvon[laptop] has joined #ruby
Sou|cutter has quit [Ping timeout: 244 seconds]
papercode has quit [Ping timeout: 244 seconds]
Junaos_ has quit [Ping timeout: 244 seconds]
ltp_ has quit [Ping timeout: 244 seconds]
fragtastic has quit [Ping timeout: 244 seconds]
victortyau has quit [Ping timeout: 276 seconds]
tvon has quit [Ping timeout: 244 seconds]
dsimon has quit [Ping timeout: 244 seconds]
theRealAlexz_ has quit [Ping timeout: 244 seconds]
valeri_ufo has joined #ruby
theRealAlexz has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
agent_white has joined #ruby
ltp has joined #ruby
Devalo has joined #ruby
yxhuvud has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
_djbkd has joined #ruby
Waqas has joined #ruby
Xiti has quit [Quit: Xiti]
evidex has quit [Remote host closed the connection]
hays_ has quit [Quit: No Ping reply in 180 seconds.]
spacemud has joined #ruby
Junaos has joined #ruby
JagaJaga has quit [Ping timeout: 276 seconds]
priodev has joined #ruby
marr has quit [Ping timeout: 250 seconds]
fragtastic has joined #ruby
marienz has quit [Ping timeout: 610 seconds]
Amnez777 has joined #ruby
Cohedrin has joined #ruby
pietr0 has joined #ruby
Fridtjof has joined #ruby
chipotle has quit [Quit: cheerio]
Cohedrin_ has quit [Ping timeout: 276 seconds]
JagaJaga has joined #ruby
hobodave has joined #ruby
papercode has joined #ruby
marienz has joined #ruby
Sou|cutter has joined #ruby
hays has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
dsimon has joined #ruby
JesseH has joined #ruby
kasisnu has quit [Ping timeout: 268 seconds]
marcdel has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
n008f4g_ has joined #ruby
jaruga___ has quit [Quit: jaruga___]
<Fernando-Basso>
roelof: What about using anki to help you review?
baweaver has joined #ruby
<roelof>
Fernando-Basso: what or who is anki ?
SilverKey has joined #ruby
tvon[laptop] has quit [Quit: System is sleeping...]
Xiti has joined #ruby
<Fernando-Basso>
It is a spaced repetion software that is intended to make you review something when you are about to forget about it.
nchambers is now known as sillytime
<roelof>
Fernando-Basso: you mean this one :https://ankiweb.net/shared/info/664741051 ?
skade has quit [Quit: Computer has gone to sleep.]
malconis has joined #ruby
<Fernando-Basso>
I have started and stopped using it about 4 times already. It helps for me.
Es0teric has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<Fernando-Basso>
Yeah, but other people's cards is not what I advise.
PedramT has joined #ruby
diegoaguilar has joined #ruby
pietr0 has quit [Ping timeout: 276 seconds]
<Fernando-Basso>
And this is off-topic here anyway. I just wanted to tell you this software exists. See for your self. There are some posts on the web about using anki to help one memorize (you learn something, and only then you make some anki cards for reviewing what you learned)
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
hxegon has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<roelof>
Fernando-Basso : thanks for the tip
gizmore has joined #ruby
replay has joined #ruby
<Fernando-Basso>
roelof: If you ever adopt this approach, remember this one thing: spaced repetition is to help remember small details, not to "learn". Learning happens before making review notes.
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
mfb2_ has joined #ruby
mfb2_ has quit [Read error: Connection reset by peer]
diegoaguilar has quit [Remote host closed the connection]
SilverKey has joined #ruby
<tobiasvl>
why not just !@game_pause
<tobiasvl>
showoff
<jhass>
I guess @game_pause = !@game_pause was considered more verbose
<tobiasvl>
verbosity is not always a bad thing :P
<jhass>
or the author didn't feel smart enough with it
<gizmore>
hmmm weird bug: ... @arm_gcache[other.table_name] => Exception no [] for nil .... but the second call works Oo
<gizmore>
like the same row twice works... but the first call gives an exception
<jhass>
gizmore: try to write a minimal reproducer, this can have a myriad of reasons
thejamespinto has joined #ruby
<shevy>
tobiasvl yeah, I am so used to the ! there too
<gizmore>
jhass: would you like to clone and run spec that halts exactly there?
Cohedrin_ has joined #ruby
karmatr0n has joined #ruby
<shevy>
some of this code is in old ruby-gtk, I have not even noted down who wrote this (was not me!)
<jhass>
gizmore: not sure, I suspect some > 1kloc codebase involved
<gizmore>
yeah... could be the reason it is on self.inherited ?
<jhass>
trying to reduce it will also have a high likelihood of you understanding the issue afterwards
<jhass>
with the current amount of context, sure why not
antgel has joined #ruby
hakunin has quit [Remote host closed the connection]
<jhass>
(or even in the process of writing the reproducer)
Cohedrin has quit [Ping timeout: 252 seconds]
anik120 has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
jhill has quit [Ping timeout: 244 seconds]
ckrailo has quit [Ping timeout: 244 seconds]
akahn has quit [Ping timeout: 244 seconds]
jhill_ has joined #ruby
jhill_ is now known as jhill
tubuliferous has joined #ruby
PedramT has quit [Remote host closed the connection]
dukedave has quit [Ping timeout: 244 seconds]
hayden_ has quit [Read error: Connection reset by peer]
knowtheory has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
baweaver has joined #ruby
MagePsycho has quit [Ping timeout: 268 seconds]
shinnya has quit [Ping timeout: 244 seconds]
<Fernando-Basso>
crime: No, I am not.
<crime>
u cant fool me
<crime>
<3
<Fernando-Basso>
☺
jhack has joined #ruby
<Fernando-Basso>
That was cute. ♥
jackjackdripper has joined #ruby
jackjackdripper1 has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
PedramT has quit [Ping timeout: 268 seconds]
darkxploit has joined #ruby
allcentury has quit [Quit: WeeChat 1.2]
ferr has quit [Quit: WeeChat 1.4]
<Papierkorb>
I'm about to write a spec with Rack::Test. Is that a 'feature' test?
baweaver has quit [Ping timeout: 250 seconds]
knowtheory has joined #ruby
akahn has joined #ruby
hayden_ has joined #ruby
ckrailo has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
rubeegginor has quit [Ping timeout: 250 seconds]
mdw has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 276 seconds]
err_ok has quit [Ping timeout: 250 seconds]
dukedave has joined #ruby
<crime>
So I wrote some ruby to run markov chains on characters in apt package names, here are some potential names for your next APT package: http://pastebin.com/qLjqmjQT
<smathy>
That's more something you'd find as a CPAN module.
<hanmac>
crime: what about using stone cycles for that? XD
blackmesa has joined #ruby
freerobby has quit [Quit: Leaving.]
<Fernando-Basso>
smathy: How do you handle/organize your hierarchy of values?
<crime>
I loved that the left-pad situation happened to the kind of people that talk shit about CPAN
<crime>
absolutely glorious
<Fernando-Basso>
That is another situation where the plethora of options was bad from a certain point of view.
Lomex has quit [Remote host closed the connection]
<Fernando-Basso>
I took a look at some npm "modules"... Too many of them are a single, small and simple function.
_djbkd has joined #ruby
mfb2 has quit [Remote host closed the connection]
<Fernando-Basso>
Why? Why?
auxbuss has quit [Quit: I'm gone.]
<shevy>
because javascript itself lacks simple functions
<Fernando-Basso>
"I have 43 modules published on npm. I'm the guy."
<Fernando-Basso>
Is that the reason people write so much modules?
flashpoint9 has joined #ruby
<shevy>
yeah
<smathy>
Fernando-Basso, I was lucky in that most of it was good to begin with, as a result of my upbringing, genetics, whatever - the areas that were in conflict I spent introspecting on and making conscious choices about the direction I wanted to go, the person I wanted to be, and I contemplated a lot of things, especially different philosophies, in order to make decisions about what was important to me. This materializes in decisions as mundane as emacs vs
<smathy>
vim: I value consistency and predictability over extensibility and customization, so I choose vim.
<shevy>
small is beautiful
MagePsycho has quit [Quit: MagePsycho]
<shevy>
you can customize vim!!! you can even play tetris in it
mfb2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
<smathy>
shevy, I know, but its customization isn't close to emacs's - VimScript is a clusterfuck.
hobodave_ has joined #ruby
* jhass
only plays tetris in sed
joneshf-laptop has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
<smathy>
shevy, your comment itself is funny because it suggests that my decision was based on some absolute, like that I had said "vim has no customization" - I didn't.
<smathy>
shevy, decisions are often about evaluating strengths not absolutes.
<crime>
neovim will run on lua, p rad
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy>
jhass is that really possible???
<crime>
ruco already runs on ruby tho
<smathy>
Both in the attributes of what you're evaluating but also in your own value system. I *do* value extensibility, just that I value consistency and predictability more.