00:03
perrierjouet has quit [Quit: WeeChat 3.2]
00:16
ansimita has left #ruby [#ruby]
00:30
Guest59 has joined #ruby
00:30
Guest59 has quit [Client Quit]
00:36
roadie has joined #ruby
00:41
roadie has quit [Ping timeout: 250 seconds]
00:46
Rounin has quit [Ping timeout: 245 seconds]
01:02
ansimita has joined #ruby
01:12
MalkbabY has quit [Remote host closed the connection]
01:13
MalkbabY has joined #ruby
01:45
gggp has joined #ruby
01:52
gr33n7007h has quit [Ping timeout: 250 seconds]
02:02
SuperLag has quit [Ping timeout: 240 seconds]
02:05
gr33n7007h has joined #ruby
02:20
gggp__ has joined #ruby
02:23
gggp has quit [Ping timeout: 245 seconds]
02:25
<
rapha >
nakilon: now i will have to change all my code wherever possible to use String#[/.../] instead of String#match(/.../) wherever possible.
02:37
roadie has joined #ruby
02:42
roadie has quit [Ping timeout: 240 seconds]
02:50
gggp_ has joined #ruby
02:53
gggp__ has quit [Ping timeout: 240 seconds]
03:31
lunarkitty has quit [Quit: Connection closed for inactivity]
03:43
perrierjouet has joined #ruby
03:55
neshpion has quit [Quit: neshpion]
03:57
hololeap has quit [Remote host closed the connection]
03:57
hololeap has joined #ruby
04:38
roadie has joined #ruby
04:43
roadie has quit [Ping timeout: 250 seconds]
04:54
roadie has joined #ruby
04:55
ur5us has joined #ruby
04:56
jpw has joined #ruby
04:58
mrkz_c has quit [Quit: Connection closed for inactivity]
05:00
kiki_lamb has joined #ruby
05:11
swaggboi has quit [Quit: C-x C-c]
05:12
roadie has quit [Remote host closed the connection]
05:13
roadie has joined #ruby
05:16
MalkbabY has quit [Remote host closed the connection]
05:16
MalkbabY_ has joined #ruby
05:18
swaggboi has joined #ruby
05:33
ur5us has quit [Ping timeout: 240 seconds]
05:46
fdan has joined #ruby
05:51
gggp__ has joined #ruby
05:54
gggp_ has quit [Ping timeout: 252 seconds]
06:26
dachi_ has joined #ruby
06:31
AEtherC0r3 has joined #ruby
06:54
kiki_lamb has quit [Quit: leaving]
07:02
gr33n7007h has quit [Ping timeout: 252 seconds]
07:05
gr33n7007h has joined #ruby
07:17
gggp__ has quit [Ping timeout: 252 seconds]
07:28
dviola has joined #ruby
07:29
gggp has joined #ruby
07:37
lunarkitty has joined #ruby
07:39
Rounin has joined #ruby
08:18
_ht has joined #ruby
08:28
reset has quit [Quit: reset]
09:00
gr33n7007h has quit [Ping timeout: 240 seconds]
09:15
fdan has quit [Quit: Client closed]
09:21
MalkbabY_ has quit [Remote host closed the connection]
09:21
MalkbabY has joined #ruby
09:33
gr33n7007h has joined #ruby
09:39
foxxx0 has quit [Quit: foxxx0]
09:41
foxxx0 has joined #ruby
09:52
mikrosis has joined #ruby
09:57
goepsilongo has joined #ruby
09:57
gggp has quit [Read error: Connection reset by peer]
09:57
devcat has joined #ruby
10:01
lunarkitty has quit [Quit: Connection closed for inactivity]
10:16
devcat has quit [Quit: Leaving]
10:17
Rounin has quit [Ping timeout: 252 seconds]
10:33
roadie has quit [Ping timeout: 240 seconds]
10:48
roadie has joined #ruby
10:53
jp7webdesign has joined #ruby
11:02
roadie has quit [Ping timeout: 240 seconds]
11:20
mikrosis1 has joined #ruby
11:21
perrierjouet has quit [Quit: WeeChat 3.2]
11:21
perrierjouet has joined #ruby
11:22
mikrosis has quit [Ping timeout: 240 seconds]
11:28
roadie has joined #ruby
11:30
goepsilongo has quit [Quit: Konversation terminated!]
11:34
roadie has quit [Remote host closed the connection]
11:35
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
11:35
roadie has joined #ruby
11:43
jetchisel has joined #ruby
11:44
reset has joined #ruby
11:50
noa has joined #ruby
11:52
horribleprogram has joined #ruby
11:52
<
horribleprogram >
absolute Ruby beginner programmer
11:52
<
horribleprogram >
are the globals that are prepended with $ different from the ones that aren't?
11:52
<
horribleprogram >
example... $LOAD_PATH and ARGV
12:11
horribleprogram has quit [Quit: Leaving...]
12:34
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
12:38
jpw_ has joined #ruby
12:41
jpw has quit [Ping timeout: 252 seconds]
12:59
roadie has joined #ruby
13:22
mikrosis1 has quit [Ping timeout: 240 seconds]
13:39
MalkbabY has quit [Remote host closed the connection]
13:40
MalkbabY has joined #ruby
13:51
goepsilongo has joined #ruby
13:56
moldorcoder7 has quit [Ping timeout: 240 seconds]
13:57
user__ has joined #ruby
13:58
elf_fortrez has joined #ruby
14:03
moldorcoder7 has joined #ruby
14:07
random-jellyfish has joined #ruby
14:08
elf_fortrez has quit [Quit: Client closed]
14:17
<
ccooke >
Sadly they didn't stay for an answer
14:19
<
ansimita >
ah, I missed that. At least I learned something from it.
14:24
<
ccooke >
(Technically, stuff like ARGV is not global. constants are scoped - ARGV for instance is actually Object::ARGV. In most situations, it's available because you're inheriting from Object)
15:02
reset has quit [Quit: reset]
15:06
moldorcoder7 has quit [Ping timeout: 252 seconds]
15:08
<
random-jellyfish >
I have a sinatra related question:
15:09
<
random-jellyfish >
get '/victory' do
15:09
<
random-jellyfish >
if session[:id]
15:09
<
random-jellyfish >
session[:id]="1"
15:09
<
random-jellyfish >
return "not nil #{session[:id]}"
15:09
<
random-jellyfish >
else
15:09
<
random-jellyfish >
return "nil"
15:09
<
random-jellyfish >
end
15:09
<
random-jellyfish >
end
15:10
<
random-jellyfish >
I want to set a cookie
15:10
<
random-jellyfish >
by assigning 1 to session[:id]
15:10
<
random-jellyfish >
the problem is that after I refresh the page I don't see it set
15:10
<
random-jellyfish >
the code I pasted above is wrong
15:11
<
random-jellyfish >
I wanted to do session[:id]="1" in the else branch right before return
15:11
<
random-jellyfish >
does anybody know why this doesn't work?
15:12
moldorcoder7 has joined #ruby
15:20
elf-fortrez has joined #ruby
15:32
<
rapha >
adam12: i see now why you said it would be overkill. 20 lines vs. 1 line for nakilon's regex solution. but somehow really cool, too. and you even turned it into a little command line program! interestingly it also has a similar bug as the first attempt you made ... not just with whitespace, but also with punctuation. wasn't able to fix it yet, but put some debugging output in to make it a little easier to play
16:12
gr33n7007h has quit [Ping timeout: 250 seconds]
16:13
<
adam12 >
rapha: Yeah, I tested it a little bit, but matching on `\b` might be rong.
16:14
<
adam12 >
random-jellyfish: What about `session["id"]`
16:14
<
adam12 >
random-jellyfish: Depending on the serialization mechanism, symbols (:id) won't make it through the serialization/deserialization process, but strings will.
16:20
<
random-jellyfish >
got it to work
16:20
<
random-jellyfish >
i was doing "enable :sesionsss"
16:20
<
random-jellyfish >
a typo
16:21
<
random-jellyfish >
no error or warning about it :))
16:21
<
random-jellyfish >
it works with symbols too
16:24
<
adam12 >
random-jellyfish: Cool. Not every serialization mechanism works with symbols (but might handle it for you transparently). The one in Roda specifically requires strings, IIRC.
16:24
gggp has joined #ruby
16:53
noa has quit [Quit: Konversation terminated!]
16:56
elf-fortrez has quit [Quit: Client closed]
17:20
gr33n7007h has joined #ruby
17:34
user__ has quit [Quit: Leaving]
17:36
jp7webdesign has joined #ruby
17:38
gggp has quit [Ping timeout: 240 seconds]
17:56
MalkbabY has quit [Remote host closed the connection]
17:56
MalkbabY has joined #ruby
17:56
random-jellyfish has quit [Ping timeout: 256 seconds]
18:33
reset has joined #ruby
18:36
SuperLag has joined #ruby
19:13
lunarkitty has joined #ruby
19:57
danjo8 has joined #ruby
19:59
danjo has quit [Ping timeout: 250 seconds]
19:59
danjo8 is now known as danjo
19:59
_ht has quit [Remote host closed the connection]
20:04
perrierjouet has quit [Quit: WeeChat 3.2]
20:14
perrierjouet has joined #ruby
20:21
perrierjouet has quit [Quit: WeeChat 3.2]
20:27
perrierjouet has joined #ruby
20:31
jpw_ has quit [Remote host closed the connection]
20:35
mikrosis has joined #ruby
20:56
ur5us has joined #ruby
21:00
lessless has quit [Read error: Connection reset by peer]
21:01
lessless has joined #ruby
21:02
maria_elis has joined #ruby
21:22
roadie has quit [Ping timeout: 240 seconds]
21:40
Oxfuxxx_ has quit [Ping timeout: 248 seconds]
21:42
MalkbabY_ has joined #ruby
21:42
Oxfuxxx has joined #ruby
21:45
MalkbabY has quit [Ping timeout: 240 seconds]
21:47
Oxfuxxx has quit [Ping timeout: 248 seconds]
21:48
roadie has joined #ruby
22:10
neshpion has joined #ruby
22:46
sam113102 has joined #ruby
22:47
sam113101 has quit [Read error: Connection reset by peer]
22:47
sam113102 is now known as sam113101
22:47
aestheti1 has joined #ruby
22:49
cnsvc- has joined #ruby
22:49
aesthetikx has quit [Ping timeout: 240 seconds]
22:49
cnsvc has quit [Ping timeout: 240 seconds]
23:21
_aeris_ has joined #ruby
23:22
aeris has quit [Ping timeout: 276 seconds]
23:22
_aeris_ is now known as aeris
23:24
noa has joined #ruby
23:53
Oxfuxxx has joined #ruby