00:00
KeyJoo has quit [Remote host closed the connection]
00:00
alveric2 has joined #ruby
00:01
ascarter has joined #ruby
00:03
alveric1 has quit [Ping timeout: 240 seconds]
00:03
dar123 has joined #ruby
00:03
ioquatix has joined #ruby
00:04
bronson has quit [Ping timeout: 268 seconds]
00:04
skweek has joined #ruby
00:04
ledestin has joined #ruby
00:07
jaegerca has joined #ruby
00:09
twistedp- has quit [Ping timeout: 246 seconds]
00:11
twistedpixels_ has joined #ruby
00:11
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:12
__Yiota has joined #ruby
00:12
<
zenspider >
AssembledBits: does it need refactoring?
00:12
<
AssembledBits >
I used the wrong term
00:12
<
AssembledBits >
no worries!
00:13
ioquatix has quit [Quit: ioquatix]
00:14
rakm has joined #ruby
00:14
volty has quit [Ping timeout: 240 seconds]
00:14
<
zenspider >
look at URI.join and stop building urls by hand
00:15
<
zenspider >
even File.join would be sufficient
00:16
patr0clus has joined #ruby
00:16
patr0clus has quit [Max SendQ exceeded]
00:16
patr0clus has joined #ruby
00:18
gusrub has joined #ruby
00:19
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:22
ascarter has joined #ruby
00:22
jenrzzz has quit [Ping timeout: 260 seconds]
00:23
gusrub has quit [Ping timeout: 264 seconds]
00:23
ioquatix has joined #ruby
00:24
antib has quit [Ping timeout: 255 seconds]
00:25
houhoulis has joined #ruby
00:25
coderphive has quit [Quit: coderphive]
00:25
chouhoulis has joined #ruby
00:26
chouhoulis has quit [Remote host closed the connection]
00:26
chouhoulis has joined #ruby
00:26
AssembledBits has quit [Remote host closed the connection]
00:30
houhoulis has quit [Ping timeout: 240 seconds]
00:31
oleo has quit [Remote host closed the connection]
00:33
coderphive has joined #ruby
00:34
Rodya_ has joined #ruby
00:35
coderphive has quit [Client Quit]
00:37
SteenJobs has joined #ruby
00:38
oleo has joined #ruby
00:39
enilsen16 has joined #ruby
00:41
gix has quit [Quit: Client exiting]
00:45
t-recx has quit [Read error: No route to host]
00:45
t-recx has joined #ruby
00:46
ioquatix has quit [Quit: ioquatix]
00:47
PaulCape_ has quit [Quit: .]
00:48
PaulCapestany has joined #ruby
00:48
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
00:49
jusa has joined #ruby
00:51
bkxd has joined #ruby
00:52
GinoMan has quit [Ping timeout: 272 seconds]
00:52
marr has quit [Ping timeout: 268 seconds]
00:52
gix has joined #ruby
00:54
jusa has quit [Ping timeout: 240 seconds]
00:55
jenrzzz has joined #ruby
00:59
bkxd has quit [Ping timeout: 268 seconds]
01:00
dar123 has joined #ruby
01:01
gothicsouth has joined #ruby
01:02
ioquatix has joined #ruby
01:04
coderphive has joined #ruby
01:07
Guest96 has quit [Ping timeout: 268 seconds]
01:14
cyphase has quit [Ping timeout: 246 seconds]
01:16
<
baweaver >
zenspider: Give me a sec to think on it, will leave a comment
01:17
<
baweaver >
At first glance it looks fairly intuitive
01:17
cyphase has joined #ruby
01:18
<
zenspider >
I have decided (for now) that Sexp#=== is normal ===, Matcher#=== is Matcher#=~ and Matcher#=~ is any subtree.
01:18
<
baweaver >
I've done something similar for Hash querying in a new version of Izzy I'll probably release later.
01:18
<
zenspider >
still thinking any subtree should also be flexible, as in ANY child, not positinoal
01:18
bkxd has joined #ruby
01:18
<
zenspider >
thinking of strings/regexps as single chain trees
01:18
<
baweaver >
yeah, those are fun
01:19
brent__ has joined #ruby
01:19
<
baweaver >
you seen jq yet?
01:19
<
zenspider >
cmdline thing?
01:19
<
baweaver >
might use its language as an inspiration for diving
01:19
<
zenspider >
I could poke at that... was gonna poke at CSS selectors too
01:19
<
zenspider >
I need a front-end language for this to convert into matcher objects
01:20
<
zenspider >
gotta run. I'll catch up later. Dump here or in PM
01:20
<
baweaver >
Might do on a gist
01:20
amclain has quit [Quit: Leaving]
01:20
<
baweaver >
the gist
01:23
jenrzzz has quit [Ping timeout: 240 seconds]
01:23
brent__ has quit [Ping timeout: 260 seconds]
01:24
duderonomy has quit [Ping timeout: 246 seconds]
01:24
x0f has quit [Ping timeout: 260 seconds]
01:25
oleo has quit [Excess Flood]
01:25
kent\n has joined #ruby
01:25
oleo has joined #ruby
01:26
patarr has joined #ruby
01:26
TomyLobo has quit [Ping timeout: 264 seconds]
01:28
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:28
bkxd has quit [Ping timeout: 260 seconds]
01:28
mim1k has joined #ruby
01:29
x0f has joined #ruby
01:32
patarr has quit [Ping timeout: 272 seconds]
01:33
mim1k has quit [Ping timeout: 240 seconds]
01:34
GinoMan has joined #ruby
01:34
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:35
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:36
GinoMan2440 has joined #ruby
01:37
tfitts has quit [Quit: Connection closed for inactivity]
01:39
chouhoulis has quit [Remote host closed the connection]
01:39
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:39
mikecmpbll has quit [Quit: inabit. zz.]
01:40
GinoMan has quit [Ping timeout: 240 seconds]
01:43
chouhoul_ has joined #ruby
01:44
mokiwis has joined #ruby
01:44
LastWhisper____ has joined #ruby
01:45
mokiwis has quit [Client Quit]
01:46
coderphive has quit [Quit: coderphive]
01:47
gizmore|2 has joined #ruby
01:47
chouhoul_ has quit [Ping timeout: 245 seconds]
01:48
tgragnato has joined #ruby
01:51
gizmore has quit [Ping timeout: 240 seconds]
01:53
tgragnato has quit [Ping timeout: 240 seconds]
01:53
aupadhye has joined #ruby
01:54
ascarter has joined #ruby
01:55
d^sh_ has joined #ruby
01:58
jeyraof^mbpr has joined #ruby
01:58
jeyraof^mbpr has quit [Client Quit]
01:59
distrion has joined #ruby
01:59
d^sh has quit [Ping timeout: 260 seconds]
02:00
bronson has joined #ruby
02:01
distrion has left #ruby [#ruby]
02:04
<
xco >
zenspider: thanks! :)
02:04
bronson has quit [Ping timeout: 240 seconds]
02:05
dmtd has quit [Quit: Connection closed for inactivity]
02:06
apparition has joined #ruby
02:07
coderphive has joined #ruby
02:10
coderphive has quit [Client Quit]
02:12
coderphive has joined #ruby
02:13
ofkors has joined #ruby
02:13
Rodya_ has quit [Remote host closed the connection]
02:14
Dimik has quit [Ping timeout: 240 seconds]
02:18
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:18
genpaku has quit [Remote host closed the connection]
02:20
genpaku has joined #ruby
02:24
lxsameer has quit [Ping timeout: 272 seconds]
02:28
patarr has joined #ruby
02:29
enilsen16 has quit [Ping timeout: 255 seconds]
02:29
rkazak has quit [Quit: Sleep.....ing....]
02:32
enilsen16 has joined #ruby
02:33
dlitvak has quit [Quit: Connection closed for inactivity]
02:34
patarr has quit [Ping timeout: 268 seconds]
02:34
vondruch has quit [Quit: vondruch]
02:34
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:35
vondruch has joined #ruby
02:39
vondruch has quit [Client Quit]
02:39
vondruch has joined #ruby
02:42
jenrzzz has joined #ruby
02:42
jenrzzz has joined #ruby
02:42
jenrzzz has quit [Changing host]
02:42
rakm has joined #ruby
02:42
ioquatix has quit [Quit: ioquatix]
02:42
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:43
Hunter1_ has quit [Remote host closed the connection]
02:44
LastWhisper____ has joined #ruby
02:44
Hunter1_ has joined #ruby
02:44
LastWhisper____ has quit [Client Quit]
02:45
jameser has joined #ruby
02:47
GodFather has quit [Ping timeout: 240 seconds]
02:47
jameser has quit [Client Quit]
02:50
GinoMan2440 has quit [Remote host closed the connection]
02:50
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:50
tobh has joined #ruby
02:50
GinoMan2440 has joined #ruby
02:50
jusa has joined #ruby
02:55
SteenJobs has quit [Quit: SteenJobs]
02:55
jusa has quit [Ping timeout: 272 seconds]
02:57
bkxd has joined #ruby
02:59
PorcoRex has joined #ruby
02:59
<
PorcoRex >
Good evening Ruby.
03:00
duderonomy has joined #ruby
03:02
sspreitz has quit [Ping timeout: 255 seconds]
03:02
<
PorcoRex >
t-recx, uncle?
03:05
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:05
rdw200169_ has joined #ruby
03:07
nofxx has joined #ruby
03:08
rdw200169__ has quit [Ping timeout: 258 seconds]
03:09
mentok has joined #ruby
03:10
enterprisey has joined #ruby
03:11
enterprisey has quit [Remote host closed the connection]
03:14
jenrzzz has quit [Ping timeout: 240 seconds]
03:14
Rodya_ has joined #ruby
03:16
jusa has joined #ruby
03:16
sspreitz has joined #ruby
03:17
jenrzzz has joined #ruby
03:18
agent_white has joined #ruby
03:19
Rodya_ has quit [Ping timeout: 255 seconds]
03:20
jusa has quit [Ping timeout: 255 seconds]
03:29
mim1k has joined #ruby
03:30
cschneid_ has joined #ruby
03:30
coderphive has quit [Quit: coderphive]
03:31
cfec0b8d has quit [Remote host closed the connection]
03:34
mim1k has quit [Ping timeout: 260 seconds]
03:34
cfec0b8d has joined #ruby
03:34
cschneid_ has quit [Ping timeout: 246 seconds]
03:34
coderphive has joined #ruby
03:36
jenrzzz has quit [Ping timeout: 255 seconds]
03:40
d^sh_ has quit [Ping timeout: 240 seconds]
03:43
claw has quit [Ping timeout: 255 seconds]
03:44
d^sh has joined #ruby
03:45
enilsen16 has quit [Quit: enilsen16]
03:45
DTZUZU has quit [Quit: WeeChat 1.5]
03:45
claw has joined #ruby
03:46
rakm_ has joined #ruby
03:46
rakm has quit [Ping timeout: 240 seconds]
03:47
xall_ has joined #ruby
03:48
enterprisey has joined #ruby
03:54
gix has quit [Ping timeout: 268 seconds]
03:54
JeanCarloMachado has joined #ruby
03:58
gix has joined #ruby
04:03
coderphive has quit [Quit: coderphive]
04:03
JeanCarloMachado has quit [Ping timeout: 245 seconds]
04:03
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
04:06
rakm has joined #ruby
04:08
rakm_ has quit [Ping timeout: 240 seconds]
04:09
JeanCarloMachado has joined #ruby
04:10
drcode has quit [Remote host closed the connection]
04:10
coderphive has joined #ruby
04:15
drcode has joined #ruby
04:16
Rodya_ has joined #ruby
04:20
Rodya_ has quit [Ping timeout: 255 seconds]
04:21
FastJack has quit [Ping timeout: 260 seconds]
04:22
ioquatix has joined #ruby
04:27
nanoz has joined #ruby
04:28
mim1k has joined #ruby
04:29
patarr has joined #ruby
04:33
raspado_ has joined #ruby
04:33
mim1k has quit [Ping timeout: 272 seconds]
04:34
nicesignal has quit [Remote host closed the connection]
04:34
raspado has quit [Ping timeout: 245 seconds]
04:34
patarr has quit [Ping timeout: 264 seconds]
04:35
cschneid_ has joined #ruby
04:36
enilsen16 has joined #ruby
04:37
gnufied has quit [Ping timeout: 272 seconds]
04:41
JeanCarloMachado has quit [Ping timeout: 260 seconds]
04:42
JeanCarloMachado has joined #ruby
04:46
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
04:47
rakm has joined #ruby
04:47
rakm has quit [Client Quit]
04:48
JeanCarloMachado has quit [Ping timeout: 268 seconds]
04:48
rakm has joined #ruby
04:49
rakm has quit [Client Quit]
04:49
JeanCarloMachado has joined #ruby
04:49
raspado_ has quit [Remote host closed the connection]
04:49
rakm has joined #ruby
04:49
rakm has quit [Client Quit]
04:50
rakm has joined #ruby
04:50
rakm has quit [Client Quit]
04:51
rakm has joined #ruby
04:51
rakm has quit [Client Quit]
04:51
treaki__ has joined #ruby
04:52
Bock has joined #ruby
04:52
nofxxx has joined #ruby
04:55
treaki has quit [Ping timeout: 255 seconds]
04:56
nofxx has quit [Ping timeout: 260 seconds]
04:58
JeanCarloMachado has quit [Ping timeout: 255 seconds]
05:03
dar123 has joined #ruby
05:03
JeanCarloMachado has joined #ruby
05:06
xall_ has quit [Ping timeout: 272 seconds]
05:08
lxleuser has joined #ruby
05:10
lxleuser has quit [Client Quit]
05:10
Guest11768 has joined #ruby
05:10
gothicsouth has joined #ruby
05:11
enterprisey has quit [Ping timeout: 245 seconds]
05:14
coderphive has quit [Quit: coderphive]
05:14
enterprisey has joined #ruby
05:15
xall_ has joined #ruby
05:16
Rodya_ has joined #ruby
05:17
JeanCarloMachado has quit [Ping timeout: 240 seconds]
05:20
t-recx has quit [Quit: t-recx]
05:21
Rodya_ has quit [Ping timeout: 246 seconds]
05:21
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
05:22
xall_ has quit [Ping timeout: 240 seconds]
05:24
JeanCarloMachado has joined #ruby
05:30
_whitelogger has joined #ruby
05:35
Cyrus has quit [Quit: wheeeeee]
05:36
JeanCarloMachado has quit [Ping timeout: 268 seconds]
05:37
JeanCarloMachado has joined #ruby
05:41
JeanCarloMachado has quit [Ping timeout: 240 seconds]
05:42
jameser has joined #ruby
05:43
JeanCarloMachado has joined #ruby
05:45
SenpaiSilver has joined #ruby
05:48
Cyrus has joined #ruby
05:49
JeanCarloMachado has quit [Ping timeout: 240 seconds]
05:50
cjk101010 has quit [Remote host closed the connection]
05:51
cjk101010 has joined #ruby
05:55
cschneid_ has quit [Remote host closed the connection]
06:02
djbkd has joined #ruby
06:05
JoshS has joined #ruby
06:05
hongkongphooy has joined #ruby
06:17
ioquatix has quit [Quit: ioquatix]
06:17
Rodya_ has joined #ruby
06:22
Rodya_ has quit [Ping timeout: 260 seconds]
06:23
skweek has quit [Ping timeout: 255 seconds]
06:24
skweek has joined #ruby
06:27
skweek has quit [Max SendQ exceeded]
06:27
bkxd has quit [Read error: Connection reset by peer]
06:28
skweek has joined #ruby
06:30
patarr has joined #ruby
06:33
bkxd has joined #ruby
06:35
patarr has quit [Ping timeout: 240 seconds]
06:36
Guest11768 has quit [Ping timeout: 240 seconds]
06:41
nicesignal has joined #ruby
06:42
Flonk has quit [Ping timeout: 240 seconds]
06:44
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:45
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
06:46
Hunter1_ has quit [Remote host closed the connection]
06:46
agent_white has quit [Quit: bai]
06:46
Hunter1_ has joined #ruby
06:48
TomyLobo has joined #ruby
07:09
djbkd has quit [Remote host closed the connection]
07:09
gothicsouth has joined #ruby
07:10
djbkd has joined #ruby
07:12
djbkd has quit [Remote host closed the connection]
07:12
djbkd has joined #ruby
07:12
djbkd has quit [Client Quit]
07:17
bkxd has quit [Ping timeout: 268 seconds]
07:18
Rodya_ has joined #ruby
07:18
Cohedrin has joined #ruby
07:19
bkxd has joined #ruby
07:20
djbkd has joined #ruby
07:22
Rodya_ has quit [Ping timeout: 246 seconds]
07:33
djbkd has quit [Remote host closed the connection]
07:33
djbkd has joined #ruby
07:36
cfec0b8d has quit [Ping timeout: 240 seconds]
07:38
Tempesta has quit [Quit: See ya!]
07:38
djbkd has quit [Ping timeout: 260 seconds]
07:41
robotmay has quit [Remote host closed the connection]
07:42
nowhereman has quit [Ping timeout: 240 seconds]
07:47
enilsen16 has quit [Quit: enilsen16]
07:49
tobh has quit [Read error: Connection reset by peer]
07:54
Qchmqs__ has joined #ruby
07:54
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
07:55
Qchmqs__ is now known as Qchmqs
07:58
nachoman has joined #ruby
07:59
rippa has joined #ruby
08:00
tildes has joined #ruby
08:00
TreyG has quit [Ping timeout: 260 seconds]
08:01
TreyG has joined #ruby
08:03
bronson has joined #ruby
08:08
bronson has quit [Ping timeout: 255 seconds]
08:15
cschneid_ has joined #ruby
08:17
ofkors has quit [Ping timeout: 255 seconds]
08:19
Rodya_ has joined #ruby
08:19
watom has joined #ruby
08:19
cschneid_ has quit [Ping timeout: 255 seconds]
08:22
nachoman has quit []
08:23
Rodya_ has quit [Ping timeout: 260 seconds]
08:28
Jakaria has joined #ruby
08:30
<
Jakaria >
the warning is this -->> testing.rb:5: warning: circular argument reference - from
08:30
<
Jakaria >
testing.rb:5: warning: circular argument reference - to
08:30
<
Jakaria >
testing.rb:5: warning: circular argument reference - message
08:30
<
Jakaria >
Setting up the mailing system
08:30
<
Jakaria >
Sending email to myemailaddress@gmail.comY
08:30
<
zenspider >
please just put the error in the paste instead of pasting it in channel...
08:31
patarr has joined #ruby
08:31
<
Jakaria >
oh, sorry....
08:31
<
zenspider >
no prob
08:32
<
zenspider >
this works: def initialize(from: f, to: t, message: m)
08:32
<
zenspider >
ah. ok. I get it now
08:33
<
zenspider >
this is better: def initialize from:, to:, message:
08:33
<
zenspider >
you're saying that from/to/message have default values of calls to the from/to/message accessors
08:33
<
zenspider >
there shouldn't be default values for this type of object... maybe empty strings or something. but probably nothing
08:34
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:34
<
zenspider >
Jakaria: ^^
08:35
pratch has quit [Remote host closed the connection]
08:35
<
PorcoRex >
It seems a bit sloppy, but I can't spot any circular references?
08:36
patarr has quit [Ping timeout: 264 seconds]
08:36
<
Jakaria >
ah.... gotcha.....
08:36
pratch has joined #ruby
08:38
<
Jakaria >
I have PHP background so, Ruby looks like japanese to me.....
08:38
<
zenspider >
idiomatic ruby would be `def set_up` or `def setup`
08:39
<
Jakaria >
i started learning Ruby from yesterday
08:39
<
zenspider >
(probably the latter)
08:39
<
zenspider >
and we tend to use `@to.each do |address|` instead of `for address in @to`
08:39
<
Jakaria >
oh.... why is that?
08:40
<
PorcoRex >
Jakaria, it's cool!
08:40
<
zenspider >
more obvious ties to Enumerable. more explicit w/ the block variables, esp when using deconstruction. history.
08:40
<
PorcoRex >
Just kidding. Once you get a week or a month learning Ruby you'll realize you can do most things without a for.
08:41
<
Jakaria >
I'm hoping that I can learn Ruby and Ruby on Rails in a month..... I'm sick of PHP
08:41
<
zenspider >
I probably wouldn't design for a setup method... at least not one that needs to be publically called.
08:42
<
zenspider >
otherwise this looks pretty good
08:42
<
Jakaria >
thanks....
08:42
<
zenspider >
you can replace ['myemailaddress@gmail.com'] w/ %w[myemailaddress@gmail.com]
08:43
<
zenspider >
no quotes or commas needed
08:43
<
zenspider >
>> %w[a b c d]
08:43
<
Jakaria >
I noticed that I can call a method of class like this: my_class.send
08:44
<
Jakaria >
never saw a syntax like this before :)
08:44
<
zenspider >
do you mean actually using send? or just obj.msg syntax?
08:44
<
PorcoRex >
Jakaria, also keep in mind that while Ruby and RoR will be fairly easy to pick up coming from PHP, you will probably need more than a month to master some of the advanced features of the language.
08:45
<
zenspider >
just a few dozen years... that's all
08:45
<
Jakaria >
"obj.msg" syntax, zenspider....
08:45
<
PorcoRex >
So you will be able to start working in like a week, but you'll need to invest into it in order to get the full experience, is what I mean.
08:45
<
zenspider >
that's pretty normal syntax for many OO langs
08:46
<
zenspider >
there's also send: obj.send :msg == obj.msg
08:46
James123 has joined #ruby
08:47
<
Jakaria >
zenspider: oh, didn't knew about that one :P
08:47
<
James123 >
Hello! I have an .erb file and a string %&foo, which gives an error. Any ideas how to make it work? (this string is not inside any erb tags)
08:47
<
Jakaria >
can I build CLI and small apps for Linux with Ruby?
08:48
<
zenspider >
... how to "make it work"... yup... incredibly helpful
08:49
<
zenspider >
Jakaria: CLI is no sweat. "small apps"... you mean GUI apps? some people do GTK stuff but I don't
08:49
<
Jakaria >
oh.. good to know :)
08:49
PorcoRex has quit [Quit: Leaving]
08:50
<
zenspider >
?answers James123
08:52
<
James123 >
I have a foo.erb which contains the string %&foo. I want the output of erb foo.erb to be %&foo, but instead I get syntax error, unexpected &, expecting end-of-input.
08:52
rakm has joined #ruby
08:53
mentok has quit [Ping timeout: 240 seconds]
08:54
<
matthewd >
`def initialize(from: from)` is circular because it's saying the `from` parameter is optional, and if not supplied, its value should instead come from the `from` parameter
08:54
<
matthewd >
Oh, PorcoRex left
08:54
<
zenspider >
>> require "erb", ERB.enw("%&foo").run
08:54
<
zenspider >
>> require "erb"; ERB.enw("%&foo").run
08:54
<
zenspider >
>> require "erb"; ERB.new("%&foo").run
08:55
<
zenspider >
mmmm whisky
08:55
<
zenspider >
James123: you still haven't read that URL
08:56
pandaant has joined #ruby
08:56
<
zenspider >
panda... ant... batman
08:57
Jakaria has left #ruby ["WeeChat 1.4"]
08:57
mikecmpbll has joined #ruby
08:58
<
matthewd >
James123: There's an option that makes '%' at start of line magical. If you have that turned on, it implies you're probably doing your own erb rendering.. which means you have code you ought to show while describing your problem.
08:59
vuoto has joined #ruby
09:00
<
zenspider >
matthewd: you're no fun
09:01
<
James123 >
matthewd: I am using the command line tool 'erb', which is included in my Ruby installation. I haven't written any code. The I use the command 'erb foo.erb'.
09:01
nachoman has joined #ruby
09:02
<
zenspider >
repro: echo "%&foo" > wtf.erb; erb wtf.erb
09:02
<
matthewd >
James123: Does that command have any means of getting help, perhaps?
09:02
<
zenspider >
Just took 15 minutes to get to...
09:03
enterprisey has quit [Remote host closed the connection]
09:03
<
zenspider >
James123: erb -h hints that you should use -P flag
09:03
<
matthewd >
zenspider: To be fair, "I want the output of erb foo.erb to be [..]" -- just the lack of punctuation hid the meaning
09:03
<
matthewd >
zenspider: Now who's the fun police? :P
09:04
im0nde has joined #ruby
09:04
<
zenspider >
5 minutes ago I didn't even know (remember?) that there was an erb cmd... I was curious!
09:04
<
James123 >
zenspider: Thanks, the -P flag did the trick
09:05
<
zenspider >
man... the ri doco for ERB is shit
09:06
TvL2386_ has quit [Remote host closed the connection]
09:09
_whitelogger has joined #ruby
09:10
antib has joined #ruby
09:12
xco has quit [Quit: xco]
09:14
xco has joined #ruby
09:16
marr has joined #ruby
09:17
TvL2386 has joined #ruby
09:18
skweek has quit [Quit: Leaving]
09:19
Rodya_ has joined #ruby
09:23
jameser has quit [Ping timeout: 264 seconds]
09:24
Rodya_ has quit [Ping timeout: 272 seconds]
09:25
lxsameer has joined #ruby
09:35
nofxxx has quit [Ping timeout: 240 seconds]
09:35
nadir has quit [Quit: Connection closed for inactivity]
09:37
acalycine has joined #ruby
09:42
Jakaria has joined #ruby
09:42
brent__ has joined #ruby
09:43
<
Jakaria >
so, "def test_method? arg" == "def test_method(arg)"????
09:43
ta_ has quit [Remote host closed the connection]
09:45
ta_ has joined #ruby
09:45
aupadhye has quit [Remote host closed the connection]
09:46
<
elomatreb >
Jakaria: Yep, but many popular styleguides recommend you don't do the former
09:47
brent__ has quit [Ping timeout: 260 seconds]
09:49
<
Jakaria >
can anyone suggest me some resource where I can find cool stuffs features/functions of Ruby?
09:49
SteenJobs has joined #ruby
09:50
cfec0b8d has joined #ruby
09:51
oleo has quit [Remote host closed the connection]
09:52
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:53
watom has left #ruby [#ruby]
09:55
acalycine has quit [Quit: bye]
09:58
xco has quit [Quit: xco]
10:02
ioquatix has joined #ruby
10:04
bronson has joined #ruby
10:08
bkxd has quit [Ping timeout: 255 seconds]
10:09
bronson has quit [Ping timeout: 240 seconds]
10:09
jackrandom has joined #ruby
10:13
tetsu_ has quit [Quit: Lost terminal]
10:15
bkxd has joined #ruby
10:15
bkxd has quit [Read error: Connection reset by peer]
10:19
quobo has quit [Quit: Connection closed for inactivity]
10:20
bkxd has joined #ruby
10:20
bkxd has quit [Read error: Connection reset by peer]
10:20
Rodya_ has joined #ruby
10:24
Xeago_ has joined #ruby
10:24
Rodya_ has quit [Ping timeout: 246 seconds]
10:25
jameser has joined #ruby
10:25
bkxd has joined #ruby
10:25
bkxd has quit [Read error: Connection reset by peer]
10:26
Xeago has quit [Ping timeout: 255 seconds]
10:26
Xeago_ is now known as Xeago
10:28
shinnya has quit [Ping timeout: 260 seconds]
10:28
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
10:29
rakm has quit [Ping timeout: 240 seconds]
10:29
Xeago_ has joined #ruby
10:30
Xeago has quit [Ping timeout: 255 seconds]
10:30
Xeago_ is now known as Xeago
10:30
bkxd has joined #ruby
10:31
patarr has joined #ruby
10:33
nanoz has quit [Ping timeout: 260 seconds]
10:34
Qchmqs has quit [Remote host closed the connection]
10:34
GodFather has joined #ruby
10:35
pandaant has quit [Remote host closed the connection]
10:36
patarr has quit [Ping timeout: 240 seconds]
10:36
flips has quit [Quit: bbl ...]
10:37
flips has joined #ruby
10:37
flips has joined #ruby
10:37
flips has quit [Changing host]
10:40
Xeago has quit [Ping timeout: 240 seconds]
10:42
keoghpe has joined #ruby
10:56
SteenJobs has quit [Quit: SteenJobs]
10:57
nachoman has quit []
11:00
SteenJobs has joined #ruby
11:03
SteenJobs has quit [Client Quit]
11:07
ioquatix has quit [Quit: ioquatix]
11:13
oleo has joined #ruby
11:13
bodgix has joined #ruby
11:14
bernd27 has joined #ruby
11:18
t-recx has joined #ruby
11:18
jackrandom has quit [Ping timeout: 272 seconds]
11:20
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:20
minimalism has quit [Quit: minimalism]
11:20
bodgix has joined #ruby
11:21
Rodya_ has joined #ruby
11:21
Mon_Ouie has joined #ruby
11:23
bodgix has quit [Client Quit]
11:23
bodgix has joined #ruby
11:25
Rodya_ has quit [Ping timeout: 246 seconds]
11:26
rakm has joined #ruby
11:29
brkkyk has joined #ruby
11:29
<
brkkyk >
hello everyone
11:30
nachoman has joined #ruby
11:30
<
brkkyk >
i'm looking for part-time, full-time or project based job as a ruby on rails developer
11:30
<
brkkyk >
i have few projects in different scales
11:30
<
brkkyk >
please contact me
11:31
<
brkkyk >
if you dont have a job for me but you have a clue about where do i find one, also please contact me
11:32
postmodern has quit [Quit: Leaving]
11:35
Xeago has joined #ruby
11:36
minimalism has joined #ruby
11:37
brkkyk has quit [Remote host closed the connection]
11:38
brkkyk has joined #ruby
11:40
<
brkkyk >
hey everyone
11:40
<
brkkyk >
i'm looking for part-time, full-time or project based job as a Ruby on Rails Developer. I have various projects in different scales. Please contact me if you're interested or even you know where do i find one.
11:40
nanoz has joined #ruby
11:40
nachoman has quit []
11:40
<
Papierkorb >
brkkyk: Please don't spam
11:41
<
brkkyk >
okey this is the last post i'm very sorry for spamming
11:44
tvw has joined #ruby
11:45
quobo has joined #ruby
11:46
MyMind has joined #ruby
11:47
oleo has quit [Quit: irc client terminated!]
11:48
Sembei has quit [Ping timeout: 255 seconds]
11:48
Pisuke has joined #ruby
11:49
workmad3 has joined #ruby
11:50
MyMind has quit [Ping timeout: 240 seconds]
11:52
<
slima >
Is there in ruby simple way to run ./ruby.rb as root, and this script drop privileges to another user?
11:55
<
al2o3-cr >
slima: check out Process::Sys.setuid
11:55
<
al2o3-cr >
&ri Process::Sys.setuid slima
11:56
workmad3 has quit [Ping timeout: 240 seconds]
11:57
oleo has joined #ruby
11:58
<
al2o3-cr >
slima: so something like this: Process::Sys.setuid(Etc.getpwnam("user").uid)
12:03
bodgix has joined #ruby
12:03
gnufied has joined #ruby
12:04
<
slima >
o, many thanks!
12:05
bodgix has quit [Client Quit]
12:05
bronson has joined #ruby
12:05
bodgix has joined #ruby
12:07
workmad3 has joined #ruby
12:10
bronson has quit [Ping timeout: 272 seconds]
12:10
cfec0b8d has quit [Remote host closed the connection]
12:12
nanoz has quit [Read error: Connection reset by peer]
12:12
psychicist__ has joined #ruby
12:13
bkxd has quit [Ping timeout: 240 seconds]
12:13
cfec0b8d has joined #ruby
12:13
vuoto has quit [Ping timeout: 258 seconds]
12:15
bkxd has joined #ruby
12:15
__Yiota has joined #ruby
12:18
dionysus69 has joined #ruby
12:21
lxnr has joined #ruby
12:22
Rodya_ has joined #ruby
12:24
hashrocket has quit [Quit: Connection closed for inactivity]
12:24
workmad3 has quit [Ping timeout: 240 seconds]
12:24
cfec0b8d has quit [Remote host closed the connection]
12:26
Rodya_ has quit [Ping timeout: 246 seconds]
12:27
cfec0b8d has joined #ruby
12:32
patarr has joined #ruby
12:35
Hunter1_ has quit [Remote host closed the connection]
12:35
Hunter1_ has joined #ruby
12:37
patarr has quit [Ping timeout: 260 seconds]
12:43
jphase has quit [Remote host closed the connection]
12:43
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:45
pankaj has joined #ruby
12:45
patr0clus has quit [Quit: tempusfugit]
12:47
Jakaria has quit [Ping timeout: 246 seconds]
12:47
lxnr has quit [Quit: WeeChat 1.7.1]
12:49
__Yiota has joined #ruby
12:52
yottanami has joined #ruby
12:53
<
yottanami >
I am sure I installed libssl-dev debian package
12:57
cschneid_ has joined #ruby
12:57
millerti has joined #ruby
12:57
<
adaedra >
Did you look at the provided log file?
12:58
bkxd has quit [Ping timeout: 240 seconds]
13:00
bkxd has joined #ruby
13:01
cschneid_ has quit [Ping timeout: 246 seconds]
13:11
xall_ has joined #ruby
13:12
GinoMan2440 has quit [Ping timeout: 245 seconds]
13:15
miqlas-H64 has joined #ruby
13:15
<
miqlas-H64 >
Hi Guys!
13:16
<
miqlas-H64 >
I try to get ruby ported to Haiku but i have a big problem here.
13:16
shinnya has joined #ruby
13:16
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:17
<
yottanami >
adaedra, ^
13:18
<
miqlas-H64 >
I got the 2.4.1 already working, just the packaging makes headache: the software packages in haiku never get extracted, just virtually populated in the file system and they are read-only. But ruby needs to lock the rubygems.rb and it is impossible on read-only file-system.
13:18
<
miqlas-H64 >
I need to fnd a workaround.
13:19
<
miqlas-H64 >
Is it possible to set in configure- or in compile-time the location for rubygems.rb? If it is possible i can move it into a writeable location.
13:20
<
miqlas-H64 >
But grepping the source code gives no
13:20
<
miqlas-H64 >
So grepping the source tree doesn't give any hint where is it defined or how.
13:21
<
miqlas-H64 >
Did you guys have any idea?
13:21
<
adaedra >
you may have to look in the build directory if there are other logs that may contain something if this one is not enough, yottanami
13:21
<
adaedra >
also, 2.0 is ancient and may just not be compatible with current openssls
13:22
Rodya_ has joined #ruby
13:25
Mon_Ouie has quit [Ping timeout: 268 seconds]
13:25
Kanbi has joined #ruby
13:27
Rodya_ has quit [Ping timeout: 260 seconds]
13:28
oleo has quit [Remote host closed the connection]
13:31
xco has joined #ruby
13:31
whathappens has joined #ruby
13:34
FastJack has joined #ruby
13:37
bkxd has quit [Ping timeout: 240 seconds]
13:37
<
yottanami >
adaedra, My libssl-dev verion is 1.1.0e-2 How should I check the compatiblity? I am also using rbenv
13:38
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:38
oleo has joined #ruby
13:39
bernd27 has quit [Remote host closed the connection]
13:39
nanoz has joined #ruby
13:40
jackrandom has joined #ruby
13:41
Mon_Ouie has joined #ruby
13:41
chouhoulis has joined #ruby
13:42
houhoulis has joined #ruby
13:42
bernd27 has joined #ruby
13:43
arup_r has joined #ruby
13:43
ltem has joined #ruby
13:43
yeticry_ has quit [Read error: Connection reset by peer]
13:43
yeticry has joined #ruby
13:44
jackrandom has quit [Ping timeout: 240 seconds]
13:44
<
arup_r >
I want to take first 10 entries from a hash. I looked at take(10) and first(10), both converts the output to an Array, and then I need to call .to_h again to convert it to Hash. Is there any direct method? :)
13:45
chouhoulis has quit [Ping timeout: 264 seconds]
13:46
bkxd has joined #ruby
13:48
rippa has joined #ruby
13:50
<
whathappens >
arup_r: Nope
13:50
<
whathappens >
arup_r: module HashFirst; refine Hash do; def first n = 1; super(n).to_h end end end; # ...; using HashFirst
13:50
<
arup_r >
hm. I was just confirming myself if missed the doc
13:51
<
arup_r >
whathappens: awesome!
13:51
<
arup_r >
whathappens: thanks
13:51
<
whathappens >
arup_r: you're welcome
13:52
arup_r has quit [Remote host closed the connection]
13:54
whathappens has quit [Remote host closed the connection]
14:00
nanoz] has joined #ruby
14:01
nanoz] has quit [Read error: Connection reset by peer]
14:02
patr0clus has joined #ruby
14:02
nanoz has quit [Ping timeout: 240 seconds]
14:03
JoshS has quit [Ping timeout: 240 seconds]
14:03
Kanbi has quit [Ping timeout: 255 seconds]
14:06
Archrover is now known as Archrover_
14:06
Archrover_ is now known as Archrover
14:06
VladGh has quit [Ping timeout: 260 seconds]
14:06
bronson has joined #ruby
14:08
arup_r has joined #ruby
14:09
bkxd has quit [Ping timeout: 240 seconds]
14:09
pratch has quit [Remote host closed the connection]
14:09
Tempesta has joined #ruby
14:10
<
dionysus69 >
hey whats the point of threads in ruby if they arent parallel in MRI?
14:10
<
dionysus69 >
what's the use case ?
14:10
<
matthewd >
dionysus69: What have you found so far by Googling?
14:11
<
dionysus69 >
nothing
14:11
<
dionysus69 >
couldn't find relevant posts
14:12
<
brkkyk >
it's about i/o concurrency
14:12
<
brkkyk >
yeah maybe it's not parallel in aspect of cpu
14:12
<
dionysus69 >
ok i ll try to find something once more
14:12
<
dionysus69 >
ye I mean they dont utilize multiple cores
14:12
bronson has quit [Ping timeout: 272 seconds]
14:12
<
brkkyk >
but it's gives us opportunity to use i/o concurrency
14:12
<
dionysus69 >
thus they arent faster, thats the only use case for threads if you ask me
14:13
<
matthewd >
I just searched for 'ruby threads use' and found several articles that seem to be fairly descriptive
14:13
<
dionysus69 >
how is io not concurrent if I dont use threads ?
14:14
<
brkkyk >
if you dont use threads on io
14:14
<
brkkyk >
then program is waiting for complete the i/o proccess
14:14
<
dionysus69 >
ok thanks that gave better results matthewd I just had hard time googling efficiently
14:14
djbkd has joined #ruby
14:15
<
dionysus69 >
ye but program has to wait anyway right?
14:15
<
matthewd >
I just picked words from the question you asked ¯\_(ツ)_/¯
14:15
<
dionysus69 >
if u put io in different thread, other threads will have to wait anyway so I dont get whats different
14:15
Tempesta has quit [Quit: See ya!]
14:16
Tempesta has joined #ruby
14:16
<
matthewd >
> other threads will have to wait anyway
14:16
<
dionysus69 >
threads follow each other
14:16
<
brkkyk >
actually, concurrency and parallelism are just way too different terms
14:16
pratch has joined #ruby
14:17
gnufied has quit [Ping timeout: 260 seconds]
14:17
<
brkkyk >
so threads dont follow each other
14:17
<
brkkyk >
also if you have enough knowledge then you can use another ruby procceses to achieve parallelism in cpu aspect
14:20
iloveitaly has joined #ruby
14:20
dionysus69 has quit [Ping timeout: 240 seconds]
14:22
whathappens has joined #ruby
14:23
whathappens has quit [Client Quit]
14:23
Rodya_ has joined #ruby
14:24
whathappens has joined #ruby
14:24
etehtsea has joined #ruby
14:25
whathappens has quit [Remote host closed the connection]
14:25
centrx has joined #ruby
14:25
whathappens has joined #ruby
14:26
<
brkkyk >
@iloveitaly the most easy way to achieve this is using ActiveSupport
14:26
electrostat has quit [Quit: uwotm8]
14:26
<
iloveitaly >
This is a non-rails project :( Is there any way around that?
14:26
electrostat has joined #ruby
14:27
Rodya_ has quit [Ping timeout: 246 seconds]
14:27
<
brkkyk >
actually yes
14:27
<
brkkyk >
there is a way
14:28
<
brkkyk >
this library have dst? method also
14:28
xall_ has quit [Read error: Connection reset by peer]
14:29
gnufied has joined #ruby
14:31
<
brkkyk >
whathappens: i'm not sure if tzinfo has dst? method, but yes tzinfo is also popular gem about timezones etc.
14:31
<
whathappens >
brkkyk: it does have a #dst? method, yes
14:31
jrafanie has joined #ruby
14:31
<
whathappens >
brkkyk: ah, I meant to reply to iloveitaly, oops
14:31
<
iloveitaly >
Oh, thanks!! Taking a look now
14:33
jaegerca has quit [Remote host closed the connection]
14:33
patarr has joined #ruby
14:35
xco has left #ruby [#ruby]
14:38
patarr has quit [Ping timeout: 245 seconds]
14:38
djbkd has quit [Remote host closed the connection]
14:39
djbkd has joined #ruby
14:41
JoshS has joined #ruby
14:44
djbkd has quit [Ping timeout: 268 seconds]
14:45
bmurt has joined #ruby
14:49
xall_ has joined #ruby
14:50
nowhereman has joined #ruby
14:52
jackjackdripper has joined #ruby
14:53
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:53
xall_ has quit [Ping timeout: 240 seconds]
14:53
miqlas-H64 has quit [Ping timeout: 240 seconds]
14:55
blackwind_123 has quit [Ping timeout: 260 seconds]
14:58
blackwind_123 has joined #ruby
14:58
djbkd has joined #ruby
15:00
miqlas-H64 has joined #ruby
15:03
oleo has quit [Remote host closed the connection]
15:05
coderphive has joined #ruby
15:06
im0nde has quit [Ping timeout: 255 seconds]
15:09
moufl has left #ruby [#ruby]
15:11
pankaj has quit [Ping timeout: 240 seconds]
15:11
gnufied has quit [Ping timeout: 246 seconds]
15:13
terminalcommand has joined #ruby
15:13
__Yiota has joined #ruby
15:15
andrzejku has joined #ruby
15:15
nowhereman has quit [Ping timeout: 240 seconds]
15:16
AndChat|474201 has joined #ruby
15:16
AndChat|474201 has quit [Max SendQ exceeded]
15:17
__Yiota has quit [Client Quit]
15:17
terminalcommand has quit [Client Quit]
15:17
AndChat|474201 has joined #ruby
15:17
AndChat|474201 has quit [Max SendQ exceeded]
15:18
AndChat|474201 has joined #ruby
15:18
AndChat|474201 has quit [Max SendQ exceeded]
15:18
patr0clus has quit [Ping timeout: 272 seconds]
15:18
terminalcommand has joined #ruby
15:22
pankaj has joined #ruby
15:24
nowhereman has joined #ruby
15:27
Tempesta has quit [Quit: See ya!]
15:29
SteenJobs has joined #ruby
15:31
nachoman has joined #ruby
15:31
gothicsouth has joined #ruby
15:31
<
yottanami >
Is it because of openssl?
15:34
miqlas-H64 has quit [Quit: Vision[0.10.1]: i've been blurred!]
15:35
mdw has joined #ruby
15:36
mdw has quit [Client Quit]
15:36
jackjackdripper has quit [Quit: Leaving.]
15:36
houhoulis has quit [Remote host closed the connection]
15:39
mr_rich101 has joined #ruby
15:39
redaudit has joined #ruby
15:41
olehsliusar has joined #ruby
15:42
lucas_ has quit [Ping timeout: 240 seconds]
15:42
nachoman has quit []
15:43
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
15:43
nachoman has joined #ruby
15:44
Ellimist has joined #ruby
15:45
Tempesta has joined #ruby
15:47
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:49
terminalcommand has quit [Ping timeout: 268 seconds]
15:50
<
Papierkorb >
What's a popular JSON-RPC lib? Need client and server side, would be perfect if the client could do JSON-RPC over hTTP
15:50
SteenJobs has quit [Quit: SteenJobs]
15:52
JoshS has quit [Ping timeout: 246 seconds]
15:55
gothicsouth has joined #ruby
15:56
Amoeba_ has quit [Quit: Ex-Chat]
15:56
ledestin has joined #ruby
16:01
ledestin has quit [Ping timeout: 255 seconds]
16:02
tomphp has joined #ruby
16:03
pankaj has quit [Ping timeout: 255 seconds]
16:08
bronson has joined #ruby
16:09
pankaj has joined #ruby
16:12
oleo has joined #ruby
16:12
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:12
bronson has quit [Ping timeout: 240 seconds]
16:13
Mon_Ouie has quit [Read error: No route to host]
16:14
badrsahl_ has joined #ruby
16:16
oleo has quit [Client Quit]
16:16
nadir has joined #ruby
16:17
pankaj has quit [Ping timeout: 255 seconds]
16:19
__Yiota has joined #ruby
16:19
psmolen has quit [Ping timeout: 260 seconds]
16:20
<
whathappens >
yottanami: Can you use a newer, still-supported Ruby? Ruby 2.3 or 2.4 would be ideal.
16:21
psmolen has joined #ruby
16:21
rkellermeyer has joined #ruby
16:23
badrsahl_ has quit []
16:24
badrsahl_ has joined #ruby
16:24
lucas has joined #ruby
16:25
badrsahl_ has quit [Client Quit]
16:25
sonOfRa has quit [Remote host closed the connection]
16:26
sonOfRa has joined #ruby
16:27
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:29
<
whathappens >
yottanami: If you absolutely must use Ruby 2.0 (which doesn't receive even security patches for known vulnerabilities) use p648.
16:30
<
whathappens >
yottanami: (You had p481.)
16:33
pankaj has joined #ruby
16:34
patarr has joined #ruby
16:34
<
whathappens >
Papierkorb: jimson looks nicely done for server/client (rack/rest-client) on first impression
16:35
<
Papierkorb >
whathappens: Also saw that and it looked like the most stable one thus far, thanks
16:35
<
whathappens >
Papierkorb: i've not used it, or JSON-RPC at all for that matter, but i'm curious
16:35
DTZUZU has joined #ruby
16:36
TvL2386_ has joined #ruby
16:37
TvL2386 has quit [Ping timeout: 255 seconds]
16:37
swills has quit [Ping timeout: 258 seconds]
16:38
swills has joined #ruby
16:39
patarr has quit [Ping timeout: 268 seconds]
16:39
TvL2386_ has quit [Client Quit]
16:40
jaywhawk has joined #ruby
16:40
olehsliusar has quit [Quit: Leaving]
16:44
jaywhawk has quit [Remote host closed the connection]
16:44
whathappens has quit [Quit: Bless bless...]
16:47
TvL2386 has joined #ruby
16:47
TvL2386 has quit [Client Quit]
16:48
TvL2386 has joined #ruby
16:48
coderphive has quit [Quit: coderphive]
16:48
TvL2386 has quit [Client Quit]
16:50
TvL2386 has joined #ruby
16:53
sonOfRa has quit [Remote host closed the connection]
16:53
apparition has joined #ruby
16:54
sonOfRa has joined #ruby
16:55
cfec0b8d has quit [Remote host closed the connection]
16:55
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
16:55
patarr has joined #ruby
16:58
cschneid_ has joined #ruby
17:00
patarr has quit [Ping timeout: 240 seconds]
17:02
cschneid_ has quit [Ping timeout: 246 seconds]
17:06
pankaj has quit [Ping timeout: 240 seconds]
17:06
JoshS has joined #ruby
17:07
Lord_of_Life has quit [Changing host]
17:07
Lord_of_Life has joined #ruby
17:07
Lord_of_Life has quit [Changing host]
17:07
Lord_of_Life has joined #ruby
17:08
patr0clus has joined #ruby
17:09
minimalism has quit [Ping timeout: 240 seconds]
17:11
JoshS has quit [Ping timeout: 240 seconds]
17:14
shinnya has quit [Ping timeout: 260 seconds]
17:21
jusa has joined #ruby
17:25
psychicist__ has quit [Quit: Lost terminal]
17:29
minimalism has joined #ruby
17:30
jackjackdripper has joined #ruby
17:31
vondruch has quit [Quit: vondruch]
17:33
yogg-saron has joined #ruby
17:36
volty has joined #ruby
17:36
ikoma has joined #ruby
17:37
<
nishiki >
cytheria: ouais elle s'appelle koshieq
17:38
marr has quit [Ping timeout: 240 seconds]
17:38
brkkyk has quit [Read error: Connection reset by peer]
17:38
ascarter has joined #ruby
17:40
mim1k has joined #ruby
17:41
chouhoulis has joined #ruby
17:42
ascarter has quit [Client Quit]
17:42
ikoma has quit [Quit: ikoma]
17:45
psychicist__ has joined #ruby
17:46
chouhoulis has quit [Ping timeout: 268 seconds]
17:47
ascarter has joined #ruby
17:47
mim1k has quit [Ping timeout: 255 seconds]
17:48
ascarter has quit [Client Quit]
17:48
coderphive has joined #ruby
17:50
yottanami has quit [Quit: Leaving]
17:51
ascarter has joined #ruby
17:51
volty has left #ruby ["Konversation terminated!"]
17:53
jud has quit [Quit: Leaving]
17:55
duderonomy has joined #ruby
18:01
ryzokuken has joined #ruby
18:02
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:02
mentok has joined #ruby
18:04
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:06
Cohedrin has joined #ruby
18:09
pankaj has joined #ruby
18:09
bronson has joined #ruby
18:13
bronson has quit [Ping timeout: 240 seconds]
18:17
jud has joined #ruby
18:18
enterprisey has joined #ruby
18:23
mvb33 has joined #ruby
18:24
tildes has quit [Ping timeout: 260 seconds]
18:26
Rodya_ has joined #ruby
18:28
tildes has joined #ruby
18:31
Rodya_ has quit [Ping timeout: 245 seconds]
18:32
mim1k has joined #ruby
18:34
rkellermeyer has quit [Ping timeout: 255 seconds]
18:36
mvb33_ has joined #ruby
18:36
Hunter1_ has quit [Remote host closed the connection]
18:37
Hunter1_ has joined #ruby
18:37
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
18:38
mvb33 has quit [Ping timeout: 240 seconds]
18:40
oleo has joined #ruby
18:41
spiette_ has joined #ruby
18:43
weathermaker_ has joined #ruby
18:44
johnny56 has quit [Remote host closed the connection]
18:47
mim1k has quit [Ping timeout: 268 seconds]
18:48
weathermaker_ has left #ruby [#ruby]
18:50
dionysus69 has joined #ruby
18:51
__Yiota has joined #ruby
18:53
spiette_ has quit [Ping timeout: 268 seconds]
18:54
weathermaker has joined #ruby
18:55
dar123 has quit [Ping timeout: 245 seconds]
18:56
patarr has joined #ruby
18:56
djbkd has joined #ruby
18:56
coderphive has quit [Quit: coderphive]
18:59
Dimik has joined #ruby
19:00
nachoman has quit []
19:00
patarr has quit [Ping timeout: 255 seconds]
19:01
andrzejku has joined #ruby
19:01
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:01
mvb33_ has quit [Quit: leaving]
19:06
olblak has quit [Ping timeout: 268 seconds]
19:06
nowhereman has quit [Remote host closed the connection]
19:08
nachoman has joined #ruby
19:08
spiette_ has joined #ruby
19:09
JoshS has joined #ruby
19:11
__Yiota has joined #ruby
19:12
tildes has quit [Ping timeout: 245 seconds]
19:13
armyriad has quit [Quit: Leaving]
19:15
__Yiota has quit [Client Quit]
19:15
spiette_ has quit [Ping timeout: 260 seconds]
19:15
armyriad has joined #ruby
19:25
olblak has joined #ruby
19:25
armyriad has quit [Quit: Leaving]
19:27
Rodya_ has joined #ruby
19:29
__Yiota has joined #ruby
19:31
Rodya_ has quit [Ping timeout: 246 seconds]
19:32
croberts has quit [Ping timeout: 260 seconds]
19:34
enterprisey has quit [Remote host closed the connection]
19:35
KeyJoo has joined #ruby
19:38
cfec0b8d has joined #ruby
19:41
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:43
<
havenwood >
When I define it I usually use #let or a block form of #itself, but #yield_self will do just fine!
19:46
bernd9000 has joined #ruby
19:46
bernd9000 has quit [Read error: Connection reset by peer]
19:48
bernd9000 has joined #ruby
19:48
pankaj has quit [Ping timeout: 240 seconds]
19:48
bernd9000 has quit [Read error: Connection reset by peer]
19:48
weathermaker has quit [Quit: weathermaker]
19:48
<
baweaver >
Oh, so it's yield_self now havenwood ?
19:48
redaudit has quit [Ping timeout: 268 seconds]
19:49
bernd27 has quit [Ping timeout: 240 seconds]
19:49
<
havenwood >
baweaver: Yup, that's what they went with for now at least.
19:49
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:50
bernd9000 has joined #ruby
19:50
bernd9000 has quit [Read error: Connection reset by peer]
19:51
<
havenwood >
I should have proposed #zap to compliment #tap. :-P
19:51
<
baweaver >
reverse of tap! :D
19:51
<
havenwood >
i like it
19:51
bernd9000 has joined #ruby
19:52
bernd9000 has quit [Read error: Connection reset by peer]
19:54
bernd9000 has joined #ruby
19:56
milardovich has joined #ruby
19:56
Mon_Ouie has joined #ruby
19:59
enterprisey has joined #ruby
20:01
Rodya_ has joined #ruby
20:06
nowhere_man has joined #ruby
20:06
tildes has joined #ruby
20:10
bronson has joined #ruby
20:10
workmad3 has joined #ruby
20:12
ych has joined #ruby
20:13
milardovich has quit []
20:14
marr has joined #ruby
20:15
bronson has quit [Ping timeout: 272 seconds]
20:15
cam27 has joined #ruby
20:15
<
cam27 >
Do ruby developers also follow desing patterns like abstract factory and others?
20:20
araujo has joined #ruby
20:22
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:22
pankaj has joined #ruby
20:25
pankaj has quit [Client Quit]
20:25
JoshS has quit [Ping timeout: 240 seconds]
20:29
nachoman has quit []
20:30
dionysus69 has quit [Ping timeout: 240 seconds]
20:37
Qommand0r has quit [Quit: WeeChat 1.7.1]
20:38
armyriad has joined #ruby
20:41
__Yiota has joined #ruby
20:41
Cohedrin has joined #ruby
20:42
nachoman has joined #ruby
20:42
mim1k has joined #ruby
20:44
cschneid_ has joined #ruby
20:46
ledestin has joined #ruby
20:46
cschneid_ has quit [Read error: Connection reset by peer]
20:46
SCHAPiE has quit [Read error: Connection reset by peer]
20:46
cschneid_ has joined #ruby
20:47
mim1k has quit [Ping timeout: 240 seconds]
20:47
cschneid_ has quit [Remote host closed the connection]
20:48
cschneid_ has joined #ruby
20:50
cschneid_ has quit [Read error: Connection reset by peer]
20:51
cschneid_ has joined #ruby
20:54
TvL2386_ has joined #ruby
20:54
SCHAPiE has joined #ruby
20:55
tildes_ has joined #ruby
20:56
TvL2386 has quit [Ping timeout: 246 seconds]
20:56
tildes has quit [Ping timeout: 255 seconds]
20:56
patarr has joined #ruby
20:59
cschneid_ has quit [Remote host closed the connection]
21:01
patarr has quit [Ping timeout: 240 seconds]
21:03
duderonomy has quit [Ping timeout: 246 seconds]
21:06
nachoman has quit []
21:06
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:07
<
ych >
hey,is there anything specific i should pay attention when using threading gems like Parallel/Threach in my code to make it completely threadsafe?
21:09
JeanCarloMachado has joined #ruby
21:09
theajnin has joined #ruby
21:10
<
theajnin >
hi is anyone here that can help me?
21:12
coderphive has joined #ruby
21:12
<
theajnin >
nobody is here?
21:14
<
ikopico >
theajnin: just post the question and if anyone's available and know how to answer they will
21:15
<
theajnin >
I am having a bit of trouble getting my round correct in my ruby code. For example I want all floating numbers [11.10, 11.20] round up to the nearest .50 [11.50.11.50], Its not necessary for the number to be 11.25 to round to the nearest .50 [11.50]
21:15
mentok has quit [Changing host]
21:15
mentok has joined #ruby
21:16
<
theajnin >
currently the formula is this (x*2).round / 2 but i want all instances 11.10, 11.20 round up to 11.50
21:16
ltem has quit [Quit: Leaving]
21:17
<
theajnin >
any ideas??
21:20
oleo has quit [Quit: irc client terminated!]
21:25
oleo has joined #ruby
21:25
oleo has quit [Changing host]
21:25
oleo has joined #ruby
21:26
nachoman has joined #ruby
21:27
spiette_ has joined #ruby
21:27
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:29
<
ikopico >
Something like this?
21:30
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
21:31
jrafanie has joined #ruby
21:33
oleo has quit [Quit: irc client terminated!]
21:33
psychicist__ has quit [Quit: Lost terminal]
21:34
antib has quit [Ping timeout: 255 seconds]
21:35
coderphive has quit [Quit: coderphive]
21:35
redaudit has joined #ruby
21:44
shinnya has joined #ruby
21:45
rkellermeyer has joined #ruby
21:46
JeanCarloMachado has quit [Ping timeout: 240 seconds]
21:46
gothicsouth has joined #ruby
21:50
tildes_ has quit [Ping timeout: 240 seconds]
21:54
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
21:54
ur5us has joined #ruby
21:55
spiette_ has quit [Ping timeout: 264 seconds]
21:55
olblak has quit [Quit: Lost terminal]
21:58
DLSteve has joined #ruby
21:59
gothicsouth has joined #ruby
22:03
theajnin has quit [Quit: Page closed]
22:04
oleo has joined #ruby
22:04
coderphive has joined #ruby
22:09
_whitelogger has joined #ruby
22:11
bronson has joined #ruby
22:11
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
22:13
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:15
mentok has quit [Ping timeout: 258 seconds]
22:16
bronson has quit [Ping timeout: 260 seconds]
22:18
Lyubo1 has quit [Ping timeout: 240 seconds]
22:20
Bock is now known as Sauvin
22:22
minimalism has quit [Ping timeout: 260 seconds]
22:25
Lyubo1 has joined #ruby
22:25
oleo has quit [Quit: irc client terminated!]
22:25
coderphive has quit [Quit: coderphive]
22:26
GodFather has quit [Ping timeout: 240 seconds]
22:27
jackjackdripper has quit [Quit: Leaving.]
22:28
<
havenwood >
or it looks like that example would be: (x * 2).ceil.fdiv(2)
22:28
<
havenwood >
just because of the always round up
22:28
<
havenwood >
(not really rounding)
22:29
gothicsouth has joined #ruby
22:31
latemus has quit [Ping timeout: 240 seconds]
22:33
GodFather has joined #ruby
22:33
latemus has joined #ruby
22:34
Rodya_ has quit [Remote host closed the connection]
22:35
Rodya_ has joined #ruby
22:36
Cohedrin has quit [Ping timeout: 240 seconds]
22:38
JeanCarloMachado has joined #ruby
22:39
Rodya_ has quit [Ping timeout: 260 seconds]
22:42
oleo has joined #ruby
22:44
ur5us has quit [Remote host closed the connection]
22:48
minimalism has joined #ruby
22:49
oleo has quit [Quit: irc client terminated!]
22:49
workmad3 has quit [Ping timeout: 255 seconds]
22:50
workmad3 has joined #ruby
22:53
Rutix has joined #ruby
22:53
Rutix has joined #ruby
22:53
Rutix has quit [Changing host]
22:55
workmad3 has quit [Ping timeout: 268 seconds]
22:56
Rodya_ has joined #ruby
22:56
Cohedrin has joined #ruby
22:57
patarr has joined #ruby
23:01
James123 has quit [Quit:]
23:01
cschneid_ has joined #ruby
23:02
patarr has quit [Ping timeout: 260 seconds]
23:03
bkxd has joined #ruby
23:04
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
23:06
cschneid_ has quit [Ping timeout: 272 seconds]
23:07
DLSteve has quit [Remote host closed the connection]
23:09
DLSteve has joined #ruby
23:10
pppktz has joined #ruby
23:12
<
pppktz >
Hi, I am trying to iterate through some files with the Dir command and trying to execute all the variable one by one but somehow it always try to execute the shell script with all the files at once, could advise how to use shell commands variables as iteration?
23:13
nachoman has quit []
23:13
<
havenwood >
pppktz: Show us what you have so far that isn't working?
23:14
<
pppktz >
should i copy it in the chat?
23:14
<
havenwood >
pppktz: gist.github.com is best
23:14
<
havenwood >
pppktz: paste us a link to the gist
23:14
<
pppktz >
fine, give me a sec
23:15
nachoman has joined #ruby
23:21
MrMuff_ has joined #ruby
23:27
enterprisey has quit [Remote host closed the connection]
23:27
<
havenwood >
pppktz: Looks like you're missing the closing backtick, but what you showed should iterate through each String returned.
23:30
<
pppktz >
I have updated the typo, when I am running this script I receive the following error:
23:30
<
pppktz >
More than one file given with -f
23:30
JeanCarloMachado has quit [Ping timeout: 240 seconds]
23:31
JeanCarloMachado has joined #ruby
23:41
JeanCarloMachado has quit [Ping timeout: 260 seconds]
23:41
JeanCarloMachado has joined #ruby
23:42
bmurt has joined #ruby
23:43
mim1k has joined #ruby
23:43
oleo has joined #ruby
23:44
cam27 has quit [Quit: cam27]
23:47
bkxd has quit [Read error: Connection reset by peer]
23:47
mim1k has quit [Ping timeout: 240 seconds]
23:50
cschneid_ has joined #ruby
23:50
charliesome has joined #ruby
23:50
bonhoeffer has joined #ruby
23:53
mentok has joined #ruby
23:58
alveric3 has joined #ruby
23:59
bkxd has joined #ruby