00:00
phroa has quit [Quit: Leaving]
00:00
<
Eiam >
given there are two SO pages about this problem that are highly searchable, I suspect i am not alone, in either... disastrous code or perhaps, 'holding it wrong', is there really a right way to hold a knife with no hilt?
00:02
sameerynho has quit [Ping timeout: 244 seconds]
00:02
<
SeepingN >
carefully
00:04
r3m has joined #ruby
00:05
hope_canyon has joined #ruby
00:05
newplasticideas has joined #ruby
00:05
newplasticideas has quit [Client Quit]
00:06
hope_canyon has quit [Client Quit]
00:06
jenrzzz has joined #ruby
00:06
hope_canyon has joined #ruby
00:11
<
hope_canyon >
hi folks. anyone here have experience with RMagick? It's a rails implementation, but the problem I'm facing is more to do with Ruby's existing classes.
00:12
fredolinhares has quit [Ping timeout: 240 seconds]
00:16
throsturt has quit [Ping timeout: 245 seconds]
00:18
<
hope_canyon >
long and short of it is i have an endpoint that constructs a 'report' of user activity. without a file extension in the url, it will render html. supported extensions are pdf and png. pdf works fine, I'm using wickedpdf for this. for the png endpoint, i thought i'd use the same pdf string in memory, store that in a tempfile, and then convert that tempfile to a png.
00:18
<
hope_canyon >
the way it works at present, each png is saved in the root path of the application. i don't want this. i just want them created in memory and rendered with the send_data method, rather than with a template
00:19
throsturt has joined #ruby
00:23
Yojimble has quit [Remote host closed the connection]
00:24
ap4y has quit [Ping timeout: 258 seconds]
00:27
drincruz has joined #ruby
00:27
jenrzzz has quit [Ping timeout: 245 seconds]
00:28
openCircuit__ has joined #ruby
00:28
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
00:29
jenrzzz has joined #ruby
00:30
Guest77382 has quit [Ping timeout: 240 seconds]
00:33
openCircuit__ has quit [Ping timeout: 276 seconds]
00:37
thexa4 has joined #ruby
00:38
jacksoow_ has quit [Ping timeout: 265 seconds]
00:38
wickedbloodfart has joined #ruby
00:39
AJA4350 has quit [Quit: AJA4350]
00:39
wickedbloodfart has quit [Client Quit]
00:39
<
hope_canyon >
Iambchop: Will give this a read. cheers!
00:43
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
00:44
jacksoow has joined #ruby
00:45
jenrzzz has quit [Ping timeout: 276 seconds]
00:54
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:56
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:56
oetjenj has joined #ruby
00:56
drincruz has quit [Ping timeout: 276 seconds]
00:57
oetjenj has quit [Client Quit]
00:57
Fernando-Basso has quit [Remote host closed the connection]
00:57
oetjenj has joined #ruby
00:57
oetjenj has quit [Client Quit]
00:58
gell5 has joined #ruby
00:58
oetjenj has joined #ruby
00:58
oetjenj has quit [Client Quit]
00:59
oetjenj has joined #ruby
00:59
oetjenj has quit [Client Quit]
00:59
drincruz has joined #ruby
01:00
oetjenj has joined #ruby
01:00
oetjenj has quit [Client Quit]
01:00
oetjenj has joined #ruby
01:01
oetjenj has quit [Client Quit]
01:01
oetjenj has joined #ruby
01:01
oetjenj has quit [Client Quit]
01:02
oetjenj has joined #ruby
01:02
bruce_lee has quit [Ping timeout: 246 seconds]
01:02
oetjenj has quit [Client Quit]
01:02
bruce_lee has joined #ruby
01:02
bruce_lee has quit [Changing host]
01:02
bruce_lee has joined #ruby
01:03
oetjenj has joined #ruby
01:03
oetjenj has quit [Client Quit]
01:03
oetjenj has joined #ruby
01:04
oetjenj has quit [Client Quit]
01:04
Esa_ has joined #ruby
01:04
oetjenj has joined #ruby
01:04
oetjenj has quit [Client Quit]
01:05
oetjenj has joined #ruby
01:05
oetjenj has quit [Client Quit]
01:06
oetjenj has joined #ruby
01:06
oetjenj has quit [Client Quit]
01:09
stryek has quit [Quit: Connection closed for inactivity]
01:11
johnny56 has quit [Ping timeout: 240 seconds]
01:18
johnny56 has joined #ruby
01:21
absolutejam1 has joined #ruby
01:26
Intelo has quit [Ping timeout: 240 seconds]
01:26
absolutejam1 has quit [Ping timeout: 245 seconds]
01:28
drincruz has quit [Ping timeout: 240 seconds]
01:33
electrostat has quit [Quit: uwotm8]
01:34
hutch has quit [Ping timeout: 276 seconds]
01:34
electrostat has joined #ruby
01:35
electrostat has quit [Client Quit]
01:44
duderonomy has joined #ruby
01:44
ramfjord has quit [Ping timeout: 276 seconds]
01:46
ramfjord has joined #ruby
01:49
witlesswonder_ has joined #ruby
01:50
witlesswonder_ has quit [Remote host closed the connection]
01:50
ramfjord has quit [Ping timeout: 246 seconds]
01:57
electrostat has joined #ruby
01:58
gix has quit [Ping timeout: 240 seconds]
02:05
dasher00 has quit [Ping timeout: 245 seconds]
02:06
tsujp has joined #ruby
02:07
gell5 has quit [Remote host closed the connection]
02:09
Esa_ has joined #ruby
02:11
witlesswonder has quit [Quit: Leaving]
02:13
Nicmavr has quit [Read error: Connection reset by peer]
02:15
Nicmavr has joined #ruby
02:18
gell5 has joined #ruby
02:22
gell5 has quit [Ping timeout: 246 seconds]
02:26
throsturt has quit [Ping timeout: 245 seconds]
02:33
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:33
ellcs1 has joined #ruby
02:34
grilix has joined #ruby
02:35
ellcs has quit [Ping timeout: 276 seconds]
02:36
x86sk has joined #ruby
02:38
ellcs has joined #ruby
02:38
ellcs1 has quit [Ping timeout: 246 seconds]
02:38
ellcs has quit [Max SendQ exceeded]
02:38
ellcs has joined #ruby
02:39
ellcs has quit [Max SendQ exceeded]
02:40
ellcs has joined #ruby
02:40
gix has joined #ruby
02:40
fredolinhares has joined #ruby
02:43
hutch has joined #ruby
02:48
fig-le-deunch has quit [Quit: Konversation terminated!]
02:51
hutch has quit [Ping timeout: 245 seconds]
02:59
gell5 has joined #ruby
03:06
witlesswonder has joined #ruby
03:12
openCircuit__ has joined #ruby
03:17
openCircuit__ has quit [Ping timeout: 265 seconds]
03:18
poontangmessiah has quit [Remote host closed the connection]
03:22
gell5 has quit [Ping timeout: 240 seconds]
03:26
fredolinhares has quit [Quit: WeeChat 1.9.1]
03:28
tdy has quit [Ping timeout: 246 seconds]
03:29
cnsvc has joined #ruby
03:33
jud has quit [Quit: Leaving]
03:38
Esa_ has quit [Ping timeout: 246 seconds]
03:48
gix- has joined #ruby
03:48
gix has quit [Disconnected by services]
03:54
gell5 has joined #ruby
03:58
gell5 has quit [Ping timeout: 246 seconds]
04:19
ramfjord has joined #ruby
04:23
ramfjord has quit [Ping timeout: 245 seconds]
04:27
_whitelogger has joined #ruby
04:29
tfitts_ has joined #ruby
04:29
tfitts_ has quit [Client Quit]
04:30
tfitts has joined #ruby
04:32
gell5 has joined #ruby
04:35
tdy has joined #ruby
04:40
gell5 has quit [Ping timeout: 240 seconds]
04:45
_whitelogger has joined #ruby
04:57
schne1der has joined #ruby
05:00
cnsvc has quit [Ping timeout: 260 seconds]
05:02
jenrzzz has joined #ruby
05:09
gell5 has joined #ruby
05:14
gell5 has quit [Ping timeout: 240 seconds]
05:14
absolutejam1 has joined #ruby
05:18
absolutejam1 has quit [Ping timeout: 265 seconds]
05:20
ur5us has quit [Remote host closed the connection]
05:21
ur5us has joined #ruby
05:21
absolutejam1 has joined #ruby
05:25
gix- has quit [Ping timeout: 276 seconds]
05:25
ur5us has quit [Ping timeout: 240 seconds]
05:29
Inline has quit [Quit: Leaving]
05:33
vondruch has joined #ruby
05:36
bitwinery has quit [Quit: Leaving]
05:37
nowhere_man has joined #ruby
05:44
Milos has quit [Excess Flood]
05:44
Milos has joined #ruby
05:45
schaerli has joined #ruby
05:45
schne1der has quit [Ping timeout: 276 seconds]
05:48
gell5 has joined #ruby
05:50
Sina has quit [Quit: Connection closed for inactivity]
05:51
FrankDW has quit [Read error: Connection reset by peer]
05:53
gell5 has quit [Ping timeout: 265 seconds]
05:59
chalkmonster has joined #ruby
06:00
oetjenj has joined #ruby
06:09
sauvin has joined #ruby
06:12
dionysus69 has joined #ruby
06:15
absolutejam1 has quit [Ping timeout: 245 seconds]
06:16
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:16
nowhereman has joined #ruby
06:16
nowhere_man has quit [Read error: Connection reset by peer]
06:19
dionysus69 has quit [Remote host closed the connection]
06:20
dionysus69 has joined #ruby
06:23
grilix has quit [Ping timeout: 246 seconds]
06:27
jenrzzz has quit [Ping timeout: 265 seconds]
06:28
hiroaki has quit [Ping timeout: 240 seconds]
06:30
nowhereman has quit [Read error: Connection reset by peer]
06:30
nowhere_man has joined #ruby
06:31
dinfuehr has quit [Ping timeout: 245 seconds]
06:34
dinfuehr has joined #ruby
06:34
bitwinery has joined #ruby
06:38
hope_canyon has quit [Quit: Leaving]
06:41
emptyflask has quit [Ping timeout: 268 seconds]
06:45
reber has joined #ruby
06:47
claw has quit [Ping timeout: 252 seconds]
06:48
claw has joined #ruby
06:52
TomyWork has joined #ruby
06:58
nowhere_man has quit [Ping timeout: 276 seconds]
07:02
schne1der has joined #ruby
07:05
SuperL4g has joined #ruby
07:06
x86sk has quit [Quit: Connection closed for inactivity]
07:06
chalkmonster has quit [Ping timeout: 276 seconds]
07:07
SuperLag has quit [Ping timeout: 240 seconds]
07:13
Intelo has joined #ruby
07:13
absolutejam1 has joined #ruby
07:15
fphilipe_ has quit [Ping timeout: 246 seconds]
07:37
Intelo has quit [Remote host closed the connection]
07:49
gell5 has joined #ruby
07:51
fphilipe_ has joined #ruby
07:54
gell5 has quit [Ping timeout: 276 seconds]
07:57
ellcs has quit [Ping timeout: 246 seconds]
07:59
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:00
DaRock has joined #ruby
08:02
queip has quit [Ping timeout: 240 seconds]
08:05
Intelo has joined #ruby
08:06
bitwinery has quit [Quit: Leaving]
08:06
queip has joined #ruby
08:07
Jonopoly has joined #ruby
08:07
ur5us has joined #ruby
08:09
luat1203 has joined #ruby
08:10
luat1203 has quit [Client Quit]
08:13
throsturt has joined #ruby
08:19
NL3limin4t0r_afk is now known as NL3limin4t0r
08:19
jenrzzz has joined #ruby
08:21
gell5 has joined #ruby
08:21
luat1203 has joined #ruby
08:21
luat1203 has quit [Client Quit]
08:22
luat1203 has joined #ruby
08:22
luat1203 has quit [Client Quit]
08:22
luat1203 has joined #ruby
08:24
FastJack has joined #ruby
08:25
bhaak has quit [Ping timeout: 245 seconds]
08:30
gell5 has quit [Ping timeout: 246 seconds]
09:04
fphilipe_ has quit [Ping timeout: 265 seconds]
09:07
fphilipe_ has joined #ruby
09:10
Huck777 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:13
tdy has quit [Ping timeout: 276 seconds]
09:14
rubydoc_ has quit [Remote host closed the connection]
09:14
rubydoc has joined #ruby
09:16
paraxial has quit [Ping timeout: 240 seconds]
09:16
dasher00 has joined #ruby
09:19
Lyubo1 has quit [Ping timeout: 245 seconds]
09:19
thexa4 has joined #ruby
09:23
arahael1 is now known as Arahael
09:25
ur5us has quit [Read error: Connection reset by peer]
09:26
ur5us has joined #ruby
09:26
Lyubo1 has joined #ruby
09:33
paraxial has joined #ruby
09:34
ellcs has joined #ruby
09:43
schne1der has quit [Ping timeout: 240 seconds]
09:45
fphilipe_ has quit [Ping timeout: 246 seconds]
09:47
Lyubo1 has quit [Ping timeout: 246 seconds]
09:48
Norrin has quit [Quit: ""]
09:48
Norrin has joined #ruby
09:48
Tristan has joined #ruby
09:48
lord4163 has quit [Ping timeout: 245 seconds]
09:48
Tristan is now known as Guest50768
09:49
Tristan-Speccy has quit [Read error: Connection reset by peer]
09:49
j416 has quit [Ping timeout: 268 seconds]
09:49
linduxed has quit [Ping timeout: 258 seconds]
09:51
j416 has joined #ruby
09:51
lord4163 has joined #ruby
10:02
bhaak has joined #ruby
10:09
j416 has quit [Ping timeout: 276 seconds]
10:09
involans has joined #ruby
10:09
j416 has joined #ruby
10:10
dbugger has joined #ruby
10:12
witlesswonder has quit [Remote host closed the connection]
10:12
witlesswonder has joined #ruby
10:17
linduxed has joined #ruby
10:19
fphilipe_ has joined #ruby
10:27
gell5 has joined #ruby
10:31
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:34
gell5 has quit [Ping timeout: 276 seconds]
10:36
throsturt is now known as throstur
10:42
Lyubo1 has joined #ruby
10:52
chalkmonster has joined #ruby
10:56
dionysus70 has joined #ruby
10:57
dionysus69 has quit [Ping timeout: 246 seconds]
10:57
dionysus70 is now known as dionysus69
11:00
fphilipe_ has quit [Ping timeout: 276 seconds]
11:01
luat1203 has quit [Quit: Leaving]
11:04
ur5us has quit [Remote host closed the connection]
11:04
ur5us has joined #ruby
11:05
FernandoBasso has joined #ruby
11:05
ur5us has quit [Remote host closed the connection]
11:05
ur5us has joined #ruby
11:07
sagax has quit [Quit: Konversation terminated!]
11:08
involans has quit [Ping timeout: 245 seconds]
11:10
ur5us has quit [Ping timeout: 246 seconds]
11:11
schne1der has joined #ruby
11:14
dionysus69 has quit [Remote host closed the connection]
11:14
dionysus69 has joined #ruby
11:29
grilix has joined #ruby
11:33
reber has quit [Remote host closed the connection]
11:33
FernandoBasso has quit [Remote host closed the connection]
11:41
ntsrtoh^ has quit []
11:45
ffl^ has joined #ruby
11:45
donofrio_ has quit [Ping timeout: 245 seconds]
11:48
kabads has joined #ruby
11:51
dionysus69 has quit [Remote host closed the connection]
11:51
dionysus69 has joined #ruby
11:52
poontangmessiah has joined #ruby
12:04
jnix has quit [Quit: Connection closed for inactivity]
12:09
hutch has joined #ruby
12:15
banisterfiend has joined #ruby
12:20
ellcs1 has joined #ruby
12:21
solars has joined #ruby
12:21
grilix has quit [Ping timeout: 245 seconds]
12:23
tsujp has joined #ruby
12:31
gell5 has joined #ruby
12:32
arahael1 has joined #ruby
12:34
Arahael has quit [Ping timeout: 245 seconds]
12:35
absolutejam1 has quit [Ping timeout: 276 seconds]
12:38
absolutejam1 has joined #ruby
12:38
ElFerna has joined #ruby
12:38
gell5 has quit [Ping timeout: 245 seconds]
12:44
queip has quit [Ping timeout: 265 seconds]
12:46
schne1der has quit [Ping timeout: 240 seconds]
12:46
FernandoBasso has joined #ruby
12:48
queip has joined #ruby
12:49
ravenousmoose has joined #ruby
12:53
Nicmavr has quit [Read error: Connection reset by peer]
12:55
AJA4350 has joined #ruby
12:55
Nicmavr has joined #ruby
13:00
jrafanie has joined #ruby
13:01
roaet has joined #ruby
13:03
<
roaet >
Howdy. Is there a way to step in 'pry'? not sure if pry is too specific of a gem to be asked here.
13:03
<
phaul >
there is a byebug pry plugin. but afaik vanilla pry is a single snapshot state viewer
13:04
<
roaet >
ah. neat. thanks phaul.
13:05
<
phaul >
you can look at the state including walking the current callstack though which is usually what ppl want. Also there is pry-rescue which stops in pry repl on exception
13:05
<
roaet >
I was looking to use pry as ipdb (I'm a python dev). Mainly a step debugger I guess?
13:06
<
phaul >
try byebug or pry-bybug
13:06
GodFather has joined #ruby
13:06
<
roaet >
i shall, than you
13:06
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:06
sagax has joined #ruby
13:08
banisterfiend has joined #ruby
13:10
<
roaet >
if I install pry-byebug with `gem install pry-byebug`, and it shows up when i run `gem list`, then what is wrong if it doesn't show up when i run `pry --plugins`?
13:11
<
roaet >
Could it be an rvm thing? I'm not super familiar with rvm as of yet.
13:12
<
phaul >
I don't know. If you start pry and type help, do you see the bybug commands there?
13:15
<
roaet >
Oh. reload gem cache.
13:17
ElFerna has quit [Quit: ElFerna]
13:17
<
phaul >
did that help?
13:17
<
roaet >
nope. hm I'll mess with it. Thanks phaul.
13:18
<
phaul >
my bet is that it's installed with different gem environment.
13:18
<
roaet >
when I run gem-list in pry it does not list pry-byebug as a thing, also when I try gem install pry-byebug it fails.
13:18
ElFerna has joined #ruby
13:20
<
phaul >
byebug itself has a CLI, just gem install byebug and start as byebug.. if the pry plugin fails
13:23
codefriar has joined #ruby
13:24
banisterfiend has quit [Ping timeout: 246 seconds]
13:29
grilix has joined #ruby
13:29
<
roaet >
Ah. WELL. while trying to figure out the pry thing I figured out the bug. So it worked? Thanks again phaul
13:41
drincruz has joined #ruby
13:41
ellcs1 has quit [Ping timeout: 265 seconds]
13:44
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
13:46
schaerli has quit [Ping timeout: 246 seconds]
13:46
Teckuro has joined #ruby
13:47
gell5 has joined #ruby
13:47
chichou has joined #ruby
13:47
<
Teckuro >
Oh hello again haha
13:47
ravenousmoose has quit [Ping timeout: 246 seconds]
13:50
hutch has quit [Ping timeout: 245 seconds]
13:51
gell5 has quit [Remote host closed the connection]
13:57
Teckuro has quit []
13:57
Teckuro has joined #ruby
14:00
AJA4351 has joined #ruby
14:02
AJA4350 has quit [Ping timeout: 245 seconds]
14:02
AJA4351 is now known as AJA4350
14:02
thexa4 has joined #ruby
14:03
jrafanie has joined #ruby
14:13
hutch has joined #ruby
14:14
Huck777 has joined #ruby
14:16
Esa_ has joined #ruby
14:17
schaerli has joined #ruby
14:20
emptyflask has joined #ruby
14:23
tzwork has joined #ruby
14:24
tzwork has quit [Remote host closed the connection]
14:28
gell5 has joined #ruby
14:29
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:31
schaerli has quit [Ping timeout: 265 seconds]
14:34
tata-tzwork has joined #ruby
14:35
schne1der has joined #ruby
14:35
gell5 has quit [Ping timeout: 240 seconds]
14:35
ElFerna has quit [Quit: ElFerna]
14:41
tata-tzwork has quit [Remote host closed the connection]
14:41
ElFerna has joined #ruby
14:52
Intelo has quit [Remote host closed the connection]
14:54
codefriar has quit [Ping timeout: 265 seconds]
14:56
codefriar has joined #ruby
15:03
schne1der has quit [Ping timeout: 245 seconds]
15:07
gell5 has joined #ruby
15:07
Inline has joined #ruby
15:08
AJA4351 has joined #ruby
15:09
fphilipe_ has joined #ruby
15:09
absolutejam1 has quit [Ping timeout: 276 seconds]
15:09
codefriar has quit [Ping timeout: 240 seconds]
15:10
AJA4350 has quit [Ping timeout: 245 seconds]
15:10
AJA4351 is now known as AJA4350
15:11
gell5 has quit [Ping timeout: 245 seconds]
15:11
hutch has quit [Ping timeout: 245 seconds]
15:11
codefriar has joined #ruby
15:12
rippa has joined #ruby
15:12
aperes has joined #ruby
15:13
<
rubydoc >
parser error at position 0 around `f'
15:13
<
phaul >
&fake Faker
15:13
<
rubydoc >
Yarr::Command::Base doesn't know how to handle #<Yarr::AST:0x00007f3d38469980>
15:13
<
phaul >
&fake Faker::Blah
15:13
<
rubydoc >
Yarr::Command::Base doesn't know how to handle #<Yarr::AST:0x00007f3d38490ff8>
15:13
<
phaul >
&fake Faker.lah
15:14
<
phaul >
&fake Movie.quote
15:14
<
rubydoc >
Go ahead, make my day.
15:14
<
phaul >
&fake Movie.quote
15:14
<
rubydoc >
May the Force be with you.
15:14
<
phaul >
&fake Movie.quote
15:14
<
rubydoc >
Fasten your seatbelts. It's going to be a bumpy night.
15:14
<
throstur >
phaul: since you're bored wanna help me with a regex? I need to match "\n" or "+"
15:14
<
throstur >
those are literals, not "newline
15:15
<
throstur >
like a string could be 'This is all\n + on one line'
15:15
<
throstur >
I can't for the life of me figure out how to separate them on the \n
15:15
<
throstur >
and sometimes it's missing, so I need both :(
15:15
<
phaul >
ah. sure. tbh those messages should have happened on #rubydoc-dev ;)
15:16
<
throstur >
I'm gonna grab a coffee, in case you ask a follow up and think I've died and abandoned you
15:18
<
aperes >
throstur: Nobody ever knows Nobody ever sees I left my soul Back there now I'm too weak Most nights I pray for you to come home Praying to the Lord Praying for my soul
15:18
TomyWork has quit [Ping timeout: 246 seconds]
15:22
ellcs has quit [Ping timeout: 246 seconds]
15:25
<
phaul >
&>> 'this is all\n + on one line'.split(/\\n *\+?/)
15:25
Esa_ has quit [Ping timeout: 276 seconds]
15:25
roaet has quit [Ping timeout: 276 seconds]
15:28
<
phaul >
actually that only works if the \\n is not missing
15:29
involans has joined #ruby
15:32
<
phaul >
&>> 'this is all \n on one line'.split(/\\n *\+|\\n|\+/) # but the white spaces around the split are not trimmed
15:34
<
throstur >
that's okay, I can strip the results :)
15:35
<
throstur >
thank you so much phaul
15:36
Guest77382 has joined #ruby
15:36
rubydoc has quit [Remote host closed the connection]
15:36
rubydoc has joined #ruby
15:40
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
15:43
gell5 has joined #ruby
15:45
roaet has joined #ruby
15:47
<
throstur >
if I define a variable in a begin <here> rescue <foo> end block, can I always use it after the block as long as the outer scope stays?
15:48
gell5 has quit [Ping timeout: 246 seconds]
15:48
<
throstur >
basically, do I have to do myvar=nil begin myvar=assignedvalue end # use myvar here; or can I simply begin myvar=assignedvalue end # use myvar here; every time?
15:48
<
throstur >
it works in irb, but I'm skeptical
15:48
<
phaul >
yeah I think begin end is not a lexical scope for local variables.
15:49
<
leftylink >
if there is any doubt about it, may I suggest the alternative of `myvar = begin ... rescue ... end`
15:51
<
phaul >
begin end is just like while, until, if, case etc. in this regard
15:51
Sharcho has joined #ruby
15:53
<
phaul >
to my knowledge there is top level binding , source file top levels, class , module, def, and blocks with different rules that define visibility scopes for local variables
15:55
<
throstur >
omg, ruby is so cool, you're telling me I can do response = begin api.send_payload() rescue RestClient::BadRequest api.send_payload_fallback() end
15:55
<
throstur >
that's amazong
15:55
r3m has quit [Quit: WeeChat 2.7-dev]
15:56
r3m has joined #ruby
15:58
<
leftylink >
I wonder how unsettled I should be by the fact that mame said "too complicated and undocumented", "too difficult for human" ...
15:59
<
leftylink >
... likely what will happen for me is I forget about this
16:01
* throstur
puts on dunce hat and exclaims "gief plox"
16:01
dretnx has joined #ruby
16:01
thexa4 has joined #ruby
16:02
<
phaul >
probably the most advanced person in ruby dark magick wizardry
16:03
schne1der has joined #ruby
16:06
cthulchu has joined #ruby
16:09
fphilipe_ has quit [Ping timeout: 246 seconds]
16:11
esrse has joined #ruby
16:15
gell5 has joined #ruby
16:15
Norrin has quit [Changing host]
16:15
Norrin has joined #ruby
16:16
Toledo has joined #ruby
16:16
<
throstur >
holy sh!t
16:18
jacksoow has quit [Read error: Connection reset by peer]
16:18
<
TheMoonMaster >
a nes emulator in ruby? very cool
16:18
jacksoow has joined #ruby
16:19
throstur is now known as throstur_
16:22
suukim has joined #ruby
16:23
gell5 has quit [Ping timeout: 265 seconds]
16:23
Sharcho has quit [Remote host closed the connection]
16:24
Sharcho has joined #ruby
16:25
nfsnobody has quit [Ping timeout: 264 seconds]
16:25
nfsnobody- has joined #ruby
16:26
jacksoow has quit [Read error: Connection reset by peer]
16:26
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
16:29
jacksoow has joined #ruby
16:31
esrse has quit [Ping timeout: 276 seconds]
16:31
IceDragon has quit [Ping timeout: 244 seconds]
16:31
BTRE has quit [Remote host closed the connection]
16:32
BTRE has joined #ruby
16:33
aperes has quit [Ping timeout: 246 seconds]
16:34
NL3limin4t0r is now known as NL3limin4t0r_afk
16:34
aperes has joined #ruby
16:36
IceDragon has joined #ruby
16:37
chichou has quit [Quit: WeeChat 2.6]
16:42
<
havenwood >
leftylink: That reminds me, I was going to patch that in RVM.
16:42
<
havenwood >
leftylink: There's a developer meeting next week. That'll probably be when it's decided.
16:43
<
havenwood >
TheMoonMaster: It runs great too! Use the --jit flag for CRuby or TruffleRuby is the fastest by far.
16:43
jrafanie has joined #ruby
16:43
Sharcho has quit [Quit: Leaving]
16:44
<
havenwood >
"The fstring mechanism is too difficult for human (except normalperson (Eric Wong))."
16:44
lucasb has joined #ruby
16:45
poontangmessiah_ has joined #ruby
16:45
involans has quit [Quit: involans]
16:47
poontangmessiah has quit [Ping timeout: 276 seconds]
16:54
involans has joined #ruby
16:54
duderonomy has joined #ruby
16:57
alfiemax has joined #ruby
16:57
MrBismuth has joined #ruby
16:58
aperes has quit [Ping timeout: 240 seconds]
17:00
MrBusiness3 has quit [Ping timeout: 276 seconds]
17:01
dinfuehr has quit [Ping timeout: 245 seconds]
17:01
dinfuehr has joined #ruby
17:03
dretnx2 has joined #ruby
17:04
dretnx2 has quit [Client Quit]
17:04
involans has quit [Quit: involans]
17:05
thexa4 has joined #ruby
17:06
dretnx has quit [Ping timeout: 265 seconds]
17:06
ElFerna has quit [Quit: ElFerna]
17:06
ElFerna has joined #ruby
17:09
hutch has joined #ruby
17:09
Toledo has joined #ruby
17:09
involans has joined #ruby
17:09
queip has quit [Ping timeout: 245 seconds]
17:12
donofrio has joined #ruby
17:13
involans has quit [Client Quit]
17:14
tdy has joined #ruby
17:15
involans has joined #ruby
17:15
queip has joined #ruby
17:17
gix has joined #ruby
17:18
ElFerna has quit [Quit: ElFerna]
17:19
ElFerna has joined #ruby
17:19
involans has quit [Client Quit]
17:22
jenrzzz has quit [Ping timeout: 240 seconds]
17:24
roaet has quit [Ping timeout: 265 seconds]
17:24
involans has joined #ruby
17:27
ElFerna has quit [Quit: ElFerna]
17:27
drincruz_ has joined #ruby
17:27
ElFerna has joined #ruby
17:28
ElFerna has quit [Read error: Connection reset by peer]
17:28
SeepingN has quit [Ping timeout: 246 seconds]
17:29
ElFerna has joined #ruby
17:29
drincruz has quit [Ping timeout: 265 seconds]
17:31
tdy has quit [Ping timeout: 240 seconds]
17:32
hutch has quit [Ping timeout: 246 seconds]
17:32
roaet has joined #ruby
17:33
involans has quit [Quit: involans]
17:34
involans has joined #ruby
17:34
involans has quit [Client Quit]
17:35
alfiemax_ has joined #ruby
17:37
alfiemax has quit [Ping timeout: 246 seconds]
17:39
involans has joined #ruby
17:41
ElFerna1 has joined #ruby
17:43
nowhere_man has joined #ruby
17:44
involans_ has joined #ruby
17:44
ElFerna has quit [Ping timeout: 276 seconds]
17:44
ElFerna1 is now known as ElFerna
17:47
suukim has quit [Quit: Konversation terminated!]
17:47
involans has quit [Ping timeout: 246 seconds]
17:47
involans_ is now known as involans
17:49
involans has quit [Quit: involans]
17:54
involans has joined #ruby
17:55
jacksoow has quit [Ping timeout: 246 seconds]
17:57
jacksoow has joined #ruby
18:03
alfiemax has joined #ruby
18:04
involans has quit [Quit: involans]
18:07
alfiemax_ has quit [Ping timeout: 276 seconds]
18:08
redlegion has joined #ruby
18:09
elphe has quit [Ping timeout: 265 seconds]
18:09
involans has joined #ruby
18:09
alfiemax_ has joined #ruby
18:10
jenrzzz has joined #ruby
18:10
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
18:10
tdy has joined #ruby
18:12
alfiemax has quit [Ping timeout: 246 seconds]
18:15
ramfjord has joined #ruby
18:16
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:17
hutch has joined #ruby
18:19
involans has quit [Quit: involans]
18:19
gell5 has joined #ruby
18:19
alfiemax_ has quit [Remote host closed the connection]
18:20
alfiemax has joined #ruby
18:21
dionysus70 has joined #ruby
18:22
dionysus69 has quit [Ping timeout: 246 seconds]
18:22
dionysus70 is now known as dionysus69
18:23
Xiti has quit [Quit: Xiti]
18:24
involans has joined #ruby
18:24
alfiemax has quit [Ping timeout: 246 seconds]
18:24
tdy has quit [Ping timeout: 245 seconds]
18:26
gell5 has quit [Ping timeout: 240 seconds]
18:29
sauvin has quit [Ping timeout: 240 seconds]
18:29
SeepingN has joined #ruby
18:29
hutch has quit [Ping timeout: 246 seconds]
18:32
AJA4350 has quit [Ping timeout: 276 seconds]
18:32
throstur_ has quit [Ping timeout: 265 seconds]
18:33
cd has joined #ruby
18:34
involans has quit [Quit: involans]
18:36
regedit has joined #ruby
18:37
reber has joined #ruby
18:39
involans has joined #ruby
18:39
alfiemax has joined #ruby
18:42
vondruch has quit [Quit: vondruch]
18:42
throstur_ has joined #ruby
18:43
vondruch has joined #ruby
18:46
yann-kaelig has joined #ruby
18:46
absolutejam1 has joined #ruby
18:48
Xiti has joined #ruby
18:49
involans has quit [Quit: involans]
18:54
involans has joined #ruby
18:56
involans has quit [Client Quit]
18:58
poontangmessiah_ has quit [Remote host closed the connection]
18:58
tdy has joined #ruby
18:58
hutch has joined #ruby
19:00
alfiemax has quit [Remote host closed the connection]
19:00
alfiemax has joined #ruby
19:05
grilix has quit [Ping timeout: 240 seconds]
19:07
hutch has quit [Ping timeout: 276 seconds]
19:08
<
leftylink >
can I unsubscribe from these particular highlights? this is not really my area of interest.
19:08
<
leftylink >
thank you
19:08
emptyflask has quit [Ping timeout: 240 seconds]
19:09
<
havenwood >
Sharcho ^
19:09
yann-kaelig has quit [Quit: yann-kaelig]
19:09
<
havenwood >
leftylin: Oops. My syntax highlighter chose a color for your nick too close to Sharcho's.
19:09
involans has joined #ruby
19:09
emptyflask has joined #ruby
19:10
alfiemax has quit [Remote host closed the connection]
19:12
AJA4350 has joined #ruby
19:12
thexa4 has joined #ruby
19:12
jacksoow has quit [Ping timeout: 245 seconds]
19:13
alfiemax has joined #ruby
19:14
involans has quit [Client Quit]
19:14
nowhere_man has quit [Ping timeout: 240 seconds]
19:16
jacksoow has joined #ruby
19:17
alfiemax has quit [Ping timeout: 246 seconds]
19:18
hutch has joined #ruby
19:23
tdy has quit [Ping timeout: 276 seconds]
19:24
involans has joined #ruby
19:24
involans has quit [Client Quit]
19:26
alfiemax has joined #ruby
19:26
alfiemax_ has joined #ruby
19:26
oetjenj has joined #ruby
19:28
ramfjord has quit [Ping timeout: 240 seconds]
19:28
alfiemax_ has quit [Remote host closed the connection]
19:30
alfiemax has quit [Ping timeout: 245 seconds]
19:32
hutch has quit [Ping timeout: 276 seconds]
19:34
jacksoow_ has joined #ruby
19:34
jacksoow has quit [Ping timeout: 240 seconds]
19:37
jacksoow_ has quit [Read error: Connection reset by peer]
19:37
hutch has joined #ruby
19:37
jacksoow has joined #ruby
19:39
SeepingN_ has joined #ruby
19:39
SeepingN has quit [Disconnected by services]
19:39
involans has joined #ruby
19:40
SeepingN_ is now known as CPngN
19:40
involans has quit [Client Quit]
19:42
magellanicloud has joined #ruby
19:43
magellanicloud has quit [Remote host closed the connection]
19:48
bambanx has joined #ruby
19:50
grilix has joined #ruby
19:50
gnufied has quit [Ping timeout: 268 seconds]
19:50
Xiti has quit [Quit: Xiti]
19:50
dinfuehr has quit [Ping timeout: 245 seconds]
19:51
dinfuehr has joined #ruby
19:53
donofrio has quit [Remote host closed the connection]
19:55
donofrio has joined #ruby
19:58
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:58
Xiti has joined #ruby
20:03
bambanx has quit [Quit: Leaving]
20:09
hutch has quit [Ping timeout: 245 seconds]
20:10
howdoi has quit [Quit: Connection closed for inactivity]
20:13
robotcars has joined #ruby
20:14
zululee_ has joined #ruby
20:14
<
phaul >
replace %W qith %q and remove join
20:15
<
phaul >
&>> %W[a b c]
20:15
<
robotcars >
%q works. thanks phaul!
20:15
<
phaul >
you can also lose join
20:16
<
phaul >
&>> "rubydoc, where are you?"
20:16
jordanm has quit [Read error: Connection reset by peer]
20:16
<
robotcars >
lost the join, it's keeping indentation
20:16
jordanm has joined #ruby
20:17
elphe has joined #ruby
20:17
<
phaul >
ah. my CI messed up stuff. I just roll back
20:18
greengriminal has joined #ruby
20:18
rubydoc has quit [Remote host closed the connection]
20:19
rubydoc has joined #ruby
20:19
<
phaul >
&>> %W[a b c]
20:19
<
phaul >
&>> %W[a b c].join
20:22
<
phaul >
robotcars: np. sorry, bit of mishap with the bot :)
20:22
gell5 has joined #ruby
20:22
elphe has quit [Ping timeout: 265 seconds]
20:23
<
robotcars >
q isn't interpolating
20:25
<
robotcars >
excellent.
20:25
<
robotcars >
now the file has leading white spaces, tried .strip and .strip!
20:26
<
phaul >
you can use heredoc. there are different types, probably <<~ is the best with indentation in code
20:28
gell5 has quit [Ping timeout: 276 seconds]
20:30
ramfjord has joined #ruby
20:31
<
robotcars >
yep, that's what I got too.
20:31
<
robotcars >
thanks phaul!
20:32
cthulchu_ has joined #ruby
20:33
cthu| has joined #ruby
20:35
cthulchu has quit [Ping timeout: 276 seconds]
20:35
ap4y has joined #ruby
20:37
cthulchu_ has quit [Ping timeout: 240 seconds]
20:37
jtdowney has quit [Quit: Bye]
20:38
jtdowney has joined #ruby
20:39
ap4y has quit [Client Quit]
20:39
nowhere_man has joined #ruby
20:43
ur5us has joined #ruby
20:46
drincruz_ is now known as drincruz
20:47
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:47
FernandoBasso has quit [Remote host closed the connection]
20:48
throstur_ has quit [Ping timeout: 246 seconds]
20:51
oetjenj has joined #ruby
20:53
throstur_ has joined #ruby
20:53
cadeskywalker has joined #ruby
20:58
chalkmonster has quit [Quit: WeeChat 2.5]
20:58
quintasan has quit [Ping timeout: 246 seconds]
20:59
dous has quit [Ping timeout: 264 seconds]
21:00
quintasan has joined #ruby
21:00
quintasan has quit [Changing host]
21:00
quintasan has joined #ruby
21:00
dous has joined #ruby
21:02
jcalla has quit [Quit: Leaving]
21:02
chalkmonster has joined #ruby
21:04
robotcars has left #ruby [#ruby]
21:05
hutch has joined #ruby
21:08
reber has quit [Remote host closed the connection]
21:08
chalkmonster has quit [Quit: WeeChat 2.5]
21:10
ap4y has joined #ruby
21:12
ap4y has quit [Client Quit]
21:13
ap4y has joined #ruby
21:14
dionysus69 has quit [Ping timeout: 246 seconds]
21:15
Esa_ has joined #ruby
21:17
ap4y has quit [Disconnected by services]
21:17
ap4y- has joined #ruby
21:17
ap4y has joined #ruby
21:18
ap4y has quit [Remote host closed the connection]
21:19
ap4y- has quit [Client Quit]
21:19
ap4y has joined #ruby
21:20
banisterfiend has joined #ruby
21:24
cthu| has quit [Ping timeout: 240 seconds]
21:25
cthulchu has joined #ruby
21:26
AJA4350 has quit [Ping timeout: 240 seconds]
21:26
AJA4350 has joined #ruby
21:27
banisterfiend has joined #ruby
21:32
greengriminal has quit [Quit: Leaving]
21:33
Guest77382 is now known as davidw
21:34
davidw is now known as Guest51714
21:34
Guest51714 has quit [Changing host]
21:34
Guest51714 has joined #ruby
21:35
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:40
hutch has quit [Ping timeout: 246 seconds]
21:40
absolutejam1 has quit [Ping timeout: 246 seconds]
21:47
ElFerna has quit [Ping timeout: 245 seconds]
21:51
<
leftylink >
we can't backtick in carcinogen can we
21:51
<
leftylink >
&>> `true`
21:51
<
leftylink >
&>> `echo 1`
21:51
<
leftylink >
oh okay then
21:52
<
leftylink >
ahhhhhhh ENV is smart, it automatically freezes any strings you put into it. I was wondering "but what would happen if I mutated a value of ENV"
21:52
<
leftylink >
&>> ENV['ARGH'] = ?b; ENV['ARGH'].clear
21:55
<
leftylink >
note that additionally for all hashes, string keys are frozen on entry, but the same is not said of keys of other mutable types, nor any values
21:59
ur5us has quit [Read error: Connection reset by peer]
22:00
ur5us has joined #ruby
22:00
<
phaul >
&>> a = []; b = { a => 1 }; a << 1; b
22:00
<
phaul >
no idea what this means..
22:00
<
leftylink >
and guess what
22:00
<
leftylink >
now try to do b[a] or b[[]] or b[[1]]
22:00
Fernando-Basso has joined #ruby
22:01
<
leftylink >
is there argument to b.[] that will now return 1?? I wasn't able to find one last time I tried
22:01
roaet has quit [Ping timeout: 245 seconds]
22:01
Jonopoly has quit [Ping timeout: 245 seconds]
22:01
<
leftylink >
b[b.keys.first] ? NOPE
22:01
<
leftylink >
I can no longer figure out how to access a value at that key
22:03
<
leftylink >
but fear not
22:03
<
leftylink >
all that you need to do is `a.clear` and then `b[a]` is once again good
22:03
<
leftylink >
all is right with the world
22:04
drincruz has quit [Ping timeout: 265 seconds]
22:04
Jonopoly has joined #ruby
22:05
<
phaul >
when you say a.clear which method do you mean exactly? there is no Object#clear
22:06
<
phaul >
and it could be anything from where we started
22:08
banisterfiend has joined #ruby
22:09
Intelo has joined #ruby
22:10
<
phaul >
oh I see. Array#clear would do it.
22:11
<
phaul >
why? is this, leftylink ?
22:11
<
leftylink >
er, I guess "whatever is necessary to get the thing to be what it was when it was hashed" ?
22:13
<
phaul >
excepth a = [] doesn't make it work, a.clear does
22:13
<
leftylink >
that makes sense too, right? a = [] hasn't modified the object formerly named a
22:13
<
leftylink >
whereas a.clear would
22:13
<
phaul >
nvm. I see. I does
22:14
<
leftylink >
the thing I was mentioning with it being the other way around as well
22:14
<
leftylink >
&>> a = [1]; b = { a => 1 }; a.clear; [b[a], b[[]], b[[1]], b[b.keys.first], (a << 1; b[a])]
22:14
<
leftylink >
so, just "whatever is necessary to make it the same"
22:15
absolutejam1 has joined #ruby
22:17
<
leftylink >
&>> a = [1]; b = { a => 1 }; a.clear; b[[]] = 2; {"two values w/ same key??" => b, keys: b.keys}
22:20
dbugger has quit [Quit: Leaving]
22:20
absolutejam1 has quit [Ping timeout: 276 seconds]
22:24
lucasb has quit [Quit: Connection closed for inactivity]
22:24
gell5 has joined #ruby
22:27
hutch has joined #ruby
22:32
gell5 has quit [Ping timeout: 276 seconds]
22:35
banisterfiend has joined #ruby
22:40
banisterfiend has quit [Ping timeout: 240 seconds]
22:42
banisterfiend has joined #ruby
22:46
hutch has quit [Ping timeout: 245 seconds]
22:46
ellcs has joined #ruby
22:46
ellcs has quit [Max SendQ exceeded]
22:47
ellcs has joined #ruby
22:47
ellcs has quit [Max SendQ exceeded]
22:48
ellcs has joined #ruby
22:48
ellcs has quit [Max SendQ exceeded]
22:49
ellcs has joined #ruby
22:49
ellcs has quit [Max SendQ exceeded]
22:50
ellcs has joined #ruby
22:50
ellcs has quit [Max SendQ exceeded]
22:51
ellcs has joined #ruby
22:57
hutch has joined #ruby
23:01
throstur_ has quit [Ping timeout: 276 seconds]
23:01
ramfjord has quit [Read error: Connection reset by peer]
23:02
banisterfiend has joined #ruby
23:04
bhaak has quit [Ping timeout: 240 seconds]
23:06
ramfjord has joined #ruby
23:09
banisterfiend has quit [Read error: Connection reset by peer]
23:21
hutch has quit [Ping timeout: 276 seconds]
23:25
throstur_ has joined #ruby
23:27
ramfjord_ has joined #ruby
23:27
jenrzzz has quit [Quit: Lost terminal]
23:27
ukd1_ has quit [Quit: leaving]
23:28
Guest51714 has quit [Ping timeout: 265 seconds]
23:29
ramfjord has quit [Ping timeout: 246 seconds]
23:32
ellcs has quit [Ping timeout: 246 seconds]
23:32
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
23:33
Nicmavr has quit [Read error: Connection reset by peer]
23:35
Nicmavr has joined #ruby
23:36
m3ssia has joined #ruby
23:38
schne1der has quit [Ping timeout: 240 seconds]
23:41
drincruz has joined #ruby
23:45
Fernando-Basso has quit [Remote host closed the connection]
23:47
absolutejam1 has joined #ruby
23:49
Guest51714 has joined #ruby
23:52
absolutejam1 has quit [Ping timeout: 245 seconds]
23:52
dasher00 has quit [Ping timeout: 265 seconds]
23:55
ramfjord_ has quit [Ping timeout: 265 seconds]
23:58
roaet has joined #ruby
23:59
banisterfiend has joined #ruby
23:59
bhaak has joined #ruby