00:01
datanoise has quit [Ping timeout: 272 seconds]
00:01
yfeldblu_ has quit [Ping timeout: 272 seconds]
00:01
myappleguy has joined #ruby-lang
00:01
dalzony has quit [Ping timeout: 272 seconds]
00:01
yfeldblum has quit [Ping timeout: 240 seconds]
00:02
Coincidental has quit [Ping timeout: 245 seconds]
00:04
bradsmith has quit [Remote host closed the connection]
00:05
bradsmith has joined #ruby-lang
00:06
sepp2k has quit [Quit: Leaving.]
00:07
pw3 has quit [Ping timeout: 250 seconds]
00:08
Coincidental has joined #ruby-lang
00:08
jxpx777 has joined #ruby-lang
00:08
vlad_starkov has quit [Remote host closed the connection]
00:09
micalexander has quit [Remote host closed the connection]
00:10
micalexander has joined #ruby-lang
00:10
bradsmith has quit [Ping timeout: 272 seconds]
00:11
<
Elico >
I have a small question regarding Threading.
00:11
vlad_starkov has joined #ruby-lang
00:11
<
Elico >
I want to run a helper that will do couple tests every 0.5 second
00:12
<
Elico >
but in a case of a need throw a thread to do couple things.
00:12
<
Elico >
like "run in a loop and if needed let something be done in the background"
00:12
<
Elico >
How would you do that without all the ".join" in the end?
00:14
micalexander has quit [Ping timeout: 245 seconds]
00:15
vlad_starkov has quit [Ping timeout: 246 seconds]
00:17
<
Elico >
a code example will help?
00:17
<
drbrain >
Thread.new do loop do sleep 0.5; do_something; end; end.join
00:18
<
drbrain >
↑ will do something 0.5 seconds after it was done the last time
00:18
<
drbrain >
it will run until do_something raises an exception
00:18
<
Elico >
well the code is something like this:https://github.com/elico/squid-helpers/blob/master/squid_helpers/proxy_hb_check/proxystatcheck.rb
00:18
snarfmason has quit [Ping timeout: 272 seconds]
00:18
jxpx777 has quit [Quit: Leaving...]
00:19
<
drbrain >
Elico: you can while true or while 0 instead of the 1 == 1 comparison
00:19
<
Elico >
I want in it to have a method that will throw a url fetch trial
00:19
<
Elico >
never mind it for now.
00:19
<
drbrain >
"throw a url fetch trial"?
00:19
<
Elico >
yes a sec..
00:19
<
Elico >
I am testing a proxy,,
00:20
<
Elico >
so every 50 requests the helper gets it should throw a test of the proxy function
00:20
<
drbrain >
by throw do you mean "execute" or "run"?
00:20
<
Elico >
so a http request should run.
00:21
<
Elico >
run.... inside ruby
00:21
hogeo has joined #ruby-lang
00:21
<
Elico >
but the loop must continue.
00:21
<
drbrain >
in ruby, throw has a different meaning, so I was confused
00:21
jhulten has quit [Remote host closed the connection]
00:21
<
Elico >
I know that fork is an option..
00:22
<
Elico >
but I was fond of Thread
00:22
<
drbrain >
count = 0; loop do count += 1; Thread.new do http_request end if count % 50 == 0; … end
00:22
<
Elico >
and in code.. not oneliner..
00:22
<
drbrain >
replace ; with newline
00:25
cnivolle has quit [Remote host closed the connection]
00:25
<
Elico >
drbrain: am I right?
00:25
cnivolle has joined #ruby-lang
00:26
<
drbrain >
I omitted some newline
00:26
<
drbrain >
err, semicolons
00:26
<
drbrain >
add newline after "do" on line 2
00:26
<
drbrain >
remove newline after end on line 5
00:26
<
drbrain >
line 5 should read "end if count % 50 == 0"
00:28
<
Elico >
so the whole thread is depending on the if..
00:28
__butch__ has quit [Quit: Leaving.]
00:30
cnivolle has quit [Ping timeout: 252 seconds]
00:30
kfpratt has joined #ruby-lang
00:30
<
Elico >
code review!!
00:32
sevvie has quit [Ping timeout: 245 seconds]
00:32
<
drbrain >
yes, correct
00:33
<
drbrain >
the whole thread depends on the if
00:34
hogeo has quit [Remote host closed the connection]
00:34
<
Elico >
OK now it is simpler.
00:35
<
Elico >
so the thread has access to some global object if i'm not wrong..
00:35
hogeo has joined #ruby-lang
00:35
dingus_khan has joined #ruby-lang
00:36
<
drbrain >
the code inside the thread has the same scope as the code outside the thread, so yes
00:37
<
Elico >
and the loop will continue to run even if it is asleep..
00:37
cored has quit [Ping timeout: 240 seconds]
00:38
<
Elico >
let say "Thread.new do; sleep 10;end;
00:38
hogeo_ has joined #ruby-lang
00:38
hogeo has quit [Read error: Connection reset by peer]
00:39
<
Elico >
there was something regarding fibers but i'm not in it now
00:39
<
Elico >
how simple will it be?
00:40
jinesh has quit [Ping timeout: 248 seconds]
00:40
CoreData has quit [Ping timeout: 245 seconds]
00:41
nigerianceo has quit []
00:41
<
drbrain >
this is not a task for fibers since you have to schedule them yourself
00:42
<
drbrain >
Thread.new do; sleep 10; end will sleep for ten seconds then stop
00:42
arooni-mobile__ has joined #ruby-lang
00:42
CoreData has joined #ruby-lang
00:43
<
drbrain >
a thread only creates an independent path of execution, nothing else
00:43
vlad_starkov has joined #ruby-lang
00:44
<
Elico >
well seems like it fit to me.
00:46
davispuh has quit [Remote host closed the connection]
00:46
dalzony has joined #ruby-lang
00:47
kek has joined #ruby-lang
00:47
jxie has joined #ruby-lang
00:52
kek has quit [Ping timeout: 264 seconds]
00:53
guns has quit [Quit: guns]
00:53
pw3 has joined #ruby-lang
00:53
dalzony has quit [Quit: Leaving.]
00:54
atrocitas has joined #ruby-lang
00:57
tkuchiki has joined #ruby-lang
00:59
tylersmith has quit [Remote host closed the connection]
01:01
iliketurtles has quit [Quit: zzzzz…..]
01:04
charlespeach has joined #ruby-lang
01:04
jxpx777 has joined #ruby-lang
01:05
jinesh has joined #ruby-lang
01:07
vlad_starkov has quit [Ping timeout: 245 seconds]
01:07
myappleguy has quit [Ping timeout: 252 seconds]
01:09
vlad_starkov has joined #ruby-lang
01:11
datanoise has joined #ruby-lang
01:11
myappleguy has joined #ruby-lang
01:11
micalexander has joined #ruby-lang
01:13
Olipro has quit [Ping timeout: 260 seconds]
01:15
hahuang61 has quit [Ping timeout: 272 seconds]
01:15
bradsmith has joined #ruby-lang
01:17
mistym has quit [Quit: Leaving]
01:17
sevvie has joined #ruby-lang
01:17
vlad_starkov has quit [Read error: Connection reset by peer]
01:20
Johz has quit [Quit: Leaving]
01:21
bradsmith has quit [Ping timeout: 272 seconds]
01:21
itsraining has joined #ruby-lang
01:21
jxpx777 has quit [Quit: Leaving...]
01:23
tenderlove has quit [Remote host closed the connection]
01:26
jxpx777 has joined #ruby-lang
01:30
rwk1 has joined #ruby-lang
01:32
mistym has joined #ruby-lang
01:32
iliketurtles has joined #ruby-lang
01:34
knu has quit [Ping timeout: 246 seconds]
01:34
nathanstitt has joined #ruby-lang
01:35
iliketurtles has quit [Client Quit]
01:35
nathanstitt has quit [Client Quit]
01:36
epichero has joined #ruby-lang
01:36
CaptainJet has quit []
01:37
CaptainJet has joined #ruby-lang
01:38
myappleguy has quit [Ping timeout: 240 seconds]
01:39
yfeldblum has joined #ruby-lang
01:41
zz_michael_mbp is now known as michael_mbp
01:41
brianpWins has quit [Quit: brianpWins]
01:42
jxpx777 has quit [Quit: Leaving...]
01:43
sevvie_ has joined #ruby-lang
01:44
sevvie has quit [Ping timeout: 264 seconds]
01:44
dingus_khan has quit [Remote host closed the connection]
01:44
dingus_khan has joined #ruby-lang
01:46
knu has joined #ruby-lang
01:48
kek has joined #ruby-lang
01:49
dingus_khan has quit [Ping timeout: 272 seconds]
01:51
charlespeach has left #ruby-lang [#ruby-lang]
01:51
diegoviola has joined #ruby-lang
01:51
iliketurtles has joined #ruby-lang
01:52
havenwood has quit [Remote host closed the connection]
01:52
lun__ has joined #ruby-lang
01:53
kek has quit [Ping timeout: 264 seconds]
01:53
jxpx777 has joined #ruby-lang
01:56
saarinen has quit [Quit: saarinen]
01:56
sleepee has joined #ruby-lang
01:56
sevvie_ has quit [Ping timeout: 264 seconds]
01:58
lun__ has quit [Ping timeout: 264 seconds]
01:58
datanoise has quit [Ping timeout: 264 seconds]
02:00
dhruvasagar has joined #ruby-lang
02:02
havenwood has joined #ruby-lang
02:08
kurko_ has joined #ruby-lang
02:08
Oloryn_lt2 has joined #ruby-lang
02:12
jackhammer2022 has joined #ruby-lang
02:13
iliketurtles has quit [Quit: zzzzz…..]
02:13
Cakey has joined #ruby-lang
02:15
musty has joined #ruby-lang
02:16
yatish27 has joined #ruby-lang
02:16
yfeldblum has quit [Remote host closed the connection]
02:16
arBmind1 has joined #ruby-lang
02:17
yfeldblum has joined #ruby-lang
02:18
arBmind has quit [Ping timeout: 245 seconds]
02:20
hogeo_ has quit [Read error: Connection reset by peer]
02:20
hogeo has joined #ruby-lang
02:21
yfeldblum has quit [Ping timeout: 240 seconds]
02:22
bantic has quit [Quit: bantic]
02:23
Coincidental has quit [Remote host closed the connection]
02:23
Coincidental has joined #ruby-lang
02:23
Barrin6 has joined #ruby-lang
02:26
bzalasky has joined #ruby-lang
02:27
myappleguy has joined #ruby-lang
02:27
kek has joined #ruby-lang
02:27
Coincidental has quit [Ping timeout: 246 seconds]
02:28
alekst has joined #ruby-lang
02:28
yfeldblum has joined #ruby-lang
02:28
nXqd has quit [Ping timeout: 245 seconds]
02:31
kek has quit [Ping timeout: 240 seconds]
02:32
ikrima has joined #ruby-lang
02:34
dhruvasagar has quit [Ping timeout: 252 seconds]
02:37
iliketurtles has joined #ruby-lang
02:38
ezkl has quit [Quit: QUIT!]
02:38
ezkl has joined #ruby-lang
02:38
ezkl has joined #ruby-lang
02:39
yfeldblum has quit [Remote host closed the connection]
02:41
priodev has quit [Ping timeout: 240 seconds]
02:41
shinnya has quit [Ping timeout: 272 seconds]
02:41
kitak_ has joined #ruby-lang
02:42
Coincidental has joined #ruby-lang
02:43
kitak has quit [Ping timeout: 246 seconds]
02:44
dluv has quit [Ping timeout: 260 seconds]
02:44
priodev has joined #ruby-lang
02:45
bzalasky has quit [Remote host closed the connection]
02:45
GaelanAintAround has quit [Ping timeout: 245 seconds]
02:46
bzalasky has joined #ruby-lang
02:46
kurko__ has joined #ruby-lang
02:46
datanoise has joined #ruby-lang
02:46
kurko_ has quit [Ping timeout: 272 seconds]
02:48
pw3 has quit [Ping timeout: 250 seconds]
02:50
bzalasky has quit [Ping timeout: 245 seconds]
02:52
ezkl has quit [Quit: QUIT!]
02:52
ezkl has joined #ruby-lang
02:53
earthquake has joined #ruby-lang
02:55
dingus_khan has joined #ruby-lang
02:59
dingus_khan has quit [Ping timeout: 240 seconds]
03:00
toretore has quit [Quit: Leaving]
03:00
Coincidental has quit [Remote host closed the connection]
03:00
Coincidental has joined #ruby-lang
03:01
Coincidental has quit [Read error: Connection reset by peer]
03:01
sleepee has quit [Quit: Leaving]
03:01
Coincidental has joined #ruby-lang
03:01
tenderlove has joined #ruby-lang
03:02
bantic has joined #ruby-lang
03:04
io_syl has quit [Ping timeout: 272 seconds]
03:07
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
03:10
vlad_starkov has joined #ruby-lang
03:11
myappleguy has quit [Ping timeout: 264 seconds]
03:13
vlad_starkov has quit [Read error: Connection reset by peer]
03:14
JoshuaPaling has joined #ruby-lang
03:15
datanoise has quit [Ping timeout: 272 seconds]
03:16
Coincidental has quit [Remote host closed the connection]
03:17
Coincidental has joined #ruby-lang
03:18
bzalasky has joined #ruby-lang
03:21
ItSANgo has quit [Quit: Leaving...]
03:21
Coincidental has quit [Ping timeout: 272 seconds]
03:26
alekst has quit [Quit: Leaving...]
03:28
kek has joined #ruby-lang
03:30
nertzy has joined #ruby-lang
03:31
diegoviola has quit [Ping timeout: 272 seconds]
03:32
kek has quit [Ping timeout: 245 seconds]
03:33
iliketurtles has quit [Quit: zzzzz…..]
03:33
iliketurtles has joined #ruby-lang
03:35
knu has quit [Ping timeout: 245 seconds]
03:35
ItSANgo has joined #ruby-lang
03:37
ecnalyr has quit [Remote host closed the connection]
03:37
ecnalyr has joined #ruby-lang
03:38
rwk1 has quit [Remote host closed the connection]
03:39
yatish27 has quit [Remote host closed the connection]
03:40
yatish27 has joined #ruby-lang
03:40
ecnalyr has quit [Read error: Connection reset by peer]
03:41
ecnalyr has joined #ruby-lang
03:41
Guest80501 has joined #ruby-lang
03:41
Guest80501 is now known as diegoviola
03:42
rwk1 has joined #ruby-lang
03:42
thelorax123 has quit [Remote host closed the connection]
03:43
thelorax123 has joined #ruby-lang
03:44
io_syl has joined #ruby-lang
03:45
musty has quit [Ping timeout: 245 seconds]
03:45
ItSANgo has quit [Quit: Leaving...]
03:51
datanoise has joined #ruby-lang
03:54
lun__ has joined #ruby-lang
03:55
ItSANgo has joined #ruby-lang
03:58
lun__ has quit [Ping timeout: 244 seconds]
04:02
kurko_ has joined #ruby-lang
04:04
kurko__ has quit [Ping timeout: 252 seconds]
04:09
earthquake has quit [Quit: earthquake]
04:10
vlad_starkov has joined #ruby-lang
04:10
ecnalyr has quit [Remote host closed the connection]
04:11
Nisstyre-laptop has joined #ruby-lang
04:11
ecnalyr has joined #ruby-lang
04:11
woollyams has joined #ruby-lang
04:11
jackhammer2022 has joined #ruby-lang
04:11
kurko__ has joined #ruby-lang
04:13
io_syl has quit [Ping timeout: 240 seconds]
04:13
kurko_ has quit [Ping timeout: 272 seconds]
04:15
vlad_starkov has quit [Ping timeout: 244 seconds]
04:15
ecnalyr has quit [Ping timeout: 245 seconds]
04:20
jxpx777 has quit [Quit: Leaving...]
04:21
kurko_ has joined #ruby-lang
04:23
iliketurtles has quit [Quit: zzzzz…..]
04:24
kurko__ has quit [Ping timeout: 245 seconds]
04:24
xcess_denied has joined #ruby-lang
04:25
itsraining has quit [Quit: itsraining]
04:28
earthquake has joined #ruby-lang
04:28
kek has joined #ruby-lang
04:30
Coincidental has joined #ruby-lang
04:31
jxpx777 has joined #ruby-lang
04:32
bantic has quit [Quit: bantic]
04:32
ledestin has quit [Ping timeout: 245 seconds]
04:33
kek has quit [Ping timeout: 246 seconds]
04:37
xcess_denied has quit [Quit: Leaving...]
04:39
Snibble has joined #ruby-lang
04:43
jsullivandigs has quit [Remote host closed the connection]
04:43
jxpx777 has quit [Quit: Leaving...]
04:43
jsullivandigs has joined #ruby-lang
04:44
tylersmith has joined #ruby-lang
04:44
iliketurtles has joined #ruby-lang
04:45
Coincidental has quit [Remote host closed the connection]
04:45
Snibble has quit [Quit: Leaving.]
04:46
Coincidental has joined #ruby-lang
04:48
jsullivandigs has quit [Ping timeout: 245 seconds]
04:50
Coincidental has quit [Ping timeout: 246 seconds]
04:52
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
04:54
xcess_denied has joined #ruby-lang
04:55
hogeo has quit [Remote host closed the connection]
04:59
diegoviola has quit [Quit: WeeChat 0.4.2]
04:59
elcontrastador has joined #ruby-lang
04:59
jackhammer2022 has joined #ruby-lang
05:02
albioner has joined #ruby-lang
05:03
jsullivandigs has joined #ruby-lang
05:05
brianpWins has joined #ruby-lang
05:10
Nisstyre-laptop is now known as nisstyre
05:10
achru has joined #ruby-lang
05:11
CaptainJet has quit []
05:12
sandeepk has joined #ruby-lang
05:14
GaelanAintAround has joined #ruby-lang
05:15
zz_dlu has joined #ruby-lang
05:15
mucker has joined #ruby-lang
05:18
bzalasky has quit [Remote host closed the connection]
05:19
bzalasky has joined #ruby-lang
05:22
ecnalyr has joined #ruby-lang
05:23
bzalasky has quit [Ping timeout: 245 seconds]
05:26
apeiros has quit [Remote host closed the connection]
05:26
apeiros has joined #ruby-lang
05:26
ecnalyr has quit [Ping timeout: 245 seconds]
05:29
kek has joined #ruby-lang
05:30
io_syl has joined #ruby-lang
05:33
knu has joined #ruby-lang
05:33
kek has quit [Ping timeout: 240 seconds]
05:35
vlad_starkov has joined #ruby-lang
05:37
happydude has joined #ruby-lang
05:38
vlad_starkov has quit [Remote host closed the connection]
05:39
earthquake has quit [Quit: earthquake]
05:40
vlad_starkov has joined #ruby-lang
05:43
mistym has quit [Remote host closed the connection]
05:47
vlad_starkov has quit [Remote host closed the connection]
05:48
sevvie has joined #ruby-lang
05:51
Oak has joined #ruby-lang
05:51
mucker has quit [Remote host closed the connection]
05:51
Oak has left #ruby-lang [#ruby-lang]
05:51
Onixs_ has joined #ruby-lang
05:51
yatish27 has quit [Remote host closed the connection]
05:51
mucker has joined #ruby-lang
05:51
nertzy has quit [Quit: This computer has gone to sleep]
05:54
dhruvasagar has joined #ruby-lang
05:54
lun__ has joined #ruby-lang
05:55
mucker has quit [Ping timeout: 244 seconds]
05:59
lun__ has quit [Ping timeout: 240 seconds]
06:00
sevvie has quit [Ping timeout: 272 seconds]
06:00
happydude has quit [Remote host closed the connection]
06:00
hogeo has joined #ruby-lang
06:01
nXqd has joined #ruby-lang
06:02
dhruvasagar has quit [Read error: Connection reset by peer]
06:02
Onixs_ has quit [Ping timeout: 250 seconds]
06:03
mucker has joined #ruby-lang
06:03
dhruvasagar has joined #ruby-lang
06:03
dingus_khan has joined #ruby-lang
06:03
jsullivandigs has quit [Remote host closed the connection]
06:04
jsullivandigs has joined #ruby-lang
06:05
nXqd has quit [Ping timeout: 240 seconds]
06:06
xcess_denied has quit [Quit: Leaving...]
06:07
xcess_denied has joined #ruby-lang
06:08
jsullivandigs has quit [Ping timeout: 245 seconds]
06:13
arooni-mobile__ has quit [Ping timeout: 245 seconds]
06:16
mdedetrich has quit [Quit: Computer has gone to sleep.]
06:18
hogeo has quit [Remote host closed the connection]
06:19
atrocitas has quit [Remote host closed the connection]
06:19
atrocitas has joined #ruby-lang
06:21
JonahR has quit [Quit: jonahR]
06:24
jinesh has quit [Quit: Konversation terminated!]
06:28
Boohbah has quit [Write error: Broken pipe]
06:28
Kabaka has quit [Remote host closed the connection]
06:28
elcontrastador has quit [*.net *.split]
06:28
JoshuaPaling has quit [*.net *.split]
06:28
rickhull1 has quit [*.net *.split]
06:28
lacrosse has quit [*.net *.split]
06:28
eval-in has quit [*.net *.split]
06:28
banisterfiend has quit [*.net *.split]
06:28
snafoo has quit [*.net *.split]
06:28
hakunin has quit [*.net *.split]
06:28
neaer has quit [*.net *.split]
06:28
Rylee has quit [*.net *.split]
06:28
neurodamage has quit [*.net *.split]
06:28
wudofyr has quit [*.net *.split]
06:28
dvorak has quit [*.net *.split]
06:28
sindork has quit [*.net *.split]
06:28
skinny_much has quit [*.net *.split]
06:29
apeiros has quit [Remote host closed the connection]
06:29
apeiros has joined #ruby-lang
06:29
hogeo has joined #ruby-lang
06:30
kek has joined #ruby-lang
06:33
apeiros has quit [Ping timeout: 240 seconds]
06:34
kek has quit [Ping timeout: 240 seconds]
06:36
hogeo has quit [Remote host closed the connection]
06:40
wallerdev has quit [Quit: wallerdev]
06:45
pabs has quit [Ping timeout: 264 seconds]
06:45
hogeo has joined #ruby-lang
06:46
dalzony has joined #ruby-lang
06:46
vmoravec has joined #ruby-lang
06:49
sandeepk has quit [Quit: Leaving...]
06:54
lun__ has joined #ruby-lang
06:56
snarfmason has joined #ruby-lang
06:57
pabs has joined #ruby-lang
06:57
dingus_khan has quit [Remote host closed the connection]
06:58
dingus_khan has joined #ruby-lang
07:01
Onixs has joined #ruby-lang
07:01
<
Onixs >
how do you define TargetVolume variable?
07:02
dalzony has quit [Quit: Leaving.]
07:02
woollyams has quit [Ping timeout: 252 seconds]
07:02
<
Onixs >
in bash, I usually do TargetVolume = $3
07:02
<
Onixs >
new to Ruby lang so i asked
07:02
dingus_khan has quit [Ping timeout: 272 seconds]
07:03
iliketurtles has quit [Quit: zzzzz…..]
07:05
sandeepk has joined #ruby-lang
07:05
crankharder has quit [Ping timeout: 244 seconds]
07:07
<
havenwood >
Onixs: In Ruby `TargetVolume` would be a Constant (by convention, being CamelCased it would specifically be a class or module). You should take a look at `@instance_variables` and `local_variables` (and the convention for for constants as variables is `CONSTANTS`).
07:07
babinho has quit [Quit: leaving]
07:09
<
Onixs >
Thanks for link havenwood. im on it now :)
07:10
<
havenwood >
Onixs: Avoid $global and @@class variables unless you really need em. A local or @instance variable will get you far! :)
07:11
dhruvasagar has quit [Ping timeout: 244 seconds]
07:12
<
Onixs >
its just a simple script im modifying for my needs.. copy FILE to TargetVolume
07:12
mistym has joined #ruby-lang
07:16
brianpWins has quit [Quit: brianpWins]
07:16
hogeo has quit [Remote host closed the connection]
07:17
hogeo has joined #ruby-lang
07:17
dhruvasagar has joined #ruby-lang
07:18
<
Onixs >
damn. im not gettint it :(
07:18
macmartine has joined #ruby-lang
07:25
solars has joined #ruby-lang
07:28
sevvie has joined #ruby-lang
07:30
iliketurtles has joined #ruby-lang
07:31
kek has joined #ruby-lang
07:31
<
Onixs >
havenwoo : sorry for being a noob… in layman's term, how do i define variable to (e.g. /Volumes/DataHD
07:31
<
Onixs >
havenwood ^^
07:31
hogeo has quit [Remote host closed the connection]
07:32
datanoise has quit [Ping timeout: 244 seconds]
07:33
<
Onixs >
in which it will do like, cp FILE $TagretVolume
07:33
hhatch has joined #ruby-lang
07:34
sandeepk has quit [Quit: Leaving...]
07:35
kek has quit [Ping timeout: 252 seconds]
07:36
crankharder has joined #ruby-lang
07:37
<
zenspider >
var = "string value"
07:37
macmartine has quit [Remote host closed the connection]
07:38
<
zenspider >
not sure what you're trying to do or why... but that's a local variable assignment
07:38
<
zenspider >
@var = "string value"
07:38
<
zenspider >
is an instance variable assignment
07:39
<
Onixs >
zenspider in bash, $3 is always the Target. what is it in ruby?
07:39
<
zenspider >
Onixs: I have no fucking clue what you're on about.
07:39
xcess_denied has quit [Quit: Leaving...]
07:39
dhruvasagar has quit [Read error: Connection reset by peer]
07:40
<
zenspider >
$3 in bash is not always anything.
07:40
dhruvasagar has joined #ruby-lang
07:40
<
Onixs >
$3 represents the target regardless of the Volume Name
07:40
<
zenspider >
$3 in bash is the 3rd argument to whatever function is running
07:41
<
Onixs >
yes, it can also be a "third" arg though
07:41
<
Onixs >
but i mostly use it as target var
07:41
Mon_Ouie has quit [Ping timeout: 246 seconds]
07:41
RickHull has joined #ruby-lang
07:42
<
zenspider >
you're about 30 seconds from flipping my bozo-bit.
07:42
<
zenspider >
either: learn how to ask a question
07:42
<
zenspider >
or: show me some code and explain how it isn't working for you
07:42
<
zenspider >
and by show
07:42
<
zenspider >
I mean, use a paste service
07:42
<
zenspider >
gist, pastie, whatever
07:42
<
Onixs >
Thank you :)
07:43
DouweM has quit [Ping timeout: 264 seconds]
07:44
arBmind1 has quit [Quit: Leaving.]
07:46
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
07:47
mistym has quit [Remote host closed the connection]
07:48
iliketurtles has quit [Quit: zzzzz…..]
07:49
nXqd has joined #ruby-lang
07:49
relix has joined #ruby-lang
07:50
<
zenspider >
oops. that was a ghost chili.
07:51
<
zenspider >
they really are hotter when you dehydrate them... less fruity and sweet
07:52
JoshuaPaling has joined #ruby-lang
07:53
<
Onixs >
i am interested with the SOURCE & TARGET var
07:53
<
Onixs >
on how to define it in Ruby
07:53
thelorax123 has quit [Remote host closed the connection]
07:53
albioner has joined #ruby-lang
07:53
nXqd has quit [Ping timeout: 245 seconds]
07:53
dagobah has joined #ruby-lang
07:54
<
Onixs >
so its dealing with 2 drives. 1 booted (source drive) and 1 taget drive
07:54
thelorax123 has joined #ruby-lang
07:54
yatish27 has joined #ruby-lang
07:55
<
zenspider >
consider the bozo bit flipped. I offered you two options and you chose neither.
07:55
xcess_denied has joined #ruby-lang
07:55
sandeepk has joined #ruby-lang
07:56
mdedetrich has joined #ruby-lang
07:56
<
Onixs >
how can i show you ruby script. i have yet to convert that to ruby. hence the question
07:57
h_kon has joined #ruby-lang
08:00
sevvie has quit [Read error: Connection reset by peer]
08:01
datanoise has joined #ruby-lang
08:02
relix has quit [Read error: Connection reset by peer]
08:02
relix_ has joined #ruby-lang
08:04
<
jrobeson >
Onixs, just google ruby cli arguments.
08:04
<
jrobeson >
it's quite similiar to how bash does it out of the box
08:04
<
jrobeson >
if you want options look into the optparse lib or one of its wrappers
08:07
rwk1 has quit [Remote host closed the connection]
08:08
datanoise has quit [Ping timeout: 245 seconds]
08:08
rwk1 has joined #ruby-lang
08:08
benlovell has joined #ruby-lang
08:08
dingus_khan has joined #ruby-lang
08:09
<
Onixs >
will do jrobeson Thanks
08:11
havenwood has quit []
08:12
rwk1 has quit [Ping timeout: 248 seconds]
08:13
dingus_khan has quit [Ping timeout: 252 seconds]
08:15
lun__ has quit [Remote host closed the connection]
08:16
Boohbah has joined #ruby-lang
08:16
lun__ has joined #ruby-lang
08:17
<
ljarvis >
yorickpeterse: please open an issue with repro and I'll fix it for you asap
08:19
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
08:20
lun__ has quit [Ping timeout: 246 seconds]
08:21
<
Onixs >
dont be shy to tell me that you dont know
08:25
<
zenspider >
you assume OUR ignorance? when you can't even describe your problem on a ONE LINER you're trying to convert? that's rich
08:26
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
08:26
relix has joined #ruby-lang
08:29
* zenspider
goes back to eating ghost chili and watching tv
08:29
mdedetrich has quit [Quit: Computer has gone to sleep.]
08:29
cnivolle has joined #ruby-lang
08:30
dalzony has joined #ruby-lang
08:30
<
ddfreyne >
Onixs: source = ENV['src']; target = ENV['target']; system('cp', source, target)
08:31
<
ddfreyne >
and now you use env vars
08:31
kek has joined #ruby-lang
08:33
<
jrobeson >
DO WHAT Onixs
08:33
<
jrobeson >
fine.. don't ever expect me to offer anything again
08:34
<
jrobeson >
or try to point you in the right direction
08:34
<
jrobeson >
i thought zenspider was being a bit harsh on you.. but.. now..
08:34
<
ljarvis >
zenspider: dat ghost chilli
08:35
<
jrobeson >
i wasn't gonna write the program for you..
08:36
Nilium has quit [Ping timeout: 240 seconds]
08:36
kek has quit [Ping timeout: 240 seconds]
08:36
vpretzel_ has joined #ruby-lang
08:37
Asher1 has joined #ruby-lang
08:37
benlovel1 has joined #ruby-lang
08:38
jarednorman1 has joined #ruby-lang
08:39
dalzony1 has joined #ruby-lang
08:39
dalzony1 has quit [Client Quit]
08:39
ItSANgo has quit [Ping timeout: 240 seconds]
08:39
Cakey has quit [Ping timeout: 240 seconds]
08:41
Kuukunen- has joined #ruby-lang
08:42
rue|w has quit [Read error: Connection reset by peer]
08:44
arBmind has joined #ruby-lang
08:44
hakunin has joined #ruby-lang
08:44
eval-in has joined #ruby-lang
08:44
snafoo has joined #ruby-lang
08:44
Rylee has joined #ruby-lang
08:44
lacrosse has joined #ruby-lang
08:44
wudofyr has joined #ruby-lang
08:44
banisterfiend has joined #ruby-lang
08:44
neurodamage has joined #ruby-lang
08:44
skinny_much has joined #ruby-lang
08:44
dvorak has joined #ruby-lang
08:44
sindork has joined #ruby-lang
08:44
rue|w has joined #ruby-lang
08:45
lun__ has joined #ruby-lang
08:45
Boohbah has quit [Changing host]
08:45
Boohbah has joined #ruby-lang
08:45
vmoravec has quit [Changing host]
08:45
vmoravec has joined #ruby-lang
08:45
dalzony has quit [*.net *.split]
08:45
xcess_denied has quit [*.net *.split]
08:45
benlovell has quit [*.net *.split]
08:45
GaelanAintAround has quit [*.net *.split]
08:45
achru has quit [*.net *.split]
08:45
vpretzel has quit [*.net *.split]
08:45
flgr has quit [*.net *.split]
08:45
jarednorman has quit [*.net *.split]
08:45
Asher has quit [*.net *.split]
08:45
dabradley has quit [*.net *.split]
08:45
Mellett68 has quit [*.net *.split]
08:45
ericwood has quit [*.net *.split]
08:45
Kuukunen has quit [*.net *.split]
08:46
GaelanAintAround has joined #ruby-lang
08:46
ericwood has joined #ruby-lang
08:46
Mellett68 has joined #ruby-lang
08:46
achru has joined #ruby-lang
08:46
flgr has joined #ruby-lang
08:46
dabradley has joined #ruby-lang
08:46
cnivolle has quit [Remote host closed the connection]
08:46
nXqd has joined #ruby-lang
08:47
robonerd has quit [Remote host closed the connection]
08:47
robonerd has joined #ruby-lang
08:48
<
yorickpeterse >
morning
08:48
robonerd has quit [Max SendQ exceeded]
08:48
vlad_starkov has joined #ruby-lang
08:49
robonerd has joined #ruby-lang
08:49
kek has joined #ruby-lang
08:50
robonerd has quit [Max SendQ exceeded]
08:50
robonerd has joined #ruby-lang
08:51
ItSANgo has joined #ruby-lang
08:52
dhruvasagar has quit [Read error: Connection reset by peer]
08:52
dhruvasagar has joined #ruby-lang
08:52
vlad_starkov has quit [Ping timeout: 245 seconds]
08:54
tbuehlmann has joined #ruby-lang
08:54
benlovel1 has quit [Ping timeout: 246 seconds]
08:55
lun__ has quit [Remote host closed the connection]
08:55
mucker has quit [Remote host closed the connection]
08:55
sandeepk has quit [Quit: Leaving...]
08:55
lun__ has joined #ruby-lang
08:56
cnivolle has joined #ruby-lang
08:56
mucker has joined #ruby-lang
08:57
marr has joined #ruby-lang
08:58
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
08:59
kurko_ has quit [Quit: Computer has gone to sleep.]
08:59
judofyr has joined #ruby-lang
09:00
mucker has quit [Ping timeout: 241 seconds]
09:00
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
09:00
lun__ has quit [Ping timeout: 246 seconds]
09:00
mikecmpbll has joined #ruby-lang
09:01
<
ljarvis >
I wish ruby had something as good as godef
09:02
hogeo has joined #ruby-lang
09:02
<
mikecmpbll >
wats godef
09:02
ikrima has quit [Read error: Connection reset by peer]
09:03
cnivolle has quit [Read error: No route to host]
09:03
relix has joined #ruby-lang
09:03
cnivolle has joined #ruby-lang
09:03
<
yorickpeterse >
it's webscale
09:04
<
ljarvis >
it parses go code and can lookup symbols easily
09:04
achru has quit [Ping timeout: 272 seconds]
09:04
<
ljarvis >
ie, if im writing something go in vim and type gd over foo.Hello() it'll take me to the Hello() function inside of the lib i downloaded
09:06
achru has joined #ruby-lang
09:07
relix has quit [Client Quit]
09:08
ikrima has joined #ruby-lang
09:08
datanoise has joined #ruby-lang
09:08
<
ljarvis >
i removed my entire vim config accidentally and its the best thing i ever did
09:09
<
ddfreyne >
ljarvis: It's called Smalltalk
09:09
<
yorickpeterse >
that looks terrible
09:09
<
yorickpeterse >
you should be ashamed
09:10
<
ljarvis >
ddfreyne: heh yeah
09:10
<
ljarvis >
yorickpeterse: ill cut u bro
09:10
<
ddfreyne >
WTF is upwith the indentation
09:10
<
yorickpeterse >
also why the fuck didn't you have it in Git before?
09:10
<
ljarvis >
ddfreyne: the comments? i know :/
09:10
<
yorickpeterse >
also, how's Vundle?
09:10
<
ljarvis >
yorickpeterse: I did but it was 6 months old because i suck
09:10
<
ljarvis >
yorickpeterse: vundle is awesome
09:10
dhruvasagar has quit [Read error: Connection reset by peer]
09:10
<
ddfreyne >
I use Subltime Text these days
09:10
<
ljarvis >
as you can see I have no ~/.vim just a vimrc
09:10
<
yorickpeterse >
how does Vundle handle updates for bundles, do you have to manually git pull them?
09:11
<
yorickpeterse >
ddfreyne: HERETIC
09:11
<
ljarvis >
ddfreyne: I used to use it too, it's good!
09:11
<
ljarvis >
yorickpeterse: no, you :BundleInstall! to update
09:11
dhruvasagar has joined #ruby-lang
09:11
<
mikecmpbll >
sublime is awesome.
09:11
<
ljarvis >
yorickpeterse: I dont check them in so there's not really any version control if I download these dotfiles in the future, but that's a problem I'll deal with then
09:11
<
yorickpeterse >
Ah, and by default it always downloads the latest version?
09:12
<
yorickpeterse >
nice
09:12
<
ljarvis >
so ticket that butthole when you update!
09:12
<
yorickpeterse >
Pathogen is starting to piss me off because I hate Git submodules
09:12
<
ljarvis >
yeah that's basically the only reason I stopped using pathogen
09:12
<
ljarvis >
with vundle i ignore ~/.vim/bundle from git
09:12
<
ljarvis >
because fuck that
09:13
<
ddfreyne >
Yeah I am happy with Sublime
09:13
<
ljarvis >
ddfreyne: I really like it, I also nuked my settings when I removed 3 though (it throws all the shit in the same place)
09:14
<
ljarvis >
so that annoyed me
09:14
<
ljarvis >
and it doesn't get much love atm, i really hope it doesn't go down the pooper
09:15
<
ljarvis >
and control+p got really slow for me on massive projects :(
09:15
<
yorickpeterse >
Ctrl+P is terrible
09:15
<
ljarvis >
yorickpeterse: i hope you're not talking about the vim one
09:15
<
yorickpeterse >
"Oh lets fuzzy find that file because I don't know where it..OH, now I have to wait 15 minutes"
09:15
<
yorickpeterse >
I am
09:16
<
yorickpeterse >
it's slow as balls on large projects
09:16
<
yorickpeterse >
(the initial caching)
09:16
<
ljarvis >
it's incredibly fast for me, but I use ag
09:16
<
ljarvis >
no caching
09:16
lun__ has joined #ruby-lang
09:16
<
ljarvis >
no idea what -g '' is doing though
09:17
<
ljarvis >
ah pattern
09:18
yatish27 has quit [Remote host closed the connection]
09:19
jxie has quit [Ping timeout: 245 seconds]
09:22
yatish27 has joined #ruby-lang
09:25
UziMonkey has joined #ruby-lang
09:25
apeiros has joined #ruby-lang
09:26
sandeepk has joined #ruby-lang
09:27
ahf has quit [Remote host closed the connection]
09:28
<
ljarvis >
yorickpeterse: you think @trash.clear in parse() would solve your problem and not break everything?
09:29
<
yorickpeterse >
The former yes, the latter I have no idea
09:29
<
yorickpeterse >
tests? :P
09:29
<
yorickpeterse >
it works for me since that's what I'm doing in my tests
09:30
<
ljarvis >
ok, well yeah tests will catch if anything goes wrong, there's a lot of them. I'll play with it in a bit
09:30
<
yorickpeterse >
thanks
09:32
xcess_denied has joined #ruby-lang
09:32
kek_ has joined #ruby-lang
09:33
sevvie has joined #ruby-lang
09:33
sevvie has quit [Read error: Connection reset by peer]
09:37
datanoise has quit [Ping timeout: 248 seconds]
09:37
kek_ has quit [Ping timeout: 272 seconds]
09:38
barttenbrinke has joined #ruby-lang
09:38
gianlucadv has joined #ruby-lang
09:44
gix has quit [Quit: Client exiting]
09:46
<
yorickpeterse >
pretty funny that I rely on Rollbar errors to tell when something is running or not
09:46
<
yorickpeterse >
at least for our scrapers
09:47
<
ljarvis >
yorickpeterse: slop '~> 3.4', '>= 3.4.7'
09:47
benlovell has joined #ruby-lang
09:48
mistym has joined #ruby-lang
09:48
benlovell has quit [Client Quit]
09:48
benlovell has joined #ruby-lang
09:48
gix has joined #ruby-lang
09:49
adambeynon has joined #ruby-lang
09:49
rickhull1 has joined #ruby-lang
09:49
benlovell has quit [Client Quit]
09:52
mistym has quit [Ping timeout: 245 seconds]
09:52
rwk1 has joined #ruby-lang
09:54
yatish27 has quit [Remote host closed the connection]
09:58
ikrima has quit [Quit: Computer has gone to sleep.]
09:58
yatish27 has joined #ruby-lang
10:02
dhruvasagar has quit [Read error: Connection reset by peer]
10:02
dhruvasagar has joined #ruby-lang
10:04
kleech has joined #ruby-lang
10:04
kleech has left #ruby-lang [#ruby-lang]
10:05
RickHull has quit [Quit: Leaving.]
10:09
rwk1 has quit [Remote host closed the connection]
10:09
DouweM has joined #ruby-lang
10:17
lun__ has quit [Remote host closed the connection]
10:18
lun__ has joined #ruby-lang
10:19
yatish27 has quit [Remote host closed the connection]
10:22
lun__ has quit [Ping timeout: 246 seconds]
10:23
ikrima has joined #ruby-lang
10:24
sepp2k has joined #ruby-lang
10:25
dangerousbeans has joined #ruby-lang
10:25
thelorax123 has quit [Remote host closed the connection]
10:25
kitak_ has quit [Remote host closed the connection]
10:25
yatish27 has joined #ruby-lang
10:26
ryez has quit [Quit: Page closed]
10:28
kitak has joined #ruby-lang
10:30
thelorax123 has joined #ruby-lang
10:33
kek_ has joined #ruby-lang
10:34
madb055 has quit [Ping timeout: 246 seconds]
10:35
elia has joined #ruby-lang
10:36
relix has joined #ruby-lang
10:36
jxie has joined #ruby-lang
10:37
Coincide_ has joined #ruby-lang
10:37
kek_ has quit [Ping timeout: 246 seconds]
10:41
yatish27 has quit [Remote host closed the connection]
10:41
yatish27 has joined #ruby-lang
10:42
Coincide_ has quit [Remote host closed the connection]
10:42
kek has quit [Remote host closed the connection]
10:42
Coincidental has joined #ruby-lang
10:45
h_kon has quit [Remote host closed the connection]
10:45
guns has joined #ruby-lang
10:46
Coincidental has quit [Ping timeout: 260 seconds]
10:48
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
10:51
h_kon has joined #ruby-lang
10:52
<
ljarvis >
today is a bad day
10:56
thelorax123 has quit [Remote host closed the connection]
10:57
thelorax123 has joined #ruby-lang
10:59
<
judofyr >
ljarvis: make it better!
11:00
mucker has joined #ruby-lang
11:05
soba has quit [Ping timeout: 240 seconds]
11:06
judofyr has quit [Remote host closed the connection]
11:07
judofyr has joined #ruby-lang
11:07
judofyr has quit [Remote host closed the connection]
11:10
cnivolle has quit [Remote host closed the connection]
11:11
<
ljarvis >
good advice right there
11:11
arBmind1 has joined #ruby-lang
11:12
stamina has joined #ruby-lang
11:13
arBmind has quit [Ping timeout: 272 seconds]
11:16
mikecmpbll has joined #ruby-lang
11:20
sandeepk has quit [Quit: Leaving...]
11:20
robonerd has quit [Remote host closed the connection]
11:20
<
joonty >
in soviet russia, day makes you
11:20
lun__ has joined #ruby-lang
11:22
barttenbrinke has quit [Remote host closed the connection]
11:26
mdedetrich has joined #ruby-lang
11:31
ahf has joined #ruby-lang
11:32
sandeepk has joined #ruby-lang
11:32
<
yorickpeterse >
So we had an ElasticSearch cluster fuckup...now Logstash is fucking up
11:32
<
yorickpeterse >
best week ever
11:32
kek has joined #ruby-lang
11:32
mucker has quit [Remote host closed the connection]
11:34
kek_ has joined #ruby-lang
11:38
guns has quit [Quit: guns]
11:39
kek_ has quit [Ping timeout: 260 seconds]
11:46
mucker has joined #ruby-lang
11:46
Nilium has joined #ruby-lang
11:46
elia has quit [Quit: Computer has gone to sleep.]
11:48
mistym has joined #ruby-lang
11:50
arBmind1 has left #ruby-lang [#ruby-lang]
11:51
Olipro has joined #ruby-lang
11:53
mistym has quit [Ping timeout: 252 seconds]
11:54
nettsundere has joined #ruby-lang
11:59
ldnunes has joined #ruby-lang
12:00
Squarepy has joined #ruby-lang
12:00
rwk1 has joined #ruby-lang
12:00
barttenbrinke has joined #ruby-lang
12:05
solars has quit [Ping timeout: 245 seconds]
12:05
workmad3 has joined #ruby-lang
12:05
Squarepy has quit [Ping timeout: 272 seconds]
12:07
nettsundere has quit [Quit: nettsundere]
12:08
atrocitas has quit [Remote host closed the connection]
12:09
Squarepy has joined #ruby-lang
12:12
nettsundere has joined #ruby-lang
12:16
vlad_starkov has joined #ruby-lang
12:18
vlad_starkov has quit [Read error: Connection reset by peer]
12:19
<
Olipro >
if I have a String object that is a sequence of bytes read in from a TCP socket, is there a way to "map" that into a structure that I've defined
12:19
<
Olipro >
(that's more efficient than manipulating it as an array and using unpack)
12:20
kitak_ has joined #ruby-lang
12:20
solars has joined #ruby-lang
12:20
tbuehlmann has quit [Ping timeout: 264 seconds]
12:21
hhatch has quit [Ping timeout: 240 seconds]
12:21
<
yorickpeterse >
dayum, Euruko 2014 CFP is already open
12:21
<
ljarvis >
Olipro: could you explain a bit more what you're trying to do?
12:21
<
apeiros >
Olipro: unpack is quite efficient
12:22
<
apeiros >
oh, cross poster
12:22
<
maloik >
'already' ? that's not really that quick is it
12:22
Olipro was kicked from #ruby-lang by apeiros [if you cross post, you're required to at least tell that in every channel where you cross post. thank you (this is only a kick, not a ban)]
12:22
nettsundere has quit [Quit: nettsundere]
12:22
Olipro has joined #ruby-lang
12:22
kitak has quit [Ping timeout: 246 seconds]
12:23
<
yorickpeterse >
maloik: I remember 2013 being later
12:23
<
maloik >
wtf 58 euro for a ticket? they must either have a massive audience or a ton of sponsors
12:23
<
yorickpeterse >
I don't like the Github PR system for this though :/
12:23
<
yorickpeterse >
2013's system was much better
12:23
kitak_ has quit [Remote host closed the connection]
12:23
sandeepk_ has joined #ruby-lang
12:23
<
maloik >
it's not anonymous sadly
12:23
<
maloik >
ours will be
12:23
sandeepk has quit [Read error: Connection reset by peer]
12:24
<
maloik >
even more so than last year, when by the time we were done selecting talks we could recognize a couple of them just by the description
12:24
<
yorickpeterse >
heh
12:24
<
ljarvis >
maloik: you coming to bacon conf?
12:24
x0f has joined #ruby-lang
12:24
<
yorickpeterse >
Guess we need to hurry up with our Ruby changes so I can talk about that
12:24
<
yorickpeterse >
or maybe I should try again giving a talk about ruby-lint
12:25
<
yorickpeterse >
bacon conf?
12:25
elia has joined #ruby-lang
12:25
<
maloik >
ljarvis: I hope so yea... if I don't get to go by my employer I might propose I pay for the ticket or the stay myself
12:25
<
yorickpeterse >
oh shit, that's in London
12:25
<
ljarvis >
maloik: nice
12:25
nettsundere has joined #ruby-lang
12:25
<
yorickpeterse >
"BUT I'M VEGETARIAN...
12:25
<
yorickpeterse >
That’s awesome, we’d love to meat you! "
12:25
<
ljarvis >
if I lived closer to London I'd offer you a place, but it's like an hour away
12:26
<
maloik >
don't worry about it :) might end up trying airbnb for the first time
12:27
x0f_ has quit [Ping timeout: 240 seconds]
12:28
<
yorickpeterse >
ljarvis: m8 everybody lives in London
12:29
lun__ has quit [Remote host closed the connection]
12:29
rickhull1 has quit [Quit: Leaving.]
12:30
lun__ has joined #ruby-lang
12:30
ezkl has quit [Quit: QUIT!]
12:32
Asher1 has quit [Quit: Leaving.]
12:32
Asher has joined #ruby-lang
12:33
kek has quit [Remote host closed the connection]
12:34
lun__ has quit [Ping timeout: 265 seconds]
12:34
cnivolle has joined #ruby-lang
12:34
kek_ has joined #ruby-lang
12:35
xcess_denied has quit [Quit: Leaving...]
12:36
Asher has quit [Client Quit]
12:36
lun__ has joined #ruby-lang
12:38
valeri_ufo has joined #ruby-lang
12:40
kek_ has quit [Ping timeout: 272 seconds]
12:44
rwk1 has quit [Read error: Connection timed out]
12:45
sandeepk_ has quit [Quit: Leaving...]
12:46
sandeepk has joined #ruby-lang
12:48
bastilian has joined #ruby-lang
12:49
dhruvasagar has quit [Ping timeout: 252 seconds]
12:49
rwk1 has joined #ruby-lang
12:52
retro|cz has joined #ruby-lang
12:53
sandeepk has quit [Quit: Leaving...]
12:56
supergeek has joined #ruby-lang
12:56
yatish27 has quit [Remote host closed the connection]
12:57
lun__ has quit [Remote host closed the connection]
12:58
supergeek has quit [Client Quit]
12:59
guns has joined #ruby-lang
12:59
smashwilson has joined #ruby-lang
13:01
robbyoconnor has joined #ruby-lang
13:01
robbyoconnor has quit [Client Quit]
13:01
nXqd has quit [Ping timeout: 272 seconds]
13:03
stamina has quit [Read error: Connection reset by peer]
13:04
supergeek has joined #ruby-lang
13:07
rwk1 has quit [Read error: Connection timed out]
13:11
Jaydeep has joined #ruby-lang
13:11
dangerousbeans has quit [Quit: :Q______________]
13:16
rwk1 has joined #ruby-lang
13:18
Asher has joined #ruby-lang
13:20
lun__ has joined #ruby-lang
13:25
rwk1 has quit [Read error: Operation timed out]
13:27
cnivolle has quit [Remote host closed the connection]
13:30
Squarepy_ has joined #ruby-lang
13:31
bzalasky has joined #ruby-lang
13:32
Squarepy has quit [Ping timeout: 246 seconds]
13:32
retro|cz has quit [Ping timeout: 260 seconds]
13:34
dangerousbeans has joined #ruby-lang
13:34
rwk1 has joined #ruby-lang
13:35
kek has joined #ruby-lang
13:35
SteveBenner9 has quit [Ping timeout: 246 seconds]
13:37
mikecmpbll has joined #ruby-lang
13:40
kek has quit [Ping timeout: 265 seconds]
13:41
barttenbrinke has quit [Remote host closed the connection]
13:41
barttenbrinke has joined #ruby-lang
13:42
Squarepy_ has quit [Ping timeout: 246 seconds]
13:44
jperry has quit [Remote host closed the connection]
13:44
barttenb_ has joined #ruby-lang
13:45
barttenbrinke has quit [Read error: Connection reset by peer]
13:45
rwk1 has quit [Read error: Operation timed out]
13:47
breakingthings has joined #ruby-lang
13:47
Asher has quit [Quit: Leaving.]
13:48
banister has joined #ruby-lang
13:48
nettsundere has quit [Quit: nettsundere]
13:48
banisterfiend has quit [Read error: Connection reset by peer]
13:49
jperry has joined #ruby-lang
13:49
bzalasky has quit [Remote host closed the connection]
13:49
mistym has joined #ruby-lang
13:49
banister has quit [Client Quit]
13:50
banisterfiend has joined #ruby-lang
13:50
bzalasky has joined #ruby-lang
13:51
lupine has quit [Read error: Connection reset by peer]
13:51
momomomomo has joined #ruby-lang
13:52
vlad_starkov has joined #ruby-lang
13:53
lupine has joined #ruby-lang
13:53
mistym has quit [Ping timeout: 244 seconds]
13:54
bzalasky has quit [Ping timeout: 240 seconds]
13:54
rwk1 has joined #ruby-lang
13:55
myappleguy has joined #ruby-lang
13:56
vlad_starkov has quit [Remote host closed the connection]
13:59
vlad_starkov has joined #ruby-lang
14:03
lun___ has joined #ruby-lang
14:03
lun__ has quit [Ping timeout: 248 seconds]
14:06
supergeek has quit [Quit: Leaving]
14:08
vpretzel_ is now known as vpretzel
14:12
MaddinXx has joined #ruby-lang
14:13
h_kon has quit [Remote host closed the connection]
14:14
toretore has joined #ruby-lang
14:19
vinhbachsy has joined #ruby-lang
14:19
mdedetrich has quit [Quit: Computer has gone to sleep.]
14:20
Asher has joined #ruby-lang
14:21
arooni-mobile__ has joined #ruby-lang
14:22
vladgh has joined #ruby-lang
14:22
<
yorickpeterse >
I SURE DO THUNDERBIRD TAKING MY LAPTOP DOWN AGAIN
14:22
<
yorickpeterse >
Had to force suspend it, log in in a different TTY and kill it. While it was completely locking up the laptop...
14:23
vladgh has quit [Client Quit]
14:25
vladgh has joined #ruby-lang
14:30
CoreData has quit [Ping timeout: 245 seconds]
14:31
vladgh has quit [Quit: leaving]
14:31
vladgh_ has joined #ruby-lang
14:31
vladgh_ has quit [Client Quit]
14:32
vladgh has joined #ruby-lang
14:32
benlovell has joined #ruby-lang
14:33
tkuchiki has quit [Remote host closed the connection]
14:36
kek has joined #ruby-lang
14:36
sandeepk has joined #ruby-lang
14:37
yatish27 has joined #ruby-lang
14:38
Guest18577 has joined #ruby-lang
14:39
<
maloik >
I wish we had an interface/UX designer :(
14:39
<
maloik >
feel like this feature is going to turn out a mess simply because I can't envision a proper flow for it
14:39
<
yorickpeterse >
hire one
14:40
<
maloik >
not an option
14:40
<
yorickpeterse >
...wat
14:41
kek has quit [Ping timeout: 272 seconds]
14:41
<
yorickpeterse >
"We need people" "We don't want to hire people" make a choice
14:41
<
workmad3 >
yorickpeterse: they want to buy people?
14:41
nettsundere has joined #ruby-lang
14:41
<
maloik >
I don't decide on hiring, so if the bosses don't want to invest in this we're kind of stuck aren't we
14:41
<
yorickpeterse >
part of your job is to convince them they're wrong :)
14:42
<
yorickpeterse >
or just use Bootstrap
14:42
kek has joined #ruby-lang
14:44
<
maloik >
it's not the visual aspect
14:45
<
maloik >
also, I can understand the reasoning, the control panel just isn't the biggest focus right now
14:45
<
momomomomo >
maloik: Sometimes it helps to get a whiteboard and start scribbling - if it's not priority, then leave it for later
14:45
<
maloik >
this one's complicated, can't wrap my head around it
14:46
<
maloik >
anyway, back to debugging
14:46
shinnya has joined #ruby-lang
14:46
Guest18577 has quit [Ping timeout: 260 seconds]
14:46
datanoise has joined #ruby-lang
14:46
dhruvasa1ar has joined #ruby-lang
14:47
jxie has quit [Ping timeout: 244 seconds]
14:47
wallerdev has joined #ruby-lang
14:48
<
yorickpeterse >
maloik: take a poop, draw some boxes, then sit back behind your computer
14:49
nathanstitt has joined #ruby-lang
14:50
itsraining has joined #ruby-lang
14:50
slyphon has joined #ruby-lang
14:50
retro|cz has joined #ruby-lang
14:51
xcess_denied has joined #ruby-lang
14:51
bruno- has quit [Ping timeout: 252 seconds]
14:52
loincloth has joined #ruby-lang
14:53
stardiviner has quit [Ping timeout: 246 seconds]
14:55
mucker has quit [Remote host closed the connection]
14:56
mucker has joined #ruby-lang
14:56
stardiviner has joined #ruby-lang
14:59
matt_ has joined #ruby-lang
14:59
matt_ is now known as Guest94401
15:00
mucker has quit [Ping timeout: 252 seconds]
15:00
Guest94401 has quit [Client Quit]
15:00
Mon_Ouie has joined #ruby-lang
15:00
Mon_Ouie has joined #ruby-lang
15:01
benwoody has joined #ruby-lang
15:02
bf4 has joined #ruby-lang
15:02
sandeepk has quit [Quit: Leaving...]
15:02
<
ljarvis >
take a poop on your bosses desk
15:03
<
ljarvis >
and tell him you need to hire a ux person
15:03
<
ljarvis >
otherwise his desk is now your toilet
15:03
<
gnufied >
*makes a mental note to not take advice from ljarvis*
15:03
<
ljarvis >
then every day it doesn't happen, take a poop in a different place in his office
15:04
<
ljarvis >
"got ya, did't think it would fit in your coffee mug eh?"
15:04
dhruvasa1ar has quit [Ping timeout: 260 seconds]
15:05
<
maloik >
we're in an open space, I'm pretty sure I'd actually shoot myself in the foot doing that
15:05
<
maloik >
figuratively
15:05
vlad_starkov has quit [Remote host closed the connection]
15:05
<
maloik >
you'd have to be pretty stupid to shoot yourself in the foot for real while taking a dump
15:05
dhruvasa1ar has joined #ruby-lang
15:05
<
maloik >
I mean, who does that? you should never take the safety off while inside the bathroom
15:05
<
ljarvis >
you could shit yourself on the foot
15:05
<
maloik >
well... maybe
15:05
<
maloik >
probably still pretty hard
15:06
<
ljarvis >
i would say almost likely, if you're attempting to take a shit in a coffee cup
15:06
<
maloik >
maybe on your ankle
15:06
<
maloik >
but not on the front of your foot
15:06
<
ljarvis >
yeah maybe just some splatter
15:06
<
maloik >
unless you're crazy flexible
15:07
<
ljarvis >
weirdest image in my head right now
15:07
<
maloik >
only just now ?
15:07
<
ljarvis >
i always have weird images in my head, even during conversations that do not involve shitting on objects in and around your bosses desk
15:09
bruno- has joined #ruby-lang
15:09
nettsundere has quit [Quit: nettsundere]
15:11
bradsmith has joined #ruby-lang
15:11
sandeepk has joined #ruby-lang
15:11
thelorax123 has quit [Remote host closed the connection]
15:11
vlad_starkov has joined #ruby-lang
15:11
arooni-mobile__ has quit [Ping timeout: 272 seconds]
15:12
thelorax123 has joined #ruby-lang
15:12
achru has quit [Remote host closed the connection]
15:13
achru has joined #ruby-lang
15:14
<
yorickpeterse >
ljarvis: are you a cat?
15:14
<
yorickpeterse >
(re pooping)
15:14
<
yorickpeterse >
you sound a lot like the average cat
15:14
nigerianceo has joined #ruby-lang
15:14
CoreData has joined #ruby-lang
15:14
<
ljarvis >
i am topcat
15:14
<
yorickpeterse >
alpha cat
15:14
<
maloik >
I've had cats for as long as I can remember, but I don't remember any of them shitting in my mugs
15:14
<
maloik >
maybe you need to train yours
15:14
<
ljarvis >
or.. maybe you need to train yours!
15:14
<
yorickpeterse >
maloik: that just means they're good at hiding it
15:15
<
ljarvis >
it took a long time to train the cats to shit in mugs
15:15
<
ljarvis >
but they got there
15:15
stardiviner has quit [Read error: Operation timed out]
15:15
Jaydeep has quit [Remote host closed the connection]
15:17
achru has quit [Ping timeout: 246 seconds]
15:17
arooni-mobile__ has joined #ruby-lang
15:18
itsraining has quit [Quit: itsraining]
15:18
nettsundere has joined #ruby-lang
15:20
CoreData has quit [Ping timeout: 245 seconds]
15:21
yfeldblum has joined #ruby-lang
15:22
nettsundere has left #ruby-lang [#ruby-lang]
15:23
rippa has joined #ruby-lang
15:23
vlad_starkov has quit [Remote host closed the connection]
15:25
zirconcode has joined #ruby-lang
15:25
micalexander has quit [Remote host closed the connection]
15:25
vlad_starkov has joined #ruby-lang
15:25
micalexander has joined #ruby-lang
15:26
retro|cz has quit [Read error: Operation timed out]
15:26
turnip has quit [Ping timeout: 248 seconds]
15:27
wallerdev has quit [Quit: wallerdev]
15:29
itsraining has joined #ruby-lang
15:29
micalexander has quit [Ping timeout: 244 seconds]
15:30
jsullivandigs has joined #ruby-lang
15:32
bantic has joined #ruby-lang
15:33
CoreData has joined #ruby-lang
15:35
CoreData has quit [Read error: Connection reset by peer]
15:37
thang has quit [Remote host closed the connection]
15:37
kek_ has joined #ruby-lang
15:38
dhruvasa1ar has quit [Ping timeout: 272 seconds]
15:39
cnivolle has joined #ruby-lang
15:39
havenwood has joined #ruby-lang
15:40
cnivolle has quit [Remote host closed the connection]
15:40
cnivolle has joined #ruby-lang
15:40
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:40
mikecmpbll has joined #ruby-lang
15:41
kek_ has quit [Ping timeout: 260 seconds]
15:42
momomomomo has quit [Quit: momomomomo]
15:42
<
levifig >
anybody with any experience with Radius servers and Ruby?
15:43
<
levifig >
wanting to write a ruby app that serves as the backend for a radius server
15:43
<
levifig >
and most radius gems seem to be outdated :X
15:43
<
lupine >
RADIUS is outdated ;)
15:44
<
lupine >
nah, just kidding. it's evil, but necessary
15:44
<
levifig >
that's what I keep thinking
15:44
<
lupine >
I'm not familiar with binding to it from ruby though, I'm afraid
15:44
dvorak has quit [Ping timeout: 272 seconds]
15:45
<
levifig >
lupine, are there alternatives to RADIUS?!
15:46
<
lupine >
depends on what you're using radius for
15:46
<
levifig >
like, I'm trying to use it simply as an interface for VPN authentication…
15:46
<
cout >
wow, i haven't heard of RADIUS in ages
15:46
<
lupine >
then you could use ldap
15:46
<
lupine >
which is what we use for our openvpn server's username/password stage of auth
15:47
<
lupine >
I'm actually going to need to start running a radius server at home
15:47
<
yorickpeterse >
Fuck yeah, benchmarking in Kibana
15:47
<
lupine >
I don't want to, but I need to get away from WPA2-PSK
15:47
yatish27 has quit [Remote host closed the connection]
15:47
<
yorickpeterse >
ljarvis: also there's a joke about trains in that comment
15:47
<
yorickpeterse >
(in yours about cats)
15:48
itsraining has quit [Quit: itsraining]
15:48
itsraining has joined #ruby-lang
15:48
yatish27 has joined #ruby-lang
15:48
<
levifig >
lupine, ya
15:49
<
lupine >
if you can get away with it, ldap is easier
15:49
<
lupine >
there's even easier, again if you can get away with it - right down to usernames and passwords in flat files
15:51
slyphon has joined #ruby-lang
15:51
scampbell has joined #ruby-lang
15:52
sandeepk has quit [Read error: Connection reset by peer]
15:52
sandeepk has joined #ruby-lang
15:53
momomomomo has joined #ruby-lang
15:54
enebo has joined #ruby-lang
15:55
myappleguy has quit [Ping timeout: 272 seconds]
15:56
wallerdev has joined #ruby-lang
15:58
myappleguy has joined #ruby-lang
15:59
yatish27 has quit [Remote host closed the connection]
15:59
<
levifig >
lupine, I'm using mikrotiks as the main devices on the network
16:00
<
levifig >
already have about ~100 actively connected for a max of ~230 that have VPN access (remote routers to our VPN concentrator)
16:00
<
levifig >
I know mikrotiks have RADIUS
16:00
yatish27 has joined #ruby-lang
16:00
<
levifig >
not sure about LDAP
16:00
<
levifig >
on the other hand, one could use LDAP as the RADIUS' backend
16:02
<
yorickpeterse >
HNNNNGNGGGG KIBANNAAA
16:02
<
yorickpeterse >
I'm creaming my pants here
16:02
<
yorickpeterse >
this is pretty darn awesome once you really get down to setting stuff up
16:02
rwk1 has quit [Remote host closed the connection]
16:03
mistym has joined #ruby-lang
16:04
elia has quit [Quit: Computer has gone to sleep.]
16:04
itsraining has quit [Quit: itsraining]
16:06
elia has joined #ruby-lang
16:07
mistym has quit [Remote host closed the connection]
16:08
vlad_starkov has quit [Remote host closed the connection]
16:08
dvorak has joined #ruby-lang
16:09
vmoravec has quit [Quit: Leaving]
16:09
turnip has joined #ruby-lang
16:10
yatish27 has quit [Remote host closed the connection]
16:10
micalexander has joined #ruby-lang
16:11
rwk1 has joined #ruby-lang
16:12
kurko_ has joined #ruby-lang
16:12
yatish27 has joined #ruby-lang
16:14
slyphon has quit [Ping timeout: 246 seconds]
16:15
slyphon has joined #ruby-lang
16:16
yfeldblum has quit [Remote host closed the connection]
16:17
vlad_starkov has joined #ruby-lang
16:17
yfeldblum has joined #ruby-lang
16:19
Cakey has joined #ruby-lang
16:19
loincloth has quit [Remote host closed the connection]
16:19
MaddinXx has quit [Remote host closed the connection]
16:20
loincloth has joined #ruby-lang
16:20
cored has joined #ruby-lang
16:21
yfeldblum has quit [Ping timeout: 246 seconds]
16:22
yfeldblum has joined #ruby-lang
16:22
yatish27 has quit [Remote host closed the connection]
16:22
barttenb_ has quit [Remote host closed the connection]
16:23
yatish27 has joined #ruby-lang
16:24
banisterfiend is now known as banisterfiend`
16:24
loincloth has quit [Ping timeout: 246 seconds]
16:24
kek has quit [Remote host closed the connection]
16:26
dhruvasagar has joined #ruby-lang
16:28
mistym has joined #ruby-lang
16:31
hogeo has quit [Remote host closed the connection]
16:31
hogeo has joined #ruby-lang
16:32
cnivolle_ has joined #ruby-lang
16:33
CaptainJet has joined #ruby-lang
16:33
cnivolle_ has quit [Remote host closed the connection]
16:33
nXqd has joined #ruby-lang
16:33
cnivolle_ has joined #ruby-lang
16:34
yfeldblum has quit [Remote host closed the connection]
16:34
yatish27 has quit [Remote host closed the connection]
16:35
bzalasky has joined #ruby-lang
16:35
loincloth has joined #ruby-lang
16:35
yatish27 has joined #ruby-lang
16:36
cnivolle has quit [Ping timeout: 252 seconds]
16:36
MaddinXx has joined #ruby-lang
16:36
hogeo has quit [Ping timeout: 246 seconds]
16:36
big_ has joined #ruby-lang
16:36
myappleguy has left #ruby-lang [#ruby-lang]
16:37
kek has joined #ruby-lang
16:37
nXqd has quit [Ping timeout: 248 seconds]
16:38
jsullivandigs has quit [Remote host closed the connection]
16:38
jsullivandigs has joined #ruby-lang
16:38
slyphon has quit [Ping timeout: 260 seconds]
16:41
yfeldblum has joined #ruby-lang
16:42
kek has quit [Ping timeout: 244 seconds]
16:43
jsullivandigs has quit [Ping timeout: 248 seconds]
16:44
jsullivandigs has joined #ruby-lang
16:44
macmartine has joined #ruby-lang
16:46
yatish27 has quit [Remote host closed the connection]
16:47
yatish27 has joined #ruby-lang
16:48
itsraining has joined #ruby-lang
16:48
achru has joined #ruby-lang
16:50
itsraining has quit [Client Quit]
16:51
itsraining has joined #ruby-lang
16:53
Randroid has joined #ruby-lang
16:54
sross07 has quit [Read error: Connection reset by peer]
16:56
bzalasky has quit [Remote host closed the connection]
16:56
benlovell has quit [Quit: leaving]
16:57
bzalasky has joined #ruby-lang
16:58
big_ has quit [Ping timeout: 250 seconds]
17:00
sross07 has joined #ruby-lang
17:00
arooni-mobile__ has quit [Ping timeout: 244 seconds]
17:01
bzalasky has quit [Ping timeout: 252 seconds]
17:01
achru has quit [Remote host closed the connection]
17:01
Cakey has quit [Ping timeout: 248 seconds]
17:02
sepp2k has quit [Quit: Konversation terminated!]
17:02
achru has joined #ruby-lang
17:02
hogeo has joined #ruby-lang
17:02
breakingthings has quit []
17:07
achru has quit [Ping timeout: 260 seconds]
17:09
lun___ has quit [Remote host closed the connection]
17:09
lun__ has joined #ruby-lang
17:12
__butch__ has joined #ruby-lang
17:13
dagobah has quit [Remote host closed the connection]
17:14
mistym has quit [Remote host closed the connection]
17:14
Jaydeep has joined #ruby-lang
17:14
lun__ has quit [Ping timeout: 244 seconds]
17:16
arooni-mobile__ has joined #ruby-lang
17:23
vinhbachsy has quit []
17:25
<
zirconcode >
I'm making a gem, and I have a mess with my requires
17:25
<
zirconcode >
I don't think so :(
17:26
Onixs has quit [Read error: Connection reset by peer]
17:27
<
ljarvis >
zirconcode: why do you think you're not?
17:27
sepp2k has joined #ruby-lang
17:27
Onixs has joined #ruby-lang
17:27
<
zirconcode >
I'm not sure if those requires are supposed to be in the .rb files where they're needed
17:28
<
zirconcode >
or if they're supposed to be outisde or inside the module
17:28
mistym has joined #ruby-lang
17:28
<
toretore >
i would put them only where needed
17:28
<
toretore >
that way they're independent of each other
17:29
<
cored >
I'm back with same thing regarding mechanize
17:29
<
toretore >
and i wouldn't use require_relative, but assume that the PATH is properly set up
17:29
<
zirconcode >
and in the .gemspec runtime_dependancies I have to mention them all again right?
17:29
<
cored >
I found the way to submit the form
17:29
<
ljarvis >
zirconcode: it's personal preference ultimately, but they way you're doing it is not wrong
17:29
<
cored >
but now I want to retrieve some info from the new page
17:30
<
zirconcode >
ah thanks toretore, I like that thinking, sounds better than mine
17:30
<
ljarvis >
cored: page = form.submit(...); page.find ...
17:30
<
cored >
that's the code I have
17:30
<
cored >
that's what is returning the data
17:31
<
cored >
there are two tables inside that new page but when I do something like returned_page.search('//table') it just return the first one
17:31
<
toretore >
zirconcode: if it makes sense, make sure i can require 'yourlib/somefile' without having to require the whole thing
17:32
<
ljarvis >
cored: does it return a node list?
17:32
breakingthings has joined #ruby-lang
17:32
<
ljarvis >
cored: because the part of the code we're discussing isn't even in that gist
17:33
<
cored >
ljarvis: sure, that code just make the submit to the form
17:33
<
cored >
ljarvis: I will have another code to scrap it out, I'm testing how to do the scrap now
17:33
<
zirconcode >
toretore: ah I see, well that makes more sense than doing something just because it works~
17:33
<
cored >
which is something like returned_form.search('//table')
17:33
<
ljarvis >
cored: if you want help with that part, that's the part you should share :)
17:33
<
ljarvis >
cored: what does that return?
17:33
<
cored >
the first table
17:33
<
ljarvis >
zirconcode: fwiw require_relative is also fine
17:33
<
ljarvis >
but i generally agree
17:34
<
ljarvis >
cored: that's not helpful
17:34
<
cored >
there are two tables in the returned page
17:34
<
ljarvis >
cored: what
*exactly* does it return
17:34
<
zirconcode >
is require_relative just not used, or is there a reason aswell?
17:35
<
ljarvis >
zirconcode: the reason is because . is no longer in the load path so it's a helper method for require File.expand_path('./#{the_file}', __FILE__)
17:36
<
zirconcode >
ljarvis: ah, thanks =)
17:36
iliketurtles has joined #ruby-lang
17:36
<
ljarvis >
cored: then nokogiri is only seeing 1 table in the page
17:36
iliketurtles has quit [Remote host closed the connection]
17:37
MaddinXx has quit [Remote host closed the connection]
17:37
sandeepk has quit [Ping timeout: 265 seconds]
17:37
<
cored >
ljarvis: which is weird
17:37
<
ljarvis >
cored: you can paste the html source if you want
17:37
<
cored >
ljarvis: why do you think that could happen?
17:37
<
cored >
malformed html
17:37
<
cored >
ljarvis: sure, give me a sec
17:37
bjh13 has joined #ruby-lang
17:38
kek_ has joined #ruby-lang
17:38
shinnya has quit [Ping timeout: 272 seconds]
17:39
<
cored >
the returned_form from the submit in mechanize is just returning one
17:40
<
cored >
maybe the problem is related to not having the entire page returned after the submit
17:40
Jaydeep has quit [Remote host closed the connection]
17:42
CoreData has joined #ruby-lang
17:42
kek_ has quit [Ping timeout: 246 seconds]
17:43
<
cored >
as far as I read mechanize overwrite the current form object
17:44
<
cored >
with the result after submit
17:44
sross07 has quit [Read error: Connection reset by peer]
17:44
<
ljarvis >
duckinator: fwiw if more people spoke up i would have been forced into a corner a little more :D
17:45
ecnalyr has joined #ruby-lang
17:45
<
ljarvis >
and your example puts it into a little more context
17:46
<
ljarvis >
cored: it doesn't mutate the current form object, it just returns the page
17:47
<
ljarvis >
also in related news, i just dropped mechanize 2.7.4 \o/
17:47
<
ljarvis >
i can't count
17:47
JonahR has joined #ruby-lang
17:48
elia has quit [Ping timeout: 260 seconds]
17:48
sross07 has joined #ruby-lang
17:48
yatish27 has quit [Remote host closed the connection]
17:49
vladgh has quit [Ping timeout: 272 seconds]
17:50
<
ljarvis >
zirconcode: again, . is not in the load path
17:50
<
ljarvis >
zirconcode: try require './scrapah'
17:50
<
ljarvis >
or require_relative
17:51
vlad_starkov has quit [Remote host closed the connection]
17:51
<
zirconcode >
require './scrapah' gives me syntax error
17:51
<
zirconcode >
Sorry if I'm a bit dense atm -_-
17:52
<
ljarvis >
no it doesn't
17:52
momomomomo has quit [Quit: momomomomo]
17:52
<
ljarvis >
oh right, that's a syntax error in your library
17:52
<
ljarvis >
ib/scrapah/extract.rb:10
17:53
<
zirconcode >
ohhh, haha thanks, I should've looked more carefully
17:53
<
ljarvis >
exception messages are good! :)
17:53
<
zirconcode >
hehe thanks for putting up with a slow newb =)
17:54
slyphon has joined #ruby-lang
17:55
heftig has quit [Ping timeout: 260 seconds]
17:55
heftig has joined #ruby-lang
17:58
Cakey has joined #ruby-lang
18:00
momomomomo has joined #ruby-lang
18:02
jhulten has joined #ruby-lang
18:02
io_syl has joined #ruby-lang
18:03
loincloth has quit [Remote host closed the connection]
18:03
Cakey has quit [Ping timeout: 248 seconds]
18:03
loincloth has joined #ruby-lang
18:04
johnny_rugger has joined #ruby-lang
18:07
loincloth has quit [Ping timeout: 240 seconds]
18:10
arooni-mobile__ has quit [Ping timeout: 272 seconds]
18:11
momomomomo has quit [Quit: momomomomo]
18:11
workmad3 has quit [Ping timeout: 272 seconds]
18:14
Randroid has quit [Quit: Randroid]
18:14
loincloth has joined #ruby-lang
18:15
MaddinXx_ has joined #ruby-lang
18:17
havenwood has quit [Remote host closed the connection]
18:17
diraysexy has joined #ruby-lang
18:17
iliketurtles has joined #ruby-lang
18:20
MrZYX|off is now known as MrZYX
18:21
dangerousbeans has quit [Quit: KTHNXBAI]
18:21
nXqd has joined #ruby-lang
18:22
cnivolle_ has quit [Remote host closed the connection]
18:23
cnivolle has joined #ruby-lang
18:23
iliketurtles has quit [Quit: zzzzz…..]
18:23
MaddinXx_ has quit [Remote host closed the connection]
18:23
MaddinXx_ has joined #ruby-lang
18:24
nomadicoder has joined #ruby-lang
18:26
nXqd has quit [Ping timeout: 246 seconds]
18:27
cnivolle has quit [Ping timeout: 252 seconds]
18:27
intellitech has quit [Quit: SMOKE BOMB!]
18:29
vsorlov has joined #ruby-lang
18:30
bruno- has quit [Ping timeout: 252 seconds]
18:30
iliketurtles has joined #ruby-lang
18:31
sevvie has joined #ruby-lang
18:32
momomomomo has joined #ruby-lang
18:32
bruno- has joined #ruby-lang
18:35
hahuang61 has joined #ruby-lang
18:37
momomomomo has quit [Quit: momomomomo]
18:38
<
ljarvis >
we were just discussing this @ work
18:39
kek has joined #ruby-lang
18:39
<
yorickpeterse >
I
*LOVE* this because I fucking hate MySQL
18:39
<
yorickpeterse >
This makes it much easier for me to advocate Pg at $WOKR
18:39
<
yorickpeterse >
* WORK
18:40
diraysexy has quit [Quit: Chatmosphere for Blackberry]
18:40
nisstyre has quit [Quit: Leaving]
18:41
dhruvasagar has quit [Ping timeout: 244 seconds]
18:42
MrZYX is now known as MrZYX|off
18:43
kek has quit [Ping timeout: 252 seconds]
18:44
Guest29309 has joined #ruby-lang
18:44
saarinen has joined #ruby-lang
18:45
Guest29309 is now known as diegoviola
18:45
CoreData has quit [Ping timeout: 240 seconds]
18:46
JonahR has quit [Quit: jonahR]
18:48
JonahR has joined #ruby-lang
18:48
Coincidental has joined #ruby-lang
18:49
RickHull has joined #ruby-lang
18:50
therealtesseract has joined #ruby-lang
18:51
JonahR has quit [Client Quit]
18:51
amerine has joined #ruby-lang
18:51
thelorax123 has quit [Write error: Broken pipe]
18:52
thelorax1231 has joined #ruby-lang
18:53
Shellcat has joined #ruby-lang
18:54
sepp2k has quit [Ping timeout: 260 seconds]
18:54
sepp2k has joined #ruby-lang
18:55
cnivolle has joined #ruby-lang
18:56
MrZYX|off is now known as MrZYX
18:57
<
ljarvis >
i created an instance to mess with
18:57
<
ljarvis >
and it wont connect
18:57
<
yorickpeterse >
security groups
18:57
<
ljarvis >
i did that first :D
18:57
<
ljarvis >
always catches me out
18:58
<
ljarvis >
i wonder if this is gonna effect heroku much
18:59
Cakey has joined #ruby-lang
19:00
dalegribble80 has joined #ruby-lang
19:02
vbatts has quit [Ping timeout: 245 seconds]
19:02
dalegribble80 has left #ruby-lang [#ruby-lang]
19:02
dalegribble80 has joined #ruby-lang
19:03
arooni-mobile has joined #ruby-lang
19:03
xcess_denied has quit [Quit: Leaving...]
19:03
Cakey has quit [Ping timeout: 252 seconds]
19:05
bryanl has joined #ruby-lang
19:07
momomomomo has joined #ruby-lang
19:08
CoreData has joined #ruby-lang
19:10
lun__ has joined #ruby-lang
19:12
havenwood has joined #ruby-lang
19:13
diegoviola has quit [Ping timeout: 248 seconds]
19:13
Coincidental has quit [Remote host closed the connection]
19:13
<
zirconcode >
why do flatten! and uniq! return nil if no changes were made, instead of the result?
19:13
Coincidental has joined #ruby-lang
19:14
mistym_ has joined #ruby-lang
19:15
lun__ has quit [Ping timeout: 265 seconds]
19:16
loincloth has quit [Remote host closed the connection]
19:16
dalegribble80 has quit [Quit: leaving]
19:16
<
yorickpeterse >
because no changes were made?
19:16
<
zirconcode >
but then I can't do array.uniq!.flatten!
19:17
<
yorickpeterse >
then do `array = array.uniq.flatten` ?
19:17
<
yorickpeterse >
there's nothing wrong with that
19:18
Coincide_ has joined #ruby-lang
19:18
<
zirconcode >
it's a bit longer =p
19:18
<
ljarvis >
it's easier to read
19:18
Coincidental has quit [Ping timeout: 272 seconds]
19:18
<
ljarvis >
put it inside a method that just does that, then it's even shorter
19:19
mistym_ has quit [Ping timeout: 252 seconds]
19:19
<
zirconcode >
maybe I'll do that =D
19:20
<
zirconcode >
is there a name for the act of compressing two methods into one until you are left with only one?
19:20
<
zirconcode >
recursively, for the entire program
19:20
<
ljarvis >
not sure i follow
19:20
<
yorickpeterse >
wat
19:20
<
ljarvis >
well put yorick
19:21
<
zirconcode >
I'm a bit tired >_>
19:22
<
yorickpeterse >
do you mean the actual source code of a method?
19:22
<
yorickpeterse >
or the data it spits out when called?
19:22
cored has quit [Ping timeout: 272 seconds]
19:23
<
epitron >
it sounds like he's talking about DRY
19:23
<
epitron >
except at an insane level
19:23
<
zirconcode >
yes, that explains it
19:23
<
ljarvis >
no it doesn't
19:23
MaddinXx_ has quit [Remote host closed the connection]
19:23
<
epitron >
implicit: it sounds to me like...
19:23
<
zirconcode >
hmm, so if you were to refactor your code into so many tiny methods until in the end you just have one left to call
19:24
<
ljarvis >
dat method overhead
19:24
loincloth has joined #ruby-lang
19:24
<
ljarvis >
but that's basically how all ruby programs work already
19:24
<
epitron >
zirconcode: you mean, you have many methods, but only one method as an entry point?
19:24
<
ljarvis >
look at IRB.start, Nokogiri.HTML etc
19:25
<
epitron >
it sounded like he was talking about reducing everything down to one method
19:26
<
ljarvis >
"many tiny methods"
19:26
<
zirconcode >
yes many tiny methods, but tiny tiny like 2 line tiny
19:26
<
ljarvis >
so yeah what you said the first time epitron
19:26
<
ljarvis >
zirconcode: that's how everyone should write ruby
19:26
<
epitron >
rails likes to decompose everything into 2 line methods
19:26
<
ljarvis >
3 lines and less per method
19:27
<
zirconcode >
I must have gotten ruby "englightened" =p
19:27
<
epitron >
that might be too DRY to be able to read
19:28
<
epitron >
sometimes the code is a better descriptor than the name of the method
19:28
CoreData has quit [Ping timeout: 260 seconds]
19:28
<
zirconcode >
so you can actually go too DRY?
19:28
<
ljarvis >
i agree on a certain level, but in general keep methods that small is a great idea
19:29
<
epitron >
yeah. you just don't wanna overdo it
19:29
<
epitron >
like every rule, you have to know why it exists, and when to break it
19:31
<
zirconcode >
hmm, wish there were a rule of thumb for that
19:31
<
ljarvis >
there can't be
19:31
<
ljarvis >
because it depends on what you're writing
19:32
<
epitron >
the rule of thumb is to "know why every rule exists, and when to break it"
19:32
<
epitron >
of course, that rule of thumb has to be broken too
19:32
sevvie has quit [Read error: Connection reset by peer]
19:32
<
epitron >
there's no way you can know why every rule exists!
19:32
<
epitron >
god so many rules!
19:33
arooni-mobile has quit [Ping timeout: 248 seconds]
19:34
<
zirconcode >
is there a good book on this?
19:34
albioner has joined #ruby-lang
19:34
elia has joined #ruby-lang
19:38
albioner has quit [Ping timeout: 240 seconds]
19:39
<
ljarvis >
zirconcode: not really
19:39
<
ljarvis >
not this specifically
19:39
<
ljarvis >
i wouldn't be overly concerned about it
19:39
<
ljarvis >
you'll know when you need to clean up your code
19:39
robonerd has joined #ruby-lang
19:40
kek has joined #ruby-lang
19:40
rwk1 has quit [Remote host closed the connection]
19:40
rwk1 has joined #ruby-lang
19:42
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:43
albioner has joined #ruby-lang
19:44
vbatts has joined #ruby-lang
19:45
rwk1 has quit [Ping timeout: 246 seconds]
19:45
kek has quit [Ping timeout: 264 seconds]
19:45
albioner has quit [Client Quit]
19:45
Kabaka has joined #ruby-lang
19:47
cnivolle has quit [Read error: Connection reset by peer]
19:47
cnivolle has joined #ruby-lang
19:49
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:54
ninetyw has joined #ruby-lang
19:54
lun__ has joined #ruby-lang
19:55
<
zirconcode >
ninetyw: hello
19:56
<
ninetyw >
hey is there an equivalent in rb like perl -wT & perldoc cmd?
19:56
<
ninetyw >
tried ri but it says no more info this would mean that
19:56
<
ninetyw >
its simply not there..
19:57
relix has joined #ruby-lang
19:57
<
ninetyw >
any suggestions TIA
19:57
<
yorickpeterse >
re tiny methods
19:57
<
yorickpeterse >
that's dumb as hell
19:57
<
sluukkonen >
compressing many methods into one sounds like inlining (but that's generally a thing best left to a compiler)
19:58
<
yorickpeterse >
Doubt it would make much of a difference in Ruby either
19:58
charlespeach has joined #ruby-lang
19:59
<
sluukkonen >
(although I'm not sure about what 'compressing' means in this context)
19:59
momomomomo has quit [Quit: momomomomo]
19:59
Cakey has joined #ruby-lang
19:59
judofyr has joined #ruby-lang
20:00
<
zirconcode >
well I'm on the same page now XD
20:00
<
ninetyw >
guess not.. ri class+methods does not return anything to stdout
20:01
<
ninetyw >
not trying to start lang war just trying to know where
20:01
<
ninetyw >
equiv are if any for development. TIA
20:03
turnip has quit [Ping timeout: 244 seconds]
20:03
Cakey has quit [Ping timeout: 252 seconds]
20:04
<
ninetyw >
&& ruby -rdebug
__FILE__ does equiv to perl -wT
__FILE__
20:04
<
judofyr >
ninetyw: we have no idea what perl -wT does…
20:04
pr0ton has joined #ruby-lang
20:04
<
ninetyw >
its nice to quickly tell if you screwed up the class you
20:05
<
ninetyw >
just wrote..:)
20:05
<
judofyr >
-w is warn, -T is?
20:05
<
ninetyw >
T is taint mode
20:05
<
zirconcode >
I guess you could use irb to play around with the class?
20:05
<
ninetyw >
yeah -w is warn .. is nice to know from the compiler
20:06
<
ninetyw >
what is correct or not like ..
20:06
<
judofyr >
you can use `ruby -c __FILE__` to see if the syntax is correct
20:06
<
judofyr >
you can also just `ruby __FILE__` to see if it loads/runs correctly
20:06
<
ninetyw >
/some/path/perl -wT
__FILE__ tells me ok thanks!
20:08
<
judofyr >
just use `ruby __FILE__` for Ruby classes. the warnings you get from -w in Ruby isn't that helpful for detecting bugs, and taints aren't used much in Ruby
20:09
bruno- has quit [Ping timeout: 246 seconds]
20:10
<
ninetyw >
THX! going to zZZzz
20:11
rwk1 has joined #ruby-lang
20:11
<
ninetyw >
forgot to ask this too! Is there an equivalent to CPAN?
20:11
<
judofyr >
it ships with Ruby
20:12
<
judofyr >
`gem install rails` should just work
20:12
<
judofyr >
ninetyw: it's similar to Carton in Perl (if you've seen it)
20:12
rwk1 has quit [Read error: Connection reset by peer]
20:13
<
ninetyw >
i know only one stream allowed! yeah been there.. guess its gonna be a big friend..
20:13
rwk1 has joined #ruby-lang
20:13
momomomomo has joined #ruby-lang
20:14
dingus_khan has joined #ruby-lang
20:14
<
ninetyw >
kidding..
20:14
ldnunes has quit [Quit: Leaving]
20:14
vlad_starkov has joined #ruby-lang
20:15
tenderlove has quit [Remote host closed the connection]
20:15
vbatts|work has left #ruby-lang ["MeSoChatty 0.3.8"]
20:15
cnivolle has quit [Remote host closed the connection]
20:15
benanne has joined #ruby-lang
20:15
cnivolle has joined #ruby-lang
20:16
vsorlov has quit [Ping timeout: 248 seconds]
20:16
havenwood has quit [Ping timeout: 268 seconds]
20:17
nisstyre has joined #ruby-lang
20:17
VTLob has joined #ruby-lang
20:17
thelorax1231 has quit [Remote host closed the connection]
20:17
rwk1 has quit [Ping timeout: 252 seconds]
20:18
thelorax123 has joined #ruby-lang
20:18
CoreData has joined #ruby-lang
20:19
lun__ has quit [Ping timeout: 244 seconds]
20:20
cnivolle has quit [Ping timeout: 252 seconds]
20:21
<
judofyr >
hi yorickpeterse. how's it going?
20:21
<
yorickpeterse >
<CTO> I think we have another pet project
20:21
<
yorickpeterse >
<me>
*another* one?
20:21
<
yorickpeterse >
just another day at the office I guess
20:21
<
yorickpeterse >
judofyr: good good
20:21
<
yorickpeterse >
judofyr: how's science?
20:21
<
judofyr >
yorickpeterse: mathy
20:21
<
yorickpeterse >
I feelz ya bra
20:21
havenwood has joined #ruby-lang
20:22
nisstyre has quit [Disconnected by services]
20:22
lun__ has joined #ruby-lang
20:22
nisstyre has joined #ruby-lang
20:23
<
judofyr >
today's challenge: integrate 1/(e^(2x)+4e^x+13)
20:23
<
judofyr >
but I fucked up somewhere :(
20:23
solars has quit [Ping timeout: 272 seconds]
20:24
cnivolle has joined #ruby-lang
20:25
bruno- has joined #ruby-lang
20:25
<
yorickpeterse >
>> 1/(e^(2x)+4e^x+13)
20:25
<
eval-in >
yorickpeterse => /tmp/execpad-f899177992c4/source-f899177992c4:2: syntax error, unexpected tIDENTIFIER, expecting ')' ... (
https://eval.in/68236)
20:25
<
yorickpeterse >
bah
20:25
charlespeach has left #ruby-lang [#ruby-lang]
20:25
<
judofyr >
I think SymPy actually can solve it
20:26
<
yorickpeterse >
Hm, I still have some $WORK code to open sauce
20:28
<
judofyr >
I have some $WORK I should do
20:29
solars has joined #ruby-lang
20:29
dingus_khan has quit [Remote host closed the connection]
20:30
dingus_khan has joined #ruby-lang
20:34
vsorlov has joined #ruby-lang
20:34
dingus_khan has quit [Ping timeout: 244 seconds]
20:34
symm- has joined #ruby-lang
20:35
<
yorickpeterse >
pfff, slacker
20:36
cored has joined #ruby-lang
20:36
cored has quit [Changing host]
20:36
cored has joined #ruby-lang
20:40
kek has joined #ruby-lang
20:41
rwk1 has joined #ruby-lang
20:43
symm- has quit [Quit: Leaving...]
20:44
pr0ton has quit [Quit: pr0ton]
20:45
jackhammer2022 has joined #ruby-lang
20:45
rwk1 has quit [Ping timeout: 246 seconds]
20:46
kek has quit [Ping timeout: 272 seconds]
20:48
iliketurtles has quit [Quit: zzzzz…..]
20:48
vsorlov has quit [Ping timeout: 246 seconds]
20:51
symm- has joined #ruby-lang
20:51
lmadrigal has joined #ruby-lang
20:54
achru has joined #ruby-lang
20:54
momomomomo has quit [Quit: momomomomo]
20:57
<
yorickpeterse >
ugh, rubygems
20:57
<
yorickpeterse >
doesn't seem to be a way to make this code faster unless I take out RubyGems
20:57
<
yorickpeterse >
which isn't really an option
20:57
<
judofyr >
startup time?
20:57
symm- has quit [Read error: No route to host]
20:57
symm- has joined #ruby-lang
20:57
<
judofyr >
you can setup the load path yourself
20:57
<
judofyr >
if you know your dependencies
20:58
<
yorickpeterse >
I have some Gems/stdlib stuff that I load, can't fuck around with that
20:58
<
yorickpeterse >
and RubyGems is still loaded no matter what
20:58
atrocitas has joined #ruby-lang
20:58
<
judofyr >
but is it loading RubyGems or loading gems under RubyGems that's slow?
20:59
vlad_sta_ has joined #ruby-lang
20:59
<
judofyr >
and you can disable rubygems: ruby --disable-gems
21:00
<
yorickpeterse >
loading gems under RubyGems by the looks of it
21:02
vlad_starkov has quit [Ping timeout: 244 seconds]
21:03
<
yorickpeterse >
ruby-lints min bootup time is around 250 ms, I'd like to get that down by 100ms or so
21:03
<
yorickpeterse >
but it looks that that will be impossible
21:04
<
yorickpeterse >
* like that
21:04
ecnalyr has quit [Ping timeout: 245 seconds]
21:04
bahar has quit [Ping timeout: 252 seconds]
21:05
mistym is now known as mistym_lunch
21:06
atrocitas has quit [Remote host closed the connection]
21:06
michael_mbp is now known as zz_michael_mbp
21:07
benwoody has quit [Quit: benwoody]
21:07
yfeldblum has quit [Remote host closed the connection]
21:08
zirconcode has quit [Ping timeout: 250 seconds]
21:09
workmad3 has joined #ruby-lang
21:09
bahar has joined #ruby-lang
21:09
atrocitas has joined #ruby-lang
21:12
pr0ton has joined #ruby-lang
21:14
mistym has joined #ruby-lang
21:14
bahar has quit [Ping timeout: 268 seconds]
21:16
bahar has joined #ruby-lang
21:17
yfeldblum has joined #ruby-lang
21:18
<
judofyr >
yorickpeterse: that's probably the fastest way you can load gems
21:18
yfeldblu_ has joined #ruby-lang
21:19
<
judofyr >
although it has to be generated for single installation
21:19
alekst has joined #ruby-lang
21:20
<
yorickpeterse >
also lol for ruby-prof and perftools.rb giving different profiling results
21:20
<
yorickpeterse >
very helpful
21:20
<
judofyr >
you could also compare with `bundle exec …`
21:20
CoreData has quit [Ping timeout: 248 seconds]
21:20
<
judofyr >
that might speed things up
21:21
cnivolle has quit []
21:21
Coincide_ has quit [Remote host closed the connection]
21:22
Coincidental has joined #ruby-lang
21:22
yfeldblum has quit [Ping timeout: 240 seconds]
21:23
<
yorickpeterse >
this is a Gem, so bundle exec wouldn't help
21:23
havenwood has quit [Remote host closed the connection]
21:24
MaddinXx_ has joined #ruby-lang
21:24
mikecmpbll has joined #ruby-lang
21:24
scampbell has quit [Remote host closed the connection]
21:25
bahar has quit [Changing host]
21:25
bahar has joined #ruby-lang
21:25
SteveBenner9 has joined #ruby-lang
21:25
loincloth has quit [Remote host closed the connection]
21:25
<
yorickpeterse >
well, lets see if I first can get rid of some file/disk ops, since I am pretty blunt on the use of Dir.glob
21:25
vladgh has joined #ruby-lang
21:26
Coincidental has quit [Ping timeout: 244 seconds]
21:28
<
judofyr >
yorickpeterse: hm. also: Kernel#gem_original_require is the Kernel#require that ships with Ruby. so you can't optimize that any further.
21:28
MaddinXx_ has quit [Ping timeout: 246 seconds]
21:29
loincloth has joined #ruby-lang
21:30
<
yorickpeterse >
yeah
21:30
Oloryn_lt2 has quit [Read error: Connection reset by peer]
21:33
vladgh has quit [Ping timeout: 260 seconds]
21:33
Coincidental has joined #ruby-lang
21:33
macmartine has quit [Remote host closed the connection]
21:34
workmad3 has quit [Ping timeout: 244 seconds]
21:34
macmartine has joined #ruby-lang
21:35
<
judofyr >
yorickpeterse: I wonder if it's possible to build a C-extension that includes all of the source files compiled to bytecode already
21:35
kurko__ has joined #ruby-lang
21:36
ecnalyr has joined #ruby-lang
21:36
<
judofyr >
and then hook into require and require_relative to load the bundled bytecode
21:36
<
judofyr >
instead of doing file ops
21:36
kurko_ has quit [Ping timeout: 246 seconds]
21:37
lun__ has quit [Remote host closed the connection]
21:37
lun__ has joined #ruby-lang
21:38
charliesome has joined #ruby-lang
21:38
<
charliesome >
judofyr: i've done this
21:38
<
judofyr >
charliesome: IRCing from ~root?
21:38
iliketurtles has joined #ruby-lang
21:38
<
judofyr >
that sounds hardcode
21:38
<
judofyr >
"22:38 charliesome has joined (~root@GITHUB-INC.bar1.SanFrancisco1.Level3.net)"
21:39
<
judofyr >
charliesome: oh. cool. did it work?
21:39
Oloryn_lt2 has joined #ruby-lang
21:39
<
charliesome >
judofyr: yep
21:39
<
judofyr >
did it speed up things?
21:39
macmartine has quit [Remote host closed the connection]
21:39
<
charliesome >
very well
21:39
<
charliesome >
wasn't doing it for the perf
21:39
tenderlove has joined #ruby-lang
21:39
macmartine has joined #ruby-lang
21:39
<
charliesome >
but it works
21:39
<
ddfreyne >
I always run my IRC client in kernel space
21:39
<
judofyr >
for creating a single binary?
21:40
<
charliesome >
judofyr: I haven't tried that
21:40
<
charliesome >
but it would be worthwhile i think
21:40
<
judofyr >
charliesome: then why did you do it? :S
21:40
<
charliesome >
compile all bytecode into a single thing
21:40
<
charliesome >
patch require to hit up precompiled bytecode first
21:40
<
judofyr >
I was thinking doing it mostly for perf
21:40
<
judofyr >
and integrating it with Bundler
21:41
<
charliesome >
it'd be interesting
21:41
rwk1 has joined #ruby-lang
21:41
nigerianceo has quit []
21:41
kek has joined #ruby-lang
21:42
<
judofyr >
e.g: `bundle bigbundle` will create a big bundle with all gems. together with the SHA1 of the lockfile so it updates correctly.
21:42
<
yorickpeterse >
omg static binaries
21:42
<
ddfreyne >
I like big bundles and I cannot lie
21:42
lun__ has quit [Ping timeout: 252 seconds]
21:42
<
judofyr >
you won't get static binaries for free though
21:42
<
judofyr >
many gems load static files as well (templates)
21:42
<
judofyr >
so you'll have to hook File#open and friends as well
21:42
Oloryn_lt2 has quit [Read error: Connection reset by peer]
21:42
<
judofyr >
(or maybe you can do it on the C-level)
21:43
Oloryn_lt2 has joined #ruby-lang
21:43
<
judofyr >
but for `bundle bigbundle` it should be fine. you'll get a big bundle that will also access the installed gems.
21:43
<
judofyr >
charliesome: isn't there a private method for loading iseq?
21:44
<
judofyr >
or was that only Array-to-ISEQ
21:44
<
judofyr >
yeah, I think I'm thinking about the array-to-iseq now
21:44
<
judofyr >
but I imagine loading an iseq would be rather trivial? except for the "private API" part?
21:44
<
judofyr >
anyway, gotta go
21:45
<
judofyr >
I'll catch up on irclog later
21:45
judofyr has quit []
21:45
nigerianceo has joined #ruby-lang
21:45
elia has quit [Quit: Computer has gone to sleep.]
21:46
rwk1 has quit [Ping timeout: 246 seconds]
21:46
kek has quit [Ping timeout: 252 seconds]
21:46
mistym_ has joined #ruby-lang
21:47
<
charliesome >
judofyr: rb_iseq_load
21:47
<
charliesome >
it loads the result of RubyVM::InstructionSequence#to_a
21:47
<
charliesome >
and it actually works well
21:48
<
charliesome >
the reason it's not exposed through to rubyland is that there's no verifier yet
21:49
mistym has quit [Ping timeout: 264 seconds]
21:49
crankharder has quit [Ping timeout: 252 seconds]
21:50
musty has joined #ruby-lang
21:51
Oloryn_lt2 has quit [Read error: Connection reset by peer]
21:51
nisstyre has quit [Quit: Leaving]
21:51
benwoody has joined #ruby-lang
21:52
cored has quit [Ping timeout: 264 seconds]
21:52
<
yorickpeterse >
HAHA WHAT THE FUCK
21:52
<
yorickpeterse >
using String#include? vs a regexp is almost 2x faster
21:53
<
yorickpeterse >
(combined with caching results of Dir.glob)
21:53
<
yorickpeterse >
lets see if my benchmark confirms this
21:53
benwoody has quit [Client Quit]
21:54
<
lianj >
yorickpeterse: well, what did you expect
21:54
<
yorickpeterse >
Actually I expected String#include? to be in the similar performance area
21:55
<
lianj >
strcmp vs regexp
21:55
<
yorickpeterse >
So for 100 iterations it used to take 1,347707s average, using a Dir.glob cache + regexp turned this into 1,695873s
21:55
<
yorickpeterse >
using String#include? this is....
21:55
<
yorickpeterse >
gah wtf, 1.661909s
21:56
<
yorickpeterse >
though the maximum is way lower
21:56
* yorickpeterse
cranks out gnuplot
21:56
kurko_ has joined #ruby-lang
21:57
<
charliesome >
yorickpeterse: who would've thought that powerful general purpose tools are slower than a highly specific tool
21:58
<
yorickpeterse >
hmmm...I can taste the smugness in this channel
21:58
nXqd has joined #ruby-lang
21:59
kurko__ has quit [Ping timeout: 264 seconds]
22:01
rickhull1 has joined #ruby-lang
22:03
nXqd has quit [Ping timeout: 264 seconds]
22:04
thang has joined #ruby-lang
22:07
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
22:08
slyphon has quit [Ping timeout: 272 seconds]
22:08
<
yorickpeterse >
hm dang it, seems spamming the disk with Dir.globs is still faster
22:09
mistym_ has quit [Remote host closed the connection]
22:11
<
whitequark >
disk cache is a thing
22:12
kurko__ has joined #ruby-lang
22:13
albioner has joined #ruby-lang
22:13
tenderlove has quit [Ping timeout: 272 seconds]
22:14
atrocitas has quit [Remote host closed the connection]
22:14
kurko_ has quit [Ping timeout: 260 seconds]
22:14
<
yorickpeterse >
oh neat, got it down to 1,153285s
22:15
<
yorickpeterse >
(by using a different cache setup)
22:16
guns has quit [Quit: guns]
22:16
thelorax123 has quit [Remote host closed the connection]
22:17
<
yorickpeterse >
oh heh, found another glob
22:17
thelorax123 has joined #ruby-lang
22:19
dorei has joined #ruby-lang
22:19
dingus_khan has joined #ruby-lang
22:19
epichero has joined #ruby-lang
22:22
tenderlove has joined #ruby-lang
22:22
dingus_khan has quit [Remote host closed the connection]
22:22
dingus_khan has joined #ruby-lang
22:23
RickHull has quit [Quit: Leaving.]
22:23
mistym_lunch is now known as mistym
22:24
dingus_k_ has joined #ruby-lang
22:24
dingus_khan has quit [Read error: Connection reset by peer]
22:24
<
yorickpeterse >
dayum, there goes 440ms
22:26
ikrima has quit [Quit: Computer has gone to sleep.]
22:27
momomomomo has joined #ruby-lang
22:28
vlad_starkov has joined #ruby-lang
22:29
cored has joined #ruby-lang
22:29
iliketurtles has quit [Quit: zzzzz…..]
22:30
vlad_sta_ has quit [Ping timeout: 244 seconds]
22:31
MaddinXx_ has joined #ruby-lang
22:31
MaddinXx_ has quit [Remote host closed the connection]
22:32
__butch__ has quit [Quit: Leaving.]
22:33
__butch__ has joined #ruby-lang
22:39
macmartine has quit [Remote host closed the connection]
22:39
iliketurtles has joined #ruby-lang
22:41
rwk1 has joined #ruby-lang
22:41
__butch__ has quit [Quit: Leaving.]
22:41
vlad_sta_ has joined #ruby-lang
22:42
kek has joined #ruby-lang
22:44
pw3 has joined #ruby-lang
22:44
vlad_starkov has quit [Ping timeout: 252 seconds]
22:46
rwk1 has quit [Ping timeout: 264 seconds]
22:47
kek has quit [Ping timeout: 260 seconds]
22:52
vlad_sta_ has quit [Remote host closed the connection]
22:53
VTLob has quit [Quit: VTLob]
22:53
itsraining has quit [Quit: itsraining]
22:53
lmadrigal has joined #ruby-lang
22:56
Raycaster has quit [Quit: Leaving.]
22:57
pw3 has quit [Quit: Page closed]
22:57
yfeldblu_ has quit [Remote host closed the connection]
22:58
Coincidental has quit [Remote host closed the connection]
22:58
momomomomo has quit [Quit: momomomomo]
22:58
Coincidental has joined #ruby-lang
23:00
turnip has joined #ruby-lang
23:00
mdedetrich has joined #ruby-lang
23:01
yfeldblu_ has joined #ruby-lang
23:01
mdedetrich has quit [Client Quit]
23:03
Coincidental has quit [Ping timeout: 268 seconds]
23:04
jxpx777 has joined #ruby-lang
23:05
dingus_k_ has quit [Read error: Connection reset by peer]
23:05
dingus_khan has joined #ruby-lang
23:06
jackhammer2022 has joined #ruby-lang
23:08
MrZYX is now known as MrZYX|off
23:09
datanoise has quit [Ping timeout: 272 seconds]
23:11
Coincidental has joined #ruby-lang
23:12
bf4_ has joined #ruby-lang
23:13
itsraining has joined #ruby-lang
23:14
micalexander has quit []
23:15
bf4 has quit [Ping timeout: 260 seconds]
23:16
bjh13 has quit [Quit: leaving]
23:17
nathanstitt has quit [Quit: I growing sleepy]
23:18
bf4_ has quit [Ping timeout: 246 seconds]
23:19
dbck_ has joined #ruby-lang
23:20
charlespeach has joined #ruby-lang
23:20
benwoody has joined #ruby-lang
23:21
Tearan has joined #ruby-lang
23:21
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
23:21
charlespeach has quit [Client Quit]
23:22
loincloth has quit [Remote host closed the connection]
23:22
kitak has joined #ruby-lang
23:22
vlad_starkov has joined #ruby-lang
23:23
dbck_ has quit [Quit: Bye bye.]
23:23
dbck has joined #ruby-lang
23:23
nigerianceo has quit []
23:23
earthquake has joined #ruby-lang
23:24
mikecmpbll has joined #ruby-lang
23:25
dbck has quit [Client Quit]
23:26
dingus_khan has quit [Remote host closed the connection]
23:26
MrZYX|off is now known as MrZYX
23:26
dingus_khan has joined #ruby-lang
23:27
retro|cz has joined #ruby-lang
23:28
charlespeach has joined #ruby-lang
23:29
cored has quit [Ping timeout: 272 seconds]
23:29
Oloryn_lt2 has joined #ruby-lang
23:29
breakingthings has quit []
23:30
macmartine has joined #ruby-lang
23:31
hogeo has quit [Ping timeout: 248 seconds]
23:31
dingus_khan has quit [Read error: Connection reset by peer]
23:31
dingus_khan has joined #ruby-lang
23:32
yfeldblu_ has quit [Remote host closed the connection]
23:32
itsraining has quit [Quit: itsraining]
23:33
yfeldblum has joined #ruby-lang
23:34
joschi has quit [Read error: Operation timed out]
23:34
joschi has joined #ruby-lang
23:36
kurko__ has quit [Ping timeout: 272 seconds]
23:38
lun__ has joined #ruby-lang
23:39
datanoise has joined #ruby-lang
23:40
pothibo has joined #ruby-lang
23:41
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:41
rwk1 has joined #ruby-lang
23:42
earthquake has quit [Quit: earthquake]
23:42
lun__ has quit [Ping timeout: 264 seconds]
23:42
lmadrigal has quit [Quit: Computer has gone to sleep.]
23:43
kek has joined #ruby-lang
23:43
dingus_khan has quit [Remote host closed the connection]
23:43
lupine has quit [Quit: If you see this, my dogfood was poisoned]
23:43
dingus_khan has joined #ruby-lang
23:44
kurko_ has joined #ruby-lang
23:46
rwk1 has quit [Ping timeout: 251 seconds]
23:46
yfeldblu_ has joined #ruby-lang
23:47
kek has quit [Ping timeout: 265 seconds]
23:48
dingus_khan has quit [Ping timeout: 252 seconds]
23:48
bradsmith has quit [Remote host closed the connection]
23:48
snafoo has quit [Ping timeout: 272 seconds]
23:49
bradsmith has joined #ruby-lang
23:49
macmartine has quit [Read error: Connection reset by peer]
23:49
macmartine has joined #ruby-lang
23:49
Tearan has quit [Quit: Sleepy Badger....]
23:49
Onixs has quit [Max SendQ exceeded]
23:50
Onixs has joined #ruby-lang
23:50
Onixs has quit [Max SendQ exceeded]
23:50
Onixs has joined #ruby-lang
23:50
yfeldblum has quit [Ping timeout: 272 seconds]
23:51
cored has joined #ruby-lang
23:51
cored has quit [Changing host]
23:51
cored has joined #ruby-lang
23:51
Onixs has quit [Max SendQ exceeded]
23:51
Onixs has joined #ruby-lang
23:52
Onixs has quit [Max SendQ exceeded]
23:52
Onixs has joined #ruby-lang
23:53
Onixs has quit [Max SendQ exceeded]
23:53
zz_michael_mbp is now known as michael_mbp
23:53
Onixs has joined #ruby-lang
23:53
solars has quit [Quit: WeeChat 0.4.1]
23:53
bradsmith has quit [Ping timeout: 252 seconds]
23:53
Onixs has quit [Max SendQ exceeded]
23:54
nisstyre has joined #ruby-lang
23:54
tenderlo_ has joined #ruby-lang
23:54
Onixs has joined #ruby-lang
23:54
macmartine has quit [Ping timeout: 252 seconds]
23:54
vlad_starkov has quit [Read error: Connection reset by peer]
23:56
cored has quit [Ping timeout: 252 seconds]
23:56
tenderlove has quit [Ping timeout: 264 seconds]
23:56
Raycaster has joined #ruby-lang
23:59
nisstyre has quit [Ping timeout: 244 seconds]