00:08
rprimus has quit [Quit: leaving]
00:08
rprimus has joined #ruby
00:09
jenrzzz has joined #ruby
00:11
Rounin has quit [Ping timeout: 265 seconds]
00:17
jenrzzz has quit [Ping timeout: 260 seconds]
00:22
ur5us_ has joined #ruby
00:22
thillux has quit [Quit: Leaving]
00:24
<
nakilon >
I wonder if the alpine ruby will be fixed in this century
00:29
duderonomy has quit [Ping timeout: 260 seconds]
00:29
miojo has quit [Ping timeout: 260 seconds]
00:34
duderonomy has joined #ruby
00:36
bsdbandit-01 has joined #ruby
00:36
bsdbandit-01 has quit [Read error: Connection reset by peer]
00:41
dionysus69 has quit [Quit: Konversation terminated!]
00:53
bsdbandit-01 has joined #ruby
00:54
bsdbandit-01 has quit [Read error: Connection reset by peer]
01:00
ebrasca` has quit [Remote host closed the connection]
01:02
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:03
TCZ has quit [Quit: Czesc]
01:05
patr0clus has joined #ruby
01:11
Rudd0 has quit [Ping timeout: 260 seconds]
01:14
TCZ has joined #ruby
01:19
kinduff has quit [Quit: Ping timeout (120 seconds)]
01:20
kinduff has joined #ruby
01:21
thecoffemaker has quit [Ping timeout: 246 seconds]
01:27
thecoffemaker has joined #ruby
01:31
bsdbandit-01 has joined #ruby
01:32
wallacer has joined #ruby
01:32
wallacer has quit [Max SendQ exceeded]
01:32
wallacer has joined #ruby
01:32
wallacer has quit [Max SendQ exceeded]
01:36
bsdbandit-01 has quit [Read error: Connection reset by peer]
01:37
wallacer has joined #ruby
01:37
wallacer has quit [Max SendQ exceeded]
01:37
wallacer has joined #ruby
01:37
wallacer has quit [Max SendQ exceeded]
01:38
jinie_ has joined #ruby
01:38
Seich_ has joined #ruby
01:38
Scientz has joined #ruby
01:39
gremax- has joined #ruby
01:39
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
01:39
Seich has quit [Remote host closed the connection]
01:39
cognemo has quit [Quit: cognemo]
01:39
gremax has quit [Quit: Bye]
01:39
Scientz is now known as Scient
01:39
Seich_ is now known as Seich
01:40
justinmcp has joined #ruby
01:40
wallacer has joined #ruby
01:40
wallacer has quit [Max SendQ exceeded]
01:40
wallacer has joined #ruby
01:40
wallacer has quit [Max SendQ exceeded]
01:41
cognemo has joined #ruby
01:44
baojg has joined #ruby
01:57
baojg_ has joined #ruby
01:57
baojg has quit [Remote host closed the connection]
01:57
jenrzzz has joined #ruby
01:58
znz_jp has quit [Remote host closed the connection]
02:00
Xeago has joined #ruby
02:02
znz_jp has joined #ruby
02:03
jenrzzz has quit [Ping timeout: 240 seconds]
02:04
Xeago has quit [Ping timeout: 252 seconds]
02:08
Azure has quit [Read error: Connection reset by peer]
02:08
Azure has joined #ruby
02:10
bsdbandit-01 has joined #ruby
02:10
bsdbandit-01 has quit [Read error: Connection reset by peer]
02:10
tpefreedom has joined #ruby
02:15
TCZ has quit [Quit: Czesc]
02:15
Xeago has joined #ruby
02:16
SoF has quit [Quit: Ping timeout (120 seconds)]
02:17
SoF has joined #ruby
02:17
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
02:18
contradictioned has joined #ruby
02:19
Xeago has quit [Ping timeout: 240 seconds]
02:22
gearnode has quit [Ping timeout: 245 seconds]
02:27
nixue has joined #ruby
02:27
baojg_ has quit [Remote host closed the connection]
02:45
bsdbandit-01 has joined #ruby
02:45
bsdbandit-01 has quit [Read error: Connection reset by peer]
02:47
Xeago has joined #ruby
02:48
Nilium has left #ruby [#ruby]
02:50
ChmEarl has quit [Quit: Leaving]
02:51
Xeago has quit [Ping timeout: 252 seconds]
03:02
Xeago has joined #ruby
03:04
tpefreedom has quit [Remote host closed the connection]
03:06
elcuervo has quit [Read error: Connection reset by peer]
03:06
Xeago has quit [Ping timeout: 240 seconds]
03:07
elcuervo has joined #ruby
03:08
baojg has joined #ruby
03:15
postmodern has quit [Quit: Leaving]
03:17
MalkbabY has quit [Remote host closed the connection]
03:17
MalkbabY has joined #ruby
03:28
duderonomy has quit [Ping timeout: 265 seconds]
03:29
bsdbandit-01 has joined #ruby
03:31
duderonomy has joined #ruby
03:42
kermit_ has joined #ruby
03:42
kermit_ has quit [Changing host]
03:42
kermit_ is now known as kermit
03:51
bsdbandit-01 has quit [Read error: Connection reset by peer]
04:00
Rudd0 has joined #ruby
04:00
jenrzzz has joined #ruby
04:02
m27frogy has quit [Ping timeout: 245 seconds]
04:03
nixue has quit [Quit: Connection closed]
04:06
jenrzzz has quit [Ping timeout: 240 seconds]
04:10
bsdbandit-01 has joined #ruby
04:10
bsdbandit-01 has quit [Read error: Connection reset by peer]
04:24
tpefreedom has joined #ruby
04:24
bsdbandit-01 has joined #ruby
04:26
jenrzzz has joined #ruby
04:26
bsdbandit-01 has quit [Read error: Connection reset by peer]
04:27
gix- has joined #ruby
04:28
gix has quit [Disconnected by services]
04:33
andremedeiros has quit [Read error: Connection reset by peer]
04:35
andremedeiros has joined #ruby
04:38
ur5us_ has quit [Ping timeout: 258 seconds]
04:38
jenrzzz has quit [Ping timeout: 240 seconds]
04:41
bsdbandit-01 has joined #ruby
04:44
bsdbandit-01 has quit [Read error: Connection reset by peer]
04:47
roshanavand_ has joined #ruby
04:50
roshanavand__ has quit [Ping timeout: 265 seconds]
04:54
kinduff has quit [Ping timeout: 265 seconds]
04:58
roshanavand__ has joined #ruby
05:00
roshanavand_ has quit [Ping timeout: 240 seconds]
05:07
bsdbandit-01 has joined #ruby
05:07
bsdbandit-01 has quit [Read error: Connection reset by peer]
05:13
bsdbandit-01 has joined #ruby
05:16
major_majors has joined #ruby
05:18
Xeago has joined #ruby
05:23
Xeago has quit [Ping timeout: 240 seconds]
05:29
kinduff has joined #ruby
05:41
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
05:47
dinfuehr has quit [Ping timeout: 276 seconds]
05:47
dinfuehr has joined #ruby
05:49
bsdbandit-01 has joined #ruby
05:50
Xeago has joined #ruby
05:54
dinfuehr has quit [Ping timeout: 240 seconds]
05:54
Xeago has quit [Ping timeout: 240 seconds]
05:54
dinfuehr has joined #ruby
05:58
tpefreedom has quit [Quit: Leaving]
05:58
dinfuehr has quit [Ping timeout: 240 seconds]
05:59
dinfuehr has joined #ruby
06:04
dinfuehr has quit [Ping timeout: 240 seconds]
06:05
Xeago has joined #ruby
06:06
dinfuehr has joined #ruby
06:06
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
06:07
bsdbandit-01 has joined #ruby
06:08
gix- has quit [Ping timeout: 240 seconds]
06:10
Xeago has quit [Ping timeout: 240 seconds]
06:10
dinfuehr has quit [Ping timeout: 240 seconds]
06:11
cfjk has joined #ruby
06:12
dinfuehr has joined #ruby
06:16
Furai has quit [Quit: WeeChat 3.1]
06:19
Furai has joined #ruby
06:21
Xeago has joined #ruby
06:23
gigetoo has quit [Ping timeout: 246 seconds]
06:23
gigetoo has joined #ruby
06:25
Xeago has quit [Ping timeout: 252 seconds]
06:26
roadie has joined #ruby
06:33
bsdbandit-01 has quit [Remote host closed the connection]
06:34
jenrzzz has joined #ruby
06:38
jenrzzz has quit [Ping timeout: 240 seconds]
06:45
roadie has quit [Quit: ERC (IRC client for Emacs 27.1.91)]
06:57
howdoi has quit [Quit: Connection closed for inactivity]
06:58
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:00
bamdad has quit [Remote host closed the connection]
07:00
jenrzzz has joined #ruby
07:01
bamdad has joined #ruby
07:05
jenrzzz has quit [Ping timeout: 252 seconds]
07:05
dputtick has quit [Ping timeout: 258 seconds]
07:06
clinth has quit [Read error: Connection reset by peer]
07:06
r3my has quit [Write error: Connection reset by peer]
07:06
jhill has quit [Read error: Connection reset by peer]
07:06
r3my has joined #ruby
07:06
clinth has joined #ruby
07:06
englishm__ has quit [Ping timeout: 258 seconds]
07:06
jenrzzz has joined #ruby
07:06
jhill has joined #ruby
07:08
dputtick has joined #ruby
07:08
englishm__ has joined #ruby
07:16
work_ has joined #ruby
07:24
feriman has joined #ruby
07:31
MalkbabY has quit [Remote host closed the connection]
07:32
MalkbabY has joined #ruby
07:34
ua has quit [Ping timeout: 248 seconds]
07:35
Rounin has joined #ruby
07:41
maryo87 has joined #ruby
07:42
feep[work] has joined #ruby
07:42
<
feep[work] >
I'm trying to handle options after -- separately in rake
07:42
<
feep[work] >
so I'm trying to replace ARGV with "ARGV values before --"
07:43
<
feep[work] >
but even if I do this near first thing in the rakefile and puts confirms ARGV is empty, rake still tries to build the stuff after the -- as tasks
07:43
<
feep[work] >
background is I'm trying to pass arguments to a rake task and the task['bla bla'] syntax is just terrible
07:44
<
feep[work] >
so I'm trying to get rake task -- bla bla to work
07:44
akem has quit [Ping timeout: 252 seconds]
07:45
<
feep[work] >
so rn I think rake saves the ARGV contents somewhere super early and ignores the actual variable; how do I replace the ARGV that rake sees?
07:45
<
nakilon >
I would suggest to stop calling ARGV in your tasks then
07:45
<
nakilon >
and process ARGV into some another array
07:46
<
feep[work] >
that doesn't help
07:46
<
feep[work] >
the problem is that
*rake* processes ARGV, not in the rakefile, but in the tool
07:46
<
nakilon >
if it's a single Rakefile all the tasks have the same external namespace where you can init your array
07:46
ua has joined #ruby
07:46
<
feep[work] >
ie. if I do rake -- bla, it tries to run bla as a task
07:46
TruffleP1mp has joined #ruby
07:47
<
feep[work] >
this even happens if I do ARGV.clear first thing in my rakefile
07:47
<
nakilon >
do you really mean "--" after "rake"? not "rake smth -- ..."?
07:47
<
feep[work] >
yeah it does a default task
07:48
<
feep[work] >
that might be what breaks?
07:48
<
feep[work] >
rake doesn't notice that it's not "really" getting arguments
07:48
<
feep[work] >
it should be seeing "ARGV is empty - let me do the default task"
07:49
<
nakilon >
so it's another syntax to pass the args now
07:49
<
feep[work] >
yes I am trying to explicitly bypass that garbage fire.
07:50
<
feep[work] >
... oh, exit at the end
07:50
<
feep[work] >
I see, LOL.
07:50
akem has joined #ruby
07:50
<
feep[work] >
that won't work for default tasks, right?
07:50
<
feep[work] >
yeah I'd basically need to replace the task loop completely, like, put a "process_args" at the bottom of every rakefile
07:54
<
feep[work] >
and tell rake, "you think you have [words after --] as tasks - but you are mistaken, forget those"
07:54
<
feep[work] >
but so ie. rake foo -- foo can't work
07:54
<
feep[work] >
that's okay, I probably don't need that
07:56
<
nakilon >
if it's only one task you need you also consider invoking it via ruby, not rake, something like ruby -rrake ... or whatever it is the way to invoke tasks from ruby
07:56
feriman has quit [Quit: WeeChat 3.1]
07:56
<
feep[work] >
yeah but I'm not changing that, everyone is used to rake task
07:57
<
nakilon >
I mean nor even -rrake but just "ruby mydefaultraketaskwrapper.rb"
07:57
<
feep[work] >
I think I found a way~ rake will ignore parameters after --, so I just need to take all the stuff after -- and remove it from the task list going backwards
07:57
<
feep[work] >
too bad stock ruby doesn't have Array.split(value) :/
07:58
<
nakilon >
you mean split "--"?
07:59
<
nakilon >
&>> a = [1,2,3,4,5]; a.take a.index 3
07:59
<
feep[work] >
yeah that's what I'm doing, take and drop
07:59
<
feep[work] >
but with split I could do it in one call
08:02
hiroaki has joined #ruby
08:07
hiroaki1 has joined #ruby
08:10
Guest96275 is now known as aloy
08:11
<
feep[work] >
oh, need to add rake_tasks << :default if rake_tasks.empty?
08:14
hramrach has quit [Ping timeout: 258 seconds]
08:15
vondruch has joined #ruby
08:27
<
nakilon >
feep[work] I added a comment to your gist
08:28
<
feep[work] >
ooh handy, thanks
08:28
<
feep[work] >
nakilon: ah, that doesn't handle :default tho
08:29
<
feep[work] >
I'll do replace tho
08:30
<
nakilon >
I've just edited the loop
08:30
<
nakilon >
I guess it can be even simplier, I didn't dive into your problem enough
08:34
<
feep[work] >
yeah seems likely. it works though, which is more than I thought was possible an hour ago :D
08:47
valphilnagel has joined #ruby
08:47
jinie has joined #ruby
08:47
cd has quit [Quit: cd]
09:00
swann11[m] has quit [Quit: Idle for 30+ days]
09:08
roshanavand_ has joined #ruby
09:11
roshanavand__ has quit [Ping timeout: 246 seconds]
09:17
valphilnagel has quit [Quit: Leaving]
09:17
gearnode has joined #ruby
09:25
teclator has joined #ruby
09:43
jenrzzz has quit [Ping timeout: 240 seconds]
09:43
jenrzzz has joined #ruby
09:46
Edward123 is now known as EdwardIII
09:51
maryo has joined #ruby
09:52
maryo87 has quit [Ping timeout: 240 seconds]
09:55
Xeago has joined #ruby
10:04
lockweel has joined #ruby
10:05
feep[work] has left #ruby [#ruby]
10:08
PaulePanter has quit [Remote host closed the connection]
10:10
TruffleP1mp has quit [Ping timeout: 258 seconds]
10:15
TrufflePump has joined #ruby
10:16
akem has quit [Ping timeout: 240 seconds]
10:18
PaulePanter has joined #ruby
10:19
Milos has joined #ruby
10:20
naftilos76 has joined #ruby
10:20
TrufflePump has quit [Ping timeout: 258 seconds]
10:37
zapata has joined #ruby
10:38
Guest46767 has quit [Ping timeout: 248 seconds]
10:38
TruffleP1mp has joined #ruby
10:39
zapata has quit [Client Quit]
10:40
zapata has joined #ruby
10:43
TruffleP1mp has quit [Ping timeout: 258 seconds]
10:57
TrufflePump has joined #ruby
11:00
snickers has joined #ruby
11:01
m27frogy has joined #ruby
11:01
baojg has quit [Remote host closed the connection]
11:01
TrufflePump has quit [Ping timeout: 258 seconds]
11:02
baojg has joined #ruby
11:02
baojg has quit [Remote host closed the connection]
11:02
gearnode has quit [Ping timeout: 240 seconds]
11:03
baojg has joined #ruby
11:03
baojg has quit [Remote host closed the connection]
11:03
baojg has joined #ruby
11:04
baojg has quit [Remote host closed the connection]
11:04
baojg has joined #ruby
11:05
baojg has quit [Remote host closed the connection]
11:05
baojg has joined #ruby
11:05
baojg has quit [Remote host closed the connection]
11:06
baojg has joined #ruby
11:06
baojg has quit [Remote host closed the connection]
11:07
baojg has joined #ruby
11:07
baojg has quit [Remote host closed the connection]
11:07
baojg has joined #ruby
11:08
baojg has quit [Remote host closed the connection]
11:09
baojg has joined #ruby
11:10
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:10
duderonomy has joined #ruby
11:14
baojg has quit [Ping timeout: 258 seconds]
11:15
TrufflePump has joined #ruby
11:21
gearnode has joined #ruby
11:22
TrufflePump has quit [Ping timeout: 258 seconds]
11:31
akem has joined #ruby
11:32
linuxconformer has joined #ruby
11:32
jenrzzz has quit [Ping timeout: 240 seconds]
11:44
akem has quit [Ping timeout: 240 seconds]
11:50
jonian has joined #ruby
11:50
jonian has quit [Remote host closed the connection]
11:53
MalkbabY has quit [Remote host closed the connection]
11:53
akem has joined #ruby
11:53
MalkbabY has joined #ruby
11:57
klaas has joined #ruby
12:06
asgwq12321 has joined #ruby
12:10
<
asgwq12321 >
hi guys, my application wants to receive a file encrypted by a pgp public key, how can i decrypt it? is there a stable gem or something i can use?
12:12
vondruch has quit [Ping timeout: 240 seconds]
12:13
miojo has joined #ruby
12:14
shokohsc has joined #ruby
12:17
bamdad has quit [Ping timeout: 240 seconds]
12:17
stdedos has joined #ruby
12:18
bamdad_ has joined #ruby
12:26
Swyper has joined #ruby
12:26
jetchisel has quit [Ping timeout: 248 seconds]
12:28
linuxconformer has left #ruby [#ruby]
12:29
jetchisel has joined #ruby
12:35
jenrzzz has joined #ruby
12:37
stdedos has quit [Ping timeout: 240 seconds]
12:43
jenrzzz has quit [Ping timeout: 252 seconds]
12:44
asgwq12321 has quit [Quit: Connection closed]
12:51
cow[moo] has joined #ruby
12:59
stdedos has joined #ruby
13:10
hramrach has joined #ruby
13:12
vondruch has joined #ruby
13:15
akem has quit [Ping timeout: 252 seconds]
13:29
jenrzzz has joined #ruby
13:34
jenrzzz has quit [Ping timeout: 246 seconds]
13:52
akem has joined #ruby
14:01
nixue has joined #ruby
14:02
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
14:03
Technodrome has joined #ruby
14:04
Fire-Dragon-DoL has joined #ruby
14:12
alexherbo2 has joined #ruby
14:19
Iarfen has joined #ruby
14:35
GodFather has joined #ruby
14:36
work_ has quit [Quit: Connection closed for inactivity]
14:43
shtirlic_ has joined #ruby
14:46
shtirlic has quit [Ping timeout: 240 seconds]
14:57
shtirlic has joined #ruby
14:58
cliluw has quit [Ping timeout: 248 seconds]
15:00
shtirlic_ has quit [Ping timeout: 240 seconds]
15:04
Swyper has quit [Remote host closed the connection]
15:08
Swyper_ has joined #ruby
15:21
shtirlic_ has joined #ruby
15:22
bdnelson has joined #ruby
15:25
shtirlic has quit [Ping timeout: 246 seconds]
15:29
GodFather has quit [Ping timeout: 265 seconds]
15:29
jenrzzz has joined #ruby
15:31
Rush has quit [Remote host closed the connection]
15:31
RushPL has quit [Remote host closed the connection]
15:32
marahin has quit [Ping timeout: 258 seconds]
15:32
nyuszika7h has quit [Ping timeout: 240 seconds]
15:33
Rush has joined #ruby
15:33
nyuszika7h has joined #ruby
15:34
jenrzzz has quit [Ping timeout: 260 seconds]
15:36
marahin has joined #ruby
15:36
marahin has quit [Changing host]
15:36
marahin has joined #ruby
15:38
elcuervo has quit [Read error: Connection reset by peer]
15:39
elcuervo has joined #ruby
15:39
dinfuehr has quit [Ping timeout: 265 seconds]
15:41
dinfuehr has joined #ruby
15:41
wald0 has joined #ruby
15:47
Swyper_ has quit [Remote host closed the connection]
15:47
TCZ has joined #ruby
15:47
Fridtjof has joined #ruby
15:48
TCZ has quit [Client Quit]
15:48
TCZ has joined #ruby
15:55
roshanavand__ has joined #ruby
15:59
akem has quit [Ping timeout: 265 seconds]
15:59
roshanavand_ has quit [Ping timeout: 265 seconds]
16:02
cthulchu_ has joined #ruby
16:05
MalkbabY has quit [Remote host closed the connection]
16:06
MalkbabY has joined #ruby
16:10
roadie has joined #ruby
16:12
iNs has quit [Remote host closed the connection]
16:13
iNs has joined #ruby
16:14
j is now known as jess
16:26
Swyper has joined #ruby
16:27
TCZ has quit [Quit: Czesc]
16:29
CrazyEddy has quit [Ping timeout: 240 seconds]
16:32
roshanavand__ has quit [Ping timeout: 265 seconds]
16:41
howdoi has joined #ruby
16:42
CrazyEddy has joined #ruby
16:45
jenrzzz has joined #ruby
16:46
akem has joined #ruby
16:47
woodruffw has quit [Ping timeout: 248 seconds]
16:53
akem has quit [Ping timeout: 240 seconds]
16:55
jenrzzz has quit [Ping timeout: 252 seconds]
16:57
akem has joined #ruby
16:59
maryo has quit [Remote host closed the connection]
17:01
maryo has joined #ruby
17:01
maryo has quit [Remote host closed the connection]
17:02
maryo has joined #ruby
17:03
ChmEarl has joined #ruby
17:03
Swyper has quit [Remote host closed the connection]
17:06
Swyper_ has joined #ruby
17:07
maryo has quit [Ping timeout: 246 seconds]
17:18
jordanm has quit [Quit: Konversation terminated!]
17:18
jordanm has joined #ruby
17:20
TruffleP1mp has joined #ruby
17:23
deviantfero has joined #ruby
17:24
Swyper_ has quit [Remote host closed the connection]
17:25
Xiti has quit [Ping timeout: 240 seconds]
17:31
vondruch has quit [Read error: Connection reset by peer]
17:32
Xiti has joined #ruby
17:33
cd has joined #ruby
17:34
ccooke has quit [Ping timeout: 240 seconds]
17:36
al2o3-cr has joined #ruby
17:39
Swyper has joined #ruby
17:42
stdedos has quit [Quit: Connection closed]
17:49
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
17:50
alexherbo2 has joined #ruby
17:50
alexherbo2 has quit [Client Quit]
18:00
Xiti has quit [Ping timeout: 265 seconds]
18:08
Swyper has quit [Remote host closed the connection]
18:09
cliluw has joined #ruby
18:14
Swyper has joined #ruby
18:21
mwlang has joined #ruby
18:22
<
mwlang >
ugh, that should be, “Does anyone know
_WHY_ …” instead of “what” :-/
18:32
akem has quit [Ping timeout: 252 seconds]
18:33
akem has joined #ruby
18:47
Xiti has joined #ruby
18:51
jenrzzz has joined #ruby
18:56
roadie has quit [Remote host closed the connection]
18:58
jenrzzz has quit [Ping timeout: 260 seconds]
19:00
roshanavand has joined #ruby
19:10
akem has quit [Ping timeout: 246 seconds]
19:10
Rudd0 has quit [Ping timeout: 252 seconds]
19:11
roshanavand has quit [Ping timeout: 246 seconds]
19:14
BeerLover has joined #ruby
19:16
woodruffw has joined #ruby
19:16
woodruffw has joined #ruby
19:17
akem has joined #ruby
19:18
GodFather has joined #ruby
19:18
roadie has joined #ruby
19:26
adu_ has joined #ruby
19:28
roshanavand has joined #ruby
19:35
<
akem >
Hey, any idea why on Linux $COLUMNS and $ROW environment variables are not exposed to ENV[] ?
19:36
<
akem >
but $TERM is for example, it's weird.
19:37
<
akem >
I mean $LINES not $ROW
19:38
Xiti has quit [Ping timeout: 260 seconds]
19:41
<
havenwood >
akem: Consider using IO.console: require 'io/console'; $stdin.winsize
19:41
<
havenwood >
akem: Are they exported?
19:42
<
havenwood >
akem: export COLUMNS
19:42
<
leah2 >
they are not exported, and some software breaks if you export it
19:42
<
havenwood >
I'd suggest IO.console then.
19:42
<
leah2 >
took me ages to figure that out :)
19:43
<
leah2 >
io/console will also give the
*current* size, not the one at start time
19:46
akem has quit [Ping timeout: 240 seconds]
19:48
<
havenwood >
leah2: Good point, you'd want to capture size at the time you care about.
19:48
<
havenwood >
akem left, so I'll take that as another happy customer!
19:49
<
leah2 >
then i can reveal the ugly solution: eval `resize`.gsub(/export.*/,'')
19:51
<
jhass >
not every possibility is a solution :P
19:51
akem has joined #ruby
19:52
<
leah2 >
TIMTOWTDI :p
19:52
evdubs has quit [Quit: Leaving]
19:53
evdubs has joined #ruby
19:58
ruurd has joined #ruby
20:06
ccooke has joined #ruby
20:12
MalkbabY has quit [Remote host closed the connection]
20:12
gix has joined #ruby
20:13
MalkbabY has joined #ruby
20:19
work_ has joined #ruby
20:20
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:23
TCZ has joined #ruby
20:25
mwlang has quit [Quit: mwlang]
20:28
tekk has joined #ruby
20:32
patr0clus has joined #ruby
20:34
naftilos76 has quit [Ping timeout: 260 seconds]
20:39
Iarfen has quit [Ping timeout: 240 seconds]
20:44
ruurd has joined #ruby
20:48
roadie has quit [Ping timeout: 240 seconds]
20:51
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:52
ruurd has joined #ruby
20:54
jenrzzz has joined #ruby
21:00
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:00
jenrzzz has quit [Ping timeout: 246 seconds]
21:01
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:02
roadie has joined #ruby
21:05
<
scriptonaut >
if I want to join two strings, with join("*\x01"), where it's always a 2-n array, and the last value is a number, how do I join with an escape
21:05
<
scriptonaut >
otherwise, the numbers after the \x01 run into it and it changes the value
21:06
roadie has quit [Ping timeout: 258 seconds]
21:07
ljarvis__ has quit [Read error: Connection reset by peer]
21:08
TruffleP1mp has quit [Ping timeout: 258 seconds]
21:11
<
leah2 >
>> [4,5].join("*\x01")
21:11
<
leah2 >
>> [4,5].join("*\x01").size
21:11
<
scriptonaut >
Ok basically I need to use \x01 to separate two values in a string, then I need to grab the first value (and eventually the second value, like this): "Johnson*\x01\434".match(/(.*)\x01?/)[1]
21:11
<
scriptonaut >
I want to grab "Johnson*"
21:11
roshanavand_ has joined #ruby
21:11
<
leah2 >
use split maybe?
21:12
<
leah2 >
>> "Johnson*\x01\434".split("\x01", 2)
21:12
<
leah2 >
>> "Johnson*\x01\434".split("*\x01", 2)
21:12
<
scriptonaut >
that worked much better
21:12
<
scriptonaut >
the second value is a number
21:12
adu_ has quit [Quit: adu_]
21:12
<
scriptonaut >
"Johnson*\x01\354".split("\x01")
21:12
<
scriptonaut >
that results in ["Johnson*", "\354"]
21:13
<
scriptonaut >
I just need a way to denote "the \x01 is done, the next part is just a new character"
21:13
roshanavand has quit [Ping timeout: 252 seconds]
21:14
<
scriptonaut >
escape works, but then my resulting split gives me the weird "\354"
21:14
<
scriptonaut >
huh, it works without the backslash
21:14
<
scriptonaut >
ok thanks, I'll play with this
21:14
jenrzzz has joined #ruby
21:16
roadie has joined #ruby
21:16
roadie has quit [Remote host closed the connection]
21:21
jenrzzz has quit [Ping timeout: 252 seconds]
21:24
adu_ has joined #ruby
21:28
patr0clus has joined #ruby
21:35
ruurd has joined #ruby
21:39
<
jhass >
"\354" is an octal escape
21:39
<
jhass >
>> "\354".bytes.first == 0345
21:40
adu_ has quit [Quit: adu_]
21:40
<
jhass >
interesting this was true locally
21:40
<
jhass >
>> "\354".bytes.first == 0354
21:42
adu_ has joined #ruby
21:44
GodFather has quit [Ping timeout: 265 seconds]
21:47
GodFather has joined #ruby
21:52
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:53
felipec has joined #ruby
21:53
<
felipec >
Is there a simplification for an identity function? ->(x) { x }
21:54
adu_ has quit [Quit: adu_]
21:55
<
jhass >
depends on the usage context, there's Object#itself
21:55
GodFather has quit [Ping timeout: 240 seconds]
21:57
jenrzzz has joined #ruby
21:58
patr0clus has joined #ruby
21:58
<
havenwood >
felipec: +1 #itself
21:59
<
havenwood >
&>> :itself.to_proc.call 42
21:59
<
havenwood >
&>> 42.itself
22:00
<
felipec >
jhass: right... that works
22:00
Rudd0 has joined #ruby
22:00
<
havenwood >
&>> Object.instance_method(:itself).bind_call(42)
22:02
<
felipec >
:itself is fine, since I want sometimes :itself, and sometimes :to_i
22:03
jenrzzz has quit [Ping timeout: 252 seconds]
22:03
<
felipec >
Now all I need a way to do object.call(:itself) or something like that
22:03
<
jhass >
this is very X/Y, what's your actual problem?
22:04
<
felipec >
Ahh, send()
22:04
<
felipec >
jhass: I'm doing a fast CSV reader, and I'm passing a converter function for the fields I want to retrieve
22:05
<
jhass >
.send with a literal is pointless :)
22:05
<
jhass >
prefer public_send for public methods
22:05
<
havenwood >
&>> '42'.upto('44').map { |s| s.public_send %i[to_i itself].sample }
22:05
<
felipec >
Sometimes I want the field as is (:itself), sometimes I want integers (:to_s), and sometimes I might want something else.
22:06
<
felipec >
Err... :to_i
22:06
<
havenwood >
felipec: How do you know which?
22:06
<
felipec >
havenwood: it's specified manually: fast_csv('data/pppub20.csv', [ 'A_FNLWGT', 'PTOTVAL' ], :to_i).each
22:07
<
havenwood >
felipec: gotcha
22:09
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:10
iNs has quit [Remote host closed the connection]
22:10
iNs has joined #ruby
22:12
mozzarella has quit [Ping timeout: 265 seconds]
22:13
Azure has quit [Remote host closed the connection]
22:14
mozzarella has joined #ruby
22:16
ruurd has joined #ruby
22:19
alexherbo2 has joined #ruby
22:22
miojo has quit [Quit: leaving]
22:25
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:27
patr0clus has joined #ruby
22:27
patr0clus has quit [Client Quit]
22:30
AkechiShiro has quit [Quit: WeeChat 2.9]
22:30
cthulchu_ has quit [Ping timeout: 260 seconds]
22:31
AkechiShiro has joined #ruby
22:32
Xiti has joined #ruby
22:33
patr0clus has joined #ruby
22:34
BTRE has quit [Ping timeout: 245 seconds]
22:36
TrufflePump has joined #ruby
22:40
BTRE has joined #ruby
22:44
duderonomy has quit [Ping timeout: 265 seconds]
22:46
duderonomy has joined #ruby
22:46
cd has quit [Quit: cd]
22:48
TCZ has quit [Quit: Czesc]
22:48
cd has joined #ruby
22:49
ruurd has quit [Ping timeout: 258 seconds]
22:55
Azure has joined #ruby
22:58
felipec has quit [Quit: Leaving]
22:59
elcuervo has quit [Ping timeout: 240 seconds]
23:00
ruby[bot] has quit [Remote host closed the connection]
23:00
ruby[bot] has joined #ruby
23:01
roshanavand__ has joined #ruby
23:02
helpa has quit [Remote host closed the connection]
23:02
helpa has joined #ruby
23:05
roshanavand_ has quit [Ping timeout: 252 seconds]
23:17
jenrzzz has joined #ruby
23:24
jenrzzz has quit [Ping timeout: 265 seconds]
23:30
jenrzzz has joined #ruby
23:32
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:34
jenrzzz has quit [Ping timeout: 240 seconds]
23:36
Lyubo1 has quit [Ping timeout: 248 seconds]
23:36
akem has quit [Ping timeout: 246 seconds]
23:37
akem has joined #ruby
23:44
lockweel has quit [Quit: Leaving]
23:47
andremedeiros has quit [Read error: Connection reset by peer]
23:49
andremedeiros has joined #ruby
23:50
Xeago has quit [Ping timeout: 265 seconds]
23:52
Xeago has joined #ruby
23:59
work_ has quit [Quit: Connection closed for inactivity]