apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
duderonomy has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
cmisenas has quit [Quit: cmisenas]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
apeiros_ has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
skade has joined #ruby-lang
ozialien has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
leonshalimov has joined #ruby-lang
<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]
<eval-in_> [spoiler] => [546472710, 546472710] ... (https://eval.in/249420)
leonshalimov has quit [Ping timeout: 252 seconds]
<[spoiler]> proof :D
_fritchi_ has quit [Ping timeout: 255 seconds]
<[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]
yourabi has joined #ruby-lang
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
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]
_fritchie has joined #ruby-lang
leonshalimov has joined #ruby-lang
marr has quit []
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
j4cknewt has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
CynosureKuruma has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 255 seconds]
_fritchie has quit [Read error: Connection reset by peer]
_fritchie has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
Aova has joined #ruby-lang
j4cknewt has joined #ruby-lang
ruby-lang160 has joined #ruby-lang
oleo is now known as Guest16238
oleo__ has joined #ruby-lang
<ruby-lang160> Hi can anyone help me with this regex problem. It's here http://repl.it/8kO This regex works on rubular but not on repl or my irb...
Guest16238 has quit [Ping timeout: 245 seconds]
<bougyman> I can't copy and paste from there, ruby-lang160
<bougyman> can you please paste that regex here in plain text?
<ruby-lang160> I'm pasting the regex and hitting enter but it's not going....
<ruby-lang160> ^(\s+.*|.*[\\/:\"?*|<>].*|.*\s+||.*\.)$/
<ruby-lang160> Finally...
<bougyman> get rid of the double \
martinbmadsen has joined #ruby-lang
<bougyman> [2] pry(main)> invalidfilename = /^(\s+.*|.*[\/:"?*|<>].*|.*\s+||.*\.)$/
<bougyman> => /^(\s+.*|.*[\/:"?*|<>].*|.*\s+||.*\.)$/
khoapham has quit [Remote host closed the connection]
<ruby-lang160> Thanks but it will do nothing for \ right?
nathanstitt has quit [Quit: I growing sleepy]
ruby-lang160 has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 244 seconds]
mostlybadfly has joined #ruby-lang
lytol has joined #ruby-lang
<bougyman> if you want that you need \\\/
<bougyman> \\ is the \, and \/ is the /
michael_mbp has quit [Excess Flood]
hahuang65 has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
michael_mbp has joined #ruby-lang
ta_ has joined #ruby-lang
rahul_j has joined #ruby-lang
antiva has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amclain has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
sivsushruth has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
robbyoconnor has joined #ruby-lang
mrsmith has joined #ruby-lang
lytol has quit [Remote host closed the connection]
<mrsmith> I am trying to build a nested hash user_id => accountNum, referrals: {"A": {count: 0, report_count: 0}}
<mrsmith> i am completely lost
<mrsmith> any help will be greatly appreciated...
ur5us has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
ta_ has joined #ruby-lang
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
loincloth has joined #ruby-lang
workmad3 has joined #ruby-lang
ur5us has quit [Ping timeout: 240 seconds]
simi has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby-lang
wallerdev has joined #ruby-lang
Aova has joined #ruby-lang
duderonomy has quit [Max SendQ exceeded]
r0bby_ is now known as robbyoconnor
duderonomy has joined #ruby-lang
dorei has joined #ruby-lang
loincloth has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
simi has quit [Ping timeout: 245 seconds]
<womble> mrsmith: Well, you should probably start by writing some code.
<womble> Showing it to us (via a gist) would be a good second step.
wprice has joined #ruby-lang
wprice has quit [Client Quit]
khoapham has joined #ruby-lang
djbkd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<mrsmith> thanks for the tip womble
antiva has joined #ruby-lang
antiva has quit [Quit: Textual IRC Client: www.textualapp.com]
khoapham has quit [Ping timeout: 245 seconds]
antiva has joined #ruby-lang
martinbmadsen has joined #ruby-lang
frzng has quit [Quit: frzng]
shinnya has quit [Ping timeout: 245 seconds]
kapil__ has joined #ruby-lang
antiva has quit [Quit: Textual IRC Client: www.textualapp.com]
Antivan has joined #ruby-lang
sivsushruth has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
rbowlby has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
leonshalimov has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 256 seconds]
khoapham has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
ozialien has joined #ruby-lang
khoapham has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
orangestickynote has joined #ruby-lang
nathanstitt has joined #ruby-lang
loincloth has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
Aova has joined #ruby-lang
loincloth has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
yfeldblum has quit [Ping timeout: 245 seconds]
lsegal has joined #ruby-lang
dorei has quit []
martinium has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
nickpassarella has joined #ruby-lang
Hunter has joined #ruby-lang
martinium has joined #ruby-lang
martinium has joined #ruby-lang
kl has quit [Ping timeout: 265 seconds]
cornerma1 has joined #ruby-lang
CynosureKuruma has quit [Remote host closed the connection]
mrsmith has quit [Quit: Page closed]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
fujimura has joined #ruby-lang
rahul_j has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
jdecuirm has joined #ruby-lang
<jdecuirm> Hi guys good night
<jdecuirm> i'm working on a mini text game just for fun, and i want to ask you for the best approach to solve a problem
<jdecuirm> I have an Scene class, it's a parent class for different scenes, also i have a Hero class, with a few attributes
kyb3r_ has joined #ruby-lang
<jdecuirm> what i need is the hero to persist in all scenes
<jdecuirm> should i create a class variable that holds the Hero object?
rbowlby has joined #ruby-lang
<jdecuirm> and create a reader method to return the hero attributes so i can use them in every scene?
deol has joined #ruby-lang
Hunter has quit [Quit: Leaving]
fujimura has quit [Remote host closed the connection]
fujimura_ has joined #ruby-lang
rbowlby has quit [Ping timeout: 244 seconds]
martinbmadsen has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
Kuukunen- has quit [Ping timeout: 246 seconds]
jhass has joined #ruby-lang
Kuukunen has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
gix has joined #ruby-lang
twintail has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
simi has joined #ruby-lang
michael_mbp has quit [Excess Flood]
dudo has joined #ruby-lang
<dudo> Happy Thursday, folks
michael_mbp has joined #ruby-lang
<dudo> just fired up a ruby 2.2.0 rails 4.2.0 app and it's a bit botched
<dudo> Rails: AbstractController::Helpers::MissingHelperError - Missing helper file application_helper.rb_helper.rb
<dudo> barely anything on the googs, but someone noted on SO that it was introduced in ruby 2.2
<dudo> anyone seen that before?
Aova has joined #ruby-lang
brooks has joined #ruby-lang
gjaldon has joined #ruby-lang
revath has joined #ruby-lang
musl_ has quit [Quit: WeeChat 1.0.1]
rahul_j has quit [Quit: rahul_j]
nathanstitt has quit [Quit: I growing sleepy]
gjaldon has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby-lang
leonshalimov has joined #ruby-lang
martinium has quit [Remote host closed the connection]
martinium has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Miphix has joined #ruby-lang
leonshalimov has quit [Ping timeout: 252 seconds]
khoapham has joined #ruby-lang
AKASkip has joined #ruby-lang
khoapham has quit [Ping timeout: 252 seconds]
mattyohe has quit [Quit: Connection closed for inactivity]
spuk has quit [Ping timeout: 246 seconds]
j4cknewt has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
ddd has joined #ruby-lang
jxie has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
Aova has quit [Read error: Connection reset by peer]
ta_ has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
tmatthews0020 has joined #ruby-lang
_fritchie has quit [Quit: Textual IRC Client: www.textualapp.com]
Aova has joined #ruby-lang
tmatthews0020 has left #ruby-lang [#ruby-lang]
ta_ has quit [Ping timeout: 276 seconds]
pricees has joined #ruby-lang
martinbmadsen has joined #ruby-lang
brooks has quit [Quit: brooks]
fujimura_ has quit [Remote host closed the connection]
havenwood has quit []
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmatthews0020 has joined #ruby-lang
fedexo has joined #ruby-lang
loincloth has joined #ruby-lang
havenwood has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 252 seconds]
nickpassarella has quit [Quit: nickpassarella]
loincloth has quit [Ping timeout: 245 seconds]
dellavg_ has joined #ruby-lang
<djbell> any news on ftp.ruby-lang.org? now not connecting at all...
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ledestin has joined #ruby-lang
dudo has quit [Ping timeout: 245 seconds]
<djbell> drbrain: have you heard from @hsbt today ftp site? its no longer complaining about root writable, its now not connecting at all
JohnBat26 has joined #ruby-lang
<djbell> s/today/today re/
fujimura has joined #ruby-lang
workmad3 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
booly-yam-8846_ has quit [Read error: Connection reset by peer]
booly-yam-8846__ has joined #ruby-lang
jdecuirm has quit [Ping timeout: 245 seconds]
AKASkip has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
diegoviola has quit [Quit: WeeChat 1.1]
gjaldon has joined #ruby-lang
fujimura has quit [Ping timeout: 255 seconds]
simi has quit [Ping timeout: 255 seconds]
mkaesz has joined #ruby-lang
symm- has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
pricees has quit [Ping timeout: 245 seconds]
fclausen has quit [Ping timeout: 272 seconds]
gwendall_ has joined #ruby-lang
jdecuirm has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
khoapham has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
elabs-developer has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
khoapham has quit [Ping timeout: 255 seconds]
Aova has joined #ruby-lang
ta_ has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
Torrieri has quit [Read error: No route to host]
Torrieri has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
nickpassarella has joined #ruby-lang
gwendall has joined #ruby-lang
hendranata_ has quit [Quit: Leaving]
ta_ has quit [Ping timeout: 276 seconds]
hendranata_ has joined #ruby-lang
arBmind has joined #ruby-lang
deol has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
hirzu has joined #ruby-lang
orangestickynote has quit []
Xzanron has joined #ruby-lang
ta_ has joined #ruby-lang
fujimura has joined #ruby-lang
rahul_j has joined #ruby-lang
hahuang65 has joined #ruby-lang
fujimura_ has joined #ruby-lang
fujimura has quit [Read error: No route to host]
leonshalimov has joined #ruby-lang
leonshalimov has quit [Ping timeout: 256 seconds]
symm- has quit [Read error: Connection reset by peer]
gjaldon has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
havenwood has quit []
apeiros_ has joined #ruby-lang
fujimura_ has quit [Ping timeout: 245 seconds]
Antivan has quit [Quit: Textual IRC Client: www.textualapp.com]
AKASkip has joined #ruby-lang
apeiros_ has quit [Ping timeout: 272 seconds]
hirzu has quit [Ping timeout: 272 seconds]
fedexo has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
hirzu has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
solars has joined #ruby-lang
skade has joined #ruby-lang
kl has joined #ruby-lang
oak1 has quit [Remote host closed the connection]
martinium has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 276 seconds]
Aova has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Aova has joined #ruby-lang
fujimura has quit [Ping timeout: 255 seconds]
amclain has quit [Quit: Leaving]
fujimura has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
fujimura_ has joined #ruby-lang
sivsushruth has quit [Read error: Connection reset by peer]
twintail has quit [Quit: Leaving.]
sivsushruth has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
fujimura_ has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
jdecuirm has quit [Ping timeout: 265 seconds]
twintail has joined #ruby-lang
workmad3 has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
ozialien has quit [Remote host closed the connection]
twintail has quit [Ping timeout: 252 seconds]
rahul_j has quit [Quit: rahul_j]
ta has joined #ruby-lang
sivsushruth_ has joined #ruby-lang
sivsushruth has quit [Ping timeout: 255 seconds]
greenarrow has joined #ruby-lang
shashin has joined #ruby-lang
shashin has quit [Changing host]
shashin has joined #ruby-lang
shashin has quit [Read error: Connection reset by peer]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahul_j has joined #ruby-lang
ledestin has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
kl has quit [Ping timeout: 244 seconds]
fujimura has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
vondruch has joined #ruby-lang
mkaesz has joined #ruby-lang
hendranata_ has quit [Ping timeout: 256 seconds]
gwendall has joined #ruby-lang
martinium has joined #ruby-lang
nickpassarella has quit [Quit: nickpassarella]
Aova has quit [Read error: Connection reset by peer]
gwendall has quit [Ping timeout: 245 seconds]
sivsushruth_ has quit [Read error: Connection reset by peer]
sivsushruth_ has joined #ruby-lang
ledestin has joined #ruby-lang
Aova has joined #ruby-lang
Aske has joined #ruby-lang
martinium has quit [Ping timeout: 246 seconds]
hirzu has quit [Quit: This computer has gone to sleep]
hirzu has joined #ruby-lang
mskaesz has joined #ruby-lang
ta has quit [Remote host closed the connection]
jdecuirm has joined #ruby-lang
mkaesz has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby-lang
chouhoul_ has joined #ruby-lang
skade has joined #ruby-lang
leonshalimov has quit [Ping timeout: 252 seconds]
hirzu has quit [Quit: This computer has gone to sleep]
hirzu has joined #ruby-lang
chouhoulis has quit [Ping timeout: 256 seconds]
Aske has quit [Quit: Textual IRC Client: www.textualapp.com]
rbowlby has joined #ruby-lang
j4cknewt has joined #ruby-lang
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!]
skade has quit [Ping timeout: 265 seconds]
lytol has joined #ruby-lang
centrx has joined #ruby-lang
dudo has joined #ruby-lang
<imperator> yeah, it doesn't like something: https://gist.github.com/djberg96/5959f107ceadfc36ac7d
<ljarvis> daBee: what's up?
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?
<ljarvis> the code rather
<ljarvis> and omit the url
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Sadin has joined #ruby-lang
dellavg_ has quit [Remote host closed the connection]
leandrosnunes has quit [Quit: WeeChat 0.4.3]
<daBee> do I need to use a “radio.check” on something?
martinbmadsen has joined #ruby-lang
havenwood has joined #ruby-lang
dellavg_ has joined #ruby-lang
revath has quit [Read error: Connection reset by peer]
Aova has quit [Read error: Connection reset by peer]
<ljarvis> daBee: yes, that's how you check the button
<ljarvis> daBee: form.radiobuttons.first.check for ex
<daBee> ok so how do I implement that?
<ljarvis> ^
dellavg__ has joined #ruby-lang
<daBee> sorry I’m lost
mannyt has quit [Quit: Connection closed for inactivity]
apeiros_ has quit [Remote host closed the connection]
<ljarvis> daBee: again, I can't help without code
<daBee> I’m in the midst of posting it
apeiros_ has joined #ruby-lang
amsi has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 245 seconds]
dellavg__ has quit [Client Quit]
shashin has quit [Quit: shashin]
<daBee> ok done
Aova has joined #ruby-lang
<ljarvis> daBee: you dont check any check boxes
<daBee> I didn’t know I had to. Would it not work just by setting a name and a value?
<daBee> searchCriteriaBean.conceptOperator is the check box, with value “accrue”…that’s what I want
<ljarvis> I don't know, but that's not really how mechanize is supposed to work
havenwood has quit []
<daBee> ok that’s fine.
<daBee> This is the first I’ve heard of this
<daBee> Is there full documentation I haven’t found?
<daBee> the read me, the guide, the examples...
apeiros_ has quit [Ping timeout: 255 seconds]
greenarrow has quit [Quit: 500]
RobertBirnie has joined #ruby-lang
greenarrow has joined #ruby-lang
<daBee> entered: CCCform.radiobutton_with(:name => 'searchCriteriaBean.conceptOperator').check
<ljarvis> that sounds more reasonable
<daBee> still the same thing. so here is how it looks: CCCform['searchCriteriaBean.conceptOperator']= this_operator
<daBee> CCCform.radiobutton_with(:name => 'searchCriteriaBean.conceptOperator').check
<ljarvis> are you sure the radio button has that name?
<daBee> yep
<ljarvis> can you show me the html for the form?
<daBee> let me paste the url here
<daBee> This doesn’t make much sense:
<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
orangestickynote has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
orangestickynote has joined #ruby-lang
lcdhoffman has joined #ruby-lang
havenwood has joined #ruby-lang
gwendall has joined #ruby-lang
booly-yam-7361_ has quit [K-Lined]
orangest_ has joined #ruby-lang
orangestickynote has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<[spoiler]> oh god
<[spoiler]> this relay stuff is *really* cool inside of weechat lol
intinig has joined #ruby-lang
orangest_ has quit [Ping timeout: 245 seconds]
obimod has quit [Ping timeout: 264 seconds]
spuk has joined #ruby-lang
cored has quit [Ping timeout: 244 seconds]
chills42 has quit [Remote host closed the connection]
ruby-lang734 has quit [Ping timeout: 246 seconds]
martinium has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
djellemah has quit [Quit: Leaving]
mistym has joined #ruby-lang
ta_ has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
kirin` has quit [Ping timeout: 252 seconds]
momomomomo has quit [Ping timeout: 264 seconds]
kirin` has joined #ruby-lang
gwendall has joined #ruby-lang
wallerdev has joined #ruby-lang
ta_ has quit [Ping timeout: 272 seconds]
segy has quit [Quit: ZNC - http://znc.in]
<[spoiler]> ngl... weechat is fun.
intinig has quit [Remote host closed the connection]
segy has joined #ruby-lang
lytol has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
mistym has quit [Ping timeout: 245 seconds]
lytol has joined #ruby-lang
leonshalimov has quit [Ping timeout: 265 seconds]
ldnunes has quit [Quit: Leaving]
simi has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
workmad3 has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
<yorickpeterse> [spoiler]: but do you have the emoji?
<yorickpeterse> DO YOU?
ta_ has joined #ruby-lang
<yorickpeterse> I do ( •_•) ( •_•)>⌐■-■ (⌐■_■)
nickpassarella has quit [Quit: nickpassarella]
<[spoiler]> LOL
<yorickpeterse> -===☆ THE MORE YOU KNOW
<[spoiler]> oh god it looks riciculous for me
chinmay_dd has quit [Quit: Connection closed for inactivity]
<[spoiler]> It's dash, equal equal equal M space M dash o M dash less-than?
<[spoiler]> Bizarre.
<[spoiler]> Although there's apparently a plugin for it
<[spoiler]> irssi?
shazaum_ has quit [Quit: This computer has gone to sleep]
<yorickpeterse> weechat
<yorickpeterse> pffft, irssi
<yorickpeterse> Do I look like a hobo?
<[spoiler]> LMAO
<[spoiler]> Do you use a plugin for it?
<[spoiler]> or is it a script?
mistym has quit [Ping timeout: 245 seconds]
* [spoiler] bursts into tears.
Aova has joined #ruby-lang
<[spoiler]> I want emoji!
<yorickpeterse> it's a plugin
<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]> yorickpeterse: btw the emoji look broken at my end: http://nino.miletich.me/yunoemoji.png
<yorickpeterse> get a better font
kl__ has quit [Ping timeout: 264 seconds]
<[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"
<ljarvis> is this thing on?
<obimod> i have o reilly pdf
<ljarvis> why do you need something better?
kl__ has joined #ruby-lang
<obimod> i have difficulty understanding
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<svajone> There. :D
lytol has joined #ruby-lang
<obimod> what would you suggest to me
<ljarvis> obimod: what do you have difficulty with?
ta has joined #ruby-lang
<ljarvis> svajone: what is "result" in your Result class?
<svajone> result is just a variable
<ljarvis> well yes
<ljarvis> but what is in it
gwendall has quit [Ping timeout: 276 seconds]
<ljarvis> what type is it?
<nofxx> svajone, json_data.map { |hsh| Result.new *hsh.values }
<obimod> understanding some topics like "blocks"
<ljarvis> oh ugh I misread it
<svajone> :D
<ljarvis> use that nofxx suggests
<ljarvis> what*
<svajone> What does it do nofxx?
<nofxx> svajone, or, write a self.from_json on Result, that does json.map { |hsh| new *hsh.values }
<svajone> Can you elabroate?
<ljarvis> that's what I'd do ^
<nofxx> svajone, so you can make: Result.from_json(json)
<svajone> nofxx can you show me on my gist?
<ljarvis> obimod: most books are going to approach it the same way, maybe read this: http://www.reactive.io/tips/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
<nofxx> svajone, its really just those lines, no gotchas
<obimod> ljarvis im looking it thank you
<svajone> Oh i see.
<nofxx> svajone, map an array to something... in this case a new object
<obimod> i did used python, but never saw things like that functions in functions...
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<svajone> I got it.
<svajone> Haha. :D thanks guys!
<svajone> See you later. I love this channel.
ta has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby-lang
svajone has quit [Ping timeout: 245 seconds]
<ljarvis> yorickpeterse: lol hashmaps
<nofxx> obimod, yeah.. it's the "code as first class citizen" .... check out:
<nofxx> >> foo = -> { puts "hello" } ; def execute(something); something.call; end; execute foo
<eval-in_> nofxx => hello ... (https://eval.in/252409)
<obimod> nofxx, okay!
<nofxx> obimod, really not good idea, but you could even marshal and store it on the database
<nofxx> like.. a database of code! heheh
<obimod> why?
<yorickpeterse> ljarvis: gotta go fast
lytol has quit [Remote host closed the connection]
<nofxx> obimod, because you can.... very stupid idea in fact ;)
<yorickpeterse> I wonder if this is going to be faster than iterating over a small C array (basically Array#index but in C)
<ljarvis> depends how small probably
<obimod> notfxx, Okay i see.
<ljarvis> since a lot of hashmaps implementations will use slots anyway
orangestickynote has joined #ruby-lang
lektricity has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
orangestickynote has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
arBmind has joined #ruby-lang
benten has joined #ruby-lang
mostlybadfly has quit [Quit: Connection closed for inactivity]
oleo has joined #ruby-lang
GBrawl has quit [Quit: (null)]
ruby-lang053 has joined #ruby-lang
cantonic has quit [Quit: cantonic]
<yorickpeterse> hmpf, seems using khash is not faster than a regular C array in my case
<yorickpeterse> then again I only have 6 values
ta has joined #ruby-lang
<ljarvis> lol
ta has quit [Ping timeout: 276 seconds]
<yorickpeterse> Considering this list of values would rarely be big (I'd be surprised if somebody had, say, a few thousand values)
mostlybadfly has joined #ruby-lang
<yorickpeterse> * I'll probably just use an array
<yorickpeterse> (in this case this is a list of terminals in a grammar)
j4cknewt has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
ruby-lang053 has quit [Quit: Page closed]
__butch__ has quit [Quit: Leaving.]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
nickpassarella has quit [Quit: nickpassarella]
nickpassarella has joined #ruby-lang
benten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aova has quit [Read error: Connection reset by peer]
Boohbah has quit [Ping timeout: 250 seconds]
rkowalick has quit [Ping timeout: 240 seconds]
Boohbah has joined #ruby-lang
robbyoconnor has joined #ruby-lang
igalic has quit [Changing host]
igalic has joined #ruby-lang
Aova has joined #ruby-lang
nickpassarella has quit [Quit: nickpassarella]
sideshowcoder has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
sideshowcoder has joined #ruby-lang
michael_mbp has joined #ruby-lang
spuk has quit [Ping timeout: 240 seconds]
djellemah has quit [Quit: Leaving]
jefus_ has joined #ruby-lang
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby-lang
martinium has joined #ruby-lang
martinium has joined #ruby-lang
jefus has quit [Ping timeout: 252 seconds]
martinium has quit [Ping timeout: 252 seconds]
[H]unt3r has quit []
tcopeland has joined #ruby-lang
Torrieri has quit [Quit: Lingo: www.lingoirc.com]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
deol has joined #ruby-lang
ta_ has joined #ruby-lang
Lewix has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[spoiler] has quit [Quit: WeeChat 1.1]
leonshalimov has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
[spoiler] has joined #ruby-lang
stamina has joined #ruby-lang
doobi-sham-94163 has joined #ruby-lang
[spoiler] has quit [Client Quit]
[spoiler] has joined #ruby-lang
leonshalimov has quit [Ping timeout: 264 seconds]
whippythellama has quit [Quit: whippythellama]
arBmind has quit [Quit: Leaving.]
j4cknewt has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
j4cknewt has joined #ruby-lang
otertore has quit [Read error: Connection reset by peer]
otertore has joined #ruby-lang
setanta__ has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
ta has quit [Remote host closed the connection]
ruby-lang084 has joined #ruby-lang
<ruby-lang084> how do i call a method with a specific argument, ie def foo(a=1, b=2, c=3) and then call it like this foo(c=4) ?
setanta has quit [Ping timeout: 245 seconds]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
<|jemc|> ruby-lang084: look at keyword arguments
<|jemc|> basically, replace the '=' sign in your example with ':'
riotjones has joined #ruby-lang
<ruby-lang084> ty jemc
<ruby-lang084> also jemc what you call this passing "...?" argument?
<ruby-lang084> for future googling
arBmind has joined #ruby-lang
<|jemc|> "keyword arguments"
Aova has quit [Read error: Connection reset by peer]
riotjone_ has quit [Ping timeout: 276 seconds]
[spoiler] has quit [Quit: WeeChat 1.1]
setanta has joined #ruby-lang
[spoiler] has joined #ruby-lang
nathanstitt has quit [Ping timeout: 246 seconds]
nickpassarella has joined #ruby-lang
setanta__ has quit [Ping timeout: 245 seconds]
ruby-lang084 has quit [Ping timeout: 246 seconds]
martinium has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
Aova has joined #ruby-lang
doobi-sham-94163 has quit [K-Lined]
skade has joined #ruby-lang
[spoiler] has quit [Quit: WeeChat 1.1]
[spoiler] has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
dabradley has quit [Ping timeout: 245 seconds]
_fritchi_ has joined #ruby-lang
_fritchie has quit [Read error: Connection reset by peer]
dabradley has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 246 seconds]
khoapham has quit [Ping timeout: 245 seconds]
martinium has quit [Remote host closed the connection]
aconnor has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
dudo has quit [Remote host closed the connection]
ta has joined #ruby-lang
Sadin has joined #ruby-lang
ascarter_ has joined #ruby-lang
ruskie has quit [Excess Flood]
ascarter_ has quit [Max SendQ exceeded]
ascarter_ has joined #ruby-lang
aconnor has quit [Quit: aconnor]
gwendall has joined #ruby-lang
benten has joined #ruby-lang
ascarter has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 245 seconds]
<weaksauce> anyone use rubymotion here? any success on projects using nibs?
martinium has joined #ruby-lang
martinium has quit [Remote host closed the connection]
martinium has joined #ruby-lang
martinium has joined #ruby-lang
kalehv has joined #ruby-lang
ruskie has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
chouhoulis has quit [Ping timeout: 244 seconds]
leonshalimov has joined #ruby-lang
[H]unt3r has joined #ruby-lang