<ddd>
ok confused here. I thought everything in ruby was an object *including* a variable. A variable becomes something (of some class type) based one what's in it. Like array = [1,2,3] ; puts array.class #returns Array
_fritchi_ has joined #ruby-lang
<ddd>
so my question is 'Am i seeing something implicit or is a variable actually an object (not just a mnemonic for a memory section)'?
<waxjar>
it's a reference to an object
kl__ has quit [Ping timeout: 245 seconds]
<ddd>
ok so its still *just* a handy dandy name, and NOT an actual object
<[spoiler]>
ddd: a variable in itself is not an object, just a representation of one
<[spoiler]>
think of it like c++ references, or dereferenced C pointers
<waxjar>
ddd: yes
gregf_ has quit [Ping timeout: 252 seconds]
<ddd>
ok. just wanted to make that absolutely clear to mytself, but couldn't hink of a way in pry to *prove* that conclusively
_fritch__ has joined #ruby-lang
_fritchie has quit [Ping timeout: 272 seconds]
<ddd>
thanks waxjar and [spoiler]
Aova has quit [Read error: Connection reset by peer]
gregf_ has joined #ruby-lang
<[spoiler]>
>> a = []; b = a; p [a.object_id, b.object_id]
<[spoiler]>
ddd: also not everything (at least not at first) is an object, although *most* things can be represented through objects, or can be converted to objects
<[spoiler]>
it's weird
<ddd>
yeah there's a lot of things i'm learning as i dig deeper
Aova has joined #ruby-lang
<ddd>
i just thought ruby was turning the reference 'a' in a = 12 to an object of type integer with a value of 12 and was doing some sort of magic in its guts when the reference id (a) was called to return the value. (Rather than it being a reference name strictly)
arBmind1 has quit [Quit: Leaving.]
djbkd has joined #ruby-lang
<ddd>
and that ruby was keeping you (to keep the appearance of it as a reference as you're used to) from being able to grab the object_id of 'a' and was returning the object_id of the object stored at the spot 'a' pointed to.
<ddd>
not sure if i am making that clear what i'm saying.
|jemc| has quit [Ping timeout: 245 seconds]
Sirupsen has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
j4cknewt has quit [Read error: No route to host]
j4cknewt has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 245 seconds]
kl has joined #ruby-lang
djbkd has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
jxie has quit [Ping timeout: 276 seconds]
jxie has joined #ruby-lang
yourabi has joined #ruby-lang
yourabi has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby-lang
<ddd>
ok this may seem like yet another dumb question, but i'll take the chance and deal with the repercussions. The = sign in ruby. Lynda.com says that its not a method on any object. Its the assignment operator. I get that its assignment. However, where is the usage declared in the ruby source?
yusuf1 has joined #ruby-lang
yusuf1 has quit [Max SendQ exceeded]
<ddd>
*is* the assignment operator not implemented as a method? (like Object.== or something)? No, I don't understand how lexicons or parsers are implemented so this might be something that I'd need to understand those first to understand this
gwendall has joined #ruby-lang
yusuf1 has joined #ruby-lang
yusuf1 has quit [Max SendQ exceeded]
yusuf1 has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
hendranata_ has joined #ruby-lang
<ddd>
i think i'm confused because I see .== and .<=> implemented as methods and ruby says everything (just about) is an object or a method on an object, so i assumed that thats how the various operators were defined as well.
_fritch__ has quit [Read error: Connection reset by peer]
martinbmadsen has quit [Ping timeout: 255 seconds]
Aske has joined #ruby-lang
<ljarvis>
hmm
martinbmadsen has joined #ruby-lang
Aske has quit [Client Quit]
kl__ has joined #ruby-lang
rbowlby has quit [Ping timeout: 244 seconds]
CynosureKuruma has joined #ruby-lang
gjaldon has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 265 seconds]
ta has joined #ruby-lang
kl__ has quit [Ping timeout: 276 seconds]
skade has quit [Quit: Computer has gone to sleep.]
gjaldon has quit [Read error: Connection reset by peer]
gwendall has joined #ruby-lang
gjaldon has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
futilegames has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
gwendall has joined #ruby-lang
CynosureKuruma has quit [Read error: Connection reset by peer]
donove has joined #ruby-lang
donove has joined #ruby-lang
hirzu has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby-lang
hirzu has joined #ruby-lang
marr has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ta_ has quit [Ping timeout: 276 seconds]
St3f has quit [Ping timeout: 246 seconds]
Aova has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
gjaldon has quit [Read error: Connection reset by peer]
hendranata_ has joined #ruby-lang
gjaldon has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
Xzanron has quit [Ping timeout: 245 seconds]
fujimura_ has joined #ruby-lang
<maloik>
We have a string containing new lines in various places, from which we want to gsub (remove) a substring containing new lines in other places, while ignoring the newlines. So given a string "fo\noba\nr\nbaz\nqux", with the input "foo\nbar\n" we want to end up at "baz\nqux"
<maloik>
I hope that makes sense... anyone have an idea on how to do that?
pwnz0r has joined #ruby-lang
<maloik>
For context: we have an SSL provider who's API returns wrongly formatted certificates. We need to remove one pem file from a chain of pem files, but the newlines are in different places
ta_ has joined #ruby-lang
<maloik>
Removing the newlines in both strings is not an option because in the resulting string we want to have the newlines in their original place. Removing them causes OpenSSL to not be able to import it anymore (asn1 error)
skade has joined #ruby-lang
arBmind has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
rahul_j has quit [Quit: rahul_j]
j4cknewt has joined #ruby-lang
gjaldon has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
<ljarvis>
fo\noba\nr\nbaz\nqux", with the input "foo\nbar\n" we want to end up at "baz\nqux"
<ljarvis>
I am confuse
<maloik>
imagine the first string has the newlines at arbitrary places
Torrieri has quit [Quit: Be back later ...]
<maloik>
we want to remove a secondary string from that which also has newlines at arbitrary places, ignoring the newlines in both strings
yfeldblum has joined #ruby-lang
<ljarvis>
how would you know where to put the newlines back?
Torrieri has joined #ruby-lang
<maloik>
current version is something along the lines of string.gsub /#{original_string.remove("\n").chars.join("\n")}/
<maloik>
thats the thing: we don't want to remove them in the first place
gjaldon has joined #ruby-lang
<maloik>
oh the last join is actually "\n?|
<maloik>
"\n?"
<maloik>
it'll work but I threw up a little in my mouth :s
<ljarvis>
ah i get it
<maloik>
yea sorry I know my explanation was super confusing
<DefV>
certificates do have a specific beginning and end
Torrieri has quit [Ping timeout: 246 seconds]
joast has quit [Ping timeout: 252 seconds]
<DefV>
can't you just scan for /----\w+----.+?-----\w+----/
<DefV>
which gives you your array of certificates
<DefV>
and delete the bad cert
<DefV>
and re-join them?
<DefV>
or even scan for /-----BEGIN CERTIFICATE-----.+?-----END CERTIFICATE-----/
<DefV>
it's OK to have domain logic in your logic :-)
<maloik>
that wasn't really the issue, but it may give us a workaround... let me check
fujimura_ has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
<ljarvis>
ugh min vs min_by FU
fujimura has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
mskaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby-lang
khoapham has joined #ruby-lang
gjaldon has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
GBrawl has joined #ruby-lang
mskaesz has joined #ruby-lang
mkaesz has quit [Ping timeout: 244 seconds]
kalzz has quit [Ping timeout: 265 seconds]
gjaldon has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
kl__ has joined #ruby-lang
hendranata_ has quit [Ping timeout: 264 seconds]
khoapham has quit [Ping timeout: 264 seconds]
gwendall has joined #ruby-lang
kalzz has joined #ruby-lang
ta_ has joined #ruby-lang
hahuang61 has quit [Quit: WeeChat 0.4.2]
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 255 seconds]
futilegames_ is now known as futilegames
leonshalimov has joined #ruby-lang
<maloik>
DefV thanks for the tip, using scan was indeed the simpler option
hendranata_ has joined #ruby-lang
<maloik>
beats passing a string with multiple certificates to X509::Cert :-)
<yorickpeterse>
morning
arBmind1 has joined #ruby-lang
leonshalimov has quit [Ping timeout: 276 seconds]
arBmind has quit [Ping timeout: 276 seconds]
gjaldon has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
gwendall_ has joined #ruby-lang
otertore has quit [Quit: This computer has gone to sleep]
gjaldon has joined #ruby-lang
otertore has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
ldnunes has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
ta_ has quit [Ping timeout: 276 seconds]
jefus__ has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has joined #ruby-lang
hendranata_ has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby-lang
jefus_ has quit [Ping timeout: 245 seconds]
Torrieri has quit [Ping timeout: 245 seconds]
gwendall_ has quit [Remote host closed the connection]
GBrawl has quit [Ping timeout: 276 seconds]
shashin has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
hendranata_ has joined #ruby-lang
rikkipitt has joined #ruby-lang
mikecmpbll has joined #ruby-lang
stardiviner has quit [Ping timeout: 244 seconds]
stardiviner has joined #ruby-lang
stamina has joined #ruby-lang
yusuf1 has quit [Quit: Leaving.]
bcardarella_ has quit []
bcardarella_ has joined #ruby-lang
sivsushruth_ has quit [Ping timeout: 276 seconds]
rikkipitt has quit [Quit: Leaving...]
<darix>
maloik: why do you have to manually fiddle with chain files anyway?
<darix>
o.O
martinium has joined #ruby-lang
stardiviner has quit [Ping timeout: 256 seconds]
stardiviner has joined #ruby-lang
ta_ has quit [Ping timeout: 240 seconds]
martinium has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby-lang
mostlybadfly has joined #ruby-lang
akahn has quit []
akahn has joined #ruby-lang
rbowlby has joined #ruby-lang
gjaldon has quit [Read error: Connection reset by peer]
Voker57 has quit []
Voker57 has joined #ruby-lang
Voker57 has quit [Changing host]
Voker57 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
rbowlby has quit [Ping timeout: 265 seconds]
gjaldon has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
ledestin has quit [Quit: ledestin]
martinbmadsen has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 264 seconds]
arBmind1 has quit [Ping timeout: 264 seconds]
Torrieri has joined #ruby-lang
ta_ has joined #ruby-lang
Torrieri has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simi has joined #ruby-lang
gwendall has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
tcopeland has quit [Quit: Leaving.]
ta__ has joined #ruby-lang
shazaum has joined #ruby-lang
shazaum has quit [Changing host]
shazaum has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
jefus_ has joined #ruby-lang
<bnagy>
can't you manipulate a CertStore or whatever openssl api calls it?
rahul_j has quit [Quit: rahul_j]
<bnagy>
and then re-serialise it
postmodern has quit [Quit: Leaving]
jefus__ has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby-lang
rahul_j has joined #ruby-lang
leonshalimov has quit [Ping timeout: 264 seconds]
jefus_ is now known as jefus
chills42 has joined #ruby-lang
jdecuirm has quit [Ping timeout: 264 seconds]
rahul_j has quit [Quit: rahul_j]
ta__ has quit [Ping timeout: 256 seconds]
gwendall has joined #ruby-lang
<Eising>
does anyone know of a simple library to generate simple diagrams?
iamninja has joined #ruby-lang
Missphoenix has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Miphix has quit [Ping timeout: 245 seconds]
Torrieri has joined #ruby-lang
<bnagy>
I do pretty well by blatting graphviz
shashin has quit [Quit: shashin]
Torrieri has quit [Ping timeout: 264 seconds]
donove has quit [Quit: Leaving]
hinbody-work has joined #ruby-lang
jds has joined #ruby-lang
hendranata_ has quit [Ping timeout: 245 seconds]
rcvalle has joined #ruby-lang
Aova has joined #ruby-lang
mskaesz has quit [Quit: Leaving...]
ta has quit [Remote host closed the connection]
<Eising>
bnagy: okay, seems like a good approach
hirzu has quit [Ping timeout: 252 seconds]
ta has joined #ruby-lang
Bwild has quit [Quit: leaving]
ta_ has joined #ruby-lang
migbar has joined #ruby-lang
fclausen has joined #ruby-lang
ta has quit [Ping timeout: 245 seconds]
banister has joined #ruby-lang
brooks has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
arBmind has quit [Ping timeout: 264 seconds]
Aova has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tcopeland has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 244 seconds]
hirzu has joined #ruby-lang
arBmind has joined #ruby-lang
j4cknewt has joined #ruby-lang
wprice has joined #ruby-lang
khoapham has joined #ruby-lang
ledestin has joined #ruby-lang
j4cknewt has quit [Ping timeout: 264 seconds]
khoapham has quit [Ping timeout: 264 seconds]
joast has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
oleo has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
arBmind has quit [Ping timeout: 256 seconds]
Torrieri has quit [Ping timeout: 264 seconds]
arBmind has joined #ruby-lang
lektrik has joined #ruby-lang
ledestin has quit [Quit: ledestin]
flavorjones has joined #ruby-lang
ascarter has joined #ruby-lang
<flavorjones>
Ahoy, rubyists. Anybody here on a Mac and experiencing installation issues with Nokogiri 1.6.6.1? We've had sporadic reports, but nokogiri-core can't reproduce.
<flavorjones>
Any help in reproducing and diagnosing the issue would be very welcome.
<flavorjones>
Perhaps jump over to #nokogiri if you can help? Thank you!
FarlaTux has joined #ruby-lang
Dev-Gitter has joined #ruby-lang
leonshalimov has joined #ruby-lang
[spoiler] has joined #ruby-lang
hirzu has quit [Ping timeout: 264 seconds]
Dev-Gitter has quit [Max SendQ exceeded]
FarlaTux has quit [Max SendQ exceeded]
arBmind has quit [Quit: Leaving.]
Dev-Gitter has joined #ruby-lang
FarlaTux has joined #ruby-lang
leonshalimov has quit [Ping timeout: 246 seconds]
gwendall has quit [Remote host closed the connection]
Dev-Gitter has quit [Max SendQ exceeded]
Dev-Gitter has joined #ruby-lang
martinium has joined #ruby-lang
martinium has joined #ruby-lang
martinium has quit [Ping timeout: 276 seconds]
pepperbreath has quit [Quit: Leaving.]
banister has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
leonshalimov has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
lektricity has joined #ruby-lang
michael_mbp has quit [Excess Flood]
lektrik has quit [Ping timeout: 252 seconds]
Aova has joined #ruby-lang
gjaldon has joined #ruby-lang
michael_mbp has joined #ruby-lang
rahul_j has joined #ruby-lang
joast has quit [Ping timeout: 256 seconds]
nickpassarella has joined #ruby-lang
brooks has quit [Quit: brooks]
oleo__ has joined #ruby-lang
r0bby_ has quit [Ping timeout: 244 seconds]
malconis has joined #ruby-lang
Lewix has joined #ruby-lang
rippa has joined #ruby-lang
mannyt has joined #ruby-lang
oleo is now known as Guest88544
Guest88544 has quit [Ping timeout: 244 seconds]
revath has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
shinnya has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
Voker57 has quit [Ping timeout: 265 seconds]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
gwendall has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
Sadin has joined #ruby-lang
Torrieri has quit [Ping timeout: 245 seconds]
r0bby_ has joined #ruby-lang
brooks has joined #ruby-lang
booly-yam-8846__ has quit [Remote host closed the connection]
booly-yam-135 has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil__ has quit [Quit: Connection closed for inactivity]
chancancode has quit []
chancancode has joined #ruby-lang
enebo has joined #ruby-lang
nathanstitt has joined #ruby-lang
r0bby_ has quit [Ping timeout: 264 seconds]
chills42 has quit [Remote host closed the connection]
whippythellama has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
[H]unt3r has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
hirzu has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Lewix has quit []
ta has quit [Ping timeout: 264 seconds]
martinbmadsen has quit [Ping timeout: 272 seconds]
Aova has quit [Read error: Connection reset by peer]
loincloth has joined #ruby-lang
AKASkip has joined #ruby-lang
ta has joined #ruby-lang
khoapham has joined #ruby-lang
Aova has joined #ruby-lang
khoapham has quit [Ping timeout: 276 seconds]
j0n3 has joined #ruby-lang
1JTAAFBL6 has joined #ruby-lang
deol has joined #ruby-lang
migbar has quit []
hirzu has quit [Quit: This computer has gone to sleep]
|jemc| has quit [Ping timeout: 246 seconds]
hirzu has joined #ruby-lang
RobertBirnie has joined #ruby-lang
shazaum_ has joined #ruby-lang
klmlfl has joined #ruby-lang
shazaum has quit [Ping timeout: 264 seconds]
unreal has quit [Ping timeout: 272 seconds]
hirzu has quit [Quit: This computer has gone to sleep]
revath has joined #ruby-lang
setanta has joined #ruby-lang
j2p2 has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sadin has joined #ruby-lang
shashin has joined #ruby-lang
shashin has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 245 seconds]
Sadin has quit [Ping timeout: 245 seconds]
imperator has joined #ruby-lang
vondruch has quit [Ping timeout: 276 seconds]
unreal has joined #ruby-lang
vondruch has joined #ruby-lang
|jemc| has joined #ruby-lang
booly-yam-135 has quit [Remote host closed the connection]
symm- has joined #ruby-lang
booly-yam-7361 has joined #ruby-lang
brooks has quit [Quit: brooks]
aef has quit [Remote host closed the connection]
leandrosnunes has joined #ruby-lang
quadron has joined #ruby-lang
aconnor has joined #ruby-lang
c0m0 has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
<quadron>
building 2.2.0 on windows failed for me. while running ml.exe on ./src/x86/win32.asm(999) : error A2071:initializer magnitude too large for specified size
<quadron>
something about libffi
<imperator>
using cygwin?
<quadron>
no. vs dev prompt
<quadron>
nmake
aconnor has quit [Client Quit]
joast has joined #ruby-lang
<quadron>
vs 2013 community edition update 4
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hal_9000 has joined #ruby-lang
Aova has joined #ruby-lang
<imperator>
hey hal!
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
quadron has quit [Quit: Page closed]
martinium has joined #ruby-lang
cornerma1 has joined #ruby-lang
leonshalimov has quit [Ping timeout: 245 seconds]
orangestickynote has joined #ruby-lang
aconnor has joined #ruby-lang
khoapham has joined #ruby-lang
yfeldblum has joined #ruby-lang
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
leonshalimov has joined #ruby-lang
copy0401 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
skade has joined #ruby-lang
daBee has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
<daBee>
any Mechanize experts in here?
deol has joined #ruby-lang
copy0401 has quit []
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
orangestickynote has quit [Remote host closed the connection]
<ljarvis>
not sure I'd be considered an expert, but maybe I can help
<daBee>
hey man I’m stumped by Mechanize for some reason
<daBee>
hey that’s great
<daBee>
let me walk you through it
<daBee>
I have a form that I set fields in
pancake-breakfas has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
<daBee>
I check to see my outgoing form is set correctly, and it is
<daBee>
when I submit it, it comes back saying I had something else checked
<daBee>
the field in question is a radio button
<ljarvis>
daBee: can you try to use longer sentences so it's easily to read please
<daBee>
ok sorry
<ljarvis>
or maybe create a gist with the code and problem
unreal has joined #ruby-lang
<daBee>
well not much to really write in terms of code, I guess. The issue is that I’m formatting an outgoing form that’s being submitted and coming back saying I submitted something else.
lapide_viridi has joined #ruby-lang
<ljarvis>
daBee: if you can reproduce the problem with code and you think it's a bad, feel free to open an issue on the mechanize tracker and I'll get around to it (I'm one of the maintainers of mechanize)
<ljarvis>
a bug*
<daBee>
I see. OK. Will do.
elabs-developer has quit [Quit: elabs-developer]
__butch__ has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
imperator has quit [Quit: Valete!]
wallerdev has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 1.0.1]
|jemc| has joined #ruby-lang
dellavg_ has quit [Quit: Ex-Chat]
dellavg_ has joined #ruby-lang
aconnor has quit [Ping timeout: 264 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
vipaca has joined #ruby-lang
aconnor has joined #ruby-lang
aconnor has quit [Client Quit]
chinmay_dd has joined #ruby-lang
tmatthews0020 has quit [Quit: Leaving.]
<ljarvis>
daBee: really gonna need some code with that issue
<ljarvis>
do you not want to share the url?
<daBee>
not really
<daBee>
let me post it
<ljarvis>
what about the url, and the html snippet?
<daBee>
form.radiobuttons_with(:name => /woo/).each do |field|
<daBee>
field.check
<daBee>
end
arBmind has quit [Read error: Connection reset by peer]
c0m0 has quit [Quit: Leaving]
<ljarvis>
why doesn't it make sense?
<daBee>
why iterate through idential (assumption) names for radio buttons, then choose to check them all? Every new check would unset the previous check, correct?
<daBee>
radio buttons are mutually exclusive
<daBee>
or is this another use of “check"
rcvalle has quit [Quit: rcvalle]
<ljarvis>
yes it would to that, you probably want to fetch the radio button via ids id
<ljarvis>
its*
<daBee>
ok so I think I’m confused on how to set this field
<daBee>
I’m treating it like a text field by using the CCCform['searchCriteriaBean.conceptOperator'] = this_operator
<ljarvis>
you dont need to set it, it's set
<ljarvis>
you just need to check it
<daBee>
ok I see
<daBee>
so for radio boxes I have to check those that I want.
<ljarvis>
that's right
<daBee>
This follows the GUI rules instead of just name/value pairs
<daBee>
i see i see
<daBee>
ok then
workmad3_ has joined #ruby-lang
<daBee>
I have an afternoon ahead of me
<ljarvis>
yes, that's just the api, selecting multiple radio boxes in the same group obviously makes no sense
<daBee>
ya that’s why I was confused
<ljarvis>
but the api uses collection selectors, and singular selectors
<daBee>
ok I’ll review the different element types and how to throw at them
greenarrow has quit [Quit: 500]
<ljarvis>
I closed your issue, please ping me if you have trouble
<daBee>
hey thanks for your time
<daBee>
btw love Mechanize
<daBee>
saved me arse
<ljarvis>
no worries, that's great!
<daBee>
Cheers
daBee has quit [Quit: daBee]
workmad3 has quit [Ping timeout: 245 seconds]
dellavg_ has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
igalic has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
workmad3_ has quit [Ping timeout: 252 seconds]
igalic has joined #ruby-lang
leonshalimov has quit [Ping timeout: 245 seconds]
1JTAAFBL6 has quit [Remote host closed the connection]
Vivex_ has quit [Read error: Connection reset by peer]
malev has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
booly-yam-7361 has quit [Ping timeout: 255 seconds]
chills42 has joined #ruby-lang
j4cknewt has joined #ruby-lang
dellavg_ has joined #ruby-lang
hahuang65 has joined #ruby-lang
booly-yam-7361_ has joined #ruby-lang
malconis has joined #ruby-lang
[H]unt3r has quit []
leonshalimov has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
Sadin has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
Sadin has quit [Ping timeout: 245 seconds]
[H]unt3r has joined #ruby-lang
simi has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
musl has joined #ruby-lang
lytol has quit [Remote host closed the connection]
Missphoenix has quit [Quit: Leaving]
leonshalimov has quit [Ping timeout: 244 seconds]
jgpawletko has joined #ruby-lang
yfeldblum has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
diegoviola has joined #ruby-lang
wallerdev has joined #ruby-lang
stamina has quit [Ping timeout: 244 seconds]
martinbmadsen has quit [Ping timeout: 244 seconds]
orangestickynote has joined #ruby-lang
yfeldblum has quit [Ping timeout: 276 seconds]
orangestickynote has quit [Remote host closed the connection]
Aova has joined #ruby-lang
<[spoiler]>
I was either not paying attention, or is it a new Ri feature that it prints how many *things* were documented/undocumented?
ledestin has joined #ruby-lang
lytol has joined #ruby-lang
<Xzyx987X>
Hmm... I have a question that I don't even know where to begin looking for an answer to, so I am going to try and ask it here and see what happens. I am trying to use KyotoCabinet to store persistant data in a small Sinatra based web application loaded into apache using passenger. I choose KyotoCabinet mainly for it's speed and support for transactions. When running a test on the database in it's own process, everything works as
<Xzyx987X>
expected. But when running that same test loaded into apache with passenger, something very strange happens. The test appears to work, but if I restart the server and try to read the database, it triggers a bus error and crashes passenger. I could not duplicate this problem outside of passenger, even by randomly killing the test process in the middle of a transaction. The question is, what could possibly be different between ru
<Xzyx987X>
nning under apache/passenger that could be causing the error? I'm asking in the abstact sense of what could even potentially be causing something like this to happen, because I'm not even sure what the possibilities are.
<[spoiler]>
Damn son, that's a lot of text
djbkd has joined #ruby-lang
mrgoodcat has quit [Ping timeout: 245 seconds]
<Xzyx987X>
it's a difficult question...
<[spoiler]>
Hmm
<[spoiler]>
Peculiar
<Xzyx987X>
I thought so too...
<[spoiler]>
No idea, I'm not big on Apache/Passenger combo
<[spoiler]>
(even though we use it on our servers)
<[spoiler]>
Which versions are you using? And, is there anything useful generated by the error before it crushes?
<[spoiler]>
erm crashes
<[spoiler]>
lol
<Xzyx987X>
1.9.3, and no, nothing of any use.
<[spoiler]>
Passenger and Apache versions?
<Xzyx987X>
Just that the bus error doesn't occur until the first time something is written to the database
<Xzyx987X>
Note sure, but I'm not using any weird version with bugs that I'm aware of
<Xzyx987X>
They should be fairly recent
sarkyniin has joined #ruby-lang
<Xzyx987X>
Apache/2.4.7
<Xzyx987X>
passenger is whatever version is in the latest ubuntu package
<[spoiler]>
Okay, I guess. So, the write works fine when you write to KyotoCabinet outside of passenger?
<Xzyx987X>
Right
<Xzyx987X>
And I can't even duplicate the error outside of passenger
<[spoiler]>
Didn't you install passenger through `gem install passenger`?
<Xzyx987X>
Oh, yea, I might've
<[spoiler]>
`gem list local | grep passenger`
<[spoiler]>
:-)
<Xzyx987X>
no results
<[spoiler]>
oh sorry
<[spoiler]>
it's --local
<Xzyx987X>
4.0.57
<Xzyx987X>
One thing though, is that if I run the test in passenger, and then load the database outside of passenger, that will also trigger the bus error
<[spoiler]>
Is it possible it's related to fileownership? I Just googled kyotocabinet
<[spoiler]>
and it stores everything into a file? as which user is passenger spawning your app?
<Xzyx987X>
I'm not sure how it could be. I'm not getting any permission errors
<Xzyx987X>
www-data
<[spoiler]>
can www-data write to the file?
<Xzyx987X>
Stuff is being written to the file, as far as I can tell
<[spoiler]>
Bah idk I've never used KyotoCabinet. Never even heard of it until today
<Xzyx987X>
I could be a file permission thing though, I can't rule it out...
<[spoiler]>
just try `chown .www-data kyotofile; chown g+w kyotofile;` for now
<[spoiler]>
later fix is more securely
<[spoiler]>
oops
djbkd has quit [Remote host closed the connection]
<[spoiler]>
chmod should be the second one
<[spoiler]>
not chown
<Xzyx987X>
Is there an easy way to start apache as root just for a quick and dirty test?
stamina has joined #ruby-lang
stamina has quit [Client Quit]
<[spoiler]>
You might be opening a whole different can of worms if you run it as root lol
<Xzyx987X>
it's not a permanant fix, I just want to see if it works
<Xzyx987X>
that would at least tell me if it was a permission issue of any sort or not
<[spoiler]>
I know, but certain things might break if you run as root
obimod has joined #ruby-lang
<obimod>
g
djbkd has joined #ruby-lang
michael_mbp has quit [Excess Flood]
GBrawl has joined #ruby-lang
momomomomo has joined #ruby-lang
FarlaTux has quit [Quit: Leaving [Bye Everybody]]
Dev-Gitter has quit [Quit: Leaving [Bye Everybody]]
klmlfl has quit [Remote host closed the connection]
michael_mbp has joined #ruby-lang
klmlfl has joined #ruby-lang
<Xzyx987X>
After changing the permissions, it just caused to passenger preloader to hang
<Xzyx987X>
Still, it shouldn't have done that, which makes me think permissions do have something to do with the problem
[spoiler] has quit [Quit: I'm running to save my life!]
[spoiler] has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<Xzyx987X>
that's interesting...
<[spoiler]>
oh man. I switched to weechat; feels weird. :o
<Xzyx987X>
I just noticed that while passenger is running, the size of the test database is about 2MB
<Xzyx987X>
When I stop passenger, it immediately decreases to 400k
<[spoiler]>
that's odd
klmlfl has quit [Ping timeout: 256 seconds]
<Xzyx987X>
I think this may just be a weird bug, and I am also beggining to question if I want to trust a library with important data that exibits bugs this weird...
leonshalimov has joined #ruby-lang
mrgoodcat has joined #ruby-lang
<[spoiler]>
Just use sqlite :P
<[spoiler]>
also brb
[spoiler] has quit [Quit: WeeChat 1.1]
<Xzyx987X>
sqlite isn't nearly as fast though...
[spoiler] has joined #ruby-lang
<Xzyx987X>
at this point, I'm thinking maybe just use GDBM and write my own transaction code
ruby-lang734 has joined #ruby-lang
<Xzyx987X>
GDBM is about 50% as fast, which is good enough, and transaction support wouldn't be that hard to add
<Xzyx987X>
plus it is actually stable and well maintained
[spoiler] has quit [Quit: WeeChat 1.1]
[spoiler] has joined #ruby-lang
cored has quit [Ping timeout: 255 seconds]
roamingdog has joined #ruby-lang
lytol has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
Aova has quit [Read error: Connection reset by peer]
[spoiler] has quit [Quit: WeeChat 1.1]
cored has joined #ruby-lang
cored has joined #ruby-lang
orangestickynote has joined #ruby-lang
[spoiler] has joined #ruby-lang
[spoiler] has quit [Client Quit]
orangestickynote has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
Aova has joined #ruby-lang
[spoiler] has joined #ruby-lang
<[spoiler]>
.
simi has joined #ruby-lang
[spoiler] has quit [Client Quit]
[spoiler] has joined #ruby-lang
cantonic has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
j4cknewt has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
orangestickynote has joined #ruby-lang
postmodern has joined #ruby-lang
<waxjar>
Xzyx987X: there are one or two *dbm libraries in ruby std-lib that support transactions already i think
<yorickpeterse>
I removed some of the weird shit that comes with it though
<[spoiler]>
Oh btw, is there a way to get a compiled list of mentions, or somehow "jump" to mentions? I know there's the hotlist thing in the bar but it's a bit meh-ish.
ta_ has quit [Ping timeout: 276 seconds]
jds has quit [Quit: Connection closed for inactivity]
<yorickpeterse>
no idea, never used anything like that
<yorickpeterse>
I just hit page-up a bunch of times
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<[spoiler]>
oh
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_fritchie has joined #ruby-lang
sarkyniin has quit [Ping timeout: 245 seconds]
gwendall has quit [Remote host closed the connection]
<[spoiler]>
I think it's a server issue, unless I need to install a font on the server too lol
<[spoiler]>
even emojicons (the unicode ones) render fine
<[spoiler]>
in the terminal
<[spoiler]>
:/
ta has quit [Remote host closed the connection]
<[spoiler]>
oood. They rendered fine on glowing-bear
mistym has quit [Ping timeout: 245 seconds]
lytol has quit [Remote host closed the connection]
mistym has joined #ruby-lang
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
djbkd has joined #ruby-lang
djellemah has joined #ruby-lang
yfeldblum has joined #ruby-lang
nertzy has quit [Quit: Leaving]
nickpassarella has joined #ruby-lang
michael_mbp has quit [Excess Flood]
djbkd has quit [Ping timeout: 245 seconds]
michael_mbp has joined #ruby-lang
enebo has quit [Quit: enebo]
rkowalick has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
nertzy has joined #ruby-lang
ta has joined #ruby-lang
deol has joined #ruby-lang
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
<[spoiler]>
brb
[spoiler] has quit [Quit: WeeChat 1.1]
[spoiler] has joined #ruby-lang
<[spoiler]>
Hmm.
martinium has joined #ruby-lang
martinium has joined #ruby-lang
AKASkip has quit [Ping timeout: 276 seconds]
lytol has joined #ruby-lang
[spoiler] has quit [Client Quit]
martinium has quit [Ping timeout: 244 seconds]
Sadin has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
fusillicode has quit [Quit: Leaving.]
chills42 has quit [Remote host closed the connection]
[spoiler] has joined #ruby-lang
djbkd has joined #ruby-lang
Sadin has quit [Ping timeout: 255 seconds]
lcdhoffman has joined #ruby-lang
tcopeland has quit [Ping timeout: 272 seconds]
[spoiler] has quit [Quit: WeeChat 1.1]
[spoiler] has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
leonshalimov has joined #ruby-lang
[spoiler] has quit [Client Quit]
[spoiler] has joined #ruby-lang
[spoiler] has quit [Client Quit]
dellavg_ has quit [Ping timeout: 264 seconds]
[spoiler] has joined #ruby-lang
rkowalick has quit [Ping timeout: 255 seconds]
booly-yam-5895 has joined #ruby-lang
leonshalimov has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby-lang
oak1 has joined #ruby-lang
j4cknewt has joined #ruby-lang
wallerdev has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
_fritchie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkowalick has joined #ruby-lang
j4cknewt has joined #ruby-lang
[spoiler] has quit [Quit: WeeChat 1.1]
Aova has quit [Read error: Connection reset by peer]
martinbmadsen has joined #ruby-lang
[spoiler] has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Aova has joined #ruby-lang
lytol has quit [Remote host closed the connection]
_fritchie has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 256 seconds]
crdpink has joined #ruby-lang
crdpink has quit [Client Quit]
Pugsley_ has joined #ruby-lang
crdpink has joined #ruby-lang
booly-yam-5895 has quit [K-Lined]
lapide_viridi has quit [Quit: Leaving]
obimod has joined #ruby-lang
[spoiler] has quit [Quit: WeeChat 1.1]
[spoiler] has joined #ruby-lang
[spoiler] has quit [Client Quit]
[spoiler] has joined #ruby-lang
<|jemc|>
anyone know if MRI uses user signals to schedule its GC on linux?
j4cknewt has quit [Remote host closed the connection]
svajone has joined #ruby-lang
<svajone>
Hello guys. :D
<|jemc|>
maybe strace can tell me...
<svajone>
Question, let’s save you have a simple class that has three attributes date, result and type. Is there a way to call the class and keep adding data to that like an array or hash?
frzng has joined #ruby-lang
<ljarvis>
svajone: "call the class and keep adding data to that" to what?
<|jemc|>
dammit, MRI: SIGVTALRM
<ljarvis>
you want to add more attributes? add data to existing attributes?
<svajone>
Ok, let’s say I have a class called People
<|jemc|>
that's what's been causing my requests to fail after 30 seconds
<svajone>
I insert date, result and type to that class.
<svajone>
How would I then keep adding more data to that class?
<ljarvis>
svajone: more attributes?
<svajone>
Like if it an array you would do <<
<ljarvis>
svajone: show us in code
<ljarvis>
show what you want to achieve
ta has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
<obimod>
guys i need a better document about ruby
<ljarvis>
obimod: what are you using?
<obimod>
about what?
<ljarvis>
"obimod> guys i need a better document about ruby"