apeiros_ changed the topic of #ruby to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
<baweaver> Facebook and Twitter at least go with the man page route
Lewix_ has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
reinaldob has quit [Remote host closed the connection]
tier has quit [Ping timeout: 256 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snath has joined #ruby
dseitz has joined #ruby
djbkd has joined #ruby
paradoja has joined #ruby
dogweather has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
j_mcnally has joined #ruby
juanpablo_ has joined #ruby
reinaldob has joined #ruby
fryguy9 has joined #ruby
tkuchiki has joined #ruby
ajsdklfjalksdf has joined #ruby
kirun has quit [Quit: Client exiting]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Cache_Money has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
olivier_bK has quit [Ping timeout: 272 seconds]
reinaldob has quit [Ping timeout: 252 seconds]
delianides has joined #ruby
pietr0 has quit [Quit: pietr0]
nfk has quit [Quit: yawn]
DavidDudson has quit [Ping timeout: 264 seconds]
Pupeno_ has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
baroquebobcat has quit [Quit: baroquebobcat]
Pupeno has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
morenoh149 has quit [Ping timeout: 265 seconds]
ismaelga has quit []
tkuchiki has joined #ruby
ismaelga has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
nerium has quit [Quit: nerium]
giuseppesolinas has joined #ruby
Ankhers has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
DavidDudson has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Lewix has joined #ruby
wallerdev has joined #ruby
DavidDudson has quit [Remote host closed the connection]
tkuchiki has joined #ruby
DavidDudson has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
hmsimha has joined #ruby
djbkd has quit [Remote host closed the connection]
giuseppesolinas has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
shevy has joined #ruby
jonr22 has joined #ruby
djbkd has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DavidDud_ has joined #ruby
HOrangeJewce has joined #ruby
ajsdklfjalksdf has quit [Ping timeout: 265 seconds]
serivichi has quit [Ping timeout: 252 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
shiru has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
DavidDudson has quit [Ping timeout: 252 seconds]
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shiru has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
apeiros_ has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
slackbotgz has quit [Remote host closed the connection]
digitalextremist has quit [Read error: Connection reset by peer]
slackbotgz has joined #ruby
baweaver has joined #ruby
Lewix has quit [Remote host closed the connection]
reset has joined #ruby
reset has quit [Client Quit]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
fryguy9 has quit [Quit: Leaving.]
sambao21 has joined #ruby
DEA7TH has quit [Ping timeout: 246 seconds]
Dolphi has quit [Ping timeout: 244 seconds]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iheartkode has joined #ruby
sambao21_ has joined #ruby
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
Hijiri has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
sambao21_ is now known as sambao21
fryguy9 has joined #ruby
fryguy9 has quit [Client Quit]
shiru has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
pontiki has joined #ruby
Lewix has joined #ruby
shiru has quit [Remote host closed the connection]
nii2361 has joined #ruby
wicope has quit [Ping timeout: 252 seconds]
jeramy_s has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 256 seconds]
blahwoop has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
DavidDud_ has quit [Quit: Goodbye all, and thankyou.]
djbkd has joined #ruby
DavidDudson has joined #ruby
commmmodo has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Joufflu has joined #ruby
ghr has joined #ruby
shevy has joined #ruby
razrunelord has quit [Remote host closed the connection]
kblake_ has joined #ruby
milesmatthias has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
sevenseacat has joined #ruby
kblake has quit [Read error: Connection reset by peer]
elfuego has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
milesmat_ has joined #ruby
Cache_Money has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
milesmatthias has quit [Ping timeout: 244 seconds]
iheartkode has quit [Quit: Leaving]
nii2361 has quit [Ping timeout: 272 seconds]
OrbitalK_ has joined #ruby
senayar has quit [Remote host closed the connection]
milesmat_ has quit [Ping timeout: 246 seconds]
shevy has quit [Ping timeout: 245 seconds]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iwaffles has quit [Quit: iwaffles]
OrbitalKitten has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
marr has quit [Ping timeout: 244 seconds]
tubuliferous has joined #ruby
nii2361 has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
linoespinoza has joined #ruby
serivichi has joined #ruby
michael_mbp has joined #ruby
crdpink2 has joined #ruby
rajeshchawla has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
mmoretti has joined #ruby
mmoretti has quit [Remote host closed the connection]
veduardo has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claptor has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> just expanded debride to run on .erb files and ran it against the seattle.rb site and actually found some dead code! :D
Matthews_ has quit [Remote host closed the connection]
<pontiki> hi
yfeldblum has quit [Remote host closed the connection]
shevy has joined #ruby
yfeldblum has joined #ruby
rajeshchawla has quit [Ping timeout: 255 seconds]
pengin_ has quit [Remote host closed the connection]
crdpink has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
j_mcnally has joined #ruby
crdpink2 has quit [Ping timeout: 256 seconds]
iteratorP has joined #ruby
<havenwood> hi
Hobogrammer has joined #ruby
fryguy9 has joined #ruby
sngeth has joined #ruby
jeramy_s has joined #ruby
chovy has joined #ruby
<chovy> can someone tell me how I can use this response?
jaequery has joined #ruby
<chovy> i want to do like response.email
<havenwood> chovy: Have you tried that?
<zenspider> chovy: what have you tried?
<zenspider> haha
<chovy> well i tried response.email
<zenspider> JINX
ajsdklfjalksdf has joined #ruby
<chovy> puts r.admin_contacts.email
drocsid has quit [Quit: leaving]
niko has quit [Ping timeout: 606 seconds]
<chovy> `<main>': undefined method `email'
tubuliferous has quit [Ping timeout: 265 seconds]
<zenspider> there is no admin_contacts
<chovy> r.admin_contacts produces that result in the gist
<zenspider> well... you didn't run the code you said above
<zenspider> otherwise `<main>' wouldn't show up
<chovy> huh?
<zenspider> you prolly ran puts r.admin_contacts email
<zenspider> (no ".")
<chovy> puts r.admin_contacts
charliesome has quit [Ping timeout: 265 seconds]
<zenspider> gist some actual code and output
bricker has quit [Ping timeout: 255 seconds]
<zenspider> I flunked mindreading 101
<chovy> ok
<chovy> haha
revoohc has joined #ruby
sngeth has quit [Ping timeout: 246 seconds]
discypher has quit [Quit: Leaving.]
<sevenseacat> lol
startupality has joined #ruby
<zenspider> speaking of gists... my latest debride endevour: https://gist.github.com/zenspider/d9c3d48593710be73cb1
<zenspider> chovy: that's all fine. and it doesn't show your problem
<zenspider> so again, flunked mindreading 101
shevy has quit [Ping timeout: 252 seconds]
iMe has quit [Ping timeout: 256 seconds]
chu has quit [Read error: Connection reset by peer]
amclain has joined #ruby
chu_ has joined #ruby
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
krisquigley has joined #ruby
niko has joined #ruby
iMe has joined #ruby
doodmtl has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bim has quit [Remote host closed the connection]
livingstn has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
livingstn has quit [Max SendQ exceeded]
lele is now known as Guest31
<zenspider> chovy: I don't have time to wait 30 minutes for this. you're on your own.
livingstn has joined #ruby
willharrison has joined #ruby
riotjones has joined #ruby
jespada has joined #ruby
jonr22 has joined #ruby
avarice has joined #ruby
JaTochNietDan has quit [Ping timeout: 252 seconds]
tubuliferous has joined #ruby
<chovy> zenspider: geez man. how can i say it any easier? how do I access a property like 'email'?
<chovy> i have no idea what that blob is it spit out
delianides has quit [Remote host closed the connection]
<havenwood> chovy: Despite protestations to the contrary zenspider has already read your mind and saw you doing `r.admin_contacts email` instead of the intended `r.admin_contacts.email`. I mean, ahem, nobody can read minds--nothing to see here folk.
argoneus has quit [Ping timeout: 252 seconds]
Cache_Money has quit [Quit: Cache_Money]
Trynemjoel has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
<zenspider> chovy: I can't help you if you aren't going to listen
Diabolik has quit [Ping timeout: 272 seconds]
<chovy> zenspider: its ok if you don't know, but you don't need to be a dick about it
argoneus has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
<zenspider> that's fresh... bullshit.
Diabolik has joined #ruby
<chovy> havenwood: he didn't see anything
doritostains has quit [Ping timeout: 256 seconds]
<chovy> i wasn't doing r.admin_contacts email
<havenwood> chovy: What code did you run to get the error. The exact line of code.
zerowaitstate has joined #ruby
JaTochNietDan has joined #ruby
fryguy9 has quit [Quit: Leaving.]
Trynemjoel has joined #ruby
<zenspider> how can I say it any easier? show us ACTUAL code and the output. if you can't supply such a simple request, why should we bother guessing?
jespada has quit [Ping timeout: 265 seconds]
avarice has quit [Client Quit]
<zenspider> the fact that you pasted `main' above says you're not doing what you say you're doing
<eat_multi> yope, seems r.admin_contacts returns an array
nucular11 has joined #ruby
<chovy> eat_multi: its not an object?
<havenwood> chovy: So that's not the error you showed us earlier.
<zenspider> hey look... totally different. again.
<chovy> wtf is wrong with you two?
<zenspider> so, plural verb implies it returns a collection
<zenspider> wtf is wrong with you?
<chovy> nothing
<zenspider> why can't you be straightforward with us?
<zenspider> why can't you just answer the questions we ask?
<chovy> i thought i was
<chovy> so what do you want to know?
<zenspider> why can't you provide the output we asked for w/o being a prick?
<chovy> i just did
<zerowaitstate> I'm a ruby newbie, so please don't take this the wrong way: Why does Ruby allow reassignment of constants?
<chovy> and all i get is attitude from you.
shevy has joined #ruby
<zenspider> zerowaitstate: it's a damn good question. because it does. I don't know what else to tell you.
<baweaver> chovy: he's right, posting incomplete code does little good
<zenspider> "constant" is to be taken lightly
Hijiri has quit [Quit: WeeChat 1.0.1]
<havenwood> chovy: I'm mean no insult when I say it's not the error you showed us earlier. It's just not the same error. :O
<baweaver> though we're flaring up a bit too much here
<zerowaitstate> zenspider: was just curious. Never seen a language that did that before
<zenspider> chovy: I simply asked you to provide ACTUAL code and ACTUAL output. you didn't do that, did you?
doodmtl has quit [Ping timeout: 272 seconds]
casadei has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> zerowaitstate: matz being japanese means some things are labled wierd
<baweaver> zerowaitstate: CONSTANT.freeze
<chovy> zenspider: i did do that. now you're just going on and on
<zenspider> constants are one of those... they're simply a name in a class/module scope
<zenspider> chovy: no, we're not going on and on
<baweaver> >> ABB = 1; ABC.freeze; ABC = 5
<eval-in_> baweaver => uninitialized constant ABC (NameError) ... (https://eval.in/301844)
<zenspider> we already said that you have an array, not an instance of the struct
<baweaver> >> ABC = 1; ABC.freeze; ABC = 5
<eval-in_> baweaver => /tmp/execpad-47b1377fb19f/source-47b1377fb19f:2: warning: already initialized constant ABC ... (https://eval.in/301845)
<zenspider> as you implied before
hcnewsom has joined #ruby
<zenspider> freeze only freezes the value, not the variable name
<baweaver> chovy: you're posting a partial stack trace
<havenwood> chovy: What code produced this error that you were initially asking about?: chovy: `<main>': undefined method `email'
<zenspider> havenwood: it missed "for Array:blahblah"
Nuck has quit [Quit: Computer has gone to sleep.]
acl_ has joined #ruby
<zenspider> chovy: so you probably want ALL the email addresses in the collection
<zenspider> in which case, you'd map the array by calling email on all the instances in the array
<zenspider> like so: r.admin_contacts.map { |contact| contact.email }
<baweaver> or r.admin_contacts.map(&:email) # for shorthand
<chovy> puts r.admin_contacts[0].email
<chovy> that fixed it.
<chovy> thanks
<zenspider> baweaver: hey hey hey now.. baby steps
<chovy> don't know why that was so difficult
<havenwood> chovy: If you're on a Ruby newer than 1.8 drop the: require 'rubygems'
shevy has quit [Ping timeout: 252 seconds]
<zenspider> chovy: because you were being difficult and I called you on it and instead of owning up to it you got defensive and became a price.
<zenspider> prick
<baweaver> chovy: you are being a bit of an asshat
<chovy> zenspider: haha.
<chovy> sure sure.
<zenspider> I said I didn't have time to wait after 8 minutes.
<baweaver> anyways, mute list time. Bye
<chovy> i ask a question, you guys want clarification, i give it to you. and the whole time you guys are dicks about it. why even hangout in a help channel if that's how you're going to be?
<zenspider> what'd you do? did you supply the code? no, you acted like a prick.
<zenspider> you did NOT clarify it
<zenspider> you provided WRONG info
nonks has joined #ruby
<chovy> and the asshat continues
duncannz has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
<baweaver> apeiros_: ^^^
<zenspider> the truth continues. too bad you can't se it. have fun with that.
<zenspider> see. ugh. my pinkies are cold.
it0a has joined #ruby
<baweaver> zenspider: just mute him and move on. Not worth the time.
duncannz has quit [Max SendQ exceeded]
<chovy> no wonder ruby is dying if this is how it goes
duncannz has joined #ruby
<zenspider> baweaver: I'm hungry. I want to be right because I wasted food time on this jackass. I'm long past being effective since we know he has reading comprehension problems.
patrick99e99 has quit [Read error: Connection reset by peer]
<baweaver> Leave it be
Hijiri has joined #ruby
duncannz has quit [Max SendQ exceeded]
ajsdklfjalksdf has joined #ruby
<zenspider> yeah. I'm done.
acl_ has quit [Ping timeout: 255 seconds]
isxek has joined #ruby
<baweaver> Have a good night mate, take it easy
duncannz has joined #ruby
doritostains has joined #ruby
<baweaver> I've muted him anyways, works well enough for me.
<zenspider> steaaaaaak
bronson has quit [Remote host closed the connection]
<baweaver> I'm calling it a night too.
<baweaver> Cheers
<zenspider> ooh... steak and bacon. I'm light on calories today
<zenspider> later man
rbennacer has quit [Remote host closed the connection]
lessless has joined #ruby
MatthewsFace has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> chovy: It really helps cut to the chase to show the actual code along with the resulting error. It's nice to name the Gist files with appropriate extensions so they syntax highlight and for people who fork them to try locally.
patrick99e99 has joined #ruby
<havenwood> chovy: Adding another file to a Gist so you have one that runs and the error in a separate file is nice.
<chovy> havenwood: yeah. i get that. i didn't show the complete code, he asked for it, i reposted. don't know what the big deal is.
<chovy> he immediately went to insults
rbennacer has joined #ruby
millerti has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
<havenwood> chovy: Are you stuck on 1.8 or are you on a more recent Ruby?
Virtual_ has joined #ruby
<chovy> havenwood: 2.0.0p481
<chovy> i removed the rubygems. thanks
<chovy> its been a few years since i did any ruby. forgot most of it
baweaver has joined #ruby
<eat_multi> r.admin_contacts showed up just like in the gist for me when I ran the snippet, despite it containing an array of structs containing those key/value pairs, kind of weird
<chovy> eat_multi: yeah. its an array. i thought it was an object
<chovy> looping through it works fine.
Hijiri has quit [Quit: WeeChat 1.0.1]
<havenwood> chovy: When debugging using #p instead of #puts can be really helpful.
<chovy> kk
<eat_multi> ohhhh, it's puts's fault :3
<chovy> haha
<eat_multi> I just realized
<havenwood> chovy: Check the difference between say `puts [1, 2]` and `p [1, 2]`.
<chovy> havenwood: yah. that is more intuitive. i would have seen it was an array
robustus has quit [Ping timeout: 264 seconds]
morenoh149 has joined #ruby
rbennacer has quit [Ping timeout: 265 seconds]
<havenwood> >> [1, 2].inspect
<eval-in_> havenwood => "[1, 2]" (https://eval.in/301846)
<eat_multi> yeh, p for debugging, or puts(something.inspect) if you've gotta use $stderr.puts or something
<eat_multi> oh, yep^
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Read error: Connection reset by peer]
<havenwood> and instead of `STDERR.puts` use `warn` ;)
Joufflu has quit [Ping timeout: 256 seconds]
<eat_multi> woah
<eat_multi> hahaha I had absolutely no idea about that
oo_ has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
jeramy_s has joined #ruby
nonks has quit [Quit: WeeChat 1.1.1]
<havenwood> eat_multi: another handy one is `abort 'xox'` shortcut for `warn 'xox'; exit false`
robustus has joined #ruby
juanpablo_ has joined #ruby
startupality has quit [Quit: startupality]
banister has joined #ruby
startupality has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<eat_multi> sweet! more syntactic niceties from the land of ruby
kblake_ has quit [Remote host closed the connection]
<havenwood> mmm, sweets... food. I'm hungry!
<eat_multi> me too
* havenwood goes in search of chunky bacon.
Yzguy_ has quit [Quit: I'm sleeping, go away.]
badhatter has joined #ruby
<chovy> havenwood: trader joes bacon is good
<chovy> applewood
badhatter has left #ruby [#ruby]
juanpablo_ has quit [Ping timeout: 250 seconds]
badhatter has joined #ruby
delianides has joined #ruby
startupality has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
badhatter has quit [Client Quit]
graydot has quit [Quit: graydot]
Lewix has quit [Remote host closed the connection]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
nonks has joined #ruby
nonks has quit [Client Quit]
deol has joined #ruby
havenwood has quit [Remote host closed the connection]
graydot has joined #ruby
<Virtual_> Anyone want to go over a ruby noobs code and tell me what sucks?
<eat_multi> how much?
charliesome has quit [Quit: zzz]
<Virtual_> Not much it's a simple irc bot
Beoran has quit [Ping timeout: 256 seconds]
bean has joined #ruby
graydot has quit [Client Quit]
<Virtual_> 100 lines or so
<eat_multi> sounds cool, don't expect any profound improvement suggestions but it'd be cool to see
bruno-_ has quit [Ping timeout: 246 seconds]
<Virtual_> it's hosted on www.github.com/Virtual-/roobybot
<Virtual_> I haven't worked on it for a few days been busy, but i'll be doing some more on it tomorrow
jaequery has joined #ruby
sngeth has joined #ruby
<Virtual_> I'm not the strongest programmer really but i'm learning
Synthbread has joined #ruby
<jhass> Virtual_: start with some consistent indentation, ruby community standard is 2 spaces, right now you mix tabs and spaces
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
linoespinoza has quit [Quit: Textual IRC Client: www.textualapp.com]
Dreamer3 has joined #ruby
<jhass> the entire run method seems redundant, I'd just make that toplevel code and also move the constants into that file
<jhass> or rather require the settings file there instead of irc.rb
nonks has joined #ruby
jonr22 has quit [Remote host closed the connection]
<Virtual_> what do you mean by toplevel
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nonks has quit [Client Quit]
Lewix has joined #ruby
nonks has joined #ruby
<jhass> the toplevel is the code outside any module, class or method
<jhass> in Roobybot#initialize, @time is never reused, so don't make it an instance variable
<Virtual_> ahh I see
<jhass> in fact I'd skip the variable altogether, just Time.now.month directly
jaequery has quit [Client Quit]
nonks has quit [Client Quit]
<jhass> probably the same for @ssl
nonks has joined #ruby
nonks has quit [Client Quit]
<jhass> it's unused currently not sure about your future plans
hcnewsom has quit [Quit: hcnewsom]
<Virtual_> yeah it's unused atm I should have commented it out
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> @s is just not worth the savings, you sacrifice them in clarity, name it @socket
milesmatthias has joined #ruby
jasonwebster has joined #ruby
nonks has joined #ruby
<eat_multi> it looks cool, I'd just say don't abbreviate var names too much, especially if you do it inconsistently
bim has joined #ruby
krz has joined #ruby
<eat_multi> you have methods: #on_joinchn and #joinchan
<jhass> Virtual_: code should be indented into begin/end blocks
djbkd has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
threh has joined #ruby
<jhass> you can write hostname, command, channel = message.split (and I'll skip going into that it's rather lacking in correctly parsing an IRC message)
<Virtual_> I did try that originally but I couldn't get it to work right for some reason
<jhass> hostname, command, channel, *message = message.split actually and then message = message.join
cjim has joined #ruby
alphaatom has quit [Ping timeout: 255 seconds]
albert_ has joined #ruby
<threh> anyone know what the use-cases for rubinius are, exactly?
duncannz has quit [Ping timeout: 256 seconds]
<eat_multi> yeh, I second the correctly parsing irc messages thing, the two things (non-stylistically) that jumped out at me were that rescue Exception and the treatment of IRC message format
<jhass> Virtual_: don't rescue Exception, rescue specific exceptions, RuntimeError as the most general one (which is also the default if you specify none), don't go higher, you break stuff
triangles2 has joined #ruby
Beoran has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> Virtual_: Ruby community standard is also to use snake_case for variable names, so argOne -> arg_one or better first_argument
Joufflu has joined #ruby
beef-wellington has joined #ruby
<jhass> Virtual_: until condition do -> until condition, the do is not needed and uncommon
triangles has quit [Ping timeout: 255 seconds]
B1n4r10 has joined #ruby
<Virtual_> alright
Limix has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Virtual_> i've made notes so I don't forget something when I come to fix it up tomorrow
<jhass> the channel is also logged, see /topic ;)
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
digitalextremist has joined #ruby
paradoja has quit [Ping timeout: 252 seconds]
<Virtual_> cool well I bookmarked that too
iMe has joined #ruby
zerowaitstate has quit [Ping timeout: 246 seconds]
<Virtual_> thanks for helping me out
<jhass> you're welcome
<Virtual_> I'm not an amazing programmer and I knew I must have messed up somewhere
<mozzarella> threh: same use cases as mri, plus also when you want real multithreading with no global lock
SouL has quit [Ping timeout: 252 seconds]
ajsdklfjalksdf has joined #ruby
<jhass> Virtual_: it's fine, we all start somewhere
ajsdklfjalksdf has quit [Client Quit]
<Virtual_> I started with python you see and didn't like it much but there is just something I like about Ruby more
beef-wellington has quit [Ping timeout: 252 seconds]
sankaber has joined #ruby
<jhass> anybody who claims their first stuff looked any better is lying either just to you or also to themselves too
<eat_multi> Virtual_: enjoy making roobybot, hope to see it plague this channel some time
<eat_multi> or is that bad advice...
<jhass> eh, yeah
<eat_multi> sorry
<Virtual_> I usualyl test it out on my own dead channel on rizon not to annoy others haha
<jhass> adding bots to 800+ user channels without op approval is not a good idea ;)
<eat_multi> but the enjoy making it part isn't
<jhass> Virtual_: sure, I do the same
<eat_multi> oh that's responsible, fair
senayar has joined #ruby
jasonwebster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<threh> mozzarella, thanks
shadoi1 has quit [Quit: Leaving.]
<jhass> Virtual_: btw if you get tired of the idiosyncrasies of IRC and want to focus on some awesome commands instead, check https://github.com/cinchrb/cinch
serivichi has quit [Ping timeout: 252 seconds]
<jhass> if you have fun dealing with them I won't stop you though ;)
<eat_multi> summer looks cool too (for source code reading especially)
senayar has quit [Ping timeout: 256 seconds]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
rbennacer has joined #ruby
threh has quit [Ping timeout: 265 seconds]
livingstn has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
albert_ has quit [Ping timeout: 245 seconds]
threh has joined #ruby
threh has quit [Client Quit]
dorei has quit []
shevy has joined #ruby
<eat_multi> ^ whelp, too busy looking at the code, just realised how incomplete it is... core class extensions and no tests + dead since last March
<sevenseacat> its in use though
<sevenseacat> the helpa bot here uses it
<eat_multi> oh sweet!
<sevenseacat> https://github.com/radar/railsbot is helpa, and depends on summer
rbennacer has quit [Remote host closed the connection]
<jhass> quote "it's all yolo code though" ;)
<sevenseacat> !yolo
<sevenseacat> how do we not have a tip for yolo
<jhass> add one
ponga has quit [Remote host closed the connection]
triangles3 has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eat_multi> ah yolo code
n008f4g_ has quit [Ping timeout: 250 seconds]
shevy has joined #ruby
jeramy_s has joined #ruby
<eat_multi> I like that it's essentially < 200 line irc bot 'framework' that works... I like it a lot
triangles2 has quit [Ping timeout: 255 seconds]
<eat_multi> and it only takes about 3 mins to skim over and get an idea of how it works
<Virtual_> jhass: https://github.com/Virtual-/roobybot/blob/master/irc.rb is this much better indentation wise?
havenwood has joined #ruby
<Virtual_> I'm going to fix the actual parsing of the messages tomorrow
<jhass> yes!
juanpablo_ has joined #ruby
<Virtual_> awesome
mjuszczak has joined #ruby
<Virtual_> I need to read the Ruby standard too
<eat_multi> oh hello 100% more readable code
mjuszczak has quit [Client Quit]
kblake has joined #ruby
<Virtual_> too used to dat python hah
<jhass> Virtual_: https://github.com/Virtual-/roobybot/blob/master/irc.rb#L51 only minor detail left, the rescue should be indented to the same level as the begin (or def for the implicit begin)
<Virtual_> oh yeah missed that one, i'll fix it in my file now
<eat_multi> and the case statement on 72
<eat_multi> that needs indenting
Ankhers has joined #ruby
<jhass> oh yeah, it also seems to miss an end
Megtastique has quit []
<Virtual_> I noticed both those too
<Virtual_> just now
<Virtual_> fixed
<eat_multi> haha didn't spot that
<Virtual_> I can tell straight away when I miss an end cos of vim anyway
mjuszczak has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Quit: WeeChat 1.1.1]
kblake has quit [Ping timeout: 252 seconds]
<Virtual_> so tomorrow I can work on parsing the messages better
shadoi1 has joined #ruby
<jhass> the fun starts with parsing stuff like MODE really
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Virtual_> I'm doing a irc bot just to learn Ruby and IRC stuff all in one really
<Virtual_> I have loads to make it do yet before I can do fun commands hah
<Virtual_> but doing the connection stuff is fun for me also
willharrison has joined #ruby
bruno- has joined #ruby
shadoi1 has left #ruby [#ruby]
<Virtual_> thanks for helping im going to sleep now it's 3am here, i'll be back tomorrow
<eat_multi> sweet, looking forward to see it further along :)
joast has joined #ruby
Virtual_ has quit [Quit: bedtime :3]
rajeshchawla has joined #ruby
B1n4r10 has joined #ruby
rbennacer has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
nii2361 has quit [Ping timeout: 264 seconds]
nonks has quit [Ping timeout: 246 seconds]
jasonwebster has joined #ruby
justin_pdx has joined #ruby
krisquigley has joined #ruby
zerowaitstate has joined #ruby
jeramy_s has quit [Quit: Peace out!]
bruno- has quit [Ping timeout: 246 seconds]
Limix has quit [Quit: Limix]
shevy has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
snath has quit [Read error: Connection timed out]
havenwood has quit []
rbennacer has quit [Ping timeout: 256 seconds]
nii2361 has joined #ruby
DavidDudson has joined #ruby
shevy has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
Limix has joined #ruby
Pupeno_ has quit [Ping timeout: 256 seconds]
yuung has joined #ruby
pwnz0r has joined #ruby
<yuung> for some reason, open-uri's open().status gives me a 401 when i run it with rails' rake test, but a 200 if i do it in irb or rails console
<yuung> inside open() i'm calling an API
jespada has joined #ruby
charliesome has joined #ruby
riotjones has joined #ruby
pontiki has quit [Remote host closed the connection]
flip_digits has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 264 seconds]
fuzzyhorns2 has quit [Ping timeout: 244 seconds]
eat_multi has quit [Quit: leaving]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zerowaitstate has quit [Quit: leaving]
deol has joined #ruby
serivich has joined #ruby
pontiki has joined #ruby
jespada has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
snath has joined #ruby
Lewix has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 256 seconds]
eat_multi has joined #ruby
shevy has joined #ruby
oo_ has quit [Remote host closed the connection]
Guest31 is now known as lele
triangles2 has joined #ruby
uber has quit [Ping timeout: 246 seconds]
rajeshchawla has quit [Remote host closed the connection]
triangles3 has quit [Ping timeout: 255 seconds]
nii2361 has quit [Ping timeout: 265 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maletor has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
dc_ has joined #ruby
sngeth has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
dc has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
rajeshchawla has joined #ruby
jcdesimp has quit [Remote host closed the connection]
blazes816 has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Client Quit]
veduardo has quit [Ping timeout: 255 seconds]
bim has quit [Remote host closed the connection]
jaequery has quit [Ping timeout: 264 seconds]
iMe has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
tiago_ has joined #ruby
tcrypt has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
rubie has joined #ruby
Limix has quit [Quit: Limix]
<helpa> Hi rubie. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
blazes816 has quit [Ping timeout: 252 seconds]
tiago has quit [Ping timeout: 246 seconds]
tiago_ is now known as tiago
echevemaster has quit [Ping timeout: 264 seconds]
crueber has joined #ruby
elfuego has quit [Quit: elfuego]
RegulationD has quit [Ping timeout: 246 seconds]
jcdesimp has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
deric_skibotn has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
x1337807x has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
pwnz0r has quit [Remote host closed the connection]
wallerdev has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
<rubie> hi all: im trying to learn recursion, this problem uses recursion to find all the ways to make change of a certain amount. There is a return on line 9 that I have a question about. There is a recursive call on line 22 in an each block, then a return call outside the each block. I think what happens is when that return is called it brings the parser back into the each block to go the the next element in the array, but I"m not sure. Here
jenrzzz has joined #ruby
nii2361 has joined #ruby
pwnz0r has joined #ruby
sevvie has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
towski_ has quit [Remote host closed the connection]
yuung has quit [Ping timeout: 252 seconds]
dc_ has quit [Read error: Connection reset by peer]
pwnz0r has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
crueber has quit [Quit: Leaving.]
dc has joined #ruby
mjuszczak has quit []
astrobunny has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
amystephen has quit [Quit: amystephen]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
Sawbones has joined #ruby
bigmac_ has quit [Read error: No route to host]
dc has quit [Ping timeout: 264 seconds]
duncannz has quit [Max SendQ exceeded]
bigmac_ has joined #ruby
ponga has joined #ruby
iamjarvo has joined #ruby
User458764 has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
<eam> rubie: the return returns from the current change() method
rajeshchawla has joined #ruby
<rubie> okay thats what I thought, but wasn't sure
<rubie> thank you
<eam> think of each method call as a thing on a stack
<eam> every method is another item on this stack -- and a return removes an item from the stack
ramfjord has quit [Ping timeout: 252 seconds]
<rubie> is that how it works?
<rubie> under the hood?
<eam> yes
<rubie> interesting
davedev24_ has quit [Remote host closed the connection]
<eam> the data structure that handles nested method calls is literally called a "stack"
<rubie> that is a good way to think about it
Pupeno has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
nahtnam has joined #ruby
Rephiax__ has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sargas has joined #ruby
Rephiax has quit [Ping timeout: 272 seconds]
chu_ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
echevemaster has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
arescorpio has quit [Excess Flood]
OrbitalK_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
revoohc has quit [Ping timeout: 246 seconds]
rajeshchawla has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
Nuck has joined #ruby
rorra has quit [Quit: rorra]
Hirzu has joined #ruby
bricker has joined #ruby
commmmodo has quit [Quit: commmmodo]
adriancb has quit [Remote host closed the connection]
dc has joined #ruby
nonks has joined #ruby
Sawbones has quit []
nii2361 has quit [Ping timeout: 272 seconds]
delianides has quit [Remote host closed the connection]
braincrash has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
Hirzu has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
aarwine has joined #ruby
chinmay_dd has joined #ruby
<aarwine> is there anything I can do to better understand why I'm spending so much time in Gem::StubSpecification#name ?
yuung has joined #ruby
<yuung> what's the difference betweeen a = { b: 'c' } and a = { :b => 'c' }?
<sevenseacat> nothing.
<sevenseacat> the former won't work in ruby 1.8 though
<aarwine> is the first valid? b should be defined
it0a has quit [Ping timeout: 256 seconds]
<yuung> aarwine, first works; it seems to just conver to the second though
<yuung> sevenseacat, ty
<aarwine> interesting, I thought you'd need a : to signify a symbol or '' for str
<aarwine> cool
tubuliferous has quit [Ping timeout: 264 seconds]
<mozzarella> : means symbol
oo_ has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
<sevenseacat> when do we get to stop putting 1.8 caveat warnings on things
<aarwine> mozzarella: right, but in this example `a = { b: 'c' }` the : used is to seperate key from value; the : in the second example was for a symbol `a = {:b=>"c"}`
<aarwine> but for some reason, ruby knows b is a symbol in the first
<mozzarella> because : is for symbol
<mozzarella> you can also do
<aarwine> shouldn't it be a = { :b : 'c' }
<aarwine> ?
<mozzarella> >> { 'str': 'wasd' }
<eval-in_> mozzarella => {:str=>"wasd"} (https://eval.in/301892)
<mozzarella> aarwine: no
<mozzarella> it's a shortcut that only works with symbols
<mozzarella> hence why it's using ':'
<aarwine> I don't like it because it's ambiguous, I don't know if b is a symbol or if b = "hidden string"
<aarwine> but, it's good to know
jefus has quit [Ping timeout: 265 seconds]
<aarwine> maybe it will be useful in some underhanded ruby contest :o
ismaelga has quit [Remote host closed the connection]
willharrison has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
<sevenseacat> b cannot be a string in {b: c}
<aarwine> h
<aarwine> oh
nonks has quit [Ping timeout: 252 seconds]
<aarwine> wow, you're right
Brando753 has quit [Ping timeout: 265 seconds]
rhg135 is now known as RowdyHeavingGuy
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RowdyHeavingGuy is now known as rhg135
rajeshchawla has joined #ruby
akkad has quit [Ping timeout: 252 seconds]
connor_goodwolf has quit [Ping timeout: 246 seconds]
nonks has joined #ruby
xenokiller has quit [Ping timeout: 265 seconds]
Hirzu has joined #ruby
Brando753 has joined #ruby
connor_goodwolf has joined #ruby
jcdesimp has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
agrinb_ has quit [Remote host closed the connection]
maletor has joined #ruby
nii2361 has joined #ruby
yuung has quit [Quit: Leaving]
akkad has joined #ruby
michael_mbp has quit [Excess Flood]
enali has joined #ruby
michael_mbp has joined #ruby
umby24 has joined #ruby
djbkd has joined #ruby
<enali> self[0] == (c=self[0,1].upcase[0])
lessless has quit [Ping timeout: 246 seconds]
<enali> I don't know the necessary of "self[0,1].upcase[0]"
chinmay_dd has joined #ruby
juanpablo_ has joined #ruby
<enali> why not just "self[0].upcase"
autojack has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> because that wont change the value of self
<sevenseacat> oh i misread
<enali> I'm reading the <Ruby Cookbook 2th>, chapter2, Changing the case of a string
vdamewood has joined #ruby
<enali> 'self' is string, here
jespada has joined #ruby
<autojack> I have Ruby 2.0.0 on a MacOS 10.9 laptop. I've been trying to get a simple Tk app to work, but when I run it it just hangs and displays nothing on screen. I tried a very simple test app too - same thing. anyone know what I might be doing wrong? I've written a lot of Ruby but never used Tk.
<autojack> is it possible the MacOS Ruby doesn't have Tk support?
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<enali> "self[0].upcase!" will change itself, but "self[0].upcase" not
<autojack> I would think it would give an obvious error if so.
<vdamewood> autojack: It might not be relivent, but OS X does include wish.
zorak8 has joined #ruby
oo_ has joined #ruby
<enali> sevenseacat: ???
<autojack> vdamewood: hmm.
juanpablo_ has quit [Ping timeout: 272 seconds]
<autojack> if I ctrl-c after running the code, it exits in /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tk.rb:1866:in `mainloop': Interrupt
<autojack> so it seems pretty clear it's loading the Ruby tk.
<autojack> I can try to build a Ruby in rbenv with Tk support explicit.
jespada has quit [Ping timeout: 272 seconds]
<vdamewood> that might help. Trying to do a hello with wish might help eliminate Tk itself as the problem.
tgunr has quit [Ping timeout: 245 seconds]
<vdamewood> err do a hello-world app
iMe has quit [Ping timeout: 250 seconds]
Rephiax__ has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
rrichardsr3 has joined #ruby
<autojack> ok, that seems to result in the same. it just hangs.
<autojack> so that's interesting.
cjim has quit [Quit: (null)]
<vdamewood> I'm surprised.
<autojack> the only other thing that might be of interest is, I installed ActiveTCL.
SOLDIERz______ has joined #ruby
reinaldob has joined #ruby
<vdamewood> gist some test cases?
iMe has joined #ruby
<vdamewood> autojack: hmm... what do you get if you run which tcl wish?
<vdamewood> err tcsh not tcl
<autojack> /bin/tcsh
<autojack> /usr/bin/wish
Hirzu has quit [Remote host closed the connection]
shevy has joined #ruby
tgunr has joined #ruby
Hirzu has joined #ruby
<vdamewood> err, oops. tclsh
krisquigley has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<autojack> https://gist.github.com/omehegan/96801e0acbbcc67aae2f is the test I just tried.
<autojack> /usr/bin/tclsh
bruno- has quit [Ping timeout: 246 seconds]
<autojack> so when I run wish on that, I get nothing.
<vdamewood> autojack: That example is wrong. If you use Tk, you use wish, not tclsh.
nonnatus has joined #ruby
<vdamewood> Oh... nevermind then.
ninedragon has quit [Quit: Quit, BBL :D]
Rephiax has joined #ruby
<autojack> yeah, I did wish foo.tcl.
Sgeo has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 250 seconds]
<vdamewood> I got a bouncing wish icon in my doc, and a window popped up.
<vdamewood> err dock
<autojack> weird.
a5i has quit [Quit: Connection closed for inactivity]
<autojack> oh!
<autojack> my dock auto hides.
<autojack> now I see, it's there.
ev_ has joined #ruby
<autojack> I'm surprised the window didn't appear on top of my other windoes.
<autojack> *windows
x1337807x has quit [Remote host closed the connection]
Hirzu has quit [Ping timeout: 246 seconds]
<autojack> aha, the hello world works too.
<autojack> this is making me feel stupid.
krisquigley has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
<vdamewood> Let me guess, the postage stamp of a window appeared, but it wasn't quite obvious *where* at first?
milesmatthias has quit [Remote host closed the connection]
<autojack> not even. it didn't become the top window.
<autojack> I'm only on a 15" laptop screen.
<vdamewood> Same here.
<autojack> weird. it appears top left, but underneath my terminal window.
<vdamewood> Though, in my case, the window got placed in some 'empty' space.
milesmatthias has joined #ruby
eat_multi has quit [Quit: leaving]
<autojack> if I just move iterm to the right and run it again, I can see it even though it doesn't have focus. strange that it appears between iterm and the Chrome window behind it.
<autojack> sheesh.
<autojack> ok I think my real app code works too.
<autojack> thanks!
<autojack> and sorry for all the scroll :)
ramfjord has joined #ruby
riotjones has joined #ruby
<vdamewood> I'm surprised I was helpful.
Channel6 has quit [Quit: Leaving]
<autojack> heh
<autojack> sometimes it's the simplest things.
enali has quit [Ping timeout: 246 seconds]
cjim has joined #ruby
<autojack> 8 years of programming experience, this is a new one on me.
Sgeo has joined #ruby
ev_ has quit [Ping timeout: 264 seconds]
milesmatthias has quit [Ping timeout: 255 seconds]
<vdamewood> Well, I might have fallen for it too if my open PDF had been 2cm to the left.
sngeth has joined #ruby
pontiki has quit [Ping timeout: 272 seconds]
iamninja has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 250 seconds]
iamninja has joined #ruby
SOLDIERz______ has quit [Quit: Be back later ...]
jaequery has joined #ruby
triangles has joined #ruby
Apocalypse has quit [Ping timeout: 272 seconds]
sngeth has quit [Ping timeout: 252 seconds]
Pharaoh2 has joined #ruby
chinmay_dd has quit [Quit: Leaving]
triangles2 has quit [Ping timeout: 272 seconds]
tubuliferous has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Apocalypse has joined #ruby
Apocalypse has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
kappy has quit [Ping timeout: 244 seconds]
djbkd has quit []
kappy has joined #ruby
tvon has joined #ruby
jefus has joined #ruby
tvon has quit [Client Quit]
agrinb has joined #ruby
RegulationD has joined #ruby
olivier_bK has joined #ruby
umby24 is now known as umby24|offline
jenrzzz has quit [Ping timeout: 244 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
govg has quit [Quit: leaving]
agrinb has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
hvxgr has quit [Ping timeout: 265 seconds]
duncannz has joined #ruby
cjim has quit [Quit: (null)]
jespada has joined #ruby
nonks has quit [Read error: Connection reset by peer]
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
autojack has left #ruby [#ruby]
Hijiri has joined #ruby
ponga has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
rajeshchawla has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
nonks has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
jespada has quit [Ping timeout: 245 seconds]
iMe has quit [Ping timeout: 246 seconds]
ponga has quit [Ping timeout: 252 seconds]
bboss has joined #ruby
cjim has joined #ruby
iMe has joined #ruby
DavidDudson has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
amclain has quit [Quit: Leaving]
jasonwebster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
triangles2 has joined #ruby
HanaNix has quit [Quit: Textual IRC Client: www.textualapp.com]
Rephiax__ has joined #ruby
triangles has quit [Ping timeout: 244 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
Rephiax has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
zzing has joined #ruby
Limix has joined #ruby
rrichardsr3 has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp has quit [Excess Flood]
hvxgr has joined #ruby
Limix has quit [Client Quit]
rkgudboy has joined #ruby
jenrzzz has joined #ruby
michael_mbp has joined #ruby
rkgudboy has quit [Max SendQ exceeded]
hanmac1 has joined #ruby
lemur_ has joined #ruby
milesmatthias has joined #ruby
ponga has joined #ruby
krz has quit [Ping timeout: 246 seconds]
rkgudboy has joined #ruby
lemur has quit [Ping timeout: 244 seconds]
milesmatthias has quit [Ping timeout: 244 seconds]
nucular11 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zorak8 has quit [Ping timeout: 252 seconds]
justin_pdx has quit [Quit: justin_pdx]
shevy has quit [Ping timeout: 252 seconds]
slap_stick has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
nonks has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
echevemaster has quit [Remote host closed the connection]
arup_r has joined #ruby
jordsmi has joined #ruby
duncannz has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 265 seconds]
Rephiax__ has quit []
starless has quit [Quit: Leaving]
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DavidDudson has joined #ruby
sngeth has joined #ruby
p-pete has joined #ruby
sigurding has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pico-pete has quit [Ping timeout: 265 seconds]
bboss has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
nonnatus has quit [Ping timeout: 246 seconds]
HoloIRCUser6 has joined #ruby
mcpierce` has quit [Ping timeout: 252 seconds]
sngeth has quit [Ping timeout: 256 seconds]
jeromelanteri has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Quit: Leaving]
rohitkashyap has joined #ruby
juanpablo_ has joined #ruby
rkgudboy has quit [Ping timeout: 252 seconds]
krz has joined #ruby
jeromelanteri has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 265 seconds]
apeiros_ has joined #ruby
anaeem1_ has joined #ruby
enali has joined #ruby
<enali> I think it's a bug.
tobago has joined #ruby
<enali> s.gsub(/(.{1,8})(\s+|\Z)/, "\\1\n")
sargas has quit [Quit: Leaving]
<enali> but the s.gsub(/(.{1, 8})(\s+|\Z)/, "\\1\n") will not work
<enali> the only difference is "{1,8}" / "{1, 8}"
<enali> just a space
<sevenseacat> spaces matter in regex.
anaeem1_ has quit [Remote host closed the connection]
<enali> yes ,I know that. but I never think this
shevy has joined #ruby
<enali> will different
cjim has quit [Quit: (null)]
<enali> so suck
anaeem1 has joined #ruby
tagrudev has joined #ruby
riotjones has joined #ruby
krisquigley has joined #ruby
anaeem1 has quit [Ping timeout: 246 seconds]
jmhmccr has joined #ruby
anaeem1 has joined #ruby
Rollabunna has joined #ruby
<shevy> hey guys
<shevy> I am playing some audio file via mplayer
<shevy> now I am wondering if I could put basic functionality into an "app"
<shevy> be it ruby-gnome, or a web interface
<shevy> it just has to work locally though
sevvie has quit [Ping timeout: 245 seconds]
<certainty> moin guys
krisquigley has quit [Ping timeout: 264 seconds]
Hirzu has joined #ruby
anarang has joined #ruby
pontiki has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<flughafen> good morning rubynistas shevy sevenseacat certainty arup_r ;)
Pharaoh2_ has joined #ruby
<sevenseacat> good afternoon
<arup_r> flughafen: o/
<arup_r> sevenseacat: good morning
<sevenseacat> hallo
nahtnam has quit [Quit: Connection closed for inactivity]
<arup_r> sevenseacat: Are you watching cricket today ?
<flughafen> guten tag sevenseacat
krz has quit [Ping timeout: 252 seconds]
<sevenseacat> nope, stuck at work
<flughafen> sevenseacat: no score board?
<flughafen> sevenseacat: do you even like cricket?
<sevenseacat> i sure do
agrinb has joined #ruby
<sevenseacat> looking now
anaeem1 has quit [Remote host closed the connection]
<shevy> haha
anaeem1 has joined #ruby
<arup_r> flughafen: They won worldcup 4 times
<arup_r> we only 2 times
<arup_r> :(
anaeem1 has quit [Remote host closed the connection]
blah has joined #ruby
<arup_r> May be this time we will win.. lets see
anaeem1 has joined #ruby
* flughafen barely even know what the hell happens in cricket
Pharaoh2 has quit [Ping timeout: 256 seconds]
codecop has joined #ruby
sevvie has joined #ruby
<sevenseacat> flughafen: australia kicks everyone's ass. thats all you need to know.
Rollabunna has quit [Remote host closed the connection]
<flughafen> i bet sevenseacat
umby24|offline is now known as umby24
pontiki has quit [Ping timeout: 264 seconds]
<certainty> so there is dale now. I'm wondering why i would use that instead of scheme. i know it is no gc'ed, but i don't think that's a good thing
<flughafen> i bet they train against teams of poisonous animals
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<flughafen> holy cow! did you see that? dale was totally offsides. how could the ref not see that? that's going to be a penalty wicket thingie
agrinb has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
<arup_r> flughafen: what is `ref` ?
cjim has joined #ruby
<arup_r> Ok.. you are in football ...
<sevenseacat> lol
relix has joined #ruby
<certainty> so we're waiting for the embargo being lifted today. I hope it's not going to be that bad. I don't want to do a patch day
<flughafen> patch all the things
apeiros_ has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
cjim has quit [Client Quit]
anaeem1 has joined #ruby
Rollabunna has joined #ruby
Takle has joined #ruby
umby24 is now known as umby24|offline
elaptics_away is now known as elaptics
rohitkashyap has quit [Quit: Leaving]
rkgudboy has joined #ruby
<arup_r> `patch` means the stuff ... which `nobu` used to accept/reject ?
anaeem1 has quit [Ping timeout: 265 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<arup_r> I'm streaming in office.. Ssshhh! :D
<shevy> flughafen even the koala can do cricket
<shevy> arup_r is your coworker working or not working again
giuseppesolinas has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<eam> enali: {} are only significant in the form of {\d+} or {\d+,} or {\d+,\d+}
RegulationD has joined #ruby
<eam> enali: otherwise the braces become simple string literals
<arup_r> hehe.. he took his iMac at the corner.. with a 45 degree angle.. so I am not seeing him..
<eam> you are matching the string "{1, 8}"
<arup_r> probably he is also streaming
<shevy> hehe
<eam> not a ruby bug
blah has quit [Quit: Leaving...]
elaptics is now known as elaptics_away
<flughafen> w00t w00t
<flughafen> i want a pet kangaroo
<arup_r> sevenseacat: Why raining there.. ? Is it monsoon there ?
<sevenseacat> not raining here
<arup_r> flughafen: lelelele
adriancb has joined #ruby
<shevy> flughafen be wary, they can out-box you
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<shevy> and they kick in illegal zones
<shevy> though they should do well in MMA
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<flughafen> i'm a kung fu master
charliesome has quit [Quit: zzz]
aswen has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<shevy> fat like a panda
<certainty> btw. is anybody else seeing the results of recent dns-cache poisoning on their servers?
The_Phoenix has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<shevy> the only poisoning I see here is me trying to feed old food to my cat
<flughafen> who would poison my dsn cake?
<flughafen> dns*
The_Phoenix has quit [Max SendQ exceeded]
RegulationD has quit [Ping timeout: 264 seconds]
<certainty> i take that as a no :p
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
adriancb has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
<flughafen> silly hamburgers
<certainty> yeah
<certainty> burn them
<flughafen> burn them on the grill! mauahahaha
bal has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r> MCG is big ground..
<sevenseacat> aye
<sevenseacat> it seats almost 100,000
craigp has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> so many koalas
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r> shevy: When my cat commence business will run well.... I'll plan to make ground like MCG in Germany..
tubuliferous has joined #ruby
<shevy> haha
<arup_r> E-commerce
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hey jhass
<shevy> what do you say to that
<arup_r> I'll then contact flughafen for the official things...
isxek has quit [Quit: ChatZilla 0.9.91-rdmsoft [XULRunner 32.0.3/20140923175406]]
<shevy> that just cracks me up
<shevy> that reads like: "I'll then contact airport for the official things..."
Mon_Ouie has quit [Ping timeout: 272 seconds]
<sevenseacat> arup_r: you need to go through air traffic control
last_staff has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
<arup_r> I meant Govt. official things.. for land...
nii2361 has quit [Ping timeout: 264 seconds]
arup_r_ has joined #ruby
apeiros_ has joined #ruby
Pharaoh2 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
<sevenseacat> i think he missed my joke.
<sevenseacat> granted it wasnt very funny
<shevy> sometimes you are too subtle!
enali has quit [Ping timeout: 246 seconds]
craigp has joined #ruby
giuseppesolinas has joined #ruby
sigurding has quit [Quit: sigurding]
arup_r_ has quit [Ping timeout: 245 seconds]
<flughafen> arup_r_: your flight is still on time
<sevenseacat> lol
Xoro__ has joined #ruby
giuseppesolinas has quit [Client Quit]
jonr22 has joined #ruby
sigurding has joined #ruby
Rarikon has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
giuseppesolinas has joined #ruby
mengu has joined #ruby
sandelius has joined #ruby
bal has quit [Quit: bal]
jonr22 has quit [Ping timeout: 250 seconds]
b00^wk has joined #ruby
<b00^wk> hello
<SebastianThorn> b00^wk: hello
<b00^wk> can i have two versions of a gem installed?
<sandelius> Good morning my fellow Rubyists
bal has joined #ruby
<sandelius> b00^wk using bundler yes
<certainty> b00^wk: yes
<b00^wk> i know nothing about Ruby to be honest, but i'm struggling with an install
<b00^wk> i need ffi-1.96, but i have ffi-1.9.8
<b00^wk> and i would like to get ffi-1.9.6 somehow, and make it co-exist
Wolland has quit [Ping timeout: 244 seconds]
<sandelius> b00^wk gem uninstall ffi
<sandelius> gem install ffi -v 1.9.6
<b00^wk> ok, trying
<sandelius> ahh co-exist
<certainty> xD
phutchins has joined #ruby
<sandelius> b00^wk then don't uninstall it
<b00^wk> already did
<certainty> lol
<b00^wk> actually, i prob don't care
<sandelius> Use either bundler or e.g RVM
<b00^wk> let me first see if that helps
<b00^wk> ERROR: Could not find a valid gem 'ffi-1.9.6' (>= 0) in any repository
<b00^wk> neeeeeeeeeeeeeeeei
<b00^wk> please help
<sandelius> certainty you sneaky bastard :)
<b00^wk> i really want it
<flughafen> holy cow. relax dude.
<flughafen> this isn't #python, hahaha
<sevenseacat> 1.9.6 does exist
<certainty> imagines the same situation with something different. A: "Pull that cable!" B: "Ok" A: "Wait don't!!!!" B: "Already did -.-" .... earth melts
<b00^wk> certainty, :)
<sandelius> certainty haha :)
Wolland has joined #ruby
Wolland has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
<b00^wk> i want that ffi .... sandelius are you going to help ?
agrinb has joined #ruby
sigurding has quit [Quit: sigurding]
Pupeno has joined #ruby
<sandelius> b00^wk relax dude, I'm working as well :) Create a file called Gemfile in the root of your project
<sandelius> then run gem install bundler
<b00^wk> err, hold on
<b00^wk> sandelius, ok, i m not quite with you, but here is what I'm doing :
<sandelius> b00^wk Put this at the top of the Gemfile source 'https://rubygems.org'
CorySimmons has joined #ruby
<b00^wk> where is Gemfile ?
<sandelius> then on the next line add: gem 'ffi', '1.9.6'
<b00^wk> is this my global setting
<sandelius> then run bundle install from the command line. Now you can require it from your project
<b00^wk> my project
<b00^wk> ah, hold on sandelius
<sandelius> b00^wk just for your project
<b00^wk> sandelius, what i'm doing is,
phutchins has quit [Ping timeout: 264 seconds]
<b00^wk> i'm installing this (awesome) system called redmine, and
<sevenseacat> 'help me! help me! no, hold on'
<b00^wk> this is my project i guess
andikr has joined #ruby
<b00^wk> and what they said was
<sandelius> any redmine folks here? never used it
sigurding has joined #ruby
<sevenseacat> i used it many moons ago... was a bitch to install
professor_soap has joined #ruby
allenn has joined #ruby
rubie has quit [Ping timeout: 246 seconds]
milesmatthias has joined #ruby
<b00^wk> meineerde> b00^wk: redmine (or more precisely bundler) requires exact versions
<b00^wk> sandelius, ^^
Spami has joined #ruby
agrinb has quit [Ping timeout: 246 seconds]
<flughafen> sevenseacat: AMEN
Takle has quit [Remote host closed the connection]
<sandelius> b00^wk then go into your project root and run bundle install
apeiros_ has quit [Ping timeout: 252 seconds]
<b00^wk> sandelius, ok, i'm doing it
<b00^wk> project root = redmine root
Pupeno has quit [Ping timeout: 256 seconds]
<sandelius> b00^wk yes.
Takle has joined #ruby
elfuego has joined #ruby
Takle_ has joined #ruby
<b00^wk> Fetching gem metadata from https://rubygems.org/.........
<b00^wk> ...
DavidDudson has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<b00^wk> sandelius, i see it's pulling down ffi 1.9.6 ...
<b00^wk> Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<b00^wk> <= 1.8.6 : unsupported
<b00^wk> = 1.8.7 : gem install rdoc-data; rdoc-data --install
<b00^wk> = 1.9.1 : gem install rdoc-data; rdoc-data --install
<b00^wk> >= 1.9.2 : nothing to do! Yay!
<b00^wk> ok
<b00^wk> finished
astrobunny has quit [Remote host closed the connection]
<sandelius> b00^wk goodie
<b00^wk> sandelius, read>
<b00^wk> ready>
<sandelius> then run rails s
<sandelius> or rake db:create db:migrate db:seed
<b00^wk> neeei !
banister has joined #ruby
<b00^wk> fails
<b00^wk> :(
<b00^wk> let me create paste
<shevy> b00^wk lol
<sevenseacat> .... neeeeei
<sandelius> b00^wk breath
milesmatthias has quit [Ping timeout: 252 seconds]
<shevy> oh he is from germany
<b00^wk> /usr/local/bin/rake generate_secret_token
<b00^wk> oops
<b00^wk> wrong pate
<b00^wk> that one
<b00^wk> sandelius, ^^
lemur_ has quit [Remote host closed the connection]
<sevenseacat> i'm sure there's a #redmine somewhere
<b00^wk> yes
<sandelius> b00^wk now it's ins talled. From here the redmine folks must help you
jgt1 has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
<b00^wk> ok ..
<b00^wk> but this is seems, project specific .
<b00^wk> i don't understand the difference, but from there install guide it was all like, to /usr/loca/
<b00^wk> local
<b00^wk> like, those sql.so ifaces, etc..
<b00^wk> fine ..:(
<b00^wk> >_______<
R1ck has joined #ruby
<sevenseacat> not sure if this is english
<b00^wk> no
<sandelius> sevenseacat from my end it's swenglish :)
<b00^wk> sandelius, why don't i see any ffi in the project? find . -name ffi*.so
Takle_ has quit [Remote host closed the connection]
<sevenseacat> because its a gem
<b00^wk> ffi* nothing
Takle has joined #ruby
<b00^wk> sevenseacat, where does that gem get installed?
<b00^wk> i thought it goes inside the project
psy_ has quit [Ping timeout: 264 seconds]
<b00^wk> ah
<b00^wk> there you are at home
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
<R1ck> $ /usr/bin/ruby1.9.1 -v
<R1ck> ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
<R1ck> is that normal?
Aswebb_ has joined #ruby
lyuben_ has joined #ruby
<certainty> i don't think so
<certainty> but it can be normal for your distro (still unexpected)
<sevenseacat> normal enough
<sevenseacat> because system rubies are stupud
<sevenseacat> stupid
wicope has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
<R1ck> it seems.. my ruby install is all sorts of messed up
<certainty> stupud sounds like a spell you can learn in hogwarts
<sevenseacat> its possible.
<R1ck> whats the best way to get ruby 2.2.0? apt-get remove -f ruby and install manually?
<sevenseacat> use something like ruby-install
<sevenseacat> and delete everything system ruby
<R1ck> thanks.
olivier_bK has quit [Ping timeout: 272 seconds]
iterator_ has joined #ruby
<certainty> system ruby is a ruby for systems programming?
CorySimmons has quit [Quit: Bye!]
<R1ck> i'm actually trying to run https://github.com/rvdh/lamernews in unicorn, but "bundle exec rake assets:precompile" results in "rake aborted! LoadError: cannot load such file -- rspec/core"
<R1ck> which I dont understand because the rspec gem is installed
<shevy> certainty it's the bad boy at the /usr prefix
<shevy> R1ck debian changes things
<b00^wk> this sucks nuts
<shevy> I compiled ruby from source into /usr prefix and don't have a problem
<shevy> R1ck first study the output of "gem env"
rkgudboy has quit [Ping timeout: 246 seconds]
iteratorP has quit [Ping timeout: 252 seconds]
<b00^wk> sandelius, thanks for your attempt to help,
<shevy> then go into the gem directory and verify which gems are installed; on my system cd /usr/lib/ruby/site_ruby/2.2.0/
<b00^wk> now i'm gonna troll at redmine
<shevy> I have these rspec gems: rspec-3.1.0.gem rspec-core-3.1.6.gem rspec-expectations-3.1.2.gem rspec-mocks-3.1.3.gem rspec-support-3.1.2.gem
<sevenseacat> 'sucks nuts' is such a wonderfully descriptive term.
<R1ck> shevy: thanks, gonna try to reproduce it here locally first (this issue comes up in a docker image)
<R1ck> the original repo references ruby 1.9.3 too, so gonna try to install that first
<shevy> sevenseacat german english rules!
<sevenseacat> ja!
rdark has joined #ruby
KramerC has quit [Ping timeout: 264 seconds]
wldcordeiro has joined #ruby
hs366 has joined #ruby
KramerC has joined #ruby
amundj has joined #ruby
juanpablo_ has joined #ruby
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
<flughafen> sevenseacat: nein!
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
shevy has quit [Ping timeout: 252 seconds]
bweston92 has quit [Read error: Connection reset by peer]
DavidDudson has joined #ruby
nii2361 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
martinbmadsen has quit [Ping timeout: 264 seconds]
juanpablo_ has quit [Ping timeout: 272 seconds]
apeiros_ has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
professor_soap has left #ruby [#ruby]
<b00^wk> sevenseacat, you really funny
<b00^wk> next time i connect from a server in say, China, you will think my ChinGrish is funny?
<sevenseacat> i'll still probably not have a clue what you're talking about
<b00^wk> ah ok
serivich has quit [Quit: Leaving]
davedev24_ has joined #ruby
danjordan has joined #ruby
jenrzzz has joined #ruby
SOLDIERz______ has joined #ruby
strixd has joined #ruby
krisquigley has joined #ruby
davedev24_ has quit [Remote host closed the connection]
mikepack has joined #ruby
jolg42 has joined #ruby
ayaz has joined #ruby
brer has quit [Ping timeout: 255 seconds]
krisquigley has quit [Ping timeout: 252 seconds]
jimms has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
pontiki has joined #ruby
craigp has quit [Remote host closed the connection]
rajeshchawla has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
iterator_ has quit [Remote host closed the connection]
agrinb has joined #ruby
nonks has joined #ruby
apeiros_ has quit [Ping timeout: 245 seconds]
SOLDIERz________ has joined #ruby
lessless has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
niko has quit [Quit: leaving]
niko has joined #ruby
pontiki has quit [Ping timeout: 265 seconds]
nii2361 has quit [Ping timeout: 256 seconds]
rajeshchawla has quit [Ping timeout: 264 seconds]
SOLDIERz______ has quit [Ping timeout: 256 seconds]
codecop has quit [Remote host closed the connection]
AlexRussia has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
psy_ has joined #ruby
jordsmi has quit [Quit: Connection closed for inactivity]
arup_r has quit [Remote host closed the connection]
apeiros_ has joined #ruby
TheMoonMaster has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
marr has joined #ruby
sigurding has quit [Quit: sigurding]
dumdedum has joined #ruby
sigurding has joined #ruby
shortdudey123 has quit [Max SendQ exceeded]
shortdudey123 has joined #ruby
<undeadaedra> Hi
jolg42 has quit [Read error: Connection reset by peer]
TheMoonMaster has joined #ruby
<certainty> _o/
<flughafen> hi undeadaedra
ghr has joined #ruby
triangles has joined #ruby
RegulationD has joined #ruby
tvw has joined #ruby
triangles2 has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
iteratorP has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joonty has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
alec-c4 has joined #ruby
jbw has quit [Remote host closed the connection]
einarj has joined #ruby
HoloIRCUser6 has quit [Ping timeout: 272 seconds]
sevenseacat has quit [Remote host closed the connection]
Cust0sL1men has joined #ruby
jbw has joined #ruby
ajsdklfjalksdf has joined #ruby
User458764 has joined #ruby
yfeldblum has joined #ruby
bim has joined #ruby
MXfive has joined #ruby
terlar has joined #ruby
jaxxstorm has quit [Quit: ZNC - http://znc.in]
bim has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
jaxxstorm has joined #ruby
mengu has quit [Remote host closed the connection]
iteratorP has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 246 seconds]
_64k has joined #ruby
iMe has joined #ruby
senayar has joined #ruby
msgodf has joined #ruby
arup_r has joined #ruby
b00^wk has left #ruby ["Leaving"]
senayar has quit [Remote host closed the connection]
tubuliferous has joined #ruby
SOLDIERz________ has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 246 seconds]
SOLDIERz________ has joined #ruby
martinbmadsen has joined #ruby
terlar has quit [Read error: No route to host]
livathinos has joined #ruby
iteratorP has joined #ruby
Pharaoh2 has quit [Ping timeout: 265 seconds]
arup_r has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
jonr22 has joined #ruby
iteratorP has quit [Remote host closed the connection]
jolg42 has joined #ruby
senayar has quit [Remote host closed the connection]
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
martinbmadsen has quit [Ping timeout: 264 seconds]
Koshian has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
senayar has joined #ruby
schickung has joined #ruby
Zai00 has joined #ruby
iteratorP has joined #ruby
Koshian has joined #ruby
Takle has joined #ruby
_64k has quit [Ping timeout: 265 seconds]
kblake has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
iteratorP has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
Nuck has quit [Remote host closed the connection]
Nuck has joined #ruby
iteratorP has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Zai00 has quit [Quit: Zai00]
_64k has joined #ruby
tvw has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
kblake has quit [Ping timeout: 272 seconds]
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
slap_stick has joined #ruby
Nyuck has joined #ruby
shevy has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
milesmatthias has joined #ruby
iteratorP has quit [Remote host closed the connection]
Zai00 has joined #ruby
ajsdklfjalksdf has joined #ruby
Nuck has quit [Ping timeout: 256 seconds]
Hirzu has quit [Remote host closed the connection]
mengu has joined #ruby
Nuck has joined #ruby
Hirzu has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
ajsdklfjalksdf has quit [Client Quit]
iteratorP has joined #ruby
Nyuck has quit [Ping timeout: 252 seconds]
elaptics_away is now known as elaptics
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
milesmatthias has quit [Ping timeout: 255 seconds]
jimms has quit [Remote host closed the connection]
AlexRussia has joined #ruby
phutchins has joined #ruby
Hirzu has quit [Ping timeout: 244 seconds]
Morkel has quit [Quit: Morkel]
chthon has joined #ruby
ItSANgo has quit [Ping timeout: 246 seconds]
shredding has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
vtunka has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
leokaito has quit [Ping timeout: 264 seconds]
umby24|offline is now known as umby24
Aswebb_ has quit [Remote host closed the connection]
CorySimmons has joined #ruby
ponga has quit [Remote host closed the connection]
workmad3 has joined #ruby
lolmaus has joined #ruby
davedev24_ has joined #ruby
<shevy> HELLO EVERYBODY
<oddmunds> heyhey
DaniG2k has joined #ruby
<jokester> hi
<DaniG2k> jokester: hi
cjim has joined #ruby
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
ghostpl_ has joined #ruby
umby24 is now known as umby24|offline
decoponio has joined #ruby
gfawcettpq1 has joined #ruby
cjim has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
terlar has joined #ruby
shay- has joined #ruby
lyuben_ has quit [Read error: Connection reset by peer]
jlebrech has joined #ruby
lyuben_ has joined #ruby
mengu has quit [Remote host closed the connection]
<jlebrech> there's a way to write a string without an end quote, can't remember it tho
juanpablo_ has quit [Ping timeout: 245 seconds]
<jhass> jlebrech: %(foo) ?
<apeiros_> %, %q and %Q
<apeiros_> % & %Q are like ", %q is like '
<jlebrech> jhass: I mean without something in the end.
<apeiros_> <<HEREDOC
<apeiros_> !quickref
<helpa> http://www.zenspider.com/Languages/Ruby/QuickRef.html - Quick reference for the Ruby Language
<shay-> hi, I am new to ruby and want to use log4r in some classes. I think it is a good idea to have a file logging.rb where the log4r logger gets configured. And then include the module in each class which want to use the logger. is there a guide for that? or what is best practise?
<jlebrech> like ^foo
strixd has quit [Quit: 500]
<apeiros_> jlebrech: you must misremember. all strings in ruby have delimiters on both ends
<workmad3> jlebrech: there's a way to write individual characters with just a prefix... not whole strings
<jlebrech> when the string is a single woth
<apeiros_> there are symbols, which look like :foo
<jlebrech> word*
<workmad3> >> ?a
<eval-in_> workmad3 => "a" (https://eval.in/301995)
<jlebrech> damn, maybe I saw that in another lang
<apeiros_> >> :foo
<eval-in_> apeiros_ => :foo (https://eval.in/301996)
<jlebrech> workmad3: +1
<jlebrech> yes it's ?foo
<jhass> no
<jhass> >> ?foo
<eval-in_> jhass => /tmp/execpad-0fa0b3fc18f9/source-0fa0b3fc18f9:2: syntax error, unexpected '?' ... (https://eval.in/301997)
<jlebrech> no?
<workmad3> jlebrech: ?foo doesn't work.. ?f does
<workmad3> jlebrech: only individual characteros
<workmad3> *characters
<jlebrech> ahhhhh#
<jlebrech> balls :(
<jhass> 18>> ?f
<eval-in_> jhass => 102 (https://eval.in/301998)
<jhass> also note ^
<workmad3> jhass: who cares about 1.8 anymore? :)
<undeadaedra> 10>> ?f
<eval-in_> undeadaedra => 102 (https://eval.in/301999)
<undeadaedra> :o
<jhass> oooh, template is fixed? <3
<workmad3> 19>> ?f
<eval-in_> workmad3 => "f" (https://eval.in/302000)
<apeiros_> workmad3: shevy
<jhass> 10>> RUBY_VERSION
<eval-in_> jhass => /tmp/execpad-5df0b93af832/source-5df0b93af832:4: TypeError: can't modify frozen string (https://eval.in/302001)
<jhass> mmh
<workmad3> apeiros_: I think even shevy has upgraded now ;)
<apeiros_> workmad3: I'm not convinced
Musashi007 has joined #ruby
<shevy> wat
<jhass> workmad3: puppet people seem to
<shevy> actually I could only upgrade because of tenderlove
<Musashi007> anyone know where i can go to read about how to make dbs in tables.sql in a ruby app?
<shevy> I would have been with python otherwise :D
commmmodo has joined #ruby
<shevy> what is 10 there anyway
<shevy> ruby 1.0 ?
bruno- has joined #ruby
<jhass> Musashi007: that question seems to be rather vague, but check SQLite and the sequel gem
<undeadaedra> eval.in says MRI 1.0
nonks has joined #ruby
<shevy> well that is ruby 1.0 right? or am I missing something
<shevy> I am sure I can't compile 1.0 :(
ItSANgo has joined #ruby
<workmad3> shevy: eval.in is a time traveller and brought ruby 10 back from the distant future :)
<jhass> shevy: seriously, I can even remember this coming up at least two times when both of us were around, and you're here longer than me...
<Musashi007> @jhass thanks - that lead me to the pg gem which is what i’m using
<Musashi007> evidently
<jhass> Musashi007: so is there a real/clear question=
<jhass> ?
<shevy> jhass what part
leafybasil has quit [Remote host closed the connection]
jwang_ has quit [Read error: Connection reset by peer]
<jhass> shevy: that you can prefix eval-in with versions and that it even has 1.0 available
<shevy> I know the part about prefix
<Musashi007> I didn’t have one in paraticular - I feel like I know so little i should do some reading before asking questions
<shevy> I did not know the part about ruby 1.0
<shevy> what's next, ruby 0.9?
<shevy> 09>> RUBY_VERSION
jwang_ has joined #ruby
<shevy> hmm
<jhass> 10, 18, 19, 20, 21
_64k has quit [Ping timeout: 246 seconds]
<shevy> 10>> RUBY_VERSION.class
<eval-in_> shevy => /tmp/execpad-1c306a062269/source-1c306a062269:2: syntax error (https://eval.in/302008)
<hanmac1> yeah 10 is a bit funky
zeeraw has joined #ruby
<shevy> huh
<shevy> that gives me back String in irb
User458764 has joined #ruby
krisquigley has joined #ruby
<jlebrech> is there a short way of doing [a['a'], a['b'], a['c']].join('-') ?
<jhass> jlebrech: .values_at
<Musashi007> is tables.sql a file that is automatically generated, typically?
bruno- has quit [Ping timeout: 246 seconds]
<shevy> Musashi007 dunno, bit hard to say from the name alone
<jhass> Musashi007: it's a file that seem to just have come up with without any explanation of what it would do or represent
iteratorP has quit [Remote host closed the connection]
<shevy> a mysterious file
<Musashi007> ok, it’s not a name used by convention?
<shevy> Musashi007, in what context have you seen it? rails?
<Musashi007> A sinatra app which is interfacing with a postgres database
<shevy> perhaps the folks on #rubyonrails might give another contextual answer
<shevy> aha
<jhass> no, it's not
Rephiax has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
<jhass> rails dumps the schema into schema.rb or structure.sql
<jhass> but is the name really important?
Aswebb_ has joined #ruby
<Musashi007> beats. me.
<shevy> naming things is important!
commmmodo has quit [Quit: commmmodo]
<shevy> that's why people in ruby name things like
<shevy> unicorn
<shevy> or
<shevy> methadone
iteratorP has joined #ruby
<Musashi007> jesus christ man
<shevy> https://rubygems.org/gems/methadone almost 100.000 downloads from junkies
<Musashi007> it’s gotten really bad lately
<shevy> though I also have some badly named gems
krisquigley has quit [Ping timeout: 252 seconds]
Hirzu has joined #ruby
<Musashi007> that you made ?
<undeadaedra> Or cocaine: « A small library for doing (command) lines. »
pontiki has joined #ruby
<shevy> Musashi007 yeah. often I try to give a name that hints as to what it does
<shevy> but then the name becomes so long
<shevy> two words tend to be quite ok
<Musashi007> that’s good of you
_64k has joined #ruby
mastr_bennett[x] has quit [Ping timeout: 250 seconds]
<workmad3> Musashi007: sounds like it's the file that the app intends you to initialize the database with
* hanmac1 prevers to name his gems as cyrptic as possible .. and with less vocals as possible too ;P
<workmad3> Musashi007: the app's README should give you some indication though
<undeadaedra> kjtbgkxdfbjk ?
LJT has joined #ruby
agrinb has joined #ruby
<workmad3> hanmac1: s/vocals/vowels/?
<shevy> libarchive-ruby
<shevy> two words
<hanmac1> undeadaedra: hm yeah like that, my current recently rpoject is rwx
<shevy> libacl-ruby: two words
<jhass> oh, I should fetch all single word names of gems as input for my hangman bot!
<Musashi007> @workmad3 there isn’t a readme
<shevy> only rwx is a deviation, one word
triangles2 has joined #ruby
<shevy> jhass is the bot already functional?
strixd has joined #ruby
<workmad3> jhass: yes, you should :)
<jhass> shevy: yes
<Musashi007> @workmad3 tha would make sense though.. thnk you
commmmodo has joined #ruby
<shevy> apeiros will ban it eventually :)
<shevy> you could say the bot has an educational approach
<jhass> it has
<shevy> "it teaches people the names of different ruby gems"
rkgudboy has joined #ruby
<shevy> hahaha
<jhass> the current wordlist is some "words moms should teach their childs" kind of thing
<workmad3> shevy: I'm just waiting for the bot to give 'crack' followed by 'cocaine' ;)
bim has joined #ruby
LJT has quit [Read error: Connection reset by peer]
<shevy> well
Takle has quit [Remote host closed the connection]
triangles has quit [Ping timeout: 255 seconds]
<shevy> that seems legit - crack is an existing gem after all -> https://rubygems.org/gems/crack
<workmad3> shevy: also crack ho
<jhass> also the bot is written in crystal
Takle has joined #ruby
<shevy> and a gem for safe coding can be found here https://rubygems.org/gems/condom
<shevy> jhass you abandoned ruby! :(
<Musashi007> ya know even the fact that they’re called gems
pontiki has quit [Ping timeout: 252 seconds]
<shevy> ruby already has crystal https://rubygems.org/gems/crystal
<jhass> shevy: https://github.com/jhass/DeBot/blob/master/bot/src/plugins/hangman.cr does it look any different to you?
<workmad3> shevy: it also has meth https://rubygems.org/gems/meth
<shevy> jhass yeah!
<shevy> @guesses = [] of Char
bim has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 256 seconds]
<jhass> see, 1/90
OrbitalKitten has joined #ruby
<shevy> workmad3 I wonder if there is a pattern here. Like, where do the people live that create gems such as these
<Musashi007> you got : https://rubygems.org/gems/crack , i assume?
<shevy> I am going out on a limp and claim that they come from the USA!
commmmodo has quit [Ping timeout: 245 seconds]
iteratorP has quit [Remote host closed the connection]
<workmad3> jhass: hmm... crystal == ruby with some type annotations?
<jhass> workmad3: not quite
<shevy> *limb
<jhass> workmad3: deeply ruby inspired syntax is more fitting
<jhass> workmad3: compiled though
<shevy> it is ruby but it is not
<workmad3> jhass: fair enough :) I'd also assume that @@classvars are also useful? :)
Soda has joined #ruby
ArchRogem has joined #ruby
<jhass> they're scoped to a single class, yeah
alphaatom has joined #ruby
Takle has quit [Remote host closed the connection]
iteratorP has joined #ruby
Takle has joined #ruby
<jhass> since the meta model i not quite there yet and no class level instance vars for now
<shevy> would be fun to write in any language, ruby or crystal
<shevy> and get both for free
<jhass> and a constant felt wrong, so I actually use @@vars quite a bit in crystal
alex88 has joined #ruby
<shevy> the second @ is so ugly!
rkgudboy has quit [Ping timeout: 255 seconds]
bim has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Musashi007> can i ask what a db extension is in here?
lele is now known as Guest24
<shevy> ruby_extension "test_ruby",
<shevy> why the , ?
a5i has joined #ruby
<shevy> Musashi007 an extension for a database? :)
<shevy> I'd assume that things stored in a .sql can be put into the interactive psql console
<jhass> shevy: because it's a macro and the whole class is passed as an argument to it :P
<shevy> or you can somehow load that
<jhass> Musashi007: more context
<Musashi007> CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
<jhass> Musashi007: that's a postgresql thing
lkba has joined #ruby
<Musashi007> it’s in that file I was refering to earlier which ap[epars to set up all the tables
<workmad3> Musashi007: in postgres, an extension is a way of introducing new types and features into the database... things like uuid generation inside postgres or the entire postgis package for turning pg into a geographically aware db are released as pg extensions
ankit has joined #ruby
SOLDIERz________ has quit [Quit: Be back later ...]
<ankit> anyone is participating in gsoc
<Musashi007> wow thank you
sandelius has joined #ruby
<workmad3> Musashi007: extensions are also installed into the pg server and then activated on a database-by-database case, hence that line in your tables.sql (which, iirc, is for pulling in a stored procedure language)
Guest24 is now known as lele
<ankit> anyone participating in gsoc?
bim has quit [Ping timeout: 256 seconds]
craigp has joined #ruby
anaeem1 has quit [Quit: Leaving...]
marr has quit [Ping timeout: 265 seconds]
anaeem1_ has joined #ruby
<Musashi007> so the fact that it’s creating an extension if it doesn’t exist means that the db program will then install that particular extension?
Pupeno has joined #ruby
<jhass> mmh, it's more like marking it at active for the current database, but yeah
<workmad3> if the pg server is aware of the extension, it'll install it into that database
<Musashi007> wait - so, this means I can just take this file and load it into postgresql server?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<workmad3> the 'CREATE' is a bit of a misnomer there
<jhass> Musashi007: likely
<jhass> psql db_name < tables.sql
<Musashi007> hoooly shit
phutchins has joined #ruby
<Musashi007> is it alright for me to be asking db questions here?
<jhass> are you kicked from the channel? ;)
RegulationD has joined #ruby
<jhass> we're good in telling people elsewhere, no worries
<jhass> *to go elsewhere I mean
rsavage has joined #ruby
<Musashi007> ha
<Musashi007> ok thanks
<jhass> so, how do I get a list of all gems?
snath has quit [Ping timeout: 264 seconds]
Pupeno has quit [Remote host closed the connection]
<workmad3> jhass: there's an API call on rubygems that should get that... they introduced it so that bundler could work a bit quicker :)
jimms has joined #ruby
coderhs has joined #ruby
<jhass> good thing that rubygems.org has a link to the API docs right on the front page... or rather it would be nice if
timonv has joined #ruby
<undeadaedra> go rubydoc.info
RegulationD has quit [Ping timeout: 245 seconds]
rkgudboy has joined #ruby
jimms has quit [Remote host closed the connection]
<jhass> not that kind of API :)
phutchins has quit [Ping timeout: 250 seconds]
<undeadaedra> oh
<jhass> workmad3: don't see the endpoint in the API docs :/
leafybasil has joined #ruby
sngeth has joined #ruby
fgo has joined #ruby
zeeraw has joined #ruby
rodfersou has joined #ruby
nii2361 has joined #ruby
<workmad3> jhass: oh drats... they introduced an API for bundler wher bundler could throw a list of gem names and get back a list of dependencies... sorry
<workmad3> jhass: my bad, mis-remembered what they did
<jhass> yeah
vtunka has quit [Quit: Leaving]
<jhass> there must be some way to get a list of of them though :/
<jhass> basically what bundler used previously
sngeth has quit [Ping timeout: 264 seconds]
rohitkashyap has joined #ruby
kedare has quit [Quit: WeeChat 1.0.1]
<shevy> cool
<shevy> workmad3 so bundler helped evolve rubygems
<workmad3> jhass: also what gem list -r does
lanemeyer has quit [Ping timeout: 245 seconds]
<jhass> yeah
<jhass> mitmproxy time I guess
hcnewsom has joined #ruby
CorySimmons has quit [Quit: Bye!]
<shevy> when you guys find a bug in one of your projects, when it is somewhat large... do you sometimes feel that it may be better to rewrite the whole thing?
<shevy> rather than just fix that one little bug
<jhass> if I still call it bug, probably not
<undeadaedra> it depends of the kind of the problem
umby24|offline is now known as umby24
<undeadaedra> if it’s a conception flaw, maybe
vadviktor has quit [Remote host closed the connection]
<jhass> what you describe I use the term "design issue" for, I think
vadviktor has joined #ruby
rkgudboy has quit [Ping timeout: 246 seconds]
withnale_ has joined #ruby
<withnale_> Hello.
<Musashi007> hello
delianides has joined #ruby
<Musashi007> does anyone know the command to end a postgresql statement? I recall there being some specific way to end them but can’t remember what it is
amystephen has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> ;
<R1ck> so unicorn is an application server for ruby apps.. how would I run the ruby app on the commandline, just for debugging purposes?
mengu has joined #ruby
<undeadaedra> R1ck: what kind of app ?
<Musashi007> @wasamasa thanks
delianides has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
<wasamasa> Musashi007: it's a general SQL thing
<R1ck> undeadaedra: it's a website https://github.com/rvdh/lamernews
<undeadaedra> For Rails app (as you talk about unicorn), you have rails console
<undeadaedra> Sinatra is a bit more complicated
<R1ck> I'm afraid I know very little about Rails and ruby as I'm just a poor engineer tasked with getting this thing running
<undeadaedra> What do you want, just to run the application, or have a console to be able to tests objects directly ?
<ankit> use linuxr1ck
oo_ has quit [Remote host closed the connection]
mcpierce has joined #ruby
<R1ck> undeadaedra: well, I've made some modifications to app_config.rb and want to see whats happening.. see https://github.com/rvdh/lamernews/blob/master/app_config.rb from line 8
<undeadaedra> Just to run the app, use rackup
<undeadaedra> It will start a server and you will be able to access it through your browser
<R1ck> yes.. that seems to work
User458764 has joined #ruby
<R1ck> well.. "work" :) it generates the same error I'm trying to fix so thats good :P
<R1ck> thanks!
oo_ has joined #ruby
<undeadaedra> yw
<withnale_> Does anyone know of something like jeweller or 'bundle gem' but using your own template?
chthon has quit [Ping timeout: 264 seconds]
<undeadaedra> withnale_: cp -R
ankit has quit [Read error: Connection reset by peer]
umby24 is now known as umby24|offline
<withnale_> a less low rent solution :)
bim has joined #ruby
ankit has joined #ruby
<undeadaedra> it’s the most flexible though
joonty has quit [Quit: joonty]
martinbmadsen has joined #ruby
joonty has joined #ruby
<R1ck> yes!
<R1ck> I fixed my bug \o/
senayar has quit [Remote host closed the connection]
<undeadaedra> congrats
blackmesa has joined #ruby
seal has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lele is now known as Guest24
kedare has joined #ruby
<jlebrech> I need to do a group_by and sum columns in SQL (or an array of hashes), it's so complex in ruby, and i've already figured the sql query. I only need sql temporeraly, would you recommend sqlite and sequel for that?
jottr has joined #ruby
oo_ has quit [Remote host closed the connection]
Lewix has joined #ruby
<canton7> tbh if you've got the sql, there should be some fairly simple corresponding ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
jonr22 has joined #ruby
umby24|offline is now known as umby24
Mia has quit [Read error: Connection reset by peer]
martinbmadsen has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
zeeraw has joined #ruby
<shevy> undeadaedra I fixed your bugs
elfuego has quit [Quit: elfuego]
<undeadaedra> you did?
<shevy> yep
<undeadaedra> So it should work then.
<shevy> your french accent got fixed!!!
<undeadaedra> Ah
<shevy> there used to be Mon_Ouie here
<shevy> hmm
<DaniG2k> does anyone know of a junior/mid-level ruby dev position in London I could apply to by any chance?
<undeadaedra> I don’t think this is something you can fix like that, shevy :)
startupality has joined #ruby
<shevy> undeadaedra look, french rays https://github.com/Mon-Ouie/ray
jonr22 has quit [Ping timeout: 264 seconds]
zeeraw has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
chthon has joined #ruby
agrinb has joined #ruby
rohitkashyap has quit [Quit: Leaving]
sdothum has joined #ruby
umby24 is now known as umby24|offline
<gregf_> DaniG2k: we did have one but its fill only 3 days back :/
zeeraw has joined #ruby
<gregf_> s/fill/filled/
zeeraw has quit [Client Quit]
seal has quit [Quit: Ex-Chat]
<gregf_> well, not dev tbp. devops
oo_ has joined #ruby
<gregf_> devops can't code properly lol
akky has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<akky> there?
plashchynski has joined #ruby
<gregf_> everywhere ;)
agrinb has quit [Ping timeout: 265 seconds]
oo_ has quit [Read error: Connection reset by peer]
lordkryss has joined #ruby
bim has quit [Remote host closed the connection]
delianides has joined #ruby
bronson has quit [Remote host closed the connection]
oo_ has joined #ruby
milesmatthias has joined #ruby
Zai00 has quit [Quit: Zai00]
dblessing has joined #ruby
sigurding has quit [Quit: sigurding]
<akky> how can i create custom matchers
umby24|offline is now known as umby24
<jhass> akky: for?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
<akky> expect(some_function).to be_xxxx
nonks has joined #ruby
<DaniG2k> gregf_: I'm doing devopsy stuff now
<DaniG2k> :P
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<DaniG2k> gregf_: sys-admin & support
<jhass> akky: the answer is rspec
<jhass> to my question
lkba_ has joined #ruby
phutchins has joined #ruby
milesmatthias has quit [Ping timeout: 245 seconds]
ankit has quit [Ping timeout: 250 seconds]
bim has joined #ruby
banister has joined #ruby
<workmad3> akky: it's rare you need to create a new custom matcher of the form be_xxxx... rspec provides a fairly general form where 'expect(something).to be_foobar' is equivalent to 'expect(something.foobar?).to be true'
nonks has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 264 seconds]
<akky> workmad3: can u please refer to some example
<akky> u may msg me e.g. in query
<workmad3> akky: expect(response).to be_success
yfeldblu_ has quit [Ping timeout: 265 seconds]
<workmad3> as a common example from rails controller specs
rkgudboy has joined #ruby
Guest24 is now known as lele
<workmad3> there's no be_success matcher, rspec just picks up the be_ prefix and checks response.success? for the expectation
<akky> workmad3: i am new to ruby n dont understand u properly pls refer me to some link
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
umby24 is now known as umby24|offline
<akky> workmad3: ?????
SOLDIERz________ has joined #ruby
sandelius has joined #ruby
Pupeno has joined #ruby
rkgudboy has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
rkgudboy has joined #ruby
<shevy> undeadaedra you should write more french here
tgunr has left #ruby ["Textual IRC Client: www.textualapp.com"]
SOLDIERz________ has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
Takle has quit [Remote host closed the connection]
nfk has joined #ruby
<hs366> evening all !
<shevy> hey hs366
akky has quit [Ping timeout: 246 seconds]
<shevy> were you the C++ guy
<hs366> yes
hiyosi has joined #ruby
<hs366> now im c+by
<shevy> have you been writing more ruby since the last time you were here
<hs366> yes
n008f4g_ has joined #ruby
<shevy> ok good
<hs366> i still practice and learn
User458764 has joined #ruby
schickung has quit [Quit: schickung]
DeBot has joined #ruby
<hs366> i have some problem with extracting some information from hash
Hirzu_ has joined #ruby
OrbitalKitten has joined #ruby
<hs366> and as i understand hash is some sort of array
<hs366> yes ?
<canton7> not really, no
Pupeno has quit [Remote host closed the connection]
<shevy> they are similar
<canton7> hashtable? dictionary? lookup? any of those words ring a bell from C++?
<shevy> you could use a hash with keys such as 0,1,2,3,4
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<hs366> yes yes
<undeadaedra> associative array, too
<shevy> hs366 you can think of an Array as a simpler data structure; use << to append, and [] to obtain
<hs366> ok got it
Musashi007 has joined #ruby
commmmodo has joined #ruby
<hs366> i c
nii2361 has quit [Ping timeout: 256 seconds]
<shevy> though Hash also has []
<shevy> but you need to know the specific name
pontiki has joined #ruby
Hirzu has quit [Ping timeout: 250 seconds]
<shevy> or perhaps not
<shevy> :)
<shevy> both respond to [] and both return nil when this key or position does not exist
<undeadaedra> <shevy> but you need to know the specific name
<undeadaedra> in an Array, you need the index
<hs366> k=>v
Pupeno has quit [Read error: Connection reset by peer]
<shevy> undeadaedra yeah but a hash could have 0,1,2,3 as a key too
<hs366> the specific name you mean = the name of k-v ?
Takle has joined #ruby
giuseppesolinas has left #ruby ["Leaving"]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> hs366: an array is an order list of objects, a hash maps a key (which can be any object) to a value
<jhass> (which can also be any object)
<jhass> that's all there is to it
<a5i> how do I update Ruby to 2.x on debian ?
<jhass> in hash literals the key is on the left side of the => and the value is on the right side
lanemeyer has joined #ruby
<hs366> yeah i got it
rkgudboy has quit [Ping timeout: 250 seconds]
rohitkashyap has joined #ruby
rohitkashyap has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
claptor has quit [Quit: this channel is bakas]
<hs366> and if i want to extract this keys or value i should simply go through [] with there respective names yes ?
<canton7> not enough detail. please add more detail.
rkgudboy has joined #ruby
<shevy> hs366 yeah. you can also use .fetch()
rorra has joined #ruby
<hs366> aha.. i have to test my code with fetch
<shevy> a5i does debian not allow this? :)
User458764 has joined #ruby
reinaldob has joined #ruby
<a5i> I dont now :[
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I actually think you can, hanmac uses ubuntu
<jhass> hs366: there are no names. a key maps to a value, you pass the key to Hash#[] or Hash#fetch and get the value back
<undeadaedra> a5i: you can use rvm/rbenv to have custom ruby versions
jgt1 has joined #ruby
colorados has joined #ruby
schickung has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_ has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
<dblessing> how can I stub a call to IO.read?
commmmodo has quit [Quit: commmmodo]
<dblessing> i tried `allow(IO).to receive(:read)` but when i run rspec it's still telling me it can't load the file
arup_r has joined #ruby
shredding has quit [Ping timeout: 272 seconds]
mostlybadfly has joined #ruby
plashchynski has quit [Quit: plashchynski]
delianides has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<jhass> dblessing: try to reproduce in a single file
<jhass> if you manage to, gist it
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
<sandelius> how do one call a method from a different class in the current class context? I have the method name and the instance of the other class.
sngeth has joined #ruby
aclearman037 has joined #ruby
max96at|off is now known as max96at
oo_ has quit [Ping timeout: 252 seconds]
d10n-work has joined #ruby
<sandelius> do mind me, composition works better here
<sandelius> don't
<jhass> sandelius: good, never do this in production code without a very good reason, but Foo.instance_method(:name).bind(self).call
Takle has quit [Remote host closed the connection]
<jhass> dblessing: I don't think I can download that and reproduce locally
<dblessing> jhass: no, not in that example.
<jhass> make one were that works
<jhass> *where
krisquigley has joined #ruby
Zai00 has joined #ruby
sngeth has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
OrbitalKitten has joined #ruby
rkgudboy has quit [Ping timeout: 252 seconds]
jespada has joined #ruby
rkgudboy has joined #ruby
DelphiWorld has joined #ruby
vtunka has joined #ruby
<DelphiWorld> hi
<DelphiWorld> i have a ruby on rail app
<DelphiWorld> how to start it?
<undeadaedra> it depends
blackmes1 has joined #ruby
OrbitalKitten has quit [Client Quit]
_64k has quit [Ping timeout: 246 seconds]
<undeadaedra> what are you doing with this app ?
<wasamasa> read the README
mengu has joined #ruby
<DelphiWorld> it's just a open source app gonna try
<DelphiWorld> the README it's empty:)
<undeadaedra> Their website has no doc ?
<wasamasa> hire someone able to read ruby
craigp has quit [Remote host closed the connection]
<DelphiWorld> lol
plashchynski has joined #ruby
<wasamasa> I'm not joking
<undeadaedra> Because it depends on the app, they may have a special run process
<DelphiWorld> it's open source
<wasamasa> so?
<wasamasa> hiring someone to do work for you is always an option
krisquigley has quit [Ping timeout: 256 seconds]
<undeadaedra> what’s the app, DelphiWorld ?
<DelphiWorld> undeadaedra: a twitter clone on github, let me get it to you
<wasamasa> lol
<DelphiWorld> wasamasa: stop kyding
senayar has quit [Ping timeout: 264 seconds]
<wasamasa> I don't know what that's even supposed to be
<canton7> I google it. Google didn't think it existed
<DelphiWorld> wasamasa: take your seat and let me
blackmesa has quit [Read error: Connection reset by peer]
<wasamasa> DelphiWorld: I'm well seated, thank you
triangles3 has joined #ruby
nfk has quit [Quit: yawn]
<undeadaedra> get a room, you two
agrinb has joined #ruby
<DelphiWorld> undeadaedra: ;)
craigp has joined #ruby
<DelphiWorld> undeadaedra: https://github.com/tiimgreen/twitter.git
<jhass> looks like unpatched security issues in the dependency tree, but just bin/rails s it
<undeadaedra> No README, no doc, the live version is down, smells good in there.
codecop has joined #ruby
<canton7> yeah, I wouldn't spend much time with that myself
<jhass> after the usual bundle of course
<undeadaedra> DelphiWorld: should behave like a basic rails app, I advise to read a quick guide on rails to know how to handle it
<wasamasa> bundle exec rails s
triangles2 has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 256 seconds]
OrbitalKitten has joined #ruby
Pupeno has joined #ruby
tesuji has joined #ruby
ayaz has quit [Ping timeout: 264 seconds]
Aswebb_ has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
bronson has joined #ruby
OrbitalKitten has joined #ruby
milesmatthias has joined #ruby
Jiyuhen has quit [Ping timeout: 256 seconds]
livathin_ has joined #ruby
Aswebb_ has joined #ruby
<jhass> so, let's see how long until opeiros kills me for this
<jhass> !enable Hangman
<DeBot> jhass: Enabled Hangman.
<jhass> DeBot: !hangman gems
<DeBot> _____ [] 0/12
<workmad3> e
<jhass> DeBot: e
<DeBot> _____ [e] 1/12
<workmad3> DeBot: t
<DeBot> ___t_ [e] 1/12
<workmad3> DeBot: s
<DeBot> s__t_ [e] 1/12
<workmad3> DeBot: a
<DeBot> s__t_ [ea] 2/12
<workmad3> DeBot: u
<DeBot> s__t_ [eau] 3/12
<workmad3> DeBot: i
<DeBot> s__t_ [eaui] 4/12
<workmad3> DeBot: o
<DeBot> s_ot_ [eaui] 4/12
milesmatthias has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 264 seconds]
DelphiWorld has left #ruby ["I'm a happy Miranda NG user! Get it here: http://miranda-ng.org/"]
<workmad3> DeBot: l
<DeBot> slot_ [eaui] 4/12
<apeiros_> DeBot: h
<DeBot> sloth [eaui] 4/12 You won!
<workmad3> :)
<wasamasa> lol
<apeiros_> jhass: I think I'll kickban you for introducing this bot here and keep the bot ;-p
<workmad3> hehe
<jhass> mmh
<DeBot> kay, can live with that
<workmad3> DeBot: !hangman gems
<DeBot> _____________ [] 0/12
ghostpl_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> DeBot: e
<DeBot> _____e_______ [] 0/12
livathinos has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
<wasamasa> DeBot: r
<DeBot> r____e_____r_ [] 0/12
sambao21 has joined #ruby
<wasamasa> DeBot: s
<DeBot> r____e_____r_ [s] 1/12
<workmad3> jhass: I now want to create a gem called "thequickbrownfoxjumpedoverthelazydog" :)
<wasamasa> DeBot: t
<DeBot> r____e_____r_ [st] 2/12
<jhass> workmad3: <3
<wasamasa> DeBot: c
<DeBot> r____e_c___r_ [st] 2/12
<undeadaedra> srsly
<apeiros_> workmad3: you mean to have a 100% 0/12 win?
<undeadaedra> DeBot: u
<DeBot> ru___e_c___r_ [st] 2/12
<workmad3> apeiros_: ya
<wasamasa> DeBot: a
<DeBot> ru___e_c__ar_ [st] 2/12
<wasamasa> DeBot: d
<DeBot> ru___e_c__ar_ [std] 3/12
<undeadaedra> DeBot: b
<DeBot> rub_be_c__ar_ [std] 3/12
<jhass> DeBot: y
<DeBot> rubybe_c__ar_ [std] 3/12
<apeiros_> DeBot: y
<DeBot> rubybe_c__ar_ [std] 3/12
<jhass> first!
<wasamasa> hahaha, std
<jhass> :D
<wasamasa> I totally did not intend this to happen
<workmad3> jhass: can you do 'debot: <full guess>'?
<oddmunds> rubybenchmark
<jhass> no
<undeadaedra> DeBot: k
<DeBot> rubybe_c__ark [std] 3/12
<oddmunds> no?
<undeadaedra> thanks, oddmunds
<jhass> oddmunds: er, was referring to workmad3
<undeadaedra> DeBot: h
<DeBot> rubybe_ch_ark [std] 3/12
<workmad3> DeBot: m
<DeBot> rubybe_chmark [std] 3/12
<undeadaedra> DeBot: n
<DeBot> rubybenchmark [std] 3/12 You won!
<workmad3> DeBot: n
<undeadaedra> \o/
<jhass> workmad3: should probably do that, but I don't want to allow multiple guesses in one, so need a way to differentiate that nicely
<workmad3> jhass: if it's > 1 character, it's a full guess?
<jhass> mh
<undeadaedra> so we have a hangman bot in #ruby now
blizzy is now known as _blizzy_
<workmad3> undeadaedra: yes, until apeiros_ gets bored and kicks it out :)
Takle has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
<apeiros_> /nick kingboredbanhammer
relix has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
relix has joined #ruby
<undeadaedra> what are the categories ?
<undeadaedra> DeBot: !help hangman
<helpa> I need somebody! !help. Not just anybody. !help. You know I need someone. !help
<undeadaedra> I did not say !help beatles
dstarh has joined #ruby
<jhass> mh, I guess I just allow multiple guesses
<jhass> undeadaedra: just gems and the default (nouns)
<undeadaedra> 'k
<jhass> if you have a nice word list to add ...
SOLDIERz________ has joined #ruby
<undeadaedra> Hash methods.
<undeadaedra> :p
<jhass> heh
<jhass> underscores are not nice
beef-wellington has joined #ruby
sigurding has joined #ruby
tier has joined #ruby
<undeadaedra> by the way, you should space your letters
<undeadaedra> it’s not easy to count linked underscores
<apeiros_> jhass: yeah, core classes & methods
<jhass> just because you use no monospace font
<undeadaedra> I do
patteh has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
<jhass> space looks ugly though
patteh has joined #ruby
<undeadaedra> R _ _ Y []
<jhass> apeiros_: meh, seems too much work to create
<jhass> undeadaedra: yeah
hcnewsom has quit [Quit: hcnewsom]
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
brb3 has joined #ruby
anaeem1_ has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
mjuszczak has quit []
jenrzzz has joined #ruby
<jhass> mh
nii2361 has joined #ruby
<jhass> I could screw shevy and use some fancy unicode symbol as placeholder
<jhass> would also make _ possible
delianides has joined #ruby
<shevy> but nobody would be able to guess unicode hangman
delianides has quit [Remote host closed the connection]
delianides has joined #ruby
<jhass> nah, I'd still limit the words to a-z_
<jhass> and =?! if we want method names I guess
<shevy> how does crystal handle encoding?
pontiki has quit [Remote host closed the connection]
<jhass> for now not at all
<jhass> utf-8 or go home
<jhass> that is because nobody sat down and contributed proper encoding support yet
anaeem1_ has quit [Ping timeout: 246 seconds]
bim has joined #ruby
iteratorP has quit [Remote host closed the connection]
nii2361 has quit [Ping timeout: 255 seconds]
revoohc has joined #ruby
commmmodo has joined #ruby
Mon_Ouie has quit [Ping timeout: 265 seconds]
bayed has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
spider-mario has joined #ruby
workmad3 is now known as wm3|away
<jhass> ⏘
chthon has quit [Remote host closed the connection]
<jhass> mmh, a bit high vertical baseline⏘
<jhass> ah, there we go
<jhass> ⎵
JDiPierro has joined #ruby
martinbmadsen has joined #ruby
rikai has quit [Remote host closed the connection]
oo__ has joined #ruby
jtdowney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
nonks has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
<shevy> line noise
jonr22 has joined #ruby
AlexRussia has joined #ruby
vroomanj has joined #ruby
sgambino has joined #ruby
martinbmadsen has quit [Ping timeout: 244 seconds]
<jhass> Uh, I think I have a new favorite unicode character
oo_ has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
<jhass> U+FE18 PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRAKCET
<jhass> " misspelling of "BRACKET" in character name is a known defect"
sngeth has joined #ruby
alec-c4_ has joined #ruby
it0a has joined #ruby
<shevy> I like the snowman
jonr22 has quit [Ping timeout: 256 seconds]
oo__ has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
<shevy> that dude would almost be enough incentive to switch
<shevy> I am sure he is necessary in some language too http://www.fileformat.info/info/unicode/char/2603/index.htm
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Parker0 has joined #ruby
joonty has quit [Quit: joonty]
Parker0 has quit [Client Quit]
alec-c4 has quit [Ping timeout: 264 seconds]
sevenseacat has left #ruby [#ruby]
alec-c4__ has joined #ruby
<jhass> ﹍﹍﹍ how bad would this be?
<shevy> I have no idea what that is
<shevy> can you make a screenshot?
hcnewsom has joined #ruby
_64k has joined #ruby
User458764 has joined #ruby
agrinb has joined #ruby
sngeth has quit [Ping timeout: 264 seconds]
SouL has joined #ruby
<jhass> probably not
alec-c4_ has quit [Ping timeout: 246 seconds]
<shevy> jhass hmm have you been using latex for your ... what was the name... bachelor thesis?
<jhass> yeah
<avril14th> morning
<shevy> now that is a minimal screenshot if I have ever seen one
Soda has quit [Remote host closed the connection]
<shevy> that's like recorded with a potato
senayar has joined #ruby
<shevy> ah
sankaber has joined #ruby
<shevy> it's the three . put much together right?
<shevy> I think I can copy/paste that ... into my editor
<shevy> well apparently not from xchat
<shevy> but I can via firefox!
tkuchiki has quit [Ping timeout: 246 seconds]
agrinb has quit [Ping timeout: 256 seconds]
senayar has quit [Ping timeout: 256 seconds]
mengu has quit [Remote host closed the connection]
jerius has joined #ruby
doodlehaus has joined #ruby
<bradland> elics.map { |i| e = Event.find(i[:id]); "#{i[:count]} [#{e.id}] #{e.name}" } \
<bradland> .each.with_index { |r,i| puts "##{(i+1).to_s.ljust(2)} #{r}" };0
<bradland> woooops
<bradland> sry
paradoja has joined #ruby
Zimsky__ has joined #ruby
L8 has joined #ruby
DaniG2k has quit [Ping timeout: 244 seconds]
lkba_ has quit [Ping timeout: 252 seconds]
Hirzu_ has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
<machty> i have a file-importing ruby process that expands to 512MB mem usage and doesn't seem to contract after that. Is that evidence of a leak, or just that a ruby process will expand to its max and not contract after the fact?
schickung has quit [Quit: schickung]
Musashi007 has quit [Quit: Musashi007]
<certainty> bradland: Event.where(id: list_of_ids).then_the_formatting is probably more efficient
n008f4g_ has quit [Ping timeout: 244 seconds]
<bradland> certainty: this is code that came to me from an analyst. meant to paste it in to a rake task wherein my task is to clean this mess up.
<certainty> bradland: ah i see. have fun :)
n008f4g_ has joined #ruby
mjuszczak has joined #ruby
Hirzu has joined #ruby
mjuszczak has quit [Client Quit]
ghostpl_ has joined #ruby
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
anaeem1 has joined #ruby
krz has quit [Ping timeout: 246 seconds]
paradoja has quit [Ping timeout: 256 seconds]
fryguy9 has joined #ruby
jespada has quit [Ping timeout: 246 seconds]
commmmodo has quit [Quit: commmmodo]
nonks has joined #ruby
livathin_ has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
n008f4g_ has quit [Ping timeout: 256 seconds]
jespada has joined #ruby
<jhass> machty: could be both, I think only 2.2 or 2.1 started giving up allocated memory at all
<machty> jhass: really? is there a term i could google relating to that?
<machty> or a blog post
HOrangeJewce has joined #ruby
Koshian is now known as Koshian
<jhass> no idea, I would expect "ruby memory allocation" to yield something
Aswebb_ has quit [Remote host closed the connection]
stef204 has joined #ruby
<bradland> machty: what ruby version are you running?
<bradland> you can inspect GC activity to see what's being cleaned up.
<machty> 2.1.3
<bradland> if it tops out at 512 MB and doesn't grow, it's probably fine
joonty has joined #ruby
<bradland> a good GC doesn't clear out memory unless it needs it for something else
<machty> bradland: what is the actual mechanism limiting it to 512? some Ruby constant? or does a malloc fail and ruby takes that as its queue to GC?
<bradland> otherwise it may have to reload those items to memory unnecessarily
jlast has joined #ruby
sevenseacat has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
<bradland> i don't have any good resources on GC tuning in newer ruby versions, unfortunately
<bradland> there have been some significant changes, so the old 1.9 stuff doesn't apply
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
<bradland> in general, you'll want to look in to the 2.1 GC related objects and GC tuning
<bradland> but if it stays at 512 MB, i wouldn't consider it a problem
agrinb has joined #ruby
ajsdklfjalksdf has joined #ruby
rbennacer has joined #ruby
ojacobson has joined #ruby
<jhass> machty: http://samsaffron.com/archive/2014/04/08/ruby-2-1-garbage-collection-ready-for-production seems like a nice article (second google result for me)
<bradland> machty: it's important to understand the goals of garbage collection before tuning
<shevy> drive your car
<shevy> tune it good
Aswebb__ has joined #ruby
<bradland> you don't want the ruby GC removing objects from memory that will probably be needed again
<bradland> in other words, you shouldn't tune the GC to use the minimum amount of memory, you should tune it to use the most efficient amount of memory
n80 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
werelivinginthef has joined #ruby
dinhani has joined #ruby
AlexRussia has joined #ruby
DEA7TH has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
j_mcnally has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tier_ has joined #ruby
juanpaucar has joined #ruby
RegulationD has joined #ruby
j_mcnally has quit [Client Quit]
enebo has joined #ruby
j_mcnally has joined #ruby
lkba has joined #ruby
dEPy has joined #ruby
elfuego has joined #ruby
nii2361 has joined #ruby
sepp2k has joined #ruby
tier has quit [Ping timeout: 255 seconds]
JDiPierro has joined #ruby
n008f4g_ has joined #ruby
User458764 has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
tier_ has quit [Remote host closed the connection]
a346 has joined #ruby
tier has joined #ruby
<machty> bradland: what does it mean to "probably be needed again"? wouldn't i have a reference to that object somewhere in my code?
nii2361 has quit [Ping timeout: 256 seconds]
<bradland> machty: that samsaffron.com article is pretty good. i'd recommend reading it.
<bradland> it talks about what triggers a GC event, and how tuning the GC can result in increased performance, but possibly increased memory usage.
<bradland> if you're memory constrained in your environment, then you may have to choose different priorities.
schickung has joined #ruby
<machty> bradland: i am reading it
<machty> i think what you meant was you don't want ruby _sweeping_ young objects
<machty> that i get
<machty> i just thought you were suggesting there was some concept of not wanting to clean up objects you've definitely lost reference to as if they could be re-referenced in the future
imanzarrabian has joined #ruby
mengu has joined #ruby
delianides has quit [Remote host closed the connection]
<machty> sorry
<bradland> no, what i'm suggesting is that by setting limits too low, you can cause performance issues
<machty> you don't want ruby _sweeping_ old objects
<machty> at least, not in a minor sweep
MXfive has joined #ruby
delianides has joined #ruby
<bradland> seems like the new GC instrumentation will be useful to you
<machty> yeah
agrinb has joined #ruby
krisquigley has joined #ruby
Takle has quit [Remote host closed the connection]
delianid_ has joined #ruby
delianides has quit [Read error: Connection reset by peer]
scottstamp has quit [Ping timeout: 245 seconds]
axisys has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
jerematic has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
nucular11 has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
commmmodo has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
scottstamp has joined #ruby
fryguy91 has joined #ruby
mitchellhenke has joined #ruby
raph_ael has joined #ruby
bruno- has joined #ruby
<raph_ael> Hi, I manage a ruby mirror, seems that source rsync mirrors do not work anymore
fryguy9 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
j_mcnally has quit [Ping timeout: 264 seconds]
DerisiveLogic has joined #ruby
ych4k3r has joined #ruby
plashchynski has quit [Quit: plashchynski]
plashchynski has joined #ruby
DeBot has quit [Quit: Crystal]
bruno- has quit [Ping timeout: 252 seconds]
DeBot has joined #ruby
bruno- has joined #ruby
j_mcnally has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
vtunka_ has joined #ruby
flughafen has quit [Quit: WeeChat 1.0]
triangles has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 245 seconds]
vtunka has quit [Ping timeout: 250 seconds]
nii2361 has joined #ruby
bruno- has joined #ruby
triangles3 has quit [Ping timeout: 252 seconds]
aclearman037 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
mjuszczak has joined #ruby
astrobunny has joined #ruby
senayar has joined #ruby
iamjarvo has joined #ruby
milesmatthias has joined #ruby
senayar has quit [Remote host closed the connection]
rikai has joined #ruby
rkgudboy has quit [Ping timeout: 252 seconds]
SOLDIERz________ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 245 seconds]
juanpablo_ has joined #ruby
SOLDIERz________ has joined #ruby
B1n4r10 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
nii2361 has quit [Ping timeout: 252 seconds]
milesmatthias has quit [Ping timeout: 244 seconds]
commmmodo has quit [Quit: commmmodo]
<Karunamon> Hiya folks - Just wondering if anyone has any experience invoking Rspec mid-program
roger_rabbit has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<Karunamon> i'm writing a virtual machine management tool, and I'm using rspec to check the data provided by the user to create a machine beacuse the syntax is really simple.. problem is I have to jump through some silly hoops to make this process work (writing an external file which loads a couple of gems and contains the object i'm testing). Ideally I could just run rspec mid-program and check the status of the tests afterwards
schickung_ has joined #ruby
Megtastique has joined #ruby
zenith_ has joined #ruby
krz has joined #ruby
banister has joined #ruby
DaniG2k has joined #ruby
schickung has quit [Ping timeout: 246 seconds]
schickung_ is now known as schickung
rajeshchawla has joined #ruby
ramfjord has joined #ruby
bim has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
slap_stick has joined #ruby
Rollabunna has joined #ruby
j_mcnally has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
DeBot has quit [Quit: Crystal]
DeBot has joined #ruby
deol has joined #ruby
jasonwebster has joined #ruby
bim has joined #ruby
SOLDIERz________ has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
paradoja has joined #ruby
j_mcnally has joined #ruby
deol has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iMe has quit [Ping timeout: 265 seconds]
j_mcnally has quit [Max SendQ exceeded]
j_mcnally has joined #ruby
jasonwebster has quit [Client Quit]
craigp has quit [Remote host closed the connection]
Takle has joined #ruby
iMe has joined #ruby
jlast has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
mjuszcza_ has joined #ruby
cphrmky has joined #ruby
<Karunamon> I'm also wondering what the best way to write a function that checks the state of a string against some external tools. I'd like to be able to write 'something'.is_a_foo?, but extending String feels wrong
jerius has quit [Quit: /part]
triangles2 has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
juanpaucar has quit [Remote host closed the connection]
ghostmoth has joined #ruby
mjuszczak has quit [Ping timeout: 246 seconds]
rkgudboy has joined #ruby
iamjarvo has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
triangles has quit [Ping timeout: 246 seconds]
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
mjuszcza_ has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
eighthbit has joined #ruby
triangles3 has joined #ruby
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
bim has quit [Remote host closed the connection]
jottr has joined #ruby
rkgudboy has quit [Ping timeout: 256 seconds]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
bjonnh is now known as openssl
juanpaucar has joined #ruby
openssl is now known as bjonnh
crueber has joined #ruby
User458764 has joined #ruby
mjuszczak has joined #ruby
triangles2 has quit [Ping timeout: 272 seconds]
bim has joined #ruby
sigurding has quit [Quit: sigurding]
bim has quit [Read error: Connection reset by peer]
bim has joined #ruby
mikepack has joined #ruby
SouL has quit [Ping timeout: 264 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
martinbmadsen has joined #ruby
bim has quit [Remote host closed the connection]
jerius has joined #ruby
wm3|away is now known as workmad3
sigurding has joined #ruby
jonr22 has joined #ruby
HOrangeJewce has joined #ruby
willharrison has joined #ruby
HOrangeJewce has quit [Client Quit]
ismaelga has joined #ruby
HOrangeJewce has joined #ruby
mjuszczak has quit []
delianid_ has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 272 seconds]
aclearman037 has joined #ruby
kblake has joined #ruby
RegulationD has quit []
mjuszczak has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
jonr22 has quit [Ping timeout: 264 seconds]
<jhass> Karunamon: yeah, avoid core extensions unless they're extremely useful and fit into the domain of the extended object
RegulationD has joined #ruby
hs366 has quit [Remote host closed the connection]
hobodave has joined #ruby
willharrison has quit [Client Quit]
<jhass> like String#colorize makes sense, String#my_application_has_a_method_name_like_this does not
phprs has joined #ruby
mjuszczak has quit [Client Quit]
nii2361 has joined #ruby
phprs has quit [Client Quit]
delianides has joined #ruby
Aswebb__ has quit [Remote host closed the connection]
<apeiros_> I tried to use refinements for that kind of stuff
<apeiros_> but at the moment, I'm quite unhappy about them. they're just way too unflexible. and so out of touch with how ruby works otherwise.
jottr has quit [Ping timeout: 256 seconds]
kblake has quit [Ping timeout: 252 seconds]
bim has joined #ruby
oo_ has joined #ruby
DaniG2k has quit [Quit: leaving]
jottr has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
triangles3 has quit [Ping timeout: 255 seconds]
triangles2 has joined #ruby
mengu has quit [Remote host closed the connection]
sandelius has quit [Read error: Connection reset by peer]
<workmad3> jhass: I've found adding String#sanitize to perform HTML whitelist sanitization quite useful in rails projects
mitchellhenke has joined #ruby
<jhass> yeah, I think that makes sense
<jhass> since you work with the data of string
mjuszczak has joined #ruby
bim has quit [Remote host closed the connection]
huddy has joined #ruby
nii2361 has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Remote host closed the connection]
<jhass> opposed to being lazy about MyStore.has_in_store? thing and want to do thing.is_in_store?
<jhass> with thing being a core class
craigp has joined #ruby
mistermocha has joined #ruby
bim has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
timonv has quit [Quit: WeeChat 1.1.1]
j_mcnally has joined #ruby
timonv has joined #ruby
slap_stick has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
<certainty> http://openssl.org/news/secadv_20150319.txt so there we have it
<Karunamon> man I can't wait for libressl to seriously take off :(
<jhass> "just" DoS, thankfully
brb3 has joined #ruby
<certainty> jhass: if you have 1.0.2 deployed :)
werelivinginthef has quit [Remote host closed the connection]
<jhass> of course I have
nii2361 has joined #ruby
mjuszczak has quit []
<certainty> i was a bit worried about the CVE-2015-0289 and CVE-2015-0292
jottr has quit [Ping timeout: 252 seconds]
bim has quit [Ping timeout: 252 seconds]
deol has joined #ruby
werelivi_ has joined #ruby
alphaatom has quit [Ping timeout: 245 seconds]
RegulationD has quit []
paradoja has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
craigp has quit [Remote host closed the connection]
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
<jhass> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<jhass> DeBot: #
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣#␣␣ [] 0/12
<jhass> DeBot: :
<DeBot> ␣␣␣␣␣␣␣::␣␣␣␣␣␣#␣␣ [] 0/12
delianides has quit [Remote host closed the connection]
jshultz has joined #ruby
deol has quit [Ping timeout: 246 seconds]
<jhass> DeBot: aeoui
<DeBot> O␣e␣␣␣␣::␣i␣e␣␣#␣␣ [au] 2/12
GnuYawk has joined #ruby
craigp has joined #ruby
<plsk> Debot: v
<Karunamon> DeBot: Openssl::
<DeBot> OpenSSL::␣i␣es␣#␣␣ [au] 2/12
hcnewsom has joined #ruby
<certainty> how fitting
<jhass> :D
<gregf_> DeBot: python
<DeBot> OpenSSL::␣i␣est#␣␣ [auyh] 4/12
jottr has joined #ruby
<Karunamon> speak of the devl
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> DeBot: d
<DeBot> OpenSSL::Di␣est#␣␣ [auyh] 4/12
<certainty> DeBot: Digest
<DeBot> OpenSSL::Digest#␣␣ [auyh] 4/12
arup_r has quit []
chipotle_ has joined #ruby
<jhass> DeBot: =
<DeBot> OpenSSL::Digest#␣␣ [auyh=] 5/12
<Karunamon> DeBot: <<
<Karunamon> DeBot: []
raph_ael has left #ruby ["pouet"]
<jhass> uh, right
<jhass> I might have not whitelisted those xD
<certainty> :)
<Karunamon> hehe
<certainty> it should be << i think
<Karunamon> If it's not one of those, that method name is awful
<Karunamon> then again, this is openssl we're talking about
<certainty> hah
milesmatthias has joined #ruby
tier_ has joined #ruby
<workmad3> jhass: have you changed the _ character you were using?
chipotle has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
<jhass> workmad3: yeah
<jhass> since method names can have _
<certainty> too bad for shevy
<jhass> so gems with _ are in now too
<jhass> I should add - too
<shevy> lol
<jhass> Karunamon: it's <<, only two letter method there
maletor has joined #ruby
<jhass> alias for update
<workmad3> jhass: ah... it renders weird for me is all :)
rhllor has joined #ruby
<workmad3> DeBot: <
<certainty> renders fine for me.
<certainty> who cares about the crazy britains
willharrison has joined #ruby
<jhass> workmad3: yeah, all others I considered rendered worse though
<jhass> if you come across any nice one
maletor has quit [Client Quit]
tier has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
<workmad3> certainty: more accurately, who cares about the crazy brit using symbola rather than apple's default emoji fonts because he prefers symbola symbols in his utf-8 command prompt? :)
nii2361 has quit [Ping timeout: 250 seconds]
<jhass> so, =?!<[], anything else in core method names?
<jhass> oh
<workmad3> jhass: ()
<jhass> +-@
arrubin has joined #ruby
bim has joined #ruby
<workmad3> jhass: and >
<jhass> right
lyuben_ has quit [Quit: This computer has gone to sleep]
<certainty> workmad3: not so crazy if you don't use apple's stuff
Channel6 has joined #ruby
<jhass> what's () though? isn't that a parser rewrite to .call?
milesmatthias has quit [Ping timeout: 252 seconds]
<workmad3> jhass: ah, scratch ()... for some reason I thought it could be overridden
senayar has quit [Ping timeout: 245 seconds]
<apeiros_> jhass: ~
<workmad3> jhass: % is possible though
<apeiros_> ^*/-+=?![]
<jhass> right
<apeiros_> >> "^*/-+=?![]~%@".chars.sort*""
<eval-in_> apeiros_ => "!%*+-/=?@[]^~" (https://eval.in/302110)
<jhass> _=\?\!\:#<>[]+-@/%~^
<jhass> >> "_=\?\!\:#<>[]+-@/%~^".chars.sort
<eval-in_> jhass => ["!", "#", "%", "+", "-", "/", ":", "<", "=", ">", "?", "@", "[", "]", "^", "_", "~"] (https://eval.in/302111)
<apeiros_> `
<apeiros_> Kernel#`
<jhass> added
dc has quit [Remote host closed the connection]
<apeiros_> anybody ever tried to implement that elsewhere?
<apeiros_> I wonder how you'd call it, other than .`()
<workmad3> jhass: can't see * in the list you gave (it's in apeiros_'s list)
RegulationD has quit []
<jhass> right, thanks
dc has joined #ruby
milesmatthias has joined #ruby
<workmad3> apeiros_: no idea, other than the one on kernel
<jhass> I think we're good now
<apeiros_> jhass: wouldn't you notice when building the wordlist?
<jhass> I don't filter it...
<workmad3> apeiros_: aha... if you override `, then `foobar` in that context will use your override
RegulationD has joined #ruby
<jhass> scary
schickung has quit [Quit: schickung]
<apeiros_> ruby -e 'res = []; ObjectSpace.each_object(Module) { |m| res << m.name; res.concat(m.methods); res.concat(m.instance_methods) }; res.uniq!; res.compact!; res.map!(&:downcase); res.uniq!; puts res.size'
<apeiros_> 1506 values
<apeiros_> "!%&*+-./012:<=>?@[]^_`abcdefghijklmnopqrstuvwxyz|~"
<apeiros_> we omitted |
<apeiros_> funny, only 0-2 are in method names :D
<jhass> :D
<apeiros_> 3-9 are not method name material
<jhass> how about class names?
<apeiros_> wtf? "."?!?
mjuszczak has joined #ruby
<apeiros_> jhass: check the code, had that in
rajeshchawla has quit []
bronson has joined #ruby
<jhass> oh
tagrudev has quit [Remote host closed the connection]
dc has quit [Ping timeout: 252 seconds]
* apeiros_ back in 30
dinhani1 has joined #ruby
<apeiros_> minutes, that is
<workmad3> apeiros_: that's just core though, not stdlib... otherwise Popen3 would be there
<apeiros_> yes, that's only core
Aswebb_ has joined #ruby
<jhass> I guess I'll do it with the index
rajeshchawla has joined #ruby
<apeiros_> feel free to generate the proper -r line ;-)
<eam> are you guys writing perl here
andikr has quit [Remote host closed the connection]
<Karunamon> ooh, basic question now that i'm thinking about it again -
apeiros_ has quit [Remote host closed the connection]
zz_Outlastsheep is now known as Outlastsheep
<Karunamon> what's the way to play with the class signature you get back when messing around in irb?
startupality has joined #ruby
<workmad3> eam: no, jhass is sorting out the whitelist filter for his new hangman bot :)
apeiros_ has joined #ruby
tesuji has quit [Ping timeout: 252 seconds]
<jhass> mh, do we want to guess global names too?
riotjones has quit [Remote host closed the connection]
<jhass> $.
<workmad3> jhass: sure, go for it
dinhani1 has quit [Client Quit]
MXfive has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
dinhani has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
tesuji has quit [Changing host]
tesuji has joined #ruby
<jhass> " !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz|~“"
IrishGringo has joined #ruby
<jhass> where's the space coming from oO
tier_ has quit [Ping timeout: 255 seconds]
<jhass> and the quote
kblake has joined #ruby
ramfjord has joined #ruby
User458764 has joined #ruby
delianides has joined #ruby
<jhass> $" not that one I mean, the other one
<jhass> ah I see
jasonwebster has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
mitchellhenke has joined #ruby
apeiros_ has quit [Ping timeout: 256 seconds]
Guest73 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
mjuszczak has quit [Ping timeout: 264 seconds]
ghostmoth has quit [Quit: ghostmoth]
Guest73 has quit [Client Quit]
startupality has quit [Quit: startupality]
<jhass> okay, keywords will be in too
mjuszczak has joined #ruby
MXfive has quit [Ping timeout: 252 seconds]
dANO_ has joined #ruby
Takle has joined #ruby
aimada has joined #ruby
cjim has joined #ruby
aimada has quit [Client Quit]
JDiPierro has quit [Remote host closed the connection]
sivsushruth has joined #ruby
hanmac1 has quit [Quit: Leaving.]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alphaatom has joined #ruby
mjuszczak has quit [Client Quit]
aimada has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
MXfive has joined #ruby
aclearman037 has joined #ruby
nonks has quit [Ping timeout: 246 seconds]
evident has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
L8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DeBot has quit [Quit: Crystal]
DeBot has joined #ruby
<evident> hi everybody... I just wanted to install ruby and ruby on rails on my Mac, but I can only call gem as root... how can I fix that, so that I can run gem, bundle, rake etc as normal user?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
BTRE has quit [Quit: Leaving]
<jhass> evident: echo "gem: --user-install" > ~/.gemrc
<colorados> try rvmsudo
<undeadaedra> evident: easiest way is rbenv + ruby-install through brew imo
chrishough has joined #ruby
alphaatom has quit [Ping timeout: 246 seconds]
<undeadaedra> well, technically it’s jhass solution :)
<evident> I was hoping to install it all through rvm... I've already installed rvm and can run it normally.
<evident> what does jhass command do?
<jhass> evident: uh, then you shouldn't need mine
<undeadaedra> if you go through rvm, you should be able to install without sudo
<jhass> evident: what does rvm current say?
<undeadaedra> what does `which ruby` reads ?
User458764 has joined #ruby
jaequery has joined #ruby
BTRE has joined #ruby
jasonwebster has quit [Quit: Textual IRC Client: www.textualapp.com]
GaryOak_ has joined #ruby
tobago has quit [Remote host closed the connection]
<evident> well the weird thing is: when I run rvm install ruby, it will download and install everything... after that, I can call gem, bundle etc... but when I open a new terminal, I can't anymore
<evident> which ruby --> /usr/bin/ruby
<undeadaedra> is rvm correctly setup in your shell ?
<undeadaedra> yes, this is not normal
<undeadaedra> it should point to rvm ruby
<workmad3> evident: 'rvm use <version> --default' to automatically activate an rvm ruby on a new shell
<workmad3> replace <version> with the version you want as default, obviously :)
JDiPierro has joined #ruby
krisquigley has joined #ruby
<jlebrech> how do I go through each in an array of hashes and add a vey and value into it?
<evident> this is my rvm info: http://pastebin.com/dNBDZRdq
<helpa> Hi evident. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
centrx has joined #ruby
<evident> oh ok :D
<undeadaedra> jlebrech: #each on your main array
strixd has quit [Quit: 500]
Limix has joined #ruby
jerius has quit [Quit: /part]
<undeadaedra> >> Array.new(5) { |i| { k: i } }.each { |e| e[:z] = 'z' }
<eval-in_> undeadaedra => [{:k=>0, :z=>"z"}, {:k=>1, :z=>"z"}, {:k=>2, :z=>"z"}, {:k=>3, :z=>"z"}, {:k=>4, :z=>"z"}] (https://eval.in/302129)
<jlebrech> undeadaedra: ok :)
baroquebobcat has joined #ruby
moted has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
razrunelord has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
<evident> anybody an idea what is causing this error in the rvm info?
bal has quit [Quit: bal]
phutchins has quit [Ping timeout: 250 seconds]
bal has joined #ruby
<jhass> evident: did you try the rvm use 2.2.1 --default suggestion yet?
vtunka_ has quit [Quit: Leaving]
<evident> yes I did, but no change
anarang has quit [Quit: Leaving]
<havenwood> evident: rvm get stable && rvm fix-permissions
<evident> still on new terminal no permission on anything
Jiyuhen has joined #ruby
mjuszczak has joined #ruby
zenith_ has quit [Remote host closed the connection]
bal has quit [Client Quit]
<jhass> evident: did rvm use 2.2.1 --default have any output ?
Outlastsheep is now known as zz_Outlastsheep
havenwood has quit []
SouL has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
mjuszczak has quit [Client Quit]
MatthewsFace has quit [Remote host closed the connection]
<evident> yes (I did with 2.2.0 though): Using /Users/FlorianBg/.rvm/gems/ruby-2.2.0
DerisiveLogic has quit [Ping timeout: 265 seconds]
<evident> right now I am running this fix-permissions thign
Megtastique has quit []
rippa has joined #ruby
SouL_ has joined #ruby
craigp has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
SouL has quit [Ping timeout: 255 seconds]
Pharaoh2 has quit [Max SendQ exceeded]
pandaant has quit [Remote host closed the connection]
shay- has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
dc has joined #ruby
zorak8 has joined #ruby
bricker has joined #ruby
apeiros_ has joined #ruby
rodfersou has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
rodfersou has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
DerisiveLogic has joined #ruby
lyuben_ has joined #ruby
hmsimha has joined #ruby
sigurding has quit [Quit: sigurding]
rajeshchawla has quit [Remote host closed the connection]
Pharaoh2 has quit [Client Quit]
<havenwood> evident: It wont hurt anything but looking closer at your error I shouldn't have suggested it. You need to select the Ruby. I need coffee.
bim has quit [Remote host closed the connection]
bim has joined #ruby
flip_digits has joined #ruby
lemur has joined #ruby
<colorados> he needs read documentation
alec-c4__ has quit [Ping timeout: 264 seconds]
bim has quit [Remote host closed the connection]
<havenwood> colorados: RTFM! \o/
jgt1 has quit [Ping timeout: 272 seconds]
delianides has quit [Remote host closed the connection]
ZJvandeWeg has joined #ruby
soulcake has quit [Quit: Quack.]
plashchynski has quit [Quit: plashchynski]
alexherbo2 has quit [Quit: WeeChat 1.1.1]
alexherbo2 has joined #ruby
arup_r has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
* havenwood checks the backlog for the repeated correct answer.
soulcake has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
sambao21 has joined #ruby
shevy has joined #ruby
razrunelord has quit [Remote host closed the connection]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
rbennacer has quit [Remote host closed the connection]
Megtastique has joined #ruby
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craigp has joined #ruby
<havenwood> ruby-install and ruby-build names are too similar. i never know if people really mean the one they refer to.
aimada has quit [Ping timeout: 252 seconds]
iwaffles has joined #ruby
mistermocha has quit [Remote host closed the connection]
jhass has quit [Quit: Bye]
Cache_Money has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
jhass has joined #ruby
mistermocha has joined #ruby
_hollywood has joined #ruby
lxsameer has quit [Quit: Leaving]
slap_stick has joined #ruby
slap_stick has quit [Max SendQ exceeded]
alec-c4 has joined #ruby
slap_stick has joined #ruby
casadei has joined #ruby
<colorados> i am serious, easier to find info in RTFM than write the question here
<jhass> havenwood: let's add ruby-make
casadei is now known as Guest58097
ramfjord has quit [Ping timeout: 246 seconds]
<jhass> and ruby-compile
<havenwood> jhass: ruby-compile ruby-binary
wldcordeiro has joined #ruby
cjim has quit [Quit: (null)]
<jhass> ruby-get
aswen has quit [Ping timeout: 245 seconds]
craigp has quit []
RitterJack has joined #ruby
Hirzu has quit [Ping timeout: 265 seconds]
Guest58097 is now known as casadei
senayar has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
alex88 has quit []
dopie has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
Doc_X is now known as dylannorthrup
shevy has joined #ruby
livathinos has quit [Remote host closed the connection]
cjim has joined #ruby
<colorados> if guy use mac, why he don't choose swift?
* arup_r in trouble
rbennacer has joined #ruby
<havenwood> colorados: OS X folk deploying to GNU/Linux or a BSD.
maletor has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
<havenwood> colorados: Being either not cross-platform or not open source is a poison pill.
ixti has joined #ruby
lyuben_ has quit [Quit: Leaving]
<havenwood> colorados: And swift is neither.
_ixti_ has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
delianides has joined #ruby
delianides has quit [Remote host closed the connection]
delianides has joined #ruby
akkad has quit [Excess Flood]
<havenwood> colorados: Have you checked out Crystal?: http://crystal-lang.org/
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mahtennek has joined #ruby
<colorados> yes
<undeadaedra> <colorados> if guy use mac, why he don't choose swift?
<undeadaedra> swift is for some kind of development
ghostpl_ has quit [Remote host closed the connection]
alec-c4 has quit [Remote host closed the connection]
blackmes1 has joined #ruby
pengin has joined #ruby
<undeadaedra> People under Windows don’t all do C#, do they?
<colorados> because windows is shit os
sambao21 has quit [Quit: Computer has gone to sleep.]
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<undeadaedra> cool argumentation, I’m totally conviced
<colorados> really
akkad has joined #ruby
<colorados> things such winSxS is really shit
OrbitalKitten has joined #ruby
wallerdev has joined #ruby
riotjone_ has joined #ruby
<colorados> craze system folder three
<colorados> windows has a lot of shit
<colorados> crazy size of newly installed
<undeadaedra> everything is crazy
willharrison has joined #ruby
<undeadaedra> wow
willharrison has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
<undeadaedra> that’s a pretty solid argumentation you have here
<undeadaedra> you should sum it all in a blog post
andikr has joined #ruby
<colorados> its well known things
hakunin has quit [Remote host closed the connection]
<undeadaedra> maybe even a book
<undeadaedra> you could sell it millions
<undeadaedra> lol, millions.
<undeadaedra> BILLIONS!
<colorados> i present idea to you
sambao21 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stef204 has quit [Ping timeout: 246 seconds]
krz has quit [Quit: WeeChat 1.0.1]
hakunin has joined #ruby
riotjone_ has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
lemur has quit [Remote host closed the connection]
<colorados> windows only for scoolboys
ptierno_ has joined #ruby
<undeadaedra> what is the point you’re trying to reach here?
nonks has joined #ruby
martinbmadsen has joined #ruby
Lewix has quit [Remote host closed the connection]
kirun has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
<colorados> its shit os
Lewix has joined #ruby
pengin has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
lele has quit [Ping timeout: 272 seconds]
<undeadaedra> ok
<undeadaedra> this is an argument, what point does this arguments help ?
jonr22 has joined #ruby
<undeadaedra> *-s
wicope has quit [Remote host closed the connection]
<jhass> undeadaedra: that swift is better than ruby, obviously
<jhass> how can you not see this
hakunin has quit [Ping timeout: 255 seconds]
<undeadaedra> ah, yes.
Takle has quit [Remote host closed the connection]
<undeadaedra> this I already know, you see
thahive has joined #ruby
<undeadaedra> since I’m on a mac, I can only do swift.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> finally, why did you make this so hard
IrishGringo_ has joined #ruby
nonks has quit [Ping timeout: 256 seconds]
mahtennek has quit []
Takle has joined #ruby
martinbmadsen has quit [Ping timeout: 264 seconds]
lele has joined #ruby
<jhass> Swift on OS X, C# on Windows, Vala on Fedora, Bash script on Arch, QML on OpenSuse
IrishGringo has quit [Ping timeout: 256 seconds]
<jhass> every language has its place
<undeadaedra> Yes
Takle has quit [Remote host closed the connection]
<undeadaedra> Predefined cases for everyone
<undeadaedra> Pefect world
<undeadaedra> And colorados, with its superior knowledge on OSes, manages all of that
<jhass> evident: how's it going?
<undeadaedra> What a time to be alive
jonr22 has quit [Ping timeout: 244 seconds]
oetjenj has joined #ruby
vtunka has joined #ruby
thumpba has joined #ruby
dANO_ has quit []
deric_skibotn has joined #ruby
<undeadaedra> his* (sorry)
oetjenj has quit [Max SendQ exceeded]
x77686d has joined #ruby
<jhass> *their
<undeadaedra> :)
oetjenj has joined #ruby
j_mcnally has joined #ruby
<evident> jhass: better... :) Had some issues with the paths in my shell... they weren't set correctly when starting a new zsh... So rvm had some issues
thumpba_ has joined #ruby
<jhass> great
mitchellhenke has quit [Quit: Computer has gone to sleep.]
nonks has joined #ruby
<evident> not everything is working correctly yet, but I have some thigns to test and try :)
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
snath has joined #ruby
davidhq has joined #ruby
wallerdev has quit [Quit: wallerdev]
MatthewsFace has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
tier has joined #ruby
kobain has joined #ruby
pietr0 has joined #ruby
Takle has joined #ruby
bim has joined #ruby
<colorados> anf what about hurd
<colorados> is it alive?
reinaldob has quit [Remote host closed the connection]
Cadillactica has joined #ruby
<centrx> It's something
<undeadaedra> I hurd they are still on it
<undeadaedra> hehehe
rajeshchawla has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<havenwood> colorados: I'd just like to interject for a moment. What you’re referring to as Hurd, is in fact, GNU/Hurd, or as I’ve recently taken to calling it, GNU plus Hurd.
rajeshchawla has quit [Remote host closed the connection]
razrunelord has joined #ruby
razrunelord has quit [Remote host closed the connection]
<colorados> i ve never seen hurd so difficult question for me
a1fa has joined #ruby
<a1fa> in two loops, how do you "next" the first loop?
robbyoconnor has quit [Read error: Connection reset by peer]
<jhass> a1fa: you can't in ruby, usually there's a better way to write something that would need it anyway
<apeiros_> a1fa: you jump out of the inner loop and call next in the outer.
robbyoconnor has joined #ruby
<apeiros_> a1fa: and what jhass said. there's almost always a better way to do it.
<apeiros_> !xy
<apeiros_> hm
rajeshchawla has joined #ruby
rajeshchawla has quit [Client Quit]
<apeiros_> !xy a1fa
<a1fa> thanks
<jhass> a1fa: !xy
<apeiros_> bad bot helpa, no botsnack
tier_ has joined #ruby
allcentury has joined #ruby
<apeiros_> aha!
<apeiros_> PEBCAK
<undeadaedra> 3 tries, could do better.
<jhass> it's fine, we bot authors can't agree on a way
<apeiros_> 2 tries. jhass did 3rd.
<undeadaedra> It took 3 times for the chan.
<jhass> it was no try, I just demoed!
davedev2_ has joined #ruby
<apeiros_> jhass: you're not a senior bot dev then.
<jhass> mine does ?foo apeiros
<apeiros_> senior bot dev says "we agreed on my way being best. those who don't use my way are no real bot authors."
<undeadaedra> jhass: it’s because you have the right OS for bot making
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> !give x nick is also common
imanzarrabian has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24_ has quit [Ping timeout: 265 seconds]
tier has quit [Ping timeout: 245 seconds]
razrunelord has joined #ruby
allenn has quit [Remote host closed the connection]
sambao21 has joined #ruby
Rahul_Roy_ has joined #ruby
danjordan has quit [Quit: danjordan]
delianides has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
Lewix has quit [Remote host closed the connection]
plashchynski has joined #ruby
dogweather has joined #ruby
Lewix has joined #ruby
razrunelord has quit [Client Quit]
nonks has quit [Ping timeout: 252 seconds]
plashchynski has quit [Client Quit]
terlar has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
ramfjord has joined #ruby
vtunka has quit [Quit: Leaving]
jokke has joined #ruby
<jokke> hi
<apeiros_> hi jokke
keen_____ has joined #ruby
<jokke> i'm building a rather complex application and i try to split up as much as possible into seperate testable gems
keen____ has quit [Ping timeout: 246 seconds]
<colorados> wow
fryguy91 has quit [Quit: Leaving.]
<jokke> however some of the code is so specific to the project that it doesn't make sense to publish it on rubygems
_64k has quit [Ping timeout: 256 seconds]
<jokke> now some of the gems depend on others, that aren't published
<apeiros> jokke: you can install gems without publishing them
<apeiros> do you use bundler?
<jokke> but afaik i can't add them as dependencies
Cust0sL1men has quit [Ping timeout: 265 seconds]
<jokke> apeiros: sure
<apeiros> just add them as dependencies and document the git repo
<jokke> apeiros: in the gemspec?
<apeiros> bundler has no issues resolving it, but it requires that you put the dependencies into the Gemfile
<jokke> or in the Gemfile
<jokke> ok
<jokke> so i did that
<apeiros> we put it in both places
graydot has joined #ruby
<jokke> apeiros: oh ok
Hobogrammer has quit [Ping timeout: 265 seconds]
<apeiros> in the gem to ensure that all dependencies are met, and in the gemfile for bundler to resolve it correctly
<apeiros> wish there was a better way, though :)
<jokke> yeah
<jokke> geminabox
Takle has quit [Remote host closed the connection]
<jokke> but i don't have time to set it up here
<apeiros> I'd prefer to be able to just add a git "base" as gem source
<jokke> yeah
deuterium has joined #ruby
_maes_ has joined #ruby
<apeiros> e.g. git.example.com/gems, and then it tries to resolve e.g. foo-gem as git.example.com/gems/foo-gem.git first
jenrzzz has joined #ruby
<apeiros> but yes, geminabox or similar could work too. just never tried that.
dseitz has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 272 seconds]
codecop has quit [Ping timeout: 272 seconds]
rajeshchawla has joined #ruby
shadoi1 has joined #ruby
razrunelord has joined #ruby
OrbitalKitten has joined #ruby
avril14th has quit [Ping timeout: 244 seconds]
Takle_ has joined #ruby
phutchins has joined #ruby
shadoi1 has quit [Client Quit]
aclearma_ has joined #ruby
idrthe has joined #ruby
avril14th has joined #ruby
plashchynski has joined #ruby
deuterium has quit [Quit: zzZZZzzz..]
aclearman037 has quit [Ping timeout: 265 seconds]
akurilin has quit [Read error: Connection reset by peer]
joris974 has quit [Read error: Connection reset by peer]
plashchynski has quit [Client Quit]
phutchins has quit [Ping timeout: 264 seconds]
joris974 has joined #ruby
astrobunny has joined #ruby
_64k has joined #ruby
Jiyuhen has quit [Remote host closed the connection]
RDash has quit [Changing host]
RDash has joined #ruby
akurilin has joined #ruby
senayar has joined #ruby
Jiyuhen has joined #ruby
senayar has quit [Remote host closed the connection]
idrthe has quit [Remote host closed the connection]
CatMartyn has joined #ruby
<milesmatthias> stupid question, but had trouble googling -- can someone remind me how to define an attribute on a parent class so that every subclass of the parent has that attribute?
plashchynski has joined #ruby
<apeiros_> class ParentClass; attr_accessor :foo; end
<apeiros_> milesmatthias: ^
yfeldblum has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<apeiros_> if that's not what you're looking for - please elaborate what you consider to be an attribute.
kblake has quit [Remote host closed the connection]
kblake has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hcnewsom has quit [Quit: hcnewsom]
astrobunny has quit [Ping timeout: 265 seconds]
tier has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
<milesmatthias> apeiros_: no, that's what I'm looking for, thanks. I've been trying that which is why I thought I'm going crazy. it's not working for some reason.
tier_ has quit [Ping timeout: 245 seconds]
<jhass> milesmatthias: !gist
<helpa> milesmatthias: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
rhllor has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
hakunin has joined #ruby
mjuszczak has joined #ruby
jlebrech has quit [Remote host closed the connection]
rhllor has joined #ruby
92AAAURJT has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has quit [Ping timeout: 265 seconds]
n008f4g_ has joined #ruby
mjuszcza_ has joined #ruby
92AAAURJT has quit [Read error: Connection reset by peer]
pandaant has quit [Remote host closed the connection]
<apeiros_> milesmatthias: note that all `attr_accessor :foo`does is define two methods for you: `def foo; return @foo; end; def foo=(value); @foo = value; return @foo; end`
_64k has quit [Ping timeout: 252 seconds]
eqmnbe has joined #ruby
ChoiKyuSang has quit [Quit: AdiIRC is updating to v1.9.6 Beta Build (2015/03/19) 32 Bit]
_64k has joined #ruby
krisquigley has joined #ruby
mjuszczak has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 265 seconds]
<jokke> apeiros_: something with the load path isn't right..
AlexRussia has quit [Ping timeout: 246 seconds]
<milesmatthias> apeiros_: yup. problem distracted -- that wasn't actually the issue. that was working all along. sorry to bug everyone. ::resume snarky irc chat:: so how about that left shark, huh?
<jokke> annot load such file -- bsh/persistence/models/asset_property
<jokke> bsh-persistance is a gem
<jokke> which is resolved by bundler via local path for now
godd2 has joined #ruby
ChoiKyuSang has joined #ruby
rhllor has quit [Quit: rhllor]
dogweather has quit [Remote host closed the connection]
mikepack_ has joined #ruby
jgt1 has joined #ruby
<apeiros_> jokke: such things should work. work for us at leas.t
<apeiros_> *at least
martinbmadsen has joined #ruby
<jokke> never mind...
<jokke> file is missing
meatherly has joined #ruby
werelivi_ has quit [Remote host closed the connection]
<apeiros_> :)
<meatherly> does anyone know if you can do this with the ruby openssl library? 'openssl pkcs12 -in cert.p12 -out cert.pem -nodes -clcerts'
mikepack has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
<jokke> :D
<meatherly> would the OpenSSL::PKCS12 class do it?
slap_stick has joined #ruby
iamjarvo has joined #ruby
pengin has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
mjuszcza_ has quit []
DerisiveLogic has quit [Ping timeout: 246 seconds]
<jhass> sounds like your on the right path
<jhass> if something can do it, then that one
_64k has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
withnale_ has quit [Ping timeout: 264 seconds]
plashchynski has quit [Quit: plashchynski]
mjuszczak has joined #ruby
hcnewsom has joined #ruby
<jhass> meatherly: maybe to_der returns you what you want already
<jokke> hm nope it still fails with another require
leafybasil has quit [Remote host closed the connection]
<jokke> require 'bsh/persistence/models/asset'
<jhass> if not you should be able to rebuild a OpenSSL::X509 with the attributes
bronson has joined #ruby
<jhass> (key, certificate)
<jokke> in bsh-persistence: lib/bsh/persistence/models/asset.rb
<jhass> jokke: bundle exec / require "bundler/setup"?
martinbmadsen has quit [Ping timeout: 264 seconds]
<jokke> hm
<jokke> no i didn't require bundler/setup
djbkd has joined #ruby
<jhass> one of those is mandatory for git gems
<jhass> bundle exec just executes the require before doing anything else
plashchynski has joined #ruby
deol has joined #ruby
djbkd has quit [Remote host closed the connection]
arietis has joined #ruby
<arietis> hi
<undeadaedra> hi
<jokke> jhass: it's still a local gem though
mikecmpbll has joined #ruby
uptownhr has joined #ruby
<arietis> is there any way to find gems dependent on specified one?
<uptownhr> what does this loopk like “\xE0\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00"
<wallerdev> a string
<undeadaedra> uptownhr: binary data ?
<jhass> jokke: well, you want that anyway
<jhass> jokke: else you loose bundlers main purpose
cjim has quit [Quit: (null)]
x1337807x has joined #ruby
<jokke> yeah
djbkd has joined #ruby
DerisiveLogic has joined #ruby
<havenwood> uptownhr: A caravan of zeros lead by a wonky quote and a 224.
<jokke> i still don't understand why the gem lib dir is not in the load path
<uptownhr> how do i convert this into binary bits?
<jhass> jokke: even after bundle exec / bundler/setup ?
<jhass> uptownhr: what are binary bits
<havenwood> >> "\xE0\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00".bytes
j_mcnally has joined #ruby
<eval-in_> havenwood => [224, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0] (https://eval.in/302146)
fryguy9 has joined #ruby
<uptownhr> 0 and 1
<jhass> yes, but in ruby
graydot has quit [Quit: graydot]
<jokke> jhass: yeah i required 'bundler/setup'
<jhass> jokke: mmh, and your .lock contains the gem for sure? Do other files work?
pengin has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
<havenwood> uptownhr: Do you know how to convert a Fixnum to base 2?
<jhass> uptownhr: so you can only have a single 0 or 1 in ruby, that string contains a whole lot of them, how would you like them represented?
<uptownhr> .to_i(2)?
Pupeno has quit [Ping timeout: 272 seconds]
jgt1 has quit [Ping timeout: 246 seconds]
<uptownhr> 010101010101 string
postmodern has joined #ruby
cphrmky has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
<uptownhr> so how do i go from “\xE0\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00” to int?
Zai00 has quit [Quit: Zai00]
<havenwood> uptownhr: Are you familiar with the #map method?
casadei has quit [Remote host closed the connection]
<uptownhr> yes
morenoh149 has quit [Ping timeout: 256 seconds]
<jhass> >> "\xE0\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00".bytes.map {|b| b.to_s(2) }.join
<eval-in_> jhass => "1110000000000001000000000" (https://eval.in/302147)
<havenwood> uptownhr: Look at eval-in's output above.
<jhass> mmh, I expected that to be longer
<uptownhr> oh nice
<uptownhr> thank you :)
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak8 has quit [Ping timeout: 246 seconds]
casadei has joined #ruby
<jokke> uptownhr: alternatively use unpack and to_s(2)
casadei has quit [Remote host closed the connection]
shazaum has joined #ruby
zorak8 has joined #ruby
roger_rabbit has quit [Quit: WeeChat 0.3.8]
lulzmachine has joined #ruby
<apeiros_> jhass: binary bits are - of course - the counterpart to unary bits!
casadei has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
antgel has quit [Ping timeout: 246 seconds]
<jhass> apeiros_: ah, silly me
<godd2> 1, 11, 111, 1111, 11111...
towski_ has joined #ruby
graydot has joined #ruby
<apeiros_> godd2: 0, 00, 000, …
<jhass> we had an argument recently on how .to_s(1) would look like if it worked
<wallerdev> >> 12.to_s(1)
<eval-in_> wallerdev => invalid radix 1 (ArgumentError) ... (https://eval.in/302148)
Limix has quit [Quit: Limix]
bronson has quit []
<apeiros_> jhass: it's impossible, since numbers don't have leading zeros
<apeiros_> so you can only encode a single value with base 1
<centrx> 12.to_s(1) == 111111111111
<havenwood> 12.to_s(1, 'x') #=> 'xxxxxxxxxxxx'
<godd2> but if unary 0 is binary 1, then what is binary 0 ?
reinaldob has quit [Ping timeout: 272 seconds]
<jhass> apeiros_: that's pure definition, I can define the symbol to be . and . is 1, .. is 2 etc
<centrx> the void
<jhass> the problem is rather how to represent 0
<havenwood> jhass: empty string?
<apeiros_> jhass: base 1 means you have a single symbol
RegulationD has quit [Remote host closed the connection]
<apeiros_> jhass: if you have more than a single symbol, you don't have base 1
dfinninger has joined #ruby
<apeiros_> actually, s/symbol/digit/
<apeiros_> stuff like "." and "," and "e" are purely representational
baweaver has joined #ruby
<apeiros_> i.e., 0.1 is just a nice way to write 1*10^-1
dogweather has joined #ruby
pengin has joined #ruby
slap_stick has joined #ruby
<apeiros_> jhass: ah, actually misread you
<godd2> 0*10^0 + 1*10^-1
<apeiros_> what you suggest is a run-length encoding with a single character
<apeiros_> not sure how that fits into bases.
<jhass> apeiros_: wikipedia says its fine I think
<apeiros_> jhass: I'm not sure you could call that base 1
<apeiros_> base system relies on digit order and powers
sonOfRa has quit [Quit: Bye!]
<apeiros_> run length encodings work fundamentally differently
<apeiros_> (and don't forget: bases are still only for representation - see "what base is 'twelve'?")
shadoi has quit [Quit: Leaving.]
<jhass> well, it's 1**1 + 1**1 + 1**1... no?
commmmodo has joined #ruby
<apeiros_> jhass: not really. 1 is implicitly …0001
djbkd has quit [Remote host closed the connection]
<meatherly> or it looks like we need a pull request lol j/k.....forget that!!! lol
paradoja has joined #ruby
<jhass> meatherly: I didn't look up what -nodes / -clcerts does, what does it?
sonOfRa has joined #ruby
slap_stick has quit [Ping timeout: 250 seconds]
<meatherly> nodes: don't encrypt the private keys at all.
<apeiros_> meatherly: wow, that's sad
<meatherly> clcerts: only output client certificates (not CA certificates).
sambao21 has quit [Quit: Computer has gone to sleep.]
<meatherly> well that's what this is saying https://www.openssl.org/docs/apps/pkcs12.html
<jhass> ah, oh
dumdedum has quit [Quit: foo]
<jhass> mmh
<jhass> I still have a hunch that you can use the extracted cert/key to build new instance of X5099
OrbitalKitten has quit [Read error: Connection reset by peer]
<meatherly> same here. I'll keep searching
<jhass> let me see if I have a pkcs12 file somewhere
zorak8 has quit [Ping timeout: 272 seconds]
OrbitalKitten has joined #ruby
havenn has joined #ruby
zorak8 has joined #ruby
plashchynski has quit [Quit: plashchynski]
shevy has joined #ruby
mitchellhenke has joined #ruby
pengin has quit [Remote host closed the connection]
plashchynski has joined #ruby
<jhass> meatherly: er, I think it's really simple
havenwood has quit [Ping timeout: 245 seconds]
<jhass> OpenSSL::PKCS12#certificate already returns an OpenSSL::X509
<jhass> which you can just to_pem
Takle_ has quit [Remote host closed the connection]
<jhass> and you can just to_pem .key too
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<meatherly> yeah that's what I was thinking. I'll try it out and see how that works
Hirzu has joined #ruby
arietis has quit [Quit: Leaving.]
<jhass> meatherly: 6 years is a lot of time in ruby land, simply discard all results that old
djbkd has joined #ruby
karmatr0n has joined #ruby
justin_pdx has joined #ruby
livingstn has joined #ruby
Pharaoh2 has joined #ruby
<bradland> elics.each.with_index { |r,i| puts "#%-2s [%s] %s" % [(i+1).to_s, r[:id], r[:name] ] };0
<bradland> is sprintf frowned upon these days?
Rollabun_ has joined #ruby
<bradland> as in, would you shout at me for that code?
MXfive has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Max SendQ exceeded]
<godd2> bradland I don't think one line of code is enough to shout at someone
delianides has joined #ruby
<eam> bradland: why would you sprintf instead of #{}?
<bradland> it's so much more compact than #{str.ljust(2)}
Takle has joined #ruby
<bradland> just an example
lolmaus has quit [Quit: Konversation terminated!]
<eam> I wouldn't have a beef with it
Takle has quit [Read error: Connection reset by peer]
<bradland> i kind of <3 sprintf
<eam> seems unusual for ruby though
Pharaoh2 has joined #ruby
Rollabun_ has quit [Read error: No route to host]
<centrx> It makes sense to separate format from data, can make it clearer, but sometimes not
Rollabunna has joined #ruby
Pupeno has joined #ruby
xxneolithicxx has joined #ruby
<bradland> i think that's the root of why i prefer it
kedare has quit [Ping timeout: 244 seconds]
<bradland> i know the sprintf format strings, so i really like looking at a format string and being able to easily parse what's going to happen
<jhass> bradland: I'm in the String#% camp
gfawcettpq1 has quit [Ping timeout: 252 seconds]
CatMartyn has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> sprintf is too C-ish
<bradland> yeah, i should clarify that i'm referring to String#% as sprintf
commmmodo has quit [Quit: commmmodo]
baweaver has quit [Remote host closed the connection]
<xxneolithicxx> hi all
sambao21 has joined #ruby
<bradland> i never use the Kernel#sprintf(format, str) format
<apeiros_> if I don't have the arguments in an array, I actually prefer (s)printf over String#%
<eam> I'd tend to use the sprintf method as well, for clarity
<bradland> ah, i see you can just send them all in as args
<bradland> String#% is hard to google for
<bradland> i'll give sprintf that
dannon has joined #ruby
phutchins has joined #ruby
<apeiros_> I find `sprintf "template", a, b, c` much less noisy than `print "template" % [a, b, c]`
<jhass> that's why we got symbolhound.com
<eam> if you have an array you can just splat it to sprintf
<xxneolithicxx> looking for some recommendations for modules to expand (pretty print)/ collapse (collapse an entire document down to a single line or as close as i can get it if any nodes arent multiline content)
<bradland> OMG where has symbolhound.com been all my life
<xxneolithicxx> * HTML'
<apeiros_> whoops -print
<eam> I feel like I should prefix all my opinions with the disclaimer "I think perl is readable and"
riotjones has joined #ruby
<bradland> lol
Cadillactica has quit [Quit: Cadillactica]
<jhass> xxneolithicxx: reality check: you're in #ruby
<apeiros_> eam: hehe
<xxneolithicxx> and?
* apeiros_ thinks perl can be pretty readable
<xxneolithicxx> im using ruby..
MXfive has joined #ruby
<jhass> oh you mean reformat?
werelivinginthef has joined #ruby
<apeiros_> and I think you can easily write impenetrable ruby code
<canton7> sounded like an editor question at first
<jhass> collapse sounded editor-ish to me
msgodf has quit [Remote host closed the connection]
<bradland> i think he's looking for a minify tool
User458764 has joined #ruby
doodlehaus has joined #ruby
<bradland> i think middleman has a minify feature?
_hollywood has quit [Ping timeout: 264 seconds]
<bradland> or maybe jekyll
<jhass> does uglifier do html too? gotta check
<bradland> xxneolithicxx: ok, so it's not in middleman core, but this library might be helpful: https://github.com/middleman/middleman-minify-html
jgt1 has joined #ruby
<jhass> ah nope, js only
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
arietis has joined #ruby
ghostpl_ has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
kedare has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has joined #ruby
baweaver has joined #ruby
juanpaucar has quit [Remote host closed the connection]
oetjenj has joined #ruby
arietis has quit [Read error: Connection reset by peer]
j_mcnally has quit [Quit: Textual IRC Client: www.textualapp.com]
arietis has joined #ruby
senayar has joined #ruby
arietis has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
arietis has joined #ruby
kblake has quit [Read error: Connection reset by peer]
pengin has joined #ruby
_ixti_ has joined #ruby
kblake has joined #ruby
failshell has joined #ruby
jonr22 has joined #ruby
arietis1 has joined #ruby
arietis has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 250 seconds]
<failshell> do you guys know of a gem that lets you edit .doc/.docx document properties? like changing the font? need to do a mass edit on lots and lots of docs
eqmnbe has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<wasamasa> failshell: https://github.com/aantix/turkee
<wasamasa> failshell: hire cheap outsourced workers who'll edit your docs!
pico-pete has joined #ruby
<bradland> failshell: expect that the two (doc/docx) will probably be supplied by two separate gems
senayar has quit [Ping timeout: 246 seconds]
<bradland> docx is XML + some packaging
arietis1 has quit [Client Quit]
<failshell> bradland: yup that much i expected
p-pete has quit [Ping timeout: 264 seconds]
<bradland> so you can actually manipulate manually
phutchins has quit [Ping timeout: 250 seconds]
<apeiros> failshell: faceless libreoffice might be an option
<bradland> good luck with .doc
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
steve-la__ has joined #ruby
baweaver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<failshell> :q!
yfeldblum has quit [Remote host closed the connection]
<bradland> we evaluated libre/openoffice API + jRuby at one point
<bradland> but we deal with xlsx, not docx
<bradland> so we just use axlsx
jonr22 has quit [Ping timeout: 256 seconds]
<rom1504> latex
rhllor has joined #ruby
<bradland> heh, if only
<failshell> that might kill my fun tool then
gfawcettpq1 has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
<bradland> failshell: you might start here: https://github.com/chrahunt/docx
thahive has quit [Quit: Leaving]
_hollywood has joined #ruby
<bradland> worst case ontario, it has what you need to unpack: https://github.com/chrahunt/docx/blob/master/lib/docx/document.rb
<bradland> you can munge around in the XML from there
thahive has joined #ruby
<wasamasa> the xml is pretty horrific
<failshell> i was looking at that one earlier. as you said, .doc will be a PITA
Kabal619 has joined #ruby
chu has joined #ruby
<bradland> IMO, don't bother with .doc
<bradland> MS never released specifications for their binary formats (xls and doc)
<wasamasa> I bet they're ashamed of them
<bradland> every single implementation is the result of reverse engineering, and brings with it only pain and suffering
starless has joined #ruby
<wasamasa> just like adobe is with psd
<apeiros> I think you can bother with .doc by using faceless libreoffice to convert it to docx
<apeiros> and then deal unified with that
shadoi has joined #ruby
<failshell> yeah that might work too
delianides has quit [Remote host closed the connection]
<failshell> was hoping for something that doesnt need anything external
<bradland> hate to be debbie downer, but don't get your hopes up
<failshell> basically, i want to write a troll that changes the font to comic sans of all docs in a directory hehe
<bradland> as good as libreoffice is, i find it a rare case that it meets end-user expectations
<bradland> lol
<apeiros> good thing then I managed to avoid doc/docx the last ~10y
OrbitalKitten has joined #ruby
<apeiros> we only evaluated using those things, luckily decided against it
perrier has quit [Remote host closed the connection]
xxneolithicxx has left #ruby [#ruby]
ghostmoth has joined #ruby
perrier has joined #ruby
<bradland> problem is that people expect to get documents back that are constructed they way they'd construct them
jenrzzz has quit [Ping timeout: 265 seconds]
<bradland> picky users :P
<wasamasa> failshell: that's a lot of effort for nothing
<failshell> bradland: you'd think in 2015 we would have solved documents formats.
OrbitalKitten has quit [Read error: Connection reset by peer]
<bradland> we have (programmers), mostly
<bradland> users have not
perrier has quit [Remote host closed the connection]
mjuszczak has quit []
OrbitalKitten has joined #ruby
<apeiros> there's tons of shit problems which should have been solved by today
perrier has joined #ruby
<bradland> it's strictly a matter of perspective, but when MS moved to XML, we took a huge leap forward
<apeiros> tbh, I'm very disappointed by the state of affairs RE software
_maes_ has quit [Read error: Connection reset by peer]
davidcel- has quit [Quit: K-Lined.]
ismaelga has quit [Remote host closed the connection]
OrbitalKitten has quit [Client Quit]
perrier has quit [Read error: Connection reset by peer]
perrier has joined #ruby
jusmyth has joined #ruby
<failshell> see for a docx its easy, once unzipped, there's a file named word/fontTable.xml which contains which font the document uses
<bradland> that's why you'll find gems for docx, but not doc
<bradland> XML = ZOMG, I know this!
bim has quit [Remote host closed the connection]
<failshell> its prolly the first time in my life im happy seeing XML
<wasamasa> lol
<wasamasa> have you taken a look at the xml?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> it's pretty horrific
<bradland> it's a rats nest, but it'll parse fine with XPath
<wasamasa> which is to be expected considering how the document is structured internally, but still
<wasamasa> will be still a pain to work with
iMe has quit [Ping timeout: 246 seconds]
<bradland> derp... parse fine with XPath makes no sense :\
<wasamasa> it's a combination of applying properties to selected text and office doing whatever the hell it does
<wasamasa> so it may look right, but is totally weird
juanpaucar has joined #ruby
<wasamasa> so, yes, if all you want to do is extracting text, that will work
<wasamasa> but manipulation, eh
davedev24_ has joined #ruby
<bradland> yeah, MS Word doesn't care much about how the XML looks
<bradland> XML is best when you don't look at it lol
<wasamasa> right
eric_lagergren has joined #ruby
<wasamasa> it's the best when you treat it as not human-readable
<wasamasa> in some cases even as binary
<godd2> Wasn't that the purpose of XML? To be human-readable?
<centrx> HAHAHAHAHA
<godd2> And then got hi-jacked for serialization?
<bradland> that's a common misconception, IMO
<wasamasa> well, yeah
triangles has joined #ruby
davedev2_ has quit [Ping timeout: 256 seconds]
<bradland> XML was meant to be human readable in contrast to binary formats
<wasamasa> it's not even usable for semantic stuff
iMe has joined #ruby
<bradland> but it wasn't intended to be consumed by humans
zorak8 has quit [Ping timeout: 265 seconds]
<wasamasa> since it's too free regarding representation
<godd2> Wikipedia: XML is a markup language that defines a set of rules for encoding documents in a format which is both human-readable and machine-readable.
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<GaryOak_> human-"readable"
<godd2> right, that could be interpreted as "yea you can read it if you have to, but we aren't really trying"
<wasamasa> JSON is a lot less silly for just serializing stuff
zenith_ has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
triangles2 has quit [Ping timeout: 255 seconds]
zorak8 has joined #ruby
Musashi007 has joined #ruby
Hirzu has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 272 seconds]
jefus has quit [Ping timeout: 245 seconds]
roger_rabbit has joined #ruby
AlexRussia has joined #ruby
leafybasil has joined #ruby
cajone has quit [Remote host closed the connection]
colorados has quit [Remote host closed the connection]
triangles2 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
colorados has joined #ruby
revoohc has quit [Quit: revoohc]
cajone has joined #ruby
a1fa has left #ruby [#ruby]
RegulationD has joined #ruby
GnuYawk has quit [Ping timeout: 264 seconds]
triangles has quit [Ping timeout: 246 seconds]
dogweather has quit [Quit: Leaving...]
leafybasil has quit [Ping timeout: 246 seconds]
CatMartyn has joined #ruby
wallerdev_ has joined #ruby
revoohc has joined #ruby
jespada has quit [Ping timeout: 244 seconds]
jolg42 has quit [Quit: ZZZzzz…]
wallerdev has quit [Ping timeout: 256 seconds]
wallerdev_ is now known as wallerdev
<eric_lagergren> so, when I install ruby with `sudo pacman -S ruby` I can't use it locally... it always installs it for root
RegulationD has quit [Ping timeout: 264 seconds]
<eric_lagergren> Is there a way to change this...?
bluOxigen has joined #ruby
<eric_lagergren> (Preferably without installing from source.)
Rollabunna has quit [Remote host closed the connection]
<jhass> eric_lagergren: what do you mean you can't use it locally?
<jhass> works very well over here
perrier has quit [Remote host closed the connection]
<eric_lagergren> I need root permissions to do anything
<jhass> like?
centrx has quit [Ping timeout: 252 seconds]
perrier has joined #ruby
<eric_lagergren> `sud jekyll`
jobewan has joined #ruby
<eric_lagergren> s/sud/sudo
<jhass> what's the error you're getting otherwise?
gfawcettpq1 has quit [Ping timeout: 255 seconds]
<eric_lagergren> But if I use `sudo ...` it works.
<eric_lagergren> and I've already tried uninstalling and then reinstalling ruby.
<jhass> eric_lagergren: how exactly did you install jeykll?
<eric_lagergren> gem install jekyll
a5i has quit [Quit: Connection closed for inactivity]
RedCrustacean has quit [Quit: WeeChat 1.1]
<jhass> please, as precise as possible
<eric_lagergren> ...that is.
<jhass> with which user, changing permissions how
baweaver has joined #ruby
<jhass> if at all
<eric_lagergren> yeah, with my normal user account.
<eric_lagergren> I have all my gems in $HOME/.gems
<eric_lagergren> and theoretically it should work...
Musashi007 has quit [Quit: Musashi007]
<eric_lagergren> sorry, $HOME/.gem (without the 's')
<jhass> mmh
OrbitalKitten has joined #ruby
djbkd has quit [Remote host closed the connection]
<eric_lagergren> here's the directory hierarchy...
aryaching has joined #ruby
stef204 has joined #ruby
centrx has joined #ruby
<jhass> head -n1 $(which jeykll) says what?
<jhass> also which jeykll plain
rhllor has quit [Quit: rhllor]
<eric_lagergren> #!/usr/bin/ruby
colorados has quit [Remote host closed the connection]
<eric_lagergren> uhm, which ever jekyll is the default install..
<eric_lagergren> but, see, it's the same issue with jekyll, sass, etc.
zorak8 has quit [Read error: Connection reset by peer]
jimms has joined #ruby
<jhass> that's weird, let me spin but a clean chroot
perrier has quit [Remote host closed the connection]
<jhass> do you have a ~/.gemrc
zorak8 has joined #ruby
colorados has joined #ruby
<jhass> ß
<jhass> er, ?
perrier has joined #ruby
<eric_lagergren> no, I do not.
<apeiros> what bouncer do you folks use? (cross posting this in #ruby-lang)
delianides has joined #ruby
<jhass> znc here
<jhass> basically first I tried and didn
<jhass> 't lack anything I wanted
ismaelga has joined #ruby
<jhass> you can also use weechat as bouncer
<jhass> has a dedicated protocol though afaik
<jhass> so you need a weechat client
<jhass> (which exists for android)
milesmatthias has quit [Remote host closed the connection]
<apeiros> ok, twice znc so far
phutchins has joined #ruby
milesmatthias has joined #ruby
RegulationD has joined #ruby
swgillespie has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimms has quit [Ping timeout: 252 seconds]
slap_stick has joined #ruby
baweaver has quit [Remote host closed the connection]
jimms has joined #ruby
triangles has joined #ruby
gfawcettpq1 has joined #ruby
<eric_lagergren> mmmk
Mon_Ouie has joined #ruby
triangles2 has quit [Ping timeout: 252 seconds]
talntid has joined #ruby
<apeiros> any recommendation on modules? I think I'd want fail2ban, saslauth, sasl, keepnick, simple_away (cross posting this in #ruby-lang)
<talntid> anyone here have experience with the watchr gem? right when i start it I get this error: /usr/local/rvm/gems/ruby-2.2.0/gems/watchr-0.7/lib/watchr.rb:111:in `handler': uninitialized constant Module::Config (NameError)
milesmatthias has quit [Ping timeout: 264 seconds]
MXfive_ has joined #ruby
MXfive has quit [Read error: Connection reset by peer]
<jhass> eric_lagergren: so just tried in a clean chroot (since my ruby setup differs a bit from arch defaults), had to patch up $PATH to include the binary dir, but then working fine here. Can you post your gem env output?
nonks has joined #ruby
mattwildig has joined #ruby
aswen has joined #ruby
OrbitalKitten has joined #ruby
uptownhr has quit [Read error: Connection reset by peer]
<eric_lagergren> Sorry, I'm clueless about Ruby but I use a couple Gems :/
Ridley5 has quit [Ping timeout: 256 seconds]
<jhass> apeiros: chansaver, saslauth is the deprecated version of sasl I think?
centrx has quit [Ping timeout: 250 seconds]
frem has joined #ruby
jespada has joined #ruby
<apeiros> jhass: I understood as saslauth = enable me to log into znc with sasl, and sasl = enable ZNC to log into irc with sasl. maybe just bad reading on my part or bad wording on theirs…?
<jhass> oh cyrusauth actually
<jhass> at least wiki redirects there
willharrison has joined #ruby
chrishough has joined #ruby
Lewix has quit [Remote host closed the connection]
<bradland> talntid: interesting. i see that Config object referenced in a few locations, but i don't see it defined in the project
<havenn> talntid: The gem hasn't been updated for modern Rubies. It doesn't seem it is being maintained. See all the PRs for RbConfig: https://github.com/mynyml/watchr/pulls
zzz_Ridley has joined #ruby
ArchRogem has quit [Read error: Connection reset by peer]
<havenn> bradland: Config is a 1.8 thing.
zzz_Ridley is now known as Ridley5
krisquigley has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
<bradland> huzzah
MXfive_ has quit [Read error: Connection reset by peer]
nonks has quit [Ping timeout: 246 seconds]
martinbmadsen has joined #ruby
steve-la__ has quit [Quit: Be back later ...]
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
razrunelord has quit [Remote host closed the connection]
<bradland> talntid: based on the network graph this is the most up to date: https://github.com/kevinburke/observr
<havenn> or a 1.9.1 thing? anyways, zombie Rubies only. :P
<jhass> eric_lagergren: I'm still confused as to why this is happening, can you try rm -rf ~/.gem; and then posting gem list ?
plashchynski has quit [Quit: plashchynski]
krisquigley has quit [Ping timeout: 250 seconds]
meatherly has quit [Read error: Connection reset by peer]
<jhass> eric_lagergren: and now, keeping your regular user, gem install jekyll again, see if it works then?
jespada has quit [Ping timeout: 264 seconds]
juanpaucar has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
RainbowHerbicide has joined #ruby
<eric_lagergren> jhass: same error "
<eric_lagergren> :/
sambao21 has quit [Quit: Computer has gone to sleep.]
aclearman037 has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
martinbmadsen has quit [Ping timeout: 264 seconds]
c-c has joined #ruby
alec-c4 has joined #ruby
<jhass> eric_lagergren: you run that in your home right? not inside an existing project or anything?
bim has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
<eric_lagergren> nope. Just inside my home
DavidDudson has joined #ruby
<apeiros> so I see, apt-get still installs at least 6M old versions. *sob*.
IrishGringo_ has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
IrishGringo has joined #ruby
<jhass> running out of ideas here, it looks pretty much like my clean chroot except for the added $PATH entries of course
<jhass> nothing unusual in the gem install output either I suppose?
<eric_lagergren> nope, nothing unusual
<eric_lagergren> seems to install correctly
sambao21 has joined #ruby
jespada has joined #ruby
<eric_lagergren> is my $GEM_PATH incorrect..? $PATH:/home/eric/.gem/ruby/2.2.0/bin
<jhass> no that's fine
<jhass> same here
<jhass> it's really still at the exact same error?
ponga has joined #ruby
<eric_lagergren> yep.
Takle has joined #ruby
<jhass> I also had to get nodejs for a execjs runtime
djbkd has joined #ruby
jimms has quit [Remote host closed the connection]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros is now known as apeiros__
<jhass> okay, last thing to compare is the output of env I guess
djbkd has quit [Remote host closed the connection]
Ridley5 has quit [Ping timeout: 265 seconds]
lolmaus has joined #ruby
centrx has joined #ruby
<talntid> thanks guys. that helps :)
<jhass> ah, where's the GEM_PATH=/home/eric/.gem/ruby/2.2.0/bin coming from?
<jhass> try unexporting that
mattwildig has left #ruby [#ruby]
<jhass> oh, I'm sorry, I didn't look close enough when you said that earlier
pietr0 has quit [Quit: pietr0]
rsavage has quit [Remote host closed the connection]
djbkd has joined #ruby
gfawcettpq1 has quit [Ping timeout: 264 seconds]
jefus has joined #ruby
zzz_Ridley has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
zzz_Ridley is now known as Ridley5
<eric_lagergren> I unexported GEM_PATH
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
dh64 has joined #ruby
<eric_lagergren> (and it's removed from my path)
<jhass> huh
baweaver has joined #ruby
<jhass> env no longer lists it, right?
<eric_lagergren> nope. echo $PATH doesn't list it
apeiros has joined #ruby
<jhass> PATH is not all that important here, though I don't see how it even find that jekyll command if that's really the case
<apeiros> nice
milesmatthias has joined #ruby
<jhass> we care about GEM_PATH, which is actually bogus
zz_Outlastsheep is now known as Outlastsheep
<jhass> apeiros: \o/
andikr has quit [Remote host closed the connection]
<eric_lagergren> well, $GEM_PATH has nothing
<eric_lagergren> it's unexported, and I ran `source ~/.bashrc, hash -r`
<eric_lagergren> several times.
<jhass> eh
<jhass> where does gem env get it from though?
<jhass> still lists the bogus one in GEM PATHS
<eric_lagergren> jhass: could you repeat your last ~4 comments after I said, "...ran it several times"
<eric_lagergren> jhass: I accidentally hit ctrl+l in irc :/
<jhass> hehe
zorak8 has joined #ruby
duncannz has joined #ruby
<jhass> eric_lagergren: let's try something else and patch it up manually: export GEM_PATH="/home/eric/.gem/ruby/2.2.0"
duncannz has quit [Max SendQ exceeded]
aclearman037 has joined #ruby
<jhass> that's the default value, so something is still overriding it if gem env reports anything else without ^ export
DerisiveLogic has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<eric_lagergren> jhass: okay, so after I unexported GEM_PATH I removed .gems, reinstalled ruby, reinstalled jekyll, and now GEM_PATH doesn't appear *anywhere* (including gem env) but now I get 'jekyll command not found'
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> eric_lagergren: okay, readd /home/eric/.gem/ruby/2.2.0/bin to $PATH, but not $GEM_PATH
Takle has quit [Remote host closed the connection]
<eric_lagergren> WOOP.
<eric_lagergren> jhass: adding it to path w/o gem_path worked
dblessing has quit [Ping timeout: 252 seconds]
<eric_lagergren> jhass: thanks <3
duncannz has joined #ruby
<jhass> eric_lagergren: yeah, I guess that's where the confusion came from, me not noticing you did that and you doing that without telling :P
alec-c4 has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has quit [Max SendQ exceeded]
<apeiros__> jhass: mind a pm?
<jhass> apeiros__: nope
<jhass> eric_lagergren: to clarify: GEM_PATH overrides the lookup path for gems (libraries), it's like LD_LIBRARY_PATH or GOPATH, not like PATH
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<eric_lagergren> ahhh. gotcja/
ghostmoth has quit [Quit: ghostmoth]
<eric_lagergren> s/gotcja\//gotcja
<eric_lagergren> welp. Apparently I can't type today.
<eric_lagergren> Anyway, thank you so much jhass. You saved me a huuuge headache.
davedev2_ has joined #ruby
Hirzu has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
Asher has quit [Quit: Leaving.]
<jhass> eric_lagergren: you're welcome
Asher has joined #ruby
Ridley5 has quit [Ping timeout: 264 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
zenith_ has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
<elfuego> is there a way in ruby to get value from the cookies hash without the $Version= strings?
elaptics is now known as elaptics_away
<centrx> What cookies hash?
Hirzu has quit [Ping timeout: 249 seconds]
<elfuego> for sinatra
<colorados> eric_lagergren, why your 'GEM_PATH=/home/eric/.gem/ruby/2.2.0/bin contain 'bin'
<baweaver> ah, close.
<colorados> my GEM_PATH is ends with 'gems/ruby-2.2-head'
<colorados> my GEM_PATH ends with 'gems/ruby-2.2-head'
<ramfjord> Hey all, I have two classes: Account and Blah::Account. When I'm in module Blah, is there any way to reference the base Account?
<havenn> ramfjord: ::Account
<colorados> ah, understood, you use system ruby
<ramfjord> interesting - that is wht I'm trying
<ramfjord> error must be somewheere else
x1337807x has joined #ruby
<jhass> colorados: yeah, I noticed that finally too and we resolved that, if you read entire backlog ;)
<ramfjord> ahh, just needed parens around it
<eric_lagergren> colorados: no diea.
<eric_lagergren> s/diea/idea
livathinos has joined #ruby
zzz_Ridley has joined #ruby
zenith_ has joined #ruby
zzz_Ridley is now known as Ridley5
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zorak8 has quit [Ping timeout: 264 seconds]
_64k has joined #ruby
livathin_ has joined #ruby
art-solopov has joined #ruby
centrx has quit [Ping timeout: 272 seconds]
JDiPierro has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
sandelius has joined #ruby
talntid has left #ruby [#ruby]
sandelius has quit [Max SendQ exceeded]
riotjones has joined #ruby
livathinos has quit [Ping timeout: 255 seconds]
IrishGringo has quit [Ping timeout: 244 seconds]
deol has joined #ruby
Musashi007 has joined #ruby
jimms has joined #ruby
bim has quit [Remote host closed the connection]
<GaryOak_> could I use a block to apply the same error handling code to lots of different code?
wldcordeiro has joined #ruby
<apeiros__> GaryOak_: yes
<GaryOak_> I don't want begin rescues all over the place
<baweaver> you do know begin is implied on methods right?
<apeiros__> GaryOak_: using a method might be the better choice
adriancb has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
<GaryOak_> baweaver: cool I didn't know about that
riotjones has quit [Ping timeout: 255 seconds]
_hollywood has quit [Quit: Leaving]
<baweaver> Now do I occasionally use tap and lambdas for rescue breakpoints? Yeah
mistermocha has joined #ruby
shortdudey123 has quit [Max SendQ exceeded]
Wolland has joined #ruby
<baweaver> nil.tap(&nilHandler(defaults_to: 5)).to_s
shortdudey123 has joined #ruby
<baweaver> hacky? Yeah, probably
Outlastsheep is now known as zz_Outlastsheep
<jhass> GaryOak_: http://paste.mrzyx.de/pnwydxc6t another pattern you could do
yqt has joined #ruby
sandelius has joined #ruby
<GaryOak_> jhass: that's what I had in mind
duncannz has joined #ruby
JDiPierro has joined #ruby
Jiyuhen has quit [Ping timeout: 256 seconds]
Hawkeye has joined #ruby
sandelius has quit [Max SendQ exceeded]
<baweaver> I still wish Ruby had this built in:
lkba has quit [Read error: Connection reset by peer]
<jhass> ah, sounded more like rescue Foo => e; error_handler.call(e); end;
jonr22 has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> >> class Object; def pipe; yield self; end; end; nil.pipe { |v| v || 5 }
<eval-in_> baweaver => 5 (https://eval.in/302174)
<baweaver> like tap except returns the value of the block
<baweaver> nice for inlining things
<jhass> havenn: ^ did we just get a usecase for Object#itself w/ a block there?
<baweaver> https://github.com/baweaver/pipeable - gemified that
<havenn> jhass: \o/
senayar has joined #ruby
<baweaver> jhass: I know it's an identity function, but expand on that?
senayar has quit [Remote host closed the connection]
crdpink2 has quit [Quit: q term]
<baweaver> ah.
<baweaver> Like tap I'd agree the name would make it confusing
tier_ has joined #ruby
sandelius has joined #ruby
<baweaver> itself is an identity function and tap is a K-combinator
ponga has quit [Read error: No route to host]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> I'd agree with the last comment that that might not be straightforward
bim has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
<sandelius> I just ported a small app from Rails to Sinatra/ActiveRecord. My Rspec test suite is really slow on sinatra. Is Rails, or rspec-rails, doing something special in rails to speed thing up?
crdpink has joined #ruby
<baweaver> probably spring
tgunr has joined #ruby
<baweaver> keeps the entire app going
<jhass> or transactional fixtures
razrunelord has joined #ruby
<baweaver> well, if you're on Rails 4.x that is
<baweaver> jhass: what about object.yield?
<baweaver> straightforward with current language
jgt1 has quit [Ping timeout: 256 seconds]
kadoppe has quit [Ping timeout: 252 seconds]
<jhass> dunno, tbh I'm not entirely convinced we need either yet
<baweaver> it's more of a nicety thing
<baweaver> I just don't like intermediate variables in a good chain
<baweaver> but preference really.
swgillespie has joined #ruby
tier has quit [Ping timeout: 256 seconds]
kadoppe has joined #ruby
chu has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<sandelius> baweaver it's not the load time that is slow (spring). I'm using database cleaner and transaction with sinatra
apeiros has quit [Quit: ZNC - 1.6.0 - http://znc.in]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
robertt_dex has joined #ruby
apeiros has joined #ruby
<jhass> maybe try database_rewinder instead
aswen has quit [Ping timeout: 245 seconds]
<jhass> database_cleaner can be slow sometimes
<jhass> it's a try out game really
<elfuego> for some weird reason $Version=0 keep showing up in my cookies e.g. 198174979$Version=0
aob has left #ruby [#ruby]
<elfuego> is there a way to prevent this?
iMe has quit [Ping timeout: 255 seconds]
<jhass> ask whatever lib you're using to set the cookie
apeiros__ has quit []
ponga has joined #ruby
apeiros_ has quit []
<elfuego> I set the cookie using sinatra on the server, but the client keeps appending $Version=0 to it
max96at is now known as max96at|off
<godd2> what an asshole!
<baweaver> godd2: ????
zenith_ has quit [Ping timeout: 246 seconds]
slap_stick has joined #ruby
slap_stick has quit [Max SendQ exceeded]
<godd2> his client keeps appending $Version=0
HOrangeJewce has quit [Quit: Leaving.]
<baweaver> ah, seemed oddly out of context
JDiPierro has quit [Remote host closed the connection]
slap_stick has joined #ruby
iMe has joined #ruby
HOrangeJewce has joined #ruby
Obfuscate has quit [Ping timeout: 256 seconds]
ptierno_ has quit [Quit: leaving]
ptierno_ has joined #ruby
Obfuscate has joined #ruby
baweaver has quit [Remote host closed the connection]
ojacobson has quit [Quit: Linkinus - http://linkinus.com]
slap_stick has quit [Client Quit]
<sandelius> jhass hmm same thing with database_rewinder :/
lulzmachine has quit [Quit: lulzmachine]
<jhass> was worth a shot at least
<jhass> you need to start profiling to pin down where time is spent I guess
pardusf has quit [Ping timeout: 245 seconds]
triangles2 has joined #ruby
<sandelius> jhass yeah I'm using -p with rspec and has located the slowest test but the thing is that it's the same as in Rails. This is really weird. When I run siege on both apps the sinatra one kills rails :)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
iamjarvo has joined #ruby
jimms has quit [Remote host closed the connection]
<jhass> sandelius: I meant real profiling, ruby-prof / rbkit stuff
sambao21 has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
parduse has joined #ruby
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
TheodoreRobertBu has joined #ruby
jolg42 has joined #ruby
jusmyth has quit [Quit: Leaving.]
<sandelius> jhass ahh hmm sounds like a fun night :)
graydot has quit [Quit: graydot]
triangles has quit [Ping timeout: 255 seconds]
RainbowHerbicide has quit [Quit: Leaving]
slap_stick has joined #ruby
ghostmoth has joined #ruby
pengin has quit [Remote host closed the connection]
jusmyth has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
aswen has joined #ruby
joris974 has quit [Remote host closed the connection]
shazaum has quit [Quit: Leaving]
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
livathin_ has quit []
sivsushruth has quit [Read error: Connection reset by peer]
relix has joined #ruby
sivsushruth has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
_64k has quit [Ping timeout: 246 seconds]
ZJvandeWeg has quit [Remote host closed the connection]
pietr0 has joined #ruby
ptierno has quit [Quit: leaving]
vdamewood has joined #ruby
ptierno_ is now known as ptierno
chishiki has quit [Quit: WeeChat 1.1.1]
chishiki has joined #ruby
pengin has joined #ruby
zorak8 has joined #ruby
wottam has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has quit [Max SendQ exceeded]
failshel_ has joined #ruby
charliebr73 has joined #ruby
lulzmachine has joined #ruby
rodfersou has quit [Quit: leaving]
lulzmachine has quit [Client Quit]
ptierno has quit [Quit: leaving]
ptierno has joined #ruby
wallerdev has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 252 seconds]
Aswebb_ has quit [Remote host closed the connection]
revoohc has quit [Quit: revoohc]
michael_mbp has quit [Excess Flood]
failshel_ has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
brb3 has quit [Quit: <.<]
tier_ has quit [Ping timeout: 256 seconds]
aclearman037 has quit [Quit: I'm out!]
josephleon has joined #ruby
Musashi007 has quit [Quit: Musashi007]
delianides has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Musashi007 has joined #ruby
hobodave has joined #ruby
dc has quit [Remote host closed the connection]
dc has joined #ruby
oetjenj has joined #ruby
djbkd has quit [Remote host closed the connection]
<ramfjord> man, I would so love it if ActiveRecord could use the module a class is in to infer the schema of its table
eighthbit has joined #ruby
<c-c> would/could?
baweaver has quit [Remote host closed the connection]
charliebr73 has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
djbkd has joined #ruby
DerisiveLogic has joined #ruby
yfeldblum has joined #ruby
sambao21 has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jespada has quit [Ping timeout: 244 seconds]
colorados has quit [Quit: Leaving]
<ramfjord> maybe I can make a separate inheritor of ActiveRecord::Base for each schema, and define self.table() "schema\." + super ; end
dc has quit [Ping timeout: 265 seconds]
robertt_dex has quit [Remote host closed the connection]
<undeadaedra> Er, it’s not already the case?
ldnunes has quit [Quit: Leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AnxiousGarlic has joined #ruby
eighthbit has quit [Ping timeout: 256 seconds]
razrunelord has quit [Remote host closed the connection]
krisquigley has joined #ruby
baweaver has quit [Ping timeout: 244 seconds]
<undeadaedra> How did you create your model, ramfjord ?
<ramfjord> undeadaedra: It appears to be taking the first table with the given name in my search_path, ignoring the module
DerisiveLogic_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 245 seconds]
<ramfjord> module Blah ; end
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ramfjord> class Blah::Stat < ActiveRecord::Base ; end
<ramfjord> finds teh stats table in a non-"blah" schema
<undeadaedra> iirc, when you do `rails new model A::B`, it creates the appropriate files to have this behavior
graydot has joined #ruby
<c-c> also something like #ror or #rubyonrails
<ramfjord> not using rails, but I just tried rails generate in another project and it didn't get the schema
<c-c> ok
krisquigley has quit [Ping timeout: 264 seconds]
allcentury has quit [Ping timeout: 252 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
jgt1 has joined #ruby
colorados has joined #ruby
jenrzzz has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<ramfjord> yeah, c-c I was looking for an activerecord group haha, but I should have tried that
senayar has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
graydot has quit [Quit: graydot]
mengu__ has joined #ruby
sameerynho has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
tona has joined #ruby
<tona> hi everyone, one fast question into ruby could i create one application for my android phone ?,
sivsushruth has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
<arrubin> tona: Yes.
sivsushruth has joined #ruby
<tona> ok do you have one example easy to create it like one demo , or how could i find it into google
jgt1 has quit [Ping timeout: 246 seconds]
Lingo_ has joined #ruby
Guest90565 has joined #ruby
DerisiveLogic_ has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 255 seconds]
Guest90565 has left #ruby ["Textual IRC Client: www.textualapp.com"]
gfawcettpq1 has joined #ruby
bim has quit [Remote host closed the connection]
Guest90565 has joined #ruby
jonr22 has joined #ruby
sgambino has quit [Remote host closed the connection]
bim has joined #ruby
it0a has quit [Ping timeout: 264 seconds]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tona> sorry for ask again , i am into ruboto, but i dont know how to start it , i need one guideline
elaptics_away is now known as elaptics
jusmyth has quit [Quit: Leaving.]
hobodave has joined #ruby
juanpauc_ has quit [Remote host closed the connection]
<c-c> all this googling, so exhausted, sleep
marr has joined #ruby
_64k has joined #ruby
hobodave has quit [Read error: Connection reset by peer]
<benlieb> I'm new to rspec and keep wanting to write: expect myvar.zero? as a shorthand for expect(myvar).to be_zero or expect(myvar.zero?).to be true
<GaryOak_> I was gonna use MacRuby to make a mac app, but apparently it's gone dead
<benlieb> Is there some shorthand for this?
hobodave has joined #ruby
<GaryOak_> benlieb: to eq(0)
<benlieb> GaryOak_: I'm talking about without the to...
<GaryOak_> the expect syntax is pretty short
<benlieb> in the same way that if (x) is short for if (x == true)
<benlieb> and I'm Expecting Brian, is short for I'm expecting Brian to come here...
DerisiveLogic has joined #ruby
jusmyth has joined #ruby
elfuego has quit [Quit: elfuego]
<benlieb> I just feel like expect(brian) should work like this, but if it doesn't there's probably a good reason
<GaryOak_> I think the idea was to read like a sentence
xenokiller has joined #ruby
sameerynho has quit [Quit: Leaving]
<benlieb> GaryOak_: Fair enough, but I personally feel that expect(brian) is like a little sentence :)
<benlieb> like "expect delays"
spider-mario has joined #ruby
RegulationD has quit [Remote host closed the connection]
<jhass> I find that incomplete
ptierno has quit [Quit: leaving]
<jhass> expect brian, expect brian what?
RegulationD has joined #ruby
elfuego has joined #ruby
dc has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
<GaryOak_> I could see how it would be like expect something to be truthy
starless has quit [Quit: Leaving]
freerobby has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
ptierno has joined #ruby
triangles has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<benlieb> GaryOak_: right
<GaryOak_> but tests are supposed to be explanatory, and more explicit than your code
josephleon has quit [Quit: Leaving...]
centrx has joined #ruby
nonks has joined #ruby
<GaryOak_> in minitest you can just do assert(value) and if value is true it will pass
<zenspider> GaryOak_: you might want to look at rubymotion
PaulCapestany has quit [Quit: .]
<zenspider> is truthy, not is true
aswen has quit [Ping timeout: 245 seconds]
<GaryOak_> yeah
triangles2 has quit [Ping timeout: 246 seconds]
<shevy> GaryOak_ you are on a mac?
<GaryOak_> yeah
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<undeadaedra> rubymotion is a paid option
graydot has joined #ruby
<zenspider> yup. I hear it isn't bad tho
<GaryOak_> that's weird that it's monthly
elfuego has quit [Quit: elfuego]
<undeadaedra> yes, I heard really good things about it
<zenspider> is it now? huh. well... helps fund the devs since he left apple
HOrangeJewce has joined #ruby
PaulCapestany has joined #ruby
baweaver has quit [Remote host closed the connection]
<zenspider> wow. and expanded to android now. interesting
doodlehaus has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<GaryOak_> they provide support for the api I guess for the monthly fee
reinaldob has joined #ruby
<GaryOak_> and do support tickets
nonks has quit [Ping timeout: 264 seconds]
Guest90565 has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> $15 / mo for no support tickets... seems reasonable to me
<zenspider> esp given how much work has gone into that thing
opes has joined #ruby
<GaryOak_> I wonder if they let you build against their codebase, and then just have some API key that you use to build it?
<GaryOak_> It being the app
freerobby has quit [Quit: Leaving.]
rpad has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
<rpad> what would be the my rubyish way to make sure a file ends in either .jpg or .html?
PhaseCode has quit [Ping timeout: 256 seconds]
reinaldob has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
<undeadaedra> .ends_with? ’.jpg’ || .ends_with? ’.html’
<undeadaedra> or =~ /\.(jpg|html)\z/
<zenspider> %w[.jpg .html].include? File.extname path
<undeadaedra> or this ^
<undeadaedra> :)
dc has quit [Read error: Connection reset by peer]
<ericwood> hmm is ends_with? new?
<ericwood> not seeing it in 2.1.5
dc has joined #ruby
<centrx> end_with?
<undeadaedra> it’s end_with?, actually
<jhass> ends_with? is Crystal :P
<ericwood> ohhhhh
<centrx> Matz-style grammar
<undeadaedra> sorry for the confusion
<zenspider> yup. drives me nuts too
sambao21 has quit [Read error: Connection reset by peer]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<zenspider> maybe it is something English.rb should fix :)
crazydiamond has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
jespada has joined #ruby
jonr22 has joined #ruby
x1337807x has joined #ruby
<shevy> it's ok
<shevy> undeadaedra is french
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GaryOak_> it's better than PHP std lib naming
<jhass> what isn't though
hobodave has quit [Quit: Computer has gone to sleep.]
fryguy9 has quit [Quit: Leaving.]
<GaryOak_> probably .NET
<GaryOak_> I don't know, I've never really used .NET
hsps_ has joined #ruby
PhaseCode has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
shadoi has quit [Quit: Leaving.]
<undeadaedra> shevy: yeah, I think I know it now. What does it have to do with it?
sepp2k has quit [Quit: Konversation terminated!]
Yzguy_ has joined #ruby
riotjones has joined #ruby
<GaryOak_> hahaha
aryaching has quit [Ping timeout: 252 seconds]
<eam> I worked on an open source vb interpreter, that was my favorite function to implement
<shevy> undeadaedra that you may use any grammar notation
<undeadaedra> shevy: tbf, .end_with? disturbs me, thus my error above
Lingo_ has quit [Quit: (null)]
jenrzzz has quit [Ping timeout: 246 seconds]
<shevy> undeadaedra no the thing there is, that the question must be asked properly. It should be like so: "object, do you end_with? xyz"
revoohc has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
<undeadaedra> ah, in this way it makes sense
<shevy> it's the same as you have with: File.exist? versus File.exists?
<shevy> matz added File.exists? after someone said that it should happen years ago, I forgot when
davlaw__ has joined #ruby
<eam> kinda surprised php doesn't have a standard builtin for a social networking app
<shevy> then I think two years ago or so, it was deprecated again
<undeadaedra> but it is good if we say ”if string.ends_with? %(foo)”, no ?
sngeth has joined #ruby
<shevy> undeadaedra dunno, I guess it depends on the point of view, you could just as easily compose text messages in pseudo-english sentence "if this string ends with a xyz, do that"
lanemeyer has quit [Ping timeout: 256 seconds]
<shevy> well that might even be a real sentence
jenrzzz has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
<undeadaedra> so yeah, when not really thinking about it, the ”ends with” comes more naturally
razrunelord has joined #ruby
razrunelord has quit [Remote host closed the connection]
<undeadaedra> but I didn’t think about turning it into a ”Does it” question, actually, good one
<zenspider> the argument is that ruby is not english. it ends there.
<undeadaedra> D:
allcentury has joined #ruby
<shevy> it.ends_there?
<shevy> or
<shevy> it.end_there?
<shevy> undeadaedra is that a smiley from right to left?
jlast has quit [Remote host closed the connection]
<undeadaedra> yes
adriancb has quit [Ping timeout: 250 seconds]
<shevy> somehow my brain works only with smileys in this direction :D
tona has quit [Quit: Page closed]
TheodoreRobertBu has quit [Quit: Leaving]
<shevy> undeadaedra turn the D around
<shevy> oh wait
<shevy> I think I can see it now
<shevy> it's like pacman smiling
Vert` has left #ruby [#ruby]
<zenspider> it's like pacman NOT smiling
livingstn has quit []
<undeadaedra> Take :D
<undeadaedra> reverse its mouth
<undeadaedra> turn his smile upside down
Takle has joined #ruby
<shevy> yeah, like an upset smile
<shevy> p:
<GaryOak_> it's a tongue licking eyes
<shevy> haha
<undeadaedra> é_è
opes has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> GaryOak_ I saw something funny lately... I can't tell whether it is real. a moment
<GaryOak_> oh man bring out the unicode!
juanpaucar has joined #ruby
<undeadaedra> é and è are also valid iso
<GaryOak_>
<shevy> the name of the image was "mukerjee_typewriter"
juanpaucar has quit [Remote host closed the connection]
<shevy> but it really looks as if someone put smileys onto an old typewriter
<GaryOak_> that would be fun to build
juanpaucar has joined #ruby
<undeadaedra> :D
<shevy> I remember we had an old typewriter in the old office. I loved that thing... typing on it was so much more fun than typing on a keyboard
<undeadaedra> beats me
<shevy> the sound alone! click-click-clak
<GaryOak_> We had an old electric calculator with a printer on the top
<undeadaedra> oldest I gave is an Apple II
<undeadaedra> have*
<shevy> undeadaedra it was funny if you typed on paper directly, if you mistyped, you could edit that with some kind of glue
jolg42 has quit [Quit: ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
<shevy> or you just painted white paint over it and let it dry before continuing
<shevy> on second thought, perhaps the typewriter wasn't that great...
shadoi has joined #ruby
<shevy> hmm not that modern
<shevy> more like a tube which you could put down onto the paper
Pharaoh2 has quit [Quit: Byebye]
<undeadaedra> ”The first product was an innovative correction paper for use with typewriters.”
<undeadaedra> Seems on to me
<undeadaedra> But there may be other products
hcnewsom has quit [Quit: hcnewsom]
<shevy> one of the last ones we had was some electronic typewriter
<shevy> then I think the i386 emerged
IrishGringo has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
jgt1 has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
morenoh149 has joined #ruby
crdpink has quit [Quit: q term]
_64k has quit [Ping timeout: 245 seconds]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<morenoh149> how would I override @object.to_json to detect fields in snake case and make them camelcase
colorados has quit [Quit: Leaving]
<jhass> morenoh149: define as_json for that class
<ericwood> morenoh149: def to_json; json = super; # do that thing here
PaulCapestany has quit [Quit: .]
crdpink has joined #ruby
<jhass> no, I did not typo with as_
<centrx> morenoh149, override as_json, probably using alias_method_chain
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<morenoh149> centrx:you're certain its as_json? I think the current one I'm using is this one http://devdocs.io/ruby/struct#method-i-to_json
ghostpl_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<morenoh149> moreover. It's usage is in a rails template file index.html.erb. I'd declare my overload in an erb tag above it's first usage? or does it fit better elsewhere?
PaulCapestany has joined #ruby
jonr22 has joined #ruby
<jhass> to_json uses as_json to obtain a representation of your object from which the json should be generated
<jhass> so you return a hash, an array or whatever
<jhass> it's called template method pattern
last_staff has quit [Quit: last_staff]
senayar has joined #ruby
<ericwood> ^^^^^^
Nuck has quit [Quit: Computer has gone to sleep.]
josephleon has joined #ruby
tubuliferous has joined #ruby
allcentury has quit [Quit: WeeChat 1.1.1]
dc has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 255 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
pietr0 has quit [Quit: pietr0]
revoohc has quit [Ping timeout: 272 seconds]
graydot has quit [Quit: graydot]
sivsushruth has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
apxm has joined #ruby
baweaver has joined #ruby
wallerdev has quit [Quit: wallerdev]
pietr0 has joined #ruby
centrx has quit [Remote host closed the connection]
razrunelord has joined #ruby
sivsushruth has joined #ruby
centrx has joined #ruby
tubuliferous has quit [Read error: Connection reset by peer]
chridal has joined #ruby
revoohc has joined #ruby
jonr22 has quit [Remote host closed the connection]
<chridal> I have this hash hash = {a: 1, b: 2}, I would like to do this foo(hash), and then use it as hash[:a] inside the function.
<chridal> How can I do this?
josephleon has quit [Ping timeout: 255 seconds]
_64k has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<chridal> It only works if I do foo(a: 1, b:2), only then am I able to do hash[:a] inside the function
<jhass> def foo(hash); hash[:a]; end; foo(hash)
josephleon has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
<jhass> yes
<chridal> jhass: That doesn't work for me at all. The hash is empty when I get in there.
<jhass> !code
<helpa> We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
<centrx> code or it didn't happen
<bradland> 1st rule of programming: Yes, it's probably you, not the computer :)
AnxiousGarlic has quit [Read error: Connection reset by peer]
centrx has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
centrx has joined #ruby
willnewby has joined #ruby
<chridal> Sorry, but Gist was bugged, so I couldn't turn on syntax highlighting.
dEPy has quit [Quit: (null)]
kblake_ has joined #ruby
<bradland> name your files with filename.rb instead of filename.txt
kirun has quit [Quit: Client exiting]
<chridal> Fixed.
<chridal> Thanks,
<chridal> I know those functions are humongous. I will refactor it when it works :-)
revoohc has quit [Ping timeout: 272 seconds]
<bradland> so what are you expecting from the code, and what are you actually getting?
<bradland> an error?
ramfjord has quit [Ping timeout: 252 seconds]
<chridal> Right now, as you can see on line 25, I am passing it directly into the function call. Then it works. But when I try to do Resque.enqueue(AddDeviceToken, new_request) it doesn't.
<chridal> Well, I am expecting to be able to use new_request[:arn] inside of the method that I am calling, when passing `new_request` as a param directly into the function call, not having to list them individually
icebourg has joined #ruby
kblake has quit [Ping timeout: 246 seconds]
razrunelord has quit []
mjuszczak has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
<jhass> that should work, I think your problem is somewhere else
<bradland> what error are you getting?
elfuego has joined #ruby
<bradland> NoMethod error nil class?
a5i has joined #ruby
kblake_ has quit [Ping timeout: 252 seconds]
<chridal> No, they're just blank.
<bradland> if you could comment with the error message and stack trace on the gist, that'd be great
<chridal> I tried printing them out inside the method I called, and got nothing.
razrunelord has joined #ruby
<bradland> where did you print them?
<bradland> from withing SessionsController#create ?
razrunelord has quit [Client Quit]
<bradland> or from within AdDeviceToken::perform ?
<chridal> no, from within AddDeviceToken::perform
<jhass> there's a conceptual problem with this code though
baweaver has quit [Remote host closed the connection]
<jhass> resque doesn't guarantee execution order
<jhass> your jobs will race
<chridal> jhass: I know, that's why I am calling it from within remove.
<chridal> Inside of RemoveToken, I actually call AddToken
baweaver has joined #ruby
<jhass> so you're showing us code you're not using
<chridal> No, I'm using that code too.
<chridal> The RemoveToken is not where the problem is at currently.
<willnewby> Hey Peeps, question: how do I run a command with both ruby-prof and bundler? https://gist.github.com/willnewby/59d7692942563a3313bc
<chridal> The problem is just that when I pass that hash, I doesn't work as I expect it to. I get errors from SNS saying that I am not passing the parameters.
kblake has joined #ruby
mjuszczak has quit [Client Quit]
<jhass> willnewby: try ruby-prof bundle -- exec ...
<chridal> If I pass it like this Resque.enqueue(AddDeviceToken, a: 1, b:2) etc, it works fine.
<jhass> willnewby: though I think you have to (temporarily) add ruby-prof to your bundle and swap them around
Takle has quit [Read error: Connection reset by peer]
<chridal> The code as it is now works fine. But If I do Resque.enqueue(AddDeviceToken, new_request) (which is what I want to do) it doesn't work.
<bradland> chridal: inspect the value of new_request immediately before line 25
<chridal> bradland: Done. It's fine.
wallerdev has joined #ruby
<willnewby> @jhass close but no cigar: https://gist.github.com/willnewby/59d7692942563a3313bc
<bradland> then inspect it again on line 6 of test.rb
<chridal> If I inspect it inside the AddDeviceToken::perform it's gone.
greenbagels has joined #ruby
<jhass> willnewby: yeah, so the second suggestion :)
<chridal> bradland: Also done.
<bradland> what value do you get?
<bradland> nil?
<chridal> I tried using binding.pry, but I couldn't get to it.
greenbagels has quit [Remote host closed the connection]
spiderbyte has joined #ruby
<willnewby> Oh! I missed that @jhass … testing…
<bradland> you tried binding.pry where?
<chridal> bradland: I can try check if it's nil. I just did `puts new_request[:arn]` basically
greenbagels has joined #ruby
<bradland> test.rb:6 ?
<chridal> I tried to use it from within ::perform
dling has joined #ruby
<bradland> if you've got pry available, i'd drop a binding.pry on line 6
HOrangeJewce has quit [Quit: Leaving.]
<bradland> and issue the command ls
<bradland> then new_token.inspect
<chridal> I never get to the pry console
<jhass> chridal: are you inlining jobs atm or do you go through redis?
<bradland> oh, this is in Resque, sorry
<chridal> jhass: Redis.
<chridal> bradland: Yes.
baweaver has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
<jhass> chridal: pry-remote then
<bradland> i've never seen a vanilla hash disappear when passed as an argument
CatMartyn has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has joined #ruby
<chridal> jhass: Will give that a try.
willnewby1 has joined #ruby
<bradland> what does Resque::enqueue do to parameters? does it serialize them somehow? maybe the keys are no longer symbols.
Takle has quit [Read error: Connection reset by peer]
Yzguy_ has quit [Quit: I'm sleeping, go away.]
<jhass> yeah, it to_json them I think
keen_____ has quit [Read error: Connection reset by peer]
<jhass> but shouldn't make a diff where the literal is defined really
<bradland> i'd log new_token.inspect directly inside AdDeviceToken::perform to see what's in there
werelivinginthef has joined #ruby
<bradland> true
willnewby has quit [Read error: Connection reset by peer]
<jhass> I think this is racing somewhere and just misinterpretation
jobewan has quit [Quit: Leaving]
IrishGringo has quit [Ping timeout: 265 seconds]
<bradland> true dat
keen_____ has joined #ruby
HoloIRCUser1 has joined #ruby
sngeth has quit [Ping timeout: 246 seconds]
<chridal> Not sure how this is going to even work?
lkba has joined #ruby
haxrbyte has joined #ruby
<chridal> Trying to use remote-pry, but it doesn't seem like this will work
deric_skibotn has joined #ruby
haxrbyte has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
Musashi007 has joined #ruby
haxrbyte has joined #ruby
<chridal> I put `binding.remote_pry` on line 6 of test.rb, then restarted the queue, and then issue `pry-remote` from pty, but I'm not getting to connect to anything.
werelivinginthef has quit [Ping timeout: 246 seconds]
anaeem1 has joined #ruby
<jhass> you id queue a job?
<jhass> ^ is prove for that it just to_jsons btw
<chridal> yes, did queue a job
<chridal> oh, it was just rediculously slow
mengu__ has quit [Remote host closed the connection]
Yzguy_ has joined #ruby
_64k has quit [Ping timeout: 246 seconds]
leafybasil has joined #ruby
RitterJack has left #ruby ["Quitte"]
tkuchiki has joined #ruby
<chridal> hm.. something is wrong here
<willnewby1> @jhass I'll admit, I'm mostly lost, I've added ruby-prof to my bundle and tried "ruby-prof bundle -- exec jekyll build --trace", "ruby-prof -- bundle exec jekyll build --trace" and a whole host of other options. I'm not sure what you mean by "swap them around".
rpad has quit [Remote host closed the connection]
<jhass> bundle exec ruby-prof jekyll build
<jhass> would be my guess
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
crueber has quit [Quit: Leaving.]
<bradland> willnewby1: bundle exec will always be first
Nuck has joined #ruby
<bradland> that sets up the bundler environment so only binaries and libs within your bundle will be available
<willnewby1> That makes sense!
iMe has quit [Ping timeout: 256 seconds]
<willnewby1> I had to run it as: bundle exec ruby-prof `which jekyll` build
<willnewby1> It needed the full path to jekyll… but it works!
<willnewby1> Thanks @jhass + @bradland !
kblake has quit [Ping timeout: 246 seconds]
<chridal> bradland: Is there any way for me to do a new_request.inspect, without using pry? I tried adding it directly to line 6, but there is no output to STDOUT
pengin has joined #ruby
<bradland> what are you using for logging?
<jhass> chridal: Rails.logger.info
anaeem1 has quit [Ping timeout: 264 seconds]
<bradland> i'd write it to my log
<jhass> bradland: it's rails...
haxrbyte_ has joined #ruby
Takle has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
haxrbyte has quit []
haxrbyte_ has quit [Client Quit]
x1337807x has joined #ruby
djbkd has quit [Remote host closed the connection]
haxrbyte has joined #ruby
iMe has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
<chridal> This is so weird! When I do new_request.inspect, I get {a: 1, b:2, c:3} just like it is supposed to be. So why can't I access them?
<bradland> like jhass said, you've probably misidentified the problem
HoloIRCUser1 has quit [Ping timeout: 252 seconds]
<chridal> Hang on
<bradland> try logging new_request[:a]
krisquigley has joined #ruby
<chridal> When doing Rails.logger.info(new_request[:a]) I get nothing.
icebourg has quit []
<bradland> Rails.logger.info(new_request[:a].inspect)
<jhass> + Rails.logger.info(new_request.inspect); Rails.logger.info(new_request.class)
djbkd has joined #ruby
vroomanj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
Alex-_ has joined #ruby
<jhass> actually in your gist it's called new_token...
<jhass> new_request just in the controller
tkuchiki has quit [Ping timeout: 272 seconds]
martinbmadsen has joined #ruby
x1337807_ has joined #ruby
<chridal> I know. That's not the issue, I just typed wrong here, and continued not to confuse you.
dfinninger has quit [Remote host closed the connection]
<jhass> you should probably unify in your app too
<jhass> it's good to keep consistent names
willnewby1 has quit [Quit: Leaving.]
x1337807x has quit [Ping timeout: 245 seconds]
<chridal> yea, I did that at first, but I felt like new_request didn't make any sense from within Add****, I will probably change it in the first one too
kblake has joined #ruby
<chridal> new_request[:a].inspect = nil, class is Hash
a346 has quit [Ping timeout: 244 seconds]
<jhass> the new_ is contextual, that's okay to differentiate
<jhass> but either it's a token or a request
krisquigley has quit [Ping timeout: 244 seconds]
<chridal> Yes, that's true.
<jhass> .key.inspect ?
<chridal> is that new_request.key.inspect?
<jhass> er, keys.inspect, but yes
Nuck has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<chridal> ["arn", "device_id", "user_id"]
<jhass> there you go
<jhass> json turns it into strings
<chridal> is the problem that they are strings?
<jhass> yes
<chridal> *bangs forehead*
djbkd has quit [Remote host closed the connection]
<jhass> though I have no idea how this ever worked in either version
<chridal> The obscure part was how it works if I just pass it directly in.
<chridal> Oh! Because then there's no .to_json
<jhass> yes, I think it didn't
<bradland> man, i said this like 20 minutes ago! lol
<jhass> of course there is
SouL_ has quit [Ping timeout: 264 seconds]
<chridal> how could it work then?
<jhass> see my links to the resque source earlier
<bradland> indifferent access?
<jhass> I think it didn't
<jhass> nah, it's both literals
rrichardsr3 has joined #ruby
<chridal> It does! I'll test it again.
<chridal> to make sure
djbkd has joined #ruby
tkuchiki has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
B1n4r10 has joined #ruby
<chridal> It works.
<chridal> If I pass them like this foo(a: 1, b:2 c:3) they all arrive, and I can do new_request[:a]
<bradland> so the hash keys are accessible as a symbols when you pass a literal directly
<bradland> but not if you assign a hash literal to a variable, and pass the variable in
<chridal> if I pass foo(bar) where bar = {a:1, b:2, c:3} they get turned into strings.
<jhass> that's stupid
art-solopov has quit [Quit: Konversation terminated!]
<bradland> in your method arguments, you're using an implicit hash though, right?
<chridal> My god. The time I've spent.
<bradland> no curly braces?
<chridal> bradland: Correct.
<bradland> is it possible that has something to do with it?
<chridal> Which is why I think it's not calling .to_json on it
<bradland> try wrapping it with curly braces in the method argument list
<chridal> bradland: Then it will call .to_json, and they will get stringified. Will check.
djbkd has quit [Remote host closed the connection]
snath has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
<bradland> wonder why new_request.inspect was showing symbol keys
<bradland> man, friggin' rails sometimes....
tkuchiki has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
<chridal> Yes, if I pass them inside {} they get stringified.
tkuchiki has joined #ruby
<bradland> so it has something to do with the implicit hash argument
<bradland> geeze
<bradland> someone smarter than me could probalby tell you why
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chridal> might it be that if you pass it one object, it will call .to_json on it, but there isn't an equivalent function if you pass an implicit hash?
robustus|Off has joined #ruby
<bradland> i will say this though, a good debugger (pry, byebug, etc) makes this kind of thing a *lot* easier to debug
<jhass> >> require "json"; def test(*args); JSON.load JSON.dump(args); end; hash = {a: 1, b: 2}; test(hash)
robustus|Off is now known as robustus
<eval-in_> jhass => [{"a"=>1, "b"=>2}] (https://eval.in/302216)
<jhass> >> require "json"; def test(*args); JSON.load JSON.dump(args); end; test(a: 1, b: 2)
<eval-in_> jhass => [{"a"=>1, "b"=>2}] (https://eval.in/302217)
<jhass> ^
<jhass> you changed something else
<chridal> bradland: Yes, I have both pry and byebug, but weren't able to get a 'hold' of it.
beef-wellington has joined #ruby
<bradland> hrm
<chridal> jhass: I didn't change anything else.
hooper has joined #ruby
<jhass> I just proved that what claim is untrue
<chridal> Resque.enqueue(AddDeviceToken, arn: arn, device_id: session.device_id, user_id: user.id )
<chridal> That call works fine.
<chridal> Resque.enqueue(AddDeviceToken, { arn: arn, device_id: session.device_id, user_id: user.id })
<chridal> that one does not.
bricker has quit [Ping timeout: 246 seconds]
<bradland> is there a difference in the output of Rails.logger.info(new_token.keys.inspect) between those two?
<chridal> I can only guess that either Resque or Rails does something to them.
<bradland> jhass: posted a method trace. it's just serializing them with JSON.dump/load
bricker has joined #ruby
ghostpl_ has joined #ruby
snath has joined #ruby
spider-mario has quit [Ping timeout: 246 seconds]
<chridal> new_token.keys.inspect is the same in both
MatthewsFace has quit []
antivert has quit [Quit: leaving]
<bradland> strings?
dc has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<bradland> you see why it would be so hard to believe that they're accessible as symbols when keys.inspect says they're strings in both cases, right?
<jhass> the code is likely just racing and the hash alloc makes the diff
thumpba_ has quit [Ping timeout: 251 seconds]
spider-mario has joined #ruby
<jhass> have fun in prod
lanemeyer has joined #ruby
<chridal> Yes, I see how this is obscure.
<chridal> jhass: What should I be doing about this?
senayar has joined #ruby
jottr has joined #ruby
<jhass> dunno, if I'm really honest I'm not motivated to dig into
ghostpl_ has quit [Ping timeout: 246 seconds]
<jhass> the obvious race I pointed out you said you're aware
Yzguy_ has quit [Quit: I'm sleeping, go away.]
alphaatom has joined #ruby
<chridal> that one I know about. I was thinking about this weird stuff with the hash
<chridal> I should be safe using strings tho?
<jhass> but things like you posting "I get {a: 1, b:2, c:3} just like it is supposed to be" while it's string keys, makes it hard to believe your assertions
ramfjord has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
<bradland> both of these look to like they contain some good reading on the challenge you're facing
ponga has quit [Quit: Leaving...]
bricker has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Read error: Connection reset by peer]
<chridal> jhass: I have been programming for the last 14 hours now.. That's why I made a mistake there.
<jhass> then get some sleep
<chridal> bradland: Thanks! I will make sure to read both of them after I get some sleep.
karmatr0n has joined #ruby
<bradland> i know that feels bro
<chridal> Yea. I just really HAD to solve this issue. It's been nagging me.
<bradland> went for 37 hours straight once on our first ASP.NET project with a good friend
baweaver has joined #ruby
<bradland> ... the mistakes we make when we're young!
<chridal> Wow! That's crazy.
<bradland> (referring to using ASP.NET, not going 37 hours lol)
<jhass> like starting with ASP.NET? :P
<chridal> I just participated in a hackathon (24 hours), it was crazy.
* bradland fistbump jhass
<chridal> At least we won. I was smashed. I can't even imagine doing 37 hours.
<chridal> It would be impossible.
commmmodo has joined #ruby
<bradland> code quality suffered
<bradland> heh
<chridal> You must have some serious code muscle :-D
<bradland> that was back in 2001 or so
ponga has joined #ruby
<bradland> i was just young
<jhass> well, I'm not better
<jhass> PHP is my first lang
Junaos has quit [Remote host closed the connection]
<bradland> were were an ASP (classic) shop
<bradland> when ASP.NET hit (along with webforms), we did 1 project
<bradland> i looked at PHP, but rails had just hit 0.7, and was usable
mjuszczak has joined #ruby
<chridal> PHP is mine as well.
<bradland> we've been rails ever since
cvtsx has quit [Quit: Leaving]
<bradland> although i don't do much rails coding these days
Junaos has joined #ruby
<bradland> the guy i started with in 2001 is still with me though; he's one of my co-founders
<bradland> not a lot of guys that have been doing rails since 0.7
<alphaatom> would you guys consider the codecademy stuff a good starting place for learning ruby, I already have rudimentary knowledge of other programming languages like java, javascript, php etc
edwardly has quit [Quit: ??????????]
<chridal> I still remember trying to use Rails back when I was about 15 (2005). I only knew how to write PHP, and hardly any OOP. Hashes and blocks confused me a lot.
graydot has joined #ruby
<bradland> AlphaAtom: i've been through a good bit of codeacademy. it's pretty decent.
<bradland> it'd be a good intro
Musashi007 has joined #ruby
<bradland> coming from ASP, Rails was a real dream
<chridal> I used classes in PHP just to be able to separate my functions into classes so that it would be cleaner. Had no idea what an object was.
<bradland> we used to use the IIS 404 ISAPI as a router lol
bricker has joined #ruby
<chridal> Is ASP.net still bad?
<bradland> no, it's way, way better
kaspergrubbe has quit [Ping timeout: 246 seconds]
<jhass> chridal: you don't read tdwtf I gather :P
Affix has quit [Ping timeout: 272 seconds]
<bradland> when ASP.net first hit, MS tried to do something called WebForms, which everyone (including ASP.net devs) would prefer to forget.
<chridal> jhass: No. What's that? :)
<chridal> Will leave it open in a tab for tomorrow.
<chridal> Need to crash. I've got code to write in the morning!
<chridal> Thanks for helping out. See you guys. Good night,
zorak8 has quit [Ping timeout: 272 seconds]
thiesen has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
<chridal> jhass: Was there any reference in specific oyu were thinking of?
edwardly has joined #ruby
edwardly has joined #ruby
zorak8 has joined #ruby
hiyosi has joined #ruby
<jhass> nope, just put it into the feed reader
<jhass> it's 90% VB
<chridal> haha. Well, it might be fun.
ramfjord has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
bricker has quit [Ping timeout: 256 seconds]
jusmyth has quit [Quit: Leaving.]
jokke has quit [Quit: ninja vanish]
Renich has joined #ruby
<chridal> Doesn't seem like the code is racing, from what I can tell.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 264 seconds]
<jhass> go to bed
<bradland> that's the thing about race conditions
zorak8 has quit [Ping timeout: 245 seconds]
<jhass> tomorrow is another day
<bradland> lol ^^
sevvie has quit [Ping timeout: 265 seconds]
graydot has quit [Quit: graydot]
jokke has joined #ruby
<bradland> i 2nd the suggestion to get some sleep
<chridal> I am actually in bed now. I just need to test this for a bit :-P
<jhass> wish I had ops
<jhass> I'd totally kick you now
Affix has joined #ruby
<chridal> Why should I be kicked tho?
zorak8 has joined #ruby
<jhass> so you get some sleep
<chridal> I will sleep now. But should that code race?
zorak8 has quit [Max SendQ exceeded]
<jhass> no, other parts might
<chridal> Now I can sleep.
<chridal> Bye.
sevvie has joined #ruby
zorak8 has joined #ruby
kaspergrubbe has joined #ruby
zorak8 has quit [Max SendQ exceeded]
<alphaatom> as someone new to ruby
<alphaatom> why on earth does unless exist
<chridal> Because it's beautiful.
zorak8 has joined #ruby
<jhass> because don't do if is easier to think than if this, I mean not_this
Yzguy_ has joined #ruby
zorak8 has quit [Max SendQ exceeded]
<jhass> give it a chance
bricker has joined #ruby
zorak8 has joined #ruby
<jhass> it'll click after a while
zorak8 has quit [Max SendQ exceeded]
fuzzyhorns2 has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
vt102 has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
<godd2> user.log_in unless user.logged_in?
astrobunny has joined #ruby
chridal has quit [Ping timeout: 244 seconds]
Affix has quit [Ping timeout: 256 seconds]
<alphaatom> I suppose, but it just seems to be sugar for if !condition
<jhass> well, on the implementation detail ! is a method call wall unless isn't
<jhass> but that shouldn't be the point
graydot has joined #ruby
graydot has quit [Client Quit]
<jhass> in if !condition you evaluate (in your brain when reading the code) condition, then negate the result and use that to say if x
<jhass> unless skips that step
martinbmadsen has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
<jhass> "wall" lol, I should get some sleep too
<jhass> "while" I meant
postmodern has quit [Quit: Leaving]
bim has quit [Remote host closed the connection]
jusmyth has joined #ruby
Yzguy_ has quit [Quit: I'm bouncing outta here!]
jerematic has quit [Remote host closed the connection]
jusmyth has quit [Client Quit]
checkit has joined #ruby
<godd2> AlphaAtom there are plenty of things that are "just sugar"
<godd2> remember, the computer doesn't care that we're using Ruby to program ;)
<jhass> ruby has surprisingly few actual keywords
iamjarvo has joined #ruby
pico-pete has quit [Read error: Connection reset by peer]
pico-pete has joined #ruby
<alphaatom> yeah, I'm not hating or anything, just trying to make sure I understand the language fully, plus its the first language i've ever seen use something like that
livinded has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> class, module, if, unless, while, until, yield, return, break, next, retry, rescue, def, end, do, alias, catch, throw, raise is about it I think
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
commmmodo has quit [Quit: commmmodo]
<livinded> Can someone point in the the direction of a good example for subclassing Ruby's thread class?
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
milesmatthias has quit [Remote host closed the connection]