00:01
segy has quit [Quit: leaving]
00:02
rhalff has quit [Ping timeout: 248 seconds]
00:03
cored has quit [Ping timeout: 248 seconds]
00:06
banisterfiend has quit [Remote host closed the connection]
00:06
coryf has joined #ruby-lang
00:06
banisterfiend has joined #ruby-lang
00:07
igotnolegs has joined #ruby-lang
00:10
banisterfiend has quit [Ping timeout: 246 seconds]
00:15
cored has joined #ruby-lang
00:15
cored has quit [Changing host]
00:15
cored has joined #ruby-lang
00:15
dfr|mac has quit [Remote host closed the connection]
00:18
cored has quit [Client Quit]
00:18
chutwig has quit [Quit: Computer has gone to sleep.]
00:20
jtoy has quit [Quit: jtoy]
00:24
banisterfiend has joined #ruby-lang
00:24
coryf has quit [Remote host closed the connection]
00:31
tenderlove has joined #ruby-lang
00:32
yugui_zzz is now known as yugui
00:32
jperry2 has joined #ruby-lang
00:32
<
richardjortega >
anyone here use ruby CSV?
00:35
outoftime has joined #ruby-lang
00:35
<
mistym >
richardjortega: A few times, yeah.
00:35
<
richardjortega >
i'm kinda new to ruby so hopefully it's an easy question
00:36
<
richardjortega >
i have a rails app, my script is under app/lib/jobs/parser.rb
00:36
<
richardjortega >
when i use CSV.open("generic_filename.csv", "wb") everything works
00:36
<
richardjortega >
but the file goes to my app root directory
00:37
GarethAdams has quit [Quit: Leaving...]
00:49
seanstickle has joined #ruby-lang
00:50
<
cantonic >
hey guys. i wanted to write my first gui app. i thought using Shoes would be best, but I get errors on mac and don't really like the functionality. I have to write code, save it, then load it in shoes. That's very time-consuming. There are other frameworks out there for ruby, but i cannot decide on which to use
00:50
<
cantonic >
mistym: hi there btw :)
00:50
<
mistym >
cantonic: Hey!
00:51
<
seanstickle >
I have a great GUI toolkit that seems to work everywhere cross-platform and good performance.
00:51
<
cantonic >
seanstickle: which one is it?
00:51
<
seanstickle >
HTML + JS + Ruby
00:51
<
cantonic >
seanstickle: cross-platform is very important to me
00:51
<
seanstickle >
Works great
00:52
<
mistym >
richardjortega: Sorry, missed that. Are you trying to save somewhere else?
00:52
msaffitz has quit [Quit: Computer has gone to sleep.]
00:52
<
cantonic >
seanstickle: i get "ERROR: Could not find a valid gem 'HTML + JS + Ruby' (>= 0) in any repository" :D :D
00:52
<
seanstickle >
I package it up, people install it, run it, the server runs on their local machine, and it fires up a browser
00:53
<
cantonic >
seanstickle: for web apps of course, but i need to write some small apps that need to be executables
00:53
<
richardjortega >
trying to store in "lib/jobs/exports/filename.csv" (which may not be a created file at the tim)
00:53
<
seanstickle >
cantonic: these are small executable apps
00:53
<
seanstickle >
cantonic: I write them in Sinatra, typically, and package them for different platforms
00:53
<
cantonic >
seanstickle: how do you package it up?
00:53
ryanf has joined #ruby-lang
00:53
yugui is now known as yugui_zzz
00:54
<
seanstickle >
Debian debs for Linux, WISE (I think) for Windows, and the standard MacRuby packager for Mac.
00:54
<
mistym >
If you pass a relative path it'll save to wherever Dir.pwd is - not where the script file is. You should include the appropriate path components in the filename, e.g. CSV.open("lib/jobs/exports/filename.csv")
00:55
<
cantonic >
seanstickle: isn't it a workaround to write a sinatra/padrino/rails app and compile it together with the webserver etc?
00:56
<
seanstickle >
cantonic: webrick is pretty easy to package
00:56
<
richardjortega >
i'll try mistym
00:56
<
seanstickle >
cantonic: and it's not really a workaround, so much as it is a working app.
00:57
<
cantonic >
seanstickle: can the application do everything on the system like creating or changing local files?
00:57
<
seanstickle >
It's running ON the system. So yes.
00:59
<
seanstickle >
I am writing a little app to manage Vim plugins that uses this model.
00:59
<
seanstickle >
It works right nice.
01:00
<
cantonic >
seanstickle: thank you for the idea :)
01:01
<
seanstickle >
Sure thing
01:01
<
seanstickle >
Plus! You don't have to learn Obscure GUI Framework #14
01:02
<
richardjortega >
mistym thanks for the help that worked
01:02
<
richardjortega >
i was confused that it needed to be path to file and the directory needed to already exist
01:02
<
cantonic >
right. you can concentrate on working on your html skills instead
01:02
<
cantonic >
seanstickle: that's fantastic
01:03
gix has quit [Ping timeout: 248 seconds]
01:05
Leeky is now known as Leeky_afk
01:05
<
cantonic >
seanstickle: i am teaching two friends ruby. they are beginners. do you think it would confuse them learning sinatra PLUS rails?
01:06
<
seanstickle >
cantonic: I might advise starting with just one
01:06
<
seanstickle >
cantonic: rather than both at the same time
01:06
<
cantonic >
seanstickle: then i should teach them rails i think
01:07
<
seanstickle >
cantonic: Sinatra has the benefit of being easy, and then Rails takes that to a more powerful place.
01:07
<
seanstickle >
But I can see the argument for the reverse as well.
01:07
<
seanstickle >
Coin flip I guess
01:07
<
rking >
Some of that kind of question depends on how internally motivated they are.
01:07
<
cantonic >
yeah. i just thought rails would fit better to them since they will have to deal a lot with redmine in future
01:07
gix has joined #ruby-lang
01:07
<
rking >
Most people should learn programming doing really rewarding stuff, I think.
01:07
<
cantonic >
and they started learning ruby because of rails :)
01:07
<
seanstickle >
cantonic: Redmine is Rails 2 I think, right?
01:07
<
seanstickle >
Which makes it the worst of both worlds.
01:08
<
seanstickle >
Not current Rails, not Sinatra.
01:08
<
rking >
seanstickle: Uhh, no. Redmine has depended on Rails 3 for several versions.
01:09
<
rking >
(Though, I don't know if they fully use the 3'ish idioms or not)
01:09
<
seanstickle >
rking: ah, good
01:09
<
seanstickle >
rking: the place I was working was using some shite old version then
01:09
<
cantonic >
seanstickle: yeah, they just brought out a new version
01:09
<
cantonic >
i didn't work with redmine for long when it was Rails 2 only
01:12
clam has joined #ruby-lang
01:12
<
mistym >
richardjortega: No problem!
01:15
perry is now known as perryh_away
01:15
JoshWines has quit [Ping timeout: 246 seconds]
01:19
stardiviner has joined #ruby-lang
01:22
VGoff_afk is now known as VGoff
01:23
setmeaway has joined #ruby-lang
01:25
byronb has quit [Ping timeout: 255 seconds]
01:28
JoshWines has joined #ruby-lang
01:30
RORgasm has joined #ruby-lang
01:33
bglusman_ has joined #ruby-lang
01:34
jperry2 has quit [Quit: jperry2]
01:34
RORgasm has quit [Ping timeout: 246 seconds]
01:35
M4g1c5t0rM has quit [Ping timeout: 246 seconds]
01:35
bglusman has quit [Ping timeout: 265 seconds]
01:51
jtoy has joined #ruby-lang
01:52
lsegal` has joined #ruby-lang
01:53
lsegal` has quit [Client Quit]
01:56
lsegal has joined #ruby-lang
01:56
banisterfiend has quit [Remote host closed the connection]
01:57
seanstickle has quit [Quit: seanstickle]
01:58
banisterfiend` has joined #ruby-lang
01:58
ryanf has quit [Ping timeout: 265 seconds]
01:58
jfelchner has joined #ruby-lang
01:59
dfr|mac has joined #ruby-lang
01:59
Sambalero has quit [Remote host closed the connection]
02:00
Sambalero has joined #ruby-lang
02:01
jtoy has quit [Quit: jtoy]
02:08
jperry2 has joined #ruby-lang
02:09
arooni-mobile__ has joined #ruby-lang
02:13
outoftime has quit [Quit: Leaving]
02:19
jperry2 has quit [Quit: jperry2]
02:24
bfreeman has quit [Ping timeout: 265 seconds]
02:27
concernedcitizen has joined #ruby-lang
02:28
chutwig has joined #ruby-lang
02:32
arooni-mobile has quit [Remote host closed the connection]
02:34
arooni-mobile__ has quit [Read error: Connection reset by peer]
02:36
arooni-mobile has joined #ruby-lang
02:36
dfr|mac has quit [Remote host closed the connection]
02:37
concernedcitizen has quit [Remote host closed the connection]
02:46
Sambaler_ has joined #ruby-lang
02:46
Sambalero has quit [Read error: Connection reset by peer]
02:46
s0ra_h is now known as sora_h
02:46
Sambaler_ has quit [Read error: Connection reset by peer]
02:46
Sambalero has joined #ruby-lang
02:47
Sambalero has quit [Read error: Connection reset by peer]
02:48
Sambalero has joined #ruby-lang
02:49
Sambalero has quit [Read error: Connection reset by peer]
02:49
Sambalero has joined #ruby-lang
02:50
coryf has joined #ruby-lang
02:51
Sambalero has quit [Read error: Connection reset by peer]
02:51
Sambalero has joined #ruby-lang
02:52
drbrain has quit [Ping timeout: 245 seconds]
02:52
Sambalero has quit [Read error: Connection reset by peer]
02:53
Sambalero has joined #ruby-lang
02:53
Sambalero has quit [Read error: Connection reset by peer]
02:53
Sambalero has joined #ruby-lang
02:54
Sambalero has quit [Read error: Connection reset by peer]
02:54
Sambaler_ has joined #ruby-lang
02:55
Sambaler_ has quit [Read error: Connection reset by peer]
02:55
Sambalero has joined #ruby-lang
02:56
Sambalero has quit [Read error: Connection reset by peer]
02:57
Sambalero has joined #ruby-lang
02:57
msaffitz has joined #ruby-lang
02:58
postmodern has quit [Ping timeout: 248 seconds]
02:58
Sambalero has quit [Read error: Connection reset by peer]
02:58
Sambalero has joined #ruby-lang
02:58
Sambalero has quit [Read error: Connection reset by peer]
02:59
Sambalero has joined #ruby-lang
03:01
Sambaler_ has joined #ruby-lang
03:01
Sambalero has quit [Read error: Connection reset by peer]
03:01
Sambaler_ has quit [Read error: Connection reset by peer]
03:02
Sambalero has joined #ruby-lang
03:02
sora_h is now known as s0ra_h
03:06
clam has left #ruby-lang [#ruby-lang]
03:06
calm has joined #ruby-lang
03:07
<
calm >
Can anyone help me with the problem here
03:11
postmodern has joined #ruby-lang
03:12
Sambalero has quit [Remote host closed the connection]
03:15
tcopp_ has joined #ruby-lang
03:19
tcopp_ has left #ruby-lang [#ruby-lang]
03:23
tcopp_ has joined #ruby-lang
03:24
tcopp_ has left #ruby-lang [#ruby-lang]
03:26
tcopp_ has joined #ruby-lang
03:28
tcopp has quit [Disconnected by services]
03:28
tcopp_ has left #ruby-lang [#ruby-lang]
03:29
tcopp has joined #ruby-lang
03:30
s0ra_h is now known as sora_h
03:30
RORgasm has joined #ruby-lang
03:33
Guest19385 has quit [Remote host closed the connection]
03:34
savage- has joined #ruby-lang
03:34
RORgasm has quit [Ping timeout: 246 seconds]
03:37
scampbell has quit [Quit: Ex-Chat]
03:39
perryh_away is now known as perryh
03:42
perryh is now known as perry
03:44
xtagon has joined #ruby-lang
03:46
<
lianj >
calm: b.any?{|p| p.comm.include?("python") }
03:52
banisterfiend` has quit [Remote host closed the connection]
03:52
headius has joined #ruby-lang
03:54
krz has quit [Quit: krz]
03:55
tomb has joined #ruby-lang
03:55
<
calm >
Well I managedd to solve it using some other way
03:56
<
calm >
let me evaluate your way however since it seems superior
03:56
<
calm >
here is what I did
03:57
dc5ala has joined #ruby-lang
03:57
rhalff has joined #ruby-lang
03:59
tomb has quit [Client Quit]
04:02
diegoviola has quit [Quit: leaving]
04:03
<
lianj >
calm: are you new to ruby? why would you do (p.comm.include?"php5-cgi").is_a?(FalseClass) instead of p.comm.include?("php5-cgi") == false
04:03
<
calm >
I am very new
04:03
<
calm >
by roughly like 2 hours
04:12
headius has quit [Quit: headius]
04:13
<
calm >
Awesome! Thanks
04:20
coryf has quit [Remote host closed the connection]
04:25
andrewhl has joined #ruby-lang
04:25
dhruvasagar has joined #ruby-lang
04:25
mistym has quit [Remote host closed the connection]
04:27
banisterfiend has joined #ruby-lang
04:34
igotnolegs has quit [Quit: Computer has gone to sleep.]
04:35
igotnolegs has joined #ruby-lang
04:35
igotnolegs has quit [Client Quit]
04:36
savage- has quit [Remote host closed the connection]
04:36
null- has joined #ruby-lang
04:36
igotnolegs has joined #ruby-lang
04:37
cha1tanya has joined #ruby-lang
04:37
cha1tanya has quit [Changing host]
04:37
cha1tanya has joined #ruby-lang
04:38
<
cha1tanya >
hi is there provision for dot product of matrix in standard library?
04:38
dmwuw has joined #ruby-lang
04:38
ramonmaruko has quit [Remote host closed the connection]
04:41
vertroa has quit [Read error: Connection reset by peer]
04:41
ramonmaruko has joined #ruby-lang
04:41
vertroa has joined #ruby-lang
04:44
andrewhl has quit [Remote host closed the connection]
04:47
cantonic_ has joined #ruby-lang
04:48
<
tcopp >
cha1tanya: I believe the gsl library has an inner product, but not the standard library.
04:48
drbrain has joined #ruby-lang
04:50
segy has joined #ruby-lang
04:50
cantonic has quit [Ping timeout: 255 seconds]
04:50
cantonic_ is now known as cantonic
04:53
<
wmoxam >
cha1tanya: I think this is what you want: Matrix[[2,4]] * Matrix[[2,4]].transpose # Matrix[[20]]
04:58
petercooper has quit [Remote host closed the connection]
05:00
xtagon has quit [Ping timeout: 246 seconds]
05:04
<
cha1tanya >
tcopp, thanks
05:04
<
cha1tanya >
wmoxam, i need to calculate co-variance matrix
05:07
concernedcitizen has joined #ruby-lang
05:11
neocoin has joined #ruby-lang
05:14
bglusman_ has quit [Remote host closed the connection]
05:14
<
cha1tanya >
i think it will work as i have to do some analysis using covariance matrix
05:16
<
tcopp >
cha1tanya: ah yes. statsample is suited and easy to use.
05:17
krz has joined #ruby-lang
05:21
chutwig has quit [Quit: Computer has gone to sleep.]
05:22
voker57 has joined #ruby-lang
05:24
dhruvasagar has quit [Ping timeout: 252 seconds]
05:25
drollwit has joined #ruby-lang
05:30
RORgasm has joined #ruby-lang
05:31
yugui_zzz is now known as yugui
05:31
yugui is now known as yugui_zzz
05:32
jscherff has joined #ruby-lang
05:35
RORgasm has quit [Ping timeout: 246 seconds]
05:37
headius has joined #ruby-lang
05:37
<
calm >
if Sys::ProcTable.ps.any?{|i| i.comm.include?(what) }
05:37
<
calm >
what does the |i| do
05:38
<
calm >
does it iterate over all "i"
05:39
vertroa has quit [Read error: Connection reset by peer]
05:41
vertroa has joined #ruby-lang
05:42
headius has quit [Ping timeout: 255 seconds]
05:43
jscherff has quit [Remote host closed the connection]
05:44
|Vargas| has joined #ruby-lang
05:44
savage- has joined #ruby-lang
05:45
<
drbrain >
calm: it may iterate over between 1 and all of i
05:45
<
drbrain >
any? fails fast
05:47
<
matled >
drbrain: if fail means "returns false" then it succeeds fast and fails slow :)
05:47
<
drbrain >
matled: yes :D
05:47
<
erikh >
I think you have that backwards.
05:47
<
erikh >
scotchy scotch scotch.
05:48
<
calm >
Wait, so what does |i| do?
05:48
<
erikh >
the i is replaced for each run of the block
05:48
<
drbrain >
calm: it's the block argument
05:48
<
erikh >
and ps provides a list for i to iterate over
05:48
<
erikh >
it's basically the iterator pattern if you've used C++ or Java.
05:48
<
drbrain >
calm: each entry in Sys::ProcTable.ps is yielded to the block as i
05:49
<
erikh >
just a little more terse.
05:51
<
savage- >
erikh / drbrain: do you guys have any favorites for when you want to graph data? gnuplot, R, some JS package?
05:51
<
drbrain >
naquad: I like R for Serious Business
05:52
<
drbrain >
I use Numbers otherwise
05:52
<
erikh >
it's pretty much the standard for ops people that like pretty metric graphs
05:52
<
erikh >
python, but it has a protocol you can talk to.
05:52
<
erikh >
alternatively, rrdtool is pretty swell but has a steep learning curve.
05:53
<
erikh >
ISTR ruby APIs for it.
05:53
<
banisterfiend >
drbrain: out of itnerest, what does R have over tools like octave ?
05:54
<
drbrain >
banisterfiend: no idea, I'd never heard of octave before
05:54
<
banisterfiend >
drbrain: it's an opensource matlab clone
05:54
<
banisterfiend >
i did a machine learning course using it, he decided it was better than R for whatever reason
05:54
JohnBat26 has joined #ruby-lang
05:55
msaffitz has quit [Quit: Computer has gone to sleep.]
05:55
<
banisterfiend >
(better for machine learning, anyway*)
05:57
<
drbrain >
that may be
05:57
<
savage- >
drbrain: do you prefer Numbers over the mac Excel version?
05:57
<
drbrain >
I haven't used R a lot, but it's definitely very powerful
05:58
<
drbrain >
savage-: if I had to work at a place that was brain-damaged enough to have applications in spreadsheets I'd probably use Excel
05:58
<
drbrain >
Numbers isn't great at such things
05:59
kitallis has joined #ruby-lang
05:59
<
savage- >
ah I see.
05:59
<
drbrain >
I use Numbers for basic stuff so it's fine
06:00
<
savage- >
like quick histograms and stuff?
06:04
yxhuvud has joined #ruby-lang
06:09
jscherff has joined #ruby-lang
06:09
jscherff has quit [Client Quit]
06:09
mssola has joined #ruby-lang
06:10
nertzy has quit [Quit: This computer has gone to sleep]
06:12
wallerdev has quit [Quit: wallerdev]
06:15
akira989 has quit [Remote host closed the connection]
06:16
dfr|mac has joined #ruby-lang
06:27
neocoin has quit [Remote host closed the connection]
06:29
calm has quit [Quit: Lost terminal]
06:31
concerne_ has joined #ruby-lang
06:34
concernedcitizen has quit [Ping timeout: 246 seconds]
06:38
ryanf has joined #ruby-lang
06:39
dfr|mac has quit [Ping timeout: 240 seconds]
06:45
dfr|mac has joined #ruby-lang
06:45
igotnolegs has quit [Quit: Computer has gone to sleep.]
06:49
jtoy has joined #ruby-lang
06:50
GarethAdams has joined #ruby-lang
06:52
dfr|mac has quit [Ping timeout: 265 seconds]
06:52
GarethAdams has quit [Client Quit]
06:53
GarethAdams has joined #ruby-lang
06:53
GarethAdams has quit [Client Quit]
06:54
GarethAdams has joined #ruby-lang
06:54
dfr|mac has joined #ruby-lang
06:56
sepp2k has quit [Remote host closed the connection]
06:57
jtoy has quit [Quit: jtoy]
07:03
drollwit has quit [Remote host closed the connection]
07:03
sora_h is now known as s0ra_h
07:03
s0ra_h is now known as sora_h
07:04
sora_h is now known as s0ra_h
07:04
s0ra_h is now known as sora_h
07:09
workmad3 has joined #ruby-lang
07:09
icooba has joined #ruby-lang
07:12
ryanf has quit [Ping timeout: 255 seconds]
07:13
dfr|mac has quit [Ping timeout: 246 seconds]
07:13
woollyams has quit [Quit: Computer has gone to sleep.]
07:13
Jan_ has joined #ruby-lang
07:14
Jan_ has left #ruby-lang [#ruby-lang]
07:14
DefV has joined #ruby-lang
07:14
dhruvasagar has joined #ruby-lang
07:16
dhruvasagar has quit [Client Quit]
07:17
solars has joined #ruby-lang
07:19
dfr|mac has joined #ruby-lang
07:19
dfr|mac has quit [Remote host closed the connection]
07:20
workmad3 has quit [Ping timeout: 246 seconds]
07:21
apeiros_ has joined #ruby-lang
07:22
publicvoid_ has quit [Remote host closed the connection]
07:23
dfr|mac has joined #ruby-lang
07:23
dfr|mac has quit [Remote host closed the connection]
07:23
d3vic3 has joined #ruby-lang
07:31
RORgasm has joined #ruby-lang
07:33
dhruvasagar has joined #ruby-lang
07:34
icooba has quit [Quit: Computer has gone to sleep.]
07:35
RORgasm has quit [Ping timeout: 246 seconds]
07:37
Tearan has quit [Ping timeout: 248 seconds]
07:39
rhalff has quit [Ping timeout: 250 seconds]
07:46
Criztian has joined #ruby-lang
07:46
lun_ has joined #ruby-lang
07:48
Criztian has quit [Remote host closed the connection]
07:49
Tearan has joined #ruby-lang
07:52
srbartlett has quit [Remote host closed the connection]
08:08
TheJacquerie has joined #ruby-lang
08:10
bytephilia has joined #ruby-lang
08:10
zmack has joined #ruby-lang
08:16
GarethAdams has quit [Quit: Leaving...]
08:17
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
08:17
cbetta has joined #ruby-lang
08:26
neocoin has joined #ruby-lang
08:28
cdt has joined #ruby-lang
08:28
tooky has joined #ruby-lang
08:35
sora_h is now known as s0ra_h
08:36
vmoravec has joined #ruby-lang
08:36
s0ra_h is now known as sora_h
08:36
workmad3 has joined #ruby-lang
08:39
Tearan has quit [Ping timeout: 248 seconds]
08:42
GarethAdams has joined #ruby-lang
08:42
sora_h is now known as s0ra_h
08:45
kristofferrr has joined #ruby-lang
08:46
Hakon|mbp has joined #ruby-lang
08:46
Berglund has quit [Quit: Computer died.]
08:47
futurechimp has joined #ruby-lang
08:52
Tearan has joined #ruby-lang
08:53
thone has joined #ruby-lang
08:55
concerne_ has quit [Remote host closed the connection]
08:56
thone_ has quit [Ping timeout: 248 seconds]
08:56
jarib has quit [Excess Flood]
08:59
jarib has joined #ruby-lang
09:07
zhomart has joined #ruby-lang
09:10
bytephilia has quit [Remote host closed the connection]
09:11
gnufied has joined #ruby-lang
09:12
zhomart has quit [Quit: Leaving]
09:14
Mchl has joined #ruby-lang
09:14
joma has joined #ruby-lang
09:15
yugui_zzz is now known as yugui
09:15
zz_chrismcg is now known as chrismcg
09:20
joma has quit [Quit: Leaving]
09:20
icooba has joined #ruby-lang
09:21
icooba has quit [Client Quit]
09:21
icooba has joined #ruby-lang
09:31
RORgasm has joined #ruby-lang
09:33
Leeky_afk is now known as Leeky
09:34
perry is now known as perryh_away
09:35
bytephilia has joined #ruby-lang
09:36
RORgasm has quit [Ping timeout: 246 seconds]
09:38
Berglund has joined #ruby-lang
09:40
gnufied has quit [Quit: Leaving.]
09:42
mortice has joined #ruby-lang
09:43
postmodern has quit [Ping timeout: 248 seconds]
09:46
kristofferrr has quit [Ping timeout: 248 seconds]
09:46
workmad3 has quit [Ping timeout: 255 seconds]
09:48
workmad3 has joined #ruby-lang
09:50
pajama has joined #ruby-lang
09:51
pajama has quit [Client Quit]
09:51
pajama has joined #ruby-lang
09:52
pajama has left #ruby-lang [#ruby-lang]
09:54
pajamapajama has joined #ruby-lang
09:54
<
pajamapajama >
.last method for range has design flaw
09:54
<
pajamapajama >
(0...5).last => 5
09:55
<
oddmunds >
interesting
09:55
<
cbetta >
how is that wrong?
09:55
<
Muz >
This came up on Friday too. Is there a bug filed for it yet? ¬_¬
09:56
<
apeiros_ >
(0...5).last(1) #=> [4]
09:56
postmodern has joined #ruby-lang
09:56
<
Muz >
cbetta: A range defined with "..." as opposed to ".." excludes the end value.
09:56
<
cbetta >
(0..5).to_a => [0, 1, 2, 3, 4, 5]
09:56
mdstunthamster has joined #ruby-lang
09:56
<
cbetta >
(0...5).to_a => [0, 1, 2, 3, 4]
09:57
<
cbetta >
got it now
09:57
cha1tanya is now known as prathamesh`
09:57
<
pajamapajama >
yep i proceeded with filing bug but they rejected saying it is by design
09:57
<
apeiros_ >
pajamapajama: it is problematic
09:58
<
pajamapajama >
we already have (0...5).end => 5
09:58
<
oddmunds >
pajamapajama: did they give a rationale?
09:58
<
apeiros_ >
(0...5).include?(4.999) #=> true
09:58
<
apeiros_ >
so what is (0...5).last?
09:58
<
cbetta >
yeah, good point there apeiros_
09:58
<
pajamapajama >
not exactly but .last returning last element of Range would be more appropriate
09:58
<
oddmunds >
yeah, that's what i would think too.
09:59
<
oddmunds >
but i guess this might follow some ancient convention or something
09:59
<
cbetta >
from what I understand from apeiros_'s example, current implementation seems right
09:59
<
apeiros_ >
personally I'd probably have gone for (0...5).last # => 4, but (0...5).end # => 5
10:00
<
apeiros_ >
i.e., define .last in terms of its iteration
10:00
<
pajamapajama >
yep that is what I am aiming at
10:00
<
cbetta >
apeiros_ the real issue is that .to_a treats it as an array of integers, where in reality a range is a range of real numbers
10:01
<
pajamapajama >
how to go about raising design issues in Ruby?
10:01
srbartlett has joined #ruby-lang
10:01
<
Muz >
Mailing list?
10:02
<
apeiros_ >
cbetta: that's not really an issue. that's how it is defined.
10:02
<
apeiros_ >
the discrete value of a range is defined by Range#begin's #next
10:03
<
cbetta >
apeiros_ i didnt mean issue, I meant "thing to understand". Once you understand why, the .last makes sense
10:03
x0F_ has joined #ruby-lang
10:03
x0F has quit [Disconnected by services]
10:04
x0F_ is now known as x0F
10:04
yats has joined #ruby-lang
10:04
woollyams has joined #ruby-lang
10:04
woollyams has quit [Read error: Connection reset by peer]
10:05
<
banisterfiend >
x0F: wer u been
10:06
<
x0F >
banisterfiend: hi, yeah sorry. been busy the last months
10:06
<
banisterfiend >
x0F: hows life
10:06
<
x0F >
banisterfiend: didn't catch you last time, you highlighted me.
10:07
<
banisterfiend >
x0F: Yeah.
10:07
<
x0F >
post-operation wisdom-teeth pain ;)
10:07
<
banisterfiend >
x0F: join my channel :P
10:10
<
x0F >
heh, in a metaphorical sense or #pry? ;)
10:11
<
banisterfiend >
x0F: #pry
10:12
lbrent has joined #ruby-lang
10:16
JohnBat26 has joined #ruby-lang
10:18
dhruvasagar has quit [Ping timeout: 248 seconds]
10:19
dhruvasagar has joined #ruby-lang
10:21
lbrent has quit [Quit: leaving]
10:21
lbrent has joined #ruby-lang
10:24
lbrent has quit [Client Quit]
10:25
lbrent has joined #ruby-lang
10:25
lbrent has quit [Client Quit]
10:27
lbrent has joined #ruby-lang
10:31
lbrent has quit [Client Quit]
10:32
Leeky is now known as Leeky_afk
10:32
lbrent has joined #ruby-lang
10:33
lbrent has quit [Client Quit]
10:35
lbrent has joined #ruby-lang
10:35
jupito has joined #ruby-lang
10:36
rfx has quit [Quit: WeeChat 0.3.2]
10:36
lbrent has quit [Client Quit]
10:38
mfn has joined #ruby-lang
10:42
lbrent has joined #ruby-lang
10:44
tekin has joined #ruby-lang
10:46
kristofferrr has joined #ruby-lang
10:48
Hakon|mbp has quit [Read error: Connection reset by peer]
10:49
Criztian has joined #ruby-lang
11:01
postmodern has quit [Quit: Leaving]
11:03
spectra- has quit [Ping timeout: 272 seconds]
11:04
woollyams has joined #ruby-lang
11:04
spectra has joined #ruby-lang
11:07
stardiviner has joined #ruby-lang
11:09
zenspider has joined #ruby-lang
11:16
* prathamesh`
is away: सध्या व्यस्त आहे
11:18
stardiviner has joined #ruby-lang
11:18
prathamesh` has quit [Quit: आलोच..]
11:21
Hakon|mbp has joined #ruby-lang
11:22
cha1tanya has joined #ruby-lang
11:22
cha1tanya has quit [Changing host]
11:22
cha1tanya has joined #ruby-lang
11:23
Defusal_ has quit [Ping timeout: 252 seconds]
11:24
Defusal has joined #ruby-lang
11:24
Defusal has quit [Changing host]
11:24
Defusal has joined #ruby-lang
11:25
<
rue >
Interesting, someone actually updated the docs
11:27
kain has quit [Quit: quit]
11:28
bryancp has joined #ruby-lang
11:32
RORgasm has joined #ruby-lang
11:36
RORgasm has quit [Ping timeout: 246 seconds]
11:38
neocoin has quit [Ping timeout: 265 seconds]
11:40
Jake232 has joined #ruby-lang
11:41
mwjcomputing has joined #ruby-lang
11:41
mwjcomputing has left #ruby-lang [#ruby-lang]
11:42
jxie has quit [Quit: leaving]
11:43
Jake232 has quit [*.net *.split]
11:43
mortice has quit [*.net *.split]
11:43
Berglund has quit [*.net *.split]
11:43
Skif has quit [*.net *.split]
11:43
alindeman has quit [*.net *.split]
11:43
sernin has quit [*.net *.split]
11:43
sei has quit [*.net *.split]
11:43
Y_Ichiro has quit [*.net *.split]
11:43
Weems has quit [*.net *.split]
11:43
mahlon has quit [*.net *.split]
11:43
jaimef has quit [*.net *.split]
11:43
jmeeuwen has quit [*.net *.split]
11:43
SubSpawn has quit [*.net *.split]
11:43
meise has quit [*.net *.split]
11:43
thorncp has quit [*.net *.split]
11:43
Tasser has quit [*.net *.split]
11:43
threedaymonk has quit [*.net *.split]
11:43
tris has quit [*.net *.split]
11:43
mitchty_ has quit [*.net *.split]
11:43
bnagy has quit [*.net *.split]
11:43
vbatts has quit [*.net *.split]
11:43
anacond109 has quit [*.net *.split]
11:43
freedrull has quit [*.net *.split]
11:43
Berglund has joined #ruby-lang
11:44
sernin has joined #ruby-lang
11:44
alindeman has joined #ruby-lang
11:44
Jake232 has joined #ruby-lang
11:44
mortice has joined #ruby-lang
11:44
Skif has joined #ruby-lang
11:44
sei has joined #ruby-lang
11:44
Y_Ichiro has joined #ruby-lang
11:44
Weems has joined #ruby-lang
11:44
mahlon has joined #ruby-lang
11:44
jaimef has joined #ruby-lang
11:44
jmeeuwen has joined #ruby-lang
11:44
SubSpawn has joined #ruby-lang
11:44
meise has joined #ruby-lang
11:44
thorncp has joined #ruby-lang
11:44
Tasser has joined #ruby-lang
11:44
threedaymonk has joined #ruby-lang
11:44
freedrull has joined #ruby-lang
11:44
tris has joined #ruby-lang
11:44
bnagy has joined #ruby-lang
11:44
mitchty_ has joined #ruby-lang
11:44
vbatts has joined #ruby-lang
11:44
anacond109 has joined #ruby-lang
11:45
alindeman is now known as Guest32778
11:45
stardiviner has joined #ruby-lang
11:49
zmack_ has joined #ruby-lang
11:49
neocoin has joined #ruby-lang
11:52
woollyams has quit [Quit: Computer has gone to sleep.]
11:52
zmack has quit [Ping timeout: 246 seconds]
11:52
dfr|mac has joined #ruby-lang
11:54
chutwig has joined #ruby-lang
11:58
woollyams has joined #ruby-lang
12:00
rhalff has joined #ruby-lang
12:03
dfr|mac has quit [Remote host closed the connection]
12:04
Criztian has quit []
12:06
JohnBat26 has quit [Remote host closed the connection]
12:11
bryancp has quit [Remote host closed the connection]
12:14
jmeeuwen has quit [Ping timeout: 240 seconds]
12:14
JohnBat26 has joined #ruby-lang
12:17
kirin` has quit [Ping timeout: 248 seconds]
12:20
kirin` has joined #ruby-lang
12:23
jperry2 has joined #ruby-lang
12:25
jmeeuwen has joined #ruby-lang
12:26
GarethAdams has quit [Quit: Leaving...]
12:26
rails has quit [Ping timeout: 272 seconds]
12:27
neocoin has quit [Ping timeout: 246 seconds]
12:28
rails has joined #ruby-lang
12:29
kirin` has quit [Ping timeout: 240 seconds]
12:29
nertzy has joined #ruby-lang
12:30
bryancp has joined #ruby-lang
12:31
yugui is now known as yugui_zzz
12:31
GarethAdams has joined #ruby-lang
12:32
neocoin has joined #ruby-lang
12:32
mistym has joined #ruby-lang
12:32
mistym has quit [Changing host]
12:32
mistym has joined #ruby-lang
12:32
outoftime has joined #ruby-lang
12:32
chutwig has quit [Quit: Computer has gone to sleep.]
12:35
jperry2_ has joined #ruby-lang
12:35
echoprinter has joined #ruby-lang
12:36
bryancp has quit [Remote host closed the connection]
12:38
krz has quit [Quit: krz]
12:41
rails has quit [Ping timeout: 272 seconds]
12:41
bryancp has joined #ruby-lang
12:42
mistym has quit [Remote host closed the connection]
12:42
DefV has quit [Ping timeout: 272 seconds]
12:42
DefV has joined #ruby-lang
12:43
bryancp has quit [Remote host closed the connection]
12:43
rails has joined #ruby-lang
12:44
rhalff has quit [Quit: Leaving]
12:45
bryancp has joined #ruby-lang
12:46
tommyvyo has joined #ruby-lang
12:47
bryancp has quit [Remote host closed the connection]
12:48
cha1tanya has quit [Quit: आलोच..]
12:51
cha1tanya has joined #ruby-lang
12:51
cha1tanya has quit [Changing host]
12:51
cha1tanya has joined #ruby-lang
12:51
rolfb has joined #ruby-lang
12:52
pajamapajama has quit [Remote host closed the connection]
12:53
kirin` has joined #ruby-lang
12:53
kristofferrr has quit [Ping timeout: 252 seconds]
12:55
kristofferrr has joined #ruby-lang
12:55
Axsuul has quit [Ping timeout: 255 seconds]
12:56
tubbo`gone is now known as tubbo
12:56
hynkle has joined #ruby-lang
12:57
Guest32778 has quit [Quit: /quit]
12:57
alindeman has joined #ruby-lang
12:58
kirin` has quit [Ping timeout: 240 seconds]
12:59
pajamapajama has joined #ruby-lang
13:00
Criztian has joined #ruby-lang
13:01
yugui_zzz is now known as yugui
13:02
pajamapajama has quit [Remote host closed the connection]
13:03
My_Hearing has joined #ruby-lang
13:03
Mon_Ouie has quit [Ping timeout: 265 seconds]
13:03
dhruvasagar has quit [Ping timeout: 250 seconds]
13:03
rhodee has joined #ruby-lang
13:04
cha1tanya has quit [Quit: आलोच..]
13:04
dhruvasagar has joined #ruby-lang
13:08
kain has joined #ruby-lang
13:09
dv310p3r has joined #ruby-lang
13:09
dfr|mac has joined #ruby-lang
13:13
kedare has joined #ruby-lang
13:14
jrbing has joined #ruby-lang
13:15
mistym has joined #ruby-lang
13:15
mistym has quit [Changing host]
13:15
mistym has joined #ruby-lang
13:16
mztriz has joined #ruby-lang
13:17
kirin` has joined #ruby-lang
13:18
woollyams has quit [Quit: Computer has gone to sleep.]
13:20
voker57 has quit [Remote host closed the connection]
13:20
joast has joined #ruby-lang
13:21
srbartlett has quit [Remote host closed the connection]
13:21
slyphon has joined #ruby-lang
13:21
jbwiv has quit [Read error: Connection reset by peer]
13:24
jbwiv has joined #ruby-lang
13:25
kirin` has quit [Ping timeout: 246 seconds]
13:26
dhruvasagar has quit [Ping timeout: 246 seconds]
13:27
dhruvasagar has joined #ruby-lang
13:27
kirin` has joined #ruby-lang
13:32
RORgasm has joined #ruby-lang
13:35
kirin` has quit [Ping timeout: 246 seconds]
13:36
RORgasm has quit [Ping timeout: 246 seconds]
13:37
jayne has quit [Read error: Connection timed out]
13:38
jayne has joined #ruby-lang
13:39
bryancp has joined #ruby-lang
13:39
scampbell has joined #ruby-lang
13:40
robbyoconnor has joined #ruby-lang
13:42
mistym has quit [Remote host closed the connection]
13:42
neocoin has quit [Remote host closed the connection]
13:44
<
banisterfiend >
mfn: there
13:44
<
rue >
mfn: The Range#last docs
13:48
jayne has quit [Quit: shutting down]
13:49
yugui is now known as yugui_zzz
13:49
kirin` has joined #ruby-lang
13:49
dfr|mac has quit [Ping timeout: 246 seconds]
13:55
dfr|mac has joined #ruby-lang
13:58
kirin` has quit [Ping timeout: 255 seconds]
13:59
chutwig has joined #ruby-lang
14:00
Lenexurge has joined #ruby-lang
14:01
sailias has joined #ruby-lang
14:03
pmullins has joined #ruby-lang
14:03
mistym has joined #ruby-lang
14:03
mistym has quit [Changing host]
14:03
mistym has joined #ruby-lang
14:09
dhruvasagar has quit [Ping timeout: 252 seconds]
14:11
neocoin has joined #ruby-lang
14:11
HassanS has joined #ruby-lang
14:12
RORgasm has joined #ruby-lang
14:12
My_Hearing is now known as Mon_Ouie
14:12
dejongge has joined #ruby-lang
14:13
neocoin has quit [Remote host closed the connection]
14:15
neocoin has joined #ruby-lang
14:19
neocoin has quit [Remote host closed the connection]
14:20
kirin` has joined #ruby-lang
14:24
vmoravec_ has joined #ruby-lang
14:24
vmoravec_ has quit [Client Quit]
14:25
sockmonk has joined #ruby-lang
14:27
Hakon|mbp has quit [Quit: Leaving...]
14:27
kirin` has quit [Ping timeout: 265 seconds]
14:28
jarib has quit [Excess Flood]
14:28
jarib has joined #ruby-lang
14:33
apeiros_ has quit [Remote host closed the connection]
14:37
JohnBat26 has quit [Ping timeout: 252 seconds]
14:39
cha1tanya has joined #ruby-lang
14:42
enebo has joined #ruby-lang
14:43
kristofferrr has quit [Ping timeout: 252 seconds]
14:44
Leeky_afk is now known as Leeky
14:47
wallerdev has joined #ruby-lang
14:48
wallerdev has quit [Client Quit]
14:51
jtoy has joined #ruby-lang
14:52
JustinCampbell has joined #ruby-lang
14:52
kirin` has joined #ruby-lang
14:56
pemeon has joined #ruby-lang
14:56
kristoff_ has joined #ruby-lang
15:01
kirin` has quit [Ping timeout: 252 seconds]
15:01
lun_ has quit [Remote host closed the connection]
15:02
s0ra_h is now known as sora_h
15:02
mztriz_ has joined #ruby-lang
15:02
Leeky is now known as Leeky_afk
15:02
wmoxam_ has joined #ruby-lang
15:03
null- has left #ruby-lang [#ruby-lang]
15:03
dfr|mac_ has joined #ruby-lang
15:03
Hakon|mbp has joined #ruby-lang
15:04
|Vargas| has quit [Quit: ...]
15:06
dfr|mac has quit [Ping timeout: 252 seconds]
15:06
mztriz has quit [Ping timeout: 252 seconds]
15:06
apeiros_ has joined #ruby-lang
15:08
stardiviner has joined #ruby-lang
15:08
stardiviner has quit [Client Quit]
15:09
Leeky_afk is now known as Leeky
15:09
akira989 has joined #ruby-lang
15:09
Lenexurge has joined #ruby-lang
15:11
kristoff_ has quit [Ping timeout: 265 seconds]
15:11
yats has quit [Quit: Leaving]
15:13
stardiviner has joined #ruby-lang
15:13
Lenexurge has quit [Client Quit]
15:13
RORgasm has quit [Remote host closed the connection]
15:13
Leeky is now known as Leeky_afk
15:14
lun_ has joined #ruby-lang
15:16
coryf has joined #ruby-lang
15:21
dfr|mac_ has quit [Ping timeout: 244 seconds]
15:24
lsegal has joined #ruby-lang
15:24
RORgasm has joined #ruby-lang
15:25
RORgasm has quit [Remote host closed the connection]
15:25
wallerdev has joined #ruby-lang
15:25
kristofferrr has joined #ruby-lang
15:25
wallerdev has quit [Client Quit]
15:26
wallerdev has joined #ruby-lang
15:26
kvirani has joined #ruby-lang
15:26
jrafanie has joined #ruby-lang
15:26
dfr|mac has joined #ruby-lang
15:26
Criztian has quit [Remote host closed the connection]
15:26
kristoff_ has joined #ruby-lang
15:27
jxie has joined #ruby-lang
15:28
kirin` has joined #ruby-lang
15:30
pemeon has quit [Ping timeout: 246 seconds]
15:30
kristofferrr has quit [Ping timeout: 260 seconds]
15:30
kristoff_ is now known as kristofferrr
15:32
jfelchner has quit [Quit: WeeChat 0.3.7]
15:34
erics has joined #ruby-lang
15:35
kirin` has quit [Ping timeout: 244 seconds]
15:35
JustinCampbell has quit [Remote host closed the connection]
15:37
chutwig has quit [Ping timeout: 244 seconds]
15:37
Skif has quit [Ping timeout: 240 seconds]
15:37
Skif has joined #ruby-lang
15:39
erics has quit [Read error: Connection reset by peer]
15:40
chutwig has joined #ruby-lang
15:41
Berglund has quit [Quit: Computer died.]
15:43
Skif has quit [Ping timeout: 240 seconds]
15:44
headius has joined #ruby-lang
15:48
Skif has joined #ruby-lang
15:49
RORgasm has joined #ruby-lang
15:49
zmack_ has quit [Remote host closed the connection]
15:50
Fretta has joined #ruby-lang
15:50
savage- has quit [Remote host closed the connection]
15:50
Skif has quit [Read error: Connection reset by peer]
15:50
Skif has joined #ruby-lang
15:52
dfr|mac has quit [Ping timeout: 244 seconds]
15:55
bfreeman has joined #ruby-lang
15:56
kirin` has joined #ruby-lang
15:59
dfr|mac has joined #ruby-lang
16:01
kirin` has quit [Ping timeout: 248 seconds]
16:03
hynkle has quit [Quit: Computer has gone to sleep.]
16:04
kirin` has joined #ruby-lang
16:05
hynkle has joined #ruby-lang
16:05
dfr|mac has quit [Ping timeout: 244 seconds]
16:07
solars has quit [Read error: Operation timed out]
16:09
mistym_ has joined #ruby-lang
16:10
mistym_ has quit [Remote host closed the connection]
16:11
erics has joined #ruby-lang
16:11
kirin` has quit [Read error: Connection reset by peer]
16:12
dfr|mac has joined #ruby-lang
16:12
kirin` has joined #ruby-lang
16:14
msaffitz has joined #ruby-lang
16:15
Skif has quit [Ping timeout: 240 seconds]
16:18
kirin` has quit [Ping timeout: 248 seconds]
16:20
kirin` has joined #ruby-lang
16:20
wmoxam has quit [Disconnected by services]
16:21
wmoxam_ has left #ruby-lang [#ruby-lang]
16:22
zrail has left #ruby-lang [#ruby-lang]
16:22
savage- has joined #ruby-lang
16:22
savage- has quit [Remote host closed the connection]
16:23
savage- has joined #ruby-lang
16:24
kvirani has quit [Remote host closed the connection]
16:25
dfr|mac has quit [Remote host closed the connection]
16:25
dejongge has quit [Ping timeout: 252 seconds]
16:25
kirin` has quit [Ping timeout: 248 seconds]
16:27
kirin` has joined #ruby-lang
16:27
vmoravec has quit [Quit: Leaving]
16:28
ryanf has joined #ruby-lang
16:31
bglusman has joined #ruby-lang
16:32
sora_h is now known as s0ra_h
16:32
bglusman has quit [Remote host closed the connection]
16:32
kirin` has quit [Ping timeout: 252 seconds]
16:33
bglusman has joined #ruby-lang
16:33
bglusman has quit [Remote host closed the connection]
16:34
bglusman has joined #ruby-lang
16:34
bglusman has quit [Remote host closed the connection]
16:34
kirin` has joined #ruby-lang
16:35
butchanton has joined #ruby-lang
16:35
bglusman has joined #ruby-lang
16:35
bglusman has quit [Remote host closed the connection]
16:35
GarethAdams has quit [Quit: Leaving...]
16:36
bglusman has joined #ruby-lang
16:36
bglusman_ has joined #ruby-lang
16:38
fome has joined #ruby-lang
16:39
bglusman_ has quit [Read error: Connection reset by peer]
16:39
bglusman_ has joined #ruby-lang
16:40
kitallis has joined #ruby-lang
16:40
bglusma__ has joined #ruby-lang
16:40
bglusman has quit [Ping timeout: 245 seconds]
16:40
pmullins has quit [Remote host closed the connection]
16:40
bglusma__ has quit [Read error: Connection reset by peer]
16:41
kirin` has quit [Ping timeout: 240 seconds]
16:41
bglusman has joined #ruby-lang
16:42
fome has quit [Remote host closed the connection]
16:42
RORgasm has quit [Remote host closed the connection]
16:42
bglusma__ has joined #ruby-lang
16:42
carloslopes has joined #ruby-lang
16:43
kirin` has joined #ruby-lang
16:43
zmack_ has joined #ruby-lang
16:44
bglusman_ has quit [Ping timeout: 248 seconds]
16:45
sailias has quit [Ping timeout: 240 seconds]
16:45
bglusman has quit [Ping timeout: 248 seconds]
16:46
dhruvasagar has joined #ruby-lang
16:49
kirin` has quit [Ping timeout: 244 seconds]
16:49
ryanf has quit [Ping timeout: 248 seconds]
16:49
cdt has quit [Quit: Ex-Chat]
16:50
kirin` has joined #ruby-lang
16:51
GarethAdams has joined #ruby-lang
16:52
zmack_ has quit [Remote host closed the connection]
16:52
RORgasm has joined #ruby-lang
16:54
rowanu has joined #ruby-lang
16:54
S1kx has joined #ruby-lang
16:55
neocoin has joined #ruby-lang
16:57
kirin` has quit [Ping timeout: 244 seconds]
16:57
skisulli has joined #ruby-lang
16:58
kitallis has quit [Quit: Computer has gone to sleep.]
16:58
kitallis has joined #ruby-lang
16:58
kitallis has quit [Remote host closed the connection]
16:59
kirin` has joined #ruby-lang
16:59
bytephilia has quit [Quit: Computer has gone to sleep.]
17:00
cha1tanya has quit [Ping timeout: 240 seconds]
17:04
futurechimp has quit [Quit: This computer has gone to sleep]
17:05
workmad3 has quit [Ping timeout: 244 seconds]
17:05
kirin` has quit [Ping timeout: 240 seconds]
17:05
futurechimp has joined #ruby-lang
17:06
chrismcg is now known as zz_chrismcg
17:06
chongyu123 has joined #ruby-lang
17:07
kirin` has joined #ruby-lang
17:12
cha1tanya has joined #ruby-lang
17:13
kirin` has quit [Ping timeout: 250 seconds]
17:15
kirin` has joined #ruby-lang
17:16
cbetta has quit [Quit: Computer has gone to sleep.]
17:17
floyd2_ has joined #ruby-lang
17:17
floyd2_ has quit [Client Quit]
17:17
floyd2 has joined #ruby-lang
17:18
zmack has joined #ruby-lang
17:19
GarethAdams has joined #ruby-lang
17:21
tbuehlmann has joined #ruby-lang
17:21
kirin` has quit [Ping timeout: 265 seconds]
17:21
cha1tanya has quit [Ping timeout: 244 seconds]
17:22
cha1tanya has joined #ruby-lang
17:23
kirin` has joined #ruby-lang
17:24
skisulli has left #ruby-lang [#ruby-lang]
17:24
mztriz_ has quit [Quit: Leaving]
17:26
scampbell has quit [Remote host closed the connection]
17:29
Jake232 has quit [Quit: Computer has gone to sleep.]
17:29
kirin` has quit [Ping timeout: 265 seconds]
17:30
kirin` has joined #ruby-lang
17:30
mrsolo has joined #ruby-lang
17:36
kirin` has quit [Ping timeout: 265 seconds]
17:37
Hakon|mbp has quit [Quit: Leaving...]
17:37
kirin` has joined #ruby-lang
17:37
sailias has joined #ruby-lang
17:39
sepp2k has joined #ruby-lang
17:43
kirin` has quit [Ping timeout: 246 seconds]
17:44
kirin` has joined #ruby-lang
17:50
kirin` has quit [Ping timeout: 244 seconds]
17:51
kirin` has joined #ruby-lang
17:53
zmack has quit [Remote host closed the connection]
17:53
malev has joined #ruby-lang
17:53
mwjcomputing2 has joined #ruby-lang
17:56
jtoy has quit [Quit: jtoy]
17:58
kirin` has quit [Ping timeout: 244 seconds]
17:58
jtoy has joined #ruby-lang
17:58
chutwig has quit [Quit: Computer has gone to sleep.]
17:59
chutwig has joined #ruby-lang
18:00
kirin` has joined #ruby-lang
18:01
xtagon has joined #ruby-lang
18:01
erics has quit [Remote host closed the connection]
18:01
Skif has joined #ruby-lang
18:02
jperry2 has quit [Quit: jperry2]
18:02
jperry2_ is now known as jperry2
18:03
d3vic3 has quit [Ping timeout: 255 seconds]
18:04
ryanf has joined #ruby-lang
18:05
d3vic3 has joined #ruby-lang
18:05
kirin` has quit [Ping timeout: 244 seconds]
18:06
jrafanie has left #ruby-lang [#ruby-lang]
18:07
kirin` has joined #ruby-lang
18:08
msaffitz has quit [Quit: Computer has gone to sleep.]
18:09
cha1tanya has quit [Ping timeout: 250 seconds]
18:11
mouzone is now known as mikkelb
18:13
kirin` has quit [Ping timeout: 248 seconds]
18:14
kirin` has joined #ruby-lang
18:16
ryanf has quit [Quit: leaving]
18:19
chutwig has quit [Quit: Computer has gone to sleep.]
18:20
kirin` has quit [Ping timeout: 248 seconds]
18:20
jtoy has quit [Quit: jtoy]
18:21
kirin` has joined #ruby-lang
18:24
d3vic3 has quit [Ping timeout: 248 seconds]
18:25
futurechimp has quit [Quit: Leaving]
18:26
d3vic3 has joined #ruby-lang
18:27
Hakon|mbp has joined #ruby-lang
18:27
kirin` has quit [Ping timeout: 255 seconds]
18:27
Hakon|mbp has quit [Client Quit]
18:28
kirin` has joined #ruby-lang
18:32
kvirani has joined #ruby-lang
18:34
solars has joined #ruby-lang
18:35
kirin` has quit [Ping timeout: 250 seconds]
18:36
arooni-mobile has quit [Ping timeout: 265 seconds]
18:37
kirin` has joined #ruby-lang
18:40
cczona has joined #ruby-lang
18:40
jtoy has joined #ruby-lang
18:41
kirin` has quit [Client Quit]
18:41
kirin`_ has joined #ruby-lang
18:42
cczona has left #ruby-lang [#ruby-lang]
18:43
cczona has joined #ruby-lang
18:44
mwjcomputing2 has quit [Quit: Out....]
18:47
arooni-mobile has joined #ruby-lang
18:47
kirin`_ has quit [Ping timeout: 248 seconds]
18:47
chongyu123 has left #ruby-lang [#ruby-lang]
18:47
chongyu123 has joined #ruby-lang
18:48
sandbags has joined #ruby-lang
18:48
kirin` has joined #ruby-lang
18:49
malev has quit [Remote host closed the connection]
18:50
headius has quit [Quit: headius]
18:53
GarethAdams has quit [Quit: Leaving...]
18:54
kirin` has quit [Ping timeout: 250 seconds]
18:54
ryanf has joined #ruby-lang
18:55
kirin` has joined #ruby-lang
18:55
ryanf has quit [Client Quit]
18:55
kirin` has quit [Client Quit]
18:57
ryanf has joined #ruby-lang
19:00
fayimora has joined #ruby-lang
19:03
kirin` has joined #ruby-lang
19:05
arooni-mobile has quit [Quit: Leaving]
19:07
artOfWar has joined #ruby-lang
19:09
kirin` has quit [Ping timeout: 246 seconds]
19:10
tenderlove has quit [Remote host closed the connection]
19:11
kirin` has joined #ruby-lang
19:12
d3vic3 has quit [Ping timeout: 246 seconds]
19:13
jayne has joined #ruby-lang
19:13
artOfWar has quit [Remote host closed the connection]
19:14
malev has joined #ruby-lang
19:14
d3vic3 has joined #ruby-lang
19:14
echoprinter has quit [Read error: Connection reset by peer]
19:15
malev has quit [Remote host closed the connection]
19:15
towski has joined #ruby-lang
19:16
malev has joined #ruby-lang
19:17
RickHull1 has joined #ruby-lang
19:17
kirin` has quit [Ping timeout: 255 seconds]
19:19
kirin` has joined #ruby-lang
19:19
headius has joined #ruby-lang
19:20
tbuehlmann has quit []
19:24
kirin` has quit [Quit: Lost terminal]
19:26
msaffitz has joined #ruby-lang
19:29
headius has quit [Read error: Connection reset by peer]
19:29
fayimora has quit [Ping timeout: 250 seconds]
19:29
headius has joined #ruby-lang
19:29
postmodern has joined #ruby-lang
19:31
cczona has quit [Quit: cczona]
19:32
cczona has joined #ruby-lang
19:32
lun_ has quit [Remote host closed the connection]
19:33
cczona has quit [Client Quit]
19:33
cczona has joined #ruby-lang
19:34
headius has quit [Client Quit]
19:35
lbrent has quit [Ping timeout: 265 seconds]
19:35
Asher has quit [Ping timeout: 255 seconds]
19:36
cczona has quit [Client Quit]
19:36
cczona has joined #ruby-lang
19:38
cczona has quit [Client Quit]
19:39
vertroa has quit []
19:42
vertroa has joined #ruby-lang
19:43
headius has joined #ruby-lang
19:44
fayimora has joined #ruby-lang
19:44
bglusma__ has quit [Read error: Connection reset by peer]
19:44
bglusman has joined #ruby-lang
19:45
msaffitz has quit [Quit: Computer has gone to sleep.]
19:51
stamina_ has quit [Quit: leaving]
19:52
Asher has joined #ruby-lang
19:53
chongyu123 has left #ruby-lang [#ruby-lang]
19:53
chongyu123 has joined #ruby-lang
19:55
Asher1 has joined #ruby-lang
19:57
Asher has quit [Ping timeout: 265 seconds]
20:00
workmad3 has joined #ruby-lang
20:05
GarethAdams has joined #ruby-lang
20:08
dhruvasagar has quit [Ping timeout: 244 seconds]
20:13
chongyu123 has quit [Quit: Leaving]
20:13
chongyu123 has joined #ruby-lang
20:14
woollyams has joined #ruby-lang
20:14
Technodrome has quit [Read error: Connection reset by peer]
20:15
Technodrome has joined #ruby-lang
20:15
Technodrome has quit [Changing host]
20:15
Technodrome has joined #ruby-lang
20:16
lun_ has joined #ruby-lang
20:16
Technodrome has left #ruby-lang [#ruby-lang]
20:23
headius_ has joined #ruby-lang
20:24
erics has joined #ruby-lang
20:25
Axsuul has joined #ruby-lang
20:25
kirin` has joined #ruby-lang
20:26
headius has quit [Ping timeout: 255 seconds]
20:26
headius_ is now known as headius
20:28
Skif has quit [Ping timeout: 240 seconds]
20:29
s0ber has quit [Read error: Connection reset by peer]
20:30
Xzyx987X has quit [Read error: Connection reset by peer]
20:31
Xzyx987X has joined #ruby-lang
20:31
s0ber has joined #ruby-lang
20:31
headius has quit [Read error: Connection reset by peer]
20:33
dfr|mac has joined #ruby-lang
20:35
Maher4Ever has joined #ruby-lang
20:37
Criztian has joined #ruby-lang
20:38
dfr|mac has quit [Remote host closed the connection]
20:40
carloslopes has quit [Quit: Leaving.]
20:41
lun_ has quit [Remote host closed the connection]
20:42
QaDeS has joined #ruby-lang
20:42
bglusman_ has joined #ruby-lang
20:45
bglusman has quit [Ping timeout: 245 seconds]
20:46
neocoin has quit [Remote host closed the connection]
20:46
HassanS has quit [Quit: Lost terminal]
20:47
malev has quit [Remote host closed the connection]
20:49
chutwig has joined #ruby-lang
20:50
joshkraemer has joined #ruby-lang
20:50
jperry2 has quit [Quit: jperry2]
20:58
sonicpon1 has quit [Quit: leaving]
21:00
alindeman has quit [Ping timeout: 240 seconds]
21:01
nertzy2 has joined #ruby-lang
21:01
bytephilia has joined #ruby-lang
21:02
vertroa has quit [Ping timeout: 252 seconds]
21:04
nertzy has quit [Ping timeout: 244 seconds]
21:06
headius has joined #ruby-lang
21:08
kvirani has quit [Remote host closed the connection]
21:15
tommyvyo has quit [Ping timeout: 248 seconds]
21:17
rowanu has quit [Remote host closed the connection]
21:17
ivanoats has joined #ruby-lang
21:22
dfr|mac has joined #ruby-lang
21:22
chutwig has quit [Quit: Computer has gone to sleep.]
21:22
xtagon has quit [Ping timeout: 252 seconds]
21:23
sailias has quit [Quit: Leaving.]
21:24
bytephilia has quit [Quit: Computer has gone to sleep.]
21:26
petercooper has joined #ruby-lang
21:26
ivanoats has quit [Read error: Connection reset by peer]
21:27
ivanoats has joined #ruby-lang
21:27
RORgasm has quit [Remote host closed the connection]
21:28
Berglund has joined #ruby-lang
21:29
andrew has joined #ruby-lang
21:29
andrew is now known as Guest37843
21:30
msaffitz has joined #ruby-lang
21:30
xtagon has joined #ruby-lang
21:30
jtoy has quit [Ping timeout: 244 seconds]
21:31
workmad3 has quit [Ping timeout: 244 seconds]
21:32
kristofferrr has quit [Ping timeout: 265 seconds]
21:32
cantonic has quit [Quit: cantonic]
21:39
cantonic has joined #ruby-lang
21:40
msaffitz has quit [Ping timeout: 246 seconds]
21:42
msaffitz has joined #ruby-lang
21:45
babinho has quit [Remote host closed the connection]
21:45
vertroa has joined #ruby-lang
21:46
babinho has joined #ruby-lang
21:47
woollyams has quit [Quit: Computer has gone to sleep.]
21:48
ivanoats has quit [Read error: Connection reset by peer]
21:49
s0ra_h is now known as sora_h
21:51
joshkraemer has quit [Quit: joshkraemer]
21:51
sockmonk has quit [Ping timeout: 245 seconds]
21:53
headius has quit [Quit: headius]
21:54
rhodee_ has joined #ruby-lang
21:56
jtoy has joined #ruby-lang
21:57
mistym has quit [Remote host closed the connection]
21:58
rhodee has quit [Ping timeout: 265 seconds]
21:59
<
andrewvos >
MacTex is quite huge.
21:59
rhodee_ has left #ruby-lang [#ruby-lang]
22:01
<
andrewvos >
Also, it's going to take 2 days to download. The fuck? Does anyone really use MacTex?
22:06
<
erikh >
check the app store yet?
22:07
<
andrewvos >
erikh: Nope
22:07
<
erikh >
WELL MAYBE YOU SHOULD, NANCY BOY
22:07
<
andrewvos >
There's nothing free there.
22:09
<
andrewvos >
Don't see why this shit is so popular.
22:10
mssola has quit [Quit: Konversation terminated!]
22:11
RickHull1 has left #ruby-lang [#ruby-lang]
22:12
wallerdev has quit [Quit: wallerdev]
22:16
sora_h is now known as s0ra_h
22:16
bytephilia has joined #ruby-lang
22:27
dv310p3r has quit [Ping timeout: 246 seconds]
22:29
enebo has quit [Quit: enebo]
22:33
<
andrewvos >
Basically the same as tumbleweeds ^
22:39
solars has quit [Ping timeout: 248 seconds]
22:41
erics has quit [Remote host closed the connection]
22:41
Skif has joined #ruby-lang
22:45
jperry2 has joined #ruby-lang
22:50
htroyack has joined #ruby-lang
22:51
jperry2 has quit [Quit: jperry2]
22:52
msaffitz has quit [Ping timeout: 265 seconds]
22:56
krainboltgreene has joined #ruby-lang
23:00
tcopp has quit [Ping timeout: 248 seconds]
23:00
kain has quit [Ping timeout: 252 seconds]
23:00
<
zenspider >
andrewvos: you mean the GIGABYTE download? fuck no.
23:00
<
zenspider >
I've tried numerous times to try to get into tex... and I always punt at that stage
23:01
kain has joined #ruby-lang
23:01
<
zenspider >
zenweb 3.0.0.b4 released
23:01
<
whitequark >
$ aptitude install latex
23:02
<
whitequark >
I don't understand your problems.
23:02
<
whitequark >
texlive-latex-base downloads circa 40mb, -extra adds another 10mb.
23:08
bglusman_ has quit [Remote host closed the connection]
23:09
cbetta has joined #ruby-lang
23:10
<
jtoy >
is there a way from inside of a proc for a var to be declared inside of it and the next time the proc is called to use that variable instead or reinitializing it?
23:10
<
jtoy >
… that variable instead of reinitializing it?
23:12
srbartlett has joined #ruby-lang
23:12
msaffitz has joined #ruby-lang
23:15
coryf has quit [Remote host closed the connection]
23:16
bytephilia has quit [Quit: Computer has gone to sleep.]
23:16
<
cbetta >
jtoy any reason why you can't set the var outside of the proc?
23:17
<
drbrain >
a = nil; b = proc { a ||= "initialized"; use a }; b.call
23:18
<
jtoy >
cbetta: i didn't want to , but I will try to rewrite it so i can, the issue is I have the proc being called from inside a thread, so i want each proc/thread combo to have their own vars, the thread has no idea what is inside the proc though
23:19
<
cbetta >
jtoy maybe an idea to use a seperate class to do whatever you want to do int he thread, then have a singleton instance of that class per thread?
23:19
woollyams has joined #ruby-lang
23:19
* cbetta
might be overengineerign this
23:20
<
jtoy >
i might have ….. but otherwise i have a lot of duplicate code
23:20
masterkorp has joined #ruby-lang
23:20
<
masterkorp >
[ profile_pictures_path, attachament_path, smileys_dir avatars_dir ].each do |dir|
23:20
<
masterkorp >
is this a absolute nonsense ?
23:20
<
jtoy >
hmm, it doesn't work as I expect anyway, i though t this should work:
23:21
<
jtoy >
a= Proc.new{ puts c} ; Thread.new { c= 'hi'; puts a}
23:21
<
cbetta >
masterkorp don't think so, assuming those vars are set
23:21
<
cbetta >
jtoy im not a thread expert so no idea there
23:21
<
jtoy >
a= Proc.new{ puts c} ; Thread.new { c= 'hi'; a.call}
23:22
<
drbrain >
jtoy: sounds dangerous sharing a local variable across threads like that
23:22
<
jtoy >
drbrain: I just want it local to thread, how do I do this?
23:22
awwaiid has quit [Read error: Connection reset by peer]
23:22
<
masterkorp >
cbetta: yeah
23:22
<
masterkorp >
well i will TIAS
23:22
<
drbrain >
jtoy: create the proc inside the thread
23:22
awwaiid has joined #ruby-lang
23:23
<
cbetta >
so whats the problem masterkorp ?
23:23
<
masterkorp >
Just asking if the syntax is fine, can cause any future or is "unethical" on some sort
23:23
malev has joined #ruby-lang
23:23
<
zenspider >
unethical?
23:23
<
zenspider >
what are you doing inside the block?
23:24
<
zenspider >
genocide(dir)
23:24
GarethAdams has quit [Quit: Leaving...]
23:24
<
zenspider >
Dir[dir + "**/*"].each do |path| add_cock_and_balls path; end
23:24
<
masterkorp >
zenspider: its a chef recipe
23:25
<
masterkorp >
but i will just change onwershipt
23:25
wallerdev has joined #ruby-lang
23:26
<
drbrain >
masterkorp: it's fine
23:26
<
zenspider >
NOT FINE! UNETHICAL!
23:26
<
drbrain >
masterkorp: … often I put each entry on a separate line so I can see what changed in diff when I'm digging through history
23:27
<
zenspider >
that's because your diff sucks
23:27
<
masterkorp >
drbrain: thanks
23:27
outoftime has quit [Quit: Leaving]
23:27
<
masterkorp >
see what those type of tips i was looking for
23:28
<
jtoy >
drbrain: this is how I structured by threads code: so then I have a bunch of different jobs that I run by doing App.run! {#code} and that is why I can't initialize some local thread variables properly, how would you do it? (please ignore my other bad code)
23:29
msaffitz has quit [Ping timeout: 244 seconds]
23:29
masterkorp has left #ruby-lang ["WeeChat 0.3.2"]
23:32
s0ra_h is now known as sora_h
23:32
msaffitz has joined #ruby-lang
23:32
Maher4Ever has quit [Quit: Ik ga weg]
23:33
<
zenspider >
jtoy: so... we should ignore that you're initalizing @@threads each time you call run! ?
23:33
<
jtoy >
or anyone who wants to give suggestions :)
23:34
<
jtoy >
zenspider: yeah, run is called once per vm, i have a bunch of different scripts that use App.run! by themselves
23:35
<
zenspider >
I officially don't understand the problem
23:35
<
drbrain >
jtoy: while this is a good start, I think you should make each job a subclass of the thing providing threads
23:35
krainboltgreene_ has joined #ruby-lang
23:35
<
drbrain >
… or something like that
23:36
chutwig has joined #ruby-lang
23:37
<
jtoy >
drbrain: ok, i think i see how that would work, so class Job < Subclass ; def initialize; #init_vars_here;end def run!(opts); #code here that gets called over and over in job?;end; end
23:37
<
drbrain >
yes, something like that
23:38
<
jtoy >
drbrain: then in the thread call new on the job, and in the while loop call run
23:38
krainboltgreene has quit [Ping timeout: 272 seconds]
23:38
<
jtoy >
zenspider: i think you missed the conversation from earlier
23:38
krainboltgreene_ is now known as krainboltgreene
23:40
dfr|mac has quit [Remote host closed the connection]
23:42
imajes has quit [Excess Flood]
23:42
GarethAdams has joined #ruby-lang
23:45
sepp2k has quit [Remote host closed the connection]
23:45
imajes has joined #ruby-lang
23:50
krz has joined #ruby-lang
23:51
butchanton has quit [Quit: Leaving.]
23:52
mistym has joined #ruby-lang
23:52
mistym has joined #ruby-lang
23:56
sailias has joined #ruby-lang
23:56
yxhuvud has quit [Ping timeout: 252 seconds]