apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<b3itz> lines are like: S 30 50
p8952 has joined #ruby
chipotle has joined #ruby
agjacome has quit [Ping timeout: 255 seconds]
seanp2k has joined #ruby
<godd2> b3itz what do you want the keys to be?
Rapier- has quit [Ping timeout: 244 seconds]
<b3itz> doesn't really matter
<b3itz> as long as i can get to them
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<b3itz> the first letter is always a shape
<b3itz> the second two will be converted to ints
bluehavana has quit [Quit: Connection closed for inactivity]
<godd2> You said you wanted each line to be it's own hash. what will the keys and values be of each hash?
Rapier- has joined #ruby
<godd2> like {square: [30, 50]} or something?
<b3itz> exactly
<b3itz> i need to read in each line, identify what shape it is, then pass the two perimeters into other functions for calculations
freerobby has joined #ruby
x1337807x has joined #ruby
Rapier- has quit [Client Quit]
<godd2> or more like {shape: "rectangle", sides: [30, 50]}
<zenspider> and you need a hash, why?
freerobby has quit [Client Quit]
<b3itz> correct godd2
x1337807x has quit [Client Quit]
<b3itz> but the circle will only have a radius
nkumari has quit [Remote host closed the connection]
alex_the_designe has joined #ruby
x1337807x has joined #ruby
b3itz has quit [Quit: Page closed]
phutchins has quit [Ping timeout: 244 seconds]
<godd2> what are you doing with idx?
baweaver has joined #ruby
<godd2> if you don't need it (which it looks like you dont), then you don't need with_index
nonks has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
chipotle has quit [Ping timeout: 258 seconds]
phutchins has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
Techguy305|2 has joined #ruby
it0a has joined #ruby
jonr22 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
aspires has joined #ruby
enebo has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
VanillaGoat__ has joined #ruby
sinequanon has joined #ruby
jottr has quit [Quit: WeeChat 1.0.1]
jonr22 has quit [Ping timeout: 240 seconds]
speed145a has quit [Read error: Connection reset by peer]
speed145a has joined #ruby
MattB2 has joined #ruby
fuhgeddaboudit has joined #ruby
nkumari has joined #ruby
VanillaGoat_ has quit [Ping timeout: 265 seconds]
moritzs has joined #ruby
t0rc has joined #ruby
billy_ran_away has joined #ruby
doodlehaus has joined #ruby
lidaaa has joined #ruby
<i8igmac> i have a goofy question related to threads
jenrzzz has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
seanp2k has quit [Quit: seanp2k]
mathias2 has joined #ruby
Scotteh has quit [Ping timeout: 250 seconds]
Vivekananda has joined #ruby
Karpuragauram has joined #ruby
seanp2k has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
Karpuragauram has quit [Read error: Connection reset by peer]
<i8igmac> 100.times {|x| puts x; sleep 1}
<i8igmac> 100.times {|x| 10.times Thread.start{puts x; sleep 1}}
<i8igmac> how could you set ten threads inside this block
tus has joined #ruby
<zenspider> syntax is wrong
b3itz has joined #ruby
<i8igmac> it is
<havenwood> i8igmac: 10.times takes a block
<b3itz> can i scan through a string looking for a set of numbers like '54'?
<havenwood> b3itz: Use `warn message` in place of `STDERR.puts message`.
<havenwood> b3itz: But you'd want an error exit status so `abort message` here instead.
<i8igmac> its my question by example, 100000000.times{|x| puts x; sleep 3}
<havenwood> b3itz: yes, you can
<i8igmac> i want ten threads to speed threw that block
<havenwood> i8igmac: so you want a thread pool?
mathias2 has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
<i8igmac> uh, i guess so...
<havenwood> i8igmac: a pool of worker threads to take jobs as they are able?
<i8igmac> yes
<i8igmac> i would like to set a limit
<i8igmac> 10, 20, 100 or what ever is needed for that instance
<b3itz> i need to be able to look through a string and grab out 1 or 2 sets of numbers
<b3itz> itll always be a string delimited by a space and then either one or two numbers or sets of numbers also delimited by a space
<i8igmac> b3itz, can you post a example string
<i8igmac> i would like to try my regex retard skills
fgo_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<zenspider> b3itz: `ri String.scan`
govg has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
MattB2 has quit []
<b3itz> i8igmac: S 34 76
<i8igmac> lol im stumped
<b3itz> i8igmac: C 60
fuhgeddaboudit has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
<b3itz> zenspider: whats ri?
oo_ has joined #ruby
razieliyo has quit [Quit: Saliendo]
<havenwood> i8igmac: There are plenty of thread pool implementations to point you to if you're interested. Two related Ruby gems I'd suggest looking at that go way beyond thread pools are concurrent-ruby and celluloid.
jenrzzz has joined #ruby
<havenwood> i8igmac: but they're ^ usable
<havenwood> b3itz: man ri
<i8igmac> havenwood, thanks, this is always something i want to do...
<Noobdog> I think he wants to spawn a thread army to work splits up a block of code. Similar to how OpenMP works with #pragmas
<b3itz> havenwood: man
corehook has joined #ruby
<b3itz> i cant find it
<havenwood> i8igmac: Maybe see what it'd look like with Celluloid.
<havenwood> b3itz: What OS are you on?
<b3itz> ubuntu
<zenspider> b3itz: ri is the tool you use to level up
fgo_ has quit [Ping timeout: 255 seconds]
<zenspider> try it in your terminal
sinequanon has quit [Remote host closed the connection]
<b3itz> well.... this is for a ruby class. i dont think we are supposed to incorporate anything like that yet lol
<zenspider> b3itz: no, really. try it.
<Noobdog> ... ri is like the man pages for ruby they are important
<b3itz> i am.. i dont get it
<zenspider> before anyone goes nuts and adds celluloid levels of complexity ... has ANY measurement been done?
<zenspider> b3itz: what don't you get?
<havenwood> b3itz: apt-get install ri
<b3itz> it works., its just that nothing ive tried can be found
fabrice31 has joined #ruby
<zenspider> how'd you install ruby?
<b3itz> apt-get install ruby
<havenwood> b3itz: apt-get install ri
<b3itz> it runs
<Noobdog> the ruby package comes with ri
oo_ has quit [Ping timeout: 255 seconds]
<zenspider> but neutered w/ no data?? fuck I hate linux dogma
<zenspider> is there an ri-data or somesuch?
thsig_ has quit [Remote host closed the connection]
emmesswhy has joined #ruby
<havenwood> Noobdog: checking on this docker container, the ruby package provides the `ri` executable but not the ri package
<havenwood> Noobdog: so you have to 6
oo_ has joined #ruby
<havenwood> ^*, left shift key going :(
<Noobdog> oh ok, I just assumed it would
<godd2> >> "C 34 57".scan(/\d+/).map(&:to_i)
<eval-in__> godd2 => [34, 57] (https://eval.in/220159)
<b3itz> woah godd2
<godd2> b3itz ignoring the map part, if you pass a regular expression to scan, it will return an array with the matching patterns
<b3itz> if that works...
<godd2> >> "C 34 57".scan(/\d+/)
<eval-in__> godd2 => ["34", "57"] (https://eval.in/220160)
fabrice31 has quit [Ping timeout: 265 seconds]
<godd2> note that even though I looked for numbers in the string, the output was the strings containing those numbers
<b3itz> my first if
<b3itz> outputs nothing
ghostmoth has quit [Quit: ghostmoth]
<godd2> well that script in and of itself is not valid Ruby
<b3itz> >.<
enebo has quit [Quit: enebo]
jleishman has joined #ruby
<godd2> because you started with 'else' on line 1
jxf has joined #ruby
sevenseacat has joined #ruby
<zenspider> b3itz: ah. so install the ri package for the data. then you can actually use it
<b3itz> i have an unless
Hobogrammer has quit [Read error: Connection reset by peer]
<havenwood> b3itz: please paste code examples to https://gist.github.com/ like the chan topic says so we can comment on them, etc
<havenwood> b3itz: name the file ending in .rb
<zenspider> eh. gist vs pastbin doesn't matter if he's pasting invalid ruby
<havenwood> b3itz: indent with two-spaces
<havenwood> b3itz: you can set your editor to two-space soft tabs for ease
boombadaroomba has quit [Remote host closed the connection]
freerobby has joined #ruby
<godd2> b3itz get rid of '.with_index' and remove ', idx'
<havenwood> ^ that!
mary5030 has joined #ruby
<havenwood> and really you can process your lines just once, just map to what you want them as
<b3itz> thanks
<havenwood> b3itz: if you want to know if it starts with, use #start_with? not #include?, but i think have it already parsed so you're not doing that at all
<havenwood> b3itz: downcased or upcased things compare nicely
<havenwood> b3itz: sometimes you want an Array not a Hash
it0a has joined #ruby
rushed has joined #ruby
<godd2> havenwood haven't you learned anything from Rich Hickey?? Arrays just complect things!!
<havenwood> b3itz: it worries me you thought you wanted a Hash. i think look more into Rubies basic datastructures and when you'd want to use one.
<b3itz> I'm using this nums = line.scan(/\d+/).map(&:to_i) and it works, but how exactly does it go about storing in nums with a string liek s 20 40
<havenwood> godd2: :P
musl has quit [Quit: WeeChat 1.0.1]
<b3itz> it looks like it writes nums as 20 the overwrites it as 40
kireevco has joined #ruby
apeiros has joined #ruby
<havenwood> b3itz: because a Hash makes zero sense here
tus has quit []
mary5030 has quit [Ping timeout: 244 seconds]
<havenwood> b3itz: why in the world are you using a Hash?
musl has joined #ruby
<b3itz> havenwood: i though i needed a hash because of how i read the assignent.. i was wrong
<b3itz> we will use it to keep track of the shapes we've processed
corehook has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
Akuma has quit [Quit: So long sukkas!]
<b3itz> "10 20".line.scan(/\d+/).map(&:to_i)
russt has quit [Quit: russt]
corehook has joined #ruby
corehook has quit [Read error: Connection reset by peer]
<b3itz> poop
jleishman has quit [Quit: Be back later ...]
<godd2> put >> in front
<havenwood> >> shape, *args = 's 20 40'.split; [shape, args.map(&:to_i)]
<eval-in__> havenwood => ["s", [20, 40]] (https://eval.in/220161)
<b3itz> how do i do the evaluaing right here?
<b3itz> niceeeee
<rushed> does ruby have an end of time value or another convention for comparing potentially nil dates?
<b3itz> >> "10 20".line.scan(/\d+/).map(&:to_i)
<eval-in__> b3itz => undefined method `line' for "10 20":String (NoMethodError) ... (https://eval.in/220162)
rshetty has joined #ruby
<eam> rushed: you can use nil
jgrevich has quit [Quit: jgrevich]
<rushed> eam: Date.today < nil => ArgumentError: comparison of Date with nil failed
<b3itz> >> "C 34 57".scan(/\d+/).map(&:to_i)
<eval-in__> b3itz => [34, 57] (https://eval.in/220163)
nkumari has quit [Remote host closed the connection]
<b3itz> >> "S 10 20".line.scan(/\d+/).map(&:to_i)
<eval-in__> b3itz => undefined method `line' for "S 10 20":String (NoMethodError) ... (https://eval.in/220164)
tokik has joined #ruby
i_s has quit [Remote host closed the connection]
<b3itz> >> "S 10 20".scan(/\d+/).map(&:to_i)
<eval-in__> b3itz => [10, 20] (https://eval.in/220165)
rshetty has quit [Read error: Connection reset by peer]
<b3itz> GRRR
i_s has joined #ruby
<b3itz> ok, so is that now an array?
<godd2> yes
gr33n7007h has joined #ruby
<b3itz> and i can split it by the space and store each as an int?
i_s has quit [Read error: Connection reset by peer]
t0rc has quit [Quit: WeeChat 1.0.1]
Hobogrammer has joined #ruby
<godd2> that's not how I would say it, but close enough
i_s has joined #ruby
<b3itz> awesome!
chipotle has joined #ruby
<eam> rushed: well yeah, there's no such thing as < or > against a non-time
<havenwood> >> "s 20 40\ns 20 40\nc 30".each_line.map { |line| shape, *args = line.split; [shape, *args.map(&:to_i)] }
<eval-in__> havenwood => [["s", 20, 40], ["s", 20, 40], ["c", 30]] (https://eval.in/220166)
<havenwood> b3itz: spend more time learning the basic data structures and the homework will become easier!
aspiers has joined #ruby
rshetty has joined #ruby
<rushed> eam: right, so I guess I'm looking for a beginning of time / end of time, or Date.min / Date.max or something (or whatever is conventionally used in place of those)
<eam> well that's hard because those values change depending on platform internals
<godd2> b3itz one way to study the classes in ruby is to make flash cards for all of the most common methods
beilabs has joined #ruby
beilabs has quit [Quit: Lingo: www.lingoirc.com]
<eam> rushed: time doesn't have a start/end
<eam> if you really want to you can reason about the maximum time offsets your system stores, but you probably really don't auctually want that
<havenwood> first, instanciate a multiverse
beilabs has joined #ruby
<godd2> If you wish to make an apple pie from scratch
<eam> (in part, because different system time interfaces provide different maximum offsets)
<b3itz> havenwood: working on it!
<havenwood> b3itz: :)
i_s has quit [Ping timeout: 240 seconds]
<b3itz> there are so many! and it's an 8 week course :(
pdtpatrick_ has quit [Read error: Connection reset by peer]
<b3itz> ok, now how can i take ["50 30"] and store side1 = 50 and side2 = 30
mrsolo has quit [Quit: Leaving]
<zenspider> >> "s 20 40\ns 20 40\nc 30".lines.map { |s| s.scan(/\w+/) }
<eval-in__> zenspider => [["s", "20", "40"], ["s", "20", "40"], ["c", "30"]] (https://eval.in/220167)
<zenspider> >> "s 20 40\ns 20 40\nc 30".lines.map { |s| s.scan(/\w+/).map { |w| Integer(w) rescue w } }
<eval-in__> zenspider => [["s", 20, 40], ["s", 20, 40], ["c", 30]] (https://eval.in/220168)
sinequanon has joined #ruby
jimbach has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<damic> how do i change the default "render 'form'"?
russt has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
<zenspider> #rubyonrails ?
<havenwood> damic: A Rails question? #rubyonrails
<damic> thanks, #rails was locked
russt has quit [Client Quit]
russt has joined #ruby
nickenchuggets has joined #ruby
<havenwood> damic: /who damic
<havenwood> damic: /msg NickServ HELP REGISTER
<havenwood> *rather
narph has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
<havenwood> damic: and nevermind, you're registered
vinleod has joined #ruby
n008f4g_ has joined #ruby
<havenwood> wish they'd drop the nick reg req
<b3itz> whats null in ruby??
<havenwood> b3itz: nothing
<havenwood> b3itz: nil
<b3itz> if side2 == nil ?
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> >> nil.nil?
<eval-in__> havenwood => true (https://eval.in/220169)
takle has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 258 seconds]
dkb20k has joined #ruby
bluehavana has joined #ruby
<havenwood> b3itz: You can ask any Object if it's nil with Object#nil?.
pdtpatrick_ has joined #ruby
<b3itz> and if its null, it will return true?
<zenspider> b3itz: if !side2
<havenwood> b3itz: there's no null
<b3itz> that feels so backwards
<zenspider> nil checks are a design smell
nyanz has quit []
Spami has joined #ruby
volty has joined #ruby
<havenwood> b3itz: and yeah, if `false` isn't a possibility then use truthyness
<zenspider> either don't use nil as a possibility, or treat it for its truthiness
cleopatra has joined #ruby
zacts has joined #ruby
sinequanon has quit [Remote host closed the connection]
Techguy305 has joined #ruby
<zenspider> and if you're using trinary logic (truthy, false, nil) then you deserve a beating
sinequanon has joined #ruby
<baweaver> sane defaults as well
Techguy305|2 has quit [Ping timeout: 240 seconds]
<baweaver> such as if you're searching a list, return [] instead of nil on no results
<baweaver> or 0 if you want a count
<volty> >> a = [1,2,3,4]; b = []; a.each { |n| b << n; a << 7 if n == 3 }; a == b
<eval-in__> volty => true (https://eval.in/220170)
<baweaver> very rarely should you actually use nil
<volty> safe?
doodlehaus has quit [Remote host closed the connection]
<sevenseacat> mutating an array as you iterate over it doesnt seem wise
<baweaver> what's the point of that?
thagomizer has quit [Quit: Leaving.]
<volty> for me it's wise if it is safe
<sevenseacat> define 'safe'
<baweaver> false dichotomy, but humor us
fuhgeddaboudit has joined #ruby
<volty> i can do it with enum, but if the semantics is the same, then it is all the same
<baweaver> what's the reasoning behind that code?
<b3itz> how do i print two ints within a string
jenrzzz has quit [Read error: Connection reset by peer]
<b3itz> like Side1 "side1" side2 "side2
<volty> baweaver: asking me?
<b3itz> i should know this
<baweaver> yeah
robustus|Off has quit [Ping timeout: 255 seconds]
<b3itz> im just too lazy to look
dkb20k has quit [Ping timeout: 255 seconds]
<volty> accumulating visited nodes (as I go)
<volty> ops, to visit
marr has quit [Ping timeout: 265 seconds]
<baweaver> google it, regex b3itz
<b3itz> found it
jenrzzz has joined #ruby
Pupeno_ has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
<baweaver> I'd still avoid the mutation, but as to how to avoid it, the example is still too vague honestly.
<volty> i wanted to do it with e = lst.to_enum & e.next, then saw it's all the same with e.each, then (all the same) with lst.each
lele has quit [Ping timeout: 244 seconds]
moritzs has quit [Ping timeout: 264 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
mathias2 has joined #ruby
<baweaver> in the long run, the more you avoid it the less headaches you'll have.
<volty> let's say you are visiting a graph and along the way you push nodes to visit (yet)
fgo_ has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
<baweaver> and if you hit a certain node it adds a flag?
<volty> baweaver: but that way I have to do it by means of adding to another array and iterating (all the same) over it
<volty> baweaver: yes, but that's later. I was asking about the semantics of each.
<baweaver> Enumerable#reduce
dkb20k has joined #ruby
<havenwood> >> erfordern 'Deutsch'
<eval-in__> havenwood => undefined method `erfordern' for main:Object (NoMethodError) ... (https://eval.in/220171)
<volty> not yet known - for reduce
<baweaver> look into map and reduce later
oo_ has quit [Remote host closed the connection]
<baweaver> map will take a collection and apply a function to each element
russt has quit [Quit: russt]
<baweaver> >> (1..5).map { |x| x * 2 }
<eval-in__> baweaver => [2, 4, 6, 8, 10] (https://eval.in/220172)
oo_ has joined #ruby
<volty> eh? what has map to do with ever changing array ?
sinequanon has quit [Remote host closed the connection]
<baweaver> reduce will take a collection and use the function to fold it
<baweaver> (1..5).reduce(0) { |accumulator, x| accumulator + x }
<volty> I am a strong injecter, thx :)
<baweaver> >> (1..5).reduce(0) { |accumulator, x| accumulator + x }
<eval-in__> baweaver => 15 (https://eval.in/220173)
<baweaver> as to why you need to change the array as you go is odd.
mathias2 has quit [Ping timeout: 244 seconds]
arescorpio has joined #ruby
<volty> baweaver: are you trolling at me ? :)
sinequanon has joined #ruby
<baweaver> No, trying to understand what the point is
sdwrage has quit [Quit: Leaving]
<volty> I told you: think about a graph
garycruise has joined #ruby
<baweaver> I am and I still don't entirely see the point of doing it in that way or even really what you're trying to accomplish.
gregf has quit [Quit: WeeChat 1.0.1]
tkuchiki has joined #ruby
<volty> so, from a node, I push only certain connected nodes
seanp2k has quit [Quit: seanp2k]
fgo has joined #ruby
<volty> at this stage I am doing it (because I prefer, at least at this stage) with push
sailias has joined #ruby
lele has joined #ruby
dorei has quit []
fgo_ has quit [Ping timeout: 265 seconds]
<volty> anyway inject would have equivalent logic/ behavior
moritzs has joined #ruby
<volty> (though only complicating the simple)
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
<volty> But I can give you a wondering free tourist tour example, if you prefer :)
<zenspider> mutating your array as you enumerate it is just asking for trouble
doritostains has joined #ruby
kaspergrubbe has quit [Quit: leaving]
pdtpatrick_ has quit [Quit: pdtpatrick_]
Techguy305 has quit [Ping timeout: 272 seconds]
it0a has quit [Quit: WeeChat 1.0.1]
<volty> ok, that's what I wanted to know, thx zenspider. What about to_enum?
<zenspider> what about it?
autonomousdev has joined #ruby
<volty> >> a = [1,2,3,4]; e = a.to_enum; b = []; e.each { |n| b << n; a << 7 if n == 3 }; a == b
<eval-in__> volty => true (https://eval.in/220174)
<sevenseacat> thx zenspider for saying exactky what i said :P
jimbach has quit [Remote host closed the connection]
nateberkopec has joined #ruby
<volty> (e.each must use next internally)
kaspergrubbe has joined #ruby
autonomousdev has quit [Client Quit]
lele has quit [Ping timeout: 265 seconds]
<zenspider> sometimes it needs to be pounded in
<zenspider> volty: that's just externalizing your enumerator... you're still mutating what you're walking over
<zenspider> gotta go. pre-nerd-party dinner
autonomousdev has joined #ruby
<volty> mah, if I follow your advice I will have to put them in another array and walk over it, all the same
adriancb has joined #ruby
Techguy305 has joined #ruby
<volty> I'll finish with an enumerator of my own, but I suspect it will be equivalent to the built one
AndyBotwin has quit [Quit: Leaving]
dideler has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Client Quit]
rkalfane has joined #ruby
kaspergrubbe has joined #ruby
lele has joined #ruby
havenwood has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
nickenchuggets has quit [Quit: nickenchuggets]
autonomousdev has quit [Client Quit]
fgo_ has joined #ruby
parabolize has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
i8igmac has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
goodenough has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<b3itz> file.write("%-10s %-25s %-15s %-16s\n" % [average, sd, median, data])
<b3itz> what does the % part do
charliesome has joined #ruby
kaspergrubbe has quit [Quit: leaving]
<b3itz> %-10s
kaspergrubbe has joined #ruby
<b3itz> nvm
rushed has quit [Quit: rushed]
jimbach has joined #ruby
hesco has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
aspires has quit []
Asher has quit [Read error: Connection reset by peer]
nonks has joined #ruby
Asher has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
jonr22 has joined #ruby
skolman has quit [Remote host closed the connection]
i_s has joined #ruby
moritzs has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
phutchins has quit [Ping timeout: 256 seconds]
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
Akuma has joined #ruby
Akuma has quit [Client Quit]
<b3itz> help!
<b3itz> so,..
<b3itz> i have this: def create_writefile(file, square_area) File.open(ARGV[1], 'a') do |file| file.write(square_area) end end
jonr22 has quit [Ping timeout: 255 seconds]
<b3itz> but when i call puts create_writefile(ARGV[1], square_area)
Xeago has quit [Remote host closed the connection]
<b3itz> i get a 5 for 2 error
i_s has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
Akuma has joined #ruby
nonks has joined #ruby
wallerdev has quit [Quit: wallerdev]
<sevenseacat> gist the full error
jonr22 has joined #ruby
rshetty has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
it0a has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
hephaestus_rg has left #ruby [#ruby]
danijoo has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
i8igmac has joined #ruby
connix has joined #ruby
rshetty has joined #ruby
TP4MyBunghole has quit [Remote host closed the connection]
krz has joined #ruby
takle has joined #ruby
Techguy305|2 has joined #ruby
garycruise has quit [Remote host closed the connection]
Techguy305 has quit [Ping timeout: 240 seconds]
rushed has joined #ruby
troyready has quit [Ping timeout: 250 seconds]
takle has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Quit: leaving]
nickenchuggets has joined #ruby
hesco has joined #ruby
<parabolize> Replace the ARGV[1] with file? Your not doing anything with that first argument to create_write.
mathias2 has joined #ruby
abuzze has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kaspergrubbe has joined #ruby
fabrice31 has joined #ruby
aisdaidoqoq has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
AR45 has quit [Quit: ZNC - http://znc.in]
<parabolize> s/Your/You're
dary has joined #ruby
dary has left #ruby [#ruby]
abuzze_ has quit [Ping timeout: 256 seconds]
dary has joined #ruby
dary has left #ruby [#ruby]
sinequanon has quit [Remote host closed the connection]
goodenough has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
mathias2 has quit [Ping timeout: 245 seconds]
M-Technic has quit [Quit: leaving]
wjimenez5271 has quit [Ping timeout: 255 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
wallerdev has joined #ruby
rushed has joined #ruby
mary5030 has joined #ruby
M-Technic has joined #ruby
elemenopy has joined #ruby
<elemenopy> hey guys good evening , just wondering how you would think is best to get a count of items matching two parameters from 'sequel' in one line? like the sql query like 'select count(*) from xyztable where column1='a' and column2='b'
Dude007 has joined #ruby
Dude007 has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 245 seconds]
<elemenopy> nvm its like XYZ.count
thomas has quit [Quit: Reconnecting]
amclain has joined #ruby
thomas has joined #ruby
<Cat_1> Something like that
marcdel has joined #ruby
melik has quit [Quit: (null)]
adriancb has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
melik has joined #ruby
melik has quit [Client Quit]
adriancb has joined #ruby
<elemenopy> connix is spamming me porn sites
<elemenopy> not sure who to tell
charliesome has quit [Quit: zzz]
<Cat_1> Some spam bots got banned for that earlier.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has quit [Read error: Connection reset by peer]
takle has joined #ruby
<mozzarella> is it good porn or shitty porn?
marcdel_ has joined #ruby
alex_the_designe has quit [Ping timeout: 255 seconds]
JoshGlzBrk has joined #ruby
marcdel has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mary5030 has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
<Cat_1> I ain't clicking on it
<Cat_1> Probably bad porn filled with malware
mary5030 has joined #ruby
takle has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
Guest81656 has joined #ruby
dc_ has joined #ruby
djbkd has quit [Quit: My people need me...]
volty has quit [Quit: Konversation terminated!]
boombadaroomba has quit [Ping timeout: 256 seconds]
renderful has quit [Remote host closed the connection]
<mozzarella> guys, is it possible to take every Xth item in an array?
<mozzarella> is there an enumerable method that does that?
<Cat_1> Yes
<Cat_1> use either select or reject with a mod block
<mozzarella> I'm all ears bro
rshetty has quit [Remote host closed the connection]
mark06 has joined #ruby
<Cat_1> array.select { |a| a % 5 == 0 }
<Cat_1> every item divisible by 5
<mozzarella> it's not an array of numbers
jonr22 has quit [Remote host closed the connection]
<mozzarella> but I guess I could use each_slice and use the last item in every slice
<Cat_1> oh
rushed has joined #ruby
<Cat_1> Misread
nyanz has joined #ruby
x1337807x has joined #ruby
<mozzarella> >> ('a'..'z').each_slice(5).map(&:last).to_a
<eval-in__> mozzarella => ["e", "j", "o", "t", "y", "z"] (https://eval.in/220187)
jenrzzz has quit [Ping timeout: 240 seconds]
<mozzarella> I guess that could work
mary5030 has quit [Remote host closed the connection]
<Cat_1> a.map.with_index{ |x,i| i % 5 == 0 }
tlarevo has quit [Read error: Connection reset by peer]
fgo_ has quit [Ping timeout: 250 seconds]
_maes_ has joined #ruby
tyll_ has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
yetanotherdave has quit [Ping timeout: 258 seconds]
_maes_ has quit [Client Quit]
_maes_ has joined #ruby
fgo_ has joined #ruby
tyll has quit [Ping timeout: 245 seconds]
connix has quit [Ping timeout: 250 seconds]
_maes_ has quit [Client Quit]
_maes_ has joined #ruby
meinside has joined #ruby
_maes_ has quit [Client Quit]
tlarevo has joined #ruby
<elemenopy> if i have a console based .rb file that i run manually currently. what would you suggest i do to make it run indefinitely (its already in infinite loop in code) upon startup?
<Cat_1> what environment?
<elemenopy> CentOS
<elemenopy> just rc.local?
b3itz has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
<elemenopy> nvm found some docs ty
i8igmac has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
lkba has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
<godd2> I wouldn't mind there being Enumerable#take_nth(n)
tlarevo has joined #ruby
Techguy305|2 has quit [Ping timeout: 264 seconds]
lampd1 has joined #ruby
<Cat_1> Do you have something like Upstart in centOS?
i8igmac has joined #ruby
<elemenopy> im not sure but i think i will make it a service or daemonize it
<elemenopy> so i can do like 'service dataminer start'
Spami has joined #ruby
cantonic has joined #ruby
<parabolize> I'm pretty sure rc.local is what most people using that distro would use https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-boot-init-shutdown-run-boot.html
greenride has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
<elemenopy> yea i think it will be something like that. im running into a problem now with too many database connections. trying to find a way to make less 'connect' calls
<elemenopy> it's more logistics and code review though for that type of problem
totic_ has joined #ruby
totic_ has left #ruby [#ruby]
totic has joined #ruby
<greenride> On Yosemite, does anyone have problems with the command `gem install libv8 -v '3.16.14.3'`? I get an error message stating Unable to find a compiler officially supported by v8.
kireevco has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
wallerdev has quit [Quit: wallerdev]
Mars` has joined #ruby
<zenspider> greenride: do you have a complier setup post-upgrade?
<Cat_1> xcode-select --install ?
<zenspider> cc --version
patrick99e99 has joined #ruby
<zenspider> compiler even. damn.
<Cat_1> I had to upgrade a whole bunch of things to get Yosemite to work
<zenspider> I just had to install the command-line tools. worked great
<greenride> Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
<zenspider> that's good. same as me.
<greenride> That was the output of cc -version
<zenspider> let's see what v8 wants
<greenride> v8 wants
<greenride> It is recommended to use GCC v4.4 or higher
magic__ has joined #ruby
<zenspider> greenride: homebrew doesn't specify a particular compiler, so it should just work
<zenspider> no patches either
<zenspider> does seem to require something called gyp tho, so maybe it is a dependency thing?
<zenspider> I dunno. you might want to just try `brew install v8` to test that out
cantonic has quit [Quit: cantonic]
<zenspider> they are doing version 3.25.30 specificially tho
magic_ has quit [Ping timeout: 244 seconds]
patrick99e99 has quit [Ping timeout: 244 seconds]
<greenride> zenspider: I installed v8 with brew, and that doesn't help.
<greenride> zenspider: Does gem install libv8 -v '3.16.14.3' work for you?
<Cat_1> I need an idea for a project...
<zenspider> greenride: "that doesn't help" doesn't help
<sevenseacat> lol
<zenspider> if you successfully installed it via brew it DOES help. it tells you that you _can_
nateberkopec has quit [Quit: Leaving...]
Mars` has quit [Ping timeout: 264 seconds]
<greenride> zenspider: 'brew install v8' succeeds.
<greenride> zenspider: gem install libv8 -v '3.16.14.3' still fails on Yosemite.
<zenspider> so then the problem is with the gem, not the project
<zenspider> 3.16.14.7 installs fine
<greenride> Does 3.16.14.3 fail for you?
jimbach has quit [Remote host closed the connection]
totic has quit [Quit: Leaving.]
<zenspider> yes. so go use the patched up version that works.
elemenopy has quit []
<greenride> yes == failure ?
<zenspider> did you ask a yes or no question? did I not respond appropriately?
mathias2 has joined #ruby
rshetty has joined #ruby
<greenride> I asked the question poorly. And, you answered appropriately.
<greenride> zenspider: Thanks.
<sevenseacat> zenspider: you need to answer in the form of interpretive dance.
Kricir has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
<zenspider> just use the newer version. it'll be fine.
<greenride> zenspider: Thanks.
<zenspider> sevenseacat: I graduated from the evergreen state college. don't joke about that.
<sevenseacat> lol
dc_ has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
mary5030 has joined #ruby
mathias2 has quit [Ping timeout: 240 seconds]
Soliah has quit [Quit: Soliah]
<talnti> washingtonian here too ;)
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aspires has joined #ruby
<greenride> `gem install libv8 -v '3.16.14.7'` gives a different error. ERROR: While executing gem … (NoMethodError) undefined method 'size' for nil:NIlClass
n008f4g_ has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
droidburgundy has joined #ruby
<zenspider> % gem i -i xxx libv8
<zenspider> Fetching: libv8-3.16.14.7-x86_64-darwin-14.gem (100%)
<zenspider> Successfully installed libv8-3.16.14.7-x86_64-darwin-14
<zenspider> *shrug*
* cleopatra dance
procat has joined #ruby
<cleopatra> morning I returned to work :(
droidburgundy has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenride has quit [Quit: Leaving.]
danjordan_ has joined #ruby
danjordan has quit [Ping timeout: 240 seconds]
danjordan_ is now known as danjordan
Soliah has joined #ruby
Blizzy is now known as Guest83282
Guest83282 has quit [Killed (weber.freenode.net (Nickname regained by services))]
Guest83282 has joined #ruby
goodenough has joined #ruby
procat has quit [Ping timeout: 244 seconds]
blizzy has joined #ruby
radic has quit [Disconnected by services]
i_s has joined #ruby
radic_ has joined #ruby
iamjarvo has joined #ruby
cantonic has joined #ruby
i_s has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
jlast has quit [Remote host closed the connection]
kireevco has joined #ruby
it0a has quit [Ping timeout: 272 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
i8igmac has quit [Remote host closed the connection]
Techguy305|2 has joined #ruby
braincra- has quit [Quit: bye bye]
seanp2k has joined #ruby
djbkd has joined #ruby
marcdel_ has quit [Ping timeout: 256 seconds]
durnik has joined #ruby
braincrash has joined #ruby
Soda has joined #ruby
anarang has joined #ruby
marcdel has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 244 seconds]
melik has joined #ruby
JohnBat26 has joined #ruby
connix has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
Snarkz has joined #ruby
arup_r has quit [Quit: Leaving.]
fabrice31 has joined #ruby
coderhs has quit [Quit: Leaving]
<mozzarella> GUYS
<mozzarella> I'm try to return a value from a thread but it doesn't work
<mozzarella> I always get nil
<sevenseacat> thats a shame.
djbkd has quit [Remote host closed the connection]
nrsk has joined #ruby
govg has joined #ruby
aspires has quit []
x1337807x has joined #ruby
systempause has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
djbkd has joined #ruby
mary5030 has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
Steven___ has joined #ruby
kireevco has quit [Quit: Leaving.]
chipotle has quit [Quit: cya]
durnik has quit [Ping timeout: 272 seconds]
durnik has joined #ruby
zorak8 has quit [Ping timeout: 244 seconds]
<zenspider> >> require 'date'; Date.new(2014, 10, 26) + 2
<eval-in__> zenspider => #<Date: 2014-10-28 ((2456959j,0s,0n),+0s,2299161j)> (https://eval.in/220209)
JBreit has joined #ruby
mathias2 has joined #ruby
kyb3r_ has joined #ruby
systempause has quit [Quit: Page closed]
Solnse has joined #ruby
freerobby has quit [Quit: Leaving.]
goodenough has quit [Remote host closed the connection]
dc_ has joined #ruby
goodenough has joined #ruby
goodenough has quit [Remote host closed the connection]
Steven___ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
mathias2 has quit [Ping timeout: 250 seconds]
Eiam_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
takle has joined #ruby
dc_ has quit [Ping timeout: 272 seconds]
JBreit has left #ruby ["Leaving"]
mistergibson has joined #ruby
takle has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
benzrf is now known as benzrf|offline
shortCircuit__ has joined #ruby
djbkd has quit [Quit: My people need me...]
yfeldblum has joined #ruby
russt has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
sargas has joined #ruby
jhwhite has joined #ruby
jhwhite has left #ruby [#ruby]
f0ster has quit [Ping timeout: 255 seconds]
Lucky___ has joined #ruby
i_s has joined #ruby
chipotle has joined #ruby
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
phutchins has quit [Ping timeout: 258 seconds]
larissa has quit [Quit: Leaving]
i_s has quit [Ping timeout: 255 seconds]
corehook has joined #ruby
rushed has quit [Quit: rushed]
jlast has joined #ruby
JR_ has joined #ruby
<JR_> hi is this channel also for rails?
<pipework> JR_: #rubyonrails
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
graydot has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
<JR_> doesn't seem to have a channel on that
Soda has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jlast has quit [Ping timeout: 240 seconds]
<pipework> JR_: You'd be wrong.
dseitz has joined #ruby
<JR_> how can I join the channel
<JR_> it seems that I need to be identified first
<pipework> Then you should probably identify using nickserv or register an account first then identify.
robbyoconnor has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
<JR_> where can i register an account
rshetty has quit [Remote host closed the connection]
mary5030 has joined #ruby
JR_ is now known as JR___
Solnse has quit [Remote host closed the connection]
<JR___> its done thanks
<JR___> (:
JR___ has left #ruby ["Leaving"]
oo_ has joined #ruby
chipotle has quit [Quit: cya]
Techguy305|2 has quit [Ping timeout: 244 seconds]
wjimenez5271 has joined #ruby
rshetty has joined #ruby
chipotle has joined #ruby
DTSCode is now known as dTS
dTS is now known as dTSCode
graydot has quit [Quit: graydot]
nagaraj has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
jack_rabbit has quit [Ping timeout: 245 seconds]
benzrf|offline is now known as benzrf
rushed has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
Morkel has joined #ruby
nagaraj has quit [Ping timeout: 265 seconds]
mathias2 has joined #ruby
nagaraj has joined #ruby
takle has joined #ruby
connix has quit []
spastorino has quit [Quit: Connection closed for inactivity]
patrick99e99 has joined #ruby
Joufflu has joined #ruby
mikepack has quit [Remote host closed the connection]
tlarevo has quit [Ping timeout: 264 seconds]
takle has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
gsd has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
fandi has quit [Quit: Leaving]
graydot has joined #ruby
connix has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
theotherstupidgu has quit [Quit: leaving]
arescorpio has quit [Excess Flood]
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinequanon has joined #ruby
dTSCode is now known as DTSCode
danijoo has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
danijoo has joined #ruby
gaganjyot has joined #ruby
zorbsoner has joined #ruby
<shevy> mozzarella are you using mutex? http://ruby-doc.org/core-2.1.4/Mutex.html
jusmyth has joined #ruby
pen has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
corehook has quit [Remote host closed the connection]
arup_r has joined #ruby
shortCircuit__ has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
wjimenez_ has joined #ruby
<shevy> dance, people, let's dance!
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorbsoner has left #ruby ["Leaving"]
<shevy> hey sevenseacat there is more cats here ... I approve of the Cat_1 nick
<shevy> and connix is a bot :\ :/
wjimenez5271 has quit [Ping timeout: 255 seconds]
cleopatra has quit [Read error: Connection timed out]
marcdel has quit []
lxsameer has joined #ruby
gmas has joined #ruby
pengin has quit [Remote host closed the connection]
rudisimo has quit [Ping timeout: 258 seconds]
pengin has joined #ruby
tlarevo has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
fgo_ has quit [Ping timeout: 258 seconds]
pengin has quit [Ping timeout: 250 seconds]
corehook has joined #ruby
fabrice31 has joined #ruby
chipotle has joined #ruby
shortCircuit__ has joined #ruby
JoshGlzBrk has joined #ruby
linduxed has quit [Ping timeout: 244 seconds]
DTSCode has quit [Read error: Connection reset by peer]
drkyro has joined #ruby
Channel6 has joined #ruby
Channel6 has quit [Remote host closed the connection]
linduxed has joined #ruby
wigirc has quit [Ping timeout: 244 seconds]
connix has quit []
fabrice31 has quit [Ping timeout: 255 seconds]
DTSCode has joined #ruby
nagaraj1 has joined #ruby
nagaraj has quit [Ping timeout: 265 seconds]
govg has quit [Quit: leaving]
Channel6 has joined #ruby
linduxed has quit [Ping timeout: 264 seconds]
govg has joined #ruby
Channel6 has quit [Client Quit]
Channel6 has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
Pip has joined #ruby
tlarevo has quit [Ping timeout: 240 seconds]
linduxed has joined #ruby
frode15243 has joined #ruby
mikepack has joined #ruby
sinequanon has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 250 seconds]
fandi has joined #ruby
corehook has quit [Remote host closed the connection]
tlarevo has joined #ruby
benzrf is now known as benzrf|offline
tobago has joined #ruby
nyanz has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 245 seconds]
<arup_r> Is Rake official doco link dead? http://docs.rubyrake.org/
noop has joined #ruby
<Pip> How is ruby today?
josephndenton has quit [Ping timeout: 250 seconds]
godd2 has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
abuzze has quit [Remote host closed the connection]
fgo_ has joined #ruby
abuzze has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
<shevy> Pip as always - small and beautiful
byprdct has joined #ruby
AliRezaTaleghani has joined #ruby
<sevenseacat> arup_r: im not sure where you got that link from, but its wrong.
timonv_ has joined #ruby
<arup_r> sevenseacat : Useful Resources in this link http://www.stuartellis.eu/articles/rake/
ghr has joined #ruby
<sevenseacat> why would you pick links from some random blog article?
<sevenseacat> instead of going to the official docs
<arup_r> No... They mentioned... so I clicked
<arup_r> I was following that blog to build my stuff
AliRezaTaleghani has quit [Client Quit]
AliRezaTaleghani has joined #ruby
AliRezaTaleghani has quit [Changing host]
AliRezaTaleghani has joined #ruby
oleo has quit [Quit: Verlassend]
Eiam has quit [Ping timeout: 245 seconds]
<arup_r> rshetty: How are you ?
<arup_r> :-)
<sevenseacat> arup_r: well now you know, that URL isnt the official doco link.
<arup_r> Humm.. I see
fgo_ has quit [Ping timeout: 264 seconds]
psy_ has quit [Remote host closed the connection]
Akuma has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 244 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
epitron has quit [Ping timeout: 250 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
nagaraj1 has quit [Quit: nagaraj1]
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
epitron has joined #ruby
i_s has joined #ruby
tagrudev has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
byprdct has quit []
thoolihan has quit [Ping timeout: 258 seconds]
procat has joined #ruby
Channel6 has quit [Quit: Leaving]
timonv^ has joined #ruby
lampd1 has quit []
timonv_ has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
procat has quit [Ping timeout: 245 seconds]
boombadaroomba has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<last_staff> good morning everyone
apeiros has joined #ruby
thoolihan has joined #ruby
mistermocha has joined #ruby
dc_ has joined #ruby
skolman_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
<gr33n7007h> led PARTAAAYYYYY! t = File.open('/dev/console'); loop { t.ioctl(0x4B32, rand(0..6)) }
kamil has joined #ruby
boombadaroomba has quit [Ping timeout: 250 seconds]
apeiros has quit [Ping timeout: 244 seconds]
dc_ has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
gaganjyot has quit [Read error: Connection reset by peer]
timonv^ has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
Macaveli has joined #ruby
oo_ has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
thoolihan has quit [Ping timeout: 244 seconds]
wjimenez_ has quit [Remote host closed the connection]
bal has joined #ruby
thoolihan has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
russt has quit [Quit: russt]
lolmaus has joined #ruby
ndrei has joined #ruby
matrixise has quit [Ping timeout: 255 seconds]
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kartouch_ is now known as kartouch
aganov has joined #ruby
kamil has quit [Quit: Leaving...]
andikr has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
mistermocha has quit [Remote host closed the connection]
maestrojed has joined #ruby
sinequanon has joined #ruby
sinequan_ has joined #ruby
corehook has joined #ruby
sinequan_ has quit [Remote host closed the connection]
sinequan_ has joined #ruby
AliRezaTaleghani has quit [Ping timeout: 264 seconds]
sinequan_ is now known as sinequanon_
sinequanon_ has quit [Client Quit]
josephndenton has joined #ruby
charliesome has quit [Quit: zzz]
sinequanon has quit [Ping timeout: 265 seconds]
abuzze_ has joined #ruby
josephndenton has quit [Ping timeout: 258 seconds]
abuzze has quit [Ping timeout: 250 seconds]
fgo_ has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
AliRezaTaleghani has joined #ruby
fgo_ has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
davedev24_ has quit []
corehook has quit [Remote host closed the connection]
Mars` has joined #ruby
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
adac has joined #ruby
seanp2k has quit [Quit: seanp2k]
<adac> Why gets open-uri: "blob = open(ic.source_url).read" another encoding (utf8) then mechanize "blob = @agent.get(ic.source_url).content"? And how to set utf8 coding also on mechanize?
bigkevmcd has joined #ruby
jheg has joined #ruby
kireevco has quit [Quit: Leaving.]
beilabs has quit [Quit: Be back later ...]
fabrice31 has joined #ruby
olivier_bK has joined #ruby
terlar has joined #ruby
yfeldblum has quit [Remote host closed the connection]
timonv_ has joined #ruby
doritostains has quit [Quit: doritostains]
gmas has quit [Ping timeout: 265 seconds]
lidaaa has quit [Ping timeout: 244 seconds]
ringarin has joined #ruby
adriancb has joined #ruby
desp has joined #ruby
jheg has quit [Quit: jheg]
ringarin has quit [Client Quit]
michaeldeol has joined #ruby
jusmyth has quit [Quit: Leaving.]
adriancb has quit [Ping timeout: 256 seconds]
desp has quit [Quit: This computer has gone to sleep]
Joufflu has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
nagaraj has joined #ruby
cleopatra has joined #ruby
TomyWork has joined #ruby
tlarevo has quit [Ping timeout: 240 seconds]
RitterJack has joined #ruby
tlarevo has joined #ruby
kamil has joined #ruby
banister has joined #ruby
rshetty has joined #ruby
corehook has joined #ruby
psy_ has joined #ruby
Xeago has joined #ruby
duncannz has joined #ruby
zorak8 has joined #ruby
fandi has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
Dude007 has joined #ruby
einarj has joined #ruby
abuzze_ has quit [Remote host closed the connection]
abuzze has joined #ruby
wigirc has joined #ruby
wigirc has quit [Max SendQ exceeded]
apeiros has joined #ruby
tvw has joined #ruby
nvdpl_ has joined #ruby
philwantsfish has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
wigirc has joined #ruby
Juanchito has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
andrewlio has joined #ruby
mathias2 has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 264 seconds]
timonv_ has quit [Remote host closed the connection]
i_s has joined #ruby
nagaraj has quit [Quit: nagaraj]
fgo_ has joined #ruby
<gr33n7007h> (pry):5: [BUG] Segmentation fault at 0x00000000000101 2.1.4 very buggy
i_s has quit [Ping timeout: 272 seconds]
rushed has quit [Quit: rushed]
ghr has joined #ruby
tlarevo has quit [Remote host closed the connection]
fandi has joined #ruby
vt102 has quit [Ping timeout: 265 seconds]
fgo_ has quit [Ping timeout: 264 seconds]
TP4MyBunghole has joined #ruby
<Hanmac> gr33n7007h: depends ... what have you done in your code?
ghr has quit [Ping timeout: 272 seconds]
pa3ce has joined #ruby
<gr33n7007h> Hanmac, require 'socket'; iwreq = ["wlan1", " " * 32, 32, 0].pack("a16pII"); s = Socket.new(:INET, :DGRAM, 0); s.ioctl(0x8B1B, iwreq); int, essid, len, flags = iwreq.unpack("a16pII")
<gr33n7007h> works in 1.9.3 fails in >= 2.0
clauswitt has joined #ruby
Cust0sLim3n has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby
Cust0sLim3n has joined #ruby
timonv_ has joined #ruby
alex88 has joined #ruby
msgodf has joined #ruby
livathinos has joined #ruby
skolman_ has quit [Remote host closed the connection]
Cust0sLim3n has quit [Ping timeout: 240 seconds]
skolman_ has joined #ruby
otherj has joined #ruby
beilabs has joined #ruby
alex88 has quit [Client Quit]
Mars` has quit [Ping timeout: 245 seconds]
ringarin has quit [Quit: Leaving]
troulouliou_dev has joined #ruby
beilabs has quit [Client Quit]
tlarevo_ has joined #ruby
cleopatra has quit [Read error: Connection timed out]
cleopatra has joined #ruby
beilabs_ has joined #ruby
TP4MyBunghole is now known as TPBallbag
moritzs has joined #ruby
skolman_ has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
sarkis has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
blackmesa has joined #ruby
jusmyth has joined #ruby
beilabs_ has quit [Quit: Be back later ...]
NoNMaDDeN has joined #ruby
sevenseacat has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 265 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
alex88 has joined #ruby
jusmyth has left #ruby [#ruby]
Dude007 has quit [Remote host closed the connection]
moritzs has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
nfk has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
melik has quit [Quit: (null)]
mclee has quit [Ping timeout: 255 seconds]
pusewicz has quit [Ping timeout: 255 seconds]
pengin has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
Cyrax_ has quit [Ping timeout: 255 seconds]
Gadgetoid has quit [Ping timeout: 245 seconds]
beilabs_ has joined #ruby
pusewicz has joined #ruby
Cyrax_ has joined #ruby
<rpag> >> require 'socket'; iwreq = ["wlan1", " " * 32, 32, 0].pack("a16pII"); s = Socket.new(:INET, :DGRAM, 0); s.ioctl(0x8B1B, iwreq); int, essid, len, flags = iwreq.unpack("a16pII")
<eval-in__> rpag => (https://eval.in/220271)
<rpag> ah not allowed :)
siwica has joined #ruby
cleopatra has quit [Read error: Connection timed out]
cleopatra has joined #ruby
mityaz has joined #ruby
jenrzzz has joined #ruby
Gadgetoid has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
arup_r has quit [Remote host closed the connection]
ghr has joined #ruby
elaptics`away is now known as elaptics
mathias2 has joined #ruby
timonv_ has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
beilabs_ has quit [Quit: Be back later ...]
graydot has quit [Quit: graydot]
pengin has joined #ruby
gaussblurinc1 has joined #ruby
mclee has joined #ruby
Seich has quit [Ping timeout: 244 seconds]
talntid has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
narph has joined #ruby
_5kg has joined #ruby
hamakn has quit [Remote host closed the connection]
nonks has joined #ruby
hamakn has joined #ruby
takle has joined #ruby
pengin has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
abuzze_ has joined #ruby
talnti has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
timonv_ has joined #ruby
chthon has joined #ruby
patrick99e99 has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
Seich has joined #ruby
abuzze has quit [Ping timeout: 258 seconds]
virtualize has quit []
hamakn has quit [Ping timeout: 255 seconds]
scruple has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
AFKGeek has joined #ruby
mikepack has joined #ruby
cleopatra has quit [Read error: Connection timed out]
cleopatra has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 256 seconds]
tokik has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
fgo_ has joined #ruby
otherj has quit [Quit: .]
nonks has quit [Ping timeout: 250 seconds]
fgo_ has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
arup_r has joined #ruby
emmesswhy has joined #ruby
matrixise has joined #ruby
rippa has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
ta has joined #ruby
arup_r_ has joined #ruby
workmad3 has joined #ruby
<arup_r_> Any body using Amazon's DynamoDB locally ? I am looking for a way to store the credentials there... But not getting the way to do that
troulouliou_dev has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
ikaros has joined #ruby
ta_ has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
pipework has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
blackmesa has joined #ruby
ta has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
pipework has joined #ruby
pipework has quit [Changing host]
pipework has joined #ruby
rodfersou has joined #ruby
shock_one has joined #ruby
AndChat| has quit [Ping timeout: 244 seconds]
banister has joined #ruby
marr has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
n3phos has joined #ruby
takle has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 250 seconds]
coderhs has quit [Ping timeout: 272 seconds]
Dude007 has joined #ruby
otherj has joined #ruby
kamil has quit [Disconnected by services]
gaussblurinc1 has quit [Read error: Connection reset by peer]
gaussblurinc11 has joined #ruby
oo_ has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
oo_ has joined #ruby
takle has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
ta has joined #ruby
ta has quit [Read error: Connection reset by peer]
beilabs_ has joined #ruby
charliesome has joined #ruby
gccostabr has joined #ruby
ta has joined #ruby
fandi has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 244 seconds]
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
kaspergrubbe is now known as Guest25509
Guest25509 has quit [Client Quit]
timonv_ has joined #ruby
Spami has joined #ruby
ta_ has joined #ruby
kaspergr1bbe has joined #ruby
ptrrr has quit [Quit: ptrrr]
kaspergr1bbe has quit [Client Quit]
elaptics is now known as elaptics`away
kaspergr1bbe has joined #ruby
ta has quit [Ping timeout: 250 seconds]
i_s has joined #ruby
takle has quit [Read error: Connection reset by peer]
takle has joined #ruby
elaptics`away is now known as elaptics
sarkis has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
TPBallbag has quit [Remote host closed the connection]
Hightower_ has quit [Quit: There's nothing dirtier then a giant ball of oil]
i_s has quit [Ping timeout: 264 seconds]
sarkis has quit [Ping timeout: 265 seconds]
Hightower_ has joined #ruby
mikepack has joined #ruby
bascht has quit [Quit: WeeChat 0.4.2]
Spami has quit [Quit: This computer has gone to sleep]
adac has quit [Remote host closed the connection]
bascht has joined #ruby
n008f4g_ has joined #ruby
kedare has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
takle has quit [Ping timeout: 272 seconds]
bascht has quit [Client Quit]
bascht has joined #ruby
nonks has joined #ruby
tokik has joined #ruby
Jet4Fire has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fgo_ has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
czaks has quit [Quit: SERVER CHANGE]
rdark has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
ldnunes has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
ta has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
ptrrr has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
siwica has quit [Ping timeout: 265 seconds]
drawingthesun has joined #ruby
dc_ has joined #ruby
charliesome has quit [Quit: zzz]
<Jet4Fire> Hello guys!
<soahccc> I have a ruby application here (opengl) and it's kindof not very performant. Without dissecting the code and putting benchmarks all over the place: Is there a quick way to see which part of the application is creating the load?
_5kg has quit [Ping timeout: 264 seconds]
<workmad3> soahccc: ruby-prof maybe
<zenspider> ruby-prof and the like will help
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
beilabs_ has quit [Quit: Be back later ...]
<soahccc> Thanks, I think I worked with ruby-prof once. I have this thought in my head that all these tools were 1.8 only but this apparently is not the case :)
dc_ has quit [Ping timeout: 244 seconds]
takle has joined #ruby
alex88 has quit [Remote host closed the connection]
kaspergr1bbe has quit [Quit: leaving]
kaspergr1bbe has joined #ruby
kaspergr1bbe has quit [Client Quit]
kaspergr1bbe has joined #ruby
shock_one has quit [Quit: Be back later ...]
anaeem1 has quit [Remote host closed the connection]
agjacome has joined #ruby
shock_one has joined #ruby
alex88 has joined #ruby
anaeem1 has joined #ruby
Guest81656 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jet4Fire has quit [Quit: leaving]
alex88 has quit [Remote host closed the connection]
tvw has quit []
aspiers has quit [Read error: No route to host]
alex88 has joined #ruby
doev has joined #ruby
roolo has joined #ruby
shock_one has quit [Quit: Lingo: www.lingoirc.com]
mathias2 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Remote host closed the connection]
kaspergr1bbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
ikaros has quit [Quit: Ex-Chat]
kaspergrubbe is now known as Guest98929
workmad3 has joined #ruby
Guest98929 has quit [Client Quit]
kaspergr1bbe has joined #ruby
aspiers has joined #ruby
kaspergr1bbe has quit [Client Quit]
kaspergr1bbe has joined #ruby
fsapo has joined #ruby
Pip has left #ruby ["Leaving"]
coderhs has joined #ruby
jusmyth has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
jusmyth has left #ruby [#ruby]
arup_r_ has quit [Remote host closed the connection]
otherj has quit [Quit: .]
NoNMaDDeN has joined #ruby
otherj has joined #ruby
bluenemo has joined #ruby
takle has quit [Ping timeout: 272 seconds]
takle_ has joined #ruby
krz has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
fabrice31 has joined #ruby
takle_ has quit [Read error: Connection reset by peer]
alex88 has quit [Remote host closed the connection]
alex88 has joined #ruby
moritzs has joined #ruby
takle has joined #ruby
sevenseacat has joined #ruby
tvw has joined #ruby
patrick99e99 has joined #ruby
xrr has joined #ruby
takle has quit [Read error: No route to host]
moritzs has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
arup_r has joined #ruby
damic has quit []
patrick99e99 has quit [Ping timeout: 245 seconds]
thsig has joined #ruby
<klap> Does Enumerable#inject fold left, or right?
rdark has quit [Quit: leaving]
rdark has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
_5kg has joined #ruby
fgo_ has joined #ruby
<gaussblurinc11> what's could go wrong? bundler search gems in @global gemset (where it was installed), but I use 'rvm gemset use MyGemset && bundle exec ruby task.rb'
Morkel_ has joined #ruby
ikaros has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
ponga has joined #ruby
fgo_ has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<arup_r> Any idea why am I getting error ? https://gist.github.com/aruprakshit/e8c9798f07d4134f9a5c
otherj has quit [Quit: .]
AFKGeek has quit [Quit: Fades into the shadows]
TPBallbag is now known as TPMoosebag
TPMoosebag is now known as TPBallbag
kaspergr1bbe has quit [Quit: leaving]
kaspergr1bbe has joined #ruby
kaspergr1bbe has quit [Client Quit]
kaspergr1bbe has joined #ruby
fgo_ has joined #ruby
<Noobdog> arup_r: works fine on my end, must be something wrong with the gem
<arup_r> bundle install worked.. Because they added that class newly to the Gem.. See the Rdoc date http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/Core/CredentialProviders.html :-)
mathias2 has joined #ruby
<arup_r> Noobdog: I just mentioned the reason
<arup_r> Me is too fine
<Noobdog> oh ok
<arup_r> I installed the gem before Nov 6...
<arup_r> Noobdog: Thanks for your comment
<Noobdog> nps good luck
<arup_r> If I use AWS.config(use_ssl: false, dynamo_db: { api_verison: '2012-08-10', endpoint: 'localhost', port: '8000' }, credential_provider: provider) .. then getting error as
<arup_r> AWS::DynamoDB::Errors::InvalidAction: DynamoDB Local does not support v1 API.
<arup_r> Which one then it supports ?
<arup_r> Noobdog: ^^
krz has joined #ruby
takle has joined #ruby
<workmad3> arup_r: if you installed the gem before they added that class then your Gemfile will be locked to an older version
<workmad3> arup_r: you'll need to do a 'bundle update aws-sdk' to get the latest version installed and locked in your Gemfile
<arup_r> I did bundle install.. and previous issue gone
<arup_r> Ok
<arup_r> But install resolved the issue
<Noobdog> arup_r have you tried the other api_version
<arup_r> Which one it is?
<Noobdog> i think its '2011-12-05' from memory
<arup_r> I have 25 tabs opened for this set up.. I am lost now.. :-(
<Noobdog> 2012 is the lastest one
<arup_r> ok
Timgauthier has joined #ruby
<arup_r> Let me try it... Noobdog
Timgauthier has quit [Max SendQ exceeded]
xrr has quit []
arup_r_ has joined #ruby
shazaum has joined #ruby
<arup_r_> workmad3: Thanks for your suggestion.. I didn't know that
blackmesa has quit [Ping timeout: 256 seconds]
Timgauthier has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
kaspergr1bbe has quit [Quit: leaving]
kaspergr1bbe has joined #ruby
ixti has joined #ruby
rshetty has quit []
melik has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
Timgauthier has quit [Client Quit]
<arup_r_> AWS.config(use_ssl: false, dynamo_db: { api_verison: '2011-12-05', endpoint: 'localhost', port: '8000' }, credential_provider: provider) giving same error
<arup_r_> Noobdog
jleishman has joined #ruby
melik has quit [Ping timeout: 250 seconds]
kaspergr1bbe has quit [Quit: leaving]
ponga has quit []
kaspergrubbe has joined #ruby
i_s has joined #ruby
kaspergrubbe is now known as Guest12191
ptrrr has quit [Quit: ptrrr]
oo_ has quit [Remote host closed the connection]
n3phos has quit [Changing host]
n3phos has joined #ruby
mrfoto has joined #ruby
sarkis has joined #ruby
alex88 has quit [Remote host closed the connection]
Guest12191 is now known as kaspergrubbe_
KC9YDN has joined #ruby
<arup_r_> Does any body know which API version DynamoDB local support ?
alex88 has joined #ruby
i_s has quit [Ping timeout: 265 seconds]
ptrrr has joined #ruby
KC9YDN-2 has joined #ruby
<arup_r_> I tried all versions here - https://github.com/aws/aws-sdk-ruby/issues/549 .. None of them is working
alex88 has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 265 seconds]
alex88 has joined #ruby
KC9YDN-2 has quit [Client Quit]
VanillaGoat_ has joined #ruby
KC9YDN has quit [Ping timeout: 258 seconds]
hamakn has joined #ruby
takle has quit [Remote host closed the connection]
fgo has joined #ruby
VanillaGoat__ has quit [Ping timeout: 255 seconds]
gccostabr has quit [Quit: See you later!]
nonks has joined #ruby
vsipuli has joined #ruby
rshetty has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
kasperti_ has joined #ruby
fgo_ has joined #ruby
<vsipuli> Out of curiosity, how does one define methods that take their arguments enclosed in brackets, like Dir["*"]?
<vsipuli> Using "def foo *args; p args; end" works, but it does not seem to be equivalent to Dir["*"], because foo(["*"]) works, but Dir(["*"]) gives an error.
fgo has quit [Ping timeout: 256 seconds]
nonks has quit [Ping timeout: 250 seconds]
<shevy> vsipuli ruby cheats there
<shevy> >> class Foo; def self.[](i); puts 'you passed '+i.to_s; end; end; Foo[6]
<eval-in__> shevy => you passed 6 ... (https://eval.in/220346)
mikepack has joined #ruby
<shevy> vsipuli the name of the method should be [] or :[] respectively
<shevy> I think Dir[] is equivalent to Dir.[]
<shevy> hmm not quite
<vsipuli> shevy: So the Ruby parser has some special case handling for that construct, invoking the method named "[]" in that case?
<shevy> can't answer that right now, I have to understand why Dir.[] is not wanted first
<shevy> probably I forgot something
tyll_ is now known as tyll
mikepack has quit [Ping timeout: 240 seconds]
alex88 has quit [Remote host closed the connection]
dawkirst has joined #ruby
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 244 seconds]
doodlehaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
takle_ has joined #ruby
wpp has joined #ruby
<klap> Why does JRuby have a differemt LOAD_PATH? It also contains .
panini has joined #ruby
rudisimo has joined #ruby
vimer has joined #ruby
<rpag> klap, 1.9 stopped including '.' on the $LOAD_PATH
<rpag> maybe you're running in 1.8 mode?
vimer has quit [Client Quit]
PierreRambaud has joined #ruby
psy_ has joined #ruby
<workmad3> vsipuli: Dir["whatever"] is syntax sugar for Dir.[]("whatever")
tvw has quit [Ping timeout: 250 seconds]
<workmad3> vsipuli: that is, call the method '[]' with the argument "whatever"
<vsipuli> workmad3: Thanks. Are there any other similar cases of syntax sugar?
rudisimo has quit [Remote host closed the connection]
<vsipuli> (Or are they listed in some documentation?)
<workmad3> vsipuli: there probably is a list somewhere, but the other main cases are all similar in that they're operator overloads
<workmad3> vsipuli: e.g. 'class Foo; def bar=(new_value); end; end' gives you the ability to do 'Foo.new.bar = "new" '
<workmad3> vsipuli: and defining a method +, -, *, /, etc. let you overload operators for your own objects
kasperti_ has quit []
takle_ has quit [Ping timeout: 250 seconds]
<workmad3> vsipuli: so yes, that does mean that '1 + 2' can be thought of as syntax sugar for '1.+(2)' in ruby ;)
takle_ has joined #ruby
<workmad3> mmm, lunchtime
workmad3 is now known as wm3|away
<vsipuli> Is there any consensus on this kind of operator overloading being a desirable feature or not? It makes the syntax more terse (you don't need to write full method invocations each time), but on the other hand I sometimes find these operator overloads surprising, not realizing the language default has been overridden.
godd2 has joined #ruby
<tobiasvl> in ruby it's used quite a lot
i0n has quit [Quit: snooze]
St1gma has quit [Read error: Connection reset by peer]
alem0lar1 has joined #ruby
nateberkopec has joined #ruby
decoponyo has joined #ruby
St1gma has joined #ruby
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
decoponio has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
spyderman4g63 has joined #ruby
unCork has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Cork has quit [Ping timeout: 265 seconds]
unCork is now known as Cork
hmsimha has quit [Ping timeout: 255 seconds]
krz has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
<shevy> is it better to do this:
<shevy> string.delete!('#')
<shevy> or this
<shevy> string.delete!('#') if string.include? '#'
<jhass> the former
charliesome has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
Paradox has quit [Ping timeout: 272 seconds]
timgauthier_away has quit [Max SendQ exceeded]
dc_ has joined #ruby
aclearman037 has joined #ruby
banister has joined #ruby
Timgauthier has joined #ruby
sarkis has joined #ruby
sarkis has quit [Changing host]
sarkis has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Max SendQ exceeded]
<shevy> hmm
<shevy> I guess it will only modify in the first case if that character token can be found right?
sk87 has joined #ruby
<tobiasvl> yes
<tobiasvl> of course
<tobiasvl> it won't delete anything else, that would be weird ;)
sarkis has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
Timgauthier has joined #ruby
rshetty has quit [Remote host closed the connection]
User458764 has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
<shevy> yeah
<shevy> I wondered if the second variant would be faster
graydot has joined #ruby
Timgauthier has quit [Client Quit]
beef-wellington has joined #ruby
jimbach has joined #ruby
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby
gaussblurinc11 has quit [Quit: Leaving.]
i0n has joined #ruby
spastorino has joined #ruby
gaussblurinc1 has joined #ruby
nonks has joined #ruby
<arup_r_> Tried Python style http://boto.readthedocs.org/en/latest/dynamodb_tut.html#describing-tables.. Didn't work in Ruby
beef-wellington has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
duplex has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
duplex has joined #ruby
mrfoto_ has joined #ruby
<gaussblurinc1> guys, I have gem minitest with version 4.7.5, but my app required minitest 5.1.2 or later, how to fix this problem IF minitest installed in global gemset and i want to update this gemset to later version of minitest?
nonks has quit [Ping timeout: 250 seconds]
mrfoto has quit [Ping timeout: 255 seconds]
alex88 has joined #ruby
pen has quit []
<rpag> gaussblurinc1, use bundler, keep a Gemfile, and use gem 'minitest', '~> 5.1' in the Gemfile
<rpag> run bundle
ptrrr has quit [Quit: ptrrr]
razieliyo has joined #ruby
cantonic has joined #ruby
<godd2> shevy it depends. it depends on how long the string is and how likely it is to contain the substr you care about.
Xeago has joined #ruby
Tuxero has joined #ruby
<godd2> if it's likely to contain the #, then you might as well not check, since checking would only, on average, add computation
pen has joined #ruby
<godd2> but the amount of computation difference is pretty tiny
<godd2> so unless you're doing this for big data (and then I would ask why youre using ruby), id say yeah, just go without the include
Morkel has quit [Ping timeout: 265 seconds]
Xeago_ has quit [Ping timeout: 250 seconds]
takle_ has quit [Remote host closed the connection]
<Hanmac> gaussblurinc1: even without bundler or rvm or something like that you can install multiple version of one gem
benzrf|offline is now known as benzrf
paulfm has joined #ruby
kobain has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
ptrrr has joined #ruby
mrfoto_ is now known as mrfoto
vsipuli has quit []
jenrzzz_ has quit [Ping timeout: 245 seconds]
pen has quit []
pen has joined #ruby
jenrzzz has joined #ruby
AliRezaTaleghani has quit [Quit: Leaving.]
pen has quit [Client Quit]
wm3|away has quit [Ping timeout: 255 seconds]
pen has joined #ruby
abuzze_ has quit [Remote host closed the connection]
Tuxero has quit [Quit: Tuxero]
abuzze has joined #ruby
dorei has joined #ruby
dblessing has joined #ruby
dblessing has quit [Client Quit]
abuzze_ has joined #ruby
takle has joined #ruby
<shevy> godd2 I am using ruby because it rocks!!!
cleopatra has quit [Ping timeout: 264 seconds]
Dude007 has quit [Remote host closed the connection]
mathias2 has quit [Ping timeout: 264 seconds]
<godd2> haha I think you know I agree with you
Dude007 has joined #ruby
oo_ has joined #ruby
pen has quit []
abuzze has quit [Ping timeout: 255 seconds]
tlarevo_ has quit [Remote host closed the connection]
rudisimo has joined #ruby
pen has joined #ruby
melik has joined #ruby
zacts has quit [Ping timeout: 245 seconds]
<shevy> I don't really have big data godd2
<shevy> I am not the next twitter
<shevy> once I wanted a huge collection of video stuff
<shevy> then I realized... why do I keep trash videos
<shevy> so I started to discard like 80%
jenrzzz has quit [Ping timeout: 256 seconds]
<shevy> after 10 years I am like at less than 200 videos
<shevy> the jungle book is one that will remain though!
<shevy> the monkey song is one of the coolest songs ever
<shevy> this is how they did it: https://www.youtube.com/watch?v=rV8HrpOu1FA
wpp has quit []
zacts has joined #ruby
fgo_ has quit [Quit: WeeChat 1.0]
livingstn has joined #ruby
allcentury has joined #ruby
doev has quit [Quit: Verlassend]
robbyoconnor has quit [Ping timeout: 244 seconds]
troulouliou_dev has joined #ruby
<gaussblurinc1> Hanmac: yes, I know. now I trying to find which gem use specific version of minitest
melik has quit [Ping timeout: 258 seconds]
wm3|away has joined #ruby
i_s has joined #ruby
jenrzzz has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
fresham has joined #ruby
arup_r_ has quit [Remote host closed the connection]
pen has quit []
takle has quit [Ping timeout: 244 seconds]
tier has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
danguita has left #ruby ["WeeChat 0.4.2"]
mikeg has joined #ruby
i0n has quit [Quit: snooze]
wex13r has quit [Quit: end]
procat has joined #ruby
irk has quit [Ping timeout: 255 seconds]
takle has joined #ruby
weemsledeux has joined #ruby
iamjarvo has joined #ruby
tvw has quit []
ndrei has joined #ruby
corehook has quit [Remote host closed the connection]
pen has joined #ruby
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
gaganjyot has joined #ruby
philwantsfish has joined #ruby
Morkel has joined #ruby
<shevy> sevenseacat I found your theme song https://www.youtube.com/watch?v=O7fF_loQEcw
sevenseacat has quit [Ping timeout: 250 seconds]
it0a has joined #ruby
enebo has joined #ruby
jerius has joined #ruby
noop has quit [Ping timeout: 258 seconds]
panini has quit [Quit: Leaving]
fsapo has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
jpierre03 has quit [Quit: -]
jeremy04 has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
neredsenvy has joined #ruby
sprihodko has joined #ruby
iwishiwerearobot has joined #ruby
cpruitt has joined #ruby
<neredsenvy> https://gist.github.com/anonymous/e623ba7cb5084024e79d Why is my error attribute never set. The GET request raises 404 Exception the rescue should set the error attribute when i try to access the error message I get nothing using user.error
davedev24_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<neredsenvy> Even with just rescue instead of rescue => e
<shevy> neredsenvy what is an attribute
<neredsenvy> string
ramfjord has joined #ruby
<cpruitt> Maybe a dumb question: I’m very familiar with the *result* of class << self. I do not, however fully understand what the << is, is called, or what it is specifically doing. Anyone feel like giving a quick explaination?
<shevy> this code is not any good neredsenvy
<shevy> @error is an instance variable
<shevy> typically they get initialized inside def initialize
<shevy> or in another method
<shevy> in your example, you put it right onto the class level
sailias has joined #ruby
<neredsenvy> register method is called after object is initialized and it sets the variable on the instance of that object should be able to retrieve it no ?
mikepack has joined #ruby
<shevy> I do not see where register method is called
<shevy> can you show me the line where it is called?
<neredsenvy> shevy: I create a user object user = User.new fill out the fields call validation method to see if it's valid than I call user.register this is all in my controller
<neredsenvy> separate calss
last_staff has joined #ruby
oleo has joined #ruby
mathias2 has joined #ruby
<shevy> what are "fields call validation method"
<shevy> by the way, register() seems to always return false
<neredsenvy> but because the api is wrong when calling register method it should raise 404Exception when that happens I need to set the error message and return false
pen has quit []
doodlehaus has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
<shevy> this sounds very railsy
beef-wellington has joined #ruby
AlSquirrel has joined #ruby
<neredsenvy> shevy: I know for now. When I call the register method it has to return false so I know to get the error message
<gaussblurinc1> ok, how to run script with bundle exec with :production gems group?
pen has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
bMalum has joined #ruby
lxsameer has quit [Quit: Leaving]
mikecmpb_ has joined #ruby
<gaussblurinc1> story: some of the gems needed minitest 5.4.2 and they all located in :development/:test group. I don't want to install them on production machine, but I need `bundle exec ruby` command to start some tasks
shredding has joined #ruby
takle has quit [Remote host closed the connection]
larissa has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
shortCircuit__ has quit [Remote host closed the connection]
gaganjyot has quit [Ping timeout: 255 seconds]
ferr has joined #ruby
takle has joined #ruby
TPBallbag has quit [Remote host closed the connection]
prosper_ has joined #ruby
danjordan has left #ruby [#ruby]
phutchins has joined #ruby
psy_ has joined #ruby
max96at|off is now known as max96at
mrfoto has quit []
oo_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
devdazed has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
sprihodko has quit [Quit: (null)]
devdazed has joined #ruby
rshetty has joined #ruby
dangerousdave has joined #ruby
prosper_ has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
crack_user has joined #ruby
pen has quit []
<crack_user> hello guys
zB0hs has joined #ruby
<crack_user> recently I saw a gem to disable and enable system parts
nonks has joined #ruby
<crack_user> but a could remember the name
<crack_user> anyone knows?
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
earfin has joined #ruby
pen has joined #ruby
prosper_ has joined #ruby
Channel6 has joined #ruby
rodfersou has quit [Quit: leaving]
dANO has joined #ruby
rodfersou has joined #ruby
iamjarvo has joined #ruby
agjacome has quit [Quit: leaving]
wm3|away is now known as workmad3
nonks has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
sarkis has joined #ruby
last_staff has quit [Quit: last_staff]
<pontiki> a little too vague, crack_user
<pontiki> what sort of system?
<crack_user> so the fucionally of gem is you can scope parts of your application an them enable and disable them
TPBallbag has joined #ruby
zorak8 has joined #ruby
<crack_user> I saw this recently in HN or reddit
zacstewart has joined #ruby
benzrf|offline is now known as benzrf
TPBallbag has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
mary5030 has joined #ruby
Kricir has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
xwq17 has quit [Quit: leaving]
lkba has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akuma has joined #ruby
Akuma has quit [Client Quit]
ptrrr has joined #ruby
sprihodko has joined #ruby
russt has joined #ruby
Akuma has joined #ruby
charliesome has quit [Quit: zzz]
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
cantonic has quit [Client Quit]
rodfersou has quit [Quit: leaving]
rodfersou has joined #ruby
jlast has joined #ruby
havenwood has joined #ruby
swilr has quit [Ping timeout: 272 seconds]
swilr has joined #ruby
mikeg has quit [Ping timeout: 265 seconds]
tagrudev has quit [Remote host closed the connection]
clauswit_ has joined #ruby
wsmoak has joined #ruby
Ulrike_Rayne has joined #ruby
<wsmoak> can someone help with ruby-ized json document syntax? inserting into a mongodb collection, it’s complaining about something I think is valid… https://gist.github.com/wsmoak/31b79efedbbdfe2cdd61
clauswitt has quit [Ping timeout: 250 seconds]
clauswit_ has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
andikr has quit [Remote host closed the connection]
Mint has joined #ruby
mskaesz has joined #ruby
anarang has quit [Quit: Leaving]
n008f4g_ has joined #ruby
mkaesz has quit [Ping timeout: 264 seconds]
Mint has quit [Client Quit]
Zesty has joined #ruby
Zesty has quit [Client Quit]
<ericwood> I'm surprised you're not using the JSON-style hash syntax
patrick99e99 has joined #ruby
<ericwood> and just a stylistic concern: it's not fun to use strings AND symbols as hash keys at the same time, best to pick one or the other!
<ericwood> but that doesn't help you with your problem :o
<ericwood> I'm not seeing anything out of place with my initial read-through
pen has quit []
Meeh has quit [Ping timeout: 265 seconds]
papercode has quit [Ping timeout: 265 seconds]
<wsmoak> noted. I think I’m moving towards symbols as keys :)
<ericwood> if you're generating JSON might as well use the JSON-style syntax :)
<ruisantos> wsmoak: nothing's wrong with that structure, I just copied that into irb and created a hash.
jobewan has joined #ruby
Meeh has joined #ruby
<ruisantos> and yes, what ericwood said. Use id: "43", doe: "3BL", and so on instead of the 'hash rocket' form.
<ericwood> think of all of the characters you'll save :D
<wsmoak> ericwood: what change exactly, I looked again and all the keys (left side of =>) are symbols ?
kasperti_ has joined #ruby
<wsmoak> oh, don’t use the rocket. pretty sure I tried that and something complained.
<ericwood> "first_exposure", etc. are strings
patrick99e99 has quit [Ping timeout: 264 seconds]
<gaussblurinc1> oh, how to 'unreqire' gems in group :development in gemfile?
mskaesz has quit [Ping timeout: 264 seconds]
jerius has quit []
kasperti_ has quit [Client Quit]
<wsmoak> ericwood: in the full load.rb, got it. was only looking at the gist.
einarj has quit [Remote host closed the connection]
<workmad3> gaussblurinc1: you don't... you just don't install them in environments you don't need them in
<workmad3> gaussblurinc1: e.g. with 'bundle install --without development test'
<gaussblurinc1> workmad3: yes, I do it. but when I run bundle exec ruby script.rb, it falls on 'require'
aclearma_ has joined #ruby
sambao21 has joined #ruby
pen has joined #ruby
<wsmoak> oh for … now it works. sorry for the noise. apparently I had unsaved changes. :/
<workmad3> gaussblurinc1: then don't explicitly require a gem that's only in dev or test...
* wsmoak goes to see if TextMate can do the IDEA thing where it saves when it loses focus
Hanmac has joined #ruby
crazydiamond has quit [Remote host closed the connection]
<ericwood> I hate that :|
apeiros has quit [Remote host closed the connection]
<wsmoak> just upgraded and the ‘edited’ indicator is different :/
paolooo has joined #ruby
apeiros has joined #ruby
chthon has quit [Ping timeout: 250 seconds]
mkaesz has joined #ruby
o0oo0o_ has quit [Remote host closed the connection]
aclearman037 has quit [Ping timeout: 272 seconds]
rshetty has quit [Read error: Connection reset by peer]
TPBallbag has joined #ruby
drawingthesun has quit [Ping timeout: 250 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
apeiros has quit [Ping timeout: 256 seconds]
lmickh has joined #ruby
bbloom_ has joined #ruby
crack_user has quit [Quit: Leaving.]
amundj has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
rshetty has joined #ruby
melik has joined #ruby
bbloom has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
i_s has joined #ruby
tvw has joined #ruby
eindoofus has joined #ruby
msgodf has quit [Ping timeout: 244 seconds]
<eindoofus> is there a data structure in ruby for just storing keys? i don't need to store values, just storing the unique key values
<shevy> eindoofus sounds like Array
<shevy> [key1, key2, key3]
<eindoofus> i should probably give an example
rshetty_ has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
takle has quit [Read error: Connection reset by peer]
melik has quit [Ping timeout: 265 seconds]
<eindoofus> i'm storing id 123, 124, 124, 125, but i only need to store 124 once since i don't want duplicates
dkphenom has joined #ruby
<shevy> yes
<shevy> >> [:key1, :key2, :key3, :key1].uniq
<eval-in__> shevy => [:key1, :key2, :key3] (https://eval.in/220483)
<shevy> there you go eindoofus
<shevy> btw is this a german nick?
takle has joined #ruby
mikecmpbll has joined #ruby
jerius has joined #ruby
<eindoofus> shevy, german inspired. lol. nope, just made it up
<workmad3> eindoofus: Set
<shevy> k
<shevy> the word "doof" is german for silly or dumb :)
<workmad3> >> a = Set.new; a << 123 << 123 << 124 << 125 << 123; a
<eval-in__> workmad3 => uninitialized constant Set (NameError) ... (https://eval.in/220484)
<shevy> ein means one
<workmad3> >> require 'set'; a = Set.new; a << 123 << 123 << 124 << 125 << 123; a
<eval-in__> workmad3 => #<Set: {123, 124, 125}> (https://eval.in/220485)
gsd has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
<eindoofus> yup, i think of it as dumb one. as in i being the dumb one. would have used noob but that's taken
i_s has quit [Ping timeout: 255 seconds]
mikecmp__ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<shevy> hehe
sk87 has joined #ruby
<shevy> I think we should give workmad3 the title Professor
<shevy> and havenwood receives the title ChannelGeek
treehug88 has joined #ruby
chthon has joined #ruby
<workmad3> shevy: I only have a masters, and haven't taught in a uni for a few years now :P
<shevy> aha!
mikecmpb_ has quit [Ping timeout: 244 seconds]
<shevy> so you actually have been teaching before!
prosper_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<eindoofus> lol. btw, thanks for the Set example workmad3
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
hiyosi has quit [Read error: Connection reset by peer]
takle has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 250 seconds]
hiyosi has joined #ruby
<shevy> workmad3 is a pack of ruby knowledge
nonks has joined #ruby
<workmad3> shevy: you can blame apeiros for Set though... he kept on drumming in using Set rather than Array#uniq and it stuck (eventually) ;)
<shevy> aha
papercode has joined #ruby
<shevy> well I wrote down that Sets are faster than Arrays
AlexRussia has quit [Ping timeout: 264 seconds]
livathin_ has joined #ruby
<workmad3> wrote down? on the corpses of trees? who does that anymore? :P
livathin_ has quit [Client Quit]
<canton7> they are for setty things
moritzs has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
<canton7> not so for arrayy things
jhwhite has joined #ruby
marcdel has joined #ruby
<gaussblurinc1> hey, what's wrong with bundler? I just run bundle config and it fails, oh. http://pastebin.com/6VD3UUU2
<workmad3> canton7: setty things like a set of IDs ;)
jhwhite has left #ruby [#ruby]
<workmad3> gaussblurinc1: include your Gemfile pls
<shevy> workmad3 in my local knowledge base
<shevy> if I don't write things down I forget them very quickly
nateberkopec has quit [Quit: Leaving...]
<shevy> now I have a question!
marcdel_ has joined #ruby
tokik has joined #ruby
<shevy> say I have code that does stuff like:
<shevy> puts 'hello world'
<shevy> is there a simple way to intercept that output and decide what to do on my own with it?
<shevy> e. g. to not puts it right now but instead at a later time, or filter it first
takle has joined #ruby
marcdel_ has quit [Client Quit]
<canton7> reassign $stdout
bal has quit [Quit: bal]
<canton7> or #replace, or whatever that trick was. been years since I've seen it
mroth_ is now known as mroth
<workmad3> or only ever use puts on IO objects that you can pass into a method
mroth has quit [Changing host]
mroth has joined #ruby
mroth has joined #ruby
<workmad3> so you can inject a StringIO or some other io-like object
livathinos has quit [Ping timeout: 240 seconds]
<canton7> ^ much better, if you can
<workmad3> def foobar(out=$stdout); out.puts "hello world"; end; foobar(StringIO.new("") )
<gaussblurinc1> workmad3: catch http://pastebin.com/RxwRzWRW
<shevy> canton7 hmm let me think for a moment
diegoviola has joined #ruby
marcdel has quit [Ping timeout: 244 seconds]
<shevy> so both examples use $stdout
<shevy> time to google!!!
<eindoofus> if i have a script that doesn't require objects is it bad practice to put everything in the global scope and not use a class?
chthon has quit [Remote host closed the connection]
<workmad3> shevy: I just used $stdout as the default value for the 'out' argument
<shevy> eindoofus global scope can conflict with other code
<workmad3> shevy: so you could call 'foobar' and it would use $stdout, but you could also pass in your own IO object
<shevy> eindoofus like if two people define a: class Foo
<shevy> workmad3 hmm
ferr has quit [Ping timeout: 244 seconds]
<shevy> ohhhh
<shevy> print() is actually $stdout.print() ?
<workmad3> yeah
ferr has joined #ruby
<workmad3> and puts is $stdout.puts
<shevy> cool
<workmad3> p isn't $stdout.p though (annoyingly) :)
sarkis has joined #ruby
<gaussblurinc1> workmad3: any ideas about gemfile?
<workmad3> gaussblurinc1: hmm... can't spot anything there
<workmad3> shevy: similarly, gets is $stdin.gets ;)
<shevy> aha
jenrzzz has joined #ruby
<shevy> we also have STDIN
<workmad3> STDIN == $stdin
<shevy> hehe
Macaveli has quit [Ping timeout: 264 seconds]
<shevy> a constant to point at a global :)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> or perhaps the other way...
<workmad3> >> $stdin.object_id == STDIN.object_id
<eval-in__> workmad3 => true (https://eval.in/220486)
<workmad3> >> $stdout.object_id == STDOUT.object_id
<eval-in__> workmad3 => true (https://eval.in/220487)
<shevy> my brain is slow - today I must not molest it. I learned that print is actually $stdout ... actually, I have used $stdin.gets before too... weird that I never thought that the other methods also exist on these ... uhmm objects? is $stdout an object?
<shevy> >> $stdout.class
<eval-in__> shevy => IO (https://eval.in/220488)
<shevy> an IO object!
<workmad3> shevy: a constant and a global that both point to the same object ;)
<shevy> >> $stdout.object_id
<eval-in__> shevy => 544679740 (https://eval.in/220489)
<shevy> >> $stdout.object_id
<eval-in__> shevy => 546957110 (https://eval.in/220490)
<shevy> hmmmm
<shevy> always gets a new object id
<workmad3> yeah, it'll change between runs of the interpreter
i_s has joined #ruby
tesaf has joined #ruby
<workmad3> >> 3.times.map{$stdout.object_id}
<eval-in__> workmad3 => [545957690, 545957690, 545957690] (https://eval.in/220491)
sarkis has quit [Ping timeout: 258 seconds]
gaganjyot has joined #ruby
robbyoconnor has joined #ruby
Hobogrammer_ has joined #ruby
zacts has quit [Quit: leaving]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Cache_Money has quit [Ping timeout: 245 seconds]
ptrrr has quit [Quit: ptrrr]
jenrzzz has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago_ has joined #ruby
nvdpl_ has quit [Quit: ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nvdpl has joined #ruby
nvdpl has quit [Max SendQ exceeded]
Hobogrammer has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
CustosL1men has joined #ruby
i_s has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 265 seconds]
i_s has joined #ruby
AFKGeek has joined #ruby
Timgauthier has joined #ruby
fabrice31 has quit [Remote host closed the connection]
godd2 has quit [Remote host closed the connection]
agjacome has joined #ruby
duggiefresh has joined #ruby
Cache_Money has joined #ruby
i_s has quit [Ping timeout: 244 seconds]
wjimenez5271 has joined #ruby
benzrf is now known as benzrf|offline
dkb20k has quit [Remote host closed the connection]
dANO_ has joined #ruby
tobago has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 258 seconds]
jfran has joined #ruby
AlexRussia has joined #ruby
bahar_ is now known as bahar
mikepack has joined #ruby
dANO has quit [Ping timeout: 244 seconds]
User458764 has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
timgauthier_away is now known as Timgauthier
<shevy> who was the guy with the IRC mud
<shevy> all I remember is that his nick started with a g
mikecmp__ is now known as mikecmpbll
russt has quit [Ping timeout: 244 seconds]
atomical has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
jusmyth has joined #ruby
dANO has joined #ruby
User458764 has joined #ruby
Xeago_ has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 255 seconds]
jusmyth has quit [Ping timeout: 255 seconds]
i0n has joined #ruby
psy_ has quit [Remote host closed the connection]
GeorgesLeYeti has joined #ruby
dANO_ has quit [Ping timeout: 272 seconds]
aganov has quit [Quit: Leaving]
mskaesz has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
lkba has joined #ruby
zacts has joined #ruby
abuzze_ has quit [Remote host closed the connection]
abuzze has joined #ruby
mkaesz has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
takle has quit [Remote host closed the connection]
tier has quit [Ping timeout: 255 seconds]
Hijiri has quit [Ping timeout: 244 seconds]
sargas has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
i0n_ has joined #ruby
sprihodko has quit [Quit: (null)]
takle has joined #ruby
i0n has quit [Ping timeout: 264 seconds]
i0n_ is now known as i0n
wldcordeiro_ has joined #ruby
sarkis has joined #ruby
rippa has joined #ruby
tier has joined #ruby
postmodern has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
sarkis has quit [Client Quit]
jimmyhoughjr has joined #ruby
gsd has joined #ruby
ferno has joined #ruby
<ferno> Hi! Is there any data structure in ruby that implements some sort of dynamic array, that allows one to pop off the first element while adding elements at the end, without needing to constantly "move" items up?
maestrojed has joined #ruby
<ferno> I need a queue of sorts, but within a single thread.
<workmad3> ferno: Array
CustosL1men has quit [Ping timeout: 244 seconds]
<shevy> hehehe
<ferno> Really? Isn't deleted the 0th element expensive?
<ferno> deleting*
wjimenez5271 has quit [Remote host closed the connection]
<ferno> workmad3: Any idea on performance when constantly deleting element 0 + adding elements?
anaeem1 has joined #ruby
<workmad3> ferno: no... but I doubt it's significant compared to the overhead of just using ruby ;)
deepy has quit [Ping timeout: 245 seconds]
j416 has quit [Ping timeout: 245 seconds]
sargas has quit [Quit: This computer has gone to sleep]
<ferno> I think I'll go with a hash with some snazzy key logic, may be faster.
deepy has joined #ruby
<ferno> workmad3: Thanks :D
aspires has joined #ruby
<workmad3> ferno: benchmark :P
deepy is now known as Guest40560
Guest40560 has quit [Changing host]
Guest40560 has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest40560 is now known as deepy
ferno has quit [Quit: Page closed]
j416 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
gaussblurinc1 has quit [Quit: Leaving.]
DjDeaf has joined #ruby
sambao21 has joined #ruby
<DjDeaf> Hi Guys, Any idea on how to use Ruby's OptParser for getting 2 params under the same option?
<DjDeaf> For example: script -t param1 param2
sambao21 has quit [Client Quit]
zacts has quit [Quit: leaving]
<DjDeaf> without , or anytthing but spaces
<workmad3> DjDeaf: I think OptParser only supports , separated multi-value params
<DjDeaf> :(
<DjDeaf> I was hoping someone was smarter than me and was able to pass this\
<workmad3> DjDeaf: OptParser is pretty inflexible
lolmaus has joined #ruby
rshetty_ has quit [Remote host closed the connection]
d4nku has joined #ruby
nkumari has joined #ruby
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
almostwhitehat has joined #ruby
sambao21 has joined #ruby
m3_del has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
rukid0 has joined #ruby
almostwhitehat has left #ruby [#ruby]
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rukid0 is now known as shortCircuit__
JimmyNeutron has quit [Remote host closed the connection]
jenrzzz has joined #ruby
nkumari has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
ferr has quit [Quit: Lost terminal]
paulfm has quit []
tojani has joined #ruby
Dude007 has quit [Remote host closed the connection]
codextremist has joined #ruby
Morkel has quit [Quit: Morkel]
fantazo has joined #ruby
pengin has joined #ruby
shazaum_ has joined #ruby
takle has quit [Remote host closed the connection]
janmuffino has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
codextremist has quit [Quit: Leaving]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
shazaum has quit [Ping timeout: 245 seconds]
geggam has joined #ruby
benzrf|offline is now known as benzrf
nvdpl has joined #ruby
droidburgundy has joined #ruby
nvdpl has quit [Max SendQ exceeded]
nvdpl has joined #ruby
spyderman4g63 has quit [Ping timeout: 250 seconds]
melik has joined #ruby
<shevy> how do you web-guys manage css themes?
jenrzzz has quit [Ping timeout: 264 seconds]
<eindoofus> is there a way to have ruby ignore quotes on a line like: "CSV.foreach(filename) do |row|"?
duggiefresh has quit [Remote host closed the connection]
<workmad3> shevy: I adopt a ford policy - "You can have any theme you want, as long as it's the one I chose"
devdazed has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
<shevy> hmm
<havenwood> DjDeaf: Consider switching to Slop?: https://github.com/leejarvis/slop#readme
<workmad3> eindoofus: sorry... I don't quite understand what you're asking
<shevy> workmad3 understanding all of the CSS on a website in use seems pretty ... daunting
crdpink has joined #ruby
mityaz has quit [Quit: See ya!]
<workmad3> shevy: yeah, it can be
devdazed has joined #ruby
<shevy> and then we add some more javascript
<shevy> like... really a LOT of it
alex88 has quit []
<shevy> and databases!
<shevy> and images!!!
<eindoofus> workmad3, i noticed some records with a single quote in the csv are throwing an exception
<workmad3> shevy: on one site I did, I made a theme selector that allowed the user to select any of the bootswatch themes :)
<shevy> hmm
ferr has joined #ruby
jenrzzz has joined #ruby
<workmad3> eindoofus: sounds like invalid CSV
mistermocha has joined #ruby
elcheckito has quit [Quit: WeeChat 1.0.1]
<workmad3> shevy: I also modified geo-bootstrap to work on that site :)
<workmad3> shevy: you'd like geo-bootstrap... it's very 90's web ;)
thsig has quit [Remote host closed the connection]
arup_r has joined #ruby
melik has quit [Ping timeout: 255 seconds]
<eindoofus> workmad3, it opens fine in another csv reader application i have, and that application just shows the individual quote character rather than bombing
sargas has joined #ruby
mistermocha has quit [Remote host closed the connection]
<workmad3> eindoofus: so the line is something like f1,f2,"Text with a " quote in it",f3 ?
<shevy> hehe
<shevy> the 1990s were my days to shine
<workmad3> shevy: as it was intended for internal testers, I also added an 'expert mode' to that site... it added a CSS class to every element that used CSS animations to spin things ;)
duggiefresh has quit [Ping timeout: 244 seconds]
<eindoofus> workmad3, i believe it's something like f1,f2,text with " quote,f3
mistermocha has joined #ruby
stunder has joined #ruby
almostwhitehat has joined #ruby
<gr33n7007h> havenwood, Slop vs Trollop?
<workmad3> eindoofus: ah, if the field isn't quoted itself, you should be able to sort it by doing 'CSV.foreach(filename, quote_char: "'") do |csv|'
dkb20k has joined #ruby
mleung has joined #ruby
timonv_ has quit [Remote host closed the connection]
<workmad3> eindoofus: the issue is that the quote character defaults to ", and it's not valid to have the quote character appear inside a field unless it's quoted
corehook has joined #ruby
<eindoofus> workmad3, cool, i'll give that a try. thanks
pengin has quit []
<havenwood> gr33n7007h: i like Trollop too, quite similar, but not maintained
allcentury has quit [Ping timeout: 240 seconds]
nonks has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
sargas has quit [Client Quit]
<gr33n7007h> yeah, me too, I'll have to check Slop out :)
max96at is now known as max96at|off
<workmad3> eindoofus: the file is still somewhat bad as a CSV file btw... the CSV RFC (RFC4180) which is the closest CSV has to a standard says that a field that contains a " needs to be quoted and the " escaped (by doubling it up)
<havenwood> shevy: thought you might like this: https://github.com/tombenner/ru#readme
dangerou_ has joined #ruby
<workmad3> eindoofus: just annoyingly, a lot of CSV generators and CSV readers don't give a crap about 'correct' CSV... and so the propagation of crappy CSV that needs to be kludged around continues
<eindoofus> workmad3, ugh, that would explain how this is still in production
max96at|off is now known as max96at
<workmad3> eindoofus: did altering the quote character work btw?
<shevy> havenwood hehe
<shevy> why did they name it ru
<workmad3> shevy: as in config.ru ?
patrick99e99 has joined #ruby
<shevy> ah I hate that even more
<shevy> I just mean the invocation "ru"
<shevy> but it looks cleaner than awk
<shevy> ru 'map(:center, 80)' myfile
<havenwood> shevy: it was previously called "Rushed" and "Ru" saves 4 letters
<workmad3> oh... the ru tool
<shevy> awk 'printf "%" int(40+length($0)/2) "s\n", $0' myfile
<shevy> ah I see
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<workmad3> dunno... evocative of sh maybe?
<shevy> people like to type few characters
kireevco has joined #ruby
<shevy> I would rename havenwood to havy
<shevy> and workmad3 to worky
havenwood is now known as havy
<havy> shevy: fine
<shevy> haha!
<workmad3> and shevy to shiv? :P
michaeldeol has joined #ruby
<shevy> hmm no...
<shevy> I think there was a french programmer called shiv
<eindoofus> workmad3, nope, now it's throwing a lot more exceptions. looking into them now
<shevy> either that, or it was the magic card shivan dragon ...
workmad3 is now known as worky
<shevy> omg
ramfjord has joined #ruby
<shevy> please don't change your nicks
worky is now known as workmad3
havy is now known as havenwood
<workmad3> shevy: I wasn't fully... I was just grouping worky to my freenode account so I could ghost someone who used it ;)
RitterJack has quit [Remote host closed the connection]
<workmad3> eindoofus: hmm... sounds like the CSV file is using " for field quoting elsewhere then...
boombadaroomba has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
dawkirst has quit [Quit: Leaving...]
pandaant has quit [Quit: Lost terminal]
patrick99e99 has quit [Ping timeout: 265 seconds]
shortCircuit__ has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
mikecmpbll has quit [Quit: ciao.]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
abuzze_ has joined #ruby
<DjDeaf> What's the deal with to_i in ruby? Why can't I cast a var to integer?
<eindoofus> workmad3, found an ' apostrophe in one of the lines generating the exception
<workmad3> eindoofus: aha :)
<workmad3> DjDeaf: ruby has no casting at all
<workmad3> DjDeaf: only conversion methods
<workmad3> DjDeaf: welcome to strongly-typed languages ;)
<eindoofus> workmad3, is there a way to have it ignore both quotes and apostrophes?
<workmad3> eindoofus: find a character that is definitely not used in the file and use that as the quote character? :)
<DjDeaf> So if I have a var with "121212", how can I make sure it's an integer? besides using reges?
nonks has quit [Ping timeout: 250 seconds]
<DjDeaf> regex*
L8D has joined #ruby
<L8D> I need someone to convince me to use ruby
<eindoofus> workmad3, don't option worries me... lol
<eindoofus> that*
<workmad3> DjDeaf: Integer("121212") will raise an exception if it can't convert the string to an integer
desp has joined #ruby
<workmad3> >> Integer("121212")
<eval-in__> workmad3 => 121212 (https://eval.in/220509)
<workmad3> >> Integer("foobar")
<eval-in__> workmad3 => invalid value for Integer(): "foobar" (ArgumentError) ... (https://eval.in/220510)
<L8D> or at least... I need someone to convince me why they use ruby over all of the alternatives out there
troyready has joined #ruby
<havenwood> L8D: use Ruby or else!
<L8D> like... I used to be a big fan
<DjDeaf> Thanks workmad!
<havenwood> L8D: We have foxes and chunky bacon. What do they have?
<L8D> and now I can't remember why
<DjDeaf> Appreciated
shredding has quit [Quit: shredding]
<L8D> and the same for python
<workmad3> L8D: it's a protection racket... if I don't use it, matz will come round to my house and... 'do stuff'...
<L8D> oh hi havenwood
<havenwood> L8D: They have neither foxes nor chunky bacon.
abuzze has quit [Ping timeout: 265 seconds]
<L8D> but I mean... on a more serious note
<L8D> and not a trolling or joking one
<L8D> I can understand the appeal to beginner programmers
Eiam has joined #ruby
<workmad3> L8D: you're in #ruby and asking why you should use ruby... how do you expect something other than a trolling or joking answer? ;)
<L8D> and as a language to teach
<L8D> but when it comes to software professionals wanting to use it
<L8D> I've gotten out of touch and I can't remember
mskaesz has quit [Remote host closed the connection]
<dorei> L8D: ruby => best OO experience :)
<L8D> maybe it's the TDD aspect?
beneggett has joined #ruby
<eindoofus> workmad3, found on stackoverflow that "\x00" works with a UTF-8 set
<workmad3> L8D: good community, lots of gems that do lots of things, good OO model, flexible and powerful
<L8D> but aren't there things going on like monkey patching and no proper namespaces?
<eindoofus> exceptions gone :)
<workmad3> L8D: man, next you'll be criticising because it's dynamically typed :P
<havenwood> L8D: freedom patching is good for you and there are proper namespaces
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
dkb20k has quit [Ping timeout: 245 seconds]
<L8D> what about immutability and concurrency then?
<havenwood> L8D: it's an expressive language that you can do things quickly in, which comes in handy in all sorts of situations
Xeago has quit [Remote host closed the connection]
<L8D> havenwood: okay, good point. What about large enterprise-y software?
maestrojed has quit [Quit: Computer has gone to sleep.]
<L8D> which huge ball-of-mud codebases?
<workmad3> L8D: they seem happy with java :P
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<L8D> quite a few of them are using rails now
bmurt has joined #ruby
<dorei> java is the new cobol :)
<workmad3> L8D: probably because big enterprisy managers don't get fired for dictating java ;)
<havenwood> L8D: Ruby doesn't have enough XML for nested folders for Enterprise. https://github.com/tenderlove/enterprise#readme
boombadaroomba has joined #ruby
<L8D> I'm not talking about the enterprise stereotype
Xeago has joined #ruby
<havenwood> L8D: Lots of large companies use Ruby these days. Millions of lines of code.
<L8D> yeah
Xeago has quit [Remote host closed the connection]
<L8D> what makes ruby so well suited to that?
<L8D> or at least what makes ruby *seem* so well suited to that?
<havenwood> L8D: it's expressive, you can do things quickly, and it makes programmers happy
crack_user has joined #ruby
otherj has joined #ruby
<L8D> okay. good point. thanks.
tvw has quit []
<L8D> would anyone here agree that ruby isn't well-suited to things that need to get done quickly but instead correctly?
otherj has quit [Client Quit]
iwishiwerearobot has quit [Remote host closed the connection]
<workmad3> L8D: depends on how you're defining 'correctly'
roolo has quit [Quit: AAAAaaaaAAAAAAA]
wjimenez5271 has joined #ruby
<L8D> like codebases that end up getting maintained slowly over time rather than developed in sprints
DTSCode has quit [Read error: Connection reset by peer]
<workmad3> L8D: is it good for formal proofs? I'd probably agree that it isn't... but then neither is any language in large-scale use, afaik
greenride has joined #ruby
yetanotherdave has joined #ruby
<havenwood> L8D: If immutability and concurrency are your priority then it's not the best place to look. You can use stuff like Hamster and Adamantium for some immutability or Celluloid or Agent for concurrency or other options.
<L8D> workmad3: what about erlang and haskell?
tlarevo has joined #ruby
panini has joined #ruby
greenride has left #ruby [#ruby]
<L8D> "large-scale use" nvm
<havenwood> L8D: Rubyists tend to like Elixir on the Erlang front.
<L8D> not "used in large-scale"
<havenwood> L8D: Created by a Rubyist and all.
<workmad3> L8D: ok, maybe haskell... afaik, erlang is much more about robustness than formal proofs of correctness ;)
<havenwood> L8D: Clojure is nice and on the same platform as JRuby.
DTSCode has joined #ruby
<workmad3> L8D: so it has fault tolerances built in for when things go wrong, rather than attempting to prove that they can't ;)
<havenwood> L8D: Or there's always Rust and Nim. :P
<L8D> could I not say that someone who has worked with Haskell a lot can be just as productive as a ruby programmer when it comes to sprinting out code?
<L8D> "creating blogs in 5 minutes"
<workmad3> L8D: possibly
paulfm has joined #ruby
<L8D> but then ruby would have the advantage that you could learn it far more quickly than you could Haskell
crack_user has quit [Ping timeout: 250 seconds]
<L8D> ok I see
Suchit has joined #ruby
<workmad3> L8D: tbh, it's not an area where you're going to get a lot of objective, empirical evidence, IMO, because trying to pin down productivity and effectiveness to a language is kinda the wrong way to do it (again, IMO)
<workmad3> L8D: i.e. a good coder is going to be good in pretty much any language, a bad coder will figure out how to screw up in pretty much any language
<L8D> I guess my mindset on software has changed since I last used ruby
mistermocha has quit [Ping timeout: 255 seconds]
graydot has quit [Quit: graydot]
lxsameer has joined #ruby
<L8D> I don't mean this to imply anything about ruby or offend someone but
JimmyNeutron has joined #ruby
<L8D> I think I see ruby as bad because I focus on using abstractions that let me write correct and performant code
<workmad3> L8D: I'm waiting for the but ;)
jenrzzz has quit [Ping timeout: 255 seconds]
<workmad3> L8D: ah, there we go :)
<tercenya> L8D: more 'enterpris-ish' choices like java have higher learning curves, harder to pick up mid-project, which often leads to higher overhead in "just getting things done". the fragmentation of Spring MVC, JSF, Grails, Struts is an example. Rubists eschew that, and often have stronger shared culture. As noted above, ruby is also widely regarded as more plesant to program in.
Xiti has quit [Quit: Xiti]
<L8D> instead of being something that lends to being incredibly easy to use and start using
apeiros_ has joined #ruby
<workmad3> L8D: I tend to see 'correct' as a moving target, so I focus on a language that optimises for me being able to change things quickly when the customer changes their mind
<panini> what about golang
jenrzzz has joined #ruby
pietr0 has joined #ruby
Suchit has quit [Client Quit]
<havenwood> i prefer this decade
<L8D> panini: under what regard?
shortCircuit__ has joined #ruby
<L8D> are you asking if I see it as bad/counter-intuitive or good?
procat has quit [Ping timeout: 250 seconds]
<panini> fast, low level, fast to develop, easy to package, good at concurrency.
<workmad3> L8D: I'm also rather against talking about 'correctness' in software, because I always associate it with formal methods and software proofs, which I've yet to see work outside of a fairly small subset of problem classes
Rapier- has joined #ruby
_maes_ has joined #ruby
mistermocha has joined #ruby
<workmad3> L8D: end of the day, you use what you think is good for the task at hand though :)
<havenwood> L8D: We somehow manage to keep creating neat, working things.
<L8D> sorry I'm using the wrong term there
thagomizer has joined #ruby
<L8D> by "correct" I mean code that only focuses on the problem at hand
francisfish has quit [Remote host closed the connection]
<L8D> so "very high level"
<L8D> so when I writing parsers, I don't want to think about managing encodings or file IO or whatever
<workmad3> L8D: you mean cohesive ;)
<workmad3> L8D: and working at a single level of abstraction at a time
DrCode has quit [Remote host closed the connection]
<L8D> or if I'm writing web servers, I don't want to deal with any low-level HTTP practices
<workmad3> L8D: which I see as aspects of design rather than the language itself... and I personally feel that ruby is quite a good language for that, due to its expressiveness :)
<havenwood> L8D: So you've mentioned immutability. Sure. But being easy for beginners isn't a downside. It doesn't then cap what you can do.
<workmad3> L8D: I'll take your point on performance though ;)
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
francisfish has joined #ruby
<eindoofus> is there the equivalent of something like python's if __name__ == "__main__":
<eindoofus> in ruby?
<panini> golang support utf8 by default, that means you don't have to worry about encoding.
<havenwood> panini: ruby supports utf8 by default
DjDeaf has quit [Remote host closed the connection]
<havenwood> modern ruby
apeiros has joined #ruby
<L8D> I think most "modern" languages attempt to support utf-8 by default
tojani has left #ruby [#ruby]
mistermocha has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
<panini> and it also okay at parsing, there was a video of rob pike where he talked about how to create parser with go.
<havenwood> sad that so much of a language's success seems to be determined by the companies that back them
dc_ has quit [Remote host closed the connection]
<L8D> oh btw if you can't tell I'm a Haskell user
<havenwood> Smalltalk had no IBM, Apple or Microsoft.
<workmad3> L8D: I was figuring as much ;)
<havenwood> L8D: It was transparent. :P
<havenwood> L8D: There's a few of you here.
gaganjyot has quit [Ping timeout: 244 seconds]
DrCode has joined #ruby
<havenwood> There're*
<L8D> but I personally prefer imperative Haskell to declarative ruby
francisfish has quit [Ping timeout: 264 seconds]
<eindoofus> *shivers*
<panini> teach me Haskell then !!!
<workmad3> L8D: there's plenty of room in the world for Haskell and Ruby to live side by side :)
goshdarnyou has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gaganjyot has joined #ruby
<workmad3> L8D: one of the key aspects of ruby's philosophy to me is the perl viewpoint of 'There isn't one correct way'
<workmad3> L8D: which I think applies as much to languages and tools as it does to constructs within the code itself ;)
<L8D> yeah I'm just here to remember why I used ruby before and to see if I'm just bikeshedding
<rpag> havenwood, true, but nowadays most implementations of smalltalk are private/pay-to-use
<shevy> L8D to be honest, the scripting languages are quite similar to one another - perl, php, python, ruby, lua
<L8D> agreed
<rpag> havenwood, "most" might be pushing it :)
<shevy> haskell is like a totally different beast
<havenwood> rpag: I'd like to watch a skilled Smalltalker work with modern tooling.
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<L8D> shevy: I'm just most familiar with Ruby (or I guess JavaScript) than the others
<havenwood> rpag: wonder if there's a screencast i could find along those lines
<shevy> oh I forgot javascript
<rpag> havenwood, none that i know off hand
wallerdev has quit [Client Quit]
skolman has joined #ruby
allcentury has joined #ruby
<benzrf> utf-8 considered unharmful
<L8D> shevy: I feel like who works with Ruby professionally should be using Haskell instead ;-)
<workmad3> shevy: I disagree btw ;) I see many more differences between e.g. ruby and PHP than I do similarities
apeiros has quit []
<rpag> havenwood, last time i checked out smalltalk i didnt find anything that won me over though, maybe gemstone is a good smalltalk VM?
<shevy> the thinking just is not the same in haskell
wallerdev has joined #ruby
<shevy> I need to be able to write code while sleeping
<havenwood> rpag: Didn't you hear? Ruby is the Smalltalk that won!
<rpag> heh
<L8D> shevy: yes, it's a different mindset, but I think you could easily solve the same problems with haskell
User458764 has quit [Ping timeout: 255 seconds]
<shevy> I tried
<rpag> as close as it comes :P
dANO has quit []
<workmad3> L8D: personally, I've tried a few times to get into a functional mindset, and it's never felt as natural to me as an OO one
fabrice31 has joined #ruby
<workmad3> L8D: I accept that other people feel differently
<havenwood> L8D: How is Haskell's library packaging these days? Pretty good now?
<shevy> L8D OOP flows like biological cells in a multicellular organism
elaptics is now known as elaptics`away
i_s has joined #ruby
<L8D> workmad3: do you think it's something that you could get used to if you had the time and patience?
* rpag is holding out for a functional language that compiles to JS
<L8D> rpag: haste
<havenwood> rpag: Clojure
benzrf is now known as benzrf|offline
duggiefresh has joined #ruby
<shevy> oh god
<shevy> another thing that targets javascript
<rpag> straight away, there's two! :)
<shevy> benzrf|offline don't go offline WE ARE TALKING ABOUT HASKELL
sambao21 has joined #ruby
<L8D> havenwood: yeah the only hurdle is that most assets need to be compiled and linked
tyll has quit [Ping timeout: 255 seconds]
<workmad3> L8D: maybe... but I'm more likely to see it as something that would fit certain problems... they're just not ones I tend to encounter ;)
apeiros_ has quit []
<rpag> havenwood, i tried closjurescript a long time ago and it wasn't quite there. have you used it at all lately?
<L8D> havenwood: so cabal has to manage a bunch of stuff for systems which ios unfortunate
<rpag> clojurescript*
troulouliou_dev has quit [Quit: Leaving]
<havenwood> rpag: no, not really
<workmad3> L8D: similarly, I don't see OO as the best way to solve all problems... some are just inherently imperative, some are inherently OO, some are inherently functional
dkphenom has joined #ruby
<rpag> havenwood, there was some funkiness about using jquery with it, but i cant remember why
<rpag> anyway, worth checking out again
<L8D> workmad3: I think you don't realise that you can use Haskell to do imperative programming
weemsledeux has joined #ruby
apeiros has joined #ruby
<workmad3> L8D: I realise it... but I also would doubt that it's the best tool for the job at that point :P
sambao21 has quit [Client Quit]
<L8D> the learning curve is still the same though :(
<apeiros> aaaaah, the beauty of a 5k screen :D
<workmad3> L8D: you can do functional programming in ruby... but I wouldn't say it's great at it :P
<rpag> apeiros, show off
<shevy> very expensive
tyll has joined #ruby
<havenwood> apeiros: mmm
<eindoofus> L8D, I beg to differ. The learning curve is not the same.
<apeiros> and knowing my irc password again…
<rpag> workmad3, its weird in ruby imo
benzrf|offline is now known as benzrf
<L8D> eindoofus: between functional haskell and imperative haskell?
<workmad3> rpag: agreed ;)
<havenwood> 5k screens, a new DJI drone coming out today... I need some cash!
<eindoofus> L8D, oh, nm. thought you meant functional vs oop
<L8D> ah
<apeiros> I'm quite happy that it is very bright. I was afraid it'd be as dark as the MBP screen
zacstewart has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 250 seconds]
<benzrf> haskell is thee best
<benzrf> haskell is thee best
<benzrf> oops
<workmad3> L8D: I do intend to play around with erlang or elixir at some point btw :) my current understanding of the way erlang works strikes quite a nice balance between functional and immutable code within actors and an OO message-passing system between actors
jenrzzz has quit [Ping timeout: 256 seconds]
benzrf is now known as benzrf|offline
<workmad3> L8D: maybe that'll be my gateway into haskell... maybe not ;)
<workmad3> L8D: I'd hope that even if I went that way, I wouldn't end up making blanket statements about other languages though :P
<workmad3> (also, I have to go... hf ;) )
<L8D> workmad3: I'd say imperative Haskell is different than intuitive imperative models because it's soo much higher level
<workmad3> L8D: imperative ruby is much higher level too :P
toretore has quit [Ping timeout: 244 seconds]
<rpag> workmad3, clojure seems more interesting than those two
lxsameer has quit [Quit: Leaving]
<L8D> workmad3: but in ruby you still write out loops and update variables
<L8D> workmad3: what do you mean by "blanket statements" ?
<workmad3> L8D: I mean like your one from earlier along the lines of 'I think that all professional rubyists would do a better job if they learned haskell'
<rpag> is ruby becoming dated like perl?
agjacome has quit [Quit: leaving]
jimbach has quit [Remote host closed the connection]
<L8D> rpag: not really
<rpag> its not the new kid on the block anymore
<L8D> no
<L8D> well.... yes
<L8D> node is the new kid
<shevy> yeah
<shevy> rpag but who will replace ruby
<shevy> no please
<rpag> nah
<shevy> javascript...
<rpag> go is the new kid
krz has quit [Quit: WeeChat 1.0.1]
<L8D> rpag: nah
<shevy> go is not a scripting language family representative!
<workmad3> L8D: and as for loops and updating variables... sometimes that's the easier way to go... and for a short imperative script, I don't see that as a problem :P
<havenwood> L8D: you didn't get the memo? Node is dying now. >.>
<L8D> go has pretty far to go before it becomes the "new kid"
<workmad3> anyway, must go, hf all ;)
<rpag> havenwood, it is?
<eindoofus> just came from Scala and was debating learning into Play. personally i love all the breadcrumbs RoR has to offer and hate the idea of obsessing over perfect code, which is how I ended up here. i would rather create something than ponder the perfect language.
<L8D> maybe another year
melik has joined #ruby
<shevy> eindoofus but RoR is rails!
<eindoofus> i know that. lol
<L8D> eindoofus: you really need to join the erlang community
<havenwood> rpag: well, the HN stories went from Yay Node to Why I'm Leaving Node
<eindoofus> (R)oR
<rpag> havenwood, it fell fast
<havenwood> rpag: some prominent folk left
<L8D> havenwood: that's just HN though
<eindoofus> L8D, why erlang?
<L8D> eindoofus: bikeshedding
<L8D> they, just like the Haskell community, take it incredibly seriously
<eindoofus> L8D, oh. lol
panzi has joined #ruby
<L8D> which is why barely anyone used Haskell or Erlang
<rpag> shevy, i dont know, for one i see functional languages becoming more prominent
* L8D cries in the corner
<panzi> how do I access local variables in buybugs when I call irb from it
apeiros_ has joined #ruby
<panzi> in the old debugger it just worked
<havenwood> rpag: I think Ruby has a good future.
lxsameer has joined #ruby
baweaver has joined #ruby
<eindoofus> rpag, in time, but i still feel like there is a lot that can be done before functional programming becomes truly needed across the board
ghr has quit [Ping timeout: 245 seconds]
<rpag> havenwood, i agree, it's made its dent
<rpag> its*
<panzi> no one any idea?
melik has quit [Ping timeout: 265 seconds]
tlarevo has quit [Remote host closed the connection]
<havenwood> panzi: i don't understand the question
<rpag> byebug*
workmad3 has quit [Ping timeout: 255 seconds]
cpruitt has quit [Quit: cpruitt]
<havenwood> yeah, i figure something to do with Pry and Byebug
robbyoconnor has joined #ruby
<havenwood> but what?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag> sounds like a scope issue with binding
<panzi> I try do debug something and have started buybug. now I need to do something more complex for wich I started irb in buybugs but now I can't access any local variables from where debugger was called, wich makes this all useless
IrishGringo has joined #ruby
gsd has joined #ruby
<panzi> in ruby 1.9 debugger I could just access any locals from within the irb that was started from within the debugger
<havenwood> panzi: by `irb` do you mean `pry` and by `buybugs` you mean `byebug`?
<panzi> what good is an irb when I can't access anything?
baweaver has quit [Remote host closed the connection]
<shevy> lol
duplex has quit [Quit: Leaving]
<shevy> buybugs
<shevy> hahahaha
<panzi> by buybugs I mean buybug, yes. by irb I mean the buybug command irb
<shevy> panzi I wanna buy some bugs
<panzi> whatever, english
<panzi> strange ambiguous words
PierreRambaud has quit [Remote host closed the connection]
<panzi> I can never keep them apart
<havenwood> like 'goodbye bug!' not like 'buy bugs, buy them all!'
<panzi> I know, still. the words sound exactly the same (to me) so I cant remember which is written which way
<havenwood> panzi: i'm confused how you're using byebug with irb
jimbach has joined #ruby
dc_ has joined #ruby
<panzi> havenwood: I just typed "irb" in byebug
jack_rabbit has joined #ruby
<havenwood> uh
<panzi> I want to do something more complex than print values
apeiros has quit [Remote host closed the connection]
<panzi> under the old debugger this was no problem
baweaver has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
apeiros has joined #ruby
<havenwood> panzi: I'm not familiar with using irb with byebug, but maybe take a look at pry-byebug: https://github.com/deivid-rodriguez/pry-byebug#readme
<havenwood> panzi: http://pryrepl.org/
ndrei has quit [Ping timeout: 256 seconds]
desp has quit [Quit: This computer has gone to sleep]
russt has joined #ruby
<panzi> what is this? a irb replacement? I don't need that, I'm running an irb. I need to access locals from that rib session I'm currently having open here
neredsenvy has quit [Quit: Page closed]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rpag> much better irb imo
<panzi> I don't care, that is not what I asked for
apeiros has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
samuel02 has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
St1gma has quit [Read error: Connection reset by peer]
jhwhite has joined #ruby
bMalum_ has joined #ruby
vimer has joined #ruby
bMalum has quit [Ping timeout: 256 seconds]
bMalum_ is now known as bMalum
sepp2k_ has joined #ruby
jhwhite has left #ruby [#ruby]
<mostlybadfly> If you're trying to debug you can place a pry call in the code
jenrzzz has joined #ruby
<mostlybadfly> Not sure if that is what he was trying to suggest to help
sepp2k_ has quit [Client Quit]
sinequanon has joined #ruby
sinequanon has quit [Remote host closed the connection]
wchun has joined #ruby
Astrologos_ has joined #ruby
wchun has quit [Read error: Connection reset by peer]
dkb20k has joined #ruby
GeorgesLeYeti has quit [Quit: Leaving]
cpruitt has joined #ruby
L8D has left #ruby [#ruby]
djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
m3_del has quit [Remote host closed the connection]
kirun has joined #ruby
dorei has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DjDeaf has joined #ruby
russt has quit [Ping timeout: 264 seconds]
banister has joined #ruby
desp has joined #ruby
tier has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
dkb20k has quit [Ping timeout: 250 seconds]
panini has quit [Remote host closed the connection]
iamjarvo has joined #ruby
icebourg has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
gr33n7007h has quit [Remote host closed the connection]
tier has joined #ruby
iamjarvo has joined #ruby
fresham has quit [Quit: leaving]
gr33n7007h has joined #ruby
sambao21 has joined #ruby
nkumari has joined #ruby
michaeldeol has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
desp has quit [Quit: This computer has gone to sleep]
vimer has quit [Quit: leaving]
procat has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
zorak8 has joined #ruby
fantazo has quit [Quit: Verlassend]
procat has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Read error: No route to host]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
spyderman4g63 has joined #ruby
benzrf|offline is now known as benzrf
<havenwood> i like the new Github syntax highlighting colors but the new language bar colors are confusing me
jimmyhoughjr has joined #ruby
<havenwood> at least Ruby kept Red
<shevy> guys
<shevy> you are going to shit your pants
<shevy> ...
<shevy> THERE IS A NEW RELEASE OF TCL!!! http://downloads.sourceforge.net/tcl/tcl8.6.3-src.tar.gz
<shevy> a new contender!
<shevy> TIOBE will be in uproar soon
sinequanon has joined #ruby
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
gigetoo has joined #ruby
skolman_ has quit [Client Quit]
dseitz has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
DjDeaf_ has joined #ruby
dc has joined #ruby
danijoo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
DjDeaf has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
procat has joined #ruby
rdark has quit [Quit: leaving]
dc_ has quit [Ping timeout: 250 seconds]
TPBallbag has quit [Remote host closed the connection]
sambao21 has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NoNMaDDeN has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
jobewan has quit [Quit: Leaving]
chrisja has joined #ruby
weemsledeux has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
Astrologos_ is now known as Dorei
jds has quit [Quit: Connection closed for inactivity]
Deele has joined #ruby
Paradox has joined #ruby
m3_del has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
benzrf is now known as benzrf|offline
baweaver has quit [Remote host closed the connection]
Timgauthier has joined #ruby
ndrei has joined #ruby
icebourg has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
neoxquick has joined #ruby
twistedpixels is now known as zz_twistedpixels
momomomomo has quit [Ping timeout: 256 seconds]
Timgauthier has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
zacts has joined #ruby
nonks has joined #ruby
dkphenom has joined #ruby
nkumari has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
<zacts> hi ruby hackers
desp has joined #ruby
<shevy> hi zacts
larissa has joined #ruby
ferr has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
TPBallbag has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
<rpag> shevy, i remember tcl and tk(for some reason) being a popular combo
desp has quit [Client Quit]
<shevy> yep
<shevy> shows your age man
gregf has quit [Quit: WeeChat 1.0.1]
<shevy> I'll keep it a secret though
<eam> shevy: I wrote a ruby program today
<rpag> around the same time as visual basic 6 :P
<shevy> YES
<shevy> THE PERL IS GETTING WEAKER IN YOU
<shevy> lol
TPBallbag has quit [Remote host closed the connection]
<shevy> a pony generator
desp has joined #ruby
<shevy> what's it do?
<shevy> it generates a pony
hiyosi has joined #ruby
<shevy> made clever use of __END__
ixti has quit [Ping timeout: 264 seconds]
<shevy> I guess that is a perlism too right?
<eam> rubyism
<eam> we call them rubyisms now
<shevy> lol
<shevy> I can't tell whether you are trolling me or being serious
<eam> why not both?
<shevy> no
<shevy> trolls are not serious people
nvdpl has joined #ruby
<eam> well I'm very serious
<eam> (which is amusing)
rpag_ has joined #ruby
<shevy> will this display one random pony?
<eam> yes
nkumari has joined #ruby
<eam> run it!
<shevy> it outputs nothing useful :(
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> what
gregf has joined #ruby
rpag has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
<shevy> it's like a splatted pony
<shevy> fell down from the roof or something
iamjarvo has joined #ruby
<eam> did you not copy the raw text or something
<eam> all the spaces are missing
hiyosi has quit [Ping timeout: 250 seconds]
<shevy> ohhh
<shevy> yeah
<rpag_> hahahahaha
<shevy> I can see the pony now
User458764 has joined #ruby
<shevy> eam
<shevy> why did you write a pony generator
ramfjord has joined #ruby
<eam> to demonstrate how wonderful the ruby language is
<shevy> :\
nateberkopec has joined #ruby
chipotle has joined #ruby
<shevy> rpag_ tell me that eam is not serious today
<eam> (and to illustrate __END__ for some folks)
takle has joined #ruby
<eam> also $/ which is similarly amazing
<rpag_> shevy, i copied the script and thought it was cool :P
<rpag_> shevy, came out better than yours
<rpag_> shevy, yours is still entertaining though
<shevy> mine?
<rpag_> the screenshot
<eam> the mutant horses
<shevy> well
<shevy> I copied from the pastie
<shevy> then I tried again using the raw format
<shevy> which worked better
i0n has quit [Quit: snooze]
aspires has quit []
earfin has quit [Quit: earfin]
x1337807x has joined #ruby
<rpag_> still cool
reinaldob has quit [Remote host closed the connection]
<rpag_> made me laugh out loud :)
x1337807x has quit [Client Quit]
shazaum_ has quit [Quit: Leaving]
reinaldob has joined #ruby
<shevy> :\
User458764 has quit [Ping timeout: 258 seconds]
jnollette has quit [Remote host closed the connection]
User458764 has joined #ruby
drjfreeze has quit [Ping timeout: 245 seconds]
kristofferR has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has joined #ruby
jnollette has joined #ruby
icebourg has joined #ruby
drjfreeze has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
desp has quit [Quit: This computer has gone to sleep]
icebourg has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
larissa has quit [Quit: Leaving]
icebourg has joined #ruby
larissa has joined #ruby
dc has quit [Disconnected by services]
beef-wellington has joined #ruby
dc_ has joined #ruby
ixti has joined #ruby
DLSteve has joined #ruby
desp has joined #ruby
Mars` has joined #ruby
ghr has joined #ruby
Psy-Q has quit [Quit: ...]
vic736 has joined #ruby
seanp2k has joined #ruby
JohnBat26 has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
vic736 has quit [Client Quit]
omosoj has joined #ruby
desp has quit [Client Quit]
JimmyNeutron has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Dorei is now known as dorei
Rapier-_ has joined #ruby
Rapier- has quit [Read error: Connection reset by peer]
seanp2k has quit [Quit: seanp2k]
Rapier-_ has quit [Client Quit]
jerius has quit []
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
desp has joined #ruby
postmodern has quit [Ping timeout: 244 seconds]
panzi has quit [Quit: ChatZilla 0.9.91 [Firefox 33.0/20141015093046]]
icebourg has quit [Read error: Connection reset by peer]
icebourg_ has joined #ruby
icarus has joined #ruby
Hijiri has joined #ruby
<cj> do any of you have an api framework you prefer to JSON-RPC?
desp has quit [Client Quit]
apeiros has joined #ruby
matcouto has joined #ruby
<androidbruce> triple !'s
<androidbruce> in a nof_if statement
julieeharshaw has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
arup_r has quit [Quit: Leaving.]
<shevy> wat
rodfersou has quit [Quit: leaving]
weemsledeux has quit [Remote host closed the connection]
julieeharshaw has joined #ruby
<v0n> is there a ruby trick to format a string given a hash of placeholders? i.e. "%city (%condition %temperature°)".format_with({ condition: "Clear", temperature: 6, city: "Montreal", foo: "bar")
Timgauthier has joined #ruby
<apeiros> >> "%city (%condition %temperature°)" % { condition: "Clear", temperature: 6, city: "Montreal", foo: "bar" }
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<apeiros> eval-in?
weemsledeux has joined #ruby
<shevy> you killed it!
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> the long monitor was too much for eval-in__
_lexjm has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaronrl_ has joined #ruby
blenny has quit [Read error: Connection reset by peer]
gsd has joined #ruby
<apeiros_> was wrong anyway
<apeiros_> v0n: "%{city} (%{condition} %{temperature}°)" % { condition: "Clear", temperature: 6, city: "Montreal", foo: "bar" } # => "Montreal (Clear 6°)"
<v0n> omg
<v0n> apeiros_: wonderful
<shevy> aha
<shevy> apeiros has replaced eval-in
<shevy> hence the _
aaronrl has quit [Ping timeout: 258 seconds]
<apeiros> no
jerius has joined #ruby
<apeiros> I just have 2 computers again
jerius has quit [Client Quit]
sambao21 has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
jerius has joined #ruby
<v0n> apeiros: what is the official doc for that, how is that called? (the %(syntax))
baweaver has quit [Remote host closed the connection]
<apeiros> String#%
<apeiros> % is a method call
<apeiros> and since you call it on a String, it's String#% (# denotes "instance method")
mleung has quit [Quit: mleung]
ecksit has joined #ruby
wigirc has quit [Ping timeout: 264 seconds]
<ecksit> hey, if i was executing a system commandfrom inside of ruby, is Thread.new ok to use? or will it chew up too many resources
<rpag_> apeiros, shevy it was probably the ° that messed up eval-in
fantazo has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
pietr0_ has joined #ruby
<apeiros> let's try
<apeiros> >> "%{city} (%{condition} %{temperature})" % { condition: "Clear", temperature: 6, city: "Montreal", foo: "bar" } # => "Montreal (Clear 6°)"
<apeiros> nope
<v0n> apeiros: simply http://www.ruby-doc.org/core-2.1.4/String.html#method-i-25 indeed, that's perfect thanks!
pietr0_ has quit [Remote host closed the connection]
<rpag_> >> "%{city} (%{condition} %{temperature})" % { condition: "Clear", temperature: 6, city: "Montreal", foo: "bar" }
<eval-in__> rpag_ => "Montreal (Clear 6)" (https://eval.in/220588)
pietr0 has quit [Ping timeout: 250 seconds]
<rpag_> the comment had it this time
pietr0 has joined #ruby
* apeiros hits eval-in__ with a broom-stick
<rpag_> lol
<apeiros> >> "%{city} (%{condition} %{temperature})" % { condition: "Clear", temperature: 6, city: "Montreal", foo: "bar" }
<eval-in__> apeiros => "Montreal (Clear 6)" (https://eval.in/220589)
<apeiros> >> "%{city} (%{condition} %{temperature})" % { condition: "Clear", temperature: 6, city: "Montreal", foo: "bar" } # what?
<eval-in__> apeiros => "Montreal (Clear 6)" (https://eval.in/220590)
iamjarvo has joined #ruby
mattstratton has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
<apeiros> ah
iamjarvo has quit [Max SendQ exceeded]
freerobby has joined #ruby
benzrf is now known as benzrf|offline
<apeiros> comment still contained °, I see, that's what you meant
<rpag_> yup
iamjarvo has joined #ruby
<shevy> ohhh
<shevy> Unicode hell for the bot!
einarj has joined #ruby
<apeiros> yes
<apeiros> bot has unifail
n008f4g_ has joined #ruby
TPBallbag has joined #ruby
ldnunes has quit [Quit: Leaving]
<shevy> hehe
gaganjyot has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
nonks has joined #ruby
wigirc has joined #ruby
djbkd has quit [Remote host closed the connection]
tier_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
OffTheRails has joined #ruby
kaspergrubbe_ is now known as kaspergrubbe
decoponyo has quit [Quit: Leaving...]
<olivier_bK> i added * * * * * /usr/local/bin/ruby /root/script/stream/exportDataToCsv.rb in my crontab and he do nothing
<olivier_bK> i dont understand
JoshGlzBrk has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
<jhass> olivier_bK: add a MAILTO
<jhass> so you get errors
sambao21 has joined #ruby
tier has quit [Ping timeout: 265 seconds]
<jhass> or try to find logs
dkb20k has joined #ruby
Xeago has joined #ruby
<crome> or check the cron log
<crome> ^
<olivier_bK> jhass, i find the log in /var/log/cron but i have nothing only (root) CMD (/usr/local/bin/ruby /root/script/stream/exportDataToCsv.rb)
<dorei> crond has been absorbed by systemd, right?
<jhass> or use systemd so the error is just a systemctl status away :P
<jhass> dorei: no
<jhass> while timer units can replace the most common usages, they don't replace all
Xeago_ has joined #ruby
corehook has quit [Remote host closed the connection]
<jhass> maybe your script just does nothing?
gsd has quit [Read error: Connection reset by peer]
gsd has joined #ruby
User458764 has quit [Remote host closed the connection]
aspires has joined #ruby
dkb20k has quit [Ping timeout: 265 seconds]
toretore has joined #ruby
<olivier_bK> jhass, i test it before :)
seanp2k has joined #ruby
jobewan has joined #ruby
tier_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 250 seconds]
<jhass> how?
<jhass> sudo env -i /usr/local/bin/ruby ... ?
<dorei> maybe the crontab is run under a user with no access to ruby, etc
mleung has joined #ruby
govg has quit [Quit: leaving]
jenrzzz has joined #ruby
mathias2 has quit [Ping timeout: 258 seconds]
<atmosx> olivier_bK: that's won't be enough
pa3ce has quit [Quit: Leaving]
atomical has quit [Ping timeout: 258 seconds]
codecop has quit [Remote host closed the connection]
baweaver has joined #ruby
<atmosx> you need to define nearly anything there is on crontab
vifino has quit [Remote host closed the connection]
<dorei> i think rvm provides special binaries to be used in crontab
<atmosx> dorei: it does, they don't work.
<dorei> lol
vifino has joined #ruby
<atmosx> not special binaries, it provides a shell which sets some local variables before the script being executed, should work in theory doesn't in practice can't tell why.
atomical has joined #ruby
<jhass> chruby-exec works well :P
<atmosx> no idea, I'm an rvm fan :-P
jenrzzz has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
shortCircuit__ has quit [Ping timeout: 245 seconds]
rbrs has joined #ruby
<atmosx> bbl
atmosx has quit [Quit: Lost in trance]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
tier has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
jalcine has quit [Quit: Quit]
ghr has joined #ruby
reinaldob has joined #ruby
francisfish has joined #ruby
malkomalko has joined #ruby
abuzze has joined #ruby
icebourg has joined #ruby
malkomalko has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
dangerousdave has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
icebour__ has joined #ruby
djbkd has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
icebourg_ has quit [Ping timeout: 258 seconds]
abuzze_ has quit [Ping timeout: 265 seconds]
_lexjm has quit [Quit: afk]
michaeldeol has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
nvdpl has quit [Quit: ZZZzzz…]
lidaaa has joined #ruby
alem0lar1 has quit [Remote host closed the connection]
max96at is now known as max96at|off
Timgauthier is now known as timgauthier_away
jleishman has quit [Quit: Be back later ...]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Timgauthier has joined #ruby
icebour__ has quit [Ping timeout: 264 seconds]
graydot has quit [Quit: graydot]
hmsimha has joined #ruby
nvdpl has joined #ruby
jt__ has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
graydot has joined #ruby
Ulrike_Rayne has joined #ruby
Guest58729 has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
icebourg has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
graydot has quit [Client Quit]
Ulrike_Rayne has joined #ruby
<jt__> how do I get a listing of what library comes with ruby?like standard modules in Python?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
jimmyhoughjr has joined #ruby
jleishman has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
baweaver has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 272 seconds]
TPBallbag has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
Ulrike_Rayne has joined #ruby
pa3ce has joined #ruby
icebourg_ has joined #ruby
emmesswhy has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
reinaldob has quit [Remote host closed the connection]
<pmarreck> Offbeat question: Why don't the ridiculously different "password requirements" out there just all make sure you pick a password with a high Shannon entropy and/or high Kolmogorov complexity? (both beyond some threshold)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Xiti has joined #ruby
<eam> pmarreck: some requirements are driven by regulatory policy, others by downstream dependencies on extremely old systems
sdwrage has joined #ruby
<eam> ultimately, the policy is something you need to be able to explain to an idiot, so simple rules tend to win out
omosoj has quit [Ping timeout: 245 seconds]
<havenwood> pmarreck: it's easier to explain at least one letter, number, symbol and length requirements than H(X)=-sum_(x)P(x)log_2[P(x)] or K=lim_(T->0)lim_(epsilon->0^+)lim_(N->infty)1/(NT)sum_(n=0)^(N-1)(K_(n+1)-K_n).
michaeldeol has quit [Ping timeout: 256 seconds]
<pmarreck> eam: Here's the simple rule: "Keep typing until the graph goes from 'bad' and red to 'good' and green. Tips: Use combinations of random dictionary words, we can suggest them here<link>. Use numbers and non-alphanumeric characters. Use spaces."
pasv has joined #ruby
<pmarreck> havenwood: You can compute the above on the fly
<havenwood> pmarreck: and people are typically eager to get folk to sign up so wanting to make it simple wins out over security
<havenwood> pmarreck: no :O
pasv is now known as Guest69055
<eam> pmarreck: fact is people are going to want to pick bad passwords or they'll switch to the competition
<pmarreck> havenwood: I just described how it would be simple. And why not?
St_Marx has quit [Remote host closed the connection]
almostworking has joined #ruby
<eam> picking a stronger password isn't super meaningful all told. 2fa is a better and more user friendly path to pursue
<toretore> anyone putting requirements on my password better hope i need their service more than i hate being told what my password should be like
<pmarreck> "We need a bunch of text aka a password that is hard for a person or computer to guess. Here's a live graph showing how strong we think your attempted password is. We need it to be in the green zone. Tips<link>"
<havenwood> pmarreck: i like the idea, just it would cause anxiety with people not familiar with that format. it's too long to remember, not their usual password, etc.
<pmarreck> eam: 2FA is a bit frustrating. Gotta whip out my phone and fire up an app every damn time. Slows you down.
<eam> pmarreck: you mean otp/google auth? 2fa comes in many forms, such as just text notifications
<havenwood> pmarreck: the Safari direction of trying to get people to let the browser generate your password and store it in your Keychain is one way
<eam> password managers are great, so would be a switch to PKI
<pmarreck> toretore: yeah that's exactly why I hate a new requirement on a site that my existing list of passwords doesn't conform to. "Oh, and your password can't end in a number or non-alphanumeric character... But we need at least 1 of both" is the most recent one I've seen
<eam> once we have password managers and random strings as the norm, PKI is an easy next step
St_Marx has joined #ruby
<havenwood> pmarreck: people would use leet speak versions of songs, poetry, etc still, so you could likely attack it
<pmarreck> eam: yeah i've seen text notifications too. that's OK, I guess. I miss OpenID :(
baweaver has joined #ruby
<pmarreck> havenwood: the safari solution is fine as long as you only connect from the apple walled garden. Doesn't work on some random browser at a hotel
jenrzzz has joined #ruby
<pmarreck> havenwood: If you write a kolmogorov complexity evaluator good enough, you can include leetspeak variants of words
<havenwood> pmarreck: pretty brutal in that case, i suppose you can get to Keychain Access from your walled garden iPhone and manually type it. but yeah..
emmesswhy has quit [Quit: Leaving]
wallerdev has joined #ruby
<havenwood> pmarreck: which gets back to you needing a password manager
<eam> brute forcing is just not much of an issue
<havenwood> pmarreck: how are you supposed to remember your passwords?
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
<pmarreck> eam: big fan of some kind of PKI, actually. Problem is that the private key needs to be super secure, and since nobody's going to remember a private key, it has to get derived from a... strong password, again.
<pmarreck> Or stored somewhere, where it can be hacked
<havenwood> and people can't remember strong passwords
<eam> it doesn't need to be any more secure than the password
devdazed has quit [Ping timeout: 250 seconds]
<havenwood> people hardly remember weak passwords
<eam> pki solves phishing
retnuh has joined #ruby
<eam> which is a much larger threat than brute forcing
<pmarreck> eam: true, that it does.
<pmarreck> eam: where would my private key be stored?
<eam> most banks have policies that undermine password security
<eam> pmarreck: assuming you have a password manager, in that
<pmarreck> eam: hah, don't get me started on banks
pengin has joined #ruby
<pmarreck> banks are reliant on the fact that all transactions can be traced and reversed
<eam> pmarreck: I have a list of password policies from various banks, actually: http://frap.net/bad_bank_security.txt
<eam> pmarreck: right, if you have a check from someone you have enough information to add/remove money from their account
<pmarreck> eam: ha, awesome. this is why I came here
<pmarreck> eam: yep, truth
devdazed has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
mathias2 has joined #ruby
<pmarreck> eam: and that won't work with PKI. as soon as someone unknowingly compromises your private key and signs something as you with it, you're fucked. you can then, I suppose, initiate the revocation with your revocation cert that you of course generated at the time you made the private key... :)
almostworking has left #ruby ["Leaving"]
devdazed has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 244 seconds]
TPBallbag has joined #ruby
<pmarreck> eam: omg dude. I lost it at "case insensitive password" lol
<pmarreck> s/password/passwords
devdazed has joined #ruby
<pmarreck> There's a hardware signing device out there that I know of, but right now it's only for bitcoin transactions. (the Trezor)
<pmarreck> But then you're... dependent on a physical hardware device. (To be fair, you can regen all your keys with some loong list of words you write down when you set it up.)
lolmaus has quit [Ping timeout: 240 seconds]
TPBallbag has quit [Remote host closed the connection]
hesco has quit [Ping timeout: 264 seconds]
<eam> pmarreck: it's not necessary to do that entire dance with PKI, you can also just re-create a new keypair
humonkagoat has joined #ruby
mathias2 has quit [Ping timeout: 240 seconds]
<eam> no need for a distributed system as we have with tls certs
<eam> aka rm .ssh/authorized_keys # no revocation mess
bklane has joined #ruby
IrishGringo has quit [Ping timeout: 255 seconds]
lxsameer has quit [Quit: Leaving]
boombadaroomba has quit [Remote host closed the connection]
rudisimo has quit [Remote host closed the connection]
retnuh has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
arescorpio has joined #ruby
djbkd has joined #ruby
jnollette has quit [Remote host closed the connection]
fabrice31 has joined #ruby
einarj_ has joined #ruby
humonkagoat has left #ruby [#ruby]
devdazed_ has joined #ruby
claymore has quit [Ping timeout: 258 seconds]
jnollette has joined #ruby
icebourg_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
claymore has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 240 seconds]
devdazed has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
icebourg has quit [Client Quit]
devdazed_ has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
einarj has quit [Ping timeout: 245 seconds]
it0a has quit [Quit: WeeChat 1.0.1]
Ulrike_Rayne has joined #ruby
reinaldob has joined #ruby
ghr has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
diegoviola is now known as resented
reinaldob has quit [Remote host closed the connection]
narph has quit [Quit: Connection closed for inactivity]
OffTheRails has quit [Quit: Leaving]
jnollette has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
thsig has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ulrike_Rayne has quit [Max SendQ exceeded]
Ulrike_Rayne has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
banister_ has joined #ruby
<pmarreck> eam: yeah but how will you invalidate things that were signed with your previous key?
thsig_ has joined #ruby
nkumari has quit [Remote host closed the connection]
Ulrike_Rayne has quit [Excess Flood]
Ulrike_Rayne has joined #ruby
fartface has joined #ruby
jnollette has joined #ruby
banister has quit [Ping timeout: 240 seconds]
<fartface> I've got a simple problem that I can't seem to find the error in. I'm doing a caesar cipher, and I keep getting 'undefined method '-' for NilClass' but I can't for the life of me see the error in my code. http://pastebin.com/nVc3cykT
<zenspider> you don't invalidate them? you just delete your private key, no?
<fartface> It's my ternary conditional that seems to be triggering it, but I can't see anything wrong with it
<zenspider> fartface: it is whereever you have '-'
ka-el-man has joined #ruby
bricker`work has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
<zenspider> alpha.index(e) is returning nil
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
thsig has quit [Ping timeout: 250 seconds]
<eam> pmarreck: that's irrelevant for simple auth
<fartface> Ohhh, ohh I know what it is... I'm retarded.
<fartface> lol
Ulrike_Rayne has joined #ruby
<eam> you're not signing anything, you're just completing challenges
<zenspider> fartface: you downcased it and then asked for an uppercase char
<ka-el-man> does anyone know a website, where i can practise ruby methods?
nkumari has joined #ruby
<zenspider> or something
<ka-el-man> in a fun way
jnollette has quit [Client Quit]
<fartface> zenspider: I'm checking for an uppercase character in a lowercase array
<zenspider> ka-el-man: the ruby koans
<fartface> zenspider: Durrr!
<fartface> lol
<fartface> smh
<fartface> like 20 minutes I've spent on this.
<zenspider> fartface: just change your if/else and split lower from upper. it'll be a lot more clear anyhow
<zenspider> switch to a case whil you're in there
nvdpl has quit [Quit: ZZZzzz…]
Vile` has quit [Ping timeout: 244 seconds]
<ka-el-man> zenspider:is it interactive?
jnollette has joined #ruby
<zenspider> case e; when /[a-z]/ then ... ; when /[A-Z]/ then ...
mikeg has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
<pmarreck> eam: ah, good point
stunder has quit [Quit: Screw you guys I'm going home]
IrishGringo has joined #ruby
Ulrike_Rayne has joined #ruby
paulfm has quit []
claymore has quit [Quit: Leaving]
<fartface> zenspider: just had to add .downcase to alpha.index(e) (so alpha.index(e.downcase)) and was good to go
<fartface> Thanks!
<zenspider> now that it is working, try my suggestion
<zenspider> it'll be a lot cleaner
ndrei has quit [Ping timeout: 250 seconds]
jnollette has quit [Client Quit]
Vile` has joined #ruby
tesaf has quit [Quit: Lost terminal]
thsig_ has quit [Remote host closed the connection]
thsig has joined #ruby
<fartface> zenspider: It's succinct as I'd like it to be. I'm familiar with case, I don't feel like it's necessary in this case.
desp has joined #ruby
jnollette has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
<zenspider> you like that trinary in there?
Ulrike_Rayne has joined #ruby
<zenspider> hell... you should pull "shifted << " up above the if
yokel has quit [Ping timeout: 265 seconds]
thsig_ has joined #ruby
mathias2 has joined #ruby
andrewlio has quit [Quit: Leaving.]
yokel has joined #ruby
yokel has quit [Changing host]
yokel has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fartface> Ternarys have their place, I wouldn't save any lines using a case over a simple if/else with just two possibilities
<fartface> This way I keep it on one line vs 4
<zenspider> I didn't say anything about saving lines
tier has quit [Ping timeout: 244 seconds]
sailias has quit [Quit: Leaving.]
<zenspider> lines don't mean shit
<zenspider> I said it'd make it clearer
<zenspider> first change: http://pastebin.com/jZ7MXZZX
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombadaroomba has joined #ruby
yokel has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
<fartface> Heh, duly noted, you don't care for ternary operators.
fartface has quit [Quit: Leaving]
bmurt has quit []
<zenspider> second change: http://pastebin.com/XUFgtz0R
<zenspider> idiot
jleishman has quit [Quit: Be back later ...]
enebo has quit [Quit: enebo]
tier has joined #ruby
ptrrr has quit [Quit: ptrrr]
thsig has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
mathias2 has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: leaving]
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
ta has quit [Ping timeout: 250 seconds]
kireevco1 has joined #ruby
thsig has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
samuel02 has quit [Remote host closed the connection]
kireevco1 has joined #ruby
kireevco has quit [Ping timeout: 245 seconds]
kireevco1 has quit [Max SendQ exceeded]
thsig_ has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
nonks has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
Norrin has left #ruby [#ruby]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
tier has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
jnollette has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
jnollette has joined #ruby
resented is now known as dviola
iamjarvo has joined #ruby
beef-wellington has quit [Ping timeout: 255 seconds]
kln2d has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
Ulrike_Rayne has joined #ruby
einarj_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 244 seconds]
dkb20k has joined #ruby
kln2d has quit [Client Quit]
cleopatra has joined #ruby
codecop has quit [Remote host closed the connection]
Ulrike_Rayne has quit [Max SendQ exceeded]
Ulrike_Rayne has joined #ruby
Ulrike_Rayne has quit [Client Quit]
jnollette has quit [Quit: Signing off.]
econerd4ever has joined #ruby
jnollette has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
graydot has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
<banister_> Hanmac is this you? http://cl.ly/image/1y0t3Y1m1b0N
KC9YDN has joined #ruby
jimbach has quit [Remote host closed the connection]
ta has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
mikeg has quit [Ping timeout: 256 seconds]
josephndenton has joined #ruby
fella7s has quit [Ping timeout: 245 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Konversation terminated!]
gkra has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
gkra has joined #ruby
sambao21 has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
benzrf|offline is now known as benzrf
jenrzzz has joined #ruby
rbrs has quit [Remote host closed the connection]
TPBallbag has joined #ruby
hiyosi has quit [Ping timeout: 250 seconds]
dideler has quit [Ping timeout: 250 seconds]
JoshGlzBrk has joined #ruby
fella5s has joined #ruby
wallerdev_ has joined #ruby
wallerdev has quit [Ping timeout: 240 seconds]
wallerdev_ is now known as wallerdev
DjDeaf_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
DjDeaf has joined #ruby
chrishough has joined #ruby
eindoofus has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
TPBallbag has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
workmad3 is now known as wm3|away
robbyoconnor has quit [Quit: Konversation terminated!]
francisfish has quit [Remote host closed the connection]
zz_twistedpixels is now known as twistedpixels
zacts has joined #ruby
seanp2k has quit [Quit: seanp2k]
jerius has quit [Ping timeout: 250 seconds]
aspires has quit []
DjDeaf has quit [Ping timeout: 244 seconds]
doodlehaus has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
seanp2k has joined #ruby
{xenomorph} is now known as xenomorph
ghr has joined #ruby
nonks has joined #ruby
reinaldob has joined #ruby
olivier_bK has quit [Ping timeout: 244 seconds]
zorak8 has joined #ruby
almostwhitehat has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has quit [Ping timeout: 265 seconds]
nkumari has quit [Remote host closed the connection]
Spami has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
rkalfane has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
omosoj has joined #ruby
wldcordeiro_ has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
tlarevo has joined #ruby
rikur has joined #ruby
<rikur> I
<zenspider> J
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
baweaver has quit [Remote host closed the connection]
<rikur> I'm trying to instance_eval a string which in turn uses NET:HTTP and tries to call s.setsockopt. This is not allowed when running in $SAFE=2. I'm not sure what to try next.
freerobby has joined #ruby
livingstn has quit []
<rikur> $SAFE=2 is set to prevent the script from deleting any files (not perfect, doesn't need to be.. just want to prevent the most obvious cases - solution is used in-house only).
tlarevo has quit [Read error: Connection reset by peer]
<zenspider> rikur: why?
tlarevo has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TPBallbag has joined #ruby
<rikur> zenspider, in my case this is a ruby script running as a "update" hook for git. I'd like to give each project as much flexibility as possible when it comes to enforcing rules per commit (the evaled string) vs. just limiting them to use set methods.
IrishGringo has quit [Ping timeout: 265 seconds]
<rikur> so if a project lead wants, they could do stuff like: push.commits.each .. etc.
procat has quit [Ping timeout: 265 seconds]
nkumari has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<zenspider> and why does that involve eval'ing strings?
seanp2k has quit [Quit: seanp2k]
hmsimha has joined #ruby
<rikur> umm. I have a file called ".git.rb" in a special git branch that will be read and evaled to optionally enforce rules per project. If you know of other means than using an eval, please let me know :)
dkphenom has joined #ruby
<zenspider> load works
<zenspider> or require
mathias2 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
beneggett has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
iamjarvo has joined #ruby
rudisimo has joined #ruby
Soliah has quit [Quit: Soliah]
oleo__ has joined #ruby
<apeiros> ok, starting rails apps mounted via AFP is not viable.
<apeiros> ~100x longer response times
Xeago has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> (development mode)
dideler has joined #ruby
zacts has quit [Quit: leaving]
mathias2 has quit [Ping timeout: 240 seconds]
oleo is now known as Guest71941
Guest71941 has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Ping timeout: 255 seconds]
<zenspider> apeiros: rsync might be your friend here
seanp2k has joined #ruby
<zenspider> esp rsync w/ fsevents (or whatever)
Xeago_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
<apeiros> that's what I wanted to avoid :-/
Rhainur has joined #ruby
<apeiros> (syncing)
KC9YDN has quit [Remote host closed the connection]
<zenspider> sshfs ?
<zenspider> I found the latency on that to be better than many
<rikur> zenspider, I'm not sure if I have access to the file per se - I can only load it's contents as a string. Should I save it under /tmp and then load it? :O
Rhainur1 has quit [Ping timeout: 264 seconds]
<apeiros> zenspider: I wish the imac had 3 thunderbolt ports. then I could just mount the laptop as an external drive
Sgeo_ has quit [Ping timeout: 264 seconds]
<apeiros> currently googling for thunderbolt hubs. not having much luck :(
<zenspider> there are a couple... but they're all hella expensive
Zettam has joined #ruby
rudisimo has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
<apeiros> I wonder why I can't find them :-S
beneggett has joined #ruby
govg has joined #ruby
<zenspider> the main one I'm thinking of
<apeiros> ah, yeah, more than just a thunderbolt hub. that's why it's so expensive :-/
o0oo0o has joined #ruby
Sgeo has joined #ruby
<zenspider> I think it is because there are < 100 customers for it :)
<zenspider> belkin has had a lot of trouble getting that out the door tooo
<zenspider> s/o$//
baweaver has joined #ruby
<apeiros> damit, do I really have to sacrifice a screen for this? :-<
rudisimo has joined #ruby
<zenspider> there's a couple others on amazon... but they're all in the same price range and do more than they should
<zenspider> one is a ton of different types of ports
yekta has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
Kricir has quit [Remote host closed the connection]
graft has joined #ruby
lkba has joined #ruby
<apeiros> I guess everybody thinks "ooooh, thunderbolt can be daisy chained - no need for hubs". so wrong though :(
Xeago_ has joined #ruby
nfk has quit [Quit: yawn]
treehug88 has quit []
jlast has quit [Ping timeout: 245 seconds]
<zenspider> that was pretty much the case with scsi... but the problem is that the thunderbolt devices, esp disks, don't have 2 ports on them
<zenspider> and at that point I'm like, wtf
<apeiros> that could solve my problem too… one TB port for the screens
<zenspider> that's a lot of pixels
<apeiros> zenspider: yeah. also I use TB ports as DisplayPorts - bam, no chaining
<zenspider> don't the displays have TB on the back?
thsig has quit [Remote host closed the connection]
<apeiros> the displays aren't TB displays
<zenspider> aaah. gotcha
Xeago has quit [Ping timeout: 245 seconds]
<zenspider> and the adapter doesn't have 2 ports. ugh
<apeiros> problem with that approach - while it works for my current additional screens, it won't work with the two 4K screens I planned :-S
<apeiros> #firstworldproblems
patrick99e99 has joined #ruby
<apeiros> well, bed time anyway. gotta split my head about this tomorrow
stunder has joined #ruby
fabrice31 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
arescorpio has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
desp has quit [Quit: This computer has gone to sleep]
henesy has joined #ruby
hiyosi has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
dseitz has joined #ruby
henesy has quit [Client Quit]
wm3|away has quit [Ping timeout: 255 seconds]
henesy has joined #ruby
n3phos has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
Channel6 has joined #ruby
jenrzzz has joined #ruby
deepin has joined #ruby
deepin has quit [Client Quit]
kirun has quit [Quit: Client exiting]
ghr has joined #ruby
jimbach has joined #ruby
nkumari has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
cpruitt has quit [Quit: cpruitt]
charliesome has joined #ruby
chrisja has quit [Quit: leaving]
ghr has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
troyreadyy has joined #ruby
livingstn has joined #ruby
kumarat9pm has joined #ruby
razieliyo has quit [Quit: Saliendo]
<kumarat9pm> Good day all. I am learning about ruby variables and I am able to understand local and global varialbes which are common in many prog languages. But I am unable to understand instance and class variables. Can you please share any link which explain these things with examples? Thanks in advance.
<jhass> well, do you understand classes and objects (instances) yet?
danijoo has quit [Read error: Connection reset by peer]
<ka-el-man> kumarat9pm: it's about scope
troyready has quit [Ping timeout: 264 seconds]
<ka-el-man> that's the difference between them :)
danijoo has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kumarat9pm> jhass: Yes, I understand classes and objects.
procat has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<jhass> an instance variable is associated with an object. You can access it from any method belonging to that object
<kumarat9pm> ka-el-man: may be my question is bit weird, they are not there in other prog lang.. why they are implemented in Ruby?
<jhass> both class variables and instance variables are in any object oriented language
<jhass> I've seen at least
<ka-el-man> kumarat9pm: it think maybe it has to do with Ruby being a dynamic language
<kumarat9pm> jhass: hmm ok
<ka-el-man> therefore there are differences in scope
<jhass> some call instance variables fields
<kumarat9pm> ka-el-man: Ohh I see
<jhass> or attributes
<ka-el-man> but i'm not certain about this, can be totaly wrong, that's my take on it
<jhass> ka-el-man: I disagree
jaequery has joined #ruby
Photism has joined #ruby
<jhass> I don't see any connection between a dynamically typed language and the scopes it provides
<zenspider> kumarat9pm: instance variables are TOTALLY there in other (OO) languages
<zenspider> class variables are too, depending on the language
jaequery has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
jaequery has joined #ruby
<zenspider> jhass: yeah. that doesn't follow
<kumarat9pm> zenspider: But there is no specific mentioning of them in other languages and as well special notations like @ and @@.. That's where one of my confusion.
jaequery has quit [Max SendQ exceeded]
<jhass> kumarat9pm: what are the "other languages" here?
jaequery has joined #ruby
<kumarat9pm> jhass: python, Perl
<ka-el-man> variable has scope, @variable has a wider scope, @@variable can be used anywhere in the program