millerti has quit [Read error: Connection reset by peer]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziarkaen has joined #ruby
Neo95 has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
ziarkaen has quit [Ping timeout: 248 seconds]
kotk_ has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 240 seconds]
pi4 has joined #ruby
raul782 has joined #ruby
mtkd has joined #ruby
Neo95 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
drcode has joined #ruby
Silthias has quit [Ping timeout: 252 seconds]
pi2 has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
haraoka has quit [Ping timeout: 248 seconds]
wald0 has quit [Quit: Lost terminal]
bvcosta has joined #ruby
eightlimbed has joined #ruby
raul782 has quit []
bvcosta has quit [Ping timeout: 248 seconds]
tcopeland has quit [Quit: tcopeland]
gusrub has quit [Remote host closed the connection]
harai has joined #ruby
umaaji has quit [Quit: Leaving...]
wlycdgr1 has joined #ruby
apparition has joined #ruby
gusrub has joined #ruby
Neo95 has joined #ruby
wlycdgr1 has quit [Ping timeout: 240 seconds]
alveric3 has quit [Ping timeout: 240 seconds]
apparition has quit [Client Quit]
Caerus has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
jameser has joined #ruby
alveric3 has joined #ruby
tcopeland has joined #ruby
orbyt_ has quit [Client Quit]
tfitts has quit [Quit: Connection closed for inactivity]
skweek has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
Hien has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
ensyde has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
Neo95 has quit [Ping timeout: 248 seconds]
tcopeland has quit [Quit: tcopeland]
umaaji has joined #ruby
alveric3 has quit [Ping timeout: 260 seconds]
alveric3 has joined #ruby
mim1k has joined #ruby
eightlimbed has quit [Remote host closed the connection]
mim1k_ has quit [Ping timeout: 248 seconds]
dviola has quit [Quit: WeeChat 1.9]
alveric3 has quit [Ping timeout: 260 seconds]
DTZUZO has quit [Ping timeout: 252 seconds]
cagomez has joined #ruby
alveric3 has joined #ruby
Neo95 has joined #ruby
bvcosta has joined #ruby
Guest24 has joined #ruby
bvcosta has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
Neo95 has quit [Ping timeout: 248 seconds]
wlycdgr1 has joined #ruby
Neo95 has joined #ruby
Pixi_ has quit [Quit: Pixi_]
Guest24 has quit [Ping timeout: 248 seconds]
Guest24_ has joined #ruby
mlehrer has quit [Ping timeout: 246 seconds]
wlycdgr1 has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
Xiti has joined #ruby
alveric3 has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has joined #ruby
shimshamshao has quit [Quit: Lost terminal]
alveric3 has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
Guest24 has joined #ruby
PaulCapestany has joined #ruby
Neo95 has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
Guest24_ has quit [Ping timeout: 240 seconds]
ornerymoose has quit [Quit: ornerymoose]
alveric3 has quit [Ping timeout: 252 seconds]
gusrub has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 246 seconds]
govg has joined #ruby
alveric3 has joined #ruby
Guest24 has quit [Excess Flood]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest24 has joined #ruby
al2o3-cr has joined #ruby
ornerymoose has joined #ruby
Guest24_ has joined #ruby
jottr has joined #ruby
nowhere_man has joined #ruby
cagomez has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cagomez has joined #ruby
Guest24_ has quit [Excess Flood]
pharma_joe has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Neo95 has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
Ikri has joined #ruby
gix has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
Neo95 has quit [Ping timeout: 240 seconds]
gix has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
ziarkaen has joined #ruby
desnudopenguino has joined #ruby
jameser has joined #ruby
Neo95 has joined #ruby
bvcosta has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
alveric3 has quit [Ping timeout: 240 seconds]
bvcosta has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
tehgoldsnitch has joined #ruby
<tehgoldsnitch>
hello! i am looking for Shia LaBeouf!!!
<tehgoldsnitch>
has anyone seen Shia LaBeouf???
guille-moe has joined #ruby
<tehgoldsnitch>
guille-moe: are you Shia LaBeouf???
<havenwood>
?offtopic tehgoldsnitch
<ruby[bot]>
tehgoldsnitch: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<tehgoldsnitch>
ruby[bot]: you are confused. :)
<tehgoldsnitch>
ruby[bot]: but can you help me find Shia LaBeouf?
gusrub has joined #ruby
<tehgoldsnitch>
gusrub: hi! are you Shia LaBeouf???
<tehgoldsnitch>
i need him because he is the most non-divisive man in the world!!!
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
charliesome has joined #ruby
wlycdgr1 has quit [Ping timeout: 240 seconds]
WeiJunLi has quit [Remote host closed the connection]
<Bish>
TastyTrout: that looks complicated, but thanks
bronson has quit [Ping timeout: 248 seconds]
<jokke>
i'm having a little trouble with capistrano. I have a rather tricky deployment: one server is hosting an api and runs nginx as a proxy to the app. another server hosts the same api but should receive only requests to a certain route of the api. I deploy the nginx config via capistrano (it's an erb template). To deploy the api to the server which will only handle the one route I was thinking about using a
<jokke>
seperate capistrano stage. However to deploy the nginx config i would need to access some variables of that stage (even though i'm deploying another). Is this somehow possible?
vondruch has quit [Client Quit]
vondruch has joined #ruby
ur5us has quit [Remote host closed the connection]
belmoussaoui_ has quit [Ping timeout: 255 seconds]
paranoicsan has quit [Quit: paranoicsan]
belmoussaoui__ has quit [Remote host closed the connection]
phinxy has joined #ruby
phinxy has left #ruby [#ruby]
ferr has joined #ruby
belmoussaoui has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has quit [Remote host closed the connection]
jottr has joined #ruby
__Yiota has joined #ruby
dionysus69 has joined #ruby
guille-moe has joined #ruby
sagax has quit [Remote host closed the connection]
ldnunes has joined #ruby
dionysus69 has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
abrcdbr has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
charliesome has joined #ruby
WeiJunLi has quit [Ping timeout: 252 seconds]
charliesome_ has joined #ruby
bruno-_ has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
workboy has quit [Remote host closed the connection]
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
guille-moe has joined #ruby
vondruch has quit [Quit: vondruch]
bvcosta has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
vondruch has joined #ruby
claudiuinberlin has joined #ruby
eroux has quit [Read error: Connection reset by peer]
jaruga has joined #ruby
zeitchef has quit [Ping timeout: 260 seconds]
vondruch has quit [Quit: vondruch]
danieli has joined #ruby
vondruch has joined #ruby
jottr has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
zautomata has joined #ruby
<zautomata>
what would be your favourite answer to the question: how to analyze an algorithm?
kreantos has joined #ruby
<tobiasvl>
uuuh that's a vague question. like how to figure out its complecity?
<tobiasvl>
complexity
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish>
zautomata: by not doing it at all?
<Bish>
have something like prolog and describe the problem and the algorithm is correct by default
<Bish>
that'd be my favourite answer
vondruch has quit [Quit: vondruch]
<Bish>
but only in utopia
chouhoulis has joined #ruby
vondruch has joined #ruby
kreantos_ has quit [Ping timeout: 248 seconds]
<Bish>
zautomata: but what do you mean.. do you want its correctness, its speed?
<Bish>
what do you want to analyze
hs366 has quit [Quit: Leaving]
runescape07rsps has quit [Ping timeout: 240 seconds]
<soahccc>
Hmm any idea on how to "gracefully" kill a net-sftp download? It seems to work event based and due to the chunked nature doesn't use blocks. If I just kill the thread if would have open handles, right? Unfortunately the #abort! method on the downloader seems to do nothing (and I don't understand why)
chouhoul_ has joined #ruby
bmurt has joined #ruby
<zautomata>
Bish i mean by analyze in the sense how does it compare to a different algorithm for the same task?
<Bish>
regarding what, speed?
<tobiasvl>
so comparison of two algorithms
vondruch has quit [Client Quit]
chouhoulis has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
<zautomata>
Bish regarding the relation between its running time and size of input
<Bish>
well thats what big-o notation is for..
<Bish>
and it works quite well.. so what is that question about?
<tobiasvl>
it's not so bad, pretty easy to apply it to algorithms the way zautomata wants to
<tobiasvl>
but yeah when you start dabbling in complexity classes it gets rough
cgfbee has quit [Remote host closed the connection]
<tobiasvl>
PSPACE, EXPTIME, NP-completeness, etc
anisha has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
<tobiasvl>
co-NP-completeness?? I don't even remember what that is
ramfjord has joined #ruby
naprimer2 has quit [Read error: No route to host]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
naprimer2 has joined #ruby
tcopeland has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
vondruch has quit [Quit: vondruch]
bronson has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
cgfbee has joined #ruby
claudiuinberlin has joined #ruby
workmad3 has joined #ruby
crst has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ramfjord has joined #ruby
bruno- has joined #ruby
bruno-_ has joined #ruby
InfinityFye has joined #ruby
rabajaj has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
paranoicsan has joined #ruby
cdg_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Client Quit]
vondruch has joined #ruby
balazs_ has joined #ruby
<TastyTrout>
Bish: rake-compiler might be but rake dependencies can be simple and easy.
ramfjord has joined #ruby
<TastyTrout>
you just need a special type of task for what you want, rake already has designed some for that
charliesome has joined #ruby
<TastyTrout>
i personally would like a `bundle gem foo` for C extensions.
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
snickers has quit [Ping timeout: 240 seconds]
mson has quit [Quit: Connection closed for inactivity]
rippa has joined #ruby
<soahccc>
I build a tool that automates a few things and does so over SSH (net-ssh). It's working fine but I wonder what the easiest way would be to interrupt commands that are executing. Had no luck with trying to send ctrl-c sequence via send_data so I guess I need to find PID somehow and send signal?
<dminuoso>
soahccc: Yes.
ramfjord has quit [Ping timeout: 260 seconds]
<dminuoso>
soahccc: crtl-c is actually intercepted by the shell and turned into a signal.
bvcosta has joined #ruby
<dminuoso>
(which is why it does not work for you, because you are not running in the shell)
<soahccc>
hmm that makes sense, unfortunately there seems no easy way to get the pid :<
<dminuoso>
soahccc: Are you invoking some external command?
<soahccc>
define external? I call mysqldump and gzip
<dminuoso>
soahccc: A simple way would be to just fork.
runescape07rsps has joined #ruby
<dminuoso>
That way you obtain the child pid, which you can then sigint whenever you want
<soahccc>
fork net-ssh?
anisha has joined #ruby
elsevero has joined #ruby
bmurt has joined #ruby
<dminuoso>
soahccc: ah. Mmm.
bvcosta has quit [Ping timeout: 240 seconds]
kwd has quit [Quit: kwd]
oleo has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
<soahccc>
dminuoso: couldn't I just wrap my command in "bash -c '#{cmd}'" and then send ctrl-c? :< and is `send_data("\C-c")` actually correct?
<TastyTrout>
soahccc: write the PID of each command to a file (tmp/myautotool/command.pid), then, start another session to interrupt, with eg: `kill -9 $somepath`.
<soahccc>
TastyTrout: I was just thinking about something like this by doing some magic with $cmd & echo $! && fg
<TastyTrout>
you could write a small sh function to do that for you, and pipe all commands through it
<TastyTrout>
even "currentcmd.pid" might work
<soahccc>
well I have a lot of those in parallel
<TastyTrout>
well,, you could use the filesystem to organise things.
<soahccc>
I mean at the end of the day it's working and when I ctrl-c it will abort inbetween each step. It's just that a step can take quite some time. But I thought it would be as easy as closing the channel but it will wait for the command :(
<TastyTrout>
i've never used net-ssh so i really have no clue. :/
johnmartinez has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
mson has joined #ruby
moei has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Defenestrate has quit [Quit: Leaving]
johnmartinez has quit [Read error: No route to host]
rrichardsr3 has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
tsglove has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
dviola has joined #ruby
bvcosta has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
__Yiota has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
tcopeland has quit [Quit: tcopeland]
conta has quit [Quit: conta]
zautomata has quit [Ping timeout: 248 seconds]
belmoussaoui has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
sekmo has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcesariox has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
wilbert has joined #ruby
bvcosta has joined #ruby
brent__ has joined #ruby
<sekmo>
Hi folks! Is the behavior of the "merge" method changed by any chance? I'm following the POODR book and I can't figure out why I'm getting different results from the book...
TomyWork has quit [Remote host closed the connection]
apparition has quit [Quit: Bye]
goyox86_ has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
t-recx has joined #ruby
goyox86_ has quit [Client Quit]
goyox86_ has joined #ruby
centrx has quit []
wilbert has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mikecmpbll has joined #ruby
bvcosta has quit []
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<colstrom>
Is there a reasonable way to compare two Procs/Lambdas? By way of example... `(->(x) { x + x }) == (->(x) { x + x })` is essentially what I'd like to be able to do.
jottr has joined #ruby
<matthewd>
colstrom: No.
<gizmore>
colstrom: you can compare their output for same inputs?
<colstrom>
@matthewd No there isn't a reasonable way, or no it's strictly impossible because <reason>?
goyox86 has joined #ruby
baroquebobcat has joined #ruby
<matthewd>
Somewhere in between, I guess?
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
<matthewd>
It's Computers, so there are things you technically could do
<colstrom>
@gizmore That's dodgy, because `->(x) { x.even? }` and `->(x) { x < 10 }` both return `true` for inputs of `2`, but are clearly not the same function.
vondruch has quit [Client Quit]
vondruch has joined #ruby
jtd has quit [Ping timeout: 240 seconds]
goyox86 has quit [Read error: Connection reset by peer]
goyox86_ has quit [Read error: Connection reset by peer]
<matthewd>
colstrom: e.g. you could disassemble it, and try matching the actual instructions
oncall-pokemon has joined #ruby
<matthewd>
Really depends what you're trying to achieve
fyrril3 has joined #ruby
rrichardsr3 has joined #ruby
guille-moe has joined #ruby
claudiuinberlin has joined #ruby
_sfiguser has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
TomyLobo has joined #ruby
AndBobsYourUncle has joined #ruby
fyrril2 has quit [Ping timeout: 246 seconds]
Defenestrate has quit [Quit: This computer has gone to sleep]
<colstrom>
@matthewd The objective doesn't go much deeper for this one. I'd like to compare two functions that may not be defined in source, for the purposes of comparing two objects that have functions as properties.
<matthewd>
Seems tough. There's the whole `x + 1` vs `1 + x` thing too: plenty of actually-same code which isn't literally identical.
goyox86 has joined #ruby
* colstrom
nods. I'd be willing to accept `x+1` and `1+x` as not equal.
<colstrom>
For now, at least.
vondruch has quit [Quit: vondruch]
kus_ubuntui686 has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
<matthewd>
I think I'd be trying to head-off the requirement somewhere earlier.. before the function gets defined, or something
goyox86 has quit [Ping timeout: 240 seconds]
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
wmoxam has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 260 seconds]
mson has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
sp4rrow has joined #ruby
kies has joined #ruby
t-recx has quit [Ping timeout: 248 seconds]
t-recx has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pi4 is now known as RedNifre
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
<RedNifre>
Hi there. What's the simplest way to parse an ISO date string like "2017-09-30"?
<RedNifre>
When I try Time.new I somehow get 2017-01-01.
detectiveaoi has quit [Remote host closed the connection]
orbyt_ has joined #ruby
bmurt has joined #ruby
jaruga has quit [Quit: jaruga]
SeepingN has joined #ruby
rrichardsr3 has joined #ruby
ramfjord has joined #ruby
ramfjord_ has joined #ruby
rrichardsr3 has quit [Client Quit]
<RedNifre>
oh, never mind, ruby's integrated yaml parser already parses 2017-03-02 as date objects. #everythingwentbetterthanexpected
jottr has quit [Quit: WeeChat 1.9]
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nb_bez_______ has joined #ruby
Rapture has joined #ruby
<TastyTrout>
colstrom: check out Rubinius's implementation of Proc, if memory serves me right it provides access to internals & pure Ruby eql? / == impls.
<TastyTrout>
could be interesting
skweek has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<colstrom>
@TastyTrout Will do, thanks!
taurgal has joined #ruby
who has joined #ruby
<chromis>
I have a simple question for the channel, but an important one as I am learning https://pastebin.com/q38B59yv prints out 606060 instead of multiplying 60 x 3, what am I doing wrong?
cadillac_ has quit [Read error: Connection reset by peer]
abrcdbr_ has joined #ruby
bronson has joined #ruby
abrcdbr has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cadillac_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 248 seconds]
salkdjaskld has joined #ruby
ramfjord has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
ramfjord_ has joined #ruby
jordanm has quit [Disconnected by services]
salkdjaskld has quit [Client Quit]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
salkdjaskld has joined #ruby
frozengeek has joined #ruby
mtkd has joined #ruby
vondruch has quit [Client Quit]
anisha has quit [Quit: This computer has gone to sleep]
vondruch has joined #ruby
uZiel has joined #ruby
Tharbakim has quit [Ping timeout: 248 seconds]
jamiejackson has joined #ruby
cagomez has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
ramfjord_ has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
ramfjord_ has joined #ruby
imode has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
taurgal has quit [Ping timeout: 260 seconds]
ramfjord_ has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
pi1 has joined #ruby
ramfjord_ has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
RedNifre has quit [Ping timeout: 246 seconds]
elsevero has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord_ has quit [Ping timeout: 255 seconds]
InfinityFye has quit [Quit: Leaving]
s00pcan_ is now known as s00pcan
ledestin has joined #ruby
ramfjord has joined #ruby
ramfjord_ has joined #ruby
dionysus69 has joined #ruby
Karthick has joined #ruby
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 240 seconds]
pi4 has joined #ruby
hahuang65 has joined #ruby
lxsameer has joined #ruby
bmurt has joined #ruby
elsevero has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
pi1 has quit [Ping timeout: 260 seconds]
elsevero has joined #ruby
elsevero has quit [Client Quit]
ta_ has joined #ruby
bronson has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ur5us has joined #ruby
cagomez has joined #ruby
who has quit [Quit: WeeChat 1.9]
Neo95 has joined #ruby
jamiejackson has quit [Ping timeout: 248 seconds]
cagomez has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
andygeorge has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
twillkens has joined #ruby
mtkd has joined #ruby
gusrub has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.8]
dionysus69 has quit [Ping timeout: 255 seconds]
nofxxxx has quit [Remote host closed the connection]
truenito has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dionysus69 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Client Quit]
vondruch has joined #ruby
truenito has quit [Ping timeout: 260 seconds]
armando- has quit [Quit: ZNC 1.7.x-nightly-20170828-c1e80b22 - https://znc.in]
<Lyfe>
Anyone ever have "bundle exec irb" throw an error like this? (short version: "Errno::ENOENT: No such file or directory - infocmp") https://paste.ee/p/jaWsM
brendan- has joined #ruby
slothbear has quit [Ping timeout: 260 seconds]
vondruch has quit [Quit: vondruch]
bmurt has joined #ruby
Ishido has quit [Ping timeout: 252 seconds]
Archrover has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
sp4rrow has joined #ruby
pi4 is now known as RedNifre
<RedNifre>
Are block local functins a thing or does the function simply move to the outer scope?
Karthick has quit [Quit: Leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
<darix>
RedNifre: defining functions within a block?! why?
<TastyTrout>
RedNifre: not really, no. you probably want a lambda/Proc for a "block local function". "functions" or methods belong to "self", and if they don't,they're unbound and have to be bound a self to be called.
<RedNifre>
(It's software for a raspberry pi that tells me when the garbage cans have a good chance of not being full)
mim1k has joined #ruby
<RedNifre>
well, it doesn't really 'need' to be block local anyway. It just felt natural to write, i.e. I define which hardware to use at the beginning of the file and then put all my code in the block.
<RedNifre>
But it's not really necessary, I guess I'll change the gpio api anyway.
<TastyTrout>
ok
jgt_ has quit [Ping timeout: 240 seconds]
<RedNifre>
Any other feedback for the code? :)
<darix>
RedNifre: you could stuff it into classes ;)
<TastyTrout>
i didn't look sorry but i'm sure others will have feedback
<RedNifre>
well, I want to create gems but couldn't find the motivation to learn them yet.
<RedNifre>
The standard library seems to include everything so I didn't even NEED gems so far.
<RedNifre>
darix what do you mean? What exactly should go into classes?
bmurt has joined #ruby
<RedNifre>
The code I wrote is a bit magical because in the beginning you define some pins which will then dynamically create methods that you can call in the block because the block is bound to the object with the synthetic methods.
<RedNifre>
(Which works great for the garbage schedule, but is kinda weird in the case of the Morse code generator)
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
<imode>
is there a "designated" gem that I can use to send e-mails programmatically?
<RedNifre>
otherwise I'll just change it myself :)
<tcopeland>
heh cool no worries thanks, have at it!
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
runescape07rsps has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
vondruch has quit [Client Quit]
vondruch has joined #ruby
<RedNifre>
hm, if I dynamically create a method that is named "something=", I create a special setter, right? If I do "something = blabla" in a block that is bound to the object that has that method it should call that method, right? It doesn't in my case so I guess I'm missing something.
<RedNifre>
So far I've been using puts statements to debug. There's a chapter about ruby's debugger in the "Programming Ruby" book, is it worth it?
<RedNifre>
(I mean I guess it's worth it when debugging large complex programs but is it worth it for 30 lines of simple code?)
biberu has quit []
runescape07rsps has quit [Ping timeout: 240 seconds]
<imode>
RedNifre: so "something = blah" is different than "foo.something = blah."
<imode>
if I have an object named foo, who's class is Foo, and that class has a method called "something=", then foo.something = blah will call foo.something=(blah).
<RedNifre>
right
<imode>
but something = blah will just create a variable named something and assign to it blah.
<RedNifre>
even in a method of foo?
<imode>
yup.
<imode>
self.something will call something=.
<RedNifre>
So I would need this.something= or self.something = ?
<RedNifre>
hmmmm
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<RedNifre>
okay, back to the drawing board...
danieli has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
nofxx has joined #ruby
mtkd has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
mim1k has joined #ruby
runescape07rsps has joined #ruby
Danishman has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 248 seconds]
tcopeland has quit [Quit: tcopeland]
belmoussaoui_ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nb_bez_______ has quit [Quit: Connection closed for inactivity]
[Butch] has quit [Quit: I'm out . . .]
vondruch has quit [Client Quit]
vondruch has joined #ruby
18VAB51AU has joined #ruby
sanguisdex has joined #ruby
<sanguisdex>
so I have a ruby rake task that I am running via a jenkins job and not matter what the system method fails.
twillkens has quit [Ping timeout: 240 seconds]
<sanguisdex>
is there a way to debug this?
belmoussaoui_ has quit [Ping timeout: 246 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
truenito has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
vondruch has quit [Client Quit]
harmaahylje has quit [Ping timeout: 255 seconds]
Yxhuvud has joined #ruby
vondruch has joined #ruby
t-recx has quit [Quit: t-recx]
gusrub has quit [Remote host closed the connection]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
FahmeF has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
harmaahylje has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]