|jemc| has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby-lang
sdouglas has joined #ruby-lang
kalehv has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
mykoweb has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
r3zn0r has joined #ruby-lang
ericwood_ has joined #ruby-lang
lsegal has joined #ruby-lang
sduckett has joined #ruby-lang
Cakey has quit [Ping timeout: 256 seconds]
MikaAK has quit [Quit: node-irc says goodbye]
MikaAK1 has joined #ruby-lang
sduckett has quit [Ping timeout: 240 seconds]
hgl_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
symm- has joined #ruby-lang
heftig has quit [Ping timeout: 272 seconds]
jaimef has quit [Excess Flood]
sharpmachine has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
jaimef has joined #ruby-lang
shinnya has quit [Ping timeout: 256 seconds]
heftig has joined #ruby-lang
sharpmac_ has joined #ruby-lang
sharpmachine has quit [Read error: Connection reset by peer]
sharpmac_ has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 272 seconds]
sharpmachine has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
gix has quit [Ping timeout: 264 seconds]
ericwood_ has quit [Quit: WeeChat 0.4.3]
ericwood_ has joined #ruby-lang
heftig has joined #ruby-lang
gix has joined #ruby-lang
yugui_zzz is now known as yugui
yugui is now known as yugui_zzz
yugui_zzz is now known as yugui
ericwood_ has quit [Client Quit]
javilm_ has joined #ruby-lang
AncientAmateur has joined #ruby-lang
javilm has quit [Ping timeout: 272 seconds]
javilm_ is now known as javilm
saarinen has joined #ruby-lang
AncientAmateur has quit [Ping timeout: 240 seconds]
saarinen has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
ap4y has quit [Remote host closed the connection]
yugui is now known as yugui_zzz
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
tectonic has joined #ruby-lang
mikecmpbll has joined #ruby-lang
bruno- has joined #ruby-lang
cklee has joined #ruby-lang
MikaAK1 has quit [Ping timeout: 272 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
bruno- has quit [Ping timeout: 256 seconds]
ejanuska has joined #ruby-lang
vintik has joined #ruby-lang
saarinen has quit [Quit: saarinen]
<ejanuska>
QUIT
mikecmpbll has quit [Quit: i've nodded off.]
jgpawletko has joined #ruby-lang
jgpawletko has quit [Client Quit]
ejanuska has quit [Quit: Page closed]
sduckett has joined #ruby-lang
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby-lang
sduckett has quit [Ping timeout: 240 seconds]
ejanuska has joined #ruby-lang
heftig has quit [Ping timeout: 272 seconds]
tenderlove has quit [Quit: Leaving...]
amystephen has quit [Quit: amystephen]
rahul_j has joined #ruby-lang
kalehv_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
kalehv has quit [Ping timeout: 250 seconds]
jackhammer2022 has joined #ruby-lang
<ejanuska>
Is it OK to ask questions here?
<centrx>
Absolutely
<centrx>
It's just not a very active time
<ejanuska>
I have a class "Foo", which will include a module "Bar", which also will be included in other classes.
<ejanuska>
After I instansiate a Foo object: Foo.new . I want to call a method from the Bar module like this Foo.baz
<ejanuska>
I would like methods in the Bar module to have access to Foo instance variables so I don't have to call a method like this foo = Foo.new foo.baz( foo.instance_variable_name ) or x = @instance_variable_name f.baz( x ) I could let the methods in the Bar module know about the instance variables in Foo but something about that just doesn't sit right with me. Every class that includes Bar would have to have an instance variable wit
monees has joined #ruby-lang
<ejanuska>
what is the best way to go
vintik has quit [Remote host closed the connection]
<ejanuska>
I know I could args to the methods in Bar module but that seems like it shouldn't be necessary
<centrx>
Methods in a module have access to the instance variables of the class the modules included in.
yugui_zzz is now known as yugui
mikecmpbll has joined #ruby-lang
<centrx>
The Bar module will not share those instance variables among the classes it is included in
monees has quit [Ping timeout: 250 seconds]
heftig has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
<centrx>
The module is imported/included into the class, as a shareable independent library
<ejanuska>
I know the methods can access the instance variables but I don't want to couple the class and the module so tightly
araujo has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Client Quit]
araujo has joined #ruby-lang
hgl_ has quit [Quit: Computer has gone to sleep.]
spuk has quit [Ping timeout: 272 seconds]
ejanuska has quit [Quit: Page closed]
spuk has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
arooni-mobile has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
yugui is now known as yugui_zzz
sdouglas has joined #ruby-lang
bruno- has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
ericwood_ has joined #ruby-lang
bruno- has quit [Ping timeout: 272 seconds]
jarto has joined #ruby-lang
rramphal has joined #ruby-lang
rramphal has left #ruby-lang [#ruby-lang]
willmarshall has joined #ruby-lang
djbkd has joined #ruby-lang
MikaAK1 has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
DivineEntity has quit [Quit: leaving]
touzin1 has joined #ruby-lang
theharshest has joined #ruby-lang
theharshest has quit [Client Quit]
nathanstitt has quit [Quit: I growing sleepy]
ericwood_ has quit [Quit: WeeChat 0.4.3]
nathanstitt has joined #ruby-lang
theharshest has joined #ruby-lang
nathanstitt has quit [Client Quit]
touzin1 has quit [Ping timeout: 256 seconds]
MikaAK1 has quit [Ping timeout: 250 seconds]
yugui_zzz is now known as yugui
centrx has quit [Quit: Mead error: Connection reset by beer]
mistym has joined #ruby-lang
yugui is now known as yugui_zzz
yugui_zzz is now known as yugui
jarto has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
rippa has joined #ruby-lang
yugui is now known as yugui_zzz
hgl_ has joined #ruby-lang
sdouglas has joined #ruby-lang
cornerma1 has joined #ruby-lang
kalehv has joined #ruby-lang
cornerman has quit [Ping timeout: 260 seconds]
hgl_ has quit [Remote host closed the connection]
hgl_ has joined #ruby-lang
kalehv_ has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby-lang
emmesswhy has quit [Quit: emmesswhy]
bruno- has quit [Ping timeout: 240 seconds]
mykoweb has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
cleopatra has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<cleopatra>
hello people what new here
<cleopatra>
I am selene from venezuela
adaleigh has quit [Ping timeout: 240 seconds]
adaleigh has joined #ruby-lang
araujo has quit [Quit: Leaving]
hahuang65 has joined #ruby-lang
yfeldblum has joined #ruby-lang
amystephen has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
<r3zn0r>
nothing much cleopatra
GaelanAintAround has quit [Read error: Connection reset by peer]
Gaelane has joined #ruby-lang
<cleopatra>
<r3zn0r>
<cleopatra>
that bad
heftig has quit [Quit: Quitting]
yfeldblum has quit [Ping timeout: 256 seconds]
sdouglas has quit [Remote host closed the connection]
<r3zn0r>
lol
sdouglas has joined #ruby-lang
mehlah has joined #ruby-lang
yugui_zzz is now known as yugui
sdouglas has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
<cleopatra>
r3zn0r, I am exploring channels ruby and ruby on rails: O
arooni-mobile has quit [Ping timeout: 240 seconds]
<r3zn0r>
cleopatra: there is also #ruby-lang
<r3zn0r>
oh this is ruby-lang.. lol
<cleopatra>
the people are bussy or sleeping
mykoweb has quit [Read error: Connection reset by peer]
<cleopatra>
my english is poor :(
mykoweb has joined #ruby-lang
<cleopatra>
r3zn0r, a good book to learn ruby?
rgarver has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<r3zn0r>
"The Ruby Programming Language" by david flanagan & yukihiro matsumoto
ur5us_ has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
<cleopatra>
yukihiro no is the creator of ruby=?
sdouglas has joined #ruby-lang
rgarver has quit [Client Quit]
<r3zn0r>
yes yukihiro matsumoto created ruby in 1993, he is also goes by the name 'matz'
<cleopatra>
O.o
<cleopatra>
You krow much about that
hahuang65 has joined #ruby-lang
<r3zn0r>
cleopatra: :)
kyb3r_ has joined #ruby-lang
yugui is now known as yugui_zzz
<cleopatra>
so i can ask "The Ruby Programming Language" There vercion in epub?
<cleopatra>
the only way I can read it is translated into my language because my English is poor
kalehv has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
<r3zn0r>
cleopatra: i dont know, i purchased the book in paperback format
<cleopatra>
U__U
<cleopatra>
it became very popular ruby
<cleopatra>
I try to learn a few months ago
theharshest has quit [Quit: This computer has gone to sleep]
<r3zn0r>
cleopatra: cool
<cleopatra>
xD
<cleopatra>
OHH i forget soem resource for rspec
D9 has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 240 seconds]
Sgeo_ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Sgeo has quit [Ping timeout: 256 seconds]
arBmind has joined #ruby-lang
apeiros has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 240 seconds]
cleopatra has quit [Ping timeout: 250 seconds]
dc5ala has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
relix has joined #ruby-lang
yfeldblum has joined #ruby-lang
RobertBirnie has joined #ruby-lang
symm- has joined #ruby-lang
sabman has joined #ruby-lang
<sabman>
can I ask a rspec question here?
<sabman>
it's probably more to do with require
yfeldblum has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
yfeldblum has joined #ruby-lang
_ht has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
snoopybbt has joined #ruby-lang
djbkd has joined #ruby-lang
rahul_j has joined #ruby-lang
ruby-nyc has joined #ruby-lang
symm- has quit [Quit: Leaving...]
djbkd has quit [Ping timeout: 250 seconds]
kwd has joined #ruby-lang
apeiros has joined #ruby-lang
willmarshall has quit [Ping timeout: 260 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby-lang
ruby-nyc has quit [Quit: Leaving.]
kyb3r_ has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
diegoviola has joined #ruby-lang
adaleigh has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
yugui is now known as yugui_zzz
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has joined #ruby-lang
yugui_zzz is now known as yugui
ruby-lang716 has joined #ruby-lang
<ruby-lang716>
a
<jhass>
b
<benlovel1>
c
<surrounder>
d
benlovel1 is now known as benlovell
ruby-lang716 has quit [Ping timeout: 246 seconds]
<apeiros>
e
<ljarvis>
f
<yorickpeterse>
z
<yorickpeterse>
/thread
<surrounder>
lol
weems|mac has quit [Quit: weems|mac]
tkuchiki has joined #ruby-lang
<ljarvis>
so predicable
<ljarvis>
predictable
yugui is now known as yugui_zzz
<gregf_>
za
<yorickpeterse>
that's what he said
<DefV>
actually
<DefV>
aa
<DefV>
ab
<gregf_>
;)
arBmind has joined #ruby-lang
<yorickpeterse>
That's not a valid English alphabet
<yorickpeterse>
If we were talking about permutations of all possible characters in groups of N characters then yes, it might've been valid
<yorickpeterse>
But that would depend on the permutation size
<centrx>
How many valid English alphabets are there?
<DefV>
zzzz yorickpeterse
<DefV>
zzzz
MichD is now known as michd
<yorickpeterse>
:P
michd is now known as MichD
arBmind1 has quit [Ping timeout: 240 seconds]
<yorickpeterse>
I do wonder why western alphabets typically skip multibytes
<yorickpeterse>
"fukit we'll do it in ascii"
<yorickpeterse>
They really should just teach the full Unicode tables instead in primary school
enebo has joined #ruby-lang
yfeldblum has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
marr has joined #ruby-lang
apeiros has joined #ruby-lang
<ljarvis>
yorickpeterse: ok im not coming up sunday anymore so I will grace you with my presence on conf day
yfeldblum has quit [Ping timeout: 240 seconds]
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
apeiros has quit [Ping timeout: 272 seconds]
<yorickpeterse>
ljarvis: BOK BOK BOK BOK
<ljarvis>
I concur
rgarver has joined #ruby-lang
snsei has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
<yorickpeterse>
ljarvis: so why are you chickening out?
mykoweb has joined #ruby-lang
nathanstitt has joined #ruby-lang
shinnya has joined #ruby-lang
loincloth has joined #ruby-lang
yugui_zzz is now known as yugui
amystephen has joined #ruby-lang
snsei has joined #ruby-lang
adaleigh has joined #ruby-lang
adaleigh has quit [Ping timeout: 240 seconds]
monees has joined #ruby-lang
AncientAmateur has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
kiddorai_ has quit [Remote host closed the connection]
JohnFord has joined #ruby-lang
alexju_ has joined #ruby-lang
alexju has quit [Read error: Connection reset by peer]
AncientAmateur has joined #ruby-lang
mconnolly has quit [Read error: Connection reset by peer]
mconnoll1 has joined #ruby-lang
kiddorails has joined #ruby-lang
bin7me has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
yugui is now known as yugui_zzz
sdouglas has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
snsei has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby-lang
mistym has joined #ruby-lang
chouhoulis has joined #ruby-lang
dangerou_ has joined #ruby-lang
dangerousdave has quit [Read error: Connection reset by peer]
<ljarvis>
yorickpeterse: I'm just gonna drive up in the morning, prices for just the single night are extortionate
sduckett has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
benlovell has quit [Ping timeout: 250 seconds]
blowmage has quit [Ping timeout: 240 seconds]
<yorickpeterse>
heh
blowmage has joined #ruby-lang
<yorickpeterse>
Just share a room with ben!
Cakey has joined #ruby-lang
benlovell has joined #ruby-lang
apeiros has joined #ruby-lang
sduckett has quit [Ping timeout: 240 seconds]
mconnoll1 has quit [Quit: mconnoll1]
arooni-mobile has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
sharpmachine has joined #ruby-lang
mistym has quit [Remote host closed the connection]
touzin has joined #ruby-lang
AncientA_ has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
AKASkip has quit [Ping timeout: 256 seconds]
kwd has quit [Quit: Sleeping now. ZZZzzz…]
skade has joined #ruby-lang
AncientAmateur has quit [Ping timeout: 240 seconds]
skade has quit [Client Quit]
sdouglas has joined #ruby-lang
solars has quit [Ping timeout: 250 seconds]
symm- has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
khaase has quit [Remote host closed the connection]
khaase has joined #ruby-lang
mistym has joined #ruby-lang
|jemc| has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
hgl__ has joined #ruby-lang
nathanstitt has joined #ruby-lang
khaase has quit [Ping timeout: 272 seconds]
hgl_ has quit [Ping timeout: 240 seconds]
jressey has joined #ruby-lang
cmhobbs has quit [Ping timeout: 240 seconds]
arooni-mobile has quit [Ping timeout: 240 seconds]
<jressey>
Is anybody familiar with the problem where Net::LDAP aborts connections on the .open method?
mistym_ has joined #ruby-lang
sdouglas has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
adaleigh has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
kiddorails has joined #ruby-lang
adaleigh has quit [Ping timeout: 250 seconds]
sdouglas has quit [Remote host closed the connection]
AncientAmateur has joined #ruby-lang
AncientA_ has quit [Ping timeout: 240 seconds]
<bougyman>
i've never had that happen in my Net::LDAP apps.
<bougyman>
what LDAP server?
cmhobbs has joined #ruby-lang
snsei has joined #ruby-lang
rtdp has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
rtdp has joined #ruby-lang
<jressey>
I'm not sure I understand what you mean about 'what LDAP server'
snsei has quit [Ping timeout: 256 seconds]
<apeiros>
probably which software is used on the server side
marr has quit []
<apeiros>
openldap? m$ activedirectory? other?
sdouglas has quit [Ping timeout: 260 seconds]
pr0ton has quit [Quit: pr0ton]
stardiviner has quit [Ping timeout: 272 seconds]
kiddorails has quit [Remote host closed the connection]
<jressey>
AD
<jressey>
And the AD guy insists that the problem is on the app side.
rahul_j has joined #ruby-lang
momomomomo has joined #ruby-lang
<apeiros>
we use net-ldap with AD (not sure which version, iirc a rather ancient one), never had the issue of aborted connections on open
<apeiros>
does it sometimes work? or never?
<jressey>
Well, the query works but it always aborts
cmhobbs has quit [Ping timeout: 272 seconds]
TheFlipside has joined #ruby-lang
rahul_j has quit [Client Quit]
kiddorails has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
araujo has joined #ruby-lang
araujo has joined #ruby-lang
araujo has quit [Changing host]
kkim has joined #ruby-lang
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
<apeiros>
I'm not quite sure how the query can work when it aborts on the open method already
Cakey has joined #ruby-lang
<jressey>
yea, could it possibly be on the AD side?
DEac- has quit [Quit: leaving]
toastynerd has quit [Remote host closed the connection]
DEac- has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
DEac- has quit [Client Quit]
sdouglas has joined #ruby-lang
DEac- has joined #ruby-lang
<apeiros>
ok, I didn't get my point across
hgl__ has quit [Quit: Computer has gone to sleep.]
<apeiros>
I mean - how can you know the query works, when you don't even get to the point of performing the query?
rtdp has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
RobertBirnie has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
theharshest has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
<jressey>
My test passes but on the AD side, they are getting the following error message: 16/Jul/2014:10:20:02 -0400] conn=49111554 op=-1 msgId=-1 - closing from 10.172.23.40:64548 - A1 - Client aborted connection -
<jressey>
My test passes and I get the expected result, then it aborts. I know because the LDAP person sent me a log stating: closing from <some_ip> - A1 - Client aborted connection
yugui_zzz is now known as yugui
<jressey>
sorry about wall of text
<apeiros>
that wall of text is much better than the lack of information before :-p
<apeiros>
also if you feel something is too much for irc, just use gist.github.com
LBo has quit [Ping timeout: 260 seconds]
<jressey>
I just meant to put 1 line, I didn't know pasting took me to a new line. only the bottom line is valid.
<apeiros>
but I don't have an idea what's going wrong there
ta_ has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
rahul_j has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
nathanstitt has quit [Ping timeout: 240 seconds]
<jressey>
I'm wondering if the language 'Client aborted connection' just means that the app decided to close the connection
Miphix has quit [Quit: Leaving]
enebo has joined #ruby-lang
nathanstitt has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
adaleigh has joined #ruby-lang
CaptainJet has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 260 seconds]
khaase has joined #ruby-lang
<jressey>
•A1 -- The client aborted the connection (i.e., closed without sending an unbind). This is generally only seen on Windows systems, as B1 usually means this on UNIX systems.
<jressey>
How do i explicitly unbind in or after the .open block? There is no ubind or close method available to Net::LDAP
mistym has joined #ruby-lang
yugui is now known as yugui_zzz
francisfish has quit [Remote host closed the connection]
adaleigh has quit [Ping timeout: 240 seconds]
mistym has quit [Client Quit]
francisfish has joined #ruby-lang
toastynerd has joined #ruby-lang
LBo has joined #ruby-lang
Cakey has joined #ruby-lang
riffraff has quit [Quit: This computer has gone to sleep]
francisfish has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Ping timeout: 250 seconds]
cornerman has joined #ruby-lang
havenwood has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
benlovel1 has joined #ruby-lang
<monees>
Hey guys, any of you guys filled out pdf's using a ruby gem of some sort? Any recommendations?
cornerma1 has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
<apeiros>
monees: if you can afford it - princexml
<apeiros>
oh, wait - what do you mean by "fill out" a pdf?
nathanstitt has quit [Read error: Connection reset by peer]
<monees>
like you know how you have blank forms you can fill out in your browser?
<apeiros>
you mean you have a pdf with a pdf form in it?
mehlah has quit [Quit: Leaving...]
benlovel1 has quit [Ping timeout: 272 seconds]
<monees>
Yes
kek has quit [Remote host closed the connection]
<apeiros>
hm, we use a java lib through jruby at work for that. but I don't remember its name.
<apeiros>
afaik pdf forms are non-standard and a friggn PITA
yfeldblum has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
ponch_ has joined #ruby-lang
havenwood has joined #ruby-lang
<ponch_>
@monees you there
yfeldblum has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
<monees>
yessir, sorry I had to step out for a momen
<monees>
I saw a jruby gem actually called pdf-ravager
<monees>
but we're not using jruby and so that's kind of out of the question
tkuchiki has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
tkuchiki has joined #ruby-lang
<apeiros>
monees: neither are we. we hook it up via DRb
<monees>
Interesting, I guess I'll look into that
mykoweb has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 272 seconds]
Cages has joined #ruby-lang
mykoweb has joined #ruby-lang
rtdp has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<Cages>
Hi
qba73 has quit []
<Cages>
Any mac users here who could help me with an issue I'm having in irb in the terminal?
mykoweb has quit [Remote host closed the connection]
<jressey>
I have used a mac. What's the problem?
wallerdev has joined #ruby-lang
<Cages>
Tried to make an alias so that my default irb prompt was the inf-ruby prompt. Now every time I open the prompt I se:
<Cages>
-bash: alias: —prompt: not found -bash: alias: inf-ruby’: not found
<Cages>
on two separate lines, and the inf-ruby is still not the default
<ponch_>
autostart
<Cages>
ponch_: ?
<Cages>
I am new to programming
kkim has quit [Quit: Leaving.]
<ponch_>
Cages: sorry i was trying an irc command and forgot the /
<ponch_>
Cages: i'm new to IRCs not programming so just getting my feet wet
<Cages>
Oh okay thought you were asking me to autostart the prompt hehe
emmesswhy has joined #ruby-lang
<ponch_>
Cages: naw ... i didn't even see the rest of your issue i just logged on i'm mostly on the batman.js irc and the rubyonrails
<Cages>
What is batman.js?
<ponch_>
its a frontend framework
<Cages>
Oh okay
<ponch_>
it helps the frontend and backend of your app communicate
<ponch_>
it is used by shopify and is an up and coming language
rahul_j has joined #ruby-lang
<ponch_>
a bitch to learn though bc there isn't much about it on the internet troubleshooting wise which is how i got into IRCs - now that you know my life story im going to have to leave good luck on your issue ill help you out next time if i'm on
nathanstitt has joined #ruby-lang
<Cages>
Thanks
marr has joined #ruby-lang
mskog has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
dangerousdave has quit [Read error: Connection reset by peer]
<Cages>
jressey: Any idea what's up?
dangerousdave has joined #ruby-lang
rtdp has quit [Ping timeout: 240 seconds]
xcesariox has quit [Remote host closed the connection]
<jressey>
sorry, in a meeting, are you in a hurry?
rtdp has joined #ruby-lang
<jressey>
I can check it out later.
AKASkip has joined #ruby-lang
ponch_ has quit [Ping timeout: 240 seconds]
Squarepy has quit [Quit: Leaving]
saarinen has joined #ruby-lang
adphillips has joined #ruby-lang
<jressey>
can you check the terminal logs to see what the alias create statement looks like?
arooni-mobile has quit [Ping timeout: 250 seconds]
Johz has quit [Ping timeout: 260 seconds]
DEac- has joined #ruby-lang
Johz has joined #ruby-lang
adaleigh has joined #ruby-lang
arBmind has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
adaleigh has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
MikaAK1 has joined #ruby-lang
yfeldblum has joined #ruby-lang
_ht has quit [Remote host closed the connection]
MikaAK2 has joined #ruby-lang
andrewhl has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby-lang
robbyoconnor has joined #ruby-lang
jarto has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby-lang
bruno- has joined #ruby-lang
ponch_ has joined #ruby-lang
tomqq has quit []
bruno- has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
JohnFord has joined #ruby-lang
aero224 has joined #ruby-lang
pr0ton has joined #ruby-lang
pr0ton has joined #ruby-lang
monees has quit [Ping timeout: 240 seconds]
kith has quit [Quit: kith]
ponch_ has quit [Ping timeout: 256 seconds]
bin7me has quit [Quit: Leaving]
kith has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
aero224 has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
momomomomo has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
andrewhl has quit [Quit: andrewhl]
diegoviola has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 272 seconds]
Sgeo has joined #ruby-lang
adaleigh has joined #ruby-lang
shinnya has joined #ruby-lang
mehlah has joined #ruby-lang
banister has quit [Ping timeout: 256 seconds]
adaleigh has quit [Ping timeout: 250 seconds]
andrewhl has joined #ruby-lang
andrewhl has quit [Client Quit]
ruby-lang685 has joined #ruby-lang
<ruby-lang685>
hi ruby folks! can anyone tell me how to do this correctly? puts "thingy %{woo}" % {"woo" => "foo"}
<ruby-lang685>
I know that puts "thingy %{woo}" % {:woo => "foo"} works, but that's not how my hash is defined (sorry, I'm a ruby noob and I don't totally understand the :business)
danijoo has quit [Read error: Connection reset by peer]
<jhass>
note that {woo: "foo"} is the same as { :woo => "foo" }
<drbrain>
(I type too slow)
danijoo has joined #ruby-lang
saarinen has quit [Quit: saarinen]
ap4y has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
aero224 has joined #ruby-lang
monees has joined #ruby-lang
banister has joined #ruby-lang
saarinen has joined #ruby-lang
<ruby-lang685>
jhass, the hash is actually generated from a chef data bag
AncientAmateur has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
AncientAmateur has joined #ruby-lang
<jhass>
so it might be reasonable to convert the keys to symbols (never do it that for untrusted input!): printer_hash = hash.each_with_object({}) {|(k, v), h| h[k.to_sym] = v }
<ruby-lang685>
jhass, this statement is confusing: {woo: "foo"} is the same as { :woo => "foo" }
<jhass>
it's true
<jhass>
alternative syntax for the same literal
<ruby-lang685>
oh, I get it, but converting keys to symbols equals yuck...is there really no way to do string variable replacement with a hash of string keys
<ruby-lang685>
?
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
not that I'm aware of
<ruby-lang685>
yikes, that sucks
<jhass>
besides manually interpolating of course
<ruby-lang685>
thanks for the info
<ruby-lang685>
I'm used to being able to do this with python dictionaries so it's strange
<jhass>
puts "thingy #{hash['woo']}"
<jhass>
python doesn't have symbols though
<ruby-lang685>
exactly ;)
<ruby-lang685>
yeah, the thing is I want to store the strings (including replacements) in a data bag, so I shouldn't need to know the hash name
ap4y has quit [Remote host closed the connection]
ap4y has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
qq17 has quit [Ping timeout: 240 seconds]
qq17 has joined #ruby-lang
<ruby-lang685>
so, in python, I can receive a string, such as "%(thingy)" and pass the string format method a dictionary/hash containing thingy
MichD is now known as michd
<ruby-lang685>
it seriously can't be this hard in ruby can it?
nathanstitt has joined #ruby-lang
saarinen has quit [Quit: saarinen]
<jhass>
well, thingy is an identifier and for identifier we use symbols in ruby, not strings
<ruby-lang685>
I really hate to be one of those guys that's coming from another language and saying "why can't you do this", but honestly, this is basic stuff
<ruby-lang685>
hrmm, I clearly need to learn more about identifiers/symbols in ruby and why I should love having to do that ;)
<jhass>
I've already shown you how you can convert your hash to make it work
kylo has quit [Ping timeout: 240 seconds]
<ruby-lang685>
jhass, oh, I know you did...it's just seems to be a very inelegant solution to me (no offense intended!!!)
<jhass>
it's not super elegant no, depending on the output you want there might a better one
<ruby-lang685>
i just want to receive a string from a data bag and replace values without doing anything special
cmhobbs has quit [Remote host closed the connection]
dda has joined #ruby-lang
<jhass>
(note that I've no idea about chef and its terminology, since this isn't #chef)
kylo has joined #ruby-lang
<ruby-lang685>
oh, I know, but chef just hands you a hash with strings as keys
<ruby-lang685>
not symbols
<ruby-lang685>
and now I have to do this silly stuff to get strings to symbols
<jhass>
how does the actual string you want to build look like?
<ruby-lang685>
anyhow, thank you so much for the answer
yfeldblum has quit [Ping timeout: 250 seconds]
<ruby-lang685>
it's a pretty generic issue....I have a ruby script (chef recipe) that gets a hash (from a data bag) and I'd like to be able to define replacements in the data bag (hashish)
yfeldblum has joined #ruby-lang
ponch_ has joined #ruby-lang
<ruby-lang685>
so, essentially, I'd like to get a hash, let's say thinger = {"id": "woohoogins", "name": "This is %{name}"}
pr0ton has joined #ruby-lang
<jhass>
({"id" => "woohoogins", "name" => "This is %{name}"} the : syntax only works for symbol keys)
<ruby-lang685>
I understand that (now), but I'm looking for another way I guess
<ruby-lang685>
I'm getting the hash for replacement from docopt, which gives me a hash with string keys
<ruby-lang685>
meh...this is silly...I'll just convert the hash like you sugested, but I'd really like to know if there's a more elegant solution someday ;)
<ruby-lang685>
in other words, why should I have to convert strings to symbols in order to inject them into a string?
ponch_ has quit [Ping timeout: 240 seconds]
AncientAmateur has quit [Remote host closed the connection]
<jhass>
no
<jhass>
if you're doing named replacements with the % method you need the passed hashs keys to be symbols
<jhass>
I'm still not sure what pattern your result string follows, so no idea
<ruby-lang685>
yes, I understand this, but why?
<jhass>
because that's how the % method works. As said you're defining identifiers to be replaced, so it makes sense to use rubys representation of identifiers to define map to the values
<ruby-lang685>
please understand that I'm not trying to be an ass...I just really don't understand why it's so ugly when I'm used to something much cleaner
<ruby-lang685>
I have a string that I want to inject variable values into: "thinger: %{woo}" and I've been handed a hash with string keys: {"woo": "foohoogins"}....it's strange to me that there's not a simple way to bang those two together
DEac- has quit [Read error: Connection reset by peer]
DEac-_ has joined #ruby-lang
<jhass>
well, you could probably use a hash that doesn't care, like ActiveSupports HashWithIndifferentAccess
<jhass>
you're still on the meta level
<jhass>
it often helps to make concrete examples with as real data as possible
yugui_zzz is now known as yugui
<ruby-lang685>
nah, I'm on a practical level ;)
<jhass>
defining input and desired output
<ruby-lang685>
I really don't know how I could improve it...let me make a paste bin
elia has joined #ruby-lang
DivineEntity has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju_ has quit [Remote host closed the connection]
<ruby-lang685>
I see...hrmmm, my gut tells me to go with your original suggestion instead of that, but I'm only tracking 85% here with my lack of ruby fu
djbkd has quit [Quit: My people need me...]
alexju has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
<ruby-lang685>
jhass, thanks! I promise to read more and better understand the zen ruby way of doing things ;)
funspectre1_ has joined #ruby-lang
alexju has quit [Remote host closed the connection]
WilfredTheGreat has quit [Read error: Connection reset by peer]
<drbrain>
dangerou_: module methods don't get included, only instance methods
<dangerou_>
thanks
pr0ton has quit [Quit: pr0ton]
pr0ton has joined #ruby-lang
dangerousdave has joined #ruby-lang
zwichenzug has quit [Remote host closed the connection]
zwichenzug has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Johz has quit [Quit: Leaving]
dangerou_ has quit [Ping timeout: 250 seconds]
pr0ton has quit [Quit: pr0ton]
nathanstitt has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
ruby-lang685 has quit [Quit: Page closed]
r3zn0r has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
kalehv has joined #ruby-lang
<|jemc|>
dangerou_: I haven't used it, but there exists a 'mixology' gem the provides an alternative method of mixing modules in that can be unmixed
enebo has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
dangerousdave has quit [Ping timeout: 256 seconds]
sdouglas has joined #ruby-lang
<fowlduck>
where is the documentation for ConditionVariable in ruby 2.1.2? It still exists in the language and isn't the same as Monitor::ConditionVariable, from what I can tell
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adaleigh has joined #ruby-lang
bruno- has joined #ruby-lang
adaleigh has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 250 seconds]
<|jemc|>
fowlduck: yes, ConditionVariable is a critically important tool and criminally underdocumented and underused
<fowlduck>
it's pretty amazing once you know how to use it (and have a need for it)
<|jemc|>
note that the one that MonitorMixin::ConditionVariable has a different API from ConditionVariable
sarkyniin has joined #ruby-lang
sarkyniin has quit [Client Quit]
<fowlduck>
yep
<|jemc|>
s/the one that//
<|jemc|>
which is silly, quite honestly
<fowlduck>
#wait will operate on the monitor in one case
<fowlduck>
and you have to pass a mutex in the other case
<fowlduck>
(that's just from memory)
<fowlduck>
yeah, and wait_until/wait_while
adaleigh has joined #ruby-lang
<|jemc|>
every time I see sleep(period_of_time) until condition_blah in ruby I want to smack the author with a hammer made of ConditionVariable
<fowlduck>
testing stuff that uses condition variables is hard, though :/
<fowlduck>
haha
<|jemc|>
I think it's just because proper threading is so ill-understood by most ruby devs, who never have to touch it or understand it in their everyday work